ChangeLog 601 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173
  1. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Implemented getVersion xml-rpc method. This method returns struct
  3. which has 2 key-value pairs: "version" key is associated to the
  4. version of aria2, such as "1.5.0". "enabledFeatures" key is
  5. associated to the list of enabled features, such as "Async DNS",
  6. "BitTorrent".
  7. * src/FeatureConfig.h
  8. * src/XmlRpcMethodFactory.cc
  9. * src/XmlRpcMethodImpl.cc
  10. * src/XmlRpcMethodImpl.h
  11. * test/XmlRpcMethodTest.cc
  12. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  13. Removed TLS1.1 protocol support when aria2 is built with gnutls
  14. for compatibility issue.
  15. * src/SocketCore.cc
  16. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  17. Fixed compile error with openSSL
  18. * src/bittorrent_helper.cc
  19. * src/messageDigest.h
  20. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  21. Removed bad code: setting certificate type priority to key
  22. exchange priority.
  23. * src/SocketCore.cc
  24. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  25. Disconnect seeder if client is also in seed state.
  26. * src/BtBitfieldMessage.cc
  27. * src/BtHaveAllMessage.cc
  28. * src/BtHaveMessage.cc
  29. * src/message.h
  30. * test/BtBitfieldMessageTest.cc
  31. * test/BtHaveAllMessageTest.cc
  32. * test/BtHaveMessageTest.cc
  33. * test/MockPieceStorage.h
  34. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  35. Keep CreateRequestCommand in queue when no segment is available so
  36. that they can pick up pieces which slow BitTorrent peers are
  37. downloading.
  38. * src/AbstractCommand.cc
  39. * src/CreateRequestCommand.cc
  40. * src/CreateRequestCommand.h
  41. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  42. --bt-stop-timeout now only checks download speed.
  43. * src/BtStopDownloadCommand.cc
  44. * src/BtStopDownloadCommand.h
  45. * src/BtSetup.cc
  46. * src/usage_text.h
  47. * doc/aria2c.1.txt
  48. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  49. Fixed compile error regarding BUFSIZE.
  50. * src/DownloadCommand.cc
  51. * src/DownloadCommand.h
  52. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  53. Documented tellWaiting xml-rpc method in man page.
  54. * doc/aria2c.1.txt
  55. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  56. Bump up version number to 1.5.0
  57. * configure.ac
  58. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  59. Removed resolved TODO1.5
  60. * src/AbstractCommand.cc
  61. * src/DownloadCommand.cc
  62. * src/RequestGroup.cc
  63. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  64. Release pooled and in-flight Request objectsand URIResult objects
  65. in FileEntry after download completed.
  66. * src/DownloadContext.cc
  67. * src/DownloadContext.h
  68. * src/FileEntry.cc
  69. * src/FileEntry.h
  70. * src/RequestGroup.cc
  71. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  72. Set manual and source attribute in aria2c.1.txt
  73. * doc/aria2c.1.txt
  74. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  75. Documented that the default value of --use-head is 'false' in man
  76. page.
  77. * doc/aria2c.1.txt
  78. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  79. Added bt-stop-timeout option to -i list.
  80. * doc/aria2c.1.txt
  81. * src/download_helper.cc
  82. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  83. Fixed typo
  84. * doc/aria2c.1.txt
  85. * src/usage_text.h
  86. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  87. Removed peer-id-prefix option from -i list.
  88. * doc/aria2c.1.txt
  89. * src/download_helper.cc
  90. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  91. Fixed typo
  92. * doc/aria2c.1.txt
  93. * src/usage_text.h
  94. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  95. Documented --bt-stop-timeout option in man page.
  96. * doc/aria2c.1.txt
  97. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  98. Updated README regarding multi-file torrent web-seeding.
  99. * doc/README.txt
  100. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  101. Updated man page regarding multi-file torrent web-seeding.
  102. * doc/aria2c.1.txt
  103. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  104. Updated doc
  105. * src/version_usage.cc
  106. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  107. Winsock select() doesn't work if no socket is in FD_SET. To
  108. overcome this problem, a dummy socket is added to FD_SET and it is
  109. given to select().
  110. * src/SelectEventPoll.cc
  111. * src/SelectEventPoll.h
  112. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  113. Disabled --use-head option by default because --use-head=true
  114. causes problems on some web sites.
  115. * src/OptionHandlerFactory.cc
  116. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  117. Print URL List in -S option for torrent.
  118. * src/bittorrent_helper.cc
  119. * src/bittorrent_helper.h
  120. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  121. Allocate buffer in ctor of DownloadCommand.
  122. * src/DownloadCommand.cc
  123. * src/DownloadCommand.h
  124. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  125. Removed DiskAdaptor::onDownloadComplete()
  126. * src/DirectDiskAdaptor.cc
  127. * src/DirectDiskAdaptor.h
  128. * src/DiskAdaptor.h
  129. * src/MultiDiskAdaptor.cc
  130. * src/MultiDiskAdaptor.h
  131. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  132. Committed missing BtStopDownloadCommand.{cc,h}
  133. * src/BtStopDownloadCommand.cc
  134. * src/BtStopDownloadCommand.h
  135. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  136. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  137. download if the download speed is 0 and the number of seeder is 0
  138. in consecutive SEC seconds. By default, this function is disabled.
  139. * src/BtSetup.cc
  140. * src/Makefile.am
  141. * src/OptionHandlerFactory.cc
  142. * src/prefs.cc
  143. * src/prefs.h
  144. * src/usage_text.h
  145. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  146. Removed the call to DiskAdaptor::onDownloadComplete() from
  147. BtCheckIntegrityEntry and DefaultPieceStorage.
  148. * src/BtCheckIntegrityEntry.cc
  149. * src/DefaultPieceStorage.cc
  150. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  151. Commented out throw statements when number of piece is 0 to
  152. download 0 length torrent.
  153. * src/bittorrent_helper.cc
  154. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  155. Call RequestGroup::createNextCommandWithAdj() from
  156. BtFileAllocationEntry if at least one FileEntry has URI. The
  157. static function hasAssociatedUri in RequestGroup.cc is renamed as
  158. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  159. * src/BtFileAllocationEntry.cc
  160. * src/FileEntry.h
  161. * src/RequestGroup.cc
  162. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  163. Generate peer ID after SimpleRandomizer is initialized.
  164. * src/main.cc
  165. * src/option_processing.cc
  166. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  167. Removed unused method argument.
  168. * src/CreateRequestCommand.cc
  169. * src/RequestGroup.cc
  170. * src/RequestGroup.h
  171. * src/RequestGroupMan.cc
  172. * src/TrackerWatcherCommand.cc
  173. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  174. Made URI reusing function work.
  175. * src/CreateRequestCommand.cc
  176. * src/FileEntry.cc
  177. * src/FileEntry.h
  178. * test/FileEntryTest.cc
  179. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  180. Add formerly fastest PeerStat's sessionDownloadLength to new
  181. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  182. bytes in a session.
  183. * src/PeerStat.cc
  184. * src/SegmentMan.cc
  185. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  186. If pipelining is enabled, we can always pool socket.
  187. * src/HttpDownloadCommand.cc
  188. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  189. In a single file download, file size becomes known just after
  190. downloading, set total length to FileEntry object when download
  191. completed.
  192. * src/DownloadCommand.cc
  193. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  194. Use std::vector::reserve() for fileEntries and pieceHashes in
  195. bittorrent_helper
  196. * src/bittorrent_helper.cc
  197. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  198. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  199. Removed hidden option PREF_RESET_URI.
  200. * src/AbstractCommand.cc
  201. * src/OptionHandlerFactory.cc
  202. * src/prefs.cc
  203. * src/prefs.h
  204. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  205. Removed unused variable/function.
  206. * src/PeerStat.h
  207. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  208. Show first URL in Download Results if file path is not available.
  209. * src/FileEntry.h
  210. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  211. Throw exception if file path doesn't exist in FTP URL.
  212. * src/InitiateConnectionCommandFactory.cc
  213. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  214. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  215. * src/BitfieldMan.cc
  216. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  217. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  218. of PeerStat in SegmentMan. peerStats is used for calculating
  219. download speed. Therefore all active PeerStats should be in
  220. there. Another one is _fastestPeerStats and it only contains
  221. fastest PeerStat for each hostname/protocol pair. They are used
  222. for updating ServerStat.
  223. * src/DownloadCommand.cc
  224. * src/Request.h
  225. * src/RequestGroupMan.cc
  226. * src/SegmentMan.cc
  227. * src/SegmentMan.h
  228. * test/SegmentManTest.cc
  229. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  230. Try all available addresses returned by DNS until it gets
  231. connected in HTTP(S)/FTP download
  232. * src/AbstractCommand.cc
  233. * src/AbstractCommand.h
  234. * src/AbstractProxyRequestCommand.cc
  235. * src/AbstractProxyRequestCommand.h
  236. * src/DNSCache.h
  237. * src/DownloadEngine.cc
  238. * src/DownloadEngine.h
  239. * src/FtpInitiateConnectionCommand.cc
  240. * src/FtpInitiateConnectionCommand.h
  241. * src/FtpNegotiationCommand.cc
  242. * src/FtpNegotiationCommand.h
  243. * src/HttpInitiateConnectionCommand.cc
  244. * src/HttpInitiateConnectionCommand.h
  245. * src/HttpRequestCommand.cc
  246. * src/HttpRequestCommand.h
  247. * src/InitiateConnectionCommand.cc
  248. * src/InitiateConnectionCommand.h
  249. * test/DNSCacheTest.cc
  250. * test/Makefile.am
  251. * test/SimpleDNSCacheTest.cc
  252. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  253. Updated doc
  254. * src/download_helper.cc
  255. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  256. Refactored fieldMan ctor.
  257. * src/BitfieldMan.cc
  258. * src/BitfieldMan.h
  259. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  260. Don't print "No files to download." message if -S is given.
  261. * src/main.cc
  262. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  263. Set referer and method to newly created Request object.
  264. * src/CreateRequestCommand.cc
  265. * src/FileEntry.cc
  266. * src/FileEntry.h
  267. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  268. Removed ctor of AbstractCommand which doesn't take FileEntry.
  269. * src/AbstractCommand.cc
  270. * src/AbstractCommand.h
  271. * src/CreateRequestCommand.cc
  272. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  273. Get proxy download working
  274. * src/AbstractProxyRequestCommand.cc
  275. * src/AbstractProxyRequestCommand.h
  276. * src/AbstractProxyResponseCommand.cc
  277. * src/AbstractProxyResponseCommand.h
  278. * src/FtpInitiateConnectionCommand.cc
  279. * src/FtpTunnelRequestCommand.cc
  280. * src/FtpTunnelRequestCommand.h
  281. * src/FtpTunnelResponseCommand.cc
  282. * src/FtpTunnelResponseCommand.h
  283. * src/HttpInitiateConnectionCommand.cc
  284. * src/HttpProxyRequestCommand.cc
  285. * src/HttpProxyRequestCommand.h
  286. * src/HttpProxyResponseCommand.cc
  287. * src/HttpProxyResponseCommand.h
  288. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  289. Use SegmentMan::getSegment(cuid) for single file download.
  290. * src/AbstractCommand.cc
  291. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  292. Fixed bufSize calculation
  293. * src/DownloadCommand.cc
  294. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  295. Don't append "/" if base URI ends with "/".
  296. * src/bittorrent_helper.cc
  297. * test/url-list-multiFile.torrent
  298. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  299. HTTP pipelining is now working. Fixed Segmention fault in
  300. BitfieldMan's copy ctor.
  301. * src/AbstractCommand.cc
  302. * src/BitfieldMan.cc
  303. * src/BitfieldMan.h
  304. * src/DownloadCommand.cc
  305. * src/HttpDownloadCommand.cc
  306. * src/HttpRequest.cc
  307. * src/SegmentMan.cc
  308. * src/SegmentMan.h
  309. * test/BitfieldManTest.cc
  310. * test/SegmentManTest.cc
  311. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  312. Removed ServerHost. Same functionality is implemented using
  313. FileEntry's in-flight Request objects.
  314. * src/AbstractCommand.cc
  315. * src/BtDependency.cc
  316. * src/CreateRequestCommand.cc
  317. * src/FileEntry.cc
  318. * src/FileEntry.h
  319. * src/FtpNegotiationCommand.cc
  320. * src/HttpResponseCommand.cc
  321. * src/Makefile.am
  322. * src/Metalink2RequestGroup.cc
  323. * src/RequestGroup.cc
  324. * src/RequestGroup.h
  325. * src/ServerHost.cc: Removed
  326. * src/ServerHost.h: Removed
  327. * test/BtDependencyTest.cc
  328. * test/FileEntryTest.cc
  329. * test/RequestGroupTest.cc
  330. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  331. Rewritten PeerStat handling. In the previous implementation,
  332. faster command tries to find slower command. In this new
  333. implementation, slower command tries to find faster command.
  334. PeerStat is now created in each HTTP/FTP request to get download
  335. rate correctly. If the download range is small, the download rate
  336. tends to small and this will occur at the later stage of download.
  337. * src/AbstractCommand.cc
  338. * src/DownloadCommand.cc
  339. * src/FileEntry.cc
  340. * src/FileEntry.h
  341. * src/Request.cc
  342. * src/Request.h
  343. * src/RequestGroup.h
  344. * src/RequestGroupMan.cc
  345. * src/SegmentMan.cc
  346. * src/SegmentMan.h
  347. * test/SegmentManTest.cc
  348. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  349. Removed _uris from RequestGroup. All functions that refer to _uris
  350. were moved to FileEntry. Exit status code are now defined in
  351. DownloadResultCode.h.
  352. * src/AbstractCommand.cc
  353. * src/AdaptiveURISelector.cc
  354. * src/AdaptiveURISelector.h
  355. * src/AutoSaveCommand.cc
  356. * src/BtPostDownloadHandler.cc
  357. * src/CheckIntegrityDispatcherCommand.cc
  358. * src/CookieStorage.cc
  359. * src/DHTAutoSaveCommand.cc
  360. * src/DHTBucketRefreshCommand.cc
  361. * src/DHTEntryPointNameResolveCommand.cc
  362. * src/DHTInteractionCommand.cc
  363. * src/DHTPeerAnnounceCommand.cc
  364. * src/DHTTokenUpdateCommand.cc
  365. * src/DlAbortEx.h
  366. * src/DlRetryEx.h
  367. * src/DownloadCommand.cc
  368. * src/DownloadContext.h
  369. * src/DownloadFailureException.h
  370. * src/DownloadResult.h
  371. * src/DownloadResultCode.h
  372. * src/FeedbackURISelector.cc
  373. * src/FeedbackURISelector.h
  374. * src/FileEntry.cc
  375. * src/FileEntry.h
  376. * src/FtpNegotiationCommand.cc
  377. * src/HttpListenCommand.cc
  378. * src/HttpResponseCommand.cc
  379. * src/HttpServerResponseCommand.cc
  380. * src/HttpSkipResponseCommand.cc
  381. * src/InOrderURISelector.cc
  382. * src/InOrderURISelector.h
  383. * src/Makefile.am
  384. * src/Makefile.in
  385. * src/Metalink2RequestGroup.cc
  386. * src/MultiUrlRequestInfo.cc
  387. * src/MultiUrlRequestInfo.h
  388. * src/OptionHandlerFactory.cc
  389. * src/PeerListenCommand.cc
  390. * src/RecoverableException.h
  391. * src/RequestGroup.cc
  392. * src/RequestGroup.h
  393. * src/RequestGroupMan.cc
  394. * src/RequestGroupMan.h
  395. * src/TimedHaltCommand.cc
  396. * src/TrackerWatcherCommand.cc
  397. * src/URIResult.cc
  398. * src/URIResult.h
  399. * src/URISelector.h
  400. * src/XmlRpcMethodImpl.cc
  401. * src/bittorrent_helper.cc
  402. * src/bittorrent_helper.h
  403. * src/download_helper.cc
  404. * src/main.cc
  405. * src/option_processing.cc
  406. * test/BtDependencyTest.cc
  407. * test/BtPostDownloadHandlerTest.cc
  408. * test/CookieStorageTest.cc
  409. * test/DefaultBtMessageDispatcherTest.cc
  410. * test/DownloadHandlerFactoryTest.cc
  411. * test/DownloadHelperTest.cc
  412. * test/FeedbackURISelectorTest.cc
  413. * test/FileEntryTest.cc
  414. * test/InOrderURISelectorTest.cc
  415. * test/Metalink2RequestGroupTest.cc
  416. * test/MetalinkPostDownloadHandlerTest.cc
  417. * test/RequestGroupManTest.cc
  418. * test/RequestGroupTest.cc
  419. * test/XmlRpcMethodTest.cc
  420. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  421. Removed MockBtContext.h
  422. * test/Makefile.am
  423. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  424. Removed _currentRequest from StreamCheckIntegrityEntry and
  425. StreamFileAllocationEntry.
  426. * src/AbstractCommand.cc
  427. * src/HttpResponseCommand.cc
  428. * src/RequestGroup.cc
  429. * src/StreamCheckIntegrityEntry.cc
  430. * src/StreamCheckIntegrityEntry.h
  431. * src/StreamFileAllocationEntry.cc
  432. * src/StreamFileAllocationEntry.h
  433. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  434. Rewritten DownloadContext and removed SingleFileDownloadContext
  435. and BtContext and its derived classes. BitTorrent specific
  436. attributes are now set by DownloadContext::setAttribute() with key
  437. bittorrent::BITTORRENT.
  438. * src/AbstractBtMessage.cc
  439. * src/AbstractBtMessage.h
  440. * src/AbstractCommand.cc
  441. * src/AbstractCommand.h
  442. * src/AbstractProxyRequestCommand.cc
  443. * src/AbstractProxyResponseCommand.cc
  444. * src/ActivePeerConnectionCommand.cc
  445. * src/ActivePeerConnectionCommand.h
  446. * src/AnnounceList.cc
  447. * src/BtCheckIntegrityEntry.cc
  448. * src/BtConstants.h
  449. * src/BtContext.h: Removed
  450. * src/BtDependency.cc
  451. * src/BtExtendedMessage.cc
  452. * src/BtPieceMessage.cc
  453. * src/BtPieceMessage.h
  454. * src/BtPostDownloadHandler.cc
  455. * src/BtRegistry.cc
  456. * src/BtRegistry.h
  457. * src/BtSetup.cc
  458. * src/CheckIntegrityCommand.cc
  459. * src/CheckIntegrityEntry.cc
  460. * src/ChecksumCheckIntegrityEntry.cc
  461. * src/ConsoleStatCalc.cc
  462. * src/ContentTypeRequestGroupCriteria.cc
  463. * src/DHTGetPeersCommand.cc
  464. * src/DHTGetPeersCommand.h
  465. * src/DHTPeerLookupTask.cc
  466. * src/DHTPeerLookupTask.h
  467. * src/DHTTaskFactory.h
  468. * src/DHTTaskFactoryImpl.cc
  469. * src/DHTTaskFactoryImpl.h
  470. * src/DefaultBtAnnounce.cc
  471. * src/DefaultBtAnnounce.h
  472. * src/DefaultBtContext.cc: Removed
  473. * src/DefaultBtContext.h: Removed
  474. * src/DefaultBtInteractive.cc
  475. * src/DefaultBtInteractive.h
  476. * src/DefaultBtMessageDispatcher.cc
  477. * src/DefaultBtMessageDispatcher.h
  478. * src/DefaultBtMessageFactory.cc
  479. * src/DefaultBtMessageFactory.h
  480. * src/DefaultBtMessageReceiver.cc
  481. * src/DefaultBtMessageReceiver.h
  482. * src/DefaultBtProgressInfoFile.cc
  483. * src/DefaultBtRequestFactory.cc
  484. * src/DefaultBtRequestFactory.h
  485. * src/DefaultExtensionMessageFactory.cc
  486. * src/DefaultExtensionMessageFactory.h
  487. * src/DefaultPeerStorage.cc
  488. * src/DefaultPeerStorage.h
  489. * src/DefaultPieceStorage.cc
  490. * src/DefaultSegmentManFactory.cc
  491. * src/DiskAdaptor.cc
  492. * src/DiskAdaptor.h
  493. * src/DownloadContext.cc
  494. * src/DownloadContext.h
  495. * src/DownloadEngine.cc
  496. * src/DownloadEngineFactory.cc
  497. * src/DownloadHandler.cc
  498. * src/DownloadResult.h
  499. * src/FileAllocationCommand.cc
  500. * src/FileAllocationDispatcherCommand.cc
  501. * src/FileAllocationEntry.cc
  502. * src/FileEntry.h
  503. * src/FillRequestGroupCommand.cc
  504. * src/FtpDownloadCommand.cc
  505. * src/FtpFinishDownloadCommand.cc
  506. * src/FtpInitiateConnectionCommand.cc
  507. * src/FtpNegotiationCommand.cc
  508. * src/FtpTunnelRequestCommand.cc
  509. * src/FtpTunnelResponseCommand.cc
  510. * src/HandshakeExtensionMessage.cc
  511. * src/HandshakeExtensionMessage.h
  512. * src/HaveEraseCommand.cc
  513. * src/HttpDownloadCommand.cc
  514. * src/HttpInitiateConnectionCommand.cc
  515. * src/HttpProxyRequestCommand.cc
  516. * src/HttpProxyResponseCommand.cc
  517. * src/HttpRequest.cc
  518. * src/HttpRequest.h
  519. * src/HttpRequestCommand.cc
  520. * src/HttpResponseCommand.cc
  521. * src/HttpServerBodyCommand.cc
  522. * src/HttpServerCommand.cc
  523. * src/HttpSkipResponseCommand.cc
  524. * src/InitiateConnectionCommandFactory.cc
  525. * src/InitiatorMSEHandshakeCommand.cc
  526. * src/InitiatorMSEHandshakeCommand.h
  527. * src/IteratableChecksumValidator.cc
  528. * src/IteratableChecksumValidator.h
  529. * src/IteratableChunkChecksumValidator.cc
  530. * src/MSEHandshake.cc
  531. * src/MSEHandshake.h
  532. * src/Makefile.am
  533. * src/Makefile.in
  534. * src/Metalink2RequestGroup.cc
  535. * src/MetalinkPostDownloadHandler.cc
  536. * src/MultiDiskAdaptor.cc
  537. * src/MultiDiskAdaptor.h
  538. * src/MultiFileAllocationIterator.cc
  539. * src/MultiUrlRequestInfo.cc
  540. * src/PeerChokeCommand.cc
  541. * src/PeerChokeCommand.h
  542. * src/PeerInitiateConnectionCommand.cc
  543. * src/PeerInitiateConnectionCommand.h
  544. * src/PeerInteractionCommand.cc
  545. * src/PeerInteractionCommand.h
  546. * src/PeerReceiveHandshakeCommand.cc
  547. * src/PieceHashCheckIntegrityEntry.cc
  548. * src/RealtimeCommand.cc
  549. * src/ReceiverMSEHandshakeCommand.cc
  550. * src/RequestGroup.cc
  551. * src/RequestGroup.h
  552. * src/RequestGroupEntry.cc
  553. * src/RequestGroupMan.cc
  554. * src/SeedCheckCommand.cc
  555. * src/SeedCheckCommand.h
  556. * src/SegmentMan.cc
  557. * src/ShareRatioSeedCriteria.h
  558. * src/SingleFileDownloadContext.cc: Removed
  559. * src/SingleFileDownloadContext.h: Removed
  560. * src/SleepCommand.cc
  561. * src/StreamCheckIntegrityEntry.cc
  562. * src/TrackerWatcherCommand.cc
  563. * src/TrackerWatcherCommand.h
  564. * src/UnknownLengthPieceStorage.cc
  565. * src/Util.cc
  566. * src/Util.h
  567. * src/XmlRpcMethodImpl.cc
  568. * src/bittorrent_helper.cc
  569. * src/bittorrent_helper.h
  570. * src/download_helper.cc
  571. * src/main.cc
  572. * src/option_processing.cc
  573. * test/BitfieldManTest.cc
  574. * test/BittorrentHelperTest.cc
  575. * test/BtCancelMessageTest.cc
  576. * test/BtChokeMessageTest.cc
  577. * test/BtDependencyTest.cc
  578. * test/BtPieceMessageTest.cc
  579. * test/BtPostDownloadHandlerTest.cc
  580. * test/BtRegistryTest.cc
  581. * test/BtRejectMessageTest.cc
  582. * test/BtRequestMessageTest.cc
  583. * test/DHTPeerAnnounceStorageTest.cc
  584. * test/DefaultBtAnnounceTest.cc
  585. * test/DefaultBtContextTest.cc: Removed
  586. * test/DefaultBtMessageDispatcherTest.cc
  587. * test/DefaultBtMessageFactoryTest.cc
  588. * test/DefaultBtProgressInfoFileTest.cc
  589. * test/DefaultBtRequestFactoryTest.cc
  590. * test/DefaultExtensionMessageFactoryTest.cc
  591. * test/DefaultPeerStorageTest.cc
  592. * test/DefaultPieceStorageTest.cc
  593. * test/DirectDiskAdaptorTest.cc
  594. * test/DownloadContextTest.cc
  595. * test/DownloadHandlerFactoryTest.cc
  596. * test/DownloadHelperTest.cc
  597. * test/HandshakeExtensionMessageTest.cc
  598. * test/HttpRequestTest.cc
  599. * test/HttpResponseTest.cc
  600. * test/IteratableChecksumValidatorTest.cc
  601. * test/IteratableChunkChecksumValidatorTest.cc
  602. * test/MSEHandshakeTest.cc
  603. * test/Makefile.am
  604. * test/Makefile.in
  605. * test/Metalink2RequestGroupTest.cc
  606. * test/MetalinkPostDownloadHandlerTest.cc
  607. * test/MockBtContext.h: Removed
  608. * test/MockDHTTaskFactory.h
  609. * test/MockDownloadContext.h: Removed
  610. * test/MockPieceStorage.h
  611. * test/MultiDiskAdaptorTest.cc
  612. * test/MultiFileAllocationIteratorTest.cc
  613. * test/RequestGroupManTest.cc
  614. * test/RequestGroupTest.cc
  615. * test/SegmentManTest.cc
  616. * test/ShareRatioSeedCriteriaTest.cc
  617. * test/SingleFileDownloadContextTest.cc: Removed
  618. * test/UtilTest.cc
  619. * test/XmlRpcMethodTest.cc
  620. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  621. Added experimental support of WEB-Seeding for multi-file torrent.
  622. Due to fundamental changes in file handling in HTTP/FTP code, many
  623. functions are not working: PeerStat, ServerHost, proxy..etc
  624. * src/AbstractCommand.cc
  625. * src/AbstractCommand.h
  626. * src/BitfieldMan.cc
  627. * src/BitfieldMan.h
  628. * src/CreateRequestCommand.cc
  629. * src/CreateRequestCommand.h
  630. * src/DefaultPieceStorage.cc
  631. * src/DefaultPieceStorage.h
  632. * src/DownloadCommand.cc
  633. * src/DownloadCommand.h
  634. * src/DownloadContext.cc
  635. * src/DownloadContext.h
  636. * src/FileEntry.cc
  637. * src/FileEntry.h
  638. * src/FtpDownloadCommand.cc
  639. * src/FtpDownloadCommand.h
  640. * src/FtpFinishDownloadCommand.cc
  641. * src/FtpFinishDownloadCommand.h
  642. * src/FtpInitiateConnectionCommand.cc
  643. * src/FtpInitiateConnectionCommand.h
  644. * src/FtpNegotiationCommand.cc
  645. * src/FtpNegotiationCommand.h
  646. * src/FtpTunnelResponseCommand.cc
  647. * src/HttpDownloadCommand.cc
  648. * src/HttpDownloadCommand.h
  649. * src/HttpInitiateConnectionCommand.cc
  650. * src/HttpInitiateConnectionCommand.h
  651. * src/HttpProxyResponseCommand.cc
  652. * src/HttpRequest.cc
  653. * src/HttpRequest.h
  654. * src/HttpRequestCommand.cc
  655. * src/HttpRequestCommand.h
  656. * src/HttpResponseCommand.cc
  657. * src/HttpResponseCommand.h
  658. * src/HttpSkipResponseCommand.cc
  659. * src/HttpSkipResponseCommand.h
  660. * src/InitiateConnectionCommand.cc
  661. * src/InitiateConnectionCommand.h
  662. * src/InitiateConnectionCommandFactory.cc
  663. * src/InitiateConnectionCommandFactory.h
  664. * src/Makefile.am
  665. * src/PieceStorage.h
  666. * src/RequestGroup.cc
  667. * src/RequestGroup.h
  668. * src/RequestGroupMan.cc
  669. * src/SegmentMan.cc
  670. * src/SegmentMan.h
  671. * src/SingleFileDownloadContext.h
  672. * src/StreamFileAllocationEntry.cc
  673. * src/TrackerWatcherCommand.cc
  674. * src/UnknownLengthPieceStorage.cc
  675. * src/UnknownLengthPieceStorage.h
  676. * src/array_fun.h
  677. * src/bitfield.h
  678. * src/download_helper.cc
  679. * test/DownloadContextTest.cc
  680. * test/Makefile.am
  681. * test/MockDownloadContext.h
  682. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  683. Added tellWaiting XML-RPC method.
  684. * src/SingleFileDownloadContext.cc
  685. * src/XmlRpcMethodFactory.cc
  686. * src/XmlRpcMethodImpl.cc
  687. * src/XmlRpcMethodImpl.h
  688. * test/XmlRpcMethodTest.cc
  689. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  690. Updated CookieStorageTest
  691. * test/CookieStorageTest.cc
  692. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  693. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  694. handle excepion inside these functions.
  695. * src/LibgnutlsTLSContext.cc
  696. * src/LibgnutlsTLSContext.h
  697. * src/LibsslTLSContext.cc
  698. * src/LibsslTLSContext.h
  699. * src/MultiUrlRequestInfo.cc
  700. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  701. Added comment
  702. * src/RequestGroup.cc
  703. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  704. In CookieStorage::load() and saveNsFormat(), handle exception
  705. inside the functions. When saving Cookies, first write temporary
  706. file and after successful writes, then renames it to final
  707. destination.
  708. * src/CookieStorage.cc
  709. * src/CookieStorage.h
  710. * src/MultiUrlRequestInfo.cc
  711. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  712. The default value of --dir option is the absolute path to the
  713. current directory. If getcwd() is failed, then it is ".", which is
  714. the same value with old implementation. This change is necessary
  715. because after daemon() call, the current working directory is
  716. changed to /.
  717. * src/File.cc
  718. * src/File.h
  719. * src/OptionHandlerFactory.cc
  720. * src/option_processing.cc
  721. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  722. Call daemon() with arguments(0,0), which means daemon() changes
  723. current working directory to / and redirects stdin, stdout and
  724. stderr to /dev/null.
  725. * src/option_processing.cc
  726. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  727. Small performance optimizations.
  728. * src/RequestGroupMan.cc
  729. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  730. Added _xmlRpc member variable to RequestGroupMan to reduce the
  731. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  732. * src/RequestGroupMan.cc
  733. * src/RequestGroupMan.h
  734. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  735. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  736. setNoWiat(true) if newly created command calls
  737. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  738. * src/HttpListenCommand.cc
  739. * src/HttpServerBodyCommand.cc
  740. * src/HttpServerCommand.cc
  741. * src/HttpServerResponseCommand.cc
  742. * src/InitiateConnectionCommand.cc
  743. * src/RequestGroup.cc
  744. * src/StreamFileAllocationEntry.cc
  745. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  746. Removed include vector
  747. * src/BtRegistry.h
  748. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  749. Rewritten BtRegistry
  750. * src/BtRegistry.cc
  751. * src/BtRegistry.h
  752. * src/BtSetup.cc
  753. * src/ConsoleStatCalc.cc
  754. * src/PeerInteractionCommand.cc
  755. * src/PeerReceiveHandshakeCommand.cc
  756. * src/ReceiverMSEHandshakeCommand.cc
  757. * src/RequestGroup.cc
  758. * src/XmlRpcMethodImpl.cc
  759. * test/BtRegistryTest.cc
  760. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  761. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  762. * src/DefaultBtProgressInfoFile.cc
  763. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  764. Throw an exception if position is less than 0.
  765. * src/XmlRpcMethodImpl.cc
  766. * test/XmlRpcMethodTest.cc
  767. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  768. Use writeFilePath() in ConsoleStatCalc.cc
  769. * src/ConsoleStatCalc.cc
  770. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  771. Receive the return value as const reference from
  772. DownloadContext::getFileEntries().
  773. * src/DefaultPieceStorage.cc
  774. * src/RequestGroupMan.cc
  775. * src/XmlRpcMethodImpl.cc
  776. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  777. DownloadContext now has _fileEntries so that
  778. DownloadContext::getFileEntries() can returns its const reference.
  779. * src/DefaultBtContext.cc
  780. * src/DefaultBtContext.h
  781. * src/DownloadContext.cc
  782. * src/DownloadContext.h
  783. * src/SingleFileDownloadContext.cc
  784. * src/SingleFileDownloadContext.h
  785. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  786. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  787. writeFilePath() function template from RequestGroupMan.cc to
  788. FileEntry.h
  789. * src/FileEntry.h
  790. * src/RequestGroupMan.cc
  791. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  792. Documented 'position' parameter is starting from 0 in man page.
  793. * doc/aria2c.1.txt
  794. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  795. Updated doc.
  796. * src/MSEHandshake.cc
  797. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  798. Removed _acceptFeatures and its accessor functions from
  799. RequestGroup since they are not used practically.
  800. * src/HttpRequestCommand.cc
  801. * src/RequestGroup.cc
  802. * src/RequestGroup.h
  803. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  804. Removed member _maxTries from RequestGroup class to avoid
  805. duplicate option value. Those classes who refer this variable
  806. should use option value of PREF_MAX_TRIES directly.
  807. * src/AbstractCommand.cc
  808. * src/RequestGroup.cc
  809. * src/RequestGroup.h
  810. * src/TrackerWatcherCommand.cc
  811. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  812. * Release 1.4.1
  813. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  814. Fixed compiler warnings on netbsd
  815. * src/DHTConnectionImpl.cc
  816. * src/PeerListenCommand.cc
  817. * src/PeerSessionResource.cc
  818. * src/SegmentMan.cc
  819. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  820. Updated Ukrainian translation. Thanks to all translators.
  821. * po/uk.po
  822. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  823. Bump up version number to 1.4.1.
  824. * configure.ac
  825. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  826. Added unit tests for strjoin, strconcat and strappend.
  827. * test/a2functionalTest.cc
  828. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  829. Rewritten strconcat and strappend using operator+ instead of
  830. append().
  831. * src/a2functional.h
  832. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  833. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  834. is enabled.
  835. * src/Makefile.am
  836. * test/Makefile.am
  837. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  838. Added countSeeder() function which counts seeder in the given
  839. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  840. * src/ConsoleStatCalc.cc
  841. * src/Peer.h
  842. * src/XmlRpcMethodImpl.cc
  843. * test/PeerTest.cc
  844. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  845. Documented missing seeder in getPeers xml-rpc method.
  846. Documented uploadLength and numSeeders.
  847. * doc/aria2c.1.txt
  848. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  849. Added uploadLength and numSeeders to the response of tellStatus
  850. xml-rpc method. Assert that PeerStorage instance is not null
  851. instead of checking if statement. It should be non-null in this
  852. context.
  853. * src/XmlRpcMethodImpl.cc
  854. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  855. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  856. * src/XmlRpcResponse.cc
  857. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  858. Avoid intermediate object during string concatenation.
  859. * src/HttpRequest.cc
  860. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  861. Added strjoin function template. Use it in pathJoin()
  862. * src/Util.h
  863. * src/a2functional.h
  864. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  865. Avoid intermediate object during string concatenation. Replaced
  866. post-increment unary operator with pre-increment one in for loop.
  867. * src/AdaptiveURISelector.cc
  868. * src/AnnounceList.cc
  869. * src/AuthConfig.h
  870. * src/BtBitfieldMessage.cc
  871. * src/BtExtendedMessage.cc
  872. * src/BtHandshakeMessage.cc
  873. * src/BtPieceMessage.cc
  874. * src/BtPortMessage.cc
  875. * src/Cookie.cc
  876. * src/DHTAnnouncePeerMessage.cc
  877. * src/DHTAutoSaveCommand.cc
  878. * src/DHTGetPeersReplyMessage.cc
  879. * src/DHTNode.cc
  880. * src/DHTQueryMessage.cc
  881. * src/DHTResponseMessage.cc
  882. * src/DHTUnknownMessage.cc
  883. * src/DefaultBtAnnounce.cc
  884. * src/DefaultBtContext.cc
  885. * src/DefaultBtInteractive.cc
  886. * src/DefaultBtProgressInfoFile.cc
  887. * src/DefaultPeerStorage.cc
  888. * src/DownloadEngine.cc
  889. * src/FeatureConfig.cc
  890. * src/File.cc
  891. * src/FtpConnection.cc
  892. * src/FtpNegotiationCommand.cc
  893. * src/HandshakeExtensionMessage.cc
  894. * src/HttpConnection.cc
  895. * src/HttpRequest.cc
  896. * src/HttpResponseCommand.cc
  897. * src/HttpServer.cc
  898. * src/IndexBtMessage.cc
  899. * src/Metalink2RequestGroup.cc
  900. * src/OptionHandlerImpl.h
  901. * src/PStringBuildVisitor.cc
  902. * src/Peer.cc
  903. * src/PeerListenCommand.cc
  904. * src/Piece.cc
  905. * src/RangeBtMessage.cc
  906. * src/Request.cc
  907. * src/Request.h
  908. * src/RequestGroup.cc
  909. * src/RequestGroupMan.cc
  910. * src/ServerStat.cc
  911. * src/ServerStatMan.cc
  912. * src/UTPexExtensionMessage.cc
  913. * src/Util.cc
  914. * src/a2functional.h
  915. * src/download_helper.cc
  916. * src/messageDigest.cc
  917. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  918. Unchoke a peer randomly at first and second choke round in seed
  919. state.
  920. * src/BtSeederStateChoke.cc
  921. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  922. Added (sock_t) to quiet compiler warnings in MinGW
  923. * src/SocketCore.cc
  924. * src/SocketCore.h
  925. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  926. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  927. * src/EpollEventPoll.h
  928. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  929. Added fork() emulation using CreateProcess() in MinGW
  930. * src/RequestGroupMan.cc
  931. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  932. * Release 1.4.0
  933. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  934. Added utf8.torrent to EXTRA_DIST
  935. * test/Makefile.am
  936. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  937. Fixed docs of aria2.addMetalink xml-rpc method.
  938. * doc/aria2c.1.txt
  939. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  940. Added Slovak translation. Updated Ukrainian and Brazilian
  941. Portuguese translation. Thanks to all translators.
  942. * po/sk.po
  943. * po/uk.po
  944. * po/pt_BR.po
  945. * po/LINGUAS
  946. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  947. Added test case for XmlRpcProcessor to fail to parse malformed
  948. document.
  949. * test/XmlRpcRequestProcessorTest.cc
  950. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  951. Removed *.gmo files in po because they are generated on 'make
  952. dist'
  953. * po/*.gmo
  954. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  955. Documented max-concurrent-downloads of changeGlobalOption method
  956. in man page.
  957. * doc/aria2c.1.txt
  958. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  959. Added max-concurrent-downloads option to changeGlobalOption
  960. xml-rpc method. Rewritten loop conditional in
  961. RequestGroupMan::fillRequestGroupFromReserver().
  962. * src/RequestGroupMan.cc
  963. * src/RequestGroupMan.h
  964. * src/XmlRpcMethod.cc
  965. * src/XmlRpcMethodImpl.cc
  966. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  967. Documented position parameter in man page.
  968. * doc/aria2c.1.txt
  969. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  970. Added 'position' parameter to addUri, addTorrent and addMetalink
  971. xml-rpc method.
  972. * src/RequestGroupMan.cc
  973. * src/RequestGroupMan.h
  974. * src/XmlRpcMethodImpl.cc
  975. * test/XmlRpcMethodTest.cc
  976. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  977. Removed Peer.cc from compile source list when --disable-bittorrent
  978. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  979. takes Peer.
  980. * src/DefaultPieceStorage.cc
  981. * src/DefaultPieceStorage.h
  982. * src/Makefile.am
  983. * src/PieceStorage.h
  984. * src/UnknownLengthPieceStorage.cc
  985. * src/UnknownLengthPieceStorage.h
  986. * test/MockPieceStorage.h
  987. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  988. Implemented getter methods in header files to give them more
  989. chance of optimization.
  990. Return const reference for SharadHandle if possible.
  991. * src/AbstractAuthResolver.cc
  992. * src/AbstractAuthResolver.h
  993. * src/AbstractBtMessage.cc
  994. * src/AbstractBtMessage.h
  995. * src/AbstractSingleDiskAdaptor.cc
  996. * src/AbstractSingleDiskAdaptor.h
  997. * src/AsyncNameResolver.cc
  998. * src/AsyncNameResolver.h
  999. * src/BNode.cc
  1000. * src/BNode.h
  1001. * src/BitfieldMan.cc
  1002. * src/BitfieldMan.h
  1003. * src/BtAbortOutstandingRequestEvent.h
  1004. * src/BtExtendedMessage.cc
  1005. * src/BtExtendedMessage.h
  1006. * src/BtSeederStateChoke.cc
  1007. * src/BtSeederStateChoke.h
  1008. * src/Cookie.cc
  1009. * src/Cookie.h
  1010. * src/DHTBucket.cc
  1011. * src/DHTBucket.h
  1012. * src/DHTConnectionImpl.cc
  1013. * src/DHTConnectionImpl.h
  1014. * src/DHTFindNodeReplyMessage.cc
  1015. * src/DHTFindNodeReplyMessage.h
  1016. * src/DHTGetPeersReplyMessage.cc
  1017. * src/DHTGetPeersReplyMessage.h
  1018. * src/DHTInteractionCommand.cc
  1019. * src/DHTMessage.cc
  1020. * src/DHTMessage.h
  1021. * src/DHTMessageDispatcherImpl.cc
  1022. * src/DHTMessageEntry.cc
  1023. * src/DHTMessageReceiver.cc
  1024. * src/DHTMessageReceiver.h
  1025. * src/DHTMessageTrackerEntry.cc
  1026. * src/DHTMessageTrackerEntry.h
  1027. * src/DHTPeerAnnounceEntry.cc
  1028. * src/DHTPeerAnnounceEntry.h
  1029. * src/DHTPeerLookupTask.cc
  1030. * src/DHTPeerLookupTask.h
  1031. * src/DHTRoutingTableDeserializer.cc
  1032. * src/DHTRoutingTableDeserializer.h
  1033. * src/DefaultBtAnnounce.cc
  1034. * src/DefaultBtAnnounce.h
  1035. * src/DefaultBtMessageDispatcher.cc
  1036. * src/DefaultBtMessageDispatcher.h
  1037. * src/DefaultBtRequestFactory.cc
  1038. * src/DefaultBtRequestFactory.h
  1039. * src/DiskAdaptor.cc
  1040. * src/DiskAdaptor.h
  1041. * src/DownloadContext.cc
  1042. * src/DownloadContext.h
  1043. * src/DownloadEngine.cc
  1044. * src/DownloadEngine.h
  1045. * src/EpollEventPoll.cc
  1046. * src/EpollEventPoll.h
  1047. * src/FtpConnection.cc
  1048. * src/FtpConnection.h
  1049. * src/HttpConnection.cc
  1050. * src/HttpConnection.h
  1051. * src/HttpHeader.cc
  1052. * src/HttpHeader.h
  1053. * src/HttpRequest.cc
  1054. * src/HttpRequest.h
  1055. * src/HttpResponse.cc
  1056. * src/HttpResponse.h
  1057. * src/LibsslTLSContext.cc
  1058. * src/LibsslTLSContext.h
  1059. * src/MSEHandshake.cc
  1060. * src/MSEHandshake.h
  1061. * src/MetalinkEntry.cc
  1062. * src/MetalinkEntry.h
  1063. * src/MetalinkParserController.cc
  1064. * src/MetalinkParserController.h
  1065. * src/MetalinkParserStateMachine.cc
  1066. * src/MetalinkParserStateMachine.h
  1067. * src/MultiDiskAdaptor.cc
  1068. * src/MultiDiskAdaptor.h
  1069. * src/NetrcAuthResolver.cc
  1070. * src/NetrcAuthResolver.h
  1071. * src/Peer.cc
  1072. * src/Peer.h
  1073. * src/PeerSessionResource.cc
  1074. * src/PeerSessionResource.h
  1075. * src/Piece.cc
  1076. * src/Piece.h
  1077. * src/PieceStatMan.cc
  1078. * src/PieceStatMan.h
  1079. * src/Request.cc
  1080. * src/Request.h
  1081. * src/RequestGroup.cc
  1082. * src/RequestGroup.h
  1083. * src/RequestGroupMan.cc
  1084. * src/RequestGroupMan.h
  1085. * src/RequestSlot.cc
  1086. * src/RequestSlot.h
  1087. * src/SegmentMan.cc
  1088. * src/SegmentMan.h
  1089. * src/SelectEventPoll.cc
  1090. * src/SelectEventPoll.h
  1091. * src/ServerStat.cc
  1092. * src/ServerStat.h
  1093. * src/Signature.cc
  1094. * src/Signature.h
  1095. * src/URIResult.cc
  1096. * src/URIResult.h
  1097. * src/UTPexExtensionMessage.cc
  1098. * src/UTPexExtensionMessage.h
  1099. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1100. Fixed compile error without BitTorrent and Metalink support.
  1101. * src/XmlRpcMethod.cc
  1102. * src/XmlRpcMethodFactory.cc
  1103. * src/XmlRpcMethodImpl.cc
  1104. * src/XmlRpcMethodImpl.h
  1105. * test/XmlRpcMethodTest.cc
  1106. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1107. Rewritten the help message for --allow-overwrite option.
  1108. * doc/aria2c.1.txt
  1109. * src/usage_text.h
  1110. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1111. Fixed typo
  1112. * doc/aria2c.1.txt
  1113. * src/usage_text.h
  1114. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1115. Updated README for 1.4.0 release. Use new table syntax of
  1116. asciidoc.
  1117. * README
  1118. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1119. Documented --xml-rpc-max-request-size option in man page.
  1120. * doc/aria2c.1.txt
  1121. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1122. Moved C_* constants from BtContext to DefaultBtContext.
  1123. * src/BtContext.cc: Removed.
  1124. * src/BtContext.h
  1125. * src/DefaultBtContext.cc
  1126. * src/DefaultBtContext.h
  1127. * src/Makefile.am
  1128. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1129. Use name.utf-8 and path.utf-8 key in higher priority than name and
  1130. path key respectively when persing .torrent file.
  1131. * src/BtContext.cc
  1132. * src/BtContext.h
  1133. * src/DefaultBtContext.cc
  1134. * test/DefaultBtContextTest.cc
  1135. * test/utf8.torrent
  1136. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1137. Added --xml-rpc-max-request-size option to limit the size of
  1138. XML-RPC request.
  1139. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1140. Documented XML-RPC API in man page.
  1141. * doc/aria2c.1.txt
  1142. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1143. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  1144. will break strict-aliasing rules
  1145. * src/PeerConnection.cc
  1146. * test/DHTRoutingTableSerializerTest.cc
  1147. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1148. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  1149. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  1150. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  1151. PKG_CHECK_MODULES macro uses latter name.
  1152. * m4/sqlite3.m4
  1153. * src/Makefile.am
  1154. * test/Makefile.am
  1155. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1156. Fixed typo
  1157. * configure.ac
  1158. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1159. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  1160. presence of libgnutls using pkg-config first. If it fails, fall
  1161. back to old macro libgnutls.m4.
  1162. * configure.ac
  1163. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1164. Use s itself instead of !s.bad()
  1165. * src/CookieStorage.cc
  1166. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1167. Documented --on-download-* option and --save-cookies option in man
  1168. page.
  1169. * doc/aria2c.1.txt
  1170. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1171. Set possible values for --load-cookie option to "/path/to/file".
  1172. * src/OptionHandlerFactory.cc
  1173. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1174. Added --save-cookies option.
  1175. * src/Cookie.cc
  1176. * src/Cookie.h
  1177. * src/CookieStorage.cc
  1178. * src/CookieStorage.h
  1179. * src/MultiUrlRequestInfo.cc
  1180. * src/OptionHandlerFactory.cc
  1181. * src/prefs.cc
  1182. * src/prefs.h
  1183. * src/usage_text.h
  1184. * test/CookieStorageTest.cc
  1185. * test/CookieTest.cc
  1186. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1187. Removed tellAll XML-RPC command because its reponse tends to be
  1188. big if stopped/waiting downloads pile up.
  1189. * src/XmlRpcMethodFactory.cc
  1190. * src/XmlRpcMethodImpl.cc
  1191. * src/XmlRpcMethodImpl.h
  1192. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1193. Added the ability to execute command when download starts and
  1194. stops. You can also specify command for particular cases such as
  1195. complete/error download. Added --on-download-start,
  1196. --on-download-stop, --on-download-complete and --on-download-error
  1197. option.
  1198. * src/OptionHandlerFactory.cc
  1199. * src/RequestGroupMan.cc
  1200. * src/prefs.cc
  1201. * src/prefs.h
  1202. * src/usage_text.h
  1203. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1204. Fixed test error
  1205. * test/BencodeTest.cc
  1206. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1207. Added unit tests.
  1208. * test/XmlRpcMethodTest.cc
  1209. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1210. Made exception message more verbose.
  1211. * src/bencode.cc
  1212. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1213. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  1214. space in console readout. Also they are now shown in MiB/s if
  1215. speed > 1024KiB/s.
  1216. * src/ConsoleStatCalc.cc
  1217. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1218. Added SEED to console output, which represents the number of
  1219. seeders currently the client is connecting to.
  1220. * src/ConsoleStatCalc.cc
  1221. * src/ConsoleStatCalc.h
  1222. * src/DownloadEngine.cc
  1223. * src/NullStatCalc.h
  1224. * src/StatCalc.h
  1225. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1226. Added source filename(__FILE__) and line number(__LINE__) to
  1227. exception message.
  1228. * src/AbstractCommand.cc
  1229. * src/AbstractDiskWriter.cc
  1230. * src/AbstractProxyResponseCommand.cc
  1231. * src/BDE.h
  1232. * src/BtAllowedFastMessage.cc
  1233. * src/BtHandshakeMessageValidator.h
  1234. * src/BtHaveAllMessage.cc
  1235. * src/BtHaveNoneMessage.cc
  1236. * src/BtPieceMessage.cc
  1237. * src/BtRejectMessage.cc
  1238. * src/ChunkedDecoder.cc
  1239. * src/CookieStorage.cc
  1240. * src/DHTAnnouncePeerMessage.cc
  1241. * src/DHTEntryPointNameResolveCommand.cc
  1242. * src/DHTMessageFactoryImpl.cc
  1243. * src/DHTMessageTracker.cc
  1244. * src/DHTRoutingTableDeserializer.cc
  1245. * src/DHTRoutingTableSerializer.cc
  1246. * src/DHTSetup.cc
  1247. * src/DHTTokenTracker.cc
  1248. * src/DefaultBtAnnounce.cc
  1249. * src/DefaultBtContext.cc
  1250. * src/DefaultBtInteractive.cc
  1251. * src/DefaultBtMessageFactory.cc
  1252. * src/DefaultBtProgressInfoFile.cc
  1253. * src/DefaultExtensionMessageFactory.cc
  1254. * src/DlAbortEx.h
  1255. * src/DlRetryEx.h
  1256. * src/DownloadCommand.cc
  1257. * src/DownloadEngineFactory.cc
  1258. * src/DownloadFailureException.h
  1259. * src/Exception.cc
  1260. * src/Exception.h
  1261. * src/ExpatMetalinkProcessor.cc
  1262. * src/ExpatXmlRpcRequestProcessor.cc
  1263. * src/FallocFileAllocationIterator.cc
  1264. * src/FatalException.h
  1265. * src/FtpConnection.cc
  1266. * src/FtpFinishDownloadCommand.cc
  1267. * src/FtpInitiateConnectionCommand.cc
  1268. * src/FtpNegotiationCommand.cc
  1269. * src/GZipDecoder.cc
  1270. * src/HandshakeExtensionMessage.cc
  1271. * src/HttpConnection.cc
  1272. * src/HttpHeaderProcessor.cc
  1273. * src/HttpInitiateConnectionCommand.cc
  1274. * src/HttpResponse.cc
  1275. * src/HttpResponseCommand.cc
  1276. * src/HttpServer.cc
  1277. * src/HttpSkipResponseCommand.cc
  1278. * src/InitiateConnectionCommandFactory.cc
  1279. * src/IteratableChunkChecksumValidator.cc
  1280. * src/LibgcryptARC4Context.h
  1281. * src/LibgcryptARC4Decryptor.h
  1282. * src/LibgcryptARC4Encryptor.h
  1283. * src/LibgcryptDHKeyExchange.h
  1284. * src/LibgnutlsTLSContext.cc
  1285. * src/LibsslARC4Context.h
  1286. * src/LibsslARC4Decryptor.h
  1287. * src/LibsslARC4Encryptor.h
  1288. * src/LibsslDHKeyExchange.h
  1289. * src/LibsslTLSContext.cc
  1290. * src/MSEHandshake.cc
  1291. * src/MessageDigestHelper.cc
  1292. * src/MetalinkHelper.cc
  1293. * src/MultiDiskAdaptor.cc
  1294. * src/NameMatchOptionHandler.h
  1295. * src/NameResolver.cc
  1296. * src/Netrc.cc
  1297. * src/NsCookieParser.cc
  1298. * src/OptionHandlerException.cc
  1299. * src/OptionHandlerException.h
  1300. * src/OptionHandlerImpl.h
  1301. * src/OptionParser.cc
  1302. * src/ParameterizedStringParser.cc
  1303. * src/PeerAbstractCommand.cc
  1304. * src/PeerConnection.cc
  1305. * src/PeerMessageUtil.cc
  1306. * src/PeerReceiveHandshakeCommand.cc
  1307. * src/Platform.cc
  1308. * src/ReceiverMSEHandshakeCommand.cc
  1309. * src/RecoverableException.h
  1310. * src/RequestGroup.cc
  1311. * src/SimpleLogger.cc
  1312. * src/SocketCore.cc
  1313. * src/Sqlite3MozCookieParser.cc
  1314. * src/UTPexExtensionMessage.cc
  1315. * src/Util.cc
  1316. * src/XML2SAXMetalinkProcessor.cc
  1317. * src/Xml2XmlRpcRequestProcessor.cc
  1318. * src/XmlRpcMethodImpl.cc
  1319. * src/bencode.cc
  1320. * src/download_helper.cc
  1321. * src/messageDigest.h
  1322. * test/ExceptionTest.cc
  1323. * test/TestUtil.cc
  1324. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1325. Bump up version number to 1.4.0
  1326. * configure.ac
  1327. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1328. Added 2files.metalink to EXTRA_DIST
  1329. * test/Makefile.am
  1330. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1331. Added missing 2files.metalink
  1332. * test/2files.metalink
  1333. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1334. Show "[MEMORY]" prefix before filename in download summary if it
  1335. is downloaded into memory.
  1336. * src/DownloadResult.h
  1337. * src/RequestGroup.cc
  1338. * src/RequestGroupMan.cc
  1339. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1340. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  1341. * src/ExpatXmlRpcRequestProcessor.cc
  1342. * src/Xml2XmlRpcRequestProcessor.cc
  1343. * src/message.h
  1344. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1345. Defined const BDEs to avoid duplicate instantiation.
  1346. Defined MSG_GID_NOT_PROVIDED.
  1347. * src/XmlRpcMethodImpl.cc
  1348. * src/message.h
  1349. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1350. Code cleanup
  1351. * src/Xml2XmlRpcRequestProcessor.cc
  1352. * src/Xml2XmlRpcRequestProcessor.h
  1353. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1354. Defined ENABLE_XML_RPC
  1355. * configure.ac
  1356. * configure
  1357. * config.h.in
  1358. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1359. Added ExpatXmlRpcRequestProcessor
  1360. * src/ExpatXmlRpcRequestProcessor.cc
  1361. * src/ExpatXmlRpcRequestProcessor.h
  1362. * src/Makefile.am
  1363. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1364. Added tests for addTorrent and addMetalink command.
  1365. * test/TestUtil.cc
  1366. * test/TestUtil.h
  1367. * test/XmlRpcMethodTest.cc
  1368. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1369. Corrected the description of --file-allocation option.
  1370. * doc/aria2c.1.txt
  1371. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1372. Added tellAll command.
  1373. * src/XmlRpcMethodFactory.cc
  1374. * src/XmlRpcMethodImpl.cc
  1375. * src/XmlRpcMethodImpl.h
  1376. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1377. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  1378. * src/XmlRpcMethodImpl.cc
  1379. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1380. Added changeGlobalOption command. Currently,
  1381. max-overall-download-limit and max-overall-upload-limit option are
  1382. available.
  1383. * src/RequestGroupMan.h
  1384. * src/XmlRpcMethod.cc
  1385. * src/XmlRpcMethod.h
  1386. * src/XmlRpcMethodFactory.cc
  1387. * src/XmlRpcMethodImpl.cc
  1388. * src/XmlRpcMethodImpl.h
  1389. * test/XmlRpcMethodTest.cc
  1390. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1391. Added changeOption command. Currently, max-download-limit,
  1392. max-upload-limit option are available in this command.
  1393. * src/RequestGroup.h
  1394. * src/XmlRpcMethod.cc
  1395. * src/XmlRpcMethod.h
  1396. * src/XmlRpcMethodFactory.cc
  1397. * src/XmlRpcMethodImpl.cc
  1398. * src/XmlRpcMethodImpl.h
  1399. * test/XmlRpcMethodTest.cc
  1400. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1401. Added purgeDownloadResult command.
  1402. * src/RequestGroupMan.cc
  1403. * src/RequestGroupMan.h
  1404. * src/XmlRpcMethodFactory.cc
  1405. * src/XmlRpcMethodImpl.cc
  1406. * src/XmlRpcMethodImpl.h
  1407. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1408. Refactored.
  1409. * src/XmlRpcMethod.cc
  1410. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1411. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  1412. XmlRpcResponse.
  1413. * src/HttpServerBodyCommand.cc
  1414. * src/Makefile.am
  1415. * src/XmlRpcMethod.cc
  1416. * src/XmlRpcMethod.h
  1417. * src/XmlRpcMethodImpl.cc
  1418. * src/XmlRpcResponse.cc
  1419. * src/XmlRpcResponse.h
  1420. * test/XmlRpcMethodTest.cc
  1421. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1422. In XML-RPC option struct, header and index-out option can take
  1423. array as value.
  1424. * src/XmlRpcMethod.cc
  1425. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1426. Removed unused option member from PeerConnection.
  1427. * src/InitiatorMSEHandshakeCommand.cc
  1428. * src/PeerConnection.cc
  1429. * src/PeerConnection.h
  1430. * src/PeerInteractionCommand.cc
  1431. * src/PeerReceiveHandshakeCommand.cc
  1432. * src/ReceiverMSEHandshakeCommand.cc
  1433. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1434. Added "seeder" key to getPeers response.
  1435. * src/XmlRpcMethodImpl.cc
  1436. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1437. Added addMetalink XML-RPC command.
  1438. * src/XmlRpcMethodFactory.cc
  1439. * src/XmlRpcMethodImpl.cc
  1440. * src/XmlRpcMethodImpl.h
  1441. * src/download_helper.cc
  1442. * src/download_helper.h
  1443. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1444. Fixed the bug that POU peers are never choked in seeding.
  1445. * src/BtSeederStateChoke.cc
  1446. * src/BtSeederStateChoke.h
  1447. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1448. Added web-seeding URI handling in addTorrent command.
  1449. * src/XmlRpcMethodImpl.cc
  1450. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1451. Added "length" key to getFiles response.
  1452. * src/XmlRpcMethodImpl.cc
  1453. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1454. Moved --no-netrc option from ftp option section to http/ftp option
  1455. section.
  1456. * doc/aria2c.1.txt
  1457. * src/OptionHandlerFactory.cc
  1458. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1459. Removed garbage "\" character before '
  1460. * doc/aria2c.1.txt
  1461. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1462. Removed garbage "\" character before http.
  1463. * doc/aria2c.1.txt
  1464. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1465. Documented additional options that can be specified in -i list.
  1466. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  1467. and --xml-rpc-passwd. Removed --enable-http-server and
  1468. --http-server-listen-port.
  1469. * doc/aria2c.1.txt
  1470. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1471. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  1472. * src/DefaultPeerStorage.cc
  1473. * src/DefaultPeerStorage.h
  1474. * src/PeerStorage.h
  1475. * src/XmlRpcMethodImpl.cc
  1476. * test/MockPeerStorage.h
  1477. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1478. Put a call to Socket::isReadable() in try block.
  1479. * src/HttpServerBodyCommand.cc
  1480. * src/HttpServerCommand.cc
  1481. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1482. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  1483. exception , so it is now in try block.
  1484. * src/HttpServerResponseCommand.cc
  1485. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1486. Added "amChoking" and "peerChoking" key in getPeers response.
  1487. * src/XmlRpcMethodImpl.cc
  1488. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1489. Added test case for zero-length filter.
  1490. * test/BitfieldManTest.cc
  1491. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1492. getFiles command now returns file data for finished/stopped
  1493. downloads.
  1494. * src/XmlRpcMethodImpl.cc
  1495. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1496. DownloadResult now has the list of FileEntry. The download
  1497. summary displays the path of first selected file and the number of
  1498. remaining files for multi-file torrent.
  1499. * src/DownloadResult.h
  1500. * src/RequestGroup.cc
  1501. * src/RequestGroupMan.cc
  1502. * test/RequestGroupTest.cc
  1503. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1504. Fixed segmentation fault error when no file is selected in
  1505. multi-file torrent.
  1506. * src/BitfieldMan.cc
  1507. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1508. Escaped <,>,& character in XML-RPC response.
  1509. * src/XmlRpcMethod.cc
  1510. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1511. Throw DlAbortEx instead of FatalException during parsing options
  1512. because we don't want for aria2 to quit when bad option is passed
  1513. via XML-RPC.
  1514. * src/OptionHandlerException.cc
  1515. * src/OptionHandlerException.h
  1516. * src/OptionHandlerImpl.h
  1517. * src/OptionParser.cc
  1518. * src/OptionParser.h
  1519. * src/PStringSegment.cc
  1520. * src/ParameterizedStringParser.cc
  1521. * src/download_helper.cc
  1522. * test/ParameterizedStringParserTest.cc
  1523. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1524. Selecting files are now done in
  1525. DefaultBtContext::setFileFileter().
  1526. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  1527. functions are removed because they are no longer used. Creating
  1528. filter in BitfieldMan is done in new funtion
  1529. PieceStorage::setupFileFilter()
  1530. * src/BtContext.cc
  1531. * src/BtContext.h
  1532. * src/DefaultBtContext.cc
  1533. * src/DefaultBtContext.h
  1534. * src/DefaultPieceStorage.cc
  1535. * src/DefaultPieceStorage.h
  1536. * src/DiskAdaptor.cc
  1537. * src/DiskAdaptor.h
  1538. * src/PieceStorage.h
  1539. * src/RequestGroup.cc
  1540. * src/UnknownLengthPieceStorage.h
  1541. * src/XmlRpcMethodImpl.cc
  1542. * test/DefaultBtContextTest.cc
  1543. * test/MockBtContext.h
  1544. * test/MockPieceStorage.h
  1545. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1546. Fixed compile error on Mac OS X
  1547. * src/HttpServer.cc
  1548. * src/XmlRpcMethod.h
  1549. * src/XmlRpcMethodImpl.cc
  1550. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1551. Use std::binary_search instead of std::find
  1552. * src/DefaultPieceStorage.cc
  1553. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1554. Removed unnecessary BDE() call; leave them to implicit conversion.
  1555. * src/XmlRpcMethodImpl.cc
  1556. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1557. Return connections and gid in string
  1558. * src/XmlRpcMethodImpl.cc
  1559. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1560. Renamed addURI as addUri
  1561. * src/XmlRpcMethodFactory.cc
  1562. * src/XmlRpcMethodImpl.cc
  1563. * src/XmlRpcMethodImpl.h
  1564. * test/XmlRpcMethodTest.cc
  1565. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1566. Renamed addTorrentFile as addTorrent
  1567. * src/XmlRpcMethodFactory.cc
  1568. * src/XmlRpcMethodImpl.cc
  1569. * src/XmlRpcMethodImpl.h
  1570. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1571. The information for files, URIs, peers are removed from the
  1572. reponse of TellaActive, TellStatus command because they tend to be
  1573. large. Instead they can be retrieved by the dedicated commands:
  1574. getFiles, getUris and getPeers respectively.
  1575. * src/XmlRpcMethodFactory.cc
  1576. * src/XmlRpcMethodImpl.cc
  1577. * src/XmlRpcMethodImpl.h
  1578. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1579. Removed --max-overall-upload-limit and
  1580. --max-overall-download-limit option from listRequestOptions.
  1581. * src/download_helper.cc
  1582. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1583. Log incoming host in HttpListenCommand.
  1584. * src/HttpListenCommand.cc
  1585. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1586. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  1587. --xml-rpc-passwd option.
  1588. * src/HttpServer.cc
  1589. * src/HttpServer.h
  1590. * src/HttpServerCommand.cc
  1591. * src/OptionHandlerFactory.cc
  1592. * src/prefs.cc
  1593. * src/prefs.h
  1594. * src/usage_text.h
  1595. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1596. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  1597. processing 0 length request.
  1598. * src/HttpServerBodyCommand.cc
  1599. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1600. Removed --enable-http-server and --http-server-listen-port
  1601. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  1602. instead. The original feature for --enable-http-server that
  1603. reports download progress in HTML was officially removed. Persist
  1604. XML-RPC connection if client supports keep-alive.
  1605. * src/DownloadEngineFactory.cc
  1606. * src/HttpServerCommand.cc
  1607. * src/HttpServerResponseCommand.cc
  1608. * src/Makefile.am
  1609. * src/Makefile.in
  1610. * src/OptionHandlerFactory.cc
  1611. * src/RequestGroupMan.cc
  1612. * src/main.cc
  1613. * src/option_processing.cc
  1614. * src/prefs.cc
  1615. * src/prefs.h
  1616. * src/usage_text.h
  1617. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1618. Added "uris" key to the response of tellStatus command. Added
  1619. "connections" key to the response of tellStatus and tellActive
  1620. command.
  1621. * src/XmlRpcMethodImpl.cc
  1622. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1623. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  1624. Added TellStatusXmlRpcMethod. Remove command can now remove
  1625. waiting RequestGroup.
  1626. * src/RequestGroupMan.cc
  1627. * src/RequestGroupMan.h
  1628. * src/XmlRpcMethodFactory.cc
  1629. * src/XmlRpcMethodImpl.cc
  1630. * src/XmlRpcMethodImpl.h
  1631. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1632. Initialized _peerId
  1633. * src/Peer.cc
  1634. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1635. Return fault structure for error. FailXmlRpcMethod is renamed as
  1636. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  1637. in non-torrent download. Return single param value.
  1638. * src/XmlRpcMethod.cc
  1639. * src/XmlRpcMethodFactory.cc
  1640. * src/XmlRpcMethodImpl.cc
  1641. * src/XmlRpcMethodImpl.h
  1642. * test/XmlRpcMethodTest.cc
  1643. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1644. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  1645. command.
  1646. * src/RequestGroup.cc
  1647. * src/RequestGroup.h
  1648. * src/RequestGroupMan.cc
  1649. * src/XmlRpcMethodImpl.cc
  1650. * test/RequestGroupTest.cc
  1651. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1652. Added more options that can be specified in -i list and xml-rpc
  1653. add* command.
  1654. * src/download_helper.h
  1655. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1656. The available options in -i list should be listed in
  1657. listRequestOptions().
  1658. * src/download_helper.cc
  1659. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1660. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  1661. command.
  1662. * src/XmlRpcMethodImpl.cc
  1663. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1664. Now RequestGroup has its own copy of Option object. This will help
  1665. to give custom option for each RequestGroup.
  1666. addTorrentFile command now takes options.
  1667. * src/AbstractCommand.cc
  1668. * src/AbstractCommand.h
  1669. * src/AbstractProxyRequestCommand.cc
  1670. * src/ActivePeerConnectionCommand.cc
  1671. * src/ActivePeerConnectionCommand.h
  1672. * src/AdaptiveURISelector.cc
  1673. * src/BtCheckIntegrityEntry.cc
  1674. * src/BtDependency.cc
  1675. * src/BtDependency.h
  1676. * src/BtFileAllocationEntry.cc
  1677. * src/BtPostDownloadHandler.cc
  1678. * src/CheckIntegrityEntry.cc
  1679. * src/DownloadCommand.cc
  1680. * src/FtpDownloadCommand.cc
  1681. * src/FtpFinishDownloadCommand.cc
  1682. * src/FtpInitiateConnectionCommand.cc
  1683. * src/FtpNegotiationCommand.cc
  1684. * src/HttpInitiateConnectionCommand.cc
  1685. * src/HttpRequestCommand.cc
  1686. * src/HttpResponseCommand.cc
  1687. * src/HttpSkipResponseCommand.cc
  1688. * src/InitiateConnectionCommand.cc
  1689. * src/InitiateConnectionCommandFactory.cc
  1690. * src/InitiatorMSEHandshakeCommand.cc
  1691. * src/InitiatorMSEHandshakeCommand.h
  1692. * src/Metalink2RequestGroup.cc
  1693. * src/Metalink2RequestGroup.h
  1694. * src/MetalinkPostDownloadHandler.cc
  1695. * src/MultiUrlRequestInfo.cc
  1696. * src/MultiUrlRequestInfo.h
  1697. * src/PeerAbstractCommand.cc
  1698. * src/PeerInteractionCommand.cc
  1699. * src/PeerInteractionCommand.h
  1700. * src/PeerReceiveHandshakeCommand.cc
  1701. * src/PeerReceiveHandshakeCommand.h
  1702. * src/RequestGroup.cc
  1703. * src/RequestGroup.h
  1704. * src/TrackerWatcherCommand.cc
  1705. * src/TrackerWatcherCommand.h
  1706. * src/XmlRpcMethod.cc
  1707. * src/XmlRpcMethod.h
  1708. * src/XmlRpcMethodImpl.cc
  1709. * src/download_helper.cc
  1710. * src/download_helper.h
  1711. * src/main.cc
  1712. * test/BtDependencyTest.cc
  1713. * test/BtPostDownloadHandlerTest.cc
  1714. * test/DefaultBtMessageDispatcherTest.cc
  1715. * test/DownloadHandlerFactoryTest.cc
  1716. * test/DownloadHelperTest.cc
  1717. * test/Metalink2RequestGroupTest.cc
  1718. * test/MetalinkPostDownloadHandlerTest.cc
  1719. * test/RequestGroupManTest.cc
  1720. * test/RequestGroupTest.cc
  1721. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1722. Added tellActiveStatus xml-rpc command which reports download
  1723. status of active downloads.
  1724. * src/XmlRpcMethodFactory.cc
  1725. * src/XmlRpcMethodImpl.cc
  1726. * src/XmlRpcMethodImpl.h
  1727. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1728. Added addTorrentFile xml-rpc command which receives uploaded
  1729. torrent file and add download for it.
  1730. * src/RequestGroupMan.cc
  1731. * src/XmlRpcMethodFactory.cc
  1732. * src/XmlRpcMethodImpl.cc
  1733. * src/XmlRpcMethodImpl.h
  1734. * src/download_helper.cc
  1735. * src/download_helper.h
  1736. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1737. Added remove xml-rpc command which removes specified download.
  1738. There is a known issue: the removed unfinished downloads are
  1739. reported ERR when aria2 exits. They should be reported as INPR.
  1740. * src/RequestGroupMan.cc
  1741. * src/RequestGroupMan.h
  1742. * src/XmlRpcMethodFactory.cc
  1743. * src/XmlRpcMethodImpl.cc
  1744. * src/XmlRpcMethodImpl.h
  1745. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1746. If --enable-http-server is enabled, don't stop aria2 when all
  1747. download finished and don't quit when no files to download at
  1748. start up.
  1749. * src/RequestGroupMan.cc
  1750. * src/main.cc
  1751. * src/option_processing.cc
  1752. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1753. Added missing AM_CONDITIONAL
  1754. * configure.ac
  1755. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1756. Added xml-rpc functionality. Currently only addURI commad is
  1757. supported. To enable xml-rpc, run aria2 with
  1758. --enable-http-server. This option name is temporal and will be
  1759. changed. The feature that reports download progress in html format
  1760. is temporarily disabled.
  1761. * src/HttpServer.cc
  1762. * src/HttpServer.h
  1763. * src/HttpServerBodyCommand.cc
  1764. * src/HttpServerBodyCommand.h
  1765. * src/HttpServerCommand.cc
  1766. * src/HttpServerResponseCommand.cc
  1767. * src/Makefile.am
  1768. * src/OptionParser.cc
  1769. * src/OptionParser.h
  1770. * src/RequestGroupMan.cc
  1771. * src/RequestGroupMan.h
  1772. * src/XmlRpcMethod.cc
  1773. * src/XmlRpcMethod.h
  1774. * src/XmlRpcMethodFactory.cc
  1775. * src/XmlRpcMethodFactory.h
  1776. * src/XmlRpcMethodImpl.cc
  1777. * src/XmlRpcMethodImpl.h
  1778. * src/download_helper.cc
  1779. * src/download_helper.h
  1780. * test/Makefile.am
  1781. * test/XmlRpcMethodTest.cc
  1782. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1783. Added xml-rpc request parser. The supported value types are:
  1784. i4/int, string, double, struct, array, base64. Currently only
  1785. libxml2 version is provided.
  1786. * src/Xml2XmlRpcRequestProcessor.cc
  1787. * src/Xml2XmlRpcRequestProcessor.h
  1788. * src/XmlRpcElements.cc
  1789. * src/XmlRpcElements.h
  1790. * src/XmlRpcRequest.h
  1791. * src/XmlRpcRequestParserController.cc
  1792. * src/XmlRpcRequestParserController.h
  1793. * src/XmlRpcRequestParserState.h
  1794. * src/XmlRpcRequestParserStateImpl.cc
  1795. * src/XmlRpcRequestParserStateImpl.h
  1796. * src/XmlRpcRequestParserStateMachine.cc
  1797. * src/XmlRpcRequestParserStateMachine.h
  1798. * src/XmlRpcRequestProcessor.h
  1799. * test/XmlRpcRequestParserControllerTest.cc
  1800. * test/XmlRpcRequestProcessorTest.cc
  1801. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1802. * Release 1.3.3
  1803. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1804. Fixed compile error since r1202.
  1805. * src/ExpatMetalinkProcessor.cc
  1806. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1807. Updated Ukrainian, Russian and Simplified Chinese
  1808. translations. Thanks to all translators.
  1809. * po/ru.po
  1810. * po/uk.po
  1811. * po/zh_CN.po
  1812. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1813. Pass reference of Option object instead of pointer.
  1814. * src/download_helper.cc
  1815. * src/download_helper.h
  1816. * src/main.cc
  1817. * test/DownloadHelperTest.cc
  1818. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1819. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  1820. from option directly. Instead, get them from RequestGroup.
  1821. * src/ActivePeerConnectionCommand.cc
  1822. * src/ActivePeerConnectionCommand.h
  1823. * src/PeerReceiveHandshakeCommand.cc
  1824. * src/RequestGroup.h
  1825. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1826. Removed unused uploadLimitCheck and uploadLimit from
  1827. PeerAbstractCommand. Removed unused maxDownloadLimit from
  1828. PeerInteractionCommand.
  1829. * src/PeerAbstractCommand.cc
  1830. * src/PeerAbstractCommand.h
  1831. * src/PeerInteractionCommand.cc
  1832. * src/PeerInteractionCommand.h
  1833. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1834. Fixed broken file renaming feature since r1202.
  1835. * src/FtpNegotiationCommand.cc
  1836. * src/FtpNegotiationCommand.h
  1837. * src/HttpResponseCommand.cc
  1838. * src/RequestGroup.cc
  1839. * src/RequestGroup.h
  1840. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1841. Removed unused debug log
  1842. * src/SocketCore.cc
  1843. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1844. Generated configure and Makefile.in using autoconf 2.63 and
  1845. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  1846. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  1847. * configure.ac
  1848. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1849. Moved piece statistics stuff to new PieceStatMan class.
  1850. Refactored PieceSelector interface.
  1851. * src/DefaultPieceStorage.cc
  1852. * src/DefaultPieceStorage.h
  1853. * src/LongestSequencePieceSelector.cc
  1854. * src/LongestSequencePieceSelector.h
  1855. * src/Makefile.am
  1856. * src/PieceSelector.h
  1857. * src/PieceStatMan.cc
  1858. * src/PieceStatMan.h
  1859. * src/RarestPieceSelector.cc
  1860. * src/RarestPieceSelector.h
  1861. * src/RequestGroup.cc
  1862. * test/DefaultPieceStorageTest.cc
  1863. * test/InOrderPieceSelector.h
  1864. * test/Makefile.am
  1865. * test/PieceStatManTest.cc
  1866. * test/RarestPieceSelectorTest.cc
  1867. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1868. Added static member _protocolFamily to SocketCore. By default,
  1869. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  1870. address. Sometime SocketCore::bind() and
  1871. SocketCore::establishConnection() use difference protocl family
  1872. and latter cannot connect to former. To avoid this situation, we
  1873. limit protocol family to AF_INET for unit tests.
  1874. * src/SocketCore.cc
  1875. * src/SocketCore.h
  1876. * test/AllTest.cc
  1877. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1878. Avoid std::bad_alloc for negative bencode string length.
  1879. * src/bencode.cc
  1880. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1881. Supported segmented downloading with chunked transfer encoding and
  1882. content-length.
  1883. * src/DownloadCommand.cc
  1884. * src/HttpResponseCommand.cc
  1885. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1886. Bump up version number to 1.3.3
  1887. * configure.ac
  1888. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1889. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  1890. from 4096 to 65536 (for insanely large ftp login banners)
  1891. * src/FtpConnection.h
  1892. * test/FtpConnectionTest.cc
  1893. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1894. In DefaultBtContext::getActualBasePath(), return first
  1895. FileEntry::getPath() for single file torrent.
  1896. * src/DefaultBtContext.cc
  1897. * test/DefaultBtContextTest.cc
  1898. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1899. Removed directIOAllowed() from BinaryStream, DiskWriter,
  1900. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  1901. Removed _directIOAllowed member from DiskWriter.
  1902. * src/AbstractDiskWriter.cc
  1903. * src/AbstractDiskWriter.h
  1904. * src/AbstractSingleDiskAdaptor.cc
  1905. * src/AbstractSingleDiskAdaptor.h
  1906. * src/BinaryStream.h
  1907. * src/ByteArrayDiskWriter.h
  1908. * src/DefaultPieceStorage.cc
  1909. * src/DiskWriter.h
  1910. * src/MultiDiskAdaptor.cc
  1911. * src/MultiDiskAdaptor.h
  1912. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1913. Now the constructor of AbstractDiskWriter takes filename as an
  1914. argument and filename argument is removed from openFile(),
  1915. initAndOpenFile(), openExistingFile() interface. storeDir member
  1916. and its accessor functions are removed from DiskAdaptor because it
  1917. is not used anymore. size() member function of DefaultDiskWriter,
  1918. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  1919. opening file.
  1920. * src/AbstractDiskWriter.cc
  1921. * src/AbstractDiskWriter.h
  1922. * src/AbstractSingleDiskAdaptor.cc
  1923. * src/AbstractSingleDiskAdaptor.h
  1924. * src/ByteArrayDiskWriter.cc
  1925. * src/ByteArrayDiskWriter.h
  1926. * src/ByteArrayDiskWriterFactory.cc
  1927. * src/ByteArrayDiskWriterFactory.h
  1928. * src/DefaultDiskWriter.cc
  1929. * src/DefaultDiskWriter.h
  1930. * src/DefaultDiskWriterFactory.cc
  1931. * src/DefaultDiskWriterFactory.h
  1932. * src/DefaultPieceStorage.cc
  1933. * src/DirectDiskAdaptor.cc
  1934. * src/DirectDiskAdaptor.h
  1935. * src/DiskAdaptor.h
  1936. * src/DiskWriter.h
  1937. * src/DiskWriterFactory.h
  1938. * src/MessageDigestHelper.cc
  1939. * src/MultiDiskAdaptor.cc
  1940. * src/RequestGroup.cc
  1941. * src/UnknownLengthPieceStorage.cc
  1942. * src/Util.cc
  1943. * test/DefaultDiskWriterTest.cc
  1944. * test/DirectDiskAdaptorTest.cc
  1945. * test/FallocFileAllocationIteratorTest.cc
  1946. * test/MessageDigestHelperTest.cc
  1947. * test/MetalinkProcessorTest.cc
  1948. * test/MultiDiskAdaptorTest.cc
  1949. * test/MultiFileAllocationIteratorTest.cc
  1950. * test/SingleFileAllocationIteratorTest.cc
  1951. * test/UtilTest.cc
  1952. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1953. Fixed the bug that aria2 aborts when --select-file is used. This
  1954. bug was introduced in r1199.
  1955. * src/MultiDiskAdaptor.cc
  1956. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1957. Code cleanup
  1958. * test/MockPieceStorage.cc
  1959. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1960. Fixed the bug that read-only file with wrong file size will cause
  1961. error because it cannot be truncated to the correct size. Now if
  1962. file size is different than the expected one, re-open file in
  1963. writable mode.
  1964. * src/AbstractSingleDiskAdaptor.cc
  1965. * src/AbstractSingleDiskAdaptor.h
  1966. * src/BtCheckIntegrityEntry.cc
  1967. * src/DiskAdaptor.h
  1968. * src/MultiDiskAdaptor.h
  1969. * src/RequestGroup.cc
  1970. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1971. Fixed the bug that with --check-integrity option aria2 reports
  1972. downloaded file size is 0 even if some parts of file is correctly
  1973. downloaded. This bug is reproducible for the download that a file
  1974. includes last piece is missing. This bug doesn't reveal for
  1975. single-torrent with file allocation on.
  1976. * src/IteratableChecksumValidator.cc
  1977. * test/IteratableChecksumValidatorTest.cc
  1978. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1979. Avoid circular reference between RequestGroup and AdaptiveURISelector
  1980. * src/RequestGroupMan.cc
  1981. * src/AdaptiveURISelector.cc
  1982. * src/AdaptiveURISelector.h
  1983. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1984. * Release 1.3.2
  1985. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1986. Updated README
  1987. * README
  1988. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1989. Updated Ukrainian translations. Thanks to Alexander10.
  1990. * po/uk.po
  1991. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1992. Code cleanup
  1993. * src/MetalinkParserStateMachine.cc
  1994. * src/MetalinkParserStateMachine.h
  1995. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1996. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  1997. and expat simultaneously, MetalinkProcessor is now not base class
  1998. and it is directly implemented in XML2SAXMetalinkProcessor and
  1999. ExpatMetalinkProcessor.
  2000. * src/ExpatMetalinkProcessor.cc
  2001. * src/ExpatMetalinkProcessor.h
  2002. * src/Makefile.am
  2003. * src/MetalinkHelper.cc
  2004. * src/MetalinkProcessor.h
  2005. * src/MetalinkProcessorFactory.cc: Removed.
  2006. * src/MetalinkProcessorFactory.h: Removed
  2007. * src/XML2SAXMetalinkProcessor.cc
  2008. * src/XML2SAXMetalinkProcessor.h
  2009. * test/MetalinkProcessorTest.cc
  2010. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2011. Bump up version number to 1.3.2
  2012. * configure.ac
  2013. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2014. Added missing file.
  2015. * test/Makefile.am
  2016. * test/url-list-singleFileEndsWithSlash.torrent
  2017. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2018. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  2019. request.
  2020. * src/AnnounceList.cc
  2021. * src/AnnounceList.h
  2022. * src/BDE.cc: Added
  2023. * src/BDE.h: Added
  2024. * src/DHTAbstractMessage.cc
  2025. * src/DHTAbstractMessage.h
  2026. * src/DHTAnnouncePeerMessage.cc
  2027. * src/DHTAnnouncePeerMessage.h
  2028. * src/DHTAnnouncePeerReplyMessage.cc
  2029. * src/DHTAnnouncePeerReplyMessage.h
  2030. * src/DHTFindNodeMessage.cc
  2031. * src/DHTFindNodeMessage.h
  2032. * src/DHTFindNodeReplyMessage.cc
  2033. * src/DHTFindNodeReplyMessage.h
  2034. * src/DHTGetPeersMessage.cc
  2035. * src/DHTGetPeersMessage.h
  2036. * src/DHTGetPeersReplyMessage.cc
  2037. * src/DHTGetPeersReplyMessage.h
  2038. * src/DHTMessageFactory.h
  2039. * src/DHTMessageFactoryImpl.cc
  2040. * src/DHTMessageFactoryImpl.h
  2041. * src/DHTMessageReceiver.cc
  2042. * src/DHTMessageTracker.cc
  2043. * src/DHTMessageTracker.h
  2044. * src/DHTPingMessage.cc
  2045. * src/DHTPingMessage.h
  2046. * src/DHTPingReplyMessage.cc
  2047. * src/DHTPingReplyMessage.h
  2048. * src/DHTQueryMessage.cc
  2049. * src/DHTQueryMessage.h
  2050. * src/DHTResponseMessage.cc
  2051. * src/DHTResponseMessage.h
  2052. * src/DefaultBtAnnounce.cc
  2053. * src/DefaultBtContext.cc
  2054. * src/DefaultBtContext.h
  2055. * src/HandshakeExtensionMessage.cc
  2056. * src/Makefile.am
  2057. * src/PeerListProcessor.h
  2058. * src/UTPexExtensionMessage.cc
  2059. * src/bencode.cc
  2060. * src/bencode.h
  2061. * test/AnnounceListTest.cc
  2062. * test/BDETest.cc: Added
  2063. * test/BencodeTest.cc
  2064. * test/DHTAnnouncePeerMessageTest.cc
  2065. * test/DHTAnnouncePeerReplyMessageTest.cc
  2066. * test/DHTFindNodeMessageTest.cc
  2067. * test/DHTFindNodeReplyMessageTest.cc
  2068. * test/DHTGetPeersMessageTest.cc
  2069. * test/DHTGetPeersReplyMessageTest.cc
  2070. * test/DHTMessageFactoryImplTest.cc
  2071. * test/DHTMessageTrackerTest.cc
  2072. * test/DHTPingMessageTest.cc
  2073. * test/DHTPingReplyMessageTest.cc
  2074. * test/Makefile.am
  2075. * test/MockDHTMessageFactory.h
  2076. * test/PeerListProcessorTest.cc
  2077. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2078. Use url-list (web-seeding) only for single-file torrent. This is
  2079. basically the same behavior with Metalink file with torrent and
  2080. URIs.
  2081. * src/RequestGroup.cc
  2082. * src/DefaultBtContext.cc
  2083. * test/DefaultBtContextTest.cc
  2084. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2085. Rewritten expr
  2086. * src/array_fun.h
  2087. * test/array_funTest.cc
  2088. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2089. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  2090. * src/DefaultBtMessageDispatcher.cc
  2091. * src/a2algo.h
  2092. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2093. Removed ExtendedMessagingAware. Instead of using inheritance,
  2094. added ExtensionMessageRegistry and it is passed to
  2095. DefaultExtensionMessageFactory.
  2096. * src/DefaultBtInteractive.cc
  2097. * src/DefaultBtInteractive.h
  2098. * src/DefaultExtensionMessageFactory.cc
  2099. * src/DefaultExtensionMessageFactory.h
  2100. * src/ExtendedMessagingAware.h: Removed.
  2101. * src/ExtensionMessageFactory.h
  2102. * src/ExtensionMessageRegistry.h: Added.
  2103. * src/Makefile.am
  2104. * src/PeerInteractionCommand.cc
  2105. * test/DefaultExtensionMessageFactoryTest.cc
  2106. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2107. Fixed typo in log messages
  2108. * src/MSEHandshake.cc
  2109. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2110. Fixed the bug that prevents torrent download from finishing. The
  2111. bug doesn't reveal for all torrents. The torrents affected this
  2112. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  2113. of pieces.
  2114. * src/bitfield.h
  2115. * test/bitfieldTest.cc
  2116. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2117. Code cleanup
  2118. * src/PeerListProcessor.h
  2119. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2120. Removed RequestGroupAware
  2121. * src/AbstractCommand.cc
  2122. * src/AbstractCommand.h
  2123. * src/ActivePeerConnectionCommand.cc
  2124. * src/ActivePeerConnectionCommand.h
  2125. * src/DHTGetPeersCommand.cc
  2126. * src/DHTGetPeersCommand.h
  2127. * src/InitiatorMSEHandshakeCommand.cc
  2128. * src/InitiatorMSEHandshakeCommand.h
  2129. * src/Makefile.am
  2130. * src/PeerInitiateConnectionCommand.cc
  2131. * src/PeerInitiateConnectionCommand.h
  2132. * src/PeerInteractionCommand.cc
  2133. * src/PeerInteractionCommand.h
  2134. * src/RealtimeCommand.cc
  2135. * src/RealtimeCommand.h
  2136. * src/RequestGroupAware.cc: Removed
  2137. * src/RequestGroupAware.h: Removed
  2138. * src/SeedCheckCommand.cc
  2139. * src/SeedCheckCommand.h
  2140. * src/SleepCommand.cc
  2141. * src/TrackerWatcherCommand.cc
  2142. * src/TrackerWatcherCommand.h
  2143. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2144. Rewritten PeerListProcessor
  2145. * src/PeerListProcessor.h
  2146. * src/CompactPeerListProcessor.h: Removed
  2147. * src/CompactPeerListProcessor.cc: Removed
  2148. * src/DelegatingPeerListProcessor.cc: Removed.
  2149. * src/DefaultBtAnnounce.cc
  2150. * src/Makefile.am
  2151. * src/UTPexExtensionMessage.cc
  2152. * src/DefaultPeerListProcessor.h: Removed.
  2153. * src/DefaultPeerListProcessor.cc: Removed.
  2154. * src/DelegatingPeerListProcessor.h: Removed.
  2155. * test/Makefile.am
  2156. * test/PeerListProcessorTest.cc
  2157. * test/DefaultPeerListProcessorTest.cc: Removed.
  2158. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2159. Rewritten RequestGroupMan::calculateStat()
  2160. * src/RequestGroupMan.cc
  2161. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2162. Removed unnecessary virtual destructor for Request class.
  2163. * src/Request.cc
  2164. * src/Request.h
  2165. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2166. Avoid dynamic_pointer_cast.
  2167. * src/DHTGetPeersCommand.cc
  2168. * src/DHTGetPeersCommand.h
  2169. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2170. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  2171. BtEvent.
  2172. * src/AbstractBtEventListener.h: Removed.
  2173. * src/AbstractBtMessage.cc
  2174. * src/AbstractBtMessage.h
  2175. * src/BtAbortOutstandingRequestEvent.h
  2176. * src/BtCancelSendingPieceEvent.h
  2177. * src/BtChokedEvent.h: Removed.
  2178. * src/BtChokingEvent.h
  2179. * src/BtEvent.h: Removed
  2180. * src/BtEventListener.h: Removed.
  2181. * src/BtMessage.h
  2182. * src/BtPieceMessage.cc
  2183. * src/BtPieceMessage.h
  2184. * src/BtRequestMessage.cc
  2185. * src/BtRequestMessage.h
  2186. * src/DefaultBtMessageDispatcher.cc
  2187. * src/Makefile.am
  2188. * src/a2functional.h
  2189. * test/BtPieceMessageTest.cc
  2190. * test/BtRequestMessageTest.cc
  2191. * test/DefaultBtMessageDispatcherTest.cc
  2192. * test/MockBtMessage.h
  2193. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2194. Code cleanup
  2195. * src/RequestGroupMan.cc
  2196. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2197. Code cleanup
  2198. * src/DownloadCommand.cc
  2199. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2200. Fixed segmentation fault when GZipDecoder::decode() returns 0
  2201. byte.
  2202. * src/DownloadCommand.cc
  2203. * src/bitfield.h
  2204. * test/bitfieldTest.cc
  2205. Fixed the bug that causes infinite loop if broken web server
  2206. returns chunked response without last "0" chunk-size marker and
  2207. closes connection.
  2208. * src/DownloadCommand.cc
  2209. Instantiate properly configured HttpDownloadCommand for
  2210. non-resumable downlaods.
  2211. * src/HttpResponseCommand.cc
  2212. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2213. Rewritten array operation functions.
  2214. * src/BitfieldMan.cc
  2215. * src/array_fun.h
  2216. * test/array_funTest.cc
  2217. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2218. Removed unused variable 'query'
  2219. * src/Request.cc
  2220. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2221. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  2222. accidentally set to false in r1162.
  2223. * configure.ac
  2224. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2225. Code cleanup
  2226. * src/BNode.cc
  2227. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2228. Increase prefixLength for the bucket which doesn't own local node
  2229. ID when splitting bucket.
  2230. * src/DHTBucket.cc
  2231. * test/DHTBucketTest.cc
  2232. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2233. * Release 1.3.1
  2234. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2235. Bump up version number to 1.3.1
  2236. * configure.ac
  2237. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2238. Removed unused variable checkPoint. Also removed include directive
  2239. for TimeA2.h.
  2240. * src/SeedCheckCommand.h
  2241. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2242. Fixed the bug that upload limit exceeds the value specified in
  2243. --seed-ratio option depending on the timing of the execution of
  2244. SeedCheckCommand.
  2245. * src/SeedCheckCommand.cc
  2246. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2247. Fixed the bug that removed peer's session upload/download length
  2248. are counted twice in _cachedTransferStat before it is
  2249. re-calculated. This affected the calculation of shara ratio,
  2250. resulting aria2 wrongly determines that specified share ratio is
  2251. reached. Also fixed the typo in calculateStatFor function name.
  2252. * src/BtSetup.cc
  2253. * src/DefaultPeerStorage.cc
  2254. * src/ShareRatioSeedCriteria.h
  2255. * test/ShareRatioSeedCriteriaTest.cc
  2256. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2257. * Release 1.3.0
  2258. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2259. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  2260. Nynorsk translations. Thanks to all translators.
  2261. * po/es.po
  2262. * po/ja.po
  2263. * po/nn.po
  2264. * po/ru.po
  2265. * po/uk.po
  2266. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2267. Rewritten isInRange()
  2268. * src/DHTBucket.cc
  2269. * test/DHTBucketTest.cc
  2270. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2271. Fixed typo
  2272. * doc/aria2c.1.txt
  2273. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2274. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  2275. malloc/realloc is not used.
  2276. * src/configure.ac
  2277. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2278. BitfieldMan::getMissingIndexes family functions now takes unsigned
  2279. char* bitfield instead of stl container for efficiency.
  2280. PieceSelector::select now takes this
  2281. bitfield. RarestPieceSelector::select now also performs
  2282. efficiently for this change. bitfield namespace is introduced and
  2283. it has several helper functions to handle basic bitfield
  2284. operations such as test, count set bits, etc.
  2285. * src/BitfieldMan.cc
  2286. * src/BitfieldMan.h
  2287. * src/DefaultBtRequestFactory.cc
  2288. * src/DefaultPieceStorage.cc
  2289. * src/DefaultPieceStorage.h
  2290. * src/LongestSequencePieceSelector.cc
  2291. * src/LongestSequencePieceSelector.h
  2292. * src/Makefile.am
  2293. * src/Piece.cc
  2294. * src/Piece.h
  2295. * src/PieceSelector.h
  2296. * src/RarestPieceSelector.cc
  2297. * src/RarestPieceSelector.h
  2298. * src/Util.cc
  2299. * src/Util.h
  2300. * src/bitfield.h
  2301. * test/BitfieldManTest.cc
  2302. * test/LongestSequencePieceSelectorTest.cc
  2303. * test/Makefile.am
  2304. * test/RarestPieceSelectorTest.cc
  2305. * test/UtilTest.cc
  2306. * test/bitfieldTest.cc
  2307. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2308. Made accepted socket non-block.
  2309. * src/FtpNegotiationCommand.cc
  2310. * src/HttpListenCommand.cc
  2311. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2312. Guarded #ifdef HAVE_POSIX_FALLOCATE
  2313. * src/AbstractSingleDiskAdaptor.cc
  2314. * src/DefaultPieceStorage.cc
  2315. * src/DiskAdaptor.h
  2316. * src/DiskAdaptor.h
  2317. * src/MultiFileAllocationIterator.cc
  2318. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2319. Run
  2320. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  2321. in every 1 sec. The timeout of RequestSlot is 60s by default and
  2322. it doesn't need to be called every time when
  2323. DefaultBtInteractive::doInteractionProcessing() is called.
  2324. * src/DefaultBtInteractive.cc
  2325. * src/DefaultBtInteractive.h
  2326. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2327. Documented 'falloc' in man page.
  2328. * doc/aria2c.1.txt
  2329. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2330. Updated doc
  2331. * src/usage_text.h
  2332. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2333. Added 'falloc' parameter for --file-allocation option. 'falloc'
  2334. allocation mode uses posix_fallocate() system call to allocate
  2335. file on disk. If you are using newer file systems such as ext4
  2336. (with extents support), btrfs or xfs, 'falloc' is your best
  2337. choice. It allocates large(few GiB) files almost instantly. Don't
  2338. use 'falloc' with legacy file systems such as ext3 because it
  2339. takes almost same time as 'prealloc' and it blocks aria2 entirely
  2340. until allocation finishes. 'falloc' may not be available if your
  2341. system doesn't have posix_fallocate() system call.
  2342. * configure.ac
  2343. * src/AbstractDiskWriter.cc
  2344. * src/AbstractDiskWriter.h
  2345. * src/AbstractSingleDiskAdaptor.cc
  2346. * src/BinaryStream.h
  2347. * src/BtCheckIntegrityEntry.cc
  2348. * src/ByteArrayDiskWriter.h
  2349. * src/CheckIntegrityEntry.cc
  2350. * src/CheckIntegrityEntry.h
  2351. * src/DefaultPieceStorage.cc
  2352. * src/DiskAdaptor.cc
  2353. * src/DiskAdaptor.h
  2354. * src/DiskWriter.h
  2355. * src/FallocFileAllocationIterator.cc
  2356. * src/FallocFileAllocationIterator.h
  2357. * src/FileAllocationEntry.cc
  2358. * src/FileAllocationEntry.h
  2359. * src/Makefile.am
  2360. * src/MultiFileAllocationIterator.cc
  2361. * src/MultiFileAllocationIterator.h
  2362. * src/OptionHandlerFactory.cc
  2363. * src/RequestGroup.cc
  2364. * src/StreamCheckIntegrityEntry.cc
  2365. * src/prefs.cc
  2366. * src/prefs.h
  2367. * src/usage_text.h
  2368. * test/FallocFileAllocationIteratorTest.cc
  2369. * test/Makefile.am
  2370. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2371. Removed duplicate enableDirectIO() call.
  2372. * src/MultiFileAllocationIterator.cc
  2373. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2374. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  2375. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  2376. cost of std::rotate().
  2377. * src/RarestPieceSelector.cc
  2378. * src/RarestPieceSelector.h
  2379. * test/RarestPieceSelectorTest.cc
  2380. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2381. Updated usage doc for --bt-tracker-interval option.
  2382. * src/usage_text.h
  2383. * doc/aria2c.1.txt
  2384. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2385. Documented --bt-tracker-interval option in man page.
  2386. * doc/aria2c.1.txt
  2387. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2388. Added an option to specify the interval between tracker requests.
  2389. If non-zero value is specified, aria2 uses it and ignores the
  2390. interval value in the response of tracker. If zero is specified,
  2391. aria2 determines the inteval value based on the tarcker response
  2392. and download progress.
  2393. * src/DefaultBtAnnounce.cc
  2394. * src/DefaultBtAnnounce.h
  2395. * src/OptionHandlerFactory.cc
  2396. * src/RequestGroup.cc
  2397. * src/prefs.cc
  2398. * src/prefs.h
  2399. * src/usage_text.h
  2400. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2401. Added operator+=, operator-=, operator-
  2402. * src/TransferStat.cc
  2403. * src/TransferStat.h
  2404. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2405. Refactored RarestPieceSelector to reduce CPU load, especially for
  2406. addPieceStats.
  2407. * src/RarestPieceSelector.cc
  2408. * src/RarestPieceSelector.h
  2409. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2410. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  2411. getAllMissingBlockIndexes to reduce a call to
  2412. array_function_base::operator[].
  2413. * src/BitfieldMan.cc
  2414. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2415. Cached TransferStat/download speed to avoid to sum them up in each
  2416. call.
  2417. * src/DefaultPeerStorage.cc
  2418. * src/DefaultPeerStorage.h
  2419. * src/SegmentMan.cc
  2420. * src/SegmentMan.h
  2421. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2422. Typedefed cuid_t as int32_t in Command.h
  2423. * src/CUIDCounter.h
  2424. * src/Command.cc
  2425. * src/Command.h
  2426. * src/DownloadEngine.cc
  2427. * src/DownloadEngine.h
  2428. * src/PeerStat.h
  2429. * src/SegmentMan.cc
  2430. * src/SegmentMan.h
  2431. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2432. Reduced the number of calls to PeerStorage::calculateStat() and
  2433. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  2434. transfer rate.
  2435. * src/DefaultBtInteractive.cc
  2436. * src/DefaultBtMessageDispatcher.cc
  2437. * src/DefaultPeerStorage.cc
  2438. * src/DefaultPeerStorage.h
  2439. * src/DownloadCommand.cc
  2440. * src/DownloadEngine.cc
  2441. * src/PeerStorage.h
  2442. * src/SegmentMan.cc
  2443. * src/SegmentMan.h
  2444. * test/MockPeerStorage.h
  2445. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2446. Prepended _dir+"/" after joining path elements in torrent file.
  2447. * src/DefaultBtContext.cc
  2448. * test/DefaultBtContextTest.cc
  2449. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2450. Added missing IndexBtMessageValidator.h
  2451. * src/Makefile.am
  2452. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2453. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  2454. Chinese translations. Thank you for contributing our project.
  2455. * po/id.po
  2456. * po/it.po
  2457. * po/ru.po
  2458. * po/uk.po
  2459. * po/zh_CN.po
  2460. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2461. Updated README
  2462. * README
  2463. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2464. Bump up version number to 1.3.0
  2465. * configure.ac
  2466. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2467. Updated doc
  2468. * src/DefaultBtContext.h
  2469. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2470. Slice/joinPath for name of single torrent.
  2471. * src/DefaultBtContext.cc
  2472. * test/DefaultBtContextTest.cc
  2473. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2474. Updated man page: Documented --dry-run and --index-out
  2475. options. Changed the default value of --uri-selector and
  2476. --http-auth-challenge options. Removed --direct-file-mapping
  2477. option. Added example for --index-out
  2478. * doc/aria2c.1.txt
  2479. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2480. Updated TEXT_DRY_RUN
  2481. * src/usage_text.h
  2482. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2483. Changed the default value of --uri-selector option from 'inorder'
  2484. to 'feedback'
  2485. * src/OptionHandlerFactory.cc
  2486. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2487. Included current URI in exception message.
  2488. * src/AbstractCommand.cc
  2489. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2490. Renamed ServerStatURISelector as FeedbackURISelector.
  2491. * src/FeedbackURISelector.cc
  2492. * src/FeedbackURISelector.h
  2493. * src/Makefile.am
  2494. * src/RequestGroupMan.cc
  2495. * src/ServerStatURISelector.cc
  2496. * src/ServerStatURISelector.h
  2497. * test/FeedbackURISelectorTest.cc
  2498. * test/Makefile.am
  2499. * test/ServerStatURISelectorTest.cc
  2500. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2501. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  2502. all URIs are tested and their timeout is not reached.
  2503. * src/AdaptiveURISelector.cc
  2504. * src/AdaptiveURISelector.h
  2505. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2506. Changed the default value of --http-auth-challenge option to false.
  2507. * src/OptionHandlerFactory.cc
  2508. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2509. Reuse URIs when all unused URIs run out.
  2510. * src/OptionHandlerFactory.cc
  2511. * src/RequestGroup.cc
  2512. * src/prefs.cc
  2513. * src/prefs.h
  2514. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2515. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  2516. and BtRejectMessage are derived from RangeBtMessage class.
  2517. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  2518. derived from IndexBtMessage class. BtChokeMessage,
  2519. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  2520. BtNotInterestedMessage and BtUnchokeMessage are derived from
  2521. ZeroBtMessage class.
  2522. * src/AbstractBtMessage.cc
  2523. * src/AbstractBtMessage.h
  2524. * src/BtAllowedFastMessage.cc
  2525. * src/BtAllowedFastMessage.h
  2526. * src/BtAllowedFastMessageValidator.h: Removed
  2527. * src/BtBitfieldMessage.cc
  2528. * src/BtBitfieldMessage.h
  2529. * src/BtCancelMessage.cc
  2530. * src/BtCancelMessage.h
  2531. * src/BtCancelMessageValidator.h: Removed
  2532. * src/BtChokeMessage.cc
  2533. * src/BtChokeMessage.h
  2534. * src/BtExtendedMessage.cc
  2535. * src/BtExtendedMessage.h
  2536. * src/BtHandshakeMessage.cc
  2537. * src/BtHandshakeMessage.h
  2538. * src/BtHaveAllMessage.cc
  2539. * src/BtHaveAllMessage.h
  2540. * src/BtHaveMessage.cc
  2541. * src/BtHaveMessage.h
  2542. * src/BtHaveMessageValidator.h: Removed
  2543. * src/BtHaveNoneMessage.cc
  2544. * src/BtHaveNoneMessage.h
  2545. * src/BtInterestedMessage.cc
  2546. * src/BtInterestedMessage.h
  2547. * src/BtKeepAliveMessage.cc
  2548. * src/BtKeepAliveMessage.h
  2549. * src/BtNotInterestedMessage.cc
  2550. * src/BtNotInterestedMessage.h
  2551. * src/BtPieceMessage.cc
  2552. * src/BtPieceMessage.h
  2553. * src/BtPortMessage.cc
  2554. * src/BtPortMessage.h
  2555. * src/BtRejectMessage.cc
  2556. * src/BtRejectMessage.h
  2557. * src/BtRejectMessageValidator.h: Removed
  2558. * src/BtRequestMessage.cc
  2559. * src/BtRequestMessage.h
  2560. * src/BtRequestMessageValidator.h: Removed
  2561. * src/BtSuggestPieceMessage.cc
  2562. * src/BtSuggestPieceMessage.h
  2563. * src/BtSuggestPieceMessageValidator.h: Removed
  2564. * src/BtUnchokeMessage.cc
  2565. * src/BtUnchokeMessage.h
  2566. * src/DefaultBtMessageFactory.cc
  2567. * src/IndexBtMessage.cc
  2568. * src/IndexBtMessage.h
  2569. * src/IndexBtMessageValidator.h
  2570. * src/Makefile.am
  2571. * src/PeerMessageUtil.cc
  2572. * src/PeerMessageUtil.h
  2573. * src/RangeBtMessage.cc
  2574. * src/RangeBtMessage.h
  2575. * src/RangeBtMessageValidator.h
  2576. * src/SimpleBtMessage.cc
  2577. * src/SimpleBtMessage.h
  2578. * src/ZeroBtMessage.cc
  2579. * src/ZeroBtMessage.h
  2580. * test/BtRequestMessageTest.cc
  2581. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2582. Reverted usage_text.h to r1093 to avoid to lose translated
  2583. messages.
  2584. * src/usage_text.h
  2585. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2586. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  2587. declared as non-const previously is now const and defined in class
  2588. definition.
  2589. * src/AbstractBtMessage.cc
  2590. * src/AbstractBtMessage.h
  2591. * src/BtAllowedFastMessage.cc
  2592. * src/BtAllowedFastMessage.h
  2593. * src/BtBitfieldMessage.h
  2594. * src/BtCancelMessage.cc
  2595. * src/BtCancelMessage.h
  2596. * src/BtChokeMessage.cc
  2597. * src/BtChokeMessage.h
  2598. * src/BtExtendedMessage.cc
  2599. * src/BtExtendedMessage.h
  2600. * src/BtHandshakeMessage.cc
  2601. * src/BtHandshakeMessage.h
  2602. * src/BtHaveAllMessage.cc
  2603. * src/BtHaveAllMessage.h
  2604. * src/BtHaveMessage.cc
  2605. * src/BtHaveMessage.h
  2606. * src/BtHaveNoneMessage.cc
  2607. * src/BtHaveNoneMessage.h
  2608. * src/BtInterestedMessage.cc
  2609. * src/BtInterestedMessage.h
  2610. * src/BtKeepAliveMessage.cc
  2611. * src/BtKeepAliveMessage.h
  2612. * src/BtMessage.h
  2613. * src/BtNotInterestedMessage.cc
  2614. * src/BtNotInterestedMessage.h
  2615. * src/BtPieceMessage.h
  2616. * src/BtPortMessage.cc
  2617. * src/BtPortMessage.h
  2618. * src/BtRejectMessage.cc
  2619. * src/BtRejectMessage.h
  2620. * src/BtRequestMessage.cc
  2621. * src/BtRequestMessage.h
  2622. * src/BtSuggestPieceMessage.cc
  2623. * src/BtSuggestPieceMessage.h
  2624. * src/BtUnchokeMessage.cc
  2625. * src/BtUnchokeMessage.h
  2626. * src/SimpleBtMessage.cc
  2627. * src/SimpleBtMessage.h
  2628. * test/MockBtMessage.h
  2629. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2630. Use FileEntry::exists()
  2631. * src/MultiDiskAdaptor.cc
  2632. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2633. Added exists()
  2634. * src/FileEntry.cc
  2635. * src/FileEntry.h
  2636. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2637. Added missing prefix dir.
  2638. * src/download_helper.cc
  2639. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2640. Removed --direct-file-mapping option and CopyDiskAdaptor.
  2641. * src/CopyDiskAdaptor.cc: Removed
  2642. * src/CopyDiskAdaptor.h: Removed
  2643. * src/DefaultPieceStorage.cc
  2644. * src/Makefile.am
  2645. * src/OptionHandlerFactory.cc
  2646. * src/prefs.cc
  2647. * src/prefs.h
  2648. * src/usage_text.h
  2649. * test/CopyDiskAdaptorTest.cc: Removed
  2650. * test/Makefile.am
  2651. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2652. Rewritten isSameFileBeingDownloaded()
  2653. * src/RequestGroupMan.cc
  2654. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2655. Removed getName() from DownloadContext. getName() is declared in
  2656. BtContext.
  2657. * src/BtContext.h
  2658. * src/DownloadContext.h
  2659. * src/SingleFileDownloadContext.cc
  2660. * src/SingleFileDownloadContext.h
  2661. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  2662. in AbstractSingleDiskAdaptor.
  2663. * src/AbstractSingleDiskAdaptor.h
  2664. * src/DiskAdaptor.h
  2665. * src/MultiDiskAdaptor.h
  2666. * src/RequestGroup.cc
  2667. Removed setTopDir() and getTopDir() and getTopDirPath() from
  2668. MultiDiskAdaptor.
  2669. * src/DefaultPieceStorage.cc
  2670. * src/MultiDiskAdaptor.cc
  2671. * src/MultiDiskAdaptor.h
  2672. * test/MultiDiskAdaptorTest.cc
  2673. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2674. FileEntry::getPath() contains store(top level) directory to
  2675. simplify path handling operation. In the previous implementation,
  2676. store directory is concatenated to FileEntry::getPath() in
  2677. DownloadContext.
  2678. * src/BtDependency.cc
  2679. * src/BtPostDownloadHandler.cc
  2680. * src/CopyDiskAdaptor.cc
  2681. * src/DefaultBtContext.cc
  2682. * src/DirectDiskAdaptor.cc
  2683. * src/FileEntry.cc
  2684. * src/FileEntry.h
  2685. * src/FtpNegotiationCommand.cc
  2686. * src/HttpResponse.cc
  2687. * src/HttpResponseCommand.cc
  2688. * src/Metalink2RequestGroup.cc
  2689. * src/MultiDiskAdaptor.cc
  2690. * src/MultiDiskAdaptor.h
  2691. * src/MultiFileAllocationIterator.cc
  2692. * src/RequestGroup.cc
  2693. * src/SingleFileDownloadContext.cc
  2694. * src/SingleFileDownloadContext.h
  2695. * src/download_helper.cc
  2696. * test/BtDependencyTest.cc
  2697. * test/CopyDiskAdaptorTest.cc
  2698. * test/DefaultBtContextTest.cc
  2699. * test/DefaultBtProgressInfoFileTest.cc
  2700. * test/DirectDiskAdaptorTest.cc
  2701. * test/DownloadHelperTest.cc
  2702. * test/FileEntryTest.cc
  2703. * test/MultiDiskAdaptorTest.cc
  2704. * test/MultiFileAllocationIteratorTest.cc
  2705. * test/RequestGroupTest.cc
  2706. * test/SingleFileDownloadContextTest.cc
  2707. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2708. Fixed compiler warning
  2709. * src/download_helper.cc
  2710. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2711. Throw exception if same infohash torrent is now downloading.
  2712. * src/RequestGroup.cc
  2713. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2714. Added --dry-run option. In this mode, aria2 just checks whether
  2715. the remote file is available and doesn't download data. This
  2716. option has effect on HTTP/FTP downloads and BitTorrent downloads
  2717. are canceled in this mode.
  2718. * src/FtpNegotiationCommand.cc
  2719. * src/HttpResponseCommand.cc
  2720. * src/HttpResponseCommand.h
  2721. * src/OptionHandlerFactory.cc
  2722. * src/RequestGroup.cc
  2723. * src/RequestGroupMan.cc
  2724. * src/prefs.cc
  2725. * src/prefs.h
  2726. * src/usage_text.h
  2727. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2728. Fixed compiler waring
  2729. * test/UriListParserTest.cc
  2730. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2731. Parse options in -i list using OptionParser.
  2732. * src/UriListParser.cc
  2733. * src/UriListParser.h
  2734. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2735. Don't reset URI in retry to avoid additional round trips because
  2736. of redirects.
  2737. * src/AbstractCommand.cc
  2738. * src/OptionHandlerFactory.cc
  2739. * src/prefs.cc
  2740. * src/prefs.h
  2741. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2742. Declared hide() in OptionHandler.
  2743. * src/NameMatchOptionHandler.h
  2744. * src/OptionHandler.h
  2745. * src/OptionHandlerImpl.h
  2746. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2747. Updated doc
  2748. * src/Peer.h
  2749. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2750. Added log message in setStatusInternal()
  2751. * src/ServerStat.cc
  2752. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2753. Call ServerStat::setError() in AbstractCommand::onAbort() to
  2754. effectively exclude failed server.
  2755. * src/AbstractCommand.cc
  2756. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2757. Added --index-out option to specify each file path for torrent.
  2758. Here index shown in --show-files option is used to specify which
  2759. file path should be altered. For example, to change the file path
  2760. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  2761. option multiple times: --index-out=1=aria2.tar.bz2
  2762. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  2763. available. This option can be specified in -i list.
  2764. * src/DefaultBtContext.cc
  2765. * src/DefaultBtContext.h
  2766. * src/MultiDiskAdaptor.cc
  2767. * src/MultiDiskAdaptor.h
  2768. * src/MultiFileAllocationIterator.cc
  2769. * src/OptionHandlerFactory.cc
  2770. * src/OptionHandlerImpl.h
  2771. * src/Util.cc
  2772. * src/Util.h
  2773. * src/download_helper.cc
  2774. * src/prefs.cc
  2775. * src/prefs.h
  2776. * src/usage_text.h
  2777. * test/DefaultBtContextTest.cc
  2778. * test/MultiDiskAdaptorTest.cc
  2779. * test/MultiFileAllocationIteratorTest.cc
  2780. * test/UtilTest.cc
  2781. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2782. Use Util::pathJoin()
  2783. * src/MetalinkParserController.cc
  2784. * test/test.xml
  2785. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2786. Use Util::pathJoin()
  2787. * src/DefaultBtContext.cc
  2788. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2789. Added Util::pathJoin()
  2790. * src/Util.h
  2791. * test/UtilTest.cc
  2792. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2793. Applied basename function to remove directory element in
  2794. content-disposition value.
  2795. Return empty string if content-disposition value is ".." or ".".
  2796. * src/Util.cc
  2797. * test/UtilTest.cc
  2798. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2799. Added --max-overall-download-limit in man page.
  2800. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  2801. * doc/aria2c.1.txt
  2802. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2803. Added --max-overall-download-limit option. Now --max-upload-limit
  2804. option is not ignored when --max-overall-upload-limit option has
  2805. non-zero value. aria2 checks download(upload) speed in the order:
  2806. first checks overall speed limit and if it is not exceeded, then
  2807. checks speed limit per download. Thus you can specify both
  2808. value. For example, set --max-overall-download-limit=1M and
  2809. --max-download-limit=500K to prevent from one download from eating
  2810. all overall speed limit.
  2811. * src/DefaultBtInteractive.cc
  2812. * src/DefaultBtInteractive.h
  2813. * src/DefaultBtMessageDispatcher.cc
  2814. * src/DefaultBtMessageDispatcher.h
  2815. * src/DownloadCommand.cc
  2816. * src/DownloadCommand.h
  2817. * src/FtpNegotiationCommand.cc
  2818. * src/HttpResponseCommand.cc
  2819. * src/OptionHandlerFactory.cc
  2820. * src/PeerInteractionCommand.cc
  2821. * src/RequestGroup.cc
  2822. * src/RequestGroup.h
  2823. * src/RequestGroupMan.cc
  2824. * src/RequestGroupMan.h
  2825. * src/prefs.cc
  2826. * src/prefs.h
  2827. * src/usage_text.h
  2828. * test/DefaultBtMessageDispatcherTest.cc
  2829. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2830. Documented select-file option in Input File section.
  2831. Documented --http-auth-challenge option.
  2832. * doc/aria2c.1.txt
  2833. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2834. Now select-file can be specified in the uri list(-i list).
  2835. * src/BtContext.cc
  2836. * src/BtContext.h
  2837. * src/RequestGroup.cc
  2838. * src/Sequence.h
  2839. * src/download_helper.cc
  2840. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2841. Made the upper value of --max-concurrent-downloads options unlimited.
  2842. * src/OptionHandlerFactory.cc
  2843. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2844. Fixed the bug that disk writer is not created even if it shares
  2845. same piece with the preceding file if the length of previous file
  2846. is 0.
  2847. * src/MultiDiskAdaptor.cc
  2848. * test/MultiDiskAdaptorTest.cc
  2849. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2850. In BitTorrent, Open files in read-only mode for hash check. After
  2851. that, re-open file in read/write mode only when the download is
  2852. not finished.
  2853. * src/AbstractDiskWriter.cc
  2854. * src/AbstractDiskWriter.h
  2855. * src/AbstractSingleDiskAdaptor.cc
  2856. * src/AbstractSingleDiskAdaptor.h
  2857. * src/BtCheckIntegrityEntry.cc
  2858. * src/DiskAdaptor.h
  2859. * src/DiskWriter.h
  2860. * src/MultiDiskAdaptor.cc
  2861. * src/MultiDiskAdaptor.h
  2862. * src/RequestGroup.cc
  2863. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2864. Added --http-auth-challenge option. If it is set to true(by
  2865. default), aria2 sends HTTP authorization header only when it is
  2866. requested by the server. If false is set, then authorization
  2867. header is always sent to the server. This is useful for servers
  2868. that don't respond 401 code when authentication is required.
  2869. There is an exception: if username and password are embedded in
  2870. URI, authorization header is always sent to the server regardless
  2871. of this option.
  2872. * src/AuthConfigFactory.cc
  2873. * src/HttpSkipResponseCommand.cc
  2874. * src/OptionHandlerFactory.cc
  2875. * src/prefs.cc
  2876. * src/prefs.h
  2877. * src/usage_text.h
  2878. * test/AuthConfigFactoryTest.cc
  2879. * test/HttpRequestTest.cc
  2880. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2881. * Release 1.2.0
  2882. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2883. Updated Spanish, Ukrainian, Russian and Japanese translations.
  2884. Thanks to all translators.
  2885. * po/es.po
  2886. * po/ja.po
  2887. * po/ru.po
  2888. * po/uk.po
  2889. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2890. Call deleteSocketForReadCheck() before socket is closed.
  2891. * src/HttpListenCommand.cc
  2892. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2893. Defined virtual destructor for BObject.
  2894. * src/bencode.h
  2895. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2896. Rewritten BDE to make it efficient.
  2897. * src/bencode.cc
  2898. * src/bencode.h
  2899. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2900. Removed function throw list.
  2901. * src/bencode.cc
  2902. * src/bencode.h
  2903. * test/BencodeTest.cc
  2904. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2905. Enclosed all URLs in double quotes in command-line examples.
  2906. * doc/aria2c.1.txt
  2907. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2908. Updated reference/see also section.
  2909. * README
  2910. * doc/aria2c.1.txt
  2911. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2912. Reorganized man page based on man man-pages.
  2913. * doc/aria2c.1.txt
  2914. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2915. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  2916. because same documents are available in man page. Added
  2917. References section.
  2918. * README
  2919. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2920. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  2921. PERFORMANCE PROFILE section.
  2922. * doc/aria2c.1.txt
  2923. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2924. Rewritten the section for configuration file.
  2925. * README
  2926. * doc/aria2c.1.txt
  2927. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2928. Fixed the segmentation fault during execution of choking algorithm
  2929. in leecher state because of broken compare operator
  2930. implementation.
  2931. * src/BtLeecherStateChoke.cc
  2932. * src/BtLeecherStateChoke.h
  2933. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2934. Open file in binary mode.
  2935. * src/CookieStorage.cc
  2936. * src/DHTSetup.cc
  2937. * src/DHTUtil.cc
  2938. * src/Netrc.cc
  2939. * src/NsCookieParser.cc
  2940. * src/ProtocolDetector.cc
  2941. * src/RequestGroupMan.cc
  2942. * src/Signature.cc
  2943. * src/bencode.cc
  2944. * src/download_helper.cc
  2945. * src/option_processing.cc
  2946. * test/CookieParserTest.cc
  2947. * test/DefaultBtProgressInfoFileTest.cc
  2948. * test/FileTest.cc
  2949. * test/GZipDecoderTest.cc
  2950. * test/RequestGroupManTest.cc
  2951. * test/SignatureTest.cc
  2952. * test/SingleFileAllocationIteratorTest.cc
  2953. * test/UriListParserTest.cc
  2954. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2955. Removed operator[] because it is ambiguous with built-in []
  2956. operator.
  2957. * src/array_fun.h
  2958. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2959. Fixed compile error
  2960. * src/OptionParser.cc
  2961. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2962. Added missing call to arrayWrapperConst
  2963. * test/array_funTest.cc
  2964. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2965. Use array_wrapper instead of array_ptr.
  2966. * src/DHTRoutingTableDeserializer.cc
  2967. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2968. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  2969. * src/array_fun.h
  2970. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2971. Added array_wrapper template.
  2972. * src/array_fun.h
  2973. * test/array_funTest.cc
  2974. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2975. Use operator T* of array_ptr.
  2976. * src/OptionParser.cc
  2977. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2978. Use localhost instead of 127.0.0.1
  2979. * test/FtpConnectionTest.cc
  2980. * test/MSEHandshakeTest.cc
  2981. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2982. Added operator T*
  2983. * src/array_fun.h
  2984. * test/array_funTest.cc
  2985. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2986. Use dynamically allocated char array to detect memory access
  2987. violation.
  2988. * src/DHTRoutingTableDeserializer.cc
  2989. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2990. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  2991. defined.
  2992. * src/PeerMessageUtil.cc
  2993. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2994. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  2995. * configure.ac
  2996. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2997. Added a check to see struct sockaddr_in has sin_len member.
  2998. * configure.ac
  2999. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3000. Fixed buffer overrun.
  3001. * src/DHTRoutingTableDeserializer.cc
  3002. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3003. Added LL for long long int constant.
  3004. * test/FtpConnectionTest.cc
  3005. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3006. Casted to unsigned int to suppress compiler warning on netbsd.
  3007. * src/BtRuntime.h
  3008. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3009. Assign the value of tv.tv_sec to time_t timesec instead of giving
  3010. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  3011. type time_t.
  3012. * src/SimpleLogger.cc
  3013. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3014. Added test for FtpConnection::receiveSizeResponse().
  3015. * test/FtpConnectionTest.cc
  3016. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3017. Fix epoll error on the old kernel 2.6.8 or ealier.
  3018. * src/EpollEventPoll.cc
  3019. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3020. Use Util::parseLLInt instead of sscanf for portability. The
  3021. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  3022. * src/FtpConnection.cc
  3023. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3024. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  3025. block. It should not filter anything.
  3026. * src/BitfieldMan.cc
  3027. * src/ConsoleStatCalc.cc
  3028. * test/BitfieldManTest.cc
  3029. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3030. Fixed the bug that the boolean options that don't take arguments
  3031. don't work.
  3032. * src/OptionHandlerImpl.h
  3033. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3034. Fixed broken selected file BitTorrent download.
  3035. * src/MultiDiskAdaptor.cc
  3036. * test/MultiDiskAdaptorTest.cc
  3037. * test/MultiFileAllocationIteratorTest.cc
  3038. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3039. Fixed #define guard for EpollEventPoll
  3040. * src/EpollEventPoll.h
  3041. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3042. Wait 2 seconds. 1 second is sometimes not enough.
  3043. * test/TimeSeedCriteriaTest.cc
  3044. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3045. Use localhost instead of 127.0.0.1.
  3046. * test/DHTConnectionImplTest.cc
  3047. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3048. Suppressed compiler warning.
  3049. * src/AdaptiveURISelector.cc
  3050. * src/DefaultPieceStorage.cc
  3051. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3052. Defined virtual destructor.
  3053. * src/MetalinkParserState.h
  3054. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3055. Give NULL for second argument of getaddrinfo instead of "0".
  3056. * src/NameResolver.cc
  3057. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3058. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  3059. included strptime doesn't parse data for this format.
  3060. * src/FtpConnection.cc
  3061. * test/FtpConnectionTest.cc
  3062. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3063. Removed tests giving -1 for unsigned argument.
  3064. * test/SingleFileDownloadContextTest.cc
  3065. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3066. Don't use sha256 in tests because it might not be supported by the
  3067. SSL library.
  3068. * test/MetalinkProcessorTest.cc
  3069. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3070. Removed tests giving -1 for unsigned argument.
  3071. * test/AlphaNumberDecoratorTest
  3072. * test/BitfieldManTest.cc
  3073. * test/DefaultBtContextTest.cc
  3074. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3075. Fixed compile error without libcares when epoll is available.
  3076. * src/EpollEventPoll.cc
  3077. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3078. Included fstream instead of iostream.
  3079. * test/SignatureTest.cc
  3080. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3081. Removed #include <algorithm>
  3082. * test/RequestGroupTest.cc
  3083. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3084. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  3085. using RequestGroup::extractURIResult().
  3086. * src/AdaptiveURISelector.cc
  3087. * src/RequestGroup.cc
  3088. * src/RequestGroup.h
  3089. * test/RequestGroupTest.cc
  3090. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3091. Added tests for array_ptr.
  3092. * test/array_funTest.cc
  3093. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3094. Don't send ip parameter to a tracker if ip parameter is empty
  3095. string.
  3096. * src/DefaultBtAnnounce.cc
  3097. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3098. Adjusted line feed.
  3099. * src/version_usage.cc
  3100. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3101. Print tags, possible values when OptionHandlerException is caught.
  3102. * src/option_processing.cc
  3103. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3104. Changed the message for FatalException.
  3105. * src/OptionParser.cc
  3106. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3107. Documented --bt-external-ip option in man page. Updated man pages
  3108. for --proxy-method option.
  3109. * doc/aria2c.1.txt
  3110. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3111. Use GET method for FTP via HTTP proxy.
  3112. * src/FtpInitiateConnectionCommand.cc
  3113. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3114. Changed the default value of --proxy-method option from 'tunnel'
  3115. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  3116. option.
  3117. * src/AbstractCommand.cc
  3118. * src/AbstractCommand.h
  3119. * src/FtpInitiateConnectionCommand.cc
  3120. * src/HttpDownloadCommand.cc
  3121. * src/HttpInitiateConnectionCommand.cc
  3122. * src/HttpInitiateConnectionCommand.h
  3123. * src/OptionHandlerFactory.cc
  3124. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3125. Initialized _logger
  3126. * src/SelectEventPoll.cc
  3127. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3128. Defined a copy constructor for the same type.
  3129. * src/SharedHandle.h
  3130. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3131. Added OptionParser::parseArg() which internally uses getopt_long
  3132. to parse command-line options. All command-line options are now
  3133. configured by OptionHandler. No manual editing of struct option*
  3134. is required any more.
  3135. * src/NameMatchOptionHandler.h
  3136. * src/OptionHandler.h
  3137. * src/OptionHandlerFactory.cc
  3138. * src/OptionHandlerImpl.h
  3139. * src/OptionParser.cc
  3140. * src/OptionParser.h
  3141. * src/array_fun.h
  3142. * src/main.cc
  3143. * src/option_processing.cc
  3144. * test/OptionHandlerTest.cc
  3145. * test/OptionParserTest.cc
  3146. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3147. Fixed configure error with --disable-epoll
  3148. * configure.ac
  3149. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3150. Fixed compile error when HAVE_EPOLL is not defined.
  3151. Fixed linker error on bigendian systems.
  3152. * src/SocketCore.cc
  3153. * src/SocketCore.h
  3154. * test/DefaultBtProgressInfoFileTest.cc
  3155. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3156. Added --bt-external-ip option. You can specify the external IP
  3157. address to report to a BitTorrent tracker. Although this function
  3158. is named 'external', it can accept any kind of IP addresses.
  3159. * src/DefaultBtAnnounce.cc
  3160. * src/OptionHandlerFactory.cc
  3161. * src/option_processing.cc
  3162. * src/prefs.cc
  3163. * src/prefs.h
  3164. * src/usage_text.h
  3165. * test/DefaultBtAnnounceTest.cc
  3166. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3167. Extracted the algorithm to find the longest incremental sequence
  3168. as max_sequence template.
  3169. * src/LongestSequencePieceSelector.cc
  3170. * src/a2algo.h
  3171. * test/Makefile.am
  3172. * test/a2algoTest.cc
  3173. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3174. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  3175. * src/usage_text.h
  3176. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3177. Updated doc for --uri-selector, --http-server-listen-port and
  3178. --enable-http-server option. Documented --event-poll option.
  3179. * doc/aria2c.1.txt
  3180. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3181. Updated doc for --enable-http-server.
  3182. * src/usage_text.h
  3183. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3184. Documented --http-server-listen-port and --enable-http-server in
  3185. man page.
  3186. * doc/aria2c.1.txt
  3187. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3188. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  3189. translations. Thanks to all translators.
  3190. * po/es.po
  3191. * po/id.po
  3192. * po/it.po
  3193. * po/ru.po
  3194. * po/uk.po
  3195. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3196. Bump up version number to 1.2.0
  3197. * configure.ac
  3198. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3199. BtContext::getAnnounceTiers() now returns const reference.
  3200. * src/BtContext.h
  3201. * src/DefaultBtContext.cc
  3202. * src/DefaultBtContext.h
  3203. * test/MockBtContext.h
  3204. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3205. Change the number of retries for tracker request based on the
  3206. number of available tracker in a torrent file.
  3207. * src/TrackerWatcherCommand.cc
  3208. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3209. Added _maxTries property to RequestGroup and assign the option
  3210. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  3211. RequestGroup::getMaxTries() instead of
  3212. Option::getAsInt(PREF_MAX_TRIES).
  3213. * src/AbstractCommand.cc
  3214. * src/RequestGroup.cc
  3215. * src/RequestGroup.h
  3216. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3217. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  3218. Mandriva. I modified the patch: make RequestGroup have the
  3219. timeout value and AdaptiveURISelector directly modifies that
  3220. value.
  3221. * src/AbstractCommand.cc
  3222. * src/AdaptiveURISelector.cc
  3223. * src/AdaptiveURISelector.h
  3224. * src/FtpNegotiationCommand.cc
  3225. * src/RequestGroup.cc
  3226. * src/RequestGroup.h
  3227. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3228. Fixed compiler warning
  3229. * test/IteratableChecksumValidatorTest.cc
  3230. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3231. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  3232. integrated downloads. This PieceSelector subclass finds the
  3233. longest continuous sequence in the available missing pieces and
  3234. selects the last index of such sequence. This makes HTTP/FTP
  3235. connections less interrupted by the pieces obtained by BitTorrent
  3236. peers.
  3237. * src/DefaultPieceStorage.cc
  3238. * src/DefaultPieceStorage.h
  3239. * src/LongestSequencePieceSelector.cc
  3240. * src/LongestSequencePieceSelector.h
  3241. * src/Makefile.am
  3242. * src/PieceSelector.h
  3243. * src/RarestPieceSelector.h
  3244. * src/RequestGroup.cc
  3245. * test/BtDependencyTest.cc
  3246. * test/DefaultPieceStorageTest.cc
  3247. * test/IteratableChecksumValidatorTest.cc
  3248. * test/LongestSequencePieceSelectorTest.cc
  3249. * test/Makefile.am
  3250. * test/SegmentManTest.cc
  3251. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3252. Fixed the bug that the average speed is wrong in
  3253. http/ftp/BitTorrent integrated download. Only the download bytes
  3254. in BitTorrent were considered.
  3255. * src/RequestGroup.cc
  3256. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3257. Choose port for BitTorrent/DHT randomly from the specified range.
  3258. * src/DHTConnectionImpl.cc
  3259. * src/PeerListenCommand.cc
  3260. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3261. Send HTTP Authorization header only if it is requested by the
  3262. server(response 401). There are some exceptions. The authorization
  3263. header for proxy is always sent if it is available without request
  3264. by the server. If username/password is specified in the URI, it
  3265. is immediately sent to the server without request by the server.
  3266. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  3267. SharedHandle<AuthConfig>().
  3268. NetrcAuthResolver::resolveAuthConfig() returns
  3269. SharedHandle<AuthConfig>() if no AuthConfig is available.
  3270. * src/AbstractAuthResolver.cc
  3271. * src/AbstractProxyRequestCommand.cc
  3272. * src/AuthConfigFactory.cc
  3273. * src/AuthConfigFactory.h
  3274. * src/HttpConnection.cc
  3275. * src/HttpRequest.cc
  3276. * src/HttpRequest.h
  3277. * src/HttpResponse.cc
  3278. * src/HttpResponseCommand.cc
  3279. * src/HttpSkipResponseCommand.cc
  3280. * test/AuthConfigFactoryTest.cc
  3281. * test/HttpRequestTest.cc
  3282. * test/HttpResponseTest.cc
  3283. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3284. Remove leading "--" from help keyword and a substring after "="
  3285. from help keyword, so that one can query options by '-h--max-' or
  3286. '-hmax-peers=10'.
  3287. * src/option_processing.cc
  3288. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3289. Rewritten PStringVisitor and its implementation.
  3290. * src/PStringBuildVisitor.cc
  3291. * src/PStringBuildVisitor.h
  3292. * src/PStringDatum.h
  3293. * src/PStringNumLoop.h
  3294. * src/PStringSegment.cc
  3295. * src/PStringSegment.h
  3296. * src/PStringSelect.h
  3297. * src/PStringVisitor.h
  3298. * src/download_helper.cc
  3299. * test/PStringBuildVisitorTest.cc
  3300. * test/ParameterizedStringParserTest.cc
  3301. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3302. Persist connection between the built-in HTTP server and a client
  3303. if a client supports keep-alive. Fixed the bug that aria2 exits
  3304. when the HTTP server receives EOF from a client.
  3305. * src/HttpServer.cc
  3306. * src/HttpServer.h
  3307. * src/HttpServerCommand.cc
  3308. * src/HttpServerCommand.h
  3309. * src/HttpServerResponseCommand.cc
  3310. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3311. Added experimental built-in HTTP server. Currently, when a client
  3312. accesses to the server, it responds with the current download
  3313. progress. By default, it is disabled. To enable the server, give
  3314. --enable-http-server option. To change the default port number
  3315. for the server to listen to, use --http-server-listen-port option.
  3316. The response HTML is very simple and refreshes it self each 1
  3317. second. Because of this refresh, you see flicker in normal web
  3318. browser such as Firefox. I recommend to use console-based browser
  3319. such as elinks, w3m. To connect to the server, run 'elinks
  3320. http://localhost:6800/' while running aria2. Please replace port
  3321. number '6800'(which is default) with your preference.
  3322. * src/DownloadEngineFactory.cc
  3323. * src/HttpHeader.cc
  3324. * src/HttpHeader.h
  3325. * src/HttpHeaderProcessor.cc
  3326. * src/HttpHeaderProcessor.h
  3327. * src/HttpListenCommand.cc
  3328. * src/HttpListenCommand.h
  3329. * src/HttpServer.cc
  3330. * src/HttpServer.h
  3331. * src/HttpServerCommand.cc
  3332. * src/HttpServerCommand.h
  3333. * src/HttpServerResponseCommand.cc
  3334. * src/HttpServerResponseCommand.h
  3335. * src/Makefile.am
  3336. * src/OptionHandlerFactory.cc
  3337. * src/Util.cc
  3338. * src/Util.h
  3339. * src/help_tags.h
  3340. * src/option_processing.cc
  3341. * src/prefs.cc
  3342. * src/prefs.h
  3343. * src/usage_text.h
  3344. * test/HttpHeaderProcessorTest.cc
  3345. * test/UtilTest.cc
  3346. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3347. Removed.
  3348. * src/CheckIntegrityMan.cc
  3349. * src/FileAllocationMan.cc
  3350. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3351. Made (piece) hash check sequential for each RequestGroup because
  3352. simultaneous hash check is slower than sequential execution.
  3353. * src/CheckIntegrityCommand.cc
  3354. * src/CheckIntegrityDispatcherCommand.cc
  3355. * src/CheckIntegrityDispatcherCommand.h
  3356. * src/CheckIntegrityMan.h
  3357. * src/ConsoleStatCalc.cc
  3358. * src/DownloadCommand.cc
  3359. * src/DownloadEngine.cc
  3360. * src/DownloadEngine.h
  3361. * src/DownloadEngineFactory.cc
  3362. * src/Makefile.am
  3363. * src/Makefile.in
  3364. * src/RequestGroup.cc
  3365. * src/StatCalc.h
  3366. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3367. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  3368. SequentialDispatcherCommand.
  3369. * src/FileAllocationDispatcherCommand.cc
  3370. * src/SequentialDispatcherCommand.h
  3371. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3372. Rewritten FileAllocationDispatcherCommand using brand new
  3373. SequentialDispatcherCommand.
  3374. * src/DownloadEngineFactory.cc
  3375. * src/FileAllocationCommand.cc
  3376. * src/FileAllocationDispatcherCommand.cc
  3377. * src/FileAllocationDispatcherCommand.h
  3378. * src/Makefile.am
  3379. * src/SequentialDispatcherCommand.h
  3380. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3381. Replaced FileAllocationMan with
  3382. SequentialPicker<FileAllocationEntry>.
  3383. * src/BtCheckIntegrityEntry.cc
  3384. * src/ConsoleStatCalc.cc
  3385. * src/DownloadEngine.cc
  3386. * src/DownloadEngine.h
  3387. * src/DownloadEngineFactory.cc
  3388. * src/FileAllocationCommand.cc
  3389. * src/FileAllocationDispatcherCommand.cc
  3390. * src/FileAllocationMan.h
  3391. * src/Makefile.am
  3392. * src/SequentialPicker.h
  3393. * src/StatCalc.h
  3394. * src/StreamCheckIntegrityEntry.cc
  3395. * test/Makefile.am
  3396. * test/SequentialPickerTest.cc
  3397. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3398. Added doc for adaptive URI selector.
  3399. * doc/aria2c.1.txt
  3400. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3401. Added doc for adaptive URI selector.
  3402. * src/usage_text.h
  3403. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3404. Added doc for --bt-max-peers option.
  3405. * doc/aria2c.1.txt
  3406. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3407. Added doc for --bt-hash-check-seed option.
  3408. * doc/aria2c.1.txt
  3409. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3410. Documented exit codes.
  3411. * doc/aria2c.1.txt
  3412. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3413. Added --bt-max-peers option to specify the maximum number of peers
  3414. per torrent. 0 means unlimited number of peers.
  3415. * src/ActivePeerConnectionCommand.cc
  3416. * src/BtRuntime.h
  3417. * src/DefaultPeerStorage.cc
  3418. * src/DefaultPeerStorage.h
  3419. * src/OptionHandlerFactory.cc
  3420. * src/RequestGroup.cc
  3421. * src/option_processing.cc
  3422. * src/prefs.cc
  3423. * src/prefs.h
  3424. * src/usage_text.h
  3425. * test/DefaultPeerStorageTest.cc
  3426. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3427. Added --bt-hash-check-seed option. If true is given to this
  3428. option, after hash check using --check-integrity option and file
  3429. is complete, continue to seed file. If you want to check file and
  3430. download it only when it is damaged or incomplete, set this option
  3431. to false. This option has effect only on BitTorrent download.
  3432. The default value is true(This is the same behavior with the
  3433. previous release).
  3434. * src/BtCheckIntegrityEntry.cc
  3435. * src/OptionHandlerFactory.cc
  3436. * src/option_processing.cc
  3437. * src/prefs.cc
  3438. * src/prefs.h
  3439. * src/usage_text.h
  3440. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3441. Updated copyright year.
  3442. * src/version_usage.cc
  3443. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3444. Rewritten the usage text for --bt-request-peer-speed-limit option.
  3445. * doc/aria2c.1.txt
  3446. * src/usage_text.h
  3447. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3448. Made the max value of split option unlimited.
  3449. * doc/aria2c.1.txt
  3450. * src/OptionHandlerFactory.cc
  3451. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3452. Fixed compile warning/error.
  3453. * src/DownloadResult.h
  3454. * src/HttpDownloadCommand.cc
  3455. * src/ServerStat.cc
  3456. * test/RequestGroupTest.cc
  3457. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3458. Added --event-poll option to select the method for polling events.
  3459. The available methods are "select" and "epoll". "epoll" is
  3460. available on Linux only. The earlier release has the compile
  3461. option to choose from these methods.
  3462. * configure.ac
  3463. * src/RequestGroupMan.cc
  3464. * src/OptionHandlerFactory.cc
  3465. * src/EpollEventPoll.h
  3466. * src/StreamFileAllocationEntry.cc
  3467. * src/a2io.h
  3468. * src/SelectEventPoll.h
  3469. * src/option_processing.cc
  3470. * src/prefs.h
  3471. * src/EpollEventPoll.cc
  3472. * src/EventPoll.h
  3473. * src/SocketCore.h
  3474. * src/Makefile.am
  3475. * src/main.cc
  3476. * src/DownloadEngine.h
  3477. * src/SelectEventPoll.cc
  3478. * src/DownloadEngine.cc
  3479. * src/SocketCore.cc
  3480. * src/DownloadEngineFactory.cc
  3481. * src/Makefile.in
  3482. * src/prefs.cc
  3483. * src/usage_text.h
  3484. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3485. Included RecoverableException.h from main.cc
  3486. * src/main.cc
  3487. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3488. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  3489. now returns last error encountered in the HTTP/FTP downloads as a
  3490. exit status value. If all downloads finished successfully, aria2
  3491. returns 0. The error code is defined in src/DownloadResult.h.
  3492. The error occurred in the download currently in progress is not
  3493. reported as a last error. If no error has encountered but there
  3494. are in progress or waiting downloads, aria2 returns 7.
  3495. * src/AbstractCommand.cc
  3496. * src/DlAbortEx.h
  3497. * src/DlRetryEx.h
  3498. * src/DownloadCommand.cc
  3499. * src/DownloadFailureException.h
  3500. * src/DownloadResult.h
  3501. * src/FtpNegotiationCommand.cc
  3502. * src/HttpSkipResponseCommand.cc
  3503. * src/Makefile.am
  3504. * src/MultiUrlRequestInfo.cc
  3505. * src/MultiUrlRequestInfo.h
  3506. * src/RecoverableException.h
  3507. * src/RequestGroup.cc
  3508. * src/RequestGroup.h
  3509. * src/RequestGroupMan.cc
  3510. * src/RequestGroupMan.h
  3511. * src/URIResult.cc
  3512. * src/URIResult.h
  3513. * src/main.cc
  3514. * src/option_processing.cc
  3515. * test/RequestGroupTest.cc
  3516. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3517. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  3518. patch adds AdaptiveURISelector, which selects one of the bests
  3519. mirrors for first and reserved connections. For supplementary
  3520. ones, it returns mirrors which has not been tested yet, and if
  3521. each of them already tested, returns mirrors which has to be
  3522. tested again. Otherwise, it doesn't return anymore mirrors.
  3523. * src/AdaptiveURISelector.cc
  3524. * src/AdaptiveURISelector.h
  3525. * src/FtpNegotiationCommand.cc
  3526. * src/HttpResponseCommand.cc
  3527. * src/Makefile.am
  3528. * src/Makefile.in
  3529. * src/OptionHandlerFactory.cc
  3530. * src/RequestGroup.cc
  3531. * src/RequestGroup.h
  3532. * src/RequestGroupMan.cc
  3533. * src/ServerStat.cc
  3534. * src/ServerStat.h
  3535. * src/ServerStatMan.cc
  3536. * src/SpeedCalc.cc
  3537. * src/URISelector.h
  3538. * src/prefs.cc
  3539. * src/prefs.h
  3540. * test/RequestGroupManTest.cc
  3541. * test/ServerStatManTest.cc
  3542. * test/ServerStatTest.cc
  3543. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3544. Fixed unit test error.
  3545. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  3546. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3547. * Release 1.1.2
  3548. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3549. Updated Russian translation. Thanks to the translators.
  3550. * po/ru.po
  3551. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3552. Added the description of --use-head option to man page.
  3553. * doc/aria2c.1.txt
  3554. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3555. Bump up version number to 1.1.2
  3556. * configure.ac
  3557. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3558. Added --use-head option to toggle whether HEAD method should be
  3559. used in the first HTTP request. By default aria2 uses HEAD method
  3560. as the first request. When the server doesn't recognize HEAD, then
  3561. give aria2 --use-head=false to force aria2 to use GET method
  3562. instead.
  3563. * src/OptionHandlerFactory.cc
  3564. * src/RequestGroupMan.cc
  3565. * src/option_processing.cc
  3566. * src/prefs.cc
  3567. * src/prefs.h
  3568. * src/usage_text.h
  3569. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3570. Fixed the bug that BitTorrent download doesn't finish when REJECT
  3571. message is received before CHOKE message. The old implementation
  3572. doen't clear the use-bit of the piece when recieved REJECT
  3573. message.
  3574. * src/DefaultBtMessageDispatcher.cc
  3575. * test/DefaultBtMessageDispatcherTest.cc
  3576. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3577. * Release 1.1.1
  3578. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3579. Bump up version number to 1.1.1.
  3580. * configure.ac
  3581. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3582. Fixed the bug that --summary-interval=0 doesn't work. The summary
  3583. is printed repeatedly.
  3584. * src/ConsoleStatCalc.cc
  3585. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3586. * Release 1.1.0
  3587. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3588. Added ifdef clause for conditional compilation.
  3589. * src/main.cc
  3590. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3591. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  3592. translations. Thanks to all translators.
  3593. * po/ja.po
  3594. * po/ru.po
  3595. * po/uk.po
  3596. * po/zh_CN.po
  3597. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3598. Added the preceding ">>> " before the message "Printing the
  3599. contents of file..." to make the output more readable.
  3600. * src/main.cc
  3601. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3602. Added try-catch block in the loop in showFiles() to continue the
  3603. operation even if the exception occurred in one file.
  3604. * src/main.cc (showFiles)
  3605. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3606. Made messages in showFiles() translatable.
  3607. * po/aria2.pot
  3608. * src/main.cc
  3609. * src/message.h
  3610. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3611. Print the contents of Torrent/Metalink files are printed without
  3612. -T/-M options.
  3613. * src/main.cc
  3614. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3615. Escaped '--' with '\--'
  3616. * README
  3617. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3618. Updated "How to build" section in README. Mentioned about
  3619. --with-ca-bundle compile option.
  3620. * README
  3621. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3622. Bump up version number to 1.1.0.
  3623. * configure.ac
  3624. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3625. Added a note for --dht-listen-port option.
  3626. * doc/aria2c.1.txt
  3627. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3628. Update doc for --realtime-chunk-checksum option.
  3629. * doc/aria2c.1.txt
  3630. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3631. Update doc for --realtime-chunk-checksum option.
  3632. * src/usage_text.h
  3633. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3634. Updated French, Japanese, Russian and Ukrainian translations.
  3635. Thanks to all translators.
  3636. * po/fr.po
  3637. * po/ja.po
  3638. * po/ru.po
  3639. * po/uk.po
  3640. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3641. Renamed aria2c.pot to aria2.pot
  3642. * po/aria2.pot
  3643. * po/aria2c.pot: Removed.
  3644. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3645. Removed MetaEntry.h
  3646. * src/Makefile.am
  3647. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3648. Rename file by appending digits if a local file exists and its
  3649. file size is larger than that of remote file with --continue
  3650. option. The old implementation just throws exception in such case.
  3651. * src/RequestGroup.cc
  3652. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3653. Fixed the bug that download progress summary is not printed in the
  3654. interval specified by the option.
  3655. * src/ConsoleStatCalc.cc
  3656. * src/ConsoleStatCalc.h
  3657. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3658. Fixed compiler warning
  3659. * src/Cookie.cc
  3660. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3661. Fixed the cookie implementation based on RFC2965.
  3662. Now if a value in domain field is not started with dot, then
  3663. prepend dot. That means a cookie with domain=sf.net is sent to
  3664. wiki.sf.net.
  3665. * src/Cookie.cc
  3666. * test/CookieParserTest.cc
  3667. * test/CookieStorageTest.cc
  3668. * test/CookieTest.cc
  3669. * test/NsCookieParserTest.cc
  3670. * test/Sqlite3MozCookieParserTest.cc
  3671. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3672. Fixed the bug that causes corrupted downloads if HTTP pipelining
  3673. is enabled and the server doesn't support keep-alive.
  3674. * src/AbstractCommand.cc
  3675. * src/DownloadCommand.cc
  3676. * src/HttpDownloadCommand.cc
  3677. * src/HttpDownloadCommand.h
  3678. * src/HttpResponseCommand.cc
  3679. * src/Request.cc
  3680. * src/Request.h
  3681. * test/RequestTest.cc
  3682. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3683. Removed Dictionary/List/Data and its related classes.
  3684. * src/BencodeVisitor.cc: Removed.
  3685. * src/BencodeVisitor.h: Removed.
  3686. * src/Data.cc: Removed.
  3687. * src/Data.h: Removed.
  3688. * src/Dictionary.cc: Removed.
  3689. * src/Dictionary.h: Removed.
  3690. * src/List.cc: Removed.
  3691. * src/List.h: Removed.
  3692. * src/Makefile.am
  3693. * src/MetaEntry.h: Removed.
  3694. * src/MetaEntryVisitor.h: Removed.
  3695. * src/MetaFileUtil.cc: Removed.
  3696. * src/MetaFileUtil.h: Removed.
  3697. * test/BencodeVisitorTest.cc: Removed.
  3698. * test/DataTest.cc: Removed.
  3699. * test/DictionaryTest.cc: Removed.
  3700. * test/ListTest.cc: Removed.
  3701. * test/Makefile.am
  3702. * test/MetaFileUtilTest.cc: Removed.
  3703. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3704. Removed include of MetaEntry.h
  3705. * test/DHTMessageTrackerEntryTest.cc
  3706. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3707. Use BDE instead of Dictionary/List/Data.
  3708. * src/AnnounceList.cc
  3709. * src/AnnounceList.h
  3710. * test/AnnounceListTest.cc
  3711. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3712. Use BDE instead of Dictionary/List/Data.
  3713. * src/DHTAbstractMessage.cc
  3714. * src/DHTAbstractMessage.h
  3715. * src/DHTAnnouncePeerMessage.cc
  3716. * src/DHTAnnouncePeerMessage.h
  3717. * src/DHTAnnouncePeerReplyMessage.cc
  3718. * src/DHTAnnouncePeerReplyMessage.h
  3719. * src/DHTFindNodeMessage.cc
  3720. * src/DHTFindNodeMessage.h
  3721. * src/DHTFindNodeReplyMessage.cc
  3722. * src/DHTFindNodeReplyMessage.h
  3723. * src/DHTGetPeersMessage.cc
  3724. * src/DHTGetPeersMessage.h
  3725. * src/DHTGetPeersReplyMessage.cc
  3726. * src/DHTGetPeersReplyMessage.h
  3727. * src/DHTMessageFactory.h
  3728. * src/DHTMessageFactoryImpl.cc
  3729. * src/DHTMessageFactoryImpl.h
  3730. * src/DHTMessageReceiver.cc
  3731. * src/DHTMessageTracker.cc
  3732. * src/DHTMessageTracker.h
  3733. * src/DHTPingMessage.cc
  3734. * src/DHTPingMessage.h
  3735. * src/DHTPingReplyMessage.cc
  3736. * src/DHTPingReplyMessage.h
  3737. * src/DHTQueryMessage.cc
  3738. * src/DHTQueryMessage.h
  3739. * src/DHTResponseMessage.cc
  3740. * src/DHTResponseMessage.h
  3741. * test/DHTAnnouncePeerMessageTest.cc
  3742. * test/DHTAnnouncePeerReplyMessageTest.cc
  3743. * test/DHTFindNodeMessageTest.cc
  3744. * test/DHTFindNodeReplyMessageTest.cc
  3745. * test/DHTGetPeersMessageTest.cc
  3746. * test/DHTGetPeersReplyMessageTest.cc
  3747. * test/DHTMessageFactoryImplTest.cc
  3748. * test/DHTMessageTrackerTest.cc
  3749. * test/DHTPingMessageTest.cc
  3750. * test/DHTPingReplyMessageTest.cc
  3751. * test/MockDHTMessageFactory.h
  3752. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3753. Added tests the case where length < 0 is specified.
  3754. * test/BencodeTest.cc
  3755. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3756. Fixed memory leak in decoderawstring()
  3757. * src/bencode.cc
  3758. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3759. Added missing #ifdef guard. Added uc() function for String and
  3760. removeKey() for Dict.
  3761. * src/bencode.cc
  3762. * src/bencode.h
  3763. * test/BencodeTest.cc
  3764. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3765. Use BDE instead of Dictionary/List/Data.
  3766. * src/HandshakeExtensionMessage.cc
  3767. * src/HandshakeExtensionMessage.h
  3768. * test/HandshakeExtensionMessageTest.cc
  3769. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3770. Added --max-overall-upload-limit option. This option limits the
  3771. overall upload speed. Stated in help message that the existing
  3772. --max-upload-limit option limits the upload speed per each
  3773. torrent. Man page is also updated.
  3774. * doc/aria2c.1.txt
  3775. * src/DefaultBtMessageDispatcher.cc
  3776. * src/DefaultBtMessageDispatcher.h
  3777. * src/OptionHandlerFactory.cc
  3778. * src/PeerInteractionCommand.cc
  3779. * src/option_processing.cc
  3780. * src/prefs.cc
  3781. * src/prefs.h
  3782. * src/usage_text.h
  3783. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3784. Use BDE instead of Dictionary/List/Data classes.
  3785. * src/CompactPeerListProcessor.cc
  3786. * src/CompactPeerListProcessor.h
  3787. * src/DefaultBtAnnounce.cc
  3788. * src/DefaultBtContext.cc
  3789. * src/DefaultBtContext.h
  3790. * src/DefaultPeerListProcessor.cc
  3791. * src/DefaultPeerListProcessor.h
  3792. * src/DelegatingPeerListProcessor.cc
  3793. * src/DelegatingPeerListProcessor.h
  3794. * src/PeerListProcessor.h
  3795. * src/UTPexExtensionMessage.cc
  3796. * src/Util.h
  3797. * src/message.h
  3798. * test/DefaultBtContextTest.cc
  3799. * test/DefaultPeerListProcessorTest.cc
  3800. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3801. Added bencode helper functions and BDE class.
  3802. They will replace MetaFileUtil and Dictionary/List/Data classes.
  3803. * src/Makefile.am
  3804. * src/bencode.cc
  3805. * src/bencode.h
  3806. * test/BencodeTest.cc
  3807. * test/Makefile.am
  3808. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3809. Fixed the bug that bad URI is sent to the tracker when the announe
  3810. URI in torrent file includes query.
  3811. * src/DefaultBtAnnounce.cc
  3812. * test/DefaultBtAnnounceTest.cc
  3813. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3814. Added Option::blank().
  3815. Use !Option::blank(name) instead of Option::defined(name) for
  3816. the options that take filename.
  3817. * src/MultiUrlRequestInfo.cc
  3818. * src/Option.cc
  3819. * src/Option.h
  3820. * src/main.cc
  3821. * src/option_processing.cc
  3822. * test/OptionTest.cc
  3823. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3824. Documented the default value of --check-certificate option in man
  3825. page.
  3826. * doc/aria2c.1.txt
  3827. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3828. Enabled --check-certificate by default. Added compile
  3829. time(configure) option --with-ca-bundle to specify CA bundle.
  3830. Warn if --check-certificate=true and --ca-certificate is not
  3831. specified or loading CA certificate is failed.
  3832. * configure.ac
  3833. * src/MultiUrlRequestInfo.cc
  3834. * src/OptionHandlerFactory.cc
  3835. * src/message.h
  3836. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3837. Mentioned https tag in help option.
  3838. * doc/aria2c.1.txt
  3839. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3840. Added `https' tag to help option category. Added https tag to
  3841. --ca-certificate, --certificate, --check-certificate and
  3842. --private-key option.
  3843. * src/OptionHandlerFactory.cc
  3844. * src/help_tags.h
  3845. * src/option_processing.cc
  3846. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3847. Changed the package name from `aria2c' to `aria2' in order to fix
  3848. the packaging issue in Debian and Fedora. The name of the
  3849. executable is not changed.
  3850. * configure.ac
  3851. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3852. Fixed typos
  3853. * src/usage_text.h
  3854. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3855. Fixed typos and updated doc.
  3856. * README
  3857. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3858. Fixed typos
  3859. * doc/aria2c.1.txt
  3860. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3861. Fixed typos
  3862. * src/usage_text.h
  3863. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3864. Print a message when no files to download.
  3865. * src/download_helper.cc
  3866. * src/main.cc
  3867. * src/message.h
  3868. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3869. RFC3986 complied Percent-Encoding(urlencode).
  3870. Use uppercase hexadecimal digits for encoded text instead of lowercase
  3871. ones.
  3872. * src/Request.cc
  3873. * src/Util.cc
  3874. * src/Util.h
  3875. * test/BtHandshakeMessageTest.cc
  3876. * test/DefaultBtAnnounceTest.cc
  3877. * test/DefaultBtContextTest.cc
  3878. * test/RequestTest.cc
  3879. * test/UtilTest.cc
  3880. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3881. Fixed the bug that prevents aria2 from downloading 0-length files
  3882. via HTTP/FTP.
  3883. * src/DefaultBtContext.cc
  3884. * src/DefaultBtContext.h
  3885. * src/DownloadContext.h
  3886. * src/FtpNegotiationCommand.cc
  3887. * src/HttpResponseCommand.cc
  3888. * src/HttpResponseCommand.h
  3889. * src/RequestGroup.cc
  3890. * src/SingleFileDownloadContext.cc
  3891. * src/SingleFileDownloadContext.h
  3892. * test/BtPostDownloadHandlerTest.cc
  3893. * test/MetalinkPostDownloadHandlerTest.cc
  3894. * test/MockBtContext.h
  3895. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3896. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  3897. * src/option_processing.cc
  3898. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3899. Applied aria2-1.0.1-mingw.patch.
  3900. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  3901. mingw.
  3902. Collected 4th and 5th argument types for getsockopt and setsockopt.
  3903. * src/SocketCore.cc
  3904. * src/a2netcompat.h
  3905. * test/SocketCoreTest.cc
  3906. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3907. * Release 1.0.1
  3908. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3909. Updated Ukrainian and Norwegian Nynorsk translations.
  3910. Thanks to all translators.
  3911. * po/nn.po
  3912. * po/uk.po
  3913. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3914. Don't show download result when -S option is used.
  3915. * src/main.cc
  3916. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3917. Bump up version number to 1.0.1
  3918. * configure.ac
  3919. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3920. Closed files after the test cases in MultiDiskWriterTest::
  3921. testResetDiskWriterEntries(). This will fix the unit test error
  3922. in mingw32 build.
  3923. * test/MultiDiskWriterTest.cc
  3924. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3925. Use HEAD method to get file size from HTTP server for segmented
  3926. downloading.
  3927. The request to the BitTorrent Tracker always uses GET method because
  3928. the response of the tracker is small and it doesn't need segmented
  3929. download.
  3930. * src/FtpNegotiationCommand.cc
  3931. * src/HttpRequest.cc
  3932. * src/HttpResponseCommand.cc
  3933. * src/HttpSkipResponseCommand.cc
  3934. * src/RequestGroup.cc
  3935. * src/RequestGroup.h
  3936. * src/TrackerWatcherCommand.cc
  3937. * test/HttpRequestTest.cc
  3938. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3939. Fixed the bug that causes floating exception when -T option is used and
  3940. no URIs are given.
  3941. * src/download_helper.cc
  3942. * test/DownloadHelperTest.cc
  3943. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  3944. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  3945. errors in MinGW:
  3946. Closed file after saving server stats (RequestGroupMan.cc)
  3947. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  3948. Ignored case & handled 2-digit years (strptime.c)
  3949. Added missing suseconds_t definition (a2time.h)
  3950. Fixed socket CLOSE() define (SocketCore.cc)
  3951. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  3952. Changed utime() test values from x000 to x00000 as MinGW failed on
  3953. values less than timezone offset from Unix epoch
  3954. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  3955. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  3956. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  3957. handle negative dates (CookieParserTest.cc)
  3958. * src/a2time.h
  3959. * src/FtpConnection.cc
  3960. * src/RequestGroupMan.cc
  3961. * src/SocketCore.cc
  3962. * src/strptime.c
  3963. * test/CookieParserTest.cc
  3964. * test/CopyDiskAdaptorTest.cc
  3965. * test/FileTest.cc
  3966. * test/FtpConnectionTest.cc
  3967. * test/MultiDiskAdaptorTest.cc
  3968. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3969. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  3970. * doc/aria2c.1.txt
  3971. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3972. * Release 1.0.0
  3973. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3974. Added '~' to reserved characters.
  3975. * src/Util.cc
  3976. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3977. Do not urlencode Request::url in setUrl() because we want unmodified
  3978. URL using Request::getUrl()
  3979. * src/Request.cc
  3980. * src/Request.h
  3981. * test/RequestTest.cc
  3982. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3983. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  3984. Thanks to all translators.
  3985. * po/bg.po
  3986. * po/fr.po
  3987. * po/ja.po
  3988. * po/ru.po
  3989. * po/uk.po
  3990. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3991. Bump up version number to 1.0.0
  3992. * configure.ac
  3993. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3994. Added nosqlite3 build to build_test.sh.
  3995. Renamed noxml as expat.
  3996. * build_test.sh
  3997. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3998. Updated INPUT FILE section.
  3999. * doc/aria2c.1.txt
  4000. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4001. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  4002. on big endian systems because test .aria2 files are made for little
  4003. endian systems.
  4004. * test/DefaultBtProgressInfoFileTest.cc
  4005. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4006. Dropped ares support.
  4007. * README
  4008. * configure.ac
  4009. * m4/libares.m4: Removed.
  4010. * src/AsyncNameResolver.cc
  4011. * src/Makefile.am
  4012. * test/Makefile.am
  4013. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4014. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  4015. Removed const qualifier from DiskWriter::size().
  4016. * src/AbstractDiskWriter.cc
  4017. * src/AbstractDiskWriter.h
  4018. * src/ByteArrayDiskWriter.cc
  4019. * src/ByteArrayDiskWriter.h
  4020. * src/DiskWriter.h
  4021. * test/ByteArrayDiskWriterTest.cc
  4022. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4023. Fixed the bug that causes segmentation fault/bus error during executing
  4024. choking algorithm while seeding. This is caused by improper
  4025. implementation of compare function which returns inconsistent results
  4026. depending on the timing of last unchoke.
  4027. * src/BtSeederStateChoke.cc
  4028. * src/BtSeederStateChoke.h
  4029. * src/DefaultPeerStorage.cc
  4030. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4031. Removed TODO
  4032. * TODO
  4033. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4034. Added a section that explains how to pass argument to options that
  4035. takes optional arguments with its short form.
  4036. * doc/aria2c.1.txt
  4037. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4038. Added -u for the short form of --max-upload-limit option.
  4039. * doc/aria2c.1.txt
  4040. * src/option_processing.cc
  4041. * src/usage_text.h
  4042. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4043. Added -V for the short form of --check-integrity option.
  4044. Now the argument of --check-integrity option is optional:
  4045. if it is omitted, it is evaluated as true.
  4046. * doc/aria2c.1.txt
  4047. * src/option_processing.cc
  4048. * src/usage_text.h
  4049. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4050. Made the default value of --ftp-pasv option set to true and it can take
  4051. true/false values.
  4052. * src/OptionHandlerFactory.cc
  4053. * src/option_processing.cc
  4054. * src/usage_text.h
  4055. * doc/aria2c.1.txt
  4056. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4057. Given custom random number generator to std::random_shuffle.
  4058. * src/AnnounceList.cc
  4059. * src/BtLeecherStateChoke.cc
  4060. * src/BtSeederStateChoke.cc
  4061. * src/DefaultBtRequestFactory.cc
  4062. * src/MetalinkEntry.cc
  4063. * src/RarestPieceSelector.cc
  4064. * src/SimpleRandomizer.cc
  4065. * src/SimpleRandomizer.h
  4066. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4067. Now the default value of --enable-direct-io is true.
  4068. * src/OptionHandlerFactory.cc
  4069. * doc/aria2c.1.txt
  4070. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4071. Erase peer before executing onReturningPeer and onErasingPeer
  4072. because choking algorithm called from onReturningPeer doesn't
  4073. like erasing peer in the active peer list.
  4074. * src/DefaultPeerStorage.cc
  4075. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4076. Instead of creating special filename in createDownloadResult() if
  4077. inMemoryDownload() is true, now it is done in getFilePath().
  4078. * src/RequestGroup.cc
  4079. * test/RequestGroupTest.cc
  4080. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4081. Print "[MEMORY]" and filename if a file is not saved in disk and just
  4082. processed in memory. This is the fix for previous comment out.
  4083. * src/MemoryBufferPreDownloadHandler.cc
  4084. * src/RequestGroup.cc
  4085. * src/RequestGroup.h
  4086. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4087. Commented out the code which sets virtual directory path "[MEMORY]"
  4088. propagate directory to store to following RequestGroup.
  4089. * src/MemoryBufferPreDownloadHandler.cc
  4090. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4091. Bump up version number to 1.0.0b
  4092. * configure.ac
  4093. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4094. Added input_uris.txt to EXTRA_DIST
  4095. * test/Makefile.am
  4096. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4097. Removed PeerObject.h from Makefile.am
  4098. * src/Makefile.am
  4099. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4100. Avoid slow seeding
  4101. * src/PeerInteractionCommand.cc
  4102. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4103. Updated usage for -i option.
  4104. * src/usage_text.h (TEXT_INPUT_FILE)
  4105. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4106. Added INPUT FILE section to man page.
  4107. Escaped fake URLs.
  4108. * doc/aria2c.1.txt
  4109. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4110. Fixed wrong note position for -o option.
  4111. * doc/aria2c.1.txt
  4112. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4113. Fixed compile error without SSL/XML library.
  4114. * src/DefaultBtProgressInfoFile.cc
  4115. * src/DefaultBtProgressInfoFile.h
  4116. * src/FileMetalinkParserState.cc
  4117. * src/RequestGroup.h
  4118. * src/SocketCore.cc
  4119. * src/SocketCore.h
  4120. * src/VerificationMetalinkParserState.cc
  4121. * src/download_helper.h
  4122. * src/main.cc
  4123. * test/DefaultBtProgressInfoFileTest.cc
  4124. * test/DownloadHelperTest.cc
  4125. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4126. Rewritten URI handling functions. They are now provided as a testable
  4127. functions.
  4128. * src/Makefile.am
  4129. * src/RequestGroup.cc
  4130. * src/RequestGroup.h
  4131. * src/download_helper.cc
  4132. * src/download_helper.h
  4133. * src/main.cc
  4134. * test/DownloadHelperTest.cc
  4135. * test/Makefile.am
  4136. * test/input_uris.txt
  4137. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4138. Quickly terminate commands when ctrl-c is pressed.
  4139. * src/DownloadEngine.cc
  4140. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4141. Quickly terminate idle commands when download finished.
  4142. * src/AbstractCommand.cc
  4143. * src/DownloadCommand.cc
  4144. * src/DownloadEngine.cc
  4145. * src/DownloadEngine.h
  4146. * src/SleepCommand.cc
  4147. * src/SleepCommand.h
  4148. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4149. Added the ability to specify output filename and directory in input
  4150. file.
  4151. Additional parameters are added in the following line of URIs
  4152. with proceeding white space(s), 1 parameter in 1 line.
  4153. The parameter names are the same with the command-line option name
  4154. without proceeding "--". Not all the options are available here:
  4155. at the moment, 'dir' and 'out' options are avialable.
  4156. Please note that out option has no effect against Metalink or BitTorrent
  4157. downloads.
  4158. Example input file:
  4159. http://host/foo-1.1.tar.bz2
  4160. out=foo.tar.bz2
  4161. dir=/tmp/downloads
  4162. http://host/thundermonkey-2.0.tar.bz2
  4163. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  4164. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  4165. thundermonkey-2.0.tar.bz2 is saved as
  4166. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  4167. * src/BtPostDownloadHandler.cc
  4168. * src/Metalink2RequestGroup.cc
  4169. * src/Metalink2RequestGroup.h
  4170. * src/MetalinkPostDownloadHandler.cc
  4171. * src/UriListParser.cc
  4172. * src/UriListParser.h
  4173. * src/main.cc
  4174. * test/Metalink2RequestGroupTest.cc
  4175. * test/UriListParserTest.cc
  4176. * test/filelist1.txt
  4177. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4178. Fixed error when SSL library is not found.
  4179. * configure.ac
  4180. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4181. Cross referenced among -s, -C and -j options.
  4182. Updated usage of -C and -s options.
  4183. * src/usage_text.h
  4184. * doc/aria2c.1.txt
  4185. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4186. Fixed bad cast in 32bit platforms.
  4187. * test/DefaultPieceStorageTest.cc
  4188. (DefaultPieceStorageTest::testGetCompletedLength)
  4189. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4190. Fixed unit test fails on 32bit platforms.
  4191. * test/CookieParserTest.cc
  4192. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4193. Show an average download speed in Download results.
  4194. * src/BtFileAllocationEntry.cc
  4195. * src/DefaultPieceStorage.cc
  4196. * src/DownloadContext.cc
  4197. * src/DownloadContext.h
  4198. * src/DownloadResult.h
  4199. * src/RequestGroup.cc
  4200. * src/RequestGroupMan.cc
  4201. * src/StreamFileAllocationEntry.cc
  4202. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4203. Fixed the bug that metalink file is not processed if Content-Type
  4204. field has a paramter.
  4205. * src/HttpResponse.cc
  4206. * src/HttpResponse.h
  4207. * test/HttpResponseTest.cc
  4208. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4209. Removed unused code.
  4210. * src/DefaultBtAnnounce.cc
  4211. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4212. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  4213. the value larger than DefaultPieceStorage::getTotalLength() when
  4214. in flight pieces are involved.
  4215. * src/DefaultPieceStorage.cc
  4216. * test/DefaultPieceStorageTest.cc
  4217. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4218. Bump up version number to 1.0.0a.
  4219. * configure.ac
  4220. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4221. Updated configure.ac
  4222. * configure.ac
  4223. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4224. Added usege for proxy.
  4225. * doc/aria2c.1.txt
  4226. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4227. Added usage for --ca-certificate, --certificate, --private-key and
  4228. --check-certificate options.
  4229. * doc/aria2c.1.txt
  4230. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4231. Updated man page
  4232. * doc/aria2c.1.txt
  4233. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4234. Added --no-proxy option. It receives comman separated hostname or
  4235. domains to which proxy should not be used.
  4236. aria2 honors the environment variable no_proxy to override no-proxy
  4237. value in configuration file. The user can override the environment
  4238. variable no_proxy with --no-proxy command-line option.
  4239. * src/AbstractCommand.cc
  4240. * src/OptionHandlerFactory.cc
  4241. * src/option_processing.cc
  4242. * src/prefs.cc
  4243. * src/prefs.h
  4244. * src/usage_text.h
  4245. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4246. Added the ability to verify peer in SSL/TLS using given CA certificates.
  4247. The CA certificates are specified in --ca-certificate option.
  4248. By default, the verification is disabled. Use --check-certificate
  4249. option to enable it.
  4250. * src/HttpRequestCommand.cc
  4251. * src/LibgnutlsTLSContext.cc
  4252. * src/LibgnutlsTLSContext.h
  4253. * src/LibsslTLSContext.cc
  4254. * src/LibsslTLSContext.h
  4255. * src/MultiUrlRequestInfo.cc
  4256. * src/OptionHandlerFactory.cc
  4257. * src/SocketCore.cc
  4258. * src/SocketCore.h
  4259. * src/a2functional.h
  4260. * src/message.h
  4261. * src/option_processing.cc
  4262. * src/prefs.cc
  4263. * src/prefs.h
  4264. * src/usage_text.h
  4265. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4266. Added client certificate authentication for SSL/TLS.
  4267. Currently a private key must be decrypted for use with aria2.
  4268. If a user accidentally gives encrypted file to aria2 then following
  4269. thing happens:
  4270. If encrypted private key is given to aria2, it behaves differently
  4271. depending on the ssl library it uses. If aria2 built with openssl then
  4272. openssl prompts the user for password. If aria2 build with gnutls then
  4273. aria2 exists with error at start up.
  4274. * src/DownloadEngineFactory.cc
  4275. * src/MultiUrlRequestInfo.cc
  4276. * src/OptionHandlerFactory.cc
  4277. * src/option_processing.cc
  4278. * src/prefs.cc
  4279. * src/prefs.h
  4280. * src/usage_text.h
  4281. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4282. Introduced TLSContext that holds TLS related data that can be shared
  4283. with multiple SSL connections.
  4284. * src/DownloadEngineFactory.cc
  4285. * src/LibgnutlsTLSContext.cc
  4286. * src/LibgnutlsTLSContext.h
  4287. * src/LibsslTLSContext.cc
  4288. * src/LibsslTLSContext.h
  4289. * src/Makefile.am
  4290. * src/SocketCore.cc
  4291. * src/SocketCore.h
  4292. * src/TLSContext.h
  4293. * src/message.h
  4294. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4295. Fixed the bug that the DiskWriter of the first FileEntry whose
  4296. `needsFileAllocation' property is false is not created
  4297. even if it shares a piece with next FileEntry which `requested' property
  4298. is true.
  4299. Fixed the bug that zero-length file is not created if pre file
  4300. allocation is not done.
  4301. * src/MultiDiskAdaptor.cc
  4302. * src/MultiDiskAdaptor.h
  4303. * test/MultiDiskAdaptorTest.cc
  4304. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4305. Added the ability to pool proxy connection.
  4306. The conneciton in FTP with proxy-method=GET is not pooled.
  4307. Proxy-Connection header will not be sent when sending CONNECT method.
  4308. * src/DownloadEngine.cc
  4309. * src/DownloadEngine.h
  4310. * src/FtpFinishDownloadCommand.cc
  4311. * src/FtpInitiateConnectionCommand.cc
  4312. * src/FtpNegotiationCommand.cc
  4313. * src/HttpDownloadCommand.cc
  4314. * src/HttpInitiateConnectionCommand.cc
  4315. * src/HttpRequest.cc
  4316. * src/HttpRequest.h
  4317. * src/HttpResponse.cc
  4318. * src/HttpSkipResponseCommand.cc
  4319. * test/HttpRequestTest.cc
  4320. * test/HttpResponseTest.cc
  4321. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4322. Handle date before epoch.
  4323. To create *bad* Time object, call Time::null().
  4324. * src/CookieParser.cc
  4325. * src/FtpConnection.cc
  4326. * src/FtpConnection.h
  4327. * src/FtpNegotiationCommand.cc
  4328. * src/RequestGroup.cc
  4329. * src/TimeA2.cc
  4330. * src/TimeA2.h
  4331. * test/CookieParserTest.cc
  4332. * test/FtpConnectionTest.cc
  4333. * test/TimeTest.cc
  4334. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4335. Added support for following envrionment variables: http_proxy,
  4336. https_proxy, ftp_proxy and all_proxy.
  4337. Each variable is equivalent to the aria2 option whose name is the
  4338. variable name with '_' replaced with '-'.
  4339. They overrides options specified in aria2.conf file.
  4340. The envrionment variables can be overrode using command-line option.
  4341. * src/option_processing.cc
  4342. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4343. Renamed --http-proxy-method as --proxy-method.
  4344. * src/AbstractCommand.cc
  4345. * src/FtpInitiateConnectionCommand.cc
  4346. * src/HttpInitiateConnectionCommand.cc
  4347. * src/OptionHandlerFactory.cc
  4348. * src/option_processing.cc
  4349. * src/prefs.cc
  4350. * src/prefs.h
  4351. * src/usage_text.h
  4352. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4353. Deprecated --http-proxy-user and --http-proxy-passwd options.
  4354. Added --https-proxy, --ftp-proxy and --all-proxy options.
  4355. Above 3 options and --http-proxy option can handle proxy in URL format
  4356. like: http://user:passwd@host:port.
  4357. If a proxy requires user/password, they must be specified in a URL.
  4358. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  4359. instead.
  4360. * src/AbstractCommand.cc
  4361. * src/AbstractCommand.h
  4362. * src/AbstractProxyRequestCommand.cc
  4363. * src/AbstractProxyRequestCommand.h
  4364. * src/AuthConfigFactory.cc
  4365. * src/AuthConfigFactory.h
  4366. * src/FtpFinishDownloadCommand.cc
  4367. * src/FtpInitiateConnectionCommand.cc
  4368. * src/FtpInitiateConnectionCommand.h
  4369. * src/FtpNegotiationCommand.cc
  4370. * src/FtpTunnelRequestCommand.cc
  4371. * src/FtpTunnelRequestCommand.h
  4372. * src/HttpDownloadCommand.cc
  4373. * src/HttpInitiateConnectionCommand.cc
  4374. * src/HttpInitiateConnectionCommand.h
  4375. * src/HttpProxyRequestCommand.cc
  4376. * src/HttpProxyRequestCommand.h
  4377. * src/HttpRequest.cc
  4378. * src/HttpRequest.h
  4379. * src/HttpRequestCommand.cc
  4380. * src/HttpRequestCommand.h
  4381. * src/HttpSkipResponseCommand.cc
  4382. * src/InitiateConnectionCommand.cc
  4383. * src/InitiateConnectionCommand.h
  4384. * src/OptionHandlerFactory.cc
  4385. * src/OptionHandlerImpl.h
  4386. * src/Request.cc
  4387. * src/option_processing.cc
  4388. * src/prefs.cc
  4389. * src/prefs.h
  4390. * src/usage_text.h
  4391. * test/AuthConfigFactoryTest.cc
  4392. * test/HttpRequestTest.cc
  4393. * test/OptionHandlerTest.cc
  4394. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4395. Execute choking algorithm when unchoked and interested peer is
  4396. disconected.
  4397. * src/DefaultPeerStorage.cc
  4398. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4399. Added testcase for BtNotInterestedMessage from unchoked peer.
  4400. * test/BtNotInterestedMessageTest.cc
  4401. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4402. Execute choking algorithm when BtInterestedMessage arrives from
  4403. unchoked peer.
  4404. * src/BtInterestedMessage.cc
  4405. * src/BtInterestedMessage.h
  4406. * src/DefaultBtMessageFactory.cc
  4407. * test/BtInterestedMessageTest.cc
  4408. * test/MockPeerStorage.h
  4409. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4410. AuthConfigFactory is now part of DownloadEngine.
  4411. * src/AbstractProxyRequestCommand.cc
  4412. * src/AuthConfigFactory.h
  4413. * src/DownloadEngine.cc
  4414. * src/DownloadEngine.h
  4415. * src/FtpConnection.cc
  4416. * src/FtpConnection.h
  4417. * src/FtpNegotiationCommand.cc
  4418. * src/HttpConnection.cc
  4419. * src/HttpRequest.cc
  4420. * src/HttpRequest.h
  4421. * src/HttpRequestCommand.cc
  4422. * src/HttpResponse.cc
  4423. * src/HttpResponseCommand.cc
  4424. * src/HttpSkipResponseCommand.cc
  4425. * src/MultiUrlRequestInfo.cc
  4426. * src/main.cc
  4427. * test/FtpConnectionTest.cc
  4428. * test/HttpRequestTest.cc
  4429. * test/HttpResponseTest.cc
  4430. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4431. Corrected catched exception type.
  4432. * src/ServerStatMan.cc
  4433. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4434. DNSCache is now part of DownloadEngine.
  4435. * src/DNSCache.h
  4436. * src/DownloadEngine.cc
  4437. * src/DownloadEngine.h
  4438. * src/InitiateConnectionCommand.cc
  4439. * src/MultiUrlRequestInfo.cc
  4440. * test/Makefile.am
  4441. * test/Makefile.in
  4442. * test/SimpleDNSCacheTest.cc
  4443. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4444. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  4445. DownloadEngine.
  4446. * src/ActivePeerConnectionCommand.cc
  4447. * src/BtSetup.cc
  4448. * src/CUIDCounter.h
  4449. * src/DHTSetup.cc
  4450. * src/DownloadCommand.cc
  4451. * src/DownloadEngine.cc
  4452. * src/DownloadEngine.h
  4453. * src/DownloadEngineFactory.cc
  4454. * src/FileAllocationDispatcherCommand.cc
  4455. * src/InitiatorMSEHandshakeCommand.cc
  4456. * src/PeerInitiateConnectionCommand.cc
  4457. * src/PeerInteractionCommand.cc
  4458. * src/PeerListenCommand.cc
  4459. * src/RequestGroup.cc
  4460. * src/StreamFileAllocationEntry.cc
  4461. * src/TrackerWatcherCommand.cc
  4462. * src/main.cc
  4463. * test/RequestGroupManTest.cc
  4464. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4465. Implemented commented code in BtSeederStateChoke
  4466. * src/BtSeederStateChoke.cc
  4467. * src/Peer.cc
  4468. * src/Peer.h
  4469. * src/PeerInteractionCommand.cc
  4470. * src/PeerSessionResource.cc
  4471. * src/PeerSessionResource.h
  4472. * test/MockBtMessageDispatcher.h
  4473. * test/PeerSessionResourceTest.cc
  4474. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4475. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  4476. its object.
  4477. * src/AbstractBtMessage.cc
  4478. * src/ActivePeerConnectionCommand.cc
  4479. * src/ActivePeerConnectionCommand.h
  4480. * src/BtContextAwareCommand.cc
  4481. * src/BtContextAwareCommand.h
  4482. * src/BtExtendedMessage.cc
  4483. * src/BtExtendedMessage.h
  4484. * src/BtInterestedMessage.cc
  4485. * src/BtInterestedMessage.h
  4486. * src/BtNotInterestedMessage.cc
  4487. * src/BtNotInterestedMessage.h
  4488. * src/BtRegistry.cc
  4489. * src/BtRegistry.h
  4490. * src/BtSeederStateChoke.cc
  4491. * src/BtSetup.cc
  4492. * src/DHTGetPeersCommand.cc
  4493. * src/DHTGetPeersCommand.h
  4494. * src/DHTPeerAnnounceEntry.cc
  4495. * src/DHTPeerAnnounceEntry.h
  4496. * src/DHTPeerAnnounceStorage.cc
  4497. * src/DHTPeerAnnounceStorage.h
  4498. * src/DHTPeerLookupTask.cc
  4499. * src/DHTPeerLookupTask.h
  4500. * src/DHTSetup.cc
  4501. * src/DHTSetup.h
  4502. * src/DHTTaskFactory.h
  4503. * src/DHTTaskFactoryImpl.cc
  4504. * src/DHTTaskFactoryImpl.h
  4505. * src/DefaultBtAnnounce.cc
  4506. * src/DefaultBtInteractive.cc
  4507. * src/DefaultBtInteractive.h
  4508. * src/DefaultBtMessageDispatcher.cc
  4509. * src/DefaultBtMessageDispatcher.h
  4510. * src/DefaultBtMessageFactory.cc
  4511. * src/DefaultBtMessageFactory.h
  4512. * src/DefaultBtMessageReceiver.cc
  4513. * src/DefaultBtProgressInfoFile.cc
  4514. * src/DefaultBtProgressInfoFile.h
  4515. * src/DefaultBtRequestFactory.cc
  4516. * src/DefaultBtRequestFactory.h
  4517. * src/DefaultExtensionMessageFactory.cc
  4518. * src/DefaultExtensionMessageFactory.h
  4519. * src/DefaultPeerStorage.cc
  4520. * src/DefaultPeerStorage.h
  4521. * src/DownloadEngine.cc
  4522. * src/DownloadEngine.h
  4523. * src/InitiatorMSEHandshakeCommand.cc
  4524. * src/InitiatorMSEHandshakeCommand.h
  4525. * src/MSEHandshake.cc
  4526. * src/MSEHandshake.h
  4527. * src/Makefile.am
  4528. * src/Makefile.in
  4529. * src/PeerChokeCommand.cc
  4530. * src/PeerChokeCommand.h
  4531. * src/PeerInitiateConnectionCommand.cc
  4532. * src/PeerInitiateConnectionCommand.h
  4533. * src/PeerInteractionCommand.cc
  4534. * src/PeerInteractionCommand.h
  4535. * src/PeerObject.h
  4536. * src/PeerReceiveHandshakeCommand.cc
  4537. * src/PeerReceiveHandshakeCommand.h
  4538. * src/ReceiverMSEHandshakeCommand.cc
  4539. * src/RequestGroup.cc
  4540. * src/RequestGroup.h
  4541. * src/RequestGroupMan.cc
  4542. * src/RequestGroupMan.h
  4543. * src/SeedCheckCommand.cc
  4544. * src/SeedCheckCommand.h
  4545. * src/ShareRatioSeedCriteria.h
  4546. * src/SimpleBtMessage.cc
  4547. * src/TrackerWatcherCommand.cc
  4548. * src/TrackerWatcherCommand.h
  4549. * src/UTPexExtensionMessage.cc
  4550. * src/UTPexExtensionMessage.h
  4551. * test/BtCancelMessageTest.cc
  4552. * test/BtChokeMessageTest.cc
  4553. * test/BtExtendedMessageTest.cc
  4554. * test/BtInterestedMessageTest.cc
  4555. * test/BtNotInterestedMessageTest.cc
  4556. * test/BtPieceMessageTest.cc
  4557. * test/BtPortMessageTest.cc
  4558. * test/BtRegistryTest.cc
  4559. * test/BtRejectMessageTest.cc
  4560. * test/BtRequestMessageTest.cc
  4561. * test/DHTPeerAnnounceEntryTest.cc
  4562. * test/DHTPeerAnnounceStorageTest.cc
  4563. * test/DefaultBtMessageDispatcherTest.cc
  4564. * test/DefaultBtMessageFactoryTest.cc
  4565. * test/DefaultBtProgressInfoFileTest.cc
  4566. * test/DefaultBtRequestFactoryTest.cc
  4567. * test/DefaultExtensionMessageFactoryTest.cc
  4568. * test/MSEHandshakeTest.cc
  4569. * test/MockDHTTaskFactory.h
  4570. * test/ShareRatioSeedCriteriaTest.cc
  4571. * test/UTPexExtensionMessageTest.cc
  4572. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4573. Fixed compiler warning.
  4574. * test/UtilTest.cc
  4575. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4576. Treat Cookie object as session cookie if expiry = 0 is given.
  4577. With this change, you can specify session scoped cookies in an external
  4578. file setting expiry value to 0.
  4579. * src/Cookie.cc
  4580. * src/Cookie.h
  4581. * test/CookieParserTest.cc
  4582. * test/CookieStorageTest.cc
  4583. * test/CookieTest.cc
  4584. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4585. Changed signature of DHTMessageFactory::createResponseMessage().
  4586. Removed unused validateIDMatch.
  4587. * src/DHTMessageFactory.h
  4588. * src/DHTMessageFactoryImpl.cc
  4589. * src/DHTMessageFactoryImpl.h
  4590. * src/DHTMessageTracker.cc
  4591. * test/DHTMessageFactoryImplTest.cc
  4592. * test/MockDHTMessageFactory.h
  4593. Dropped DHT message coming from same ID of localhost.
  4594. * src/DHTMessageReceiver.cc
  4595. Rejected adding node whose ID is the same as localhost's.
  4596. * src/DHTRoutingTable.cc
  4597. * test/BtPortMessageTest.cc
  4598. * test/DHTRoutingTableTest.cc
  4599. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4600. Pool connection when redirection occurs with Content-Length = 0.
  4601. * src/HttpSkipResponseCommand.cc
  4602. * src/HttpSkipResponseCommand.h
  4603. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4604. Fixed the bug that causes time out when redirection occurs with
  4605. content-length 0.
  4606. * src/HttpResponseCommand.cc
  4607. * src/HttpSkipResponseCommand.cc
  4608. * src/HttpSkipResponseCommand.h
  4609. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4610. Now each status legends is shown only when it appears in Download
  4611. Result. If Download Result has no item, then status legend will not
  4612. be printed.
  4613. * src/RequestGroupMan.cc
  4614. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4615. Removed duplicate creation of OptionHandlers.
  4616. * src/option_processing.cc
  4617. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4618. Fixed the bug that causes segmentation fault when accessing files which
  4619. don't exist or are not included in --select-file option while
  4620. validating chunk checksum.
  4621. * src/MultiDiskAdaptor.cc
  4622. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4623. Fixed compiler warning.
  4624. * test/UtilTest.cc
  4625. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4626. Included cstdlib. This fixed the compile error with g++-4.3.2.
  4627. * src/IteratableChecksumValidator.cc
  4628. * src/IteratableChunkChecksumValidator.cc
  4629. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4630. * Release 0.16.2
  4631. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4632. Added Serbian translation. Updated Ukrainian translation.
  4633. Thanks to all translators.
  4634. * po/sr.po
  4635. * po/uk.po
  4636. * po/LINGUAS
  4637. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4638. Bump up version number to 0.16.2
  4639. * configure.ac
  4640. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4641. Added length equality test to operator== to drop a piece message
  4642. whose length does not match to the requested one.
  4643. * src/RequestSlot.cc
  4644. * test/DefaultBtMessageDispatcherTest.cc
  4645. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4646. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  4647. recieved.
  4648. In this fix, if a request larger than 16KiB length is received, aria2
  4649. disconnects the peer.
  4650. * src/BtConstants.h
  4651. * src/PeerMessageUtil.cc
  4652. * src/PeerMessageUtil.h
  4653. * test/BtRequestMessageTest.cc
  4654. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4655. * Release 0.16.1
  4656. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4657. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  4658. * doc/aria2c.1.txt
  4659. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4660. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  4661. Updated French, Simplified Chinese and Japanese translations.
  4662. Thanks to all translators.
  4663. en@quot and en@boldquot are also added.
  4664. * po/LINGUAS
  4665. * po/fr.po
  4666. * po/ja.po
  4667. * po/uk.po
  4668. * po/vi.po
  4669. * po/zh_CN.po
  4670. * po/zh_TW.po
  4671. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4672. Bump up version number to 0.16.1.
  4673. * configure.ac
  4674. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4675. Updated README.
  4676. * README
  4677. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4678. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  4679. not to replace '--' with em dash character.
  4680. * doc/aria2c.1.txt
  4681. * doc/makeman
  4682. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4683. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  4684. every SEC seconds.
  4685. * src/DownloadEngineFactory.cc
  4686. * src/OptionHandlerFactory.cc
  4687. * src/option_processing.cc
  4688. * src/usage_text.h
  4689. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4690. Fixed compile warning on linux-amd64
  4691. * src/FtpConnection.cc
  4692. * src/IteratableChunkChecksumValidator.cc
  4693. * src/MultiDiskAdaptor.cc
  4694. Fixed the bug that unit test fails on linux-amd64
  4695. * test/UtilTest.cc
  4696. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4697. Added --dht-file-path option to change the path to dht.dat, which is a
  4698. serialized DHT routing table.
  4699. * src/OptionHandlerFactory.cc
  4700. * src/option_processing.cc
  4701. * src/usage_text.h
  4702. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4703. Fixed possible underflow.
  4704. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  4705. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4706. Fixed the bug that last character in URI is not encoded.
  4707. * src/Request.cc
  4708. * test/RequestTest.cc
  4709. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4710. Fixed the bug that referer header field contains fragment.
  4711. Now Request class removes fragment part of URI and encodes it
  4712. in Request::setUri() and setReferer().
  4713. * src/Request.h
  4714. * src/Request.cc
  4715. * test/RequestTest.cc
  4716. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4717. Added missing m4 macros.
  4718. * m4/cppunit.m4
  4719. * m4/libgcrypt.m4
  4720. * m4/libgnutls-extra.m4
  4721. * m4/libgnutls.m4
  4722. * m4/libxml2.m4
  4723. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4724. Fixed compile error with gcc-4.4(snapshot)
  4725. * src/File.cc
  4726. * src/FtpConnection.cc
  4727. * src/OptionHandlerImpl.h
  4728. * src/Util.cc
  4729. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4730. Removed assert()
  4731. * src/SocketBuffer.cc (SocketBuffer::send)
  4732. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4733. Changed the type of _numNewConnection to unsigned int.
  4734. * src/ActivePeerConnectionCommand.cc
  4735. * src/ActivePeerConnectionCommand.h
  4736. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4737. * Release 0.16.0
  4738. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4739. Updated doc
  4740. * README
  4741. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4742. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  4743. translations. Thanks to all translators.
  4744. * po/bg.po
  4745. * po/de.po
  4746. * po/fr.po
  4747. * po/ja.po
  4748. * po/zh_CN.po
  4749. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4750. Bump up version number to 0.16.0.
  4751. * configure.ac
  4752. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4753. Casted entry->maxConnections to int32_t for std::min<T> with T =
  4754. int32_t.
  4755. Changed the type of count to int32_t.
  4756. * src/Metalink2RequestGroup.cc
  4757. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4758. Added test for Time::elapsed(time_t).
  4759. * test/TimeTest.cc
  4760. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4761. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  4762. Util::difftv() should be used instead.
  4763. * src/TimeA2.cc
  4764. * src/TimeA2.h
  4765. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4766. Made socket for dht connections non-blocking
  4767. * src/DHTAbstractMessage.cc
  4768. * src/DHTAbstractMessage.h
  4769. * src/DHTConnection.h
  4770. * src/DHTConnectionImpl.cc
  4771. * src/DHTConnectionImpl.h
  4772. * src/DHTMessage.h
  4773. * src/DHTMessageDispatcherImpl.cc
  4774. * src/DHTMessageDispatcherImpl.h
  4775. * src/DHTUnknownMessage.cc
  4776. * src/DHTUnknownMessage.h
  4777. * src/SocketCore.cc
  4778. * src/SocketCore.h
  4779. * test/MockDHTMessage.h
  4780. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4781. Changed the type of offset to int.
  4782. * src/ParameterizedStringParser.cc
  4783. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4784. Made getAsInt() return int32_t
  4785. * src/Option.h
  4786. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4787. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  4788. build.
  4789. * configure.ac
  4790. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4791. Use sqlite3_open if sqlite3_open_v2 is not available.
  4792. * src/Sqlite3MozCookieParser.cc
  4793. * src/Sqlite3MozCookieParser.h
  4794. * m4/sqlite3.m4
  4795. * test/Sqlite3MozCookieParserTest.cc
  4796. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4797. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  4798. * src/BtPieceMessage.cc
  4799. * src/DHTPeerAnnounceStorage.cc
  4800. * src/DefaultPieceStorage.cc
  4801. * src/DownloadCommand.cc
  4802. * src/DownloadEngine.cc
  4803. * src/FtpConnection.cc
  4804. * src/PeerConnection.cc
  4805. * src/PeerMessageUtil.cc
  4806. * src/RequestGroup.cc
  4807. * src/RequestGroupMan.cc
  4808. * src/SimpleBtMessage.cc
  4809. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4810. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  4811. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  4812. * src/AbstractDiskWriter.cc
  4813. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4814. Don't set Request::supportsPersistentConnection() in HttpConnection
  4815. since this code is also used in AbstractProxyResponseCommand.
  4816. Moved those code to HttpResponse.
  4817. * src/HttpResponse.cc
  4818. * src/HttpResponse.h
  4819. * src/HttpConnection.cc
  4820. * src/HttpConnection.h
  4821. * src/HttpResponseCommand.cc
  4822. * test/HttpResponseTest.cc
  4823. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4824. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  4825. The configuration is minimum: no torrent, no metalink, so there may be
  4826. other compile error on their code.
  4827. * src/a2netcompat.h
  4828. * src/File.cc
  4829. * src/File.h
  4830. * src/SocketCore.cc
  4831. * src/SocketCore.h
  4832. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4833. Made a socket of incoming peer non-blocking.
  4834. * src/PeerListenCommand.cc
  4835. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4836. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  4837. whole message data is not sent in one send() call.
  4838. * src/BtPieceMessage.cc
  4839. * src/BtPieceMessage.h
  4840. * src/PeerConnection.cc
  4841. * src/PeerConnection.h
  4842. * src/SimpleBtMessage.cc
  4843. * src/SimpleBtMessage.h
  4844. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4845. Fixed the bug that aria2 downloads faster than max-download-limit when
  4846. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  4847. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  4848. , instead of sum of them.
  4849. * src/ActivePeerConnectionCommand.cc
  4850. * src/DefaultBtInteractive.cc
  4851. * src/DownloadCommand.cc
  4852. * src/PeerInteractionCommand.cc
  4853. * src/PeerReceiveHandshakeCommand.cc
  4854. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4855. Fixed the bug that HTTPS download fails.
  4856. * src/AbstractCommand.cc
  4857. * src/AbstractCommand.h
  4858. * src/DownloadCommand.cc
  4859. * src/FtpConnection.cc
  4860. * src/HttpConnection.cc
  4861. * src/HttpRequestCommand.cc
  4862. * src/HttpResponseCommand.cc
  4863. * src/HttpSkipResponseCommand.cc
  4864. * src/MSEHandshake.cc
  4865. * src/PeerConnection.cc
  4866. * src/SocketCore.cc
  4867. * src/SocketCore.h
  4868. Fixed the bug that aria2 doesn't download whole content body and cannot
  4869. reuse connection if chunked transfer encoding and gzip content encoding
  4870. are set.
  4871. * src/DownloadCommand.cc
  4872. * src/HttpSkipResponseCommand.cc
  4873. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4874. Updated man page.
  4875. * doc/aria2c.1.txt
  4876. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4877. When error occurred while aria2 was parsing an .aria2.conf file, print
  4878. the usage of the option that caused error.
  4879. * src/option_processing.cc
  4880. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4881. Fixed compile error on OptionHandlerException
  4882. * src/Makefile.am
  4883. * src/OptionHandlerException.cc
  4884. * src/OptionHandlerException.h
  4885. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4886. Moved message of the error to OptionHandlerException.h
  4887. * src/NameMatchOptionHandler.h
  4888. * src/OptionHandlerException.h
  4889. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4890. When error occurs while aria2 is parsing an command-line option, print
  4891. the usage of the option.
  4892. * src/Makefile.am
  4893. * src/NameMatchOptionHandler.h
  4894. * src/OptionHandlerException.h
  4895. * src/option_processing.cc
  4896. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4897. Reverted previous change.
  4898. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  4899. username is not in URI.
  4900. * src/HttpRequest.cc
  4901. * src/Request.cc
  4902. * test/HttpRequestTest.cc
  4903. * test/RequestTest.cc
  4904. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4905. Now colon is required for username and password in FTP URL, like:
  4906. ftp://username:password@host.
  4907. If colon is not there, aria2 don't parse it as a username. For example,
  4908. aria2 don't retrieve username from ftp://username@host.
  4909. This fix was made in order to login FTP server via non-transparent ftp
  4910. proxy.
  4911. * src/Request.cc
  4912. * test/RequestTest.cc
  4913. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4914. Use netrc for HTTP.
  4915. Now FTP user/password is sent in Authorization header when
  4916. --ftp-via-http-proxy=get is given.
  4917. * src/AuthConfigFactory.cc
  4918. * src/HttpRequest.cc
  4919. * src/HttpRequest.h
  4920. * src/NetrcAuthResolver.cc
  4921. * src/NetrcAuthResolver.h
  4922. * src/OptionHandlerFactory.cc
  4923. * src/option_processing.cc
  4924. * src/prefs.cc
  4925. * src/prefs.h
  4926. * test/AuthConfigFactoryTest.cc
  4927. * test/HttpRequestTest.cc
  4928. * test/NetrcAuthResolverTest.cc
  4929. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4930. Issue PWD command first and get working directory and use it as a prefix
  4931. for CWD command.
  4932. * src/DownloadEngine.cc
  4933. * src/DownloadEngine.h
  4934. * src/FtpConnection.cc
  4935. * src/FtpConnection.h
  4936. * src/FtpFinishDownloadCommand.cc
  4937. * src/FtpInitiateConnectionCommand.cc
  4938. * src/FtpNegotiationCommand.cc
  4939. * src/FtpNegotiationCommand.h
  4940. * test/FtpConnectionTest.cc
  4941. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4942. Removed default user/pass for FTP user/pass, since it should not have
  4943. precedence over netrc configuration by default.
  4944. * src/OptionHandlerFactory.cc
  4945. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4946. Added debug log for socket event.
  4947. * src/AbstractCommand.cc
  4948. * src/PeerAbstractCommand.cc
  4949. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4950. Log microseconds.
  4951. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4952. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4953. Replaced HelpItem.cc with OptionHandler.cc.
  4954. * po/POTFILES.in
  4955. Updated po files with 'make update-po'
  4956. * po/aria2c.pot
  4957. * po/*.po
  4958. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4959. Removed possible values from the text.
  4960. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  4961. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4962. Removed unused preferences:
  4963. PREF_NO_PREALLOCATION
  4964. PREF_STDOUT_LOG
  4965. PREF_TRACKER_MAX_TRIES
  4966. PREF_DIRECT_DOWNLOAD_TIMEOUT
  4967. PREF_MIN_SEGMENT_SIZE
  4968. * src/option_processing.cc
  4969. * src/prefs.cc
  4970. * src/prefs.h
  4971. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4972. Integrated HelpItem into OptionParser to ease the workload for adding
  4973. new options. Removed default value from usage text.
  4974. * src/HelpItem.cc: Removed.
  4975. * src/HelpItem.h: Removed.
  4976. * src/HelpItemFactory.cc: Removed.
  4977. * src/HelpItemFactory.h: Removed.
  4978. * src/Makefile.am
  4979. * src/Makefile.in
  4980. * src/NameMatchOptionHandler.h
  4981. * src/OptionHandler.cc
  4982. * src/OptionHandler.h
  4983. * src/OptionHandlerFactory.cc
  4984. * src/OptionHandlerImpl.h
  4985. * src/OptionParser.cc
  4986. * src/OptionParser.h
  4987. * src/TagContainer.cc: Removed.
  4988. * src/TagContainer.h: Removed.
  4989. * src/TaggedItem.cc: Removed.
  4990. * src/TaggedItem.h: Removed.
  4991. * src/main.cc
  4992. * src/option_processing.cc
  4993. * src/usage_text.h
  4994. * src/version_usage.cc
  4995. * test/HelpItemTest.cc: Removed.
  4996. * test/Makefile.am
  4997. * test/Makefile.in
  4998. * test/OptionHandlerTest.cc
  4999. * test/OptionParserTest.cc
  5000. * test/TagContainerTest.cc: Removed.
  5001. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5002. Moved `TransferStat stat = ...' to inside the `if' clause.
  5003. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  5004. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5005. Fixed the bug that a block in a piece is requested when same block is
  5006. already requested to the same peer in end game mode.
  5007. * src/BtRequestFactory.h
  5008. * src/DefaultBtInteractive.cc
  5009. * src/DefaultBtRequestFactory.cc
  5010. * src/DefaultBtRequestFactory.h
  5011. * src/DefaultPieceStorage.cc
  5012. * src/DefaultPieceStorage.h
  5013. * src/PieceStorage.h
  5014. * src/UnknownLengthPieceStorage.cc
  5015. * src/UnknownLengthPieceStorage.h
  5016. * test/DefaultBtRequestFactoryTest.cc
  5017. * test/DefaultPieceStorageTest.cc
  5018. * test/MockBtRequestFactory.h
  5019. * test/MockPieceStorage.h
  5020. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5021. Removed _uploadLength and _downloadLength from PeerSessionResource
  5022. and use PeerStat::_sessionUploadLength and
  5023. PeerStat::_sessionDownloadLength.
  5024. * src/PeerSessionResource.cc
  5025. * src/PeerSessionResource.h
  5026. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5027. Fixed the bug that prefixLength of split bucket which doesn't include
  5028. local node ID is incremented.
  5029. * src/DHTBucket.cc
  5030. * src/DHTBucket.h
  5031. * test/DHTBucketTest.cc
  5032. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5033. Added cookies.sqlite to EXTRA_DIST
  5034. * test/Makefile.am
  5035. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5036. Added Turkish translation. Updated French, German, Russian and
  5037. Simplified Chinese translations. Thanks to all translators.
  5038. * po/LINGUAS
  5039. * po/de.po
  5040. * po/fr.po
  5041. * po/ru.po
  5042. * po/tr.po
  5043. * po/zh_CN.po
  5044. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5045. Added deliminating text to the beginning of the log so that one can find
  5046. where the log starts easily.
  5047. * src/main.cc
  5048. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5049. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  5050. to fix compile error when async DNS is not enabled by configuration.
  5051. * src/AbstractCommand.cc
  5052. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5053. If establishing conneciton to a server is failed, then mark error on
  5054. its ServerStat.
  5055. Added the cause of error to log when error event occurred.
  5056. Moved message string to message.h for translation.
  5057. * src/AbstractCommand.cc
  5058. * src/AbstractCommand.h
  5059. * src/FtpNegotiationCommand.cc
  5060. * src/HttpRequestCommand.cc
  5061. * src/PeerAbstractCommand.cc
  5062. * src/message.h
  5063. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5064. Added the function to get error message from socket.
  5065. * src/SocketCore.cc
  5066. * src/SocketCore.h
  5067. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5068. Added convenient method RequestGroupMan::getOrCreateServerStat()
  5069. * src/RequestGroupMan.cc
  5070. * src/RequestGroupMan.h
  5071. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5072. If error event is received in epoll, then abort download immediately.
  5073. * src/AbstractCommand.cc
  5074. * src/Command.cc
  5075. * src/Command.h
  5076. * src/DownloadEngine.cc
  5077. * src/PeerAbstractCommand.cc
  5078. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5079. Added usage message for --uri-selector, --server-stat-of,
  5080. --server-stat-in, --server-stat-timeout options.
  5081. * src/HelpItemFactory.cc
  5082. * src/usage_text.h
  5083. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5084. Added upper limit of FTP response buffer. The current implementation
  5085. uses 4096bytes as a limit.
  5086. * src/FtpConnection.cc
  5087. * src/FtpConnection.h
  5088. * test/FtpConnectionTest.cc
  5089. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5090. Use non-blocking socket for TCP communication to avoid possible
  5091. blocking due to buffer full.
  5092. * src/AbstractProxyRequestCommand.cc
  5093. * src/FtpConnection.cc
  5094. * src/FtpConnection.h
  5095. * src/FtpNegotiationCommand.cc
  5096. * src/FtpNegotiationCommand.h
  5097. * src/HttpConnection.cc
  5098. * src/HttpConnection.h
  5099. * src/HttpRequestCommand.cc
  5100. * src/InitiatorMSEHandshakeCommand.cc
  5101. * src/InitiatorMSEHandshakeCommand.h
  5102. * src/MSEHandshake.cc
  5103. * src/MSEHandshake.h
  5104. * src/Makefile.am
  5105. * src/PeerConnection.cc
  5106. * src/PeerConnection.h
  5107. * src/PeerInteractionCommand.cc
  5108. * src/PeerListenCommand.cc
  5109. * src/ReceiverMSEHandshakeCommand.cc
  5110. * src/ReceiverMSEHandshakeCommand.h
  5111. * src/SocketBuffer.cc
  5112. * src/SocketBuffer.h
  5113. * src/SocketCore.cc
  5114. * src/SocketCore.h
  5115. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5116. Call setStatusRealtime() in constructor.
  5117. * src/RealtimeCommand.cc
  5118. * src/RealtimeCommand.h
  5119. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5120. Call Download::setNoWait(true) to execute newly created command without
  5121. a pause.
  5122. * src/AbstractCommand.cc
  5123. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5124. Added --max-file-not-found=NUM option. If aria2 receives `file not
  5125. found' error from HTTP/FTP server NUM times without getting single
  5126. bytes of data, then force the download to fail.
  5127. Basically aria2 tris all URIs available. So if long list of URIs are
  5128. specified in Metalink, then aria2 will take a long time to fail
  5129. eventually if all URIs are outdated. This option eases this situation
  5130. to limit the number of servers to try.
  5131. * src/FtpNegotiationCommand.cc
  5132. * src/HelpItemFactory.cc
  5133. * src/HttpResponseCommand.cc
  5134. * src/OptionHandlerFactory.cc
  5135. * src/PeerStat.h
  5136. * src/RequestGroup.cc
  5137. * src/RequestGroup.h
  5138. * src/SegmentMan.cc
  5139. * src/SegmentMan.h
  5140. * src/option_processing.cc
  5141. * src/prefs.cc
  5142. * src/prefs.h
  5143. * src/usage_text.h
  5144. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5145. Fixed the bug that bulkReceiveResponse() reads all received data as a
  5146. response even if more than one response is in it.
  5147. * src/FtpConnection.cc
  5148. * src/FtpConnection.h
  5149. * test/FtpConnectionTest.cc
  5150. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5151. Merged from stable-0.15
  5152. * m4/libcares.m4
  5153. Use pkg-config
  5154. * m4/sqlite3.m4
  5155. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5156. Removed unnecessary if statement.
  5157. * src/DefaultPieceStorage.cc (initPieceStorage)
  5158. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5159. Added --connect-timeout option to specify connect timeout in seconds.
  5160. This option is in effect for HTTP/FTP/proxy server. The timeout for
  5161. connecting to BitTorrent peer is not controlled by this option.
  5162. * src/AbstractProxyRequestCommand.cc
  5163. * src/FtpNegotiationCommand.cc
  5164. * src/HelpItemFactory.cc
  5165. * src/HttpRequestCommand.cc
  5166. * src/OptionHandlerFactory.cc
  5167. * src/option_processing.cc
  5168. * src/prefs.cc
  5169. * src/prefs.h
  5170. * src/usage_text.h
  5171. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5172. Added help message for -R option.
  5173. * src/HelpItemFactory.cc
  5174. * src/usage_text.h
  5175. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5176. Added the message that the time is in local time zone.
  5177. * src/RequestGroup.cc
  5178. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5179. Implemented the ability to get timestamp from remote FTP server using
  5180. MDTM command described in RFC3659.
  5181. * src/FtpConnection.cc
  5182. * src/FtpConnection.h
  5183. * src/FtpNegotiationCommand.cc
  5184. * src/FtpNegotiationCommand.h
  5185. * test/FtpConnectionTest.cc
  5186. * test/Makefile.am
  5187. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5188. Implemented the ability to get timestamp from remote HTTP server and
  5189. apply it to local file. To enable this feature, --remote-time option
  5190. is added. No usage text has been written yet.
  5191. If several servers returns difference timestamp, then aria2 uses latest
  5192. one.
  5193. * src/CopyDiskAdaptor.cc
  5194. * src/CopyDiskAdaptor.h
  5195. * src/DirectDiskAdaptor.cc
  5196. * src/DirectDiskAdaptor.h
  5197. * src/DiskAdaptor.h
  5198. * src/File.cc
  5199. * src/File.h
  5200. * src/HttpHeader.cc
  5201. * src/HttpHeader.h
  5202. * src/HttpResponse.cc
  5203. * src/HttpResponse.h
  5204. * src/HttpResponseCommand.cc
  5205. * src/HttpResponseCommand.h
  5206. * src/MultiDiskAdaptor.cc
  5207. * src/MultiDiskAdaptor.h
  5208. * src/OptionHandlerFactory.cc
  5209. * src/RequestGroup.cc
  5210. * src/RequestGroup.h
  5211. * src/RequestGroupMan.cc
  5212. * src/option_processing.cc
  5213. * src/prefs.cc
  5214. * src/prefs.h
  5215. * test/CopyDiskAdaptorTest.cc
  5216. * test/FileTest.cc
  5217. * test/Makefile.am
  5218. * test/Makefile.in
  5219. * test/MultiDiskAdaptorTest.cc
  5220. * test/TestUtil.cc
  5221. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5222. Fixed the bug that DiskWriterEntry is not created when its
  5223. FileEntry.isRequested() is false and it doesn't share a piece with
  5224. other FileEntries that are requested. This bug causes segmentation fault
  5225. in the end.
  5226. * src/MultiDiskAdaptor.cc
  5227. * src/MultiDiskAdaptor.h
  5228. * src/MultiFileAllocationIterator.cc
  5229. * test/MultiDiskAdaptorTest.cc
  5230. * test/MultiFileAllocationIteratorTest.cc
  5231. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5232. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  5233. called if the number of file entries are greater than max open files.
  5234. * src/AbstractSingleDiskAdaptor.cc
  5235. * src/AbstractSingleDiskAdaptor.h
  5236. * src/DiskAdaptor.h
  5237. * src/MultiDiskAdaptor.cc
  5238. * src/MultiDiskAdaptor.h
  5239. * test/MultiDiskAdaptorTest.cc
  5240. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5241. Added a constuctor that receives struct timeval.
  5242. Added operator<.
  5243. * src/TimeA2.cc
  5244. * src/TimeA2.h
  5245. * test/TimeTest.cc
  5246. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5247. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  5248. * src/CookieParser.cc
  5249. * test/CookieParserTest.cc
  5250. * test/HttpResponseTest.cc
  5251. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5252. Implmented the functions to parse date.
  5253. * src/TimeA2.cc
  5254. * src/TimeA2.h
  5255. * test/TimeTest.cc
  5256. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5257. Added "Firefox3 Cookie" feature to FeatureConfig
  5258. * src/FeatureConfig.cc
  5259. * src/FeatureConfig.h
  5260. * test/FeatureConfigTest.cc
  5261. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5262. Bump up version number to 0.16.0b
  5263. * configure.ac
  5264. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5265. Use pkg-config if is is available.
  5266. * m4/openssl.m4
  5267. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5268. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  5269. * src/BtAnnounce.h
  5270. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5271. If an error occurred with a URI, remove identical URI from remaining
  5272. URI list because it is likely that same error occurred in the end and it
  5273. is waste of time.
  5274. * src/AbstractCommand.cc
  5275. * src/RequestGroup.cc
  5276. * src/RequestGroup.h
  5277. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5278. Removed wrong comment.
  5279. * src/DefaultPeerStorage.cc
  5280. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5281. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  5282. Added return value of getpid() to argument of srand() to achieve more
  5283. randomized value.
  5284. * src/SimpleRandomizer.cc
  5285. * src/SimpleRandomizer.h
  5286. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5287. Contact tracker frequently when the number of connections are 0 and
  5288. download is not finished yet.
  5289. * src/ActivePeerConnectionCommand.cc
  5290. * src/BtAnnounce.h
  5291. * src/DefaultBtAnnounce.cc
  5292. * src/DefaultBtAnnounce.h
  5293. * test/MockBtAnnounce.h
  5294. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5295. Moved threshold values to UTPexExtensionMessage.
  5296. * src/DefaultBtInteractive.cc
  5297. * src/Peer.cc
  5298. * src/Peer.h
  5299. * src/UTPexExtensionMessage.cc
  5300. * src/UTPexExtensionMessage.h
  5301. * test/UTPexExtensionMessageTest.cc
  5302. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5303. Added _incoming member to Peer class and made it true if the peer
  5304. initiated connection. Don't add those peer to UTPex message.
  5305. If extended handshake is received, assign _incoming to false.
  5306. * src/DefaultBtInteractive.cc
  5307. * src/HandshakeExtensionMessage.cc
  5308. * src/Peer.cc
  5309. * src/Peer.h
  5310. * src/PeerListenCommand.cc
  5311. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5312. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  5313. Encoding Decoder. Removed size threshold for turning off on the fly
  5314. inflation because resulting file may or may not be inflated depending
  5315. on the file size and I think it is not expected by users.
  5316. This change fixes segmentation fault when Metalink file contains gzipped
  5317. file and its filesize is provided.
  5318. * src/HttpResponseCommand.cc
  5319. * src/HttpResponseCommand.h
  5320. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5321. Made Cookie immutable.
  5322. * src/Cookie.cc
  5323. * src/Cookie.h
  5324. * src/CookieParser.cc
  5325. * src/CookieParser.h
  5326. * src/CookieStorage.cc
  5327. * test/CookieParserTest.cc
  5328. * test/CookieStorageTest.cc
  5329. * test/NsCookieParserTest.cc
  5330. * test/Sqlite3MozCookieParserTest.cc
  5331. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5332. Removed CookieBox, CookieBoxFactory.
  5333. * src/CookieBox.cc
  5334. * src/CookieBox.h
  5335. * src/CookieBoxFactory.cc
  5336. * src/CookieBoxFactory.h
  5337. * src/Makefile.am
  5338. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5339. Use CookieStorage class instead of CookieBox class.
  5340. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  5341. * src/AbstractProxyRequestCommand.cc
  5342. * src/CookieStorage.cc
  5343. * src/DownloadEngine.cc
  5344. * src/DownloadEngine.h
  5345. * src/HttpConnection.cc
  5346. * src/HttpConnection.h
  5347. * src/HttpRequest.cc
  5348. * src/HttpRequest.h
  5349. * src/HttpRequestCommand.cc
  5350. * src/HttpResponse.cc
  5351. * src/HttpResponseCommand.cc
  5352. * src/HttpSkipResponseCommand.cc
  5353. * src/Makefile.am
  5354. * src/MultiUrlRequestInfo.cc
  5355. * src/Request.cc
  5356. * src/Request.h
  5357. * src/main.cc
  5358. * test/AllTest.cc
  5359. * test/CookieStorageTest.cc
  5360. * test/CookieTest.cc
  5361. * test/HttpRequestTest.cc
  5362. * test/HttpResponseTest.cc
  5363. * test/Makefile.am
  5364. * test/NsCookieParserTest.cc
  5365. * test/Sqlite3MozCookieParserTest.cc
  5366. * test/nscookietest.txt
  5367. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5368. Updated
  5369. * test/Cookies.sqlite
  5370. * test/nscookietest.txt
  5371. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5372. Added tests for CookieStorage::load()
  5373. * test/CookieStorageTest.cc
  5374. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5375. Added CookieStorage class which is based on RFC2109 and manages cookies
  5376. more strictly than CookieBox and CookieBoxFactory class.
  5377. * src/CookieStorage.cc
  5378. * src/CookieStorage.h
  5379. * src/Cookie.cc
  5380. * src/Cookie.h
  5381. * test/CookieStorageTest.cc
  5382. * test/CookieTest.cc
  5383. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5384. Fixed the bug that commands are created more than the number of pieces.
  5385. * src/RequestGroup.cc
  5386. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5387. Fixed infinite loop bug in FTP when SIZE command failed.
  5388. * src/FtpNegotiationCommand.cc
  5389. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5390. Removed DirectDiskAdaptorTest.h
  5391. * test/Makefile.am
  5392. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5393. Fixed chunk checksum validation cannot detect trailing garbage data.
  5394. BUG#2074141
  5395. * src/AbstractSingleDiskAdaptor.cc
  5396. * src/AbstractSingleDiskAdaptor.h
  5397. * src/CheckIntegrityEntry.cc
  5398. * src/CheckIntegrityEntry.h
  5399. * src/DiskAdaptor.h
  5400. * src/MultiDiskAdaptor.cc
  5401. * src/MultiDiskAdaptor.h
  5402. * src/RequestGroup.cc
  5403. * test/DirectDiskAdaptorTest.cc
  5404. * test/MultiDiskAdaptorTest.cc
  5405. * test/TestUtil.cc
  5406. * test/TestUtil.h
  5407. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5408. Bump up version number of dht.dat file to 3. In version 3 format, time
  5409. is stored in 64bit, network byte order.
  5410. New build can load old format(version 2) but it saves the file in new
  5411. format. It means once you used new build, your dht.dat becomes
  5412. incompatible with older build.
  5413. * src/DHTRoutingTableDeserializer.cc
  5414. * src/DHTRoutingTableSerializer.cc
  5415. * test/DHTRoutingTableSerializerTest.cc
  5416. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5417. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  5418. * test/Makefile.am
  5419. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5420. Bump up version number of .aria2 control file to 0001.
  5421. New aria2 can still load version 0000 file but it saves the file in
  5422. version 0001 format. It means that new aria2 can resume download
  5423. started by old aria2 but the opposite is not true.
  5424. * src/DefaultBtProgressInfoFile.cc
  5425. * src/DefaultBtProgressInfoFile.h
  5426. * test/DefaultBtProgressInfoFileTest.cc
  5427. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5428. Added ntoh64 and hton64 as inline functions.
  5429. * src/Util.cc
  5430. * test/UtilTest.cc
  5431. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5432. Added sqlite3 depenency and Firefox3 cookie support.
  5433. * README
  5434. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5435. State that firefox3 cookie is supported explicitly in the usage.
  5436. * src/usage_text.h
  5437. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5438. Externalized message.
  5439. * src/RequestGroupMan.cc
  5440. * src/message.h
  5441. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5442. Save temporary file first and rename to the destination on success.
  5443. Added test cases.
  5444. * src/RequestGroupMan.cc
  5445. * test/RequestGroupManTest.cc
  5446. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5447. Fixed the bug that the number of connected peer is exceeding the limit
  5448. (55 by default) in seeding mode.
  5449. Multiplied 0.8 to _maxUploadSpeedLimit.
  5450. * src/ActivePeerConnectionCommand.cc
  5451. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5452. Clear table item.
  5453. * src/Dictionary.cc
  5454. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5455. Fixed error handling of lseek.
  5456. * src/AbstractDiskWriter.cc
  5457. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5458. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  5459. style cookie file.
  5460. * src/usage_text.h
  5461. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5462. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  5463. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  5464. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  5465. * src/Util.cc
  5466. * src/Util.h
  5467. * src/CookieParser.cc
  5468. * test/UtilTest.cc
  5469. * test/CookieParserTest.cc
  5470. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5471. Separate the implementation to load old mozilla format of cookie to
  5472. NsCookieParser class.
  5473. * src/CookieBoxFactory.cc
  5474. * src/CookieBoxFactory.h
  5475. * src/NsCookieParser.cc
  5476. * src/NsCookieParser.h
  5477. * test/NsCookieParserTest.cc
  5478. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5479. Made parse() const
  5480. * src/Sqlite3MozCookieParser.cc
  5481. * src/Sqlite3MozCookieParser.h
  5482. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5483. Added firefox3 cookie support based on the patch submitted by
  5484. tizianomueller.
  5485. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  5486. this functionality.
  5487. * configure.ac
  5488. * m4/sqlite3.m4
  5489. * src/CookieBoxFactory.cc
  5490. * src/CookieBoxFactory.h
  5491. * src/Makefile.am
  5492. * src/Makefile.in
  5493. * src/Sqlite3MozCookieParser.cc
  5494. * src/Sqlite3MozCookieParser.h
  5495. * src/main.cc
  5496. * test/CookieBoxFactoryTest.cc
  5497. * test/Makefile.am
  5498. * test/Makefile.in
  5499. * test/Sqlite3MozCookieParserTest.cc
  5500. * test/badcookies.sqlite
  5501. * test/cookies.sqlite
  5502. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5503. Added Danish and Greek translations.
  5504. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  5505. Great thanks to all translators.
  5506. * po/LINGUAS
  5507. * po/el.po
  5508. * po/da.po
  5509. * po/es.po
  5510. * po/ca.po
  5511. * po/nn.po
  5512. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5513. Fixed man page: --follow-bittorrent should be --follow-torrent
  5514. * doc/aria2c.1.txt
  5515. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5516. Fixed: numCommand is less than the value specified in -C option.
  5517. * src/RequestGroup.cc
  5518. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5519. Fixed occasional assertion failure in PieceSegment.
  5520. Calling PieceStorage::getMissingPiece(size_t) was missing after
  5521. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  5522. creation of duplicate segments and one of the segment was finished then
  5523. assertion failure was caused.
  5524. * src/SegmentMan.cc
  5525. * test/SegmentManTest.cc
  5526. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5527. Added options to load/save the server's performance/status to a file
  5528. and the timeout to drop their data.
  5529. --server-stat-of=FILE specifies the file to which performance data
  5530. is saved.
  5531. --server-stat-if=FILE specifies the file to read previously saved
  5532. by --server-stat-of option. Might be used with --uri-selector=feedback.
  5533. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  5534. TIMEOUT is specified in seconds and the default value is 24hours.
  5535. * src/MultiUrlRequestInfo.cc
  5536. * src/OptionHandlerFactory.cc
  5537. * src/RequestGroupMan.cc
  5538. * src/RequestGroupMan.h
  5539. * src/ServerStatMan.cc
  5540. * src/ServerStatMan.h
  5541. * src/option_processing.cc
  5542. * src/prefs.cc
  5543. * src/prefs.h
  5544. * test/ServerStatManTest.cc
  5545. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5546. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  5547. * src/ServerStatMan.cc
  5548. * src/ServerStatMan.h
  5549. * test/ServerStatManTest.cc
  5550. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5551. Implemented ServerStatMan::load(...) function and its test case.
  5552. * src/ServerStat.cc
  5553. * src/ServerStat.h
  5554. * src/ServerStatMan.cc
  5555. * test/ServerStatManTest.cc
  5556. * test/ServerStatTest.cc
  5557. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5558. Use time_t instead of int32_t. Use int64_t where milli second is
  5559. expected.
  5560. * src/TimeA2.cc
  5561. * src/TimeA2.h
  5562. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5563. Implemented ServerStatMan::save(...) function and its test case.
  5564. * src/ServerStat.cc
  5565. * src/ServerStat.h
  5566. * src/ServerStatMan.cc
  5567. * src/ServerStatMan.h
  5568. * test/ServerStatManTest.cc
  5569. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5570. Now aria2 uses name attribute in Metalink as local filename in
  5571. BitTorrent downloads. BUG#2033999
  5572. * src/BtContext.h
  5573. * src/BtDependency.cc
  5574. * src/DefaultBtContext.cc
  5575. * src/DefaultBtContext.h
  5576. * src/SingleFileDownloadContext.cc
  5577. * src/SingleFileDownloadContext.h
  5578. * test/BtDependencyTest.cc
  5579. * test/DefaultBtContextTest.cc
  5580. * test/MockBtContext.h
  5581. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5582. Added AC_C_BIGENDIAN
  5583. * src/configure.ac
  5584. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5585. Limited numCommand less than or equal to the number of piece.
  5586. * src/RequestGroup.cc
  5587. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5588. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  5589. directive.
  5590. * test/DefaultPieceStorageTest.cc
  5591. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5592. Fixed memory leak in test code
  5593. * test/AnnounceListTest.cc
  5594. * test/DefaultPeerListProcessorTest.cc
  5595. * test/DefaultPeerStorageTest.cc
  5596. * test/MetaFileUtilTest.cc
  5597. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5598. Fixed wrong argument passing to BitfieldMan::isBitSet()
  5599. * src/DefaultPieceStorage.cc
  5600. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5601. Initialized _directIOAllowed
  5602. * src/MultiDiskAdaptor.cc
  5603. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5604. Fixed memory leak
  5605. * src/GZipDecoder.cc
  5606. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5607. Fixed memory leak
  5608. * src/MetalinkParserStateMachine.cc
  5609. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5610. Fixed memory leak
  5611. * src/Dictionary.cc
  5612. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5613. Fixed memory leak
  5614. * src/IteratableChunkChecksumValidator.h
  5615. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5616. Fixed unmatched malloc/free.
  5617. * src/IteratableChunkChecksumValidator.cc
  5618. * src/IteratableChecksumValidator.cc
  5619. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5620. Removed max chunk size check. This change fixes BUG#2040169
  5621. * src/ChunkedDecoder.cc
  5622. * src/ChunkedDecoder.h
  5623. * test/ChunkedDecoderTest.cc
  5624. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5625. Implemented download speed based URI selection algorithm.
  5626. Introduced new option --uri-selector.
  5627. If --uri-selector=feedback is given, aria2 uses download speed observed
  5628. in the previous downloads and chooses fastest server in the URI list.
  5629. Currently at most 10 URIs are considered to introduce randomeness for
  5630. finding better servers. The speed is average download speed in the
  5631. downloads.
  5632. On the other hand, if --uri-selector=inorder is given, which is default,
  5633. URI is tried in order in URI list.
  5634. The usage text for the new option has not been written yet.
  5635. * src/AbstractCommand.cc
  5636. * src/DownloadCommand.cc
  5637. * src/DownloadEngine.cc
  5638. * src/DownloadEngineFactory.cc
  5639. * src/InOrderURISelector.cc
  5640. * src/InOrderURISelector.h
  5641. * src/OptionHandlerFactory.cc
  5642. * src/PeerStat.h
  5643. * src/RequestGroup.cc
  5644. * src/RequestGroup.h
  5645. * src/RequestGroupMan.cc
  5646. * src/RequestGroupMan.h
  5647. * src/SegmentMan.cc
  5648. * src/SegmentMan.h
  5649. * src/ServerStat.cc
  5650. * src/ServerStat.h
  5651. * src/ServerStatMan.cc
  5652. * src/ServerStatMan.h
  5653. * src/ServerStatURISelector.cc
  5654. * src/ServerStatURISelector.h
  5655. * src/URISelector.h
  5656. * src/option_processing.cc
  5657. * src/prefs.cc
  5658. * src/prefs.h
  5659. * test/InOrderURISelectorTest.cc
  5660. * test/RequestGroupManTest.cc
  5661. * test/ServerStatManTest.cc
  5662. * test/ServerStatURISelectorTest.cc
  5663. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5664. * Release 0.15.1+2
  5665. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5666. Bump up version number to 0.15.1+2
  5667. * configure.ac
  5668. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5669. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  5670. * m4/aria2_arg.m4
  5671. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5672. * Release 0.15.1+1
  5673. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5674. Bump up version number to 0.15.1+1
  5675. * configure.ac
  5676. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5677. Fixed the bug that causes segmentaion fault when resuming download
  5678. using metalink without size tag. Reproducible only using HTTP URI.
  5679. * src/HttpResponseCommand.cc
  5680. * src/FtpNegotiationCommand.cc
  5681. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5682. * Release 0.15.1
  5683. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5684. Updated Bulgarian and French translations, thanks to all translators.
  5685. * po/bg.po
  5686. * po/fr.po
  5687. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5688. Bump up version number to 0.15.1
  5689. * configure.ac
  5690. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5691. Avoid repeated call of gettimeofday() when calculating speed.
  5692. * src/SpeedCalc.cc
  5693. * src/SpeedCalc.h
  5694. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5695. Removed writable check when socket's send buffer is full in BitTorrent
  5696. downloads to lower CPU usage.
  5697. * src/PeerInteractionCommand.cc
  5698. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5699. Fixed broken gzip inflation.
  5700. Turn off segmented downloading if gzip content is smaller than or equal
  5701. to 1MiB and inflate the data on the fly, because HTTP response header
  5702. doesn't contain the length of inflated file we can't determin where
  5703. the chunk of data should be written.
  5704. On the other hand, if gzip content is larger than 1MB, then turn off
  5705. on the fly inflation, because some servers returns "content-type: gzip"
  5706. for *.tgz, *.gz files.
  5707. * src/DownloadCommand.cc
  5708. * src/HttpResponseCommand.cc
  5709. * src/HttpResponseCommand.h
  5710. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5711. Applied tizianomueller's patch to fix compile error.
  5712. * test/BitfieldManTest.cc
  5713. * test/BtRequestMessageTest.cc
  5714. * test/DefaultBtContextTest.cc
  5715. * test/DefaultDiskWriterTest.cc
  5716. * test/DefaultPieceStorageTest.cc
  5717. * test/HttpHeaderProcessorTest.cc
  5718. * test/HttpResponseTest.cc
  5719. * test/Metalink2RequestGroupTest.cc
  5720. * test/MetalinkParserControllerTest.cc
  5721. * test/MetalinkProcessorTest.cc
  5722. * test/PeerSessionResourceTest.cc
  5723. * test/UtilTest.cc
  5724. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5725. * Release 0.15.0
  5726. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5727. Reordered src files in POTFILES.in so that usage text appears first.
  5728. * po/POTFILES.in
  5729. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5730. Bump up version number to 0.15.0
  5731. * configure.ac
  5732. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5733. Added Bulgarian translation.
  5734. Updated Catalan, Spanish, French and Japanese translations.
  5735. Thanks to all translators.
  5736. * po/LINGUAS
  5737. * po/bg.po
  5738. * po/ca.po
  5739. * po/es.po
  5740. * po/fr.po
  5741. * po/ja.po
  5742. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5743. Updated feature list. Added libz for dependency section.
  5744. Added a description about unit testing using CppUnit.
  5745. * README
  5746. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5747. Added a test for libz. Quoted where it is necessary.
  5748. * build_test.sh
  5749. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5750. Added GZip to `Enabled Features' list.
  5751. * src/FeatureConfig.cc
  5752. * src/FeatureConfig.h
  5753. * test/FeatureConfigTest.cc
  5754. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5755. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  5756. the transfer has not yet started.
  5757. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  5758. * src/SegmentMan.cc
  5759. * src/SegmentMan.h
  5760. * test/SegmentManTest.cc
  5761. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5762. Cache last calculated average download/upload speed.
  5763. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  5764. cached value.
  5765. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  5766. * src/PeerStat.h
  5767. * src/SpeedCalc.cc
  5768. * src/SpeedCalc.h
  5769. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5770. Call parseUrl directly.
  5771. * src/Request.cc (resetUrl)
  5772. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5773. Supported absolute/relative path in Location header field.
  5774. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  5775. * src/HttpHeader.cc
  5776. * src/HttpHeader.h
  5777. * src/HttpResponse.cc
  5778. * src/HttpSkipResponseCommand.cc
  5779. * src/Request.cc
  5780. * test/HttpHeaderTest.cc
  5781. * test/HttpResponseTest.cc
  5782. * test/RequestTest.cc
  5783. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5784. Changed help text for --load-cookie option.
  5785. * doc/aria2c.1.txt
  5786. * src/usage_text.h
  5787. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5788. Regenerated test/Makefile.in to remove stale ChangeLog.
  5789. * test/Makefile.in
  5790. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5791. Updated po files.
  5792. * po/aria2c.pot
  5793. * po/*.po
  5794. * po/*.gmo
  5795. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5796. Bump up version number to 0.15.0b
  5797. * configure.ac
  5798. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5799. Externalize messages.
  5800. * src/RequestGroupMan.cc
  5801. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  5802. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5803. Use File::exists() instead of File::isFile() to allow non-regular file
  5804. such as block special files.
  5805. * src/AbstractDiskWriter.cc
  5806. * src/MultiDiskWriter.cc
  5807. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5808. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  5809. * src/gai_strerror.h
  5810. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5811. Fixed compile error. Thanks gknauf for the patch.
  5812. * src/asctime_r.c
  5813. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5814. Included asctime_r.h from a2time.h.
  5815. * src/a2time.h
  5816. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5817. Added a message "aria2 doesn't verify signature" to log message when
  5818. signature file is saved.
  5819. * src/RequestGroupMan.cc
  5820. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5821. Added the ability to save signature when download is completed if
  5822. signature is available. The filename of signature file is the path to
  5823. download file followed by ".sig". If it already exists, then signature
  5824. will not be saved.
  5825. * src/RequestGroupMan.cc
  5826. * src/Signature.cc
  5827. * test/SignatureTest.cc
  5828. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5829. Updated the descriptions for --bt-seed-unverified.
  5830. * doc/aria2c.1
  5831. * doc/aria2c.1.html
  5832. * doc/aria2c.1.txt
  5833. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5834. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  5835. that this is not going to verify files using piece hashes.
  5836. * src/HelpItemFactory.cc
  5837. * src/OptionHandlerFactory.cc
  5838. * src/RequestGroup.cc
  5839. * src/option_processing.cc
  5840. * src/prefs.cc
  5841. * src/prefs.h
  5842. * src/usage_text.h
  5843. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5844. Added the ability to retrieve signature from Metalink file.
  5845. A retrieved signature is stored in Signature class and it is held by
  5846. DownloadContext class. Note that aria2 doesn't verify signature.
  5847. * src/DownloadContext.cc
  5848. * src/DownloadContext.h
  5849. * src/Makefile.am
  5850. * src/Makefile.in
  5851. * src/Metalink2RequestGroup.cc
  5852. * src/MetalinkEntry.cc
  5853. * src/MetalinkEntry.h
  5854. * src/MetalinkParserController.cc
  5855. * src/MetalinkParserController.h
  5856. * src/MetalinkParserStateMachine.cc
  5857. * src/MetalinkParserStateMachine.h
  5858. * src/Signature.cc
  5859. * src/Signature.h
  5860. * src/SignatureMetalinkParserState.cc
  5861. * src/SignatureMetalinkParserState.h
  5862. * src/VerificationMetalinkParserState.cc
  5863. * src/VerificationMetalinkParserState.h
  5864. * test/Metalink2RequestGroupTest.cc
  5865. * test/MetalinkParserControllerTest.cc
  5866. * test/MetalinkProcessorTest.cc
  5867. * test/test.xml
  5868. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5869. Close DiskAdaptor after renaming file.
  5870. * src/RequestGroup.cc
  5871. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5872. Corrected indentation
  5873. * src/DefaultBtProgressInfoFile.cc
  5874. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5875. Moved the calls of std::ios::exceptions() inside of try-catch block
  5876. because if an error occurred in constructor of std::fstream, then
  5877. exception is thrown immediately when std::ios::exceptions() is called
  5878. which results unhandled exception and aria2c aborts.
  5879. * src/DefaultBtProgressInfoFile.cc
  5880. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5881. Added the test for the previous change in DefaultBtContext.cc
  5882. * test/DefaultBtContextTest.cc
  5883. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5884. Fixed the bug that causes infinite loop when the number of pieces are
  5885. fewer than allowed fast set size which is 10 by default.
  5886. * src/DefaultBtContext.cc
  5887. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5888. Updated the descriptions for -j, -s. Added --bt-seed.
  5889. * doc/aria2c.1
  5890. * doc/aria2c.1.html
  5891. * doc/aria2c.1.txt
  5892. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5893. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  5894. aria2 seeds previously downloaded files without validating piece hashs.
  5895. * src/HelpItemFactory.cc
  5896. * src/OptionHandlerFactory.cc
  5897. * src/RequestGroup.cc
  5898. * src/option_processing.cc
  5899. * src/prefs.cc
  5900. * src/prefs.h
  5901. * src/usage_text.h
  5902. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5903. Updated DESCRIPTION of man page.
  5904. * doc/aria2c.1
  5905. * doc/aria2c.1.html
  5906. * doc/aria2c.1.txt
  5907. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5908. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  5909. Don't define `struct addrinfo' when __sun is defined.
  5910. * src/getaddrinfo.h
  5911. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5912. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  5913. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  5914. second argument is of type `struct _stati64'. Otherwise it is defined as
  5915. `struct stat'.
  5916. * src/AbstractDiskWriter.cc
  5917. * src/File.cc
  5918. * src/File.h
  5919. * src/a2io.h
  5920. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5921. Fixed the compile error in hurd-i386
  5922. See the original bug report:
  5923. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  5924. * src/a2io.h
  5925. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5926. Code cleanup.
  5927. * src/PeerAbstractCommand.cc
  5928. * src/PeerAbstractCommand.h
  5929. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5930. Removed TransferEncoding.
  5931. * src/DownloadCommand.cc
  5932. * src/DownloadCommand.h
  5933. * src/HttpResponseCommand.cc
  5934. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5935. Updated po files.
  5936. * po/aria2c.pot
  5937. * po/*.po
  5938. * po/*.gmo
  5939. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5940. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  5941. * src/A2STR.cc
  5942. * src/A2STR.h
  5943. * src/ChunkedDecoder.cc
  5944. * src/ChunkedDecoder.h
  5945. * src/ChunkedEncoding.cc: Removed
  5946. * src/ChunkedEncoding.h: Removed
  5947. * src/DownloadCommand.cc
  5948. * src/DownloadCommand.h
  5949. * src/HttpDownloadCommand.cc
  5950. * src/HttpResponse.cc
  5951. * src/HttpResponse.h
  5952. * src/HttpResponseCommand.cc
  5953. * src/HttpSkipResponseCommand.cc
  5954. * src/HttpSkipResponseCommand.h
  5955. * src/Makefile.am
  5956. * src/TransferEncoding.h: Removed
  5957. * test/ChunkedDecoderTest.cc
  5958. * test/ChunkedEncodingTest.cc: Removed
  5959. * test/HttpResponseTest.cc
  5960. * test/Makefile.am
  5961. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5962. Use append instead of insert.
  5963. * src/GZipDecoder.cc
  5964. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5965. Updated doc
  5966. * src/Decoder.h
  5967. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5968. Updated usage text for -s option.
  5969. * src/usage_text.h
  5970. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5971. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  5972. * src/Request.cc
  5973. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5974. Cleaned up configure.ac.
  5975. * configure.ac
  5976. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5977. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  5978. AC_ARG_ENABLE.
  5979. * configure.ac
  5980. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5981. Added gzip, deflate decoding support in HTTP using libz. If compiled
  5982. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  5983. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  5984. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  5985. fly and writes decoded data to a local disk.
  5986. * README
  5987. * README.html
  5988. * configure.ac
  5989. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  5990. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  5991. * m4/libz.m4
  5992. * src/Decoder.h
  5993. * src/DownloadCommand.cc
  5994. * src/DownloadCommand.h
  5995. * src/Exception.h
  5996. * src/GZipDecoder.cc
  5997. * src/GZipDecoder.h
  5998. * src/HttpHeader.cc
  5999. * src/HttpHeader.h
  6000. * src/HttpRequest.cc
  6001. * src/HttpRequest.h
  6002. * src/HttpResponse.cc
  6003. * src/HttpResponse.h
  6004. * src/HttpResponseCommand.cc
  6005. * src/Makefile.am
  6006. * test/GZipDecoderTest.cc
  6007. * test/HttpRequestTest.cc
  6008. * test/HttpResponseTest.cc
  6009. * test/Makefile.am
  6010. * test/Makefile.in
  6011. * test/gzip_decode_test.gz
  6012. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6013. Clarified usage of -j option.
  6014. * src/usage_text.h
  6015. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6016. Disabled getting size from the response of RETR.
  6017. If SIZE command failed, then disable resuming and segmented downloading.
  6018. * src/FtpConnection.cc
  6019. * src/FtpConnection.h
  6020. * src/FtpNegotiationCommand.cc
  6021. * src/FtpNegotiationCommand.h
  6022. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6023. Use digits to find first byte of file size, which makes the intention
  6024. of the code clearer.
  6025. * src/FtpConnection.cc
  6026. Don't call validateTotalLength() when size is 0.
  6027. * src/FtpNegotiationCommand.cc
  6028. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6029. Updated po files.
  6030. * po/aria2c.pot
  6031. * po/*.gmo
  6032. * po/*.po
  6033. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6034. Clarified usage text for --split option.
  6035. * src/usage_text.h
  6036. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6037. Bump up version number to 0.15.0dev. "dev" means "development"
  6038. version, which means I started the development of the next release!
  6039. * src/configure.ac
  6040. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6041. If FTP server returns negative response with REST raw command and
  6042. requested range is not 0, throw exception. If requested range is 0,
  6043. continue download a file from 0 byte.
  6044. * src/FtpNegotiationCommand.cc
  6045. * src/FtpNegotiationCommand.h
  6046. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6047. Supported FTP server which don't recognize SIZE raw command.
  6048. If SIZE raw command is failed, aria2 will try to get file size
  6049. from the response of RETR raw command. If both attempts are failed,
  6050. then resuming and segmented downloading are disabled.
  6051. * src/FtpConnection.cc
  6052. * src/FtpConnection.h
  6053. * src/FtpNegotiationCommand.cc
  6054. * src/FtpNegotiationCommand.h
  6055. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6056. * Release 0.14.0+1
  6057. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6058. Bump up version number to 0.14.0+1
  6059. * src/configure.ac
  6060. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6061. Fixed the code that refers static member variable from non-static
  6062. context.
  6063. * src/DefaultPeerStorage.cc
  6064. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6065. * Release 0.14.0
  6066. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6067. Added build test script
  6068. * build_test.sh
  6069. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6070. Updated ja.po
  6071. * src/ja.po
  6072. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6073. Bump up version number to 0.14.0
  6074. * src/configure.ac
  6075. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6076. Updated ja.po and fr.po. Great thanks for french translators and
  6077. Sebastien WILLEMIJNS.
  6078. * po/fr.po
  6079. * po/ja.po
  6080. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6081. Added configure option to enable/disable epoll support.
  6082. * configure.ac
  6083. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6084. Updated man page.
  6085. * doc/aria2c.1.txt
  6086. * doc/aria2c.1
  6087. * doc/aria2c.1.html
  6088. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6089. Added missing default value '5' to the usage of --split option.
  6090. * src/HelpItemFactory.cc
  6091. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6092. Filled up pieces based on the number of missing blocks, rather than
  6093. simplay the number of piece * block length.
  6094. * src/BtRequestFactory.h
  6095. * src/DefaultBtInteractive.cc
  6096. * src/DefaultBtInteractive.h
  6097. * src/DefaultBtRequestFactory.cc
  6098. * src/DefaultBtRequestFactory.h
  6099. * src/Piece.cc
  6100. * src/Piece.h
  6101. * test/BitfieldManTest.cc
  6102. * test/DefaultBtRequestFactoryTest.cc
  6103. * test/MockBtRequestFactory.h
  6104. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6105. Made _epEvents a member variable.
  6106. * src/DownloadEngine.cc
  6107. * src/DownloadEngine.h
  6108. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6109. Cancel download if http redirect is bounded more than 20 times.
  6110. * src/AbstractCommand.cc
  6111. * src/HttpSkipResponseCommand.cc
  6112. * src/Request.cc
  6113. * src/Request.h
  6114. * test/RequestTest.cc
  6115. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6116. Fixed unhandled exception(removed keyword `new').
  6117. * src/SocketCore.cc (initEPOLL)
  6118. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6119. Removed visit(const MetaEntry*)
  6120. * src/MetaEntryVisitor.h:
  6121. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  6122. and made them virtual.
  6123. * src/BencodeVisitor.h
  6124. * src/BencodeVisitor.cc
  6125. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6126. Updated po files.
  6127. * po/aria2c.pot
  6128. * po/*.po
  6129. * po/*.gmo
  6130. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6131. Moved the call setWriteCheckSocket inside the previous clause to reduce
  6132. the number of socket to watch out.
  6133. * src/PeerInteractionCommand.cc
  6134. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6135. When there is not enough space in disk when writing a chunk of data,
  6136. aria2 now prints the message to the console to warn user and aborts
  6137. its download. Not all downloads are canceled because some downloads
  6138. may use another disk or partition. BUG#1640332
  6139. * src/AbstractDiskWriter.cc
  6140. * src/PeerAbstractCommand.cc
  6141. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  6142. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  6143. setHaltRequested(true) to cancel download.
  6144. * src/PeerInteractionCommand.h
  6145. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6146. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  6147. socket from int to sock_t as sockets are unsigned in Windows.
  6148. For AsyncNameResolver, DownloadEngine, I did additional modification
  6149. for the portion of the code changed according to epoll support.
  6150. I defined sock_t in a2netcompat.h to use sock_t without including
  6151. SocketCore.h.
  6152. * src/AsyncNameResolver.cc
  6153. * src/AsyncNameResolver.h
  6154. * src/DownloadEngine.cc
  6155. * src/DownloadEngine.h
  6156. * src/SocketCore.cc
  6157. * src/SocketCore.h
  6158. * src/a2netcompat.h
  6159. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6160. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  6161. changes in the patch were applied.
  6162. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  6163. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  6164. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  6165. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6166. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  6167. a2io.h and common.h were modified.
  6168. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  6169. MinGW.
  6170. * src/common.h: Changed off_t to 64 bit in MinGW.
  6171. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6172. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6173. only a2netcompat.h is modified.
  6174. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  6175. directives.
  6176. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6177. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6178. only gai_strerror.h is modified.
  6179. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  6180. winsock errors in MinGW.
  6181. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6182. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  6183. follow sources are applied.
  6184. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  6185. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  6186. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  6187. I included locale.h from Platform.cc.
  6188. * src/main.cc: Moved common setup/teardown code to Platform class.
  6189. * test/AllTest.cc: Use Platform class.
  6190. Set locale to C in AllTest.cc to prevent the messages to be localized.
  6191. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6192. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  6193. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  6194. * test/HttpRequestTest.cc: Casted to off_t where it should.
  6195. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6196. Applied Ross's aria2-0.13.2+1-mingw.patch and
  6197. aria2-0.13.2+1-mingw-2.patch.
  6198. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  6199. systems which don't have termious.h. I moved the directive inside of
  6200. if(isTTY) { ... clause so that line is wiped out without termious.h.
  6201. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  6202. anyway.
  6203. * src/asctime_r.h
  6204. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  6205. I added 2nd argument to the prototype declaration.
  6206. * src/StringFormat.cc: Get rid of vasprintf.
  6207. * src/getaddrinfo.h: Fixed constants.
  6208. * configure.ac: Added the check for asctime_r function.
  6209. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  6210. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6211. Added writable test for Socket when the sending message is in progress.
  6212. Usually the sending message is piece message. Without wriable check,
  6213. upload latency is dropped to more than 1sec.
  6214. * src/PeerInteractionCommand.cc
  6215. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6216. Create only requested files and files which shares a piece with
  6217. requested file in multi-torrent downloads. Directory structures are
  6218. also created in the same rule.
  6219. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  6220. DiskWriterEntry as in the previous implementation.
  6221. * src/MultiDiskWriter.cc
  6222. * src/MultiFileAllocationIterator.cc
  6223. * src/MultiFileAllocationIterator.h
  6224. * test/MultiFileAllocationIteratorTest.cc
  6225. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6226. Commented out -lprofiler
  6227. * src/Makefile.am
  6228. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6229. Bump up version number to 0.14.0b.
  6230. * src/configure.ac
  6231. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6232. Actively establish connection to peers in seeding, when peer cache
  6233. is not full and max upload speed limit is not reached.
  6234. * src/ActivePeerConnectionCommand.cc
  6235. * src/ActivePeerConnectionCommand.h
  6236. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6237. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  6238. to make room more fleshy, recently found peers.
  6239. Peer::_badConditionStartTime is not used anymore. Consider to remove
  6240. it.
  6241. * src/DefaultPeerStorage.cc
  6242. * test/DefaultPeerStorageTest.cc
  6243. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6244. Returns cached data only when the previous receiveHandshake() is called
  6245. with peek = true.
  6246. * src/PeerConnection.cc (receiveHandshake)
  6247. * src/PeerConnection.h (receiveHandshake)
  6248. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6249. Changed default value of -s option from 1 to 5.
  6250. Also max value of -s option is changed from 5 to 16.
  6251. * src/HelpItemFactory.cc
  6252. * src/OptionHandlerFactory.cc
  6253. * src/option_processing.cc
  6254. * src/usage_text.h
  6255. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6256. Changed -s options behavior. Now it means the number of connections
  6257. made simultaneously in each http/ftp download.
  6258. If 1 URL is specified, the behavior is the same with old implementation.
  6259. If -s N is given and more than N URLs are specified, first N URLs are
  6260. used and remaining URLs are used for backup. If less than N URLs are
  6261. specified, some of URLs are used more than once so that totally N
  6262. connections are made simultaneously.
  6263. * src/main.cc
  6264. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6265. Included missing iosfwd or ostream header.
  6266. * src/RequestGroupMan.cc
  6267. * src/TaggedItem.cc
  6268. * src/TaggedItem.h
  6269. * src/Util.cc
  6270. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6271. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  6272. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  6273. * src/HttpConnection.cc: Included missing sstream.
  6274. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6275. Added --bt-max-open-files option.
  6276. * src/DefaultPieceStorage.cc
  6277. * src/HelpItemFactory.cc
  6278. * src/MultiDiskAdaptor.cc
  6279. * src/MultiDiskAdaptor.h
  6280. * src/OptionHandlerFactory.cc
  6281. * src/option_processing.cc
  6282. * src/prefs.cc
  6283. * src/prefs.h
  6284. * src/usage_text.h
  6285. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6286. Fixed the bug that aria2 aborts when a path to a directory is given
  6287. in command-line.
  6288. * src/ProtocolDetector.cc
  6289. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6290. Limited the number files opened in each BitTorrent download. The default
  6291. value is 100. The option to change this value will be added.
  6292. * src/MultiDiskAdaptor.cc
  6293. * src/MultiDiskAdaptor.h
  6294. * src/MultiFileAllocationIterator.cc
  6295. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6296. Fixed the bug that HTTP downloads don't start with old libraries.
  6297. * src/HttpHeaderProcessor.cc
  6298. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6299. Use empty() instead of size() > 0.
  6300. * src/HttpConnection.cc
  6301. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6302. Drop connection if the incoming peer ID is the same with localhost's
  6303. one. The previous implementation drops connection when incoming peer's
  6304. IP address is the same with localhost's one.
  6305. * src/PeerListenCommand.cc
  6306. * src/DefaultBtInteractive.cc
  6307. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6308. Returns cached data without checking whether socket is readable
  6309. if the cache is available.
  6310. * src/PeerConnection.cc (receiveHandshake)
  6311. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6312. Included stdint.h
  6313. * src/common.h
  6314. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6315. Removed duplicate HAVE_GETTIMEOFDAY
  6316. * src/Makefile.am
  6317. * src/Makefile.in
  6318. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6319. Use interval as a minInterval when minInterval is not supplied.
  6320. * src/DefaultBtAnnounce.cc
  6321. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6322. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  6323. attempt is failed, then 2nd attempt get kicked out more quickly.
  6324. And it is now static const member of DefaultBtAnnounce.
  6325. * src/DefaultBtAnnounce.h
  6326. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6327. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  6328. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  6329. * src/ActivePeerConnectionCommand.cc
  6330. * src/BtConstants.h
  6331. * src/BtRuntime.h
  6332. * src/DHTGetPeersCommand.cc
  6333. * src/DefaultBtAnnounce.cc
  6334. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  6335. BtRuntime::MAX_PEERS.
  6336. * src/DefaultPeerStorage.h
  6337. * src/InitiatorMSEHandshakeCommand.cc
  6338. * src/PeerInitiateConnectionCommand.cc
  6339. * src/PeerInteractionCommand.cc
  6340. * src/PeerReceiveHandshakeCommand.cc
  6341. * src/TrackerWatcherCommand.cc
  6342. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6343. Always Connect to _numNewConnection
  6344. * src/ActivePeerConnectionCommand.cc
  6345. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6346. Made `begin' unsigned int.
  6347. * src/GrowSegment.h
  6348. * src/Piece.cc
  6349. * src/Piece.h
  6350. * src/PiecedSegment.cc
  6351. * src/PiecedSegment.h
  6352. * src/Segment.h
  6353. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6354. Calculate piece hash when data is arrived if the data is arrived in
  6355. order. This removes additional read operation for hash calculation.
  6356. If the data is arrived in out of order, the hash is calucated when the
  6357. piece is completed. This is the same behavior as the old implementation.
  6358. * src/BtPieceMessage.cc
  6359. * src/DefaultBtProgressInfoFile.cc
  6360. * src/DefaultPieceStorage.cc
  6361. * src/DownloadCommand.cc
  6362. * src/DownloadCommand.h
  6363. * src/DownloadEngine.cc
  6364. * src/GrowSegment.cc
  6365. * src/GrowSegment.h
  6366. * src/Piece.cc
  6367. * src/Piece.h
  6368. * src/PiecedSegment.cc
  6369. * src/PiecedSegment.h
  6370. * src/Segment.h
  6371. * test/PieceTest.cc
  6372. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6373. Try to keep the ordering of outgoing piece message.
  6374. * src/DefaultBtMessageDispatcher.cc
  6375. (DefaultBtMessageDispatcher::sendMessages)
  6376. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6377. Fixed busy loop when error/hup epoll events occur.
  6378. * src/AbstractCommand.cc
  6379. * src/PeerAbstractCommand.cc
  6380. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6381. Added --bt-request-peer-speed-limit option, which was a constant
  6382. SLOW_SPEED_THRESHOLD.
  6383. * src/ActivePeerConnectionCommand.cc
  6384. * src/ActivePeerConnectionCommand.h
  6385. * src/BtConstants.h
  6386. * src/HelpItemFactory.cc
  6387. * src/OptionHandlerFactory.cc
  6388. * src/PeerReceiveHandshakeCommand.cc
  6389. * src/option_processing.cc
  6390. * src/prefs.cc
  6391. * src/prefs.h
  6392. * src/usage_text.h
  6393. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6394. Removed repeated call of getTopDirPath(). Instead, call it once and
  6395. cache the result.
  6396. * src/MultiDiskAdaptor.cc
  6397. * src/MultiDiskAdaptor.h
  6398. (mkdir, openFile, initAndOpenFile, openExistingFile)
  6399. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6400. Fixed compile error on debian etch.
  6401. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  6402. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  6403. it is undefined.
  6404. * src/Util.cc (ULLONG_MAX)
  6405. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6406. Added epoll support. Use epoll if it is available. If not, use select.
  6407. When async dns is enabled in compile time, epoll support is enabled
  6408. only when aria2 is built with c-ares. This condition statement is
  6409. defined in a2io.h.
  6410. Currently aria2 supports both c-ares and ares, but ares is maintained
  6411. for quite a while and debian already has c-ares package, ares support
  6412. will be dropped in the future version.
  6413. * configure.ac
  6414. * src/AbstractCommand.cc
  6415. * src/AsyncNameResolver.cc
  6416. * src/AsyncNameResolver.h
  6417. * src/Command.cc
  6418. * src/Command.h
  6419. * src/DownloadEngine.cc
  6420. * src/DownloadEngine.h
  6421. * src/PeerAbstractCommand.cc
  6422. * src/SocketCore.cc
  6423. * src/SocketCore.h
  6424. * src/a2io.h
  6425. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6426. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  6427. directive.
  6428. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6429. Do not do write operation to /dev/null file.
  6430. * src/LogFactory.cc
  6431. * src/SimpleLogger.cc
  6432. Replaced vasprintf with vsnprintf
  6433. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6434. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6435. * src/BtRequestMessage.cc
  6436. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  6437. for segmentation fault caused by previous commit.
  6438. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6439. Reduced the usage of gettimeofday().
  6440. * src/DefaultBtMessageDispatcher.cc
  6441. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  6442. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6443. * src/RequestSlot.cc
  6444. * src/RequestSlot.h
  6445. (RequestSlot::isTimeout)
  6446. Made RequestSlot have a reference to Piece object to avoid find
  6447. Piece repeatedly.
  6448. * src/DefaultBtMessageDispatcher.cc
  6449. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6450. * src/RequestSlot.cc
  6451. * src/RequestSlot.h
  6452. (RequestSlot::getPiece)
  6453. * test/DefaultBtMessageDispatcherTest.cc
  6454. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6455. * src/TimeA2.cc
  6456. * src/TimeA2.h
  6457. (Time::difference): New function.
  6458. (Time::elapsed): Done optimization.
  6459. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6460. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  6461. directive.
  6462. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6463. * src/option_processing.cc: Added missing `defined' keyword to #if
  6464. directive.
  6465. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6466. Bump up version number to 0.13.2+1
  6467. * src/configure.ac
  6468. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6469. Refactored broken outstanding piece handling.
  6470. * src/DefaultPieceStorage.cc
  6471. * src/DefaultPieceStorage.h
  6472. * src/Piece.cc
  6473. * src/Piece.h
  6474. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6475. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  6476. name collision of static variable and predefined macro.
  6477. * src/BtContext.cc
  6478. * src/BtContext.h
  6479. * src/CookieBoxFactory.cc
  6480. * src/CookieBoxFactory.h
  6481. * src/CookieParser.cc
  6482. * src/CookieParser.h
  6483. * src/DefaultBtContext.cc
  6484. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6485. * src/RequestGroup.cc
  6486. (RequestGroup::createInitialCommand): Use empty() instead of size().
  6487. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6488. * Release 0.13.2
  6489. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6490. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  6491. * po/fr.po
  6492. * po/ja.po
  6493. * po/aria2c.pot
  6494. * po/*.po
  6495. * po/*.gmo
  6496. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6497. Bump up version number to 0.13.2
  6498. * src/configure.ac
  6499. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6500. Refactord.
  6501. * src/RequestGroupMan.cc
  6502. (removeStoppedGroup)
  6503. (fillRequestGroupFromReserver)
  6504. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6505. Fixed compile error on Ubuntu.
  6506. * src/BtPieceMessage.cc
  6507. * src/MessageDigestHelper.cc
  6508. * src/Util.cc
  6509. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6510. Fixed compile error when configured with --disable-bittorrent
  6511. * test/DownloadHandlerFactoryTest.cc
  6512. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6513. Done make update-po
  6514. * po/aria2c.pot
  6515. * po/*.po
  6516. * po/*.gmo
  6517. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6518. Bump up version number to 0.13.2rc.
  6519. * src/configure.ac
  6520. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6521. Made option name bold. Updated SYNOPSIS to make it more readable.
  6522. * doc/aria2c.1.txt
  6523. * doc/aria2c.1
  6524. * doc/aria2c.1.html
  6525. * src/version_usage.cc
  6526. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6527. Refactored. Use std::string instead of size and char*.
  6528. * Data.cc
  6529. * Data.h
  6530. * test/Data.cc
  6531. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6532. Added trimSelf(). Rewritten trim() to use trimSelf().
  6533. * Util.cc
  6534. * Util.h
  6535. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6536. * src/ChunkChecksum.h (getChecksum): Return const reference.
  6537. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6538. Fixed compile error when configured with --disable-metalink.
  6539. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  6540. * test/FeatureConfigTest.cc
  6541. * test/DownloadHandlerFactoryTest.cc
  6542. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6543. Fixed compile error when configured with --without-gnutls
  6544. --without-openssl
  6545. * src/main.cc
  6546. * test/DefaultBtProgressInfoFileTest.cc
  6547. * test/SegmentManTest.cc
  6548. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6549. Fixed compile error with OpenSSL.
  6550. * src/IteratableChunkChecksumValidator.cc
  6551. * src/LibsslDHKeyExchange.h
  6552. * src/MessageDigestHelper.cc
  6553. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6554. Revert the default value of --max-concurrent-downloads to 5.
  6555. Revert the default value of --metalink-servers to 5.
  6556. Man pages was also updated.
  6557. * src/option_processing.cc
  6558. * doc/aria2c.1.txt
  6559. * doc/aria2c.1.html
  6560. * doc/aria2c.1
  6561. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6562. Returns const reference:
  6563. DownloadContext::getPieceHash, DownloadContext::getName,
  6564. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  6565. BtContext::getInfoHashAsString,
  6566. * src/BtContext.h
  6567. * src/DefaultBtContext.cc
  6568. * src/DefaultBtContext.h
  6569. * src/DownloadContext.h
  6570. * src/SingleFileDownloadContext.h
  6571. * test/MockBtContext.h
  6572. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6573. * src/RequestGroup.h (getDir): Removed.
  6574. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6575. Returns const reference. The internal urlencode function was optimized
  6576. a little bit.
  6577. * src/Request.cc
  6578. * src/Request.h
  6579. * src/HttpRequest.cc
  6580. * src/HttpRequest.h
  6581. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6582. Defined option name and possible values as std::string to reduce
  6583. temporary string object creation in runtime.
  6584. * src/HelpItemFactory.cc
  6585. * src/LogFactory.cc
  6586. * src/Option.cc
  6587. * src/OptionHandlerFactory.cc
  6588. * src/option_processing.cc
  6589. * src/prefs.cc
  6590. * src/prefs.h
  6591. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6592. Return const reference.
  6593. * src/DownloadHandlerConstants.cc
  6594. * src/DownloadHandlerConstants.h
  6595. (getMetalinkExtensions)
  6596. (getMetalinkContentTypes)
  6597. (getBtExtensions)
  6598. (getBtContentTypes)
  6599. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6600. * src/HttpHeader.cc (get): Rewritten.
  6601. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6602. Make HttpHeader::getFirst(...) return const reference.
  6603. * src/HttpHeader.cc
  6604. * src/HttpHeader.h
  6605. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6606. Use Option::getAsBool(...) instead of Option::get(...) and compare
  6607. it with V_TRUE.
  6608. * src/DefaultPieceStorage.cc
  6609. * src/DownloadCommand.cc
  6610. * src/FtpNegotiationCommand.cc
  6611. * src/HttpRequest.cc
  6612. * src/InitiateConnectionCommand.cc
  6613. * src/RequestGroup.cc
  6614. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6615. Made Option::get(...) return const reference of std::string.
  6616. * src/Option.cc
  6617. * src/Option.h
  6618. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6619. Replaced std:copy with insert.
  6620. * src/DefaultBtMessageDispatcher.cc
  6621. * src/DefaultPieceStorage.cc
  6622. * src/DownloadEngineFactory.cc
  6623. * src/RequestGroup.cc
  6624. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6625. Included SocketCore.h to fix compiler warning.
  6626. * src/InitiateConnectionCommand.cc
  6627. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6628. Put piece selection strategy algorithm to RarestPieceSelector class,
  6629. Added a switch to choose whether randomized selection so that unit
  6630. tests emit same results in, possibly, win32.
  6631. * src/DefaultPieceStorage.cc
  6632. * src/DefaultPieceStorage.h
  6633. * src/RarestPieceSelector.cc
  6634. * src/RarestPieceSelector.h
  6635. * test/DefaultPieceStorageTest.cc
  6636. * test/RarestPieceSelectorTest.cc
  6637. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6638. Don't pool connection if HTTP proxy is enabled.
  6639. * src/FtpFinishDownloadCommand.cc
  6640. * src/FtpNegotiationCommand.cc
  6641. * src/HttpSkipResponseCommand.cc
  6642. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6643. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  6644. * src/AbstractCommand.cc
  6645. * src/AbstractCommand.h
  6646. * src/ActivePeerConnectionCommand.cc
  6647. * src/FtpInitiateConnectionCommand.cc
  6648. * src/HttpInitiateConnectionCommand.cc
  6649. * src/InitiateConnectionCommandFactory.cc
  6650. * src/PeerAbstractCommand.cc
  6651. * src/PeerAbstractCommand.h
  6652. * src/PeerInitiateConnectionCommand.cc
  6653. * src/TrackerWatcherCommand.cc
  6654. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6655. Sort RequestSlot in ascending order and manipulate them using
  6656. lower_bound.
  6657. * src/DefaultBtMessageDispatcher.cc
  6658. * src/DefaultBtMessageDispatcher.h
  6659. (getMessageQueue): Added const qualifier.
  6660. (getRequestSlots): Added const qualifier.
  6661. (sendMessages): Use empty() instead of size().
  6662. (doCancelSendingPieceAction): Use HandleEvent object.
  6663. (doAbortOutstandingRequestAction): Rewritten.
  6664. (doChokedAction): Rewritten.
  6665. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  6666. (isOutstandingRequest): Rewritten.
  6667. (getOutstandingRequest): Rewritten.
  6668. (removeOutstandingRequest): Rewritten.
  6669. (addOutstandingRequest): Rewritten.
  6670. * src/RequestSlot.cc
  6671. * src/RequestSlot.h
  6672. (operator=): Rewritten.
  6673. (operator!=): New function.
  6674. (operator<): New function.
  6675. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6676. * src/DefaultBtRequestFactory.cc
  6677. (doChokedAction): Rewritten.
  6678. (removeCompletedPiece): Rewritten.
  6679. (removeTargetPiece): Rewritten.
  6680. (createRequestMessages): Added the debug log.
  6681. (createRequestMessagesOnEndGame: Added the debug log.
  6682. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6683. Added the debug log message.
  6684. * src/BtPieceMessage.cc (doReceivedAction)
  6685. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6686. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  6687. used lower_bound to process them rather than linear search.
  6688. * src/DHTPeerAnnounceStorage.cc
  6689. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6690. Call subtractPieceStats from ~PeerInteractionCommand only when the
  6691. peer has at least one completed piece.
  6692. * src/Peer.cc
  6693. * src/Peer.h
  6694. * src/PeerInteractionCommand.cc
  6695. * src/PeerSessionResource.cc
  6696. * src/PeerSessionResource.h
  6697. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6698. Removed unnecessary sorting
  6699. * src/DefaultPieceStorage (DefaultPieceStorage)
  6700. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6701. Rewritten the portion of the code that mangaes allowed fast indexes.
  6702. * src/PeerSessionResource.cc
  6703. * src/PeerSessionResource.h
  6704. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6705. Removed the invalid string including '\r' from ru.po and
  6706. did make update-po.
  6707. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6708. Added --log-level and --summary-interval to man page.
  6709. * doc/aria2c.1.txt
  6710. * doc/aria2c.1.html
  6711. * doc/aria2c.1
  6712. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6713. Added --log-level option to specify log level. Log messages under
  6714. the specified level are not output. Default value is `debug'.
  6715. * src/HelpItemFactory.cc
  6716. * src/LogFactory.cc
  6717. * src/LogFactory.h
  6718. * src/Logger.h
  6719. * src/OptionHandlerFactory.cc
  6720. * src/SimpleLogger.cc
  6721. * src/SimpleLogger.h
  6722. * src/main.cc
  6723. * src/option_processing.cc
  6724. * src/prefs.h
  6725. * src/usage_text.h
  6726. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6727. Print download progress summary of all parallel downloads in specified
  6728. interval, default 60 secs. While aria2 could download several files
  6729. in parallel (see -j option), it displayed just first download progress,
  6730. and the other downloads are hidden from the users. This new feature
  6731. prints all downloads currently in-progress to the console so that you
  6732. can check the status of all downloads. The interval can be adjusted
  6733. by --summary-interval option.
  6734. The progress readout is now cut so that all fits in the one line of
  6735. console.
  6736. * src/ConsoleStatCalc.cc
  6737. * src/ConsoleStatCalc.h
  6738. * src/HelpItemFactory.cc
  6739. * src/OptionHandlerFactory.cc
  6740. * src/RequestGroupMan.cc
  6741. * src/RequestGroupMan.h
  6742. * src/main.cc
  6743. * src/option_processing.cc
  6744. * src/prefs.h
  6745. * src/usage_text.h
  6746. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6747. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  6748. * src/DownloadEngine.cc (DownloadEngine)
  6749. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6750. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  6751. defined.
  6752. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  6753. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6754. Use erase+lower_bound+insert instead of sort.
  6755. * src/DefaultPieceStorage.cc (addPieceStats)
  6756. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6757. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  6758. * src/A2STR.cc
  6759. * src/A2STR.h
  6760. * src/OptionParser.cc (parse)
  6761. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6762. Defined fake filename `[tracker.announce]' as static const std::string.
  6763. * src/TrackerWatcherCommand.cc (createRequestGroup)
  6764. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6765. Defined default filename `index.html' as static const std::string
  6766. * src/SingleFileDownloadContext.cc
  6767. * src/SingleFileDownloadContext.h
  6768. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6769. Defined "[MEMORY]" as static const std::string.
  6770. * src/MemoryBufferPreDownloadHandler.cc (execute)
  6771. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6772. Defined control file's version number as static const std::string.
  6773. * src/DefaultBtProgressInfoFile.cc
  6774. * src/DefaultBtProgressInfoFile.h
  6775. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6776. Use Request::METHOD_GET
  6777. * src/RequestGroup.cc (createNextCommandWithAdj)
  6778. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6779. Defined "OK", "ERR", "INPR" as static const std::string
  6780. * src/RequestGroupMan.cc (showDownloadResults)
  6781. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6782. Defined default client used in extended handshake as static const
  6783. std::string
  6784. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  6785. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6786. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  6787. * src/HttpConnection.cc (eraseConfidentialInfo)
  6788. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6789. Defined default ftp user and password as static const std::string
  6790. * src/AuthConfigFactory.cc
  6791. * src/AuthConfigFactory.h
  6792. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6793. Defined strings used in netrc as static const std::string
  6794. * src/Netrc.cc
  6795. * src/Netrc.h
  6796. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6797. Defined HTTP status as static const std::string
  6798. * src/AbstractProxyResponseCommand.cc
  6799. * src/HttpHeader.cc
  6800. * src/HttpHeader.h
  6801. * src/HttpResponse.cc
  6802. * src/HttpResponseCommand.cc
  6803. * src/HttpSkipResponseCommand.cc
  6804. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6805. Defined "\r\n", "A", "I" as static const std::string
  6806. * src/A2STR.cc
  6807. * src/A2STR.h
  6808. * src/FtpConnection.cc
  6809. * src/FtpConnection.h
  6810. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6811. Added COLON_C(".") and used it in Request::parseUrl()
  6812. * src/A2STR.cc
  6813. * src/A2STR.h
  6814. * src/Request.cc (parseUrl)
  6815. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6816. Changed the type of padName from `const std::string&' to `const char*'.
  6817. * src/MSEHandshake.cc (verifyPadLength)
  6818. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6819. Defined "sha1" as static const std::string.
  6820. * src/MetalinkParserController.cc
  6821. * src/MetalinkParserController.h
  6822. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6823. Defined message digest algorithm name as static const std::string
  6824. * src/DHTTokenTracker.cc
  6825. * src/DHTUtil.cc
  6826. * src/DefaultBtContext.cc
  6827. * src/MSEHandshake.cc
  6828. * src/MessageDigestHelper.cc
  6829. * src/Peer.cc
  6830. * src/messageDigest.cc
  6831. * src/messageDigest.h
  6832. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6833. Made string literals used in SAX parser static const std::string.
  6834. * src/FileMetalinkParserState.cc
  6835. * src/FileMetalinkParserState.h
  6836. * src/FilesMetalinkParserState.cc
  6837. * src/FilesMetalinkParserState.h
  6838. * src/InitialMetalinkParserState.cc
  6839. * src/InitialMetalinkParserState.h
  6840. * src/MetalinkMetalinkParserState.cc
  6841. * src/MetalinkMetalinkParserState.h
  6842. * src/PiecesMetalinkParserState.cc
  6843. * src/PiecesMetalinkParserState.h
  6844. * src/ResourcesMetalinkParserState.cc
  6845. * src/ResourcesMetalinkParserState.h
  6846. * src/VerificationMetalinkParserState.cc
  6847. * src/VerificationMetalinkParserState.h
  6848. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6849. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  6850. * src/A2STR.cc
  6851. * src/A2STR.h
  6852. * src/File.cc
  6853. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6854. Defined static const std::string IP("ip"), PORT("port") and use them
  6855. instead of string literals.
  6856. * src/DefaultPeerListProcessor.cc
  6857. * src/DefaultPeerListProcessor.h
  6858. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6859. Made string literals for torrent file processing static const
  6860. std::string.
  6861. * src/BtContext.cc
  6862. * src/BtContext.h
  6863. * src/DefaultBtContext.cc
  6864. * src/DefaultBtContext.h
  6865. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6866. Made string literal for tracker response static const std::string
  6867. * src/BtAnnounce.cc
  6868. * src/BtAnnounce.h
  6869. * src/DefaultBtAnnounce.cc
  6870. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6871. Use DHTMessage::T instead of "t".
  6872. * src/DHTMessageTracker.cc (messageArrived)
  6873. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6874. Made keyName static const. Made trimmed charset static const
  6875. std::string.
  6876. * src/Util.cc (getContentDispositionFilename)
  6877. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6878. Made USER_AGENT const. Made "/" static const std::string.
  6879. * src/A2STR.cc
  6880. * src/A2STR.h
  6881. * src/HttpRequest.cc
  6882. * src/HttpRequest.h
  6883. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6884. Made string listeral to static const std::string:
  6885. "Content-Range", "Content-Length"
  6886. * src/HttpHeader.cc
  6887. * src/HttpHeader.h
  6888. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6889. Made string listeral to static const std::string.
  6890. * src/HttpConnection.cc
  6891. * src/HttpHeader.cc
  6892. * src/HttpHeader.h
  6893. * src/HttpResponse.cc
  6894. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6895. Made string listeral to static const std::string.
  6896. * src/A2STR.cc
  6897. * src/A2STR.h
  6898. * src/SimpleLogger.cc
  6899. * src/SimpleLogger.h
  6900. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6901. Made string literal to static const std::string.
  6902. Rewritten CookieParser::setField.
  6903. * src/A2STR.cc
  6904. * src/A2STR.h
  6905. * src/CookieBoxFactory.cc
  6906. * src/CookieBoxFactory.h
  6907. * src/CookieParser.cc
  6908. * src/CookieParser.h
  6909. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6910. Made string literal to static const std::string
  6911. * src/DHTAbstractMessage.cc
  6912. * src/DHTAnnouncePeerMessage.cc
  6913. * src/DHTAnnouncePeerMessage.h
  6914. * src/DHTAnnouncePeerReplyMessage.cc
  6915. * src/DHTAnnouncePeerReplyMessage.h
  6916. * src/DHTFindNodeMessage.cc
  6917. * src/DHTFindNodeMessage.h
  6918. * src/DHTFindNodeReplyMessage.cc
  6919. * src/DHTFindNodeReplyMessage.h
  6920. * src/DHTGetPeersMessage.cc
  6921. * src/DHTGetPeersMessage.h
  6922. * src/DHTGetPeersReplyMessage.cc
  6923. * src/DHTGetPeersReplyMessage.h
  6924. * src/DHTMessage.cc
  6925. * src/DHTMessage.h
  6926. * src/DHTMessageFactoryImpl.cc
  6927. * src/DHTMessageReceiver.cc
  6928. * src/DHTPingMessage.cc
  6929. * src/DHTPingMessage.h
  6930. * src/DHTPingReplyMessage.cc
  6931. * src/DHTPingReplyMessage.h
  6932. * src/DHTQueryMessage.cc
  6933. * src/DHTQueryMessage.h
  6934. * src/DHTResponseMessage.cc
  6935. * src/DHTResponseMessage.h
  6936. * src/DHTUnknownMessage.cc
  6937. * src/DHTUnknownMessage.h
  6938. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6939. Made string literal to static const std::string
  6940. * src/BtChokeMessage.cc (toString)
  6941. * src/BtHaveAllMessage.cc (toString)
  6942. * src/BtHaveNoneMessage.cc (toString)
  6943. * src/BtInterestedMessage.cc (toString)
  6944. * src/BtNotInterestedMessage.cc (toString)
  6945. * src/BtUnchokeMessage.cc (toString)
  6946. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6947. Replaced "" with static const variable A2STR::NIL.
  6948. Replaced string comparison against "" with std::string::empty().
  6949. Added PROTO_* to Request class and use them as a protocol string
  6950. constant.
  6951. Made "started", "stopped", "completed" static const variable in
  6952. AnnounceList class.
  6953. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6954. Updated translations. Great thanks to translators.
  6955. * po/ca.po
  6956. * po/de.po
  6957. * po/fr.po
  6958. * po/it.po
  6959. * po/ja.po
  6960. * po/ru.po
  6961. * po/zh_CN.po
  6962. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6963. Updated man page; categorized options and fixed typo.
  6964. * doc/aria2c.1.txt
  6965. * doc/aria2c.1.html
  6966. * doc/aria2c.1
  6967. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6968. Removed const ref
  6969. * src/MetalinkEntry.cc (AddProtocolPreference)
  6970. * src/RequestGroup.cc (FindServerHostByHostname)
  6971. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6972. Rewritten Accept-Features handling.
  6973. * src/HttpRequestCommand.cc (createHttpRequest)
  6974. * src/a2functional.h
  6975. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6976. Changed method signature:
  6977. DHTAbstractNodeLookupTask::toEntries
  6978. * src/DHTAbstractNodeLookupTask.cc
  6979. * src/DHTAbstractNodeLookupTask.h
  6980. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6981. Changed method signature:
  6982. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  6983. * src/BtContext.h
  6984. * src/DefaultBtContext.cc
  6985. * src/DefaultBtContext.h
  6986. * src/DefaultBtInteractive.cc
  6987. * test/DefaultBtContextTest.cc
  6988. * test/MockBtContext.h
  6989. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6990. Changed method signature:
  6991. MultiFileAllocationIterator::makeDiskWriterEntries
  6992. * src/MultiFileAllocationIterator.cc
  6993. * src/MultiFileAllocationIterator.h
  6994. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6995. Changed method sinature:
  6996. MetalinkEntry::toFileEntry,
  6997. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  6998. Metalinker::queryEntry
  6999. * src/Metalink2RequestGroup.cc
  7000. * src/MetalinkEntry.cc
  7001. * src/MetalinkEntry.h
  7002. * src/MetalinkHelper.cc
  7003. * src/MetalinkHelper.h
  7004. * src/Metalinker.cc
  7005. * src/Metalinker.h
  7006. * src/main.cc
  7007. * test/MetalinkHelperTest.cc
  7008. * test/MetalinkerTest.cc
  7009. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7010. Changed method sinature:
  7011. RequestGroup::getURIs
  7012. * src/RequestGroup.cc
  7013. * src/RequestGroup.h
  7014. * test/Metalink2RequestGroupTest.cc
  7015. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7016. Changed method signature:
  7017. PeerListProcessor::extractPeer
  7018. * src/CompactPeerListProcessor.cc
  7019. * src/CompactPeerListProcessor.h
  7020. * src/DefaultBtAnnounce.cc
  7021. * src/DefaultPeerListProcessor.cc
  7022. * src/DefaultPeerListProcessor.h
  7023. * src/DelegatingPeerListProcessor.cc
  7024. * src/DelegatingPeerListProcessor.h
  7025. * src/PeerListProcessor.h
  7026. * src/UTPexExtensionMessage.cc
  7027. * test/DefaultPeerListProcessorTest.cc
  7028. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7029. Changed method signature:
  7030. BtRequestFactory::createRequestMessages,
  7031. BtRequestFactory::createRequestMessagesOnEndGame
  7032. * src/BtRequestFactory.h
  7033. * src/DefaultBtInteractive.cc
  7034. * src/DefaultBtRequestFactory.cc
  7035. * src/DefaultBtRequestFactory.h
  7036. * test/DefaultBtRequestFactoryTest.cc
  7037. * test/MockBtRequestFactory.h
  7038. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7039. Changed method signature:
  7040. PieceStorage::getInFlightPieces
  7041. * src/DefaultBtProgressInfoFile.cc
  7042. * src/DefaultPieceStorage.cc
  7043. * src/DefaultPieceStorage.h
  7044. * src/PieceStorage.h
  7045. * src/UnknownLengthPieceStorage.cc
  7046. * src/UnknownLengthPieceStorage.h
  7047. * test/DefaultBtProgressInfoFileTest.cc
  7048. * test/MockPieceStorage.h
  7049. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7050. Changed method signature:
  7051. PostDownloadHandler::getNextRequestGroups
  7052. Metalink2RequestGroup::generate
  7053. RequestGroup::postDownloadProcessing
  7054. * src/BtPostDownloadHandler.cc
  7055. * src/BtPostDownloadHandler.h
  7056. * src/Metalink2RequestGroup.cc
  7057. * src/Metalink2RequestGroup.h
  7058. * src/MetalinkPostDownloadHandler.cc
  7059. * src/MetalinkPostDownloadHandler.h
  7060. * src/PostDownloadHandler.h
  7061. * src/RequestGroup.cc
  7062. * src/RequestGroup.h
  7063. * src/RequestGroupMan.cc
  7064. * src/main.cc
  7065. * test/BtPostDownloadHandlerTest.cc
  7066. * test/Metalink2RequestGroupTest.cc
  7067. * test/MetalinkPostDownloadHandlerTest.cc
  7068. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7069. Rewritten AccRequestGroup
  7070. * src/main.cc
  7071. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7072. Rewritten.
  7073. * src/TaggedItem.cc (toTagString)
  7074. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7075. Rewritten Accept-Features handling.
  7076. * src/HttpRequestCommand.cc (createHttpRequest)
  7077. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7078. Rewritten accept types handling.
  7079. * HttpRequest.cc (createRequest)
  7080. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7081. Rewritten
  7082. * src/FeatureConfig.cc (featureSummary)
  7083. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7084. Changed method signature:
  7085. PeerStorage::getActivePeers
  7086. * src/DHTPeerAnnounceEntry.cc
  7087. * src/DefaultPeerStorage.cc
  7088. * src/DefaultPeerStorage.h
  7089. * src/PeerStorage.h
  7090. * test/DefaultPeerStorageTest.cc
  7091. * test/MockPeerStorage.h
  7092. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7093. Changed method signature:
  7094. DHTPeerAnnounceStorage::getPeers,
  7095. DHTPeerAnnounceEntry::getPeers
  7096. * src/DHTGetPeersMessage.cc
  7097. * src/DHTPeerAnnounceEntry.cc
  7098. * src/DHTPeerAnnounceEntry.h
  7099. * src/DHTPeerAnnounceStorage.cc
  7100. * src/DHTPeerAnnounceStorage.h
  7101. * test/DHTAnnouncePeerMessageTest.cc
  7102. * test/DHTPeerAnnounceEntryTest.cc
  7103. * test/DHTPeerAnnounceStorageTest.cc
  7104. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7105. Changed method signature:
  7106. NameResolver::resolve
  7107. * src/DHTEntryPointNameResolveCommand.cc
  7108. * src/InitiateConnectionCommand.cc
  7109. * src/NameResolver.cc
  7110. * src/NameResolver.h
  7111. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7112. Changed method signature:
  7113. PieceStorage::getAdvertisedPieceIndexes
  7114. * src/DefaultBtInteractive.cc
  7115. * src/DefaultPieceStorage.cc
  7116. * src/DefaultPieceStorage.h
  7117. * src/PieceStorage.h
  7118. * src/UnknownLengthPieceStorage.h
  7119. * test/MockPieceStorage.h
  7120. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7121. Changed method signature:
  7122. SegmentMan::getInFlightSegment
  7123. * src/AbstractCommand.cc
  7124. * src/SegmentMan.cc
  7125. * src/SegmentMan.h
  7126. * test/SegmentManTest.cc
  7127. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7128. Changed method signature:
  7129. DHTAbstractNodeLookupTask::getNodesFromMessage
  7130. * src/DHTAbstractNodeLookupTask.cc
  7131. * src/DHTAbstractNodeLookupTask.h
  7132. * src/DHTNodeLookupTask.cc
  7133. * src/DHTNodeLookupTask.h
  7134. * src/DHTPeerLookupTask.cc
  7135. * src/DHTPeerLookupTask.h
  7136. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7137. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  7138. * src/AbstractCommand.cc
  7139. * src/BtCheckIntegrityEntry.cc
  7140. * src/BtCheckIntegrityEntry.h
  7141. * src/BtFileAllocationEntry.cc
  7142. * src/BtFileAllocationEntry.h
  7143. * src/BtSetup.cc
  7144. * src/BtSetup.h
  7145. * src/CheckIntegrityCommand.cc
  7146. * src/CheckIntegrityEntry.h
  7147. * src/ChecksumCheckIntegrityEntry.cc
  7148. * src/ChecksumCheckIntegrityEntry.h
  7149. * src/DHTSetup.cc
  7150. * src/DHTSetup.h
  7151. * src/DownloadEngine.cc
  7152. * src/FileAllocationCommand.cc
  7153. * src/FileAllocationEntry.h
  7154. * src/RequestGroup.cc
  7155. * src/RequestGroup.h
  7156. * src/RequestGroupMan.cc
  7157. * src/RequestGroupMan.h
  7158. * src/StreamCheckIntegrityEntry.cc
  7159. * src/StreamCheckIntegrityEntry.h
  7160. * src/StreamFileAllocationEntry.cc
  7161. * src/StreamFileAllocationEntry.h
  7162. * src/TrackerWatcherCommand.cc
  7163. * src/a2functional.h
  7164. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7165. Changed method signature:
  7166. BNode::findClosestKNodes, BNode:: enumerateBucket,
  7167. DHTBucket::getGoodNodes,
  7168. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  7169. * src/BNode.cc
  7170. * src/BNode.h
  7171. * src/DHTAbstractNodeLookupTask.cc
  7172. * src/DHTAutoSaveCommand.cc
  7173. * src/DHTBucket.cc
  7174. * src/DHTBucket.h
  7175. * src/DHTBucketRefreshTask.cc
  7176. * src/DHTFindNodeMessage.cc
  7177. * src/DHTGetPeersMessage.cc
  7178. * src/DHTRoutingTable.cc
  7179. * src/DHTRoutingTable.h
  7180. * test/BNodeTest.cc
  7181. * test/DHTBucketTest.cc
  7182. * test/DHTRoutingTableTest.cc
  7183. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7184. In piece selection functions, Pass std::deque<...> by reference rather
  7185. than returning it.
  7186. * src/BitfieldMan.cc
  7187. * src/BitfieldMan.h
  7188. * src/DefaultBtRequestFactory.cc
  7189. * src/DefaultPieceStorage.cc
  7190. * src/Piece.cc
  7191. * src/Piece.h
  7192. * test/BitfieldManTest.cc
  7193. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7194. Implemented rarest piece first piece selection strategy.
  7195. * src/AbstractBtMessage.cc
  7196. * src/AbstractBtMessage.h
  7197. * src/BitfieldMan.cc
  7198. * src/BitfieldMan.h
  7199. * src/BtBitfieldMessage.cc
  7200. * src/BtHaveAllMessage.cc
  7201. * src/BtHaveMessage.cc
  7202. * src/DefaultPieceStorage.cc
  7203. * src/DefaultPieceStorage.h
  7204. * src/PeerInteractionCommand.cc
  7205. * src/PieceStorage.h
  7206. * src/UnknownLengthPieceStorage.h
  7207. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7208. Rewritten readData and writeData.
  7209. * src/MultiDiskAdaptor.cc
  7210. * src/MultiDiskAdaptor.h
  7211. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7212. Move \n out of the message "Usage: ...".
  7213. * src/version_usage.cc
  7214. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7215. Bump up version number to 0.13.2b.
  7216. * configure.ac
  7217. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7218. Added const qualifier to argument Exception& e.
  7219. * src/Logger.h
  7220. * src/SimpleLogger.cc
  7221. * src/SimpleLogger.h
  7222. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7223. Pool connection when CWD, SIZE command fails.
  7224. * src/FtpNegotiationCommand.cc
  7225. * src/FtpNegotiationCommand.h
  7226. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7227. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  7228. * src/HttpResponseCommand.cc
  7229. * src/HttpSkipResponseCommand.cc
  7230. * src/HttpSkipResponseCommand.h
  7231. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7232. Pool connection when a server returns 4xx, 5xx responses.
  7233. * src/HttpNullDownloadCommand.cc
  7234. * src/HttpNullDownloadCommand.h
  7235. * src/HttpResponse.cc
  7236. * src/HttpResponse.h
  7237. * src/HttpResponseCommand.cc
  7238. * src/HttpResponseCommand.h
  7239. * test/HttpResponseTest.cc
  7240. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7241. Print usage when no URL is specifed or bad command-line option is
  7242. specified.
  7243. * src/HelpItemFactory.cc
  7244. * src/help_tags.h
  7245. * src/option_processing.cc
  7246. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7247. Removed duplicate log message.
  7248. * src/AbstractCommand.cc (asyncResolveHostname)
  7249. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7250. Updated man page: --async-dns and --ftp-reuse-connection were added.
  7251. Changed -j option's default value from 5 to 1.
  7252. Added new examples using protocol auto detection feature.
  7253. Removed -T, -M usage where it can be omitted.
  7254. * doc/aria2c.1.txt
  7255. * doc/aria2c.1.html
  7256. * doc/aria2c.1.txt
  7257. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7258. Updated command-line usage text, so that it tells users that they
  7259. can specify any number of torrent files and metalink files in
  7260. command-line.
  7261. * src/version_usage.cc
  7262. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7263. Changed the default value of -j option to 1.
  7264. * src/HelpItemFactory.cc
  7265. * src/option_processing.cc
  7266. * src/usage_text.h
  7267. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7268. Added the ability to reuse connection in FTP and it is enabled by
  7269. default. It can be disabled by --ftp-reuse-connection=false option.
  7270. * src/Command.cc
  7271. * src/DownloadCommand.cc
  7272. * src/FtpDownloadCommand.cc
  7273. * src/FtpDownloadCommand.h
  7274. * src/FtpFinishDownloadCommand.cc
  7275. * src/FtpFinishDownloadCommand.h
  7276. * src/FtpInitiateConnectionCommand.cc
  7277. * src/FtpNegotiationCommand.cc
  7278. * src/FtpNegotiationCommand.h
  7279. * src/HelpItemFactory.cc
  7280. * src/Makefile.am
  7281. * src/Makefile.in
  7282. * src/OptionHandlerFactory.cc
  7283. * src/option_processing.cc
  7284. * src/prefs.h
  7285. * src/usage_text.h
  7286. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7287. Call Command::transitStatus() before calling Command::execute(),
  7288. so that the status change made in execute() is not cleared.
  7289. * src/DownloadEngine.cc
  7290. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7291. Removed forward declaration of SocketCore class.
  7292. * src/HttpDownloadCommand.h
  7293. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7294. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  7295. in InitiateConnectionCommandFactory. They should be set only when
  7296. the protocol is HTTP or HTTPS.
  7297. * src/InitiateConnectionCommandFactory.cc
  7298. * src/RequestGroup.cc
  7299. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7300. Fixed infinite loop in checksum checking.
  7301. * src/IteratableChecksumValidator.cc
  7302. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7303. Set _supportsPersistentConnection to true by default.
  7304. * src/Request.cc
  7305. * src/RequestGroup.cc
  7306. * test/HttpRequestTest.cc
  7307. * test/RequestTest.cc
  7308. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7309. Added timeout to socket pool. The default timeout is 15 seconds,
  7310. which is the same value Apache uses.
  7311. * src/DownloadEngine.cc
  7312. * src/DownloadEngine.h
  7313. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7314. Fixed misuse of multimap::find()
  7315. * src/HttpHeader.cc
  7316. * test/HttpHeaderTest.cc
  7317. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7318. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  7319. option.
  7320. The asynchronous DNS is not capable of IPv6 yet.
  7321. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  7322. least for HTTP download.
  7323. * src/AbstractCommand.cc
  7324. * src/AbstractCommand.h
  7325. * src/AsyncNameResolver.cc
  7326. * src/AsyncNameResolver.h
  7327. * src/DHTEntryPointNameResolveCommand.cc
  7328. * src/DHTEntryPointNameResolveCommand.h
  7329. * src/DownloadEngine.cc
  7330. * src/DownloadEngine.h
  7331. * src/FtpInitiateConnectionCommand.cc
  7332. * src/FtpInitiateConnectionCommand.h
  7333. * src/HelpItemFactory.cc
  7334. * src/HttpInitiateConnectionCommand.cc
  7335. * src/HttpInitiateConnectionCommand.h
  7336. * src/InitiateConnectionCommand.cc
  7337. * src/InitiateConnectionCommand.h
  7338. * src/Makefile.am
  7339. * src/Makefile.in
  7340. * src/NameResolver.cc
  7341. * src/NameResolver.h
  7342. * src/OptionHandlerFactory.cc
  7343. * src/SocketCore.cc
  7344. * src/SocketCore.h
  7345. * src/Util.cc
  7346. * src/Util.h
  7347. * src/option_processing.cc
  7348. * src/prefs.h
  7349. * src/usage_text.h
  7350. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7351. Updated man page: --quiet, --header were added.
  7352. --metalink-servers and --enable-http-keep-alive option were updated.
  7353. * doc/aria2c.1
  7354. * doc/aria2c.1.html
  7355. * doc/aria2c.1.txt
  7356. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7357. Enable HTTP keep-alive by default.
  7358. * src/HelpItemFactory.cc
  7359. * src/option_processing.cc
  7360. * src/usage_text.h
  7361. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7362. Disable http keep-alive if the remote server is not HTTP/1.1.
  7363. * src/HttpConnection.cc
  7364. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7365. Receive content body of 302 response so that the connection can be
  7366. reused later when http keep-alive is enabled.
  7367. * src/HttpNullDownloadCommand.cc
  7368. * src/HttpNullDownloadCommand.h
  7369. * src/HttpResponseCommand.cc
  7370. * src/HttpResponseCommand.h
  7371. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7372. const SharedHandle<Request> -> const SharedHandle<Request>&
  7373. * src/FtpDowndloadCommand.cc
  7374. * src/FtpDowndloadCommand.h
  7375. * src/HttpDownloadCommand.cc
  7376. * src/HttpDownloadCommand.h
  7377. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7378. Fixed the bug that the control file(.aria2 file) is not renamed
  7379. according to tryAutoFileRenaming().
  7380. tryAutoFileRenaming() was rewritten so that if both renamed file and
  7381. its control file exist, use them and continue download.
  7382. The old implementation didn't take into account of control file's
  7383. existence, so basically you couldn't continue download of renamed file.
  7384. * src/BtProgressInfoFile.h
  7385. * src/DefaultBtProgressInfoFile.cc
  7386. * src/DefaultBtProgressInfoFile.h
  7387. * src/NullProgressInfoFile.h
  7388. * src/RequestGroup.cc
  7389. * test/DefaultBtProgressInfoFileTest.cc
  7390. * test/MockBtProgressInfoFile.h
  7391. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7392. Change the default value of --metalink-servers option from `5' to `1'.
  7393. * src/HelpItemFactory.cc
  7394. * src/option_processing.cc
  7395. * src/usage_text.h
  7396. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7397. Reimplemented transparent metalink using Accept request header.
  7398. * src/HttpRequest.cc
  7399. * src/HttpRequest.h
  7400. * src/HttpRequestCommand.cc
  7401. * src/Metalink2RequestGroup.cc
  7402. * src/RequestGroup.cc
  7403. * src/RequestGroup.h
  7404. * test/HttpRequestTest.cc
  7405. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7406. Bump up version number to 0.13.2a
  7407. * configure.ac
  7408. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7409. Updated configure.ac using the result of autoscan.
  7410. * configure.ac
  7411. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7412. Fixed compilation error without gcrypt/openssl.
  7413. * src/DownloadCommand.cc
  7414. * src/DownloadCommand.h
  7415. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7416. Reorganized version information so that it can be displayed in a
  7417. standard terminal screen without scrolling.
  7418. Removed http, ftp from Configuration section, because they are always
  7419. enabled.
  7420. * src/FeatureConfig.cc
  7421. * src/FeatureConfig.h
  7422. * src/main.cc
  7423. * src/messageDigest.cc
  7424. * src/messageDigest.h
  7425. * src/version_usage.cc
  7426. * test/FeatureConfigTest.cc
  7427. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7428. Masked user ID in log.
  7429. * src/FtpConnection.cc (sendUser)
  7430. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7431. Removed query part from filename in HTTP download. The query part means
  7432. the substring after "?" in URL. Firefox seems do the same thing.
  7433. A query part is sometimes very long and not suitable to filename,
  7434. so I think it is better to remove it from filename.
  7435. * src/HttpRequest.cc
  7436. * src/HttpRequest.h
  7437. * src/Request.cc
  7438. * src/Request.h
  7439. * test/HttpRequestTest.cc
  7440. * test/RequestTest.cc
  7441. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7442. Rewritten Exception class. Throw exception object, not its pointer and
  7443. catch by reference, so that remove problematic delete operator for
  7444. catched exception.
  7445. * src/Exception.cc
  7446. * src/Exception.h
  7447. * test/ExceptionTest.cc
  7448. * src/*: All files throwing/catching exception.
  7449. * test/*: All files throwing/catching exception.
  7450. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7451. Now auto protocol detection is enabled without -Z option.
  7452. But there is a important difference between with/without -Z optoin.
  7453. For example, if you type:
  7454. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  7455. then, aria2 interprets there are 3 request groups:
  7456. (1) http://host/file, http://mirror/file <-- multi-source download
  7457. (2) file1.torrent
  7458. (3) file2.metalink
  7459. On the other hand, if you invoke above command with -Z option, it is
  7460. interpreted as 4 request groups:
  7461. (1) http://host/file
  7462. (2) file1.torrent
  7463. (3) file2.metalink
  7464. (4) http://mirror/file
  7465. I think usually user don't mix multi-source URLs and torrent files, so
  7466. there is no big problem here.
  7467. * src/main.cc
  7468. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7469. Fixed the bug that causes segmentaion fault when reading XML containing
  7470. unescapsed character like '&'.
  7471. Also a modification was made which avoids adding unnecessary
  7472. characters stack and appending unused string.
  7473. * src/ExpatMetalinkProcessor.cc
  7474. * src/FileMetalinkParserState.h
  7475. * src/FilesMetalinkParserState.h
  7476. * src/FinMetalinkParserState.h
  7477. * src/HashMetalinkParserState.h
  7478. * src/InitialMetalinkParserState.h
  7479. * src/LanguageMetalinkParserState.h
  7480. * src/MetalinkMetalinkParserState.h
  7481. * src/MetalinkParserState.h
  7482. * src/MetalinkParserStateMachine.cc
  7483. * src/MetalinkParserStateMachine.h
  7484. * src/OSMetalinkParserState.h
  7485. * src/PieceHashMetalinkParserState.h
  7486. * src/PiecesMetalinkParserState.h
  7487. * src/ResourcesMetalinkParserState.h
  7488. * src/SizeMetalinkParserState.h
  7489. * src/SkipTagMetalinkParserState.h
  7490. * src/URLMetalinkParserState.h
  7491. * src/VerificationMetalinkParserState.h
  7492. * src/VersionMetalinkParserState.h
  7493. * src/XML2SAXMetalinkProcessor.cc
  7494. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7495. Added StringFormat class, which internally calls vasprintf.
  7496. operator<< is defined for this class, so it can be used with iostream
  7497. classes nicely. SimpleLogger and following functions are rewritten
  7498. using StringFormat class.
  7499. Besides, now Logger class's methods are non-const, many classes
  7500. that has a const Logger* as a member variable are modified to remove
  7501. const qualifier from the variable declaration.
  7502. * src/HelpItemFactory.cc
  7503. * src/Request.cc
  7504. * src/SimpleLogger.cc
  7505. * src/StringFormat.cc
  7506. * src/StringFormat.h
  7507. * src/Util.cc
  7508. * src/option_processing.cc
  7509. * src/version_usage.cc
  7510. * test/StringFormatTest.cc
  7511. * src/*.h: The classes that has const Logger* as a member variable.
  7512. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7513. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  7514. failed. Also fixed memory link when exception is thrown there.
  7515. * src/main.cc (AccRequestGroup)
  7516. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7517. Added build-in "Accept-Features" support. For now only "metalink" is
  7518. used in this header field.
  7519. This "metalink" value is removed from the list when connecting URLs
  7520. fed by metalink file to avoid loop in "transparent" metlaink.
  7521. * src/HttpRequest.cc
  7522. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  7523. header is also held in this variable. Also renamed setUserHeaders as
  7524. addHeader and it was rewritten to add header not just to clear the old
  7525. value.
  7526. * src/HttpRequestCommand.cc
  7527. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  7528. from "Accept-Features" list.
  7529. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  7530. default.
  7531. * src/RequestGroup.h
  7532. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  7533. * src/a2functional.h: Included <string> because Concat class depends on
  7534. it.
  7535. * test/HttpRequestTest.cc
  7536. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7537. Added comment
  7538. * src/RequestGroup.cc (createNextCommand)
  7539. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7540. Capitalized METHOD_GET and METHOD_HEAD
  7541. * src/Request.cc
  7542. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7543. Added getDownloadResults() method
  7544. * src/RequestGroupMan.cc
  7545. * src/RequestGroupMan.h
  7546. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7547. Fixed the bug that aria2 exits when commands is empty() but
  7548. _routineCommands are not.
  7549. * src/DownloadEngine.cc
  7550. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7551. Use the default value pulled from Option object in HelpItemFactory.
  7552. except options whose defualt value is embedded in a usage text.
  7553. * src/HelpItemFactory.cc
  7554. * src/HelpItemFactory.h
  7555. * src/option_processing.cc
  7556. * src/version_usage.cc
  7557. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7558. Added --quiet option to make aria2 quiet (no console output).
  7559. --quiet option is tagged with ADVANCED.
  7560. * src/HelpItemFactory.cc
  7561. * src/LogFactory.cc
  7562. * src/LogFactory.h
  7563. * src/MultiUrlRequestInfo.cc
  7564. * src/MultiUrlRequestInfo.h
  7565. * src/NullStatCalc.h: New class. This class prints nothing.
  7566. * src/OptionHandlerFactory.cc
  7567. * src/main.cc
  7568. * src/option_processing.cc
  7569. * src/prefs.h
  7570. * src/usage_text.h
  7571. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7572. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  7573. * src/HelpItemFactory.cc (createHelpItems):
  7574. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7575. Fixed compilation error in ExpatMetalinkProcessor.cc
  7576. * src/ExpatMetalinkProcessor.cc
  7577. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7578. Reuse socket if the origin server supports HTTP keep-alive and
  7579. --enable-http-keep-alive or --enable-http-pipelining is given.
  7580. The current implementation doesn't reuse the connections established
  7581. against proxy server.
  7582. * src/AbstractCommand.cc
  7583. * src/DownloadEngine.cc
  7584. * src/DownloadEngine.h
  7585. * src/HttpDownloadCommand.cc
  7586. * src/HttpInitiateConnectionCommand.cc
  7587. * src/HttpResponseCommand.cc
  7588. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7589. Rewritten HTTP keep-alive and pipelining routine.
  7590. * src/AbstractCommand.cc
  7591. * src/HttpConnection.cc
  7592. * src/HttpDownloadCommand.cc
  7593. * src/HttpRequest.cc
  7594. * src/HttpRequestCommand.cc
  7595. * src/HttpResponseCommand.cc
  7596. * src/Request.cc
  7597. * src/Request.h
  7598. * src/RequestGroup.cc
  7599. * test/HttpRequestTest.cc
  7600. * test/HttpResponseTest.cc
  7601. * test/RequestTest.cc
  7602. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7603. Added missing setUserHeaders call
  7604. * src/HttpRequestCommand.cc
  7605. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7606. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  7607. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  7608. waste of time because it is more likey false.
  7609. * src/FileAllocationDispatcherCommand.cc (execute)
  7610. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7611. Now HTTP status and version are a member variable of HttpHeader.
  7612. HTTP status is processed as a string, not integer.
  7613. * src/AbstractProxyResponseCommand.cc
  7614. * src/HttpConnection.cc
  7615. * src/HttpHeader.cc
  7616. * src/HttpHeader.h
  7617. * src/HttpHeaderProcessor.cc
  7618. * src/HttpHeaderProcessor.h
  7619. * src/HttpResponse.cc
  7620. * src/HttpResponse.h
  7621. * test/HttpHeaderProcessorTest.cc
  7622. * test/HttpResponseTest.cc
  7623. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7624. Added --header option. You can specify any number of additional HTTP headers
  7625. like:
  7626. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  7627. Unlike other commad-line option, you can use --header option multiple times.
  7628. * src/HelpItemFactory.cc
  7629. * src/HttpRequest.{cc, h}
  7630. * src/HttpRequestCommand.cc
  7631. * src/OptionHandlerFactory.cc
  7632. * src/OptionHandlerImpl.h
  7633. * src/option_processing.cc
  7634. * src/prefs.h
  7635. * src/usage_text.h
  7636. * test/HttpRequestTest.cc (testUserHeaders)
  7637. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7638. Eliminates the time lag between sequential downloads and commands in
  7639. the same RequestGroup.
  7640. In old implementation, aria2 occasionally waits 1 seconds before
  7641. executing next command or RequestGroup.
  7642. This is really a waste of time, and new implementation eliminates
  7643. this unnecessary time lag.
  7644. * src/AbstractCommand.cc
  7645. * src/AutoSaveCommand.cc
  7646. * src/CheckIntegrityCommand.cc
  7647. * src/Command.{cc, h}
  7648. * src/DownloadEngine.{cc, h}
  7649. * src/DownloadEngineFactory.cc
  7650. * src/FileAllocationCommand.cc
  7651. * src/FileAllocationDispatcherCommand.cc
  7652. * src/FillRequestGroupCommand.cc
  7653. * src/FtpInitiateConnectionCommand.cc
  7654. * src/HaveEraseCommand.cc
  7655. * src/HttpInitiateConnectionCommand.cc
  7656. * src/HttpResponseCommand.cc
  7657. * src/RealtimeCommand.cc
  7658. * src/RequestGroup.cc
  7659. * src/RequestGroupMan.cc
  7660. * src/StreamFileAllocationEntry.cc
  7661. * src/TimeBasedCommand.{cc, h}
  7662. * src/TimedHaltCommand.cc
  7663. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7664. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  7665. keyword explicit and SharedHandle's default constructor initializes
  7666. its internal obj to null, old implementation initializes it using
  7667. obj's default constructor.
  7668. To assign null, write SharedHandle<T> x(...); x.reset();
  7669. TODO: test/SharedHandleTest.cc needs more tests.
  7670. * src/SharedHandle.h
  7671. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7672. Fixed type in man page.
  7673. * doc/aria2c.1.txt
  7674. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7675. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  7676. * src/SimpleLogger.{cc, h}
  7677. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7678. Implemented auto protocol detection.
  7679. Now you can do:
  7680. aria2c -Z http://host/file file1.torrent file2.metalink
  7681. (Note: -Z option is required for auto protcol detection.)
  7682. Then aria2c downloads 3 files simultaneously:
  7683. 1. http://host/file
  7684. 2. file1.torrent <-- read local torrent file
  7685. 3. file2.metalink <-- read local Metalink file.
  7686. Same thing goes with -i option. Assume your uris.txt contans:
  7687. http://host/file
  7688. file1.torrent
  7689. file2.metalink
  7690. Then you can do: aria2c -i uris.txt
  7691. (Note: -Z option is not needed if -i option is given.)
  7692. * src/main.cc
  7693. * src/ProtocolDetector.{cc, h}
  7694. * test/ProtocolDetectorTest.cc
  7695. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7696. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  7697. installed
  7698. * src/ARC4Encryptor.h
  7699. * src/ARC4Decryptor.h
  7700. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7701. Renamed argument from 'errno' to 'err', since errno is confused with
  7702. errno defined in errno.h.
  7703. * src/LibgcryptARC4Decryptor.h
  7704. * src/LibgcryptARC4Context.h
  7705. * src/LibgcryptDHKeyExchange.h
  7706. * src/LibgcryptARC4Encryptor.h
  7707. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7708. Rewritten choking algorithm.
  7709. * src/PeerChokeCommand.{cc, h}
  7710. * src/BtInterestedMessage.cc
  7711. * src/PeerSessionResource.{cc, h}
  7712. * src/DefaultPeerStorage.{cc, h}
  7713. * src/BtNotInterestedMessage.cc
  7714. * src/DefaultBtMessageDispatcher.{cc, h}
  7715. * src/BtMessageDispatcher.h
  7716. * src/Peer.{cc, h}
  7717. * src/BtLeecherStateChoke.{cc, h}
  7718. * src/BtSetup.cc
  7719. * src/BtSeederStateChoke.{cc, h}
  7720. * src/PeerStorage.h
  7721. * test/MockPeerStorage.h
  7722. * test/MockBtMessageDispatcher.h
  7723. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7724. Fixed compilation error on x84-64 platform.
  7725. * src/AuthConfig.cc: Included ostream.
  7726. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7727. Rewritten getBasename() and getDirname(), without standard library
  7728. basename(), dirname().
  7729. * src/File.cc
  7730. * test/FileTest.cc
  7731. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7732. Added Simplified Chinese translation. Also updated the following
  7733. translations: Polish, Dutch, German. Great thanks to all translators.
  7734. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7735. Suppress content-range error when 'Content-Range' response header
  7736. doesn't contains bytes-unit specifier 'bytes'
  7737. * src/HttpHeader.cc (getRange)
  7738. * test/HttpHeaderTest.cc
  7739. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7740. Fixed compilation error with g++-4.3
  7741. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7742. Added missing include files for MinGW
  7743. * test/HttpHeaderProcessorTest.cc
  7744. * test/DHTRoutingTableSerializerTest.cc
  7745. * test/DHTRoutingTableDeserializerTest.cc
  7746. * test/UriListParserTest.cc
  7747. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7748. Now download line is printed nicely with no garbage at the end of
  7749. line. I use ioctl to get the columns of terminal.
  7750. If stdout is redirected to another device, instead of carriage return,
  7751. end of line '\n' character is used. This is feature request#1909659
  7752. * src/ConsoleStatCalc.cc (calculateStat)
  7753. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7754. Included a2time.h
  7755. * src/DHTMessageDispatcher.h
  7756. * src/DHTMessageEntry.h
  7757. * src/DHTReplaceNodeTask.h
  7758. * src/DHTMessageTracker.h
  7759. * src/Util.h
  7760. * src/CookieBox.h
  7761. * src/SocketCore.h
  7762. * src/DefaultBtMessageDispatcher.h
  7763. * src/SocketCore.cc
  7764. * src/Util.cc
  7765. * src/DHTPingTask.h
  7766. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7767. Fixed high memory footprint when DHT is enabled.
  7768. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  7769. queued than it is processed and the queue is getting longer. As a
  7770. consequence, momory usage is increased.
  7771. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  7772. replacement cache in DHTBucket which is described in Kademlia paper.
  7773. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  7774. DHTReplaceNodeTask.
  7775. * src/DHTBucket.{h, cc}
  7776. (cacheNode): New function.
  7777. (getCachedNodes): New function.
  7778. (dropNode): Push back cached node to _nodes.
  7779. * test/DHTBucketTest.cc
  7780. (testCacheNode): New test
  7781. (testDropNode): New test
  7782. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7783. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  7784. the unused 4KB memory when ssl is not used.
  7785. * src/SocketCore.cc
  7786. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7787. Added summary log for peer announce storage.
  7788. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  7789. Removed cast
  7790. * src/DefaultPeerStorage.cc (addPeer)
  7791. Log exception message
  7792. * src/DHTMessageTracker.cc (handleTimeout)
  7793. Fixed casting
  7794. * test/HttpRequestTest.cc
  7795. * test/MetalinkProcessorTest.cc
  7796. * test/PieceTest.cc
  7797. * test/MetalinkEntryTest.cc
  7798. * test/SequenceTest.cc
  7799. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7800. * src/ParameterizedStringParser.cc (createLoop):
  7801. Removed unused variable sstep.
  7802. * src/AlphaNumberDecorator.h (decode): Rewritten.
  7803. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7804. * src/Util.{h, cc}
  7805. (parseUInt): New function.
  7806. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  7807. The actual range is uint32_t.
  7808. * test/UtilTest.cc
  7809. * src/ParameterizedStringParser.cc:
  7810. Use Util::parseUInt() for loop variables.
  7811. * test/ParameterizedStringParserTest.cc
  7812. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  7813. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7814. Rewritten the functions for binding port.
  7815. * src/DHTConnectionImpl.{h, cc}
  7816. * src/PeerListenCommand.{h, cc}
  7817. * src/DHTSetup.cc
  7818. * src/BtSetup.cc
  7819. * test/DHTConnectionImplTest.cc
  7820. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7821. type cleanup for allmost all remaining files.
  7822. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7823. Type clarification
  7824. * src/PeerSessionResource.{h, cc}
  7825. * src/DefaultPieceStorage.{h, cc}
  7826. * src/Peer.{h, cc}
  7827. * test/PeerSessionResourceTest.cc
  7828. Use div function
  7829. * src/BtPieceMessage.cc (erasePieceOnDisk)
  7830. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7831. Type clarification
  7832. * src/DefaultPeerStorage.{h, cc}
  7833. * test/DefaultPeerStorageTest.cc
  7834. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7835. Type clarification: size_t for length or size, uint64_t for file
  7836. length, off_t for file offset.
  7837. * src/DefaultBtProgressInfoFile.cc
  7838. * src/DefaultBtContext.{h, cc}
  7839. * src/DefaultBtInteractive.cc
  7840. * src/DownloadCommand.{h, cc}
  7841. * src/IteratableChunkChecksumValidator.{h, cc}
  7842. * src/SegmentMan.{h, cc}
  7843. * src/SingleFileDownloadContext.{h, cc}
  7844. * src/IteratableChecksumValidator.{h, cc}
  7845. * src/BtContext.h
  7846. * src/IteratableValidator.h
  7847. * src/DownloadContext.h
  7848. * test/SingleFileDownloadContextTest.cc
  7849. * test/DefaultBtContextTest.cc
  7850. * test/MockBtContext.h
  7851. * test/Metalink2RequestGroupTest.cc
  7852. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7853. Type clarification: size_t for length or size, uint64_t for file
  7854. length, off_t for file offset.
  7855. * src/PiecedSegment.cc
  7856. * src/GrowSegment.h
  7857. * src/DefaultBtRequestFactory.h
  7858. * src/DefaultBtProgressInfoFile.cc
  7859. * src/UnknownLengthPieceStorage.h
  7860. * src/DefaultPieceStorage.cc
  7861. * src/UnknownLengthPieceStorage.cc
  7862. * src/DefaultBtInteractive.cc
  7863. * src/GrowSegment.cc
  7864. * src/BitfieldMan.h
  7865. * src/DownloadCommand.cc
  7866. * src/BtRequestFactory.h
  7867. * src/PiecedSegment.h
  7868. * src/DefaultPieceStorage.h
  7869. * src/Piece.cc
  7870. * src/DefaultBtRequestFactory.cc
  7871. * src/PieceStorage.h
  7872. * src/Segment.h
  7873. * src/Piece.h
  7874. * src/BitfieldMan.cc
  7875. * src/Util.cc
  7876. * test/DefaultBtProgressInfoFileTest.cc
  7877. * test/DefaultPieceStorageTest.cc
  7878. * test/MockPieceStorage.h
  7879. * test/BtRequestMessageTest.cc
  7880. * test/DefaultBtMessageDispatcherTest.cc
  7881. * test/BitfieldManTest.cc
  7882. * test/GrowSegmentTest.cc
  7883. * test/PieceTest.cc
  7884. * test/SegmentTest.cc
  7885. * test/SegmentManTest.cc
  7886. * test/DefaultBtRequestFactoryTest.cc
  7887. * test/MockBtRequestFactory.h
  7888. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7889. Fixed compilation error with --disable-nls
  7890. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  7891. in gettext.h causes the problem.
  7892. * src/common.h
  7893. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7894. Removed subPiece related functions.
  7895. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  7896. * src/DefaultPieceStorage.{h, cc}
  7897. * test/PieceTest.cc
  7898. * test/DefaultPieceStorageTest.cc
  7899. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7900. Use unsigned char for data store.
  7901. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7902. Bump up version number to 0.13.0+1
  7903. * configure.ac
  7904. * Release 0.13.0+1
  7905. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7906. Changed inactive connection timeout to 120.
  7907. To accept more mulually interested peers, disconnect peer when there
  7908. is no interest between us after certain time passed.
  7909. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  7910. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7911. Fixed the bug that aria2 only uses first dns server in resolv.conf
  7912. when compiled with async DNS support.
  7913. * src/DownloadEngine.cc
  7914. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  7915. value '10' will be a little bit short when some DNS servers are
  7916. offline and several DNS servers are tried. It should be configured
  7917. by command-line option.
  7918. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7919. Merged Ross's mingw patch.
  7920. * src/DHTRoutingTableDeserializer.cc
  7921. * src/DHTRoutingTableSerializer.cc
  7922. * src/Platform.{h, cc}
  7923. * src/timegm.h
  7924. * src/gettimeofday.h
  7925. * src/getaddrinfo.h
  7926. * src/SocketCore.h
  7927. * src/common.h
  7928. * src/inet_aton.h
  7929. * src/DownloadEngine.h
  7930. * src/gai_strerror.h
  7931. * src/a2netcompat.h
  7932. * configure.ac
  7933. * configure
  7934. * aclocal.m4
  7935. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7936. Included missing iostream.
  7937. * test/AllTest.cc
  7938. * test/BtDependencyTest.cc
  7939. * test/BtExtendedMessageTest.cc
  7940. * test/DHTConnectionImplTest.cc
  7941. * test/DHTMessageFactoryImplTest.cc
  7942. * test/DHTMessageTrackerEntryTest.cc
  7943. * test/DHTNodeTest.cc
  7944. * test/DHTRoutingTableSerializerTest.cc
  7945. * test/DefaultBtAnnounceTest.cc
  7946. * test/DefaultBtContextTest.cc
  7947. * test/DefaultBtMessageFactoryTest.cc
  7948. * test/DefaultExtensionMessageFactoryTest.cc
  7949. * test/HandshakeExtensionMessageTest.cc
  7950. * test/HttpResponseTest.cc
  7951. * test/MetalinkProcessorTest.cc
  7952. * test/MultiFileAllocationIteratorTest.cc
  7953. * test/SocketCoreTest.cc
  7954. * test/UTPexExtensionMessageTest.cc
  7955. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7956. Reorganized includes.
  7957. * src/NameResolver.cc
  7958. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7959. Fixed compilation error without ares/c-ares
  7960. * src/NameResolver.h:
  7961. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7962. Added a test for large file.
  7963. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  7964. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7965. Fixed the bug that file size is ignored if size > INT32_MAX
  7966. * src/SizeMetalinkParserState.cc (endElement):
  7967. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7968. Bump up version number to 0.13.0
  7969. * configure.ac
  7970. * Release 0.13.0
  7971. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7972. Updated Makfefile.am to make 'make dist' work.
  7973. Now packaged filename is aria2c-VERSION.tar.bz2.
  7974. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  7975. Added LICENSE.OpenSSL to dist_noinst_DATA.
  7976. Large file support is now configured by configure script.
  7977. * configure.ac
  7978. Removed unsused source files
  7979. * src/
  7980. * test/
  7981. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  7982. Peer.h and BtContext.h respectively.
  7983. * src/Peer.h
  7984. * src/BtContext.h
  7985. Updated translations.
  7986. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  7987. translations. Great thanks to all translators!;)
  7988. * po/*.{po, gmo}
  7989. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7990. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  7991. statically declared sha1 MessageDigestContext.
  7992. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  7993. initialization of short-lived MessageDigestContext.
  7994. * src/MessageDigestHelper.{h, cc}
  7995. * src/main.cc
  7996. Now DownloadCommand has a reference to MessageDigestContext to avoid
  7997. the initialization of MessageDigestContext every time in validating
  7998. chunk checksum.
  7999. * src/DownloadCommand.{h, cc}
  8000. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8001. Add a file descriptor which connected to fast peer(latency<1500) to
  8002. select(). This change reduced CPU load.
  8003. * src/PeerInteractionCommand.cc
  8004. * src/DefaultBtInteractive.{h, cc}
  8005. * src/BtInteractive.h
  8006. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8007. Fixed the previous insufficient fix for possible busy loop.
  8008. * src/MSEHandshake.cc (identifyHandshakeType)
  8009. Removed unused functions.
  8010. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  8011. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8012. Fixed possible busy loop if first 20 bytes are not received for a few
  8013. minutes.
  8014. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  8015. * src/ReceiverMSEHandshakeCommand.cc
  8016. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8017. Fixed compilation error
  8018. * src/ExpatMetalinkProcessor.cc
  8019. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8020. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  8021. * src/DHTBucket.cc
  8022. Removed unnecessary cast.
  8023. * src/HandshakeExtensionMessage.cc
  8024. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8025. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  8026. is missing.
  8027. * src/OptionHandlerFactory.cc
  8028. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8029. Fixed the bug that HAVE message is not sent for a piece they are
  8030. downloaded fom http/ftp server before any BitTorrent handshake is done
  8031. with peers.
  8032. * src/DefaultBtInteractive.cc
  8033. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8034. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  8035. * src/Makefile.am
  8036. * src/Makefile.in
  8037. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8038. Updated README. Added html version of README and man page.
  8039. * README
  8040. * README.html
  8041. * readme2html: Shell script to generate README.html from README using
  8042. asciidoc.
  8043. * doc/aria2c.1.html
  8044. * doc/makeman: Added the line to generate aria2c.1.html
  8045. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8046. Fixed offset calculation.
  8047. * src/LibgcryptDHKeyExchange.h (computeSecret)
  8048. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8049. Rewritten itos and uitos using template. llitos and ullitos are
  8050. replaced with itos and uitos respectively.
  8051. * src/Util.{h, cc}
  8052. * test/UtilTest.cc
  8053. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8054. Fixed the bug that DH key exchange sometimes fails due to bad handling
  8055. of the number of bytes required for storing public key and shared
  8056. secret.
  8057. * src/LibgcryptDHKeyExchange.h
  8058. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  8059. * src/MSEHandshake.cc
  8060. * test/DHKeyExchangeTest.cc
  8061. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8062. Removed since they are not used.
  8063. * src/Xml2MetalinkProcessor.{h, cc}
  8064. * src/Socket.cc
  8065. * src/SegmentSplitter.{h, cc}
  8066. * test/Xml2MetalinkProcessorTest.cc
  8067. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8068. Fixed the bug that prevents aria2 from stopping other than by pressing
  8069. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  8070. option. aria2 doesn't stop even after --seed-time is satisfied and
  8071. continues to output blank lines in the console.
  8072. * src/ReceiverMSEHandshakeCommand.cc
  8073. * src/PeerReceiveHandshakeCommand.cc
  8074. * src/PeerListenCommand.cc
  8075. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8076. Bump up version number to 0.13.0rc
  8077. * configure.ac
  8078. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8079. Updated man page and some usage text.
  8080. * doc/aria2c.1.txt
  8081. * src/usage_text.h
  8082. * po/*.{po, gmo}
  8083. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8084. Updated translations. Added Finnish and Hebrew translations.
  8085. Great thanks to all translators!
  8086. * po/*.{po, gmo}
  8087. * po/LINGUAS
  8088. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8089. Log more detailed information about each message.
  8090. * src/DHTQueryMessage.{h, cc}
  8091. * src/DHTGetPeersMessage.{h, cc}
  8092. * src/DHTFindNodeReplyMessage.{h, cc}
  8093. * src/DHTGetPeersReplyMessage.{h, cc}
  8094. * src/DHTAnnouncePeerMessage.{h, cc}
  8095. * src/DHTResponseMessage.{h, cc}
  8096. * src/DHTFindNodeMessage.{h, cc}
  8097. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8098. Use constants defined in prefs.h
  8099. * src/option_processing.cc
  8100. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8101. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  8102. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8103. Make room for future enchancements for IPv6 addresses.
  8104. Bump up version number of dht.dat file format to 2.
  8105. Not compatible with previous version.
  8106. * src/DHTRoutingTableSerializer.cc
  8107. * src/DHTRoutingTableDeserializer.cc
  8108. * test/DHTRoutingTableSerializerTest.cc
  8109. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8110. Added handling for the return values from
  8111. PeerMessageUtil::createcompact().
  8112. * src/DefaultBtContext.cc (computeFastSet):
  8113. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8114. Fixed abort when peer's ip address is IPv4-mapped address.
  8115. * src/DefaultBtContext.cc (computeFastSet)
  8116. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  8117. cannot handle IPv4-mapped addresses.
  8118. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  8119. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8120. Proper return value handling for OpenSSL functions.
  8121. * src/LibsslDHKeyExchange.h
  8122. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8123. Random bytes generation using libgcrypt and OpenSSL.
  8124. * src/DHTUtil.{h, cc}
  8125. * test/DHTUtilTest.cc
  8126. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8127. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  8128. received.
  8129. * src/DHTMessageReceiver.cc (receiveMessage)
  8130. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8131. Fixed the bug that a return code is always 0. BUG#1897704
  8132. If error occurred during the download or there exist unfinished
  8133. downloads, aria2 returns with code 1.
  8134. * src/RequestGroupMan.{h, cc}
  8135. * src/MultiUrlRequestInfo.{h, cc}
  8136. * src/main.cc
  8137. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8138. IPv6 support for SocketCore class.
  8139. TODO: In SocketCore::establishConnection(), this is insufficient to
  8140. determin the failure of connect() here because the socket is
  8141. non-blocking state. The next addresses should be tried after select().
  8142. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  8143. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  8144. instead which address family independent.
  8145. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  8146. information in a compact peer format which is for IPv4 only.
  8147. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  8148. this is a spec of BitTorrent protocol.
  8149. * src/SocketCore.{h, cc}
  8150. * src/PeerMessageUtil.cc
  8151. * test/SocketCoreTest.cc
  8152. * test/PeerMessageUtilTest.cc
  8153. * test/DHTConnectionImplTest.cc
  8154. Handle IPv4-mapped addresses.
  8155. * src/DHTNode.cc: Now identity is determined by node id.
  8156. * src/DHTMessageTrackerEntry.cc
  8157. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  8158. should handle it.
  8159. * src/DHTRoutingTableDeserializer.cc
  8160. * src/DHTMessageFactoryImpl.cc
  8161. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8162. Change the unit of --stop option from a minute to a second.
  8163. * src/usage_text.h
  8164. * src/DownloadEngineFactory.cc
  8165. * src/OptionHandlerFactory.cc
  8166. * src/message.h
  8167. * src/TimedHaltCommand.cc
  8168. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8169. Make listening socket non-block mode.
  8170. * src/FtpConnection.cc
  8171. * src/FtpNegotiationCommand.{h, cc}
  8172. * src/PeerListenCommand.cc
  8173. Fixed the bug that cause slow ftp negotiation.
  8174. * src/FtpNegotiationCommand.{h, cc}
  8175. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8176. Added basic tag to --enable-dht, --dht-listen-port option.
  8177. * src/HelpItemFactory.cc (createHelpItems)
  8178. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8179. Updated text.
  8180. * src/usage_text.h
  8181. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8182. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  8183. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8184. Determin _threadtholdSpeed in each constructor for
  8185. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  8186. * src/ActivePeerConnectionCommand.{h, cc}
  8187. * src/PeerReceiveHandshakeCommand.{h, cc}
  8188. * src/BtSetup.cc
  8189. * src/BtConstants.h
  8190. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8191. Added --bt-min-crypto-level and --bt-require-crypto options.
  8192. * src/OptionHandlerFactory.cc
  8193. * src/MSEHandshake.cc
  8194. * src/HelpItemFactory.cc
  8195. * src/option_processing.cc
  8196. * src/ReceiverMSEHandshakeCommand.cc
  8197. * src/prefs.h
  8198. * src/DefaultBtAnnounce.cc
  8199. * src/InitiatorMSEHandshakeCommand.cc
  8200. * src/usage_text.h
  8201. * test/MSEHandshakeTest.cc
  8202. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8203. Bump version number to 0.13.0b
  8204. * configure.ac
  8205. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8206. Updated doc.
  8207. * src/MessageDigestHelper.h:
  8208. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8209. Use raw message digest as a token instead of its hexadecimal
  8210. representation.
  8211. * src/DHTTokenTracker.cc (generateToken)
  8212. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8213. Added Message Stream Encryption(MSE) support.
  8214. Currently, aria2 accepts incoming connections with Obfuscation Header
  8215. and legacy BitTorrent Header and establishes connections with
  8216. Obfuscation Header first and if failed then retry with legacy
  8217. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  8218. choose ARC4. The new option to change the default behavior is planned.
  8219. For tracker extension, "supportcrypto=1" is added statically.
  8220. * src/PeerInitiateConnectionCommand.{h, cc}
  8221. * src/PeerConnection.{h, cc}
  8222. * src/HandleRegistry.h
  8223. * src/SocketCore.h
  8224. * src/PeerReceiveHandshakeCommand.{h, cc}
  8225. * src/BtRegistry.{h, cc}
  8226. * src/PeerListenCommand.cc
  8227. * src/InitiatorMSEHandshakeCommand.{h, cc}
  8228. * src/ReceiverMSEHandshakeCommand.{h, cc}
  8229. * src/MSEHandshake.{h, cc}
  8230. * src/ARC4Encryptor.h
  8231. * src/ARC4Decryptor.h
  8232. * src/LibgcryptARC4Encryptor.h
  8233. * src/LibgcryptARC4Decryptor.h
  8234. * src/LibgcryptARC4Context.h
  8235. * src/LibsslARC4Encryptor.h
  8236. * src/LibsslARC4Decryptor.h
  8237. * src/LibsslARC4Context.h
  8238. * src/DHKeyExchange.h
  8239. * src/LibgcryptDHKeyExchange.h
  8240. * src/LibsslDHKeyExchange.h
  8241. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  8242. * test/DefaultBtAnnounceTest.cc
  8243. * test/ARC4Test.cc
  8244. * test/DHKeyExchangeTest.cc
  8245. Removed prepareForRetry() because it is not used.
  8246. * src/PeerAbstractCommand.{h, cc}
  8247. * src/PeerInteractionCommand.{h, cc}
  8248. * src/PeerInitiateConnectionCommand.{h, cc}
  8249. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8250. Added the ability to load nodes from torrent file. These nodes are
  8251. added to the routing table when downloading that torrent.
  8252. * src/BtContext.h
  8253. * src/DefaultBtContext.{h, cc}
  8254. * src/DHTSetup.cc
  8255. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  8256. hostname and port pair, and resolves all of them.
  8257. * src/NameResolver.{h, cc}: Added reset().
  8258. * src/RequestGroup.cc
  8259. * test/DefaultBtContextTest.cc
  8260. * test/MockBtContext.h
  8261. Removed assert() from DefaultBtContext and throw exception instead.
  8262. * src/DefaultBtContext.cc
  8263. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8264. Fixed segmentation fault bug when exiting if dht is disabled.
  8265. * src/RequestGroup.cc
  8266. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8267. Fixed typo in log message and define the message in message.h
  8268. * src/TimedHaltCommand.cc
  8269. * src/message.h
  8270. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8271. Included RecoverableException.h to fix compilation error.
  8272. * test/DHTMessageFactoryImplTest.cc
  8273. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8274. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  8275. * test/DHTPingMessageTest.cc
  8276. * test/DHTGetPeersMessageTest.cc
  8277. * test/DHTFindNodeMessageTest.cc
  8278. * test/DHTAnnouncePeerMessageTest.cc
  8279. * test/MockDHTMessage.h
  8280. * test/MockDHTMessageFactory.h
  8281. * test/MockDHTMessageDispatcher.h: New class.
  8282. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8283. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  8284. virtual.
  8285. * src/DHTMessageDispatcher.h
  8286. * src/DHTMessageDispatcherImpl.{h, cc}
  8287. * src/DHTSetup.cc
  8288. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8289. Adding handling of DHT error message. Just log error message and
  8290. throw exception.
  8291. * src/DHTMessageFactoryImpl.cc
  8292. * test/DHTMessageFactoryImplTest.cc
  8293. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8294. Added handling of dynamic cast failure.
  8295. * src/DHTNodeLookupTask.cc
  8296. * src/DHTPeerLookupTask.cc
  8297. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8298. Added the ability to stop aria2 itself when given time has passed
  8299. from start. Use --stop option to specify time in minutes.
  8300. When 0 is given, this feature is disabled.
  8301. * src/OptionHandlerFactory.cc
  8302. * src/TimeBasedCommand.h: Make _interval protected scope.
  8303. * src/HelpItemFactory.cc
  8304. * src/option_processing.cc
  8305. * src/prefs.h
  8306. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  8307. before calling RequestGroupMan::fillRequestGroupFromReserver().
  8308. Without this modification, the result list shows "ERR" when aria2 is
  8309. stopped by --stop option. It should be "INPR".
  8310. * src/DownloadEngine.{h, cc}
  8311. * src/DownloadEngineFactory.cc
  8312. * src/usage_text.h
  8313. * src/TimedHaltCommand.{h, cc}: New class.
  8314. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8315. Bootstrap through node added by port message.
  8316. Currently bootstrap is executed if the number of buckets in routing
  8317. table is 1.
  8318. * src/BtPortMessage.{h, cc}
  8319. * src/DefaultBtMessageFactory.{h, cc}
  8320. * src/PeerInteractionCommand.cc
  8321. * test/BtPortMessageTest.cc
  8322. * test/MockDHTTask.h
  8323. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8324. Extract the Peer class's member variables, which are only needed after
  8325. PeerInteractionCommand, into PeerSessionResource class.
  8326. This class is instantiated in PeerInteractionCommand class's ctor and
  8327. released in its dtor.
  8328. This will make Peer class lightweight and uses less memory for peers
  8329. which are not connected and wait in the queue.
  8330. * src/PeerChokeCommand.cc
  8331. * src/PeerSessionResource.{h, cc}
  8332. * src/PeerInteractionCommand.cc
  8333. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  8334. * src/DefaultBtInteractive.cc
  8335. * src/BtPieceMessage.cc
  8336. * src/BtInterestedMessage.cc
  8337. * src/BtUnchokeMessage.cc
  8338. * src/DefaultPeerStorage.{h, cc}
  8339. * src/PeerInitiateConnectionCommand.cc
  8340. * src/ActivePeerConnectionCommand.cc
  8341. * src/BtNotInterestedMessage.cc
  8342. * src/DefaultBtMessageDispatcher.cc
  8343. * src/BtChokeMessage.cc
  8344. * src/BtRequestMessage.cc
  8345. * src/Peer.{h, cc}
  8346. * src/BtRegistry.h
  8347. * src/TrackerWatcherCommand.cc
  8348. * src/PeerReceiveHandshakeCommand.cc
  8349. * test/BtExtendedMessageTest.cc
  8350. * test/BtAllowedFastMessageTest.cc
  8351. * test/BtCancelMessageTest.cc
  8352. * test/DefaultPieceStorageTest.cc
  8353. * test/BtBitfieldMessageTest.cc
  8354. * test/BtHaveMessageTest.cc
  8355. * test/BtNotInterestedMessageTest.cc
  8356. * test/BtRequestMessageTest.cc
  8357. * test/PeerSessionResourceTest.cc
  8358. * test/DefaultBtMessageDispatcherTest.cc
  8359. * test/PeerTest.cc
  8360. * test/BtInterestedMessageTest.cc
  8361. * test/BtRejectMessageTest.cc
  8362. * test/BtChokeMessageTest.cc
  8363. * test/DefaultPeerStorageTest.cc
  8364. * test/BtHaveNoneMessageTest.cc
  8365. * test/BtHaveAllMessageTest.cc
  8366. * test/DefaultExtensionMessageFactoryTest.cc
  8367. * test/BtUnchokeMessageTest.cc
  8368. * test/DefaultBtMessageFactoryTest.cc
  8369. * test/HandshakeExtensionMessageTest.cc
  8370. * test/UTPexExtensionMessageTest.cc
  8371. * test/DefaultBtRequestFactoryTest.cc
  8372. * test/BtPieceMessageTest.cc
  8373. Removed typedef PeerStats.
  8374. * src/PeerStat.h
  8375. * src/SegmentMan.cc
  8376. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8377. Added std namespace to copy, remove_copy, back_inserter,
  8378. front_inserter.
  8379. * src/RequestGroupMan.cc
  8380. * src/DefaultPieceStorage.cc
  8381. * src/StreamFileAllocationEntry.cc
  8382. * src/BtFileAllocationEntry.cc
  8383. * src/RequestGroup.cc
  8384. * src/MetalinkEntry.cc
  8385. * src/DelegatingPeerListProcessor.cc
  8386. * src/DefaultBtRequestFactory.cc
  8387. * src/DefaultBtMessageDispatcher.cc
  8388. * src/version_usage.cc: Included <algorithm>
  8389. * src/main.cc
  8390. * src/MetalinkParserController.cc
  8391. * src/DefaultBtContext.cc
  8392. * src/DownloadEngineFactory.cc
  8393. * src/a2algo.h
  8394. Removed.
  8395. * test/StreamUriListParserTest.cc
  8396. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8397. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  8398. ActivePeerConnectionCommand when it is given and
  8399. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  8400. * src/ActivePeerConnectionCommand.{h, cc}
  8401. * src/BtSetup.cc
  8402. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8403. Only add socket to DownloadEngine's select routine when peer or
  8404. localhost is unchoked and interested. This lowers CPU usage a
  8405. little bit.
  8406. * src/PeerInteractionCommand.cc
  8407. * src/PeerAbstractCommand.{h, cc}
  8408. * src/BtInteractive.h
  8409. * src/DefaultBtInteractive.{h, cc}
  8410. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8411. Revert previous change because get_peers message is needed for
  8412. announce_peer anyway.
  8413. * src/DHTGetPeersCommand.cc
  8414. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8415. Request peers thought DHT only when download hasn't finished.
  8416. * src/DHTGetPeersCommand.cc
  8417. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8418. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  8419. * src/DHTBucketRefreshTask.{h, cc}
  8420. * src/DHTSetup.cc
  8421. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8422. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  8423. standard classes.
  8424. Included string.h where mem* function are used.
  8425. Added namespace aria2.
  8426. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8427. Create directory before saving DHT routing table.
  8428. Now ios::failure is now handled properly.
  8429. * src/DHTAutoSaveCommand.cc
  8430. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8431. Removed unnecessary cerr.
  8432. * src/DownloadEngine.cc
  8433. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8434. Catch exception inside DHTMessageReceiver::receiveMessage().
  8435. Log unknown message.
  8436. * src/DHTMessageReceiver.{h, cc}
  8437. * src/DHTMessageFactory.h
  8438. * src/DHTMessageFactoryImpl.{h, cc}
  8439. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  8440. * src/DHTInteractionCommand.cc
  8441. * src/DHTUnknownMessage.{h, cc}
  8442. * test/DHTUnknownMessageTest.cc
  8443. * test/MockDHTMessageFactory.h
  8444. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8445. Commented out ip address comparison because a host can have multiple
  8446. ip addresses and it is hard to predict the hostname is resolved into
  8447. which one.
  8448. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  8449. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8450. * po/Makefile.in: Removed since this is generated by configure.
  8451. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8452. Fixed compiler warning about redefinition of SIZE_MAX.
  8453. Use common.h instead of config.h directly here.
  8454. * src/Platform.{h, cc}
  8455. The check of ENABLE_NLS is made in gettext.h, so it is not required
  8456. here.
  8457. * common.h
  8458. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  8459. Updated gettext related files.
  8460. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  8461. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  8462. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8463. Added DHT functionality, compatible with mainline.
  8464. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  8465. You may need to specify entry point to DHT network using
  8466. --dht-entry-point. DHT uses UDP port to listen incoming message.
  8467. Use --dht-listen-port to specify port number. Make sure that your
  8468. firewall configuration can pass through UDP traffic to the port.
  8469. The routing table is saved in $HOME/.aria2/dht.dat.
  8470. * src/DHT*
  8471. * src/BNode.{h, cc}
  8472. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  8473. particular torrent.
  8474. * src/Data.cc: Rewritten ctor.
  8475. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  8476. --dht-entry-point.
  8477. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  8478. * src/RequestGroup.cc: Initialize DHT functionality. When download
  8479. ends, remove BtContext from DHTPeerAnnounceStorage.
  8480. * src/BtPortMessage.{h, cc}: Rewritten.
  8481. * src/message.h
  8482. * src/OptionHandlerImpl.cc
  8483. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  8484. --dht-entry-point.
  8485. * src/Dictionary.{h, cc} (remove): New function.
  8486. * src/prefs.h
  8487. * src/DefaultBtMessageFactory.h
  8488. * src/BtHandshakeMessage.cc
  8489. * src/ActivePeerConnectionCommand.cc
  8490. * src/SocketCore.{h, cc}: Added datagram socket support.
  8491. * src/DefaultBtMessageFactory.cc
  8492. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  8493. Create DHT commands.
  8494. * src/BtMessageFactory.h
  8495. * src/PeerMessageUtil.{h, cc}
  8496. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8497. Fixed the bug that log file is not written when configuration file doesn't exist.
  8498. This is caused by using Logger class before LogFactory is not configured.
  8499. BUG #1875079
  8500. * src/option_processing.cc
  8501. Warning message "configuration doesn't exist" is only printed when --conf is
  8502. given.
  8503. * src/option_processing.cc
  8504. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8505. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  8506. ShaVisitor is now deprecated and slated to be removed.
  8507. * src/DefaultBtContext.cc
  8508. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8509. Externalize message to message.h
  8510. * src/Platform.cc
  8511. * src/message.h
  8512. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8513. Set default domain and default path to cookie.
  8514. * src/HttpResponse.cc
  8515. * src/CookieBox.{h, cc}
  8516. * src/CookieParser.{h, cc}
  8517. * test/CookieParserTest.cc
  8518. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8519. Added --no-conf and --conf-path command-line option.
  8520. --no-conf option disables loading aria2.conf file.
  8521. --conf-path option changes the configuration file path. The default
  8522. file path is $HOME/.aria2/aria2.conf
  8523. Added a warning message when the configuration file is not found.
  8524. * src/HelpItemFactory.cc
  8525. * src/option_processing.cc
  8526. * src/prefs.h
  8527. * src/usage_text.h
  8528. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8529. Added the message to inform users that other help categories are
  8530. available in -h option.
  8531. * src/version_usage.cc
  8532. * src/TagContainer.{h, cc}
  8533. * test/TagContainerTest.cc
  8534. * src/TaggedItem.{h, cc}
  8535. * test/TaggedItemTest.cc
  8536. * src/HelpItem.h
  8537. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8538. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  8539. from PiecedSegment's ctor.
  8540. Previously Piece::getAllMissingBlockIndexes() is called from
  8541. PiecedSegment() but it is rather expensive since only first element is
  8542. used.
  8543. * src/PiecedSegment.cc
  8544. * src/Piece.{h, cc}
  8545. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8546. Rewritten get*Missing*Index functions. Now no need to allocate memory
  8547. each time these functions are called.
  8548. * src/BitfieldMan.{h, cc}
  8549. * test/BitfieldManTest.cc
  8550. * src/array_fun.h
  8551. * test/array_funTest.cc
  8552. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  8553. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  8554. filtered. Removed unnecessary cast to int32_t.
  8555. * src/BitfieldMan.{h, cc}
  8556. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8557. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  8558. payload length(4bytes) are received. This happens because lenbufLength
  8559. is not updated in this particular case and successive call of
  8560. receiveMessage() overwrites payload length with bytes recieved which
  8561. are payload body.
  8562. * src/PeerConnection.{h, cc}
  8563. * src/message.h
  8564. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8565. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  8566. peer if there are peers that have same ipaddr and port.
  8567. I've experiened segmentation fault and "pure virtual function was
  8568. called" error.
  8569. * src/Peer.h
  8570. * test/PeerTest.cc
  8571. * src/DefaultPeerStorage.cc
  8572. * test/DefaultPeerStorageTest.cc
  8573. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8574. Removed a call to isPowerOf() because it is no longer necessary here
  8575. and a request block is not always power of 2.
  8576. BUG#1866924
  8577. * src/PeerMessageUtil.cc (checkLength)
  8578. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8579. Fixed the bug that always first found Segment is removed from
  8580. usedSegmentEntries. Removed unused functions.
  8581. * src/SegmentMan.{h, cc}
  8582. * test/SegmentManTest.cc
  8583. Fixed the bug that ServerHost is not removed.
  8584. * src/RequestGroup.cc
  8585. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8586. Fixed the bug that SegmentMan::completeSegment() is not called
  8587. even if Segment is complete when --lowest-speed-limit is enabled.
  8588. BUG#1864525
  8589. * src/DownloadCommand.{h, cc}
  8590. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8591. Fixed: hash algorithm 'sha1' is always used.
  8592. * src/DownloadCommand.cc (validatePieceHash)
  8593. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8594. Added --enable-peer-exchange command-line option.
  8595. * src/OptionHandlerFactory.cc
  8596. * src/HelpItemFactory.cc
  8597. * src/option_processing.cc
  8598. * src/usage_text.h
  8599. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8600. Move extension from BtRuntime to ExtensionMessageFactory, because
  8601. extension can be specified per peer, not per torrent.
  8602. * src/DefaultBtInteractive.cc
  8603. * src/BtRuntime.h
  8604. * src/ExtendedMessagingAware.h
  8605. * src/ExtensionMessageFactory.h
  8606. * src/DefaultExtensionMessageFactory.cc
  8607. * test/DefaultExtensionMessageFactoryTest.cc
  8608. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8609. Added categorized option help. Specify category using --help option.
  8610. Also added the ability to search options in forward match.
  8611. * src/HelpItem.{h, cc}
  8612. * test/HelpItemTest.cc
  8613. * src/HelpItemFactory.{h, cc}
  8614. * src/TagContainer.{h, cc}
  8615. * test/TagContainerTest.cc
  8616. * src/option_processing.cc
  8617. * src/prefs.h
  8618. * src/TaggedItem.{h, cc}
  8619. * test/TaggedItemTest.cc
  8620. * src/version_usage.cc
  8621. * src/help_tags.h
  8622. * src/usage_text.h
  8623. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8624. Fixed segmentation fault when bad torrent metainfo is parsed.
  8625. Added dynamic_cast properly to detect the misconfiguration of metainfo
  8626. and then throw exception or skip it.
  8627. * src/DefaultBtContext.{h, cc}
  8628. * test/DefaultBtContextTest.cc
  8629. * src/AnnounceList.cc
  8630. * src/CompactPeerListProcessor.cc
  8631. * src/message.h
  8632. * src/DefaultBtAnnounce.{h, cc}
  8633. * test/DefaultBtAnnounceTest.cc
  8634. * src/BencodeVisitor.cc
  8635. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8636. Added missing "B"(=Byte). So now the message looks like this:
  8637. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  8638. * src/message.h (MSG_SHARE_RATIO_REPORT)
  8639. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8640. Show the seed ratio after torrent downloads.
  8641. For example, after torrent download completed and --seed-time and
  8642. --seed-ratio conditions are fulfilled, following message is printed
  8643. right after "Download complete: .....":
  8644. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  8645. * src/RequestGroupMan.cc
  8646. * src/RequestGroup.{h, cc}
  8647. * src/message.h
  8648. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8649. Remove a defunct control file. A defunct control file means that while
  8650. it exists, but the corresponding download file is missing.
  8651. After its removal, a download restarts from the beginning.
  8652. * src/RequestGroup.cc
  8653. * src/message.h
  8654. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8655. Allocate bitfield in Peer when it is really used. More specifically,
  8656. bitfield in Peer is allocated after the connection is established and
  8657. deallocated when the connection is dropped.
  8658. Since 2 parameters(piece length and total length) was removed from the
  8659. constructor of Peer class, many test classes were modified accordingly.
  8660. See svn log for more detailed information.
  8661. * src/PeerInteractionCommand.cc
  8662. * src/CompactPeerListProcessor.cc
  8663. * src/Peer.cc
  8664. * src/DefaultPeerListProcessor.cc
  8665. * src/PeerListenCommand.cc
  8666. * src/PeerReceiveHandshakeCommand.cc
  8667. Fixed memory leak
  8668. * src/Piece.cc
  8669. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8670. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  8671. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  8672. command-line options.
  8673. * src/option_processing.cc
  8674. * src/ActivePeerConnectionCommand.cc
  8675. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8676. Send have message to peer if it already has the piece.
  8677. * src/BtHaveMessage.{h, cc}
  8678. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8679. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  8680. port.
  8681. * src/DefaultPeerStorage.{h, cc}
  8682. * test/DefaultPeerStorageTest.cc
  8683. * src/HandshakeExtensionMessage.cc
  8684. * test/HandshakeExtensionMessageTest.cc
  8685. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  8686. * src/PeerStorage.h
  8687. * test/MockPeerStorage.h
  8688. * src/PeerListenCommand.cc
  8689. * src/PeerReceiveHandshakeCommand.cc
  8690. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8691. Added --metalink-enable-unique-protocol option.
  8692. * src/Metalink2RequestGroup.cc
  8693. * src/option_processing.cc
  8694. * src/prefs.h
  8695. * src/version_usage.cc
  8696. * doc/aria2c.1.txt
  8697. * doc/aria2c.1
  8698. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8699. Allow a peer in incomingPeer to be added peers.
  8700. * src/DefaultPeerStorage.cc
  8701. * test/DefaultPeerStorageTest.cc
  8702. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8703. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  8704. I could reproduce this bug in following procedure:
  8705. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  8706. 2. Restart aria2.
  8707. 3. You see the download stopped around 99%.
  8708. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8709. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  8710. If timeout is reached, then _nextCommand is unused and it may contains
  8711. segments and they won't be canceled. Actually, timeout is not needed
  8712. here because if the server dropped connection, then retry is made.
  8713. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8714. Added uTorrent compatible Peer Exchange.
  8715. * src/BencodeVisitor.{h, cc}
  8716. * test/BencodeVisitorTest.cc
  8717. * src/BtConstants.h
  8718. * src/BtContext.h: Added 'private' flag.
  8719. * src/BtExtendedMessage.{h, cc}
  8720. * test/BtExtendedMessageTest.cc
  8721. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  8722. reserved field.
  8723. * test/BtHandshakeMessageTest.cc
  8724. * src/BtMessageFactory.h
  8725. * src/BtRegistry.h
  8726. * src/BtRuntime.h: This class holds default extension message IDs for
  8727. aria2. By default, aria2 uses ID 8 for ut_pex.
  8728. * src/DefaultBtContext.cc
  8729. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  8730. When it is true, aria2 enables ut_pex. This value is set by
  8731. PeerInteractionCommand.
  8732. * src/DefaultBtMessageFactory.{h, cc}
  8733. * test/DefaultBtMessageFactoryTest.cc
  8734. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  8735. handling to DefaultBtInteractive class.
  8736. * src/DefaultExtensionMessageFactory.{h, cc}
  8737. * test/DefaultExtensionMessageFactoryTest.cc
  8738. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  8739. the container(peers and incomingPeers. The equality is determined by
  8740. Peer::id).
  8741. * test/DefaultPeerStorageTest.cc
  8742. * src/ExtensionMessage.h
  8743. * test/MockExtensionMessage.h
  8744. * src/ExtensionMessageFactory.h
  8745. * test/MockExtensionMessageFactory.h
  8746. * src/HandshakeExtensionMessage.{h, cc}
  8747. * test/HandshakeExtensionMessageTest.cc
  8748. * src/MetaEntry.h
  8749. * src/Peer.{h, cc}
  8750. * src/PeerInteractionCommand.cc
  8751. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  8752. addIncomingPeer.
  8753. * src/PeerMessageUtil.{h, cc}
  8754. * src/PeerObject.h
  8755. * src/UTPexExtensionMessage.{h, cc}
  8756. * test/UTPexExtensionMessageTest.cc
  8757. * src/message.h
  8758. * src/prefs.h
  8759. Fixed the bug that returns incomplete data when it contains null
  8760. character. A convenient constructor was also added.
  8761. * src/Data.{h, cc}
  8762. Rewritten.
  8763. * src/CompactPeerListProcessor.cc
  8764. Fixed typos.
  8765. * src/message.h
  8766. * src/MetaFileUtil.cc
  8767. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8768. Added "Status Legend" label to the explanation text of 'stat' in
  8769. download result and moved it to the last. BUG#1848214
  8770. * src/RequestGroupMan.cc
  8771. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8772. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  8773. * src/Makefie.am
  8774. * test/Makefile.am
  8775. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8776. Fixed the bug that prevents aria2 from loading cookie file when expire
  8777. value is greater than 2^31-1. BUG#1851066
  8778. * src/CookieBoxFactory.cc
  8779. * test/CookieBoxFactoryTest.cc
  8780. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8781. Fixed possible memory leak when an exception is thrown.
  8782. * src/XML2SAXMetalinkProcessor.cc
  8783. Added Expat support. If both libxml2 and Expat are installed, then
  8784. libxml2 is used by default.
  8785. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  8786. ExpatMetalinkProcessor according to the configuration.
  8787. * src/ExpatMetalinkProcessor.{h, cc}
  8788. * src/main.cc: Removed libxml2 specific header and init/free function.
  8789. * src/MetalinkProcessorFactory.{h, cc}
  8790. * src/MetalinkHelper.cc
  8791. * src/Metalinker.h: Removed unnecessary libxml2 header.
  8792. * src/MetalinkProcessor.h
  8793. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  8794. MetalinkProcessorTest is used instead.
  8795. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  8796. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  8797. MetalinkProcessorFactory::newInstance().
  8798. * m4/libexpat.m4
  8799. * configure.ac: Added configuration options for libexpat.
  8800. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8801. Disabled -s option in metalink download.
  8802. * src/Metalink2RequestGroup.cc
  8803. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8804. If several protocols are available for a mirror in metalink file,
  8805. aria2 now use one of them. --metalink-preferred-protocol option was
  8806. added to specify the preference of protocol.
  8807. * src/AbstractCommand.cc
  8808. * src/OptionHandlerFactory.cc
  8809. * src/ServerHost.{h, cc}
  8810. * src/Metalink2RequestGroup.cc
  8811. * src/RequestGroup.{h, cc}
  8812. * test/RequestGroupTest.cc
  8813. * src/option_processing.cc
  8814. * src/prefs.h
  8815. * src/HttpResponseCommand.cc
  8816. * src/MetalinkResource.{h, cc}
  8817. * src/FtpNegotiationCommand.cc
  8818. * src/MetalinkEntry.{h, cc}
  8819. * src/MetalinkEntryTest.cc
  8820. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8821. Code cleanup and added debug log.
  8822. * src/PeerConnection.cc
  8823. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8824. Compiler error fix: applied the patch by Tiziano Mueller
  8825. * src/RequestGroup.cc
  8826. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8827. Fixed the bug: only first announce URL is tried in AnnounceTier,
  8828. in stopped and completed event.
  8829. * src/AnnounceList.{h, cc}
  8830. * test/AnnounceListTest.cc
  8831. * src/DefaultBtAnnounce.cc
  8832. * test/DefaultBtAnnounceTest.cc
  8833. Sorted URLs.
  8834. * test/Metalink2RequestGroupTest.cc
  8835. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8836. Removed unnecessary string copy. Updated doc and corrected indentation.
  8837. * src/Base64.cc
  8838. Fixed compilation warnings
  8839. * test/DataTest.cc
  8840. * test/HttpRequestTest.cc
  8841. * test/MetaFileUtilTest.cc
  8842. * test/RequestTest.cc
  8843. * Release 0.12.0
  8844. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8845. Updated translations
  8846. * po/{de,fr,ja,nl,ru}.po
  8847. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  8848. translations. Many thanks to translators.
  8849. * po/{ca,es,it,pt_BR,sv}.po
  8850. * po/LINGUAS
  8851. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8852. Added a notice about URL
  8853. * src/version_usage.cc
  8854. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  8855. Fixed the bug#1845750; CTRL+C does not stop torrent.
  8856. aria2 repeatedly sends stopped request when tracker returns error code.
  8857. * src/AnnounceList.cc
  8858. * test/AnnounceListTest.cc
  8859. * src/AnnounceTier.h
  8860. Added a message when ctrl-c is hit.
  8861. Now second ctrl-c is also handled in signal handler.
  8862. * src/RequestGroupMan.{h, cc}
  8863. * src/RequestGroup.{h, cc}
  8864. * src/MultiUrlRequestInfo.cc
  8865. * src/DownloadEngine.cc
  8866. * src/TrackerWatcherCommand.cc
  8867. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8868. Code cleanup
  8869. * src/Base64.cc (encode)
  8870. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8871. Changed Direct/IO enable/disable procesure in file allocation routine.
  8872. * src/SingleFileAllocationIterator.cc
  8873. (SingleFileAllocationIterator):
  8874. Disable directIO if offset is not multiple of 512.
  8875. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  8876. * src/MultiFileAllocationIterator.cc (allocateChunk):
  8877. Enable created SingleFileAllocationIterator's directIO.
  8878. * src/FileAllocationEntry.cc
  8879. (FileAllocationEntry): Enable directIO here.
  8880. (~FileAllocationEntry): Disable directIO here.
  8881. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8882. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  8883. * src/Peer.{h, cc}
  8884. * src/DefaultPieceStorage.cc
  8885. * test/DefaultPieceStorageTest.cc
  8886. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8887. Rewritten direct I/O support routine
  8888. * src/SingleFileAllocationIterator.cc
  8889. * src/MultiDiskAdaptor.{h, cc}
  8890. * src/ByteArrayDiskWriter.h
  8891. * src/AbstractSingleDiskAdaptor.h
  8892. * src/AbstractDiskWriter.cc
  8893. * src/DefaultPieceStorage.cc
  8894. * src/DiskWriter.h
  8895. * src/BinaryStream.h
  8896. * src/IteratableChunkChecksumValidator.cc
  8897. * src/IteratableChecksumValidator.cc
  8898. * src/CheckIntegrityEntry.cc
  8899. * src/FileAllocationEntry.cc
  8900. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8901. Fixed typo
  8902. * src/version_usage.cc
  8903. Updated doc
  8904. * doc/aria2c.1.txt
  8905. * doc/aria2c.1
  8906. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8907. Fixed compile error without message digest support.
  8908. * src/FileMetalinkParserState.cc
  8909. * src/MetalinkParserController.{h, cc}
  8910. * test/XML2SAXMetalinkProcessorTest.cc
  8911. * test/MetalinkParserControllerTest.cc
  8912. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8913. Enable direct I/O support in checksum checking.
  8914. * src/IteratableChunkChecksumValidator.{h, cc}
  8915. * test/IteratableChunkChecksumValidatorTest.cc
  8916. * src/CheckIntegrityEntry.cc
  8917. * src/PieceHashCheckIntegrityEntry.cc
  8918. * src/IteratableChecksumValidator.{h, cc}
  8919. * src/BtCheckIntegrityEntry.cc: Added doc.
  8920. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8921. Added --allow-piece-length-change option.
  8922. * src/DefaultBtProgressInfoFile.cc
  8923. * test/DefaultBtProgressInfoFileTest.cc
  8924. * src/OptionHandlerFactory.cc
  8925. * src/option_processing.cc
  8926. * src/prefs.h
  8927. * src/version_usage.cc
  8928. * doc/aria2c.1.txt
  8929. * doc/aria2c.1
  8930. Fixed: duplicated result entry appears when exception is thrown in
  8931. RequestGroup::createInitiateConnectionCommand().
  8932. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  8933. Add RequestGroup to _requestGroup after RequetGroup::
  8934. createInitiateConnectionCommand() succeeds.
  8935. Externalized message
  8936. * src/XML2SAXMetalinkProcessor.cc
  8937. * src/message.h
  8938. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8939. Forced download abort when received negative response from http/ftp
  8940. server.
  8941. * src/HttpResponseCommand.cc
  8942. * src/FtpNegotiationCommand.cc
  8943. * src/HttpResponse.cc
  8944. * src/FtpConnection.cc
  8945. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8946. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  8947. the predecessor, Xml2MetalinkParser class.
  8948. I tested them against 94KB metalink file with 1234 chunk checksums.
  8949. The new one parsed it in 22msec, while it took 6000msec with old one.
  8950. * src/XML2SAXMetalinkProcessor.{h, cc}
  8951. * test/XML2SAXMetalinkProcessorTest.cc
  8952. * src/MetalinkParserController.{h, cc}
  8953. * test/MetalinkParserControllerTest.cc
  8954. * src/MetalinkParserState.h: Also added 16 subclasses.
  8955. * src/main.cc
  8956. * src/Metalink2RequestGroup.cc
  8957. * src/MetalinkHelper.cc
  8958. * src/MetalinkEntry.cc
  8959. * src/ChunkChecksum.h
  8960. Rewritten Base64 class for better performance.
  8961. * src/Base64.{h, cc}
  8962. * test/Base64Test.cc
  8963. * src/HttpRequest.cc
  8964. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8965. Fixed the bug#1841757: aria2 will connect to server to only get
  8966. file size.
  8967. * src/StreamFileAllocationEntry.cc
  8968. * src/option_processing.cc
  8969. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  8970. downloads.
  8971. * src/FtpNegotiationCommand.cc
  8972. Suppressed wrong message when finding PreDownloadHandler
  8973. * src/RequestGroup.cc
  8974. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8975. Updated usage
  8976. * src/version_usage.cc
  8977. Updated man page
  8978. * doc/aria2c.1.txt
  8979. * doc/aria2c.1
  8980. Updated po files
  8981. * po/aria2c.pot
  8982. * po/*.po
  8983. * po/*.gmo
  8984. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8985. Eliminated g++-4.2 warning
  8986. * src/DownloadHandlerConstants.{h, cc}
  8987. * src/Util.cc
  8988. * test/MetaFileUtilTest.cc
  8989. * test/PStringBuildVisitorTest.cc
  8990. Fixed bug: --check-integrity doesn't work for multi file torrent.
  8991. * src/RequestGroup.cc
  8992. * src/BtCheckIntegrityEntry.cc
  8993. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8994. Fixed a2io.h
  8995. * src/a2io.h
  8996. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8997. Added direct I/O support. The current implementation uses O_DIRECT,
  8998. which is not posix standard and is tested on linux 2.6.21.
  8999. Currently only file allocation uses direct I/O.
  9000. * src/SingleFileAllocationIterator.{h, cc}
  9001. * test/SingleFileAllocationIteratorTest.cc
  9002. * src/MultiFileAllocationIterator.{h, cc}
  9003. * test/MultiFileAllocationIteratorTest.cc
  9004. * src/BinaryStream.h
  9005. * src/DiskWriter.h
  9006. * src/AbstractDiskWriter.{h, cc}
  9007. * src/ByteArrayDiskWriter.h
  9008. * src/DiskAdaptor.h
  9009. * src/AbstractSingleDiskAdaptor.{h, cc}
  9010. * src/MultiDiskAdaptor.{h, cc}
  9011. * src/FileAllocationEntry.cc
  9012. * src/Util.{h, cc}
  9013. * src/OptionHandlerFactory.cc
  9014. * src/prefs.h
  9015. * src/version_usage.cc
  9016. * src/option_processing.cc
  9017. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  9018. handleException.
  9019. * src/MultiFileAllocationIterator.cc
  9020. Added EINTR handling
  9021. * src/SocketCore.cc
  9022. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9023. Updated usage
  9024. * src/version_usage.cc
  9025. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9026. Applied Ross's patch for MinGW port.
  9027. * src/DownloadEngine.h
  9028. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9029. Set Content-Type to SingleFileDownloadContext when http response is
  9030. received.
  9031. * src/HttpResponseCommand.cc
  9032. * src/HttpResponse.{h, cc}
  9033. * test/HttpResponseTest.cc
  9034. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9035. Rewritten to add content-type support.
  9036. * src/DownloadHandler.{h, cc}
  9037. * src/BtPostDownloadHandler.{h, cc}
  9038. * test/BtPostDownloadHandlerTest.cc
  9039. * src/MetalinkPostDownloadHandler.{h, cc}
  9040. * test/MetalinkPostDownloadHandlerTest.cc
  9041. * src/PostDownloadHandler.{h, cc}
  9042. * src/DownloadHandlerConstants.{h, cc}
  9043. * src/RequestGroup.cc
  9044. * src/HttpResponseCommand.cc
  9045. * src/FtpNegotiationCommand.cc
  9046. * src/SingleFileDownloadContext.{h, cc}
  9047. * src/RequestGroup.h
  9048. * src/RequestGroupCriteria.h
  9049. * src/ContentTypeRequestGroupCriteria.h
  9050. Added 'mem' option value for --follow-metalink, --follow-torrent.
  9051. If it is give, metalink/torrent file is not written to the disk, but
  9052. just is kept in memory. Parsing is occurred on memory.
  9053. * src/MetalinkHelper.{h, cc}
  9054. * src/MetalinkProcessor.h
  9055. * src/Xml2MetalinkProcessor.{h, cc}
  9056. * test/Xml2MetalinkProcessorTest.cc
  9057. * src/DownloadHandlerFactory.{h, cc}
  9058. * test/DownloadHandlerFactoryTest.cc
  9059. * src/PreDownloadHandler.{h, cc}
  9060. * src/OptionHandlerFactory.cc
  9061. * src/DefaultBtContext.{h, cc}
  9062. * test/DefaultBtContextTest.cc
  9063. * src/version_usage.cc
  9064. * src/Metalink2RequestGroup.{h, cc}
  9065. * src/RequestGroup.{h, cc}
  9066. * src/a2functional.h
  9067. * test/a2functionalTest.cc
  9068. * src/MemoryBufferPreDownloadHandler.{h, cc}
  9069. * src/OptionHandlerImpl.h
  9070. * src/prefs.h
  9071. * src/Util.{h, cc}
  9072. * test/UtilTest.cc
  9073. Keep DownloadResult rather than RequestGroup after downloads to reduce
  9074. memory usage.
  9075. * src/RequestGroupMan.{h, cc}
  9076. * src/DownloadEngine.cc
  9077. * src/BtDependency.{h, cc}: Changed the type of dependee from
  9078. WeakHandle to SharedHandle because WeakHandle could be null.
  9079. * src/RequestGroup.{h, cc}
  9080. * src/DownloadEngineFactory.cc
  9081. * src/DownloadResult.h
  9082. Set totalLength after download finished
  9083. * src/UnknownLengthPieceStorage.{h, cc}
  9084. Keep torrent file specified in metalink in memory.
  9085. * src/Metalink2RequestGroup.cc
  9086. * src/BtDependency.cc
  9087. * src/TrueRequestGroupCriteria.h
  9088. Fixed the bug: seekg is used where seekp should be used.
  9089. * src/ByteArrayDiskWriter.cc
  9090. * test/ByteArraydiskWriterTest.cc
  9091. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9092. Fixed syntax error
  9093. * test/SequenceTest.cc
  9094. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9095. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9096. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  9097. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9098. * src/RequestGroup.cc (downloadFinishedByFileLength)
  9099. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9100. Added the check to see whether ares_host_callback accepts timeouts
  9101. with c-ares; only c-ares 1.5.0 or newer accepts it.
  9102. * src/NameResolver.{h, cc}
  9103. * m4/libcares.m4
  9104. * configure.ac: Set C++ for language choice.
  9105. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9106. Fixed: compilation fails without c-ares/ares
  9107. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  9108. Generate http/ftp commands only when download is incomplete.
  9109. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  9110. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9111. Corrected typo. Examples are removed since they are available in man
  9112. page.
  9113. * src/version_usage.cc
  9114. Updated man page.
  9115. * doc/aria2c.1
  9116. * doc/aria2c.1.txt
  9117. * doc/makeman: Commented out sed command.
  9118. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9119. Throw DlAbortEx when a remote file is not found.
  9120. * src/HttpResponse.cc
  9121. * src/FtpNegotiationCommand.cc
  9122. * src/message.h
  9123. Overwrite an existing file if --allow-overwrite=true is given.
  9124. * src/RequestGroup.cc
  9125. Removed unused functions
  9126. * src/AbstractCommand.h
  9127. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9128. Removed 'extern' from 'extern typedef ...' in src/*.h
  9129. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9130. Updated usage
  9131. * src/version_usage.cc
  9132. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9133. Trim announce URL
  9134. * src/DefaultBtContext.cc
  9135. * test/ShaVisitorTest.cc
  9136. Trim argument s. Give trimed s to exception constructor.
  9137. * src/Util.cc (parseInt)(parseLLInt)
  9138. * test/UtilTest.cc
  9139. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9140. Set precision back to 1.
  9141. * src/ConsoleStatCalc.cc (calculateStat)
  9142. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9143. Replaced strtol with Util::parseInt
  9144. * src/ChunkedEncoding.cc
  9145. * src/HttpConnection.cc
  9146. * src/CookieBoxFactory.cc
  9147. * src/ParameterizedStringParser.cc
  9148. * src/Util.cc
  9149. * test/UtilTest.cc
  9150. * test/OptionHandlerTest.cc
  9151. * src/Request.cc
  9152. Throw exception when empty string is given. The message for exception
  9153. changed.
  9154. * src/Util.cc (parseInt)(parseLLInt)
  9155. * src/message.h
  9156. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9157. Set precision to 2 because share ratio is rounded into 1.0 if precision
  9158. set to 1.
  9159. * src/ConsoleStatCalc.cc (calculateStat)
  9160. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9161. Preallocate non-requested file which is adjacent forward to requested
  9162. file('requested' files means the files given in --select-file option)
  9163. if they share a same piece.
  9164. This fixes long pause in the file system which doesn't support sparse
  9165. files like FAT32 while downloading.
  9166. * src/MultiFileAllocationIterator.{h, cc}
  9167. * test/MultiFileAllocationIteratorTest.cc
  9168. * src/FileEntry.{h, cc}
  9169. Removed unused _option.
  9170. * src/MultiDiskAdaptor.h
  9171. * test/MultiDiskAdaptorTest.cc
  9172. * src/DefaultPieceStorage.cc
  9173. Set the default value of --seed-ratio to 1.0.
  9174. If 0.0 is given, then seeding continues regardless of share ratio.
  9175. * src/version_usage.cc
  9176. * src/option_processing.cc
  9177. * src/BtSetup.cc
  9178. * doc/aria2c.1.txt
  9179. * doc/aria2c.1
  9180. Fixed: Selective download is not working in BitTorrent
  9181. * src/RequestGroup.cc
  9182. Introduced Sequence class. Use this instead of Util::unfoldRange()
  9183. * src/PieceStorage.h
  9184. * test/MockPieceStorage.h
  9185. * src/UnknownLengthPieceStorage.h
  9186. * src/DefaultPieceStorage.{h, cc}
  9187. * src/Metalink2RequestGroup.cc
  9188. * src/RequestGroup.cc
  9189. * src/Sequence.h
  9190. * test/SequenceTest.cc
  9191. * src/IntSequence.h
  9192. * src/message.h
  9193. * src/Util.{h, cc}
  9194. * test/UtilTest.cc
  9195. Added new function 'parse' to catch exception thrown by subclass's
  9196. parseArg
  9197. * src/OptionHandler.h
  9198. * src/OptionParser.cc
  9199. * src/NameMatchOptionHandler.h
  9200. * src/OptionHandlerImpl.h
  9201. * test/OptionHandlerTest.cc
  9202. Added IntegerRangeOptionHandler. Used for --listen-port and
  9203. --select-file. Now --listen-port accepts range of port.
  9204. * src/OptionHandlerFactory.cc
  9205. * src/version_usage.cc
  9206. * src/OptionHandlerImpl.h
  9207. * src/option_processing.cc
  9208. * src/BtSetup.cc
  9209. * src/PeerListenCommand.{h, cc}
  9210. * doc/aria2c.1.txt
  9211. * doc/aria2c.1
  9212. Implemented operator< for Exception class to provide easy way to print
  9213. exception stack trace.
  9214. * src/Exception.{h, cc}
  9215. * src/main.cc
  9216. * src/option_processing.cc
  9217. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9218. * src/version_usage.cc
  9219. (showVersion): Reworked.
  9220. (showUsage): Added examples.
  9221. Removed Hint for total length and file name.
  9222. * src/Metalink2RequestGroup.cc
  9223. * src/RequestGroup.{h, cc}
  9224. * src/HttpResponseCommand.cc
  9225. * src/FtpNegotiationCommand.cc
  9226. Now --follow-torrent and --follow-metalink option work properly.
  9227. * src/RequestGroup.cc
  9228. Updated man page
  9229. * doc/aria2c.1.txt
  9230. * doc/aria2c.1
  9231. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9232. Removed.
  9233. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  9234. Use Segment::operator==()
  9235. * src/HttpConnection.cc
  9236. * src/Segment.h
  9237. Updated usage
  9238. * src/version_usage.cc
  9239. Added EINTR treatment.
  9240. * src/SocketCore.cc
  9241. * src/AbstractDiskWriter.cc
  9242. Rewritten.
  9243. * src/Util.cc (rangedFileCopy)
  9244. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9245. Fixed typo.
  9246. * src/version_usage.cc
  9247. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9248. Implemented. Now -c option works fine.
  9249. * src/DefaultPieceStorage.cc (markPiecesDone)
  9250. * test/DefaultPieceStorageTest.cc
  9251. Removed.
  9252. * src/SegmentMan.{h, cc}
  9253. (markAllPiecesDone)
  9254. (markPieceDone)
  9255. Synchronized po files with
  9256. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  9257. * src/fr.po
  9258. * src/ru.po
  9259. * src/de.po
  9260. * src/ja.po
  9261. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9262. Added ifdef and some modifications to compile without BitTorrent,
  9263. Metalink, MessageDigest
  9264. support.
  9265. * src/PieceHashCheckIntegrityEntry.cc
  9266. * src/MetalinkEntry.h
  9267. * src/version_usage.cc
  9268. * src/main.cc
  9269. * src/DownloadEngine.{h, cc}
  9270. * src/Metalink2RequestGroup.cc
  9271. * src/Peer.cc
  9272. * src/RequestGroup.cc
  9273. * src/MetalinkHelper.cc
  9274. * test/DefaultPieceStorageTest.cc
  9275. * test/MetalinkPostDownloadHandlerTest.cc
  9276. * test/Metalink2RequestGroupTest.cc
  9277. Hide TOTAL SPD when all downloads complete.
  9278. * src/ConsoleStatCalc.cc
  9279. Log target system information.
  9280. * src/main.cc
  9281. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9282. Now --metalink-location accepts a comma-deliminated list of locations.
  9283. * src/MetalinkEntry.{h, cc}
  9284. * test/MetalinkEntryTest.cc
  9285. * src/version_usage.cc
  9286. * src/Metalink2RequestGroup.cc
  9287. * src/Xml2MetalinkProcessor.cc
  9288. * test/Xml2MetalinkProcessorTest.cc
  9289. * doc/aria2c.1.txt
  9290. * doc/aria2c.1
  9291. * src/Util.cc (toUpper)(toLower): Rewritten.
  9292. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9293. Added the ability to detect duplicate download entry which is about to
  9294. download the same file other RequestGroup is downloading.
  9295. * src/RequestGroup.cc
  9296. * src/HttpResponseCommand.cc
  9297. * src/FtpNegotiationCommand.cc
  9298. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9299. Recalculates download progress when loading a control file,
  9300. if the piece length of DownloadContext is different from the one saved
  9301. in the control file. Currently in-flight pieces are ignored.
  9302. * src/DefaultBtProgressInfoFile.cc
  9303. * test/DefaultBtProgressInfoFileTest.cc
  9304. * src/Util.{h, cc}
  9305. * test/UtilTest.cc
  9306. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9307. Do not rotate tiers in announce-list.
  9308. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  9309. AnnounceList::allTiersFailed() used instead to detect whether all
  9310. tiers are tried and failed.
  9311. * test/DefaultBtAnnounceTest.cc
  9312. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  9313. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  9314. * test/AnnounceListTest.cc
  9315. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  9316. clause. Catch RecoverableException instead of DlRetryEx instead.
  9317. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9318. Implemented checksum validation feature(1 checksum for each file)
  9319. The validation takes place after the download.
  9320. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  9321. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  9322. * src/CheckIntegrityCommand.cc: Changed log message.
  9323. * src/Metalink2RequestGroup.cc: Set checksum to
  9324. SingleFileDownloadContext.
  9325. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  9326. PieceHashCheckIntegrity class.
  9327. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  9328. PieceHashCheckIntegrity class.
  9329. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  9330. * src/IteratableValidator.h: New class.
  9331. * src/message.h
  9332. * src/CheckIntegrityEntry.{h, cc}
  9333. * src/IteratableChunkChecksumValidator.{h, cc}
  9334. * src/SingleFileDownloadContext.h
  9335. * src/DownloadCommand.cc
  9336. --allow-overwrite=true is no longer needed to check file integrity
  9337. before download in BitTorrent download.
  9338. * src/RequestGroup.cc (getInitialCommand)
  9339. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  9340. throws exception.
  9341. * src/RequestGroupMan.cc (getInitialCommands)
  9342. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9343. urlencode the given url inside Request::parseUrl(...)
  9344. * src/Request.{h, cc}
  9345. * src/Util.{h, cc}
  9346. * test/RequestTest.cc
  9347. Removed #!metalink3! notation support because it is deleted from
  9348. the metalink specification.
  9349. * src/Request.{h, cc}
  9350. * test/RequestTest.cc
  9351. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9352. Don't connect server before checking file integrity at startup, if
  9353. filesize and output file path are known.
  9354. * src/AbstractCommand.cc
  9355. * src/StreamFileAllocationEntry.cc
  9356. * src/Metalink2RequestGroup.cc
  9357. * src/RequestGroup.{h, cc}
  9358. * src/HttpResponseCommand.cc
  9359. * src/FtpNegotiationCommand.cc
  9360. Added DownloadFailureException. If it is thrown, RequestGroup should
  9361. halt.
  9362. * src/AbstractCommand.cc
  9363. * src/DownloadFailureException.h
  9364. * src/RequestGroup.cc
  9365. Catch RecoverableException, instead of DlAbortEx.
  9366. * src/RequestGroupMan.cc
  9367. * src/FillRequestGroupCommand.cc
  9368. * src/MetaFileUtil.cc
  9369. * src/IteratableChunkChecksumValidator.cc
  9370. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  9371. getGID())
  9372. * src/CheckIntegrityCommand.cc
  9373. * src/message.h
  9374. Print gid instead of idx.
  9375. * src/RequestGroupMan.cc
  9376. Removed exception throwers declaration.
  9377. * src/DirectDiskAdaptor.{h, cc}
  9378. * src/SocketCore.{h, cc}
  9379. * src/MultiDiskAdaptor.{h, cc}
  9380. * src/HttpConnection.{h, cc}
  9381. * src/HttpResponse.{h, cc}
  9382. * src/DiskAdaptor.{h, cc}
  9383. * src/CopyDiskAdaptor.{h, cc}
  9384. * src/MultiDiskAdaptor.{h, cc}
  9385. * src/HttpHeaderProcessor.{h, cc}
  9386. * src/AbstractSingleDiskAdaptor.{h, cc}
  9387. * src/Util.{h, cc}
  9388. * test/UtilTest.cc
  9389. * src/DefaultDiskWriter.{h, cc}
  9390. * src/FtpConnection.{h, cc}
  9391. * src/AbstractDiskWriter.{h, cc}
  9392. Removed duplicate code.
  9393. * src/StreamCheckIntegrityEntry.cc
  9394. Removed unnecessary include.
  9395. * src/DiskWriter.h
  9396. Included Exception.h
  9397. * src/option_processing.cc
  9398. Included 2 files and added doc
  9399. * src/TrackerWatcherCommand.cc
  9400. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  9401. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9402. Changed CheckIntegrityEntry interface so that it can define
  9403. the action when all the chunk checksums are valid.
  9404. * src/CheckIntegrityEntry.h
  9405. * src/StreamCheckIntegrityEntry.{h, cc}
  9406. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  9407. are valid, then aira2 goes to seeding mode. Sometimes it is better
  9408. to exit rather than doing seeding. So, it would be good to toggle this
  9409. behavior.
  9410. * src/CheckIntegrityCommand.cc
  9411. * src/AbstractCommand.cc
  9412. * src/RequestGroup.cc
  9413. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9414. Reflect the download length of in-flight pieces.
  9415. It makes the download length readout more precise.
  9416. * src/DefaultPieceStorage.{h, cc}
  9417. * test/DefaultPieceStorageTest.cc
  9418. * src/a2functional.h
  9419. * test/a2functionalTest.cc
  9420. Lower CPU load when --max-download-limit is used.
  9421. There is up and down in speed indicator when enabling
  9422. http-pipelining but a download goes well. I think the problem is that
  9423. because http-pipelining is enabled, DownloadCommand is created for
  9424. each segment and in its constructor, PeerStat::downloadStart() is
  9425. called. In PeerStat::downloadStart(), speed calculation object is
  9426. reseted, which makes download speed zero.
  9427. * src/DownloadCommand.cc
  9428. Rewritten using accumulate.
  9429. * src/RequestGroupMan.cc (calculateStat)
  9430. Code clearnup.
  9431. * src/FtpNegotiationCommand.cc
  9432. * src/HttpResponseCommand.cc
  9433. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9434. Fixed: Can not resume: aria2 reports download already finished.
  9435. * src/AbstractCommand.{h, cc}
  9436. * src/HttpResponseCommand.cc
  9437. * src/FtpNegotiateCommand.cc
  9438. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9439. Now a file is stored in the directory specified in .metalnk file
  9440. (file[@name]).
  9441. * src/Metalink2RequestGroup.cc
  9442. Create the directory structure when opening the file if it doesn't
  9443. exist.
  9444. * src/AbstractDiskWriter.cc
  9445. * src/Util.{h, cc}
  9446. * src/File.h
  9447. * test/UtilTest.cc
  9448. Removed file name comparison
  9449. * src/Metalink2RequestGroup.cc
  9450. * src/HttpResponseCommand.cc
  9451. Rewritten using Util::mkdirs()
  9452. * src/FileEntry.cc (setupDir)
  9453. * test/FileEntryTest.cc
  9454. Updated doc
  9455. * src/SingleFileDownloadContext.h
  9456. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9457. Now SleepCommand dispatches nextCommand when halt is requested.
  9458. It avoids a possible long wait after hitting CTRL-C.
  9459. * src/SleepCommand.{h, cc}
  9460. * src/RequestGroupAware.{h, cc}
  9461. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9462. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  9463. to open listen port, then remove the port number from the tracker
  9464. request.
  9465. * src/DefaultBtAnnounce.cc
  9466. * test/DefaultBtAnnounceTest.cc
  9467. * test/MockPieceStorage.h
  9468. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  9469. them more testable.
  9470. * src/DefaultBtAnnounce.{h, cc}
  9471. * src/DefaultBtContext.{h, cc}
  9472. * src/Util.{h, cc}
  9473. * test/DefaultBtAnnounceTest.cc
  9474. * test/DefaultBtContextTest.cc
  9475. * test/UtilTest.cc
  9476. Added 'B' to upload bytes readout.
  9477. * src/ConsoleStatCalc.cc
  9478. Now the listen port for BitTorrent download is opened when it is
  9479. needed.
  9480. * src/DownloadEngineFactory.cc
  9481. * src/BtSetup.{h, cc}
  9482. * src/PeerListenCommand.{h, cc}
  9483. Now an exception thrown while parsing tracker response is now logged.
  9484. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  9485. called, which means no retry is made in this case, assuming a tracker
  9486. has a problem.
  9487. * src/TrackerWatcherCommand.cc
  9488. Fixed: downloading a file whose length is unkown fails.
  9489. * src/DownloadCommand.cc
  9490. Simplified prepareForNextSegment()
  9491. * src/DownloadCommand.cc
  9492. Updated
  9493. * po/POTFILES.in
  9494. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9495. Re-implemented a file listing for Metalink, which was dropped while
  9496. http/ftp/torrent integration was being implemented.
  9497. * src/MetalinkHelper.{h, cc}: New class.
  9498. * test/MetalinkHelperTest.cc
  9499. * src/main.cc
  9500. * src/Metalink2RequestGroup.cc
  9501. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9502. Added the ability to display the detailed torrent file information.
  9503. Now -S option gives not only a file listing, but also total download
  9504. length, info hash, announce URI, piece length, the number of pieces,
  9505. and mode(single or multi-torrent).
  9506. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  9507. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  9508. KiB)
  9509. * test/UtilTest.cc
  9510. * src/main.cc
  9511. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9512. Added ftp://USER:PASSWD@Servername automatic parsing.
  9513. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  9514. _password. Recognize username and password in URI.
  9515. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  9516. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  9517. * src/RequestFactory.{h, cc}: Removed.
  9518. * src/AuthConfigFactory.{h, cc}: New class.
  9519. * src/FtpConnection.cc: Use AuthConfigFactory.
  9520. * src/HttpRequest.cc: Use AuthConfigFactory.
  9521. * test/HttpRequestTest.cc: Updated.
  9522. * test/RequestTest.cc: Updated.
  9523. * test/AuthConfigFactoryTest.cc: New class.
  9524. * test/RequestFactoryTest.cc: Removed.
  9525. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9526. Use RequestGroup::allDownloadFinished() to decide whether the control
  9527. file should be removed or saved.
  9528. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  9529. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  9530. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9531. Use File::renameTo()
  9532. * src/DefaultBtProgressInfoFile.cc
  9533. Added --no-file-allocation-limit command-line option.
  9534. * src/version_usage.cc
  9535. * src/option_processing.cc
  9536. * src/OptionHandlerFactory.cc
  9537. * src/RequestGroup.{h, cc}
  9538. * src/BtCheckIntegrityEntry.cc
  9539. * src/StreamCheckIntegrityEntry.cc
  9540. * src/prefs.h
  9541. * doc/aria2c.1.txt
  9542. * doc/aria2c.1
  9543. Now prealloc is the default value for --file-allocation option.
  9544. * src/version_usage.cc
  9545. * src/option_processing.cc
  9546. * doc/aria2c.1.txt
  9547. * doc/aria2c.1
  9548. Don't URL-encode user-agent.
  9549. * src/HttpRequest.cc
  9550. Updated translations
  9551. * po/LINGUAS: Added nl for Dutch translation.
  9552. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  9553. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  9554. * po/POTFILES.in: Updated.
  9555. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9556. Added the ability to recognize url-list in a torrent file.
  9557. The retrieved URLs are attached to the corresponding FileEntry.
  9558. * src/DefaultBtContext.{h, cc}
  9559. * src/FileEntry.{h, cc}
  9560. * test/DefaultBtContextTest.cc
  9561. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9562. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  9563. after the download finishes.
  9564. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9565. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  9566. the data smaller than block length.
  9567. A block length can be specified by constructor's argument.
  9568. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  9569. Get a missing piece in the range of given FileEntry. This function is
  9570. not used in the program yet.
  9571. * src/Util.h: Added some macros.
  9572. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9573. Added HTTP/1.1 keep alive and pipelining support.
  9574. See --enable-http-keep-alive and --enable-http-pipelining option.
  9575. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  9576. Segment.
  9577. * src/HttpDownloadCommand.{h, cc}
  9578. * src/OptionHandlerFactory.cc
  9579. * src/HttpConnection.{h, cc}
  9580. * src/version_usage.cc
  9581. * src/HttpInitiateConnectionCommand.cc
  9582. * src/FtpInitiateConnectionCommand.cc
  9583. * src/Segment.h
  9584. * src/HttpRequestCommand.{h, cc}
  9585. * src/option_processing.cc
  9586. * src/prefs.h
  9587. * src/HttpResponseCommand.cc
  9588. * src/SegmentMan.{h, cc}
  9589. * src/FtpNegotiateCommand.cc
  9590. * src/HttpProxyResponseCommand.cc
  9591. * src/Request.cc
  9592. * src/HttpRequest.cc
  9593. * src/DownloadCommand.cc
  9594. * test/HttpRequestTest.cc
  9595. * test/RequestTest.cc
  9596. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9597. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  9598. finished.
  9599. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9600. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  9601. catching it inside the method.
  9602. When no file entry is found in a metalink without querying user
  9603. preferences, throw the exception with the error message that suggests
  9604. metalink file is probably broken.
  9605. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  9606. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9607. Fixed the bug that prevents remote Metalink/Torrent file from begin
  9608. processed.
  9609. * src/RequestGroupMan.cc (removeStoppedGroup)
  9610. Added debug message.
  9611. * src/BtPostDownloadHandler.cc
  9612. * src/MetalinkPostDownloadHandler.cc
  9613. * src/PostDownloadHandler.{h, cc}
  9614. * src/RequestGroup.cc
  9615. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9616. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  9617. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9618. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  9619. stops and there are any unfinished or in-progress downloads.
  9620. Added the legend of "stat".
  9621. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9622. Throw exception when chunck checksum verification fails.
  9623. * src/DownloadCommand.cc (validatePieceHash): New function.
  9624. * src/PiecedSegment.{h, cc} (clear): New function.
  9625. * src/GrowSegment.{h, cc} (clear): New function.
  9626. * src/Segment.h (clear): New function.
  9627. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  9628. * test/SegmentTest.cc
  9629. * test/GrowSegmentTest.cc
  9630. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9631. Do not send referer when redirected.
  9632. * src/Request.cc (redirectUrl)
  9633. * test/RequestTest.cc
  9634. * test/HttpRequestTest.cc
  9635. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9636. Implemented BitTorrent/http/ftp integrated download.
  9637. I've rewritten lots of files and now some headers have forward
  9638. class declarations to reduce compile time.
  9639. The implementation is extremely alpha stage, I recommend to use this
  9640. for testing purpose only.
  9641. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9642. Fixed the compilation error on 64bit platform.
  9643. * test/HttpHeaderProcessorTest.cc
  9644. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9645. Merged Ross's patch that fixes compilation problem in MinGW
  9646. * test/DefaultBtProgressInfoFileTest.cc
  9647. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9648. Updated fr.po by sebone
  9649. * po/fr.po
  9650. Updated man page.
  9651. * doc/aria2c.1.txt
  9652. * Release 0.11.3
  9653. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9654. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  9655. failure in Metalink.
  9656. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9657. Automatically save *.aria2 control file of http/ftp download in every
  9658. 60 seconds.
  9659. * src/AutoSaveCommand.{h, cc}: New class.
  9660. * src/TimeBasedCommand.{h, cc}: New class.
  9661. * src/DownloadEngineFactory.cc (newConsoleEngine)
  9662. Disable parameterized URI support by default. Added -P option to
  9663. enable the feature.
  9664. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  9665. * src/OptionHandlerFactory.cc
  9666. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  9667. Updated Japanese translation.
  9668. * po/ja.po
  9669. Updated man page.
  9670. * doc/aria2c.1.txt
  9671. * Release 0.11.3-rc
  9672. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9673. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  9674. it is successful, then renamed to *.aria2.
  9675. This prevents *.aria2 file from being truncated or corrupted when
  9676. file system becomes out of space.
  9677. * src/DefaultBtProgressInfoFile.cc (save)
  9678. * src/SegmentMan.cc (save)
  9679. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  9680. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9681. Reduced the fragmentation of bitfield in http/ftp download.
  9682. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  9683. * test/BitfieldManTest.cc
  9684. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9685. Added the ability to disable segmented download in .metalink.
  9686. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  9687. 'url' tag.
  9688. * src/MetalinkEntry.{h, cc}
  9689. * src/RequestResource.{h, cc}
  9690. * src/MetalinkRequestInfo.cc
  9691. * src/Xml2MetalinkProcessor.cc
  9692. * test/Xml2MetalinkProcessorTest.cc
  9693. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9694. Added parameterized URI support.
  9695. * src/main.cc: -Z option added.
  9696. * src/OptionHandlerFactory.cc
  9697. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  9698. * src/PStringDatum.h: New class.
  9699. * src/PStringSegment.{h,cc}: New class.
  9700. * src/PStringNumLoop.h: New class.
  9701. * src/PStringSelect.h: New class.
  9702. * src/NumberDecorator.h: New class.
  9703. * src/FixedWidthNumberDecorator.h: New class.
  9704. * src/AlphaNumberDecorator.h: New class.
  9705. * src/PStringVisitor.h: New class.
  9706. * src/PStringBuildVisitor.{h,cc}: New class.
  9707. * src/ParameterizedStringParser.{h,cc}: New class.
  9708. * src/Util.{h,cc}
  9709. (isNumber): New function.
  9710. (isLowercase): New function.
  9711. (isUppercase): New function.
  9712. (alphaToNum): New function.
  9713. * test/ParameterizedStringParserTest.cc: New class.
  9714. * test/AlphaNumberDecoratorTest.cc: New class.
  9715. * test/PStringBuildVisitorTest.cc: New class.
  9716. * test/UtilTest.cc
  9717. (testIsNumber): New function.
  9718. (testIsLowercase): New function.
  9719. (testIsUppercase): New function.
  9720. (testAlphaToNum): New function.
  9721. Added '\n' after the error message
  9722. * src/RequestInfo.h (printDownloadAbortMessage)
  9723. Added auto file renaming feature in http(s)/ftp download.
  9724. * src/main.cc: Added --auto-file-renaming command-line option.
  9725. * src/OptionHandlerFactory.cc
  9726. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  9727. * src/RequestGroup.{h, cc}
  9728. (shouldCancelDownloadForSafety): Rewritten
  9729. (tryAutoFileRenaming): New function.
  9730. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  9731. * src/HttpResponseCommand.cc
  9732. (executeInternal): Removed the call to RequestGroupMan::
  9733. isSameFileBeingDownloaded()
  9734. * src/FtpNegotiateCommand.cc
  9735. (recvSize): Removed the call to RequestGroupMan::
  9736. isSameFileBeingDownloaded()
  9737. * test/RequestGroupTest.cc: New class.
  9738. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9739. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  9740. IO.
  9741. * src/DefaultBtProgressInfoFile.cc
  9742. * src/MetaFileUtil.cc
  9743. * src/SimpleLogger.cc
  9744. * src/SegmentMan.cc
  9745. * src/Util.cc
  9746. * src/Platform.cc
  9747. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9748. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  9749. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9750. Avoid sparse files if possible, because VFAT32 doesn't support it.
  9751. * src/DefaultDiskWriter.cc (initAndOpenFile)
  9752. Fixed the bug that prevents file allocation is not done when
  9753. dowloading multi-torrent file.
  9754. * src/AbstractDiskWriter.cc (openFile)
  9755. Increase the maximum number of -j option from 15 to 45.
  9756. * src/OptionHandlerFactory.cc (createOptionHandlers)
  9757. Added fr.po, thanks to Charles Landemaine.
  9758. * po/fr.po
  9759. * po/LINGUAS
  9760. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  9761. gcc 3.4.4 support:
  9762. * src/DefaultBtContext.cc: int32_t -> int
  9763. * src/main.cc: int -> int32_t, int32_t -> int
  9764. * src/messageDigest.h: uint32_t -> unsigned int
  9765. * src/NameResolver.h: int32_t -> int
  9766. * src/PeerConnection.cc: int -> int32_t
  9767. * src/SpeedCalc.cc: int32_t -> int
  9768. * src/TrackerUpdateCommand.h: int -> int32_t
  9769. * src/Util.cc: int32_t -> int
  9770. * src/Util.h: int32_t -> int
  9771. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  9772. * test/AnnounceListTest.cc: int -> int32_t
  9773. * test/ChunkedEncodingTest.cc: int -> int32_t
  9774. * test/DataTest.cc: int -> int32_t
  9775. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  9776. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  9777. * test/DefaultPieceStorageTest.cc: int -> int32_t
  9778. * test/FeatureConfigTest.cc: int -> int32_t
  9779. * test/MetalinkEntryTest.cc: int -> int32_t
  9780. * test/MockBtRequestFactory.h: int -> int32_t
  9781. * test/MockPieceStorage.h: int -> int32_t
  9782. * test/OptionTest.cc: int -> int32_t
  9783. * test/RequestTest.cc: int -> int32_t
  9784. * test/SegmentManTest.cc: int -> int32_t
  9785. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  9786. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  9787. Move sleep functions to Util class:
  9788. * src/Util.cc
  9789. (sleep): New function.
  9790. (usleep): New function.
  9791. * src/DownloadCommand.cc: sleep -> Util::sleep
  9792. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  9793. MinGW build enhancements. The following files are added:
  9794. * src/timegm.{c,h}
  9795. Changes to support the above new files:
  9796. * configure.ac
  9797. * src/Makefile.am
  9798. * src/a2time.h
  9799. * src/Util.cc:
  9800. * src/strptime.c: Added support for %Z option.
  9801. Fixed MinGW non-blocking bug.
  9802. * src/SocketCore.cc
  9803. * src/HttpRequestCommand.cc
  9804. Miscellenous build fixes/enhancements.
  9805. * configure.ac: Added summary report.
  9806. * src/Platform.h: Tweaked #include's.
  9807. * src/a2netcompat.h: Tweaked #include's.
  9808. * src/strptime.h: Tweaked #include's.
  9809. * src/gai_strerror.c: Tweaked #include's.
  9810. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  9811. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  9812. * src/gettimeofday.h: Added HAVE_CONFIG_H
  9813. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9814. Increased the initial connection size in BitTorrent download to 40.
  9815. * src/BtRuntime.h
  9816. Added the usage message of --peer-id-prefix option.
  9817. * src/main.cc
  9818. * Release 0.11.2
  9819. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9820. MessageDigestHelper is introduced in order to simplify the use
  9821. of message digest. Removed repeated code.
  9822. The message digest algorithm is now specified by string, like "sha1",
  9823. "md5".
  9824. * src/messageDigest.{h, cc}
  9825. * src/MessageDigestHelper.{h, cc}: New class.
  9826. * src/DefaultPieceStorage.cc
  9827. * src/DefaultBtContext.{h, cc}
  9828. (computeFastSet): New function.
  9829. (setInfoHash): Added for unit testing.
  9830. (setNumPieces): Added for unit testing.
  9831. * src/DefaultBtInteractive.cc
  9832. * src/BtPieceMessage.cc
  9833. * src/Peer.cc
  9834. * src/Checksum.h
  9835. * src/message.h
  9836. * src/IteratableChecksumValidator.h
  9837. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  9838. inside it.
  9839. * src/SegmentMan.{h, cc}
  9840. (checkIntegrity): Removed.
  9841. * src/IteratableChunkChecksumValidator.{h, cc}
  9842. * src/Util.h
  9843. (sha1Sum): Removed.
  9844. (simpleMessageDigest): Removed.
  9845. (fileChecksum): Removed.
  9846. (computeFastSet): Removed.
  9847. * src/ShaVisitor.cc
  9848. * src/ChunkChecksum.h
  9849. * src/DownloadCommand.cc
  9850. Removed messageDigest virtual functions.
  9851. * src/MultiDiskAdaptor.{h, cc}
  9852. * src/DiskAdaptor.h
  9853. * src/ByteArrayDiskWriter.h
  9854. * src/DiskWriter.h
  9855. * src/DiskAdaptorWriter.h
  9856. * src/AbstractSingleDiskAdaptor.{h, cc}
  9857. * src/AbstractDiskWriter.{h, cc}
  9858. Fixed comilation error when message digest is disabled.
  9859. * src/MetalinkEntry.{h, cc}
  9860. * src/MetalinkRequestInfo.cc
  9861. Removed srandom and random.
  9862. * src/SimpleRandomizer.h
  9863. Added size() virtual function to DiskAdaptor
  9864. * src/MultiDiskAdaptor.h
  9865. Fixed the bug that causes that files are not opened correctly in
  9866. multi-file torrent.
  9867. * src/TorrentRequestInfo.cc
  9868. * src/MultiDiskAdaptor.cc
  9869. Added SHA256 support
  9870. * src/messageDigest.cc
  9871. * src/Xml2MetalinkProcessor.cc
  9872. Show supported message digest algorithms
  9873. * src/main.cc
  9874. Updated contact info.
  9875. * src/main.cc
  9876. Applied Ross's patch
  9877. * src/a2netcompat.h
  9878. * src/main.cc
  9879. Fixed the bug that prevents a remote metalink from not being processed
  9880. even if '-o foo.metalink' is specified.
  9881. * src/MetalinkRequestInfo.cc
  9882. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9883. Merged Dan's patch:
  9884. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  9885. Use va_copy to avoid core dump on amd64:
  9886. * src/SimpleLogger.cc
  9887. Updated contact info.
  9888. * src/main.cc
  9889. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  9890. digest is not available.
  9891. * src/MetalinkEntry.h
  9892. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9893. Make a2netcompat.h include a2io.h to fix compilation error:
  9894. * src/a2netcompat.h
  9895. * src/SocketCore.cc: Removed include of a2io.h
  9896. * src/Util.cc: Removed include of a2io.h
  9897. Gather time related functions to a2time.h:
  9898. * src/a2time.h: New file.
  9899. * src/DefaultPeerStorage.cc
  9900. * src/SimpleLogger.cc
  9901. * src/Util.{h, cc}
  9902. * src/SimpleRandomizer.h
  9903. * src/TimeA2.{h,cc}
  9904. * src/DownloadCommand.cc
  9905. * src/main.cc
  9906. Removed #ifdef __MINGW32__ since gai_strerror is included in
  9907. a2netcompat.h:
  9908. * src/NameResolver.cc
  9909. Fixed compilation error without openssl:
  9910. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  9911. Added default block to suppress compiler warnings:
  9912. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  9913. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  9914. MinGW build enhancements. The following files are added:
  9915. * src/gai_strerror.{c,h}
  9916. * src/gettimeofday.{c,h}
  9917. Changes to support the above new files:
  9918. * configure.ac
  9919. * src/Makefile.am
  9920. * src/a2netcompat.h
  9921. * src/TimeA2.cc
  9922. * src/DefaultPeerStorage.cc
  9923. * src/NameResolver.cc: removed mingw_strerror() function.
  9924. * src/SocketCore.cc: removed mingw_strerror() function.
  9925. Miscellaneous MinGW build fixes.
  9926. * src/a2io.h: Use _lseeki64() instead of lseek()
  9927. * src/common.h
  9928. * src/DefaultFileAllocator.cc
  9929. * src/GlowFileAllocator.cc
  9930. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  9931. * src/NameResolver.cc
  9932. (callback): Changed int32_t to int.
  9933. (resolve): Changed int32_t to int.
  9934. * src/Platform.cc
  9935. * src/Platform.h
  9936. * test/MultiDiskWriterTest.cc
  9937. * test/PeerMessageUtilTest.cc
  9938. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  9939. Other enhancements and fixes.
  9940. * src/HttpRequestCommand.cc
  9941. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  9942. * src/SocketCore.cc:
  9943. (error): New function to abstract errno/WSAGetLastError().
  9944. (errorMsg): New function to abstract errno/WSAGetLastError().
  9945. (initiateSecureConnection): Added more detailed error reporting.
  9946. * src/SocketCore.h: Added private variable blocking, to allow
  9947. proper handling of OpenSSL psuedo-errors.
  9948. * src/message.h
  9949. (EX_SSL_INIT_FAILURE)
  9950. (EX_SSL_IO_ERROR)
  9951. (EX_SSL_PROTOCOL_ERROR)
  9952. (EX_SSL_UNKNOWN_ERROR)
  9953. (EX_SSL_CONNECT_ERROR)
  9954. (EX_SOCKET_BLOCKING)
  9955. (EX_SOCKET_NONBLOCKING)
  9956. (EX_SOCKET_UNKNOWN_ERROR)
  9957. * src/Util.cc
  9958. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  9959. reserved name.
  9960. (httpGMT): Fixed typo.
  9961. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9962. Merged Ross's win32 patch(manually)
  9963. In the course of merging, following files are added.
  9964. * src/strptime.{h,c}
  9965. * src/libgen.{h,c}
  9966. * src/inet_aton.{h,c}
  9967. * src/Platform.{h,cc}
  9968. * src/localtime_r.{h,c}
  9969. * src/getaddrinfo.{h,c}
  9970. I've gethered network related things, and put them to following file:
  9971. * src/a2netcompat.h
  9972. Also io related things are put to following file:
  9973. * src/a2io.h
  9974. Changed %lld to %s because mingw32 doesn't recognize %lld.
  9975. * src/message.h
  9976. (MSG_ALLOCATION_COMPLETED)
  9977. (EX_TOO_LARGE_FILE)
  9978. (EX_SIZE_MISMATCH)
  9979. (EX_FILE_OFFSET_OUT_OF_RANGE)
  9980. (EX_INVALID_CHUNK_CHECKSUM)
  9981. (EX_INVALID_RANGE_HEADER)
  9982. * src/FileAllocationCommand.cc
  9983. * src/HttpResponse.cc
  9984. * src/RequestGroup.cc
  9985. * src/MultiDiskAdaptor.cc
  9986. * src/OptionHandlerImpl.h
  9987. * src/HttpResponseCommand.cc
  9988. * src/FtpNegotiateCommand.cc
  9989. * src/IteratableChecksumValidator.cc
  9990. * src/SegmentMan.cc
  9991. * src/ChunkChecksumValidator.cc
  9992. Added Randomizer::getRandomNumber(long int)
  9993. * src/Randomizer.h (getRandomNumber)
  9994. * src/SimpleRandomizer.h (getRandomNumber)
  9995. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  9996. * src/Util.cc (randomAlpha): Use this new function.
  9997. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9998. Converted int's to in32_t. long long int's are also converted to
  9999. int64_t
  10000. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10001. Fixed the bug that prevents cookies from being sent to the server
  10002. if the domain of cookie is FQDN and starts with ".".
  10003. * src/Cookie.cc (match)
  10004. To add the ability to change peer id.
  10005. * src/DefaultBtContext.h
  10006. (_peerIdPrefix): New variable
  10007. (setPeerIdPrefix): New function.
  10008. * src/torrentRequestInfo.cc
  10009. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  10010. DefaultBtContext.
  10011. * src/main.cc (main): Added peer-id-prefix command-line option.
  10012. The usage message is not added yet.
  10013. * src/DefaultBtContext.cc
  10014. (generatePeerId): Use _peerIdPrefix.
  10015. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  10016. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10017. Fixed the bug that prevents filename in content-disposition from
  10018. being retrieved when filename is not quoted.
  10019. * src/Util.cc (getContentDispositionFilename)
  10020. Fixed the bug that causes infinate loop and memory leak when file open
  10021. operation failed.
  10022. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10023. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10024. Fixed the bug that causes segfault when all URIs specified are
  10025. unsupported.
  10026. * src/RequestGroupMan.cc (getInitialCommands)
  10027. Check if RequestGroup::createNextCommand() returns empty list of
  10028. commands.
  10029. * src/RequestGroup.cc (createNextCommand)
  10030. Change log level from info to error so that users can notice that
  10031. an error occurred.
  10032. Fixed the bug that causes segfault when a zero-sized file is
  10033. downloaded.
  10034. * src/BitfieldMan.cc (isAllBitSet)
  10035. Return true if bitfieldLength is 0.
  10036. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10037. * src/main.cc
  10038. (showUsage): Added 3 usage examples for metalink download.
  10039. Replace MetalinkChunkChecksum with ChunkChecksum.
  10040. * src/MetalinkChunkChecksum.h: Removed.
  10041. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  10042. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  10043. * src/Xml2MetalinkProcessor.cc
  10044. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  10045. * src/MetalinkRequestInfo.cc (execute)
  10046. * Release 0.11.1
  10047. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10048. Reads URIs from stdin when "-i -" is specified.
  10049. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  10050. * src/UriListParser.h, src/UriListParser.cc: New class.
  10051. * src/StreamUriListParser.h: New class.
  10052. * src/FileUriListParser.h: New class.
  10053. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  10054. instead of UriFileListParser.
  10055. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10056. Made console readout more readable.
  10057. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10058. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10059. Fix the bug that causes -s option not to work.
  10060. * src/main.cc (main)
  10061. * src/a2algo.h: New file.
  10062. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10063. Create directory structure specified in metalink file.
  10064. * src/RequestGroup.h, src/RequestGroup.cc
  10065. (initAndOpenFile): Create a directory to store files if it does not
  10066. exist.
  10067. (getDir): New function.
  10068. Added ETA and download speed for an individual file to readout.
  10069. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10070. * src/RequestGroup.h
  10071. (calculateDownloadSpeed): New function.
  10072. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10073. Made -S option work with metalink file and provided selective download
  10074. to metalink.
  10075. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  10076. (filename): Removed.
  10077. (file): New variable.
  10078. (size): Removed.
  10079. (operator=): Updated.
  10080. (getPath): New function.
  10081. (getLength): New function.
  10082. (toFileEntry): New function.
  10083. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  10084. (execute): Use toStream.
  10085. (showFileEntry): Removed.
  10086. * src/MetalinkRequestInfo.h
  10087. (targetFiles): New variable.
  10088. (setTargetFiles): New variable.
  10089. * src/MetalinkRequestInfo.cc
  10090. (execute): Added the ability to print file information included in
  10091. a metalink file.
  10092. Added selective download mode to metalink.
  10093. * src/main.cc
  10094. (showUsage): Updated to denote that -S and --select-file options are
  10095. applicable to metalink.
  10096. * src/FileEntry.h
  10097. (operator=): New function.
  10098. (getBasename): New function.
  10099. (getDirname): New function.
  10100. * src/Util.h, src/Util.cc
  10101. (toStream): New function.
  10102. * src/Xml2MetalinkProcessor.cc: Updated.
  10103. Made aria2 work with metalink with directory structure.
  10104. * src/File.h, src/File.cc
  10105. (getBasename): New function.
  10106. (getDirname): New function.
  10107. * src/RequestGroup.h, src/RequestGroup.cc
  10108. (_topDir): New variable.
  10109. (setTopDir): New function.
  10110. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  10111. Rewrote HTTP header parsing with stringstream.
  10112. * src/HttpConnection.h, src/HttpConnection.cc
  10113. (HttpRequestEntry): New class.
  10114. (headerBuf): Removed.
  10115. (headerBufLength): Removed.
  10116. (outstandingHttpRequests): Now its element type is
  10117. HttpRequestEntryHandle.
  10118. (findEndOfHeader): Removed.
  10119. (receiveResponse): Rewritten.
  10120. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  10121. Updated doc for -j option to notice that it should be used with -i
  10122. option.
  10123. * src/main.cc (showUsage)
  10124. Removed unused classes.
  10125. * src/RequestInfo.h
  10126. (FileInfo): Removed.
  10127. (checksum): Removed.
  10128. (fileInfo): Removed.
  10129. (setChecksum): Removed.
  10130. (getChecksum): Removed.
  10131. (getFileInfo): Removed.
  10132. Use ISO units.
  10133. * src/ConsoleDownloadEngine.cc
  10134. * src/TorrentConsoleDownloadEngine.cc
  10135. * src/Util.cc (abbrevSize)
  10136. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10137. Added the default listening ports to the help message.
  10138. * src/main.cc (showUsage)
  10139. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10140. Reduce the number of calls to gettimeofday to lower CPU load.
  10141. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  10142. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  10143. * src/Peer.h (calculateUploadSpeed): New function.
  10144. (calculateDownloadSpeed): New function.
  10145. * src/DefaultPeerStorage.cc
  10146. (CalculateStat): Added _now variable.
  10147. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  10148. and Peer::calculateUploadSpeed(const struct timeval&)
  10149. Drop connection if no request or piece message is exchanged in
  10150. a certain interval.
  10151. * src/DefaultBtInteractive.h
  10152. (btRuntime): New variable.
  10153. (inactiveCheckPoint): New variable.
  10154. (checkActiveInteraction): New function.
  10155. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  10156. request or piece message is received.
  10157. (checkActiveInteraction): New function.
  10158. (doInteractionProcessing): Call checkActiveInteraction.
  10159. Fixed the bug that causes remote Metalink and Torrent files are not
  10160. processed.
  10161. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  10162. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10163. Changed format of log file.
  10164. * src/SimpleLogger.cc
  10165. * Release 0.11.0
  10166. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10167. * src/AbstractCommand.cc
  10168. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  10169. MSG_MAX_TRY from error to info.
  10170. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  10171. * src/message.h
  10172. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  10173. (MSG_DOWNLOAD_ABORTED): Added %s.
  10174. (MSG_RESTARTING_DOWNLOAD): Added %s.
  10175. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  10176. * src/PeerAbstractCommand.cc
  10177. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  10178. * src/Request.h
  10179. (cookieBox): Made ShardHandle.
  10180. * src/RequestGroup.h, src/RequestGroup.cc
  10181. (createNextCommandWithAdj): New function.
  10182. * src/FileAllocationCommand.cc
  10183. (executeInternal): Use createNextCommandWithAdj().
  10184. * src/CheckIntegrityCommand.cc
  10185. (executeInternal): Use createNextCommandWithAdj().
  10186. Added --load-cookies command-option.
  10187. * src/OptionHandlerFactory.cc
  10188. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  10189. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  10190. Now aria2 can handle cookie's expiration date.
  10191. * src/Cookie.h (expires): Changed its type to time_t.
  10192. * src/main.cc: Added --load-cookies command-line option.
  10193. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  10194. * src/Util.h, src/Util.cc (httpGMT): New function.
  10195. * src/Request.cc (Request): Initialize cookieBox using
  10196. CookieBoxFactory.
  10197. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  10198. * src/CookieParser.h, src/CookieParser.cc: New class.
  10199. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  10200. * src/HttpResponseCommand.cc
  10201. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  10202. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  10203. download.
  10204. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10205. Added -j command-line option.
  10206. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10207. * src/main.cc
  10208. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  10209. Rewritten using stringstream.
  10210. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  10211. Rewritten using stringstream.
  10212. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10213. Make download size shown in MB, KB.
  10214. * src/ConsoleDownloadEngine.h (sendStatistics)
  10215. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  10216. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10217. Accept incoming connections if download rate is low.
  10218. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  10219. (_lowestSpeedLimit): New variable.
  10220. (setLowestSpeedLimit): New function.
  10221. (execute): Accept incoming connections if download rate is low.
  10222. MAX_PEERS is ignored in this case.
  10223. Disable PREF_OUT in multiple concurrent download:
  10224. * src/RequestGroup.h, src/RequestGroup.cc
  10225. (setUserDefinedFilename): New function.
  10226. * src/DownloadEngineFactory.cc
  10227. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  10228. concurrent download.
  10229. * src/DefaultSegmentManFactory.cc
  10230. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  10231. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10232. RequestGroup::getNextCommand() was renamed to createNextCommand().
  10233. Added its overloaded method.
  10234. * src/RequestGroup.h
  10235. (_numConcurrentCommand): New variable.
  10236. (setNumConcurrentCommand): New function.
  10237. * src/RequestGroup.cc
  10238. Abort download if same file is being downloaded concurrently.
  10239. * src/RequestGroup.h, src/RequestGroupMan.cc
  10240. (isSameFileBeingDownloaded): New function.
  10241. * src/HttpResponseCommand.cc (executeInternal)
  10242. * src/FtpNegotiateCommand.cc (recvSize)
  10243. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  10244. * main.cc: Added help message for -i option.
  10245. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10246. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  10247. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  10248. * src/MetalinkEntry.h
  10249. (checksum): Changed to ChecksumHandle
  10250. * src/MetalinkRequestInfo.cc
  10251. (checksum): Changed to ChecksumHandle
  10252. * src/File.cc
  10253. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  10254. * src/common.h
  10255. (DIR_OPEN_MODE): New definition
  10256. * src/RequestGroup.cc
  10257. (prepareForNextAction): Added an argument.
  10258. * src/message.h
  10259. (MSG_GOOD_CHECKSUM): New definition
  10260. (MSG_BAD_CHECKSUM): New definition
  10261. * src/HttpResponseCommand.cc
  10262. (handleDefaultEncoding): Continue download sequence in new
  10263. non-segmented download.
  10264. * src/FileAllocationEntry.h
  10265. (_nextDownloadCommand): New variable.
  10266. * src/DownloadCommand.cc
  10267. (prepareForNextSegment): Create ChecksumCommand if checksum is
  10268. available.
  10269. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  10270. * src/IteratableChecksumValidator.h,
  10271. src/IteratableChecksumValidator.cc: New class.
  10272. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  10273. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10274. Change file mode to 666:
  10275. * src/common.h (OPEN_MODE): New definition.
  10276. * src/File.cc
  10277. * src/Util.cc
  10278. * src/Directry.cc
  10279. * src/AbstractDiskWriter.cc
  10280. Change the level of log message "download aborted" to debug:
  10281. * src/PeerAbstractCommand.cc (execute)
  10282. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  10283. * src/TrackerWatcherCommand.cc
  10284. (createCommand): Sleep some seconds after request failed.
  10285. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  10286. then abort tracker request.
  10287. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10288. * Added the simultaneous download feature.
  10289. * src/main.cc: Print "Exception caught: " when exception is caught.
  10290. Use CUIDCounter instead of BtRuntime::getNewCuid():
  10291. * src/ActivePeerConnectionCommand.cc
  10292. * src/PeerInteractionCommand.cc
  10293. * src/BtRuntime.h
  10294. (cuidCounter): Removed.
  10295. (getNewCuid): Removed.
  10296. * src/DownloadEngineFactory.cc
  10297. * src/PeerListenCommand.cc
  10298. * src/TrackerUpdateCommand.cc
  10299. * src/PeerInitiateConnectionCommand.cc
  10300. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10301. * src/PeerAbstractCommand.cc
  10302. (onAbort): Call PeerStorage::returnPeer()
  10303. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  10304. (incomingPeers): New variable.
  10305. (addIncomingPeer): New function.
  10306. (returnPeer): New function.
  10307. (onErasingPeer): New function.
  10308. (addPeer): push_back -> push_front
  10309. (getActivePeers): Rewritten.
  10310. (calculateStat): Rewritten.
  10311. * src/PeerStorage.h
  10312. (TransferStat::copy): New function.
  10313. (TransferStat::TransferStat): New function.
  10314. (TransferStat::operator=): New function.
  10315. (addIncomingPeer): New function.
  10316. (returnPeer): New function.
  10317. * src/PeerListenCommand.cc
  10318. (execute): Use PeerStorage::addIncomingPeer() instead of
  10319. Peer::addPeer().
  10320. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10321. Connect to a peer actively when download speed is lower than specified
  10322. speed in torrent download:
  10323. * src/ActivePeerConnectionCommand.h: New class.
  10324. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10325. * src/HttpRequest.cc (createRequest): url-encode user-agent
  10326. * src/main.cc: Fixed the bug that prevents download if .netrc
  10327. doesn't exist.
  10328. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10329. To cache resolved hostname:
  10330. * src/AbstractCommand.h, src/AbstractCommand.cc
  10331. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  10332. Added dns cache.
  10333. * src/FtpInitiateConnectionCommand.cc
  10334. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  10335. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  10336. NameResolver working without ares.
  10337. * src/TorrentRequestInfo.cc
  10338. (execute): Don't cache dns in torrent download.
  10339. * src/HttpInitiateConnectionCommand.cc
  10340. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  10341. * src/DNSCache.h: New class.
  10342. * src/UrlRequestInfo.cc
  10343. (execute): Use dns cache.
  10344. In http request, suppress port number in http request header if port
  10345. is 80 or 443:
  10346. * src/HttpRequest.cc (getHostText): Suppress port number in http
  10347. request header if port is 80 or 443.
  10348. (createProxyRequest): Allways send port number.
  10349. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10350. To add the command-line option which disables netrc support:
  10351. * src/OptionHandlerFactory.cc
  10352. (createOptionHandlers): Added PREF_NO_NETRC.
  10353. * src/main.cc: Added -n option.
  10354. * src/prefs.h (PREF_NO_NETRC): New definition.
  10355. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  10356. V_TRUE.
  10357. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  10358. is V_FALSE. This may get configurable in the future release.
  10359. To clear peer's error status by time basis:
  10360. * src/PeerAbstractCommand.cc
  10361. (onAbort): Call Peer::startBadCondition().
  10362. * src/Peer.h, src/Peer.cc
  10363. (error): Removed.
  10364. (_badConditionStartTime): New variable.
  10365. (_badConditionInterval): New variable. Initialized to 10 seconds.
  10366. (startBadCondition): New function.
  10367. (isGood): New function.
  10368. * src/DefaultPeerStorage.cc
  10369. (addPeer): Use Peer::isGood().
  10370. (FindFinePeer): Use Peer::isGood().
  10371. Always include port number in http request header:
  10372. * src/HttpRequest.cc (getHostText): Always include port number in
  10373. http request header.
  10374. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10375. To the ability to read options from a config file:
  10376. * src/main.cc: Command-line parameter validation is delegated to
  10377. OptionHandler class.
  10378. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  10379. * src/Option.h, src/Option.cc (clear): New function.
  10380. * src/OptionParser.h, src/OptionParser.cc: New class.
  10381. * src/OptionHandler.h: New class.
  10382. * src/NameMatchOptionHandler.h: New class.
  10383. * src/OptionHandlerImpl.h: New classes.
  10384. * src/prefs.h: '_' -> '-'
  10385. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  10386. (FTP_PASV): New definition.
  10387. * src/Util.h, src/Util.cc (getRealSize): New function.
  10388. To disable netrc support if .netrc file does not have correct
  10389. permissions:
  10390. * src/File.h, src/File.cc (mode): New function.
  10391. To prevent confidential information to be logged:
  10392. * src/HttpConnection.h, src/HttpConnection.cc
  10393. (eraseConfidentialInfo): New function.
  10394. (sendRequest): Call eraseConfidentialInfo().
  10395. (sendProxyRequest): Call eraseConfidentialInfo().
  10396. * src/main.cc: Validate permissions of .netrc file.
  10397. To add --user-agent command-line option:
  10398. * src/main.cc: Added new command line option: --user-agent
  10399. * src/prefs.h (PREF_USER_AGENT): New definition.
  10400. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  10401. parameter to HttpRequest object.
  10402. * src/AbstractProxyRequestCommand.cc
  10403. (executeInternal): Set user-agent option parameter to HttpRequest
  10404. object.
  10405. Marged the patches from Dan Fandrich.
  10406. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10407. Use filename and size from Metalink file instead of sending HEAD
  10408. request:
  10409. * src/UrlRequestInfo.h
  10410. (_filename): New variable.
  10411. (_totalLength): New variable.
  10412. (setTotalLength): New variable.
  10413. (setFilename): New variable.
  10414. * src/MetalinkRequestInfo.cc
  10415. (execute): Set filename and size to UrlRequestInfo
  10416. * src/UrlRequestInfo.cc
  10417. (execute): Use filename and size from Metalink instead of seding
  10418. HEAD request to servers.
  10419. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10420. To add the ability to resume downloading a partially downloaded file
  10421. which is downloaded from the beginning:
  10422. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  10423. takes this role.
  10424. * src/main.cc: Added -c option.
  10425. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  10426. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  10427. * src/prefs.h (PREF_CONTINUE): New definition.
  10428. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  10429. * src/DefaultDiskWriter.cc
  10430. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  10431. * src/AbstractDiskWriter.h
  10432. (glowFileAllocator): New variable.
  10433. * src/AbstractDiskWriter.cc
  10434. (openExistingFile): Now preallocate file space from the end of the
  10435. existing file if totalLength argument is specified and grater than 0.
  10436. * src/UrlRequestInfo.cc: If -c option is specified and the file
  10437. to download exists in local, continue the download of the file.
  10438. --allow-overwrite=true is assumed in this context.
  10439. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  10440. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  10441. Throw exception if --check-integrity=true is specified but chunk
  10442. checksums are not provided:
  10443. * src/UrlRequestInfo.cc
  10444. Do not print URLs to stdout:
  10445. * src/UrlRequestInfo.cc
  10446. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10447. * src/Request.h: Use AuthResolver to get authentication information.
  10448. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  10449. set to RequestFactory object.
  10450. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  10451. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  10452. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  10453. create Request object.
  10454. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  10455. To integrate Netrc into exsiting classes:
  10456. * src/Request.h
  10457. (_userDefinedAuthConfig): New variable.
  10458. (findNetrcAuthenticator): New function.
  10459. (segment): Removed.
  10460. (setUserDefinedAuthConfig): New function.
  10461. (resolveHttpAuthConfigItem): New function.
  10462. (resolveFtpAuthConfigItem): New function.
  10463. (resolveHttpProxyAuthConfigItem): New function.
  10464. * src/HttpRequest.h
  10465. (authConfig): Removed.
  10466. (proxyAuthConfig): Removed.
  10467. (setAuthConfig): Removed.
  10468. (setProxyAuthConfig): Removed.
  10469. * src/UrlRequest.h
  10470. (getHeadResult): Added a parameter: authConfigHandle
  10471. * src/common.h
  10472. (SingletonHolder.h): New include.
  10473. * src/main.cc
  10474. (Netrc.h): New include.
  10475. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  10476. Added initial value of PREF_NETRC_PATH.
  10477. Added the initialization of netrc.
  10478. * src/AuthConfig.h: New class.
  10479. * src/prefs.h
  10480. (PREF_NETRC_PATH): New definition.
  10481. * src/HttpAuthConfig.h: Removed.
  10482. * src/Netrc.cc
  10483. (getRequiredNextToken): New function.
  10484. (skipMacdef): New function.
  10485. (parse): Rewritten.
  10486. * src/Netrc.h
  10487. (getRequiredNextToken): New function.
  10488. (skipMacdef): New function.
  10489. * src/Util.h, src/Util.cc
  10490. (getHomeDir): New function.
  10491. * src/TrackerWatcherComand.cc
  10492. (createRequestCommand): Use AuthConfig.
  10493. * src/FtpConnection.cc
  10494. (sendUser): Use Request::resolveFtpAuthConfigItem().
  10495. (sendPass): Use Request::resolveFtpAuthConfigItem().
  10496. * src/Request.cc
  10497. (findNetrcAuthenticator): New function.
  10498. (resolveHttpAuthConfigItem): New function.
  10499. (resolveFtpAuthConfigItem): New function.
  10500. (resolveHttpProxyAuthConfigItem): New function.
  10501. * src/UrlRequestInfo.cc: Use AuthConfig.
  10502. * src/HttpRequest.cc
  10503. (createRequest): Use authConfig.
  10504. (getProxyAuthString): Use authConfig.
  10505. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  10506. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  10507. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10508. To reduce overhead to find commands whose socket is either
  10509. readable or writable in the download engine loop:
  10510. * src/Command.h, src/Command.cc
  10511. (STATUS): New enum.
  10512. (status): New variable.
  10513. (statusMatch): New function.
  10514. (setStatusActive): New function.
  10515. (setStatusInactive): New function.
  10516. * src/DownloadEngine.h, src/DownloadEngine.cc
  10517. (executeCommand): New function.
  10518. (run): Simplified.
  10519. (waitData): Call Command::setStatusActive() when command's socket is
  10520. readable or writable.
  10521. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10522. To handle Segment as SegmentHandle:
  10523. * src/AbstractCommand.cc (execute): Rewritten.
  10524. * src/SegmentMan.h: Segment -> SegmentHandle
  10525. Introducded HttpResponse class, HttpRequest class to improve code
  10526. extensiveness and make it clear:
  10527. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  10528. HttpResponse class.
  10529. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  10530. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  10531. * src/HttpConnection.cc: Contruction of http request were moved to
  10532. HttpRequest class.
  10533. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  10534. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  10535. * src/HttpAuthConfig.h: New class.
  10536. * src/Range.h: New class.
  10537. To make FtpTunnel{Request, Response}Command and
  10538. HttpProxy{Request, Response}Command derived from
  10539. AbstractProxy{Request, Response}Command:
  10540. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  10541. Derived from AbstractProxyRequestCommand class.
  10542. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  10543. Derived from AbstractProxyResponseCommand class.
  10544. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  10545. Derived from AbstractProxyRequestCommand class.
  10546. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  10547. Derived from AbstractProxyResponseCommand class.
  10548. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  10549. : New class.
  10550. * src/AbstractProxyResponseCommand.h,
  10551. src/AbstractProxyResponseCommand.cc: New class.
  10552. To add netrc support:
  10553. * src/Netrc.h, src/Netrc.cc: New class.
  10554. * src/Util.h, src/Util.cc (split): New function.
  10555. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  10556. "Content-Range" header instead of "Range" header.
  10557. * src/HttpHeader.h
  10558. (getStatus): Removed.
  10559. (setStatus): Removed.
  10560. * src/Segment.h
  10561. (getPositionToWrite): New function.
  10562. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10563. * src/HttpHeader.h
  10564. (Range.h): New include.
  10565. (status): New variable.
  10566. (HttpHeader): Initialized status with 0.
  10567. (getStatus): New function.
  10568. (setStatus): New function.
  10569. (getRange): New function.
  10570. (HttpHeaderHandle): New function.
  10571. * src/HttpHeader.cc
  10572. (getRange): New function.
  10573. * src/Request.h
  10574. (RequestWeakHandle): New definition.
  10575. * src/HttpConnection.h
  10576. (HttpConnectionHandle): New type definition.
  10577. * src/HttpConnection.cc
  10578. (receiveResponse): Set HTTP status to headers.
  10579. * src/main.cc
  10580. (showUsage): Fixed typo.
  10581. * src/Segment.h
  10582. (SegmentHandle): New type definition.
  10583. * src/BitfieldMan.h
  10584. (getMissingUnusedLength): New function.
  10585. * src/BitfieldMan.cc
  10586. (getMissingUnusedLength): New function.
  10587. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10588. To fix static initialization order problem:
  10589. * src/BitfieldManFactory.h
  10590. (defaultRandomizer): Removed.
  10591. (factory): New variable.
  10592. (getNewFactory): Removed.
  10593. (getFactoryInstance): New function.
  10594. (setDefaultRandomizer): Rewritten.
  10595. (getDefaultRandomizer): Rewritten.
  10596. * src/BitfieldManFactory.cc
  10597. (defaultRandomizer): Removed.
  10598. (factory): Initialized to 0.
  10599. (BitfieldManFactory): Initialized randomizer to 0.
  10600. * src/DefaultPieceStorage.cc
  10601. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  10602. * src/Peer.cc
  10603. (Peer): getNewFactory() -> getFactoryInstance()
  10604. * src/SegmentMan.cc
  10605. (initBitfield): getNewFactory() -> getFactoryInstance()
  10606. * src/Piece.cc
  10607. (Piece): getNewFactory() -> getFactoryInstance()
  10608. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10609. To fix the bug that causes crash on Max OS X:
  10610. * src/SimpleRandomizer.h
  10611. (getInstance): Create new instance if the static variable is null.
  10612. * src/SimpleRandomizer.cc
  10613. (randomizer): Initialized to 0.
  10614. * src/BitfieldManFactory.h
  10615. (getNewFactory): Removed the call to setRandomizer().
  10616. To fix the miscalculation of the range of checksum:
  10617. * src/BitfieldMan.h
  10618. (isBitSetOffsetRange): New function.
  10619. * src/BitfieldMan.cc
  10620. (isBitSetOffsetRange): New function.
  10621. * src/SegmentMan.cc
  10622. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  10623. Use bitfield->getBlockLength() instead of segment.segmentLength.
  10624. * Release 0.10.1
  10625. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10626. To lower CPU usage in BitTorrent download when --max-upload-limit
  10627. command-line option specified:
  10628. * src/DefaultBtMessageDispatcher.cc
  10629. (sendMessages): Calculate uploading speed only when current message
  10630. is uploading data and is not sent yet.
  10631. * src/DefaultPeerStorage.h
  10632. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  10633. * src/HttpResponseCommand.cc
  10634. (handleDefaultEncoding): Added the cast to int32_t to itos.
  10635. This fixes compile error in Soralis 10.
  10636. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10637. To fix segfault in Metalink download:
  10638. * src/UrlRequestInfo.h
  10639. (filename): Removed.
  10640. (totalLength): Removed.
  10641. (setTotalLength): Removed.
  10642. (setFilename): Removed.
  10643. * src/MetalinkRequestInfo.cc
  10644. (execute): Do not set filename and totalLength to reqInfo.
  10645. Set chunk checksum to reqInfo if it is not null.
  10646. * src/HttpResponseCommand.cc
  10647. (executeInternal): Fixed filename in log.
  10648. (handleDefaultEncoding): Removed the call to initBitfield() and
  10649. markAllPiecesDone().
  10650. (handleOtherEncoding): Added HEAD method handling.
  10651. * src/FtpNegotiateCommand.cc
  10652. (executeInternal): Added SEQ_HEAD_OK handling.
  10653. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  10654. return false.
  10655. * src/FtpNegotiateCommand.h
  10656. (SEQ_HEAD_OK): New definition.
  10657. * src/SegmentMan.cc
  10658. (initBitfield): Delete bitfield.
  10659. (isChunkChecksumValidationReady): Fixed the condition.
  10660. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  10661. works fine.
  10662. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10663. * src/Xml2MetalinkProcessor.h
  10664. (xpathExists): New function.
  10665. * src/Xml2MetalinkProcessor.cc
  10666. (xpathExists): New function.
  10667. Not to send HEAD request if filename and size are available in Metalink
  10668. file:
  10669. * src/UrlRequestInfo.h
  10670. (filename): New variable.
  10671. (totalLength): New variable.
  10672. (setTotalLength): New function.
  10673. (setFilename): New function.
  10674. * src/MetalinkRequestInfo.cc
  10675. (execute): Set filename and size to UrlRequestInfo.
  10676. * src/MetalinkEntry.cc
  10677. (MetalinkEntry): Initialize size with 0.
  10678. * src/UrlRequestInfo.cc
  10679. (execute): Set filename and size to SegmentMan.
  10680. Not to download rest of the files after selected files are downloaded
  10681. in BitTorrent:
  10682. * src/PieceStorage.h
  10683. (allDownloadFinished): New function.
  10684. * src/DefaultBtAnnounce.cc
  10685. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  10686. downloadFinished.
  10687. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  10688. * src/DefaultPieceStorage.cc
  10689. (completePiece): Use allDownloadFinished instead of downloadFinished.
  10690. Commented out the call to finishSelectiveDownloadingMode().
  10691. (downloadFinished): Call isFilteredAllBitSet() instead of
  10692. isAllBitSet().
  10693. (allDownloadFinished): New function.
  10694. * src/DefaultBtInteractive.cc
  10695. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  10696. downloadFinished().
  10697. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  10698. * src/TorrentDownloadEngine.cc
  10699. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  10700. * src/BitfieldMan.h
  10701. (isFilteredAllBitSet): New function.
  10702. * src/ShareRatioSeedCriteria.h
  10703. (PieceStorage.h): New include.
  10704. (pieceStorage): New variable.
  10705. (evaluate):
  10706. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  10707. * src/BitfieldMan.cc
  10708. (isFilteredAllBitSet): New function.
  10709. (isAllBitSet): Filter is not took into account.
  10710. Rename --force-truncate as --allow-overwrite:
  10711. * src/TorrentRequestInfo.cc
  10712. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  10713. * src/main.cc
  10714. (showUsage): --force-truncate -> --allow-overwrite
  10715. * src/message.h
  10716. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  10717. * src/prefs.h
  10718. (PREF_FORCE_TRUNCATE): Removed.
  10719. (PREF_ALLOW_OVERWRITE): New definition.
  10720. * src/SegmentMan.cc
  10721. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  10722. * src/MetalinkRequestInfo.cc
  10723. (execute): Queueing message are now logged in info level.
  10724. * src/common.h
  10725. (LONG_LONG_MAX): Removed.
  10726. (LONG_LONG_MIN): Removed.
  10727. * src/HttpResponseCommand.cc
  10728. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  10729. * src/FtpNegotiateCommand.cc
  10730. (recvSize): LONG_LONG_MAX -> INT64_MAX
  10731. * src/main.cc
  10732. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  10733. command-line option.
  10734. (main): Added --check-integriy and --realtime-chunk-checksum
  10735. command-line option.
  10736. --force-truncate -> --allow-overwrite
  10737. Set initial value of --check-integrity option to false.
  10738. Don't show usage when error occurs while persing command-line options.
  10739. Removed deprecated --upload-limit option.
  10740. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10741. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  10742. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  10743. * src/BtAllowedFastMessage.cc:
  10744. * src/BtBitfieldMessage.cc
  10745. * src/BtCancelMessage.cc
  10746. * src/BtChokeMessage.cc
  10747. * src/BtHaveAllMessage.cc
  10748. * src/BtHaveMessage.cc
  10749. * src/BtHaveNoneMessage.cc
  10750. * src/BtInterestedMessage.cc
  10751. * src/BtNotInterestedMessage.cc
  10752. * src/BtPieceMessage.cc
  10753. * src/BtPortMessage.cc
  10754. * src/BtRejectMessage.cc
  10755. * src/BtRequestMessage.cc
  10756. * src/BtSuggestPieceMessage.cc
  10757. * src/BtUnchokeMessage.cc
  10758. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  10759. files are affected.
  10760. * src/ChunkChecksumValidator.cc
  10761. * src/SegmentMan.cc
  10762. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10763. To add chunk checksum validation:
  10764. * src/MetalinkEntry.h
  10765. (MetalinkChunkChecksum.h): New include.
  10766. (chunkChecksum): New variable.
  10767. * src/Request.h
  10768. (method): New variable.
  10769. (setMethod): New function.
  10770. (getMethod): New function.
  10771. (METHOD_GET): New static constant.
  10772. (METHOD_HEAD): New static constant.
  10773. * src/Xml2MetalinkProcessor.h
  10774. (getPieceHash): New function.
  10775. * src/PieceStorage.h
  10776. (markAllPiecesDone): New function.
  10777. (checkIntegrity): New function.
  10778. * src/FileAllocator.h
  10779. (NullFileAllocationMonitor.h): New include.
  10780. (FileAllocator): Initialize fileAllocationMonitor with new
  10781. NullFileAllocationMonitor().
  10782. * src/MultiDiskAdaptor.h
  10783. (messageDigest.h): Remove include.
  10784. (ctx): Removed.
  10785. (hashUpdate): Added ctx.
  10786. (MultiDiskAdaptor): Removed ctx.
  10787. (sha1Sum): Renamed as messageDigest.
  10788. (messageDigest): New function.
  10789. * src/UrlRequestInfo.h
  10790. (HeadResult): New class.
  10791. (digestAlgo): New variable.
  10792. (chunkChecksumLength): New variable.
  10793. (chunkChecksums): New variable.
  10794. (getHeadResult): New function.
  10795. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  10796. (setDigestAlgo): New function.
  10797. (setChunkChecksumLength): New function.
  10798. (setChunkChecksums): New function.
  10799. * src/DefaultPieceStorage.cc
  10800. (DiskAdaptorWriter.h): New include.
  10801. (ChunkChecksumValidator.h): New include.
  10802. (markAllPiecesDone): New function.
  10803. (checkIntegrity): New function.
  10804. * src/DefaultBtContext.h
  10805. (getPieceHashes): New function.
  10806. * src/TorrentRequestInfo.cc
  10807. (execute): Try to validate chunk checksum if file already exists and
  10808. .aria2 file doesn't there and user allows aria2 to overwrite it.
  10809. * src/messageDigest.h
  10810. (~MessageDigestContext): Added digestFree().
  10811. * src/MetalinkRequestInfo.cc
  10812. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  10813. * src/DiskAdaptor.h
  10814. (messageDigest.h): New include.
  10815. (sha1Sum): Renamed as messageDigest.
  10816. (messageDigest): New function.
  10817. * src/DownloadCommand.h
  10818. (PeerStat.h): New include.
  10819. (maxDownloadSpeedLimit): New variable.
  10820. (startupIdleTime): New variable.
  10821. (lowestDownloadSpeedLimit): New variable.
  10822. (peerStat): New variable.
  10823. (setMaxDownloadSpeedLimit): New function.
  10824. (setStartupIdleTime): New function.
  10825. (setLowestDownloadSPeedLimit): New function.
  10826. * src/BtContext.h
  10827. (getPieceHashes): New function.
  10828. * src/main.cc
  10829. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  10830. option to true for testing purpose.
  10831. * src/BtPieceMessage.cc
  10832. (checkPieceHash): Use messageDigest
  10833. * src/DownloadEngine.cc
  10834. (SetDescriptor): Removed.
  10835. (AccumulateActiveCommand): Removed.
  10836. (waitData): Rewritten.
  10837. (updateFdSet): Rewritten.
  10838. * src/MultiDiskAdaptor.cc
  10839. (hashUpdate): Added ctx.
  10840. (sha1Sum): Renamed as messageDigest.
  10841. (messageDigest): New function.
  10842. * src/BitfieldMan.h
  10843. (isBitRangeSet): New function.
  10844. (unsetBitRange): New function.
  10845. * src/ByteArrayDiskWriter.h
  10846. (sha1Sum): Renamed as messageDigest.
  10847. (messageDigest): New function.
  10848. * src/ConsoleDownloadEngine.cc
  10849. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  10850. * src/DiskWriter.h
  10851. (messageDigest.h): New include.
  10852. (sha1Sum): Renamed as messageDigest.
  10853. (messageDigest): New function.
  10854. * src/ChunkChecksumValidator.h: New class.
  10855. * src/DiskAdaptorWriter.h: New class.
  10856. * src/prefs.h
  10857. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  10858. (PREF_CHECK_INTEGRITY): New definition.
  10859. * src/HttpResponseCommand.cc
  10860. (handleDefaultEncoding): Added method "HEAD" handling.
  10861. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  10862. (handleOtherEncoding):
  10863. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  10864. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  10865. startupIdleTime, lowestDownloadSpeedLimit to command.
  10866. * src/SegmentMan.h
  10867. (getSegmentEntryByIndex): New function.
  10868. (getSegmentEntryByCuid): New function.
  10869. (getSegmentEntryIteratorByCuid): New function.
  10870. (diskWriter): DiskWriter -> DiskWriterHandle
  10871. (pieceHashes): New variable.
  10872. (chunkHashLength): New variable.
  10873. (digestAlgo): New variable.
  10874. (FindPeerStat): Removed.
  10875. (getPeerStat): Rewritten.
  10876. (markAllPiecesDone): New function.
  10877. (checkIntegrity): New function.
  10878. (tryChunkChecksumValidation): New function.
  10879. (isChunkChecksumValidationReady): New function.
  10880. * src/BitfieldMan.cc
  10881. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  10882. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  10883. blocks to 0.
  10884. (isBitRangeSet): New function.
  10885. (unsetBitRange): New function.
  10886. * src/FtpNegotiateCommand.cc
  10887. (executeInternal): Set maxDownloadSpeedLimit,
  10888. startupIdleTime, lowestDownloadSpeedLimit to command.
  10889. (recvSize): Added method "HEAD" handling.
  10890. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  10891. * src/AbstractSingleDiskAdaptor.cc
  10892. (sha1Sum): Renamed as messageDigest.
  10893. (messageDigest): New function.
  10894. * src/AbstractSingleDiskAdaptor.h
  10895. (sha1Sum): Renamed as messageDigest.
  10896. (messageDigest): New function.
  10897. * src/Util.h
  10898. (indexRange): New function.
  10899. * src/MetalinkEntry.cc
  10900. (MetalinkEntry): Initialized chunkChecksum to 0.
  10901. * src/ShaVisitor.cc
  10902. (~ShaVisitor): Removed the call to ctx.digestFree().
  10903. * src/SegmentMan.cc
  10904. (ChunkChecksumValidator.h): New include.
  10905. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  10906. to DIGEST_ALGO_SHA1.
  10907. (~SegmentMan): Removed diskWriter.
  10908. (FindSegmentEntryByIndex): Removed.
  10909. (FindSegmentEntryByCuid): Removed.
  10910. (checkoutSegment): Rewritten.
  10911. (findSlowerSegmentEntry): Rewritten.
  10912. (getSegment): Rewritten.
  10913. (updateSegment): Rewritten.
  10914. (completeSegment): Rewritten.
  10915. (markAllPiecesDone): New function.
  10916. (checkIntegrity): New function.
  10917. (isChunkChecksumValidationReady): New function.
  10918. (tryChunkChecksumValidation): New function.
  10919. * src/Xml2MetalinkProcessor.cc
  10920. (getEntry): Get size and set it to entry.
  10921. Get chunk checksum and set it to entry.
  10922. (getPieceHash): New function.
  10923. * src/Util.cc
  10924. (sha1Sum): Removed ctx.digestFree()
  10925. (fileChecksum): Removed ctx.digestFree()
  10926. (indexRange): New function.
  10927. * src/Request.cc
  10928. (METHOD_GET): New variable.
  10929. (METHOD_HEAD): New variable.
  10930. (Request): Added method.
  10931. * src/UrlRequestInfo.cc
  10932. (FatalException.h): New include.
  10933. (message.h): New include.
  10934. (operator<<): Added operator<< for class HeadResult.
  10935. (getHeadResult): New function.
  10936. (execute): Get filename and size in separate download engine.
  10937. * src/ChunkChecksumValidator.cc: New class.
  10938. * src/DownloadCommand.cc:
  10939. (DownloadCommand): Added peerStat.
  10940. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  10941. the value from Option.
  10942. The buffer size is now 16KB.
  10943. Use peerStat member instead of getting it from SegmentMan.
  10944. Use startupIdleTime member instead of gettingit from Option.
  10945. Added chunk checksum validation.
  10946. * src/AbstractDiskWriter.cc
  10947. (AbstractDiskWriter): Removed ctx.
  10948. (~AbstractDiskWriter): Removed ctx.digestFree()
  10949. (writeDataInternal): Returns the return value of write.
  10950. (readDataInternal): Returns the return value of read.
  10951. (sha1Sum): Renamed as messageDigest
  10952. (messageDigest): New function.
  10953. * src/AbstractDiwkWriter.h
  10954. (messageDigest.h): Removed include.
  10955. (ctx): Removed.
  10956. (sha1Sum): Renamed as messageDigest
  10957. (messageDigest): New function.
  10958. * src/DefaultPieceStorage.h
  10959. (markAllPiecesDone): New function.
  10960. (checkIntegrity): New function.
  10961. * src/NullFileAllocationMonitor.h: New class.
  10962. * src/MetalinkChunkChecksum.h: New class.
  10963. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10964. To decrease CPU usage in bittorrent download, calculation results in
  10965. BitfieldMan were cached and realtime fetching PeerObject was removed
  10966. with WeakHandle introduced. Option values are set to the objects
  10967. by setter before download begins.
  10968. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  10969. * src/DefaultBtRequestFactory.h
  10970. (dispatcher): BtMessageDispatcherHandle ->
  10971. BtMessageDispatcherWeakHandle.
  10972. (messageFactory): New variable.
  10973. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  10974. BtMessageDispatcherWeakHandle.
  10975. (setBtMessageFactory): New function.
  10976. * src/DefaultBtMessageDispatcher.cc:
  10977. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  10978. from Option.
  10979. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  10980. feating the value from Option.
  10981. Use messageFactory member.
  10982. * src/PeerInteractionCommand.cc
  10983. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  10984. Add reverse dependencies to factory object.
  10985. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  10986. dispatcher.
  10987. Set messageFactory to receiver.
  10988. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  10989. btInteractive.
  10990. Set receiver to peerObject.
  10991. Set maxDownloadSpeedLimit to this.
  10992. (executeInternal): Use maxDownloadSpeedLimit member.
  10993. * src/BtChokeMessage.cc
  10994. (doReceivedAction): Use dispatcher, requestFactory member.
  10995. (onSendComplete): Use dispatcher member.
  10996. * src/PeerInteractionCommand.h
  10997. (maxDownloadSpeedLimit): New variable.
  10998. * src/DefaultBtMessageReceiver.h
  10999. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11000. (dispatcher):
  11001. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11002. (messageFactory): New variable.
  11003. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11004. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11005. (setDispatcher):
  11006. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11007. (setBtMessageFactory): New function.
  11008. * src/DefaultBtInteractive.cc
  11009. (initiateHandshake): Use messageFactory member.
  11010. (addBitfieldMessageToQueue): Use messageFactory member.
  11011. (addAllowedFastMessageToQueue): Use messageFactory member.
  11012. (decideChoking): Use messageFactory member.
  11013. (checkHave): Use messageFactory member.
  11014. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  11015. (receiveMessages): Use maxDownloadSpeedLimit member.
  11016. (decideInterest): Use messageFactory member.
  11017. * src/BtRequestMessage.cc
  11018. (doReceivedAction): Use messageFactory, dispatcher member.
  11019. (onQueued): Use dispatcher member.
  11020. * src/BtPieceMessage.cc
  11021. (doReceivedAction): Use dispatcher member.
  11022. (send): Use peerConnection member.
  11023. (onWrongPiece): Use requestFactory member.
  11024. (handleChokingEvent): Use messageFactory, dispatcher member.
  11025. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  11026. * src/BtMessageDispatcher.h
  11027. (BtMessageDispatcherWeakHandle): New type definition.
  11028. * src/SimpleBtMessage.cc
  11029. (send): Use peerConnection member.
  11030. * src/BtRejectMessage.cc
  11031. (doReceivedAction): Use dispatcher member.
  11032. * src/DefaultBtMessageDispatcher.h
  11033. (Option.h): Removed include.
  11034. (messageFactory): New variable.
  11035. (option): Removed.
  11036. (maxUploadSpeedLimit): New variable.
  11037. (requestTimeout): New variable.
  11038. (DefaultBtMessageDispatcher): Removed option.
  11039. Added maxUploadSpeedLimit, requestTimeout.
  11040. (setOption): Removed.
  11041. (getOption): Removed.
  11042. (setMaxUploadSpeedLimit): New function.
  11043. (setRequestTimeout): New function.
  11044. (setBtMessageFactory): New function.
  11045. * src/DefaultBtInteractive.h
  11046. (btMessageReceiver):
  11047. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11048. (dispatcher):
  11049. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11050. (btRequestFactory):
  11051. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11052. (peerConnection):
  11053. PeerConnectionHandle -> PeerConnectionWeakHandle
  11054. (messageFactory): New variable.
  11055. (option): Removed.
  11056. (keepAliveInterval): New variable.
  11057. (maxDownloadSpeedLimit): New variable.
  11058. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  11059. (setBtMessageReceiver):
  11060. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11061. (setDispatcher):
  11062. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11063. (setBtRequestFactory):
  11064. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11065. (setPeerConnection):
  11066. PeerConnectionHandle -> PeerConnectionWeakHandle
  11067. (setOption): Removed.
  11068. (setKeepAliveInterval): New function.
  11069. (setMaxDownloadSpeedLimit): New function.
  11070. (setBtMessageFactory): New function.
  11071. * src/BitfieldMan.h
  11072. (cachedNumMissingBlock): New variable.
  11073. (cachedNumFilteredBlock): New variable.
  11074. (cachedCompletedLength): New variable.
  11075. (cachedFilteredComletedLength): New variable.
  11076. (cachedFilteredTotalLength): New variable.
  11077. (countMissingBlockNow): New function.
  11078. (countFilteredBlockNow): New function.
  11079. (getFilteredTotalLengthNow): New function.
  11080. (getCompletedLengthNow): New function.
  11081. (getFilteredCompletedLengthNow): New function.
  11082. (updateCache): New function.
  11083. * src/AbstractBtMessage.h
  11084. (BtMessageDispatcher.h): New include.
  11085. (PeerConnection.h): New include.
  11086. (BtRequestFactory.h): New include
  11087. (BtMessageFactory.h): New include.
  11088. (dispatcher): New variable.
  11089. (messageFactory): New variable.
  11090. (peerConnection: New variable.
  11091. (setBtMessageDispatcher): New function.
  11092. (setPeerConnection): New function.
  11093. (setBtMessageFactory): New function.
  11094. (setBtRequestFactory): New function.
  11095. * src/DefaultBtMessageFactory.cc
  11096. (setCommonProperty): Set dispatcher, requestFactory, this,
  11097. peerConnection to msg.
  11098. * src/BtRegistry.h
  11099. (BT_MESSAGE_RECEIVER): New macro.
  11100. * src/PeerConnection.h
  11101. (PeerConnectionWeakHandle): New type definition.
  11102. * src/BtMessageFactory.h
  11103. (BtMessageFactoryWeakHandle): New type definition.
  11104. * src/BitfieldMan.cc
  11105. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  11106. cachedCompletedLength, cachedFilteredComletedLength,
  11107. cachedFilteredTotalLength.
  11108. Call updateCache().
  11109. (countMissingBlock): Return cachedNumMissingBlock.
  11110. (countMissingBlockNow): New function.
  11111. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  11112. (countFilteredBlockNow): New function.
  11113. (setBit): Call updateCache().
  11114. (unsetBit): Call updateCache().
  11115. (setBitfield): Call updateCache().
  11116. (clearAllBit): Call updateCache().
  11117. (setAllBit): Use setBitInternal instead of setBit.
  11118. Call updateCache().
  11119. (addFilter): Call updateCache().
  11120. (enableFilter): Call updateCache().
  11121. (disableFilter): Call updateCache().
  11122. (clearFilter): Call updateCache().
  11123. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  11124. (getFilteredTotalLengthNow): New function.
  11125. (getCompletedLength): Return cachedCompletedLength.
  11126. (getCompletedLengthNow): New function.
  11127. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  11128. (getFilteredCompletedLengthNow): New function.
  11129. (updateCache): New function.
  11130. * src/BtMessageReceiver.h
  11131. (BtMessageReceiverWeakHandle): New type definition.
  11132. * src/DefaultBtMessageReceiver.cc
  11133. (receiveHandshake): Use messageFactory member.
  11134. (sendHandshake): Use messageFactory member.
  11135. (receiveMessage): Use messageFactory member.
  11136. * src/DefaultBtMessageFactory.h
  11137. (dispatcher): New variable.
  11138. (requestFactory): New variable.
  11139. (peerConnection): New variablle.
  11140. (setBtMessageDispatcher): New function.
  11141. (setBtRequestFactory): New function.
  11142. (setPeerConnection): New function.
  11143. * src/SharedHandle.h
  11144. (RefCount): New class.
  11145. (WeakHandle): New class.
  11146. * src/PeerObject.h
  11147. (BtMessageReceiver.h): New include.
  11148. (PeerObject): Added btMessageReceiver.
  11149. (btMessageReceiver): New variable.
  11150. * src/Util.cc
  11151. (countBit): Simplified.
  11152. * src/BtCancelMessage.cc
  11153. (doReceivedAction): Use dispatcher member.
  11154. * src/BtRequestFactory.h
  11155. (BtRequestFactoryWeakHandle): New type definition.
  11156. * src/PeerStorage.h
  11157. (downloadSpeed): int -> uint32_t
  11158. (uploadSpeed): int -> uint32_t
  11159. (sessionDownloadLength): long long int -> uint64_t
  11160. (sessionUploadLength): long long int -> uint64_t
  11161. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11162. To add RecoverableException, FatalException:
  11163. * src/AbstractCommand.cc
  11164. (onAbort): Exception -> RecoverableException
  11165. * src/PeerAbstractCommand.h
  11166. (RecoverableException.h): New include.
  11167. (onAbort): Exception -> RecoverableException.
  11168. * src/PeerInteractionCommand.cc
  11169. (onAbort): Exception -> RecoverableException.
  11170. * src/PeerAbstractCommand.cc
  11171. (execute): Exception -> RecoverableException.
  11172. (onAbort): Exception -> RecoverableException.
  11173. * src/TorrentRequestInfo.cc
  11174. (execute): Exception -> RecoverableException.
  11175. * src/MetalinkRequestInfo.cc
  11176. (execute): Exception -> RecoverableException.
  11177. * src/MetaFileUtil.cc: RecoverableException.
  11178. * src/AbstractCommand.h
  11179. (onAbort): Exception -> RecoverableException.
  11180. * src/DlRetryEx.h: Exception -> RecoverableException.
  11181. * src/DlAbortEx.h: Exception -> RecoverableException.
  11182. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  11183. * src/Util.cc: Exception -> RecoverableException.
  11184. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  11185. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  11186. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  11187. To make ID static const int
  11188. * src/BtInterestedMessage.h
  11189. (ID_t): Removed.
  11190. (ID): New variable.
  11191. (getId): Made non-const.
  11192. * src/BtPieceMessage.h
  11193. (ID_t): Removed.
  11194. (ID): New variable.
  11195. (getId): Made non-const.
  11196. * src/BtChokeMessage.h
  11197. (ID_t): Removed.
  11198. (ID): New variable.
  11199. (getId): Made non-const.
  11200. * src/BtHaveAllMessage.h
  11201. (ID_t): Removed.
  11202. (ID): New variable.
  11203. (getId): Made non-const.
  11204. * src/BtKeepAliveMessage.h
  11205. (ID_t): Removed.
  11206. (ID): New variable.
  11207. (getId): Made non-const.
  11208. * src/BtHandshakeMessage.h
  11209. (ID): New variable.
  11210. (getId): Made non-const.
  11211. * src/BtSuggestPieceMessage.h
  11212. (ID_t): Removed.
  11213. (ID): New variable.
  11214. (getId): Made non-const.
  11215. * src/BtPortMessage.h
  11216. (ID_t): Removed.
  11217. (ID): New variable.
  11218. (getId): Made non-const.
  11219. * src/AbstractBtMessage.h
  11220. (id): Removed.
  11221. (AbstractBtMessage): Removed id.
  11222. (getId): Removed.
  11223. * src/BtHaveMessage.h
  11224. (ID_t): Removed.
  11225. (ID): New variable.
  11226. (getId): Made non-const.
  11227. * src/BtAllowedFastMessage.h
  11228. (ID_t): Removed.
  11229. (ID): New variable.
  11230. (getId): Made non-const.
  11231. * src/BtCancelMessage.h
  11232. (ID_t): Removed.
  11233. (ID): New variable.
  11234. (getId): Made non-const.
  11235. * src/BtNotInterestedMessage.h
  11236. (ID_t): Removed.
  11237. (ID): New variable.
  11238. (getId): Made non-const.
  11239. * src/BtChokeMessage.h
  11240. (ID_t): Removed.
  11241. (ID): New variable.
  11242. (getId): Made non-const.
  11243. * src/BtRejectMessage.h
  11244. (ID_t): Removed.
  11245. (ID): New variable.
  11246. (getId): Made non-const.
  11247. * src/BtBitfieldMessage.h
  11248. (ID_t): Removed.
  11249. (ID): New variable.
  11250. (getId): Made non-const.
  11251. * src/BtUnchokeMessage.h
  11252. (ID_t): Removed.
  11253. (ID): New variable.
  11254. (getId): Made non-const.
  11255. * src/BtRequestMessage.h
  11256. (ID_t): Removed.
  11257. (ID): New variable.
  11258. (getId): Made non-const.
  11259. * src/BtHaveMessage.h
  11260. (ID_t): Removed.
  11261. (ID): New variable.
  11262. (getId): Made non-const.
  11263. To add --force-truncate command-line option and a check whether
  11264. the file already exists:
  11265. * src/DirectDiskAdaptor.h
  11266. (getFilePath): Made virtual public.
  11267. * src/MultiDiskAdaptor.h
  11268. (File.h): New include.
  11269. (DiskWriterEntry::fileEntry): Made private.
  11270. (DiskWriterEntry::fileExists): New function.
  11271. (DiskWriterEntry::getFileEntry): New function.
  11272. (fileExists): New function.
  11273. (getFilePath): New function.
  11274. * src/TorrentRequestInfo.cc
  11275. (FatalException.h): New include.
  11276. (message.h): New include.
  11277. (RecoverableException.h): New include.
  11278. (execute): Added a check whether file is already exists or not.
  11279. * src/DiskAdaptor.h
  11280. (fileExists): New function.
  11281. (getFilePath): New function.
  11282. * src/main.cc
  11283. (showUsage): Added an explanation of --force-truncate command-line
  11284. option.
  11285. (main): Added --force-truncate command-line option.
  11286. * src/Exception.h
  11287. (setMsg): buf[256] -> buf[1024]
  11288. * src/CopyDiskWriter.h
  11289. (getFilePath): Made public virtual.
  11290. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  11291. (fileExists): New function.
  11292. * src/DownloadEngineFactory.cc
  11293. (newTorrentConsoleEngine): Don't open file here.
  11294. * src/message.h
  11295. (EX_FILE_ALREADY_EXISTS): New definition.
  11296. * src/prefs.h
  11297. (PREF_FOECE_TRUNCATE): New definition.
  11298. * src/HttpResponseCommand.cc
  11299. (handleDefaultEncoding): Added a check whether the file already exists.
  11300. * src/SegmentMan.h
  11301. (fileExists): New function.
  11302. (shouldCancelDownloadForSafety): New function.
  11303. * src/FtpNegotiateCommand.cc
  11304. (recvSize): Added a check whether the file already exists.
  11305. * src/AbstractSingleDiskAdaptor.cc
  11306. (File.h): New include.
  11307. (fileExists): New function.
  11308. * src/AbstractSingleDiskAdaptor.h
  11309. (getFilePath): Removed.
  11310. (fileExists): New function.
  11311. * src/SegmentMan.cc
  11312. (fileExists): New function.
  11313. (shouldCancelDownloadForSafety): New function.
  11314. To fix regression bug in torrent downloading:
  11315. * src/DefaultBtRequestFactory.cc
  11316. (doChokedAction): New function.
  11317. * src/DefaultBtRequestFactory.h
  11318. (doChokedAction): New function.
  11319. * src/DefaultBtMessageDispatcher.cc
  11320. (doChokedAction): Do not delete request if its target is in allowed
  11321. fast set.
  11322. * src/DefaultBtInteractive.cc
  11323. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  11324. (sendKeepAlive): Send keep alive message even if the outgoing message
  11325. queue is not empty.
  11326. (decideInterest): Simplified the code.
  11327. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  11328. it is already called when BtChokeMessage is received from a peer.
  11329. * src/BtRequestFactory.h
  11330. (doChokedAction): New function.
  11331. To clean up code:
  11332. * src/PeerInteractionCommand.h
  11333. (executeInternal): Added virtual keyword explicitly.
  11334. (prepareForRetry): Added virtual keyword explicitly.
  11335. (prepareForNextPeer): Added virtual keyword explicitly.
  11336. (onAbort): Added virtual keyword explicitly.
  11337. * src/RequestSlot.cc
  11338. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  11339. * src/BtPieceMessage.cc
  11340. (doReceivedAction): Added a debug log of piece's bitfield.
  11341. * src/Piece.h
  11342. (getBitfieldLength): New function.
  11343. * src/ByteArrayDiskWriter.cc
  11344. (clear): Added buf = 0 to avoid double free corruption.
  11345. * src/FileAllocator.cc
  11346. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  11347. Added cp.reset().
  11348. * src/BitfieldMan.h
  11349. (operator=): Rewritten.
  11350. * src/BitfieldMan.cc
  11351. (BitfieldMan): Initialized bitfield, useBitfield.
  11352. * src/PeerConnection.cc
  11353. (receiveMessage): Added a call to socket->readable() after getting
  11354. message length to avoid possible EOF.
  11355. * src/Util.cc
  11356. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  11357. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11358. To add an ability to pre-allocate file space:
  11359. * src/DirectDiskAdaptor.h: Rewritten.
  11360. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  11361. * src/MultiDiskAdaptor.h: Rewritten.
  11362. * src/DefaultPieceStorage.cc
  11363. (MultiDiskWriter.h): Removed include.
  11364. (PreAllocationDiskWriter.h): Removed include.
  11365. (FileAllocationMonitor.h): New include.
  11366. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  11367. (initStorage): Rewritten.
  11368. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11369. * src/FileAllocator.h: New class.
  11370. * src/FileAllocator.cc: New class.
  11371. * src/FileAllocationMonitor.h: New class.
  11372. * src/FileAllocationMonitor.cc: New class.
  11373. * src/ConsoleFileAllocationMonitor.h: New class.
  11374. * src/ConsoleFileAllocationMonitor.cc: New class.
  11375. * src/AbstractSingleDiskAdaptor.h: New class.
  11376. * src/AbstractSingleDiskAdaptor.cc: New class.
  11377. * src/DiskAdaptor.h
  11378. (Directory.h): Removed include.
  11379. (DiskWriter.h): Removed include.
  11380. (FileEntry.h): Removed include.
  11381. (diskWriter): Removed.
  11382. (DiskAdaptor): Removed diskWriter.
  11383. (openFile): Made pure virtual.
  11384. (closeFile): Made pure virtual.
  11385. (openExistingFile): Made pure virtual.
  11386. (initAndOpenFile): Made pure virtual.
  11387. (writeData): Made pure virtual.
  11388. (readData): Made pure virtual.
  11389. (sha1Sum): Made pure virtual.
  11390. (getStoreDir): Returns const reference of storeDir.
  11391. (DiskAdaptorHandle): New type definition.
  11392. * src/main.cc
  11393. (ConsoleFileAllocationMonitor.h): New include.
  11394. (showUsage): Added default value description of -s option.
  11395. Added the description of --file-allocation option.
  11396. (main): Set default value of --file-allocation option to 'none'.
  11397. Added --file-allocation command-line option.
  11398. Setup FileAllocationMonitorFactory.
  11399. * src/FtpInitiateConnectionCommand.cc
  11400. (executeInternal): Removed diskWriter related processing, which was
  11401. moved to FtpNegotiationCommand.cc.
  11402. * src/DirectDiskAdaptor.cc
  11403. (getFilePath): Made non-const.
  11404. * src/CopyDiskAdaptor.h
  11405. (DiskAdaptor.h): Removed include.
  11406. (DiskWriter.h): Removed include.
  11407. (AbstractSingleDiskAdaptor.h): New include.
  11408. (getFilePath): Made non-const. Added virtual keyword.
  11409. (CopyDiskAdaptor): Removed diskWriter.
  11410. (getTempFile): Returns const reference.
  11411. (CopyDiskAdaptorHandle): New type definition.
  11412. * src/ByteArrayDiskWriter.cc
  11413. (clear): Simplified.
  11414. (initAndOpenFile): Rewritten.
  11415. (openFile): Call initAndOpenFile()
  11416. * src/MultiDiskAdaptor.cc: Rewritten.
  11417. * src/DownloadEngineFactory.cc
  11418. (FileAllocator.h): New include.
  11419. (FileAllocationMonitor.h): New include.
  11420. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  11421. create DefaultDiskWriter with file allocator.
  11422. * src/DiskWriter.h
  11423. (initAndOpenFile): Added totalLength argument.
  11424. (openFile): Added totalLength argument.
  11425. * src/prefs.h
  11426. (PREF_FILE_ALLOCATION): New definition.
  11427. (V_PREALLOC): New definition.
  11428. (V_NONE): New definition.
  11429. * src/HttpResponseCommand.cc
  11430. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  11431. size.
  11432. * src/FtpNegotiateCommand.cc
  11433. (Util.h): New include.
  11434. (recvSize): Open file here.
  11435. * src/Util.h
  11436. (ullitos): New function.
  11437. * src/CopyDiskWriter.h
  11438. (getFilePath): Made non-const.
  11439. * src/DefaultDiskWriter.h
  11440. (Option.h): New include.
  11441. (totalLength): Removed.
  11442. (DefaultDiskWriter): Removed totalLength.
  11443. (initAndOpenFile): Added totalLength argument.
  11444. (DefaultDiskWriterHandle): New type definition.
  11445. (createNewDiskWriter): New function.
  11446. * src/Util.cc
  11447. (ullitos): New function.
  11448. * src/DefaultDiskWriter.cc
  11449. (message.h): New include.
  11450. (FileAllocator.h): New include.
  11451. (prefs.h): New include.
  11452. (Util.h): New include.
  11453. (DefaultDiskWriter): Removed totalLength.
  11454. (initAndOpenFile): Added file allocation.
  11455. (createNewDiskWriter): New function. Just for temporary solution.
  11456. It will be rewritten later.
  11457. * src/DiskAdaptor.cc
  11458. (DiskAdaptor): Removed diskWriter.
  11459. * src/AbstractDiskWriter.cc
  11460. (LogFactory.h): New include.
  11461. (AbstractDiskWriter): Added fileAllocator, logger.
  11462. (openFile): Added totalLength argument.
  11463. * src/AbstractDiskWriter.h
  11464. (FileAllocator.h): New include.
  11465. (Logger.h): New include.
  11466. (fileAllocator): New variable.
  11467. (logger): New variable.
  11468. (openFile): Added totalLength argument. Added virtual keyword
  11469. explicitly.
  11470. (openExistingFile): Added totalLength argument. Added virtual keyword
  11471. explicitly.
  11472. (closeFile): Added virtual keyword explicitly.
  11473. (sha1Sum): Added virtual keyword explicitly.
  11474. (writeData): Added virtual keyword explicitly.
  11475. (readData): Added virtual keyword explicitly.
  11476. (setFileAllocator): New function.
  11477. * src/DefaultPieceStorage.h
  11478. (FileAllocator.h): New include.
  11479. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11480. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11481. * src/FileProgressMonitor.h: New class.
  11482. To compile aria2 on PC-BSD:
  11483. * src/DefaultBtContext.cc
  11484. (libgen.h): New include.
  11485. To fix memory leak:
  11486. * src/Exception.h
  11487. (~Exception): Delete cause. Fixed memory leak.
  11488. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11489. Rewritten a portion of bittorrent implementation:
  11490. * src/BtMessageValidator.h: New class.
  11491. * src/BtBitfieldMessageValidator.h: New class.
  11492. * src/BtHandshakeMessageValidator.h: New class.
  11493. * src/BtRequestMessageValidator.h: New class.
  11494. * src/BtSuggestPieceMessageValidator.h: New class.
  11495. * src/BtAllowedFastMessageValidator.h: New class.
  11496. * src/BtRejectMessageValidator.h: New class.
  11497. * src/BtCancelMessageValidator.h: New class.
  11498. * src/BtPieceMessageValidator.h: New class.
  11499. * src/BtHaveMessageValidator.h: New class.
  11500. * src/BtEventListener.h: New class.
  11501. * src/AbstractBtEventListener.h: New class.
  11502. * src/BtEvent.h: New class.
  11503. * src/BtChokingEvent.h: New class.
  11504. * src/BtChokedEvent.h: New class.
  11505. * src/BtCancelSendingPieceEvent.h: New class.
  11506. * src/BtAbortOutstandingRequestEvent.h: New class.
  11507. * src/Randomizer.h: New class.
  11508. * src/SimpleRandomizer.h: New class.
  11509. * src/BtMessage.h: New class.
  11510. * src/AbstractBtMessage.h: New class.
  11511. * src/SimpleBtMessage.h: New class.
  11512. * src/BtHaveMessage.h: New class.
  11513. * src/BtInterestedMessage.h: New class.
  11514. * src/BtAllowedFastMessage.h: New class.
  11515. * src/BtUnchokeMessage.h: New class.
  11516. * src/BtCancelMessage.h: New class.
  11517. * src/BtNotInterestedMessage.h: New class.
  11518. * src/BtChokeMessage.h: New class.
  11519. * src/BtHaveNoneMessage.h: New class.
  11520. * src/BtHandshakeMessage.h: New class.
  11521. * src/BtSuggestPieceMessage.h: New class.
  11522. * src/BtHaveMessage.h: New class.
  11523. * src/BtPieceMessage.h: New class.
  11524. * src/BtHaveAllMessage.h: New class.
  11525. * src/BtKeepAliveMessage.h: New class.
  11526. * src/BtPortMessage.h: New class.
  11527. * src/BtRejectMessage.h: New class.
  11528. * src/BtBitfieldMessage.h: New class.
  11529. * src/BtRequestMessage.h: New class.
  11530. * src/DefaultBtRequestFactory.h: New class.
  11531. * src/DefaultBtMessageReceiver.h: New class.
  11532. * src/BtInteractive.h: New class.
  11533. * src/BtMessageDispatcher.h: New class.
  11534. * src/DefaultBtMessageDispatcher.h: New class.
  11535. * src/DefaultBtInteractive.h: New class.
  11536. * src/BitfieldManFactory.h: New class.
  11537. * src/HandleRegistry.h: New class.
  11538. * src/BtMessageFactory.h: New class.
  11539. * src/BtMessageReceiver.h: New class.
  11540. * src/DefaultBtMessageFactory.h: New class.
  11541. * src/PeerObject.h: New class.
  11542. * src/BtRequestFactory.h: New class.
  11543. * src/SuggestPieceMessage.h: Removed.
  11544. * src/PortMessage.h: Removed.
  11545. * src/SuggestPieceMessage.h: Removed.
  11546. * src/KeepAliveMessage.h: Removed.
  11547. * src/HandshakeMessage.h: Removed.
  11548. * src/PeerInteraction.h: Removed.
  11549. * src/UnchokeMessage.h: Removed.
  11550. * src/PieceMessage.h: Removed.
  11551. * src/RequestMessage.h: Removed.
  11552. * src/InterestedMessage.h: Removed.
  11553. * src/HaveMessage.h: Removed.
  11554. * src/CancelMessage.h: Removed.
  11555. * src/RejectMessage.h: Removed.
  11556. * src/AllowedFastMessage.h: Removed.
  11557. * src/HaveNoneMessage.h: Removed.
  11558. * src/SimplePeerMessage.h: Removed.
  11559. * src/HaveAllMessage.h: Removed.
  11560. * src/BitfieldMessage.h: Removed.
  11561. * src/PeerMessageFactory.h: Removed.
  11562. * src/NotInterestedMessage.h: Removed.
  11563. * src/ChokeMessage.h: Removed.
  11564. * src/PeerMessage.h: Removed.
  11565. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11566. To know root cause of exception:
  11567. * src/Exception.h
  11568. (cause): New variable.
  11569. (Exception): Added a parameter.
  11570. (getMsg): Return const reference to msg.
  11571. (getCause): New function.
  11572. * src/DlRetryEx.h
  11573. (DlRetryEx): Added a parameter 'cause'.
  11574. Added an overloaded constructor.
  11575. (DlAbortEx): Added a parameter 'cause'.
  11576. Added an overloaded constructor.
  11577. * src/SimpleLogger.cc
  11578. (writeLog): Log nested exception messages recursively.
  11579. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11580. * src/DefaultBtProgressInfoFile.cc
  11581. (load): Fixed memory leak when the infohash doesn't match.
  11582. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11583. * src/DefaultPeerStorage.cc
  11584. (calculateStat): Simplified the code by combining 2 loops into 1.
  11585. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11586. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  11587. for BitTorrent download:
  11588. * src/PeerAbstractCommand.cc
  11589. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  11590. * src/main.cc:
  11591. (timeoutSpecified): Removed.
  11592. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  11593. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  11594. * src/TorrentRequestInfo.cc
  11595. (timeoutSpecified): Removed.
  11596. (torrentHandler): Removed timeoutSpecified and the adjustment of
  11597. timeout value.
  11598. * src/prefs.h
  11599. (PREF_BT_TIMEOUT): New definition.
  11600. Delete unused variables:
  11601. * src/TorrentRequestInfo.cc
  11602. (requestInfo): Removed.
  11603. Move setSignalHander to Util::setGlobalSignalHandler:
  11604. * src/TorrentRequestInfo.cc:
  11605. setSignalHander -> Util::setGlobalSignalHandler
  11606. * src/main.cc
  11607. (setSignalHander): Removed.
  11608. (main): setSignalHander -> Util::setGlobalSignalHandler
  11609. * src/Util.h
  11610. (setGlobalSignalHandler): New function.
  11611. * src/Util.cc
  11612. (setGlobalSignalHandler): New function.
  11613. * src/UrlRequestInfo.cc:
  11614. setSignalHander -> Util::setGlobalSignalHandler
  11615. Reset peer status in order to exit gracefully:
  11616. * src/PeerAbstractCommand.cc
  11617. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  11618. To fix the bug that causes the number of bytes uploaded is not saved
  11619. to .aria2 file:
  11620. * src/DefaultPeerStorage.h
  11621. (removedPeerSessionDownloadLength): New variable.
  11622. (removedPeerSessionUploadLength): New variable.
  11623. * src/DefaultPeerStorage.cc
  11624. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  11625. removedPeerSessionUploadLength(0).
  11626. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  11627. through all peers, and then add removedPeerSessionDownloadLength(
  11628. removedPeerSessionUploadLength) to it.
  11629. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  11630. (to) the peer to removedPeerSessionDownloadLength
  11631. (removedPeerSessionUploadLength).
  11632. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11633. To add Metalink location option:
  11634. * src/MetalinkRequestInfo.cc
  11635. (execute): Call MetalinkEntry::setLocationPreference()
  11636. * src/main.cc
  11637. (showUsage): Added the help message for --metalink-location option.
  11638. (main): Added --metalink-location option.
  11639. * src/prefs.h
  11640. (PREF_METALINK_LOCATION): New definition.
  11641. * src/MetalinkEntry.cc
  11642. (AddLocationPreference): New function object.
  11643. (setLocationPreference): New function.
  11644. * src/Xml2MetalinkProcessor.cc
  11645. (getResource): Set location attribute to MetalinkResource
  11646. To show URLs to download
  11647. * src/UrlRequestInfo.h
  11648. (printUrls): New function.
  11649. To add multiple <file> Metalink support:
  11650. * src/MetalinkEntry.h
  11651. (MetalinkResources): Removed.
  11652. (setLocationPreference): New function.
  11653. (MetalinkEntryHandle): New type definition.
  11654. (MetalinkEntries): New type definition.
  11655. * src/Xml2MetalinkProcessor.h
  11656. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  11657. (getResource): MetalinkResource* -> MetalinkResourceHandle
  11658. (parseFile): Metalinker* -> MetalinkerHandle
  11659. * src/UrlRequestInfo.h
  11660. (execute): RequestInfo* -> RequestInfos
  11661. * src/MetalinkRequestInfo.cc
  11662. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  11663. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  11664. (execute): RequestInfo* -> RequestInfos
  11665. Added multiple <file> support. Print filename when it is queued.
  11666. * src/MetalinkRequestInfo.h
  11667. (execute): RequestInfo* -> RequestInfos
  11668. (getDownloadEngine): Removed.
  11669. * src/RequestInfo.h
  11670. (RequestInfoHandle): New type definition.
  11671. (RequestInfos): New type definition.
  11672. (execute): RequestInfo* -> RequestInfos
  11673. (getDownloadEngine): Removed.
  11674. * src/MetalinkResource.h
  11675. (MetalinkResourceHandle): New type definition.
  11676. (MetalinkResources): New type definition.
  11677. * src/MetalinkEntry.cc
  11678. (~MetalinkEntry): Removed the deletion of the elements of resources,
  11679. because the element is now of type MetalinkResourceHandle.
  11680. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  11681. (Supported): MetalinkResource* -> MetalinkResourceHandle
  11682. (dropUnsupportedResource): Removed the deletion of the elements of
  11683. resources because the element is now of type MetalinkResourceHandle.
  11684. * src/Xml2MetalinkProcessor.cc
  11685. (parseFile): Metalinker* -> MetalinkerHandle
  11686. MetalinkEntry* -> MetalinkEntryHandle
  11687. Removed try-catch block.
  11688. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  11689. MetalinkResource* -> MetalinkResourceHandle
  11690. Removed try-catch block.
  11691. (getResource): MetalinkResource* -> MetalinkResourceHandle
  11692. Free result by using xmlXPathFreeObject()
  11693. * src/Metalinker.cc
  11694. (~Metalinker): Removed the deletion of entries.
  11695. MetalinkEntry* -> MetalinkEntryHandle
  11696. (queryEntry): Add multiple <file> Metalink support.
  11697. * src/Metalinker.h
  11698. (MetalinkEntries): Removed.
  11699. (queryEntry): MetalinkEntry* -> MetalinkEntries
  11700. * src/MetalinkProcessor.h
  11701. (parseFile): Metalinker* -> MetalinkerHandle
  11702. Bug fixes:
  11703. * src/PeerChokeCommand.cc
  11704. (execute): cat01->cat02
  11705. * src/DefaultPieceStorage.cc
  11706. (DefaultPieceStorage): Added diskAdaptor(0)
  11707. * src/TrackerWatcherComand.cc:
  11708. (execute): Use btAnnounce->noMoreAnnounce()
  11709. to determin whether the function returns true or not.
  11710. * src/TrackerUpdateCommand.cc:
  11711. (execute): Use btAnnounce->noMoreAnnounce()
  11712. to determin whether the function returns true or not.
  11713. * src/FtpConnection.cc
  11714. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  11715. This is the fix of the busy loop bug.
  11716. * src/DownloadCommand.cc
  11717. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  11718. cached PeerStat.
  11719. The value of "name" entry in torrent file is now set by
  11720. *DiskAdaptor::setTopDir(...) methods.
  11721. * src/MultiDiskAdaptor.h
  11722. (topDir): New variable.
  11723. (setTopDir): New function.
  11724. (getTopDir): New function.
  11725. * src/MultiDiskAdaptor.cc
  11726. (getFilePath): Concat storDir, "/" and topDir.
  11727. (mkdir): Use getFilePath() to get the directory path for output.
  11728. * src/DefaultPieceStorage.cc
  11729. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  11730. CopyDiskAdaptor.
  11731. * src/CopyDiskAdaptor.h
  11732. (topDir): New variable.
  11733. (setTopDir): New function.
  11734. (getTopDir): New function.
  11735. * src/CopyDiskAdaptor.cc
  11736. (fixFilename): Updated.
  11737. Misc
  11738. * src/UrlRequestInfo.h
  11739. (e): Removed.
  11740. (UrlRequestInfo): Removed e.
  11741. (getDownloadEngine): Removed.
  11742. * src/UrlRequestInfo.cc
  11743. (handler): Rewritten.
  11744. (printUrls): New function.
  11745. (execute): Call printUrls().
  11746. * src/HandshakeMessage.cc
  11747. (check): peerinteraction->getBtContext() -> btContext
  11748. * src/PeerInteraction.h
  11749. (getBtContext): Removed.
  11750. * src/TorrentRequestInfo.h
  11751. (execute): RequestInfo* -> RequestInfos
  11752. (getDownloadEngine): Removed.
  11753. * src/TorrentRequestInfo.cc
  11754. (haltRequested): Removed.
  11755. (btHaltRequested): New variable.
  11756. (torrentHandler): haltRequested -> btHaltRequested
  11757. (execute): RequestInfo* -> RequestInfos
  11758. * src/TorrentConsoleDownloadEngine.cc
  11759. (afterEachIteration): haltRequested -> btHaltRequested.
  11760. * src/ConsoleDownloadEngine.h
  11761. (initStatistics): Added virtual.
  11762. (calculateStatistics): Added virtual.
  11763. (onEndOfRun): Added virtual.
  11764. (afterEachIteration): Added virtual.
  11765. * src/ConsoleDownloadEngine.cc
  11766. (haltRequested): New variable.
  11767. (afterEachIteration): New function.
  11768. * src/main.cc
  11769. (requestInfo): Removed.
  11770. * src/SegmentMan.cc
  11771. (findSlowerSegmentEntry): Refactored.
  11772. * Release 0.9.0
  11773. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11774. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  11775. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  11776. * src/TorrentMan.h: Removed.
  11777. * src/TorrentMan.cc: Removed.
  11778. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  11779. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  11780. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  11781. * src/PeerAbstractCommand.cc: Use btRuntime.
  11782. * src/BtContextAwareCommand.h: New class.
  11783. * src/FileEntry.h: Added accessor methods for following variables.
  11784. (path): Made private.
  11785. (length): Made private.
  11786. (offset): Made private.
  11787. (extracted): Made private.
  11788. (requested): Made private.
  11789. (FileEntries): New definition.
  11790. (FileEntryHandle): New definition.
  11791. * src/FileEntry.cc: New file.
  11792. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  11793. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  11794. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  11795. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  11796. * src/PieceStorage.h: New file.
  11797. * src/PeerInteractionCommand.h: Use btContext.
  11798. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  11799. btRuntime.
  11800. * src/DefaultBtProgressInfoFile.h: New file.
  11801. * src/DefaultBtProgressInfoFile.cc: New file.
  11802. * src/File.cc
  11803. (Util.h): New include.
  11804. (mkdirs): New function.
  11805. * src/MultiDiskAdaptor.h
  11806. (mkdir): New function.
  11807. * src/PeerListProcessor.h
  11808. (Peers): Removed.
  11809. * src/PeerInteraction.h
  11810. (torrentMan): Removed.
  11811. (btContext): New variable.
  11812. (peerStorage): New variable.
  11813. (pieceStorage): New variable.
  11814. (btAnnounce): New variable.
  11815. (getTorrentMan): Removed.
  11816. (getBtContext): New function.
  11817. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  11818. btAnnounce.
  11819. * src/HandshakeMessage.h
  11820. (TorrentMan.h): Removed.
  11821. * src/HandshakeMessage.cc: Use btContext.
  11822. * src/DefaultBtAnnounce.cc: New file.
  11823. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  11824. * src/DefaultPieceStorage.cc: New file.
  11825. * src/DefaultBtContext.h: New file.
  11826. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  11827. Use the accessor methods of FileEntry.
  11828. * src/CookieBox.cc: Updated to use Util::slice().
  11829. * src/PieceMessage.cc: Use btContext, pieceStorage.
  11830. * src/common.h (SharedHandle.h): New include.
  11831. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  11832. pieceStorage.
  11833. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  11834. * src/DiskAdaptor.h
  11835. (topDir): Removed.
  11836. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  11837. (setTopDir): Removed.
  11838. (getTopDir): Removed.
  11839. * src/BtContext.h: New file.
  11840. * src/DefaultPeerStorage.h: New file.
  11841. * src/PieceMessage.h (TorrentMan.h): Removed.
  11842. * src/RequestMessage.h (TorrentMan.h): Removed.
  11843. * src/TorrentDownloadEngine.h
  11844. (uploadLength): New variable.
  11845. (btContext): New variable.
  11846. (btRuntime): New variable.
  11847. (pieceStorage): New variable.
  11848. (peerStorage): New variable.
  11849. (btAnnounce): New variable.
  11850. (btProgressInfoFile): New variable.
  11851. (torrentMan): Removed.
  11852. (setBtContext): New function.
  11853. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  11854. peerStorage, btAnnounce, btProgressInfoFile.
  11855. * src/Piece.h
  11856. (toString): New function.
  11857. (Pieces): New type definition.
  11858. * src/Peer.h
  11859. (active): New variable.
  11860. (Peer): Added active.
  11861. (activate): Set active to true.
  11862. (deactivate): Set active to false.
  11863. (isActive): New function.
  11864. (Peers): New type definition.
  11865. * src/DirectDiskAdaptor.cc
  11866. (getFilePath): Use the accessor methods of FileEntry.
  11867. * src/TorrentConsoleDownloadEngine.h
  11868. (afterEachIteration): New function.
  11869. * src/TorrentConsoleDownloadEngine.cc
  11870. (haltRequested): New variable.
  11871. (sendStatistics): Use pieceStorage, btRuntime.
  11872. (afterEachIteration): New function.
  11873. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  11874. * src/Directry.h
  11875. (Directory): New function.
  11876. (DirectoryHandle): New type definition.
  11877. * src/BtProgressInfoFile.h: New file.
  11878. * src/RequestMessage.cc: Use pieceStorage.
  11879. * src/BtRuntime.h: New file.
  11880. * src/DefaultBtContext.cc: New file.
  11881. * src/BitfieldMan.h
  11882. (getCompletedLength): New function(private).
  11883. (getCompletedLength): New function.
  11884. (getFilteredCompletedLength): New function.
  11885. * src/BitfieldMan.h
  11886. (getCompletedLength): New function(private).
  11887. (getCompletedLength): New function.
  11888. (getFilteredCompletedLength): New function.
  11889. * src/MultiDiskAdaptor.cc
  11890. (mkdir): New function.
  11891. (openFile): Call mkdir().
  11892. (initAndOpenFile): Call mkdir().
  11893. * src/CancelMessage.h
  11894. (TorrentMan.h): Removed.
  11895. * src/RejectMessage.h
  11896. (TorrentMan.h): Removed.
  11897. * src/DownloadEngineFactory.cc
  11898. (DefaultPieceStorage.h): New include.
  11899. (DefaultPeerStorage.h): New include.
  11900. (DefaultBtAnnounce.h): New include.
  11901. (DefaultBtProgressInfoFile.h): New include.
  11902. (newTorrentConsoleEngine): Rewritten.
  11903. * src/ShareRatioSeedCriteria.h
  11904. (torrentMan): Removed.
  11905. (btContext): New variable.
  11906. (peerStorage): New variable.
  11907. (btRuntime): New variable.
  11908. (evaluate): Use btContext, btRuntime, peerStorage.
  11909. * src/AnnounceTier.h: New file.
  11910. * src/BtAnnounce.h: New file.
  11911. * src/BtRegistry.h: New file.
  11912. * src/PeerInitiateConnectionCommand.h: Added btContext.
  11913. * src/PeerConnection.h (TorrentMan.h): Removed.
  11914. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  11915. * src/Util.h
  11916. (slice): Added an argument.
  11917. * src/Util.cc
  11918. (slice): Added an argument to control whether trim is made or not.
  11919. * src/PeerStorage.h: New file.
  11920. * src/BtRegistry.cc: New file.
  11921. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  11922. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  11923. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  11924. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  11925. * src/TorrentRequestInfo.h
  11926. (e): Removed.
  11927. (showFileEntry): Added an argument.
  11928. (getDownloadEngine): Return 0.
  11929. * src/DefaultBtAnnounce.h: New file.
  11930. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  11931. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  11932. * src/PeerMessageFactory.h
  11933. (btContext): New variable.
  11934. (pieceStorage): New variable.
  11935. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  11936. btAnnounce.
  11937. * src/DiskAdaptor.cc
  11938. (DiskAdaptor): Removed topDir.
  11939. (~DiskAdaptor): Removed topDir.
  11940. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  11941. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  11942. * src/File.h (mkdirs): New function.
  11943. * src/DefaultPeerStorage): New file.
  11944. * src/DownloadEngineFactory.h
  11945. (newTorrentConsoleEngine): Use btContext.
  11946. * src/BtContextAwareCommand.cc: New file.
  11947. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  11948. * src/PeerMessage.h
  11949. (btContext): New variable.
  11950. (peerStorage): New variable.
  11951. (pieceStorage): New variable.
  11952. (setBtContext): New function.
  11953. * src/Directry.cc
  11954. (Directory): New function.
  11955. (createDir): Do nothing if name.size() == 0.
  11956. * src/AnnounceList.h
  11957. (AnnounceTier): Removed.
  11958. (AnnounceTiers): Removed.
  11959. * src/DefaultPieceStorage.h: New file.
  11960. * src/Piece.cc (toString): New function.
  11961. To fix typo:
  11962. * src/main.cc (showVersion): Fixed typo.
  11963. To fix compile warning:
  11964. * src/DelegatingPeerListProcessor.cc
  11965. (canHandle): Added "return false".
  11966. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11967. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  11968. make the process of announce request testable.
  11969. * src/TrackerWatcherCommand.h
  11970. (TimeA2.h): Removed.
  11971. (interval): Removed.
  11972. (checkPoint): Removed.
  11973. (createRequestCommand): Added an argument 'url'.
  11974. (TrackerWatherCommand): Removed interval.
  11975. (createCommand): New function.
  11976. * src/DownloadEngineFactory.cc
  11977. (newTorrentConsoleEngine): Updated according to the changes in
  11978. TrackerWatherCommand.
  11979. * src/TorrentMan.cc
  11980. (DelegatingPeerListProcessor.h): New includes.
  11981. (TorrentMan): Added the initialization of announceInterval.
  11982. (isStoppedAnnounceReady): New function.
  11983. (isCompletedAnnounceReady): New function.
  11984. (isDefaultAnnounceReady): New function.
  11985. (isAnnounceReady): New function.
  11986. (getAnnounceUrl): New function.
  11987. (announceStart): New function.
  11988. (announceFailure): New function.
  11989. (announceSuccess): New function.
  11990. (isAllAnnounceFailed): New function.
  11991. (resetAnnounce): New function.
  11992. (processAnnounceResponse): New function.
  11993. (needMorePeerConnection): New function.
  11994. (noMoreAnnounce): New function.
  11995. * src/TrackerUpdateCommand.h
  11996. (getTrackerResponse): int->size_t
  11997. * src/TorrentMan.h
  11998. (isStoppedAnnounceReady): New function.
  11999. (isCompletedAnnounceReady): New function.
  12000. (isDefaultAnnounceReady): New function.
  12001. (announceInterval): New variable.
  12002. (isAnnounceReady): New function.
  12003. (getAnnounceUrl): New function.
  12004. (announceStart): New function.
  12005. (announceFailure): New function.
  12006. (announceSuccess): New function.
  12007. (isAllAnnounceFailed): New function.
  12008. (resetAnnounce): New function.
  12009. (processAnnounceResponse): New function.
  12010. (needMorePeerConnection): New function.
  12011. (noMoreAnnounce): New function.
  12012. * src/TrackerWatcherCommand.cc
  12013. (TrackerWatherCommand): Removed interval and checkPoint.
  12014. (execute): Rewritten.
  12015. (createCommand): New function.
  12016. (createRequestCommand): Rewritten.
  12017. * src/TrackerUpdateCommand.cc
  12018. (MetaFileUtil.h): Removed.
  12019. (DelegatingPeerListProcessor.h): Removed.
  12020. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  12021. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12022. Request -> RequestHandle:
  12023. * src/HttpResponseCommand.h: Request->RequestHandle
  12024. * src/AbstractCommand.cc: Request->RequestHandle
  12025. * src/HttpDownloadCommand.cc: Request->RequestHandle
  12026. * src/HttpRequestCommand.cc: Request->RequestHandle
  12027. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  12028. * src/AbstractCommand.h: Request->RequestHandle
  12029. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  12030. * src/HttpResponseCommand.cc: Request->RequestHandle
  12031. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  12032. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  12033. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  12034. * src/HttpConnection.h: Request->RequestHandle
  12035. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  12036. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  12037. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12038. * src/DownloadCommand.h: Request->RequestHandle
  12039. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  12040. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  12041. * src/HttpRequestCommand.h: Request->RequestHandle
  12042. * src/FtpNegotiateCommand.h: Request->RequestHandle
  12043. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12044. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  12045. * src/HttpDownloadCommand.h: Request->RequestHandle
  12046. * src/FtpConnection.cc: Request->RequestHandle
  12047. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  12048. * src/UrlRequestInfo.cc: Request->RequestHandle
  12049. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  12050. * src/HttpConnection.h: Request->RequestHandle
  12051. * src/DownloadCommand.cc: Request->RequestHandle
  12052. * src/FtpConnection.h: Request->RequestHandle
  12053. * src/FtpDowndloadCommand.h: Request->RequestHandle
  12054. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  12055. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  12056. * src/Request.h
  12057. (SharedHandle.h): New include.
  12058. (RequestHandle): New type definition.
  12059. (Requests): Redefined.
  12060. To add MULTITRACKER support:
  12061. * src/TrackerWatcherCommand.h
  12062. (createRequestCommand): New function.
  12063. * src/DownloadEngineFactory.cc
  12064. (newTorrentConsoleEngine): Removed req.
  12065. * src/prefs.h
  12066. (PREF_TRACKER_MAX_TRIES): New definition.
  12067. * src/TorrentMan.cc
  12068. (TorrentMan): Removed req. Added trackerNumTry.
  12069. (~TorrentMan): Removed req.
  12070. (setupInternal1): Added announceList.
  12071. * src/TorrentRequestInfo.cc
  12072. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  12073. announces is now specified by PREF_TRACKER_MAX_TRIES.
  12074. * src/main.cc
  12075. (main): Added PREF_TRACKER_MAX_TRIES.
  12076. * src/TorrentMan.h
  12077. (Request.h): Removed.
  12078. (AnnounceList.h): New include.
  12079. (trackerNumTry): New variable.
  12080. (req): Removed.
  12081. (announceList): New variable.
  12082. * src/TrackerWatcherCommand.cc
  12083. (execute): Rewritten.
  12084. (createRequestCommand): New function.
  12085. * src/TrackerUpdateCommand.cc
  12086. (execute): Updated with the use of AnnounceList.
  12087. * src/AnnounceList.cc: New class.
  12088. * src/AnnounceList.h: New class.
  12089. To fix typo:
  12090. * src/prefs.h
  12091. (PREF_MAX_TRIES): max_try->max_tries
  12092. To not to decode "+" as space in URL decode:
  12093. * src/Util.cc
  12094. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  12095. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12096. To add timeout to async name resolution:
  12097. * src/AbstractCommand.h
  12098. (nameResolveFinished): New function. This is not elegant way. It needs
  12099. to be more refined.
  12100. (nameResolverCheck): New variable.
  12101. * src/AbstractCommand.cc
  12102. (AbstractCommand): Added nameResolverCheck.
  12103. (execute): Added the check whether the name resolution has finished.
  12104. (setNameResolverCheck): Set nameResolverCheck to true.
  12105. (disableNameResolverCheck): Set nameResolverCheck to false.
  12106. (nameResolverFinished): New function.
  12107. * src/FtpInitiateConnectionCommand.h
  12108. (nameResolverFinished): New function.
  12109. * src/FtpInitiateConnectionCommand.cc
  12110. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12111. * src/HttpInitiateConnectionCommand.h
  12112. (nameResolverFinished): New function.
  12113. * src/HttpInitiateConnectionCommand.cc
  12114. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12115. * src/prefs.h
  12116. (PREF_DNS_TIMEOUT): New definition.
  12117. * src/main.cc
  12118. (main): Added PREF_DNS_TIMEOUT.
  12119. To add the support for a non-compact response from a tracker:
  12120. * src/PeerListProcessor.h: New class.
  12121. * src/DefaultPeerListProcessor.h: New class.
  12122. * src/DefaultPeerListProcessor.cc: New class.
  12123. * src/CompactPeerListProcessor.h: New class.
  12124. * src/CompactPeerListProcessor.cc: New class.
  12125. * src/DelegatingPeerListProcessor.h: New class.
  12126. * src/DelegatingPeerListProcessor.cc: New class.
  12127. * src/TorrentMan.cc
  12128. (addPeer): New function(overload).
  12129. (addPeer): Delete unused peers only when new peer is added.
  12130. * src/TorrentMan.h
  12131. (PeerListProcessor.h): Included.
  12132. (Peers): Removed.
  12133. (addPeer): New function(overload).
  12134. * src/TrackerUpdateCommand.cc
  12135. (netinet/in.h): Removed.
  12136. (DelegatingPeerListProcessor.h): Included.
  12137. (execute): Updated to use DelegatingPeerListProcessor.
  12138. To fix the memory leak in TorrentMan::peers:
  12139. * src/PeerAbstractCommand.cc
  12140. (onAbort): Added peer->resetStatus().
  12141. * src/Peer.h
  12142. (resetStatus): Made public.
  12143. To improve the precision of the speed calculation:
  12144. * src/SpeedCalc.h
  12145. (nextInterval): New variable.
  12146. * src/SpeedCalc.cc
  12147. (reset): Added nextInterval.
  12148. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  12149. (changeSw): Set nextInterval to 15 seconds relative to the current
  12150. instant time.
  12151. * src/main.cc
  12152. (showVersion): Updated.
  12153. (showUsage): Updated.
  12154. * Release 0.8.1
  12155. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12156. * src/main.cc
  12157. (showUsage): Commented out --min-segment-size option.
  12158. (main): Commented out --min-segment-size option.
  12159. * Release 0.8.0
  12160. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12161. * src/*.{h,cc}:
  12162. Added an exception to the license which allows linking with OpenSSL.
  12163. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12164. * src/AbstractCommand.cc
  12165. (execute): Check whether the download has finished before checking
  12166. socket status.
  12167. Return true if peerStat->getStatus() == REQUEST_IDLE.
  12168. Do not exit even if no segment is available.
  12169. * src/prefs.h
  12170. (PREF_STARTUP_IDLE_TIME): New definition.
  12171. * src/PeerInteractionCommand.cc
  12172. (executeInternal): Removed max speed limit. Because it performs bad.
  12173. (receiveMessages): Added max speed limit. This was better than above,
  12174. but still a little bit to be desired. Sometimes the download speed
  12175. became much faster than I specified.
  12176. * src/SpeedCalc.h
  12177. (start): New variable.
  12178. (accumulatedLength): New variable.
  12179. (getAvgSpeed): New function.
  12180. * src/SpeedCalc.cc
  12181. (reset): Added start, accumulatedLength.
  12182. (update): Added calculation of an average speed.
  12183. (getAvgSpeed): New function.
  12184. * src/DownloadCommand.h
  12185. (sw): Removed.
  12186. * src/main.cc
  12187. (main): Added PREF_STARTUP_IDLE_TIME.
  12188. * src/PeerStat.h
  12189. (STATUS): Added REQUEST_IDLE.
  12190. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  12191. (getAvgDownloadSpeed): New function
  12192. (requestIdle): New function.
  12193. * src/SegmentMan.h
  12194. (SegmentEntryHandle): New type definition.
  12195. (SegmentEntries): Now holds SegmentEntryHandle.
  12196. (findSlowerSegmentEntry): New funtion.
  12197. * src/SegmentMan.cc
  12198. (save): Updated according to the changes in SegmentEntries.
  12199. (read): Updated according to the changes in SegmentEntries.
  12200. (FindSegmentEntryByIndex): Updated according to the changes in
  12201. SegmentEntries.
  12202. (FindSegmentEntryByCuid): Updated according to the changes in
  12203. SegmentEntries.
  12204. (checkoutSegment): Updated according to the changes in SegmentEntries.
  12205. (onNullBitfield): Updated according to the changes in SegmentEntries.
  12206. Renamed uitr as itr.
  12207. (findSlowerSegmentEntry): New function.
  12208. (getSegment): Updated according to the changes in SegmentEntries.
  12209. Added the feature that cancels the segment with slow server and fast
  12210. one takes it over.
  12211. (cancelSegment): Updated according to the changes in SegmentEntries.
  12212. (getDownloadLength): Updated according to the changes in
  12213. SegmentEntries.
  12214. (init): Assigned 0 to bitfield after deleting it.
  12215. * src/DownloadCommand.cc
  12216. (STARTUP_IDLE_TIME): Removed.
  12217. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  12218. * src/PeerChokeCommand.cc
  12219. (optUnchokingPeer): Updated according to the changes in Peer.
  12220. (ResetDelta): Removed.
  12221. (UploadFaster): Updated according to the changes in Peer.
  12222. (DownloadFaster): Updated according to the changes in Peer.
  12223. (execute): I clarify the meaning of "upload" and "download" here.
  12224. "upload" means the transfer from localhost to remote host.
  12225. "download" means the transfer from remote host to localhost.
  12226. Based on this rule, I swapped orderByUploadRate and
  12227. orderByDownloadRate.
  12228. * src/PeerInteractionCommand.cc
  12229. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  12230. (executeInternal): Removed the argument of
  12231. peerInteraction->sendMessages().
  12232. (receiveMessages): Rewritten download speed limit.
  12233. (sendKeepAlive): Removed peerInteraction->sendMessages().
  12234. * src/HttpResponseCommand.cc
  12235. (handleDefaultEncoding): If file size is unknown in torrent request,
  12236. do not call segmentMan->initBitfield() here.
  12237. Disabled persistent connection feature in torrent request.
  12238. * src/UrlRequestInfo.h
  12239. (UrlRequestInfo): Removed const qualifier from option.
  12240. * src/TorrentMan.h
  12241. (TransferStat): New class.
  12242. (deltaDownloadLength): Removed.
  12243. (deltaUploadLength): Removed.
  12244. (addDeltaDownloadLength): Removed.
  12245. (getDeltaDownloadLength): Removed.
  12246. (resetDeltaDownloadLength): Removed.
  12247. (addDeltaUploadLength): Removed.
  12248. (getDeltaUploadLength): Removed.
  12249. (resetDeltaUploadLength): Removed.
  12250. (addActivePeer): Added peer->activate().
  12251. (deleteActivePeer): Added peer->deactivate().
  12252. (calculateStat): New function.
  12253. * src/TorrentMan.cc
  12254. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  12255. (calculateStat): New function.
  12256. * src/PeerInteraction.h
  12257. (uploadLimit): Removed.
  12258. (option): New variable.
  12259. (setUploadLimit): Removed.
  12260. (getUploadSpeed): Removed.
  12261. (sendMessages): Removed the argument "currentUploadSpeed".
  12262. * src/PeerInteraction.cc
  12263. (prefs.h): Included.
  12264. (PeerInteraction): Removed uploadLimit. Added option.
  12265. (sendMessages): Rewritten upload speed limit.
  12266. (sendHandshake): Removed the argument from sendMessages().
  12267. (sendBitfield): Removed the argument from sendMessages().
  12268. * src/PeerAbstractCommand.cc
  12269. (execute): Commented out the portion of upload limit.
  12270. (onAbort): Removed peer->resetStatus().
  12271. * src/TorrentRequestInfo.cc
  12272. (timeoutSpecified): Declared extern.
  12273. (execute): Set timeout to 180 if timeout is not specified by.
  12274. command-line.
  12275. * src/PieceMessage.cc
  12276. (receivedAction): Added peer->updateDownloadLength().
  12277. Removed peer->addPeerUpload().
  12278. Removed torrentMan->addDeltaDownloadLength().
  12279. (send): Added peer->updateUploadLength().
  12280. Removed peer->addPeerDownload().
  12281. Removed torrentMan->addDeltaUploadLength().
  12282. * src/main.cc
  12283. (timeoutSpecified): New variable.
  12284. (main): Set timeoutSpecified to false.
  12285. If the command-line option "--upload-limit" is specified, then
  12286. timeoutSpecified is set to true. This option will remain in the next
  12287. release, but be deprecated in the future release.
  12288. * src/TorrentRequestInfo.h
  12289. (TorrentRequestInfo): Removed const qualifier from op.
  12290. * src/PeerStat.h
  12291. (uploadSpeed): New variable.
  12292. (PeerStat): Added default value to cuid.
  12293. (calculateUploadSpeed): New function.
  12294. (updateUploadLength): New function.
  12295. (getMaxUploadSpeed): New function.
  12296. (getAvgUploadSpeed): New function.
  12297. (reset): Added uploadSpeed. Set status to IDLE.
  12298. * src/TorrentDownloadEngine.h
  12299. (cp): Declared as Time.
  12300. (sessionDownloadLengthArray): Removed.
  12301. (sessionUploadLengthArray): Removed.
  12302. (currentCp): Removed.
  12303. (lastCalcStat): New variable
  12304. (lastElapsed): Removed.
  12305. (sessionDownloadLength): Removed.
  12306. (calculateStat): New function.
  12307. * src/TorrentDownloadEngine.cc
  12308. (initStatistics): Removed lastElapsed, cp[],
  12309. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  12310. currentCp, sessionDownloadLength.
  12311. Added cp.reset() and lastCalcStat.reset().
  12312. (calculateSpeed): Changed the name of the argument.
  12313. (calculateStatistics): Rewritten.
  12314. (calculateStat): New function.
  12315. * src/Peer.h
  12316. (PeerStat.h): Included.
  12317. (peerUpload): Removed.
  12318. (peerDownload): Removed.
  12319. (peerStat): New variable.
  12320. (sessionUploadLength): New variable.
  12321. (sessionDownloadLength): New variable.
  12322. (deltaUpload): Removed.
  12323. (deltaDownload): Removed.
  12324. (resetStatus): Made private.
  12325. (Peer): Added sessionUploadLength, sessionDownloadLength.
  12326. Removed peerUpload, peerDownload.
  12327. (updateUploadLength): New function.
  12328. (addDeltaUpload): Removed.
  12329. (updateDownloadLength): New function.
  12330. (resetDeltaUpload): Removed.
  12331. (getDeltaUpload): Removed.
  12332. (addDeltaDownload): Removed.
  12333. (calculateUploadSpeed): New function.
  12334. (resetDeltaDownload): Removed.
  12335. (getDeltaDownload): Removed.
  12336. (calculateDownloadSpeed): New function.
  12337. (getSessionUploadLength): New function.
  12338. (getSessionDownloadLength): New function.
  12339. (activate): New function.
  12340. (deactivate): New function.
  12341. (addPeerUpload): Removed.
  12342. (setPeerUpload): Removed.
  12343. (getPeerUpload): Removed.
  12344. (addPeerDownload): Removed.
  12345. (setPeerDownload): Removed.
  12346. (getPeerDownload): Removed.
  12347. * src/Peer.cc
  12348. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  12349. * src/MetalinkRequestInfo.h
  12350. (MetalinkRequestInfo): Removed const qualifier from op.
  12351. * src/RequestInfo.h
  12352. (op): Removed const qualifier.
  12353. (RequestInfo): Removed const qualifier from op.
  12354. * src/prefs.h
  12355. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  12356. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  12357. * src/PeerInteractionCommand.cc
  12358. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  12359. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  12360. * src/PeerInteraction.cc
  12361. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  12362. * src/main.cc
  12363. (showUsage): Updated the description of "--lowest-speed-limit" option.
  12364. Added the description of "--max-download-limit" option.
  12365. Removed the description of "--upload-limit" option.
  12366. Added the description of "--max-upload-limit" option.
  12367. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  12368. Added "--max-download-limit" option and "--max-upload-limit" option.
  12369. Added the warning message if "--upload-limit" option is used.
  12370. * src/DownloadCommand.cc
  12371. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  12372. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12373. To rewrite segment download mechanism for HTTP/FTP download.
  12374. Use BitfieldMan to manage segment download.
  12375. * src/HttpResponseCommand.h
  12376. (executeInternal): Pass the reference of segment.
  12377. * src/AbstractCommand.cc
  12378. (prepareForRetry): Call segmentMan->cancelSegment here.
  12379. (onAbort): Call segmentMan->cancelSegment here.
  12380. * src/HttpDownloadCommand.cc
  12381. (prepareForNextSegment): New function.
  12382. * src/DownloadEngineFactory.cc
  12383. (newConsoleEngine): Removed splitter.
  12384. (newTorrentConsoleEngine): Removed splitter.
  12385. * src/Request.h
  12386. (segment): Renamed from seg.
  12387. * src/FtpInitiateConnectionCommand.h
  12388. (executeInternal): Pass the reference of segment.
  12389. * src/AbstractCommand.h
  12390. (executeInternal): Pass the reference of segment.
  12391. * src/pref.h
  12392. (PREF_SEGMENT_SIZE): New definition.
  12393. * src/HttpProxyRequestCommand.h
  12394. (executeInternal): Pass the reference of segment.
  12395. * src/HttpResponseCommand.cc
  12396. (checkResponse): Allowed status 206 when a request range starts 0.
  12397. (handleDefaultEncoding): Rewritten the code related to Segment.
  12398. (handleOtherEncoding): Rewritten the code related to Segment.
  12399. * src/SegmentMan.h
  12400. (SegmentEntry): New class.
  12401. (SegmentEntries): New type definition.
  12402. (bitfield): New variable.
  12403. (usedSegmentEntries): New variable.
  12404. (onNullBitfield): New function.
  12405. (checkoutSegment): New function.
  12406. (segments): Removed.
  12407. (splitter): Removed.
  12408. (unregisterId): Removed.
  12409. (getSegment): New function(overload)
  12410. (getDownloadedSize): Removed.
  12411. (cancelSegment): New function.
  12412. (completeSegment): New function.
  12413. (initBitfield): New function.
  12414. (hasSegment): New function.
  12415. (getDownloadLength): New function.
  12416. * src/BitfieldMan.h
  12417. (getStartIndex): New function.
  12418. (getEndIndex): New function.
  12419. (getMissingUnusedIndex): New function(overload).
  12420. (getSparseMissingUnusedIndex): New function.
  12421. * src/BitfieldMan.cc
  12422. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  12423. (getMissingUnusedIndex): New function(overload).
  12424. (Range): New class.
  12425. (getStartIndex): New function.
  12426. (getEndIndex): New function.
  12427. (getSparseMissingUnusedIndex): New function.
  12428. (isBitSetInternal): Return false if the given index is less than 0.
  12429. * src/HttpInitiateConnectionCommand.h
  12430. (executeInternal): Pass the reference of segment.
  12431. * src/FtpNegotiateCommand.h
  12432. (executeInternal): Pass the reference of segment.
  12433. * src/FtpNegotiateCommand.cc
  12434. (recvSize): Initialize bitfield here.
  12435. * src/FtpTunnelResponseCommand.h
  12436. (executeInternal): Pass the reference of segment.
  12437. * src/HttpConnection.cc
  12438. (createRequest): Rewritten range header processing.
  12439. * src/DownloadCommand.h
  12440. (executeInternal): Pass the reference of segment.
  12441. (prepareForRetry): Removed.
  12442. (prepareForNextSegment): Added an argument segment. Made it a virtual
  12443. function.
  12444. * src/main.cc
  12445. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  12446. * src/SegmentMan.cc
  12447. (SegmentMan): Added bitfield. Removed splitter.
  12448. (~SegmentMan): Added bitfield. Removed splitter.
  12449. (unregisterId): Removed.
  12450. (getSegment): Rewritten.
  12451. (updateSegment): Rewritten.
  12452. (save): Rewritten.
  12453. (read): Rewritten.
  12454. (finished): Rewritten.
  12455. (getDownloadedSize): Removed.
  12456. (initBitfield): New function.
  12457. (FindSegmentEntryByIndex): New function object.
  12458. (FindSegmentEntryByCuid): New function object.
  12459. (checkoutSegment): New function.
  12460. (onNullBitfield): New function.
  12461. (getSegment): New function(overload).
  12462. (CancelSegment): New function object.
  12463. (cancelSegment): New function.
  12464. (completeSegment): New function.
  12465. (hasSegment): New function.
  12466. (getDownloadLength): New function.
  12467. * src/FtpInitiateConnectionCommand.cc
  12468. (executeInternal): Load .aria2 file after hostname resolution finishes.
  12469. * src/Segment.h: Rewritten.
  12470. * src/Segment.cc (operator<<): New function.
  12471. * src/HttpDownloadCommand.h
  12472. (prepareForNextSegment): New function.
  12473. * src/Request.cc
  12474. (resetUrl): Made segment null.
  12475. * src/DownloadEngine.cc
  12476. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  12477. * src/HttpProxyRequestCommand.h
  12478. (executeInternal): Pass the reference of segment.
  12479. * src/DownloadCommand.cc
  12480. (executeInternal): Rewritten the code related to Segment.
  12481. (prepareForRetry): Removed.
  12482. (prepareForNextSegment): Rewritten.
  12483. * src/FtpTunnelResponseCommand.h
  12484. (executeInternal): Pass the reference of segment.
  12485. To add HTTP 1.1 persistent connection support(experimental)
  12486. * src/HttpRequestCommand.cc
  12487. (executeInternal): Disable keep alive if it is disabled by
  12488. configuration.
  12489. * src/Request.h
  12490. (keepAlive): New variable.
  12491. (isKeepAlive): New function.
  12492. (setKeepAlive): New function.
  12493. * src/pref.h
  12494. (PREF_HTTP_KEEP_ALIVE): New definition.
  12495. * src/HttpResponseCommand.cc
  12496. (executeInternal): Check the remote server supports keep alive.
  12497. * src/HttpConnection.cc
  12498. (createRequest): Send "Connection: close" only if keep alive is
  12499. disabled.
  12500. * src/main.cc
  12501. (main):
  12502. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  12503. To add max download speed limit:
  12504. * src/pref.h
  12505. (PREF_MAX_SPEED_LIMIT): New definition.
  12506. * src/PeerInteractionCommand.cc
  12507. (executeInternal): Added max download speed limit. Not tested yet.
  12508. * src/SegmentMan.h
  12509. (PeerStats): New type definition.
  12510. (peerStats): New variable.
  12511. (registerPeerStat): New function.
  12512. (FindPeerStat): New function object.
  12513. (getPeerStat): New function.
  12514. (calculateDownloadSpeed): New function.
  12515. * src/SpeedCalc.h: New class.
  12516. * src/SpeedCalc.cc: New class.
  12517. * src/main.cc
  12518. (main):
  12519. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  12520. download speed is not restricted).
  12521. * src/PeerStat.h: New class.
  12522. * src/SegmentMan.cc
  12523. (registerPeerStat): New function.
  12524. (calculateDownloadSpeed): New function.
  12525. * src/DownloadCommand.cc
  12526. (STARTUP_IDLE_TIME): New definition.
  12527. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  12528. downloadStart.
  12529. (~DownloadCommand): Call peerStat->downloadStop.
  12530. (executeInternal): Added download speed limitter. Rewritten lowest
  12531. speed limitter.
  12532. * src/HttpConnection.cc
  12533. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  12534. * src/AbstractCommand.cc
  12535. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  12536. Added hostname to the error message.
  12537. * src/ConsoleDownloadEngine.cc
  12538. (calculateStatistics): Initialize psize with dlSize.
  12539. * src/PieceMessage.cc
  12540. (receivedAction): Do not call peerInteraction->abortPiece here.
  12541. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  12542. * src/BitfieldMan.h
  12543. (clearAllUseBit): New function.
  12544. (setAllUseBit): New function.
  12545. * src/BitfieldMan.cc
  12546. (clearAllBit): Do not clear useBitfield here.
  12547. (clearAllUseBit): New function.
  12548. (setAllUseBit): New function.
  12549. * src/Piece.cc
  12550. (clearAllBlock): Call bitfield->clearAllUseBit().
  12551. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12552. To make filename URL-decoded:
  12553. * src/HttpResponseCommand.h: Updated doc.
  12554. * src/HttpResponseCommand.cc
  12555. (determinFilename): Made filename URL-decoded.
  12556. * src/FtpInitiateConnectionCommand.cc
  12557. (executeInternal): Made filename URL-decoded.
  12558. * src/Util.h (urldecode): New function.
  12559. * src/Util.cc (urldecode): New function.
  12560. To fix a bug that caused assertion failure in ares_strerror:
  12561. * src/NameResolver.cc (callback): Fixed the bug.
  12562. * Release 0.7.3
  12563. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12564. To add --seed-time and --seed-ratio command-line option:
  12565. * src/Option.h (getAsDouble): New function.
  12566. * src/Option.cc (getAsDouble): New function.
  12567. * src/SeedCheckCommand.h: New class.
  12568. * src/SeedCheckCommand.cc: New class.
  12569. * src/DownloadEngineFactory.cc
  12570. (SeedCheckCommand.h): Included.
  12571. (UnionSeedCriteria.h): Included.
  12572. (TimeSeedCriteria.h): Included.
  12573. (ShareRatioSeedCriteria.h): Included.
  12574. (newTorrentConsoleEngine): Added the processing of seed option.
  12575. * src/SeedCriteria.h: New class.
  12576. * src/ShareRatioSeedCriteria.h: New class.
  12577. * src/TimeSeedCriteria.h: New class.
  12578. * src/UnionSeedCriteria.h: New class.
  12579. * src/prefs.h
  12580. (PREF_SEED_TIME): New definition.
  12581. (PREF_SEED_RATIO): New definition.
  12582. * src/main.cc
  12583. (showUsage): Added --seed-time and --seed-ratio option.
  12584. (main): Added --seed-time and --seed-ratio option.
  12585. Made default log file name "/dev/null".
  12586. * src/SharedHandle.h
  12587. (SharedHandle): Copy constructor. Made it assignable from the
  12588. SharedHandle of the subclasses.
  12589. (operator=): Made it assignable from the SharedHandle of the
  12590. subclasses.
  12591. (getRefCount): New function.
  12592. To add notice log level and the switch to write log to stdout. This
  12593. switch is configurable per log level.
  12594. * src/Logger.h
  12595. (notice): New function.
  12596. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  12597. constant.
  12598. * src/LogFactory.cc
  12599. (getInstance): The use of NullLogger was removed. A log message with
  12600. notice log level was made written to stdout along with log file.
  12601. * src/NullLogger.h
  12602. (notice): New function.
  12603. * src/SimpleLogger.h
  12604. (writeHeader): Added the 'file' argument.
  12605. (writeLog): Added the 'file' argument.
  12606. (writeFile): New function.
  12607. (stdoutField): New variable.
  12608. (SimpleLogger): Removed the default constructor.
  12609. (SimpleLogger): Made the default value of logfile 0.
  12610. (debug): Added 'virtual' keyword.
  12611. (info): Added 'virtual' keyword.
  12612. (warn): Added 'virtual' keyword.
  12613. (error): Added 'virtual' keyword.
  12614. (notice): New function.
  12615. (setStdout): New function.
  12616. * src/SimpleLogger.cc
  12617. (WRITE_LOG): Replaced writeLog with writeFile.
  12618. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  12619. (SimpleLogger): Removed the default constructor.
  12620. (setStdout): New function.
  12621. (writeLog): Added the handling of NOTICE log level.
  12622. (writeFile): New function.
  12623. (notice): New function.
  12624. * src/TorrentMan.h: Updated doc.
  12625. * src/BitfieldMan.h: Updated doc.
  12626. * src/TrackerWatcherCommand.cc
  12627. (execute): Return true if error occurred in the request to the tracker
  12628. and halt is requested.
  12629. * src/TrackerUpdateCommand.cc
  12630. (execute): Return true if error occurred in the request to the tracker
  12631. and halt is requested.
  12632. To call onDownloadComplete from TorrentMan::completePiece(), not from
  12633. DownloadEngine:
  12634. * src/TorrentConsoleDownloadEngine.h
  12635. (onSelectiveDownloadingCompletes): Removed.
  12636. * src/TorrentConsoleDownloadEngine.cc
  12637. (onSelectiveDownloadingCompletes): Removed.
  12638. * src/TorrentDownloadEngine.h
  12639. (onEndOfRun): Added 'virtual' keyword.
  12640. (afterEachIteration): Removed.
  12641. (onSelectiveDownloadingCompletes): Removed.
  12642. * src/TorrentDownloadEngine.cc
  12643. (onEndOfRun): Removed filenameFixed.
  12644. (afterEachIteration): Removed.
  12645. * src/TorrentMan.cc
  12646. (completePiece): Call onDownloadComplete here.
  12647. (onDownloadComplete): Added 2 log messages.
  12648. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12649. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  12650. * src/NameResolver.h: Added the prototype declaration of callback().
  12651. To support c-ares library:
  12652. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12653. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12654. * src/FtpInitiateConnectionCommand.h:
  12655. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12656. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12657. * src/HttpInitiateConnectionCommand.h:
  12658. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12659. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  12660. Added thes upport of c-ares's ares_strerror(the idea came from patch
  12661. #1542285 by tizianomueller)
  12662. * src/HttpInitiateConnectionCommand.cc:
  12663. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12664. * src/FtpInitiateConnectionCommand.cc:
  12665. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12666. * src/DownloadEngine.h:
  12667. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12668. * src/DownloadEngine.cc:
  12669. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12670. To fix the bug that causes compilation failure with metalink-support
  12671. disabled(bug#1543587):
  12672. * src/main.cc: Fixed with the patch by tizianomueller.
  12673. * Release 0.7.2
  12674. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12675. * src/main.cc
  12676. (main): Added a message to inform users that aria2 is starting to
  12677. verify checksum.
  12678. * src/RequestInfo.cc
  12679. (printDownloadAbortMessage): Added a message to inform users that
  12680. transfer can be resumed.
  12681. * src/FeatureConfig.cc
  12682. (FEATURE_ASYNC_DNS): New definition.
  12683. (FeatureConfig): Added aysnc DNS entry.
  12684. To replace CommandUuid with Command* in SocketEntry and
  12685. NameResolverEntry:
  12686. * src/DownloadEngine.h
  12687. (CommandUuids): Removed.
  12688. (SocketEntry::commandUuid): Removed.
  12689. (SocketEntry::command): New variable.
  12690. (SocketEntry::SocketEntry): Updated.
  12691. (SocketEntry::operator==): Updated.
  12692. (NameResolverEntry::commandUuid): Removed.
  12693. (NameResolverEntry::command): New variable.
  12694. (NameResolverEntry::NameResolverEntry): Updated.
  12695. (NameResolverEntry::operator==): Updated.
  12696. (waitData): Changed the argument type.
  12697. (addSocketForReadCheck): Changed the argument type.
  12698. (deleteSocketForReadCheck): Changed the argument type.
  12699. (addSocketForWriteCheck): Changed the argument type.
  12700. (deleteSocketForWriteCheck): Changed the argument type.
  12701. (addNameResolverCheck): Changed the argument type.
  12702. (deleteNameResolverCheck): Changed the argument type.
  12703. * src/DownloadEngine.cc
  12704. (FindCommand): Removed.
  12705. (run): Removed activeUuid. Added activeCommands instead.
  12706. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  12707. (AccumulateActiveCommand): New function object.
  12708. (waitData): Use AccumulateActiveCommand.
  12709. (addSocketForReadCheck): Use Command instead of CommandUuid.
  12710. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  12711. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  12712. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  12713. (addNameResolverCheck): Use Command instead of CommandUuid.
  12714. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  12715. * src/AbstractCommand.cc
  12716. (disableReadCheckSocket): Updated according to the changes in
  12717. DownloadEngine.
  12718. (setReadCheckSocket): Updated according to the changes in
  12719. DownloadEngine.
  12720. (disableWriteCheckSocket): Updated according to the changes in
  12721. DownloadEngine.
  12722. (setWriteCheckSocket): Updated according to the changes in
  12723. DownloadEngine.
  12724. (setNameResolverCheck): Updated according to the changes in
  12725. DownloadEngine.
  12726. (disableNameResolverCheck): Updated according to the changes in
  12727. DownloadEngine.
  12728. * src/AbstractCommand.cc
  12729. (disableReadCheckSocket): Updated according to the changes in
  12730. DownloadEngine.
  12731. (setReadCheckSocket): Updated according to the changes in
  12732. DownloadEngine.
  12733. (disableWriteCheckSocket): Updated according to the changes in
  12734. DownloadEngine.
  12735. (setWriteCheckSocket): Updated according to the changes in
  12736. DownloadEngine.
  12737. * release 0.7.1
  12738. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12739. To handle the case where some BitTorrent tracker requires all letters
  12740. except for [A-Za-z0-9] is URL encoded.
  12741. * src/Util.h
  12742. (torrentUrlencode): New function.
  12743. * src/Util.cc
  12744. (ctype.h): Included.
  12745. (torrentUrlencode): New function.
  12746. * src/TrackerWatcherCommand.cc
  12747. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  12748. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12749. To add asynchronous DNS support(libares):
  12750. * src/AbstractCommand.h
  12751. (setNameResolverCheck): New function.
  12752. (disableNameResolverCheck): New function
  12753. (resolveHostname): New function.
  12754. * src/AbstractCommand.cc
  12755. (setNameResolverCheck): New function.
  12756. (disableNameResolverCheck): New function
  12757. (resolveHostname): New function.
  12758. * src/FtpInitiateConnectionCommand.h
  12759. (nameResolver): New function.
  12760. * src/FtpInitiateConnectionCommand.cc
  12761. (Util.h): Included.
  12762. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  12763. disableWriteCheckSocket.
  12764. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  12765. (executeInternal): Added async DNS support.
  12766. * src/HttpInitiateConnectionCommand.h
  12767. (nameResolver): New function.
  12768. * src/HttpInitiateConnectionCommand.cc
  12769. (DlRetryEx.h): Included.
  12770. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  12771. disableWriteCheckSocket.
  12772. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  12773. (executeInternal): Added async DNS support.
  12774. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  12775. by extern "C" declaration.
  12776. * src/NameResolver.cc: New class.
  12777. * src/Util.h:
  12778. (isNumberAndDotsNotation): New function
  12779. * src/Util.cc
  12780. (isNumberAndDotsNotation): New function.
  12781. * src/DownloadEngine.h
  12782. (NameResolver.h): Included.
  12783. (NameResolverEntry): New class.
  12784. (NameResolverEntries): New type definition.
  12785. (addNameResolverCheck): New function.
  12786. (deleteNameResolverCheck): New function.
  12787. * src/DownloadEngine.cc
  12788. (run): Initialize cp with 0.
  12789. (SetDescriptor::operator()): Added for NameResolverEntry.
  12790. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  12791. (waitData): Check nameResolver entries.
  12792. (updateFdSet): Update fds in nameResolver entries.
  12793. (addNameResolverCheck): New function.
  12794. (deleteNameResolverCheck): new function.
  12795. * src/PeerInteractionCommand.cc
  12796. (executeInternal): Fixed wrong socket handling.
  12797. * src/main.cc
  12798. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  12799. * src/Util.cc
  12800. (fileChecksum): Removed the call to ctx.digestReset().
  12801. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12802. * po/ru.po: Azamat sent me Russian translation.
  12803. * src/FtpNegotiateCommand.cc
  12804. (recvGreeting): Call disableWriteCheckSocket just after
  12805. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  12806. (recvRetr): Recognized status code 125 as a acceptable response code.
  12807. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  12808. case-insesitive filesystem(BUG#1531057).
  12809. * src/Time.h: Renamed as TimeA2.h.
  12810. * src/Time.cc: Renamed as TimeA2.cc.
  12811. * src/TimeA2.h: New class.
  12812. * src/TimeA2.cc: New class.
  12813. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  12814. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  12815. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  12816. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  12817. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  12818. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  12819. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  12820. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  12821. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  12822. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  12823. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  12824. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  12825. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  12826. * release 0.7.0
  12827. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12828. * src/PeerChokeCommand.h
  12829. (PeerChokeCommand): Rearranged the arguments.
  12830. * src/PeerChokeCommand.cc
  12831. (PeerChokeCommand): Rearranged the arguments.
  12832. * src/MetalinkEntry.h
  12833. (Checksum.h): Included.
  12834. (md5): Removed.
  12835. (sha1): Removed.
  12836. (checksum): New variable.
  12837. (operator=): Updated.
  12838. (check): Removed.
  12839. * src/prefs.h
  12840. (PREF_LOWEST_SPEED_LIMIT): New definition.
  12841. (PREF_FOLLOW_TORRENT): New definition.
  12842. (PREF_SELECT_FILE): New definition.
  12843. (PREF_FOLLOW_METALINK): New definition.
  12844. * src/MetalinkResource.h
  12845. (TYPE_HTTPS): Added to enum TYPE.
  12846. * src/TorrentMan.cc
  12847. (~TorrentMan): Rewritten.
  12848. * src/MultiDiskWriter.cc
  12849. (MultiDiskAdaptor): Updated according to the changes in
  12850. MessageDigestContext.
  12851. (~MultiDiskAdaptor): Updated according to the changes in
  12852. MessageDigestContext.
  12853. (hashUpdate): Updated according to the changes in MessageDigestContext.
  12854. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12855. * src/Util.h
  12856. (fileChecksum): Updated according to the changes in
  12857. MessageDigestContext.
  12858. * src/Util.cc
  12859. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12860. (fileChecksum): Updated according to the changes in
  12861. MessageDigestContext.
  12862. * src/messageDigest.h: Rewritten.
  12863. * src/MetalinkEntry.cc
  12864. (check): Removed.
  12865. (Supported): Updated.
  12866. (dropUnsupportedResource): Fixed a memory leak.
  12867. * src/ShaVisitor.cc
  12868. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  12869. (~ShaVisitor): Updated according to the changes in
  12870. MessageDigestContext.
  12871. (visit): Updated according to the changes in MessageDigestContext.
  12872. * src/main.cc
  12873. (main): Rewritten the portion of download loop. --lowest-speed-limit
  12874. command-line option added.
  12875. * src/DownloadEngine.h
  12876. (SocketEntry): New class.
  12877. (SocketEntries): New definition.
  12878. (PairFind): Removed.
  12879. (SockCmdMap): Removed.
  12880. * src/DownloadEngine.cc
  12881. (DownloadEngine): Rewritten.
  12882. (~DownloadEngine): Rewritten.
  12883. (run): Renamed activeCommandUuids as activeUuids.
  12884. (SetDescriptor): Rewritten.
  12885. (AccumulateActiveCommandUuid): Removed.
  12886. (AccumulateActiveUuid): New function object.
  12887. (waitData): Rewritten.
  12888. (updateFdSet): Rewritten.
  12889. (addSocket): Rewritten.
  12890. (deleteSocket): Rewritten.
  12891. (addSocketForReadCheck): Rewritten.
  12892. (deleteSocketForReadCheck): Rewritten.
  12893. (addSocketForWriteCheck): Rewritten.
  12894. (deleteSocketForWriteCheck): Rewritten.
  12895. * src/Xml2MetalinkProcessor.cc
  12896. (getEntry): Rewritten the portion of MetalinkEntry creation.
  12897. * src/DownloadCommand.cc
  12898. (executeInternal): Added the check routine for lowest speed limit.
  12899. * src/AbstractDiskWriter.cc
  12900. (AbstractDiskWriter): Updated according to the changes in
  12901. MessageDigestContext.
  12902. (~AbstractDiskWriter): Updated according to the changes in
  12903. MessageDigestContext.
  12904. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12905. * src/RequestInfo.h: New class.
  12906. * src/UrlRequestInfo.h: New class.
  12907. * src/UrlRequestInfo.cc: New class.
  12908. * src/TorrentRequestInfo.h: New class.
  12909. * src/TorrentRequestInfo.cc: New class.
  12910. * src/MetalinkRequestInfo.h: New class.
  12911. * src/MetalinkRequestInfo.cc: New class.
  12912. * src/Checksum.h: New class.
  12913. * src/DownloadEngineFactory.h: New class.
  12914. * src/DownloadEngineFactory.cc: New class.
  12915. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12916. * src/Option.h
  12917. (getAsBool): New function.
  12918. * src/Option.cc
  12919. (prefs.h): Included.
  12920. (defined): 0-length value is now recognized as undefined.
  12921. (getAsInt): Rewritten.
  12922. (getAsLLInt): Rewritten.
  12923. (getAsBool): New function.
  12924. * src/FeatureConfig.h: Rewritten.
  12925. * src/FeatureConfig.cc: Rewritten.
  12926. * src/prefs.h
  12927. (PREF_STDOUT_LOG): New definition.
  12928. (PREF_LOG): New definition.
  12929. (PREF_DIR): New definition.
  12930. (PREF_OUT): New definition.
  12931. (PREF_SPLIT): New definition.
  12932. (PREF_DAEMON): New definition.
  12933. (PREF_REFERER): New definition.
  12934. (PREF_TORRENT_FILE): New definition.
  12935. (PREF_LISTEN_PORT): New definition.
  12936. (PREF_METALINK_FILE): New definition.
  12937. (PREF_METALINK_VERSION): New definition.
  12938. (PREF_METALINK_LANGUAGE): New definition.
  12939. (PREF_METALINK_OS): New definition.
  12940. (PREF_METALINK_SERVERS): New definition.
  12941. * src/main.cc
  12942. (main): Following command-line parameters are now put into Option
  12943. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  12944. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  12945. metalinkLanguage, metalinkOs, metalinkServers
  12946. To fix the bug that aria2 can not handle http response header properly.
  12947. * src/HttpHeader.cc
  12948. (put): Made name lowercased.
  12949. (defined): Made name lowercased.
  12950. (getFirst): Made name lowercased.
  12951. (get): Made name lowercased.
  12952. (getFirstAsInt): Rewritten.
  12953. (getFirstAsLLInt): Rewritten.
  12954. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12955. * src/TorrentMan.h:
  12956. (advertisePiece): Updated doc.
  12957. (getAdvertisedPieceIndexes): Updated doc.
  12958. (removeAdvertisedPiece); New function.
  12959. * src/TorrentMan.cc
  12960. (FindElapsedHave): New function object.
  12961. (removeAdvertisedPiece): New function.
  12962. * src/HaveEraseCommand.h: New class.
  12963. * src/HaveEraseCommand.cc: New class.
  12964. * src/FeatureConfig.h: New class.
  12965. * src/FeatureConfig.cc: New class.
  12966. * src/Request.h
  12967. (defaultPorts): Removed.
  12968. * src/Request.cc
  12969. (FeatureConfig.h): Included.
  12970. (Request): Removed the statements related to defaultPorts.
  12971. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  12972. A default port number is now retrieved from FeatureConfig.
  12973. * src/main.cc
  12974. (HaveEraseCommand.h): Included.
  12975. (showVersion): Added the output of feature list.
  12976. (main): Added HaveEraseCommand to command queue in BitTorrent
  12977. downloading.
  12978. * src/PeerInteractionCommand.h
  12979. (chokeCheckPoint): Commented out.
  12980. (periodicExecPoint): New variable.
  12981. * src/PeerInteractionCommand.cc
  12982. (executeInternal): Following methods are now called in at least every
  12983. 0.5 seconds to reduce CPU usage:
  12984. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  12985. checkHave(), sendKeepAlive().
  12986. (checkLongTimePeerChoking): Commented out.
  12987. * src/BitfieldMan.h
  12988. (getNthBitIndex): Changed the method signature.
  12989. (getMissingIndexRandomly): Changed the method signature.
  12990. * src/BitfieldMan.cc
  12991. (getNthBitIndex): Rewritten
  12992. (getMissingIndexRandomly): Rewritten.
  12993. (hasMissingPiece): Rewritten.
  12994. (getMissingIndex): Refactored.
  12995. (getMissingUnusedIndex); Refactored.
  12996. (getMissingIndex): Refactored.
  12997. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12998. * src/PeerMessage.h
  12999. (Piece.h): Included.
  13000. (SharedHandle.h): Included.
  13001. (invalidate): New variable.
  13002. (uploading): New variable.
  13003. (isInvalidate): New function.
  13004. (isUploading): New function.
  13005. (onPush): New function.
  13006. (onChoked): New function.
  13007. (onCanceled): New function.
  13008. (onAbortPiece): New function.
  13009. (PeerMessageHandle): New type definition.
  13010. * src/PeerMessage.cc
  13011. (PeerMessage): Added the initialization for invalidate and uploading.
  13012. * src/CancelMessage.h
  13013. (CancelMessage): Rewritten.
  13014. * src/RejectMessage.h
  13015. (RejectMessage): Rewritten.
  13016. * src/Metalinker.h
  13017. (operator=): Defined.
  13018. * src/MetaEntry.h
  13019. (operator=): Defined.
  13020. * src/MetalinkResource.h
  13021. (operator=): Defined.
  13022. * src/AllowedFastMessage.h
  13023. (AllowedFastMessage): Rewritten.
  13024. * src/HandshakeMessage.h
  13025. (HandshakeMessage): New function(overload).
  13026. * src/HandshakeMessage.cc
  13027. (HandshakeMessage): Rewritten.
  13028. (init): New function.
  13029. * src/HaveMessage.h
  13030. (HaveMessage): Rewritten.
  13031. * src/Time.h
  13032. (operator=): Defined the function body here.
  13033. * src/Time.cc
  13034. (operator=): Removed.
  13035. * src/SocketCore.h
  13036. (operator==): Defined here.
  13037. (operator!=): Defined here.
  13038. (operator<): Defined here.
  13039. * src/SocketCore.cc
  13040. (operator==): Removed.
  13041. (operator<): Removed.
  13042. * src/BitfieldMan.h
  13043. (operator=): Defined the function body here.
  13044. * src/BitfieldMan.cc
  13045. (operator=): Removed.
  13046. * src/TorrentMan.h
  13047. (deleteErrorPeer): Removed.
  13048. (deleteUnusedPeer); New function.
  13049. * src/TorrentMan.cc
  13050. (addPeer): Call deleteUnusedPeer.
  13051. (deleteErrorPeer): Removed.
  13052. (deleteUnusedPeer): New function.
  13053. * src/PeerAbstractCommand.h
  13054. (setNoCheck): New function.
  13055. (noCheck): New variable.
  13056. * src/PeerAbstractCommand.cc
  13057. (PeerAbstractCommand): Added the initialization of noCheck.
  13058. (execute): Added a check for noCheck.
  13059. (setNoCheck): New function.
  13060. * src/Util.h
  13061. (stdio.h): Included.
  13062. * src/Util.cc
  13063. (unistd.h): Included.
  13064. * src/DefaultDiskWriter.cc
  13065. (unistd.h): Included.
  13066. * src/Peer.h
  13067. (operator==): Defined the function body here.
  13068. (operator!=): Defined the function body here.
  13069. * src/Peer.cc
  13070. (operator==): Removed.
  13071. (operator!=): Removed.
  13072. * src/Piece.h
  13073. (Piece): Defined the function body here(copy constructor).
  13074. (operator=): Defined the function body here.
  13075. (operator==): Defined the function body here.
  13076. * src/Piece.cc
  13077. (Piece): Removed(copy constructor).
  13078. (operator=): Removed.
  13079. (operator==): Removed.
  13080. * src/PeerMessageUtil.h
  13081. (ChokeMessage.h): Removed.
  13082. (UnchokeMessage.h): Removed.
  13083. (InterestedMessage.h): Removed.
  13084. (NotInterestedMessage.h): Removed.
  13085. (HaveMessage.h): Removed.
  13086. (BitfieldMessage.h): Removed.
  13087. (RequestMessage.h): Removed.
  13088. (CancelMessage.h): Removed.
  13089. (PieceMessage.h): Removed.
  13090. (HandshakeMessage.h): Removed.
  13091. (KeepAliveMessage.h): Removed.
  13092. (PortMessage.h): Removed.
  13093. (HaveAllMessage.h): Removed.
  13094. (HaveNoneMessage.h): Removed.
  13095. (PeerConnection.h): Removed.
  13096. (HandshakeMessage.h): Included.
  13097. * src/BitfieldMessage.h
  13098. (init): New function.
  13099. (BitfieldMessage): Rewritten.
  13100. (BitfieldMessage): New function(overload).
  13101. * src/RequestSlot.h
  13102. (operator=): Defined the function body here.
  13103. (operator==): Defined the function body here.
  13104. * src/RequestSlot.cc
  13105. (operator=): Removed.
  13106. (operator==): Removed.
  13107. To remove the dependency on the PeerMessage subclass from
  13108. PeerInteraction:
  13109. * src/PeerMessageFactory.h: New class.
  13110. * src/PeerMessageFactory.cc: New class.
  13111. * src/SimplePeerMessage.cc
  13112. (send): If invalidate is true then do nothing.
  13113. * src/PeerInteractionCommand.cc
  13114. (HandshakeMessage.h): Included.
  13115. (KeepAliveMessage.h): Included.
  13116. (ChokeMessage.h): Included.
  13117. (UnchokeMessage.h): Included.
  13118. (HaveMessage.h): Included.
  13119. (executeInternal): Call setNoCheck().
  13120. Removed setWriteCheckSocket(socket).
  13121. * src/PeerInteraction.h
  13122. (ChokeMessage.h): Removed.
  13123. (UnchokeMessage.h): Removed.
  13124. (InterestedMessage.h): Removed.
  13125. (NotInterestedMessage.h): Removed.
  13126. (HaveMessage.h): Removed.
  13127. (BitfieldMessage.h): Removed.
  13128. (RequestMessage.h): Removed.
  13129. (CancelMessage.h): Removed.
  13130. (PieceMessage.h): Removed.
  13131. (HandshakeMessage.h): Removed.
  13132. (KeepAliveMessage.h): Removed.
  13133. (PortMessage.h): Removed.
  13134. (HaveAllMessage.h): Removed.
  13135. (HaveNoneMessage.h): Removed.
  13136. (RejectMessage.h): Removed.
  13137. (AllowedFastMessage.h): Removed.
  13138. (SuggestPieceMessage.h): Removed.
  13139. (PeerMessageFactory.h): Included.
  13140. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  13141. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  13142. (PeerMessageFactory): New variable.
  13143. (createPeerMessage): Removed.
  13144. (createHandshakeMessage): Removed.
  13145. (setPeerMessageCommonProperty): Removed.
  13146. (addRequestSlot): New function.
  13147. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13148. (getPeerMessageFactory): New function.
  13149. (createRequestMessage): Removed.
  13150. (createCancelMessage): Removed.
  13151. (createPieceMessage): Removed.
  13152. (createHaveMessage): Removed.
  13153. (createChokeMessage): Removed.
  13154. (createUnchokeMessage): Removed.
  13155. (createInterestedMessage): Removed.
  13156. (createNotInterestedMessage): Removed.
  13157. (createBitfieldMessage): Removed.
  13158. (createKeepAliveMessage): Removed.
  13159. (createHaveAllMessage): Removed.
  13160. (createHaveNoneMessage): Removed.
  13161. (createRejectMessage): Removed.
  13162. (createAllowedFastMessage): Removed.
  13163. * src/PeerInteraction.cc
  13164. (PeerInteraction): Allocate PeerMessageFactory here.
  13165. (~PeerInteraction): Deallocate PeerMessageFactory here.
  13166. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  13167. PieceMessage::ID.
  13168. (addMessage): Simplified by using PeerMessage::onPush().
  13169. (addRequestSlot): New function.
  13170. (rejectAllPieceMessageInQueue): Simplified by using
  13171. PeerMessage::onChoked().
  13172. (rejectPieceMessageInQueue): Simplified by using
  13173. PeerMessage::onCanceled().
  13174. (abortPiece): Simplified by using PeerMessage::abortPiece().
  13175. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13176. (createHandshakeMessage): Removed.
  13177. (createPeerMessage): Removed.
  13178. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  13179. (setPeerMessageCommonProperty): Removed.
  13180. (createRequestMessage): Removed.
  13181. (createCancelMessage): Removed.
  13182. (createPieceMessage): Removed.
  13183. (createHaveMessage): Removed.
  13184. (createChokeMessage): Removed.
  13185. (createUnchokeMessage): Removed.
  13186. (createInterestedMessage): Removed.
  13187. (createNotInterestedMessage): Removed.
  13188. (createBitfieldMessage): Removed.
  13189. (createKeepAliveMessage): Removed.
  13190. (createHaveAllMessage): Removed.
  13191. (createHaveNoneMessage): Removed.
  13192. (createRejectMessage): Removed.
  13193. (createAllowedFastMessage): Removed.
  13194. * src/PieceMessage.h
  13195. (createRejectMessage): New function.
  13196. (PieceMessage): Rewritten.
  13197. (onChoked): New function.
  13198. (onCanceled): New function.
  13199. * src/PieceMessage.cc
  13200. (send): If invalidate is true then do nothing, just return.
  13201. (createRejectMessage): New function.
  13202. (onChoked): New function.
  13203. (onCanceled): New function.
  13204. * src/RequestMessage.h
  13205. (RequestMessage): Rewritten.
  13206. (onPush): New function.
  13207. (onAbortPiece): New function.
  13208. * src/RequestMessage.cc
  13209. (onPush): New function.
  13210. (onAbortPiece): New function.
  13211. Update fd_set when a socket is added or deleted in order to improve
  13212. performance:
  13213. * src/DownloadEngine.h
  13214. (rfdset): New variable.
  13215. (wfdset): New variable.
  13216. (updateFdSet): New function.
  13217. * src/DownloadEngine.cc
  13218. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  13219. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  13220. (waitData): Copy rfdset and wfdset.
  13221. (updateFdSet): New function.
  13222. (addSocket): Call updateFdSet.
  13223. (deleteSocket): Call updateFdSet.
  13224. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13225. To add the support for Metalink3.0 backward compatible links:
  13226. * src/Request.h
  13227. (SAFE_CHARS): Added '#'.
  13228. (METALINK_MARK): New definition.
  13229. * src/Request.cc
  13230. (parseUrl): Added the support for Metalink3.0 backward compatible
  13231. links.
  13232. etc
  13233. * src/PeerInteraction.cc
  13234. (MsgPushBack): Removed.
  13235. (sendMessages): Use STL copy and back_inserter.
  13236. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  13237. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  13238. * src/TorrentMan.h
  13239. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  13240. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13241. * src/SharedHandle.h: New class.
  13242. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  13243. * src/HttpResponseCommand.h
  13244. (HttpResponseCommand): Wrapped Socket.
  13245. * src/SocketCore.h
  13246. (operator==): New function.
  13247. (operator!=): New function.
  13248. (operator<): New function.
  13249. (getSockfd): New function.
  13250. (isOpen): New function.
  13251. (writeData): New function.
  13252. * src/SocketCore.cc
  13253. (operator==): New function.
  13254. (operator!=): New function.
  13255. (operator<): New function.
  13256. * src/AbstractCommand.h
  13257. (socket): Changed its type to SocketHandle.
  13258. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13259. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13260. (disableReadCheckSocket): New function.
  13261. (disableWriteCheckSocket): New function.
  13262. (readCheckTarget): Changed its type to SocketHandle.
  13263. (writeCheckTarget): Changed its type to SocketHandle.
  13264. (AbstractCommand): Replaced Socket with SocketHandle.
  13265. * src/AbstractCommand.cc
  13266. (AbstractCommand): Replaced Socket with SocketHandle.
  13267. (~AbstractCommand): Removed the deallocation for Socket object.
  13268. (disableReadCheckSocket): New function.
  13269. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13270. (disableWriteCheckSocket): New function.
  13271. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13272. * src/HttpDownloadCommand.cc
  13273. (DownloadCommand): Replaced Socket with SocketHandle.
  13274. * src/PeerAbstractCommand.h
  13275. (socket): Changed its type to SocketHandle.
  13276. (peer): Changed its type to PeerHandle.
  13277. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13278. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13279. (disableReadCheckSocket): New function.
  13280. (disableWriteCheckSocket): New function.
  13281. (readCheckTarget): Changed its type to SocketHandle.
  13282. (writeCheckTarget): Changed its type to SocketHandle.
  13283. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13284. Replaced Peer with PeerHandle.
  13285. * src/HttpRequestCommand.cc
  13286. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13287. Use disableReadCheckSocket.
  13288. * src/PeerInitiateConnectionCommand.h
  13289. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13290. * src/PeerChokeCommand.cc
  13291. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  13292. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  13293. (execute): Use PeerHandle.
  13294. * src/PeerConnection.h
  13295. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  13296. (socket): Changed its type to SocketHandle.
  13297. (PeerConnection): Replaced Socket with SocketHandle.
  13298. * src/PeerConnection.cc
  13299. (PeerConnection): Replaced Socket with SocketHandle.
  13300. * src/PeerInteractionCommand.h
  13301. (PeerInteractionCommand): Replaced socket with SocketHandle.
  13302. Replaced Peer with PeerHandle.
  13303. * src/PeerInteractionCommand.cc
  13304. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  13305. Replaced Peer with PeerHandle.
  13306. (executeInternal): Use disableWriteCheckSocket.
  13307. Use HandshakeMessageHandle.
  13308. (receiveMessages): Use PeerMessageHandle.
  13309. (prepareForNextPeer): Use PeerHandle.
  13310. * src/HttpProxyRequestCommand.h
  13311. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13312. * src/HttpResponseCommand.cc
  13313. (HttpResponseCommand): Replaced Socket with SocketHandle.
  13314. * src/TorrentMan.cc
  13315. (nullPeer): Added external reference.
  13316. (~TorrentMan): Removed the deallocation of the elements of peers.
  13317. (addPeer): Rewritten.
  13318. (isPeerAvailable): Use nullPeer.
  13319. (deleteOldpeers): Replaced with deleteErrorPeer.
  13320. (deleteErrorPeer): New function.
  13321. (getPeer): Use PeerHandle and nullPeer.
  13322. (hasMissingPiece): Replaced Peer with PeerHandle.
  13323. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13324. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13325. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13326. (getMissingPiece): Replaced Peer with PeerHandle.
  13327. * src/FtpNegotiateCommand.cc
  13328. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  13329. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  13330. (recvGreeting): Use disableWriteCheckSocket.
  13331. (recvPasv): Removed the allocation of Socket.
  13332. Use disableReadCheckSocket.
  13333. (sendRestPasv): Use disableWriteCheckSocket.
  13334. (recvRetr): Changed assertion.
  13335. * src/PeerInteraction.h
  13336. (SharedHandle.h): Included SharedHandle.h.
  13337. (PeerMessageHandle): New type definition.
  13338. (HandshakeMessageHandle): New type definition.
  13339. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  13340. (peer): Changed its type to PeerHandle.
  13341. (createHandshakeMessage): Replaced HandshakeMessage with
  13342. HandshakeMessageHandle.
  13343. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  13344. (PeerInteraction): Replaced Peer with PeerHandle.
  13345. Replaced Socket with SocketHandle.
  13346. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13347. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13348. (receiveHandshake): Replaced HandshakeMessage with
  13349. HandshakeMessageHandle.
  13350. * src/PeerInteraction.cc
  13351. (PeerInteraction): Replaced Peer with PeerHandle.
  13352. Replaced Socket with SocketHandle.
  13353. (~PeerInteraction): Removed the deallocation of the elements of
  13354. messageQueue.
  13355. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  13356. (isSendingMessageInProgress): Replaced PeerMessage with
  13357. PeerMessageHandle.
  13358. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  13359. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13360. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  13361. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  13362. (abortPiece): Use PeerMessageHandle.
  13363. (receiveHandshake): Replaced HandshakeMessage with
  13364. HandshakeMessageHandle. Removed try-catch block.
  13365. (createHandshakeMessage): Replaced HandshakeMessage with
  13366. HandshakeMessageHandle.
  13367. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13368. Removed try-catch block.
  13369. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  13370. * src/HttpProxyResponseCommand.cc
  13371. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13372. * src/FtpTunnelResponseCommand.h
  13373. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13374. * src/HttpConnection.cc
  13375. (HttpConnection): Replaced Socket with SocketHandle.
  13376. * src/PeerAbstractCommand.cc
  13377. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13378. (~PeerAbstractCommand): Removed the deallocation of socket.
  13379. Use disableReadCheckSocket, disableWriteCheckSocket.
  13380. (disableReadCheckSocket): New function.
  13381. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13382. (disableWriteCheckSocket): New function.
  13383. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13384. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  13385. * src/FtpTunnelRequestCommand.cc
  13386. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13387. (~FtpTunnelRequestCommand): Corrected indentation.
  13388. * src/DownloadCommand.h
  13389. (DownloadCommand): Replaced Socket with SocketHandle.
  13390. * src/PeerListenCommand.cc
  13391. (PeerListenCommand): Removed the initialization of socket.
  13392. (~PeerListenCommand): Removed the deallocation of socket.
  13393. (bindPort): Use SocketHandle.
  13394. (execute): Use SocketHandle and PeerHandle.
  13395. * src/FtpDowndloadCommand.cc
  13396. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13397. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  13398. * src/main.cc
  13399. (main): Corrected indentation.
  13400. * src/HttpInitiateConnectionCommand.cc
  13401. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  13402. (executeInternal): Removed the allocation of socket.
  13403. * src/HttpRequestCommand.h
  13404. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13405. * src/FtpNegotiationCommand.h
  13406. (dataSocket): Changed its type to SocketHandle.
  13407. (serverSocket): Changed its type to SocketHandle.
  13408. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  13409. * src/TorrentMan.h
  13410. (MAX_PEER_UPDATE): Removed.
  13411. (MAX_PEERS): New definition.
  13412. (Peers): The element is now of type PeerHandle.
  13413. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  13414. (getPeer): Replaced Peer with PeerHandle.
  13415. (deleteOldErrorPeers): Removed.
  13416. (deleteErrorPeer): New function.
  13417. (hasMissingPiece): Replaced Peer with PeerHandle.
  13418. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13419. (getMissingPiece): Replaced Peer with PeerHandle.
  13420. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13421. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13422. (addActivePeer): Replaced Peer with PeerHandle.
  13423. (deleteActivePeer): Replaced Peer with PeerHandle.
  13424. Added a check for the return value of find.
  13425. * src/FtpTunnelResponseCommand.cc
  13426. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13427. * src/FtpInitiateConnectionCommand.cc
  13428. (executeInternal): Removed the allocation of socket.
  13429. * src/DownloadEngine.h
  13430. (Sockets): An element is now of type SocketHandle.
  13431. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  13432. (CommandUuids): New type definition.
  13433. (rsockets): Changed its type to SockCmdMap.
  13434. (wsockets): Changed its type to SockCmdMap.
  13435. (addSocket): Rewritten.
  13436. (deleteSocket): Rewritten.
  13437. (addSocketForReadCheck): Rewritten.
  13438. (deleteSocketForReadCheck): Rewritten.
  13439. (addSocketForWriteCheck): Rewritten.
  13440. (deleteSocketForWriteCheck): Rewritten.
  13441. (PairFind): New template class.
  13442. * src/HttpDownloadCommand.h
  13443. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  13444. * src/FtpConnection.cc
  13445. (FtpConnection): Replaced Socket with SocketHandle.
  13446. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  13447. block.
  13448. * src/InitiateConnectionCommandFactory.cc
  13449. (DlAbortEx.h): Included DlAbortEx.h.
  13450. (createInitiateConnectionCommand): Throw exception if the protocol of
  13451. requested URI is not supported.
  13452. * src/Peer.cc
  13453. (nullPeer): Changed its type to PeerHandle.
  13454. (operator==): New function.
  13455. (operator!=): New function.
  13456. * src/Peer.h
  13457. (SharedHandle.h): Included SharedHandle.h.
  13458. (operator==): New function.
  13459. (operator!=): New function.
  13460. (Peer): Added the default constructor.
  13461. Use resetStatus() to initialize member variables.
  13462. (nullPeer): Removed.
  13463. * src/TrackerUpdateCommand.cc
  13464. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  13465. with MIN_PEERS.
  13466. * src/PeerListenCommand.h
  13467. (socket): Changed its type to SocketHandle.
  13468. * src/Command.h
  13469. (CommandUuid): New type definition.
  13470. (uuid): New variable.
  13471. (uuidGen): New variable.
  13472. (Command): Added the initialization of uuid.
  13473. (getUuid): New function.
  13474. * src/Socket.h
  13475. (Socket): Removed.
  13476. (SocketHandle): New type definition.
  13477. * src/DownloadEngine.h
  13478. (FindCommand): New function object.
  13479. (run): The portion of socket check was rewritten.
  13480. (SetDescriptor): New function object.
  13481. (AccumulateActiveCommandUuid): New function object.
  13482. (waitData): Rewritten.
  13483. (addSocket): Rewritten.
  13484. (deleteSocket): Rewritten.
  13485. (addSocketForReadCheck): Rewritten.
  13486. (addSocketForWriteCheck): Rewritten.
  13487. (deleteSocketForReadCheck): Rewritten.
  13488. (deleteSocketForWriteCheck): Rewritten.
  13489. * src/HttpProxyResponseCommand.h
  13490. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  13491. * src/HttpConnection.h
  13492. (socket): Changed its type to SocketHandle.
  13493. (HttpConnection): Replaced Socket with SocketHandle.
  13494. * src/PeerInitiateConnectionCommand.cc
  13495. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13496. (executeInternal): Removed the allocation of socket.
  13497. (prepareForNextPeer): Use PeerHandle.
  13498. * src/PeerMessage.h
  13499. (peer): Changed its type to PeerHandle.
  13500. (getPeer): Replaced Peer with PeerHandle.
  13501. (setPeer): Replaced Peer with PeerHandle.
  13502. * src/DownloadCommand.cc
  13503. (DownloadCommand): Replaced Socket with SocketHandle.
  13504. * src/FtpConnection.h
  13505. (socket): Changed its type to SocketHandle.
  13506. (FtpConnection): Replaced Socket with SocketHandle.
  13507. (sendPort); Replaced Socket with SocketHandle.
  13508. * src/FtpDowndloadCommand.h
  13509. (ctrlSocket): Changed its type to SocketHandle.
  13510. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13511. * src/HttpProxyRequestCommand.cc
  13512. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13513. * src/FtpTunnelRequestCommand.h
  13514. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13515. etc
  13516. * src/PeerChokeCommand.h
  13517. (setAllPeerChoked): Removed.
  13518. (setAllPeerResetDelta): Removed.
  13519. * src/PeerChokeCommand.cc
  13520. (setAllPeerChoked): Removed.
  13521. (ChokePeer): New function object.
  13522. (setAllPeerResetDelta): Removed.
  13523. (ResetDelta): New function object.
  13524. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  13525. (execute): Show download speed when the local node is a seeder.
  13526. setAllPeerChoked and setAllPeerResetDelta were rewritten
  13527. using STL.
  13528. * src/TrackerWatcherCommand.h
  13529. (MIN_PEERS): Removed.
  13530. * src/TorrentMan.cc
  13531. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  13532. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13533. To fix the bug that .aria2 file is not saved if downloading is stopped
  13534. by the errors:it results that aria2 can not resume downloading:
  13535. * src/main.cc
  13536. (normalDownload): Added the call to save().
  13537. (main): Added the deletion of the elements in 'reserved'.
  13538. To fix log:
  13539. * src/PeerInteraction.cc
  13540. (receiveHandshake): Fixed log.
  13541. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13542. To improve download performance in BitTorrent:
  13543. * src/TorrentMan.cc
  13544. (getPeer): Check the number of connections. Return nullPeer if
  13545. it is greater than MAX_PEER_UPDATE.
  13546. This code was originally here, but was removed in 0.5.1.
  13547. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13548. To improve the conditional compilation:
  13549. * src/MultiDiskWriter.h:
  13550. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13551. * src/MultiDiskWriter.cc:
  13552. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13553. * src/Util.h:
  13554. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13555. Added ENABLE_BITTORRENT around computeFastSet().
  13556. * src/Util.cc:
  13557. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13558. Added ENABLE_BITTORRENT around computeFastSet().
  13559. * src/messageDigest.h:
  13560. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  13561. * src/ShaVisitor.h:
  13562. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13563. * src/ShaVisitor.cc:
  13564. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13565. * src/main.cc:
  13566. Added ENABLE_BITTORRENT around includes and blocks related to
  13567. BitTorrent.
  13568. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  13569. digest support is not available.
  13570. * src/AbstractDiskWriter.h:
  13571. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13572. * src/AbstractDiskWriter.cc:
  13573. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13574. * src/MetalinkEntry.cc
  13575. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  13576. support is not available.
  13577. To add command-line options for Metalink:
  13578. * src/main.cc:
  13579. Added metalink-version, metalink-language, metalink-os,
  13580. follow-metalink.
  13581. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  13582. * src/main.cc: Use these definition.
  13583. * Release 0.6.0
  13584. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13585. To add Metalink support(http/ftp only):
  13586. * src/AbstractCommand.h
  13587. (tryReserved): New function.
  13588. * src/AbstractCommand.cc
  13589. (execute): Call tryReserved().
  13590. (tryReserved): New function.
  13591. * src/Request.h
  13592. (Requests): New type definition.
  13593. * src/SegmentMan.h
  13594. (reserved): New variable.
  13595. * src/Util.h
  13596. (fileChecksum): New function.
  13597. (toUpper): New function.
  13598. (toLower): New function.
  13599. * src/Util.cc
  13600. (messageDigest.h): Included.
  13601. (trim): Trim \r\n\t.
  13602. (fileChecksum): New function.
  13603. (toUpper): New function.
  13604. (toLower): New function.
  13605. * src/main.cc
  13606. (normalDownload): New function.
  13607. (main): Added 2 command-line options: metalink-file,
  13608. metalink-connection. Their usage has not been written yet.
  13609. * src/MetalinkProcessor.h: New class.
  13610. * src/Xml2MetalinkProcessor.h: New class.
  13611. * src/Xml2MetalinkProcessor.cc: New class.
  13612. * src/MetalinkEntry.h: New class.
  13613. * src/MetalinkEntry.cc: New class.
  13614. * src/MetalinkResource.h: New class.
  13615. * src/MetalinkResource.cc: New class.
  13616. To add md5 message digest checking:
  13617. * src/messageDigest.h: Rewritten.
  13618. * src/MultiDiskWriter.cc: Updated according to the changes in
  13619. messageDigest.h.
  13620. * src/ShaVisitor.cc: Updated according to the changes in
  13621. messageDigest.h.
  13622. * src/Util.cc: Updated according to the changes in messageDigest.h.
  13623. * src/AbstractDiskWriter.cc: Updated according to the changes in
  13624. messageDigest.h.
  13625. To fix a bug that causes segfault when the payload length in peer
  13626. message is less than 0:
  13627. * src/PeerConnection.cc:
  13628. (receiveMessage): Fixed the bug.
  13629. * src/PeerMessageUtil.cc
  13630. (checkLength): Throw an exception if length is less than or equals to
  13631. 0.
  13632. To add new interfaces to Base64 encoding/decoding:
  13633. * src/Base64.h
  13634. (part_encode): Changed the method signature.
  13635. (encode): New function(overload).
  13636. (decode): New function(overload).
  13637. * src/Base64.cc
  13638. (part_encode): Rewritten.
  13639. (encode): Rewritten.
  13640. (encode): New function(overload).
  13641. To prevent a peer to download same piece if there is an error in
  13642. checksum:
  13643. * src/PieceMessage.cc
  13644. (receivedAction): Call peerInteraction->abortPiece().
  13645. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13646. To fix the bug that causes same have message is sent many times to
  13647. a single peer.
  13648. * src/Time.cc
  13649. (isNewer): Use Util::difftv().
  13650. * src/Util.cc
  13651. (difftv): Added a cast to (long long int).
  13652. * src/TorrentMan.cc
  13653. (advertisePiece): Use push_front.
  13654. (getAdvertisedPieceIndexes): A performance improvement was made.
  13655. To fix the bug that sends tracker requests without a sleep interval
  13656. when the number of connections is less than 15.
  13657. * src/TrackerWatcherCommand.cc
  13658. (execute): Now the number of connections is not a factor to decide
  13659. whether or not a tracker request should be sent or not.
  13660. * src/Time.h
  13661. (setTimeInSec): New function.
  13662. * src/Time.cc
  13663. (setTimeInSec): New function.
  13664. etc.
  13665. * src/ChokeMessage.cc
  13666. (receivedAction): Removed peer->snubbing = false
  13667. * src/PeerConnection.h
  13668. (receiveHandshake): Updated doc.
  13669. * src/TorrentMan.h
  13670. (getAdvertisedPieceIndexes): Updated the method signature.
  13671. * src/TorrentMan.cc
  13672. (getAdvertisedPieceIndexes): Updated the method signature.
  13673. * src/Time.h
  13674. (getTimeInMicros): Added a cast to (long long int).
  13675. (getTimeInMillis): Added a cast to (long long int).
  13676. * Release 0.5.2
  13677. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13678. To make a listening socket non-block:
  13679. * src/SocketCore.h
  13680. (setNonBlockingMode): New function.
  13681. * src/SocketCore.cc
  13682. (setNonBlockingMode): New function.
  13683. (beginListen): Added a call to setNonBlockingMode().
  13684. (acceptConnection): Call setNonBlockingMode().
  13685. (setBlockingMode): Updated.
  13686. To handle tracker's NAT-checking:
  13687. * src/PeerConnection.cc
  13688. (receiveHandshake): 'msg' param is filled with received data and
  13689. its length is assigned to 'length' param, even if all handshake
  13690. message is not yet received.
  13691. * src/PeerInteractionCommand.cc
  13692. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  13693. a new peer connects to localhost.
  13694. A call to peerInteraction->sendHandshake() was removed because
  13695. it is called from peerInteraction->receiveHandshake(true).
  13696. * src/PeerInteraction.h
  13697. (quickReplied): New variable.
  13698. (receiveHandshake): Added an argument.
  13699. * src/PeerInteraction.cc
  13700. (PeerInteraction): Added the initialization of quickReplied.
  13701. (receiveHandshake): Send handshake message as soon as the info hash
  13702. in a handshake message from a peer is correct.
  13703. To change the random part of peer id and key parameter:
  13704. * src/TorrentMan.h
  13705. (key): New variable.
  13706. * src/TorrentMan.cc
  13707. (setupInternal1): Use Util::randomAlpha() to generate random part
  13708. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  13709. key is also generated by Util::randomAlpha() and it is now 8 character
  13710. long.
  13711. * src/Util.h
  13712. (randomAlpha): New function.
  13713. * src/Util.cc
  13714. (randomAlpha): New function.
  13715. * src/TrackerWatcherCommand.cc
  13716. (execute): In a tracker request: Use torrentMan->key as key parameter.
  13717. Added no_peer_id=1.
  13718. Set snubbing flag to false when a choke message is received from a
  13719. snubbed peer.
  13720. * src/ChokeMessage.cc
  13721. (receivedAction): Set snubbing flag to false.
  13722. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13723. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  13724. * src/SimpleLogger.h (writeHeader): New function.
  13725. * src/SimpleLogger.cc (writeHeader): New function.
  13726. (writeLog): Fixed the bug that causes segfaults if exception message
  13727. contains an unescaped "%" character.
  13728. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  13729. when a tracker request fails.
  13730. * src/Request.cc (parseUrl): Query string is now handled properly.
  13731. * Release 0.5.1
  13732. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13733. To add Time class which represents a specific instant in time and
  13734. its precision is microseconds. Time checking procedures were rewritten
  13735. using this object.
  13736. * src/Time.h: New class.
  13737. * src/Time.cc: New class.
  13738. * src/AbstractCommand.h
  13739. (updateCheckPoint): Removed.
  13740. (isTimeoutDetected): Removed.
  13741. (checkPoint): Changed the type to Time.
  13742. (timeout): New variable.
  13743. (setTimeout): New function.
  13744. * src/AbstractCommand.cc
  13745. (AbstractCommand): Removed the initialization of checkPoint.
  13746. Added the initialization of timeout.
  13747. (updateCheckPoint): Removed.
  13748. (isTimeoutDetected): Removed.
  13749. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  13750. * src/PeerChokeCommand.h
  13751. (checkPoint): Changed the type to Time.
  13752. * src/PeerChokeCommand.cc
  13753. (PeerChokeCommand): Removed the initialization of checkPoint.
  13754. (execute): Rewritten using Time object.
  13755. * src/TrackerWatcherCommand.h
  13756. (checkPoint): Changed the type to Time.
  13757. * src/TrackerWatcherCommand.cc
  13758. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  13759. (execute): Rewritten.
  13760. * src/ConsoleDownloadEngine.h
  13761. (cp): Changed the type to Time.
  13762. (startup): Changed the type to Time.
  13763. * src/ConsoleDownloadEngine.cc
  13764. (initStatistics): Use cp.reset(), startup.reset().
  13765. (calculateStatistics): Rewritten using Time object.
  13766. * src/PeerAbstractCommand.h
  13767. (updateCheckPoint): Removed.
  13768. (isTimeoutDetected): Removed.
  13769. (checkPoint): Changed the type to Time.
  13770. * src/PeerAbstractCommand.cc
  13771. (PeerAbstractCommand): Removed the initialization of checkPoint.
  13772. (updateCheckPoint): Removed.
  13773. (isTimeoutDetected): Removed.
  13774. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  13775. * src/PeerInteractionCommand.cc
  13776. (PeerInteractionCommand): Removed the initializations of struct
  13777. timeval variables.
  13778. * src/PeerInteractionCommand.h
  13779. (keepAliveCheckPoint): Changed the type to Time.
  13780. (chokeCheckPoint): Changed the type to Time.
  13781. (freqCheckPoint): Changed the type to Time.
  13782. (haveCheckTime): Changed the type to Time.
  13783. * src/PeerInteractionCommand.cc
  13784. (executeInternal): Rewritten using Time object.
  13785. (detectMessageFlooding): Rewritten using Time object.
  13786. (checkLongTimePeerChoking): Rewritten using Time object.
  13787. (sendKeepAlive): Rewritten using Time object.
  13788. (checkHave): Rewritten using Time object.
  13789. * src/SleepCommand.h
  13790. (checkPoint): Changed the type to Time.
  13791. * src/SleepCommand.cc
  13792. (SleepCommand): Removed the initialization of checkPoint.
  13793. (execute): Rewritten using Time object.
  13794. * src/TorrentAutoSaveCommand.h
  13795. (checkPoint): Changed the type to Time.
  13796. * src/TorrentAutoSaveCommand.cc
  13797. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  13798. (execute): Rewritten.
  13799. * src/DownloadCommand.h
  13800. (sw): Changed the type to Time.
  13801. * src/DownloadCommand.cc
  13802. (DownloadCommand): Removed the initialization of sw.
  13803. (executeInternal): Rewritten.
  13804. * src/RequestSlot.h
  13805. (dispatchedTime): Changed the type to Time.
  13806. * src/RequestSlot.cc
  13807. (RequestSlot): Removed the call to setDispatchedTime().
  13808. (setDispatchedTime): Rewirtten.
  13809. (isTimeout): Rewritten.
  13810. (getLatencyInMillis): Rewritten.
  13811. * src/TorrentDownloadEngine.h
  13812. (cp): Changed the type to Time[2].
  13813. (startup): Changed the type to Time.
  13814. * src/TorrentDownloadEngine.cc
  13815. (initStatistics): Rewritten.
  13816. (calculateStatistics): Rewritten.
  13817. * src/DownloadEngine.cc
  13818. (run): Rewritten.
  13819. To detect all attempts to connect to the tracker are failed:
  13820. * src/AbstractCommand.cc
  13821. (execute): Increment e->segmentMan->errors if a command aborted.
  13822. * src/SegmentMan.h
  13823. (errors): New variable.
  13824. * src/SegmentMan.cc
  13825. (SegmentMan): Added the initialization of errors.
  13826. (init): Added the initialization of errors.
  13827. * src/TrackerWatcherCommand.cc
  13828. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  13829. request was failed.
  13830. To handle snubbed peers:
  13831. * src/PeerChokeCommand.cc
  13832. (optUnchokingPeer): Snubbed peers don't get unchoked.
  13833. (execute): Snubbed peers don't get unchoked.
  13834. * src/PeerInteraction.h
  13835. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  13836. * src/PeerInteraction.cc
  13837. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  13838. back the requested 16k block in 60 seconds.
  13839. * src/PieceMessage.cc
  13840. (receivedAction): A peer's snubbed state is cleard if it sends
  13841. the requested 16k block in 60 seconds.
  13842. * src/Peer.h
  13843. (snubbing): New variable.
  13844. * src/Peer.cc
  13845. (resetStatus): Added snubbed = false.
  13846. To fix the bug that causes have message is not sent:
  13847. * src/PeerInteractionCommand.cc
  13848. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  13849. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  13850. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  13851. * src/TorrentMan.h
  13852. (HaveEntry): New class.
  13853. (advertisePiece): Rewritten.
  13854. (getAdvertisedPieceIndexes): Rewritten.
  13855. (Haves): Changed the type.
  13856. (getAdvertisedPieceIndexes): Added an argument.
  13857. Others:
  13858. * src/TorrentMan.h
  13859. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  13860. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  13861. * src/TorrentMan.cc
  13862. (getPeer): Don't check the number of connections here.
  13863. (setupInternal1): Changed peerId.
  13864. * src/PeerInteractionCommand.h
  13865. (KEEP_ALIVE_INTERVAL): New definition.
  13866. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  13867. * src/main.cc
  13868. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  13869. * src/DownloadEngine.h: Removed unnecessary header includes.
  13870. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13871. To fix the bug that causes segfaults if a tracker returns a zero-length
  13872. list as "peers":
  13873. * src/TrackerUpdateCommand.cc
  13874. (execute): Added a check to see wether the type of peers is Data*.
  13875. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13876. * Release 0.5.0
  13877. To fix compile issue with gcc3:
  13878. * src/CancelMessage.h
  13879. (ID): Renamed as ID_t
  13880. (ID_t): New enum.
  13881. * src/RejectMessage.h
  13882. (ID): Renamed as ID_t
  13883. (ID_t): New enum.
  13884. * src/SuggestPieceMessage.h
  13885. (ID): Renamed as ID_t
  13886. (ID_t): New enum.
  13887. * src/AllowedFastMessage.h
  13888. (ID): Renamed as ID_t
  13889. (ID_t): New enum.
  13890. * src/PortMessage.h
  13891. (ID): Renamed as ID_t
  13892. (ID_t): New enum.
  13893. * src/HaveNoneMessage.h
  13894. (ID): Renamed as ID_t
  13895. (ID_t): New enum.
  13896. * src/KeepAliveMessage.h
  13897. (ID): Renamed as ID_t
  13898. (ID_t): New enum.
  13899. * src/HaveAllMessage.h
  13900. (ID): Renamed as ID_t
  13901. (ID_t): New enum.
  13902. * src/UnchokeMessage.h
  13903. (ID): Renamed as ID_t
  13904. (ID_t): New enum.
  13905. * src/BitfieldMessage.h
  13906. (ID): Renamed as ID_t
  13907. (ID_t): New enum.
  13908. * src/PieceMessage.h
  13909. (ID): Renamed as ID_t
  13910. (ID_t): New enum.
  13911. * src/RequestMessage.h
  13912. (ID): Renamed as ID_t
  13913. (ID_t): New enum.
  13914. * src/NotInterestedMessage.h
  13915. (ID): Renamed as ID_t
  13916. (ID_t): New enum.
  13917. * src/ChokeMessage.h
  13918. (ID): Renamed as ID_t
  13919. (ID_t): New enum.
  13920. * src/InterestedMessage.h
  13921. (ID): Renamed as ID_t
  13922. (ID_t): New enum.
  13923. * src/HaveMessage.h
  13924. (ID): Renamed as ID_t
  13925. (ID_t): New enum.
  13926. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13927. * src/PeerAbstractCommand.h
  13928. (beforeSocketCheck): Removed.
  13929. * src/PeerAbstractCommand.cc
  13930. Modified in order to call executeInternal() even if socket check
  13931. and upload limit check fail.
  13932. * src/PeerInteractionCommand.h
  13933. (keepAlive): Removed.
  13934. (sendKeepAlive): New function.
  13935. (checkHave): New function.
  13936. (beforeSocketCheck): Removed.
  13937. * src/PeerInteractionCommand.cc
  13938. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  13939. calls to checkHave() and sendKeepAlive().
  13940. (keepAlive): Renamed to sendKeepAlive().
  13941. (sendKeepAlive): New function.
  13942. (beforeSocketCheck): Removed.
  13943. (checkHave): New function.
  13944. * src/BitfieldMan.cc
  13945. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  13946. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  13947. 0.
  13948. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  13949. * src/TorrentMan.h
  13950. (UsedPieces): Removed.
  13951. (Pieces): New type definition.
  13952. * src/Piece.h: Updated doc.
  13953. * src/Peer.h
  13954. (totalLength): Removed.
  13955. * src/Peer.cc
  13956. (updateLatency): Fixed the latency calculation.
  13957. * src/TorrentMan.cc
  13958. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  13959. than or equal to MAX_PEER_LIST_SIZE.
  13960. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  13961. then return false.
  13962. (deleteOldErrorPeers): Rewritten.
  13963. (deleteUsedPiece): Fixed the miss use of STL remove.
  13964. * src/PeerInteraction.h
  13965. (Pieces): Removed.
  13966. (deleteTimeoutRequestSlot): Removed.
  13967. (deleteCompletedRequestSlot): Removed.
  13968. (checkRequestSlot): New function.
  13969. * src/PeerInteraction.cc
  13970. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  13971. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  13972. (checkRequestSlot): New function.
  13973. * src/DownloadEngine.cc
  13974. (run): Clear activeSockets before calling waitData().
  13975. (waitData): Removed a call to activeSockets.clear().
  13976. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13977. To attempt to handle EINTR:
  13978. * src/SocketCore.cc
  13979. (isReadable): Added EINTR handling.
  13980. (isWritable): Added EINTR handling.
  13981. To improve the performance:
  13982. * src/AbstractCommand.cc
  13983. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  13984. * src/PeerInteractionCommand.h
  13985. (receiveMessage): Renamed as receiveMessages().
  13986. (receiveMessages): New function.
  13987. * src/PeerInteractionCommand.cc
  13988. (executeInternal): receiveMessage loop is moved to new receiveMessages
  13989. () function. detectMessageFlooding() is moved here.
  13990. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  13991. (). The flooding detection for have message is comment out.
  13992. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  13993. Util::difftv().
  13994. (receiveMessage): Renamed as receiveMessages().
  13995. (receiveMessages): New function.
  13996. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  13997. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  13998. * src/SleepCommand.cc
  13999. (execute): Use Util::difftvsec() instead of Util::difftv().
  14000. * src/BitfieldMan.h
  14001. (getNthBitIndex): New function.
  14002. (hasMissingPiece): New function.
  14003. (getAllMissingIndexes): New function.
  14004. * src/BitfieldMan.cc
  14005. (countSetBit): Rewritten.
  14006. (getNthBitIndex): New function.
  14007. (getMissingIndexRandomly): Rewritten.
  14008. (hasMissingPiece): New function.
  14009. (getAllMissingIndexes): New function.
  14010. * src/TorrentMan.cc
  14011. (hasMissingPiece): New function.
  14012. (deleteUsedPiece): Rewritten using STL.
  14013. * src/PeerInteraction.cc
  14014. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  14015. is a little bit faster then TorrentMan::getMissingPieceIndex().
  14016. (addRequests): Updated the number of pending requests.
  14017. * src/PeerAbstractCommand.cc
  14018. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14019. (execute): Returns true if TorrentMan::isHalt() is true.
  14020. Corrected the condition of upload limit checking.
  14021. * src/Util.h
  14022. (countBit): New function.
  14023. * src/Util.cc
  14024. (nbits): New variable.
  14025. (countBit): New function.
  14026. * src/DownloadEngine.h
  14027. (SockCmdMap): New type definition.
  14028. (waitData): Added an argument.
  14029. (addSocket): Added an argument.
  14030. (addSocketForReadCheck): Added an argument.
  14031. (addSocketForWriteCheck): Added an argument.
  14032. * src/DownloadEngine.cc
  14033. (run): Executes only commands whose sockets are ready to read or write.
  14034. All commands are executed in every 1 second.
  14035. (waitData): Calls select() again if it returned
  14036. EINTR.
  14037. (addSocket): Saves socket and command object pair to the map.
  14038. (deleteSocket): Deletes socket and command object pair from the map.
  14039. (addSocketForReadCheck): Added an argument.
  14040. (addSocketForWriteCheck): Added an argument.
  14041. * src/DownloadCommand.cc
  14042. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  14043. To send "event=stopped" to the tracker when the application finishes:
  14044. * src/PeerChokeCommand.h
  14045. (checkPoint): New variable.
  14046. * src/PeerChokeCommand.cc
  14047. (PeerChokeCommand): Added the initialization of checkPoint.
  14048. (execute): The interval check is now done by checkPoint, not
  14049. SleepCommand. Return true if TorrentMan::isHalt() is true.
  14050. * src/TorrentMan.h
  14051. (halt): New function.
  14052. (hasMissingPiece): New function.
  14053. (isHalt): New function.
  14054. (setHalt): New function.
  14055. * src/TorrentMan.cc
  14056. (TorrentMan): Added the initialization of halt.
  14057. * src/TorrentAutoSaveCommand.h
  14058. (checkPoint): New variable.
  14059. * src/PeerListenCommand.cc
  14060. (execute): Returns true if TorrentMan::isHalt() is true.
  14061. * src/main.cc
  14062. (setSignalHander): Added flags argument.
  14063. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  14064. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  14065. Removed printDownloadAbortMessage() after torrent downloading loop.
  14066. * src/TorrentAutoSaveCommand.cc
  14067. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  14068. (execute): Returns true if TorrentMan::isHalt() is true.
  14069. The interval check is now done by checkPoint, not SleepCommand.
  14070. * src/TrackerWatcherCommand.cc
  14071. (execute): If TorrentMan::isHalt(), then create a tracker request with
  14072. event=stopped.
  14073. * src/TrackerUpdateCommand.cc
  14074. (prepareForRetry): Do not use SleepCommand here.
  14075. (execute): Returns true if TorrentMan::isHalt() is true.
  14076. Others:
  14077. * src/TorrentMan.cc
  14078. (getMissingPieceIndex): Updated log message.
  14079. * src/PeerInteraction.cc
  14080. (createPeerMessag): Updated log message.
  14081. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14082. To add the ability to download several pieces in mix in a command and
  14083. increase the number of request slots according to request-cancel
  14084. latency:
  14085. * src/PeerInteractionCommand.cc
  14086. (executeInternal): The number of messages to be received at a time
  14087. is increased from 10 to 50.
  14088. * src/LogFactory
  14089. (getInstance): Added NullLogger.
  14090. * src/NullLogger.h: New class.
  14091. * src/BitfieldMan.h
  14092. (getMissingIndex): New function.
  14093. * src/BitfieldMan.cc
  14094. (getMissingIndex): New function.
  14095. * src/TorrentMan.h
  14096. (checkOutPiece): New function.
  14097. (getMissingPieceIndex): New function.
  14098. (getMissingFastPieceIndex): New function.
  14099. (getMissingFastPiece): New function.
  14100. * src/TorrentMan.cc
  14101. (updatePiece): Rewritten using STL.
  14102. (syncPiece): Rewritten using STL.
  14103. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  14104. checkOutPiece().
  14105. (getMissingPieceIndex): New function.
  14106. (getMissingFastPieceIndex): New function.
  14107. (getMissingFastPiece): New function.
  14108. (checkOutPiece): New function.
  14109. * src/PeerInteraction.h
  14110. (Pieces): New type definition.
  14111. (piece): Removed.
  14112. (pieces): New variable.
  14113. (getNewPieceAndSendInterest): Added the "piece" argument.
  14114. (abortPiece): Added the "piece" argument.
  14115. (abortAllPieces): New function.
  14116. (isInRequestSlot): New function.
  14117. (hasDownloadPiece): Added the "index" argument.
  14118. (setDownloadPiece): Removed.
  14119. (getDownloadPiece): Added the "index" argument.
  14120. (updatePiece): New function.
  14121. (createRequestMessage): Added the "index" argument.
  14122. * src/PeerInteraction.cc
  14123. (onChoked): Rewritten.
  14124. (abortPiece): Rewirtten.
  14125. (abortAllPieces): New function.
  14126. (deleteTimeoutRequestSlot): Rewritten.
  14127. Clarified code a little bit.
  14128. (deleteCompletedRequestSlot): Rewritten.
  14129. (isInRequestSlot): New function.
  14130. (syncPiece): Rewritten.
  14131. (updatePiece): New function.
  14132. (getNewPieceAndSendInterest): Rewritten.
  14133. (addRequests): Rewritten.
  14134. (getDownloadPiece): Rewritten.
  14135. (hasDownloadPiece): Rewritten.
  14136. (createRequestMessage): Added the "index" argument.
  14137. * src/common.h
  14138. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  14139. (DIV_FLOOR): New definition.
  14140. * src/PieceMessage.cc
  14141. (receivedAction): Update request-piece latency here.
  14142. * src/RequestSlot.h
  14143. (getLatencyInMillis): New function.
  14144. * src/RequestSlot.cc
  14145. (isTimeout): Rewritten using getLatencyInMillis.
  14146. (getLatencyInMillis): New function.
  14147. * src/Piece.h
  14148. (operator==): New function.
  14149. (getMissingBlockIndex): New function.
  14150. * src/Piece.cc
  14151. (operator==): New function.
  14152. (getMissingBlockIndex): New function.
  14153. * src/Peer.h
  14154. (DEFAULT_LATENCY): New definition.
  14155. (latency): New variable.
  14156. (updateLatency): New function.
  14157. (getLatency): New function.
  14158. * src/Peer.cc
  14159. (resetStatus): Reset latecy.
  14160. (updateLatency): New function.
  14161. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14162. * src/SocketCore.cc
  14163. (isReadable): Added secure to the condition.
  14164. * src/HttpConnection.cc
  14165. (receiveResponse): Fixed a bug that causes no response header
  14166. exception.
  14167. * src/Peer.h
  14168. (getFastSet): Fixed the return value type.
  14169. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14170. To remove a wait from download loop:
  14171. * src/DownloadEngine.cc
  14172. (run): Comment out shortSleep.
  14173. To rewrite the message handling:
  14174. * src/SimplePeerMessage.h: New class.
  14175. * src/SimplePeerMessage.cc: New class.
  14176. * src/CancelMessage.h: Derived from SimplePeerMessage.
  14177. (msg): New variable.
  14178. (create): New function.
  14179. (send): Removed.
  14180. (getMessage): New function.
  14181. (getMessageLength): New function.
  14182. * src/CancelMessage.cc
  14183. (create): New function.
  14184. (receivedAction): Replaced deleteRequestMessageInQueue with
  14185. rejectPieceMessageInQueue.
  14186. (send): Removed.
  14187. (getMessage): New function.
  14188. (getMessageLength): New function.
  14189. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  14190. (msg): New variable.
  14191. (msgLength): New variable.
  14192. (~BitfieldMessage): Deleted msg.
  14193. (send): Removed.
  14194. (getMessage): New function.
  14195. (getMessageLength): New function.
  14196. * src/BitfieldMessage.cc
  14197. (create): New function.
  14198. (send): Removed.
  14199. (getMessage): New function.
  14200. (getMessageLength): New function.
  14201. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  14202. (msg): New variable.
  14203. (sendPredicate): New function.
  14204. (onSendComplete): New function.
  14205. (send): Removed.
  14206. (getMessage): New function.
  14207. (getMessageLength): New function.
  14208. (create): New function.
  14209. * src/ChokeMessage.cc
  14210. (create): New function.
  14211. (send): Removed.
  14212. (sendPredicate): New function.
  14213. (getMessage): New function.
  14214. (getMessageLength): New function.
  14215. (onSendComplete): New function.
  14216. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  14217. (msg): New variable.
  14218. (send): Removed.
  14219. (getMessage): New function.
  14220. (getMessageLength): New function.
  14221. * src/KeepAliveMessage.cc
  14222. (send): Removed.
  14223. (getMessage): New function.
  14224. (getMessageLength): New function.
  14225. * src/PortMessage.h
  14226. (create): New function.
  14227. (receivedAction): Updated log message.
  14228. * src/PortMessage.cc: New file.
  14229. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  14230. (msg): New variable.
  14231. (sendPredicate): New function.
  14232. (onSendComplete): New function.
  14233. (create): New function.
  14234. (send): Removed.
  14235. (getMessage): New function.
  14236. (getMessageLength): New function.
  14237. * src/UnchokeMessage.cc
  14238. (create): New function.
  14239. (send): Removed.
  14240. (sendPredicate): New function.
  14241. (getMessage): New function.
  14242. (getMessageLength): New function.
  14243. (onSendComplete): New function.
  14244. * src/PieceMessage.h
  14245. (leftPieceDataLength): Removed.
  14246. (leftDataLength): New variable.
  14247. (headerSend): New variable.
  14248. (pendingCount): New variable.
  14249. (msgHeader): New variable.
  14250. (sendPieceData): New function.
  14251. (incrementPendingCount): New function.
  14252. (isPendingCountMax): New function.
  14253. (create): New function.
  14254. (getMessageHeader): New function.
  14255. (getMessageHeaderLength): New function.
  14256. * src/PieceMessage.cc
  14257. (create): New function.
  14258. (getMessageHeader): New function.
  14259. (getMessageHeaderLength): New function.
  14260. (send): Rewritten.
  14261. (sendPieceData): New function.
  14262. * src/HaveMessage.h: Derived from SimplePeerMessage.
  14263. (msg): New variable.
  14264. (create): New function.
  14265. (getMessage): New function.
  14266. (getMessageLength): New function.
  14267. * src/HaveMessage.cc
  14268. (create): New function.
  14269. (send): Removed.
  14270. (sendPieceData): New function.
  14271. (getMessage): New function.
  14272. (getMessageLength): New function.
  14273. * src/RequestMessage.h: Derived from SimplePeerMessage.
  14274. (msg): New variable.
  14275. (create): New function.
  14276. (send): Removed.
  14277. (getMessage): New function.
  14278. (getMessageLength): New function.
  14279. * src/RequestMessage.cc
  14280. (create): New function.
  14281. (receivedAction): Added the handling of fast extension.
  14282. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  14283. (send): Removed.
  14284. (getMessage): New function.
  14285. (getMessageLength): New function.
  14286. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  14287. (msg): New variable.
  14288. (sendPredicate): New function.
  14289. (onSendComplete): New function.
  14290. (create): New function.
  14291. (getMessage): New function.
  14292. (getMessageLength): New function.
  14293. * src/InterestedMessage.cc
  14294. (create): New function.
  14295. (send): Removed.
  14296. (sendPieceData): New function.
  14297. (getMessage): New function.
  14298. (getMessageLength): New function.
  14299. (onSendComplete): New function.
  14300. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  14301. (msg): New variable.
  14302. (sendPieceData): New function.
  14303. (onSendComplete): New function.
  14304. (create): New function.
  14305. (send): Removed.
  14306. (getMessage): New function.
  14307. (getMessageLength): New function.
  14308. * src/NotInterestedMessage.cc
  14309. (create): New function.
  14310. (send): Removed.
  14311. (sendPredicate): New function.
  14312. (getMessage): New function.
  14313. (getMessageLength): New function.
  14314. (onSendComplete): New function.
  14315. * src/AllowedFastMessage.h: New class.
  14316. * src/AllowedFastMessage.cc: New class.
  14317. * src/RejectMessage.h: New class.
  14318. * src/RejectMessage.cc: New class.
  14319. * src/SuggestPieceMessage.h: New class.
  14320. * src/SuggestPieceMessage.cc: New class.
  14321. * src/HaveAllMessage.h: New class.
  14322. * src/HaveAllMessage.cc: New class.
  14323. * src/HaveNoneMessage.h: New class.
  14324. * src/HaveNoneMessage.cc: New class.
  14325. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  14326. (msg): New variable.
  14327. (reserved): New variable.
  14328. (create): New function.
  14329. (getId): New function.
  14330. (receivedAction): New function.
  14331. (getMessage): New function.
  14332. (getMessageLength): New function.
  14333. (isFastExtensionSupported): New function.
  14334. * src/HandshakeMessage.cc
  14335. (HandshakeMessage): Moved here from HandshakeMessage.h.
  14336. (create): New function.
  14337. (getMessage): New function.
  14338. (getMessageLength): New function.
  14339. (toString): Added the output of reserved field.
  14340. (check): Added const qualifier.
  14341. (isFastExtensionSupported): New function.
  14342. * src/PeerMessageUtil.h
  14343. (createChokeMessage): Removed.
  14344. (createUnchokeMessage): Removed.
  14345. (createInterestedMessage): Removed.
  14346. (createNotInterestedMessage): Removed.
  14347. (createHaveMessage): Removed.
  14348. (createBitfieldMessage): Removed.
  14349. (createRequestMessage): Removed.
  14350. (createCancelMessage): Removed.
  14351. (createPieceMessage): Removed.
  14352. (createPortMessage): Removed.
  14353. (createChokeMessage): Removed.
  14354. (createUnchokeMessage): Removed.
  14355. (createInterestedMessage): Removed.
  14356. (createNotInterestedMessage): Removed.
  14357. (createHaveMessage): Removed.
  14358. (createBitfieldMessage): Removed.
  14359. (createRequestMessage): Removed.
  14360. (createCancelMessage): Removed.
  14361. (createPieceMessage): Removed.
  14362. (createKeepAliveMessage): Removed.
  14363. (createHandshakeMessage): Removed.
  14364. (setIntParam): New function.
  14365. (createPeerMessageString): New function.
  14366. * src/PeerMessageUtil.cc
  14367. (createChokeMessage): Removed.
  14368. (createUnchokeMessage): Removed.
  14369. (createInterestedMessage): Removed.
  14370. (createNotInterestedMessage): Removed.
  14371. (createHaveMessage): Removed.
  14372. (createBitfieldMessage): Removed.
  14373. (createRequestMessage): Removed.
  14374. (createCancelMessage): Removed.
  14375. (createPieceMessage): Removed.
  14376. (createPortMessage): Removed.
  14377. (createRequestMessage): Removed.
  14378. (createCancelMessage): Removed.
  14379. (createPieceMessage): Removed.
  14380. (createHaveMessage): Removed.
  14381. (createChokeMessage): Removed.
  14382. (createUnchokeMessage): Removed.
  14383. (createInterestedMessage): Removed.
  14384. (createNotInterestedMessage): Removed.
  14385. (createBitfieldMessage): Removed.
  14386. (createKeepAliveMessage): Removed.
  14387. (createHandshakeMessage): Removed.
  14388. (setIntParam): New function.
  14389. (createPeerMessageString): New function.
  14390. * src/PeerConnection.h
  14391. (peer): Removed.
  14392. (torrentMan): Removed.
  14393. (createNLengthMessage): Removed.
  14394. (setIntParam): Removed.
  14395. (writeOutgoingMessageLog): Removed all overloaded functions.
  14396. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14397. (sendMessage): New function.
  14398. (sendHandshake): Removed.
  14399. (sendKeepAlive): Removed.
  14400. (sendChoke): Removed.
  14401. (sendUnchoke): Removed.
  14402. (sendInterested): Removed.
  14403. (sendNotInterested): Removed.
  14404. (sendHave): Removed.
  14405. (sendBitfield): Removed.
  14406. (sendRequest): Removed.
  14407. (sendPiece): Removed.
  14408. (sendPieceHeader): Removed.
  14409. (sendPieceData): Removed.
  14410. (sendCancel): Removed.
  14411. (getPeer): Removed.
  14412. * src/PeerConnection.cc
  14413. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14414. (sendHandshake): Removed.
  14415. (sendKeepAlive): Removed.
  14416. (createNLengthMessage): Removed.
  14417. (setIntParam): Removed.
  14418. (writeOutgoingMessageLog): Removed all overloaded functions.
  14419. (sendChoke): Removed.
  14420. (sendUnchoke): Removed.
  14421. (sendInterested): Removed.
  14422. (sendNotInterested): Removed.
  14423. (sendHave): Removed.
  14424. (sendBitfield): Removed.
  14425. (sendRequest): Removed.
  14426. (sendPiece): Removed.
  14427. (sendPieceHeader): Removed.
  14428. (sendPieceData): Removed.
  14429. (sendMessage): New function.
  14430. (sendCancel): Removed.
  14431. * src/PeerInteractionCommand.cc
  14432. (PeerInteractionCommand): Call setUploadLimit.
  14433. (executeInternal): Call setUploadLimit.
  14434. Added the handling of "inProgress" state of handshake message.
  14435. Call sendBitfield() or sendAllowdFast() instead of deprecated
  14436. sendNow().
  14437. (keepAlive): Call addMessage and sendMessage instead of deprecated
  14438. sendNow().
  14439. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  14440. * src/TorrentMan.h
  14441. (PEER_ID_LENGTH): New definition.
  14442. (hasAllPieces): New function.
  14443. * src/TorrentMan.cc
  14444. (getMissingPiece): Added the handling of fast extension.
  14445. (cancelPiece): Call updatePiece().
  14446. (hasAllPieces): New function.
  14447. * src/PeerInteraction.h
  14448. (fastSet): New variable.
  14449. (getNewPieceAndSendInterest): Changed the return type to void.
  14450. (send): Renamed as sendMessages.
  14451. (deleteAllRequestSlot): Removed.
  14452. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14453. (cancelAllRequest): Removed all overloaded functions.
  14454. (deleteAllRequestSlot): Removed.
  14455. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14456. (rejectPieceMessageInQueue): New function.
  14457. (rejectAllPieceMessageInQueue): New function.
  14458. (onChoked): New function.
  14459. (isSendingMessageInProgress): New function.
  14460. (getCorrespondingRequestSlot): Changed its arguments.
  14461. (isInFastSet): New function.
  14462. (addFastSetIndex): New function.
  14463. (addRequests): New function.
  14464. (sendNow): Removed.
  14465. (trySendNow): Removed.
  14466. (sendBitfield): New function.
  14467. (sendAllowdFast): New function.
  14468. (createHaveAllMessage): New function.
  14469. (createHaveNoneMessage): New function.
  14470. (createRejectMessage): New function.
  14471. (createAllowedFastMessage): New function.
  14472. * src/PeerInteraction.cc
  14473. (send): Renamed as sendMessages.
  14474. (sendMessages): New function.
  14475. (MsgPushBack): New class.
  14476. (isSendingMessageInProgress): New function.
  14477. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14478. (rejectAllPieceMessageInQueue): New function.
  14479. Added the handling of fast extension.
  14480. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14481. (rejectPieceMessageInQueue): New function.
  14482. Added the handling of fast extension.
  14483. (deleteRequestSlot): Replaced for loop with std::find.
  14484. (onChoked): New function.
  14485. (deleteAllRequestSlot): Removed.
  14486. (abortPiece): Rewirtten.
  14487. (deleteTimeoutRequestSlot): Updated log messages.
  14488. (getCorrespondingRequestSlot): Changed its arguments.
  14489. (cancelAllRequest): Removed all overloaded functions.
  14490. (receiveHandshake): Added the check to see whether an incoming peer
  14491. supports fast extension.
  14492. (createHandshakeMessage): Use HandshakeMessage::create instead of
  14493. PeerMessageUtil.
  14494. (createPeerMessage): Use create() of each message class instead of
  14495. PeerMessageUtil.
  14496. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  14497. AllowedFastMessage were added.
  14498. (getNewPieceAndSendInterest): Changed its return value type to void.
  14499. Added the handling of fast extension.
  14500. (addRequests): New function.
  14501. (sendNow): Removed.
  14502. (sendHandshake): Rewritten.
  14503. (trySendNow): Removed.
  14504. (sendBitfield): New function.
  14505. (sendAllowdFast): New function.
  14506. (isInFastSet): New function.
  14507. (addFastSetIndex): New function.
  14508. (createRequestMessage): Use RequestMessage::create instead of
  14509. PeerMessageUtil.
  14510. (createCancelMessage): Use CancelMessage::create instead of
  14511. PeerMessageUtil.
  14512. (createPieceMessage): Use PieceMessage::create instead of
  14513. PeerMessageUtil.
  14514. (createHaveMessage): Use HaveMessage::create instead of
  14515. PeerMessageUtil.
  14516. (createChokeMessage): Use ChokeMessage::create instead of
  14517. PeerMessageUtil.
  14518. (createUnchokeMessage): Use UnchokeMessage::create instead of
  14519. PeerMessageUtil.
  14520. (createInterestedMessage): Use InterestedMessage::create instead of
  14521. PeerMessageUtil.
  14522. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  14523. of PeerMessageUtil.
  14524. (createBitfieldMessage): Use BitfieldMessage::create instead of
  14525. PeerMessageUtil.
  14526. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  14527. PeerMessageUtil.
  14528. (createHaveAllMessage): New function.
  14529. (createHaveNoneMessage): New function.
  14530. (createRejectMessage): New function.
  14531. (createAllowedFastMessage: New function.
  14532. * src/Util.h
  14533. (sha1Sum): New function.
  14534. (computeFastSet): New function.
  14535. * src/Util.cc
  14536. (sha1Sum): New function.
  14537. (computeFastSet): New function.
  14538. * src/Peer.h
  14539. (fastExtensionEnabled): New variable.
  14540. (fastSet): New variable.
  14541. (setAllBitfield): New function.
  14542. (setFastExtensionEnabled): New function.
  14543. (isFastExtensionEnabled): New function.
  14544. (addFastSetIndex): New function.
  14545. (getFastSet): New function.
  14546. (isInFastSet): New function.
  14547. (countFastSet): New function.
  14548. * src/Peer.cc
  14549. (isInFastSet): New function.
  14550. (addFastSetIndex): New function.
  14551. (setAllBitfield): New function.
  14552. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  14553. sockets.
  14554. * src/PeerAbstractCommand.cc
  14555. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  14556. and uploadLimit.
  14557. (execute): Changed the procedure of checking sockets. The upload speed
  14558. checking were added.
  14559. (setUploadLimit): New function.
  14560. (setUploadLimitCheck): New function.
  14561. * src/PeerAbstractCommand.h
  14562. (setUploadLimit): New function.
  14563. (setUploadLimitCheck): New function.
  14564. (uploadLimit): New variable.
  14565. (uploadLimitCheck): New variable.
  14566. To contact a tracker regularly:
  14567. * src/TrackerWatcherCommand.h (interval): New variable.
  14568. (checkPoint): New variable.
  14569. (TrackerWatcherCommand): Added interval argument.
  14570. * src/TrackerWatcherCommand.cc
  14571. (TrackerWatcherCommand): Initialized checkPoint.
  14572. (execute): Now a tracker is contacted in every specified period.
  14573. If peer list is not needed, send request with numwant=0.
  14574. * src/TrackerUpdateCommand.cc
  14575. (execute): Updated log messages.
  14576. * src/DownloadEngine.cc
  14577. (~DownloadEngine): Removed two asserts.
  14578. (waitData): Uncommented wfds. May be a bug fix.
  14579. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14580. * src/PeerInteractionCommand.h
  14581. (checkInactiveConnection): Removed.
  14582. * src/PeerInteractionCommand.cc
  14583. (executeInternal): Removed following function calls:
  14584. detectMessageFlooding(), checkLongTimePeerChoking and
  14585. checkInactiveConnection().
  14586. (checkInactiveConnection): Removed.
  14587. (detectMessageFlooding): Removed function call to
  14588. checkInactiveConnection().
  14589. * src/PeerMessageUtil.h
  14590. (createChokeMessage): New function. Overload.
  14591. (createUnchokeMessage): New function. Overload.
  14592. (createInterestedMessage): New function. Overload.
  14593. (createNotInterestedMessage): New function. Overload.
  14594. (createHaveMessage): New function. Overload.
  14595. (createBitfieldMessage): New function. Overload.
  14596. (createRequestMessage): New function. Overload.
  14597. (createCancelMessage): New function. Overload.
  14598. (createPieceMessage): New function. Overload.
  14599. (createKeepAliveMessage): New function. Overload.
  14600. * src/PeerMessageUtil.cc
  14601. (createChokeMessage): New function. Overload.
  14602. (createUnchokeMessage): New function. Overload.
  14603. (createInterestedMessage): New function. Overload.
  14604. (createNotInterestedMessage): New function. Overload.
  14605. (createHaveMessage): New function. Overload.
  14606. (createBitfieldMessage): New function. Overload.
  14607. (createRequestMessage): New function. Overload.
  14608. (createCancelMessage): New function. Overload.
  14609. (createPieceMessage): New function. Overload.
  14610. (createKeepAliveMessage): New function. Overload.
  14611. * src/SendMessageQueue.cc
  14612. (createRequestMessage): Use PeerMessageUtil.
  14613. (createCancelMessage): Use PeerMessageUtil.
  14614. (createPieceMessage): Use PeerMessageUtil.
  14615. (createHaveMessage): Use PeerMessageUtil.
  14616. (createChokeMessage): Use PeerMessageUtil.
  14617. (createUnchokeMessage): Use PeerMessageUtil.
  14618. (createInterestedMessage): Use PeerMessageUtil.
  14619. (createNotInterestedMessage): Use PeerMessageUtil.
  14620. (createBitfieldMessage): Use PeerMessageUtil.
  14621. (createKeepAliveMessage): Use PeerMessageUtil.
  14622. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  14623. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  14624. * src/PeerInteraction.h: New class.
  14625. * src/PeerInteraction.cc: New class.
  14626. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14627. Each peer message has its own class.
  14628. * src/PendingMessages.h: Removed.
  14629. * src/PendingMessages.cc: Removed. The sending process was moved to
  14630. each message class.
  14631. * src/RequestSlotMan.h: Removed.
  14632. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  14633. SendMessageQueue.
  14634. * src/RequestMessage.h: New class.
  14635. * src/RequestMessage.cc: New class.
  14636. * src/CancelMessage.h: New class.
  14637. * src/CancelMessage.cc: New class.
  14638. * src/BitfieldMessage.h: New class.
  14639. * src/BitfieldMessage.cc: New class.
  14640. * src/ChokeMessage.h: New class.
  14641. * src/ChokeMessage.cc: New class.
  14642. * src/KeepAliveMessage.h: New class.
  14643. * src/KeepAliveMessage.cc: New class.
  14644. * src/PortMessage.h: New class.
  14645. * src/UnchokeMessage.h: New class.
  14646. * src/UnchokeMessage.cc: New class.
  14647. * src/PieceMessage.h: New class.
  14648. * src/PieceMessage.cc: New class.
  14649. * src/HaveMessage.h: New class.
  14650. * src/HaveMessage.cc: New class.
  14651. * src/BitfieldMessage.h: New class.
  14652. * src/BitfieldMessage.cc: New class.
  14653. * src/NotInterestedMessage.h: New class.
  14654. * src/NotInterestedMessage.cc: New class.
  14655. * src/InterestedMessage.h: New class.
  14656. * src/InterestedMessage.cc: New class.
  14657. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  14658. (getSendMessageQueue): New function.
  14659. (setSendMessageQueue): New function.
  14660. * src/HandshakeMessage.cc: New class.
  14661. * src/PeerConnection.h (receiveMessage): Changed return value and
  14662. arguments.
  14663. (receiveHandshake): Changed return value and arguments.
  14664. * src/PeerConnection.cc (receiveMessage): Do not create message class
  14665. here.
  14666. (receiveHandshake): Do not create handshake class here.
  14667. * src/PeerInteractionCommand.h (peerConnection): Removed.
  14668. (piece): Removed.
  14669. (syncPiece): Removed.
  14670. (sendInterest): Removed.
  14671. (sendMessages): Removed.
  14672. (createRequestPendingMessage): Removed.
  14673. (checkPieceHash): Removed.
  14674. (erasePieceOnDisk): Removed.
  14675. (getNewPieceAndSendInterest): Removed.
  14676. (onGotNewPice): Removed.
  14677. (onGotWrongPiece): Removed.
  14678. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  14679. Removed peerConnection, piece.
  14680. (~PeerInteractionCommand): Removed peerConnection.
  14681. (executeInternal): Use sendMessageQueue instead of peerConnection.
  14682. (syncPiece): Moved to SendMessageQueue.
  14683. (decideChoking): Removed PendingMessage.
  14684. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  14685. The action after receiving peer message was moved to each message
  14686. class.
  14687. (onGotNewPice): Moved to SendMessageQueue.
  14688. (onGotWrongPiece): Moved to SendMessageQueue.
  14689. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  14690. (sendInterest): Moved to SendMessageQueue.
  14691. (createRequestPendingMessage): Removed.
  14692. (sendMessages): Moved to SendMessageQueue.
  14693. (onAbort): Use SendMessageQueue::abortPiece()
  14694. (keepAlive): Use sendMessageQueue instead of peerConnection.
  14695. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  14696. (checkPieceHash): Moved to SendMessageQueue.
  14697. (erasePieceOnDisk): Moved to SendMessageQueue.
  14698. * src/PeerMessageUtil.h
  14699. (createBitfieldMessage): Removed.
  14700. (createHaveMessage): Changed return value and arguments.
  14701. (createBitfieldMessage): Changed return value and arguments.
  14702. (createRequestCancelMessage): Removed.
  14703. (createPieceMessage): Changed return value and arguments.
  14704. (getShortIntParam): New function.
  14705. (checkIndex): Changed arguments.
  14706. (checkBegin): Changed arguments.
  14707. (checkLength): Changed arguments.
  14708. (checkPieceOffset): Removed.
  14709. (checkRange): New function.
  14710. (checkBitfield): Changed arguments.
  14711. (createPeerMessage): Removed.
  14712. (checkIntegrity): Removed.
  14713. (createHandshakeMessage): Changed arguments.
  14714. (createChokeMessage): New function.
  14715. (createUnchokeMessage): New function.
  14716. (createInterestedMessage): New function.
  14717. (createNotInterestedMessage): New function.
  14718. (createRequestMessage): New function.
  14719. (createCancelMessage): New function.
  14720. (createPortMessage): New function.
  14721. * src/PeerMessageUtil.cc
  14722. (createBitfieldMessage): Removed.
  14723. (createHaveMessage): Changed return value and arguments.
  14724. (createBitfieldMessage): Changed return value and arguments.
  14725. (createRequestCancelMessage): Removed.
  14726. (createPieceMessage): Changed return value and arguments.
  14727. (getShortIntParam): New function.
  14728. (checkIndex): Changed arguments.
  14729. (checkBegin): Changed arguments.
  14730. (checkLength): Changed arguments.
  14731. (checkPieceOffset): Removed.
  14732. (checkRange): New function.
  14733. (checkBitfield): Changed arguments.
  14734. (createPeerMessage): Removed.
  14735. (checkIntegrity): Removed.
  14736. (createHandshakeMessage): Changed arguments.
  14737. (createChokeMessage): New function.
  14738. (createUnchokeMessage): New function.
  14739. (createInterestedMessage): New function.
  14740. (createNotInterestedMessage): New function.
  14741. (createRequestMessage): New function.
  14742. (createCancelMessage): New function.
  14743. (createPortMessage): New function.
  14744. * src/PeerMessage.h
  14745. (id): Removed.
  14746. (index): Removed.
  14747. (begin): Removed.
  14748. (length): Removed.
  14749. (bitfield): Removed.
  14750. (bitfieldLength): Removed.
  14751. (block): Removed.
  14752. (blockLength): Removed.
  14753. (inProgress): New variable.
  14754. (cuid): New variable.
  14755. (peer): New variable.
  14756. (sendMessageQueue): New variable.
  14757. (logger): New variable.
  14758. (setBitfield): Removed.
  14759. (getBitfield): Removed.
  14760. (setBlock): Removed.
  14761. (getBlock): Removed.
  14762. (getBitfieldLength): Removed.
  14763. (getBlockLength): Removed.
  14764. (isInProgress): New function.
  14765. (toString): Made pure virtual.
  14766. (check): New function.
  14767. (send): New function.
  14768. (receivedAction): New function.
  14769. (getId): Made pure virtual.
  14770. (setId): Removed.
  14771. (getIndex): Removed.
  14772. (setIndex): Removed.
  14773. (getBegin): Removed.
  14774. (setBegin): Removed.
  14775. (getLength): Removed.
  14776. (setLength): Removed.
  14777. (getCuid): New function.
  14778. (setCuid): New function.
  14779. (getPeer): New function.
  14780. (setPeer): New function.
  14781. (getSendMessageQueue): New function.
  14782. (setSendMessageQueue): New function.
  14783. (ID): Removed.
  14784. * src/PeerMessage.cc
  14785. (setBitfield): Removed.
  14786. (setBlock): Removed.
  14787. (toString): Removed.
  14788. * src/TorrentMan.h
  14789. (getPieceLength): New function.
  14790. (getPieceLength): New function.
  14791. * src/SendMessageQueue.h
  14792. (REQUEST_TIME_OUT): New definition.
  14793. (RequestSlots): New definition.
  14794. (MessageQueue): New definition.
  14795. (requestSlotMan): Removed.
  14796. (pendingMessages): Removed.
  14797. (requestSlots): New variable.
  14798. (messageQueue): New variable.
  14799. (torrentMan): New variable.
  14800. (peerConnection): New variable.
  14801. (peer): New variable.
  14802. (piece): New variable.
  14803. (getNewPieceAndSendInterest): New function.
  14804. (createPeerMessage): New function.
  14805. (createHandshakeMessage): New function.
  14806. (send): Made private.
  14807. (setPeerMessageCommonProperty): New function.
  14808. (deleteAllRequestSlot): New function.
  14809. (deleteRequestMessageInQueue): New function.
  14810. (cancelAllRequest): Made private.
  14811. (cancelAllRequest): Made private.
  14812. (countRequestSlot): Made private.
  14813. (addPendingMessage): Removed.
  14814. (deletePendingPieceMessage): Removed.
  14815. (deletePendingRequestMessage): Removed.
  14816. (addMessage): New function.
  14817. (deletePieceMessageInQueue): New function.
  14818. (deleteTimeoutRequestSlot): Changed argument.
  14819. (deleteCompletedRequestSlot): Changed argument.
  14820. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  14821. (getCorrespondingRequestSlot): New function.
  14822. (countPendingMessage): Removed.
  14823. (countMessageInQueue): New function.
  14824. (getTorrentMan): New function.
  14825. (getPeerConnection): New function.
  14826. (hasDownloadPiece): New function.
  14827. (getDownloadPiece): New function.
  14828. (setDownloadPiece): New function.
  14829. (syncPiece): New function.
  14830. (sendMessages): New function.
  14831. (sendNow): New function.
  14832. (trySendNow): New function.
  14833. (abortPiece): New function.
  14834. (sendHandshake): New function.
  14835. (receiveMessage): New function.
  14836. (receiveHandshake): New function.
  14837. (createRequestMessage): New function.
  14838. (createCancelMessage): New function.
  14839. (createPieceMessage): New function.
  14840. (createHaveMessage): New function.
  14841. (createChokeMessage): New function.
  14842. (createUnchokeMessage): New function.
  14843. (createInterestedMessage): New function.
  14844. (createNotInterestedMessage): New function.
  14845. (createBitfieldMessage): New function.
  14846. (createKeepAliveMessage): New function.
  14847. * src/SendMessageQueue.cc
  14848. (SendMessageQueue): Removed requestSlotMan.
  14849. Instantiated peerConnection here.
  14850. (~SendMessageQueue): Removed requestSlotMan.
  14851. Added deletion of peerConnection and the contents of messageQueue.
  14852. (send): Updated according to the change of messageQueue.
  14853. (addPendingMessage): Renamed to addMessage.
  14854. (addMessage): New function.
  14855. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  14856. (deletePieceMessageInQueue): New function.
  14857. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  14858. (deleteRequestMessageInQueue): New function.
  14859. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  14860. here.
  14861. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  14862. (...) was moved here.
  14863. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  14864. moved here.
  14865. (deleteCompletedRequestSlot):
  14866. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  14867. (getCorrespondingRequestSlot):
  14868. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  14869. And renamed to getCorrespondingRequestSlot, correcting a typo.
  14870. (countPendingMessage): Renamed to countMessageInQueue.
  14871. (countMessageInQueue): New function.
  14872. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  14873. (receiveHandshake): New function.
  14874. (createHandshakeMessage): New function.
  14875. (receiveMessage): New function.
  14876. (createPeerMessage): New function.
  14877. (syncPiece): New function.
  14878. (getNewPieceAndSendInterest): New function.
  14879. (sendMessages): New function.
  14880. (sendNow): New function.
  14881. (trySendNow): New function.
  14882. (sendHandshake): New function.
  14883. (abortPiece): New function.
  14884. (getDownloadPiece): New function.
  14885. (getPeerMessageCommonProperty): New function.
  14886. (createRequestMessage): New function.
  14887. (createCancelMessage): New function.
  14888. (createPieceMessage): New function.
  14889. (createHaveMessage): New function.
  14890. (createChokeMessage): New function.
  14891. (createUnchokeMessage): New function.
  14892. (createInterestedMessage): New function.
  14893. (createNotInterestedMessage): New function.
  14894. (createBitfieldMessage): New function.
  14895. (createKeepAliveMessage): New function.
  14896. To add simple Content-Disposition support:
  14897. * src/HttpResponseCommand.h (determinFilename): New function.
  14898. * src/HttpResponseCommand.cc (executeInternal):
  14899. Use determinFilename(headers) instead of req->getFile() when comparing
  14900. filename.
  14901. (determinFilename): New function.
  14902. (handleDefaultEncoding): Use determinFilename(headers) instead of
  14903. req->getFile().
  14904. (handleOtherEncoding): Use determinFilename(headers) instead of
  14905. req->getFile().
  14906. * src/Util.h (getContentDispositionFilename): New function.
  14907. * src/Util.cc (getContentDispositionFilename): New function.
  14908. * src/LogFactory.h (release): New function.
  14909. * src/LogFactory.cc (release): New function.
  14910. To fix a bug that causes out-of-bound exception when HTTP status
  14911. line is wrong:
  14912. * src/HttpConnection.cc (receiveResponse): Added a check for header
  14913. size.
  14914. * src/common.h (Deleter): New class.
  14915. * src/SegmentMan.cc
  14916. (~SegmentMan): Added deletion of splitter and diskWriter.
  14917. * src/DownloadEngine.h
  14918. (Commands): Use deque.
  14919. (clearQueue): New function.
  14920. * src/DownloadEngine.cc
  14921. (~DownloadEngine): Added deletion of segmentMan.
  14922. (cleanQueue): New function.
  14923. * src/TorrentDownloadEngine.h
  14924. (TorrentDownloadEngine): The implementation was moved to
  14925. TorrentDownloadEngine.cc.
  14926. (~TorrentDownloadEngine): The implementation was moved to
  14927. TorrentDownloadEngine.cc.
  14928. * src/TorrentDownloadEngine.cc
  14929. (~TorrentDownloadEngine): Added deletion of torrentMan.
  14930. * src/main.cc
  14931. (clearRequest): Removed.
  14932. (handler): Added deletion of e.
  14933. (torrentHandler): Added deletion of te.
  14934. (main): Do not share splitter.
  14935. Use Deleter instead of clearRequest.
  14936. Deletion of classes were updated.
  14937. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14938. * src/main.cc (main): Fixed typo.
  14939. * src/message.h: Fixed typo.
  14940. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  14941. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14942. To add --select-file command-line option:
  14943. * src/Util.cc
  14944. (unfoldRange): New function.
  14945. (getNum): New function.
  14946. (unfoldSubRange): New function
  14947. * src/main.cc
  14948. (showUsage): Added help message.
  14949. (main): Added --select-file command-line option. Updated the layout of
  14950. file listing.
  14951. * src/common.h
  14952. (Integers): New definition.
  14953. * src/SocketCore.cc
  14954. (writeData): Removed timeout argument.
  14955. (readData): Removed timeout argument.
  14956. (peekData): Removed timeout argument.
  14957. * src/Socket.cc
  14958. (writeData): Removed timeout argument.
  14959. (readData): Removed timeout argument.
  14960. (peekData): Removed timeout argument.
  14961. * Release 0.4.1
  14962. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14963. To deploy upload rate based choking algorithm:
  14964. * src/PeerInteractionCommand.cc
  14965. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  14966. peer currently used.
  14967. (decideChoking): Deleted the choke/unchoke decision algorithm when
  14968. download completes. Simplified.
  14969. (receiveMessage): Updated.
  14970. * src/TorrentMan.h
  14971. (activePeers): New variable.
  14972. (addActivePeer): New function.
  14973. (getActivePeers): New function.
  14974. (deleteActivePeer): New function.
  14975. * src/TorrentMan.cc
  14976. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  14977. * src/PeerAbstractCommand.cc
  14978. (onAbort): Use peer->resetStatus().
  14979. * src/main.cc
  14980. (PeerChokeCommand.h): Included.
  14981. (main): Added the instance of ChokingCommand to the command queue.
  14982. * src/Peer.h
  14983. (amChoking): Renamed from amChocking
  14984. (chokingRequired): New variable.
  14985. (optUnchoking): New variable.
  14986. (deltaUpload): New variable.
  14987. (deltaDownload): New variable.
  14988. (addDeltaUpload): New function.
  14989. (resetDeltaUpload): New function.
  14990. (addDeltaDownload): New function.
  14991. (resetDeltaDownload): New function.
  14992. (addPeerUpload): Added a call to addDeltaUpload.
  14993. (addPeerDownload): Added a call to addDeltaDownload.
  14994. * src/Peer.cc
  14995. (shouldBeChoking): Renamed from shouldChoke.
  14996. (resetStatus): New function.
  14997. * src/PeerChokeCommand.h: New class.
  14998. * src/PeerChokeCommand.cc: New class.
  14999. To add lazy upload speed limiter:
  15000. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  15001. statistics calculation to TorrentDownloadEngine.
  15002. * src/TorrentConsoleDownloadEngine.cc
  15003. (sendStatistics): Renamed from printStatistics.
  15004. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  15005. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  15006. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  15007. * src/TorrentDownloadEngine.h: Added the variables for statistics
  15008. calculation.
  15009. (sendStatistics): New function as pure virtual function.
  15010. (getUploadSpeed): New function.
  15011. * src/TorrentDownloadEngine.cc
  15012. (initStatistics): New function.
  15013. (calculateSpeed): New function.
  15014. (calculateStatistics): New function.
  15015. * src/SendMessageQueue.h
  15016. (uploadLength): New variable.
  15017. (send): Added an argument.
  15018. (setUploadLimit): New function.
  15019. (getUploadLimit): New function.
  15020. * src/SendMessageQueue.cc
  15021. (send): Added upload speed limiter.
  15022. * src/prefs.h
  15023. (PREF_UPLOAD_LIMIT): New definition.
  15024. * src/PeerInteractionCommand.cc
  15025. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  15026. * src/main.cc
  15027. (main): Added --upload-limit option
  15028. For bug fixes:
  15029. * src/main.cc
  15030. (showUsage): Corrected --listen-port help
  15031. Other changes:
  15032. * src/TorrentMan.cc
  15033. (getPeer): Return nullPeer if connection is grather than
  15034. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  15035. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15036. To add some useful information to the exception message:
  15037. * src/SocketCore.cc : Updated messages.
  15038. * src/SegmentMan.cc :
  15039. * src/TorrentMan.cc : Updated messages.
  15040. * src/MultiDiskWriter.cc : Updated messages.
  15041. * src/Util.cc : Updated messages.
  15042. * src/AbstractDiskWriter.cc : Updated messages.
  15043. * src/PreAllocationDiskWriter.cc : Updated messages.
  15044. * src/message.cc : Added new messages. Updated some messages.
  15045. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  15046. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  15047. Updated threshold from 30 to 15.
  15048. * src/AbstractDiskWriter.h (filename): New variable.
  15049. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  15050. (createFile): Assigned filename.
  15051. * src/main.cc: Updated the help message for http-auth-scheme.
  15052. * Release 0.4.0
  15053. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15054. To add TrackerUpdateCommand with which replaces
  15055. CompactTrackerResponseProcessor:
  15056. * src/TrackerWatcherCommand.h (req): Removed.
  15057. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  15058. if the number of peer connections are less than 30.
  15059. * src/ByteArrayDiskWriter.h (readData): Implemented.
  15060. * src/SegmentMan.h (diskWriter): New function.
  15061. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  15062. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  15063. (main): Use TrackerUpdateCommand.
  15064. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  15065. (req): New variable.
  15066. (setTrackerResponseProcessor): Removed.
  15067. (getTrackerResponseProcessor): Removed.
  15068. (processTrackerResponse): Removed.
  15069. * src/DownloadEngine.h (diskWriter): Removed.
  15070. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  15071. to torrentMan->processTrackerResponse().
  15072. To add Util::expandBuffer:
  15073. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  15074. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  15075. * src/Util.h (expandBuffer): New function.
  15076. To fix the bug that causes segmentation fault when "-l ." is specified
  15077. in command-line option:
  15078. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  15079. (openFile): New function.
  15080. (closeFile): New function.
  15081. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  15082. (~SimpleLogger): Call closeFile();
  15083. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  15084. * src/main.cc (main): Added a check to see logger is configured
  15085. properly.
  15086. To enable HTTP authentication without specifying "--http-auth-scheme"
  15087. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  15088. * src/HttpConnection.cc (createRequest): Send Authorization header
  15089. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  15090. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  15091. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  15092. * src/Peer.cc (shouldChoke): Updated algorithm.
  15093. * src/message.h (EX_AUTH_FAILED): New definition.
  15094. (EX_FILE_OPEN): New definition.
  15095. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  15096. if status == 401.
  15097. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  15098. if req->isTorrent == true.
  15099. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  15100. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  15101. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  15102. (createFile): Updated message.
  15103. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15104. To add a readout of estimated remaining time to normal HTTP/FTP
  15105. downloads:
  15106. * src/ConsoleDownloadEngine.h (startup): New variable.
  15107. (startupLength): New variable.
  15108. (isStartupLengthSet): New variable.
  15109. (avgSpeed): New variable.
  15110. (eta): New variable.
  15111. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  15112. estimated remaining time.
  15113. (initStatistics): Initialized newly added variables.
  15114. (calculateStatistics): Calculate average speed and estimated remaining
  15115. time.
  15116. To decouple TorrentDownloadEngine from HttpResponseCommand:
  15117. * src/TrackerDownloadCommand.h: Removed.
  15118. * src/TrackerDownloadCommand.cc: Removed.
  15119. * src/TrackerInitCommand.h: Removed.
  15120. * src/TrackerInitCommand.cc: Removed.
  15121. * src/TrackerUpdateCommand.h: Removed.
  15122. * src/TrackerUpdateCommand.cc: Removed.
  15123. * src/TrackerWatcherCommand.cc (execute): The construction of request
  15124. url written in TrackerInitCommand was moved here. Do not create
  15125. tracker request command if torrentMan->trackers != 0.
  15126. * src/CompactTrackerResponseProcessor.h: New class.
  15127. * src/CompactTrackerResponseProcessor.cc: New class.
  15128. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  15129. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  15130. Decoupled TorrentDownloadEngine from this.
  15131. * src/SegmentMan.h (init): New function.
  15132. * src/SegmentMan.cc (init): New function.
  15133. * src/TorrentMan.h (responseProcessor): New variable.
  15134. (trackers): New variable.
  15135. (setTrackerResponseProcessor): New function.
  15136. (getTrackerResponseProcessor): New function.
  15137. (processTrackerResponse): New function.
  15138. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  15139. (processTrackerResponse): New function.
  15140. * src/main.cc (main): Use ByteArrayDiskWriter and
  15141. CompactTrackerResponseProcessor.
  15142. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  15143. processTrackerResponse().
  15144. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  15145. readout.
  15146. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  15147. which indicates download has completed.
  15148. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  15149. (closeFile): fd >= 0, not fd > 0
  15150. * src/main.cc (main): Added short cut for show-files.
  15151. Added short cut for torrent-file.
  15152. Added new command-line option listen-port.
  15153. Updated i18n messages.
  15154. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15155. To add LogFactory which creates singleton logger:
  15156. * src/LogFactory.h: New class.
  15157. * src/LogFactory.cc: New class.
  15158. * src/Command.h (logger): New variable.
  15159. (Constructor): Use LogFactory.
  15160. * src/AbstractCommand.cc: Use Command::logger
  15161. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  15162. Use LogFactory.
  15163. * src/SegmentSplitter.h : Made logger protected.
  15164. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  15165. * src/SegmentMan.cc (Constructor): Use LogFactory.
  15166. * src/DownloadEngine.h : Made logger protected.
  15167. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  15168. * src/PeerInteractionCommand.cc : Use Command::logger.
  15169. * src/HttpResponseCommand.cc : Use Command::logger.
  15170. * src/SegmentMan.h : Made logger private.
  15171. * src/TorrentMan.h : Made logger private.
  15172. * src/TorrentMan.cc : Use LogFactory.
  15173. * src/FtpNegotiateCommand.cc : Use Command::logger.
  15174. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  15175. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  15176. Use LogFactory.
  15177. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  15178. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  15179. Use LogFactory.
  15180. * src/DownloadCommand.cc : Use Command::logger.
  15181. * src/PeerAbstractCommand.cc : Use Command::logger.
  15182. * src/PeerListenCommand.cc : Use Command::logger.
  15183. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  15184. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  15185. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  15186. * src/TrackerWatcherCommand.cc : Use Command::logger.
  15187. * src/TrackerUpdateCommand.cc : Use Command::logger.
  15188. * src/TrackerDownloadCommand.cc : Use Command::logger.
  15189. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  15190. Use LogFactory.
  15191. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  15192. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  15193. Use LogFactory.
  15194. * src/main.cc (main): Use LogFactory.
  15195. * src/DiskAdaptor.h (logger): New variable.
  15196. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  15197. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  15198. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15199. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  15200. parameter to a tracker request.
  15201. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  15202. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  15203. * src/main.cc (setSignalHander): New function.
  15204. (main): Added a handler for SIGTERM.
  15205. (handler): Updated message.
  15206. (torrentHandler): Updated message.
  15207. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15208. * src/TorrentConsoleDownloadEngine.cc
  15209. (onPartialDownloadingCompletes): Renamed as
  15210. onSelectiveDownloadingCompletes.
  15211. (onSelectiveDownloadingCompletes): Updated message.
  15212. To add DiskAdaptor which abstract DiskWriter family:
  15213. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  15214. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  15215. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  15216. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  15217. MultiDiskAdaptor.h.
  15218. (readFileEntry): Changed its arguments.
  15219. (setup): setupDiskWriter is merged into this function.
  15220. (setupDiskWriter): Removed.
  15221. (setFileFilter): New function.
  15222. (readFileEntryFromMetaInfoFile): Updated according to the changes
  15223. made in readFileEntry.
  15224. (getFilePath): Removed.
  15225. (getTempFilePath): Removed.
  15226. (getSegmentFilePath): Updated due to the removal of getFilePath.
  15227. (fixFilename): Removed.
  15228. (copySingleFile): Removed.
  15229. (splitMultiFile): Removed.
  15230. (deleteTempFile): Removed.
  15231. (setFileEntriesToDownload): Removed.
  15232. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  15233. (isSelectiveDownloadingMode): New function.
  15234. (setAllMultiFileRequestedState): Removed.
  15235. (finishPartialDownloadingMode): Renamed as
  15236. finishSelectiveDownloadingMode.
  15237. (finishSelectiveDownloadingMode): New function.
  15238. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  15239. (getSelectedTotalLength): New function.
  15240. (onDownloadComplete): Use diskAdaptor.
  15241. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  15242. (Range): Removed.
  15243. (setMultiFileEntries): Renamed as setFileEntries.
  15244. (setFileEntries): New function.
  15245. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  15246. (pieceLength): New variable.
  15247. * src/main.cc (printDownloadCompeleteMessage): New function.
  15248. (torrentHandler): Use diskAdaptor instead of diskWriter.
  15249. (main): Renamed torrent-show-files to show-files.
  15250. Rewritten file contents listing.
  15251. * src/TorrentMan.h (FileEntry): Removed.
  15252. (multiFileTopDir): Removed.
  15253. (multiFileEntries): Removed.
  15254. (diskWriter): Removed.
  15255. (diskAdaptor): New variable.
  15256. * src/DefaultDiskWriter.h (totalLength): New variable.
  15257. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  15258. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  15259. diskWriter.
  15260. * src/TorrentConsoleDownloadEngine.h
  15261. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  15262. (partialTotalLength): Renamed as selectedTotalLength.
  15263. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  15264. openExistingFile, otherwise call initAndOpenFile.
  15265. (closeFile): fd > 0, not fd != 0.
  15266. * src/DirectDiskAdaptor.h: New class.
  15267. * src/DirectDiskAdaptor.cc: New class.
  15268. * src/MultiDiskAdaptor.h: New class.
  15269. * src/MultiDiskAdaptor.cc: New class.
  15270. * src/CopyDiskAdaptor.h: New class.
  15271. * src/CopyDiskAdaptor.cc: New class.
  15272. * src/DiskAdaptor.h: New class.
  15273. * src/DiskAdaptor.cc: New class.
  15274. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  15275. (PREF_SHOW_FILES): New definition.
  15276. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15277. To add the ability to download multi torrent into respective files
  15278. directly:
  15279. * src/DiskWriter.h (openFile): New function.
  15280. (seek): Removed.
  15281. * src/MultiDiskWriter.h: New class.
  15282. * src/MultiDiskWriter.cc: New class.
  15283. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  15284. protected.
  15285. (openFile): New function.
  15286. * src/AbstractDiskWriter.cc (openFile): New function.
  15287. * src/prefs.h (V_FALSE): New definition.
  15288. (PREF_DIRECT_FILE_MAPPING): New definition.
  15289. * src/TorrentMan.h (setupDiskWriter): New function.
  15290. (setAllMultiFileRequestedState): New function.
  15291. (onDownloadComplete): New function.
  15292. * src/TorrentMan.cc : Included MultiDiskWriter.h
  15293. (setupDiskWriter): New function.
  15294. (getFilePath): Updated.
  15295. (getTempFilePath): Updated.
  15296. (getSegmentFilePath): Updated.
  15297. (fixFilename): Updated.
  15298. (deleteTempFile): Updated.
  15299. (setAllMultiFileRequestedState): New function.
  15300. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  15301. (finishPartialDownloadingMode): Reset requested flags.
  15302. (onDownloadComplete): New function.
  15303. * src/main.cc: Added --direct-file-mapping option.
  15304. Use TorrentMan::setupDiskWriter().
  15305. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  15306. onDownloadComplete().
  15307. To fix ETA bug:
  15308. * src/Util.h (difftvsec): New function.
  15309. * src/Util.cc (difftvsec): New function.
  15310. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  15311. type of "elapsed" instead of long long int.
  15312. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  15313. The updates of statistics takes place every 1 seconds.
  15314. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  15315. (calculateSpeed): Changed its argument signature.
  15316. * src/PeerMessage.cc (toString): Fixed message.
  15317. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15318. To print ETA:
  15319. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  15320. completion handling when dealing with
  15321. TorrentMan::isPartialDownloadingMode() == true.
  15322. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  15323. New function.
  15324. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  15325. (sessionDownloadLength): New variable.
  15326. (avgSpeed): New variable.
  15327. (eta): New variable.
  15328. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  15329. new variables: eta, avgSpeed, startup.
  15330. (calculateSpeed): Calculate average speed and ETA.
  15331. (printStatistics): Added ETA.
  15332. * src/Util.h (secfmt): New function.
  15333. * src/Util.cc (secfmt): New function.
  15334. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15335. To detect "keep alive" flooding:
  15336. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  15337. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  15338. variable: keepAliveCount.
  15339. (detectMessageFlooding): Added "keep alive" flooding detection.
  15340. (receiveMessage): Increase keepAliveCount when "keep alive" message
  15341. received.
  15342. To add the ability to download only specified files in multi-file
  15343. torrent:
  15344. * src/BitfieldMan.h (filterBitfield): New variable.
  15345. (filterEnabled): New variable.
  15346. (setFilterBit): New function.
  15347. (enableFilter): New function.
  15348. (disableFilter): New function.
  15349. (isFilterEnabled): New function.
  15350. (getFilteredTotalLength): New function.
  15351. (getCompletedLength): New function.
  15352. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  15353. filterBitfield, filterEnabled.
  15354. (CopyConstructor): Added filterBitfield and filterEnabled.
  15355. (operator==): Added filterBitfield and filterEnabled.
  15356. (Destructor): Added filterBitfield.
  15357. (getMissingIndex): Use filterBitfield.
  15358. (getMissingUnusedIndex): Use filterBitfield.
  15359. (getFirstMissingUnusedIndex): Use filterBitfield.
  15360. (getFirstMissingUnusedIndex): Use filterBitfield.
  15361. (getAllMissingIndexes): Use filterBitfield.
  15362. (countMissingBlock): Use filterBitfield.
  15363. (countBlock): Use filterBitfield.
  15364. (setBitInternal): Added new argument on.
  15365. (setUseBit): Use setBitInternal.
  15366. (unsetUseBit): Use setBitInternal.
  15367. (setBit): Use setBitInternal.
  15368. (unsetBit): Use setBitInternal.
  15369. (isAllBitSet): Use filterBitfield.
  15370. (setFilterBit): New function.
  15371. (addFilter): New function.
  15372. (enableFilter): New function.
  15373. (disableFilter): New function.
  15374. (clearFilter): New function.
  15375. (isFilterEnabled): New function.
  15376. (getFilteredTotalLength): New function.
  15377. (getCompletedLength): New function.
  15378. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  15379. Initalized newly added variables.
  15380. [FileEntry](offset): New variable.
  15381. [FileEntry](extracted): New variable.
  15382. [FileEntry](requested): New variable.
  15383. (readFileEntry): New function.
  15384. (option): New variable.
  15385. (splitMultiFile): Removed const qualifier.
  15386. (fixFilename): Removed const qualifier.
  15387. (readFileEntryFromMetaInfoFile): New function.
  15388. (finishPartialDownloadingMode): New function.
  15389. (isPartialDownloadingMode): New function.
  15390. (setFileEntriesToDownload): New function.
  15391. (getCompletedLength): New function.
  15392. (getPartialTotalLength): New function.
  15393. * src/TorrentMan.cc (readFileEntry): New function.
  15394. (setup): Use readFileEntry. If no-preallocation option is specified,
  15395. use DefaultDiskWriter.
  15396. (readFileEntryFromMetaInfoFile): New function.
  15397. (fixFilename): Removed const qualifier.
  15398. (splitMultiFile): Removed const qualifier.
  15399. (setFileEntriesToDownload): New function.
  15400. (isPartialDownloadingMode): New function.
  15401. (finishPartialDownloadingMode): New function.
  15402. (getCompletedLength): New function.
  15403. (getPartialTotalLength): New function.
  15404. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  15405. New variable.
  15406. (partialTotalLength): New variable.
  15407. (downloadLength): New variable.
  15408. (totalLength): New variable.
  15409. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  15410. Added log.
  15411. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  15412. partialTotalLength, downloadLength, totalLength.
  15413. (calculate): Calculate downloadLength and totalLength.
  15414. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  15415. * src/main.cc (addCommand): Changed argument signature.
  15416. (main): Added new variable: args. Added new option "torrent-show-files"
  15417. "no-preallocation". Usage is not updated yet.
  15418. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15419. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  15420. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15421. Attempt to add the ability to listing file entries in a .torrent file.
  15422. This feature is not yet complete.
  15423. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  15424. * src/TorrentMan.cc (getMultiFileEntries): New function.
  15425. (getName): New function.
  15426. * src/TorrentMan.h (getMultiFileEntries): New function.
  15427. (getName): New function.
  15428. * src/main.cc (main): Use above 2 funtion.
  15429. * Release 0.3.2
  15430. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15431. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  15432. (detectMessageFlooding): Updated threshold value.
  15433. (checkLongTimePeerChoking): Updated timeout value.
  15434. (getNewPieceAndSendInterest): Added debug log.
  15435. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  15436. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  15437. (getPeer): Updated.
  15438. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  15439. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  15440. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  15441. is localhost.
  15442. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  15443. * src/PendingMessage.cc (processMessage): Not to send piece message
  15444. if peer is not interested in the pieces localhost has.
  15445. * src/Peer.cc (shouldChoke): Updated.
  15446. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  15447. * src/Util.cc (isPowerOf): New function.
  15448. * src/Util.h (isPowerOf): New function.
  15449. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  15450. whether or not it is power of 2.
  15451. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15452. Added new class SendMessageQueue that includes PendingMessages and
  15453. RequestSlotMan.
  15454. * src/SendMessageQueue.h: New class.
  15455. * src/SendMessageQueue.cc: New class.
  15456. * src/PendingMessage.h: Added new member variable blockIndex and its
  15457. accessors.
  15458. (createRequestMessage): Updated.
  15459. * src/PendingMessage.cc (createRequestMessage): Updated.
  15460. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  15461. SendMessageQueue.
  15462. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  15463. (receiveMessage): Updated with SendMessageQueue.
  15464. (deletePendingPieceMessage): Removed.
  15465. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  15466. (sendInterest): Updated with SendMessageQueue.
  15467. (createRequestPendingMessage): Updated with SendMessageQueue.
  15468. (sendMessages): Updated with SendMessageQueue.
  15469. (onAbort): Updated with SendMessageQueue.
  15470. (keepAlive): Updated with SendMessageQueue.
  15471. (beforeSocketCheck): Updated SendMessageQueue.
  15472. * src/PeerInteractionCommand (sendMessages): Shuffle
  15473. missingBLockIndexes before using it.
  15474. Added its own timeout for peer connection.
  15475. * src/PeerAbstractCommand.h: Added member variable timeout and its
  15476. setter.
  15477. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  15478. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15479. Added setTimeout() call.
  15480. (executeInternal): Added setTimeout() call.
  15481. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  15482. Added timeout.
  15483. (isTimeoutDetected): Updated.
  15484. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  15485. option.
  15486. Added *simple* message flooding checker.
  15487. * src/PeerInteractionCommand.cc (executeInternal):
  15488. Added detectMessageFlooding() call.
  15489. (detectMessageFlooding): New function.
  15490. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  15491. (beforeSocketCheck): Added detectMessageFlooding() call.
  15492. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  15493. chokeUnchokeCount, haveCount, detectMessageFlooding().
  15494. Removed deletePendingPieceMessage(), getRequestSlot(),
  15495. deleteRequestSlot(), deleteAllRequestSlot().
  15496. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  15497. Added checkLongTimePeerChoking() call.
  15498. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  15499. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  15500. if duplicate == false.
  15501. The parameter "uploaded" and "downloaded" in the tracker request are
  15502. the size since the client sent the "started" event to the tracker.
  15503. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  15504. uploaded size to preDownloadedSize, preUploadedSize respectively.
  15505. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  15506. getSessionDownloadedSize(), getSessionUploadedSize().
  15507. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  15508. getSessionUploadedSize() instead of getDownloadedSize(),
  15509. getUploadedSize().
  15510. * src/PendingMessage.cc (processMessage): Do not send request message
  15511. if the peer is choking the client.
  15512. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  15513. less than interval.
  15514. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15515. * configure.in: Added gnutls support. Added several CPP macros.
  15516. * m4/openssl.m4: Added.
  15517. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  15518. readData(), peekData(). Added gnutls support.
  15519. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  15520. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  15521. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  15522. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  15523. Instead, added a check for whether setup method has executed
  15524. successfully.
  15525. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  15526. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  15527. * src/Makefile.am: Updated.
  15528. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  15529. using whether OpenSSL or gcrypt, depending on the result of configure
  15530. script.
  15531. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  15532. messageDigest.h.
  15533. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  15534. * src/PeerListenCommand.cc: Added log about port binded successfully.
  15535. Fixed memory leak.
  15536. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  15537. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  15538. Removed instantiation of TrackerInitCommand. Instead,
  15539. TrackerWatcherCommand is instantiated and pushed to the command queue.
  15540. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  15541. ENABLE_SSL.
  15542. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  15543. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  15544. If a piece is already acquired by another command, delete the request
  15545. slots for the piece.
  15546. * src/TrackerUpdateCommand.cc (execute):
  15547. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  15548. Added a check whether peer list is null.
  15549. Fixed the bug that causes sending completed event to the tracker
  15550. several times.
  15551. * src/TrackerInitCommand.cc (execute):
  15552. Fixed the bug that causes sending completed event to the tracker
  15553. several times.
  15554. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  15555. by using messageDigest.h.
  15556. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15557. * PeerConnection.cc: Replaced log message "keep-alive" with
  15558. "keep alive".
  15559. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  15560. localhost long time.
  15561. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  15562. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  15563. at most 100 failure entry from the list. If with duplicate = false,
  15564. MAX_PEER_LIST is not checked.
  15565. * PeerListenCommand.cc: Fixed the argument order of log message.
  15566. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15567. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  15568. Added warn().
  15569. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  15570. Implemented warn().
  15571. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  15572. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15573. * Request.h: Added AFTER_COMPLETED event.
  15574. * TorrentDownloadEngine.cc: Prints "Download complete" message
  15575. instead of downloaded size and progress(%) after download completes.
  15576. * PeerInteractionCommand.cc: After download completes, sends unchoke
  15577. message to the peer if it is interested in what localhost has
  15578. downloaded.
  15579. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  15580. destination instead of just renaming it.
  15581. * TorrentMan.cc: Added deleteTempFile().
  15582. * PeerAbstractCommand.cc: do not stop execution after download
  15583. completes. This makes localhost a seeder.
  15584. * Util.{h,cc}: Added fileCopy().
  15585. * PeerListenCommand.cc: do not stop execution after download completes.
  15586. This makes localhost a seeder.
  15587. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  15588. Added TorrentMan::deleteTempFile() to torrentHandler.
  15589. Initialized the variable dir as ".".
  15590. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  15591. Deleted renameSingleFile().
  15592. Added copySingleFile(), deleteTempFile().
  15593. * DownloadEngine.h: Added virtual function afterEachIteration().
  15594. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  15595. in onEndOfRun() to afterEachIteration().
  15596. In onEndOfRun(), changed if condition to check whether filenameFixed is
  15597. true.
  15598. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  15599. In rangedFileCopy(), added try-catch block to properly close file
  15600. descriptors.
  15601. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  15602. Added afterEachIteration(), isFilenameFixed().
  15603. * Peer.cc: Changed choking strategy.
  15604. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  15605. * TrackerInitCommand.cc: Send completed event only once.
  15606. * DownloadEngine.cc: Added a call to afterEachIteration().
  15607. * TrackerUpdateCommand.cc: Do not stop execution after download
  15608. completes.
  15609. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  15610. connect the peers at most MAX_PEER_UPDATE when a peer list is
  15611. received from a tracker.
  15612. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  15613. Decreased the number of failure peers to delete to 0(just comment out
  15614. the line).
  15615. * Release 0.3.1
  15616. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15617. * PeerInteractionCommand.cc: added a call to
  15618. TorrentMan::unadvertisePiece in Destructor.
  15619. * PeerInteractionCommand.cc: make have message sent immediately
  15620. if the size of pending message queue is zero.
  15621. * TorrentMan.cc: set the maximum size of peer list to 250.
  15622. * TorrentMan.h: changed the container type of Peers and UsedPieces
  15623. to deque.
  15624. * Util.cc: fixed rangedFileCopy.
  15625. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  15626. to Constructor. Also, moved digest cleanup to Destructor.
  15627. * MetaFileUtil.cc: fixed memory leak
  15628. * replaced std::vector with std::deque.
  15629. * AbstractCommand.cc: casted timeout value to long long int.
  15630. * ChunkedEncoding.cc: fixed memory leak.
  15631. * PeerInteractionCommand.cc: casted timeout value to long long int.
  15632. * SleepCommand.cc: casted timeout value to long long int.
  15633. * Data.cc: fixed memory leak.
  15634. * Data.cc: fixed toLLInt().
  15635. * BitfieldMan.cc: fixed memory leak.
  15636. * TorrentMan.cc: initialized storeDir to ".".
  15637. * TorrentMan.cc: fixed memory leak.
  15638. * TorrentMan.cc: corrected file paths of splitted files.
  15639. * PeerAbstractCommand.cc: casted timeout to long long int.
  15640. * main.cc: added delete(req) and delete(te->diskWriter).
  15641. * RequestSlot.cc: casted timeout value to long long int.
  15642. * Request.cc: fixed memory leak.
  15643. * PendingMessage.cc: make HAVE messages sent only when peer does not
  15644. have the piece.
  15645. * Peer.{h,cc}: added hasPiece(int index).
  15646. * main.cc: corrected addCommand.
  15647. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15648. * BitTorrent protocol support added.
  15649. * Release 0.3.0
  15650. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15651. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  15652. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15653. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  15654. decoding did not work properly.
  15655. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15656. * DownloadEngine.h: included sys/time.h
  15657. * DownloadEngine.cc: remove sys/time.h
  15658. * Makefile.am (SUBDIRS): Add intl.
  15659. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  15660. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15661. * main.cc: correct help message for --http-auth-scheme.
  15662. * main.cc: changed e-mail address for bug reports.
  15663. * ja.po: added japanese translation.
  15664. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15665. * SimpleLogger.cc: flush log file instead of stdout.
  15666. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15667. * main.cc: Fixed command-line option: max-tries
  15668. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  15669. does not equal to seg.sp.
  15670. * DownloadCommand.cc: If EOF is got from the server and the total size
  15671. of file is not zero, then throw DlRetryEx.
  15672. * main.cc: Set the minium value of min-segment-size to 1024.
  15673. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  15674. fails because of a regression since 0.2.0 release.
  15675. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15676. * HttpConnection.cc:
  15677. * common.h: defined the user agent name as macro
  15678. * DownloadEngine.{h, cc}:
  15679. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  15680. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  15681. * main.cc: Download complete/abort message is now generated by main.
  15682. * Makefile.am (SUBDIRS): Add m4.
  15683. (ACLOCAL_AMFLAGS): New variable.
  15684. (EXTRA_DIST): New variable.
  15685. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  15686. * gettext: added gettext functionality
  15687. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15688. * AbstractCommand.cc:
  15689. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  15690. unregister its cuid from SegmentMan.
  15691. * DownloadEngine.cc: .aria2 file was written when a downloading
  15692. failed with errors.
  15693. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  15694. Added "User-Agent" header to CONNECT proxy request.
  15695. Fixed "Proxy-Authorization" header. Now proxy authorization works
  15696. properly.
  15697. * Logger.h:
  15698. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  15699. * ChunkedEncoding.cc: Added #include directive for strings.h
  15700. * Release 0.2.1
  15701. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15702. * Util.{h,cc}: added startsWith().
  15703. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  15704. Util::endsWith().
  15705. * SocketCore.cc: struct addrinfo is now zero-initialized.
  15706. * common.h: added #include directive of limit.h.
  15707. * DownloadEngine.cc: added #include directive of sys/time.h and
  15708. algorithm.
  15709. * Exception.h: added #include directive of stdio.h.
  15710. * AbstractCommand.h: added #include directive of sys/time.h.
  15711. * DownloadCommand.h: added #include directive of sys/time.h.
  15712. * *.h: added #include directive of common.h to all base classes.
  15713. subclasses' one was removed.
  15714. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  15715. does not define these macros.
  15716. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15717. * Release 0.2.0
  15718. * main.cc:
  15719. * HttpInitiateConnectionCommand.{h,cc}:
  15720. * prefs.h:
  15721. * HttpConnection.{h,cc}: added --http-proxy-method option.
  15722. We can now use GET command in http proxy.
  15723. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15724. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  15725. that splits slowest segment of SegmentMan::commands vector.
  15726. This is the default split algorithm of aria2.
  15727. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  15728. that splits first segment of SegmentMan::commands vector.
  15729. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  15730. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  15731. * Segment.h:
  15732. * SegmentMan.cc: Added speed field to Segment.h
  15733. * main.cc: -s option now affects all URLs in command-line arguemtns.
  15734. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  15735. * message.h: Change file size related %d to %lld.
  15736. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15737. * FtpInitiateConnectionCommand.{h,cc}:
  15738. * FtpNegotiationCommand.{h,cc}:
  15739. * FtpDownloadCommand.{h,cc}:
  15740. * FtpConnection.{h,cc}: Added FTP support
  15741. * SimpleLogger.cc: Log message now includes time information.
  15742. * main.cc: The value of --http-auth-scheme option is chagned from
  15743. 'BASIC' to 'basic'
  15744. * main.cc: Added --timeout command-line option.
  15745. * main.cc: Added --min-segment-size command-line option.
  15746. * main.cc: Added --max-retries command-line option.
  15747. * prefs.h: option string constants are now defined in prefs.h
  15748. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15749. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  15750. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  15751. with version 0.1.0's one.
  15752. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15753. * configure.in: Added --enable-ssl option to configure script.
  15754. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  15755. cannot permit absoluteURI as Request-URI.
  15756. * HttpConnection.cc: Added Referer support.
  15757. * main.cc: Added referer command-line option.
  15758. * main.cc: Added rety-wait command-line option.
  15759. * Exception.h: Fixed formating bug in Exception::setMsg()
  15760. * SocketCore.{h,cc}:
  15761. * Socket.{h, cc}:
  15762. * Request.cc:
  15763. * InitiateConnectionCommandFactory.cc:
  15764. * HttpRequestCommand.cc: Added HTTPS support.
  15765. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  15766. for SocketCore.
  15767. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  15768. size is wrong
  15769. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  15770. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  15771. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  15772. * Release 0.1.0