ChangeLog 595 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958
  1. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Call RequestGroup::createNextCommandWithAdj() from
  3. BtFileAllocationEntry if at least one FileEntry has URI. The
  4. static function hasAssociatedUri in RequestGroup.cc is renamed as
  5. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  6. * src/BtFileAllocationEntry.cc
  7. * src/FileEntry.h
  8. * src/RequestGroup.cc
  9. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  10. Generate peer ID after SimpleRandomizer is initialized.
  11. * src/main.cc
  12. * src/option_processing.cc
  13. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  14. Removed unused method argument.
  15. * src/CreateRequestCommand.cc
  16. * src/RequestGroup.cc
  17. * src/RequestGroup.h
  18. * src/RequestGroupMan.cc
  19. * src/TrackerWatcherCommand.cc
  20. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  21. Made URI reusing function work.
  22. * src/CreateRequestCommand.cc
  23. * src/FileEntry.cc
  24. * src/FileEntry.h
  25. * test/FileEntryTest.cc
  26. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  27. Add formerly fastest PeerStat's sessionDownloadLength to new
  28. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  29. bytes in a session.
  30. * src/PeerStat.cc
  31. * src/SegmentMan.cc
  32. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  33. If pipelining is enabled, we can always pool socket.
  34. * src/HttpDownloadCommand.cc
  35. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  36. In a single file download, file size becomes known just after
  37. downloading, set total length to FileEntry object when download
  38. completed.
  39. * src/DownloadCommand.cc
  40. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  41. Use std::vector::reserve() for fileEntries and pieceHashes in
  42. bittorrent_helper
  43. * src/bittorrent_helper.cc
  44. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  45. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  46. Removed hidden option PREF_RESET_URI.
  47. * src/AbstractCommand.cc
  48. * src/OptionHandlerFactory.cc
  49. * src/prefs.cc
  50. * src/prefs.h
  51. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  52. Removed unused variable/function.
  53. * src/PeerStat.h
  54. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  55. Show first URL in Download Results if file path is not available.
  56. * src/FileEntry.h
  57. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  58. Throw exception if file path doesn't exist in FTP URL.
  59. * src/InitiateConnectionCommandFactory.cc
  60. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  61. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  62. * src/BitfieldMan.cc
  63. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  64. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  65. of PeerStat in SegmentMan. peerStats is used for calculating
  66. download speed. Therefore all active PeerStats should be in
  67. there. Another one is _fastestPeerStats and it only contains
  68. fastest PeerStat for each hostname/protocol pair. They are used
  69. for updating ServerStat.
  70. * src/DownloadCommand.cc
  71. * src/Request.h
  72. * src/RequestGroupMan.cc
  73. * src/SegmentMan.cc
  74. * src/SegmentMan.h
  75. * test/SegmentManTest.cc
  76. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  77. Try all available addresses returned by DNS until it gets
  78. connected in HTTP(S)/FTP download
  79. * src/AbstractCommand.cc
  80. * src/AbstractCommand.h
  81. * src/AbstractProxyRequestCommand.cc
  82. * src/AbstractProxyRequestCommand.h
  83. * src/DNSCache.h
  84. * src/DownloadEngine.cc
  85. * src/DownloadEngine.h
  86. * src/FtpInitiateConnectionCommand.cc
  87. * src/FtpInitiateConnectionCommand.h
  88. * src/FtpNegotiationCommand.cc
  89. * src/FtpNegotiationCommand.h
  90. * src/HttpInitiateConnectionCommand.cc
  91. * src/HttpInitiateConnectionCommand.h
  92. * src/HttpRequestCommand.cc
  93. * src/HttpRequestCommand.h
  94. * src/InitiateConnectionCommand.cc
  95. * src/InitiateConnectionCommand.h
  96. * test/DNSCacheTest.cc
  97. * test/Makefile.am
  98. * test/SimpleDNSCacheTest.cc
  99. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  100. Updated doc
  101. * src/download_helper.cc
  102. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  103. Refactored fieldMan ctor.
  104. * src/BitfieldMan.cc
  105. * src/BitfieldMan.h
  106. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  107. Don't print "No files to download." message if -S is given.
  108. * src/main.cc
  109. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  110. Set referer and method to newly created Request object.
  111. * src/CreateRequestCommand.cc
  112. * src/FileEntry.cc
  113. * src/FileEntry.h
  114. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  115. Removed ctor of AbstractCommand which doesn't take FileEntry.
  116. * src/AbstractCommand.cc
  117. * src/AbstractCommand.h
  118. * src/CreateRequestCommand.cc
  119. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  120. Get proxy download working
  121. * src/AbstractProxyRequestCommand.cc
  122. * src/AbstractProxyRequestCommand.h
  123. * src/AbstractProxyResponseCommand.cc
  124. * src/AbstractProxyResponseCommand.h
  125. * src/FtpInitiateConnectionCommand.cc
  126. * src/FtpTunnelRequestCommand.cc
  127. * src/FtpTunnelRequestCommand.h
  128. * src/FtpTunnelResponseCommand.cc
  129. * src/FtpTunnelResponseCommand.h
  130. * src/HttpInitiateConnectionCommand.cc
  131. * src/HttpProxyRequestCommand.cc
  132. * src/HttpProxyRequestCommand.h
  133. * src/HttpProxyResponseCommand.cc
  134. * src/HttpProxyResponseCommand.h
  135. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  136. Use SegmentMan::getSegment(cuid) for single file download.
  137. * src/AbstractCommand.cc
  138. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  139. Fixed bufSize calculation
  140. * src/DownloadCommand.cc
  141. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  142. Don't append "/" if base URI ends with "/".
  143. * src/bittorrent_helper.cc
  144. * test/url-list-multiFile.torrent
  145. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  146. HTTP pipelining is now working. Fixed Segmention fault in
  147. BitfieldMan's copy ctor.
  148. * src/AbstractCommand.cc
  149. * src/BitfieldMan.cc
  150. * src/BitfieldMan.h
  151. * src/DownloadCommand.cc
  152. * src/HttpDownloadCommand.cc
  153. * src/HttpRequest.cc
  154. * src/SegmentMan.cc
  155. * src/SegmentMan.h
  156. * test/BitfieldManTest.cc
  157. * test/SegmentManTest.cc
  158. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  159. Removed ServerHost. Same functionality is implemented using
  160. FileEntry's in-flight Request objects.
  161. * src/AbstractCommand.cc
  162. * src/BtDependency.cc
  163. * src/CreateRequestCommand.cc
  164. * src/FileEntry.cc
  165. * src/FileEntry.h
  166. * src/FtpNegotiationCommand.cc
  167. * src/HttpResponseCommand.cc
  168. * src/Makefile.am
  169. * src/Metalink2RequestGroup.cc
  170. * src/RequestGroup.cc
  171. * src/RequestGroup.h
  172. * src/ServerHost.cc: Removed
  173. * src/ServerHost.h: Removed
  174. * test/BtDependencyTest.cc
  175. * test/FileEntryTest.cc
  176. * test/RequestGroupTest.cc
  177. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  178. Rewritten PeerStat handling. In the previous implementation,
  179. faster command tries to find slower command. In this new
  180. implementation, slower command tries to find faster command.
  181. PeerStat is now created in each HTTP/FTP request to get download
  182. rate correctly. If the download range is small, the download rate
  183. tends to small and this will occur at the later stage of download.
  184. * src/AbstractCommand.cc
  185. * src/DownloadCommand.cc
  186. * src/FileEntry.cc
  187. * src/FileEntry.h
  188. * src/Request.cc
  189. * src/Request.h
  190. * src/RequestGroup.h
  191. * src/RequestGroupMan.cc
  192. * src/SegmentMan.cc
  193. * src/SegmentMan.h
  194. * test/SegmentManTest.cc
  195. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  196. Removed _uris from RequestGroup. All functions that refer to _uris
  197. were moved to FileEntry. Exit status code are now defined in
  198. DownloadResultCode.h.
  199. * src/AbstractCommand.cc
  200. * src/AdaptiveURISelector.cc
  201. * src/AdaptiveURISelector.h
  202. * src/AutoSaveCommand.cc
  203. * src/BtPostDownloadHandler.cc
  204. * src/CheckIntegrityDispatcherCommand.cc
  205. * src/CookieStorage.cc
  206. * src/DHTAutoSaveCommand.cc
  207. * src/DHTBucketRefreshCommand.cc
  208. * src/DHTEntryPointNameResolveCommand.cc
  209. * src/DHTInteractionCommand.cc
  210. * src/DHTPeerAnnounceCommand.cc
  211. * src/DHTTokenUpdateCommand.cc
  212. * src/DlAbortEx.h
  213. * src/DlRetryEx.h
  214. * src/DownloadCommand.cc
  215. * src/DownloadContext.h
  216. * src/DownloadFailureException.h
  217. * src/DownloadResult.h
  218. * src/DownloadResultCode.h
  219. * src/FeedbackURISelector.cc
  220. * src/FeedbackURISelector.h
  221. * src/FileEntry.cc
  222. * src/FileEntry.h
  223. * src/FtpNegotiationCommand.cc
  224. * src/HttpListenCommand.cc
  225. * src/HttpResponseCommand.cc
  226. * src/HttpServerResponseCommand.cc
  227. * src/HttpSkipResponseCommand.cc
  228. * src/InOrderURISelector.cc
  229. * src/InOrderURISelector.h
  230. * src/Makefile.am
  231. * src/Makefile.in
  232. * src/Metalink2RequestGroup.cc
  233. * src/MultiUrlRequestInfo.cc
  234. * src/MultiUrlRequestInfo.h
  235. * src/OptionHandlerFactory.cc
  236. * src/PeerListenCommand.cc
  237. * src/RecoverableException.h
  238. * src/RequestGroup.cc
  239. * src/RequestGroup.h
  240. * src/RequestGroupMan.cc
  241. * src/RequestGroupMan.h
  242. * src/TimedHaltCommand.cc
  243. * src/TrackerWatcherCommand.cc
  244. * src/URIResult.cc
  245. * src/URIResult.h
  246. * src/URISelector.h
  247. * src/XmlRpcMethodImpl.cc
  248. * src/bittorrent_helper.cc
  249. * src/bittorrent_helper.h
  250. * src/download_helper.cc
  251. * src/main.cc
  252. * src/option_processing.cc
  253. * test/BtDependencyTest.cc
  254. * test/BtPostDownloadHandlerTest.cc
  255. * test/CookieStorageTest.cc
  256. * test/DefaultBtMessageDispatcherTest.cc
  257. * test/DownloadHandlerFactoryTest.cc
  258. * test/DownloadHelperTest.cc
  259. * test/FeedbackURISelectorTest.cc
  260. * test/FileEntryTest.cc
  261. * test/InOrderURISelectorTest.cc
  262. * test/Metalink2RequestGroupTest.cc
  263. * test/MetalinkPostDownloadHandlerTest.cc
  264. * test/RequestGroupManTest.cc
  265. * test/RequestGroupTest.cc
  266. * test/XmlRpcMethodTest.cc
  267. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  268. Removed MockBtContext.h
  269. * test/Makefile.am
  270. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  271. Removed _currentRequest from StreamCheckIntegrityEntry and
  272. StreamFileAllocationEntry.
  273. * src/AbstractCommand.cc
  274. * src/HttpResponseCommand.cc
  275. * src/RequestGroup.cc
  276. * src/StreamCheckIntegrityEntry.cc
  277. * src/StreamCheckIntegrityEntry.h
  278. * src/StreamFileAllocationEntry.cc
  279. * src/StreamFileAllocationEntry.h
  280. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  281. Rewritten DownloadContext and removed SingleFileDownloadContext
  282. and BtContext and its derived classes. BitTorrent specific
  283. attributes are now set by DownloadContext::setAttribute() with key
  284. bittorrent::BITTORRENT.
  285. * src/AbstractBtMessage.cc
  286. * src/AbstractBtMessage.h
  287. * src/AbstractCommand.cc
  288. * src/AbstractCommand.h
  289. * src/AbstractProxyRequestCommand.cc
  290. * src/AbstractProxyResponseCommand.cc
  291. * src/ActivePeerConnectionCommand.cc
  292. * src/ActivePeerConnectionCommand.h
  293. * src/AnnounceList.cc
  294. * src/BtCheckIntegrityEntry.cc
  295. * src/BtConstants.h
  296. * src/BtContext.h: Removed
  297. * src/BtDependency.cc
  298. * src/BtExtendedMessage.cc
  299. * src/BtPieceMessage.cc
  300. * src/BtPieceMessage.h
  301. * src/BtPostDownloadHandler.cc
  302. * src/BtRegistry.cc
  303. * src/BtRegistry.h
  304. * src/BtSetup.cc
  305. * src/CheckIntegrityCommand.cc
  306. * src/CheckIntegrityEntry.cc
  307. * src/ChecksumCheckIntegrityEntry.cc
  308. * src/ConsoleStatCalc.cc
  309. * src/ContentTypeRequestGroupCriteria.cc
  310. * src/DHTGetPeersCommand.cc
  311. * src/DHTGetPeersCommand.h
  312. * src/DHTPeerLookupTask.cc
  313. * src/DHTPeerLookupTask.h
  314. * src/DHTTaskFactory.h
  315. * src/DHTTaskFactoryImpl.cc
  316. * src/DHTTaskFactoryImpl.h
  317. * src/DefaultBtAnnounce.cc
  318. * src/DefaultBtAnnounce.h
  319. * src/DefaultBtContext.cc: Removed
  320. * src/DefaultBtContext.h: Removed
  321. * src/DefaultBtInteractive.cc
  322. * src/DefaultBtInteractive.h
  323. * src/DefaultBtMessageDispatcher.cc
  324. * src/DefaultBtMessageDispatcher.h
  325. * src/DefaultBtMessageFactory.cc
  326. * src/DefaultBtMessageFactory.h
  327. * src/DefaultBtMessageReceiver.cc
  328. * src/DefaultBtMessageReceiver.h
  329. * src/DefaultBtProgressInfoFile.cc
  330. * src/DefaultBtRequestFactory.cc
  331. * src/DefaultBtRequestFactory.h
  332. * src/DefaultExtensionMessageFactory.cc
  333. * src/DefaultExtensionMessageFactory.h
  334. * src/DefaultPeerStorage.cc
  335. * src/DefaultPeerStorage.h
  336. * src/DefaultPieceStorage.cc
  337. * src/DefaultSegmentManFactory.cc
  338. * src/DiskAdaptor.cc
  339. * src/DiskAdaptor.h
  340. * src/DownloadContext.cc
  341. * src/DownloadContext.h
  342. * src/DownloadEngine.cc
  343. * src/DownloadEngineFactory.cc
  344. * src/DownloadHandler.cc
  345. * src/DownloadResult.h
  346. * src/FileAllocationCommand.cc
  347. * src/FileAllocationDispatcherCommand.cc
  348. * src/FileAllocationEntry.cc
  349. * src/FileEntry.h
  350. * src/FillRequestGroupCommand.cc
  351. * src/FtpDownloadCommand.cc
  352. * src/FtpFinishDownloadCommand.cc
  353. * src/FtpInitiateConnectionCommand.cc
  354. * src/FtpNegotiationCommand.cc
  355. * src/FtpTunnelRequestCommand.cc
  356. * src/FtpTunnelResponseCommand.cc
  357. * src/HandshakeExtensionMessage.cc
  358. * src/HandshakeExtensionMessage.h
  359. * src/HaveEraseCommand.cc
  360. * src/HttpDownloadCommand.cc
  361. * src/HttpInitiateConnectionCommand.cc
  362. * src/HttpProxyRequestCommand.cc
  363. * src/HttpProxyResponseCommand.cc
  364. * src/HttpRequest.cc
  365. * src/HttpRequest.h
  366. * src/HttpRequestCommand.cc
  367. * src/HttpResponseCommand.cc
  368. * src/HttpServerBodyCommand.cc
  369. * src/HttpServerCommand.cc
  370. * src/HttpSkipResponseCommand.cc
  371. * src/InitiateConnectionCommandFactory.cc
  372. * src/InitiatorMSEHandshakeCommand.cc
  373. * src/InitiatorMSEHandshakeCommand.h
  374. * src/IteratableChecksumValidator.cc
  375. * src/IteratableChecksumValidator.h
  376. * src/IteratableChunkChecksumValidator.cc
  377. * src/MSEHandshake.cc
  378. * src/MSEHandshake.h
  379. * src/Makefile.am
  380. * src/Makefile.in
  381. * src/Metalink2RequestGroup.cc
  382. * src/MetalinkPostDownloadHandler.cc
  383. * src/MultiDiskAdaptor.cc
  384. * src/MultiDiskAdaptor.h
  385. * src/MultiFileAllocationIterator.cc
  386. * src/MultiUrlRequestInfo.cc
  387. * src/PeerChokeCommand.cc
  388. * src/PeerChokeCommand.h
  389. * src/PeerInitiateConnectionCommand.cc
  390. * src/PeerInitiateConnectionCommand.h
  391. * src/PeerInteractionCommand.cc
  392. * src/PeerInteractionCommand.h
  393. * src/PeerReceiveHandshakeCommand.cc
  394. * src/PieceHashCheckIntegrityEntry.cc
  395. * src/RealtimeCommand.cc
  396. * src/ReceiverMSEHandshakeCommand.cc
  397. * src/RequestGroup.cc
  398. * src/RequestGroup.h
  399. * src/RequestGroupEntry.cc
  400. * src/RequestGroupMan.cc
  401. * src/SeedCheckCommand.cc
  402. * src/SeedCheckCommand.h
  403. * src/SegmentMan.cc
  404. * src/ShareRatioSeedCriteria.h
  405. * src/SingleFileDownloadContext.cc: Removed
  406. * src/SingleFileDownloadContext.h: Removed
  407. * src/SleepCommand.cc
  408. * src/StreamCheckIntegrityEntry.cc
  409. * src/TrackerWatcherCommand.cc
  410. * src/TrackerWatcherCommand.h
  411. * src/UnknownLengthPieceStorage.cc
  412. * src/Util.cc
  413. * src/Util.h
  414. * src/XmlRpcMethodImpl.cc
  415. * src/bittorrent_helper.cc
  416. * src/bittorrent_helper.h
  417. * src/download_helper.cc
  418. * src/main.cc
  419. * src/option_processing.cc
  420. * test/BitfieldManTest.cc
  421. * test/BittorrentHelperTest.cc
  422. * test/BtCancelMessageTest.cc
  423. * test/BtChokeMessageTest.cc
  424. * test/BtDependencyTest.cc
  425. * test/BtPieceMessageTest.cc
  426. * test/BtPostDownloadHandlerTest.cc
  427. * test/BtRegistryTest.cc
  428. * test/BtRejectMessageTest.cc
  429. * test/BtRequestMessageTest.cc
  430. * test/DHTPeerAnnounceStorageTest.cc
  431. * test/DefaultBtAnnounceTest.cc
  432. * test/DefaultBtContextTest.cc: Removed
  433. * test/DefaultBtMessageDispatcherTest.cc
  434. * test/DefaultBtMessageFactoryTest.cc
  435. * test/DefaultBtProgressInfoFileTest.cc
  436. * test/DefaultBtRequestFactoryTest.cc
  437. * test/DefaultExtensionMessageFactoryTest.cc
  438. * test/DefaultPeerStorageTest.cc
  439. * test/DefaultPieceStorageTest.cc
  440. * test/DirectDiskAdaptorTest.cc
  441. * test/DownloadContextTest.cc
  442. * test/DownloadHandlerFactoryTest.cc
  443. * test/DownloadHelperTest.cc
  444. * test/HandshakeExtensionMessageTest.cc
  445. * test/HttpRequestTest.cc
  446. * test/HttpResponseTest.cc
  447. * test/IteratableChecksumValidatorTest.cc
  448. * test/IteratableChunkChecksumValidatorTest.cc
  449. * test/MSEHandshakeTest.cc
  450. * test/Makefile.am
  451. * test/Makefile.in
  452. * test/Metalink2RequestGroupTest.cc
  453. * test/MetalinkPostDownloadHandlerTest.cc
  454. * test/MockBtContext.h: Removed
  455. * test/MockDHTTaskFactory.h
  456. * test/MockDownloadContext.h: Removed
  457. * test/MockPieceStorage.h
  458. * test/MultiDiskAdaptorTest.cc
  459. * test/MultiFileAllocationIteratorTest.cc
  460. * test/RequestGroupManTest.cc
  461. * test/RequestGroupTest.cc
  462. * test/SegmentManTest.cc
  463. * test/ShareRatioSeedCriteriaTest.cc
  464. * test/SingleFileDownloadContextTest.cc: Removed
  465. * test/UtilTest.cc
  466. * test/XmlRpcMethodTest.cc
  467. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  468. Added experimental support of WEB-Seeding for multi-file torrent.
  469. Due to fundamental changes in file handling in HTTP/FTP code, many
  470. functions are not working: PeerStat, ServerHost, proxy..etc
  471. * src/AbstractCommand.cc
  472. * src/AbstractCommand.h
  473. * src/BitfieldMan.cc
  474. * src/BitfieldMan.h
  475. * src/CreateRequestCommand.cc
  476. * src/CreateRequestCommand.h
  477. * src/DefaultPieceStorage.cc
  478. * src/DefaultPieceStorage.h
  479. * src/DownloadCommand.cc
  480. * src/DownloadCommand.h
  481. * src/DownloadContext.cc
  482. * src/DownloadContext.h
  483. * src/FileEntry.cc
  484. * src/FileEntry.h
  485. * src/FtpDownloadCommand.cc
  486. * src/FtpDownloadCommand.h
  487. * src/FtpFinishDownloadCommand.cc
  488. * src/FtpFinishDownloadCommand.h
  489. * src/FtpInitiateConnectionCommand.cc
  490. * src/FtpInitiateConnectionCommand.h
  491. * src/FtpNegotiationCommand.cc
  492. * src/FtpNegotiationCommand.h
  493. * src/FtpTunnelResponseCommand.cc
  494. * src/HttpDownloadCommand.cc
  495. * src/HttpDownloadCommand.h
  496. * src/HttpInitiateConnectionCommand.cc
  497. * src/HttpInitiateConnectionCommand.h
  498. * src/HttpProxyResponseCommand.cc
  499. * src/HttpRequest.cc
  500. * src/HttpRequest.h
  501. * src/HttpRequestCommand.cc
  502. * src/HttpRequestCommand.h
  503. * src/HttpResponseCommand.cc
  504. * src/HttpResponseCommand.h
  505. * src/HttpSkipResponseCommand.cc
  506. * src/HttpSkipResponseCommand.h
  507. * src/InitiateConnectionCommand.cc
  508. * src/InitiateConnectionCommand.h
  509. * src/InitiateConnectionCommandFactory.cc
  510. * src/InitiateConnectionCommandFactory.h
  511. * src/Makefile.am
  512. * src/PieceStorage.h
  513. * src/RequestGroup.cc
  514. * src/RequestGroup.h
  515. * src/RequestGroupMan.cc
  516. * src/SegmentMan.cc
  517. * src/SegmentMan.h
  518. * src/SingleFileDownloadContext.h
  519. * src/StreamFileAllocationEntry.cc
  520. * src/TrackerWatcherCommand.cc
  521. * src/UnknownLengthPieceStorage.cc
  522. * src/UnknownLengthPieceStorage.h
  523. * src/array_fun.h
  524. * src/bitfield.h
  525. * src/download_helper.cc
  526. * test/DownloadContextTest.cc
  527. * test/Makefile.am
  528. * test/MockDownloadContext.h
  529. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  530. Added tellWaiting XML-RPC method.
  531. * src/SingleFileDownloadContext.cc
  532. * src/XmlRpcMethodFactory.cc
  533. * src/XmlRpcMethodImpl.cc
  534. * src/XmlRpcMethodImpl.h
  535. * test/XmlRpcMethodTest.cc
  536. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  537. Updated CookieStorageTest
  538. * test/CookieStorageTest.cc
  539. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  540. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  541. handle excepion inside these functions.
  542. * src/LibgnutlsTLSContext.cc
  543. * src/LibgnutlsTLSContext.h
  544. * src/LibsslTLSContext.cc
  545. * src/LibsslTLSContext.h
  546. * src/MultiUrlRequestInfo.cc
  547. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  548. Added comment
  549. * src/RequestGroup.cc
  550. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  551. In CookieStorage::load() and saveNsFormat(), handle exception
  552. inside the functions. When saving Cookies, first write temporary
  553. file and after successful writes, then renames it to final
  554. destination.
  555. * src/CookieStorage.cc
  556. * src/CookieStorage.h
  557. * src/MultiUrlRequestInfo.cc
  558. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  559. The default value of --dir option is the absolute path to the
  560. current directory. If getcwd() is failed, then it is ".", which is
  561. the same value with old implementation. This change is necessary
  562. because after daemon() call, the current working directory is
  563. changed to /.
  564. * src/File.cc
  565. * src/File.h
  566. * src/OptionHandlerFactory.cc
  567. * src/option_processing.cc
  568. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  569. Call daemon() with arguments(0,0), which means daemon() changes
  570. current working directory to / and redirects stdin, stdout and
  571. stderr to /dev/null.
  572. * src/option_processing.cc
  573. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  574. Small performance optimizations.
  575. * src/RequestGroupMan.cc
  576. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  577. Added _xmlRpc member variable to RequestGroupMan to reduce the
  578. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  579. * src/RequestGroupMan.cc
  580. * src/RequestGroupMan.h
  581. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  582. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  583. setNoWiat(true) if newly created command calls
  584. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  585. * src/HttpListenCommand.cc
  586. * src/HttpServerBodyCommand.cc
  587. * src/HttpServerCommand.cc
  588. * src/HttpServerResponseCommand.cc
  589. * src/InitiateConnectionCommand.cc
  590. * src/RequestGroup.cc
  591. * src/StreamFileAllocationEntry.cc
  592. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  593. Removed include vector
  594. * src/BtRegistry.h
  595. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  596. Rewritten BtRegistry
  597. * src/BtRegistry.cc
  598. * src/BtRegistry.h
  599. * src/BtSetup.cc
  600. * src/ConsoleStatCalc.cc
  601. * src/PeerInteractionCommand.cc
  602. * src/PeerReceiveHandshakeCommand.cc
  603. * src/ReceiverMSEHandshakeCommand.cc
  604. * src/RequestGroup.cc
  605. * src/XmlRpcMethodImpl.cc
  606. * test/BtRegistryTest.cc
  607. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  608. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  609. * src/DefaultBtProgressInfoFile.cc
  610. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  611. Throw an exception if position is less than 0.
  612. * src/XmlRpcMethodImpl.cc
  613. * test/XmlRpcMethodTest.cc
  614. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  615. Use writeFilePath() in ConsoleStatCalc.cc
  616. * src/ConsoleStatCalc.cc
  617. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  618. Receive the return value as const reference from
  619. DownloadContext::getFileEntries().
  620. * src/DefaultPieceStorage.cc
  621. * src/RequestGroupMan.cc
  622. * src/XmlRpcMethodImpl.cc
  623. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  624. DownloadContext now has _fileEntries so that
  625. DownloadContext::getFileEntries() can returns its const reference.
  626. * src/DefaultBtContext.cc
  627. * src/DefaultBtContext.h
  628. * src/DownloadContext.cc
  629. * src/DownloadContext.h
  630. * src/SingleFileDownloadContext.cc
  631. * src/SingleFileDownloadContext.h
  632. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  633. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  634. writeFilePath() function template from RequestGroupMan.cc to
  635. FileEntry.h
  636. * src/FileEntry.h
  637. * src/RequestGroupMan.cc
  638. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  639. Documented 'position' parameter is starting from 0 in man page.
  640. * doc/aria2c.1.txt
  641. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  642. Updated doc.
  643. * src/MSEHandshake.cc
  644. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  645. Removed _acceptFeatures and its accessor functions from
  646. RequestGroup since they are not used practically.
  647. * src/HttpRequestCommand.cc
  648. * src/RequestGroup.cc
  649. * src/RequestGroup.h
  650. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  651. Removed member _maxTries from RequestGroup class to avoid
  652. duplicate option value. Those classes who refer this variable
  653. should use option value of PREF_MAX_TRIES directly.
  654. * src/AbstractCommand.cc
  655. * src/RequestGroup.cc
  656. * src/RequestGroup.h
  657. * src/TrackerWatcherCommand.cc
  658. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  659. * Release 1.4.1
  660. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  661. Fixed compiler warnings on netbsd
  662. * src/DHTConnectionImpl.cc
  663. * src/PeerListenCommand.cc
  664. * src/PeerSessionResource.cc
  665. * src/SegmentMan.cc
  666. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  667. Updated Ukrainian translation. Thanks to all translators.
  668. * po/uk.po
  669. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  670. Bump up version number to 1.4.1.
  671. * configure.ac
  672. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  673. Added unit tests for strjoin, strconcat and strappend.
  674. * test/a2functionalTest.cc
  675. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  676. Rewritten strconcat and strappend using operator+ instead of
  677. append().
  678. * src/a2functional.h
  679. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  680. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  681. is enabled.
  682. * src/Makefile.am
  683. * test/Makefile.am
  684. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  685. Added countSeeder() function which counts seeder in the given
  686. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  687. * src/ConsoleStatCalc.cc
  688. * src/Peer.h
  689. * src/XmlRpcMethodImpl.cc
  690. * test/PeerTest.cc
  691. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  692. Documented missing seeder in getPeers xml-rpc method.
  693. Documented uploadLength and numSeeders.
  694. * doc/aria2c.1.txt
  695. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  696. Added uploadLength and numSeeders to the response of tellStatus
  697. xml-rpc method. Assert that PeerStorage instance is not null
  698. instead of checking if statement. It should be non-null in this
  699. context.
  700. * src/XmlRpcMethodImpl.cc
  701. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  702. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  703. * src/XmlRpcResponse.cc
  704. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  705. Avoid intermediate object during string concatenation.
  706. * src/HttpRequest.cc
  707. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  708. Added strjoin function template. Use it in pathJoin()
  709. * src/Util.h
  710. * src/a2functional.h
  711. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  712. Avoid intermediate object during string concatenation. Replaced
  713. post-increment unary operator with pre-increment one in for loop.
  714. * src/AdaptiveURISelector.cc
  715. * src/AnnounceList.cc
  716. * src/AuthConfig.h
  717. * src/BtBitfieldMessage.cc
  718. * src/BtExtendedMessage.cc
  719. * src/BtHandshakeMessage.cc
  720. * src/BtPieceMessage.cc
  721. * src/BtPortMessage.cc
  722. * src/Cookie.cc
  723. * src/DHTAnnouncePeerMessage.cc
  724. * src/DHTAutoSaveCommand.cc
  725. * src/DHTGetPeersReplyMessage.cc
  726. * src/DHTNode.cc
  727. * src/DHTQueryMessage.cc
  728. * src/DHTResponseMessage.cc
  729. * src/DHTUnknownMessage.cc
  730. * src/DefaultBtAnnounce.cc
  731. * src/DefaultBtContext.cc
  732. * src/DefaultBtInteractive.cc
  733. * src/DefaultBtProgressInfoFile.cc
  734. * src/DefaultPeerStorage.cc
  735. * src/DownloadEngine.cc
  736. * src/FeatureConfig.cc
  737. * src/File.cc
  738. * src/FtpConnection.cc
  739. * src/FtpNegotiationCommand.cc
  740. * src/HandshakeExtensionMessage.cc
  741. * src/HttpConnection.cc
  742. * src/HttpRequest.cc
  743. * src/HttpResponseCommand.cc
  744. * src/HttpServer.cc
  745. * src/IndexBtMessage.cc
  746. * src/Metalink2RequestGroup.cc
  747. * src/OptionHandlerImpl.h
  748. * src/PStringBuildVisitor.cc
  749. * src/Peer.cc
  750. * src/PeerListenCommand.cc
  751. * src/Piece.cc
  752. * src/RangeBtMessage.cc
  753. * src/Request.cc
  754. * src/Request.h
  755. * src/RequestGroup.cc
  756. * src/RequestGroupMan.cc
  757. * src/ServerStat.cc
  758. * src/ServerStatMan.cc
  759. * src/UTPexExtensionMessage.cc
  760. * src/Util.cc
  761. * src/a2functional.h
  762. * src/download_helper.cc
  763. * src/messageDigest.cc
  764. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  765. Unchoke a peer randomly at first and second choke round in seed
  766. state.
  767. * src/BtSeederStateChoke.cc
  768. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  769. Added (sock_t) to quiet compiler warnings in MinGW
  770. * src/SocketCore.cc
  771. * src/SocketCore.h
  772. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  773. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  774. * src/EpollEventPoll.h
  775. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  776. Added fork() emulation using CreateProcess() in MinGW
  777. * src/RequestGroupMan.cc
  778. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  779. * Release 1.4.0
  780. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  781. Added utf8.torrent to EXTRA_DIST
  782. * test/Makefile.am
  783. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  784. Fixed docs of aria2.addMetalink xml-rpc method.
  785. * doc/aria2c.1.txt
  786. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  787. Added Slovak translation. Updated Ukrainian and Brazilian
  788. Portuguese translation. Thanks to all translators.
  789. * po/sk.po
  790. * po/uk.po
  791. * po/pt_BR.po
  792. * po/LINGUAS
  793. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  794. Added test case for XmlRpcProcessor to fail to parse malformed
  795. document.
  796. * test/XmlRpcRequestProcessorTest.cc
  797. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  798. Removed *.gmo files in po because they are generated on 'make
  799. dist'
  800. * po/*.gmo
  801. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  802. Documented max-concurrent-downloads of changeGlobalOption method
  803. in man page.
  804. * doc/aria2c.1.txt
  805. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  806. Added max-concurrent-downloads option to changeGlobalOption
  807. xml-rpc method. Rewritten loop conditional in
  808. RequestGroupMan::fillRequestGroupFromReserver().
  809. * src/RequestGroupMan.cc
  810. * src/RequestGroupMan.h
  811. * src/XmlRpcMethod.cc
  812. * src/XmlRpcMethodImpl.cc
  813. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  814. Documented position parameter in man page.
  815. * doc/aria2c.1.txt
  816. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  817. Added 'position' parameter to addUri, addTorrent and addMetalink
  818. xml-rpc method.
  819. * src/RequestGroupMan.cc
  820. * src/RequestGroupMan.h
  821. * src/XmlRpcMethodImpl.cc
  822. * test/XmlRpcMethodTest.cc
  823. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  824. Removed Peer.cc from compile source list when --disable-bittorrent
  825. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  826. takes Peer.
  827. * src/DefaultPieceStorage.cc
  828. * src/DefaultPieceStorage.h
  829. * src/Makefile.am
  830. * src/PieceStorage.h
  831. * src/UnknownLengthPieceStorage.cc
  832. * src/UnknownLengthPieceStorage.h
  833. * test/MockPieceStorage.h
  834. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  835. Implemented getter methods in header files to give them more
  836. chance of optimization.
  837. Return const reference for SharadHandle if possible.
  838. * src/AbstractAuthResolver.cc
  839. * src/AbstractAuthResolver.h
  840. * src/AbstractBtMessage.cc
  841. * src/AbstractBtMessage.h
  842. * src/AbstractSingleDiskAdaptor.cc
  843. * src/AbstractSingleDiskAdaptor.h
  844. * src/AsyncNameResolver.cc
  845. * src/AsyncNameResolver.h
  846. * src/BNode.cc
  847. * src/BNode.h
  848. * src/BitfieldMan.cc
  849. * src/BitfieldMan.h
  850. * src/BtAbortOutstandingRequestEvent.h
  851. * src/BtExtendedMessage.cc
  852. * src/BtExtendedMessage.h
  853. * src/BtSeederStateChoke.cc
  854. * src/BtSeederStateChoke.h
  855. * src/Cookie.cc
  856. * src/Cookie.h
  857. * src/DHTBucket.cc
  858. * src/DHTBucket.h
  859. * src/DHTConnectionImpl.cc
  860. * src/DHTConnectionImpl.h
  861. * src/DHTFindNodeReplyMessage.cc
  862. * src/DHTFindNodeReplyMessage.h
  863. * src/DHTGetPeersReplyMessage.cc
  864. * src/DHTGetPeersReplyMessage.h
  865. * src/DHTInteractionCommand.cc
  866. * src/DHTMessage.cc
  867. * src/DHTMessage.h
  868. * src/DHTMessageDispatcherImpl.cc
  869. * src/DHTMessageEntry.cc
  870. * src/DHTMessageReceiver.cc
  871. * src/DHTMessageReceiver.h
  872. * src/DHTMessageTrackerEntry.cc
  873. * src/DHTMessageTrackerEntry.h
  874. * src/DHTPeerAnnounceEntry.cc
  875. * src/DHTPeerAnnounceEntry.h
  876. * src/DHTPeerLookupTask.cc
  877. * src/DHTPeerLookupTask.h
  878. * src/DHTRoutingTableDeserializer.cc
  879. * src/DHTRoutingTableDeserializer.h
  880. * src/DefaultBtAnnounce.cc
  881. * src/DefaultBtAnnounce.h
  882. * src/DefaultBtMessageDispatcher.cc
  883. * src/DefaultBtMessageDispatcher.h
  884. * src/DefaultBtRequestFactory.cc
  885. * src/DefaultBtRequestFactory.h
  886. * src/DiskAdaptor.cc
  887. * src/DiskAdaptor.h
  888. * src/DownloadContext.cc
  889. * src/DownloadContext.h
  890. * src/DownloadEngine.cc
  891. * src/DownloadEngine.h
  892. * src/EpollEventPoll.cc
  893. * src/EpollEventPoll.h
  894. * src/FtpConnection.cc
  895. * src/FtpConnection.h
  896. * src/HttpConnection.cc
  897. * src/HttpConnection.h
  898. * src/HttpHeader.cc
  899. * src/HttpHeader.h
  900. * src/HttpRequest.cc
  901. * src/HttpRequest.h
  902. * src/HttpResponse.cc
  903. * src/HttpResponse.h
  904. * src/LibsslTLSContext.cc
  905. * src/LibsslTLSContext.h
  906. * src/MSEHandshake.cc
  907. * src/MSEHandshake.h
  908. * src/MetalinkEntry.cc
  909. * src/MetalinkEntry.h
  910. * src/MetalinkParserController.cc
  911. * src/MetalinkParserController.h
  912. * src/MetalinkParserStateMachine.cc
  913. * src/MetalinkParserStateMachine.h
  914. * src/MultiDiskAdaptor.cc
  915. * src/MultiDiskAdaptor.h
  916. * src/NetrcAuthResolver.cc
  917. * src/NetrcAuthResolver.h
  918. * src/Peer.cc
  919. * src/Peer.h
  920. * src/PeerSessionResource.cc
  921. * src/PeerSessionResource.h
  922. * src/Piece.cc
  923. * src/Piece.h
  924. * src/PieceStatMan.cc
  925. * src/PieceStatMan.h
  926. * src/Request.cc
  927. * src/Request.h
  928. * src/RequestGroup.cc
  929. * src/RequestGroup.h
  930. * src/RequestGroupMan.cc
  931. * src/RequestGroupMan.h
  932. * src/RequestSlot.cc
  933. * src/RequestSlot.h
  934. * src/SegmentMan.cc
  935. * src/SegmentMan.h
  936. * src/SelectEventPoll.cc
  937. * src/SelectEventPoll.h
  938. * src/ServerStat.cc
  939. * src/ServerStat.h
  940. * src/Signature.cc
  941. * src/Signature.h
  942. * src/URIResult.cc
  943. * src/URIResult.h
  944. * src/UTPexExtensionMessage.cc
  945. * src/UTPexExtensionMessage.h
  946. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  947. Fixed compile error without BitTorrent and Metalink support.
  948. * src/XmlRpcMethod.cc
  949. * src/XmlRpcMethodFactory.cc
  950. * src/XmlRpcMethodImpl.cc
  951. * src/XmlRpcMethodImpl.h
  952. * test/XmlRpcMethodTest.cc
  953. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  954. Rewritten the help message for --allow-overwrite option.
  955. * doc/aria2c.1.txt
  956. * src/usage_text.h
  957. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  958. Fixed typo
  959. * doc/aria2c.1.txt
  960. * src/usage_text.h
  961. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  962. Updated README for 1.4.0 release. Use new table syntax of
  963. asciidoc.
  964. * README
  965. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  966. Documented --xml-rpc-max-request-size option in man page.
  967. * doc/aria2c.1.txt
  968. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  969. Moved C_* constants from BtContext to DefaultBtContext.
  970. * src/BtContext.cc: Removed.
  971. * src/BtContext.h
  972. * src/DefaultBtContext.cc
  973. * src/DefaultBtContext.h
  974. * src/Makefile.am
  975. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  976. Use name.utf-8 and path.utf-8 key in higher priority than name and
  977. path key respectively when persing .torrent file.
  978. * src/BtContext.cc
  979. * src/BtContext.h
  980. * src/DefaultBtContext.cc
  981. * test/DefaultBtContextTest.cc
  982. * test/utf8.torrent
  983. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  984. Added --xml-rpc-max-request-size option to limit the size of
  985. XML-RPC request.
  986. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  987. Documented XML-RPC API in man page.
  988. * doc/aria2c.1.txt
  989. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  990. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  991. will break strict-aliasing rules
  992. * src/PeerConnection.cc
  993. * test/DHTRoutingTableSerializerTest.cc
  994. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  995. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  996. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  997. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  998. PKG_CHECK_MODULES macro uses latter name.
  999. * m4/sqlite3.m4
  1000. * src/Makefile.am
  1001. * test/Makefile.am
  1002. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1003. Fixed typo
  1004. * configure.ac
  1005. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1006. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  1007. presence of libgnutls using pkg-config first. If it fails, fall
  1008. back to old macro libgnutls.m4.
  1009. * configure.ac
  1010. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1011. Use s itself instead of !s.bad()
  1012. * src/CookieStorage.cc
  1013. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1014. Documented --on-download-* option and --save-cookies option in man
  1015. page.
  1016. * doc/aria2c.1.txt
  1017. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1018. Set possible values for --load-cookie option to "/path/to/file".
  1019. * src/OptionHandlerFactory.cc
  1020. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1021. Added --save-cookies option.
  1022. * src/Cookie.cc
  1023. * src/Cookie.h
  1024. * src/CookieStorage.cc
  1025. * src/CookieStorage.h
  1026. * src/MultiUrlRequestInfo.cc
  1027. * src/OptionHandlerFactory.cc
  1028. * src/prefs.cc
  1029. * src/prefs.h
  1030. * src/usage_text.h
  1031. * test/CookieStorageTest.cc
  1032. * test/CookieTest.cc
  1033. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1034. Removed tellAll XML-RPC command because its reponse tends to be
  1035. big if stopped/waiting downloads pile up.
  1036. * src/XmlRpcMethodFactory.cc
  1037. * src/XmlRpcMethodImpl.cc
  1038. * src/XmlRpcMethodImpl.h
  1039. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1040. Added the ability to execute command when download starts and
  1041. stops. You can also specify command for particular cases such as
  1042. complete/error download. Added --on-download-start,
  1043. --on-download-stop, --on-download-complete and --on-download-error
  1044. option.
  1045. * src/OptionHandlerFactory.cc
  1046. * src/RequestGroupMan.cc
  1047. * src/prefs.cc
  1048. * src/prefs.h
  1049. * src/usage_text.h
  1050. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1051. Fixed test error
  1052. * test/BencodeTest.cc
  1053. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1054. Added unit tests.
  1055. * test/XmlRpcMethodTest.cc
  1056. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1057. Made exception message more verbose.
  1058. * src/bencode.cc
  1059. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1060. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  1061. space in console readout. Also they are now shown in MiB/s if
  1062. speed > 1024KiB/s.
  1063. * src/ConsoleStatCalc.cc
  1064. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1065. Added SEED to console output, which represents the number of
  1066. seeders currently the client is connecting to.
  1067. * src/ConsoleStatCalc.cc
  1068. * src/ConsoleStatCalc.h
  1069. * src/DownloadEngine.cc
  1070. * src/NullStatCalc.h
  1071. * src/StatCalc.h
  1072. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1073. Added source filename(__FILE__) and line number(__LINE__) to
  1074. exception message.
  1075. * src/AbstractCommand.cc
  1076. * src/AbstractDiskWriter.cc
  1077. * src/AbstractProxyResponseCommand.cc
  1078. * src/BDE.h
  1079. * src/BtAllowedFastMessage.cc
  1080. * src/BtHandshakeMessageValidator.h
  1081. * src/BtHaveAllMessage.cc
  1082. * src/BtHaveNoneMessage.cc
  1083. * src/BtPieceMessage.cc
  1084. * src/BtRejectMessage.cc
  1085. * src/ChunkedDecoder.cc
  1086. * src/CookieStorage.cc
  1087. * src/DHTAnnouncePeerMessage.cc
  1088. * src/DHTEntryPointNameResolveCommand.cc
  1089. * src/DHTMessageFactoryImpl.cc
  1090. * src/DHTMessageTracker.cc
  1091. * src/DHTRoutingTableDeserializer.cc
  1092. * src/DHTRoutingTableSerializer.cc
  1093. * src/DHTSetup.cc
  1094. * src/DHTTokenTracker.cc
  1095. * src/DefaultBtAnnounce.cc
  1096. * src/DefaultBtContext.cc
  1097. * src/DefaultBtInteractive.cc
  1098. * src/DefaultBtMessageFactory.cc
  1099. * src/DefaultBtProgressInfoFile.cc
  1100. * src/DefaultExtensionMessageFactory.cc
  1101. * src/DlAbortEx.h
  1102. * src/DlRetryEx.h
  1103. * src/DownloadCommand.cc
  1104. * src/DownloadEngineFactory.cc
  1105. * src/DownloadFailureException.h
  1106. * src/Exception.cc
  1107. * src/Exception.h
  1108. * src/ExpatMetalinkProcessor.cc
  1109. * src/ExpatXmlRpcRequestProcessor.cc
  1110. * src/FallocFileAllocationIterator.cc
  1111. * src/FatalException.h
  1112. * src/FtpConnection.cc
  1113. * src/FtpFinishDownloadCommand.cc
  1114. * src/FtpInitiateConnectionCommand.cc
  1115. * src/FtpNegotiationCommand.cc
  1116. * src/GZipDecoder.cc
  1117. * src/HandshakeExtensionMessage.cc
  1118. * src/HttpConnection.cc
  1119. * src/HttpHeaderProcessor.cc
  1120. * src/HttpInitiateConnectionCommand.cc
  1121. * src/HttpResponse.cc
  1122. * src/HttpResponseCommand.cc
  1123. * src/HttpServer.cc
  1124. * src/HttpSkipResponseCommand.cc
  1125. * src/InitiateConnectionCommandFactory.cc
  1126. * src/IteratableChunkChecksumValidator.cc
  1127. * src/LibgcryptARC4Context.h
  1128. * src/LibgcryptARC4Decryptor.h
  1129. * src/LibgcryptARC4Encryptor.h
  1130. * src/LibgcryptDHKeyExchange.h
  1131. * src/LibgnutlsTLSContext.cc
  1132. * src/LibsslARC4Context.h
  1133. * src/LibsslARC4Decryptor.h
  1134. * src/LibsslARC4Encryptor.h
  1135. * src/LibsslDHKeyExchange.h
  1136. * src/LibsslTLSContext.cc
  1137. * src/MSEHandshake.cc
  1138. * src/MessageDigestHelper.cc
  1139. * src/MetalinkHelper.cc
  1140. * src/MultiDiskAdaptor.cc
  1141. * src/NameMatchOptionHandler.h
  1142. * src/NameResolver.cc
  1143. * src/Netrc.cc
  1144. * src/NsCookieParser.cc
  1145. * src/OptionHandlerException.cc
  1146. * src/OptionHandlerException.h
  1147. * src/OptionHandlerImpl.h
  1148. * src/OptionParser.cc
  1149. * src/ParameterizedStringParser.cc
  1150. * src/PeerAbstractCommand.cc
  1151. * src/PeerConnection.cc
  1152. * src/PeerMessageUtil.cc
  1153. * src/PeerReceiveHandshakeCommand.cc
  1154. * src/Platform.cc
  1155. * src/ReceiverMSEHandshakeCommand.cc
  1156. * src/RecoverableException.h
  1157. * src/RequestGroup.cc
  1158. * src/SimpleLogger.cc
  1159. * src/SocketCore.cc
  1160. * src/Sqlite3MozCookieParser.cc
  1161. * src/UTPexExtensionMessage.cc
  1162. * src/Util.cc
  1163. * src/XML2SAXMetalinkProcessor.cc
  1164. * src/Xml2XmlRpcRequestProcessor.cc
  1165. * src/XmlRpcMethodImpl.cc
  1166. * src/bencode.cc
  1167. * src/download_helper.cc
  1168. * src/messageDigest.h
  1169. * test/ExceptionTest.cc
  1170. * test/TestUtil.cc
  1171. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1172. Bump up version number to 1.4.0
  1173. * configure.ac
  1174. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1175. Added 2files.metalink to EXTRA_DIST
  1176. * test/Makefile.am
  1177. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1178. Added missing 2files.metalink
  1179. * test/2files.metalink
  1180. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1181. Show "[MEMORY]" prefix before filename in download summary if it
  1182. is downloaded into memory.
  1183. * src/DownloadResult.h
  1184. * src/RequestGroup.cc
  1185. * src/RequestGroupMan.cc
  1186. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1187. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  1188. * src/ExpatXmlRpcRequestProcessor.cc
  1189. * src/Xml2XmlRpcRequestProcessor.cc
  1190. * src/message.h
  1191. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1192. Defined const BDEs to avoid duplicate instantiation.
  1193. Defined MSG_GID_NOT_PROVIDED.
  1194. * src/XmlRpcMethodImpl.cc
  1195. * src/message.h
  1196. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1197. Code cleanup
  1198. * src/Xml2XmlRpcRequestProcessor.cc
  1199. * src/Xml2XmlRpcRequestProcessor.h
  1200. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1201. Defined ENABLE_XML_RPC
  1202. * configure.ac
  1203. * configure
  1204. * config.h.in
  1205. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1206. Added ExpatXmlRpcRequestProcessor
  1207. * src/ExpatXmlRpcRequestProcessor.cc
  1208. * src/ExpatXmlRpcRequestProcessor.h
  1209. * src/Makefile.am
  1210. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1211. Added tests for addTorrent and addMetalink command.
  1212. * test/TestUtil.cc
  1213. * test/TestUtil.h
  1214. * test/XmlRpcMethodTest.cc
  1215. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1216. Corrected the description of --file-allocation option.
  1217. * doc/aria2c.1.txt
  1218. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1219. Added tellAll command.
  1220. * src/XmlRpcMethodFactory.cc
  1221. * src/XmlRpcMethodImpl.cc
  1222. * src/XmlRpcMethodImpl.h
  1223. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1224. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  1225. * src/XmlRpcMethodImpl.cc
  1226. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1227. Added changeGlobalOption command. Currently,
  1228. max-overall-download-limit and max-overall-upload-limit option are
  1229. available.
  1230. * src/RequestGroupMan.h
  1231. * src/XmlRpcMethod.cc
  1232. * src/XmlRpcMethod.h
  1233. * src/XmlRpcMethodFactory.cc
  1234. * src/XmlRpcMethodImpl.cc
  1235. * src/XmlRpcMethodImpl.h
  1236. * test/XmlRpcMethodTest.cc
  1237. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1238. Added changeOption command. Currently, max-download-limit,
  1239. max-upload-limit option are available in this command.
  1240. * src/RequestGroup.h
  1241. * src/XmlRpcMethod.cc
  1242. * src/XmlRpcMethod.h
  1243. * src/XmlRpcMethodFactory.cc
  1244. * src/XmlRpcMethodImpl.cc
  1245. * src/XmlRpcMethodImpl.h
  1246. * test/XmlRpcMethodTest.cc
  1247. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1248. Added purgeDownloadResult command.
  1249. * src/RequestGroupMan.cc
  1250. * src/RequestGroupMan.h
  1251. * src/XmlRpcMethodFactory.cc
  1252. * src/XmlRpcMethodImpl.cc
  1253. * src/XmlRpcMethodImpl.h
  1254. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1255. Refactored.
  1256. * src/XmlRpcMethod.cc
  1257. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1258. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  1259. XmlRpcResponse.
  1260. * src/HttpServerBodyCommand.cc
  1261. * src/Makefile.am
  1262. * src/XmlRpcMethod.cc
  1263. * src/XmlRpcMethod.h
  1264. * src/XmlRpcMethodImpl.cc
  1265. * src/XmlRpcResponse.cc
  1266. * src/XmlRpcResponse.h
  1267. * test/XmlRpcMethodTest.cc
  1268. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1269. In XML-RPC option struct, header and index-out option can take
  1270. array as value.
  1271. * src/XmlRpcMethod.cc
  1272. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1273. Removed unused option member from PeerConnection.
  1274. * src/InitiatorMSEHandshakeCommand.cc
  1275. * src/PeerConnection.cc
  1276. * src/PeerConnection.h
  1277. * src/PeerInteractionCommand.cc
  1278. * src/PeerReceiveHandshakeCommand.cc
  1279. * src/ReceiverMSEHandshakeCommand.cc
  1280. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1281. Added "seeder" key to getPeers response.
  1282. * src/XmlRpcMethodImpl.cc
  1283. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1284. Added addMetalink XML-RPC command.
  1285. * src/XmlRpcMethodFactory.cc
  1286. * src/XmlRpcMethodImpl.cc
  1287. * src/XmlRpcMethodImpl.h
  1288. * src/download_helper.cc
  1289. * src/download_helper.h
  1290. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1291. Fixed the bug that POU peers are never choked in seeding.
  1292. * src/BtSeederStateChoke.cc
  1293. * src/BtSeederStateChoke.h
  1294. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1295. Added web-seeding URI handling in addTorrent command.
  1296. * src/XmlRpcMethodImpl.cc
  1297. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1298. Added "length" key to getFiles response.
  1299. * src/XmlRpcMethodImpl.cc
  1300. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1301. Moved --no-netrc option from ftp option section to http/ftp option
  1302. section.
  1303. * doc/aria2c.1.txt
  1304. * src/OptionHandlerFactory.cc
  1305. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1306. Removed garbage "\" character before '
  1307. * doc/aria2c.1.txt
  1308. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1309. Removed garbage "\" character before http.
  1310. * doc/aria2c.1.txt
  1311. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1312. Documented additional options that can be specified in -i list.
  1313. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  1314. and --xml-rpc-passwd. Removed --enable-http-server and
  1315. --http-server-listen-port.
  1316. * doc/aria2c.1.txt
  1317. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1318. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  1319. * src/DefaultPeerStorage.cc
  1320. * src/DefaultPeerStorage.h
  1321. * src/PeerStorage.h
  1322. * src/XmlRpcMethodImpl.cc
  1323. * test/MockPeerStorage.h
  1324. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1325. Put a call to Socket::isReadable() in try block.
  1326. * src/HttpServerBodyCommand.cc
  1327. * src/HttpServerCommand.cc
  1328. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1329. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  1330. exception , so it is now in try block.
  1331. * src/HttpServerResponseCommand.cc
  1332. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1333. Added "amChoking" and "peerChoking" key in getPeers response.
  1334. * src/XmlRpcMethodImpl.cc
  1335. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1336. Added test case for zero-length filter.
  1337. * test/BitfieldManTest.cc
  1338. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1339. getFiles command now returns file data for finished/stopped
  1340. downloads.
  1341. * src/XmlRpcMethodImpl.cc
  1342. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1343. DownloadResult now has the list of FileEntry. The download
  1344. summary displays the path of first selected file and the number of
  1345. remaining files for multi-file torrent.
  1346. * src/DownloadResult.h
  1347. * src/RequestGroup.cc
  1348. * src/RequestGroupMan.cc
  1349. * test/RequestGroupTest.cc
  1350. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1351. Fixed segmentation fault error when no file is selected in
  1352. multi-file torrent.
  1353. * src/BitfieldMan.cc
  1354. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1355. Escaped <,>,& character in XML-RPC response.
  1356. * src/XmlRpcMethod.cc
  1357. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1358. Throw DlAbortEx instead of FatalException during parsing options
  1359. because we don't want for aria2 to quit when bad option is passed
  1360. via XML-RPC.
  1361. * src/OptionHandlerException.cc
  1362. * src/OptionHandlerException.h
  1363. * src/OptionHandlerImpl.h
  1364. * src/OptionParser.cc
  1365. * src/OptionParser.h
  1366. * src/PStringSegment.cc
  1367. * src/ParameterizedStringParser.cc
  1368. * src/download_helper.cc
  1369. * test/ParameterizedStringParserTest.cc
  1370. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1371. Selecting files are now done in
  1372. DefaultBtContext::setFileFileter().
  1373. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  1374. functions are removed because they are no longer used. Creating
  1375. filter in BitfieldMan is done in new funtion
  1376. PieceStorage::setupFileFilter()
  1377. * src/BtContext.cc
  1378. * src/BtContext.h
  1379. * src/DefaultBtContext.cc
  1380. * src/DefaultBtContext.h
  1381. * src/DefaultPieceStorage.cc
  1382. * src/DefaultPieceStorage.h
  1383. * src/DiskAdaptor.cc
  1384. * src/DiskAdaptor.h
  1385. * src/PieceStorage.h
  1386. * src/RequestGroup.cc
  1387. * src/UnknownLengthPieceStorage.h
  1388. * src/XmlRpcMethodImpl.cc
  1389. * test/DefaultBtContextTest.cc
  1390. * test/MockBtContext.h
  1391. * test/MockPieceStorage.h
  1392. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1393. Fixed compile error on Mac OS X
  1394. * src/HttpServer.cc
  1395. * src/XmlRpcMethod.h
  1396. * src/XmlRpcMethodImpl.cc
  1397. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1398. Use std::binary_search instead of std::find
  1399. * src/DefaultPieceStorage.cc
  1400. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1401. Removed unnecessary BDE() call; leave them to implicit conversion.
  1402. * src/XmlRpcMethodImpl.cc
  1403. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1404. Return connections and gid in string
  1405. * src/XmlRpcMethodImpl.cc
  1406. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1407. Renamed addURI as addUri
  1408. * src/XmlRpcMethodFactory.cc
  1409. * src/XmlRpcMethodImpl.cc
  1410. * src/XmlRpcMethodImpl.h
  1411. * test/XmlRpcMethodTest.cc
  1412. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1413. Renamed addTorrentFile as addTorrent
  1414. * src/XmlRpcMethodFactory.cc
  1415. * src/XmlRpcMethodImpl.cc
  1416. * src/XmlRpcMethodImpl.h
  1417. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1418. The information for files, URIs, peers are removed from the
  1419. reponse of TellaActive, TellStatus command because they tend to be
  1420. large. Instead they can be retrieved by the dedicated commands:
  1421. getFiles, getUris and getPeers respectively.
  1422. * src/XmlRpcMethodFactory.cc
  1423. * src/XmlRpcMethodImpl.cc
  1424. * src/XmlRpcMethodImpl.h
  1425. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1426. Removed --max-overall-upload-limit and
  1427. --max-overall-download-limit option from listRequestOptions.
  1428. * src/download_helper.cc
  1429. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1430. Log incoming host in HttpListenCommand.
  1431. * src/HttpListenCommand.cc
  1432. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1433. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  1434. --xml-rpc-passwd option.
  1435. * src/HttpServer.cc
  1436. * src/HttpServer.h
  1437. * src/HttpServerCommand.cc
  1438. * src/OptionHandlerFactory.cc
  1439. * src/prefs.cc
  1440. * src/prefs.h
  1441. * src/usage_text.h
  1442. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1443. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  1444. processing 0 length request.
  1445. * src/HttpServerBodyCommand.cc
  1446. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1447. Removed --enable-http-server and --http-server-listen-port
  1448. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  1449. instead. The original feature for --enable-http-server that
  1450. reports download progress in HTML was officially removed. Persist
  1451. XML-RPC connection if client supports keep-alive.
  1452. * src/DownloadEngineFactory.cc
  1453. * src/HttpServerCommand.cc
  1454. * src/HttpServerResponseCommand.cc
  1455. * src/Makefile.am
  1456. * src/Makefile.in
  1457. * src/OptionHandlerFactory.cc
  1458. * src/RequestGroupMan.cc
  1459. * src/main.cc
  1460. * src/option_processing.cc
  1461. * src/prefs.cc
  1462. * src/prefs.h
  1463. * src/usage_text.h
  1464. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1465. Added "uris" key to the response of tellStatus command. Added
  1466. "connections" key to the response of tellStatus and tellActive
  1467. command.
  1468. * src/XmlRpcMethodImpl.cc
  1469. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1470. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  1471. Added TellStatusXmlRpcMethod. Remove command can now remove
  1472. waiting RequestGroup.
  1473. * src/RequestGroupMan.cc
  1474. * src/RequestGroupMan.h
  1475. * src/XmlRpcMethodFactory.cc
  1476. * src/XmlRpcMethodImpl.cc
  1477. * src/XmlRpcMethodImpl.h
  1478. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1479. Initialized _peerId
  1480. * src/Peer.cc
  1481. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1482. Return fault structure for error. FailXmlRpcMethod is renamed as
  1483. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  1484. in non-torrent download. Return single param value.
  1485. * src/XmlRpcMethod.cc
  1486. * src/XmlRpcMethodFactory.cc
  1487. * src/XmlRpcMethodImpl.cc
  1488. * src/XmlRpcMethodImpl.h
  1489. * test/XmlRpcMethodTest.cc
  1490. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1491. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  1492. command.
  1493. * src/RequestGroup.cc
  1494. * src/RequestGroup.h
  1495. * src/RequestGroupMan.cc
  1496. * src/XmlRpcMethodImpl.cc
  1497. * test/RequestGroupTest.cc
  1498. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1499. Added more options that can be specified in -i list and xml-rpc
  1500. add* command.
  1501. * src/download_helper.h
  1502. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1503. The available options in -i list should be listed in
  1504. listRequestOptions().
  1505. * src/download_helper.cc
  1506. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1507. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  1508. command.
  1509. * src/XmlRpcMethodImpl.cc
  1510. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1511. Now RequestGroup has its own copy of Option object. This will help
  1512. to give custom option for each RequestGroup.
  1513. addTorrentFile command now takes options.
  1514. * src/AbstractCommand.cc
  1515. * src/AbstractCommand.h
  1516. * src/AbstractProxyRequestCommand.cc
  1517. * src/ActivePeerConnectionCommand.cc
  1518. * src/ActivePeerConnectionCommand.h
  1519. * src/AdaptiveURISelector.cc
  1520. * src/BtCheckIntegrityEntry.cc
  1521. * src/BtDependency.cc
  1522. * src/BtDependency.h
  1523. * src/BtFileAllocationEntry.cc
  1524. * src/BtPostDownloadHandler.cc
  1525. * src/CheckIntegrityEntry.cc
  1526. * src/DownloadCommand.cc
  1527. * src/FtpDownloadCommand.cc
  1528. * src/FtpFinishDownloadCommand.cc
  1529. * src/FtpInitiateConnectionCommand.cc
  1530. * src/FtpNegotiationCommand.cc
  1531. * src/HttpInitiateConnectionCommand.cc
  1532. * src/HttpRequestCommand.cc
  1533. * src/HttpResponseCommand.cc
  1534. * src/HttpSkipResponseCommand.cc
  1535. * src/InitiateConnectionCommand.cc
  1536. * src/InitiateConnectionCommandFactory.cc
  1537. * src/InitiatorMSEHandshakeCommand.cc
  1538. * src/InitiatorMSEHandshakeCommand.h
  1539. * src/Metalink2RequestGroup.cc
  1540. * src/Metalink2RequestGroup.h
  1541. * src/MetalinkPostDownloadHandler.cc
  1542. * src/MultiUrlRequestInfo.cc
  1543. * src/MultiUrlRequestInfo.h
  1544. * src/PeerAbstractCommand.cc
  1545. * src/PeerInteractionCommand.cc
  1546. * src/PeerInteractionCommand.h
  1547. * src/PeerReceiveHandshakeCommand.cc
  1548. * src/PeerReceiveHandshakeCommand.h
  1549. * src/RequestGroup.cc
  1550. * src/RequestGroup.h
  1551. * src/TrackerWatcherCommand.cc
  1552. * src/TrackerWatcherCommand.h
  1553. * src/XmlRpcMethod.cc
  1554. * src/XmlRpcMethod.h
  1555. * src/XmlRpcMethodImpl.cc
  1556. * src/download_helper.cc
  1557. * src/download_helper.h
  1558. * src/main.cc
  1559. * test/BtDependencyTest.cc
  1560. * test/BtPostDownloadHandlerTest.cc
  1561. * test/DefaultBtMessageDispatcherTest.cc
  1562. * test/DownloadHandlerFactoryTest.cc
  1563. * test/DownloadHelperTest.cc
  1564. * test/Metalink2RequestGroupTest.cc
  1565. * test/MetalinkPostDownloadHandlerTest.cc
  1566. * test/RequestGroupManTest.cc
  1567. * test/RequestGroupTest.cc
  1568. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1569. Added tellActiveStatus xml-rpc command which reports download
  1570. status of active downloads.
  1571. * src/XmlRpcMethodFactory.cc
  1572. * src/XmlRpcMethodImpl.cc
  1573. * src/XmlRpcMethodImpl.h
  1574. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1575. Added addTorrentFile xml-rpc command which receives uploaded
  1576. torrent file and add download for it.
  1577. * src/RequestGroupMan.cc
  1578. * src/XmlRpcMethodFactory.cc
  1579. * src/XmlRpcMethodImpl.cc
  1580. * src/XmlRpcMethodImpl.h
  1581. * src/download_helper.cc
  1582. * src/download_helper.h
  1583. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1584. Added remove xml-rpc command which removes specified download.
  1585. There is a known issue: the removed unfinished downloads are
  1586. reported ERR when aria2 exits. They should be reported as INPR.
  1587. * src/RequestGroupMan.cc
  1588. * src/RequestGroupMan.h
  1589. * src/XmlRpcMethodFactory.cc
  1590. * src/XmlRpcMethodImpl.cc
  1591. * src/XmlRpcMethodImpl.h
  1592. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1593. If --enable-http-server is enabled, don't stop aria2 when all
  1594. download finished and don't quit when no files to download at
  1595. start up.
  1596. * src/RequestGroupMan.cc
  1597. * src/main.cc
  1598. * src/option_processing.cc
  1599. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1600. Added missing AM_CONDITIONAL
  1601. * configure.ac
  1602. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1603. Added xml-rpc functionality. Currently only addURI commad is
  1604. supported. To enable xml-rpc, run aria2 with
  1605. --enable-http-server. This option name is temporal and will be
  1606. changed. The feature that reports download progress in html format
  1607. is temporarily disabled.
  1608. * src/HttpServer.cc
  1609. * src/HttpServer.h
  1610. * src/HttpServerBodyCommand.cc
  1611. * src/HttpServerBodyCommand.h
  1612. * src/HttpServerCommand.cc
  1613. * src/HttpServerResponseCommand.cc
  1614. * src/Makefile.am
  1615. * src/OptionParser.cc
  1616. * src/OptionParser.h
  1617. * src/RequestGroupMan.cc
  1618. * src/RequestGroupMan.h
  1619. * src/XmlRpcMethod.cc
  1620. * src/XmlRpcMethod.h
  1621. * src/XmlRpcMethodFactory.cc
  1622. * src/XmlRpcMethodFactory.h
  1623. * src/XmlRpcMethodImpl.cc
  1624. * src/XmlRpcMethodImpl.h
  1625. * src/download_helper.cc
  1626. * src/download_helper.h
  1627. * test/Makefile.am
  1628. * test/XmlRpcMethodTest.cc
  1629. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1630. Added xml-rpc request parser. The supported value types are:
  1631. i4/int, string, double, struct, array, base64. Currently only
  1632. libxml2 version is provided.
  1633. * src/Xml2XmlRpcRequestProcessor.cc
  1634. * src/Xml2XmlRpcRequestProcessor.h
  1635. * src/XmlRpcElements.cc
  1636. * src/XmlRpcElements.h
  1637. * src/XmlRpcRequest.h
  1638. * src/XmlRpcRequestParserController.cc
  1639. * src/XmlRpcRequestParserController.h
  1640. * src/XmlRpcRequestParserState.h
  1641. * src/XmlRpcRequestParserStateImpl.cc
  1642. * src/XmlRpcRequestParserStateImpl.h
  1643. * src/XmlRpcRequestParserStateMachine.cc
  1644. * src/XmlRpcRequestParserStateMachine.h
  1645. * src/XmlRpcRequestProcessor.h
  1646. * test/XmlRpcRequestParserControllerTest.cc
  1647. * test/XmlRpcRequestProcessorTest.cc
  1648. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1649. * Release 1.3.3
  1650. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1651. Fixed compile error since r1202.
  1652. * src/ExpatMetalinkProcessor.cc
  1653. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1654. Updated Ukrainian, Russian and Simplified Chinese
  1655. translations. Thanks to all translators.
  1656. * po/ru.po
  1657. * po/uk.po
  1658. * po/zh_CN.po
  1659. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1660. Pass reference of Option object instead of pointer.
  1661. * src/download_helper.cc
  1662. * src/download_helper.h
  1663. * src/main.cc
  1664. * test/DownloadHelperTest.cc
  1665. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1666. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  1667. from option directly. Instead, get them from RequestGroup.
  1668. * src/ActivePeerConnectionCommand.cc
  1669. * src/ActivePeerConnectionCommand.h
  1670. * src/PeerReceiveHandshakeCommand.cc
  1671. * src/RequestGroup.h
  1672. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1673. Removed unused uploadLimitCheck and uploadLimit from
  1674. PeerAbstractCommand. Removed unused maxDownloadLimit from
  1675. PeerInteractionCommand.
  1676. * src/PeerAbstractCommand.cc
  1677. * src/PeerAbstractCommand.h
  1678. * src/PeerInteractionCommand.cc
  1679. * src/PeerInteractionCommand.h
  1680. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1681. Fixed broken file renaming feature since r1202.
  1682. * src/FtpNegotiationCommand.cc
  1683. * src/FtpNegotiationCommand.h
  1684. * src/HttpResponseCommand.cc
  1685. * src/RequestGroup.cc
  1686. * src/RequestGroup.h
  1687. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1688. Removed unused debug log
  1689. * src/SocketCore.cc
  1690. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1691. Generated configure and Makefile.in using autoconf 2.63 and
  1692. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  1693. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  1694. * configure.ac
  1695. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1696. Moved piece statistics stuff to new PieceStatMan class.
  1697. Refactored PieceSelector interface.
  1698. * src/DefaultPieceStorage.cc
  1699. * src/DefaultPieceStorage.h
  1700. * src/LongestSequencePieceSelector.cc
  1701. * src/LongestSequencePieceSelector.h
  1702. * src/Makefile.am
  1703. * src/PieceSelector.h
  1704. * src/PieceStatMan.cc
  1705. * src/PieceStatMan.h
  1706. * src/RarestPieceSelector.cc
  1707. * src/RarestPieceSelector.h
  1708. * src/RequestGroup.cc
  1709. * test/DefaultPieceStorageTest.cc
  1710. * test/InOrderPieceSelector.h
  1711. * test/Makefile.am
  1712. * test/PieceStatManTest.cc
  1713. * test/RarestPieceSelectorTest.cc
  1714. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1715. Added static member _protocolFamily to SocketCore. By default,
  1716. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  1717. address. Sometime SocketCore::bind() and
  1718. SocketCore::establishConnection() use difference protocl family
  1719. and latter cannot connect to former. To avoid this situation, we
  1720. limit protocol family to AF_INET for unit tests.
  1721. * src/SocketCore.cc
  1722. * src/SocketCore.h
  1723. * test/AllTest.cc
  1724. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1725. Avoid std::bad_alloc for negative bencode string length.
  1726. * src/bencode.cc
  1727. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1728. Supported segmented downloading with chunked transfer encoding and
  1729. content-length.
  1730. * src/DownloadCommand.cc
  1731. * src/HttpResponseCommand.cc
  1732. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1733. Bump up version number to 1.3.3
  1734. * configure.ac
  1735. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1736. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  1737. from 4096 to 65536 (for insanely large ftp login banners)
  1738. * src/FtpConnection.h
  1739. * test/FtpConnectionTest.cc
  1740. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1741. In DefaultBtContext::getActualBasePath(), return first
  1742. FileEntry::getPath() for single file torrent.
  1743. * src/DefaultBtContext.cc
  1744. * test/DefaultBtContextTest.cc
  1745. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1746. Removed directIOAllowed() from BinaryStream, DiskWriter,
  1747. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  1748. Removed _directIOAllowed member from DiskWriter.
  1749. * src/AbstractDiskWriter.cc
  1750. * src/AbstractDiskWriter.h
  1751. * src/AbstractSingleDiskAdaptor.cc
  1752. * src/AbstractSingleDiskAdaptor.h
  1753. * src/BinaryStream.h
  1754. * src/ByteArrayDiskWriter.h
  1755. * src/DefaultPieceStorage.cc
  1756. * src/DiskWriter.h
  1757. * src/MultiDiskAdaptor.cc
  1758. * src/MultiDiskAdaptor.h
  1759. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1760. Now the constructor of AbstractDiskWriter takes filename as an
  1761. argument and filename argument is removed from openFile(),
  1762. initAndOpenFile(), openExistingFile() interface. storeDir member
  1763. and its accessor functions are removed from DiskAdaptor because it
  1764. is not used anymore. size() member function of DefaultDiskWriter,
  1765. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  1766. opening file.
  1767. * src/AbstractDiskWriter.cc
  1768. * src/AbstractDiskWriter.h
  1769. * src/AbstractSingleDiskAdaptor.cc
  1770. * src/AbstractSingleDiskAdaptor.h
  1771. * src/ByteArrayDiskWriter.cc
  1772. * src/ByteArrayDiskWriter.h
  1773. * src/ByteArrayDiskWriterFactory.cc
  1774. * src/ByteArrayDiskWriterFactory.h
  1775. * src/DefaultDiskWriter.cc
  1776. * src/DefaultDiskWriter.h
  1777. * src/DefaultDiskWriterFactory.cc
  1778. * src/DefaultDiskWriterFactory.h
  1779. * src/DefaultPieceStorage.cc
  1780. * src/DirectDiskAdaptor.cc
  1781. * src/DirectDiskAdaptor.h
  1782. * src/DiskAdaptor.h
  1783. * src/DiskWriter.h
  1784. * src/DiskWriterFactory.h
  1785. * src/MessageDigestHelper.cc
  1786. * src/MultiDiskAdaptor.cc
  1787. * src/RequestGroup.cc
  1788. * src/UnknownLengthPieceStorage.cc
  1789. * src/Util.cc
  1790. * test/DefaultDiskWriterTest.cc
  1791. * test/DirectDiskAdaptorTest.cc
  1792. * test/FallocFileAllocationIteratorTest.cc
  1793. * test/MessageDigestHelperTest.cc
  1794. * test/MetalinkProcessorTest.cc
  1795. * test/MultiDiskAdaptorTest.cc
  1796. * test/MultiFileAllocationIteratorTest.cc
  1797. * test/SingleFileAllocationIteratorTest.cc
  1798. * test/UtilTest.cc
  1799. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1800. Fixed the bug that aria2 aborts when --select-file is used. This
  1801. bug was introduced in r1199.
  1802. * src/MultiDiskAdaptor.cc
  1803. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1804. Code cleanup
  1805. * test/MockPieceStorage.cc
  1806. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1807. Fixed the bug that read-only file with wrong file size will cause
  1808. error because it cannot be truncated to the correct size. Now if
  1809. file size is different than the expected one, re-open file in
  1810. writable mode.
  1811. * src/AbstractSingleDiskAdaptor.cc
  1812. * src/AbstractSingleDiskAdaptor.h
  1813. * src/BtCheckIntegrityEntry.cc
  1814. * src/DiskAdaptor.h
  1815. * src/MultiDiskAdaptor.h
  1816. * src/RequestGroup.cc
  1817. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1818. Fixed the bug that with --check-integrity option aria2 reports
  1819. downloaded file size is 0 even if some parts of file is correctly
  1820. downloaded. This bug is reproducible for the download that a file
  1821. includes last piece is missing. This bug doesn't reveal for
  1822. single-torrent with file allocation on.
  1823. * src/IteratableChecksumValidator.cc
  1824. * test/IteratableChecksumValidatorTest.cc
  1825. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1826. Avoid circular reference between RequestGroup and AdaptiveURISelector
  1827. * src/RequestGroupMan.cc
  1828. * src/AdaptiveURISelector.cc
  1829. * src/AdaptiveURISelector.h
  1830. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1831. * Release 1.3.2
  1832. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1833. Updated README
  1834. * README
  1835. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1836. Updated Ukrainian translations. Thanks to Alexander10.
  1837. * po/uk.po
  1838. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1839. Code cleanup
  1840. * src/MetalinkParserStateMachine.cc
  1841. * src/MetalinkParserStateMachine.h
  1842. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1843. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  1844. and expat simultaneously, MetalinkProcessor is now not base class
  1845. and it is directly implemented in XML2SAXMetalinkProcessor and
  1846. ExpatMetalinkProcessor.
  1847. * src/ExpatMetalinkProcessor.cc
  1848. * src/ExpatMetalinkProcessor.h
  1849. * src/Makefile.am
  1850. * src/MetalinkHelper.cc
  1851. * src/MetalinkProcessor.h
  1852. * src/MetalinkProcessorFactory.cc: Removed.
  1853. * src/MetalinkProcessorFactory.h: Removed
  1854. * src/XML2SAXMetalinkProcessor.cc
  1855. * src/XML2SAXMetalinkProcessor.h
  1856. * test/MetalinkProcessorTest.cc
  1857. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1858. Bump up version number to 1.3.2
  1859. * configure.ac
  1860. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1861. Added missing file.
  1862. * test/Makefile.am
  1863. * test/url-list-singleFileEndsWithSlash.torrent
  1864. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1865. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  1866. request.
  1867. * src/AnnounceList.cc
  1868. * src/AnnounceList.h
  1869. * src/BDE.cc: Added
  1870. * src/BDE.h: Added
  1871. * src/DHTAbstractMessage.cc
  1872. * src/DHTAbstractMessage.h
  1873. * src/DHTAnnouncePeerMessage.cc
  1874. * src/DHTAnnouncePeerMessage.h
  1875. * src/DHTAnnouncePeerReplyMessage.cc
  1876. * src/DHTAnnouncePeerReplyMessage.h
  1877. * src/DHTFindNodeMessage.cc
  1878. * src/DHTFindNodeMessage.h
  1879. * src/DHTFindNodeReplyMessage.cc
  1880. * src/DHTFindNodeReplyMessage.h
  1881. * src/DHTGetPeersMessage.cc
  1882. * src/DHTGetPeersMessage.h
  1883. * src/DHTGetPeersReplyMessage.cc
  1884. * src/DHTGetPeersReplyMessage.h
  1885. * src/DHTMessageFactory.h
  1886. * src/DHTMessageFactoryImpl.cc
  1887. * src/DHTMessageFactoryImpl.h
  1888. * src/DHTMessageReceiver.cc
  1889. * src/DHTMessageTracker.cc
  1890. * src/DHTMessageTracker.h
  1891. * src/DHTPingMessage.cc
  1892. * src/DHTPingMessage.h
  1893. * src/DHTPingReplyMessage.cc
  1894. * src/DHTPingReplyMessage.h
  1895. * src/DHTQueryMessage.cc
  1896. * src/DHTQueryMessage.h
  1897. * src/DHTResponseMessage.cc
  1898. * src/DHTResponseMessage.h
  1899. * src/DefaultBtAnnounce.cc
  1900. * src/DefaultBtContext.cc
  1901. * src/DefaultBtContext.h
  1902. * src/HandshakeExtensionMessage.cc
  1903. * src/Makefile.am
  1904. * src/PeerListProcessor.h
  1905. * src/UTPexExtensionMessage.cc
  1906. * src/bencode.cc
  1907. * src/bencode.h
  1908. * test/AnnounceListTest.cc
  1909. * test/BDETest.cc: Added
  1910. * test/BencodeTest.cc
  1911. * test/DHTAnnouncePeerMessageTest.cc
  1912. * test/DHTAnnouncePeerReplyMessageTest.cc
  1913. * test/DHTFindNodeMessageTest.cc
  1914. * test/DHTFindNodeReplyMessageTest.cc
  1915. * test/DHTGetPeersMessageTest.cc
  1916. * test/DHTGetPeersReplyMessageTest.cc
  1917. * test/DHTMessageFactoryImplTest.cc
  1918. * test/DHTMessageTrackerTest.cc
  1919. * test/DHTPingMessageTest.cc
  1920. * test/DHTPingReplyMessageTest.cc
  1921. * test/Makefile.am
  1922. * test/MockDHTMessageFactory.h
  1923. * test/PeerListProcessorTest.cc
  1924. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1925. Use url-list (web-seeding) only for single-file torrent. This is
  1926. basically the same behavior with Metalink file with torrent and
  1927. URIs.
  1928. * src/RequestGroup.cc
  1929. * src/DefaultBtContext.cc
  1930. * test/DefaultBtContextTest.cc
  1931. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1932. Rewritten expr
  1933. * src/array_fun.h
  1934. * test/array_funTest.cc
  1935. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1936. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  1937. * src/DefaultBtMessageDispatcher.cc
  1938. * src/a2algo.h
  1939. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1940. Removed ExtendedMessagingAware. Instead of using inheritance,
  1941. added ExtensionMessageRegistry and it is passed to
  1942. DefaultExtensionMessageFactory.
  1943. * src/DefaultBtInteractive.cc
  1944. * src/DefaultBtInteractive.h
  1945. * src/DefaultExtensionMessageFactory.cc
  1946. * src/DefaultExtensionMessageFactory.h
  1947. * src/ExtendedMessagingAware.h: Removed.
  1948. * src/ExtensionMessageFactory.h
  1949. * src/ExtensionMessageRegistry.h: Added.
  1950. * src/Makefile.am
  1951. * src/PeerInteractionCommand.cc
  1952. * test/DefaultExtensionMessageFactoryTest.cc
  1953. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1954. Fixed typo in log messages
  1955. * src/MSEHandshake.cc
  1956. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1957. Fixed the bug that prevents torrent download from finishing. The
  1958. bug doesn't reveal for all torrents. The torrents affected this
  1959. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  1960. of pieces.
  1961. * src/bitfield.h
  1962. * test/bitfieldTest.cc
  1963. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1964. Code cleanup
  1965. * src/PeerListProcessor.h
  1966. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1967. Removed RequestGroupAware
  1968. * src/AbstractCommand.cc
  1969. * src/AbstractCommand.h
  1970. * src/ActivePeerConnectionCommand.cc
  1971. * src/ActivePeerConnectionCommand.h
  1972. * src/DHTGetPeersCommand.cc
  1973. * src/DHTGetPeersCommand.h
  1974. * src/InitiatorMSEHandshakeCommand.cc
  1975. * src/InitiatorMSEHandshakeCommand.h
  1976. * src/Makefile.am
  1977. * src/PeerInitiateConnectionCommand.cc
  1978. * src/PeerInitiateConnectionCommand.h
  1979. * src/PeerInteractionCommand.cc
  1980. * src/PeerInteractionCommand.h
  1981. * src/RealtimeCommand.cc
  1982. * src/RealtimeCommand.h
  1983. * src/RequestGroupAware.cc: Removed
  1984. * src/RequestGroupAware.h: Removed
  1985. * src/SeedCheckCommand.cc
  1986. * src/SeedCheckCommand.h
  1987. * src/SleepCommand.cc
  1988. * src/TrackerWatcherCommand.cc
  1989. * src/TrackerWatcherCommand.h
  1990. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1991. Rewritten PeerListProcessor
  1992. * src/PeerListProcessor.h
  1993. * src/CompactPeerListProcessor.h: Removed
  1994. * src/CompactPeerListProcessor.cc: Removed
  1995. * src/DelegatingPeerListProcessor.cc: Removed.
  1996. * src/DefaultBtAnnounce.cc
  1997. * src/Makefile.am
  1998. * src/UTPexExtensionMessage.cc
  1999. * src/DefaultPeerListProcessor.h: Removed.
  2000. * src/DefaultPeerListProcessor.cc: Removed.
  2001. * src/DelegatingPeerListProcessor.h: Removed.
  2002. * test/Makefile.am
  2003. * test/PeerListProcessorTest.cc
  2004. * test/DefaultPeerListProcessorTest.cc: Removed.
  2005. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2006. Rewritten RequestGroupMan::calculateStat()
  2007. * src/RequestGroupMan.cc
  2008. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2009. Removed unnecessary virtual destructor for Request class.
  2010. * src/Request.cc
  2011. * src/Request.h
  2012. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2013. Avoid dynamic_pointer_cast.
  2014. * src/DHTGetPeersCommand.cc
  2015. * src/DHTGetPeersCommand.h
  2016. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2017. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  2018. BtEvent.
  2019. * src/AbstractBtEventListener.h: Removed.
  2020. * src/AbstractBtMessage.cc
  2021. * src/AbstractBtMessage.h
  2022. * src/BtAbortOutstandingRequestEvent.h
  2023. * src/BtCancelSendingPieceEvent.h
  2024. * src/BtChokedEvent.h: Removed.
  2025. * src/BtChokingEvent.h
  2026. * src/BtEvent.h: Removed
  2027. * src/BtEventListener.h: Removed.
  2028. * src/BtMessage.h
  2029. * src/BtPieceMessage.cc
  2030. * src/BtPieceMessage.h
  2031. * src/BtRequestMessage.cc
  2032. * src/BtRequestMessage.h
  2033. * src/DefaultBtMessageDispatcher.cc
  2034. * src/Makefile.am
  2035. * src/a2functional.h
  2036. * test/BtPieceMessageTest.cc
  2037. * test/BtRequestMessageTest.cc
  2038. * test/DefaultBtMessageDispatcherTest.cc
  2039. * test/MockBtMessage.h
  2040. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2041. Code cleanup
  2042. * src/RequestGroupMan.cc
  2043. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2044. Code cleanup
  2045. * src/DownloadCommand.cc
  2046. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2047. Fixed segmentation fault when GZipDecoder::decode() returns 0
  2048. byte.
  2049. * src/DownloadCommand.cc
  2050. * src/bitfield.h
  2051. * test/bitfieldTest.cc
  2052. Fixed the bug that causes infinite loop if broken web server
  2053. returns chunked response without last "0" chunk-size marker and
  2054. closes connection.
  2055. * src/DownloadCommand.cc
  2056. Instantiate properly configured HttpDownloadCommand for
  2057. non-resumable downlaods.
  2058. * src/HttpResponseCommand.cc
  2059. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2060. Rewritten array operation functions.
  2061. * src/BitfieldMan.cc
  2062. * src/array_fun.h
  2063. * test/array_funTest.cc
  2064. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2065. Removed unused variable 'query'
  2066. * src/Request.cc
  2067. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2068. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  2069. accidentally set to false in r1162.
  2070. * configure.ac
  2071. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2072. Code cleanup
  2073. * src/BNode.cc
  2074. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2075. Increase prefixLength for the bucket which doesn't own local node
  2076. ID when splitting bucket.
  2077. * src/DHTBucket.cc
  2078. * test/DHTBucketTest.cc
  2079. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2080. * Release 1.3.1
  2081. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2082. Bump up version number to 1.3.1
  2083. * configure.ac
  2084. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2085. Removed unused variable checkPoint. Also removed include directive
  2086. for TimeA2.h.
  2087. * src/SeedCheckCommand.h
  2088. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2089. Fixed the bug that upload limit exceeds the value specified in
  2090. --seed-ratio option depending on the timing of the execution of
  2091. SeedCheckCommand.
  2092. * src/SeedCheckCommand.cc
  2093. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2094. Fixed the bug that removed peer's session upload/download length
  2095. are counted twice in _cachedTransferStat before it is
  2096. re-calculated. This affected the calculation of shara ratio,
  2097. resulting aria2 wrongly determines that specified share ratio is
  2098. reached. Also fixed the typo in calculateStatFor function name.
  2099. * src/BtSetup.cc
  2100. * src/DefaultPeerStorage.cc
  2101. * src/ShareRatioSeedCriteria.h
  2102. * test/ShareRatioSeedCriteriaTest.cc
  2103. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2104. * Release 1.3.0
  2105. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2106. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  2107. Nynorsk translations. Thanks to all translators.
  2108. * po/es.po
  2109. * po/ja.po
  2110. * po/nn.po
  2111. * po/ru.po
  2112. * po/uk.po
  2113. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2114. Rewritten isInRange()
  2115. * src/DHTBucket.cc
  2116. * test/DHTBucketTest.cc
  2117. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2118. Fixed typo
  2119. * doc/aria2c.1.txt
  2120. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2121. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  2122. malloc/realloc is not used.
  2123. * src/configure.ac
  2124. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2125. BitfieldMan::getMissingIndexes family functions now takes unsigned
  2126. char* bitfield instead of stl container for efficiency.
  2127. PieceSelector::select now takes this
  2128. bitfield. RarestPieceSelector::select now also performs
  2129. efficiently for this change. bitfield namespace is introduced and
  2130. it has several helper functions to handle basic bitfield
  2131. operations such as test, count set bits, etc.
  2132. * src/BitfieldMan.cc
  2133. * src/BitfieldMan.h
  2134. * src/DefaultBtRequestFactory.cc
  2135. * src/DefaultPieceStorage.cc
  2136. * src/DefaultPieceStorage.h
  2137. * src/LongestSequencePieceSelector.cc
  2138. * src/LongestSequencePieceSelector.h
  2139. * src/Makefile.am
  2140. * src/Piece.cc
  2141. * src/Piece.h
  2142. * src/PieceSelector.h
  2143. * src/RarestPieceSelector.cc
  2144. * src/RarestPieceSelector.h
  2145. * src/Util.cc
  2146. * src/Util.h
  2147. * src/bitfield.h
  2148. * test/BitfieldManTest.cc
  2149. * test/LongestSequencePieceSelectorTest.cc
  2150. * test/Makefile.am
  2151. * test/RarestPieceSelectorTest.cc
  2152. * test/UtilTest.cc
  2153. * test/bitfieldTest.cc
  2154. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2155. Made accepted socket non-block.
  2156. * src/FtpNegotiationCommand.cc
  2157. * src/HttpListenCommand.cc
  2158. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2159. Guarded #ifdef HAVE_POSIX_FALLOCATE
  2160. * src/AbstractSingleDiskAdaptor.cc
  2161. * src/DefaultPieceStorage.cc
  2162. * src/DiskAdaptor.h
  2163. * src/DiskAdaptor.h
  2164. * src/MultiFileAllocationIterator.cc
  2165. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2166. Run
  2167. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  2168. in every 1 sec. The timeout of RequestSlot is 60s by default and
  2169. it doesn't need to be called every time when
  2170. DefaultBtInteractive::doInteractionProcessing() is called.
  2171. * src/DefaultBtInteractive.cc
  2172. * src/DefaultBtInteractive.h
  2173. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2174. Documented 'falloc' in man page.
  2175. * doc/aria2c.1.txt
  2176. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2177. Updated doc
  2178. * src/usage_text.h
  2179. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2180. Added 'falloc' parameter for --file-allocation option. 'falloc'
  2181. allocation mode uses posix_fallocate() system call to allocate
  2182. file on disk. If you are using newer file systems such as ext4
  2183. (with extents support), btrfs or xfs, 'falloc' is your best
  2184. choice. It allocates large(few GiB) files almost instantly. Don't
  2185. use 'falloc' with legacy file systems such as ext3 because it
  2186. takes almost same time as 'prealloc' and it blocks aria2 entirely
  2187. until allocation finishes. 'falloc' may not be available if your
  2188. system doesn't have posix_fallocate() system call.
  2189. * configure.ac
  2190. * src/AbstractDiskWriter.cc
  2191. * src/AbstractDiskWriter.h
  2192. * src/AbstractSingleDiskAdaptor.cc
  2193. * src/BinaryStream.h
  2194. * src/BtCheckIntegrityEntry.cc
  2195. * src/ByteArrayDiskWriter.h
  2196. * src/CheckIntegrityEntry.cc
  2197. * src/CheckIntegrityEntry.h
  2198. * src/DefaultPieceStorage.cc
  2199. * src/DiskAdaptor.cc
  2200. * src/DiskAdaptor.h
  2201. * src/DiskWriter.h
  2202. * src/FallocFileAllocationIterator.cc
  2203. * src/FallocFileAllocationIterator.h
  2204. * src/FileAllocationEntry.cc
  2205. * src/FileAllocationEntry.h
  2206. * src/Makefile.am
  2207. * src/MultiFileAllocationIterator.cc
  2208. * src/MultiFileAllocationIterator.h
  2209. * src/OptionHandlerFactory.cc
  2210. * src/RequestGroup.cc
  2211. * src/StreamCheckIntegrityEntry.cc
  2212. * src/prefs.cc
  2213. * src/prefs.h
  2214. * src/usage_text.h
  2215. * test/FallocFileAllocationIteratorTest.cc
  2216. * test/Makefile.am
  2217. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2218. Removed duplicate enableDirectIO() call.
  2219. * src/MultiFileAllocationIterator.cc
  2220. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2221. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  2222. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  2223. cost of std::rotate().
  2224. * src/RarestPieceSelector.cc
  2225. * src/RarestPieceSelector.h
  2226. * test/RarestPieceSelectorTest.cc
  2227. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2228. Updated usage doc for --bt-tracker-interval option.
  2229. * src/usage_text.h
  2230. * doc/aria2c.1.txt
  2231. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2232. Documented --bt-tracker-interval option in man page.
  2233. * doc/aria2c.1.txt
  2234. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2235. Added an option to specify the interval between tracker requests.
  2236. If non-zero value is specified, aria2 uses it and ignores the
  2237. interval value in the response of tracker. If zero is specified,
  2238. aria2 determines the inteval value based on the tarcker response
  2239. and download progress.
  2240. * src/DefaultBtAnnounce.cc
  2241. * src/DefaultBtAnnounce.h
  2242. * src/OptionHandlerFactory.cc
  2243. * src/RequestGroup.cc
  2244. * src/prefs.cc
  2245. * src/prefs.h
  2246. * src/usage_text.h
  2247. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2248. Added operator+=, operator-=, operator-
  2249. * src/TransferStat.cc
  2250. * src/TransferStat.h
  2251. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2252. Refactored RarestPieceSelector to reduce CPU load, especially for
  2253. addPieceStats.
  2254. * src/RarestPieceSelector.cc
  2255. * src/RarestPieceSelector.h
  2256. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2257. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  2258. getAllMissingBlockIndexes to reduce a call to
  2259. array_function_base::operator[].
  2260. * src/BitfieldMan.cc
  2261. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2262. Cached TransferStat/download speed to avoid to sum them up in each
  2263. call.
  2264. * src/DefaultPeerStorage.cc
  2265. * src/DefaultPeerStorage.h
  2266. * src/SegmentMan.cc
  2267. * src/SegmentMan.h
  2268. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2269. Typedefed cuid_t as int32_t in Command.h
  2270. * src/CUIDCounter.h
  2271. * src/Command.cc
  2272. * src/Command.h
  2273. * src/DownloadEngine.cc
  2274. * src/DownloadEngine.h
  2275. * src/PeerStat.h
  2276. * src/SegmentMan.cc
  2277. * src/SegmentMan.h
  2278. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2279. Reduced the number of calls to PeerStorage::calculateStat() and
  2280. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  2281. transfer rate.
  2282. * src/DefaultBtInteractive.cc
  2283. * src/DefaultBtMessageDispatcher.cc
  2284. * src/DefaultPeerStorage.cc
  2285. * src/DefaultPeerStorage.h
  2286. * src/DownloadCommand.cc
  2287. * src/DownloadEngine.cc
  2288. * src/PeerStorage.h
  2289. * src/SegmentMan.cc
  2290. * src/SegmentMan.h
  2291. * test/MockPeerStorage.h
  2292. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2293. Prepended _dir+"/" after joining path elements in torrent file.
  2294. * src/DefaultBtContext.cc
  2295. * test/DefaultBtContextTest.cc
  2296. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2297. Added missing IndexBtMessageValidator.h
  2298. * src/Makefile.am
  2299. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2300. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  2301. Chinese translations. Thank you for contributing our project.
  2302. * po/id.po
  2303. * po/it.po
  2304. * po/ru.po
  2305. * po/uk.po
  2306. * po/zh_CN.po
  2307. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2308. Updated README
  2309. * README
  2310. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2311. Bump up version number to 1.3.0
  2312. * configure.ac
  2313. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2314. Updated doc
  2315. * src/DefaultBtContext.h
  2316. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2317. Slice/joinPath for name of single torrent.
  2318. * src/DefaultBtContext.cc
  2319. * test/DefaultBtContextTest.cc
  2320. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2321. Updated man page: Documented --dry-run and --index-out
  2322. options. Changed the default value of --uri-selector and
  2323. --http-auth-challenge options. Removed --direct-file-mapping
  2324. option. Added example for --index-out
  2325. * doc/aria2c.1.txt
  2326. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2327. Updated TEXT_DRY_RUN
  2328. * src/usage_text.h
  2329. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2330. Changed the default value of --uri-selector option from 'inorder'
  2331. to 'feedback'
  2332. * src/OptionHandlerFactory.cc
  2333. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2334. Included current URI in exception message.
  2335. * src/AbstractCommand.cc
  2336. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2337. Renamed ServerStatURISelector as FeedbackURISelector.
  2338. * src/FeedbackURISelector.cc
  2339. * src/FeedbackURISelector.h
  2340. * src/Makefile.am
  2341. * src/RequestGroupMan.cc
  2342. * src/ServerStatURISelector.cc
  2343. * src/ServerStatURISelector.h
  2344. * test/FeedbackURISelectorTest.cc
  2345. * test/Makefile.am
  2346. * test/ServerStatURISelectorTest.cc
  2347. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2348. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  2349. all URIs are tested and their timeout is not reached.
  2350. * src/AdaptiveURISelector.cc
  2351. * src/AdaptiveURISelector.h
  2352. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2353. Changed the default value of --http-auth-challenge option to false.
  2354. * src/OptionHandlerFactory.cc
  2355. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2356. Reuse URIs when all unused URIs run out.
  2357. * src/OptionHandlerFactory.cc
  2358. * src/RequestGroup.cc
  2359. * src/prefs.cc
  2360. * src/prefs.h
  2361. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2362. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  2363. and BtRejectMessage are derived from RangeBtMessage class.
  2364. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  2365. derived from IndexBtMessage class. BtChokeMessage,
  2366. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  2367. BtNotInterestedMessage and BtUnchokeMessage are derived from
  2368. ZeroBtMessage class.
  2369. * src/AbstractBtMessage.cc
  2370. * src/AbstractBtMessage.h
  2371. * src/BtAllowedFastMessage.cc
  2372. * src/BtAllowedFastMessage.h
  2373. * src/BtAllowedFastMessageValidator.h: Removed
  2374. * src/BtBitfieldMessage.cc
  2375. * src/BtBitfieldMessage.h
  2376. * src/BtCancelMessage.cc
  2377. * src/BtCancelMessage.h
  2378. * src/BtCancelMessageValidator.h: Removed
  2379. * src/BtChokeMessage.cc
  2380. * src/BtChokeMessage.h
  2381. * src/BtExtendedMessage.cc
  2382. * src/BtExtendedMessage.h
  2383. * src/BtHandshakeMessage.cc
  2384. * src/BtHandshakeMessage.h
  2385. * src/BtHaveAllMessage.cc
  2386. * src/BtHaveAllMessage.h
  2387. * src/BtHaveMessage.cc
  2388. * src/BtHaveMessage.h
  2389. * src/BtHaveMessageValidator.h: Removed
  2390. * src/BtHaveNoneMessage.cc
  2391. * src/BtHaveNoneMessage.h
  2392. * src/BtInterestedMessage.cc
  2393. * src/BtInterestedMessage.h
  2394. * src/BtKeepAliveMessage.cc
  2395. * src/BtKeepAliveMessage.h
  2396. * src/BtNotInterestedMessage.cc
  2397. * src/BtNotInterestedMessage.h
  2398. * src/BtPieceMessage.cc
  2399. * src/BtPieceMessage.h
  2400. * src/BtPortMessage.cc
  2401. * src/BtPortMessage.h
  2402. * src/BtRejectMessage.cc
  2403. * src/BtRejectMessage.h
  2404. * src/BtRejectMessageValidator.h: Removed
  2405. * src/BtRequestMessage.cc
  2406. * src/BtRequestMessage.h
  2407. * src/BtRequestMessageValidator.h: Removed
  2408. * src/BtSuggestPieceMessage.cc
  2409. * src/BtSuggestPieceMessage.h
  2410. * src/BtSuggestPieceMessageValidator.h: Removed
  2411. * src/BtUnchokeMessage.cc
  2412. * src/BtUnchokeMessage.h
  2413. * src/DefaultBtMessageFactory.cc
  2414. * src/IndexBtMessage.cc
  2415. * src/IndexBtMessage.h
  2416. * src/IndexBtMessageValidator.h
  2417. * src/Makefile.am
  2418. * src/PeerMessageUtil.cc
  2419. * src/PeerMessageUtil.h
  2420. * src/RangeBtMessage.cc
  2421. * src/RangeBtMessage.h
  2422. * src/RangeBtMessageValidator.h
  2423. * src/SimpleBtMessage.cc
  2424. * src/SimpleBtMessage.h
  2425. * src/ZeroBtMessage.cc
  2426. * src/ZeroBtMessage.h
  2427. * test/BtRequestMessageTest.cc
  2428. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2429. Reverted usage_text.h to r1093 to avoid to lose translated
  2430. messages.
  2431. * src/usage_text.h
  2432. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2433. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  2434. declared as non-const previously is now const and defined in class
  2435. definition.
  2436. * src/AbstractBtMessage.cc
  2437. * src/AbstractBtMessage.h
  2438. * src/BtAllowedFastMessage.cc
  2439. * src/BtAllowedFastMessage.h
  2440. * src/BtBitfieldMessage.h
  2441. * src/BtCancelMessage.cc
  2442. * src/BtCancelMessage.h
  2443. * src/BtChokeMessage.cc
  2444. * src/BtChokeMessage.h
  2445. * src/BtExtendedMessage.cc
  2446. * src/BtExtendedMessage.h
  2447. * src/BtHandshakeMessage.cc
  2448. * src/BtHandshakeMessage.h
  2449. * src/BtHaveAllMessage.cc
  2450. * src/BtHaveAllMessage.h
  2451. * src/BtHaveMessage.cc
  2452. * src/BtHaveMessage.h
  2453. * src/BtHaveNoneMessage.cc
  2454. * src/BtHaveNoneMessage.h
  2455. * src/BtInterestedMessage.cc
  2456. * src/BtInterestedMessage.h
  2457. * src/BtKeepAliveMessage.cc
  2458. * src/BtKeepAliveMessage.h
  2459. * src/BtMessage.h
  2460. * src/BtNotInterestedMessage.cc
  2461. * src/BtNotInterestedMessage.h
  2462. * src/BtPieceMessage.h
  2463. * src/BtPortMessage.cc
  2464. * src/BtPortMessage.h
  2465. * src/BtRejectMessage.cc
  2466. * src/BtRejectMessage.h
  2467. * src/BtRequestMessage.cc
  2468. * src/BtRequestMessage.h
  2469. * src/BtSuggestPieceMessage.cc
  2470. * src/BtSuggestPieceMessage.h
  2471. * src/BtUnchokeMessage.cc
  2472. * src/BtUnchokeMessage.h
  2473. * src/SimpleBtMessage.cc
  2474. * src/SimpleBtMessage.h
  2475. * test/MockBtMessage.h
  2476. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2477. Use FileEntry::exists()
  2478. * src/MultiDiskAdaptor.cc
  2479. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2480. Added exists()
  2481. * src/FileEntry.cc
  2482. * src/FileEntry.h
  2483. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2484. Added missing prefix dir.
  2485. * src/download_helper.cc
  2486. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2487. Removed --direct-file-mapping option and CopyDiskAdaptor.
  2488. * src/CopyDiskAdaptor.cc: Removed
  2489. * src/CopyDiskAdaptor.h: Removed
  2490. * src/DefaultPieceStorage.cc
  2491. * src/Makefile.am
  2492. * src/OptionHandlerFactory.cc
  2493. * src/prefs.cc
  2494. * src/prefs.h
  2495. * src/usage_text.h
  2496. * test/CopyDiskAdaptorTest.cc: Removed
  2497. * test/Makefile.am
  2498. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2499. Rewritten isSameFileBeingDownloaded()
  2500. * src/RequestGroupMan.cc
  2501. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2502. Removed getName() from DownloadContext. getName() is declared in
  2503. BtContext.
  2504. * src/BtContext.h
  2505. * src/DownloadContext.h
  2506. * src/SingleFileDownloadContext.cc
  2507. * src/SingleFileDownloadContext.h
  2508. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  2509. in AbstractSingleDiskAdaptor.
  2510. * src/AbstractSingleDiskAdaptor.h
  2511. * src/DiskAdaptor.h
  2512. * src/MultiDiskAdaptor.h
  2513. * src/RequestGroup.cc
  2514. Removed setTopDir() and getTopDir() and getTopDirPath() from
  2515. MultiDiskAdaptor.
  2516. * src/DefaultPieceStorage.cc
  2517. * src/MultiDiskAdaptor.cc
  2518. * src/MultiDiskAdaptor.h
  2519. * test/MultiDiskAdaptorTest.cc
  2520. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2521. FileEntry::getPath() contains store(top level) directory to
  2522. simplify path handling operation. In the previous implementation,
  2523. store directory is concatenated to FileEntry::getPath() in
  2524. DownloadContext.
  2525. * src/BtDependency.cc
  2526. * src/BtPostDownloadHandler.cc
  2527. * src/CopyDiskAdaptor.cc
  2528. * src/DefaultBtContext.cc
  2529. * src/DirectDiskAdaptor.cc
  2530. * src/FileEntry.cc
  2531. * src/FileEntry.h
  2532. * src/FtpNegotiationCommand.cc
  2533. * src/HttpResponse.cc
  2534. * src/HttpResponseCommand.cc
  2535. * src/Metalink2RequestGroup.cc
  2536. * src/MultiDiskAdaptor.cc
  2537. * src/MultiDiskAdaptor.h
  2538. * src/MultiFileAllocationIterator.cc
  2539. * src/RequestGroup.cc
  2540. * src/SingleFileDownloadContext.cc
  2541. * src/SingleFileDownloadContext.h
  2542. * src/download_helper.cc
  2543. * test/BtDependencyTest.cc
  2544. * test/CopyDiskAdaptorTest.cc
  2545. * test/DefaultBtContextTest.cc
  2546. * test/DefaultBtProgressInfoFileTest.cc
  2547. * test/DirectDiskAdaptorTest.cc
  2548. * test/DownloadHelperTest.cc
  2549. * test/FileEntryTest.cc
  2550. * test/MultiDiskAdaptorTest.cc
  2551. * test/MultiFileAllocationIteratorTest.cc
  2552. * test/RequestGroupTest.cc
  2553. * test/SingleFileDownloadContextTest.cc
  2554. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2555. Fixed compiler warning
  2556. * src/download_helper.cc
  2557. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2558. Throw exception if same infohash torrent is now downloading.
  2559. * src/RequestGroup.cc
  2560. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2561. Added --dry-run option. In this mode, aria2 just checks whether
  2562. the remote file is available and doesn't download data. This
  2563. option has effect on HTTP/FTP downloads and BitTorrent downloads
  2564. are canceled in this mode.
  2565. * src/FtpNegotiationCommand.cc
  2566. * src/HttpResponseCommand.cc
  2567. * src/HttpResponseCommand.h
  2568. * src/OptionHandlerFactory.cc
  2569. * src/RequestGroup.cc
  2570. * src/RequestGroupMan.cc
  2571. * src/prefs.cc
  2572. * src/prefs.h
  2573. * src/usage_text.h
  2574. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2575. Fixed compiler waring
  2576. * test/UriListParserTest.cc
  2577. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2578. Parse options in -i list using OptionParser.
  2579. * src/UriListParser.cc
  2580. * src/UriListParser.h
  2581. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2582. Don't reset URI in retry to avoid additional round trips because
  2583. of redirects.
  2584. * src/AbstractCommand.cc
  2585. * src/OptionHandlerFactory.cc
  2586. * src/prefs.cc
  2587. * src/prefs.h
  2588. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2589. Declared hide() in OptionHandler.
  2590. * src/NameMatchOptionHandler.h
  2591. * src/OptionHandler.h
  2592. * src/OptionHandlerImpl.h
  2593. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2594. Updated doc
  2595. * src/Peer.h
  2596. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2597. Added log message in setStatusInternal()
  2598. * src/ServerStat.cc
  2599. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2600. Call ServerStat::setError() in AbstractCommand::onAbort() to
  2601. effectively exclude failed server.
  2602. * src/AbstractCommand.cc
  2603. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2604. Added --index-out option to specify each file path for torrent.
  2605. Here index shown in --show-files option is used to specify which
  2606. file path should be altered. For example, to change the file path
  2607. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  2608. option multiple times: --index-out=1=aria2.tar.bz2
  2609. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  2610. available. This option can be specified in -i list.
  2611. * src/DefaultBtContext.cc
  2612. * src/DefaultBtContext.h
  2613. * src/MultiDiskAdaptor.cc
  2614. * src/MultiDiskAdaptor.h
  2615. * src/MultiFileAllocationIterator.cc
  2616. * src/OptionHandlerFactory.cc
  2617. * src/OptionHandlerImpl.h
  2618. * src/Util.cc
  2619. * src/Util.h
  2620. * src/download_helper.cc
  2621. * src/prefs.cc
  2622. * src/prefs.h
  2623. * src/usage_text.h
  2624. * test/DefaultBtContextTest.cc
  2625. * test/MultiDiskAdaptorTest.cc
  2626. * test/MultiFileAllocationIteratorTest.cc
  2627. * test/UtilTest.cc
  2628. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2629. Use Util::pathJoin()
  2630. * src/MetalinkParserController.cc
  2631. * test/test.xml
  2632. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2633. Use Util::pathJoin()
  2634. * src/DefaultBtContext.cc
  2635. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2636. Added Util::pathJoin()
  2637. * src/Util.h
  2638. * test/UtilTest.cc
  2639. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2640. Applied basename function to remove directory element in
  2641. content-disposition value.
  2642. Return empty string if content-disposition value is ".." or ".".
  2643. * src/Util.cc
  2644. * test/UtilTest.cc
  2645. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2646. Added --max-overall-download-limit in man page.
  2647. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  2648. * doc/aria2c.1.txt
  2649. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2650. Added --max-overall-download-limit option. Now --max-upload-limit
  2651. option is not ignored when --max-overall-upload-limit option has
  2652. non-zero value. aria2 checks download(upload) speed in the order:
  2653. first checks overall speed limit and if it is not exceeded, then
  2654. checks speed limit per download. Thus you can specify both
  2655. value. For example, set --max-overall-download-limit=1M and
  2656. --max-download-limit=500K to prevent from one download from eating
  2657. all overall speed limit.
  2658. * src/DefaultBtInteractive.cc
  2659. * src/DefaultBtInteractive.h
  2660. * src/DefaultBtMessageDispatcher.cc
  2661. * src/DefaultBtMessageDispatcher.h
  2662. * src/DownloadCommand.cc
  2663. * src/DownloadCommand.h
  2664. * src/FtpNegotiationCommand.cc
  2665. * src/HttpResponseCommand.cc
  2666. * src/OptionHandlerFactory.cc
  2667. * src/PeerInteractionCommand.cc
  2668. * src/RequestGroup.cc
  2669. * src/RequestGroup.h
  2670. * src/RequestGroupMan.cc
  2671. * src/RequestGroupMan.h
  2672. * src/prefs.cc
  2673. * src/prefs.h
  2674. * src/usage_text.h
  2675. * test/DefaultBtMessageDispatcherTest.cc
  2676. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2677. Documented select-file option in Input File section.
  2678. Documented --http-auth-challenge option.
  2679. * doc/aria2c.1.txt
  2680. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2681. Now select-file can be specified in the uri list(-i list).
  2682. * src/BtContext.cc
  2683. * src/BtContext.h
  2684. * src/RequestGroup.cc
  2685. * src/Sequence.h
  2686. * src/download_helper.cc
  2687. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2688. Made the upper value of --max-concurrent-downloads options unlimited.
  2689. * src/OptionHandlerFactory.cc
  2690. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2691. Fixed the bug that disk writer is not created even if it shares
  2692. same piece with the preceding file if the length of previous file
  2693. is 0.
  2694. * src/MultiDiskAdaptor.cc
  2695. * test/MultiDiskAdaptorTest.cc
  2696. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2697. In BitTorrent, Open files in read-only mode for hash check. After
  2698. that, re-open file in read/write mode only when the download is
  2699. not finished.
  2700. * src/AbstractDiskWriter.cc
  2701. * src/AbstractDiskWriter.h
  2702. * src/AbstractSingleDiskAdaptor.cc
  2703. * src/AbstractSingleDiskAdaptor.h
  2704. * src/BtCheckIntegrityEntry.cc
  2705. * src/DiskAdaptor.h
  2706. * src/DiskWriter.h
  2707. * src/MultiDiskAdaptor.cc
  2708. * src/MultiDiskAdaptor.h
  2709. * src/RequestGroup.cc
  2710. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2711. Added --http-auth-challenge option. If it is set to true(by
  2712. default), aria2 sends HTTP authorization header only when it is
  2713. requested by the server. If false is set, then authorization
  2714. header is always sent to the server. This is useful for servers
  2715. that don't respond 401 code when authentication is required.
  2716. There is an exception: if username and password are embedded in
  2717. URI, authorization header is always sent to the server regardless
  2718. of this option.
  2719. * src/AuthConfigFactory.cc
  2720. * src/HttpSkipResponseCommand.cc
  2721. * src/OptionHandlerFactory.cc
  2722. * src/prefs.cc
  2723. * src/prefs.h
  2724. * src/usage_text.h
  2725. * test/AuthConfigFactoryTest.cc
  2726. * test/HttpRequestTest.cc
  2727. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2728. * Release 1.2.0
  2729. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2730. Updated Spanish, Ukrainian, Russian and Japanese translations.
  2731. Thanks to all translators.
  2732. * po/es.po
  2733. * po/ja.po
  2734. * po/ru.po
  2735. * po/uk.po
  2736. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2737. Call deleteSocketForReadCheck() before socket is closed.
  2738. * src/HttpListenCommand.cc
  2739. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2740. Defined virtual destructor for BObject.
  2741. * src/bencode.h
  2742. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2743. Rewritten BDE to make it efficient.
  2744. * src/bencode.cc
  2745. * src/bencode.h
  2746. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2747. Removed function throw list.
  2748. * src/bencode.cc
  2749. * src/bencode.h
  2750. * test/BencodeTest.cc
  2751. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2752. Enclosed all URLs in double quotes in command-line examples.
  2753. * doc/aria2c.1.txt
  2754. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2755. Updated reference/see also section.
  2756. * README
  2757. * doc/aria2c.1.txt
  2758. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2759. Reorganized man page based on man man-pages.
  2760. * doc/aria2c.1.txt
  2761. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2762. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  2763. because same documents are available in man page. Added
  2764. References section.
  2765. * README
  2766. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2767. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  2768. PERFORMANCE PROFILE section.
  2769. * doc/aria2c.1.txt
  2770. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2771. Rewritten the section for configuration file.
  2772. * README
  2773. * doc/aria2c.1.txt
  2774. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2775. Fixed the segmentation fault during execution of choking algorithm
  2776. in leecher state because of broken compare operator
  2777. implementation.
  2778. * src/BtLeecherStateChoke.cc
  2779. * src/BtLeecherStateChoke.h
  2780. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2781. Open file in binary mode.
  2782. * src/CookieStorage.cc
  2783. * src/DHTSetup.cc
  2784. * src/DHTUtil.cc
  2785. * src/Netrc.cc
  2786. * src/NsCookieParser.cc
  2787. * src/ProtocolDetector.cc
  2788. * src/RequestGroupMan.cc
  2789. * src/Signature.cc
  2790. * src/bencode.cc
  2791. * src/download_helper.cc
  2792. * src/option_processing.cc
  2793. * test/CookieParserTest.cc
  2794. * test/DefaultBtProgressInfoFileTest.cc
  2795. * test/FileTest.cc
  2796. * test/GZipDecoderTest.cc
  2797. * test/RequestGroupManTest.cc
  2798. * test/SignatureTest.cc
  2799. * test/SingleFileAllocationIteratorTest.cc
  2800. * test/UriListParserTest.cc
  2801. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2802. Removed operator[] because it is ambiguous with built-in []
  2803. operator.
  2804. * src/array_fun.h
  2805. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2806. Fixed compile error
  2807. * src/OptionParser.cc
  2808. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2809. Added missing call to arrayWrapperConst
  2810. * test/array_funTest.cc
  2811. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2812. Use array_wrapper instead of array_ptr.
  2813. * src/DHTRoutingTableDeserializer.cc
  2814. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2815. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  2816. * src/array_fun.h
  2817. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2818. Added array_wrapper template.
  2819. * src/array_fun.h
  2820. * test/array_funTest.cc
  2821. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2822. Use operator T* of array_ptr.
  2823. * src/OptionParser.cc
  2824. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2825. Use localhost instead of 127.0.0.1
  2826. * test/FtpConnectionTest.cc
  2827. * test/MSEHandshakeTest.cc
  2828. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2829. Added operator T*
  2830. * src/array_fun.h
  2831. * test/array_funTest.cc
  2832. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2833. Use dynamically allocated char array to detect memory access
  2834. violation.
  2835. * src/DHTRoutingTableDeserializer.cc
  2836. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2837. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  2838. defined.
  2839. * src/PeerMessageUtil.cc
  2840. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2841. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  2842. * configure.ac
  2843. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2844. Added a check to see struct sockaddr_in has sin_len member.
  2845. * configure.ac
  2846. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2847. Fixed buffer overrun.
  2848. * src/DHTRoutingTableDeserializer.cc
  2849. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2850. Added LL for long long int constant.
  2851. * test/FtpConnectionTest.cc
  2852. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2853. Casted to unsigned int to suppress compiler warning on netbsd.
  2854. * src/BtRuntime.h
  2855. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2856. Assign the value of tv.tv_sec to time_t timesec instead of giving
  2857. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  2858. type time_t.
  2859. * src/SimpleLogger.cc
  2860. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2861. Added test for FtpConnection::receiveSizeResponse().
  2862. * test/FtpConnectionTest.cc
  2863. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2864. Fix epoll error on the old kernel 2.6.8 or ealier.
  2865. * src/EpollEventPoll.cc
  2866. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2867. Use Util::parseLLInt instead of sscanf for portability. The
  2868. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  2869. * src/FtpConnection.cc
  2870. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2871. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  2872. block. It should not filter anything.
  2873. * src/BitfieldMan.cc
  2874. * src/ConsoleStatCalc.cc
  2875. * test/BitfieldManTest.cc
  2876. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2877. Fixed the bug that the boolean options that don't take arguments
  2878. don't work.
  2879. * src/OptionHandlerImpl.h
  2880. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2881. Fixed broken selected file BitTorrent download.
  2882. * src/MultiDiskAdaptor.cc
  2883. * test/MultiDiskAdaptorTest.cc
  2884. * test/MultiFileAllocationIteratorTest.cc
  2885. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2886. Fixed #define guard for EpollEventPoll
  2887. * src/EpollEventPoll.h
  2888. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2889. Wait 2 seconds. 1 second is sometimes not enough.
  2890. * test/TimeSeedCriteriaTest.cc
  2891. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2892. Use localhost instead of 127.0.0.1.
  2893. * test/DHTConnectionImplTest.cc
  2894. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2895. Suppressed compiler warning.
  2896. * src/AdaptiveURISelector.cc
  2897. * src/DefaultPieceStorage.cc
  2898. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2899. Defined virtual destructor.
  2900. * src/MetalinkParserState.h
  2901. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2902. Give NULL for second argument of getaddrinfo instead of "0".
  2903. * src/NameResolver.cc
  2904. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2905. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  2906. included strptime doesn't parse data for this format.
  2907. * src/FtpConnection.cc
  2908. * test/FtpConnectionTest.cc
  2909. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2910. Removed tests giving -1 for unsigned argument.
  2911. * test/SingleFileDownloadContextTest.cc
  2912. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2913. Don't use sha256 in tests because it might not be supported by the
  2914. SSL library.
  2915. * test/MetalinkProcessorTest.cc
  2916. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2917. Removed tests giving -1 for unsigned argument.
  2918. * test/AlphaNumberDecoratorTest
  2919. * test/BitfieldManTest.cc
  2920. * test/DefaultBtContextTest.cc
  2921. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2922. Fixed compile error without libcares when epoll is available.
  2923. * src/EpollEventPoll.cc
  2924. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2925. Included fstream instead of iostream.
  2926. * test/SignatureTest.cc
  2927. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2928. Removed #include <algorithm>
  2929. * test/RequestGroupTest.cc
  2930. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2931. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  2932. using RequestGroup::extractURIResult().
  2933. * src/AdaptiveURISelector.cc
  2934. * src/RequestGroup.cc
  2935. * src/RequestGroup.h
  2936. * test/RequestGroupTest.cc
  2937. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2938. Added tests for array_ptr.
  2939. * test/array_funTest.cc
  2940. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2941. Don't send ip parameter to a tracker if ip parameter is empty
  2942. string.
  2943. * src/DefaultBtAnnounce.cc
  2944. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2945. Adjusted line feed.
  2946. * src/version_usage.cc
  2947. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2948. Print tags, possible values when OptionHandlerException is caught.
  2949. * src/option_processing.cc
  2950. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2951. Changed the message for FatalException.
  2952. * src/OptionParser.cc
  2953. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2954. Documented --bt-external-ip option in man page. Updated man pages
  2955. for --proxy-method option.
  2956. * doc/aria2c.1.txt
  2957. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2958. Use GET method for FTP via HTTP proxy.
  2959. * src/FtpInitiateConnectionCommand.cc
  2960. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2961. Changed the default value of --proxy-method option from 'tunnel'
  2962. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  2963. option.
  2964. * src/AbstractCommand.cc
  2965. * src/AbstractCommand.h
  2966. * src/FtpInitiateConnectionCommand.cc
  2967. * src/HttpDownloadCommand.cc
  2968. * src/HttpInitiateConnectionCommand.cc
  2969. * src/HttpInitiateConnectionCommand.h
  2970. * src/OptionHandlerFactory.cc
  2971. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2972. Initialized _logger
  2973. * src/SelectEventPoll.cc
  2974. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2975. Defined a copy constructor for the same type.
  2976. * src/SharedHandle.h
  2977. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2978. Added OptionParser::parseArg() which internally uses getopt_long
  2979. to parse command-line options. All command-line options are now
  2980. configured by OptionHandler. No manual editing of struct option*
  2981. is required any more.
  2982. * src/NameMatchOptionHandler.h
  2983. * src/OptionHandler.h
  2984. * src/OptionHandlerFactory.cc
  2985. * src/OptionHandlerImpl.h
  2986. * src/OptionParser.cc
  2987. * src/OptionParser.h
  2988. * src/array_fun.h
  2989. * src/main.cc
  2990. * src/option_processing.cc
  2991. * test/OptionHandlerTest.cc
  2992. * test/OptionParserTest.cc
  2993. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2994. Fixed configure error with --disable-epoll
  2995. * configure.ac
  2996. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2997. Fixed compile error when HAVE_EPOLL is not defined.
  2998. Fixed linker error on bigendian systems.
  2999. * src/SocketCore.cc
  3000. * src/SocketCore.h
  3001. * test/DefaultBtProgressInfoFileTest.cc
  3002. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3003. Added --bt-external-ip option. You can specify the external IP
  3004. address to report to a BitTorrent tracker. Although this function
  3005. is named 'external', it can accept any kind of IP addresses.
  3006. * src/DefaultBtAnnounce.cc
  3007. * src/OptionHandlerFactory.cc
  3008. * src/option_processing.cc
  3009. * src/prefs.cc
  3010. * src/prefs.h
  3011. * src/usage_text.h
  3012. * test/DefaultBtAnnounceTest.cc
  3013. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3014. Extracted the algorithm to find the longest incremental sequence
  3015. as max_sequence template.
  3016. * src/LongestSequencePieceSelector.cc
  3017. * src/a2algo.h
  3018. * test/Makefile.am
  3019. * test/a2algoTest.cc
  3020. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3021. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  3022. * src/usage_text.h
  3023. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3024. Updated doc for --uri-selector, --http-server-listen-port and
  3025. --enable-http-server option. Documented --event-poll option.
  3026. * doc/aria2c.1.txt
  3027. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3028. Updated doc for --enable-http-server.
  3029. * src/usage_text.h
  3030. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3031. Documented --http-server-listen-port and --enable-http-server in
  3032. man page.
  3033. * doc/aria2c.1.txt
  3034. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3035. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  3036. translations. Thanks to all translators.
  3037. * po/es.po
  3038. * po/id.po
  3039. * po/it.po
  3040. * po/ru.po
  3041. * po/uk.po
  3042. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3043. Bump up version number to 1.2.0
  3044. * configure.ac
  3045. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3046. BtContext::getAnnounceTiers() now returns const reference.
  3047. * src/BtContext.h
  3048. * src/DefaultBtContext.cc
  3049. * src/DefaultBtContext.h
  3050. * test/MockBtContext.h
  3051. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3052. Change the number of retries for tracker request based on the
  3053. number of available tracker in a torrent file.
  3054. * src/TrackerWatcherCommand.cc
  3055. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3056. Added _maxTries property to RequestGroup and assign the option
  3057. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  3058. RequestGroup::getMaxTries() instead of
  3059. Option::getAsInt(PREF_MAX_TRIES).
  3060. * src/AbstractCommand.cc
  3061. * src/RequestGroup.cc
  3062. * src/RequestGroup.h
  3063. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3064. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  3065. Mandriva. I modified the patch: make RequestGroup have the
  3066. timeout value and AdaptiveURISelector directly modifies that
  3067. value.
  3068. * src/AbstractCommand.cc
  3069. * src/AdaptiveURISelector.cc
  3070. * src/AdaptiveURISelector.h
  3071. * src/FtpNegotiationCommand.cc
  3072. * src/RequestGroup.cc
  3073. * src/RequestGroup.h
  3074. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3075. Fixed compiler warning
  3076. * test/IteratableChecksumValidatorTest.cc
  3077. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3078. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  3079. integrated downloads. This PieceSelector subclass finds the
  3080. longest continuous sequence in the available missing pieces and
  3081. selects the last index of such sequence. This makes HTTP/FTP
  3082. connections less interrupted by the pieces obtained by BitTorrent
  3083. peers.
  3084. * src/DefaultPieceStorage.cc
  3085. * src/DefaultPieceStorage.h
  3086. * src/LongestSequencePieceSelector.cc
  3087. * src/LongestSequencePieceSelector.h
  3088. * src/Makefile.am
  3089. * src/PieceSelector.h
  3090. * src/RarestPieceSelector.h
  3091. * src/RequestGroup.cc
  3092. * test/BtDependencyTest.cc
  3093. * test/DefaultPieceStorageTest.cc
  3094. * test/IteratableChecksumValidatorTest.cc
  3095. * test/LongestSequencePieceSelectorTest.cc
  3096. * test/Makefile.am
  3097. * test/SegmentManTest.cc
  3098. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3099. Fixed the bug that the average speed is wrong in
  3100. http/ftp/BitTorrent integrated download. Only the download bytes
  3101. in BitTorrent were considered.
  3102. * src/RequestGroup.cc
  3103. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3104. Choose port for BitTorrent/DHT randomly from the specified range.
  3105. * src/DHTConnectionImpl.cc
  3106. * src/PeerListenCommand.cc
  3107. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3108. Send HTTP Authorization header only if it is requested by the
  3109. server(response 401). There are some exceptions. The authorization
  3110. header for proxy is always sent if it is available without request
  3111. by the server. If username/password is specified in the URI, it
  3112. is immediately sent to the server without request by the server.
  3113. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  3114. SharedHandle<AuthConfig>().
  3115. NetrcAuthResolver::resolveAuthConfig() returns
  3116. SharedHandle<AuthConfig>() if no AuthConfig is available.
  3117. * src/AbstractAuthResolver.cc
  3118. * src/AbstractProxyRequestCommand.cc
  3119. * src/AuthConfigFactory.cc
  3120. * src/AuthConfigFactory.h
  3121. * src/HttpConnection.cc
  3122. * src/HttpRequest.cc
  3123. * src/HttpRequest.h
  3124. * src/HttpResponse.cc
  3125. * src/HttpResponseCommand.cc
  3126. * src/HttpSkipResponseCommand.cc
  3127. * test/AuthConfigFactoryTest.cc
  3128. * test/HttpRequestTest.cc
  3129. * test/HttpResponseTest.cc
  3130. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3131. Remove leading "--" from help keyword and a substring after "="
  3132. from help keyword, so that one can query options by '-h--max-' or
  3133. '-hmax-peers=10'.
  3134. * src/option_processing.cc
  3135. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3136. Rewritten PStringVisitor and its implementation.
  3137. * src/PStringBuildVisitor.cc
  3138. * src/PStringBuildVisitor.h
  3139. * src/PStringDatum.h
  3140. * src/PStringNumLoop.h
  3141. * src/PStringSegment.cc
  3142. * src/PStringSegment.h
  3143. * src/PStringSelect.h
  3144. * src/PStringVisitor.h
  3145. * src/download_helper.cc
  3146. * test/PStringBuildVisitorTest.cc
  3147. * test/ParameterizedStringParserTest.cc
  3148. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3149. Persist connection between the built-in HTTP server and a client
  3150. if a client supports keep-alive. Fixed the bug that aria2 exits
  3151. when the HTTP server receives EOF from a client.
  3152. * src/HttpServer.cc
  3153. * src/HttpServer.h
  3154. * src/HttpServerCommand.cc
  3155. * src/HttpServerCommand.h
  3156. * src/HttpServerResponseCommand.cc
  3157. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3158. Added experimental built-in HTTP server. Currently, when a client
  3159. accesses to the server, it responds with the current download
  3160. progress. By default, it is disabled. To enable the server, give
  3161. --enable-http-server option. To change the default port number
  3162. for the server to listen to, use --http-server-listen-port option.
  3163. The response HTML is very simple and refreshes it self each 1
  3164. second. Because of this refresh, you see flicker in normal web
  3165. browser such as Firefox. I recommend to use console-based browser
  3166. such as elinks, w3m. To connect to the server, run 'elinks
  3167. http://localhost:6800/' while running aria2. Please replace port
  3168. number '6800'(which is default) with your preference.
  3169. * src/DownloadEngineFactory.cc
  3170. * src/HttpHeader.cc
  3171. * src/HttpHeader.h
  3172. * src/HttpHeaderProcessor.cc
  3173. * src/HttpHeaderProcessor.h
  3174. * src/HttpListenCommand.cc
  3175. * src/HttpListenCommand.h
  3176. * src/HttpServer.cc
  3177. * src/HttpServer.h
  3178. * src/HttpServerCommand.cc
  3179. * src/HttpServerCommand.h
  3180. * src/HttpServerResponseCommand.cc
  3181. * src/HttpServerResponseCommand.h
  3182. * src/Makefile.am
  3183. * src/OptionHandlerFactory.cc
  3184. * src/Util.cc
  3185. * src/Util.h
  3186. * src/help_tags.h
  3187. * src/option_processing.cc
  3188. * src/prefs.cc
  3189. * src/prefs.h
  3190. * src/usage_text.h
  3191. * test/HttpHeaderProcessorTest.cc
  3192. * test/UtilTest.cc
  3193. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3194. Removed.
  3195. * src/CheckIntegrityMan.cc
  3196. * src/FileAllocationMan.cc
  3197. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3198. Made (piece) hash check sequential for each RequestGroup because
  3199. simultaneous hash check is slower than sequential execution.
  3200. * src/CheckIntegrityCommand.cc
  3201. * src/CheckIntegrityDispatcherCommand.cc
  3202. * src/CheckIntegrityDispatcherCommand.h
  3203. * src/CheckIntegrityMan.h
  3204. * src/ConsoleStatCalc.cc
  3205. * src/DownloadCommand.cc
  3206. * src/DownloadEngine.cc
  3207. * src/DownloadEngine.h
  3208. * src/DownloadEngineFactory.cc
  3209. * src/Makefile.am
  3210. * src/Makefile.in
  3211. * src/RequestGroup.cc
  3212. * src/StatCalc.h
  3213. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3214. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  3215. SequentialDispatcherCommand.
  3216. * src/FileAllocationDispatcherCommand.cc
  3217. * src/SequentialDispatcherCommand.h
  3218. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3219. Rewritten FileAllocationDispatcherCommand using brand new
  3220. SequentialDispatcherCommand.
  3221. * src/DownloadEngineFactory.cc
  3222. * src/FileAllocationCommand.cc
  3223. * src/FileAllocationDispatcherCommand.cc
  3224. * src/FileAllocationDispatcherCommand.h
  3225. * src/Makefile.am
  3226. * src/SequentialDispatcherCommand.h
  3227. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3228. Replaced FileAllocationMan with
  3229. SequentialPicker<FileAllocationEntry>.
  3230. * src/BtCheckIntegrityEntry.cc
  3231. * src/ConsoleStatCalc.cc
  3232. * src/DownloadEngine.cc
  3233. * src/DownloadEngine.h
  3234. * src/DownloadEngineFactory.cc
  3235. * src/FileAllocationCommand.cc
  3236. * src/FileAllocationDispatcherCommand.cc
  3237. * src/FileAllocationMan.h
  3238. * src/Makefile.am
  3239. * src/SequentialPicker.h
  3240. * src/StatCalc.h
  3241. * src/StreamCheckIntegrityEntry.cc
  3242. * test/Makefile.am
  3243. * test/SequentialPickerTest.cc
  3244. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3245. Added doc for adaptive URI selector.
  3246. * doc/aria2c.1.txt
  3247. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3248. Added doc for adaptive URI selector.
  3249. * src/usage_text.h
  3250. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3251. Added doc for --bt-max-peers option.
  3252. * doc/aria2c.1.txt
  3253. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3254. Added doc for --bt-hash-check-seed option.
  3255. * doc/aria2c.1.txt
  3256. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3257. Documented exit codes.
  3258. * doc/aria2c.1.txt
  3259. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3260. Added --bt-max-peers option to specify the maximum number of peers
  3261. per torrent. 0 means unlimited number of peers.
  3262. * src/ActivePeerConnectionCommand.cc
  3263. * src/BtRuntime.h
  3264. * src/DefaultPeerStorage.cc
  3265. * src/DefaultPeerStorage.h
  3266. * src/OptionHandlerFactory.cc
  3267. * src/RequestGroup.cc
  3268. * src/option_processing.cc
  3269. * src/prefs.cc
  3270. * src/prefs.h
  3271. * src/usage_text.h
  3272. * test/DefaultPeerStorageTest.cc
  3273. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3274. Added --bt-hash-check-seed option. If true is given to this
  3275. option, after hash check using --check-integrity option and file
  3276. is complete, continue to seed file. If you want to check file and
  3277. download it only when it is damaged or incomplete, set this option
  3278. to false. This option has effect only on BitTorrent download.
  3279. The default value is true(This is the same behavior with the
  3280. previous release).
  3281. * src/BtCheckIntegrityEntry.cc
  3282. * src/OptionHandlerFactory.cc
  3283. * src/option_processing.cc
  3284. * src/prefs.cc
  3285. * src/prefs.h
  3286. * src/usage_text.h
  3287. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3288. Updated copyright year.
  3289. * src/version_usage.cc
  3290. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3291. Rewritten the usage text for --bt-request-peer-speed-limit option.
  3292. * doc/aria2c.1.txt
  3293. * src/usage_text.h
  3294. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3295. Made the max value of split option unlimited.
  3296. * doc/aria2c.1.txt
  3297. * src/OptionHandlerFactory.cc
  3298. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3299. Fixed compile warning/error.
  3300. * src/DownloadResult.h
  3301. * src/HttpDownloadCommand.cc
  3302. * src/ServerStat.cc
  3303. * test/RequestGroupTest.cc
  3304. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3305. Added --event-poll option to select the method for polling events.
  3306. The available methods are "select" and "epoll". "epoll" is
  3307. available on Linux only. The earlier release has the compile
  3308. option to choose from these methods.
  3309. * configure.ac
  3310. * src/RequestGroupMan.cc
  3311. * src/OptionHandlerFactory.cc
  3312. * src/EpollEventPoll.h
  3313. * src/StreamFileAllocationEntry.cc
  3314. * src/a2io.h
  3315. * src/SelectEventPoll.h
  3316. * src/option_processing.cc
  3317. * src/prefs.h
  3318. * src/EpollEventPoll.cc
  3319. * src/EventPoll.h
  3320. * src/SocketCore.h
  3321. * src/Makefile.am
  3322. * src/main.cc
  3323. * src/DownloadEngine.h
  3324. * src/SelectEventPoll.cc
  3325. * src/DownloadEngine.cc
  3326. * src/SocketCore.cc
  3327. * src/DownloadEngineFactory.cc
  3328. * src/Makefile.in
  3329. * src/prefs.cc
  3330. * src/usage_text.h
  3331. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3332. Included RecoverableException.h from main.cc
  3333. * src/main.cc
  3334. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3335. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  3336. now returns last error encountered in the HTTP/FTP downloads as a
  3337. exit status value. If all downloads finished successfully, aria2
  3338. returns 0. The error code is defined in src/DownloadResult.h.
  3339. The error occurred in the download currently in progress is not
  3340. reported as a last error. If no error has encountered but there
  3341. are in progress or waiting downloads, aria2 returns 7.
  3342. * src/AbstractCommand.cc
  3343. * src/DlAbortEx.h
  3344. * src/DlRetryEx.h
  3345. * src/DownloadCommand.cc
  3346. * src/DownloadFailureException.h
  3347. * src/DownloadResult.h
  3348. * src/FtpNegotiationCommand.cc
  3349. * src/HttpSkipResponseCommand.cc
  3350. * src/Makefile.am
  3351. * src/MultiUrlRequestInfo.cc
  3352. * src/MultiUrlRequestInfo.h
  3353. * src/RecoverableException.h
  3354. * src/RequestGroup.cc
  3355. * src/RequestGroup.h
  3356. * src/RequestGroupMan.cc
  3357. * src/RequestGroupMan.h
  3358. * src/URIResult.cc
  3359. * src/URIResult.h
  3360. * src/main.cc
  3361. * src/option_processing.cc
  3362. * test/RequestGroupTest.cc
  3363. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3364. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  3365. patch adds AdaptiveURISelector, which selects one of the bests
  3366. mirrors for first and reserved connections. For supplementary
  3367. ones, it returns mirrors which has not been tested yet, and if
  3368. each of them already tested, returns mirrors which has to be
  3369. tested again. Otherwise, it doesn't return anymore mirrors.
  3370. * src/AdaptiveURISelector.cc
  3371. * src/AdaptiveURISelector.h
  3372. * src/FtpNegotiationCommand.cc
  3373. * src/HttpResponseCommand.cc
  3374. * src/Makefile.am
  3375. * src/Makefile.in
  3376. * src/OptionHandlerFactory.cc
  3377. * src/RequestGroup.cc
  3378. * src/RequestGroup.h
  3379. * src/RequestGroupMan.cc
  3380. * src/ServerStat.cc
  3381. * src/ServerStat.h
  3382. * src/ServerStatMan.cc
  3383. * src/SpeedCalc.cc
  3384. * src/URISelector.h
  3385. * src/prefs.cc
  3386. * src/prefs.h
  3387. * test/RequestGroupManTest.cc
  3388. * test/ServerStatManTest.cc
  3389. * test/ServerStatTest.cc
  3390. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3391. Fixed unit test error.
  3392. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  3393. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3394. * Release 1.1.2
  3395. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3396. Updated Russian translation. Thanks to the translators.
  3397. * po/ru.po
  3398. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3399. Added the description of --use-head option to man page.
  3400. * doc/aria2c.1.txt
  3401. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3402. Bump up version number to 1.1.2
  3403. * configure.ac
  3404. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3405. Added --use-head option to toggle whether HEAD method should be
  3406. used in the first HTTP request. By default aria2 uses HEAD method
  3407. as the first request. When the server doesn't recognize HEAD, then
  3408. give aria2 --use-head=false to force aria2 to use GET method
  3409. instead.
  3410. * src/OptionHandlerFactory.cc
  3411. * src/RequestGroupMan.cc
  3412. * src/option_processing.cc
  3413. * src/prefs.cc
  3414. * src/prefs.h
  3415. * src/usage_text.h
  3416. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3417. Fixed the bug that BitTorrent download doesn't finish when REJECT
  3418. message is received before CHOKE message. The old implementation
  3419. doen't clear the use-bit of the piece when recieved REJECT
  3420. message.
  3421. * src/DefaultBtMessageDispatcher.cc
  3422. * test/DefaultBtMessageDispatcherTest.cc
  3423. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3424. * Release 1.1.1
  3425. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3426. Bump up version number to 1.1.1.
  3427. * configure.ac
  3428. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3429. Fixed the bug that --summary-interval=0 doesn't work. The summary
  3430. is printed repeatedly.
  3431. * src/ConsoleStatCalc.cc
  3432. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3433. * Release 1.1.0
  3434. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3435. Added ifdef clause for conditional compilation.
  3436. * src/main.cc
  3437. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3438. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  3439. translations. Thanks to all translators.
  3440. * po/ja.po
  3441. * po/ru.po
  3442. * po/uk.po
  3443. * po/zh_CN.po
  3444. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3445. Added the preceding ">>> " before the message "Printing the
  3446. contents of file..." to make the output more readable.
  3447. * src/main.cc
  3448. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3449. Added try-catch block in the loop in showFiles() to continue the
  3450. operation even if the exception occurred in one file.
  3451. * src/main.cc (showFiles)
  3452. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3453. Made messages in showFiles() translatable.
  3454. * po/aria2.pot
  3455. * src/main.cc
  3456. * src/message.h
  3457. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3458. Print the contents of Torrent/Metalink files are printed without
  3459. -T/-M options.
  3460. * src/main.cc
  3461. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3462. Escaped '--' with '\--'
  3463. * README
  3464. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3465. Updated "How to build" section in README. Mentioned about
  3466. --with-ca-bundle compile option.
  3467. * README
  3468. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3469. Bump up version number to 1.1.0.
  3470. * configure.ac
  3471. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3472. Added a note for --dht-listen-port option.
  3473. * doc/aria2c.1.txt
  3474. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3475. Update doc for --realtime-chunk-checksum option.
  3476. * doc/aria2c.1.txt
  3477. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3478. Update doc for --realtime-chunk-checksum option.
  3479. * src/usage_text.h
  3480. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3481. Updated French, Japanese, Russian and Ukrainian translations.
  3482. Thanks to all translators.
  3483. * po/fr.po
  3484. * po/ja.po
  3485. * po/ru.po
  3486. * po/uk.po
  3487. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3488. Renamed aria2c.pot to aria2.pot
  3489. * po/aria2.pot
  3490. * po/aria2c.pot: Removed.
  3491. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3492. Removed MetaEntry.h
  3493. * src/Makefile.am
  3494. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3495. Rename file by appending digits if a local file exists and its
  3496. file size is larger than that of remote file with --continue
  3497. option. The old implementation just throws exception in such case.
  3498. * src/RequestGroup.cc
  3499. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3500. Fixed the bug that download progress summary is not printed in the
  3501. interval specified by the option.
  3502. * src/ConsoleStatCalc.cc
  3503. * src/ConsoleStatCalc.h
  3504. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3505. Fixed compiler warning
  3506. * src/Cookie.cc
  3507. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3508. Fixed the cookie implementation based on RFC2965.
  3509. Now if a value in domain field is not started with dot, then
  3510. prepend dot. That means a cookie with domain=sf.net is sent to
  3511. wiki.sf.net.
  3512. * src/Cookie.cc
  3513. * test/CookieParserTest.cc
  3514. * test/CookieStorageTest.cc
  3515. * test/CookieTest.cc
  3516. * test/NsCookieParserTest.cc
  3517. * test/Sqlite3MozCookieParserTest.cc
  3518. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3519. Fixed the bug that causes corrupted downloads if HTTP pipelining
  3520. is enabled and the server doesn't support keep-alive.
  3521. * src/AbstractCommand.cc
  3522. * src/DownloadCommand.cc
  3523. * src/HttpDownloadCommand.cc
  3524. * src/HttpDownloadCommand.h
  3525. * src/HttpResponseCommand.cc
  3526. * src/Request.cc
  3527. * src/Request.h
  3528. * test/RequestTest.cc
  3529. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3530. Removed Dictionary/List/Data and its related classes.
  3531. * src/BencodeVisitor.cc: Removed.
  3532. * src/BencodeVisitor.h: Removed.
  3533. * src/Data.cc: Removed.
  3534. * src/Data.h: Removed.
  3535. * src/Dictionary.cc: Removed.
  3536. * src/Dictionary.h: Removed.
  3537. * src/List.cc: Removed.
  3538. * src/List.h: Removed.
  3539. * src/Makefile.am
  3540. * src/MetaEntry.h: Removed.
  3541. * src/MetaEntryVisitor.h: Removed.
  3542. * src/MetaFileUtil.cc: Removed.
  3543. * src/MetaFileUtil.h: Removed.
  3544. * test/BencodeVisitorTest.cc: Removed.
  3545. * test/DataTest.cc: Removed.
  3546. * test/DictionaryTest.cc: Removed.
  3547. * test/ListTest.cc: Removed.
  3548. * test/Makefile.am
  3549. * test/MetaFileUtilTest.cc: Removed.
  3550. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3551. Removed include of MetaEntry.h
  3552. * test/DHTMessageTrackerEntryTest.cc
  3553. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3554. Use BDE instead of Dictionary/List/Data.
  3555. * src/AnnounceList.cc
  3556. * src/AnnounceList.h
  3557. * test/AnnounceListTest.cc
  3558. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3559. Use BDE instead of Dictionary/List/Data.
  3560. * src/DHTAbstractMessage.cc
  3561. * src/DHTAbstractMessage.h
  3562. * src/DHTAnnouncePeerMessage.cc
  3563. * src/DHTAnnouncePeerMessage.h
  3564. * src/DHTAnnouncePeerReplyMessage.cc
  3565. * src/DHTAnnouncePeerReplyMessage.h
  3566. * src/DHTFindNodeMessage.cc
  3567. * src/DHTFindNodeMessage.h
  3568. * src/DHTFindNodeReplyMessage.cc
  3569. * src/DHTFindNodeReplyMessage.h
  3570. * src/DHTGetPeersMessage.cc
  3571. * src/DHTGetPeersMessage.h
  3572. * src/DHTGetPeersReplyMessage.cc
  3573. * src/DHTGetPeersReplyMessage.h
  3574. * src/DHTMessageFactory.h
  3575. * src/DHTMessageFactoryImpl.cc
  3576. * src/DHTMessageFactoryImpl.h
  3577. * src/DHTMessageReceiver.cc
  3578. * src/DHTMessageTracker.cc
  3579. * src/DHTMessageTracker.h
  3580. * src/DHTPingMessage.cc
  3581. * src/DHTPingMessage.h
  3582. * src/DHTPingReplyMessage.cc
  3583. * src/DHTPingReplyMessage.h
  3584. * src/DHTQueryMessage.cc
  3585. * src/DHTQueryMessage.h
  3586. * src/DHTResponseMessage.cc
  3587. * src/DHTResponseMessage.h
  3588. * test/DHTAnnouncePeerMessageTest.cc
  3589. * test/DHTAnnouncePeerReplyMessageTest.cc
  3590. * test/DHTFindNodeMessageTest.cc
  3591. * test/DHTFindNodeReplyMessageTest.cc
  3592. * test/DHTGetPeersMessageTest.cc
  3593. * test/DHTGetPeersReplyMessageTest.cc
  3594. * test/DHTMessageFactoryImplTest.cc
  3595. * test/DHTMessageTrackerTest.cc
  3596. * test/DHTPingMessageTest.cc
  3597. * test/DHTPingReplyMessageTest.cc
  3598. * test/MockDHTMessageFactory.h
  3599. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3600. Added tests the case where length < 0 is specified.
  3601. * test/BencodeTest.cc
  3602. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3603. Fixed memory leak in decoderawstring()
  3604. * src/bencode.cc
  3605. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3606. Added missing #ifdef guard. Added uc() function for String and
  3607. removeKey() for Dict.
  3608. * src/bencode.cc
  3609. * src/bencode.h
  3610. * test/BencodeTest.cc
  3611. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3612. Use BDE instead of Dictionary/List/Data.
  3613. * src/HandshakeExtensionMessage.cc
  3614. * src/HandshakeExtensionMessage.h
  3615. * test/HandshakeExtensionMessageTest.cc
  3616. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3617. Added --max-overall-upload-limit option. This option limits the
  3618. overall upload speed. Stated in help message that the existing
  3619. --max-upload-limit option limits the upload speed per each
  3620. torrent. Man page is also updated.
  3621. * doc/aria2c.1.txt
  3622. * src/DefaultBtMessageDispatcher.cc
  3623. * src/DefaultBtMessageDispatcher.h
  3624. * src/OptionHandlerFactory.cc
  3625. * src/PeerInteractionCommand.cc
  3626. * src/option_processing.cc
  3627. * src/prefs.cc
  3628. * src/prefs.h
  3629. * src/usage_text.h
  3630. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3631. Use BDE instead of Dictionary/List/Data classes.
  3632. * src/CompactPeerListProcessor.cc
  3633. * src/CompactPeerListProcessor.h
  3634. * src/DefaultBtAnnounce.cc
  3635. * src/DefaultBtContext.cc
  3636. * src/DefaultBtContext.h
  3637. * src/DefaultPeerListProcessor.cc
  3638. * src/DefaultPeerListProcessor.h
  3639. * src/DelegatingPeerListProcessor.cc
  3640. * src/DelegatingPeerListProcessor.h
  3641. * src/PeerListProcessor.h
  3642. * src/UTPexExtensionMessage.cc
  3643. * src/Util.h
  3644. * src/message.h
  3645. * test/DefaultBtContextTest.cc
  3646. * test/DefaultPeerListProcessorTest.cc
  3647. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3648. Added bencode helper functions and BDE class.
  3649. They will replace MetaFileUtil and Dictionary/List/Data classes.
  3650. * src/Makefile.am
  3651. * src/bencode.cc
  3652. * src/bencode.h
  3653. * test/BencodeTest.cc
  3654. * test/Makefile.am
  3655. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3656. Fixed the bug that bad URI is sent to the tracker when the announe
  3657. URI in torrent file includes query.
  3658. * src/DefaultBtAnnounce.cc
  3659. * test/DefaultBtAnnounceTest.cc
  3660. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3661. Added Option::blank().
  3662. Use !Option::blank(name) instead of Option::defined(name) for
  3663. the options that take filename.
  3664. * src/MultiUrlRequestInfo.cc
  3665. * src/Option.cc
  3666. * src/Option.h
  3667. * src/main.cc
  3668. * src/option_processing.cc
  3669. * test/OptionTest.cc
  3670. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3671. Documented the default value of --check-certificate option in man
  3672. page.
  3673. * doc/aria2c.1.txt
  3674. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3675. Enabled --check-certificate by default. Added compile
  3676. time(configure) option --with-ca-bundle to specify CA bundle.
  3677. Warn if --check-certificate=true and --ca-certificate is not
  3678. specified or loading CA certificate is failed.
  3679. * configure.ac
  3680. * src/MultiUrlRequestInfo.cc
  3681. * src/OptionHandlerFactory.cc
  3682. * src/message.h
  3683. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3684. Mentioned https tag in help option.
  3685. * doc/aria2c.1.txt
  3686. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3687. Added `https' tag to help option category. Added https tag to
  3688. --ca-certificate, --certificate, --check-certificate and
  3689. --private-key option.
  3690. * src/OptionHandlerFactory.cc
  3691. * src/help_tags.h
  3692. * src/option_processing.cc
  3693. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3694. Changed the package name from `aria2c' to `aria2' in order to fix
  3695. the packaging issue in Debian and Fedora. The name of the
  3696. executable is not changed.
  3697. * configure.ac
  3698. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3699. Fixed typos
  3700. * src/usage_text.h
  3701. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3702. Fixed typos and updated doc.
  3703. * README
  3704. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3705. Fixed typos
  3706. * doc/aria2c.1.txt
  3707. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3708. Fixed typos
  3709. * src/usage_text.h
  3710. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3711. Print a message when no files to download.
  3712. * src/download_helper.cc
  3713. * src/main.cc
  3714. * src/message.h
  3715. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3716. RFC3986 complied Percent-Encoding(urlencode).
  3717. Use uppercase hexadecimal digits for encoded text instead of lowercase
  3718. ones.
  3719. * src/Request.cc
  3720. * src/Util.cc
  3721. * src/Util.h
  3722. * test/BtHandshakeMessageTest.cc
  3723. * test/DefaultBtAnnounceTest.cc
  3724. * test/DefaultBtContextTest.cc
  3725. * test/RequestTest.cc
  3726. * test/UtilTest.cc
  3727. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3728. Fixed the bug that prevents aria2 from downloading 0-length files
  3729. via HTTP/FTP.
  3730. * src/DefaultBtContext.cc
  3731. * src/DefaultBtContext.h
  3732. * src/DownloadContext.h
  3733. * src/FtpNegotiationCommand.cc
  3734. * src/HttpResponseCommand.cc
  3735. * src/HttpResponseCommand.h
  3736. * src/RequestGroup.cc
  3737. * src/SingleFileDownloadContext.cc
  3738. * src/SingleFileDownloadContext.h
  3739. * test/BtPostDownloadHandlerTest.cc
  3740. * test/MetalinkPostDownloadHandlerTest.cc
  3741. * test/MockBtContext.h
  3742. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3743. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  3744. * src/option_processing.cc
  3745. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3746. Applied aria2-1.0.1-mingw.patch.
  3747. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  3748. mingw.
  3749. Collected 4th and 5th argument types for getsockopt and setsockopt.
  3750. * src/SocketCore.cc
  3751. * src/a2netcompat.h
  3752. * test/SocketCoreTest.cc
  3753. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3754. * Release 1.0.1
  3755. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3756. Updated Ukrainian and Norwegian Nynorsk translations.
  3757. Thanks to all translators.
  3758. * po/nn.po
  3759. * po/uk.po
  3760. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3761. Don't show download result when -S option is used.
  3762. * src/main.cc
  3763. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3764. Bump up version number to 1.0.1
  3765. * configure.ac
  3766. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3767. Closed files after the test cases in MultiDiskWriterTest::
  3768. testResetDiskWriterEntries(). This will fix the unit test error
  3769. in mingw32 build.
  3770. * test/MultiDiskWriterTest.cc
  3771. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3772. Use HEAD method to get file size from HTTP server for segmented
  3773. downloading.
  3774. The request to the BitTorrent Tracker always uses GET method because
  3775. the response of the tracker is small and it doesn't need segmented
  3776. download.
  3777. * src/FtpNegotiationCommand.cc
  3778. * src/HttpRequest.cc
  3779. * src/HttpResponseCommand.cc
  3780. * src/HttpSkipResponseCommand.cc
  3781. * src/RequestGroup.cc
  3782. * src/RequestGroup.h
  3783. * src/TrackerWatcherCommand.cc
  3784. * test/HttpRequestTest.cc
  3785. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3786. Fixed the bug that causes floating exception when -T option is used and
  3787. no URIs are given.
  3788. * src/download_helper.cc
  3789. * test/DownloadHelperTest.cc
  3790. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  3791. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  3792. errors in MinGW:
  3793. Closed file after saving server stats (RequestGroupMan.cc)
  3794. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  3795. Ignored case & handled 2-digit years (strptime.c)
  3796. Added missing suseconds_t definition (a2time.h)
  3797. Fixed socket CLOSE() define (SocketCore.cc)
  3798. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  3799. Changed utime() test values from x000 to x00000 as MinGW failed on
  3800. values less than timezone offset from Unix epoch
  3801. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  3802. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  3803. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  3804. handle negative dates (CookieParserTest.cc)
  3805. * src/a2time.h
  3806. * src/FtpConnection.cc
  3807. * src/RequestGroupMan.cc
  3808. * src/SocketCore.cc
  3809. * src/strptime.c
  3810. * test/CookieParserTest.cc
  3811. * test/CopyDiskAdaptorTest.cc
  3812. * test/FileTest.cc
  3813. * test/FtpConnectionTest.cc
  3814. * test/MultiDiskAdaptorTest.cc
  3815. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3816. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  3817. * doc/aria2c.1.txt
  3818. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3819. * Release 1.0.0
  3820. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3821. Added '~' to reserved characters.
  3822. * src/Util.cc
  3823. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3824. Do not urlencode Request::url in setUrl() because we want unmodified
  3825. URL using Request::getUrl()
  3826. * src/Request.cc
  3827. * src/Request.h
  3828. * test/RequestTest.cc
  3829. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3830. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  3831. Thanks to all translators.
  3832. * po/bg.po
  3833. * po/fr.po
  3834. * po/ja.po
  3835. * po/ru.po
  3836. * po/uk.po
  3837. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3838. Bump up version number to 1.0.0
  3839. * configure.ac
  3840. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3841. Added nosqlite3 build to build_test.sh.
  3842. Renamed noxml as expat.
  3843. * build_test.sh
  3844. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3845. Updated INPUT FILE section.
  3846. * doc/aria2c.1.txt
  3847. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3848. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  3849. on big endian systems because test .aria2 files are made for little
  3850. endian systems.
  3851. * test/DefaultBtProgressInfoFileTest.cc
  3852. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3853. Dropped ares support.
  3854. * README
  3855. * configure.ac
  3856. * m4/libares.m4: Removed.
  3857. * src/AsyncNameResolver.cc
  3858. * src/Makefile.am
  3859. * test/Makefile.am
  3860. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3861. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  3862. Removed const qualifier from DiskWriter::size().
  3863. * src/AbstractDiskWriter.cc
  3864. * src/AbstractDiskWriter.h
  3865. * src/ByteArrayDiskWriter.cc
  3866. * src/ByteArrayDiskWriter.h
  3867. * src/DiskWriter.h
  3868. * test/ByteArrayDiskWriterTest.cc
  3869. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3870. Fixed the bug that causes segmentation fault/bus error during executing
  3871. choking algorithm while seeding. This is caused by improper
  3872. implementation of compare function which returns inconsistent results
  3873. depending on the timing of last unchoke.
  3874. * src/BtSeederStateChoke.cc
  3875. * src/BtSeederStateChoke.h
  3876. * src/DefaultPeerStorage.cc
  3877. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3878. Removed TODO
  3879. * TODO
  3880. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3881. Added a section that explains how to pass argument to options that
  3882. takes optional arguments with its short form.
  3883. * doc/aria2c.1.txt
  3884. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3885. Added -u for the short form of --max-upload-limit option.
  3886. * doc/aria2c.1.txt
  3887. * src/option_processing.cc
  3888. * src/usage_text.h
  3889. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3890. Added -V for the short form of --check-integrity option.
  3891. Now the argument of --check-integrity option is optional:
  3892. if it is omitted, it is evaluated as true.
  3893. * doc/aria2c.1.txt
  3894. * src/option_processing.cc
  3895. * src/usage_text.h
  3896. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3897. Made the default value of --ftp-pasv option set to true and it can take
  3898. true/false values.
  3899. * src/OptionHandlerFactory.cc
  3900. * src/option_processing.cc
  3901. * src/usage_text.h
  3902. * doc/aria2c.1.txt
  3903. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3904. Given custom random number generator to std::random_shuffle.
  3905. * src/AnnounceList.cc
  3906. * src/BtLeecherStateChoke.cc
  3907. * src/BtSeederStateChoke.cc
  3908. * src/DefaultBtRequestFactory.cc
  3909. * src/MetalinkEntry.cc
  3910. * src/RarestPieceSelector.cc
  3911. * src/SimpleRandomizer.cc
  3912. * src/SimpleRandomizer.h
  3913. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3914. Now the default value of --enable-direct-io is true.
  3915. * src/OptionHandlerFactory.cc
  3916. * doc/aria2c.1.txt
  3917. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3918. Erase peer before executing onReturningPeer and onErasingPeer
  3919. because choking algorithm called from onReturningPeer doesn't
  3920. like erasing peer in the active peer list.
  3921. * src/DefaultPeerStorage.cc
  3922. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3923. Instead of creating special filename in createDownloadResult() if
  3924. inMemoryDownload() is true, now it is done in getFilePath().
  3925. * src/RequestGroup.cc
  3926. * test/RequestGroupTest.cc
  3927. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3928. Print "[MEMORY]" and filename if a file is not saved in disk and just
  3929. processed in memory. This is the fix for previous comment out.
  3930. * src/MemoryBufferPreDownloadHandler.cc
  3931. * src/RequestGroup.cc
  3932. * src/RequestGroup.h
  3933. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3934. Commented out the code which sets virtual directory path "[MEMORY]"
  3935. propagate directory to store to following RequestGroup.
  3936. * src/MemoryBufferPreDownloadHandler.cc
  3937. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3938. Bump up version number to 1.0.0b
  3939. * configure.ac
  3940. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3941. Added input_uris.txt to EXTRA_DIST
  3942. * test/Makefile.am
  3943. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3944. Removed PeerObject.h from Makefile.am
  3945. * src/Makefile.am
  3946. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3947. Avoid slow seeding
  3948. * src/PeerInteractionCommand.cc
  3949. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3950. Updated usage for -i option.
  3951. * src/usage_text.h (TEXT_INPUT_FILE)
  3952. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3953. Added INPUT FILE section to man page.
  3954. Escaped fake URLs.
  3955. * doc/aria2c.1.txt
  3956. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3957. Fixed wrong note position for -o option.
  3958. * doc/aria2c.1.txt
  3959. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3960. Fixed compile error without SSL/XML library.
  3961. * src/DefaultBtProgressInfoFile.cc
  3962. * src/DefaultBtProgressInfoFile.h
  3963. * src/FileMetalinkParserState.cc
  3964. * src/RequestGroup.h
  3965. * src/SocketCore.cc
  3966. * src/SocketCore.h
  3967. * src/VerificationMetalinkParserState.cc
  3968. * src/download_helper.h
  3969. * src/main.cc
  3970. * test/DefaultBtProgressInfoFileTest.cc
  3971. * test/DownloadHelperTest.cc
  3972. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3973. Rewritten URI handling functions. They are now provided as a testable
  3974. functions.
  3975. * src/Makefile.am
  3976. * src/RequestGroup.cc
  3977. * src/RequestGroup.h
  3978. * src/download_helper.cc
  3979. * src/download_helper.h
  3980. * src/main.cc
  3981. * test/DownloadHelperTest.cc
  3982. * test/Makefile.am
  3983. * test/input_uris.txt
  3984. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3985. Quickly terminate commands when ctrl-c is pressed.
  3986. * src/DownloadEngine.cc
  3987. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3988. Quickly terminate idle commands when download finished.
  3989. * src/AbstractCommand.cc
  3990. * src/DownloadCommand.cc
  3991. * src/DownloadEngine.cc
  3992. * src/DownloadEngine.h
  3993. * src/SleepCommand.cc
  3994. * src/SleepCommand.h
  3995. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3996. Added the ability to specify output filename and directory in input
  3997. file.
  3998. Additional parameters are added in the following line of URIs
  3999. with proceeding white space(s), 1 parameter in 1 line.
  4000. The parameter names are the same with the command-line option name
  4001. without proceeding "--". Not all the options are available here:
  4002. at the moment, 'dir' and 'out' options are avialable.
  4003. Please note that out option has no effect against Metalink or BitTorrent
  4004. downloads.
  4005. Example input file:
  4006. http://host/foo-1.1.tar.bz2
  4007. out=foo.tar.bz2
  4008. dir=/tmp/downloads
  4009. http://host/thundermonkey-2.0.tar.bz2
  4010. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  4011. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  4012. thundermonkey-2.0.tar.bz2 is saved as
  4013. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  4014. * src/BtPostDownloadHandler.cc
  4015. * src/Metalink2RequestGroup.cc
  4016. * src/Metalink2RequestGroup.h
  4017. * src/MetalinkPostDownloadHandler.cc
  4018. * src/UriListParser.cc
  4019. * src/UriListParser.h
  4020. * src/main.cc
  4021. * test/Metalink2RequestGroupTest.cc
  4022. * test/UriListParserTest.cc
  4023. * test/filelist1.txt
  4024. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4025. Fixed error when SSL library is not found.
  4026. * configure.ac
  4027. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4028. Cross referenced among -s, -C and -j options.
  4029. Updated usage of -C and -s options.
  4030. * src/usage_text.h
  4031. * doc/aria2c.1.txt
  4032. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4033. Fixed bad cast in 32bit platforms.
  4034. * test/DefaultPieceStorageTest.cc
  4035. (DefaultPieceStorageTest::testGetCompletedLength)
  4036. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4037. Fixed unit test fails on 32bit platforms.
  4038. * test/CookieParserTest.cc
  4039. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4040. Show an average download speed in Download results.
  4041. * src/BtFileAllocationEntry.cc
  4042. * src/DefaultPieceStorage.cc
  4043. * src/DownloadContext.cc
  4044. * src/DownloadContext.h
  4045. * src/DownloadResult.h
  4046. * src/RequestGroup.cc
  4047. * src/RequestGroupMan.cc
  4048. * src/StreamFileAllocationEntry.cc
  4049. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4050. Fixed the bug that metalink file is not processed if Content-Type
  4051. field has a paramter.
  4052. * src/HttpResponse.cc
  4053. * src/HttpResponse.h
  4054. * test/HttpResponseTest.cc
  4055. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4056. Removed unused code.
  4057. * src/DefaultBtAnnounce.cc
  4058. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4059. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  4060. the value larger than DefaultPieceStorage::getTotalLength() when
  4061. in flight pieces are involved.
  4062. * src/DefaultPieceStorage.cc
  4063. * test/DefaultPieceStorageTest.cc
  4064. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4065. Bump up version number to 1.0.0a.
  4066. * configure.ac
  4067. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4068. Updated configure.ac
  4069. * configure.ac
  4070. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4071. Added usege for proxy.
  4072. * doc/aria2c.1.txt
  4073. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4074. Added usage for --ca-certificate, --certificate, --private-key and
  4075. --check-certificate options.
  4076. * doc/aria2c.1.txt
  4077. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4078. Updated man page
  4079. * doc/aria2c.1.txt
  4080. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4081. Added --no-proxy option. It receives comman separated hostname or
  4082. domains to which proxy should not be used.
  4083. aria2 honors the environment variable no_proxy to override no-proxy
  4084. value in configuration file. The user can override the environment
  4085. variable no_proxy with --no-proxy command-line option.
  4086. * src/AbstractCommand.cc
  4087. * src/OptionHandlerFactory.cc
  4088. * src/option_processing.cc
  4089. * src/prefs.cc
  4090. * src/prefs.h
  4091. * src/usage_text.h
  4092. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4093. Added the ability to verify peer in SSL/TLS using given CA certificates.
  4094. The CA certificates are specified in --ca-certificate option.
  4095. By default, the verification is disabled. Use --check-certificate
  4096. option to enable it.
  4097. * src/HttpRequestCommand.cc
  4098. * src/LibgnutlsTLSContext.cc
  4099. * src/LibgnutlsTLSContext.h
  4100. * src/LibsslTLSContext.cc
  4101. * src/LibsslTLSContext.h
  4102. * src/MultiUrlRequestInfo.cc
  4103. * src/OptionHandlerFactory.cc
  4104. * src/SocketCore.cc
  4105. * src/SocketCore.h
  4106. * src/a2functional.h
  4107. * src/message.h
  4108. * src/option_processing.cc
  4109. * src/prefs.cc
  4110. * src/prefs.h
  4111. * src/usage_text.h
  4112. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4113. Added client certificate authentication for SSL/TLS.
  4114. Currently a private key must be decrypted for use with aria2.
  4115. If a user accidentally gives encrypted file to aria2 then following
  4116. thing happens:
  4117. If encrypted private key is given to aria2, it behaves differently
  4118. depending on the ssl library it uses. If aria2 built with openssl then
  4119. openssl prompts the user for password. If aria2 build with gnutls then
  4120. aria2 exists with error at start up.
  4121. * src/DownloadEngineFactory.cc
  4122. * src/MultiUrlRequestInfo.cc
  4123. * src/OptionHandlerFactory.cc
  4124. * src/option_processing.cc
  4125. * src/prefs.cc
  4126. * src/prefs.h
  4127. * src/usage_text.h
  4128. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4129. Introduced TLSContext that holds TLS related data that can be shared
  4130. with multiple SSL connections.
  4131. * src/DownloadEngineFactory.cc
  4132. * src/LibgnutlsTLSContext.cc
  4133. * src/LibgnutlsTLSContext.h
  4134. * src/LibsslTLSContext.cc
  4135. * src/LibsslTLSContext.h
  4136. * src/Makefile.am
  4137. * src/SocketCore.cc
  4138. * src/SocketCore.h
  4139. * src/TLSContext.h
  4140. * src/message.h
  4141. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4142. Fixed the bug that the DiskWriter of the first FileEntry whose
  4143. `needsFileAllocation' property is false is not created
  4144. even if it shares a piece with next FileEntry which `requested' property
  4145. is true.
  4146. Fixed the bug that zero-length file is not created if pre file
  4147. allocation is not done.
  4148. * src/MultiDiskAdaptor.cc
  4149. * src/MultiDiskAdaptor.h
  4150. * test/MultiDiskAdaptorTest.cc
  4151. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4152. Added the ability to pool proxy connection.
  4153. The conneciton in FTP with proxy-method=GET is not pooled.
  4154. Proxy-Connection header will not be sent when sending CONNECT method.
  4155. * src/DownloadEngine.cc
  4156. * src/DownloadEngine.h
  4157. * src/FtpFinishDownloadCommand.cc
  4158. * src/FtpInitiateConnectionCommand.cc
  4159. * src/FtpNegotiationCommand.cc
  4160. * src/HttpDownloadCommand.cc
  4161. * src/HttpInitiateConnectionCommand.cc
  4162. * src/HttpRequest.cc
  4163. * src/HttpRequest.h
  4164. * src/HttpResponse.cc
  4165. * src/HttpSkipResponseCommand.cc
  4166. * test/HttpRequestTest.cc
  4167. * test/HttpResponseTest.cc
  4168. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4169. Handle date before epoch.
  4170. To create *bad* Time object, call Time::null().
  4171. * src/CookieParser.cc
  4172. * src/FtpConnection.cc
  4173. * src/FtpConnection.h
  4174. * src/FtpNegotiationCommand.cc
  4175. * src/RequestGroup.cc
  4176. * src/TimeA2.cc
  4177. * src/TimeA2.h
  4178. * test/CookieParserTest.cc
  4179. * test/FtpConnectionTest.cc
  4180. * test/TimeTest.cc
  4181. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4182. Added support for following envrionment variables: http_proxy,
  4183. https_proxy, ftp_proxy and all_proxy.
  4184. Each variable is equivalent to the aria2 option whose name is the
  4185. variable name with '_' replaced with '-'.
  4186. They overrides options specified in aria2.conf file.
  4187. The envrionment variables can be overrode using command-line option.
  4188. * src/option_processing.cc
  4189. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4190. Renamed --http-proxy-method as --proxy-method.
  4191. * src/AbstractCommand.cc
  4192. * src/FtpInitiateConnectionCommand.cc
  4193. * src/HttpInitiateConnectionCommand.cc
  4194. * src/OptionHandlerFactory.cc
  4195. * src/option_processing.cc
  4196. * src/prefs.cc
  4197. * src/prefs.h
  4198. * src/usage_text.h
  4199. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4200. Deprecated --http-proxy-user and --http-proxy-passwd options.
  4201. Added --https-proxy, --ftp-proxy and --all-proxy options.
  4202. Above 3 options and --http-proxy option can handle proxy in URL format
  4203. like: http://user:passwd@host:port.
  4204. If a proxy requires user/password, they must be specified in a URL.
  4205. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  4206. instead.
  4207. * src/AbstractCommand.cc
  4208. * src/AbstractCommand.h
  4209. * src/AbstractProxyRequestCommand.cc
  4210. * src/AbstractProxyRequestCommand.h
  4211. * src/AuthConfigFactory.cc
  4212. * src/AuthConfigFactory.h
  4213. * src/FtpFinishDownloadCommand.cc
  4214. * src/FtpInitiateConnectionCommand.cc
  4215. * src/FtpInitiateConnectionCommand.h
  4216. * src/FtpNegotiationCommand.cc
  4217. * src/FtpTunnelRequestCommand.cc
  4218. * src/FtpTunnelRequestCommand.h
  4219. * src/HttpDownloadCommand.cc
  4220. * src/HttpInitiateConnectionCommand.cc
  4221. * src/HttpInitiateConnectionCommand.h
  4222. * src/HttpProxyRequestCommand.cc
  4223. * src/HttpProxyRequestCommand.h
  4224. * src/HttpRequest.cc
  4225. * src/HttpRequest.h
  4226. * src/HttpRequestCommand.cc
  4227. * src/HttpRequestCommand.h
  4228. * src/HttpSkipResponseCommand.cc
  4229. * src/InitiateConnectionCommand.cc
  4230. * src/InitiateConnectionCommand.h
  4231. * src/OptionHandlerFactory.cc
  4232. * src/OptionHandlerImpl.h
  4233. * src/Request.cc
  4234. * src/option_processing.cc
  4235. * src/prefs.cc
  4236. * src/prefs.h
  4237. * src/usage_text.h
  4238. * test/AuthConfigFactoryTest.cc
  4239. * test/HttpRequestTest.cc
  4240. * test/OptionHandlerTest.cc
  4241. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4242. Execute choking algorithm when unchoked and interested peer is
  4243. disconected.
  4244. * src/DefaultPeerStorage.cc
  4245. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4246. Added testcase for BtNotInterestedMessage from unchoked peer.
  4247. * test/BtNotInterestedMessageTest.cc
  4248. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4249. Execute choking algorithm when BtInterestedMessage arrives from
  4250. unchoked peer.
  4251. * src/BtInterestedMessage.cc
  4252. * src/BtInterestedMessage.h
  4253. * src/DefaultBtMessageFactory.cc
  4254. * test/BtInterestedMessageTest.cc
  4255. * test/MockPeerStorage.h
  4256. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4257. AuthConfigFactory is now part of DownloadEngine.
  4258. * src/AbstractProxyRequestCommand.cc
  4259. * src/AuthConfigFactory.h
  4260. * src/DownloadEngine.cc
  4261. * src/DownloadEngine.h
  4262. * src/FtpConnection.cc
  4263. * src/FtpConnection.h
  4264. * src/FtpNegotiationCommand.cc
  4265. * src/HttpConnection.cc
  4266. * src/HttpRequest.cc
  4267. * src/HttpRequest.h
  4268. * src/HttpRequestCommand.cc
  4269. * src/HttpResponse.cc
  4270. * src/HttpResponseCommand.cc
  4271. * src/HttpSkipResponseCommand.cc
  4272. * src/MultiUrlRequestInfo.cc
  4273. * src/main.cc
  4274. * test/FtpConnectionTest.cc
  4275. * test/HttpRequestTest.cc
  4276. * test/HttpResponseTest.cc
  4277. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4278. Corrected catched exception type.
  4279. * src/ServerStatMan.cc
  4280. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4281. DNSCache is now part of DownloadEngine.
  4282. * src/DNSCache.h
  4283. * src/DownloadEngine.cc
  4284. * src/DownloadEngine.h
  4285. * src/InitiateConnectionCommand.cc
  4286. * src/MultiUrlRequestInfo.cc
  4287. * test/Makefile.am
  4288. * test/Makefile.in
  4289. * test/SimpleDNSCacheTest.cc
  4290. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4291. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  4292. DownloadEngine.
  4293. * src/ActivePeerConnectionCommand.cc
  4294. * src/BtSetup.cc
  4295. * src/CUIDCounter.h
  4296. * src/DHTSetup.cc
  4297. * src/DownloadCommand.cc
  4298. * src/DownloadEngine.cc
  4299. * src/DownloadEngine.h
  4300. * src/DownloadEngineFactory.cc
  4301. * src/FileAllocationDispatcherCommand.cc
  4302. * src/InitiatorMSEHandshakeCommand.cc
  4303. * src/PeerInitiateConnectionCommand.cc
  4304. * src/PeerInteractionCommand.cc
  4305. * src/PeerListenCommand.cc
  4306. * src/RequestGroup.cc
  4307. * src/StreamFileAllocationEntry.cc
  4308. * src/TrackerWatcherCommand.cc
  4309. * src/main.cc
  4310. * test/RequestGroupManTest.cc
  4311. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4312. Implemented commented code in BtSeederStateChoke
  4313. * src/BtSeederStateChoke.cc
  4314. * src/Peer.cc
  4315. * src/Peer.h
  4316. * src/PeerInteractionCommand.cc
  4317. * src/PeerSessionResource.cc
  4318. * src/PeerSessionResource.h
  4319. * test/MockBtMessageDispatcher.h
  4320. * test/PeerSessionResourceTest.cc
  4321. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4322. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  4323. its object.
  4324. * src/AbstractBtMessage.cc
  4325. * src/ActivePeerConnectionCommand.cc
  4326. * src/ActivePeerConnectionCommand.h
  4327. * src/BtContextAwareCommand.cc
  4328. * src/BtContextAwareCommand.h
  4329. * src/BtExtendedMessage.cc
  4330. * src/BtExtendedMessage.h
  4331. * src/BtInterestedMessage.cc
  4332. * src/BtInterestedMessage.h
  4333. * src/BtNotInterestedMessage.cc
  4334. * src/BtNotInterestedMessage.h
  4335. * src/BtRegistry.cc
  4336. * src/BtRegistry.h
  4337. * src/BtSeederStateChoke.cc
  4338. * src/BtSetup.cc
  4339. * src/DHTGetPeersCommand.cc
  4340. * src/DHTGetPeersCommand.h
  4341. * src/DHTPeerAnnounceEntry.cc
  4342. * src/DHTPeerAnnounceEntry.h
  4343. * src/DHTPeerAnnounceStorage.cc
  4344. * src/DHTPeerAnnounceStorage.h
  4345. * src/DHTPeerLookupTask.cc
  4346. * src/DHTPeerLookupTask.h
  4347. * src/DHTSetup.cc
  4348. * src/DHTSetup.h
  4349. * src/DHTTaskFactory.h
  4350. * src/DHTTaskFactoryImpl.cc
  4351. * src/DHTTaskFactoryImpl.h
  4352. * src/DefaultBtAnnounce.cc
  4353. * src/DefaultBtInteractive.cc
  4354. * src/DefaultBtInteractive.h
  4355. * src/DefaultBtMessageDispatcher.cc
  4356. * src/DefaultBtMessageDispatcher.h
  4357. * src/DefaultBtMessageFactory.cc
  4358. * src/DefaultBtMessageFactory.h
  4359. * src/DefaultBtMessageReceiver.cc
  4360. * src/DefaultBtProgressInfoFile.cc
  4361. * src/DefaultBtProgressInfoFile.h
  4362. * src/DefaultBtRequestFactory.cc
  4363. * src/DefaultBtRequestFactory.h
  4364. * src/DefaultExtensionMessageFactory.cc
  4365. * src/DefaultExtensionMessageFactory.h
  4366. * src/DefaultPeerStorage.cc
  4367. * src/DefaultPeerStorage.h
  4368. * src/DownloadEngine.cc
  4369. * src/DownloadEngine.h
  4370. * src/InitiatorMSEHandshakeCommand.cc
  4371. * src/InitiatorMSEHandshakeCommand.h
  4372. * src/MSEHandshake.cc
  4373. * src/MSEHandshake.h
  4374. * src/Makefile.am
  4375. * src/Makefile.in
  4376. * src/PeerChokeCommand.cc
  4377. * src/PeerChokeCommand.h
  4378. * src/PeerInitiateConnectionCommand.cc
  4379. * src/PeerInitiateConnectionCommand.h
  4380. * src/PeerInteractionCommand.cc
  4381. * src/PeerInteractionCommand.h
  4382. * src/PeerObject.h
  4383. * src/PeerReceiveHandshakeCommand.cc
  4384. * src/PeerReceiveHandshakeCommand.h
  4385. * src/ReceiverMSEHandshakeCommand.cc
  4386. * src/RequestGroup.cc
  4387. * src/RequestGroup.h
  4388. * src/RequestGroupMan.cc
  4389. * src/RequestGroupMan.h
  4390. * src/SeedCheckCommand.cc
  4391. * src/SeedCheckCommand.h
  4392. * src/ShareRatioSeedCriteria.h
  4393. * src/SimpleBtMessage.cc
  4394. * src/TrackerWatcherCommand.cc
  4395. * src/TrackerWatcherCommand.h
  4396. * src/UTPexExtensionMessage.cc
  4397. * src/UTPexExtensionMessage.h
  4398. * test/BtCancelMessageTest.cc
  4399. * test/BtChokeMessageTest.cc
  4400. * test/BtExtendedMessageTest.cc
  4401. * test/BtInterestedMessageTest.cc
  4402. * test/BtNotInterestedMessageTest.cc
  4403. * test/BtPieceMessageTest.cc
  4404. * test/BtPortMessageTest.cc
  4405. * test/BtRegistryTest.cc
  4406. * test/BtRejectMessageTest.cc
  4407. * test/BtRequestMessageTest.cc
  4408. * test/DHTPeerAnnounceEntryTest.cc
  4409. * test/DHTPeerAnnounceStorageTest.cc
  4410. * test/DefaultBtMessageDispatcherTest.cc
  4411. * test/DefaultBtMessageFactoryTest.cc
  4412. * test/DefaultBtProgressInfoFileTest.cc
  4413. * test/DefaultBtRequestFactoryTest.cc
  4414. * test/DefaultExtensionMessageFactoryTest.cc
  4415. * test/MSEHandshakeTest.cc
  4416. * test/MockDHTTaskFactory.h
  4417. * test/ShareRatioSeedCriteriaTest.cc
  4418. * test/UTPexExtensionMessageTest.cc
  4419. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4420. Fixed compiler warning.
  4421. * test/UtilTest.cc
  4422. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4423. Treat Cookie object as session cookie if expiry = 0 is given.
  4424. With this change, you can specify session scoped cookies in an external
  4425. file setting expiry value to 0.
  4426. * src/Cookie.cc
  4427. * src/Cookie.h
  4428. * test/CookieParserTest.cc
  4429. * test/CookieStorageTest.cc
  4430. * test/CookieTest.cc
  4431. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4432. Changed signature of DHTMessageFactory::createResponseMessage().
  4433. Removed unused validateIDMatch.
  4434. * src/DHTMessageFactory.h
  4435. * src/DHTMessageFactoryImpl.cc
  4436. * src/DHTMessageFactoryImpl.h
  4437. * src/DHTMessageTracker.cc
  4438. * test/DHTMessageFactoryImplTest.cc
  4439. * test/MockDHTMessageFactory.h
  4440. Dropped DHT message coming from same ID of localhost.
  4441. * src/DHTMessageReceiver.cc
  4442. Rejected adding node whose ID is the same as localhost's.
  4443. * src/DHTRoutingTable.cc
  4444. * test/BtPortMessageTest.cc
  4445. * test/DHTRoutingTableTest.cc
  4446. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4447. Pool connection when redirection occurs with Content-Length = 0.
  4448. * src/HttpSkipResponseCommand.cc
  4449. * src/HttpSkipResponseCommand.h
  4450. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4451. Fixed the bug that causes time out when redirection occurs with
  4452. content-length 0.
  4453. * src/HttpResponseCommand.cc
  4454. * src/HttpSkipResponseCommand.cc
  4455. * src/HttpSkipResponseCommand.h
  4456. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4457. Now each status legends is shown only when it appears in Download
  4458. Result. If Download Result has no item, then status legend will not
  4459. be printed.
  4460. * src/RequestGroupMan.cc
  4461. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4462. Removed duplicate creation of OptionHandlers.
  4463. * src/option_processing.cc
  4464. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4465. Fixed the bug that causes segmentation fault when accessing files which
  4466. don't exist or are not included in --select-file option while
  4467. validating chunk checksum.
  4468. * src/MultiDiskAdaptor.cc
  4469. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4470. Fixed compiler warning.
  4471. * test/UtilTest.cc
  4472. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4473. Included cstdlib. This fixed the compile error with g++-4.3.2.
  4474. * src/IteratableChecksumValidator.cc
  4475. * src/IteratableChunkChecksumValidator.cc
  4476. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4477. * Release 0.16.2
  4478. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4479. Added Serbian translation. Updated Ukrainian translation.
  4480. Thanks to all translators.
  4481. * po/sr.po
  4482. * po/uk.po
  4483. * po/LINGUAS
  4484. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4485. Bump up version number to 0.16.2
  4486. * configure.ac
  4487. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4488. Added length equality test to operator== to drop a piece message
  4489. whose length does not match to the requested one.
  4490. * src/RequestSlot.cc
  4491. * test/DefaultBtMessageDispatcherTest.cc
  4492. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4493. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  4494. recieved.
  4495. In this fix, if a request larger than 16KiB length is received, aria2
  4496. disconnects the peer.
  4497. * src/BtConstants.h
  4498. * src/PeerMessageUtil.cc
  4499. * src/PeerMessageUtil.h
  4500. * test/BtRequestMessageTest.cc
  4501. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4502. * Release 0.16.1
  4503. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4504. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  4505. * doc/aria2c.1.txt
  4506. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4507. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  4508. Updated French, Simplified Chinese and Japanese translations.
  4509. Thanks to all translators.
  4510. en@quot and en@boldquot are also added.
  4511. * po/LINGUAS
  4512. * po/fr.po
  4513. * po/ja.po
  4514. * po/uk.po
  4515. * po/vi.po
  4516. * po/zh_CN.po
  4517. * po/zh_TW.po
  4518. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4519. Bump up version number to 0.16.1.
  4520. * configure.ac
  4521. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4522. Updated README.
  4523. * README
  4524. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4525. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  4526. not to replace '--' with em dash character.
  4527. * doc/aria2c.1.txt
  4528. * doc/makeman
  4529. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4530. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  4531. every SEC seconds.
  4532. * src/DownloadEngineFactory.cc
  4533. * src/OptionHandlerFactory.cc
  4534. * src/option_processing.cc
  4535. * src/usage_text.h
  4536. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4537. Fixed compile warning on linux-amd64
  4538. * src/FtpConnection.cc
  4539. * src/IteratableChunkChecksumValidator.cc
  4540. * src/MultiDiskAdaptor.cc
  4541. Fixed the bug that unit test fails on linux-amd64
  4542. * test/UtilTest.cc
  4543. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4544. Added --dht-file-path option to change the path to dht.dat, which is a
  4545. serialized DHT routing table.
  4546. * src/OptionHandlerFactory.cc
  4547. * src/option_processing.cc
  4548. * src/usage_text.h
  4549. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4550. Fixed possible underflow.
  4551. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  4552. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4553. Fixed the bug that last character in URI is not encoded.
  4554. * src/Request.cc
  4555. * test/RequestTest.cc
  4556. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4557. Fixed the bug that referer header field contains fragment.
  4558. Now Request class removes fragment part of URI and encodes it
  4559. in Request::setUri() and setReferer().
  4560. * src/Request.h
  4561. * src/Request.cc
  4562. * test/RequestTest.cc
  4563. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4564. Added missing m4 macros.
  4565. * m4/cppunit.m4
  4566. * m4/libgcrypt.m4
  4567. * m4/libgnutls-extra.m4
  4568. * m4/libgnutls.m4
  4569. * m4/libxml2.m4
  4570. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4571. Fixed compile error with gcc-4.4(snapshot)
  4572. * src/File.cc
  4573. * src/FtpConnection.cc
  4574. * src/OptionHandlerImpl.h
  4575. * src/Util.cc
  4576. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4577. Removed assert()
  4578. * src/SocketBuffer.cc (SocketBuffer::send)
  4579. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4580. Changed the type of _numNewConnection to unsigned int.
  4581. * src/ActivePeerConnectionCommand.cc
  4582. * src/ActivePeerConnectionCommand.h
  4583. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4584. * Release 0.16.0
  4585. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4586. Updated doc
  4587. * README
  4588. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4589. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  4590. translations. Thanks to all translators.
  4591. * po/bg.po
  4592. * po/de.po
  4593. * po/fr.po
  4594. * po/ja.po
  4595. * po/zh_CN.po
  4596. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4597. Bump up version number to 0.16.0.
  4598. * configure.ac
  4599. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4600. Casted entry->maxConnections to int32_t for std::min<T> with T =
  4601. int32_t.
  4602. Changed the type of count to int32_t.
  4603. * src/Metalink2RequestGroup.cc
  4604. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4605. Added test for Time::elapsed(time_t).
  4606. * test/TimeTest.cc
  4607. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4608. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  4609. Util::difftv() should be used instead.
  4610. * src/TimeA2.cc
  4611. * src/TimeA2.h
  4612. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4613. Made socket for dht connections non-blocking
  4614. * src/DHTAbstractMessage.cc
  4615. * src/DHTAbstractMessage.h
  4616. * src/DHTConnection.h
  4617. * src/DHTConnectionImpl.cc
  4618. * src/DHTConnectionImpl.h
  4619. * src/DHTMessage.h
  4620. * src/DHTMessageDispatcherImpl.cc
  4621. * src/DHTMessageDispatcherImpl.h
  4622. * src/DHTUnknownMessage.cc
  4623. * src/DHTUnknownMessage.h
  4624. * src/SocketCore.cc
  4625. * src/SocketCore.h
  4626. * test/MockDHTMessage.h
  4627. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4628. Changed the type of offset to int.
  4629. * src/ParameterizedStringParser.cc
  4630. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4631. Made getAsInt() return int32_t
  4632. * src/Option.h
  4633. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4634. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  4635. build.
  4636. * configure.ac
  4637. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4638. Use sqlite3_open if sqlite3_open_v2 is not available.
  4639. * src/Sqlite3MozCookieParser.cc
  4640. * src/Sqlite3MozCookieParser.h
  4641. * m4/sqlite3.m4
  4642. * test/Sqlite3MozCookieParserTest.cc
  4643. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4644. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  4645. * src/BtPieceMessage.cc
  4646. * src/DHTPeerAnnounceStorage.cc
  4647. * src/DefaultPieceStorage.cc
  4648. * src/DownloadCommand.cc
  4649. * src/DownloadEngine.cc
  4650. * src/FtpConnection.cc
  4651. * src/PeerConnection.cc
  4652. * src/PeerMessageUtil.cc
  4653. * src/RequestGroup.cc
  4654. * src/RequestGroupMan.cc
  4655. * src/SimpleBtMessage.cc
  4656. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4657. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  4658. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  4659. * src/AbstractDiskWriter.cc
  4660. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4661. Don't set Request::supportsPersistentConnection() in HttpConnection
  4662. since this code is also used in AbstractProxyResponseCommand.
  4663. Moved those code to HttpResponse.
  4664. * src/HttpResponse.cc
  4665. * src/HttpResponse.h
  4666. * src/HttpConnection.cc
  4667. * src/HttpConnection.h
  4668. * src/HttpResponseCommand.cc
  4669. * test/HttpResponseTest.cc
  4670. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4671. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  4672. The configuration is minimum: no torrent, no metalink, so there may be
  4673. other compile error on their code.
  4674. * src/a2netcompat.h
  4675. * src/File.cc
  4676. * src/File.h
  4677. * src/SocketCore.cc
  4678. * src/SocketCore.h
  4679. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4680. Made a socket of incoming peer non-blocking.
  4681. * src/PeerListenCommand.cc
  4682. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4683. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  4684. whole message data is not sent in one send() call.
  4685. * src/BtPieceMessage.cc
  4686. * src/BtPieceMessage.h
  4687. * src/PeerConnection.cc
  4688. * src/PeerConnection.h
  4689. * src/SimpleBtMessage.cc
  4690. * src/SimpleBtMessage.h
  4691. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4692. Fixed the bug that aria2 downloads faster than max-download-limit when
  4693. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  4694. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  4695. , instead of sum of them.
  4696. * src/ActivePeerConnectionCommand.cc
  4697. * src/DefaultBtInteractive.cc
  4698. * src/DownloadCommand.cc
  4699. * src/PeerInteractionCommand.cc
  4700. * src/PeerReceiveHandshakeCommand.cc
  4701. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4702. Fixed the bug that HTTPS download fails.
  4703. * src/AbstractCommand.cc
  4704. * src/AbstractCommand.h
  4705. * src/DownloadCommand.cc
  4706. * src/FtpConnection.cc
  4707. * src/HttpConnection.cc
  4708. * src/HttpRequestCommand.cc
  4709. * src/HttpResponseCommand.cc
  4710. * src/HttpSkipResponseCommand.cc
  4711. * src/MSEHandshake.cc
  4712. * src/PeerConnection.cc
  4713. * src/SocketCore.cc
  4714. * src/SocketCore.h
  4715. Fixed the bug that aria2 doesn't download whole content body and cannot
  4716. reuse connection if chunked transfer encoding and gzip content encoding
  4717. are set.
  4718. * src/DownloadCommand.cc
  4719. * src/HttpSkipResponseCommand.cc
  4720. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4721. Updated man page.
  4722. * doc/aria2c.1.txt
  4723. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4724. When error occurred while aria2 was parsing an .aria2.conf file, print
  4725. the usage of the option that caused error.
  4726. * src/option_processing.cc
  4727. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4728. Fixed compile error on OptionHandlerException
  4729. * src/Makefile.am
  4730. * src/OptionHandlerException.cc
  4731. * src/OptionHandlerException.h
  4732. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4733. Moved message of the error to OptionHandlerException.h
  4734. * src/NameMatchOptionHandler.h
  4735. * src/OptionHandlerException.h
  4736. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4737. When error occurs while aria2 is parsing an command-line option, print
  4738. the usage of the option.
  4739. * src/Makefile.am
  4740. * src/NameMatchOptionHandler.h
  4741. * src/OptionHandlerException.h
  4742. * src/option_processing.cc
  4743. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4744. Reverted previous change.
  4745. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  4746. username is not in URI.
  4747. * src/HttpRequest.cc
  4748. * src/Request.cc
  4749. * test/HttpRequestTest.cc
  4750. * test/RequestTest.cc
  4751. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4752. Now colon is required for username and password in FTP URL, like:
  4753. ftp://username:password@host.
  4754. If colon is not there, aria2 don't parse it as a username. For example,
  4755. aria2 don't retrieve username from ftp://username@host.
  4756. This fix was made in order to login FTP server via non-transparent ftp
  4757. proxy.
  4758. * src/Request.cc
  4759. * test/RequestTest.cc
  4760. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4761. Use netrc for HTTP.
  4762. Now FTP user/password is sent in Authorization header when
  4763. --ftp-via-http-proxy=get is given.
  4764. * src/AuthConfigFactory.cc
  4765. * src/HttpRequest.cc
  4766. * src/HttpRequest.h
  4767. * src/NetrcAuthResolver.cc
  4768. * src/NetrcAuthResolver.h
  4769. * src/OptionHandlerFactory.cc
  4770. * src/option_processing.cc
  4771. * src/prefs.cc
  4772. * src/prefs.h
  4773. * test/AuthConfigFactoryTest.cc
  4774. * test/HttpRequestTest.cc
  4775. * test/NetrcAuthResolverTest.cc
  4776. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4777. Issue PWD command first and get working directory and use it as a prefix
  4778. for CWD command.
  4779. * src/DownloadEngine.cc
  4780. * src/DownloadEngine.h
  4781. * src/FtpConnection.cc
  4782. * src/FtpConnection.h
  4783. * src/FtpFinishDownloadCommand.cc
  4784. * src/FtpInitiateConnectionCommand.cc
  4785. * src/FtpNegotiationCommand.cc
  4786. * src/FtpNegotiationCommand.h
  4787. * test/FtpConnectionTest.cc
  4788. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4789. Removed default user/pass for FTP user/pass, since it should not have
  4790. precedence over netrc configuration by default.
  4791. * src/OptionHandlerFactory.cc
  4792. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4793. Added debug log for socket event.
  4794. * src/AbstractCommand.cc
  4795. * src/PeerAbstractCommand.cc
  4796. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4797. Log microseconds.
  4798. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4799. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4800. Replaced HelpItem.cc with OptionHandler.cc.
  4801. * po/POTFILES.in
  4802. Updated po files with 'make update-po'
  4803. * po/aria2c.pot
  4804. * po/*.po
  4805. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4806. Removed possible values from the text.
  4807. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  4808. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4809. Removed unused preferences:
  4810. PREF_NO_PREALLOCATION
  4811. PREF_STDOUT_LOG
  4812. PREF_TRACKER_MAX_TRIES
  4813. PREF_DIRECT_DOWNLOAD_TIMEOUT
  4814. PREF_MIN_SEGMENT_SIZE
  4815. * src/option_processing.cc
  4816. * src/prefs.cc
  4817. * src/prefs.h
  4818. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4819. Integrated HelpItem into OptionParser to ease the workload for adding
  4820. new options. Removed default value from usage text.
  4821. * src/HelpItem.cc: Removed.
  4822. * src/HelpItem.h: Removed.
  4823. * src/HelpItemFactory.cc: Removed.
  4824. * src/HelpItemFactory.h: Removed.
  4825. * src/Makefile.am
  4826. * src/Makefile.in
  4827. * src/NameMatchOptionHandler.h
  4828. * src/OptionHandler.cc
  4829. * src/OptionHandler.h
  4830. * src/OptionHandlerFactory.cc
  4831. * src/OptionHandlerImpl.h
  4832. * src/OptionParser.cc
  4833. * src/OptionParser.h
  4834. * src/TagContainer.cc: Removed.
  4835. * src/TagContainer.h: Removed.
  4836. * src/TaggedItem.cc: Removed.
  4837. * src/TaggedItem.h: Removed.
  4838. * src/main.cc
  4839. * src/option_processing.cc
  4840. * src/usage_text.h
  4841. * src/version_usage.cc
  4842. * test/HelpItemTest.cc: Removed.
  4843. * test/Makefile.am
  4844. * test/Makefile.in
  4845. * test/OptionHandlerTest.cc
  4846. * test/OptionParserTest.cc
  4847. * test/TagContainerTest.cc: Removed.
  4848. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4849. Moved `TransferStat stat = ...' to inside the `if' clause.
  4850. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  4851. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4852. Fixed the bug that a block in a piece is requested when same block is
  4853. already requested to the same peer in end game mode.
  4854. * src/BtRequestFactory.h
  4855. * src/DefaultBtInteractive.cc
  4856. * src/DefaultBtRequestFactory.cc
  4857. * src/DefaultBtRequestFactory.h
  4858. * src/DefaultPieceStorage.cc
  4859. * src/DefaultPieceStorage.h
  4860. * src/PieceStorage.h
  4861. * src/UnknownLengthPieceStorage.cc
  4862. * src/UnknownLengthPieceStorage.h
  4863. * test/DefaultBtRequestFactoryTest.cc
  4864. * test/DefaultPieceStorageTest.cc
  4865. * test/MockBtRequestFactory.h
  4866. * test/MockPieceStorage.h
  4867. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4868. Removed _uploadLength and _downloadLength from PeerSessionResource
  4869. and use PeerStat::_sessionUploadLength and
  4870. PeerStat::_sessionDownloadLength.
  4871. * src/PeerSessionResource.cc
  4872. * src/PeerSessionResource.h
  4873. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4874. Fixed the bug that prefixLength of split bucket which doesn't include
  4875. local node ID is incremented.
  4876. * src/DHTBucket.cc
  4877. * src/DHTBucket.h
  4878. * test/DHTBucketTest.cc
  4879. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4880. Added cookies.sqlite to EXTRA_DIST
  4881. * test/Makefile.am
  4882. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4883. Added Turkish translation. Updated French, German, Russian and
  4884. Simplified Chinese translations. Thanks to all translators.
  4885. * po/LINGUAS
  4886. * po/de.po
  4887. * po/fr.po
  4888. * po/ru.po
  4889. * po/tr.po
  4890. * po/zh_CN.po
  4891. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4892. Added deliminating text to the beginning of the log so that one can find
  4893. where the log starts easily.
  4894. * src/main.cc
  4895. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4896. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  4897. to fix compile error when async DNS is not enabled by configuration.
  4898. * src/AbstractCommand.cc
  4899. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4900. If establishing conneciton to a server is failed, then mark error on
  4901. its ServerStat.
  4902. Added the cause of error to log when error event occurred.
  4903. Moved message string to message.h for translation.
  4904. * src/AbstractCommand.cc
  4905. * src/AbstractCommand.h
  4906. * src/FtpNegotiationCommand.cc
  4907. * src/HttpRequestCommand.cc
  4908. * src/PeerAbstractCommand.cc
  4909. * src/message.h
  4910. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4911. Added the function to get error message from socket.
  4912. * src/SocketCore.cc
  4913. * src/SocketCore.h
  4914. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4915. Added convenient method RequestGroupMan::getOrCreateServerStat()
  4916. * src/RequestGroupMan.cc
  4917. * src/RequestGroupMan.h
  4918. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4919. If error event is received in epoll, then abort download immediately.
  4920. * src/AbstractCommand.cc
  4921. * src/Command.cc
  4922. * src/Command.h
  4923. * src/DownloadEngine.cc
  4924. * src/PeerAbstractCommand.cc
  4925. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4926. Added usage message for --uri-selector, --server-stat-of,
  4927. --server-stat-in, --server-stat-timeout options.
  4928. * src/HelpItemFactory.cc
  4929. * src/usage_text.h
  4930. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4931. Added upper limit of FTP response buffer. The current implementation
  4932. uses 4096bytes as a limit.
  4933. * src/FtpConnection.cc
  4934. * src/FtpConnection.h
  4935. * test/FtpConnectionTest.cc
  4936. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4937. Use non-blocking socket for TCP communication to avoid possible
  4938. blocking due to buffer full.
  4939. * src/AbstractProxyRequestCommand.cc
  4940. * src/FtpConnection.cc
  4941. * src/FtpConnection.h
  4942. * src/FtpNegotiationCommand.cc
  4943. * src/FtpNegotiationCommand.h
  4944. * src/HttpConnection.cc
  4945. * src/HttpConnection.h
  4946. * src/HttpRequestCommand.cc
  4947. * src/InitiatorMSEHandshakeCommand.cc
  4948. * src/InitiatorMSEHandshakeCommand.h
  4949. * src/MSEHandshake.cc
  4950. * src/MSEHandshake.h
  4951. * src/Makefile.am
  4952. * src/PeerConnection.cc
  4953. * src/PeerConnection.h
  4954. * src/PeerInteractionCommand.cc
  4955. * src/PeerListenCommand.cc
  4956. * src/ReceiverMSEHandshakeCommand.cc
  4957. * src/ReceiverMSEHandshakeCommand.h
  4958. * src/SocketBuffer.cc
  4959. * src/SocketBuffer.h
  4960. * src/SocketCore.cc
  4961. * src/SocketCore.h
  4962. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4963. Call setStatusRealtime() in constructor.
  4964. * src/RealtimeCommand.cc
  4965. * src/RealtimeCommand.h
  4966. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4967. Call Download::setNoWait(true) to execute newly created command without
  4968. a pause.
  4969. * src/AbstractCommand.cc
  4970. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4971. Added --max-file-not-found=NUM option. If aria2 receives `file not
  4972. found' error from HTTP/FTP server NUM times without getting single
  4973. bytes of data, then force the download to fail.
  4974. Basically aria2 tris all URIs available. So if long list of URIs are
  4975. specified in Metalink, then aria2 will take a long time to fail
  4976. eventually if all URIs are outdated. This option eases this situation
  4977. to limit the number of servers to try.
  4978. * src/FtpNegotiationCommand.cc
  4979. * src/HelpItemFactory.cc
  4980. * src/HttpResponseCommand.cc
  4981. * src/OptionHandlerFactory.cc
  4982. * src/PeerStat.h
  4983. * src/RequestGroup.cc
  4984. * src/RequestGroup.h
  4985. * src/SegmentMan.cc
  4986. * src/SegmentMan.h
  4987. * src/option_processing.cc
  4988. * src/prefs.cc
  4989. * src/prefs.h
  4990. * src/usage_text.h
  4991. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4992. Fixed the bug that bulkReceiveResponse() reads all received data as a
  4993. response even if more than one response is in it.
  4994. * src/FtpConnection.cc
  4995. * src/FtpConnection.h
  4996. * test/FtpConnectionTest.cc
  4997. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4998. Merged from stable-0.15
  4999. * m4/libcares.m4
  5000. Use pkg-config
  5001. * m4/sqlite3.m4
  5002. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5003. Removed unnecessary if statement.
  5004. * src/DefaultPieceStorage.cc (initPieceStorage)
  5005. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5006. Added --connect-timeout option to specify connect timeout in seconds.
  5007. This option is in effect for HTTP/FTP/proxy server. The timeout for
  5008. connecting to BitTorrent peer is not controlled by this option.
  5009. * src/AbstractProxyRequestCommand.cc
  5010. * src/FtpNegotiationCommand.cc
  5011. * src/HelpItemFactory.cc
  5012. * src/HttpRequestCommand.cc
  5013. * src/OptionHandlerFactory.cc
  5014. * src/option_processing.cc
  5015. * src/prefs.cc
  5016. * src/prefs.h
  5017. * src/usage_text.h
  5018. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5019. Added help message for -R option.
  5020. * src/HelpItemFactory.cc
  5021. * src/usage_text.h
  5022. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5023. Added the message that the time is in local time zone.
  5024. * src/RequestGroup.cc
  5025. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5026. Implemented the ability to get timestamp from remote FTP server using
  5027. MDTM command described in RFC3659.
  5028. * src/FtpConnection.cc
  5029. * src/FtpConnection.h
  5030. * src/FtpNegotiationCommand.cc
  5031. * src/FtpNegotiationCommand.h
  5032. * test/FtpConnectionTest.cc
  5033. * test/Makefile.am
  5034. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5035. Implemented the ability to get timestamp from remote HTTP server and
  5036. apply it to local file. To enable this feature, --remote-time option
  5037. is added. No usage text has been written yet.
  5038. If several servers returns difference timestamp, then aria2 uses latest
  5039. one.
  5040. * src/CopyDiskAdaptor.cc
  5041. * src/CopyDiskAdaptor.h
  5042. * src/DirectDiskAdaptor.cc
  5043. * src/DirectDiskAdaptor.h
  5044. * src/DiskAdaptor.h
  5045. * src/File.cc
  5046. * src/File.h
  5047. * src/HttpHeader.cc
  5048. * src/HttpHeader.h
  5049. * src/HttpResponse.cc
  5050. * src/HttpResponse.h
  5051. * src/HttpResponseCommand.cc
  5052. * src/HttpResponseCommand.h
  5053. * src/MultiDiskAdaptor.cc
  5054. * src/MultiDiskAdaptor.h
  5055. * src/OptionHandlerFactory.cc
  5056. * src/RequestGroup.cc
  5057. * src/RequestGroup.h
  5058. * src/RequestGroupMan.cc
  5059. * src/option_processing.cc
  5060. * src/prefs.cc
  5061. * src/prefs.h
  5062. * test/CopyDiskAdaptorTest.cc
  5063. * test/FileTest.cc
  5064. * test/Makefile.am
  5065. * test/Makefile.in
  5066. * test/MultiDiskAdaptorTest.cc
  5067. * test/TestUtil.cc
  5068. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5069. Fixed the bug that DiskWriterEntry is not created when its
  5070. FileEntry.isRequested() is false and it doesn't share a piece with
  5071. other FileEntries that are requested. This bug causes segmentation fault
  5072. in the end.
  5073. * src/MultiDiskAdaptor.cc
  5074. * src/MultiDiskAdaptor.h
  5075. * src/MultiFileAllocationIterator.cc
  5076. * test/MultiDiskAdaptorTest.cc
  5077. * test/MultiFileAllocationIteratorTest.cc
  5078. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5079. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  5080. called if the number of file entries are greater than max open files.
  5081. * src/AbstractSingleDiskAdaptor.cc
  5082. * src/AbstractSingleDiskAdaptor.h
  5083. * src/DiskAdaptor.h
  5084. * src/MultiDiskAdaptor.cc
  5085. * src/MultiDiskAdaptor.h
  5086. * test/MultiDiskAdaptorTest.cc
  5087. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5088. Added a constuctor that receives struct timeval.
  5089. Added operator<.
  5090. * src/TimeA2.cc
  5091. * src/TimeA2.h
  5092. * test/TimeTest.cc
  5093. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5094. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  5095. * src/CookieParser.cc
  5096. * test/CookieParserTest.cc
  5097. * test/HttpResponseTest.cc
  5098. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5099. Implmented the functions to parse date.
  5100. * src/TimeA2.cc
  5101. * src/TimeA2.h
  5102. * test/TimeTest.cc
  5103. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5104. Added "Firefox3 Cookie" feature to FeatureConfig
  5105. * src/FeatureConfig.cc
  5106. * src/FeatureConfig.h
  5107. * test/FeatureConfigTest.cc
  5108. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5109. Bump up version number to 0.16.0b
  5110. * configure.ac
  5111. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5112. Use pkg-config if is is available.
  5113. * m4/openssl.m4
  5114. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5115. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  5116. * src/BtAnnounce.h
  5117. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5118. If an error occurred with a URI, remove identical URI from remaining
  5119. URI list because it is likely that same error occurred in the end and it
  5120. is waste of time.
  5121. * src/AbstractCommand.cc
  5122. * src/RequestGroup.cc
  5123. * src/RequestGroup.h
  5124. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5125. Removed wrong comment.
  5126. * src/DefaultPeerStorage.cc
  5127. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5128. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  5129. Added return value of getpid() to argument of srand() to achieve more
  5130. randomized value.
  5131. * src/SimpleRandomizer.cc
  5132. * src/SimpleRandomizer.h
  5133. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5134. Contact tracker frequently when the number of connections are 0 and
  5135. download is not finished yet.
  5136. * src/ActivePeerConnectionCommand.cc
  5137. * src/BtAnnounce.h
  5138. * src/DefaultBtAnnounce.cc
  5139. * src/DefaultBtAnnounce.h
  5140. * test/MockBtAnnounce.h
  5141. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5142. Moved threshold values to UTPexExtensionMessage.
  5143. * src/DefaultBtInteractive.cc
  5144. * src/Peer.cc
  5145. * src/Peer.h
  5146. * src/UTPexExtensionMessage.cc
  5147. * src/UTPexExtensionMessage.h
  5148. * test/UTPexExtensionMessageTest.cc
  5149. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5150. Added _incoming member to Peer class and made it true if the peer
  5151. initiated connection. Don't add those peer to UTPex message.
  5152. If extended handshake is received, assign _incoming to false.
  5153. * src/DefaultBtInteractive.cc
  5154. * src/HandshakeExtensionMessage.cc
  5155. * src/Peer.cc
  5156. * src/Peer.h
  5157. * src/PeerListenCommand.cc
  5158. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5159. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  5160. Encoding Decoder. Removed size threshold for turning off on the fly
  5161. inflation because resulting file may or may not be inflated depending
  5162. on the file size and I think it is not expected by users.
  5163. This change fixes segmentation fault when Metalink file contains gzipped
  5164. file and its filesize is provided.
  5165. * src/HttpResponseCommand.cc
  5166. * src/HttpResponseCommand.h
  5167. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5168. Made Cookie immutable.
  5169. * src/Cookie.cc
  5170. * src/Cookie.h
  5171. * src/CookieParser.cc
  5172. * src/CookieParser.h
  5173. * src/CookieStorage.cc
  5174. * test/CookieParserTest.cc
  5175. * test/CookieStorageTest.cc
  5176. * test/NsCookieParserTest.cc
  5177. * test/Sqlite3MozCookieParserTest.cc
  5178. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5179. Removed CookieBox, CookieBoxFactory.
  5180. * src/CookieBox.cc
  5181. * src/CookieBox.h
  5182. * src/CookieBoxFactory.cc
  5183. * src/CookieBoxFactory.h
  5184. * src/Makefile.am
  5185. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5186. Use CookieStorage class instead of CookieBox class.
  5187. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  5188. * src/AbstractProxyRequestCommand.cc
  5189. * src/CookieStorage.cc
  5190. * src/DownloadEngine.cc
  5191. * src/DownloadEngine.h
  5192. * src/HttpConnection.cc
  5193. * src/HttpConnection.h
  5194. * src/HttpRequest.cc
  5195. * src/HttpRequest.h
  5196. * src/HttpRequestCommand.cc
  5197. * src/HttpResponse.cc
  5198. * src/HttpResponseCommand.cc
  5199. * src/HttpSkipResponseCommand.cc
  5200. * src/Makefile.am
  5201. * src/MultiUrlRequestInfo.cc
  5202. * src/Request.cc
  5203. * src/Request.h
  5204. * src/main.cc
  5205. * test/AllTest.cc
  5206. * test/CookieStorageTest.cc
  5207. * test/CookieTest.cc
  5208. * test/HttpRequestTest.cc
  5209. * test/HttpResponseTest.cc
  5210. * test/Makefile.am
  5211. * test/NsCookieParserTest.cc
  5212. * test/Sqlite3MozCookieParserTest.cc
  5213. * test/nscookietest.txt
  5214. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5215. Updated
  5216. * test/Cookies.sqlite
  5217. * test/nscookietest.txt
  5218. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5219. Added tests for CookieStorage::load()
  5220. * test/CookieStorageTest.cc
  5221. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5222. Added CookieStorage class which is based on RFC2109 and manages cookies
  5223. more strictly than CookieBox and CookieBoxFactory class.
  5224. * src/CookieStorage.cc
  5225. * src/CookieStorage.h
  5226. * src/Cookie.cc
  5227. * src/Cookie.h
  5228. * test/CookieStorageTest.cc
  5229. * test/CookieTest.cc
  5230. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5231. Fixed the bug that commands are created more than the number of pieces.
  5232. * src/RequestGroup.cc
  5233. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5234. Fixed infinite loop bug in FTP when SIZE command failed.
  5235. * src/FtpNegotiationCommand.cc
  5236. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5237. Removed DirectDiskAdaptorTest.h
  5238. * test/Makefile.am
  5239. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5240. Fixed chunk checksum validation cannot detect trailing garbage data.
  5241. BUG#2074141
  5242. * src/AbstractSingleDiskAdaptor.cc
  5243. * src/AbstractSingleDiskAdaptor.h
  5244. * src/CheckIntegrityEntry.cc
  5245. * src/CheckIntegrityEntry.h
  5246. * src/DiskAdaptor.h
  5247. * src/MultiDiskAdaptor.cc
  5248. * src/MultiDiskAdaptor.h
  5249. * src/RequestGroup.cc
  5250. * test/DirectDiskAdaptorTest.cc
  5251. * test/MultiDiskAdaptorTest.cc
  5252. * test/TestUtil.cc
  5253. * test/TestUtil.h
  5254. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5255. Bump up version number of dht.dat file to 3. In version 3 format, time
  5256. is stored in 64bit, network byte order.
  5257. New build can load old format(version 2) but it saves the file in new
  5258. format. It means once you used new build, your dht.dat becomes
  5259. incompatible with older build.
  5260. * src/DHTRoutingTableDeserializer.cc
  5261. * src/DHTRoutingTableSerializer.cc
  5262. * test/DHTRoutingTableSerializerTest.cc
  5263. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5264. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  5265. * test/Makefile.am
  5266. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5267. Bump up version number of .aria2 control file to 0001.
  5268. New aria2 can still load version 0000 file but it saves the file in
  5269. version 0001 format. It means that new aria2 can resume download
  5270. started by old aria2 but the opposite is not true.
  5271. * src/DefaultBtProgressInfoFile.cc
  5272. * src/DefaultBtProgressInfoFile.h
  5273. * test/DefaultBtProgressInfoFileTest.cc
  5274. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5275. Added ntoh64 and hton64 as inline functions.
  5276. * src/Util.cc
  5277. * test/UtilTest.cc
  5278. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5279. Added sqlite3 depenency and Firefox3 cookie support.
  5280. * README
  5281. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5282. State that firefox3 cookie is supported explicitly in the usage.
  5283. * src/usage_text.h
  5284. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5285. Externalized message.
  5286. * src/RequestGroupMan.cc
  5287. * src/message.h
  5288. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5289. Save temporary file first and rename to the destination on success.
  5290. Added test cases.
  5291. * src/RequestGroupMan.cc
  5292. * test/RequestGroupManTest.cc
  5293. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5294. Fixed the bug that the number of connected peer is exceeding the limit
  5295. (55 by default) in seeding mode.
  5296. Multiplied 0.8 to _maxUploadSpeedLimit.
  5297. * src/ActivePeerConnectionCommand.cc
  5298. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5299. Clear table item.
  5300. * src/Dictionary.cc
  5301. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5302. Fixed error handling of lseek.
  5303. * src/AbstractDiskWriter.cc
  5304. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5305. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  5306. style cookie file.
  5307. * src/usage_text.h
  5308. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5309. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  5310. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  5311. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  5312. * src/Util.cc
  5313. * src/Util.h
  5314. * src/CookieParser.cc
  5315. * test/UtilTest.cc
  5316. * test/CookieParserTest.cc
  5317. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5318. Separate the implementation to load old mozilla format of cookie to
  5319. NsCookieParser class.
  5320. * src/CookieBoxFactory.cc
  5321. * src/CookieBoxFactory.h
  5322. * src/NsCookieParser.cc
  5323. * src/NsCookieParser.h
  5324. * test/NsCookieParserTest.cc
  5325. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5326. Made parse() const
  5327. * src/Sqlite3MozCookieParser.cc
  5328. * src/Sqlite3MozCookieParser.h
  5329. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5330. Added firefox3 cookie support based on the patch submitted by
  5331. tizianomueller.
  5332. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  5333. this functionality.
  5334. * configure.ac
  5335. * m4/sqlite3.m4
  5336. * src/CookieBoxFactory.cc
  5337. * src/CookieBoxFactory.h
  5338. * src/Makefile.am
  5339. * src/Makefile.in
  5340. * src/Sqlite3MozCookieParser.cc
  5341. * src/Sqlite3MozCookieParser.h
  5342. * src/main.cc
  5343. * test/CookieBoxFactoryTest.cc
  5344. * test/Makefile.am
  5345. * test/Makefile.in
  5346. * test/Sqlite3MozCookieParserTest.cc
  5347. * test/badcookies.sqlite
  5348. * test/cookies.sqlite
  5349. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5350. Added Danish and Greek translations.
  5351. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  5352. Great thanks to all translators.
  5353. * po/LINGUAS
  5354. * po/el.po
  5355. * po/da.po
  5356. * po/es.po
  5357. * po/ca.po
  5358. * po/nn.po
  5359. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5360. Fixed man page: --follow-bittorrent should be --follow-torrent
  5361. * doc/aria2c.1.txt
  5362. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5363. Fixed: numCommand is less than the value specified in -C option.
  5364. * src/RequestGroup.cc
  5365. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5366. Fixed occasional assertion failure in PieceSegment.
  5367. Calling PieceStorage::getMissingPiece(size_t) was missing after
  5368. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  5369. creation of duplicate segments and one of the segment was finished then
  5370. assertion failure was caused.
  5371. * src/SegmentMan.cc
  5372. * test/SegmentManTest.cc
  5373. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5374. Added options to load/save the server's performance/status to a file
  5375. and the timeout to drop their data.
  5376. --server-stat-of=FILE specifies the file to which performance data
  5377. is saved.
  5378. --server-stat-if=FILE specifies the file to read previously saved
  5379. by --server-stat-of option. Might be used with --uri-selector=feedback.
  5380. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  5381. TIMEOUT is specified in seconds and the default value is 24hours.
  5382. * src/MultiUrlRequestInfo.cc
  5383. * src/OptionHandlerFactory.cc
  5384. * src/RequestGroupMan.cc
  5385. * src/RequestGroupMan.h
  5386. * src/ServerStatMan.cc
  5387. * src/ServerStatMan.h
  5388. * src/option_processing.cc
  5389. * src/prefs.cc
  5390. * src/prefs.h
  5391. * test/ServerStatManTest.cc
  5392. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5393. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  5394. * src/ServerStatMan.cc
  5395. * src/ServerStatMan.h
  5396. * test/ServerStatManTest.cc
  5397. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5398. Implemented ServerStatMan::load(...) function and its test case.
  5399. * src/ServerStat.cc
  5400. * src/ServerStat.h
  5401. * src/ServerStatMan.cc
  5402. * test/ServerStatManTest.cc
  5403. * test/ServerStatTest.cc
  5404. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5405. Use time_t instead of int32_t. Use int64_t where milli second is
  5406. expected.
  5407. * src/TimeA2.cc
  5408. * src/TimeA2.h
  5409. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5410. Implemented ServerStatMan::save(...) function and its test case.
  5411. * src/ServerStat.cc
  5412. * src/ServerStat.h
  5413. * src/ServerStatMan.cc
  5414. * src/ServerStatMan.h
  5415. * test/ServerStatManTest.cc
  5416. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5417. Now aria2 uses name attribute in Metalink as local filename in
  5418. BitTorrent downloads. BUG#2033999
  5419. * src/BtContext.h
  5420. * src/BtDependency.cc
  5421. * src/DefaultBtContext.cc
  5422. * src/DefaultBtContext.h
  5423. * src/SingleFileDownloadContext.cc
  5424. * src/SingleFileDownloadContext.h
  5425. * test/BtDependencyTest.cc
  5426. * test/DefaultBtContextTest.cc
  5427. * test/MockBtContext.h
  5428. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5429. Added AC_C_BIGENDIAN
  5430. * src/configure.ac
  5431. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5432. Limited numCommand less than or equal to the number of piece.
  5433. * src/RequestGroup.cc
  5434. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5435. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  5436. directive.
  5437. * test/DefaultPieceStorageTest.cc
  5438. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5439. Fixed memory leak in test code
  5440. * test/AnnounceListTest.cc
  5441. * test/DefaultPeerListProcessorTest.cc
  5442. * test/DefaultPeerStorageTest.cc
  5443. * test/MetaFileUtilTest.cc
  5444. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5445. Fixed wrong argument passing to BitfieldMan::isBitSet()
  5446. * src/DefaultPieceStorage.cc
  5447. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5448. Initialized _directIOAllowed
  5449. * src/MultiDiskAdaptor.cc
  5450. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5451. Fixed memory leak
  5452. * src/GZipDecoder.cc
  5453. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5454. Fixed memory leak
  5455. * src/MetalinkParserStateMachine.cc
  5456. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5457. Fixed memory leak
  5458. * src/Dictionary.cc
  5459. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5460. Fixed memory leak
  5461. * src/IteratableChunkChecksumValidator.h
  5462. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5463. Fixed unmatched malloc/free.
  5464. * src/IteratableChunkChecksumValidator.cc
  5465. * src/IteratableChecksumValidator.cc
  5466. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5467. Removed max chunk size check. This change fixes BUG#2040169
  5468. * src/ChunkedDecoder.cc
  5469. * src/ChunkedDecoder.h
  5470. * test/ChunkedDecoderTest.cc
  5471. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5472. Implemented download speed based URI selection algorithm.
  5473. Introduced new option --uri-selector.
  5474. If --uri-selector=feedback is given, aria2 uses download speed observed
  5475. in the previous downloads and chooses fastest server in the URI list.
  5476. Currently at most 10 URIs are considered to introduce randomeness for
  5477. finding better servers. The speed is average download speed in the
  5478. downloads.
  5479. On the other hand, if --uri-selector=inorder is given, which is default,
  5480. URI is tried in order in URI list.
  5481. The usage text for the new option has not been written yet.
  5482. * src/AbstractCommand.cc
  5483. * src/DownloadCommand.cc
  5484. * src/DownloadEngine.cc
  5485. * src/DownloadEngineFactory.cc
  5486. * src/InOrderURISelector.cc
  5487. * src/InOrderURISelector.h
  5488. * src/OptionHandlerFactory.cc
  5489. * src/PeerStat.h
  5490. * src/RequestGroup.cc
  5491. * src/RequestGroup.h
  5492. * src/RequestGroupMan.cc
  5493. * src/RequestGroupMan.h
  5494. * src/SegmentMan.cc
  5495. * src/SegmentMan.h
  5496. * src/ServerStat.cc
  5497. * src/ServerStat.h
  5498. * src/ServerStatMan.cc
  5499. * src/ServerStatMan.h
  5500. * src/ServerStatURISelector.cc
  5501. * src/ServerStatURISelector.h
  5502. * src/URISelector.h
  5503. * src/option_processing.cc
  5504. * src/prefs.cc
  5505. * src/prefs.h
  5506. * test/InOrderURISelectorTest.cc
  5507. * test/RequestGroupManTest.cc
  5508. * test/ServerStatManTest.cc
  5509. * test/ServerStatURISelectorTest.cc
  5510. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5511. * Release 0.15.1+2
  5512. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5513. Bump up version number to 0.15.1+2
  5514. * configure.ac
  5515. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5516. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  5517. * m4/aria2_arg.m4
  5518. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5519. * Release 0.15.1+1
  5520. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5521. Bump up version number to 0.15.1+1
  5522. * configure.ac
  5523. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5524. Fixed the bug that causes segmentaion fault when resuming download
  5525. using metalink without size tag. Reproducible only using HTTP URI.
  5526. * src/HttpResponseCommand.cc
  5527. * src/FtpNegotiationCommand.cc
  5528. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5529. * Release 0.15.1
  5530. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5531. Updated Bulgarian and French translations, thanks to all translators.
  5532. * po/bg.po
  5533. * po/fr.po
  5534. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5535. Bump up version number to 0.15.1
  5536. * configure.ac
  5537. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5538. Avoid repeated call of gettimeofday() when calculating speed.
  5539. * src/SpeedCalc.cc
  5540. * src/SpeedCalc.h
  5541. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5542. Removed writable check when socket's send buffer is full in BitTorrent
  5543. downloads to lower CPU usage.
  5544. * src/PeerInteractionCommand.cc
  5545. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5546. Fixed broken gzip inflation.
  5547. Turn off segmented downloading if gzip content is smaller than or equal
  5548. to 1MiB and inflate the data on the fly, because HTTP response header
  5549. doesn't contain the length of inflated file we can't determin where
  5550. the chunk of data should be written.
  5551. On the other hand, if gzip content is larger than 1MB, then turn off
  5552. on the fly inflation, because some servers returns "content-type: gzip"
  5553. for *.tgz, *.gz files.
  5554. * src/DownloadCommand.cc
  5555. * src/HttpResponseCommand.cc
  5556. * src/HttpResponseCommand.h
  5557. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5558. Applied tizianomueller's patch to fix compile error.
  5559. * test/BitfieldManTest.cc
  5560. * test/BtRequestMessageTest.cc
  5561. * test/DefaultBtContextTest.cc
  5562. * test/DefaultDiskWriterTest.cc
  5563. * test/DefaultPieceStorageTest.cc
  5564. * test/HttpHeaderProcessorTest.cc
  5565. * test/HttpResponseTest.cc
  5566. * test/Metalink2RequestGroupTest.cc
  5567. * test/MetalinkParserControllerTest.cc
  5568. * test/MetalinkProcessorTest.cc
  5569. * test/PeerSessionResourceTest.cc
  5570. * test/UtilTest.cc
  5571. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5572. * Release 0.15.0
  5573. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5574. Reordered src files in POTFILES.in so that usage text appears first.
  5575. * po/POTFILES.in
  5576. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5577. Bump up version number to 0.15.0
  5578. * configure.ac
  5579. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5580. Added Bulgarian translation.
  5581. Updated Catalan, Spanish, French and Japanese translations.
  5582. Thanks to all translators.
  5583. * po/LINGUAS
  5584. * po/bg.po
  5585. * po/ca.po
  5586. * po/es.po
  5587. * po/fr.po
  5588. * po/ja.po
  5589. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5590. Updated feature list. Added libz for dependency section.
  5591. Added a description about unit testing using CppUnit.
  5592. * README
  5593. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5594. Added a test for libz. Quoted where it is necessary.
  5595. * build_test.sh
  5596. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5597. Added GZip to `Enabled Features' list.
  5598. * src/FeatureConfig.cc
  5599. * src/FeatureConfig.h
  5600. * test/FeatureConfigTest.cc
  5601. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5602. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  5603. the transfer has not yet started.
  5604. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  5605. * src/SegmentMan.cc
  5606. * src/SegmentMan.h
  5607. * test/SegmentManTest.cc
  5608. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5609. Cache last calculated average download/upload speed.
  5610. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  5611. cached value.
  5612. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  5613. * src/PeerStat.h
  5614. * src/SpeedCalc.cc
  5615. * src/SpeedCalc.h
  5616. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5617. Call parseUrl directly.
  5618. * src/Request.cc (resetUrl)
  5619. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5620. Supported absolute/relative path in Location header field.
  5621. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  5622. * src/HttpHeader.cc
  5623. * src/HttpHeader.h
  5624. * src/HttpResponse.cc
  5625. * src/HttpSkipResponseCommand.cc
  5626. * src/Request.cc
  5627. * test/HttpHeaderTest.cc
  5628. * test/HttpResponseTest.cc
  5629. * test/RequestTest.cc
  5630. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5631. Changed help text for --load-cookie option.
  5632. * doc/aria2c.1.txt
  5633. * src/usage_text.h
  5634. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5635. Regenerated test/Makefile.in to remove stale ChangeLog.
  5636. * test/Makefile.in
  5637. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5638. Updated po files.
  5639. * po/aria2c.pot
  5640. * po/*.po
  5641. * po/*.gmo
  5642. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5643. Bump up version number to 0.15.0b
  5644. * configure.ac
  5645. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5646. Externalize messages.
  5647. * src/RequestGroupMan.cc
  5648. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  5649. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5650. Use File::exists() instead of File::isFile() to allow non-regular file
  5651. such as block special files.
  5652. * src/AbstractDiskWriter.cc
  5653. * src/MultiDiskWriter.cc
  5654. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5655. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  5656. * src/gai_strerror.h
  5657. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5658. Fixed compile error. Thanks gknauf for the patch.
  5659. * src/asctime_r.c
  5660. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5661. Included asctime_r.h from a2time.h.
  5662. * src/a2time.h
  5663. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5664. Added a message "aria2 doesn't verify signature" to log message when
  5665. signature file is saved.
  5666. * src/RequestGroupMan.cc
  5667. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5668. Added the ability to save signature when download is completed if
  5669. signature is available. The filename of signature file is the path to
  5670. download file followed by ".sig". If it already exists, then signature
  5671. will not be saved.
  5672. * src/RequestGroupMan.cc
  5673. * src/Signature.cc
  5674. * test/SignatureTest.cc
  5675. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5676. Updated the descriptions for --bt-seed-unverified.
  5677. * doc/aria2c.1
  5678. * doc/aria2c.1.html
  5679. * doc/aria2c.1.txt
  5680. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5681. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  5682. that this is not going to verify files using piece hashes.
  5683. * src/HelpItemFactory.cc
  5684. * src/OptionHandlerFactory.cc
  5685. * src/RequestGroup.cc
  5686. * src/option_processing.cc
  5687. * src/prefs.cc
  5688. * src/prefs.h
  5689. * src/usage_text.h
  5690. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5691. Added the ability to retrieve signature from Metalink file.
  5692. A retrieved signature is stored in Signature class and it is held by
  5693. DownloadContext class. Note that aria2 doesn't verify signature.
  5694. * src/DownloadContext.cc
  5695. * src/DownloadContext.h
  5696. * src/Makefile.am
  5697. * src/Makefile.in
  5698. * src/Metalink2RequestGroup.cc
  5699. * src/MetalinkEntry.cc
  5700. * src/MetalinkEntry.h
  5701. * src/MetalinkParserController.cc
  5702. * src/MetalinkParserController.h
  5703. * src/MetalinkParserStateMachine.cc
  5704. * src/MetalinkParserStateMachine.h
  5705. * src/Signature.cc
  5706. * src/Signature.h
  5707. * src/SignatureMetalinkParserState.cc
  5708. * src/SignatureMetalinkParserState.h
  5709. * src/VerificationMetalinkParserState.cc
  5710. * src/VerificationMetalinkParserState.h
  5711. * test/Metalink2RequestGroupTest.cc
  5712. * test/MetalinkParserControllerTest.cc
  5713. * test/MetalinkProcessorTest.cc
  5714. * test/test.xml
  5715. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5716. Close DiskAdaptor after renaming file.
  5717. * src/RequestGroup.cc
  5718. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5719. Corrected indentation
  5720. * src/DefaultBtProgressInfoFile.cc
  5721. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5722. Moved the calls of std::ios::exceptions() inside of try-catch block
  5723. because if an error occurred in constructor of std::fstream, then
  5724. exception is thrown immediately when std::ios::exceptions() is called
  5725. which results unhandled exception and aria2c aborts.
  5726. * src/DefaultBtProgressInfoFile.cc
  5727. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5728. Added the test for the previous change in DefaultBtContext.cc
  5729. * test/DefaultBtContextTest.cc
  5730. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5731. Fixed the bug that causes infinite loop when the number of pieces are
  5732. fewer than allowed fast set size which is 10 by default.
  5733. * src/DefaultBtContext.cc
  5734. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5735. Updated the descriptions for -j, -s. Added --bt-seed.
  5736. * doc/aria2c.1
  5737. * doc/aria2c.1.html
  5738. * doc/aria2c.1.txt
  5739. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5740. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  5741. aria2 seeds previously downloaded files without validating piece hashs.
  5742. * src/HelpItemFactory.cc
  5743. * src/OptionHandlerFactory.cc
  5744. * src/RequestGroup.cc
  5745. * src/option_processing.cc
  5746. * src/prefs.cc
  5747. * src/prefs.h
  5748. * src/usage_text.h
  5749. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5750. Updated DESCRIPTION of man page.
  5751. * doc/aria2c.1
  5752. * doc/aria2c.1.html
  5753. * doc/aria2c.1.txt
  5754. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5755. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  5756. Don't define `struct addrinfo' when __sun is defined.
  5757. * src/getaddrinfo.h
  5758. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5759. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  5760. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  5761. second argument is of type `struct _stati64'. Otherwise it is defined as
  5762. `struct stat'.
  5763. * src/AbstractDiskWriter.cc
  5764. * src/File.cc
  5765. * src/File.h
  5766. * src/a2io.h
  5767. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5768. Fixed the compile error in hurd-i386
  5769. See the original bug report:
  5770. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  5771. * src/a2io.h
  5772. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5773. Code cleanup.
  5774. * src/PeerAbstractCommand.cc
  5775. * src/PeerAbstractCommand.h
  5776. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5777. Removed TransferEncoding.
  5778. * src/DownloadCommand.cc
  5779. * src/DownloadCommand.h
  5780. * src/HttpResponseCommand.cc
  5781. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5782. Updated po files.
  5783. * po/aria2c.pot
  5784. * po/*.po
  5785. * po/*.gmo
  5786. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5787. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  5788. * src/A2STR.cc
  5789. * src/A2STR.h
  5790. * src/ChunkedDecoder.cc
  5791. * src/ChunkedDecoder.h
  5792. * src/ChunkedEncoding.cc: Removed
  5793. * src/ChunkedEncoding.h: Removed
  5794. * src/DownloadCommand.cc
  5795. * src/DownloadCommand.h
  5796. * src/HttpDownloadCommand.cc
  5797. * src/HttpResponse.cc
  5798. * src/HttpResponse.h
  5799. * src/HttpResponseCommand.cc
  5800. * src/HttpSkipResponseCommand.cc
  5801. * src/HttpSkipResponseCommand.h
  5802. * src/Makefile.am
  5803. * src/TransferEncoding.h: Removed
  5804. * test/ChunkedDecoderTest.cc
  5805. * test/ChunkedEncodingTest.cc: Removed
  5806. * test/HttpResponseTest.cc
  5807. * test/Makefile.am
  5808. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5809. Use append instead of insert.
  5810. * src/GZipDecoder.cc
  5811. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5812. Updated doc
  5813. * src/Decoder.h
  5814. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5815. Updated usage text for -s option.
  5816. * src/usage_text.h
  5817. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5818. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  5819. * src/Request.cc
  5820. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5821. Cleaned up configure.ac.
  5822. * configure.ac
  5823. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5824. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  5825. AC_ARG_ENABLE.
  5826. * configure.ac
  5827. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5828. Added gzip, deflate decoding support in HTTP using libz. If compiled
  5829. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  5830. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  5831. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  5832. fly and writes decoded data to a local disk.
  5833. * README
  5834. * README.html
  5835. * configure.ac
  5836. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  5837. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  5838. * m4/libz.m4
  5839. * src/Decoder.h
  5840. * src/DownloadCommand.cc
  5841. * src/DownloadCommand.h
  5842. * src/Exception.h
  5843. * src/GZipDecoder.cc
  5844. * src/GZipDecoder.h
  5845. * src/HttpHeader.cc
  5846. * src/HttpHeader.h
  5847. * src/HttpRequest.cc
  5848. * src/HttpRequest.h
  5849. * src/HttpResponse.cc
  5850. * src/HttpResponse.h
  5851. * src/HttpResponseCommand.cc
  5852. * src/Makefile.am
  5853. * test/GZipDecoderTest.cc
  5854. * test/HttpRequestTest.cc
  5855. * test/HttpResponseTest.cc
  5856. * test/Makefile.am
  5857. * test/Makefile.in
  5858. * test/gzip_decode_test.gz
  5859. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5860. Clarified usage of -j option.
  5861. * src/usage_text.h
  5862. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5863. Disabled getting size from the response of RETR.
  5864. If SIZE command failed, then disable resuming and segmented downloading.
  5865. * src/FtpConnection.cc
  5866. * src/FtpConnection.h
  5867. * src/FtpNegotiationCommand.cc
  5868. * src/FtpNegotiationCommand.h
  5869. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5870. Use digits to find first byte of file size, which makes the intention
  5871. of the code clearer.
  5872. * src/FtpConnection.cc
  5873. Don't call validateTotalLength() when size is 0.
  5874. * src/FtpNegotiationCommand.cc
  5875. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5876. Updated po files.
  5877. * po/aria2c.pot
  5878. * po/*.gmo
  5879. * po/*.po
  5880. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5881. Clarified usage text for --split option.
  5882. * src/usage_text.h
  5883. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5884. Bump up version number to 0.15.0dev. "dev" means "development"
  5885. version, which means I started the development of the next release!
  5886. * src/configure.ac
  5887. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5888. If FTP server returns negative response with REST raw command and
  5889. requested range is not 0, throw exception. If requested range is 0,
  5890. continue download a file from 0 byte.
  5891. * src/FtpNegotiationCommand.cc
  5892. * src/FtpNegotiationCommand.h
  5893. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5894. Supported FTP server which don't recognize SIZE raw command.
  5895. If SIZE raw command is failed, aria2 will try to get file size
  5896. from the response of RETR raw command. If both attempts are failed,
  5897. then resuming and segmented downloading are disabled.
  5898. * src/FtpConnection.cc
  5899. * src/FtpConnection.h
  5900. * src/FtpNegotiationCommand.cc
  5901. * src/FtpNegotiationCommand.h
  5902. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5903. * Release 0.14.0+1
  5904. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5905. Bump up version number to 0.14.0+1
  5906. * src/configure.ac
  5907. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5908. Fixed the code that refers static member variable from non-static
  5909. context.
  5910. * src/DefaultPeerStorage.cc
  5911. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5912. * Release 0.14.0
  5913. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5914. Added build test script
  5915. * build_test.sh
  5916. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5917. Updated ja.po
  5918. * src/ja.po
  5919. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5920. Bump up version number to 0.14.0
  5921. * src/configure.ac
  5922. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5923. Updated ja.po and fr.po. Great thanks for french translators and
  5924. Sebastien WILLEMIJNS.
  5925. * po/fr.po
  5926. * po/ja.po
  5927. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5928. Added configure option to enable/disable epoll support.
  5929. * configure.ac
  5930. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5931. Updated man page.
  5932. * doc/aria2c.1.txt
  5933. * doc/aria2c.1
  5934. * doc/aria2c.1.html
  5935. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5936. Added missing default value '5' to the usage of --split option.
  5937. * src/HelpItemFactory.cc
  5938. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5939. Filled up pieces based on the number of missing blocks, rather than
  5940. simplay the number of piece * block length.
  5941. * src/BtRequestFactory.h
  5942. * src/DefaultBtInteractive.cc
  5943. * src/DefaultBtInteractive.h
  5944. * src/DefaultBtRequestFactory.cc
  5945. * src/DefaultBtRequestFactory.h
  5946. * src/Piece.cc
  5947. * src/Piece.h
  5948. * test/BitfieldManTest.cc
  5949. * test/DefaultBtRequestFactoryTest.cc
  5950. * test/MockBtRequestFactory.h
  5951. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5952. Made _epEvents a member variable.
  5953. * src/DownloadEngine.cc
  5954. * src/DownloadEngine.h
  5955. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5956. Cancel download if http redirect is bounded more than 20 times.
  5957. * src/AbstractCommand.cc
  5958. * src/HttpSkipResponseCommand.cc
  5959. * src/Request.cc
  5960. * src/Request.h
  5961. * test/RequestTest.cc
  5962. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5963. Fixed unhandled exception(removed keyword `new').
  5964. * src/SocketCore.cc (initEPOLL)
  5965. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5966. Removed visit(const MetaEntry*)
  5967. * src/MetaEntryVisitor.h:
  5968. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  5969. and made them virtual.
  5970. * src/BencodeVisitor.h
  5971. * src/BencodeVisitor.cc
  5972. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5973. Updated po files.
  5974. * po/aria2c.pot
  5975. * po/*.po
  5976. * po/*.gmo
  5977. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5978. Moved the call setWriteCheckSocket inside the previous clause to reduce
  5979. the number of socket to watch out.
  5980. * src/PeerInteractionCommand.cc
  5981. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5982. When there is not enough space in disk when writing a chunk of data,
  5983. aria2 now prints the message to the console to warn user and aborts
  5984. its download. Not all downloads are canceled because some downloads
  5985. may use another disk or partition. BUG#1640332
  5986. * src/AbstractDiskWriter.cc
  5987. * src/PeerAbstractCommand.cc
  5988. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  5989. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  5990. setHaltRequested(true) to cancel download.
  5991. * src/PeerInteractionCommand.h
  5992. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5993. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  5994. socket from int to sock_t as sockets are unsigned in Windows.
  5995. For AsyncNameResolver, DownloadEngine, I did additional modification
  5996. for the portion of the code changed according to epoll support.
  5997. I defined sock_t in a2netcompat.h to use sock_t without including
  5998. SocketCore.h.
  5999. * src/AsyncNameResolver.cc
  6000. * src/AsyncNameResolver.h
  6001. * src/DownloadEngine.cc
  6002. * src/DownloadEngine.h
  6003. * src/SocketCore.cc
  6004. * src/SocketCore.h
  6005. * src/a2netcompat.h
  6006. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6007. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  6008. changes in the patch were applied.
  6009. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  6010. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  6011. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  6012. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6013. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  6014. a2io.h and common.h were modified.
  6015. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  6016. MinGW.
  6017. * src/common.h: Changed off_t to 64 bit in MinGW.
  6018. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6019. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6020. only a2netcompat.h is modified.
  6021. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  6022. directives.
  6023. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6024. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6025. only gai_strerror.h is modified.
  6026. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  6027. winsock errors in MinGW.
  6028. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6029. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  6030. follow sources are applied.
  6031. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  6032. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  6033. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  6034. I included locale.h from Platform.cc.
  6035. * src/main.cc: Moved common setup/teardown code to Platform class.
  6036. * test/AllTest.cc: Use Platform class.
  6037. Set locale to C in AllTest.cc to prevent the messages to be localized.
  6038. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6039. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  6040. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  6041. * test/HttpRequestTest.cc: Casted to off_t where it should.
  6042. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6043. Applied Ross's aria2-0.13.2+1-mingw.patch and
  6044. aria2-0.13.2+1-mingw-2.patch.
  6045. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  6046. systems which don't have termious.h. I moved the directive inside of
  6047. if(isTTY) { ... clause so that line is wiped out without termious.h.
  6048. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  6049. anyway.
  6050. * src/asctime_r.h
  6051. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  6052. I added 2nd argument to the prototype declaration.
  6053. * src/StringFormat.cc: Get rid of vasprintf.
  6054. * src/getaddrinfo.h: Fixed constants.
  6055. * configure.ac: Added the check for asctime_r function.
  6056. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  6057. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6058. Added writable test for Socket when the sending message is in progress.
  6059. Usually the sending message is piece message. Without wriable check,
  6060. upload latency is dropped to more than 1sec.
  6061. * src/PeerInteractionCommand.cc
  6062. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6063. Create only requested files and files which shares a piece with
  6064. requested file in multi-torrent downloads. Directory structures are
  6065. also created in the same rule.
  6066. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  6067. DiskWriterEntry as in the previous implementation.
  6068. * src/MultiDiskWriter.cc
  6069. * src/MultiFileAllocationIterator.cc
  6070. * src/MultiFileAllocationIterator.h
  6071. * test/MultiFileAllocationIteratorTest.cc
  6072. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6073. Commented out -lprofiler
  6074. * src/Makefile.am
  6075. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6076. Bump up version number to 0.14.0b.
  6077. * src/configure.ac
  6078. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6079. Actively establish connection to peers in seeding, when peer cache
  6080. is not full and max upload speed limit is not reached.
  6081. * src/ActivePeerConnectionCommand.cc
  6082. * src/ActivePeerConnectionCommand.h
  6083. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6084. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  6085. to make room more fleshy, recently found peers.
  6086. Peer::_badConditionStartTime is not used anymore. Consider to remove
  6087. it.
  6088. * src/DefaultPeerStorage.cc
  6089. * test/DefaultPeerStorageTest.cc
  6090. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6091. Returns cached data only when the previous receiveHandshake() is called
  6092. with peek = true.
  6093. * src/PeerConnection.cc (receiveHandshake)
  6094. * src/PeerConnection.h (receiveHandshake)
  6095. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6096. Changed default value of -s option from 1 to 5.
  6097. Also max value of -s option is changed from 5 to 16.
  6098. * src/HelpItemFactory.cc
  6099. * src/OptionHandlerFactory.cc
  6100. * src/option_processing.cc
  6101. * src/usage_text.h
  6102. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6103. Changed -s options behavior. Now it means the number of connections
  6104. made simultaneously in each http/ftp download.
  6105. If 1 URL is specified, the behavior is the same with old implementation.
  6106. If -s N is given and more than N URLs are specified, first N URLs are
  6107. used and remaining URLs are used for backup. If less than N URLs are
  6108. specified, some of URLs are used more than once so that totally N
  6109. connections are made simultaneously.
  6110. * src/main.cc
  6111. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6112. Included missing iosfwd or ostream header.
  6113. * src/RequestGroupMan.cc
  6114. * src/TaggedItem.cc
  6115. * src/TaggedItem.h
  6116. * src/Util.cc
  6117. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6118. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  6119. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  6120. * src/HttpConnection.cc: Included missing sstream.
  6121. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6122. Added --bt-max-open-files option.
  6123. * src/DefaultPieceStorage.cc
  6124. * src/HelpItemFactory.cc
  6125. * src/MultiDiskAdaptor.cc
  6126. * src/MultiDiskAdaptor.h
  6127. * src/OptionHandlerFactory.cc
  6128. * src/option_processing.cc
  6129. * src/prefs.cc
  6130. * src/prefs.h
  6131. * src/usage_text.h
  6132. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6133. Fixed the bug that aria2 aborts when a path to a directory is given
  6134. in command-line.
  6135. * src/ProtocolDetector.cc
  6136. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6137. Limited the number files opened in each BitTorrent download. The default
  6138. value is 100. The option to change this value will be added.
  6139. * src/MultiDiskAdaptor.cc
  6140. * src/MultiDiskAdaptor.h
  6141. * src/MultiFileAllocationIterator.cc
  6142. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6143. Fixed the bug that HTTP downloads don't start with old libraries.
  6144. * src/HttpHeaderProcessor.cc
  6145. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6146. Use empty() instead of size() > 0.
  6147. * src/HttpConnection.cc
  6148. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6149. Drop connection if the incoming peer ID is the same with localhost's
  6150. one. The previous implementation drops connection when incoming peer's
  6151. IP address is the same with localhost's one.
  6152. * src/PeerListenCommand.cc
  6153. * src/DefaultBtInteractive.cc
  6154. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6155. Returns cached data without checking whether socket is readable
  6156. if the cache is available.
  6157. * src/PeerConnection.cc (receiveHandshake)
  6158. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6159. Included stdint.h
  6160. * src/common.h
  6161. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6162. Removed duplicate HAVE_GETTIMEOFDAY
  6163. * src/Makefile.am
  6164. * src/Makefile.in
  6165. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6166. Use interval as a minInterval when minInterval is not supplied.
  6167. * src/DefaultBtAnnounce.cc
  6168. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6169. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  6170. attempt is failed, then 2nd attempt get kicked out more quickly.
  6171. And it is now static const member of DefaultBtAnnounce.
  6172. * src/DefaultBtAnnounce.h
  6173. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6174. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  6175. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  6176. * src/ActivePeerConnectionCommand.cc
  6177. * src/BtConstants.h
  6178. * src/BtRuntime.h
  6179. * src/DHTGetPeersCommand.cc
  6180. * src/DefaultBtAnnounce.cc
  6181. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  6182. BtRuntime::MAX_PEERS.
  6183. * src/DefaultPeerStorage.h
  6184. * src/InitiatorMSEHandshakeCommand.cc
  6185. * src/PeerInitiateConnectionCommand.cc
  6186. * src/PeerInteractionCommand.cc
  6187. * src/PeerReceiveHandshakeCommand.cc
  6188. * src/TrackerWatcherCommand.cc
  6189. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6190. Always Connect to _numNewConnection
  6191. * src/ActivePeerConnectionCommand.cc
  6192. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6193. Made `begin' unsigned int.
  6194. * src/GrowSegment.h
  6195. * src/Piece.cc
  6196. * src/Piece.h
  6197. * src/PiecedSegment.cc
  6198. * src/PiecedSegment.h
  6199. * src/Segment.h
  6200. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6201. Calculate piece hash when data is arrived if the data is arrived in
  6202. order. This removes additional read operation for hash calculation.
  6203. If the data is arrived in out of order, the hash is calucated when the
  6204. piece is completed. This is the same behavior as the old implementation.
  6205. * src/BtPieceMessage.cc
  6206. * src/DefaultBtProgressInfoFile.cc
  6207. * src/DefaultPieceStorage.cc
  6208. * src/DownloadCommand.cc
  6209. * src/DownloadCommand.h
  6210. * src/DownloadEngine.cc
  6211. * src/GrowSegment.cc
  6212. * src/GrowSegment.h
  6213. * src/Piece.cc
  6214. * src/Piece.h
  6215. * src/PiecedSegment.cc
  6216. * src/PiecedSegment.h
  6217. * src/Segment.h
  6218. * test/PieceTest.cc
  6219. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6220. Try to keep the ordering of outgoing piece message.
  6221. * src/DefaultBtMessageDispatcher.cc
  6222. (DefaultBtMessageDispatcher::sendMessages)
  6223. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6224. Fixed busy loop when error/hup epoll events occur.
  6225. * src/AbstractCommand.cc
  6226. * src/PeerAbstractCommand.cc
  6227. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6228. Added --bt-request-peer-speed-limit option, which was a constant
  6229. SLOW_SPEED_THRESHOLD.
  6230. * src/ActivePeerConnectionCommand.cc
  6231. * src/ActivePeerConnectionCommand.h
  6232. * src/BtConstants.h
  6233. * src/HelpItemFactory.cc
  6234. * src/OptionHandlerFactory.cc
  6235. * src/PeerReceiveHandshakeCommand.cc
  6236. * src/option_processing.cc
  6237. * src/prefs.cc
  6238. * src/prefs.h
  6239. * src/usage_text.h
  6240. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6241. Removed repeated call of getTopDirPath(). Instead, call it once and
  6242. cache the result.
  6243. * src/MultiDiskAdaptor.cc
  6244. * src/MultiDiskAdaptor.h
  6245. (mkdir, openFile, initAndOpenFile, openExistingFile)
  6246. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6247. Fixed compile error on debian etch.
  6248. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  6249. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  6250. it is undefined.
  6251. * src/Util.cc (ULLONG_MAX)
  6252. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6253. Added epoll support. Use epoll if it is available. If not, use select.
  6254. When async dns is enabled in compile time, epoll support is enabled
  6255. only when aria2 is built with c-ares. This condition statement is
  6256. defined in a2io.h.
  6257. Currently aria2 supports both c-ares and ares, but ares is maintained
  6258. for quite a while and debian already has c-ares package, ares support
  6259. will be dropped in the future version.
  6260. * configure.ac
  6261. * src/AbstractCommand.cc
  6262. * src/AsyncNameResolver.cc
  6263. * src/AsyncNameResolver.h
  6264. * src/Command.cc
  6265. * src/Command.h
  6266. * src/DownloadEngine.cc
  6267. * src/DownloadEngine.h
  6268. * src/PeerAbstractCommand.cc
  6269. * src/SocketCore.cc
  6270. * src/SocketCore.h
  6271. * src/a2io.h
  6272. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6273. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  6274. directive.
  6275. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6276. Do not do write operation to /dev/null file.
  6277. * src/LogFactory.cc
  6278. * src/SimpleLogger.cc
  6279. Replaced vasprintf with vsnprintf
  6280. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6281. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6282. * src/BtRequestMessage.cc
  6283. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  6284. for segmentation fault caused by previous commit.
  6285. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6286. Reduced the usage of gettimeofday().
  6287. * src/DefaultBtMessageDispatcher.cc
  6288. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  6289. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6290. * src/RequestSlot.cc
  6291. * src/RequestSlot.h
  6292. (RequestSlot::isTimeout)
  6293. Made RequestSlot have a reference to Piece object to avoid find
  6294. Piece repeatedly.
  6295. * src/DefaultBtMessageDispatcher.cc
  6296. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6297. * src/RequestSlot.cc
  6298. * src/RequestSlot.h
  6299. (RequestSlot::getPiece)
  6300. * test/DefaultBtMessageDispatcherTest.cc
  6301. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6302. * src/TimeA2.cc
  6303. * src/TimeA2.h
  6304. (Time::difference): New function.
  6305. (Time::elapsed): Done optimization.
  6306. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6307. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  6308. directive.
  6309. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6310. * src/option_processing.cc: Added missing `defined' keyword to #if
  6311. directive.
  6312. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6313. Bump up version number to 0.13.2+1
  6314. * src/configure.ac
  6315. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6316. Refactored broken outstanding piece handling.
  6317. * src/DefaultPieceStorage.cc
  6318. * src/DefaultPieceStorage.h
  6319. * src/Piece.cc
  6320. * src/Piece.h
  6321. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6322. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  6323. name collision of static variable and predefined macro.
  6324. * src/BtContext.cc
  6325. * src/BtContext.h
  6326. * src/CookieBoxFactory.cc
  6327. * src/CookieBoxFactory.h
  6328. * src/CookieParser.cc
  6329. * src/CookieParser.h
  6330. * src/DefaultBtContext.cc
  6331. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6332. * src/RequestGroup.cc
  6333. (RequestGroup::createInitialCommand): Use empty() instead of size().
  6334. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6335. * Release 0.13.2
  6336. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6337. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  6338. * po/fr.po
  6339. * po/ja.po
  6340. * po/aria2c.pot
  6341. * po/*.po
  6342. * po/*.gmo
  6343. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6344. Bump up version number to 0.13.2
  6345. * src/configure.ac
  6346. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6347. Refactord.
  6348. * src/RequestGroupMan.cc
  6349. (removeStoppedGroup)
  6350. (fillRequestGroupFromReserver)
  6351. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6352. Fixed compile error on Ubuntu.
  6353. * src/BtPieceMessage.cc
  6354. * src/MessageDigestHelper.cc
  6355. * src/Util.cc
  6356. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6357. Fixed compile error when configured with --disable-bittorrent
  6358. * test/DownloadHandlerFactoryTest.cc
  6359. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6360. Done make update-po
  6361. * po/aria2c.pot
  6362. * po/*.po
  6363. * po/*.gmo
  6364. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6365. Bump up version number to 0.13.2rc.
  6366. * src/configure.ac
  6367. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6368. Made option name bold. Updated SYNOPSIS to make it more readable.
  6369. * doc/aria2c.1.txt
  6370. * doc/aria2c.1
  6371. * doc/aria2c.1.html
  6372. * src/version_usage.cc
  6373. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6374. Refactored. Use std::string instead of size and char*.
  6375. * Data.cc
  6376. * Data.h
  6377. * test/Data.cc
  6378. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6379. Added trimSelf(). Rewritten trim() to use trimSelf().
  6380. * Util.cc
  6381. * Util.h
  6382. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6383. * src/ChunkChecksum.h (getChecksum): Return const reference.
  6384. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6385. Fixed compile error when configured with --disable-metalink.
  6386. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  6387. * test/FeatureConfigTest.cc
  6388. * test/DownloadHandlerFactoryTest.cc
  6389. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6390. Fixed compile error when configured with --without-gnutls
  6391. --without-openssl
  6392. * src/main.cc
  6393. * test/DefaultBtProgressInfoFileTest.cc
  6394. * test/SegmentManTest.cc
  6395. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6396. Fixed compile error with OpenSSL.
  6397. * src/IteratableChunkChecksumValidator.cc
  6398. * src/LibsslDHKeyExchange.h
  6399. * src/MessageDigestHelper.cc
  6400. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6401. Revert the default value of --max-concurrent-downloads to 5.
  6402. Revert the default value of --metalink-servers to 5.
  6403. Man pages was also updated.
  6404. * src/option_processing.cc
  6405. * doc/aria2c.1.txt
  6406. * doc/aria2c.1.html
  6407. * doc/aria2c.1
  6408. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6409. Returns const reference:
  6410. DownloadContext::getPieceHash, DownloadContext::getName,
  6411. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  6412. BtContext::getInfoHashAsString,
  6413. * src/BtContext.h
  6414. * src/DefaultBtContext.cc
  6415. * src/DefaultBtContext.h
  6416. * src/DownloadContext.h
  6417. * src/SingleFileDownloadContext.h
  6418. * test/MockBtContext.h
  6419. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6420. * src/RequestGroup.h (getDir): Removed.
  6421. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6422. Returns const reference. The internal urlencode function was optimized
  6423. a little bit.
  6424. * src/Request.cc
  6425. * src/Request.h
  6426. * src/HttpRequest.cc
  6427. * src/HttpRequest.h
  6428. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6429. Defined option name and possible values as std::string to reduce
  6430. temporary string object creation in runtime.
  6431. * src/HelpItemFactory.cc
  6432. * src/LogFactory.cc
  6433. * src/Option.cc
  6434. * src/OptionHandlerFactory.cc
  6435. * src/option_processing.cc
  6436. * src/prefs.cc
  6437. * src/prefs.h
  6438. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6439. Return const reference.
  6440. * src/DownloadHandlerConstants.cc
  6441. * src/DownloadHandlerConstants.h
  6442. (getMetalinkExtensions)
  6443. (getMetalinkContentTypes)
  6444. (getBtExtensions)
  6445. (getBtContentTypes)
  6446. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6447. * src/HttpHeader.cc (get): Rewritten.
  6448. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6449. Make HttpHeader::getFirst(...) return const reference.
  6450. * src/HttpHeader.cc
  6451. * src/HttpHeader.h
  6452. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6453. Use Option::getAsBool(...) instead of Option::get(...) and compare
  6454. it with V_TRUE.
  6455. * src/DefaultPieceStorage.cc
  6456. * src/DownloadCommand.cc
  6457. * src/FtpNegotiationCommand.cc
  6458. * src/HttpRequest.cc
  6459. * src/InitiateConnectionCommand.cc
  6460. * src/RequestGroup.cc
  6461. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6462. Made Option::get(...) return const reference of std::string.
  6463. * src/Option.cc
  6464. * src/Option.h
  6465. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6466. Replaced std:copy with insert.
  6467. * src/DefaultBtMessageDispatcher.cc
  6468. * src/DefaultPieceStorage.cc
  6469. * src/DownloadEngineFactory.cc
  6470. * src/RequestGroup.cc
  6471. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6472. Included SocketCore.h to fix compiler warning.
  6473. * src/InitiateConnectionCommand.cc
  6474. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6475. Put piece selection strategy algorithm to RarestPieceSelector class,
  6476. Added a switch to choose whether randomized selection so that unit
  6477. tests emit same results in, possibly, win32.
  6478. * src/DefaultPieceStorage.cc
  6479. * src/DefaultPieceStorage.h
  6480. * src/RarestPieceSelector.cc
  6481. * src/RarestPieceSelector.h
  6482. * test/DefaultPieceStorageTest.cc
  6483. * test/RarestPieceSelectorTest.cc
  6484. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6485. Don't pool connection if HTTP proxy is enabled.
  6486. * src/FtpFinishDownloadCommand.cc
  6487. * src/FtpNegotiationCommand.cc
  6488. * src/HttpSkipResponseCommand.cc
  6489. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6490. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  6491. * src/AbstractCommand.cc
  6492. * src/AbstractCommand.h
  6493. * src/ActivePeerConnectionCommand.cc
  6494. * src/FtpInitiateConnectionCommand.cc
  6495. * src/HttpInitiateConnectionCommand.cc
  6496. * src/InitiateConnectionCommandFactory.cc
  6497. * src/PeerAbstractCommand.cc
  6498. * src/PeerAbstractCommand.h
  6499. * src/PeerInitiateConnectionCommand.cc
  6500. * src/TrackerWatcherCommand.cc
  6501. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6502. Sort RequestSlot in ascending order and manipulate them using
  6503. lower_bound.
  6504. * src/DefaultBtMessageDispatcher.cc
  6505. * src/DefaultBtMessageDispatcher.h
  6506. (getMessageQueue): Added const qualifier.
  6507. (getRequestSlots): Added const qualifier.
  6508. (sendMessages): Use empty() instead of size().
  6509. (doCancelSendingPieceAction): Use HandleEvent object.
  6510. (doAbortOutstandingRequestAction): Rewritten.
  6511. (doChokedAction): Rewritten.
  6512. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  6513. (isOutstandingRequest): Rewritten.
  6514. (getOutstandingRequest): Rewritten.
  6515. (removeOutstandingRequest): Rewritten.
  6516. (addOutstandingRequest): Rewritten.
  6517. * src/RequestSlot.cc
  6518. * src/RequestSlot.h
  6519. (operator=): Rewritten.
  6520. (operator!=): New function.
  6521. (operator<): New function.
  6522. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6523. * src/DefaultBtRequestFactory.cc
  6524. (doChokedAction): Rewritten.
  6525. (removeCompletedPiece): Rewritten.
  6526. (removeTargetPiece): Rewritten.
  6527. (createRequestMessages): Added the debug log.
  6528. (createRequestMessagesOnEndGame: Added the debug log.
  6529. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6530. Added the debug log message.
  6531. * src/BtPieceMessage.cc (doReceivedAction)
  6532. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6533. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  6534. used lower_bound to process them rather than linear search.
  6535. * src/DHTPeerAnnounceStorage.cc
  6536. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6537. Call subtractPieceStats from ~PeerInteractionCommand only when the
  6538. peer has at least one completed piece.
  6539. * src/Peer.cc
  6540. * src/Peer.h
  6541. * src/PeerInteractionCommand.cc
  6542. * src/PeerSessionResource.cc
  6543. * src/PeerSessionResource.h
  6544. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6545. Removed unnecessary sorting
  6546. * src/DefaultPieceStorage (DefaultPieceStorage)
  6547. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6548. Rewritten the portion of the code that mangaes allowed fast indexes.
  6549. * src/PeerSessionResource.cc
  6550. * src/PeerSessionResource.h
  6551. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6552. Removed the invalid string including '\r' from ru.po and
  6553. did make update-po.
  6554. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6555. Added --log-level and --summary-interval to man page.
  6556. * doc/aria2c.1.txt
  6557. * doc/aria2c.1.html
  6558. * doc/aria2c.1
  6559. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6560. Added --log-level option to specify log level. Log messages under
  6561. the specified level are not output. Default value is `debug'.
  6562. * src/HelpItemFactory.cc
  6563. * src/LogFactory.cc
  6564. * src/LogFactory.h
  6565. * src/Logger.h
  6566. * src/OptionHandlerFactory.cc
  6567. * src/SimpleLogger.cc
  6568. * src/SimpleLogger.h
  6569. * src/main.cc
  6570. * src/option_processing.cc
  6571. * src/prefs.h
  6572. * src/usage_text.h
  6573. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6574. Print download progress summary of all parallel downloads in specified
  6575. interval, default 60 secs. While aria2 could download several files
  6576. in parallel (see -j option), it displayed just first download progress,
  6577. and the other downloads are hidden from the users. This new feature
  6578. prints all downloads currently in-progress to the console so that you
  6579. can check the status of all downloads. The interval can be adjusted
  6580. by --summary-interval option.
  6581. The progress readout is now cut so that all fits in the one line of
  6582. console.
  6583. * src/ConsoleStatCalc.cc
  6584. * src/ConsoleStatCalc.h
  6585. * src/HelpItemFactory.cc
  6586. * src/OptionHandlerFactory.cc
  6587. * src/RequestGroupMan.cc
  6588. * src/RequestGroupMan.h
  6589. * src/main.cc
  6590. * src/option_processing.cc
  6591. * src/prefs.h
  6592. * src/usage_text.h
  6593. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6594. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  6595. * src/DownloadEngine.cc (DownloadEngine)
  6596. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6597. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  6598. defined.
  6599. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  6600. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6601. Use erase+lower_bound+insert instead of sort.
  6602. * src/DefaultPieceStorage.cc (addPieceStats)
  6603. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6604. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  6605. * src/A2STR.cc
  6606. * src/A2STR.h
  6607. * src/OptionParser.cc (parse)
  6608. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6609. Defined fake filename `[tracker.announce]' as static const std::string.
  6610. * src/TrackerWatcherCommand.cc (createRequestGroup)
  6611. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6612. Defined default filename `index.html' as static const std::string
  6613. * src/SingleFileDownloadContext.cc
  6614. * src/SingleFileDownloadContext.h
  6615. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6616. Defined "[MEMORY]" as static const std::string.
  6617. * src/MemoryBufferPreDownloadHandler.cc (execute)
  6618. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6619. Defined control file's version number as static const std::string.
  6620. * src/DefaultBtProgressInfoFile.cc
  6621. * src/DefaultBtProgressInfoFile.h
  6622. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6623. Use Request::METHOD_GET
  6624. * src/RequestGroup.cc (createNextCommandWithAdj)
  6625. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6626. Defined "OK", "ERR", "INPR" as static const std::string
  6627. * src/RequestGroupMan.cc (showDownloadResults)
  6628. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6629. Defined default client used in extended handshake as static const
  6630. std::string
  6631. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  6632. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6633. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  6634. * src/HttpConnection.cc (eraseConfidentialInfo)
  6635. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6636. Defined default ftp user and password as static const std::string
  6637. * src/AuthConfigFactory.cc
  6638. * src/AuthConfigFactory.h
  6639. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6640. Defined strings used in netrc as static const std::string
  6641. * src/Netrc.cc
  6642. * src/Netrc.h
  6643. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6644. Defined HTTP status as static const std::string
  6645. * src/AbstractProxyResponseCommand.cc
  6646. * src/HttpHeader.cc
  6647. * src/HttpHeader.h
  6648. * src/HttpResponse.cc
  6649. * src/HttpResponseCommand.cc
  6650. * src/HttpSkipResponseCommand.cc
  6651. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6652. Defined "\r\n", "A", "I" as static const std::string
  6653. * src/A2STR.cc
  6654. * src/A2STR.h
  6655. * src/FtpConnection.cc
  6656. * src/FtpConnection.h
  6657. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6658. Added COLON_C(".") and used it in Request::parseUrl()
  6659. * src/A2STR.cc
  6660. * src/A2STR.h
  6661. * src/Request.cc (parseUrl)
  6662. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6663. Changed the type of padName from `const std::string&' to `const char*'.
  6664. * src/MSEHandshake.cc (verifyPadLength)
  6665. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6666. Defined "sha1" as static const std::string.
  6667. * src/MetalinkParserController.cc
  6668. * src/MetalinkParserController.h
  6669. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6670. Defined message digest algorithm name as static const std::string
  6671. * src/DHTTokenTracker.cc
  6672. * src/DHTUtil.cc
  6673. * src/DefaultBtContext.cc
  6674. * src/MSEHandshake.cc
  6675. * src/MessageDigestHelper.cc
  6676. * src/Peer.cc
  6677. * src/messageDigest.cc
  6678. * src/messageDigest.h
  6679. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6680. Made string literals used in SAX parser static const std::string.
  6681. * src/FileMetalinkParserState.cc
  6682. * src/FileMetalinkParserState.h
  6683. * src/FilesMetalinkParserState.cc
  6684. * src/FilesMetalinkParserState.h
  6685. * src/InitialMetalinkParserState.cc
  6686. * src/InitialMetalinkParserState.h
  6687. * src/MetalinkMetalinkParserState.cc
  6688. * src/MetalinkMetalinkParserState.h
  6689. * src/PiecesMetalinkParserState.cc
  6690. * src/PiecesMetalinkParserState.h
  6691. * src/ResourcesMetalinkParserState.cc
  6692. * src/ResourcesMetalinkParserState.h
  6693. * src/VerificationMetalinkParserState.cc
  6694. * src/VerificationMetalinkParserState.h
  6695. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6696. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  6697. * src/A2STR.cc
  6698. * src/A2STR.h
  6699. * src/File.cc
  6700. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6701. Defined static const std::string IP("ip"), PORT("port") and use them
  6702. instead of string literals.
  6703. * src/DefaultPeerListProcessor.cc
  6704. * src/DefaultPeerListProcessor.h
  6705. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6706. Made string literals for torrent file processing static const
  6707. std::string.
  6708. * src/BtContext.cc
  6709. * src/BtContext.h
  6710. * src/DefaultBtContext.cc
  6711. * src/DefaultBtContext.h
  6712. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6713. Made string literal for tracker response static const std::string
  6714. * src/BtAnnounce.cc
  6715. * src/BtAnnounce.h
  6716. * src/DefaultBtAnnounce.cc
  6717. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6718. Use DHTMessage::T instead of "t".
  6719. * src/DHTMessageTracker.cc (messageArrived)
  6720. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6721. Made keyName static const. Made trimmed charset static const
  6722. std::string.
  6723. * src/Util.cc (getContentDispositionFilename)
  6724. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6725. Made USER_AGENT const. Made "/" static const std::string.
  6726. * src/A2STR.cc
  6727. * src/A2STR.h
  6728. * src/HttpRequest.cc
  6729. * src/HttpRequest.h
  6730. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6731. Made string listeral to static const std::string:
  6732. "Content-Range", "Content-Length"
  6733. * src/HttpHeader.cc
  6734. * src/HttpHeader.h
  6735. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6736. Made string listeral to static const std::string.
  6737. * src/HttpConnection.cc
  6738. * src/HttpHeader.cc
  6739. * src/HttpHeader.h
  6740. * src/HttpResponse.cc
  6741. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6742. Made string listeral to static const std::string.
  6743. * src/A2STR.cc
  6744. * src/A2STR.h
  6745. * src/SimpleLogger.cc
  6746. * src/SimpleLogger.h
  6747. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6748. Made string literal to static const std::string.
  6749. Rewritten CookieParser::setField.
  6750. * src/A2STR.cc
  6751. * src/A2STR.h
  6752. * src/CookieBoxFactory.cc
  6753. * src/CookieBoxFactory.h
  6754. * src/CookieParser.cc
  6755. * src/CookieParser.h
  6756. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6757. Made string literal to static const std::string
  6758. * src/DHTAbstractMessage.cc
  6759. * src/DHTAnnouncePeerMessage.cc
  6760. * src/DHTAnnouncePeerMessage.h
  6761. * src/DHTAnnouncePeerReplyMessage.cc
  6762. * src/DHTAnnouncePeerReplyMessage.h
  6763. * src/DHTFindNodeMessage.cc
  6764. * src/DHTFindNodeMessage.h
  6765. * src/DHTFindNodeReplyMessage.cc
  6766. * src/DHTFindNodeReplyMessage.h
  6767. * src/DHTGetPeersMessage.cc
  6768. * src/DHTGetPeersMessage.h
  6769. * src/DHTGetPeersReplyMessage.cc
  6770. * src/DHTGetPeersReplyMessage.h
  6771. * src/DHTMessage.cc
  6772. * src/DHTMessage.h
  6773. * src/DHTMessageFactoryImpl.cc
  6774. * src/DHTMessageReceiver.cc
  6775. * src/DHTPingMessage.cc
  6776. * src/DHTPingMessage.h
  6777. * src/DHTPingReplyMessage.cc
  6778. * src/DHTPingReplyMessage.h
  6779. * src/DHTQueryMessage.cc
  6780. * src/DHTQueryMessage.h
  6781. * src/DHTResponseMessage.cc
  6782. * src/DHTResponseMessage.h
  6783. * src/DHTUnknownMessage.cc
  6784. * src/DHTUnknownMessage.h
  6785. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6786. Made string literal to static const std::string
  6787. * src/BtChokeMessage.cc (toString)
  6788. * src/BtHaveAllMessage.cc (toString)
  6789. * src/BtHaveNoneMessage.cc (toString)
  6790. * src/BtInterestedMessage.cc (toString)
  6791. * src/BtNotInterestedMessage.cc (toString)
  6792. * src/BtUnchokeMessage.cc (toString)
  6793. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6794. Replaced "" with static const variable A2STR::NIL.
  6795. Replaced string comparison against "" with std::string::empty().
  6796. Added PROTO_* to Request class and use them as a protocol string
  6797. constant.
  6798. Made "started", "stopped", "completed" static const variable in
  6799. AnnounceList class.
  6800. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6801. Updated translations. Great thanks to translators.
  6802. * po/ca.po
  6803. * po/de.po
  6804. * po/fr.po
  6805. * po/it.po
  6806. * po/ja.po
  6807. * po/ru.po
  6808. * po/zh_CN.po
  6809. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6810. Updated man page; categorized options and fixed typo.
  6811. * doc/aria2c.1.txt
  6812. * doc/aria2c.1.html
  6813. * doc/aria2c.1
  6814. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6815. Removed const ref
  6816. * src/MetalinkEntry.cc (AddProtocolPreference)
  6817. * src/RequestGroup.cc (FindServerHostByHostname)
  6818. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6819. Rewritten Accept-Features handling.
  6820. * src/HttpRequestCommand.cc (createHttpRequest)
  6821. * src/a2functional.h
  6822. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6823. Changed method signature:
  6824. DHTAbstractNodeLookupTask::toEntries
  6825. * src/DHTAbstractNodeLookupTask.cc
  6826. * src/DHTAbstractNodeLookupTask.h
  6827. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6828. Changed method signature:
  6829. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  6830. * src/BtContext.h
  6831. * src/DefaultBtContext.cc
  6832. * src/DefaultBtContext.h
  6833. * src/DefaultBtInteractive.cc
  6834. * test/DefaultBtContextTest.cc
  6835. * test/MockBtContext.h
  6836. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6837. Changed method signature:
  6838. MultiFileAllocationIterator::makeDiskWriterEntries
  6839. * src/MultiFileAllocationIterator.cc
  6840. * src/MultiFileAllocationIterator.h
  6841. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6842. Changed method sinature:
  6843. MetalinkEntry::toFileEntry,
  6844. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  6845. Metalinker::queryEntry
  6846. * src/Metalink2RequestGroup.cc
  6847. * src/MetalinkEntry.cc
  6848. * src/MetalinkEntry.h
  6849. * src/MetalinkHelper.cc
  6850. * src/MetalinkHelper.h
  6851. * src/Metalinker.cc
  6852. * src/Metalinker.h
  6853. * src/main.cc
  6854. * test/MetalinkHelperTest.cc
  6855. * test/MetalinkerTest.cc
  6856. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6857. Changed method sinature:
  6858. RequestGroup::getURIs
  6859. * src/RequestGroup.cc
  6860. * src/RequestGroup.h
  6861. * test/Metalink2RequestGroupTest.cc
  6862. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6863. Changed method signature:
  6864. PeerListProcessor::extractPeer
  6865. * src/CompactPeerListProcessor.cc
  6866. * src/CompactPeerListProcessor.h
  6867. * src/DefaultBtAnnounce.cc
  6868. * src/DefaultPeerListProcessor.cc
  6869. * src/DefaultPeerListProcessor.h
  6870. * src/DelegatingPeerListProcessor.cc
  6871. * src/DelegatingPeerListProcessor.h
  6872. * src/PeerListProcessor.h
  6873. * src/UTPexExtensionMessage.cc
  6874. * test/DefaultPeerListProcessorTest.cc
  6875. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6876. Changed method signature:
  6877. BtRequestFactory::createRequestMessages,
  6878. BtRequestFactory::createRequestMessagesOnEndGame
  6879. * src/BtRequestFactory.h
  6880. * src/DefaultBtInteractive.cc
  6881. * src/DefaultBtRequestFactory.cc
  6882. * src/DefaultBtRequestFactory.h
  6883. * test/DefaultBtRequestFactoryTest.cc
  6884. * test/MockBtRequestFactory.h
  6885. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6886. Changed method signature:
  6887. PieceStorage::getInFlightPieces
  6888. * src/DefaultBtProgressInfoFile.cc
  6889. * src/DefaultPieceStorage.cc
  6890. * src/DefaultPieceStorage.h
  6891. * src/PieceStorage.h
  6892. * src/UnknownLengthPieceStorage.cc
  6893. * src/UnknownLengthPieceStorage.h
  6894. * test/DefaultBtProgressInfoFileTest.cc
  6895. * test/MockPieceStorage.h
  6896. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6897. Changed method signature:
  6898. PostDownloadHandler::getNextRequestGroups
  6899. Metalink2RequestGroup::generate
  6900. RequestGroup::postDownloadProcessing
  6901. * src/BtPostDownloadHandler.cc
  6902. * src/BtPostDownloadHandler.h
  6903. * src/Metalink2RequestGroup.cc
  6904. * src/Metalink2RequestGroup.h
  6905. * src/MetalinkPostDownloadHandler.cc
  6906. * src/MetalinkPostDownloadHandler.h
  6907. * src/PostDownloadHandler.h
  6908. * src/RequestGroup.cc
  6909. * src/RequestGroup.h
  6910. * src/RequestGroupMan.cc
  6911. * src/main.cc
  6912. * test/BtPostDownloadHandlerTest.cc
  6913. * test/Metalink2RequestGroupTest.cc
  6914. * test/MetalinkPostDownloadHandlerTest.cc
  6915. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6916. Rewritten AccRequestGroup
  6917. * src/main.cc
  6918. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6919. Rewritten.
  6920. * src/TaggedItem.cc (toTagString)
  6921. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6922. Rewritten Accept-Features handling.
  6923. * src/HttpRequestCommand.cc (createHttpRequest)
  6924. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6925. Rewritten accept types handling.
  6926. * HttpRequest.cc (createRequest)
  6927. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6928. Rewritten
  6929. * src/FeatureConfig.cc (featureSummary)
  6930. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6931. Changed method signature:
  6932. PeerStorage::getActivePeers
  6933. * src/DHTPeerAnnounceEntry.cc
  6934. * src/DefaultPeerStorage.cc
  6935. * src/DefaultPeerStorage.h
  6936. * src/PeerStorage.h
  6937. * test/DefaultPeerStorageTest.cc
  6938. * test/MockPeerStorage.h
  6939. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6940. Changed method signature:
  6941. DHTPeerAnnounceStorage::getPeers,
  6942. DHTPeerAnnounceEntry::getPeers
  6943. * src/DHTGetPeersMessage.cc
  6944. * src/DHTPeerAnnounceEntry.cc
  6945. * src/DHTPeerAnnounceEntry.h
  6946. * src/DHTPeerAnnounceStorage.cc
  6947. * src/DHTPeerAnnounceStorage.h
  6948. * test/DHTAnnouncePeerMessageTest.cc
  6949. * test/DHTPeerAnnounceEntryTest.cc
  6950. * test/DHTPeerAnnounceStorageTest.cc
  6951. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6952. Changed method signature:
  6953. NameResolver::resolve
  6954. * src/DHTEntryPointNameResolveCommand.cc
  6955. * src/InitiateConnectionCommand.cc
  6956. * src/NameResolver.cc
  6957. * src/NameResolver.h
  6958. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6959. Changed method signature:
  6960. PieceStorage::getAdvertisedPieceIndexes
  6961. * src/DefaultBtInteractive.cc
  6962. * src/DefaultPieceStorage.cc
  6963. * src/DefaultPieceStorage.h
  6964. * src/PieceStorage.h
  6965. * src/UnknownLengthPieceStorage.h
  6966. * test/MockPieceStorage.h
  6967. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6968. Changed method signature:
  6969. SegmentMan::getInFlightSegment
  6970. * src/AbstractCommand.cc
  6971. * src/SegmentMan.cc
  6972. * src/SegmentMan.h
  6973. * test/SegmentManTest.cc
  6974. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6975. Changed method signature:
  6976. DHTAbstractNodeLookupTask::getNodesFromMessage
  6977. * src/DHTAbstractNodeLookupTask.cc
  6978. * src/DHTAbstractNodeLookupTask.h
  6979. * src/DHTNodeLookupTask.cc
  6980. * src/DHTNodeLookupTask.h
  6981. * src/DHTPeerLookupTask.cc
  6982. * src/DHTPeerLookupTask.h
  6983. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6984. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  6985. * src/AbstractCommand.cc
  6986. * src/BtCheckIntegrityEntry.cc
  6987. * src/BtCheckIntegrityEntry.h
  6988. * src/BtFileAllocationEntry.cc
  6989. * src/BtFileAllocationEntry.h
  6990. * src/BtSetup.cc
  6991. * src/BtSetup.h
  6992. * src/CheckIntegrityCommand.cc
  6993. * src/CheckIntegrityEntry.h
  6994. * src/ChecksumCheckIntegrityEntry.cc
  6995. * src/ChecksumCheckIntegrityEntry.h
  6996. * src/DHTSetup.cc
  6997. * src/DHTSetup.h
  6998. * src/DownloadEngine.cc
  6999. * src/FileAllocationCommand.cc
  7000. * src/FileAllocationEntry.h
  7001. * src/RequestGroup.cc
  7002. * src/RequestGroup.h
  7003. * src/RequestGroupMan.cc
  7004. * src/RequestGroupMan.h
  7005. * src/StreamCheckIntegrityEntry.cc
  7006. * src/StreamCheckIntegrityEntry.h
  7007. * src/StreamFileAllocationEntry.cc
  7008. * src/StreamFileAllocationEntry.h
  7009. * src/TrackerWatcherCommand.cc
  7010. * src/a2functional.h
  7011. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7012. Changed method signature:
  7013. BNode::findClosestKNodes, BNode:: enumerateBucket,
  7014. DHTBucket::getGoodNodes,
  7015. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  7016. * src/BNode.cc
  7017. * src/BNode.h
  7018. * src/DHTAbstractNodeLookupTask.cc
  7019. * src/DHTAutoSaveCommand.cc
  7020. * src/DHTBucket.cc
  7021. * src/DHTBucket.h
  7022. * src/DHTBucketRefreshTask.cc
  7023. * src/DHTFindNodeMessage.cc
  7024. * src/DHTGetPeersMessage.cc
  7025. * src/DHTRoutingTable.cc
  7026. * src/DHTRoutingTable.h
  7027. * test/BNodeTest.cc
  7028. * test/DHTBucketTest.cc
  7029. * test/DHTRoutingTableTest.cc
  7030. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7031. In piece selection functions, Pass std::deque<...> by reference rather
  7032. than returning it.
  7033. * src/BitfieldMan.cc
  7034. * src/BitfieldMan.h
  7035. * src/DefaultBtRequestFactory.cc
  7036. * src/DefaultPieceStorage.cc
  7037. * src/Piece.cc
  7038. * src/Piece.h
  7039. * test/BitfieldManTest.cc
  7040. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7041. Implemented rarest piece first piece selection strategy.
  7042. * src/AbstractBtMessage.cc
  7043. * src/AbstractBtMessage.h
  7044. * src/BitfieldMan.cc
  7045. * src/BitfieldMan.h
  7046. * src/BtBitfieldMessage.cc
  7047. * src/BtHaveAllMessage.cc
  7048. * src/BtHaveMessage.cc
  7049. * src/DefaultPieceStorage.cc
  7050. * src/DefaultPieceStorage.h
  7051. * src/PeerInteractionCommand.cc
  7052. * src/PieceStorage.h
  7053. * src/UnknownLengthPieceStorage.h
  7054. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7055. Rewritten readData and writeData.
  7056. * src/MultiDiskAdaptor.cc
  7057. * src/MultiDiskAdaptor.h
  7058. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7059. Move \n out of the message "Usage: ...".
  7060. * src/version_usage.cc
  7061. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7062. Bump up version number to 0.13.2b.
  7063. * configure.ac
  7064. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7065. Added const qualifier to argument Exception& e.
  7066. * src/Logger.h
  7067. * src/SimpleLogger.cc
  7068. * src/SimpleLogger.h
  7069. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7070. Pool connection when CWD, SIZE command fails.
  7071. * src/FtpNegotiationCommand.cc
  7072. * src/FtpNegotiationCommand.h
  7073. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7074. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  7075. * src/HttpResponseCommand.cc
  7076. * src/HttpSkipResponseCommand.cc
  7077. * src/HttpSkipResponseCommand.h
  7078. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7079. Pool connection when a server returns 4xx, 5xx responses.
  7080. * src/HttpNullDownloadCommand.cc
  7081. * src/HttpNullDownloadCommand.h
  7082. * src/HttpResponse.cc
  7083. * src/HttpResponse.h
  7084. * src/HttpResponseCommand.cc
  7085. * src/HttpResponseCommand.h
  7086. * test/HttpResponseTest.cc
  7087. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7088. Print usage when no URL is specifed or bad command-line option is
  7089. specified.
  7090. * src/HelpItemFactory.cc
  7091. * src/help_tags.h
  7092. * src/option_processing.cc
  7093. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7094. Removed duplicate log message.
  7095. * src/AbstractCommand.cc (asyncResolveHostname)
  7096. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7097. Updated man page: --async-dns and --ftp-reuse-connection were added.
  7098. Changed -j option's default value from 5 to 1.
  7099. Added new examples using protocol auto detection feature.
  7100. Removed -T, -M usage where it can be omitted.
  7101. * doc/aria2c.1.txt
  7102. * doc/aria2c.1.html
  7103. * doc/aria2c.1.txt
  7104. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7105. Updated command-line usage text, so that it tells users that they
  7106. can specify any number of torrent files and metalink files in
  7107. command-line.
  7108. * src/version_usage.cc
  7109. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7110. Changed the default value of -j option to 1.
  7111. * src/HelpItemFactory.cc
  7112. * src/option_processing.cc
  7113. * src/usage_text.h
  7114. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7115. Added the ability to reuse connection in FTP and it is enabled by
  7116. default. It can be disabled by --ftp-reuse-connection=false option.
  7117. * src/Command.cc
  7118. * src/DownloadCommand.cc
  7119. * src/FtpDownloadCommand.cc
  7120. * src/FtpDownloadCommand.h
  7121. * src/FtpFinishDownloadCommand.cc
  7122. * src/FtpFinishDownloadCommand.h
  7123. * src/FtpInitiateConnectionCommand.cc
  7124. * src/FtpNegotiationCommand.cc
  7125. * src/FtpNegotiationCommand.h
  7126. * src/HelpItemFactory.cc
  7127. * src/Makefile.am
  7128. * src/Makefile.in
  7129. * src/OptionHandlerFactory.cc
  7130. * src/option_processing.cc
  7131. * src/prefs.h
  7132. * src/usage_text.h
  7133. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7134. Call Command::transitStatus() before calling Command::execute(),
  7135. so that the status change made in execute() is not cleared.
  7136. * src/DownloadEngine.cc
  7137. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7138. Removed forward declaration of SocketCore class.
  7139. * src/HttpDownloadCommand.h
  7140. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7141. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  7142. in InitiateConnectionCommandFactory. They should be set only when
  7143. the protocol is HTTP or HTTPS.
  7144. * src/InitiateConnectionCommandFactory.cc
  7145. * src/RequestGroup.cc
  7146. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7147. Fixed infinite loop in checksum checking.
  7148. * src/IteratableChecksumValidator.cc
  7149. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7150. Set _supportsPersistentConnection to true by default.
  7151. * src/Request.cc
  7152. * src/RequestGroup.cc
  7153. * test/HttpRequestTest.cc
  7154. * test/RequestTest.cc
  7155. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7156. Added timeout to socket pool. The default timeout is 15 seconds,
  7157. which is the same value Apache uses.
  7158. * src/DownloadEngine.cc
  7159. * src/DownloadEngine.h
  7160. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7161. Fixed misuse of multimap::find()
  7162. * src/HttpHeader.cc
  7163. * test/HttpHeaderTest.cc
  7164. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7165. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  7166. option.
  7167. The asynchronous DNS is not capable of IPv6 yet.
  7168. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  7169. least for HTTP download.
  7170. * src/AbstractCommand.cc
  7171. * src/AbstractCommand.h
  7172. * src/AsyncNameResolver.cc
  7173. * src/AsyncNameResolver.h
  7174. * src/DHTEntryPointNameResolveCommand.cc
  7175. * src/DHTEntryPointNameResolveCommand.h
  7176. * src/DownloadEngine.cc
  7177. * src/DownloadEngine.h
  7178. * src/FtpInitiateConnectionCommand.cc
  7179. * src/FtpInitiateConnectionCommand.h
  7180. * src/HelpItemFactory.cc
  7181. * src/HttpInitiateConnectionCommand.cc
  7182. * src/HttpInitiateConnectionCommand.h
  7183. * src/InitiateConnectionCommand.cc
  7184. * src/InitiateConnectionCommand.h
  7185. * src/Makefile.am
  7186. * src/Makefile.in
  7187. * src/NameResolver.cc
  7188. * src/NameResolver.h
  7189. * src/OptionHandlerFactory.cc
  7190. * src/SocketCore.cc
  7191. * src/SocketCore.h
  7192. * src/Util.cc
  7193. * src/Util.h
  7194. * src/option_processing.cc
  7195. * src/prefs.h
  7196. * src/usage_text.h
  7197. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7198. Updated man page: --quiet, --header were added.
  7199. --metalink-servers and --enable-http-keep-alive option were updated.
  7200. * doc/aria2c.1
  7201. * doc/aria2c.1.html
  7202. * doc/aria2c.1.txt
  7203. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7204. Enable HTTP keep-alive by default.
  7205. * src/HelpItemFactory.cc
  7206. * src/option_processing.cc
  7207. * src/usage_text.h
  7208. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7209. Disable http keep-alive if the remote server is not HTTP/1.1.
  7210. * src/HttpConnection.cc
  7211. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7212. Receive content body of 302 response so that the connection can be
  7213. reused later when http keep-alive is enabled.
  7214. * src/HttpNullDownloadCommand.cc
  7215. * src/HttpNullDownloadCommand.h
  7216. * src/HttpResponseCommand.cc
  7217. * src/HttpResponseCommand.h
  7218. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7219. const SharedHandle<Request> -> const SharedHandle<Request>&
  7220. * src/FtpDowndloadCommand.cc
  7221. * src/FtpDowndloadCommand.h
  7222. * src/HttpDownloadCommand.cc
  7223. * src/HttpDownloadCommand.h
  7224. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7225. Fixed the bug that the control file(.aria2 file) is not renamed
  7226. according to tryAutoFileRenaming().
  7227. tryAutoFileRenaming() was rewritten so that if both renamed file and
  7228. its control file exist, use them and continue download.
  7229. The old implementation didn't take into account of control file's
  7230. existence, so basically you couldn't continue download of renamed file.
  7231. * src/BtProgressInfoFile.h
  7232. * src/DefaultBtProgressInfoFile.cc
  7233. * src/DefaultBtProgressInfoFile.h
  7234. * src/NullProgressInfoFile.h
  7235. * src/RequestGroup.cc
  7236. * test/DefaultBtProgressInfoFileTest.cc
  7237. * test/MockBtProgressInfoFile.h
  7238. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7239. Change the default value of --metalink-servers option from `5' to `1'.
  7240. * src/HelpItemFactory.cc
  7241. * src/option_processing.cc
  7242. * src/usage_text.h
  7243. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7244. Reimplemented transparent metalink using Accept request header.
  7245. * src/HttpRequest.cc
  7246. * src/HttpRequest.h
  7247. * src/HttpRequestCommand.cc
  7248. * src/Metalink2RequestGroup.cc
  7249. * src/RequestGroup.cc
  7250. * src/RequestGroup.h
  7251. * test/HttpRequestTest.cc
  7252. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7253. Bump up version number to 0.13.2a
  7254. * configure.ac
  7255. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7256. Updated configure.ac using the result of autoscan.
  7257. * configure.ac
  7258. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7259. Fixed compilation error without gcrypt/openssl.
  7260. * src/DownloadCommand.cc
  7261. * src/DownloadCommand.h
  7262. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7263. Reorganized version information so that it can be displayed in a
  7264. standard terminal screen without scrolling.
  7265. Removed http, ftp from Configuration section, because they are always
  7266. enabled.
  7267. * src/FeatureConfig.cc
  7268. * src/FeatureConfig.h
  7269. * src/main.cc
  7270. * src/messageDigest.cc
  7271. * src/messageDigest.h
  7272. * src/version_usage.cc
  7273. * test/FeatureConfigTest.cc
  7274. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7275. Masked user ID in log.
  7276. * src/FtpConnection.cc (sendUser)
  7277. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7278. Removed query part from filename in HTTP download. The query part means
  7279. the substring after "?" in URL. Firefox seems do the same thing.
  7280. A query part is sometimes very long and not suitable to filename,
  7281. so I think it is better to remove it from filename.
  7282. * src/HttpRequest.cc
  7283. * src/HttpRequest.h
  7284. * src/Request.cc
  7285. * src/Request.h
  7286. * test/HttpRequestTest.cc
  7287. * test/RequestTest.cc
  7288. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7289. Rewritten Exception class. Throw exception object, not its pointer and
  7290. catch by reference, so that remove problematic delete operator for
  7291. catched exception.
  7292. * src/Exception.cc
  7293. * src/Exception.h
  7294. * test/ExceptionTest.cc
  7295. * src/*: All files throwing/catching exception.
  7296. * test/*: All files throwing/catching exception.
  7297. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7298. Now auto protocol detection is enabled without -Z option.
  7299. But there is a important difference between with/without -Z optoin.
  7300. For example, if you type:
  7301. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  7302. then, aria2 interprets there are 3 request groups:
  7303. (1) http://host/file, http://mirror/file <-- multi-source download
  7304. (2) file1.torrent
  7305. (3) file2.metalink
  7306. On the other hand, if you invoke above command with -Z option, it is
  7307. interpreted as 4 request groups:
  7308. (1) http://host/file
  7309. (2) file1.torrent
  7310. (3) file2.metalink
  7311. (4) http://mirror/file
  7312. I think usually user don't mix multi-source URLs and torrent files, so
  7313. there is no big problem here.
  7314. * src/main.cc
  7315. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7316. Fixed the bug that causes segmentaion fault when reading XML containing
  7317. unescapsed character like '&'.
  7318. Also a modification was made which avoids adding unnecessary
  7319. characters stack and appending unused string.
  7320. * src/ExpatMetalinkProcessor.cc
  7321. * src/FileMetalinkParserState.h
  7322. * src/FilesMetalinkParserState.h
  7323. * src/FinMetalinkParserState.h
  7324. * src/HashMetalinkParserState.h
  7325. * src/InitialMetalinkParserState.h
  7326. * src/LanguageMetalinkParserState.h
  7327. * src/MetalinkMetalinkParserState.h
  7328. * src/MetalinkParserState.h
  7329. * src/MetalinkParserStateMachine.cc
  7330. * src/MetalinkParserStateMachine.h
  7331. * src/OSMetalinkParserState.h
  7332. * src/PieceHashMetalinkParserState.h
  7333. * src/PiecesMetalinkParserState.h
  7334. * src/ResourcesMetalinkParserState.h
  7335. * src/SizeMetalinkParserState.h
  7336. * src/SkipTagMetalinkParserState.h
  7337. * src/URLMetalinkParserState.h
  7338. * src/VerificationMetalinkParserState.h
  7339. * src/VersionMetalinkParserState.h
  7340. * src/XML2SAXMetalinkProcessor.cc
  7341. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7342. Added StringFormat class, which internally calls vasprintf.
  7343. operator<< is defined for this class, so it can be used with iostream
  7344. classes nicely. SimpleLogger and following functions are rewritten
  7345. using StringFormat class.
  7346. Besides, now Logger class's methods are non-const, many classes
  7347. that has a const Logger* as a member variable are modified to remove
  7348. const qualifier from the variable declaration.
  7349. * src/HelpItemFactory.cc
  7350. * src/Request.cc
  7351. * src/SimpleLogger.cc
  7352. * src/StringFormat.cc
  7353. * src/StringFormat.h
  7354. * src/Util.cc
  7355. * src/option_processing.cc
  7356. * src/version_usage.cc
  7357. * test/StringFormatTest.cc
  7358. * src/*.h: The classes that has const Logger* as a member variable.
  7359. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7360. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  7361. failed. Also fixed memory link when exception is thrown there.
  7362. * src/main.cc (AccRequestGroup)
  7363. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7364. Added build-in "Accept-Features" support. For now only "metalink" is
  7365. used in this header field.
  7366. This "metalink" value is removed from the list when connecting URLs
  7367. fed by metalink file to avoid loop in "transparent" metlaink.
  7368. * src/HttpRequest.cc
  7369. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  7370. header is also held in this variable. Also renamed setUserHeaders as
  7371. addHeader and it was rewritten to add header not just to clear the old
  7372. value.
  7373. * src/HttpRequestCommand.cc
  7374. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  7375. from "Accept-Features" list.
  7376. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  7377. default.
  7378. * src/RequestGroup.h
  7379. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  7380. * src/a2functional.h: Included <string> because Concat class depends on
  7381. it.
  7382. * test/HttpRequestTest.cc
  7383. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7384. Added comment
  7385. * src/RequestGroup.cc (createNextCommand)
  7386. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7387. Capitalized METHOD_GET and METHOD_HEAD
  7388. * src/Request.cc
  7389. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7390. Added getDownloadResults() method
  7391. * src/RequestGroupMan.cc
  7392. * src/RequestGroupMan.h
  7393. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7394. Fixed the bug that aria2 exits when commands is empty() but
  7395. _routineCommands are not.
  7396. * src/DownloadEngine.cc
  7397. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7398. Use the default value pulled from Option object in HelpItemFactory.
  7399. except options whose defualt value is embedded in a usage text.
  7400. * src/HelpItemFactory.cc
  7401. * src/HelpItemFactory.h
  7402. * src/option_processing.cc
  7403. * src/version_usage.cc
  7404. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7405. Added --quiet option to make aria2 quiet (no console output).
  7406. --quiet option is tagged with ADVANCED.
  7407. * src/HelpItemFactory.cc
  7408. * src/LogFactory.cc
  7409. * src/LogFactory.h
  7410. * src/MultiUrlRequestInfo.cc
  7411. * src/MultiUrlRequestInfo.h
  7412. * src/NullStatCalc.h: New class. This class prints nothing.
  7413. * src/OptionHandlerFactory.cc
  7414. * src/main.cc
  7415. * src/option_processing.cc
  7416. * src/prefs.h
  7417. * src/usage_text.h
  7418. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7419. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  7420. * src/HelpItemFactory.cc (createHelpItems):
  7421. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7422. Fixed compilation error in ExpatMetalinkProcessor.cc
  7423. * src/ExpatMetalinkProcessor.cc
  7424. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7425. Reuse socket if the origin server supports HTTP keep-alive and
  7426. --enable-http-keep-alive or --enable-http-pipelining is given.
  7427. The current implementation doesn't reuse the connections established
  7428. against proxy server.
  7429. * src/AbstractCommand.cc
  7430. * src/DownloadEngine.cc
  7431. * src/DownloadEngine.h
  7432. * src/HttpDownloadCommand.cc
  7433. * src/HttpInitiateConnectionCommand.cc
  7434. * src/HttpResponseCommand.cc
  7435. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7436. Rewritten HTTP keep-alive and pipelining routine.
  7437. * src/AbstractCommand.cc
  7438. * src/HttpConnection.cc
  7439. * src/HttpDownloadCommand.cc
  7440. * src/HttpRequest.cc
  7441. * src/HttpRequestCommand.cc
  7442. * src/HttpResponseCommand.cc
  7443. * src/Request.cc
  7444. * src/Request.h
  7445. * src/RequestGroup.cc
  7446. * test/HttpRequestTest.cc
  7447. * test/HttpResponseTest.cc
  7448. * test/RequestTest.cc
  7449. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7450. Added missing setUserHeaders call
  7451. * src/HttpRequestCommand.cc
  7452. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7453. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  7454. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  7455. waste of time because it is more likey false.
  7456. * src/FileAllocationDispatcherCommand.cc (execute)
  7457. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7458. Now HTTP status and version are a member variable of HttpHeader.
  7459. HTTP status is processed as a string, not integer.
  7460. * src/AbstractProxyResponseCommand.cc
  7461. * src/HttpConnection.cc
  7462. * src/HttpHeader.cc
  7463. * src/HttpHeader.h
  7464. * src/HttpHeaderProcessor.cc
  7465. * src/HttpHeaderProcessor.h
  7466. * src/HttpResponse.cc
  7467. * src/HttpResponse.h
  7468. * test/HttpHeaderProcessorTest.cc
  7469. * test/HttpResponseTest.cc
  7470. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7471. Added --header option. You can specify any number of additional HTTP headers
  7472. like:
  7473. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  7474. Unlike other commad-line option, you can use --header option multiple times.
  7475. * src/HelpItemFactory.cc
  7476. * src/HttpRequest.{cc, h}
  7477. * src/HttpRequestCommand.cc
  7478. * src/OptionHandlerFactory.cc
  7479. * src/OptionHandlerImpl.h
  7480. * src/option_processing.cc
  7481. * src/prefs.h
  7482. * src/usage_text.h
  7483. * test/HttpRequestTest.cc (testUserHeaders)
  7484. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7485. Eliminates the time lag between sequential downloads and commands in
  7486. the same RequestGroup.
  7487. In old implementation, aria2 occasionally waits 1 seconds before
  7488. executing next command or RequestGroup.
  7489. This is really a waste of time, and new implementation eliminates
  7490. this unnecessary time lag.
  7491. * src/AbstractCommand.cc
  7492. * src/AutoSaveCommand.cc
  7493. * src/CheckIntegrityCommand.cc
  7494. * src/Command.{cc, h}
  7495. * src/DownloadEngine.{cc, h}
  7496. * src/DownloadEngineFactory.cc
  7497. * src/FileAllocationCommand.cc
  7498. * src/FileAllocationDispatcherCommand.cc
  7499. * src/FillRequestGroupCommand.cc
  7500. * src/FtpInitiateConnectionCommand.cc
  7501. * src/HaveEraseCommand.cc
  7502. * src/HttpInitiateConnectionCommand.cc
  7503. * src/HttpResponseCommand.cc
  7504. * src/RealtimeCommand.cc
  7505. * src/RequestGroup.cc
  7506. * src/RequestGroupMan.cc
  7507. * src/StreamFileAllocationEntry.cc
  7508. * src/TimeBasedCommand.{cc, h}
  7509. * src/TimedHaltCommand.cc
  7510. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7511. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  7512. keyword explicit and SharedHandle's default constructor initializes
  7513. its internal obj to null, old implementation initializes it using
  7514. obj's default constructor.
  7515. To assign null, write SharedHandle<T> x(...); x.reset();
  7516. TODO: test/SharedHandleTest.cc needs more tests.
  7517. * src/SharedHandle.h
  7518. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7519. Fixed type in man page.
  7520. * doc/aria2c.1.txt
  7521. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7522. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  7523. * src/SimpleLogger.{cc, h}
  7524. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7525. Implemented auto protocol detection.
  7526. Now you can do:
  7527. aria2c -Z http://host/file file1.torrent file2.metalink
  7528. (Note: -Z option is required for auto protcol detection.)
  7529. Then aria2c downloads 3 files simultaneously:
  7530. 1. http://host/file
  7531. 2. file1.torrent <-- read local torrent file
  7532. 3. file2.metalink <-- read local Metalink file.
  7533. Same thing goes with -i option. Assume your uris.txt contans:
  7534. http://host/file
  7535. file1.torrent
  7536. file2.metalink
  7537. Then you can do: aria2c -i uris.txt
  7538. (Note: -Z option is not needed if -i option is given.)
  7539. * src/main.cc
  7540. * src/ProtocolDetector.{cc, h}
  7541. * test/ProtocolDetectorTest.cc
  7542. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7543. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  7544. installed
  7545. * src/ARC4Encryptor.h
  7546. * src/ARC4Decryptor.h
  7547. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7548. Renamed argument from 'errno' to 'err', since errno is confused with
  7549. errno defined in errno.h.
  7550. * src/LibgcryptARC4Decryptor.h
  7551. * src/LibgcryptARC4Context.h
  7552. * src/LibgcryptDHKeyExchange.h
  7553. * src/LibgcryptARC4Encryptor.h
  7554. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7555. Rewritten choking algorithm.
  7556. * src/PeerChokeCommand.{cc, h}
  7557. * src/BtInterestedMessage.cc
  7558. * src/PeerSessionResource.{cc, h}
  7559. * src/DefaultPeerStorage.{cc, h}
  7560. * src/BtNotInterestedMessage.cc
  7561. * src/DefaultBtMessageDispatcher.{cc, h}
  7562. * src/BtMessageDispatcher.h
  7563. * src/Peer.{cc, h}
  7564. * src/BtLeecherStateChoke.{cc, h}
  7565. * src/BtSetup.cc
  7566. * src/BtSeederStateChoke.{cc, h}
  7567. * src/PeerStorage.h
  7568. * test/MockPeerStorage.h
  7569. * test/MockBtMessageDispatcher.h
  7570. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7571. Fixed compilation error on x84-64 platform.
  7572. * src/AuthConfig.cc: Included ostream.
  7573. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7574. Rewritten getBasename() and getDirname(), without standard library
  7575. basename(), dirname().
  7576. * src/File.cc
  7577. * test/FileTest.cc
  7578. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7579. Added Simplified Chinese translation. Also updated the following
  7580. translations: Polish, Dutch, German. Great thanks to all translators.
  7581. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7582. Suppress content-range error when 'Content-Range' response header
  7583. doesn't contains bytes-unit specifier 'bytes'
  7584. * src/HttpHeader.cc (getRange)
  7585. * test/HttpHeaderTest.cc
  7586. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7587. Fixed compilation error with g++-4.3
  7588. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7589. Added missing include files for MinGW
  7590. * test/HttpHeaderProcessorTest.cc
  7591. * test/DHTRoutingTableSerializerTest.cc
  7592. * test/DHTRoutingTableDeserializerTest.cc
  7593. * test/UriListParserTest.cc
  7594. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7595. Now download line is printed nicely with no garbage at the end of
  7596. line. I use ioctl to get the columns of terminal.
  7597. If stdout is redirected to another device, instead of carriage return,
  7598. end of line '\n' character is used. This is feature request#1909659
  7599. * src/ConsoleStatCalc.cc (calculateStat)
  7600. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7601. Included a2time.h
  7602. * src/DHTMessageDispatcher.h
  7603. * src/DHTMessageEntry.h
  7604. * src/DHTReplaceNodeTask.h
  7605. * src/DHTMessageTracker.h
  7606. * src/Util.h
  7607. * src/CookieBox.h
  7608. * src/SocketCore.h
  7609. * src/DefaultBtMessageDispatcher.h
  7610. * src/SocketCore.cc
  7611. * src/Util.cc
  7612. * src/DHTPingTask.h
  7613. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7614. Fixed high memory footprint when DHT is enabled.
  7615. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  7616. queued than it is processed and the queue is getting longer. As a
  7617. consequence, momory usage is increased.
  7618. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  7619. replacement cache in DHTBucket which is described in Kademlia paper.
  7620. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  7621. DHTReplaceNodeTask.
  7622. * src/DHTBucket.{h, cc}
  7623. (cacheNode): New function.
  7624. (getCachedNodes): New function.
  7625. (dropNode): Push back cached node to _nodes.
  7626. * test/DHTBucketTest.cc
  7627. (testCacheNode): New test
  7628. (testDropNode): New test
  7629. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7630. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  7631. the unused 4KB memory when ssl is not used.
  7632. * src/SocketCore.cc
  7633. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7634. Added summary log for peer announce storage.
  7635. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  7636. Removed cast
  7637. * src/DefaultPeerStorage.cc (addPeer)
  7638. Log exception message
  7639. * src/DHTMessageTracker.cc (handleTimeout)
  7640. Fixed casting
  7641. * test/HttpRequestTest.cc
  7642. * test/MetalinkProcessorTest.cc
  7643. * test/PieceTest.cc
  7644. * test/MetalinkEntryTest.cc
  7645. * test/SequenceTest.cc
  7646. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7647. * src/ParameterizedStringParser.cc (createLoop):
  7648. Removed unused variable sstep.
  7649. * src/AlphaNumberDecorator.h (decode): Rewritten.
  7650. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7651. * src/Util.{h, cc}
  7652. (parseUInt): New function.
  7653. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  7654. The actual range is uint32_t.
  7655. * test/UtilTest.cc
  7656. * src/ParameterizedStringParser.cc:
  7657. Use Util::parseUInt() for loop variables.
  7658. * test/ParameterizedStringParserTest.cc
  7659. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  7660. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7661. Rewritten the functions for binding port.
  7662. * src/DHTConnectionImpl.{h, cc}
  7663. * src/PeerListenCommand.{h, cc}
  7664. * src/DHTSetup.cc
  7665. * src/BtSetup.cc
  7666. * test/DHTConnectionImplTest.cc
  7667. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7668. type cleanup for allmost all remaining files.
  7669. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7670. Type clarification
  7671. * src/PeerSessionResource.{h, cc}
  7672. * src/DefaultPieceStorage.{h, cc}
  7673. * src/Peer.{h, cc}
  7674. * test/PeerSessionResourceTest.cc
  7675. Use div function
  7676. * src/BtPieceMessage.cc (erasePieceOnDisk)
  7677. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7678. Type clarification
  7679. * src/DefaultPeerStorage.{h, cc}
  7680. * test/DefaultPeerStorageTest.cc
  7681. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7682. Type clarification: size_t for length or size, uint64_t for file
  7683. length, off_t for file offset.
  7684. * src/DefaultBtProgressInfoFile.cc
  7685. * src/DefaultBtContext.{h, cc}
  7686. * src/DefaultBtInteractive.cc
  7687. * src/DownloadCommand.{h, cc}
  7688. * src/IteratableChunkChecksumValidator.{h, cc}
  7689. * src/SegmentMan.{h, cc}
  7690. * src/SingleFileDownloadContext.{h, cc}
  7691. * src/IteratableChecksumValidator.{h, cc}
  7692. * src/BtContext.h
  7693. * src/IteratableValidator.h
  7694. * src/DownloadContext.h
  7695. * test/SingleFileDownloadContextTest.cc
  7696. * test/DefaultBtContextTest.cc
  7697. * test/MockBtContext.h
  7698. * test/Metalink2RequestGroupTest.cc
  7699. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7700. Type clarification: size_t for length or size, uint64_t for file
  7701. length, off_t for file offset.
  7702. * src/PiecedSegment.cc
  7703. * src/GrowSegment.h
  7704. * src/DefaultBtRequestFactory.h
  7705. * src/DefaultBtProgressInfoFile.cc
  7706. * src/UnknownLengthPieceStorage.h
  7707. * src/DefaultPieceStorage.cc
  7708. * src/UnknownLengthPieceStorage.cc
  7709. * src/DefaultBtInteractive.cc
  7710. * src/GrowSegment.cc
  7711. * src/BitfieldMan.h
  7712. * src/DownloadCommand.cc
  7713. * src/BtRequestFactory.h
  7714. * src/PiecedSegment.h
  7715. * src/DefaultPieceStorage.h
  7716. * src/Piece.cc
  7717. * src/DefaultBtRequestFactory.cc
  7718. * src/PieceStorage.h
  7719. * src/Segment.h
  7720. * src/Piece.h
  7721. * src/BitfieldMan.cc
  7722. * src/Util.cc
  7723. * test/DefaultBtProgressInfoFileTest.cc
  7724. * test/DefaultPieceStorageTest.cc
  7725. * test/MockPieceStorage.h
  7726. * test/BtRequestMessageTest.cc
  7727. * test/DefaultBtMessageDispatcherTest.cc
  7728. * test/BitfieldManTest.cc
  7729. * test/GrowSegmentTest.cc
  7730. * test/PieceTest.cc
  7731. * test/SegmentTest.cc
  7732. * test/SegmentManTest.cc
  7733. * test/DefaultBtRequestFactoryTest.cc
  7734. * test/MockBtRequestFactory.h
  7735. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7736. Fixed compilation error with --disable-nls
  7737. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  7738. in gettext.h causes the problem.
  7739. * src/common.h
  7740. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7741. Removed subPiece related functions.
  7742. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  7743. * src/DefaultPieceStorage.{h, cc}
  7744. * test/PieceTest.cc
  7745. * test/DefaultPieceStorageTest.cc
  7746. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7747. Use unsigned char for data store.
  7748. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7749. Bump up version number to 0.13.0+1
  7750. * configure.ac
  7751. * Release 0.13.0+1
  7752. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7753. Changed inactive connection timeout to 120.
  7754. To accept more mulually interested peers, disconnect peer when there
  7755. is no interest between us after certain time passed.
  7756. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  7757. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7758. Fixed the bug that aria2 only uses first dns server in resolv.conf
  7759. when compiled with async DNS support.
  7760. * src/DownloadEngine.cc
  7761. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  7762. value '10' will be a little bit short when some DNS servers are
  7763. offline and several DNS servers are tried. It should be configured
  7764. by command-line option.
  7765. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7766. Merged Ross's mingw patch.
  7767. * src/DHTRoutingTableDeserializer.cc
  7768. * src/DHTRoutingTableSerializer.cc
  7769. * src/Platform.{h, cc}
  7770. * src/timegm.h
  7771. * src/gettimeofday.h
  7772. * src/getaddrinfo.h
  7773. * src/SocketCore.h
  7774. * src/common.h
  7775. * src/inet_aton.h
  7776. * src/DownloadEngine.h
  7777. * src/gai_strerror.h
  7778. * src/a2netcompat.h
  7779. * configure.ac
  7780. * configure
  7781. * aclocal.m4
  7782. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7783. Included missing iostream.
  7784. * test/AllTest.cc
  7785. * test/BtDependencyTest.cc
  7786. * test/BtExtendedMessageTest.cc
  7787. * test/DHTConnectionImplTest.cc
  7788. * test/DHTMessageFactoryImplTest.cc
  7789. * test/DHTMessageTrackerEntryTest.cc
  7790. * test/DHTNodeTest.cc
  7791. * test/DHTRoutingTableSerializerTest.cc
  7792. * test/DefaultBtAnnounceTest.cc
  7793. * test/DefaultBtContextTest.cc
  7794. * test/DefaultBtMessageFactoryTest.cc
  7795. * test/DefaultExtensionMessageFactoryTest.cc
  7796. * test/HandshakeExtensionMessageTest.cc
  7797. * test/HttpResponseTest.cc
  7798. * test/MetalinkProcessorTest.cc
  7799. * test/MultiFileAllocationIteratorTest.cc
  7800. * test/SocketCoreTest.cc
  7801. * test/UTPexExtensionMessageTest.cc
  7802. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7803. Reorganized includes.
  7804. * src/NameResolver.cc
  7805. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7806. Fixed compilation error without ares/c-ares
  7807. * src/NameResolver.h:
  7808. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7809. Added a test for large file.
  7810. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  7811. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7812. Fixed the bug that file size is ignored if size > INT32_MAX
  7813. * src/SizeMetalinkParserState.cc (endElement):
  7814. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7815. Bump up version number to 0.13.0
  7816. * configure.ac
  7817. * Release 0.13.0
  7818. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7819. Updated Makfefile.am to make 'make dist' work.
  7820. Now packaged filename is aria2c-VERSION.tar.bz2.
  7821. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  7822. Added LICENSE.OpenSSL to dist_noinst_DATA.
  7823. Large file support is now configured by configure script.
  7824. * configure.ac
  7825. Removed unsused source files
  7826. * src/
  7827. * test/
  7828. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  7829. Peer.h and BtContext.h respectively.
  7830. * src/Peer.h
  7831. * src/BtContext.h
  7832. Updated translations.
  7833. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  7834. translations. Great thanks to all translators!;)
  7835. * po/*.{po, gmo}
  7836. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7837. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  7838. statically declared sha1 MessageDigestContext.
  7839. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  7840. initialization of short-lived MessageDigestContext.
  7841. * src/MessageDigestHelper.{h, cc}
  7842. * src/main.cc
  7843. Now DownloadCommand has a reference to MessageDigestContext to avoid
  7844. the initialization of MessageDigestContext every time in validating
  7845. chunk checksum.
  7846. * src/DownloadCommand.{h, cc}
  7847. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7848. Add a file descriptor which connected to fast peer(latency<1500) to
  7849. select(). This change reduced CPU load.
  7850. * src/PeerInteractionCommand.cc
  7851. * src/DefaultBtInteractive.{h, cc}
  7852. * src/BtInteractive.h
  7853. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7854. Fixed the previous insufficient fix for possible busy loop.
  7855. * src/MSEHandshake.cc (identifyHandshakeType)
  7856. Removed unused functions.
  7857. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  7858. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7859. Fixed possible busy loop if first 20 bytes are not received for a few
  7860. minutes.
  7861. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  7862. * src/ReceiverMSEHandshakeCommand.cc
  7863. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7864. Fixed compilation error
  7865. * src/ExpatMetalinkProcessor.cc
  7866. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7867. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  7868. * src/DHTBucket.cc
  7869. Removed unnecessary cast.
  7870. * src/HandshakeExtensionMessage.cc
  7871. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7872. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  7873. is missing.
  7874. * src/OptionHandlerFactory.cc
  7875. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7876. Fixed the bug that HAVE message is not sent for a piece they are
  7877. downloaded fom http/ftp server before any BitTorrent handshake is done
  7878. with peers.
  7879. * src/DefaultBtInteractive.cc
  7880. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7881. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  7882. * src/Makefile.am
  7883. * src/Makefile.in
  7884. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7885. Updated README. Added html version of README and man page.
  7886. * README
  7887. * README.html
  7888. * readme2html: Shell script to generate README.html from README using
  7889. asciidoc.
  7890. * doc/aria2c.1.html
  7891. * doc/makeman: Added the line to generate aria2c.1.html
  7892. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7893. Fixed offset calculation.
  7894. * src/LibgcryptDHKeyExchange.h (computeSecret)
  7895. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7896. Rewritten itos and uitos using template. llitos and ullitos are
  7897. replaced with itos and uitos respectively.
  7898. * src/Util.{h, cc}
  7899. * test/UtilTest.cc
  7900. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7901. Fixed the bug that DH key exchange sometimes fails due to bad handling
  7902. of the number of bytes required for storing public key and shared
  7903. secret.
  7904. * src/LibgcryptDHKeyExchange.h
  7905. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  7906. * src/MSEHandshake.cc
  7907. * test/DHKeyExchangeTest.cc
  7908. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7909. Removed since they are not used.
  7910. * src/Xml2MetalinkProcessor.{h, cc}
  7911. * src/Socket.cc
  7912. * src/SegmentSplitter.{h, cc}
  7913. * test/Xml2MetalinkProcessorTest.cc
  7914. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7915. Fixed the bug that prevents aria2 from stopping other than by pressing
  7916. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  7917. option. aria2 doesn't stop even after --seed-time is satisfied and
  7918. continues to output blank lines in the console.
  7919. * src/ReceiverMSEHandshakeCommand.cc
  7920. * src/PeerReceiveHandshakeCommand.cc
  7921. * src/PeerListenCommand.cc
  7922. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7923. Bump up version number to 0.13.0rc
  7924. * configure.ac
  7925. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7926. Updated man page and some usage text.
  7927. * doc/aria2c.1.txt
  7928. * src/usage_text.h
  7929. * po/*.{po, gmo}
  7930. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7931. Updated translations. Added Finnish and Hebrew translations.
  7932. Great thanks to all translators!
  7933. * po/*.{po, gmo}
  7934. * po/LINGUAS
  7935. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7936. Log more detailed information about each message.
  7937. * src/DHTQueryMessage.{h, cc}
  7938. * src/DHTGetPeersMessage.{h, cc}
  7939. * src/DHTFindNodeReplyMessage.{h, cc}
  7940. * src/DHTGetPeersReplyMessage.{h, cc}
  7941. * src/DHTAnnouncePeerMessage.{h, cc}
  7942. * src/DHTResponseMessage.{h, cc}
  7943. * src/DHTFindNodeMessage.{h, cc}
  7944. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7945. Use constants defined in prefs.h
  7946. * src/option_processing.cc
  7947. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7948. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  7949. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7950. Make room for future enchancements for IPv6 addresses.
  7951. Bump up version number of dht.dat file format to 2.
  7952. Not compatible with previous version.
  7953. * src/DHTRoutingTableSerializer.cc
  7954. * src/DHTRoutingTableDeserializer.cc
  7955. * test/DHTRoutingTableSerializerTest.cc
  7956. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7957. Added handling for the return values from
  7958. PeerMessageUtil::createcompact().
  7959. * src/DefaultBtContext.cc (computeFastSet):
  7960. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7961. Fixed abort when peer's ip address is IPv4-mapped address.
  7962. * src/DefaultBtContext.cc (computeFastSet)
  7963. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  7964. cannot handle IPv4-mapped addresses.
  7965. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  7966. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7967. Proper return value handling for OpenSSL functions.
  7968. * src/LibsslDHKeyExchange.h
  7969. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7970. Random bytes generation using libgcrypt and OpenSSL.
  7971. * src/DHTUtil.{h, cc}
  7972. * test/DHTUtilTest.cc
  7973. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7974. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  7975. received.
  7976. * src/DHTMessageReceiver.cc (receiveMessage)
  7977. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7978. Fixed the bug that a return code is always 0. BUG#1897704
  7979. If error occurred during the download or there exist unfinished
  7980. downloads, aria2 returns with code 1.
  7981. * src/RequestGroupMan.{h, cc}
  7982. * src/MultiUrlRequestInfo.{h, cc}
  7983. * src/main.cc
  7984. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7985. IPv6 support for SocketCore class.
  7986. TODO: In SocketCore::establishConnection(), this is insufficient to
  7987. determin the failure of connect() here because the socket is
  7988. non-blocking state. The next addresses should be tried after select().
  7989. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  7990. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  7991. instead which address family independent.
  7992. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  7993. information in a compact peer format which is for IPv4 only.
  7994. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  7995. this is a spec of BitTorrent protocol.
  7996. * src/SocketCore.{h, cc}
  7997. * src/PeerMessageUtil.cc
  7998. * test/SocketCoreTest.cc
  7999. * test/PeerMessageUtilTest.cc
  8000. * test/DHTConnectionImplTest.cc
  8001. Handle IPv4-mapped addresses.
  8002. * src/DHTNode.cc: Now identity is determined by node id.
  8003. * src/DHTMessageTrackerEntry.cc
  8004. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  8005. should handle it.
  8006. * src/DHTRoutingTableDeserializer.cc
  8007. * src/DHTMessageFactoryImpl.cc
  8008. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8009. Change the unit of --stop option from a minute to a second.
  8010. * src/usage_text.h
  8011. * src/DownloadEngineFactory.cc
  8012. * src/OptionHandlerFactory.cc
  8013. * src/message.h
  8014. * src/TimedHaltCommand.cc
  8015. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8016. Make listening socket non-block mode.
  8017. * src/FtpConnection.cc
  8018. * src/FtpNegotiationCommand.{h, cc}
  8019. * src/PeerListenCommand.cc
  8020. Fixed the bug that cause slow ftp negotiation.
  8021. * src/FtpNegotiationCommand.{h, cc}
  8022. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8023. Added basic tag to --enable-dht, --dht-listen-port option.
  8024. * src/HelpItemFactory.cc (createHelpItems)
  8025. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8026. Updated text.
  8027. * src/usage_text.h
  8028. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8029. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  8030. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8031. Determin _threadtholdSpeed in each constructor for
  8032. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  8033. * src/ActivePeerConnectionCommand.{h, cc}
  8034. * src/PeerReceiveHandshakeCommand.{h, cc}
  8035. * src/BtSetup.cc
  8036. * src/BtConstants.h
  8037. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8038. Added --bt-min-crypto-level and --bt-require-crypto options.
  8039. * src/OptionHandlerFactory.cc
  8040. * src/MSEHandshake.cc
  8041. * src/HelpItemFactory.cc
  8042. * src/option_processing.cc
  8043. * src/ReceiverMSEHandshakeCommand.cc
  8044. * src/prefs.h
  8045. * src/DefaultBtAnnounce.cc
  8046. * src/InitiatorMSEHandshakeCommand.cc
  8047. * src/usage_text.h
  8048. * test/MSEHandshakeTest.cc
  8049. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8050. Bump version number to 0.13.0b
  8051. * configure.ac
  8052. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8053. Updated doc.
  8054. * src/MessageDigestHelper.h:
  8055. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8056. Use raw message digest as a token instead of its hexadecimal
  8057. representation.
  8058. * src/DHTTokenTracker.cc (generateToken)
  8059. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8060. Added Message Stream Encryption(MSE) support.
  8061. Currently, aria2 accepts incoming connections with Obfuscation Header
  8062. and legacy BitTorrent Header and establishes connections with
  8063. Obfuscation Header first and if failed then retry with legacy
  8064. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  8065. choose ARC4. The new option to change the default behavior is planned.
  8066. For tracker extension, "supportcrypto=1" is added statically.
  8067. * src/PeerInitiateConnectionCommand.{h, cc}
  8068. * src/PeerConnection.{h, cc}
  8069. * src/HandleRegistry.h
  8070. * src/SocketCore.h
  8071. * src/PeerReceiveHandshakeCommand.{h, cc}
  8072. * src/BtRegistry.{h, cc}
  8073. * src/PeerListenCommand.cc
  8074. * src/InitiatorMSEHandshakeCommand.{h, cc}
  8075. * src/ReceiverMSEHandshakeCommand.{h, cc}
  8076. * src/MSEHandshake.{h, cc}
  8077. * src/ARC4Encryptor.h
  8078. * src/ARC4Decryptor.h
  8079. * src/LibgcryptARC4Encryptor.h
  8080. * src/LibgcryptARC4Decryptor.h
  8081. * src/LibgcryptARC4Context.h
  8082. * src/LibsslARC4Encryptor.h
  8083. * src/LibsslARC4Decryptor.h
  8084. * src/LibsslARC4Context.h
  8085. * src/DHKeyExchange.h
  8086. * src/LibgcryptDHKeyExchange.h
  8087. * src/LibsslDHKeyExchange.h
  8088. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  8089. * test/DefaultBtAnnounceTest.cc
  8090. * test/ARC4Test.cc
  8091. * test/DHKeyExchangeTest.cc
  8092. Removed prepareForRetry() because it is not used.
  8093. * src/PeerAbstractCommand.{h, cc}
  8094. * src/PeerInteractionCommand.{h, cc}
  8095. * src/PeerInitiateConnectionCommand.{h, cc}
  8096. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8097. Added the ability to load nodes from torrent file. These nodes are
  8098. added to the routing table when downloading that torrent.
  8099. * src/BtContext.h
  8100. * src/DefaultBtContext.{h, cc}
  8101. * src/DHTSetup.cc
  8102. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  8103. hostname and port pair, and resolves all of them.
  8104. * src/NameResolver.{h, cc}: Added reset().
  8105. * src/RequestGroup.cc
  8106. * test/DefaultBtContextTest.cc
  8107. * test/MockBtContext.h
  8108. Removed assert() from DefaultBtContext and throw exception instead.
  8109. * src/DefaultBtContext.cc
  8110. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8111. Fixed segmentation fault bug when exiting if dht is disabled.
  8112. * src/RequestGroup.cc
  8113. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8114. Fixed typo in log message and define the message in message.h
  8115. * src/TimedHaltCommand.cc
  8116. * src/message.h
  8117. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8118. Included RecoverableException.h to fix compilation error.
  8119. * test/DHTMessageFactoryImplTest.cc
  8120. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8121. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  8122. * test/DHTPingMessageTest.cc
  8123. * test/DHTGetPeersMessageTest.cc
  8124. * test/DHTFindNodeMessageTest.cc
  8125. * test/DHTAnnouncePeerMessageTest.cc
  8126. * test/MockDHTMessage.h
  8127. * test/MockDHTMessageFactory.h
  8128. * test/MockDHTMessageDispatcher.h: New class.
  8129. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8130. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  8131. virtual.
  8132. * src/DHTMessageDispatcher.h
  8133. * src/DHTMessageDispatcherImpl.{h, cc}
  8134. * src/DHTSetup.cc
  8135. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8136. Adding handling of DHT error message. Just log error message and
  8137. throw exception.
  8138. * src/DHTMessageFactoryImpl.cc
  8139. * test/DHTMessageFactoryImplTest.cc
  8140. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8141. Added handling of dynamic cast failure.
  8142. * src/DHTNodeLookupTask.cc
  8143. * src/DHTPeerLookupTask.cc
  8144. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8145. Added the ability to stop aria2 itself when given time has passed
  8146. from start. Use --stop option to specify time in minutes.
  8147. When 0 is given, this feature is disabled.
  8148. * src/OptionHandlerFactory.cc
  8149. * src/TimeBasedCommand.h: Make _interval protected scope.
  8150. * src/HelpItemFactory.cc
  8151. * src/option_processing.cc
  8152. * src/prefs.h
  8153. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  8154. before calling RequestGroupMan::fillRequestGroupFromReserver().
  8155. Without this modification, the result list shows "ERR" when aria2 is
  8156. stopped by --stop option. It should be "INPR".
  8157. * src/DownloadEngine.{h, cc}
  8158. * src/DownloadEngineFactory.cc
  8159. * src/usage_text.h
  8160. * src/TimedHaltCommand.{h, cc}: New class.
  8161. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8162. Bootstrap through node added by port message.
  8163. Currently bootstrap is executed if the number of buckets in routing
  8164. table is 1.
  8165. * src/BtPortMessage.{h, cc}
  8166. * src/DefaultBtMessageFactory.{h, cc}
  8167. * src/PeerInteractionCommand.cc
  8168. * test/BtPortMessageTest.cc
  8169. * test/MockDHTTask.h
  8170. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8171. Extract the Peer class's member variables, which are only needed after
  8172. PeerInteractionCommand, into PeerSessionResource class.
  8173. This class is instantiated in PeerInteractionCommand class's ctor and
  8174. released in its dtor.
  8175. This will make Peer class lightweight and uses less memory for peers
  8176. which are not connected and wait in the queue.
  8177. * src/PeerChokeCommand.cc
  8178. * src/PeerSessionResource.{h, cc}
  8179. * src/PeerInteractionCommand.cc
  8180. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  8181. * src/DefaultBtInteractive.cc
  8182. * src/BtPieceMessage.cc
  8183. * src/BtInterestedMessage.cc
  8184. * src/BtUnchokeMessage.cc
  8185. * src/DefaultPeerStorage.{h, cc}
  8186. * src/PeerInitiateConnectionCommand.cc
  8187. * src/ActivePeerConnectionCommand.cc
  8188. * src/BtNotInterestedMessage.cc
  8189. * src/DefaultBtMessageDispatcher.cc
  8190. * src/BtChokeMessage.cc
  8191. * src/BtRequestMessage.cc
  8192. * src/Peer.{h, cc}
  8193. * src/BtRegistry.h
  8194. * src/TrackerWatcherCommand.cc
  8195. * src/PeerReceiveHandshakeCommand.cc
  8196. * test/BtExtendedMessageTest.cc
  8197. * test/BtAllowedFastMessageTest.cc
  8198. * test/BtCancelMessageTest.cc
  8199. * test/DefaultPieceStorageTest.cc
  8200. * test/BtBitfieldMessageTest.cc
  8201. * test/BtHaveMessageTest.cc
  8202. * test/BtNotInterestedMessageTest.cc
  8203. * test/BtRequestMessageTest.cc
  8204. * test/PeerSessionResourceTest.cc
  8205. * test/DefaultBtMessageDispatcherTest.cc
  8206. * test/PeerTest.cc
  8207. * test/BtInterestedMessageTest.cc
  8208. * test/BtRejectMessageTest.cc
  8209. * test/BtChokeMessageTest.cc
  8210. * test/DefaultPeerStorageTest.cc
  8211. * test/BtHaveNoneMessageTest.cc
  8212. * test/BtHaveAllMessageTest.cc
  8213. * test/DefaultExtensionMessageFactoryTest.cc
  8214. * test/BtUnchokeMessageTest.cc
  8215. * test/DefaultBtMessageFactoryTest.cc
  8216. * test/HandshakeExtensionMessageTest.cc
  8217. * test/UTPexExtensionMessageTest.cc
  8218. * test/DefaultBtRequestFactoryTest.cc
  8219. * test/BtPieceMessageTest.cc
  8220. Removed typedef PeerStats.
  8221. * src/PeerStat.h
  8222. * src/SegmentMan.cc
  8223. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8224. Added std namespace to copy, remove_copy, back_inserter,
  8225. front_inserter.
  8226. * src/RequestGroupMan.cc
  8227. * src/DefaultPieceStorage.cc
  8228. * src/StreamFileAllocationEntry.cc
  8229. * src/BtFileAllocationEntry.cc
  8230. * src/RequestGroup.cc
  8231. * src/MetalinkEntry.cc
  8232. * src/DelegatingPeerListProcessor.cc
  8233. * src/DefaultBtRequestFactory.cc
  8234. * src/DefaultBtMessageDispatcher.cc
  8235. * src/version_usage.cc: Included <algorithm>
  8236. * src/main.cc
  8237. * src/MetalinkParserController.cc
  8238. * src/DefaultBtContext.cc
  8239. * src/DownloadEngineFactory.cc
  8240. * src/a2algo.h
  8241. Removed.
  8242. * test/StreamUriListParserTest.cc
  8243. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8244. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  8245. ActivePeerConnectionCommand when it is given and
  8246. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  8247. * src/ActivePeerConnectionCommand.{h, cc}
  8248. * src/BtSetup.cc
  8249. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8250. Only add socket to DownloadEngine's select routine when peer or
  8251. localhost is unchoked and interested. This lowers CPU usage a
  8252. little bit.
  8253. * src/PeerInteractionCommand.cc
  8254. * src/PeerAbstractCommand.{h, cc}
  8255. * src/BtInteractive.h
  8256. * src/DefaultBtInteractive.{h, cc}
  8257. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8258. Revert previous change because get_peers message is needed for
  8259. announce_peer anyway.
  8260. * src/DHTGetPeersCommand.cc
  8261. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8262. Request peers thought DHT only when download hasn't finished.
  8263. * src/DHTGetPeersCommand.cc
  8264. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8265. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  8266. * src/DHTBucketRefreshTask.{h, cc}
  8267. * src/DHTSetup.cc
  8268. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8269. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  8270. standard classes.
  8271. Included string.h where mem* function are used.
  8272. Added namespace aria2.
  8273. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8274. Create directory before saving DHT routing table.
  8275. Now ios::failure is now handled properly.
  8276. * src/DHTAutoSaveCommand.cc
  8277. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8278. Removed unnecessary cerr.
  8279. * src/DownloadEngine.cc
  8280. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8281. Catch exception inside DHTMessageReceiver::receiveMessage().
  8282. Log unknown message.
  8283. * src/DHTMessageReceiver.{h, cc}
  8284. * src/DHTMessageFactory.h
  8285. * src/DHTMessageFactoryImpl.{h, cc}
  8286. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  8287. * src/DHTInteractionCommand.cc
  8288. * src/DHTUnknownMessage.{h, cc}
  8289. * test/DHTUnknownMessageTest.cc
  8290. * test/MockDHTMessageFactory.h
  8291. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8292. Commented out ip address comparison because a host can have multiple
  8293. ip addresses and it is hard to predict the hostname is resolved into
  8294. which one.
  8295. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  8296. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8297. * po/Makefile.in: Removed since this is generated by configure.
  8298. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8299. Fixed compiler warning about redefinition of SIZE_MAX.
  8300. Use common.h instead of config.h directly here.
  8301. * src/Platform.{h, cc}
  8302. The check of ENABLE_NLS is made in gettext.h, so it is not required
  8303. here.
  8304. * common.h
  8305. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  8306. Updated gettext related files.
  8307. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  8308. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  8309. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8310. Added DHT functionality, compatible with mainline.
  8311. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  8312. You may need to specify entry point to DHT network using
  8313. --dht-entry-point. DHT uses UDP port to listen incoming message.
  8314. Use --dht-listen-port to specify port number. Make sure that your
  8315. firewall configuration can pass through UDP traffic to the port.
  8316. The routing table is saved in $HOME/.aria2/dht.dat.
  8317. * src/DHT*
  8318. * src/BNode.{h, cc}
  8319. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  8320. particular torrent.
  8321. * src/Data.cc: Rewritten ctor.
  8322. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  8323. --dht-entry-point.
  8324. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  8325. * src/RequestGroup.cc: Initialize DHT functionality. When download
  8326. ends, remove BtContext from DHTPeerAnnounceStorage.
  8327. * src/BtPortMessage.{h, cc}: Rewritten.
  8328. * src/message.h
  8329. * src/OptionHandlerImpl.cc
  8330. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  8331. --dht-entry-point.
  8332. * src/Dictionary.{h, cc} (remove): New function.
  8333. * src/prefs.h
  8334. * src/DefaultBtMessageFactory.h
  8335. * src/BtHandshakeMessage.cc
  8336. * src/ActivePeerConnectionCommand.cc
  8337. * src/SocketCore.{h, cc}: Added datagram socket support.
  8338. * src/DefaultBtMessageFactory.cc
  8339. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  8340. Create DHT commands.
  8341. * src/BtMessageFactory.h
  8342. * src/PeerMessageUtil.{h, cc}
  8343. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8344. Fixed the bug that log file is not written when configuration file doesn't exist.
  8345. This is caused by using Logger class before LogFactory is not configured.
  8346. BUG #1875079
  8347. * src/option_processing.cc
  8348. Warning message "configuration doesn't exist" is only printed when --conf is
  8349. given.
  8350. * src/option_processing.cc
  8351. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8352. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  8353. ShaVisitor is now deprecated and slated to be removed.
  8354. * src/DefaultBtContext.cc
  8355. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8356. Externalize message to message.h
  8357. * src/Platform.cc
  8358. * src/message.h
  8359. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8360. Set default domain and default path to cookie.
  8361. * src/HttpResponse.cc
  8362. * src/CookieBox.{h, cc}
  8363. * src/CookieParser.{h, cc}
  8364. * test/CookieParserTest.cc
  8365. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8366. Added --no-conf and --conf-path command-line option.
  8367. --no-conf option disables loading aria2.conf file.
  8368. --conf-path option changes the configuration file path. The default
  8369. file path is $HOME/.aria2/aria2.conf
  8370. Added a warning message when the configuration file is not found.
  8371. * src/HelpItemFactory.cc
  8372. * src/option_processing.cc
  8373. * src/prefs.h
  8374. * src/usage_text.h
  8375. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8376. Added the message to inform users that other help categories are
  8377. available in -h option.
  8378. * src/version_usage.cc
  8379. * src/TagContainer.{h, cc}
  8380. * test/TagContainerTest.cc
  8381. * src/TaggedItem.{h, cc}
  8382. * test/TaggedItemTest.cc
  8383. * src/HelpItem.h
  8384. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8385. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  8386. from PiecedSegment's ctor.
  8387. Previously Piece::getAllMissingBlockIndexes() is called from
  8388. PiecedSegment() but it is rather expensive since only first element is
  8389. used.
  8390. * src/PiecedSegment.cc
  8391. * src/Piece.{h, cc}
  8392. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8393. Rewritten get*Missing*Index functions. Now no need to allocate memory
  8394. each time these functions are called.
  8395. * src/BitfieldMan.{h, cc}
  8396. * test/BitfieldManTest.cc
  8397. * src/array_fun.h
  8398. * test/array_funTest.cc
  8399. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  8400. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  8401. filtered. Removed unnecessary cast to int32_t.
  8402. * src/BitfieldMan.{h, cc}
  8403. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8404. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  8405. payload length(4bytes) are received. This happens because lenbufLength
  8406. is not updated in this particular case and successive call of
  8407. receiveMessage() overwrites payload length with bytes recieved which
  8408. are payload body.
  8409. * src/PeerConnection.{h, cc}
  8410. * src/message.h
  8411. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8412. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  8413. peer if there are peers that have same ipaddr and port.
  8414. I've experiened segmentation fault and "pure virtual function was
  8415. called" error.
  8416. * src/Peer.h
  8417. * test/PeerTest.cc
  8418. * src/DefaultPeerStorage.cc
  8419. * test/DefaultPeerStorageTest.cc
  8420. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8421. Removed a call to isPowerOf() because it is no longer necessary here
  8422. and a request block is not always power of 2.
  8423. BUG#1866924
  8424. * src/PeerMessageUtil.cc (checkLength)
  8425. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8426. Fixed the bug that always first found Segment is removed from
  8427. usedSegmentEntries. Removed unused functions.
  8428. * src/SegmentMan.{h, cc}
  8429. * test/SegmentManTest.cc
  8430. Fixed the bug that ServerHost is not removed.
  8431. * src/RequestGroup.cc
  8432. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8433. Fixed the bug that SegmentMan::completeSegment() is not called
  8434. even if Segment is complete when --lowest-speed-limit is enabled.
  8435. BUG#1864525
  8436. * src/DownloadCommand.{h, cc}
  8437. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8438. Fixed: hash algorithm 'sha1' is always used.
  8439. * src/DownloadCommand.cc (validatePieceHash)
  8440. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8441. Added --enable-peer-exchange command-line option.
  8442. * src/OptionHandlerFactory.cc
  8443. * src/HelpItemFactory.cc
  8444. * src/option_processing.cc
  8445. * src/usage_text.h
  8446. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8447. Move extension from BtRuntime to ExtensionMessageFactory, because
  8448. extension can be specified per peer, not per torrent.
  8449. * src/DefaultBtInteractive.cc
  8450. * src/BtRuntime.h
  8451. * src/ExtendedMessagingAware.h
  8452. * src/ExtensionMessageFactory.h
  8453. * src/DefaultExtensionMessageFactory.cc
  8454. * test/DefaultExtensionMessageFactoryTest.cc
  8455. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8456. Added categorized option help. Specify category using --help option.
  8457. Also added the ability to search options in forward match.
  8458. * src/HelpItem.{h, cc}
  8459. * test/HelpItemTest.cc
  8460. * src/HelpItemFactory.{h, cc}
  8461. * src/TagContainer.{h, cc}
  8462. * test/TagContainerTest.cc
  8463. * src/option_processing.cc
  8464. * src/prefs.h
  8465. * src/TaggedItem.{h, cc}
  8466. * test/TaggedItemTest.cc
  8467. * src/version_usage.cc
  8468. * src/help_tags.h
  8469. * src/usage_text.h
  8470. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8471. Fixed segmentation fault when bad torrent metainfo is parsed.
  8472. Added dynamic_cast properly to detect the misconfiguration of metainfo
  8473. and then throw exception or skip it.
  8474. * src/DefaultBtContext.{h, cc}
  8475. * test/DefaultBtContextTest.cc
  8476. * src/AnnounceList.cc
  8477. * src/CompactPeerListProcessor.cc
  8478. * src/message.h
  8479. * src/DefaultBtAnnounce.{h, cc}
  8480. * test/DefaultBtAnnounceTest.cc
  8481. * src/BencodeVisitor.cc
  8482. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8483. Added missing "B"(=Byte). So now the message looks like this:
  8484. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  8485. * src/message.h (MSG_SHARE_RATIO_REPORT)
  8486. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8487. Show the seed ratio after torrent downloads.
  8488. For example, after torrent download completed and --seed-time and
  8489. --seed-ratio conditions are fulfilled, following message is printed
  8490. right after "Download complete: .....":
  8491. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  8492. * src/RequestGroupMan.cc
  8493. * src/RequestGroup.{h, cc}
  8494. * src/message.h
  8495. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8496. Remove a defunct control file. A defunct control file means that while
  8497. it exists, but the corresponding download file is missing.
  8498. After its removal, a download restarts from the beginning.
  8499. * src/RequestGroup.cc
  8500. * src/message.h
  8501. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8502. Allocate bitfield in Peer when it is really used. More specifically,
  8503. bitfield in Peer is allocated after the connection is established and
  8504. deallocated when the connection is dropped.
  8505. Since 2 parameters(piece length and total length) was removed from the
  8506. constructor of Peer class, many test classes were modified accordingly.
  8507. See svn log for more detailed information.
  8508. * src/PeerInteractionCommand.cc
  8509. * src/CompactPeerListProcessor.cc
  8510. * src/Peer.cc
  8511. * src/DefaultPeerListProcessor.cc
  8512. * src/PeerListenCommand.cc
  8513. * src/PeerReceiveHandshakeCommand.cc
  8514. Fixed memory leak
  8515. * src/Piece.cc
  8516. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8517. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  8518. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  8519. command-line options.
  8520. * src/option_processing.cc
  8521. * src/ActivePeerConnectionCommand.cc
  8522. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8523. Send have message to peer if it already has the piece.
  8524. * src/BtHaveMessage.{h, cc}
  8525. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8526. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  8527. port.
  8528. * src/DefaultPeerStorage.{h, cc}
  8529. * test/DefaultPeerStorageTest.cc
  8530. * src/HandshakeExtensionMessage.cc
  8531. * test/HandshakeExtensionMessageTest.cc
  8532. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  8533. * src/PeerStorage.h
  8534. * test/MockPeerStorage.h
  8535. * src/PeerListenCommand.cc
  8536. * src/PeerReceiveHandshakeCommand.cc
  8537. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8538. Added --metalink-enable-unique-protocol option.
  8539. * src/Metalink2RequestGroup.cc
  8540. * src/option_processing.cc
  8541. * src/prefs.h
  8542. * src/version_usage.cc
  8543. * doc/aria2c.1.txt
  8544. * doc/aria2c.1
  8545. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8546. Allow a peer in incomingPeer to be added peers.
  8547. * src/DefaultPeerStorage.cc
  8548. * test/DefaultPeerStorageTest.cc
  8549. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8550. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  8551. I could reproduce this bug in following procedure:
  8552. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  8553. 2. Restart aria2.
  8554. 3. You see the download stopped around 99%.
  8555. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8556. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  8557. If timeout is reached, then _nextCommand is unused and it may contains
  8558. segments and they won't be canceled. Actually, timeout is not needed
  8559. here because if the server dropped connection, then retry is made.
  8560. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8561. Added uTorrent compatible Peer Exchange.
  8562. * src/BencodeVisitor.{h, cc}
  8563. * test/BencodeVisitorTest.cc
  8564. * src/BtConstants.h
  8565. * src/BtContext.h: Added 'private' flag.
  8566. * src/BtExtendedMessage.{h, cc}
  8567. * test/BtExtendedMessageTest.cc
  8568. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  8569. reserved field.
  8570. * test/BtHandshakeMessageTest.cc
  8571. * src/BtMessageFactory.h
  8572. * src/BtRegistry.h
  8573. * src/BtRuntime.h: This class holds default extension message IDs for
  8574. aria2. By default, aria2 uses ID 8 for ut_pex.
  8575. * src/DefaultBtContext.cc
  8576. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  8577. When it is true, aria2 enables ut_pex. This value is set by
  8578. PeerInteractionCommand.
  8579. * src/DefaultBtMessageFactory.{h, cc}
  8580. * test/DefaultBtMessageFactoryTest.cc
  8581. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  8582. handling to DefaultBtInteractive class.
  8583. * src/DefaultExtensionMessageFactory.{h, cc}
  8584. * test/DefaultExtensionMessageFactoryTest.cc
  8585. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  8586. the container(peers and incomingPeers. The equality is determined by
  8587. Peer::id).
  8588. * test/DefaultPeerStorageTest.cc
  8589. * src/ExtensionMessage.h
  8590. * test/MockExtensionMessage.h
  8591. * src/ExtensionMessageFactory.h
  8592. * test/MockExtensionMessageFactory.h
  8593. * src/HandshakeExtensionMessage.{h, cc}
  8594. * test/HandshakeExtensionMessageTest.cc
  8595. * src/MetaEntry.h
  8596. * src/Peer.{h, cc}
  8597. * src/PeerInteractionCommand.cc
  8598. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  8599. addIncomingPeer.
  8600. * src/PeerMessageUtil.{h, cc}
  8601. * src/PeerObject.h
  8602. * src/UTPexExtensionMessage.{h, cc}
  8603. * test/UTPexExtensionMessageTest.cc
  8604. * src/message.h
  8605. * src/prefs.h
  8606. Fixed the bug that returns incomplete data when it contains null
  8607. character. A convenient constructor was also added.
  8608. * src/Data.{h, cc}
  8609. Rewritten.
  8610. * src/CompactPeerListProcessor.cc
  8611. Fixed typos.
  8612. * src/message.h
  8613. * src/MetaFileUtil.cc
  8614. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8615. Added "Status Legend" label to the explanation text of 'stat' in
  8616. download result and moved it to the last. BUG#1848214
  8617. * src/RequestGroupMan.cc
  8618. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8619. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  8620. * src/Makefie.am
  8621. * test/Makefile.am
  8622. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8623. Fixed the bug that prevents aria2 from loading cookie file when expire
  8624. value is greater than 2^31-1. BUG#1851066
  8625. * src/CookieBoxFactory.cc
  8626. * test/CookieBoxFactoryTest.cc
  8627. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8628. Fixed possible memory leak when an exception is thrown.
  8629. * src/XML2SAXMetalinkProcessor.cc
  8630. Added Expat support. If both libxml2 and Expat are installed, then
  8631. libxml2 is used by default.
  8632. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  8633. ExpatMetalinkProcessor according to the configuration.
  8634. * src/ExpatMetalinkProcessor.{h, cc}
  8635. * src/main.cc: Removed libxml2 specific header and init/free function.
  8636. * src/MetalinkProcessorFactory.{h, cc}
  8637. * src/MetalinkHelper.cc
  8638. * src/Metalinker.h: Removed unnecessary libxml2 header.
  8639. * src/MetalinkProcessor.h
  8640. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  8641. MetalinkProcessorTest is used instead.
  8642. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  8643. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  8644. MetalinkProcessorFactory::newInstance().
  8645. * m4/libexpat.m4
  8646. * configure.ac: Added configuration options for libexpat.
  8647. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8648. Disabled -s option in metalink download.
  8649. * src/Metalink2RequestGroup.cc
  8650. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8651. If several protocols are available for a mirror in metalink file,
  8652. aria2 now use one of them. --metalink-preferred-protocol option was
  8653. added to specify the preference of protocol.
  8654. * src/AbstractCommand.cc
  8655. * src/OptionHandlerFactory.cc
  8656. * src/ServerHost.{h, cc}
  8657. * src/Metalink2RequestGroup.cc
  8658. * src/RequestGroup.{h, cc}
  8659. * test/RequestGroupTest.cc
  8660. * src/option_processing.cc
  8661. * src/prefs.h
  8662. * src/HttpResponseCommand.cc
  8663. * src/MetalinkResource.{h, cc}
  8664. * src/FtpNegotiationCommand.cc
  8665. * src/MetalinkEntry.{h, cc}
  8666. * src/MetalinkEntryTest.cc
  8667. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8668. Code cleanup and added debug log.
  8669. * src/PeerConnection.cc
  8670. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8671. Compiler error fix: applied the patch by Tiziano Mueller
  8672. * src/RequestGroup.cc
  8673. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8674. Fixed the bug: only first announce URL is tried in AnnounceTier,
  8675. in stopped and completed event.
  8676. * src/AnnounceList.{h, cc}
  8677. * test/AnnounceListTest.cc
  8678. * src/DefaultBtAnnounce.cc
  8679. * test/DefaultBtAnnounceTest.cc
  8680. Sorted URLs.
  8681. * test/Metalink2RequestGroupTest.cc
  8682. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8683. Removed unnecessary string copy. Updated doc and corrected indentation.
  8684. * src/Base64.cc
  8685. Fixed compilation warnings
  8686. * test/DataTest.cc
  8687. * test/HttpRequestTest.cc
  8688. * test/MetaFileUtilTest.cc
  8689. * test/RequestTest.cc
  8690. * Release 0.12.0
  8691. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8692. Updated translations
  8693. * po/{de,fr,ja,nl,ru}.po
  8694. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  8695. translations. Many thanks to translators.
  8696. * po/{ca,es,it,pt_BR,sv}.po
  8697. * po/LINGUAS
  8698. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8699. Added a notice about URL
  8700. * src/version_usage.cc
  8701. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  8702. Fixed the bug#1845750; CTRL+C does not stop torrent.
  8703. aria2 repeatedly sends stopped request when tracker returns error code.
  8704. * src/AnnounceList.cc
  8705. * test/AnnounceListTest.cc
  8706. * src/AnnounceTier.h
  8707. Added a message when ctrl-c is hit.
  8708. Now second ctrl-c is also handled in signal handler.
  8709. * src/RequestGroupMan.{h, cc}
  8710. * src/RequestGroup.{h, cc}
  8711. * src/MultiUrlRequestInfo.cc
  8712. * src/DownloadEngine.cc
  8713. * src/TrackerWatcherCommand.cc
  8714. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8715. Code cleanup
  8716. * src/Base64.cc (encode)
  8717. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8718. Changed Direct/IO enable/disable procesure in file allocation routine.
  8719. * src/SingleFileAllocationIterator.cc
  8720. (SingleFileAllocationIterator):
  8721. Disable directIO if offset is not multiple of 512.
  8722. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  8723. * src/MultiFileAllocationIterator.cc (allocateChunk):
  8724. Enable created SingleFileAllocationIterator's directIO.
  8725. * src/FileAllocationEntry.cc
  8726. (FileAllocationEntry): Enable directIO here.
  8727. (~FileAllocationEntry): Disable directIO here.
  8728. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8729. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  8730. * src/Peer.{h, cc}
  8731. * src/DefaultPieceStorage.cc
  8732. * test/DefaultPieceStorageTest.cc
  8733. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8734. Rewritten direct I/O support routine
  8735. * src/SingleFileAllocationIterator.cc
  8736. * src/MultiDiskAdaptor.{h, cc}
  8737. * src/ByteArrayDiskWriter.h
  8738. * src/AbstractSingleDiskAdaptor.h
  8739. * src/AbstractDiskWriter.cc
  8740. * src/DefaultPieceStorage.cc
  8741. * src/DiskWriter.h
  8742. * src/BinaryStream.h
  8743. * src/IteratableChunkChecksumValidator.cc
  8744. * src/IteratableChecksumValidator.cc
  8745. * src/CheckIntegrityEntry.cc
  8746. * src/FileAllocationEntry.cc
  8747. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8748. Fixed typo
  8749. * src/version_usage.cc
  8750. Updated doc
  8751. * doc/aria2c.1.txt
  8752. * doc/aria2c.1
  8753. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8754. Fixed compile error without message digest support.
  8755. * src/FileMetalinkParserState.cc
  8756. * src/MetalinkParserController.{h, cc}
  8757. * test/XML2SAXMetalinkProcessorTest.cc
  8758. * test/MetalinkParserControllerTest.cc
  8759. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8760. Enable direct I/O support in checksum checking.
  8761. * src/IteratableChunkChecksumValidator.{h, cc}
  8762. * test/IteratableChunkChecksumValidatorTest.cc
  8763. * src/CheckIntegrityEntry.cc
  8764. * src/PieceHashCheckIntegrityEntry.cc
  8765. * src/IteratableChecksumValidator.{h, cc}
  8766. * src/BtCheckIntegrityEntry.cc: Added doc.
  8767. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8768. Added --allow-piece-length-change option.
  8769. * src/DefaultBtProgressInfoFile.cc
  8770. * test/DefaultBtProgressInfoFileTest.cc
  8771. * src/OptionHandlerFactory.cc
  8772. * src/option_processing.cc
  8773. * src/prefs.h
  8774. * src/version_usage.cc
  8775. * doc/aria2c.1.txt
  8776. * doc/aria2c.1
  8777. Fixed: duplicated result entry appears when exception is thrown in
  8778. RequestGroup::createInitiateConnectionCommand().
  8779. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  8780. Add RequestGroup to _requestGroup after RequetGroup::
  8781. createInitiateConnectionCommand() succeeds.
  8782. Externalized message
  8783. * src/XML2SAXMetalinkProcessor.cc
  8784. * src/message.h
  8785. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8786. Forced download abort when received negative response from http/ftp
  8787. server.
  8788. * src/HttpResponseCommand.cc
  8789. * src/FtpNegotiationCommand.cc
  8790. * src/HttpResponse.cc
  8791. * src/FtpConnection.cc
  8792. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8793. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  8794. the predecessor, Xml2MetalinkParser class.
  8795. I tested them against 94KB metalink file with 1234 chunk checksums.
  8796. The new one parsed it in 22msec, while it took 6000msec with old one.
  8797. * src/XML2SAXMetalinkProcessor.{h, cc}
  8798. * test/XML2SAXMetalinkProcessorTest.cc
  8799. * src/MetalinkParserController.{h, cc}
  8800. * test/MetalinkParserControllerTest.cc
  8801. * src/MetalinkParserState.h: Also added 16 subclasses.
  8802. * src/main.cc
  8803. * src/Metalink2RequestGroup.cc
  8804. * src/MetalinkHelper.cc
  8805. * src/MetalinkEntry.cc
  8806. * src/ChunkChecksum.h
  8807. Rewritten Base64 class for better performance.
  8808. * src/Base64.{h, cc}
  8809. * test/Base64Test.cc
  8810. * src/HttpRequest.cc
  8811. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8812. Fixed the bug#1841757: aria2 will connect to server to only get
  8813. file size.
  8814. * src/StreamFileAllocationEntry.cc
  8815. * src/option_processing.cc
  8816. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  8817. downloads.
  8818. * src/FtpNegotiationCommand.cc
  8819. Suppressed wrong message when finding PreDownloadHandler
  8820. * src/RequestGroup.cc
  8821. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8822. Updated usage
  8823. * src/version_usage.cc
  8824. Updated man page
  8825. * doc/aria2c.1.txt
  8826. * doc/aria2c.1
  8827. Updated po files
  8828. * po/aria2c.pot
  8829. * po/*.po
  8830. * po/*.gmo
  8831. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8832. Eliminated g++-4.2 warning
  8833. * src/DownloadHandlerConstants.{h, cc}
  8834. * src/Util.cc
  8835. * test/MetaFileUtilTest.cc
  8836. * test/PStringBuildVisitorTest.cc
  8837. Fixed bug: --check-integrity doesn't work for multi file torrent.
  8838. * src/RequestGroup.cc
  8839. * src/BtCheckIntegrityEntry.cc
  8840. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8841. Fixed a2io.h
  8842. * src/a2io.h
  8843. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8844. Added direct I/O support. The current implementation uses O_DIRECT,
  8845. which is not posix standard and is tested on linux 2.6.21.
  8846. Currently only file allocation uses direct I/O.
  8847. * src/SingleFileAllocationIterator.{h, cc}
  8848. * test/SingleFileAllocationIteratorTest.cc
  8849. * src/MultiFileAllocationIterator.{h, cc}
  8850. * test/MultiFileAllocationIteratorTest.cc
  8851. * src/BinaryStream.h
  8852. * src/DiskWriter.h
  8853. * src/AbstractDiskWriter.{h, cc}
  8854. * src/ByteArrayDiskWriter.h
  8855. * src/DiskAdaptor.h
  8856. * src/AbstractSingleDiskAdaptor.{h, cc}
  8857. * src/MultiDiskAdaptor.{h, cc}
  8858. * src/FileAllocationEntry.cc
  8859. * src/Util.{h, cc}
  8860. * src/OptionHandlerFactory.cc
  8861. * src/prefs.h
  8862. * src/version_usage.cc
  8863. * src/option_processing.cc
  8864. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  8865. handleException.
  8866. * src/MultiFileAllocationIterator.cc
  8867. Added EINTR handling
  8868. * src/SocketCore.cc
  8869. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8870. Updated usage
  8871. * src/version_usage.cc
  8872. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8873. Applied Ross's patch for MinGW port.
  8874. * src/DownloadEngine.h
  8875. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8876. Set Content-Type to SingleFileDownloadContext when http response is
  8877. received.
  8878. * src/HttpResponseCommand.cc
  8879. * src/HttpResponse.{h, cc}
  8880. * test/HttpResponseTest.cc
  8881. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8882. Rewritten to add content-type support.
  8883. * src/DownloadHandler.{h, cc}
  8884. * src/BtPostDownloadHandler.{h, cc}
  8885. * test/BtPostDownloadHandlerTest.cc
  8886. * src/MetalinkPostDownloadHandler.{h, cc}
  8887. * test/MetalinkPostDownloadHandlerTest.cc
  8888. * src/PostDownloadHandler.{h, cc}
  8889. * src/DownloadHandlerConstants.{h, cc}
  8890. * src/RequestGroup.cc
  8891. * src/HttpResponseCommand.cc
  8892. * src/FtpNegotiationCommand.cc
  8893. * src/SingleFileDownloadContext.{h, cc}
  8894. * src/RequestGroup.h
  8895. * src/RequestGroupCriteria.h
  8896. * src/ContentTypeRequestGroupCriteria.h
  8897. Added 'mem' option value for --follow-metalink, --follow-torrent.
  8898. If it is give, metalink/torrent file is not written to the disk, but
  8899. just is kept in memory. Parsing is occurred on memory.
  8900. * src/MetalinkHelper.{h, cc}
  8901. * src/MetalinkProcessor.h
  8902. * src/Xml2MetalinkProcessor.{h, cc}
  8903. * test/Xml2MetalinkProcessorTest.cc
  8904. * src/DownloadHandlerFactory.{h, cc}
  8905. * test/DownloadHandlerFactoryTest.cc
  8906. * src/PreDownloadHandler.{h, cc}
  8907. * src/OptionHandlerFactory.cc
  8908. * src/DefaultBtContext.{h, cc}
  8909. * test/DefaultBtContextTest.cc
  8910. * src/version_usage.cc
  8911. * src/Metalink2RequestGroup.{h, cc}
  8912. * src/RequestGroup.{h, cc}
  8913. * src/a2functional.h
  8914. * test/a2functionalTest.cc
  8915. * src/MemoryBufferPreDownloadHandler.{h, cc}
  8916. * src/OptionHandlerImpl.h
  8917. * src/prefs.h
  8918. * src/Util.{h, cc}
  8919. * test/UtilTest.cc
  8920. Keep DownloadResult rather than RequestGroup after downloads to reduce
  8921. memory usage.
  8922. * src/RequestGroupMan.{h, cc}
  8923. * src/DownloadEngine.cc
  8924. * src/BtDependency.{h, cc}: Changed the type of dependee from
  8925. WeakHandle to SharedHandle because WeakHandle could be null.
  8926. * src/RequestGroup.{h, cc}
  8927. * src/DownloadEngineFactory.cc
  8928. * src/DownloadResult.h
  8929. Set totalLength after download finished
  8930. * src/UnknownLengthPieceStorage.{h, cc}
  8931. Keep torrent file specified in metalink in memory.
  8932. * src/Metalink2RequestGroup.cc
  8933. * src/BtDependency.cc
  8934. * src/TrueRequestGroupCriteria.h
  8935. Fixed the bug: seekg is used where seekp should be used.
  8936. * src/ByteArrayDiskWriter.cc
  8937. * test/ByteArraydiskWriterTest.cc
  8938. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8939. Fixed syntax error
  8940. * test/SequenceTest.cc
  8941. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8942. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  8943. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  8944. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  8945. * src/RequestGroup.cc (downloadFinishedByFileLength)
  8946. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8947. Added the check to see whether ares_host_callback accepts timeouts
  8948. with c-ares; only c-ares 1.5.0 or newer accepts it.
  8949. * src/NameResolver.{h, cc}
  8950. * m4/libcares.m4
  8951. * configure.ac: Set C++ for language choice.
  8952. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8953. Fixed: compilation fails without c-ares/ares
  8954. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  8955. Generate http/ftp commands only when download is incomplete.
  8956. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  8957. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8958. Corrected typo. Examples are removed since they are available in man
  8959. page.
  8960. * src/version_usage.cc
  8961. Updated man page.
  8962. * doc/aria2c.1
  8963. * doc/aria2c.1.txt
  8964. * doc/makeman: Commented out sed command.
  8965. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8966. Throw DlAbortEx when a remote file is not found.
  8967. * src/HttpResponse.cc
  8968. * src/FtpNegotiationCommand.cc
  8969. * src/message.h
  8970. Overwrite an existing file if --allow-overwrite=true is given.
  8971. * src/RequestGroup.cc
  8972. Removed unused functions
  8973. * src/AbstractCommand.h
  8974. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8975. Removed 'extern' from 'extern typedef ...' in src/*.h
  8976. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8977. Updated usage
  8978. * src/version_usage.cc
  8979. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8980. Trim announce URL
  8981. * src/DefaultBtContext.cc
  8982. * test/ShaVisitorTest.cc
  8983. Trim argument s. Give trimed s to exception constructor.
  8984. * src/Util.cc (parseInt)(parseLLInt)
  8985. * test/UtilTest.cc
  8986. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8987. Set precision back to 1.
  8988. * src/ConsoleStatCalc.cc (calculateStat)
  8989. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8990. Replaced strtol with Util::parseInt
  8991. * src/ChunkedEncoding.cc
  8992. * src/HttpConnection.cc
  8993. * src/CookieBoxFactory.cc
  8994. * src/ParameterizedStringParser.cc
  8995. * src/Util.cc
  8996. * test/UtilTest.cc
  8997. * test/OptionHandlerTest.cc
  8998. * src/Request.cc
  8999. Throw exception when empty string is given. The message for exception
  9000. changed.
  9001. * src/Util.cc (parseInt)(parseLLInt)
  9002. * src/message.h
  9003. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9004. Set precision to 2 because share ratio is rounded into 1.0 if precision
  9005. set to 1.
  9006. * src/ConsoleStatCalc.cc (calculateStat)
  9007. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9008. Preallocate non-requested file which is adjacent forward to requested
  9009. file('requested' files means the files given in --select-file option)
  9010. if they share a same piece.
  9011. This fixes long pause in the file system which doesn't support sparse
  9012. files like FAT32 while downloading.
  9013. * src/MultiFileAllocationIterator.{h, cc}
  9014. * test/MultiFileAllocationIteratorTest.cc
  9015. * src/FileEntry.{h, cc}
  9016. Removed unused _option.
  9017. * src/MultiDiskAdaptor.h
  9018. * test/MultiDiskAdaptorTest.cc
  9019. * src/DefaultPieceStorage.cc
  9020. Set the default value of --seed-ratio to 1.0.
  9021. If 0.0 is given, then seeding continues regardless of share ratio.
  9022. * src/version_usage.cc
  9023. * src/option_processing.cc
  9024. * src/BtSetup.cc
  9025. * doc/aria2c.1.txt
  9026. * doc/aria2c.1
  9027. Fixed: Selective download is not working in BitTorrent
  9028. * src/RequestGroup.cc
  9029. Introduced Sequence class. Use this instead of Util::unfoldRange()
  9030. * src/PieceStorage.h
  9031. * test/MockPieceStorage.h
  9032. * src/UnknownLengthPieceStorage.h
  9033. * src/DefaultPieceStorage.{h, cc}
  9034. * src/Metalink2RequestGroup.cc
  9035. * src/RequestGroup.cc
  9036. * src/Sequence.h
  9037. * test/SequenceTest.cc
  9038. * src/IntSequence.h
  9039. * src/message.h
  9040. * src/Util.{h, cc}
  9041. * test/UtilTest.cc
  9042. Added new function 'parse' to catch exception thrown by subclass's
  9043. parseArg
  9044. * src/OptionHandler.h
  9045. * src/OptionParser.cc
  9046. * src/NameMatchOptionHandler.h
  9047. * src/OptionHandlerImpl.h
  9048. * test/OptionHandlerTest.cc
  9049. Added IntegerRangeOptionHandler. Used for --listen-port and
  9050. --select-file. Now --listen-port accepts range of port.
  9051. * src/OptionHandlerFactory.cc
  9052. * src/version_usage.cc
  9053. * src/OptionHandlerImpl.h
  9054. * src/option_processing.cc
  9055. * src/BtSetup.cc
  9056. * src/PeerListenCommand.{h, cc}
  9057. * doc/aria2c.1.txt
  9058. * doc/aria2c.1
  9059. Implemented operator< for Exception class to provide easy way to print
  9060. exception stack trace.
  9061. * src/Exception.{h, cc}
  9062. * src/main.cc
  9063. * src/option_processing.cc
  9064. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9065. * src/version_usage.cc
  9066. (showVersion): Reworked.
  9067. (showUsage): Added examples.
  9068. Removed Hint for total length and file name.
  9069. * src/Metalink2RequestGroup.cc
  9070. * src/RequestGroup.{h, cc}
  9071. * src/HttpResponseCommand.cc
  9072. * src/FtpNegotiationCommand.cc
  9073. Now --follow-torrent and --follow-metalink option work properly.
  9074. * src/RequestGroup.cc
  9075. Updated man page
  9076. * doc/aria2c.1.txt
  9077. * doc/aria2c.1
  9078. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9079. Removed.
  9080. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  9081. Use Segment::operator==()
  9082. * src/HttpConnection.cc
  9083. * src/Segment.h
  9084. Updated usage
  9085. * src/version_usage.cc
  9086. Added EINTR treatment.
  9087. * src/SocketCore.cc
  9088. * src/AbstractDiskWriter.cc
  9089. Rewritten.
  9090. * src/Util.cc (rangedFileCopy)
  9091. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9092. Fixed typo.
  9093. * src/version_usage.cc
  9094. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9095. Implemented. Now -c option works fine.
  9096. * src/DefaultPieceStorage.cc (markPiecesDone)
  9097. * test/DefaultPieceStorageTest.cc
  9098. Removed.
  9099. * src/SegmentMan.{h, cc}
  9100. (markAllPiecesDone)
  9101. (markPieceDone)
  9102. Synchronized po files with
  9103. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  9104. * src/fr.po
  9105. * src/ru.po
  9106. * src/de.po
  9107. * src/ja.po
  9108. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9109. Added ifdef and some modifications to compile without BitTorrent,
  9110. Metalink, MessageDigest
  9111. support.
  9112. * src/PieceHashCheckIntegrityEntry.cc
  9113. * src/MetalinkEntry.h
  9114. * src/version_usage.cc
  9115. * src/main.cc
  9116. * src/DownloadEngine.{h, cc}
  9117. * src/Metalink2RequestGroup.cc
  9118. * src/Peer.cc
  9119. * src/RequestGroup.cc
  9120. * src/MetalinkHelper.cc
  9121. * test/DefaultPieceStorageTest.cc
  9122. * test/MetalinkPostDownloadHandlerTest.cc
  9123. * test/Metalink2RequestGroupTest.cc
  9124. Hide TOTAL SPD when all downloads complete.
  9125. * src/ConsoleStatCalc.cc
  9126. Log target system information.
  9127. * src/main.cc
  9128. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9129. Now --metalink-location accepts a comma-deliminated list of locations.
  9130. * src/MetalinkEntry.{h, cc}
  9131. * test/MetalinkEntryTest.cc
  9132. * src/version_usage.cc
  9133. * src/Metalink2RequestGroup.cc
  9134. * src/Xml2MetalinkProcessor.cc
  9135. * test/Xml2MetalinkProcessorTest.cc
  9136. * doc/aria2c.1.txt
  9137. * doc/aria2c.1
  9138. * src/Util.cc (toUpper)(toLower): Rewritten.
  9139. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9140. Added the ability to detect duplicate download entry which is about to
  9141. download the same file other RequestGroup is downloading.
  9142. * src/RequestGroup.cc
  9143. * src/HttpResponseCommand.cc
  9144. * src/FtpNegotiationCommand.cc
  9145. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9146. Recalculates download progress when loading a control file,
  9147. if the piece length of DownloadContext is different from the one saved
  9148. in the control file. Currently in-flight pieces are ignored.
  9149. * src/DefaultBtProgressInfoFile.cc
  9150. * test/DefaultBtProgressInfoFileTest.cc
  9151. * src/Util.{h, cc}
  9152. * test/UtilTest.cc
  9153. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9154. Do not rotate tiers in announce-list.
  9155. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  9156. AnnounceList::allTiersFailed() used instead to detect whether all
  9157. tiers are tried and failed.
  9158. * test/DefaultBtAnnounceTest.cc
  9159. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  9160. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  9161. * test/AnnounceListTest.cc
  9162. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  9163. clause. Catch RecoverableException instead of DlRetryEx instead.
  9164. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9165. Implemented checksum validation feature(1 checksum for each file)
  9166. The validation takes place after the download.
  9167. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  9168. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  9169. * src/CheckIntegrityCommand.cc: Changed log message.
  9170. * src/Metalink2RequestGroup.cc: Set checksum to
  9171. SingleFileDownloadContext.
  9172. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  9173. PieceHashCheckIntegrity class.
  9174. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  9175. PieceHashCheckIntegrity class.
  9176. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  9177. * src/IteratableValidator.h: New class.
  9178. * src/message.h
  9179. * src/CheckIntegrityEntry.{h, cc}
  9180. * src/IteratableChunkChecksumValidator.{h, cc}
  9181. * src/SingleFileDownloadContext.h
  9182. * src/DownloadCommand.cc
  9183. --allow-overwrite=true is no longer needed to check file integrity
  9184. before download in BitTorrent download.
  9185. * src/RequestGroup.cc (getInitialCommand)
  9186. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  9187. throws exception.
  9188. * src/RequestGroupMan.cc (getInitialCommands)
  9189. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9190. urlencode the given url inside Request::parseUrl(...)
  9191. * src/Request.{h, cc}
  9192. * src/Util.{h, cc}
  9193. * test/RequestTest.cc
  9194. Removed #!metalink3! notation support because it is deleted from
  9195. the metalink specification.
  9196. * src/Request.{h, cc}
  9197. * test/RequestTest.cc
  9198. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9199. Don't connect server before checking file integrity at startup, if
  9200. filesize and output file path are known.
  9201. * src/AbstractCommand.cc
  9202. * src/StreamFileAllocationEntry.cc
  9203. * src/Metalink2RequestGroup.cc
  9204. * src/RequestGroup.{h, cc}
  9205. * src/HttpResponseCommand.cc
  9206. * src/FtpNegotiationCommand.cc
  9207. Added DownloadFailureException. If it is thrown, RequestGroup should
  9208. halt.
  9209. * src/AbstractCommand.cc
  9210. * src/DownloadFailureException.h
  9211. * src/RequestGroup.cc
  9212. Catch RecoverableException, instead of DlAbortEx.
  9213. * src/RequestGroupMan.cc
  9214. * src/FillRequestGroupCommand.cc
  9215. * src/MetaFileUtil.cc
  9216. * src/IteratableChunkChecksumValidator.cc
  9217. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  9218. getGID())
  9219. * src/CheckIntegrityCommand.cc
  9220. * src/message.h
  9221. Print gid instead of idx.
  9222. * src/RequestGroupMan.cc
  9223. Removed exception throwers declaration.
  9224. * src/DirectDiskAdaptor.{h, cc}
  9225. * src/SocketCore.{h, cc}
  9226. * src/MultiDiskAdaptor.{h, cc}
  9227. * src/HttpConnection.{h, cc}
  9228. * src/HttpResponse.{h, cc}
  9229. * src/DiskAdaptor.{h, cc}
  9230. * src/CopyDiskAdaptor.{h, cc}
  9231. * src/MultiDiskAdaptor.{h, cc}
  9232. * src/HttpHeaderProcessor.{h, cc}
  9233. * src/AbstractSingleDiskAdaptor.{h, cc}
  9234. * src/Util.{h, cc}
  9235. * test/UtilTest.cc
  9236. * src/DefaultDiskWriter.{h, cc}
  9237. * src/FtpConnection.{h, cc}
  9238. * src/AbstractDiskWriter.{h, cc}
  9239. Removed duplicate code.
  9240. * src/StreamCheckIntegrityEntry.cc
  9241. Removed unnecessary include.
  9242. * src/DiskWriter.h
  9243. Included Exception.h
  9244. * src/option_processing.cc
  9245. Included 2 files and added doc
  9246. * src/TrackerWatcherCommand.cc
  9247. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  9248. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9249. Changed CheckIntegrityEntry interface so that it can define
  9250. the action when all the chunk checksums are valid.
  9251. * src/CheckIntegrityEntry.h
  9252. * src/StreamCheckIntegrityEntry.{h, cc}
  9253. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  9254. are valid, then aira2 goes to seeding mode. Sometimes it is better
  9255. to exit rather than doing seeding. So, it would be good to toggle this
  9256. behavior.
  9257. * src/CheckIntegrityCommand.cc
  9258. * src/AbstractCommand.cc
  9259. * src/RequestGroup.cc
  9260. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9261. Reflect the download length of in-flight pieces.
  9262. It makes the download length readout more precise.
  9263. * src/DefaultPieceStorage.{h, cc}
  9264. * test/DefaultPieceStorageTest.cc
  9265. * src/a2functional.h
  9266. * test/a2functionalTest.cc
  9267. Lower CPU load when --max-download-limit is used.
  9268. There is up and down in speed indicator when enabling
  9269. http-pipelining but a download goes well. I think the problem is that
  9270. because http-pipelining is enabled, DownloadCommand is created for
  9271. each segment and in its constructor, PeerStat::downloadStart() is
  9272. called. In PeerStat::downloadStart(), speed calculation object is
  9273. reseted, which makes download speed zero.
  9274. * src/DownloadCommand.cc
  9275. Rewritten using accumulate.
  9276. * src/RequestGroupMan.cc (calculateStat)
  9277. Code clearnup.
  9278. * src/FtpNegotiationCommand.cc
  9279. * src/HttpResponseCommand.cc
  9280. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9281. Fixed: Can not resume: aria2 reports download already finished.
  9282. * src/AbstractCommand.{h, cc}
  9283. * src/HttpResponseCommand.cc
  9284. * src/FtpNegotiateCommand.cc
  9285. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9286. Now a file is stored in the directory specified in .metalnk file
  9287. (file[@name]).
  9288. * src/Metalink2RequestGroup.cc
  9289. Create the directory structure when opening the file if it doesn't
  9290. exist.
  9291. * src/AbstractDiskWriter.cc
  9292. * src/Util.{h, cc}
  9293. * src/File.h
  9294. * test/UtilTest.cc
  9295. Removed file name comparison
  9296. * src/Metalink2RequestGroup.cc
  9297. * src/HttpResponseCommand.cc
  9298. Rewritten using Util::mkdirs()
  9299. * src/FileEntry.cc (setupDir)
  9300. * test/FileEntryTest.cc
  9301. Updated doc
  9302. * src/SingleFileDownloadContext.h
  9303. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9304. Now SleepCommand dispatches nextCommand when halt is requested.
  9305. It avoids a possible long wait after hitting CTRL-C.
  9306. * src/SleepCommand.{h, cc}
  9307. * src/RequestGroupAware.{h, cc}
  9308. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9309. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  9310. to open listen port, then remove the port number from the tracker
  9311. request.
  9312. * src/DefaultBtAnnounce.cc
  9313. * test/DefaultBtAnnounceTest.cc
  9314. * test/MockPieceStorage.h
  9315. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  9316. them more testable.
  9317. * src/DefaultBtAnnounce.{h, cc}
  9318. * src/DefaultBtContext.{h, cc}
  9319. * src/Util.{h, cc}
  9320. * test/DefaultBtAnnounceTest.cc
  9321. * test/DefaultBtContextTest.cc
  9322. * test/UtilTest.cc
  9323. Added 'B' to upload bytes readout.
  9324. * src/ConsoleStatCalc.cc
  9325. Now the listen port for BitTorrent download is opened when it is
  9326. needed.
  9327. * src/DownloadEngineFactory.cc
  9328. * src/BtSetup.{h, cc}
  9329. * src/PeerListenCommand.{h, cc}
  9330. Now an exception thrown while parsing tracker response is now logged.
  9331. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  9332. called, which means no retry is made in this case, assuming a tracker
  9333. has a problem.
  9334. * src/TrackerWatcherCommand.cc
  9335. Fixed: downloading a file whose length is unkown fails.
  9336. * src/DownloadCommand.cc
  9337. Simplified prepareForNextSegment()
  9338. * src/DownloadCommand.cc
  9339. Updated
  9340. * po/POTFILES.in
  9341. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9342. Re-implemented a file listing for Metalink, which was dropped while
  9343. http/ftp/torrent integration was being implemented.
  9344. * src/MetalinkHelper.{h, cc}: New class.
  9345. * test/MetalinkHelperTest.cc
  9346. * src/main.cc
  9347. * src/Metalink2RequestGroup.cc
  9348. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9349. Added the ability to display the detailed torrent file information.
  9350. Now -S option gives not only a file listing, but also total download
  9351. length, info hash, announce URI, piece length, the number of pieces,
  9352. and mode(single or multi-torrent).
  9353. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  9354. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  9355. KiB)
  9356. * test/UtilTest.cc
  9357. * src/main.cc
  9358. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9359. Added ftp://USER:PASSWD@Servername automatic parsing.
  9360. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  9361. _password. Recognize username and password in URI.
  9362. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  9363. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  9364. * src/RequestFactory.{h, cc}: Removed.
  9365. * src/AuthConfigFactory.{h, cc}: New class.
  9366. * src/FtpConnection.cc: Use AuthConfigFactory.
  9367. * src/HttpRequest.cc: Use AuthConfigFactory.
  9368. * test/HttpRequestTest.cc: Updated.
  9369. * test/RequestTest.cc: Updated.
  9370. * test/AuthConfigFactoryTest.cc: New class.
  9371. * test/RequestFactoryTest.cc: Removed.
  9372. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9373. Use RequestGroup::allDownloadFinished() to decide whether the control
  9374. file should be removed or saved.
  9375. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  9376. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  9377. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9378. Use File::renameTo()
  9379. * src/DefaultBtProgressInfoFile.cc
  9380. Added --no-file-allocation-limit command-line option.
  9381. * src/version_usage.cc
  9382. * src/option_processing.cc
  9383. * src/OptionHandlerFactory.cc
  9384. * src/RequestGroup.{h, cc}
  9385. * src/BtCheckIntegrityEntry.cc
  9386. * src/StreamCheckIntegrityEntry.cc
  9387. * src/prefs.h
  9388. * doc/aria2c.1.txt
  9389. * doc/aria2c.1
  9390. Now prealloc is the default value for --file-allocation option.
  9391. * src/version_usage.cc
  9392. * src/option_processing.cc
  9393. * doc/aria2c.1.txt
  9394. * doc/aria2c.1
  9395. Don't URL-encode user-agent.
  9396. * src/HttpRequest.cc
  9397. Updated translations
  9398. * po/LINGUAS: Added nl for Dutch translation.
  9399. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  9400. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  9401. * po/POTFILES.in: Updated.
  9402. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9403. Added the ability to recognize url-list in a torrent file.
  9404. The retrieved URLs are attached to the corresponding FileEntry.
  9405. * src/DefaultBtContext.{h, cc}
  9406. * src/FileEntry.{h, cc}
  9407. * test/DefaultBtContextTest.cc
  9408. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9409. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  9410. after the download finishes.
  9411. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9412. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  9413. the data smaller than block length.
  9414. A block length can be specified by constructor's argument.
  9415. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  9416. Get a missing piece in the range of given FileEntry. This function is
  9417. not used in the program yet.
  9418. * src/Util.h: Added some macros.
  9419. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9420. Added HTTP/1.1 keep alive and pipelining support.
  9421. See --enable-http-keep-alive and --enable-http-pipelining option.
  9422. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  9423. Segment.
  9424. * src/HttpDownloadCommand.{h, cc}
  9425. * src/OptionHandlerFactory.cc
  9426. * src/HttpConnection.{h, cc}
  9427. * src/version_usage.cc
  9428. * src/HttpInitiateConnectionCommand.cc
  9429. * src/FtpInitiateConnectionCommand.cc
  9430. * src/Segment.h
  9431. * src/HttpRequestCommand.{h, cc}
  9432. * src/option_processing.cc
  9433. * src/prefs.h
  9434. * src/HttpResponseCommand.cc
  9435. * src/SegmentMan.{h, cc}
  9436. * src/FtpNegotiateCommand.cc
  9437. * src/HttpProxyResponseCommand.cc
  9438. * src/Request.cc
  9439. * src/HttpRequest.cc
  9440. * src/DownloadCommand.cc
  9441. * test/HttpRequestTest.cc
  9442. * test/RequestTest.cc
  9443. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9444. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  9445. finished.
  9446. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9447. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  9448. catching it inside the method.
  9449. When no file entry is found in a metalink without querying user
  9450. preferences, throw the exception with the error message that suggests
  9451. metalink file is probably broken.
  9452. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  9453. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9454. Fixed the bug that prevents remote Metalink/Torrent file from begin
  9455. processed.
  9456. * src/RequestGroupMan.cc (removeStoppedGroup)
  9457. Added debug message.
  9458. * src/BtPostDownloadHandler.cc
  9459. * src/MetalinkPostDownloadHandler.cc
  9460. * src/PostDownloadHandler.{h, cc}
  9461. * src/RequestGroup.cc
  9462. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9463. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  9464. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9465. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  9466. stops and there are any unfinished or in-progress downloads.
  9467. Added the legend of "stat".
  9468. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9469. Throw exception when chunck checksum verification fails.
  9470. * src/DownloadCommand.cc (validatePieceHash): New function.
  9471. * src/PiecedSegment.{h, cc} (clear): New function.
  9472. * src/GrowSegment.{h, cc} (clear): New function.
  9473. * src/Segment.h (clear): New function.
  9474. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  9475. * test/SegmentTest.cc
  9476. * test/GrowSegmentTest.cc
  9477. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9478. Do not send referer when redirected.
  9479. * src/Request.cc (redirectUrl)
  9480. * test/RequestTest.cc
  9481. * test/HttpRequestTest.cc
  9482. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9483. Implemented BitTorrent/http/ftp integrated download.
  9484. I've rewritten lots of files and now some headers have forward
  9485. class declarations to reduce compile time.
  9486. The implementation is extremely alpha stage, I recommend to use this
  9487. for testing purpose only.
  9488. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9489. Fixed the compilation error on 64bit platform.
  9490. * test/HttpHeaderProcessorTest.cc
  9491. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9492. Merged Ross's patch that fixes compilation problem in MinGW
  9493. * test/DefaultBtProgressInfoFileTest.cc
  9494. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9495. Updated fr.po by sebone
  9496. * po/fr.po
  9497. Updated man page.
  9498. * doc/aria2c.1.txt
  9499. * Release 0.11.3
  9500. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9501. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  9502. failure in Metalink.
  9503. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9504. Automatically save *.aria2 control file of http/ftp download in every
  9505. 60 seconds.
  9506. * src/AutoSaveCommand.{h, cc}: New class.
  9507. * src/TimeBasedCommand.{h, cc}: New class.
  9508. * src/DownloadEngineFactory.cc (newConsoleEngine)
  9509. Disable parameterized URI support by default. Added -P option to
  9510. enable the feature.
  9511. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  9512. * src/OptionHandlerFactory.cc
  9513. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  9514. Updated Japanese translation.
  9515. * po/ja.po
  9516. Updated man page.
  9517. * doc/aria2c.1.txt
  9518. * Release 0.11.3-rc
  9519. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9520. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  9521. it is successful, then renamed to *.aria2.
  9522. This prevents *.aria2 file from being truncated or corrupted when
  9523. file system becomes out of space.
  9524. * src/DefaultBtProgressInfoFile.cc (save)
  9525. * src/SegmentMan.cc (save)
  9526. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  9527. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9528. Reduced the fragmentation of bitfield in http/ftp download.
  9529. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  9530. * test/BitfieldManTest.cc
  9531. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9532. Added the ability to disable segmented download in .metalink.
  9533. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  9534. 'url' tag.
  9535. * src/MetalinkEntry.{h, cc}
  9536. * src/RequestResource.{h, cc}
  9537. * src/MetalinkRequestInfo.cc
  9538. * src/Xml2MetalinkProcessor.cc
  9539. * test/Xml2MetalinkProcessorTest.cc
  9540. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9541. Added parameterized URI support.
  9542. * src/main.cc: -Z option added.
  9543. * src/OptionHandlerFactory.cc
  9544. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  9545. * src/PStringDatum.h: New class.
  9546. * src/PStringSegment.{h,cc}: New class.
  9547. * src/PStringNumLoop.h: New class.
  9548. * src/PStringSelect.h: New class.
  9549. * src/NumberDecorator.h: New class.
  9550. * src/FixedWidthNumberDecorator.h: New class.
  9551. * src/AlphaNumberDecorator.h: New class.
  9552. * src/PStringVisitor.h: New class.
  9553. * src/PStringBuildVisitor.{h,cc}: New class.
  9554. * src/ParameterizedStringParser.{h,cc}: New class.
  9555. * src/Util.{h,cc}
  9556. (isNumber): New function.
  9557. (isLowercase): New function.
  9558. (isUppercase): New function.
  9559. (alphaToNum): New function.
  9560. * test/ParameterizedStringParserTest.cc: New class.
  9561. * test/AlphaNumberDecoratorTest.cc: New class.
  9562. * test/PStringBuildVisitorTest.cc: New class.
  9563. * test/UtilTest.cc
  9564. (testIsNumber): New function.
  9565. (testIsLowercase): New function.
  9566. (testIsUppercase): New function.
  9567. (testAlphaToNum): New function.
  9568. Added '\n' after the error message
  9569. * src/RequestInfo.h (printDownloadAbortMessage)
  9570. Added auto file renaming feature in http(s)/ftp download.
  9571. * src/main.cc: Added --auto-file-renaming command-line option.
  9572. * src/OptionHandlerFactory.cc
  9573. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  9574. * src/RequestGroup.{h, cc}
  9575. (shouldCancelDownloadForSafety): Rewritten
  9576. (tryAutoFileRenaming): New function.
  9577. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  9578. * src/HttpResponseCommand.cc
  9579. (executeInternal): Removed the call to RequestGroupMan::
  9580. isSameFileBeingDownloaded()
  9581. * src/FtpNegotiateCommand.cc
  9582. (recvSize): Removed the call to RequestGroupMan::
  9583. isSameFileBeingDownloaded()
  9584. * test/RequestGroupTest.cc: New class.
  9585. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9586. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  9587. IO.
  9588. * src/DefaultBtProgressInfoFile.cc
  9589. * src/MetaFileUtil.cc
  9590. * src/SimpleLogger.cc
  9591. * src/SegmentMan.cc
  9592. * src/Util.cc
  9593. * src/Platform.cc
  9594. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9595. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  9596. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9597. Avoid sparse files if possible, because VFAT32 doesn't support it.
  9598. * src/DefaultDiskWriter.cc (initAndOpenFile)
  9599. Fixed the bug that prevents file allocation is not done when
  9600. dowloading multi-torrent file.
  9601. * src/AbstractDiskWriter.cc (openFile)
  9602. Increase the maximum number of -j option from 15 to 45.
  9603. * src/OptionHandlerFactory.cc (createOptionHandlers)
  9604. Added fr.po, thanks to Charles Landemaine.
  9605. * po/fr.po
  9606. * po/LINGUAS
  9607. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  9608. gcc 3.4.4 support:
  9609. * src/DefaultBtContext.cc: int32_t -> int
  9610. * src/main.cc: int -> int32_t, int32_t -> int
  9611. * src/messageDigest.h: uint32_t -> unsigned int
  9612. * src/NameResolver.h: int32_t -> int
  9613. * src/PeerConnection.cc: int -> int32_t
  9614. * src/SpeedCalc.cc: int32_t -> int
  9615. * src/TrackerUpdateCommand.h: int -> int32_t
  9616. * src/Util.cc: int32_t -> int
  9617. * src/Util.h: int32_t -> int
  9618. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  9619. * test/AnnounceListTest.cc: int -> int32_t
  9620. * test/ChunkedEncodingTest.cc: int -> int32_t
  9621. * test/DataTest.cc: int -> int32_t
  9622. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  9623. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  9624. * test/DefaultPieceStorageTest.cc: int -> int32_t
  9625. * test/FeatureConfigTest.cc: int -> int32_t
  9626. * test/MetalinkEntryTest.cc: int -> int32_t
  9627. * test/MockBtRequestFactory.h: int -> int32_t
  9628. * test/MockPieceStorage.h: int -> int32_t
  9629. * test/OptionTest.cc: int -> int32_t
  9630. * test/RequestTest.cc: int -> int32_t
  9631. * test/SegmentManTest.cc: int -> int32_t
  9632. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  9633. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  9634. Move sleep functions to Util class:
  9635. * src/Util.cc
  9636. (sleep): New function.
  9637. (usleep): New function.
  9638. * src/DownloadCommand.cc: sleep -> Util::sleep
  9639. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  9640. MinGW build enhancements. The following files are added:
  9641. * src/timegm.{c,h}
  9642. Changes to support the above new files:
  9643. * configure.ac
  9644. * src/Makefile.am
  9645. * src/a2time.h
  9646. * src/Util.cc:
  9647. * src/strptime.c: Added support for %Z option.
  9648. Fixed MinGW non-blocking bug.
  9649. * src/SocketCore.cc
  9650. * src/HttpRequestCommand.cc
  9651. Miscellenous build fixes/enhancements.
  9652. * configure.ac: Added summary report.
  9653. * src/Platform.h: Tweaked #include's.
  9654. * src/a2netcompat.h: Tweaked #include's.
  9655. * src/strptime.h: Tweaked #include's.
  9656. * src/gai_strerror.c: Tweaked #include's.
  9657. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  9658. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  9659. * src/gettimeofday.h: Added HAVE_CONFIG_H
  9660. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9661. Increased the initial connection size in BitTorrent download to 40.
  9662. * src/BtRuntime.h
  9663. Added the usage message of --peer-id-prefix option.
  9664. * src/main.cc
  9665. * Release 0.11.2
  9666. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9667. MessageDigestHelper is introduced in order to simplify the use
  9668. of message digest. Removed repeated code.
  9669. The message digest algorithm is now specified by string, like "sha1",
  9670. "md5".
  9671. * src/messageDigest.{h, cc}
  9672. * src/MessageDigestHelper.{h, cc}: New class.
  9673. * src/DefaultPieceStorage.cc
  9674. * src/DefaultBtContext.{h, cc}
  9675. (computeFastSet): New function.
  9676. (setInfoHash): Added for unit testing.
  9677. (setNumPieces): Added for unit testing.
  9678. * src/DefaultBtInteractive.cc
  9679. * src/BtPieceMessage.cc
  9680. * src/Peer.cc
  9681. * src/Checksum.h
  9682. * src/message.h
  9683. * src/IteratableChecksumValidator.h
  9684. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  9685. inside it.
  9686. * src/SegmentMan.{h, cc}
  9687. (checkIntegrity): Removed.
  9688. * src/IteratableChunkChecksumValidator.{h, cc}
  9689. * src/Util.h
  9690. (sha1Sum): Removed.
  9691. (simpleMessageDigest): Removed.
  9692. (fileChecksum): Removed.
  9693. (computeFastSet): Removed.
  9694. * src/ShaVisitor.cc
  9695. * src/ChunkChecksum.h
  9696. * src/DownloadCommand.cc
  9697. Removed messageDigest virtual functions.
  9698. * src/MultiDiskAdaptor.{h, cc}
  9699. * src/DiskAdaptor.h
  9700. * src/ByteArrayDiskWriter.h
  9701. * src/DiskWriter.h
  9702. * src/DiskAdaptorWriter.h
  9703. * src/AbstractSingleDiskAdaptor.{h, cc}
  9704. * src/AbstractDiskWriter.{h, cc}
  9705. Fixed comilation error when message digest is disabled.
  9706. * src/MetalinkEntry.{h, cc}
  9707. * src/MetalinkRequestInfo.cc
  9708. Removed srandom and random.
  9709. * src/SimpleRandomizer.h
  9710. Added size() virtual function to DiskAdaptor
  9711. * src/MultiDiskAdaptor.h
  9712. Fixed the bug that causes that files are not opened correctly in
  9713. multi-file torrent.
  9714. * src/TorrentRequestInfo.cc
  9715. * src/MultiDiskAdaptor.cc
  9716. Added SHA256 support
  9717. * src/messageDigest.cc
  9718. * src/Xml2MetalinkProcessor.cc
  9719. Show supported message digest algorithms
  9720. * src/main.cc
  9721. Updated contact info.
  9722. * src/main.cc
  9723. Applied Ross's patch
  9724. * src/a2netcompat.h
  9725. * src/main.cc
  9726. Fixed the bug that prevents a remote metalink from not being processed
  9727. even if '-o foo.metalink' is specified.
  9728. * src/MetalinkRequestInfo.cc
  9729. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9730. Merged Dan's patch:
  9731. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  9732. Use va_copy to avoid core dump on amd64:
  9733. * src/SimpleLogger.cc
  9734. Updated contact info.
  9735. * src/main.cc
  9736. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  9737. digest is not available.
  9738. * src/MetalinkEntry.h
  9739. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9740. Make a2netcompat.h include a2io.h to fix compilation error:
  9741. * src/a2netcompat.h
  9742. * src/SocketCore.cc: Removed include of a2io.h
  9743. * src/Util.cc: Removed include of a2io.h
  9744. Gather time related functions to a2time.h:
  9745. * src/a2time.h: New file.
  9746. * src/DefaultPeerStorage.cc
  9747. * src/SimpleLogger.cc
  9748. * src/Util.{h, cc}
  9749. * src/SimpleRandomizer.h
  9750. * src/TimeA2.{h,cc}
  9751. * src/DownloadCommand.cc
  9752. * src/main.cc
  9753. Removed #ifdef __MINGW32__ since gai_strerror is included in
  9754. a2netcompat.h:
  9755. * src/NameResolver.cc
  9756. Fixed compilation error without openssl:
  9757. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  9758. Added default block to suppress compiler warnings:
  9759. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  9760. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  9761. MinGW build enhancements. The following files are added:
  9762. * src/gai_strerror.{c,h}
  9763. * src/gettimeofday.{c,h}
  9764. Changes to support the above new files:
  9765. * configure.ac
  9766. * src/Makefile.am
  9767. * src/a2netcompat.h
  9768. * src/TimeA2.cc
  9769. * src/DefaultPeerStorage.cc
  9770. * src/NameResolver.cc: removed mingw_strerror() function.
  9771. * src/SocketCore.cc: removed mingw_strerror() function.
  9772. Miscellaneous MinGW build fixes.
  9773. * src/a2io.h: Use _lseeki64() instead of lseek()
  9774. * src/common.h
  9775. * src/DefaultFileAllocator.cc
  9776. * src/GlowFileAllocator.cc
  9777. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  9778. * src/NameResolver.cc
  9779. (callback): Changed int32_t to int.
  9780. (resolve): Changed int32_t to int.
  9781. * src/Platform.cc
  9782. * src/Platform.h
  9783. * test/MultiDiskWriterTest.cc
  9784. * test/PeerMessageUtilTest.cc
  9785. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  9786. Other enhancements and fixes.
  9787. * src/HttpRequestCommand.cc
  9788. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  9789. * src/SocketCore.cc:
  9790. (error): New function to abstract errno/WSAGetLastError().
  9791. (errorMsg): New function to abstract errno/WSAGetLastError().
  9792. (initiateSecureConnection): Added more detailed error reporting.
  9793. * src/SocketCore.h: Added private variable blocking, to allow
  9794. proper handling of OpenSSL psuedo-errors.
  9795. * src/message.h
  9796. (EX_SSL_INIT_FAILURE)
  9797. (EX_SSL_IO_ERROR)
  9798. (EX_SSL_PROTOCOL_ERROR)
  9799. (EX_SSL_UNKNOWN_ERROR)
  9800. (EX_SSL_CONNECT_ERROR)
  9801. (EX_SOCKET_BLOCKING)
  9802. (EX_SOCKET_NONBLOCKING)
  9803. (EX_SOCKET_UNKNOWN_ERROR)
  9804. * src/Util.cc
  9805. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  9806. reserved name.
  9807. (httpGMT): Fixed typo.
  9808. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9809. Merged Ross's win32 patch(manually)
  9810. In the course of merging, following files are added.
  9811. * src/strptime.{h,c}
  9812. * src/libgen.{h,c}
  9813. * src/inet_aton.{h,c}
  9814. * src/Platform.{h,cc}
  9815. * src/localtime_r.{h,c}
  9816. * src/getaddrinfo.{h,c}
  9817. I've gethered network related things, and put them to following file:
  9818. * src/a2netcompat.h
  9819. Also io related things are put to following file:
  9820. * src/a2io.h
  9821. Changed %lld to %s because mingw32 doesn't recognize %lld.
  9822. * src/message.h
  9823. (MSG_ALLOCATION_COMPLETED)
  9824. (EX_TOO_LARGE_FILE)
  9825. (EX_SIZE_MISMATCH)
  9826. (EX_FILE_OFFSET_OUT_OF_RANGE)
  9827. (EX_INVALID_CHUNK_CHECKSUM)
  9828. (EX_INVALID_RANGE_HEADER)
  9829. * src/FileAllocationCommand.cc
  9830. * src/HttpResponse.cc
  9831. * src/RequestGroup.cc
  9832. * src/MultiDiskAdaptor.cc
  9833. * src/OptionHandlerImpl.h
  9834. * src/HttpResponseCommand.cc
  9835. * src/FtpNegotiateCommand.cc
  9836. * src/IteratableChecksumValidator.cc
  9837. * src/SegmentMan.cc
  9838. * src/ChunkChecksumValidator.cc
  9839. Added Randomizer::getRandomNumber(long int)
  9840. * src/Randomizer.h (getRandomNumber)
  9841. * src/SimpleRandomizer.h (getRandomNumber)
  9842. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  9843. * src/Util.cc (randomAlpha): Use this new function.
  9844. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9845. Converted int's to in32_t. long long int's are also converted to
  9846. int64_t
  9847. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9848. Fixed the bug that prevents cookies from being sent to the server
  9849. if the domain of cookie is FQDN and starts with ".".
  9850. * src/Cookie.cc (match)
  9851. To add the ability to change peer id.
  9852. * src/DefaultBtContext.h
  9853. (_peerIdPrefix): New variable
  9854. (setPeerIdPrefix): New function.
  9855. * src/torrentRequestInfo.cc
  9856. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  9857. DefaultBtContext.
  9858. * src/main.cc (main): Added peer-id-prefix command-line option.
  9859. The usage message is not added yet.
  9860. * src/DefaultBtContext.cc
  9861. (generatePeerId): Use _peerIdPrefix.
  9862. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  9863. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9864. Fixed the bug that prevents filename in content-disposition from
  9865. being retrieved when filename is not quoted.
  9866. * src/Util.cc (getContentDispositionFilename)
  9867. Fixed the bug that causes infinate loop and memory leak when file open
  9868. operation failed.
  9869. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  9870. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9871. Fixed the bug that causes segfault when all URIs specified are
  9872. unsupported.
  9873. * src/RequestGroupMan.cc (getInitialCommands)
  9874. Check if RequestGroup::createNextCommand() returns empty list of
  9875. commands.
  9876. * src/RequestGroup.cc (createNextCommand)
  9877. Change log level from info to error so that users can notice that
  9878. an error occurred.
  9879. Fixed the bug that causes segfault when a zero-sized file is
  9880. downloaded.
  9881. * src/BitfieldMan.cc (isAllBitSet)
  9882. Return true if bitfieldLength is 0.
  9883. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9884. * src/main.cc
  9885. (showUsage): Added 3 usage examples for metalink download.
  9886. Replace MetalinkChunkChecksum with ChunkChecksum.
  9887. * src/MetalinkChunkChecksum.h: Removed.
  9888. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  9889. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  9890. * src/Xml2MetalinkProcessor.cc
  9891. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  9892. * src/MetalinkRequestInfo.cc (execute)
  9893. * Release 0.11.1
  9894. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9895. Reads URIs from stdin when "-i -" is specified.
  9896. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  9897. * src/UriListParser.h, src/UriListParser.cc: New class.
  9898. * src/StreamUriListParser.h: New class.
  9899. * src/FileUriListParser.h: New class.
  9900. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  9901. instead of UriFileListParser.
  9902. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9903. Made console readout more readable.
  9904. * src/ConsoleDownloadEngine.cc (sendStatistics)
  9905. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9906. Fix the bug that causes -s option not to work.
  9907. * src/main.cc (main)
  9908. * src/a2algo.h: New file.
  9909. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9910. Create directory structure specified in metalink file.
  9911. * src/RequestGroup.h, src/RequestGroup.cc
  9912. (initAndOpenFile): Create a directory to store files if it does not
  9913. exist.
  9914. (getDir): New function.
  9915. Added ETA and download speed for an individual file to readout.
  9916. * src/ConsoleDownloadEngine.cc (sendStatistics)
  9917. * src/RequestGroup.h
  9918. (calculateDownloadSpeed): New function.
  9919. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9920. Made -S option work with metalink file and provided selective download
  9921. to metalink.
  9922. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  9923. (filename): Removed.
  9924. (file): New variable.
  9925. (size): Removed.
  9926. (operator=): Updated.
  9927. (getPath): New function.
  9928. (getLength): New function.
  9929. (toFileEntry): New function.
  9930. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  9931. (execute): Use toStream.
  9932. (showFileEntry): Removed.
  9933. * src/MetalinkRequestInfo.h
  9934. (targetFiles): New variable.
  9935. (setTargetFiles): New variable.
  9936. * src/MetalinkRequestInfo.cc
  9937. (execute): Added the ability to print file information included in
  9938. a metalink file.
  9939. Added selective download mode to metalink.
  9940. * src/main.cc
  9941. (showUsage): Updated to denote that -S and --select-file options are
  9942. applicable to metalink.
  9943. * src/FileEntry.h
  9944. (operator=): New function.
  9945. (getBasename): New function.
  9946. (getDirname): New function.
  9947. * src/Util.h, src/Util.cc
  9948. (toStream): New function.
  9949. * src/Xml2MetalinkProcessor.cc: Updated.
  9950. Made aria2 work with metalink with directory structure.
  9951. * src/File.h, src/File.cc
  9952. (getBasename): New function.
  9953. (getDirname): New function.
  9954. * src/RequestGroup.h, src/RequestGroup.cc
  9955. (_topDir): New variable.
  9956. (setTopDir): New function.
  9957. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  9958. Rewrote HTTP header parsing with stringstream.
  9959. * src/HttpConnection.h, src/HttpConnection.cc
  9960. (HttpRequestEntry): New class.
  9961. (headerBuf): Removed.
  9962. (headerBufLength): Removed.
  9963. (outstandingHttpRequests): Now its element type is
  9964. HttpRequestEntryHandle.
  9965. (findEndOfHeader): Removed.
  9966. (receiveResponse): Rewritten.
  9967. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  9968. Updated doc for -j option to notice that it should be used with -i
  9969. option.
  9970. * src/main.cc (showUsage)
  9971. Removed unused classes.
  9972. * src/RequestInfo.h
  9973. (FileInfo): Removed.
  9974. (checksum): Removed.
  9975. (fileInfo): Removed.
  9976. (setChecksum): Removed.
  9977. (getChecksum): Removed.
  9978. (getFileInfo): Removed.
  9979. Use ISO units.
  9980. * src/ConsoleDownloadEngine.cc
  9981. * src/TorrentConsoleDownloadEngine.cc
  9982. * src/Util.cc (abbrevSize)
  9983. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9984. Added the default listening ports to the help message.
  9985. * src/main.cc (showUsage)
  9986. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9987. Reduce the number of calls to gettimeofday to lower CPU load.
  9988. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  9989. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  9990. * src/Peer.h (calculateUploadSpeed): New function.
  9991. (calculateDownloadSpeed): New function.
  9992. * src/DefaultPeerStorage.cc
  9993. (CalculateStat): Added _now variable.
  9994. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  9995. and Peer::calculateUploadSpeed(const struct timeval&)
  9996. Drop connection if no request or piece message is exchanged in
  9997. a certain interval.
  9998. * src/DefaultBtInteractive.h
  9999. (btRuntime): New variable.
  10000. (inactiveCheckPoint): New variable.
  10001. (checkActiveInteraction): New function.
  10002. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  10003. request or piece message is received.
  10004. (checkActiveInteraction): New function.
  10005. (doInteractionProcessing): Call checkActiveInteraction.
  10006. Fixed the bug that causes remote Metalink and Torrent files are not
  10007. processed.
  10008. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  10009. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10010. Changed format of log file.
  10011. * src/SimpleLogger.cc
  10012. * Release 0.11.0
  10013. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10014. * src/AbstractCommand.cc
  10015. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  10016. MSG_MAX_TRY from error to info.
  10017. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  10018. * src/message.h
  10019. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  10020. (MSG_DOWNLOAD_ABORTED): Added %s.
  10021. (MSG_RESTARTING_DOWNLOAD): Added %s.
  10022. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  10023. * src/PeerAbstractCommand.cc
  10024. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  10025. * src/Request.h
  10026. (cookieBox): Made ShardHandle.
  10027. * src/RequestGroup.h, src/RequestGroup.cc
  10028. (createNextCommandWithAdj): New function.
  10029. * src/FileAllocationCommand.cc
  10030. (executeInternal): Use createNextCommandWithAdj().
  10031. * src/CheckIntegrityCommand.cc
  10032. (executeInternal): Use createNextCommandWithAdj().
  10033. Added --load-cookies command-option.
  10034. * src/OptionHandlerFactory.cc
  10035. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  10036. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  10037. Now aria2 can handle cookie's expiration date.
  10038. * src/Cookie.h (expires): Changed its type to time_t.
  10039. * src/main.cc: Added --load-cookies command-line option.
  10040. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  10041. * src/Util.h, src/Util.cc (httpGMT): New function.
  10042. * src/Request.cc (Request): Initialize cookieBox using
  10043. CookieBoxFactory.
  10044. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  10045. * src/CookieParser.h, src/CookieParser.cc: New class.
  10046. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  10047. * src/HttpResponseCommand.cc
  10048. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  10049. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  10050. download.
  10051. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10052. Added -j command-line option.
  10053. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10054. * src/main.cc
  10055. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  10056. Rewritten using stringstream.
  10057. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  10058. Rewritten using stringstream.
  10059. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10060. Make download size shown in MB, KB.
  10061. * src/ConsoleDownloadEngine.h (sendStatistics)
  10062. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  10063. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10064. Accept incoming connections if download rate is low.
  10065. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  10066. (_lowestSpeedLimit): New variable.
  10067. (setLowestSpeedLimit): New function.
  10068. (execute): Accept incoming connections if download rate is low.
  10069. MAX_PEERS is ignored in this case.
  10070. Disable PREF_OUT in multiple concurrent download:
  10071. * src/RequestGroup.h, src/RequestGroup.cc
  10072. (setUserDefinedFilename): New function.
  10073. * src/DownloadEngineFactory.cc
  10074. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  10075. concurrent download.
  10076. * src/DefaultSegmentManFactory.cc
  10077. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  10078. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10079. RequestGroup::getNextCommand() was renamed to createNextCommand().
  10080. Added its overloaded method.
  10081. * src/RequestGroup.h
  10082. (_numConcurrentCommand): New variable.
  10083. (setNumConcurrentCommand): New function.
  10084. * src/RequestGroup.cc
  10085. Abort download if same file is being downloaded concurrently.
  10086. * src/RequestGroup.h, src/RequestGroupMan.cc
  10087. (isSameFileBeingDownloaded): New function.
  10088. * src/HttpResponseCommand.cc (executeInternal)
  10089. * src/FtpNegotiateCommand.cc (recvSize)
  10090. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  10091. * main.cc: Added help message for -i option.
  10092. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10093. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  10094. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  10095. * src/MetalinkEntry.h
  10096. (checksum): Changed to ChecksumHandle
  10097. * src/MetalinkRequestInfo.cc
  10098. (checksum): Changed to ChecksumHandle
  10099. * src/File.cc
  10100. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  10101. * src/common.h
  10102. (DIR_OPEN_MODE): New definition
  10103. * src/RequestGroup.cc
  10104. (prepareForNextAction): Added an argument.
  10105. * src/message.h
  10106. (MSG_GOOD_CHECKSUM): New definition
  10107. (MSG_BAD_CHECKSUM): New definition
  10108. * src/HttpResponseCommand.cc
  10109. (handleDefaultEncoding): Continue download sequence in new
  10110. non-segmented download.
  10111. * src/FileAllocationEntry.h
  10112. (_nextDownloadCommand): New variable.
  10113. * src/DownloadCommand.cc
  10114. (prepareForNextSegment): Create ChecksumCommand if checksum is
  10115. available.
  10116. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  10117. * src/IteratableChecksumValidator.h,
  10118. src/IteratableChecksumValidator.cc: New class.
  10119. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  10120. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10121. Change file mode to 666:
  10122. * src/common.h (OPEN_MODE): New definition.
  10123. * src/File.cc
  10124. * src/Util.cc
  10125. * src/Directry.cc
  10126. * src/AbstractDiskWriter.cc
  10127. Change the level of log message "download aborted" to debug:
  10128. * src/PeerAbstractCommand.cc (execute)
  10129. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  10130. * src/TrackerWatcherCommand.cc
  10131. (createCommand): Sleep some seconds after request failed.
  10132. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  10133. then abort tracker request.
  10134. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10135. * Added the simultaneous download feature.
  10136. * src/main.cc: Print "Exception caught: " when exception is caught.
  10137. Use CUIDCounter instead of BtRuntime::getNewCuid():
  10138. * src/ActivePeerConnectionCommand.cc
  10139. * src/PeerInteractionCommand.cc
  10140. * src/BtRuntime.h
  10141. (cuidCounter): Removed.
  10142. (getNewCuid): Removed.
  10143. * src/DownloadEngineFactory.cc
  10144. * src/PeerListenCommand.cc
  10145. * src/TrackerUpdateCommand.cc
  10146. * src/PeerInitiateConnectionCommand.cc
  10147. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10148. * src/PeerAbstractCommand.cc
  10149. (onAbort): Call PeerStorage::returnPeer()
  10150. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  10151. (incomingPeers): New variable.
  10152. (addIncomingPeer): New function.
  10153. (returnPeer): New function.
  10154. (onErasingPeer): New function.
  10155. (addPeer): push_back -> push_front
  10156. (getActivePeers): Rewritten.
  10157. (calculateStat): Rewritten.
  10158. * src/PeerStorage.h
  10159. (TransferStat::copy): New function.
  10160. (TransferStat::TransferStat): New function.
  10161. (TransferStat::operator=): New function.
  10162. (addIncomingPeer): New function.
  10163. (returnPeer): New function.
  10164. * src/PeerListenCommand.cc
  10165. (execute): Use PeerStorage::addIncomingPeer() instead of
  10166. Peer::addPeer().
  10167. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10168. Connect to a peer actively when download speed is lower than specified
  10169. speed in torrent download:
  10170. * src/ActivePeerConnectionCommand.h: New class.
  10171. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10172. * src/HttpRequest.cc (createRequest): url-encode user-agent
  10173. * src/main.cc: Fixed the bug that prevents download if .netrc
  10174. doesn't exist.
  10175. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10176. To cache resolved hostname:
  10177. * src/AbstractCommand.h, src/AbstractCommand.cc
  10178. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  10179. Added dns cache.
  10180. * src/FtpInitiateConnectionCommand.cc
  10181. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  10182. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  10183. NameResolver working without ares.
  10184. * src/TorrentRequestInfo.cc
  10185. (execute): Don't cache dns in torrent download.
  10186. * src/HttpInitiateConnectionCommand.cc
  10187. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  10188. * src/DNSCache.h: New class.
  10189. * src/UrlRequestInfo.cc
  10190. (execute): Use dns cache.
  10191. In http request, suppress port number in http request header if port
  10192. is 80 or 443:
  10193. * src/HttpRequest.cc (getHostText): Suppress port number in http
  10194. request header if port is 80 or 443.
  10195. (createProxyRequest): Allways send port number.
  10196. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10197. To add the command-line option which disables netrc support:
  10198. * src/OptionHandlerFactory.cc
  10199. (createOptionHandlers): Added PREF_NO_NETRC.
  10200. * src/main.cc: Added -n option.
  10201. * src/prefs.h (PREF_NO_NETRC): New definition.
  10202. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  10203. V_TRUE.
  10204. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  10205. is V_FALSE. This may get configurable in the future release.
  10206. To clear peer's error status by time basis:
  10207. * src/PeerAbstractCommand.cc
  10208. (onAbort): Call Peer::startBadCondition().
  10209. * src/Peer.h, src/Peer.cc
  10210. (error): Removed.
  10211. (_badConditionStartTime): New variable.
  10212. (_badConditionInterval): New variable. Initialized to 10 seconds.
  10213. (startBadCondition): New function.
  10214. (isGood): New function.
  10215. * src/DefaultPeerStorage.cc
  10216. (addPeer): Use Peer::isGood().
  10217. (FindFinePeer): Use Peer::isGood().
  10218. Always include port number in http request header:
  10219. * src/HttpRequest.cc (getHostText): Always include port number in
  10220. http request header.
  10221. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10222. To the ability to read options from a config file:
  10223. * src/main.cc: Command-line parameter validation is delegated to
  10224. OptionHandler class.
  10225. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  10226. * src/Option.h, src/Option.cc (clear): New function.
  10227. * src/OptionParser.h, src/OptionParser.cc: New class.
  10228. * src/OptionHandler.h: New class.
  10229. * src/NameMatchOptionHandler.h: New class.
  10230. * src/OptionHandlerImpl.h: New classes.
  10231. * src/prefs.h: '_' -> '-'
  10232. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  10233. (FTP_PASV): New definition.
  10234. * src/Util.h, src/Util.cc (getRealSize): New function.
  10235. To disable netrc support if .netrc file does not have correct
  10236. permissions:
  10237. * src/File.h, src/File.cc (mode): New function.
  10238. To prevent confidential information to be logged:
  10239. * src/HttpConnection.h, src/HttpConnection.cc
  10240. (eraseConfidentialInfo): New function.
  10241. (sendRequest): Call eraseConfidentialInfo().
  10242. (sendProxyRequest): Call eraseConfidentialInfo().
  10243. * src/main.cc: Validate permissions of .netrc file.
  10244. To add --user-agent command-line option:
  10245. * src/main.cc: Added new command line option: --user-agent
  10246. * src/prefs.h (PREF_USER_AGENT): New definition.
  10247. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  10248. parameter to HttpRequest object.
  10249. * src/AbstractProxyRequestCommand.cc
  10250. (executeInternal): Set user-agent option parameter to HttpRequest
  10251. object.
  10252. Marged the patches from Dan Fandrich.
  10253. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10254. Use filename and size from Metalink file instead of sending HEAD
  10255. request:
  10256. * src/UrlRequestInfo.h
  10257. (_filename): New variable.
  10258. (_totalLength): New variable.
  10259. (setTotalLength): New variable.
  10260. (setFilename): New variable.
  10261. * src/MetalinkRequestInfo.cc
  10262. (execute): Set filename and size to UrlRequestInfo
  10263. * src/UrlRequestInfo.cc
  10264. (execute): Use filename and size from Metalink instead of seding
  10265. HEAD request to servers.
  10266. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10267. To add the ability to resume downloading a partially downloaded file
  10268. which is downloaded from the beginning:
  10269. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  10270. takes this role.
  10271. * src/main.cc: Added -c option.
  10272. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  10273. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  10274. * src/prefs.h (PREF_CONTINUE): New definition.
  10275. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  10276. * src/DefaultDiskWriter.cc
  10277. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  10278. * src/AbstractDiskWriter.h
  10279. (glowFileAllocator): New variable.
  10280. * src/AbstractDiskWriter.cc
  10281. (openExistingFile): Now preallocate file space from the end of the
  10282. existing file if totalLength argument is specified and grater than 0.
  10283. * src/UrlRequestInfo.cc: If -c option is specified and the file
  10284. to download exists in local, continue the download of the file.
  10285. --allow-overwrite=true is assumed in this context.
  10286. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  10287. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  10288. Throw exception if --check-integrity=true is specified but chunk
  10289. checksums are not provided:
  10290. * src/UrlRequestInfo.cc
  10291. Do not print URLs to stdout:
  10292. * src/UrlRequestInfo.cc
  10293. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10294. * src/Request.h: Use AuthResolver to get authentication information.
  10295. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  10296. set to RequestFactory object.
  10297. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  10298. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  10299. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  10300. create Request object.
  10301. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  10302. To integrate Netrc into exsiting classes:
  10303. * src/Request.h
  10304. (_userDefinedAuthConfig): New variable.
  10305. (findNetrcAuthenticator): New function.
  10306. (segment): Removed.
  10307. (setUserDefinedAuthConfig): New function.
  10308. (resolveHttpAuthConfigItem): New function.
  10309. (resolveFtpAuthConfigItem): New function.
  10310. (resolveHttpProxyAuthConfigItem): New function.
  10311. * src/HttpRequest.h
  10312. (authConfig): Removed.
  10313. (proxyAuthConfig): Removed.
  10314. (setAuthConfig): Removed.
  10315. (setProxyAuthConfig): Removed.
  10316. * src/UrlRequest.h
  10317. (getHeadResult): Added a parameter: authConfigHandle
  10318. * src/common.h
  10319. (SingletonHolder.h): New include.
  10320. * src/main.cc
  10321. (Netrc.h): New include.
  10322. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  10323. Added initial value of PREF_NETRC_PATH.
  10324. Added the initialization of netrc.
  10325. * src/AuthConfig.h: New class.
  10326. * src/prefs.h
  10327. (PREF_NETRC_PATH): New definition.
  10328. * src/HttpAuthConfig.h: Removed.
  10329. * src/Netrc.cc
  10330. (getRequiredNextToken): New function.
  10331. (skipMacdef): New function.
  10332. (parse): Rewritten.
  10333. * src/Netrc.h
  10334. (getRequiredNextToken): New function.
  10335. (skipMacdef): New function.
  10336. * src/Util.h, src/Util.cc
  10337. (getHomeDir): New function.
  10338. * src/TrackerWatcherComand.cc
  10339. (createRequestCommand): Use AuthConfig.
  10340. * src/FtpConnection.cc
  10341. (sendUser): Use Request::resolveFtpAuthConfigItem().
  10342. (sendPass): Use Request::resolveFtpAuthConfigItem().
  10343. * src/Request.cc
  10344. (findNetrcAuthenticator): New function.
  10345. (resolveHttpAuthConfigItem): New function.
  10346. (resolveFtpAuthConfigItem): New function.
  10347. (resolveHttpProxyAuthConfigItem): New function.
  10348. * src/UrlRequestInfo.cc: Use AuthConfig.
  10349. * src/HttpRequest.cc
  10350. (createRequest): Use authConfig.
  10351. (getProxyAuthString): Use authConfig.
  10352. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  10353. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  10354. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10355. To reduce overhead to find commands whose socket is either
  10356. readable or writable in the download engine loop:
  10357. * src/Command.h, src/Command.cc
  10358. (STATUS): New enum.
  10359. (status): New variable.
  10360. (statusMatch): New function.
  10361. (setStatusActive): New function.
  10362. (setStatusInactive): New function.
  10363. * src/DownloadEngine.h, src/DownloadEngine.cc
  10364. (executeCommand): New function.
  10365. (run): Simplified.
  10366. (waitData): Call Command::setStatusActive() when command's socket is
  10367. readable or writable.
  10368. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10369. To handle Segment as SegmentHandle:
  10370. * src/AbstractCommand.cc (execute): Rewritten.
  10371. * src/SegmentMan.h: Segment -> SegmentHandle
  10372. Introducded HttpResponse class, HttpRequest class to improve code
  10373. extensiveness and make it clear:
  10374. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  10375. HttpResponse class.
  10376. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  10377. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  10378. * src/HttpConnection.cc: Contruction of http request were moved to
  10379. HttpRequest class.
  10380. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  10381. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  10382. * src/HttpAuthConfig.h: New class.
  10383. * src/Range.h: New class.
  10384. To make FtpTunnel{Request, Response}Command and
  10385. HttpProxy{Request, Response}Command derived from
  10386. AbstractProxy{Request, Response}Command:
  10387. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  10388. Derived from AbstractProxyRequestCommand class.
  10389. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  10390. Derived from AbstractProxyResponseCommand class.
  10391. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  10392. Derived from AbstractProxyRequestCommand class.
  10393. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  10394. Derived from AbstractProxyResponseCommand class.
  10395. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  10396. : New class.
  10397. * src/AbstractProxyResponseCommand.h,
  10398. src/AbstractProxyResponseCommand.cc: New class.
  10399. To add netrc support:
  10400. * src/Netrc.h, src/Netrc.cc: New class.
  10401. * src/Util.h, src/Util.cc (split): New function.
  10402. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  10403. "Content-Range" header instead of "Range" header.
  10404. * src/HttpHeader.h
  10405. (getStatus): Removed.
  10406. (setStatus): Removed.
  10407. * src/Segment.h
  10408. (getPositionToWrite): New function.
  10409. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10410. * src/HttpHeader.h
  10411. (Range.h): New include.
  10412. (status): New variable.
  10413. (HttpHeader): Initialized status with 0.
  10414. (getStatus): New function.
  10415. (setStatus): New function.
  10416. (getRange): New function.
  10417. (HttpHeaderHandle): New function.
  10418. * src/HttpHeader.cc
  10419. (getRange): New function.
  10420. * src/Request.h
  10421. (RequestWeakHandle): New definition.
  10422. * src/HttpConnection.h
  10423. (HttpConnectionHandle): New type definition.
  10424. * src/HttpConnection.cc
  10425. (receiveResponse): Set HTTP status to headers.
  10426. * src/main.cc
  10427. (showUsage): Fixed typo.
  10428. * src/Segment.h
  10429. (SegmentHandle): New type definition.
  10430. * src/BitfieldMan.h
  10431. (getMissingUnusedLength): New function.
  10432. * src/BitfieldMan.cc
  10433. (getMissingUnusedLength): New function.
  10434. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10435. To fix static initialization order problem:
  10436. * src/BitfieldManFactory.h
  10437. (defaultRandomizer): Removed.
  10438. (factory): New variable.
  10439. (getNewFactory): Removed.
  10440. (getFactoryInstance): New function.
  10441. (setDefaultRandomizer): Rewritten.
  10442. (getDefaultRandomizer): Rewritten.
  10443. * src/BitfieldManFactory.cc
  10444. (defaultRandomizer): Removed.
  10445. (factory): Initialized to 0.
  10446. (BitfieldManFactory): Initialized randomizer to 0.
  10447. * src/DefaultPieceStorage.cc
  10448. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  10449. * src/Peer.cc
  10450. (Peer): getNewFactory() -> getFactoryInstance()
  10451. * src/SegmentMan.cc
  10452. (initBitfield): getNewFactory() -> getFactoryInstance()
  10453. * src/Piece.cc
  10454. (Piece): getNewFactory() -> getFactoryInstance()
  10455. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10456. To fix the bug that causes crash on Max OS X:
  10457. * src/SimpleRandomizer.h
  10458. (getInstance): Create new instance if the static variable is null.
  10459. * src/SimpleRandomizer.cc
  10460. (randomizer): Initialized to 0.
  10461. * src/BitfieldManFactory.h
  10462. (getNewFactory): Removed the call to setRandomizer().
  10463. To fix the miscalculation of the range of checksum:
  10464. * src/BitfieldMan.h
  10465. (isBitSetOffsetRange): New function.
  10466. * src/BitfieldMan.cc
  10467. (isBitSetOffsetRange): New function.
  10468. * src/SegmentMan.cc
  10469. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  10470. Use bitfield->getBlockLength() instead of segment.segmentLength.
  10471. * Release 0.10.1
  10472. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10473. To lower CPU usage in BitTorrent download when --max-upload-limit
  10474. command-line option specified:
  10475. * src/DefaultBtMessageDispatcher.cc
  10476. (sendMessages): Calculate uploading speed only when current message
  10477. is uploading data and is not sent yet.
  10478. * src/DefaultPeerStorage.h
  10479. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  10480. * src/HttpResponseCommand.cc
  10481. (handleDefaultEncoding): Added the cast to int32_t to itos.
  10482. This fixes compile error in Soralis 10.
  10483. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10484. To fix segfault in Metalink download:
  10485. * src/UrlRequestInfo.h
  10486. (filename): Removed.
  10487. (totalLength): Removed.
  10488. (setTotalLength): Removed.
  10489. (setFilename): Removed.
  10490. * src/MetalinkRequestInfo.cc
  10491. (execute): Do not set filename and totalLength to reqInfo.
  10492. Set chunk checksum to reqInfo if it is not null.
  10493. * src/HttpResponseCommand.cc
  10494. (executeInternal): Fixed filename in log.
  10495. (handleDefaultEncoding): Removed the call to initBitfield() and
  10496. markAllPiecesDone().
  10497. (handleOtherEncoding): Added HEAD method handling.
  10498. * src/FtpNegotiateCommand.cc
  10499. (executeInternal): Added SEQ_HEAD_OK handling.
  10500. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  10501. return false.
  10502. * src/FtpNegotiateCommand.h
  10503. (SEQ_HEAD_OK): New definition.
  10504. * src/SegmentMan.cc
  10505. (initBitfield): Delete bitfield.
  10506. (isChunkChecksumValidationReady): Fixed the condition.
  10507. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  10508. works fine.
  10509. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10510. * src/Xml2MetalinkProcessor.h
  10511. (xpathExists): New function.
  10512. * src/Xml2MetalinkProcessor.cc
  10513. (xpathExists): New function.
  10514. Not to send HEAD request if filename and size are available in Metalink
  10515. file:
  10516. * src/UrlRequestInfo.h
  10517. (filename): New variable.
  10518. (totalLength): New variable.
  10519. (setTotalLength): New function.
  10520. (setFilename): New function.
  10521. * src/MetalinkRequestInfo.cc
  10522. (execute): Set filename and size to UrlRequestInfo.
  10523. * src/MetalinkEntry.cc
  10524. (MetalinkEntry): Initialize size with 0.
  10525. * src/UrlRequestInfo.cc
  10526. (execute): Set filename and size to SegmentMan.
  10527. Not to download rest of the files after selected files are downloaded
  10528. in BitTorrent:
  10529. * src/PieceStorage.h
  10530. (allDownloadFinished): New function.
  10531. * src/DefaultBtAnnounce.cc
  10532. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  10533. downloadFinished.
  10534. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  10535. * src/DefaultPieceStorage.cc
  10536. (completePiece): Use allDownloadFinished instead of downloadFinished.
  10537. Commented out the call to finishSelectiveDownloadingMode().
  10538. (downloadFinished): Call isFilteredAllBitSet() instead of
  10539. isAllBitSet().
  10540. (allDownloadFinished): New function.
  10541. * src/DefaultBtInteractive.cc
  10542. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  10543. downloadFinished().
  10544. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  10545. * src/TorrentDownloadEngine.cc
  10546. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  10547. * src/BitfieldMan.h
  10548. (isFilteredAllBitSet): New function.
  10549. * src/ShareRatioSeedCriteria.h
  10550. (PieceStorage.h): New include.
  10551. (pieceStorage): New variable.
  10552. (evaluate):
  10553. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  10554. * src/BitfieldMan.cc
  10555. (isFilteredAllBitSet): New function.
  10556. (isAllBitSet): Filter is not took into account.
  10557. Rename --force-truncate as --allow-overwrite:
  10558. * src/TorrentRequestInfo.cc
  10559. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  10560. * src/main.cc
  10561. (showUsage): --force-truncate -> --allow-overwrite
  10562. * src/message.h
  10563. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  10564. * src/prefs.h
  10565. (PREF_FORCE_TRUNCATE): Removed.
  10566. (PREF_ALLOW_OVERWRITE): New definition.
  10567. * src/SegmentMan.cc
  10568. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  10569. * src/MetalinkRequestInfo.cc
  10570. (execute): Queueing message are now logged in info level.
  10571. * src/common.h
  10572. (LONG_LONG_MAX): Removed.
  10573. (LONG_LONG_MIN): Removed.
  10574. * src/HttpResponseCommand.cc
  10575. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  10576. * src/FtpNegotiateCommand.cc
  10577. (recvSize): LONG_LONG_MAX -> INT64_MAX
  10578. * src/main.cc
  10579. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  10580. command-line option.
  10581. (main): Added --check-integriy and --realtime-chunk-checksum
  10582. command-line option.
  10583. --force-truncate -> --allow-overwrite
  10584. Set initial value of --check-integrity option to false.
  10585. Don't show usage when error occurs while persing command-line options.
  10586. Removed deprecated --upload-limit option.
  10587. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10588. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  10589. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  10590. * src/BtAllowedFastMessage.cc:
  10591. * src/BtBitfieldMessage.cc
  10592. * src/BtCancelMessage.cc
  10593. * src/BtChokeMessage.cc
  10594. * src/BtHaveAllMessage.cc
  10595. * src/BtHaveMessage.cc
  10596. * src/BtHaveNoneMessage.cc
  10597. * src/BtInterestedMessage.cc
  10598. * src/BtNotInterestedMessage.cc
  10599. * src/BtPieceMessage.cc
  10600. * src/BtPortMessage.cc
  10601. * src/BtRejectMessage.cc
  10602. * src/BtRequestMessage.cc
  10603. * src/BtSuggestPieceMessage.cc
  10604. * src/BtUnchokeMessage.cc
  10605. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  10606. files are affected.
  10607. * src/ChunkChecksumValidator.cc
  10608. * src/SegmentMan.cc
  10609. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10610. To add chunk checksum validation:
  10611. * src/MetalinkEntry.h
  10612. (MetalinkChunkChecksum.h): New include.
  10613. (chunkChecksum): New variable.
  10614. * src/Request.h
  10615. (method): New variable.
  10616. (setMethod): New function.
  10617. (getMethod): New function.
  10618. (METHOD_GET): New static constant.
  10619. (METHOD_HEAD): New static constant.
  10620. * src/Xml2MetalinkProcessor.h
  10621. (getPieceHash): New function.
  10622. * src/PieceStorage.h
  10623. (markAllPiecesDone): New function.
  10624. (checkIntegrity): New function.
  10625. * src/FileAllocator.h
  10626. (NullFileAllocationMonitor.h): New include.
  10627. (FileAllocator): Initialize fileAllocationMonitor with new
  10628. NullFileAllocationMonitor().
  10629. * src/MultiDiskAdaptor.h
  10630. (messageDigest.h): Remove include.
  10631. (ctx): Removed.
  10632. (hashUpdate): Added ctx.
  10633. (MultiDiskAdaptor): Removed ctx.
  10634. (sha1Sum): Renamed as messageDigest.
  10635. (messageDigest): New function.
  10636. * src/UrlRequestInfo.h
  10637. (HeadResult): New class.
  10638. (digestAlgo): New variable.
  10639. (chunkChecksumLength): New variable.
  10640. (chunkChecksums): New variable.
  10641. (getHeadResult): New function.
  10642. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  10643. (setDigestAlgo): New function.
  10644. (setChunkChecksumLength): New function.
  10645. (setChunkChecksums): New function.
  10646. * src/DefaultPieceStorage.cc
  10647. (DiskAdaptorWriter.h): New include.
  10648. (ChunkChecksumValidator.h): New include.
  10649. (markAllPiecesDone): New function.
  10650. (checkIntegrity): New function.
  10651. * src/DefaultBtContext.h
  10652. (getPieceHashes): New function.
  10653. * src/TorrentRequestInfo.cc
  10654. (execute): Try to validate chunk checksum if file already exists and
  10655. .aria2 file doesn't there and user allows aria2 to overwrite it.
  10656. * src/messageDigest.h
  10657. (~MessageDigestContext): Added digestFree().
  10658. * src/MetalinkRequestInfo.cc
  10659. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  10660. * src/DiskAdaptor.h
  10661. (messageDigest.h): New include.
  10662. (sha1Sum): Renamed as messageDigest.
  10663. (messageDigest): New function.
  10664. * src/DownloadCommand.h
  10665. (PeerStat.h): New include.
  10666. (maxDownloadSpeedLimit): New variable.
  10667. (startupIdleTime): New variable.
  10668. (lowestDownloadSpeedLimit): New variable.
  10669. (peerStat): New variable.
  10670. (setMaxDownloadSpeedLimit): New function.
  10671. (setStartupIdleTime): New function.
  10672. (setLowestDownloadSPeedLimit): New function.
  10673. * src/BtContext.h
  10674. (getPieceHashes): New function.
  10675. * src/main.cc
  10676. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  10677. option to true for testing purpose.
  10678. * src/BtPieceMessage.cc
  10679. (checkPieceHash): Use messageDigest
  10680. * src/DownloadEngine.cc
  10681. (SetDescriptor): Removed.
  10682. (AccumulateActiveCommand): Removed.
  10683. (waitData): Rewritten.
  10684. (updateFdSet): Rewritten.
  10685. * src/MultiDiskAdaptor.cc
  10686. (hashUpdate): Added ctx.
  10687. (sha1Sum): Renamed as messageDigest.
  10688. (messageDigest): New function.
  10689. * src/BitfieldMan.h
  10690. (isBitRangeSet): New function.
  10691. (unsetBitRange): New function.
  10692. * src/ByteArrayDiskWriter.h
  10693. (sha1Sum): Renamed as messageDigest.
  10694. (messageDigest): New function.
  10695. * src/ConsoleDownloadEngine.cc
  10696. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  10697. * src/DiskWriter.h
  10698. (messageDigest.h): New include.
  10699. (sha1Sum): Renamed as messageDigest.
  10700. (messageDigest): New function.
  10701. * src/ChunkChecksumValidator.h: New class.
  10702. * src/DiskAdaptorWriter.h: New class.
  10703. * src/prefs.h
  10704. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  10705. (PREF_CHECK_INTEGRITY): New definition.
  10706. * src/HttpResponseCommand.cc
  10707. (handleDefaultEncoding): Added method "HEAD" handling.
  10708. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  10709. (handleOtherEncoding):
  10710. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  10711. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  10712. startupIdleTime, lowestDownloadSpeedLimit to command.
  10713. * src/SegmentMan.h
  10714. (getSegmentEntryByIndex): New function.
  10715. (getSegmentEntryByCuid): New function.
  10716. (getSegmentEntryIteratorByCuid): New function.
  10717. (diskWriter): DiskWriter -> DiskWriterHandle
  10718. (pieceHashes): New variable.
  10719. (chunkHashLength): New variable.
  10720. (digestAlgo): New variable.
  10721. (FindPeerStat): Removed.
  10722. (getPeerStat): Rewritten.
  10723. (markAllPiecesDone): New function.
  10724. (checkIntegrity): New function.
  10725. (tryChunkChecksumValidation): New function.
  10726. (isChunkChecksumValidationReady): New function.
  10727. * src/BitfieldMan.cc
  10728. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  10729. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  10730. blocks to 0.
  10731. (isBitRangeSet): New function.
  10732. (unsetBitRange): New function.
  10733. * src/FtpNegotiateCommand.cc
  10734. (executeInternal): Set maxDownloadSpeedLimit,
  10735. startupIdleTime, lowestDownloadSpeedLimit to command.
  10736. (recvSize): Added method "HEAD" handling.
  10737. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  10738. * src/AbstractSingleDiskAdaptor.cc
  10739. (sha1Sum): Renamed as messageDigest.
  10740. (messageDigest): New function.
  10741. * src/AbstractSingleDiskAdaptor.h
  10742. (sha1Sum): Renamed as messageDigest.
  10743. (messageDigest): New function.
  10744. * src/Util.h
  10745. (indexRange): New function.
  10746. * src/MetalinkEntry.cc
  10747. (MetalinkEntry): Initialized chunkChecksum to 0.
  10748. * src/ShaVisitor.cc
  10749. (~ShaVisitor): Removed the call to ctx.digestFree().
  10750. * src/SegmentMan.cc
  10751. (ChunkChecksumValidator.h): New include.
  10752. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  10753. to DIGEST_ALGO_SHA1.
  10754. (~SegmentMan): Removed diskWriter.
  10755. (FindSegmentEntryByIndex): Removed.
  10756. (FindSegmentEntryByCuid): Removed.
  10757. (checkoutSegment): Rewritten.
  10758. (findSlowerSegmentEntry): Rewritten.
  10759. (getSegment): Rewritten.
  10760. (updateSegment): Rewritten.
  10761. (completeSegment): Rewritten.
  10762. (markAllPiecesDone): New function.
  10763. (checkIntegrity): New function.
  10764. (isChunkChecksumValidationReady): New function.
  10765. (tryChunkChecksumValidation): New function.
  10766. * src/Xml2MetalinkProcessor.cc
  10767. (getEntry): Get size and set it to entry.
  10768. Get chunk checksum and set it to entry.
  10769. (getPieceHash): New function.
  10770. * src/Util.cc
  10771. (sha1Sum): Removed ctx.digestFree()
  10772. (fileChecksum): Removed ctx.digestFree()
  10773. (indexRange): New function.
  10774. * src/Request.cc
  10775. (METHOD_GET): New variable.
  10776. (METHOD_HEAD): New variable.
  10777. (Request): Added method.
  10778. * src/UrlRequestInfo.cc
  10779. (FatalException.h): New include.
  10780. (message.h): New include.
  10781. (operator<<): Added operator<< for class HeadResult.
  10782. (getHeadResult): New function.
  10783. (execute): Get filename and size in separate download engine.
  10784. * src/ChunkChecksumValidator.cc: New class.
  10785. * src/DownloadCommand.cc:
  10786. (DownloadCommand): Added peerStat.
  10787. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  10788. the value from Option.
  10789. The buffer size is now 16KB.
  10790. Use peerStat member instead of getting it from SegmentMan.
  10791. Use startupIdleTime member instead of gettingit from Option.
  10792. Added chunk checksum validation.
  10793. * src/AbstractDiskWriter.cc
  10794. (AbstractDiskWriter): Removed ctx.
  10795. (~AbstractDiskWriter): Removed ctx.digestFree()
  10796. (writeDataInternal): Returns the return value of write.
  10797. (readDataInternal): Returns the return value of read.
  10798. (sha1Sum): Renamed as messageDigest
  10799. (messageDigest): New function.
  10800. * src/AbstractDiwkWriter.h
  10801. (messageDigest.h): Removed include.
  10802. (ctx): Removed.
  10803. (sha1Sum): Renamed as messageDigest
  10804. (messageDigest): New function.
  10805. * src/DefaultPieceStorage.h
  10806. (markAllPiecesDone): New function.
  10807. (checkIntegrity): New function.
  10808. * src/NullFileAllocationMonitor.h: New class.
  10809. * src/MetalinkChunkChecksum.h: New class.
  10810. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10811. To decrease CPU usage in bittorrent download, calculation results in
  10812. BitfieldMan were cached and realtime fetching PeerObject was removed
  10813. with WeakHandle introduced. Option values are set to the objects
  10814. by setter before download begins.
  10815. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  10816. * src/DefaultBtRequestFactory.h
  10817. (dispatcher): BtMessageDispatcherHandle ->
  10818. BtMessageDispatcherWeakHandle.
  10819. (messageFactory): New variable.
  10820. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  10821. BtMessageDispatcherWeakHandle.
  10822. (setBtMessageFactory): New function.
  10823. * src/DefaultBtMessageDispatcher.cc:
  10824. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  10825. from Option.
  10826. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  10827. feating the value from Option.
  10828. Use messageFactory member.
  10829. * src/PeerInteractionCommand.cc
  10830. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  10831. Add reverse dependencies to factory object.
  10832. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  10833. dispatcher.
  10834. Set messageFactory to receiver.
  10835. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  10836. btInteractive.
  10837. Set receiver to peerObject.
  10838. Set maxDownloadSpeedLimit to this.
  10839. (executeInternal): Use maxDownloadSpeedLimit member.
  10840. * src/BtChokeMessage.cc
  10841. (doReceivedAction): Use dispatcher, requestFactory member.
  10842. (onSendComplete): Use dispatcher member.
  10843. * src/PeerInteractionCommand.h
  10844. (maxDownloadSpeedLimit): New variable.
  10845. * src/DefaultBtMessageReceiver.h
  10846. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10847. (dispatcher):
  10848. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  10849. (messageFactory): New variable.
  10850. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10851. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10852. (setDispatcher):
  10853. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  10854. (setBtMessageFactory): New function.
  10855. * src/DefaultBtInteractive.cc
  10856. (initiateHandshake): Use messageFactory member.
  10857. (addBitfieldMessageToQueue): Use messageFactory member.
  10858. (addAllowedFastMessageToQueue): Use messageFactory member.
  10859. (decideChoking): Use messageFactory member.
  10860. (checkHave): Use messageFactory member.
  10861. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  10862. (receiveMessages): Use maxDownloadSpeedLimit member.
  10863. (decideInterest): Use messageFactory member.
  10864. * src/BtRequestMessage.cc
  10865. (doReceivedAction): Use messageFactory, dispatcher member.
  10866. (onQueued): Use dispatcher member.
  10867. * src/BtPieceMessage.cc
  10868. (doReceivedAction): Use dispatcher member.
  10869. (send): Use peerConnection member.
  10870. (onWrongPiece): Use requestFactory member.
  10871. (handleChokingEvent): Use messageFactory, dispatcher member.
  10872. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  10873. * src/BtMessageDispatcher.h
  10874. (BtMessageDispatcherWeakHandle): New type definition.
  10875. * src/SimpleBtMessage.cc
  10876. (send): Use peerConnection member.
  10877. * src/BtRejectMessage.cc
  10878. (doReceivedAction): Use dispatcher member.
  10879. * src/DefaultBtMessageDispatcher.h
  10880. (Option.h): Removed include.
  10881. (messageFactory): New variable.
  10882. (option): Removed.
  10883. (maxUploadSpeedLimit): New variable.
  10884. (requestTimeout): New variable.
  10885. (DefaultBtMessageDispatcher): Removed option.
  10886. Added maxUploadSpeedLimit, requestTimeout.
  10887. (setOption): Removed.
  10888. (getOption): Removed.
  10889. (setMaxUploadSpeedLimit): New function.
  10890. (setRequestTimeout): New function.
  10891. (setBtMessageFactory): New function.
  10892. * src/DefaultBtInteractive.h
  10893. (btMessageReceiver):
  10894. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  10895. (dispatcher):
  10896. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  10897. (btRequestFactory):
  10898. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  10899. (peerConnection):
  10900. PeerConnectionHandle -> PeerConnectionWeakHandle
  10901. (messageFactory): New variable.
  10902. (option): Removed.
  10903. (keepAliveInterval): New variable.
  10904. (maxDownloadSpeedLimit): New variable.
  10905. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  10906. (setBtMessageReceiver):
  10907. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  10908. (setDispatcher):
  10909. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  10910. (setBtRequestFactory):
  10911. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  10912. (setPeerConnection):
  10913. PeerConnectionHandle -> PeerConnectionWeakHandle
  10914. (setOption): Removed.
  10915. (setKeepAliveInterval): New function.
  10916. (setMaxDownloadSpeedLimit): New function.
  10917. (setBtMessageFactory): New function.
  10918. * src/BitfieldMan.h
  10919. (cachedNumMissingBlock): New variable.
  10920. (cachedNumFilteredBlock): New variable.
  10921. (cachedCompletedLength): New variable.
  10922. (cachedFilteredComletedLength): New variable.
  10923. (cachedFilteredTotalLength): New variable.
  10924. (countMissingBlockNow): New function.
  10925. (countFilteredBlockNow): New function.
  10926. (getFilteredTotalLengthNow): New function.
  10927. (getCompletedLengthNow): New function.
  10928. (getFilteredCompletedLengthNow): New function.
  10929. (updateCache): New function.
  10930. * src/AbstractBtMessage.h
  10931. (BtMessageDispatcher.h): New include.
  10932. (PeerConnection.h): New include.
  10933. (BtRequestFactory.h): New include
  10934. (BtMessageFactory.h): New include.
  10935. (dispatcher): New variable.
  10936. (messageFactory): New variable.
  10937. (peerConnection: New variable.
  10938. (setBtMessageDispatcher): New function.
  10939. (setPeerConnection): New function.
  10940. (setBtMessageFactory): New function.
  10941. (setBtRequestFactory): New function.
  10942. * src/DefaultBtMessageFactory.cc
  10943. (setCommonProperty): Set dispatcher, requestFactory, this,
  10944. peerConnection to msg.
  10945. * src/BtRegistry.h
  10946. (BT_MESSAGE_RECEIVER): New macro.
  10947. * src/PeerConnection.h
  10948. (PeerConnectionWeakHandle): New type definition.
  10949. * src/BtMessageFactory.h
  10950. (BtMessageFactoryWeakHandle): New type definition.
  10951. * src/BitfieldMan.cc
  10952. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  10953. cachedCompletedLength, cachedFilteredComletedLength,
  10954. cachedFilteredTotalLength.
  10955. Call updateCache().
  10956. (countMissingBlock): Return cachedNumMissingBlock.
  10957. (countMissingBlockNow): New function.
  10958. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  10959. (countFilteredBlockNow): New function.
  10960. (setBit): Call updateCache().
  10961. (unsetBit): Call updateCache().
  10962. (setBitfield): Call updateCache().
  10963. (clearAllBit): Call updateCache().
  10964. (setAllBit): Use setBitInternal instead of setBit.
  10965. Call updateCache().
  10966. (addFilter): Call updateCache().
  10967. (enableFilter): Call updateCache().
  10968. (disableFilter): Call updateCache().
  10969. (clearFilter): Call updateCache().
  10970. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  10971. (getFilteredTotalLengthNow): New function.
  10972. (getCompletedLength): Return cachedCompletedLength.
  10973. (getCompletedLengthNow): New function.
  10974. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  10975. (getFilteredCompletedLengthNow): New function.
  10976. (updateCache): New function.
  10977. * src/BtMessageReceiver.h
  10978. (BtMessageReceiverWeakHandle): New type definition.
  10979. * src/DefaultBtMessageReceiver.cc
  10980. (receiveHandshake): Use messageFactory member.
  10981. (sendHandshake): Use messageFactory member.
  10982. (receiveMessage): Use messageFactory member.
  10983. * src/DefaultBtMessageFactory.h
  10984. (dispatcher): New variable.
  10985. (requestFactory): New variable.
  10986. (peerConnection): New variablle.
  10987. (setBtMessageDispatcher): New function.
  10988. (setBtRequestFactory): New function.
  10989. (setPeerConnection): New function.
  10990. * src/SharedHandle.h
  10991. (RefCount): New class.
  10992. (WeakHandle): New class.
  10993. * src/PeerObject.h
  10994. (BtMessageReceiver.h): New include.
  10995. (PeerObject): Added btMessageReceiver.
  10996. (btMessageReceiver): New variable.
  10997. * src/Util.cc
  10998. (countBit): Simplified.
  10999. * src/BtCancelMessage.cc
  11000. (doReceivedAction): Use dispatcher member.
  11001. * src/BtRequestFactory.h
  11002. (BtRequestFactoryWeakHandle): New type definition.
  11003. * src/PeerStorage.h
  11004. (downloadSpeed): int -> uint32_t
  11005. (uploadSpeed): int -> uint32_t
  11006. (sessionDownloadLength): long long int -> uint64_t
  11007. (sessionUploadLength): long long int -> uint64_t
  11008. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11009. To add RecoverableException, FatalException:
  11010. * src/AbstractCommand.cc
  11011. (onAbort): Exception -> RecoverableException
  11012. * src/PeerAbstractCommand.h
  11013. (RecoverableException.h): New include.
  11014. (onAbort): Exception -> RecoverableException.
  11015. * src/PeerInteractionCommand.cc
  11016. (onAbort): Exception -> RecoverableException.
  11017. * src/PeerAbstractCommand.cc
  11018. (execute): Exception -> RecoverableException.
  11019. (onAbort): Exception -> RecoverableException.
  11020. * src/TorrentRequestInfo.cc
  11021. (execute): Exception -> RecoverableException.
  11022. * src/MetalinkRequestInfo.cc
  11023. (execute): Exception -> RecoverableException.
  11024. * src/MetaFileUtil.cc: RecoverableException.
  11025. * src/AbstractCommand.h
  11026. (onAbort): Exception -> RecoverableException.
  11027. * src/DlRetryEx.h: Exception -> RecoverableException.
  11028. * src/DlAbortEx.h: Exception -> RecoverableException.
  11029. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  11030. * src/Util.cc: Exception -> RecoverableException.
  11031. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  11032. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  11033. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  11034. To make ID static const int
  11035. * src/BtInterestedMessage.h
  11036. (ID_t): Removed.
  11037. (ID): New variable.
  11038. (getId): Made non-const.
  11039. * src/BtPieceMessage.h
  11040. (ID_t): Removed.
  11041. (ID): New variable.
  11042. (getId): Made non-const.
  11043. * src/BtChokeMessage.h
  11044. (ID_t): Removed.
  11045. (ID): New variable.
  11046. (getId): Made non-const.
  11047. * src/BtHaveAllMessage.h
  11048. (ID_t): Removed.
  11049. (ID): New variable.
  11050. (getId): Made non-const.
  11051. * src/BtKeepAliveMessage.h
  11052. (ID_t): Removed.
  11053. (ID): New variable.
  11054. (getId): Made non-const.
  11055. * src/BtHandshakeMessage.h
  11056. (ID): New variable.
  11057. (getId): Made non-const.
  11058. * src/BtSuggestPieceMessage.h
  11059. (ID_t): Removed.
  11060. (ID): New variable.
  11061. (getId): Made non-const.
  11062. * src/BtPortMessage.h
  11063. (ID_t): Removed.
  11064. (ID): New variable.
  11065. (getId): Made non-const.
  11066. * src/AbstractBtMessage.h
  11067. (id): Removed.
  11068. (AbstractBtMessage): Removed id.
  11069. (getId): Removed.
  11070. * src/BtHaveMessage.h
  11071. (ID_t): Removed.
  11072. (ID): New variable.
  11073. (getId): Made non-const.
  11074. * src/BtAllowedFastMessage.h
  11075. (ID_t): Removed.
  11076. (ID): New variable.
  11077. (getId): Made non-const.
  11078. * src/BtCancelMessage.h
  11079. (ID_t): Removed.
  11080. (ID): New variable.
  11081. (getId): Made non-const.
  11082. * src/BtNotInterestedMessage.h
  11083. (ID_t): Removed.
  11084. (ID): New variable.
  11085. (getId): Made non-const.
  11086. * src/BtChokeMessage.h
  11087. (ID_t): Removed.
  11088. (ID): New variable.
  11089. (getId): Made non-const.
  11090. * src/BtRejectMessage.h
  11091. (ID_t): Removed.
  11092. (ID): New variable.
  11093. (getId): Made non-const.
  11094. * src/BtBitfieldMessage.h
  11095. (ID_t): Removed.
  11096. (ID): New variable.
  11097. (getId): Made non-const.
  11098. * src/BtUnchokeMessage.h
  11099. (ID_t): Removed.
  11100. (ID): New variable.
  11101. (getId): Made non-const.
  11102. * src/BtRequestMessage.h
  11103. (ID_t): Removed.
  11104. (ID): New variable.
  11105. (getId): Made non-const.
  11106. * src/BtHaveMessage.h
  11107. (ID_t): Removed.
  11108. (ID): New variable.
  11109. (getId): Made non-const.
  11110. To add --force-truncate command-line option and a check whether
  11111. the file already exists:
  11112. * src/DirectDiskAdaptor.h
  11113. (getFilePath): Made virtual public.
  11114. * src/MultiDiskAdaptor.h
  11115. (File.h): New include.
  11116. (DiskWriterEntry::fileEntry): Made private.
  11117. (DiskWriterEntry::fileExists): New function.
  11118. (DiskWriterEntry::getFileEntry): New function.
  11119. (fileExists): New function.
  11120. (getFilePath): New function.
  11121. * src/TorrentRequestInfo.cc
  11122. (FatalException.h): New include.
  11123. (message.h): New include.
  11124. (RecoverableException.h): New include.
  11125. (execute): Added a check whether file is already exists or not.
  11126. * src/DiskAdaptor.h
  11127. (fileExists): New function.
  11128. (getFilePath): New function.
  11129. * src/main.cc
  11130. (showUsage): Added an explanation of --force-truncate command-line
  11131. option.
  11132. (main): Added --force-truncate command-line option.
  11133. * src/Exception.h
  11134. (setMsg): buf[256] -> buf[1024]
  11135. * src/CopyDiskWriter.h
  11136. (getFilePath): Made public virtual.
  11137. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  11138. (fileExists): New function.
  11139. * src/DownloadEngineFactory.cc
  11140. (newTorrentConsoleEngine): Don't open file here.
  11141. * src/message.h
  11142. (EX_FILE_ALREADY_EXISTS): New definition.
  11143. * src/prefs.h
  11144. (PREF_FOECE_TRUNCATE): New definition.
  11145. * src/HttpResponseCommand.cc
  11146. (handleDefaultEncoding): Added a check whether the file already exists.
  11147. * src/SegmentMan.h
  11148. (fileExists): New function.
  11149. (shouldCancelDownloadForSafety): New function.
  11150. * src/FtpNegotiateCommand.cc
  11151. (recvSize): Added a check whether the file already exists.
  11152. * src/AbstractSingleDiskAdaptor.cc
  11153. (File.h): New include.
  11154. (fileExists): New function.
  11155. * src/AbstractSingleDiskAdaptor.h
  11156. (getFilePath): Removed.
  11157. (fileExists): New function.
  11158. * src/SegmentMan.cc
  11159. (fileExists): New function.
  11160. (shouldCancelDownloadForSafety): New function.
  11161. To fix regression bug in torrent downloading:
  11162. * src/DefaultBtRequestFactory.cc
  11163. (doChokedAction): New function.
  11164. * src/DefaultBtRequestFactory.h
  11165. (doChokedAction): New function.
  11166. * src/DefaultBtMessageDispatcher.cc
  11167. (doChokedAction): Do not delete request if its target is in allowed
  11168. fast set.
  11169. * src/DefaultBtInteractive.cc
  11170. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  11171. (sendKeepAlive): Send keep alive message even if the outgoing message
  11172. queue is not empty.
  11173. (decideInterest): Simplified the code.
  11174. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  11175. it is already called when BtChokeMessage is received from a peer.
  11176. * src/BtRequestFactory.h
  11177. (doChokedAction): New function.
  11178. To clean up code:
  11179. * src/PeerInteractionCommand.h
  11180. (executeInternal): Added virtual keyword explicitly.
  11181. (prepareForRetry): Added virtual keyword explicitly.
  11182. (prepareForNextPeer): Added virtual keyword explicitly.
  11183. (onAbort): Added virtual keyword explicitly.
  11184. * src/RequestSlot.cc
  11185. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  11186. * src/BtPieceMessage.cc
  11187. (doReceivedAction): Added a debug log of piece's bitfield.
  11188. * src/Piece.h
  11189. (getBitfieldLength): New function.
  11190. * src/ByteArrayDiskWriter.cc
  11191. (clear): Added buf = 0 to avoid double free corruption.
  11192. * src/FileAllocator.cc
  11193. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  11194. Added cp.reset().
  11195. * src/BitfieldMan.h
  11196. (operator=): Rewritten.
  11197. * src/BitfieldMan.cc
  11198. (BitfieldMan): Initialized bitfield, useBitfield.
  11199. * src/PeerConnection.cc
  11200. (receiveMessage): Added a call to socket->readable() after getting
  11201. message length to avoid possible EOF.
  11202. * src/Util.cc
  11203. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  11204. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11205. To add an ability to pre-allocate file space:
  11206. * src/DirectDiskAdaptor.h: Rewritten.
  11207. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  11208. * src/MultiDiskAdaptor.h: Rewritten.
  11209. * src/DefaultPieceStorage.cc
  11210. (MultiDiskWriter.h): Removed include.
  11211. (PreAllocationDiskWriter.h): Removed include.
  11212. (FileAllocationMonitor.h): New include.
  11213. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  11214. (initStorage): Rewritten.
  11215. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11216. * src/FileAllocator.h: New class.
  11217. * src/FileAllocator.cc: New class.
  11218. * src/FileAllocationMonitor.h: New class.
  11219. * src/FileAllocationMonitor.cc: New class.
  11220. * src/ConsoleFileAllocationMonitor.h: New class.
  11221. * src/ConsoleFileAllocationMonitor.cc: New class.
  11222. * src/AbstractSingleDiskAdaptor.h: New class.
  11223. * src/AbstractSingleDiskAdaptor.cc: New class.
  11224. * src/DiskAdaptor.h
  11225. (Directory.h): Removed include.
  11226. (DiskWriter.h): Removed include.
  11227. (FileEntry.h): Removed include.
  11228. (diskWriter): Removed.
  11229. (DiskAdaptor): Removed diskWriter.
  11230. (openFile): Made pure virtual.
  11231. (closeFile): Made pure virtual.
  11232. (openExistingFile): Made pure virtual.
  11233. (initAndOpenFile): Made pure virtual.
  11234. (writeData): Made pure virtual.
  11235. (readData): Made pure virtual.
  11236. (sha1Sum): Made pure virtual.
  11237. (getStoreDir): Returns const reference of storeDir.
  11238. (DiskAdaptorHandle): New type definition.
  11239. * src/main.cc
  11240. (ConsoleFileAllocationMonitor.h): New include.
  11241. (showUsage): Added default value description of -s option.
  11242. Added the description of --file-allocation option.
  11243. (main): Set default value of --file-allocation option to 'none'.
  11244. Added --file-allocation command-line option.
  11245. Setup FileAllocationMonitorFactory.
  11246. * src/FtpInitiateConnectionCommand.cc
  11247. (executeInternal): Removed diskWriter related processing, which was
  11248. moved to FtpNegotiationCommand.cc.
  11249. * src/DirectDiskAdaptor.cc
  11250. (getFilePath): Made non-const.
  11251. * src/CopyDiskAdaptor.h
  11252. (DiskAdaptor.h): Removed include.
  11253. (DiskWriter.h): Removed include.
  11254. (AbstractSingleDiskAdaptor.h): New include.
  11255. (getFilePath): Made non-const. Added virtual keyword.
  11256. (CopyDiskAdaptor): Removed diskWriter.
  11257. (getTempFile): Returns const reference.
  11258. (CopyDiskAdaptorHandle): New type definition.
  11259. * src/ByteArrayDiskWriter.cc
  11260. (clear): Simplified.
  11261. (initAndOpenFile): Rewritten.
  11262. (openFile): Call initAndOpenFile()
  11263. * src/MultiDiskAdaptor.cc: Rewritten.
  11264. * src/DownloadEngineFactory.cc
  11265. (FileAllocator.h): New include.
  11266. (FileAllocationMonitor.h): New include.
  11267. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  11268. create DefaultDiskWriter with file allocator.
  11269. * src/DiskWriter.h
  11270. (initAndOpenFile): Added totalLength argument.
  11271. (openFile): Added totalLength argument.
  11272. * src/prefs.h
  11273. (PREF_FILE_ALLOCATION): New definition.
  11274. (V_PREALLOC): New definition.
  11275. (V_NONE): New definition.
  11276. * src/HttpResponseCommand.cc
  11277. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  11278. size.
  11279. * src/FtpNegotiateCommand.cc
  11280. (Util.h): New include.
  11281. (recvSize): Open file here.
  11282. * src/Util.h
  11283. (ullitos): New function.
  11284. * src/CopyDiskWriter.h
  11285. (getFilePath): Made non-const.
  11286. * src/DefaultDiskWriter.h
  11287. (Option.h): New include.
  11288. (totalLength): Removed.
  11289. (DefaultDiskWriter): Removed totalLength.
  11290. (initAndOpenFile): Added totalLength argument.
  11291. (DefaultDiskWriterHandle): New type definition.
  11292. (createNewDiskWriter): New function.
  11293. * src/Util.cc
  11294. (ullitos): New function.
  11295. * src/DefaultDiskWriter.cc
  11296. (message.h): New include.
  11297. (FileAllocator.h): New include.
  11298. (prefs.h): New include.
  11299. (Util.h): New include.
  11300. (DefaultDiskWriter): Removed totalLength.
  11301. (initAndOpenFile): Added file allocation.
  11302. (createNewDiskWriter): New function. Just for temporary solution.
  11303. It will be rewritten later.
  11304. * src/DiskAdaptor.cc
  11305. (DiskAdaptor): Removed diskWriter.
  11306. * src/AbstractDiskWriter.cc
  11307. (LogFactory.h): New include.
  11308. (AbstractDiskWriter): Added fileAllocator, logger.
  11309. (openFile): Added totalLength argument.
  11310. * src/AbstractDiskWriter.h
  11311. (FileAllocator.h): New include.
  11312. (Logger.h): New include.
  11313. (fileAllocator): New variable.
  11314. (logger): New variable.
  11315. (openFile): Added totalLength argument. Added virtual keyword
  11316. explicitly.
  11317. (openExistingFile): Added totalLength argument. Added virtual keyword
  11318. explicitly.
  11319. (closeFile): Added virtual keyword explicitly.
  11320. (sha1Sum): Added virtual keyword explicitly.
  11321. (writeData): Added virtual keyword explicitly.
  11322. (readData): Added virtual keyword explicitly.
  11323. (setFileAllocator): New function.
  11324. * src/DefaultPieceStorage.h
  11325. (FileAllocator.h): New include.
  11326. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11327. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11328. * src/FileProgressMonitor.h: New class.
  11329. To compile aria2 on PC-BSD:
  11330. * src/DefaultBtContext.cc
  11331. (libgen.h): New include.
  11332. To fix memory leak:
  11333. * src/Exception.h
  11334. (~Exception): Delete cause. Fixed memory leak.
  11335. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11336. Rewritten a portion of bittorrent implementation:
  11337. * src/BtMessageValidator.h: New class.
  11338. * src/BtBitfieldMessageValidator.h: New class.
  11339. * src/BtHandshakeMessageValidator.h: New class.
  11340. * src/BtRequestMessageValidator.h: New class.
  11341. * src/BtSuggestPieceMessageValidator.h: New class.
  11342. * src/BtAllowedFastMessageValidator.h: New class.
  11343. * src/BtRejectMessageValidator.h: New class.
  11344. * src/BtCancelMessageValidator.h: New class.
  11345. * src/BtPieceMessageValidator.h: New class.
  11346. * src/BtHaveMessageValidator.h: New class.
  11347. * src/BtEventListener.h: New class.
  11348. * src/AbstractBtEventListener.h: New class.
  11349. * src/BtEvent.h: New class.
  11350. * src/BtChokingEvent.h: New class.
  11351. * src/BtChokedEvent.h: New class.
  11352. * src/BtCancelSendingPieceEvent.h: New class.
  11353. * src/BtAbortOutstandingRequestEvent.h: New class.
  11354. * src/Randomizer.h: New class.
  11355. * src/SimpleRandomizer.h: New class.
  11356. * src/BtMessage.h: New class.
  11357. * src/AbstractBtMessage.h: New class.
  11358. * src/SimpleBtMessage.h: New class.
  11359. * src/BtHaveMessage.h: New class.
  11360. * src/BtInterestedMessage.h: New class.
  11361. * src/BtAllowedFastMessage.h: New class.
  11362. * src/BtUnchokeMessage.h: New class.
  11363. * src/BtCancelMessage.h: New class.
  11364. * src/BtNotInterestedMessage.h: New class.
  11365. * src/BtChokeMessage.h: New class.
  11366. * src/BtHaveNoneMessage.h: New class.
  11367. * src/BtHandshakeMessage.h: New class.
  11368. * src/BtSuggestPieceMessage.h: New class.
  11369. * src/BtHaveMessage.h: New class.
  11370. * src/BtPieceMessage.h: New class.
  11371. * src/BtHaveAllMessage.h: New class.
  11372. * src/BtKeepAliveMessage.h: New class.
  11373. * src/BtPortMessage.h: New class.
  11374. * src/BtRejectMessage.h: New class.
  11375. * src/BtBitfieldMessage.h: New class.
  11376. * src/BtRequestMessage.h: New class.
  11377. * src/DefaultBtRequestFactory.h: New class.
  11378. * src/DefaultBtMessageReceiver.h: New class.
  11379. * src/BtInteractive.h: New class.
  11380. * src/BtMessageDispatcher.h: New class.
  11381. * src/DefaultBtMessageDispatcher.h: New class.
  11382. * src/DefaultBtInteractive.h: New class.
  11383. * src/BitfieldManFactory.h: New class.
  11384. * src/HandleRegistry.h: New class.
  11385. * src/BtMessageFactory.h: New class.
  11386. * src/BtMessageReceiver.h: New class.
  11387. * src/DefaultBtMessageFactory.h: New class.
  11388. * src/PeerObject.h: New class.
  11389. * src/BtRequestFactory.h: New class.
  11390. * src/SuggestPieceMessage.h: Removed.
  11391. * src/PortMessage.h: Removed.
  11392. * src/SuggestPieceMessage.h: Removed.
  11393. * src/KeepAliveMessage.h: Removed.
  11394. * src/HandshakeMessage.h: Removed.
  11395. * src/PeerInteraction.h: Removed.
  11396. * src/UnchokeMessage.h: Removed.
  11397. * src/PieceMessage.h: Removed.
  11398. * src/RequestMessage.h: Removed.
  11399. * src/InterestedMessage.h: Removed.
  11400. * src/HaveMessage.h: Removed.
  11401. * src/CancelMessage.h: Removed.
  11402. * src/RejectMessage.h: Removed.
  11403. * src/AllowedFastMessage.h: Removed.
  11404. * src/HaveNoneMessage.h: Removed.
  11405. * src/SimplePeerMessage.h: Removed.
  11406. * src/HaveAllMessage.h: Removed.
  11407. * src/BitfieldMessage.h: Removed.
  11408. * src/PeerMessageFactory.h: Removed.
  11409. * src/NotInterestedMessage.h: Removed.
  11410. * src/ChokeMessage.h: Removed.
  11411. * src/PeerMessage.h: Removed.
  11412. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11413. To know root cause of exception:
  11414. * src/Exception.h
  11415. (cause): New variable.
  11416. (Exception): Added a parameter.
  11417. (getMsg): Return const reference to msg.
  11418. (getCause): New function.
  11419. * src/DlRetryEx.h
  11420. (DlRetryEx): Added a parameter 'cause'.
  11421. Added an overloaded constructor.
  11422. (DlAbortEx): Added a parameter 'cause'.
  11423. Added an overloaded constructor.
  11424. * src/SimpleLogger.cc
  11425. (writeLog): Log nested exception messages recursively.
  11426. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11427. * src/DefaultBtProgressInfoFile.cc
  11428. (load): Fixed memory leak when the infohash doesn't match.
  11429. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11430. * src/DefaultPeerStorage.cc
  11431. (calculateStat): Simplified the code by combining 2 loops into 1.
  11432. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11433. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  11434. for BitTorrent download:
  11435. * src/PeerAbstractCommand.cc
  11436. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  11437. * src/main.cc:
  11438. (timeoutSpecified): Removed.
  11439. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  11440. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  11441. * src/TorrentRequestInfo.cc
  11442. (timeoutSpecified): Removed.
  11443. (torrentHandler): Removed timeoutSpecified and the adjustment of
  11444. timeout value.
  11445. * src/prefs.h
  11446. (PREF_BT_TIMEOUT): New definition.
  11447. Delete unused variables:
  11448. * src/TorrentRequestInfo.cc
  11449. (requestInfo): Removed.
  11450. Move setSignalHander to Util::setGlobalSignalHandler:
  11451. * src/TorrentRequestInfo.cc:
  11452. setSignalHander -> Util::setGlobalSignalHandler
  11453. * src/main.cc
  11454. (setSignalHander): Removed.
  11455. (main): setSignalHander -> Util::setGlobalSignalHandler
  11456. * src/Util.h
  11457. (setGlobalSignalHandler): New function.
  11458. * src/Util.cc
  11459. (setGlobalSignalHandler): New function.
  11460. * src/UrlRequestInfo.cc:
  11461. setSignalHander -> Util::setGlobalSignalHandler
  11462. Reset peer status in order to exit gracefully:
  11463. * src/PeerAbstractCommand.cc
  11464. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  11465. To fix the bug that causes the number of bytes uploaded is not saved
  11466. to .aria2 file:
  11467. * src/DefaultPeerStorage.h
  11468. (removedPeerSessionDownloadLength): New variable.
  11469. (removedPeerSessionUploadLength): New variable.
  11470. * src/DefaultPeerStorage.cc
  11471. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  11472. removedPeerSessionUploadLength(0).
  11473. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  11474. through all peers, and then add removedPeerSessionDownloadLength(
  11475. removedPeerSessionUploadLength) to it.
  11476. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  11477. (to) the peer to removedPeerSessionDownloadLength
  11478. (removedPeerSessionUploadLength).
  11479. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11480. To add Metalink location option:
  11481. * src/MetalinkRequestInfo.cc
  11482. (execute): Call MetalinkEntry::setLocationPreference()
  11483. * src/main.cc
  11484. (showUsage): Added the help message for --metalink-location option.
  11485. (main): Added --metalink-location option.
  11486. * src/prefs.h
  11487. (PREF_METALINK_LOCATION): New definition.
  11488. * src/MetalinkEntry.cc
  11489. (AddLocationPreference): New function object.
  11490. (setLocationPreference): New function.
  11491. * src/Xml2MetalinkProcessor.cc
  11492. (getResource): Set location attribute to MetalinkResource
  11493. To show URLs to download
  11494. * src/UrlRequestInfo.h
  11495. (printUrls): New function.
  11496. To add multiple <file> Metalink support:
  11497. * src/MetalinkEntry.h
  11498. (MetalinkResources): Removed.
  11499. (setLocationPreference): New function.
  11500. (MetalinkEntryHandle): New type definition.
  11501. (MetalinkEntries): New type definition.
  11502. * src/Xml2MetalinkProcessor.h
  11503. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  11504. (getResource): MetalinkResource* -> MetalinkResourceHandle
  11505. (parseFile): Metalinker* -> MetalinkerHandle
  11506. * src/UrlRequestInfo.h
  11507. (execute): RequestInfo* -> RequestInfos
  11508. * src/MetalinkRequestInfo.cc
  11509. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  11510. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  11511. (execute): RequestInfo* -> RequestInfos
  11512. Added multiple <file> support. Print filename when it is queued.
  11513. * src/MetalinkRequestInfo.h
  11514. (execute): RequestInfo* -> RequestInfos
  11515. (getDownloadEngine): Removed.
  11516. * src/RequestInfo.h
  11517. (RequestInfoHandle): New type definition.
  11518. (RequestInfos): New type definition.
  11519. (execute): RequestInfo* -> RequestInfos
  11520. (getDownloadEngine): Removed.
  11521. * src/MetalinkResource.h
  11522. (MetalinkResourceHandle): New type definition.
  11523. (MetalinkResources): New type definition.
  11524. * src/MetalinkEntry.cc
  11525. (~MetalinkEntry): Removed the deletion of the elements of resources,
  11526. because the element is now of type MetalinkResourceHandle.
  11527. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  11528. (Supported): MetalinkResource* -> MetalinkResourceHandle
  11529. (dropUnsupportedResource): Removed the deletion of the elements of
  11530. resources because the element is now of type MetalinkResourceHandle.
  11531. * src/Xml2MetalinkProcessor.cc
  11532. (parseFile): Metalinker* -> MetalinkerHandle
  11533. MetalinkEntry* -> MetalinkEntryHandle
  11534. Removed try-catch block.
  11535. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  11536. MetalinkResource* -> MetalinkResourceHandle
  11537. Removed try-catch block.
  11538. (getResource): MetalinkResource* -> MetalinkResourceHandle
  11539. Free result by using xmlXPathFreeObject()
  11540. * src/Metalinker.cc
  11541. (~Metalinker): Removed the deletion of entries.
  11542. MetalinkEntry* -> MetalinkEntryHandle
  11543. (queryEntry): Add multiple <file> Metalink support.
  11544. * src/Metalinker.h
  11545. (MetalinkEntries): Removed.
  11546. (queryEntry): MetalinkEntry* -> MetalinkEntries
  11547. * src/MetalinkProcessor.h
  11548. (parseFile): Metalinker* -> MetalinkerHandle
  11549. Bug fixes:
  11550. * src/PeerChokeCommand.cc
  11551. (execute): cat01->cat02
  11552. * src/DefaultPieceStorage.cc
  11553. (DefaultPieceStorage): Added diskAdaptor(0)
  11554. * src/TrackerWatcherComand.cc:
  11555. (execute): Use btAnnounce->noMoreAnnounce()
  11556. to determin whether the function returns true or not.
  11557. * src/TrackerUpdateCommand.cc:
  11558. (execute): Use btAnnounce->noMoreAnnounce()
  11559. to determin whether the function returns true or not.
  11560. * src/FtpConnection.cc
  11561. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  11562. This is the fix of the busy loop bug.
  11563. * src/DownloadCommand.cc
  11564. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  11565. cached PeerStat.
  11566. The value of "name" entry in torrent file is now set by
  11567. *DiskAdaptor::setTopDir(...) methods.
  11568. * src/MultiDiskAdaptor.h
  11569. (topDir): New variable.
  11570. (setTopDir): New function.
  11571. (getTopDir): New function.
  11572. * src/MultiDiskAdaptor.cc
  11573. (getFilePath): Concat storDir, "/" and topDir.
  11574. (mkdir): Use getFilePath() to get the directory path for output.
  11575. * src/DefaultPieceStorage.cc
  11576. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  11577. CopyDiskAdaptor.
  11578. * src/CopyDiskAdaptor.h
  11579. (topDir): New variable.
  11580. (setTopDir): New function.
  11581. (getTopDir): New function.
  11582. * src/CopyDiskAdaptor.cc
  11583. (fixFilename): Updated.
  11584. Misc
  11585. * src/UrlRequestInfo.h
  11586. (e): Removed.
  11587. (UrlRequestInfo): Removed e.
  11588. (getDownloadEngine): Removed.
  11589. * src/UrlRequestInfo.cc
  11590. (handler): Rewritten.
  11591. (printUrls): New function.
  11592. (execute): Call printUrls().
  11593. * src/HandshakeMessage.cc
  11594. (check): peerinteraction->getBtContext() -> btContext
  11595. * src/PeerInteraction.h
  11596. (getBtContext): Removed.
  11597. * src/TorrentRequestInfo.h
  11598. (execute): RequestInfo* -> RequestInfos
  11599. (getDownloadEngine): Removed.
  11600. * src/TorrentRequestInfo.cc
  11601. (haltRequested): Removed.
  11602. (btHaltRequested): New variable.
  11603. (torrentHandler): haltRequested -> btHaltRequested
  11604. (execute): RequestInfo* -> RequestInfos
  11605. * src/TorrentConsoleDownloadEngine.cc
  11606. (afterEachIteration): haltRequested -> btHaltRequested.
  11607. * src/ConsoleDownloadEngine.h
  11608. (initStatistics): Added virtual.
  11609. (calculateStatistics): Added virtual.
  11610. (onEndOfRun): Added virtual.
  11611. (afterEachIteration): Added virtual.
  11612. * src/ConsoleDownloadEngine.cc
  11613. (haltRequested): New variable.
  11614. (afterEachIteration): New function.
  11615. * src/main.cc
  11616. (requestInfo): Removed.
  11617. * src/SegmentMan.cc
  11618. (findSlowerSegmentEntry): Refactored.
  11619. * Release 0.9.0
  11620. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11621. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  11622. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  11623. * src/TorrentMan.h: Removed.
  11624. * src/TorrentMan.cc: Removed.
  11625. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  11626. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  11627. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  11628. * src/PeerAbstractCommand.cc: Use btRuntime.
  11629. * src/BtContextAwareCommand.h: New class.
  11630. * src/FileEntry.h: Added accessor methods for following variables.
  11631. (path): Made private.
  11632. (length): Made private.
  11633. (offset): Made private.
  11634. (extracted): Made private.
  11635. (requested): Made private.
  11636. (FileEntries): New definition.
  11637. (FileEntryHandle): New definition.
  11638. * src/FileEntry.cc: New file.
  11639. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  11640. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  11641. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  11642. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  11643. * src/PieceStorage.h: New file.
  11644. * src/PeerInteractionCommand.h: Use btContext.
  11645. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  11646. btRuntime.
  11647. * src/DefaultBtProgressInfoFile.h: New file.
  11648. * src/DefaultBtProgressInfoFile.cc: New file.
  11649. * src/File.cc
  11650. (Util.h): New include.
  11651. (mkdirs): New function.
  11652. * src/MultiDiskAdaptor.h
  11653. (mkdir): New function.
  11654. * src/PeerListProcessor.h
  11655. (Peers): Removed.
  11656. * src/PeerInteraction.h
  11657. (torrentMan): Removed.
  11658. (btContext): New variable.
  11659. (peerStorage): New variable.
  11660. (pieceStorage): New variable.
  11661. (btAnnounce): New variable.
  11662. (getTorrentMan): Removed.
  11663. (getBtContext): New function.
  11664. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  11665. btAnnounce.
  11666. * src/HandshakeMessage.h
  11667. (TorrentMan.h): Removed.
  11668. * src/HandshakeMessage.cc: Use btContext.
  11669. * src/DefaultBtAnnounce.cc: New file.
  11670. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  11671. * src/DefaultPieceStorage.cc: New file.
  11672. * src/DefaultBtContext.h: New file.
  11673. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  11674. Use the accessor methods of FileEntry.
  11675. * src/CookieBox.cc: Updated to use Util::slice().
  11676. * src/PieceMessage.cc: Use btContext, pieceStorage.
  11677. * src/common.h (SharedHandle.h): New include.
  11678. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  11679. pieceStorage.
  11680. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  11681. * src/DiskAdaptor.h
  11682. (topDir): Removed.
  11683. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  11684. (setTopDir): Removed.
  11685. (getTopDir): Removed.
  11686. * src/BtContext.h: New file.
  11687. * src/DefaultPeerStorage.h: New file.
  11688. * src/PieceMessage.h (TorrentMan.h): Removed.
  11689. * src/RequestMessage.h (TorrentMan.h): Removed.
  11690. * src/TorrentDownloadEngine.h
  11691. (uploadLength): New variable.
  11692. (btContext): New variable.
  11693. (btRuntime): New variable.
  11694. (pieceStorage): New variable.
  11695. (peerStorage): New variable.
  11696. (btAnnounce): New variable.
  11697. (btProgressInfoFile): New variable.
  11698. (torrentMan): Removed.
  11699. (setBtContext): New function.
  11700. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  11701. peerStorage, btAnnounce, btProgressInfoFile.
  11702. * src/Piece.h
  11703. (toString): New function.
  11704. (Pieces): New type definition.
  11705. * src/Peer.h
  11706. (active): New variable.
  11707. (Peer): Added active.
  11708. (activate): Set active to true.
  11709. (deactivate): Set active to false.
  11710. (isActive): New function.
  11711. (Peers): New type definition.
  11712. * src/DirectDiskAdaptor.cc
  11713. (getFilePath): Use the accessor methods of FileEntry.
  11714. * src/TorrentConsoleDownloadEngine.h
  11715. (afterEachIteration): New function.
  11716. * src/TorrentConsoleDownloadEngine.cc
  11717. (haltRequested): New variable.
  11718. (sendStatistics): Use pieceStorage, btRuntime.
  11719. (afterEachIteration): New function.
  11720. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  11721. * src/Directry.h
  11722. (Directory): New function.
  11723. (DirectoryHandle): New type definition.
  11724. * src/BtProgressInfoFile.h: New file.
  11725. * src/RequestMessage.cc: Use pieceStorage.
  11726. * src/BtRuntime.h: New file.
  11727. * src/DefaultBtContext.cc: New file.
  11728. * src/BitfieldMan.h
  11729. (getCompletedLength): New function(private).
  11730. (getCompletedLength): New function.
  11731. (getFilteredCompletedLength): New function.
  11732. * src/BitfieldMan.h
  11733. (getCompletedLength): New function(private).
  11734. (getCompletedLength): New function.
  11735. (getFilteredCompletedLength): New function.
  11736. * src/MultiDiskAdaptor.cc
  11737. (mkdir): New function.
  11738. (openFile): Call mkdir().
  11739. (initAndOpenFile): Call mkdir().
  11740. * src/CancelMessage.h
  11741. (TorrentMan.h): Removed.
  11742. * src/RejectMessage.h
  11743. (TorrentMan.h): Removed.
  11744. * src/DownloadEngineFactory.cc
  11745. (DefaultPieceStorage.h): New include.
  11746. (DefaultPeerStorage.h): New include.
  11747. (DefaultBtAnnounce.h): New include.
  11748. (DefaultBtProgressInfoFile.h): New include.
  11749. (newTorrentConsoleEngine): Rewritten.
  11750. * src/ShareRatioSeedCriteria.h
  11751. (torrentMan): Removed.
  11752. (btContext): New variable.
  11753. (peerStorage): New variable.
  11754. (btRuntime): New variable.
  11755. (evaluate): Use btContext, btRuntime, peerStorage.
  11756. * src/AnnounceTier.h: New file.
  11757. * src/BtAnnounce.h: New file.
  11758. * src/BtRegistry.h: New file.
  11759. * src/PeerInitiateConnectionCommand.h: Added btContext.
  11760. * src/PeerConnection.h (TorrentMan.h): Removed.
  11761. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  11762. * src/Util.h
  11763. (slice): Added an argument.
  11764. * src/Util.cc
  11765. (slice): Added an argument to control whether trim is made or not.
  11766. * src/PeerStorage.h: New file.
  11767. * src/BtRegistry.cc: New file.
  11768. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  11769. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  11770. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  11771. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  11772. * src/TorrentRequestInfo.h
  11773. (e): Removed.
  11774. (showFileEntry): Added an argument.
  11775. (getDownloadEngine): Return 0.
  11776. * src/DefaultBtAnnounce.h: New file.
  11777. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  11778. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  11779. * src/PeerMessageFactory.h
  11780. (btContext): New variable.
  11781. (pieceStorage): New variable.
  11782. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  11783. btAnnounce.
  11784. * src/DiskAdaptor.cc
  11785. (DiskAdaptor): Removed topDir.
  11786. (~DiskAdaptor): Removed topDir.
  11787. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  11788. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  11789. * src/File.h (mkdirs): New function.
  11790. * src/DefaultPeerStorage): New file.
  11791. * src/DownloadEngineFactory.h
  11792. (newTorrentConsoleEngine): Use btContext.
  11793. * src/BtContextAwareCommand.cc: New file.
  11794. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  11795. * src/PeerMessage.h
  11796. (btContext): New variable.
  11797. (peerStorage): New variable.
  11798. (pieceStorage): New variable.
  11799. (setBtContext): New function.
  11800. * src/Directry.cc
  11801. (Directory): New function.
  11802. (createDir): Do nothing if name.size() == 0.
  11803. * src/AnnounceList.h
  11804. (AnnounceTier): Removed.
  11805. (AnnounceTiers): Removed.
  11806. * src/DefaultPieceStorage.h: New file.
  11807. * src/Piece.cc (toString): New function.
  11808. To fix typo:
  11809. * src/main.cc (showVersion): Fixed typo.
  11810. To fix compile warning:
  11811. * src/DelegatingPeerListProcessor.cc
  11812. (canHandle): Added "return false".
  11813. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11814. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  11815. make the process of announce request testable.
  11816. * src/TrackerWatcherCommand.h
  11817. (TimeA2.h): Removed.
  11818. (interval): Removed.
  11819. (checkPoint): Removed.
  11820. (createRequestCommand): Added an argument 'url'.
  11821. (TrackerWatherCommand): Removed interval.
  11822. (createCommand): New function.
  11823. * src/DownloadEngineFactory.cc
  11824. (newTorrentConsoleEngine): Updated according to the changes in
  11825. TrackerWatherCommand.
  11826. * src/TorrentMan.cc
  11827. (DelegatingPeerListProcessor.h): New includes.
  11828. (TorrentMan): Added the initialization of announceInterval.
  11829. (isStoppedAnnounceReady): New function.
  11830. (isCompletedAnnounceReady): New function.
  11831. (isDefaultAnnounceReady): New function.
  11832. (isAnnounceReady): New function.
  11833. (getAnnounceUrl): New function.
  11834. (announceStart): New function.
  11835. (announceFailure): New function.
  11836. (announceSuccess): New function.
  11837. (isAllAnnounceFailed): New function.
  11838. (resetAnnounce): New function.
  11839. (processAnnounceResponse): New function.
  11840. (needMorePeerConnection): New function.
  11841. (noMoreAnnounce): New function.
  11842. * src/TrackerUpdateCommand.h
  11843. (getTrackerResponse): int->size_t
  11844. * src/TorrentMan.h
  11845. (isStoppedAnnounceReady): New function.
  11846. (isCompletedAnnounceReady): New function.
  11847. (isDefaultAnnounceReady): New function.
  11848. (announceInterval): New variable.
  11849. (isAnnounceReady): New function.
  11850. (getAnnounceUrl): New function.
  11851. (announceStart): New function.
  11852. (announceFailure): New function.
  11853. (announceSuccess): New function.
  11854. (isAllAnnounceFailed): New function.
  11855. (resetAnnounce): New function.
  11856. (processAnnounceResponse): New function.
  11857. (needMorePeerConnection): New function.
  11858. (noMoreAnnounce): New function.
  11859. * src/TrackerWatcherCommand.cc
  11860. (TrackerWatherCommand): Removed interval and checkPoint.
  11861. (execute): Rewritten.
  11862. (createCommand): New function.
  11863. (createRequestCommand): Rewritten.
  11864. * src/TrackerUpdateCommand.cc
  11865. (MetaFileUtil.h): Removed.
  11866. (DelegatingPeerListProcessor.h): Removed.
  11867. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  11868. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11869. Request -> RequestHandle:
  11870. * src/HttpResponseCommand.h: Request->RequestHandle
  11871. * src/AbstractCommand.cc: Request->RequestHandle
  11872. * src/HttpDownloadCommand.cc: Request->RequestHandle
  11873. * src/HttpRequestCommand.cc: Request->RequestHandle
  11874. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  11875. * src/AbstractCommand.h: Request->RequestHandle
  11876. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  11877. * src/HttpResponseCommand.cc: Request->RequestHandle
  11878. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  11879. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  11880. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  11881. * src/HttpConnection.h: Request->RequestHandle
  11882. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  11883. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  11884. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  11885. * src/DownloadCommand.h: Request->RequestHandle
  11886. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  11887. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  11888. * src/HttpRequestCommand.h: Request->RequestHandle
  11889. * src/FtpNegotiateCommand.h: Request->RequestHandle
  11890. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  11891. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  11892. * src/HttpDownloadCommand.h: Request->RequestHandle
  11893. * src/FtpConnection.cc: Request->RequestHandle
  11894. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  11895. * src/UrlRequestInfo.cc: Request->RequestHandle
  11896. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  11897. * src/HttpConnection.h: Request->RequestHandle
  11898. * src/DownloadCommand.cc: Request->RequestHandle
  11899. * src/FtpConnection.h: Request->RequestHandle
  11900. * src/FtpDowndloadCommand.h: Request->RequestHandle
  11901. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  11902. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  11903. * src/Request.h
  11904. (SharedHandle.h): New include.
  11905. (RequestHandle): New type definition.
  11906. (Requests): Redefined.
  11907. To add MULTITRACKER support:
  11908. * src/TrackerWatcherCommand.h
  11909. (createRequestCommand): New function.
  11910. * src/DownloadEngineFactory.cc
  11911. (newTorrentConsoleEngine): Removed req.
  11912. * src/prefs.h
  11913. (PREF_TRACKER_MAX_TRIES): New definition.
  11914. * src/TorrentMan.cc
  11915. (TorrentMan): Removed req. Added trackerNumTry.
  11916. (~TorrentMan): Removed req.
  11917. (setupInternal1): Added announceList.
  11918. * src/TorrentRequestInfo.cc
  11919. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  11920. announces is now specified by PREF_TRACKER_MAX_TRIES.
  11921. * src/main.cc
  11922. (main): Added PREF_TRACKER_MAX_TRIES.
  11923. * src/TorrentMan.h
  11924. (Request.h): Removed.
  11925. (AnnounceList.h): New include.
  11926. (trackerNumTry): New variable.
  11927. (req): Removed.
  11928. (announceList): New variable.
  11929. * src/TrackerWatcherCommand.cc
  11930. (execute): Rewritten.
  11931. (createRequestCommand): New function.
  11932. * src/TrackerUpdateCommand.cc
  11933. (execute): Updated with the use of AnnounceList.
  11934. * src/AnnounceList.cc: New class.
  11935. * src/AnnounceList.h: New class.
  11936. To fix typo:
  11937. * src/prefs.h
  11938. (PREF_MAX_TRIES): max_try->max_tries
  11939. To not to decode "+" as space in URL decode:
  11940. * src/Util.cc
  11941. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  11942. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11943. To add timeout to async name resolution:
  11944. * src/AbstractCommand.h
  11945. (nameResolveFinished): New function. This is not elegant way. It needs
  11946. to be more refined.
  11947. (nameResolverCheck): New variable.
  11948. * src/AbstractCommand.cc
  11949. (AbstractCommand): Added nameResolverCheck.
  11950. (execute): Added the check whether the name resolution has finished.
  11951. (setNameResolverCheck): Set nameResolverCheck to true.
  11952. (disableNameResolverCheck): Set nameResolverCheck to false.
  11953. (nameResolverFinished): New function.
  11954. * src/FtpInitiateConnectionCommand.h
  11955. (nameResolverFinished): New function.
  11956. * src/FtpInitiateConnectionCommand.cc
  11957. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  11958. * src/HttpInitiateConnectionCommand.h
  11959. (nameResolverFinished): New function.
  11960. * src/HttpInitiateConnectionCommand.cc
  11961. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  11962. * src/prefs.h
  11963. (PREF_DNS_TIMEOUT): New definition.
  11964. * src/main.cc
  11965. (main): Added PREF_DNS_TIMEOUT.
  11966. To add the support for a non-compact response from a tracker:
  11967. * src/PeerListProcessor.h: New class.
  11968. * src/DefaultPeerListProcessor.h: New class.
  11969. * src/DefaultPeerListProcessor.cc: New class.
  11970. * src/CompactPeerListProcessor.h: New class.
  11971. * src/CompactPeerListProcessor.cc: New class.
  11972. * src/DelegatingPeerListProcessor.h: New class.
  11973. * src/DelegatingPeerListProcessor.cc: New class.
  11974. * src/TorrentMan.cc
  11975. (addPeer): New function(overload).
  11976. (addPeer): Delete unused peers only when new peer is added.
  11977. * src/TorrentMan.h
  11978. (PeerListProcessor.h): Included.
  11979. (Peers): Removed.
  11980. (addPeer): New function(overload).
  11981. * src/TrackerUpdateCommand.cc
  11982. (netinet/in.h): Removed.
  11983. (DelegatingPeerListProcessor.h): Included.
  11984. (execute): Updated to use DelegatingPeerListProcessor.
  11985. To fix the memory leak in TorrentMan::peers:
  11986. * src/PeerAbstractCommand.cc
  11987. (onAbort): Added peer->resetStatus().
  11988. * src/Peer.h
  11989. (resetStatus): Made public.
  11990. To improve the precision of the speed calculation:
  11991. * src/SpeedCalc.h
  11992. (nextInterval): New variable.
  11993. * src/SpeedCalc.cc
  11994. (reset): Added nextInterval.
  11995. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  11996. (changeSw): Set nextInterval to 15 seconds relative to the current
  11997. instant time.
  11998. * src/main.cc
  11999. (showVersion): Updated.
  12000. (showUsage): Updated.
  12001. * Release 0.8.1
  12002. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12003. * src/main.cc
  12004. (showUsage): Commented out --min-segment-size option.
  12005. (main): Commented out --min-segment-size option.
  12006. * Release 0.8.0
  12007. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12008. * src/*.{h,cc}:
  12009. Added an exception to the license which allows linking with OpenSSL.
  12010. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12011. * src/AbstractCommand.cc
  12012. (execute): Check whether the download has finished before checking
  12013. socket status.
  12014. Return true if peerStat->getStatus() == REQUEST_IDLE.
  12015. Do not exit even if no segment is available.
  12016. * src/prefs.h
  12017. (PREF_STARTUP_IDLE_TIME): New definition.
  12018. * src/PeerInteractionCommand.cc
  12019. (executeInternal): Removed max speed limit. Because it performs bad.
  12020. (receiveMessages): Added max speed limit. This was better than above,
  12021. but still a little bit to be desired. Sometimes the download speed
  12022. became much faster than I specified.
  12023. * src/SpeedCalc.h
  12024. (start): New variable.
  12025. (accumulatedLength): New variable.
  12026. (getAvgSpeed): New function.
  12027. * src/SpeedCalc.cc
  12028. (reset): Added start, accumulatedLength.
  12029. (update): Added calculation of an average speed.
  12030. (getAvgSpeed): New function.
  12031. * src/DownloadCommand.h
  12032. (sw): Removed.
  12033. * src/main.cc
  12034. (main): Added PREF_STARTUP_IDLE_TIME.
  12035. * src/PeerStat.h
  12036. (STATUS): Added REQUEST_IDLE.
  12037. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  12038. (getAvgDownloadSpeed): New function
  12039. (requestIdle): New function.
  12040. * src/SegmentMan.h
  12041. (SegmentEntryHandle): New type definition.
  12042. (SegmentEntries): Now holds SegmentEntryHandle.
  12043. (findSlowerSegmentEntry): New funtion.
  12044. * src/SegmentMan.cc
  12045. (save): Updated according to the changes in SegmentEntries.
  12046. (read): Updated according to the changes in SegmentEntries.
  12047. (FindSegmentEntryByIndex): Updated according to the changes in
  12048. SegmentEntries.
  12049. (FindSegmentEntryByCuid): Updated according to the changes in
  12050. SegmentEntries.
  12051. (checkoutSegment): Updated according to the changes in SegmentEntries.
  12052. (onNullBitfield): Updated according to the changes in SegmentEntries.
  12053. Renamed uitr as itr.
  12054. (findSlowerSegmentEntry): New function.
  12055. (getSegment): Updated according to the changes in SegmentEntries.
  12056. Added the feature that cancels the segment with slow server and fast
  12057. one takes it over.
  12058. (cancelSegment): Updated according to the changes in SegmentEntries.
  12059. (getDownloadLength): Updated according to the changes in
  12060. SegmentEntries.
  12061. (init): Assigned 0 to bitfield after deleting it.
  12062. * src/DownloadCommand.cc
  12063. (STARTUP_IDLE_TIME): Removed.
  12064. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  12065. * src/PeerChokeCommand.cc
  12066. (optUnchokingPeer): Updated according to the changes in Peer.
  12067. (ResetDelta): Removed.
  12068. (UploadFaster): Updated according to the changes in Peer.
  12069. (DownloadFaster): Updated according to the changes in Peer.
  12070. (execute): I clarify the meaning of "upload" and "download" here.
  12071. "upload" means the transfer from localhost to remote host.
  12072. "download" means the transfer from remote host to localhost.
  12073. Based on this rule, I swapped orderByUploadRate and
  12074. orderByDownloadRate.
  12075. * src/PeerInteractionCommand.cc
  12076. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  12077. (executeInternal): Removed the argument of
  12078. peerInteraction->sendMessages().
  12079. (receiveMessages): Rewritten download speed limit.
  12080. (sendKeepAlive): Removed peerInteraction->sendMessages().
  12081. * src/HttpResponseCommand.cc
  12082. (handleDefaultEncoding): If file size is unknown in torrent request,
  12083. do not call segmentMan->initBitfield() here.
  12084. Disabled persistent connection feature in torrent request.
  12085. * src/UrlRequestInfo.h
  12086. (UrlRequestInfo): Removed const qualifier from option.
  12087. * src/TorrentMan.h
  12088. (TransferStat): New class.
  12089. (deltaDownloadLength): Removed.
  12090. (deltaUploadLength): Removed.
  12091. (addDeltaDownloadLength): Removed.
  12092. (getDeltaDownloadLength): Removed.
  12093. (resetDeltaDownloadLength): Removed.
  12094. (addDeltaUploadLength): Removed.
  12095. (getDeltaUploadLength): Removed.
  12096. (resetDeltaUploadLength): Removed.
  12097. (addActivePeer): Added peer->activate().
  12098. (deleteActivePeer): Added peer->deactivate().
  12099. (calculateStat): New function.
  12100. * src/TorrentMan.cc
  12101. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  12102. (calculateStat): New function.
  12103. * src/PeerInteraction.h
  12104. (uploadLimit): Removed.
  12105. (option): New variable.
  12106. (setUploadLimit): Removed.
  12107. (getUploadSpeed): Removed.
  12108. (sendMessages): Removed the argument "currentUploadSpeed".
  12109. * src/PeerInteraction.cc
  12110. (prefs.h): Included.
  12111. (PeerInteraction): Removed uploadLimit. Added option.
  12112. (sendMessages): Rewritten upload speed limit.
  12113. (sendHandshake): Removed the argument from sendMessages().
  12114. (sendBitfield): Removed the argument from sendMessages().
  12115. * src/PeerAbstractCommand.cc
  12116. (execute): Commented out the portion of upload limit.
  12117. (onAbort): Removed peer->resetStatus().
  12118. * src/TorrentRequestInfo.cc
  12119. (timeoutSpecified): Declared extern.
  12120. (execute): Set timeout to 180 if timeout is not specified by.
  12121. command-line.
  12122. * src/PieceMessage.cc
  12123. (receivedAction): Added peer->updateDownloadLength().
  12124. Removed peer->addPeerUpload().
  12125. Removed torrentMan->addDeltaDownloadLength().
  12126. (send): Added peer->updateUploadLength().
  12127. Removed peer->addPeerDownload().
  12128. Removed torrentMan->addDeltaUploadLength().
  12129. * src/main.cc
  12130. (timeoutSpecified): New variable.
  12131. (main): Set timeoutSpecified to false.
  12132. If the command-line option "--upload-limit" is specified, then
  12133. timeoutSpecified is set to true. This option will remain in the next
  12134. release, but be deprecated in the future release.
  12135. * src/TorrentRequestInfo.h
  12136. (TorrentRequestInfo): Removed const qualifier from op.
  12137. * src/PeerStat.h
  12138. (uploadSpeed): New variable.
  12139. (PeerStat): Added default value to cuid.
  12140. (calculateUploadSpeed): New function.
  12141. (updateUploadLength): New function.
  12142. (getMaxUploadSpeed): New function.
  12143. (getAvgUploadSpeed): New function.
  12144. (reset): Added uploadSpeed. Set status to IDLE.
  12145. * src/TorrentDownloadEngine.h
  12146. (cp): Declared as Time.
  12147. (sessionDownloadLengthArray): Removed.
  12148. (sessionUploadLengthArray): Removed.
  12149. (currentCp): Removed.
  12150. (lastCalcStat): New variable
  12151. (lastElapsed): Removed.
  12152. (sessionDownloadLength): Removed.
  12153. (calculateStat): New function.
  12154. * src/TorrentDownloadEngine.cc
  12155. (initStatistics): Removed lastElapsed, cp[],
  12156. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  12157. currentCp, sessionDownloadLength.
  12158. Added cp.reset() and lastCalcStat.reset().
  12159. (calculateSpeed): Changed the name of the argument.
  12160. (calculateStatistics): Rewritten.
  12161. (calculateStat): New function.
  12162. * src/Peer.h
  12163. (PeerStat.h): Included.
  12164. (peerUpload): Removed.
  12165. (peerDownload): Removed.
  12166. (peerStat): New variable.
  12167. (sessionUploadLength): New variable.
  12168. (sessionDownloadLength): New variable.
  12169. (deltaUpload): Removed.
  12170. (deltaDownload): Removed.
  12171. (resetStatus): Made private.
  12172. (Peer): Added sessionUploadLength, sessionDownloadLength.
  12173. Removed peerUpload, peerDownload.
  12174. (updateUploadLength): New function.
  12175. (addDeltaUpload): Removed.
  12176. (updateDownloadLength): New function.
  12177. (resetDeltaUpload): Removed.
  12178. (getDeltaUpload): Removed.
  12179. (addDeltaDownload): Removed.
  12180. (calculateUploadSpeed): New function.
  12181. (resetDeltaDownload): Removed.
  12182. (getDeltaDownload): Removed.
  12183. (calculateDownloadSpeed): New function.
  12184. (getSessionUploadLength): New function.
  12185. (getSessionDownloadLength): New function.
  12186. (activate): New function.
  12187. (deactivate): New function.
  12188. (addPeerUpload): Removed.
  12189. (setPeerUpload): Removed.
  12190. (getPeerUpload): Removed.
  12191. (addPeerDownload): Removed.
  12192. (setPeerDownload): Removed.
  12193. (getPeerDownload): Removed.
  12194. * src/Peer.cc
  12195. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  12196. * src/MetalinkRequestInfo.h
  12197. (MetalinkRequestInfo): Removed const qualifier from op.
  12198. * src/RequestInfo.h
  12199. (op): Removed const qualifier.
  12200. (RequestInfo): Removed const qualifier from op.
  12201. * src/prefs.h
  12202. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  12203. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  12204. * src/PeerInteractionCommand.cc
  12205. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  12206. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  12207. * src/PeerInteraction.cc
  12208. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  12209. * src/main.cc
  12210. (showUsage): Updated the description of "--lowest-speed-limit" option.
  12211. Added the description of "--max-download-limit" option.
  12212. Removed the description of "--upload-limit" option.
  12213. Added the description of "--max-upload-limit" option.
  12214. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  12215. Added "--max-download-limit" option and "--max-upload-limit" option.
  12216. Added the warning message if "--upload-limit" option is used.
  12217. * src/DownloadCommand.cc
  12218. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  12219. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12220. To rewrite segment download mechanism for HTTP/FTP download.
  12221. Use BitfieldMan to manage segment download.
  12222. * src/HttpResponseCommand.h
  12223. (executeInternal): Pass the reference of segment.
  12224. * src/AbstractCommand.cc
  12225. (prepareForRetry): Call segmentMan->cancelSegment here.
  12226. (onAbort): Call segmentMan->cancelSegment here.
  12227. * src/HttpDownloadCommand.cc
  12228. (prepareForNextSegment): New function.
  12229. * src/DownloadEngineFactory.cc
  12230. (newConsoleEngine): Removed splitter.
  12231. (newTorrentConsoleEngine): Removed splitter.
  12232. * src/Request.h
  12233. (segment): Renamed from seg.
  12234. * src/FtpInitiateConnectionCommand.h
  12235. (executeInternal): Pass the reference of segment.
  12236. * src/AbstractCommand.h
  12237. (executeInternal): Pass the reference of segment.
  12238. * src/pref.h
  12239. (PREF_SEGMENT_SIZE): New definition.
  12240. * src/HttpProxyRequestCommand.h
  12241. (executeInternal): Pass the reference of segment.
  12242. * src/HttpResponseCommand.cc
  12243. (checkResponse): Allowed status 206 when a request range starts 0.
  12244. (handleDefaultEncoding): Rewritten the code related to Segment.
  12245. (handleOtherEncoding): Rewritten the code related to Segment.
  12246. * src/SegmentMan.h
  12247. (SegmentEntry): New class.
  12248. (SegmentEntries): New type definition.
  12249. (bitfield): New variable.
  12250. (usedSegmentEntries): New variable.
  12251. (onNullBitfield): New function.
  12252. (checkoutSegment): New function.
  12253. (segments): Removed.
  12254. (splitter): Removed.
  12255. (unregisterId): Removed.
  12256. (getSegment): New function(overload)
  12257. (getDownloadedSize): Removed.
  12258. (cancelSegment): New function.
  12259. (completeSegment): New function.
  12260. (initBitfield): New function.
  12261. (hasSegment): New function.
  12262. (getDownloadLength): New function.
  12263. * src/BitfieldMan.h
  12264. (getStartIndex): New function.
  12265. (getEndIndex): New function.
  12266. (getMissingUnusedIndex): New function(overload).
  12267. (getSparseMissingUnusedIndex): New function.
  12268. * src/BitfieldMan.cc
  12269. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  12270. (getMissingUnusedIndex): New function(overload).
  12271. (Range): New class.
  12272. (getStartIndex): New function.
  12273. (getEndIndex): New function.
  12274. (getSparseMissingUnusedIndex): New function.
  12275. (isBitSetInternal): Return false if the given index is less than 0.
  12276. * src/HttpInitiateConnectionCommand.h
  12277. (executeInternal): Pass the reference of segment.
  12278. * src/FtpNegotiateCommand.h
  12279. (executeInternal): Pass the reference of segment.
  12280. * src/FtpNegotiateCommand.cc
  12281. (recvSize): Initialize bitfield here.
  12282. * src/FtpTunnelResponseCommand.h
  12283. (executeInternal): Pass the reference of segment.
  12284. * src/HttpConnection.cc
  12285. (createRequest): Rewritten range header processing.
  12286. * src/DownloadCommand.h
  12287. (executeInternal): Pass the reference of segment.
  12288. (prepareForRetry): Removed.
  12289. (prepareForNextSegment): Added an argument segment. Made it a virtual
  12290. function.
  12291. * src/main.cc
  12292. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  12293. * src/SegmentMan.cc
  12294. (SegmentMan): Added bitfield. Removed splitter.
  12295. (~SegmentMan): Added bitfield. Removed splitter.
  12296. (unregisterId): Removed.
  12297. (getSegment): Rewritten.
  12298. (updateSegment): Rewritten.
  12299. (save): Rewritten.
  12300. (read): Rewritten.
  12301. (finished): Rewritten.
  12302. (getDownloadedSize): Removed.
  12303. (initBitfield): New function.
  12304. (FindSegmentEntryByIndex): New function object.
  12305. (FindSegmentEntryByCuid): New function object.
  12306. (checkoutSegment): New function.
  12307. (onNullBitfield): New function.
  12308. (getSegment): New function(overload).
  12309. (CancelSegment): New function object.
  12310. (cancelSegment): New function.
  12311. (completeSegment): New function.
  12312. (hasSegment): New function.
  12313. (getDownloadLength): New function.
  12314. * src/FtpInitiateConnectionCommand.cc
  12315. (executeInternal): Load .aria2 file after hostname resolution finishes.
  12316. * src/Segment.h: Rewritten.
  12317. * src/Segment.cc (operator<<): New function.
  12318. * src/HttpDownloadCommand.h
  12319. (prepareForNextSegment): New function.
  12320. * src/Request.cc
  12321. (resetUrl): Made segment null.
  12322. * src/DownloadEngine.cc
  12323. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  12324. * src/HttpProxyRequestCommand.h
  12325. (executeInternal): Pass the reference of segment.
  12326. * src/DownloadCommand.cc
  12327. (executeInternal): Rewritten the code related to Segment.
  12328. (prepareForRetry): Removed.
  12329. (prepareForNextSegment): Rewritten.
  12330. * src/FtpTunnelResponseCommand.h
  12331. (executeInternal): Pass the reference of segment.
  12332. To add HTTP 1.1 persistent connection support(experimental)
  12333. * src/HttpRequestCommand.cc
  12334. (executeInternal): Disable keep alive if it is disabled by
  12335. configuration.
  12336. * src/Request.h
  12337. (keepAlive): New variable.
  12338. (isKeepAlive): New function.
  12339. (setKeepAlive): New function.
  12340. * src/pref.h
  12341. (PREF_HTTP_KEEP_ALIVE): New definition.
  12342. * src/HttpResponseCommand.cc
  12343. (executeInternal): Check the remote server supports keep alive.
  12344. * src/HttpConnection.cc
  12345. (createRequest): Send "Connection: close" only if keep alive is
  12346. disabled.
  12347. * src/main.cc
  12348. (main):
  12349. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  12350. To add max download speed limit:
  12351. * src/pref.h
  12352. (PREF_MAX_SPEED_LIMIT): New definition.
  12353. * src/PeerInteractionCommand.cc
  12354. (executeInternal): Added max download speed limit. Not tested yet.
  12355. * src/SegmentMan.h
  12356. (PeerStats): New type definition.
  12357. (peerStats): New variable.
  12358. (registerPeerStat): New function.
  12359. (FindPeerStat): New function object.
  12360. (getPeerStat): New function.
  12361. (calculateDownloadSpeed): New function.
  12362. * src/SpeedCalc.h: New class.
  12363. * src/SpeedCalc.cc: New class.
  12364. * src/main.cc
  12365. (main):
  12366. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  12367. download speed is not restricted).
  12368. * src/PeerStat.h: New class.
  12369. * src/SegmentMan.cc
  12370. (registerPeerStat): New function.
  12371. (calculateDownloadSpeed): New function.
  12372. * src/DownloadCommand.cc
  12373. (STARTUP_IDLE_TIME): New definition.
  12374. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  12375. downloadStart.
  12376. (~DownloadCommand): Call peerStat->downloadStop.
  12377. (executeInternal): Added download speed limitter. Rewritten lowest
  12378. speed limitter.
  12379. * src/HttpConnection.cc
  12380. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  12381. * src/AbstractCommand.cc
  12382. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  12383. Added hostname to the error message.
  12384. * src/ConsoleDownloadEngine.cc
  12385. (calculateStatistics): Initialize psize with dlSize.
  12386. * src/PieceMessage.cc
  12387. (receivedAction): Do not call peerInteraction->abortPiece here.
  12388. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  12389. * src/BitfieldMan.h
  12390. (clearAllUseBit): New function.
  12391. (setAllUseBit): New function.
  12392. * src/BitfieldMan.cc
  12393. (clearAllBit): Do not clear useBitfield here.
  12394. (clearAllUseBit): New function.
  12395. (setAllUseBit): New function.
  12396. * src/Piece.cc
  12397. (clearAllBlock): Call bitfield->clearAllUseBit().
  12398. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12399. To make filename URL-decoded:
  12400. * src/HttpResponseCommand.h: Updated doc.
  12401. * src/HttpResponseCommand.cc
  12402. (determinFilename): Made filename URL-decoded.
  12403. * src/FtpInitiateConnectionCommand.cc
  12404. (executeInternal): Made filename URL-decoded.
  12405. * src/Util.h (urldecode): New function.
  12406. * src/Util.cc (urldecode): New function.
  12407. To fix a bug that caused assertion failure in ares_strerror:
  12408. * src/NameResolver.cc (callback): Fixed the bug.
  12409. * Release 0.7.3
  12410. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12411. To add --seed-time and --seed-ratio command-line option:
  12412. * src/Option.h (getAsDouble): New function.
  12413. * src/Option.cc (getAsDouble): New function.
  12414. * src/SeedCheckCommand.h: New class.
  12415. * src/SeedCheckCommand.cc: New class.
  12416. * src/DownloadEngineFactory.cc
  12417. (SeedCheckCommand.h): Included.
  12418. (UnionSeedCriteria.h): Included.
  12419. (TimeSeedCriteria.h): Included.
  12420. (ShareRatioSeedCriteria.h): Included.
  12421. (newTorrentConsoleEngine): Added the processing of seed option.
  12422. * src/SeedCriteria.h: New class.
  12423. * src/ShareRatioSeedCriteria.h: New class.
  12424. * src/TimeSeedCriteria.h: New class.
  12425. * src/UnionSeedCriteria.h: New class.
  12426. * src/prefs.h
  12427. (PREF_SEED_TIME): New definition.
  12428. (PREF_SEED_RATIO): New definition.
  12429. * src/main.cc
  12430. (showUsage): Added --seed-time and --seed-ratio option.
  12431. (main): Added --seed-time and --seed-ratio option.
  12432. Made default log file name "/dev/null".
  12433. * src/SharedHandle.h
  12434. (SharedHandle): Copy constructor. Made it assignable from the
  12435. SharedHandle of the subclasses.
  12436. (operator=): Made it assignable from the SharedHandle of the
  12437. subclasses.
  12438. (getRefCount): New function.
  12439. To add notice log level and the switch to write log to stdout. This
  12440. switch is configurable per log level.
  12441. * src/Logger.h
  12442. (notice): New function.
  12443. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  12444. constant.
  12445. * src/LogFactory.cc
  12446. (getInstance): The use of NullLogger was removed. A log message with
  12447. notice log level was made written to stdout along with log file.
  12448. * src/NullLogger.h
  12449. (notice): New function.
  12450. * src/SimpleLogger.h
  12451. (writeHeader): Added the 'file' argument.
  12452. (writeLog): Added the 'file' argument.
  12453. (writeFile): New function.
  12454. (stdoutField): New variable.
  12455. (SimpleLogger): Removed the default constructor.
  12456. (SimpleLogger): Made the default value of logfile 0.
  12457. (debug): Added 'virtual' keyword.
  12458. (info): Added 'virtual' keyword.
  12459. (warn): Added 'virtual' keyword.
  12460. (error): Added 'virtual' keyword.
  12461. (notice): New function.
  12462. (setStdout): New function.
  12463. * src/SimpleLogger.cc
  12464. (WRITE_LOG): Replaced writeLog with writeFile.
  12465. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  12466. (SimpleLogger): Removed the default constructor.
  12467. (setStdout): New function.
  12468. (writeLog): Added the handling of NOTICE log level.
  12469. (writeFile): New function.
  12470. (notice): New function.
  12471. * src/TorrentMan.h: Updated doc.
  12472. * src/BitfieldMan.h: Updated doc.
  12473. * src/TrackerWatcherCommand.cc
  12474. (execute): Return true if error occurred in the request to the tracker
  12475. and halt is requested.
  12476. * src/TrackerUpdateCommand.cc
  12477. (execute): Return true if error occurred in the request to the tracker
  12478. and halt is requested.
  12479. To call onDownloadComplete from TorrentMan::completePiece(), not from
  12480. DownloadEngine:
  12481. * src/TorrentConsoleDownloadEngine.h
  12482. (onSelectiveDownloadingCompletes): Removed.
  12483. * src/TorrentConsoleDownloadEngine.cc
  12484. (onSelectiveDownloadingCompletes): Removed.
  12485. * src/TorrentDownloadEngine.h
  12486. (onEndOfRun): Added 'virtual' keyword.
  12487. (afterEachIteration): Removed.
  12488. (onSelectiveDownloadingCompletes): Removed.
  12489. * src/TorrentDownloadEngine.cc
  12490. (onEndOfRun): Removed filenameFixed.
  12491. (afterEachIteration): Removed.
  12492. * src/TorrentMan.cc
  12493. (completePiece): Call onDownloadComplete here.
  12494. (onDownloadComplete): Added 2 log messages.
  12495. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12496. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  12497. * src/NameResolver.h: Added the prototype declaration of callback().
  12498. To support c-ares library:
  12499. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12500. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12501. * src/FtpInitiateConnectionCommand.h:
  12502. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12503. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12504. * src/HttpInitiateConnectionCommand.h:
  12505. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12506. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  12507. Added thes upport of c-ares's ares_strerror(the idea came from patch
  12508. #1542285 by tizianomueller)
  12509. * src/HttpInitiateConnectionCommand.cc:
  12510. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12511. * src/FtpInitiateConnectionCommand.cc:
  12512. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12513. * src/DownloadEngine.h:
  12514. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12515. * src/DownloadEngine.cc:
  12516. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12517. To fix the bug that causes compilation failure with metalink-support
  12518. disabled(bug#1543587):
  12519. * src/main.cc: Fixed with the patch by tizianomueller.
  12520. * Release 0.7.2
  12521. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12522. * src/main.cc
  12523. (main): Added a message to inform users that aria2 is starting to
  12524. verify checksum.
  12525. * src/RequestInfo.cc
  12526. (printDownloadAbortMessage): Added a message to inform users that
  12527. transfer can be resumed.
  12528. * src/FeatureConfig.cc
  12529. (FEATURE_ASYNC_DNS): New definition.
  12530. (FeatureConfig): Added aysnc DNS entry.
  12531. To replace CommandUuid with Command* in SocketEntry and
  12532. NameResolverEntry:
  12533. * src/DownloadEngine.h
  12534. (CommandUuids): Removed.
  12535. (SocketEntry::commandUuid): Removed.
  12536. (SocketEntry::command): New variable.
  12537. (SocketEntry::SocketEntry): Updated.
  12538. (SocketEntry::operator==): Updated.
  12539. (NameResolverEntry::commandUuid): Removed.
  12540. (NameResolverEntry::command): New variable.
  12541. (NameResolverEntry::NameResolverEntry): Updated.
  12542. (NameResolverEntry::operator==): Updated.
  12543. (waitData): Changed the argument type.
  12544. (addSocketForReadCheck): Changed the argument type.
  12545. (deleteSocketForReadCheck): Changed the argument type.
  12546. (addSocketForWriteCheck): Changed the argument type.
  12547. (deleteSocketForWriteCheck): Changed the argument type.
  12548. (addNameResolverCheck): Changed the argument type.
  12549. (deleteNameResolverCheck): Changed the argument type.
  12550. * src/DownloadEngine.cc
  12551. (FindCommand): Removed.
  12552. (run): Removed activeUuid. Added activeCommands instead.
  12553. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  12554. (AccumulateActiveCommand): New function object.
  12555. (waitData): Use AccumulateActiveCommand.
  12556. (addSocketForReadCheck): Use Command instead of CommandUuid.
  12557. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  12558. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  12559. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  12560. (addNameResolverCheck): Use Command instead of CommandUuid.
  12561. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  12562. * src/AbstractCommand.cc
  12563. (disableReadCheckSocket): Updated according to the changes in
  12564. DownloadEngine.
  12565. (setReadCheckSocket): Updated according to the changes in
  12566. DownloadEngine.
  12567. (disableWriteCheckSocket): Updated according to the changes in
  12568. DownloadEngine.
  12569. (setWriteCheckSocket): Updated according to the changes in
  12570. DownloadEngine.
  12571. (setNameResolverCheck): Updated according to the changes in
  12572. DownloadEngine.
  12573. (disableNameResolverCheck): Updated according to the changes in
  12574. DownloadEngine.
  12575. * src/AbstractCommand.cc
  12576. (disableReadCheckSocket): Updated according to the changes in
  12577. DownloadEngine.
  12578. (setReadCheckSocket): Updated according to the changes in
  12579. DownloadEngine.
  12580. (disableWriteCheckSocket): Updated according to the changes in
  12581. DownloadEngine.
  12582. (setWriteCheckSocket): Updated according to the changes in
  12583. DownloadEngine.
  12584. * release 0.7.1
  12585. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12586. To handle the case where some BitTorrent tracker requires all letters
  12587. except for [A-Za-z0-9] is URL encoded.
  12588. * src/Util.h
  12589. (torrentUrlencode): New function.
  12590. * src/Util.cc
  12591. (ctype.h): Included.
  12592. (torrentUrlencode): New function.
  12593. * src/TrackerWatcherCommand.cc
  12594. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  12595. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12596. To add asynchronous DNS support(libares):
  12597. * src/AbstractCommand.h
  12598. (setNameResolverCheck): New function.
  12599. (disableNameResolverCheck): New function
  12600. (resolveHostname): New function.
  12601. * src/AbstractCommand.cc
  12602. (setNameResolverCheck): New function.
  12603. (disableNameResolverCheck): New function
  12604. (resolveHostname): New function.
  12605. * src/FtpInitiateConnectionCommand.h
  12606. (nameResolver): New function.
  12607. * src/FtpInitiateConnectionCommand.cc
  12608. (Util.h): Included.
  12609. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  12610. disableWriteCheckSocket.
  12611. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  12612. (executeInternal): Added async DNS support.
  12613. * src/HttpInitiateConnectionCommand.h
  12614. (nameResolver): New function.
  12615. * src/HttpInitiateConnectionCommand.cc
  12616. (DlRetryEx.h): Included.
  12617. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  12618. disableWriteCheckSocket.
  12619. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  12620. (executeInternal): Added async DNS support.
  12621. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  12622. by extern "C" declaration.
  12623. * src/NameResolver.cc: New class.
  12624. * src/Util.h:
  12625. (isNumberAndDotsNotation): New function
  12626. * src/Util.cc
  12627. (isNumberAndDotsNotation): New function.
  12628. * src/DownloadEngine.h
  12629. (NameResolver.h): Included.
  12630. (NameResolverEntry): New class.
  12631. (NameResolverEntries): New type definition.
  12632. (addNameResolverCheck): New function.
  12633. (deleteNameResolverCheck): New function.
  12634. * src/DownloadEngine.cc
  12635. (run): Initialize cp with 0.
  12636. (SetDescriptor::operator()): Added for NameResolverEntry.
  12637. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  12638. (waitData): Check nameResolver entries.
  12639. (updateFdSet): Update fds in nameResolver entries.
  12640. (addNameResolverCheck): New function.
  12641. (deleteNameResolverCheck): new function.
  12642. * src/PeerInteractionCommand.cc
  12643. (executeInternal): Fixed wrong socket handling.
  12644. * src/main.cc
  12645. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  12646. * src/Util.cc
  12647. (fileChecksum): Removed the call to ctx.digestReset().
  12648. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12649. * po/ru.po: Azamat sent me Russian translation.
  12650. * src/FtpNegotiateCommand.cc
  12651. (recvGreeting): Call disableWriteCheckSocket just after
  12652. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  12653. (recvRetr): Recognized status code 125 as a acceptable response code.
  12654. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  12655. case-insesitive filesystem(BUG#1531057).
  12656. * src/Time.h: Renamed as TimeA2.h.
  12657. * src/Time.cc: Renamed as TimeA2.cc.
  12658. * src/TimeA2.h: New class.
  12659. * src/TimeA2.cc: New class.
  12660. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  12661. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  12662. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  12663. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  12664. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  12665. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  12666. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  12667. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  12668. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  12669. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  12670. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  12671. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  12672. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  12673. * release 0.7.0
  12674. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12675. * src/PeerChokeCommand.h
  12676. (PeerChokeCommand): Rearranged the arguments.
  12677. * src/PeerChokeCommand.cc
  12678. (PeerChokeCommand): Rearranged the arguments.
  12679. * src/MetalinkEntry.h
  12680. (Checksum.h): Included.
  12681. (md5): Removed.
  12682. (sha1): Removed.
  12683. (checksum): New variable.
  12684. (operator=): Updated.
  12685. (check): Removed.
  12686. * src/prefs.h
  12687. (PREF_LOWEST_SPEED_LIMIT): New definition.
  12688. (PREF_FOLLOW_TORRENT): New definition.
  12689. (PREF_SELECT_FILE): New definition.
  12690. (PREF_FOLLOW_METALINK): New definition.
  12691. * src/MetalinkResource.h
  12692. (TYPE_HTTPS): Added to enum TYPE.
  12693. * src/TorrentMan.cc
  12694. (~TorrentMan): Rewritten.
  12695. * src/MultiDiskWriter.cc
  12696. (MultiDiskAdaptor): Updated according to the changes in
  12697. MessageDigestContext.
  12698. (~MultiDiskAdaptor): Updated according to the changes in
  12699. MessageDigestContext.
  12700. (hashUpdate): Updated according to the changes in MessageDigestContext.
  12701. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12702. * src/Util.h
  12703. (fileChecksum): Updated according to the changes in
  12704. MessageDigestContext.
  12705. * src/Util.cc
  12706. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12707. (fileChecksum): Updated according to the changes in
  12708. MessageDigestContext.
  12709. * src/messageDigest.h: Rewritten.
  12710. * src/MetalinkEntry.cc
  12711. (check): Removed.
  12712. (Supported): Updated.
  12713. (dropUnsupportedResource): Fixed a memory leak.
  12714. * src/ShaVisitor.cc
  12715. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  12716. (~ShaVisitor): Updated according to the changes in
  12717. MessageDigestContext.
  12718. (visit): Updated according to the changes in MessageDigestContext.
  12719. * src/main.cc
  12720. (main): Rewritten the portion of download loop. --lowest-speed-limit
  12721. command-line option added.
  12722. * src/DownloadEngine.h
  12723. (SocketEntry): New class.
  12724. (SocketEntries): New definition.
  12725. (PairFind): Removed.
  12726. (SockCmdMap): Removed.
  12727. * src/DownloadEngine.cc
  12728. (DownloadEngine): Rewritten.
  12729. (~DownloadEngine): Rewritten.
  12730. (run): Renamed activeCommandUuids as activeUuids.
  12731. (SetDescriptor): Rewritten.
  12732. (AccumulateActiveCommandUuid): Removed.
  12733. (AccumulateActiveUuid): New function object.
  12734. (waitData): Rewritten.
  12735. (updateFdSet): Rewritten.
  12736. (addSocket): Rewritten.
  12737. (deleteSocket): Rewritten.
  12738. (addSocketForReadCheck): Rewritten.
  12739. (deleteSocketForReadCheck): Rewritten.
  12740. (addSocketForWriteCheck): Rewritten.
  12741. (deleteSocketForWriteCheck): Rewritten.
  12742. * src/Xml2MetalinkProcessor.cc
  12743. (getEntry): Rewritten the portion of MetalinkEntry creation.
  12744. * src/DownloadCommand.cc
  12745. (executeInternal): Added the check routine for lowest speed limit.
  12746. * src/AbstractDiskWriter.cc
  12747. (AbstractDiskWriter): Updated according to the changes in
  12748. MessageDigestContext.
  12749. (~AbstractDiskWriter): Updated according to the changes in
  12750. MessageDigestContext.
  12751. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12752. * src/RequestInfo.h: New class.
  12753. * src/UrlRequestInfo.h: New class.
  12754. * src/UrlRequestInfo.cc: New class.
  12755. * src/TorrentRequestInfo.h: New class.
  12756. * src/TorrentRequestInfo.cc: New class.
  12757. * src/MetalinkRequestInfo.h: New class.
  12758. * src/MetalinkRequestInfo.cc: New class.
  12759. * src/Checksum.h: New class.
  12760. * src/DownloadEngineFactory.h: New class.
  12761. * src/DownloadEngineFactory.cc: New class.
  12762. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12763. * src/Option.h
  12764. (getAsBool): New function.
  12765. * src/Option.cc
  12766. (prefs.h): Included.
  12767. (defined): 0-length value is now recognized as undefined.
  12768. (getAsInt): Rewritten.
  12769. (getAsLLInt): Rewritten.
  12770. (getAsBool): New function.
  12771. * src/FeatureConfig.h: Rewritten.
  12772. * src/FeatureConfig.cc: Rewritten.
  12773. * src/prefs.h
  12774. (PREF_STDOUT_LOG): New definition.
  12775. (PREF_LOG): New definition.
  12776. (PREF_DIR): New definition.
  12777. (PREF_OUT): New definition.
  12778. (PREF_SPLIT): New definition.
  12779. (PREF_DAEMON): New definition.
  12780. (PREF_REFERER): New definition.
  12781. (PREF_TORRENT_FILE): New definition.
  12782. (PREF_LISTEN_PORT): New definition.
  12783. (PREF_METALINK_FILE): New definition.
  12784. (PREF_METALINK_VERSION): New definition.
  12785. (PREF_METALINK_LANGUAGE): New definition.
  12786. (PREF_METALINK_OS): New definition.
  12787. (PREF_METALINK_SERVERS): New definition.
  12788. * src/main.cc
  12789. (main): Following command-line parameters are now put into Option
  12790. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  12791. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  12792. metalinkLanguage, metalinkOs, metalinkServers
  12793. To fix the bug that aria2 can not handle http response header properly.
  12794. * src/HttpHeader.cc
  12795. (put): Made name lowercased.
  12796. (defined): Made name lowercased.
  12797. (getFirst): Made name lowercased.
  12798. (get): Made name lowercased.
  12799. (getFirstAsInt): Rewritten.
  12800. (getFirstAsLLInt): Rewritten.
  12801. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12802. * src/TorrentMan.h:
  12803. (advertisePiece): Updated doc.
  12804. (getAdvertisedPieceIndexes): Updated doc.
  12805. (removeAdvertisedPiece); New function.
  12806. * src/TorrentMan.cc
  12807. (FindElapsedHave): New function object.
  12808. (removeAdvertisedPiece): New function.
  12809. * src/HaveEraseCommand.h: New class.
  12810. * src/HaveEraseCommand.cc: New class.
  12811. * src/FeatureConfig.h: New class.
  12812. * src/FeatureConfig.cc: New class.
  12813. * src/Request.h
  12814. (defaultPorts): Removed.
  12815. * src/Request.cc
  12816. (FeatureConfig.h): Included.
  12817. (Request): Removed the statements related to defaultPorts.
  12818. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  12819. A default port number is now retrieved from FeatureConfig.
  12820. * src/main.cc
  12821. (HaveEraseCommand.h): Included.
  12822. (showVersion): Added the output of feature list.
  12823. (main): Added HaveEraseCommand to command queue in BitTorrent
  12824. downloading.
  12825. * src/PeerInteractionCommand.h
  12826. (chokeCheckPoint): Commented out.
  12827. (periodicExecPoint): New variable.
  12828. * src/PeerInteractionCommand.cc
  12829. (executeInternal): Following methods are now called in at least every
  12830. 0.5 seconds to reduce CPU usage:
  12831. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  12832. checkHave(), sendKeepAlive().
  12833. (checkLongTimePeerChoking): Commented out.
  12834. * src/BitfieldMan.h
  12835. (getNthBitIndex): Changed the method signature.
  12836. (getMissingIndexRandomly): Changed the method signature.
  12837. * src/BitfieldMan.cc
  12838. (getNthBitIndex): Rewritten
  12839. (getMissingIndexRandomly): Rewritten.
  12840. (hasMissingPiece): Rewritten.
  12841. (getMissingIndex): Refactored.
  12842. (getMissingUnusedIndex); Refactored.
  12843. (getMissingIndex): Refactored.
  12844. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12845. * src/PeerMessage.h
  12846. (Piece.h): Included.
  12847. (SharedHandle.h): Included.
  12848. (invalidate): New variable.
  12849. (uploading): New variable.
  12850. (isInvalidate): New function.
  12851. (isUploading): New function.
  12852. (onPush): New function.
  12853. (onChoked): New function.
  12854. (onCanceled): New function.
  12855. (onAbortPiece): New function.
  12856. (PeerMessageHandle): New type definition.
  12857. * src/PeerMessage.cc
  12858. (PeerMessage): Added the initialization for invalidate and uploading.
  12859. * src/CancelMessage.h
  12860. (CancelMessage): Rewritten.
  12861. * src/RejectMessage.h
  12862. (RejectMessage): Rewritten.
  12863. * src/Metalinker.h
  12864. (operator=): Defined.
  12865. * src/MetaEntry.h
  12866. (operator=): Defined.
  12867. * src/MetalinkResource.h
  12868. (operator=): Defined.
  12869. * src/AllowedFastMessage.h
  12870. (AllowedFastMessage): Rewritten.
  12871. * src/HandshakeMessage.h
  12872. (HandshakeMessage): New function(overload).
  12873. * src/HandshakeMessage.cc
  12874. (HandshakeMessage): Rewritten.
  12875. (init): New function.
  12876. * src/HaveMessage.h
  12877. (HaveMessage): Rewritten.
  12878. * src/Time.h
  12879. (operator=): Defined the function body here.
  12880. * src/Time.cc
  12881. (operator=): Removed.
  12882. * src/SocketCore.h
  12883. (operator==): Defined here.
  12884. (operator!=): Defined here.
  12885. (operator<): Defined here.
  12886. * src/SocketCore.cc
  12887. (operator==): Removed.
  12888. (operator<): Removed.
  12889. * src/BitfieldMan.h
  12890. (operator=): Defined the function body here.
  12891. * src/BitfieldMan.cc
  12892. (operator=): Removed.
  12893. * src/TorrentMan.h
  12894. (deleteErrorPeer): Removed.
  12895. (deleteUnusedPeer); New function.
  12896. * src/TorrentMan.cc
  12897. (addPeer): Call deleteUnusedPeer.
  12898. (deleteErrorPeer): Removed.
  12899. (deleteUnusedPeer): New function.
  12900. * src/PeerAbstractCommand.h
  12901. (setNoCheck): New function.
  12902. (noCheck): New variable.
  12903. * src/PeerAbstractCommand.cc
  12904. (PeerAbstractCommand): Added the initialization of noCheck.
  12905. (execute): Added a check for noCheck.
  12906. (setNoCheck): New function.
  12907. * src/Util.h
  12908. (stdio.h): Included.
  12909. * src/Util.cc
  12910. (unistd.h): Included.
  12911. * src/DefaultDiskWriter.cc
  12912. (unistd.h): Included.
  12913. * src/Peer.h
  12914. (operator==): Defined the function body here.
  12915. (operator!=): Defined the function body here.
  12916. * src/Peer.cc
  12917. (operator==): Removed.
  12918. (operator!=): Removed.
  12919. * src/Piece.h
  12920. (Piece): Defined the function body here(copy constructor).
  12921. (operator=): Defined the function body here.
  12922. (operator==): Defined the function body here.
  12923. * src/Piece.cc
  12924. (Piece): Removed(copy constructor).
  12925. (operator=): Removed.
  12926. (operator==): Removed.
  12927. * src/PeerMessageUtil.h
  12928. (ChokeMessage.h): Removed.
  12929. (UnchokeMessage.h): Removed.
  12930. (InterestedMessage.h): Removed.
  12931. (NotInterestedMessage.h): Removed.
  12932. (HaveMessage.h): Removed.
  12933. (BitfieldMessage.h): Removed.
  12934. (RequestMessage.h): Removed.
  12935. (CancelMessage.h): Removed.
  12936. (PieceMessage.h): Removed.
  12937. (HandshakeMessage.h): Removed.
  12938. (KeepAliveMessage.h): Removed.
  12939. (PortMessage.h): Removed.
  12940. (HaveAllMessage.h): Removed.
  12941. (HaveNoneMessage.h): Removed.
  12942. (PeerConnection.h): Removed.
  12943. (HandshakeMessage.h): Included.
  12944. * src/BitfieldMessage.h
  12945. (init): New function.
  12946. (BitfieldMessage): Rewritten.
  12947. (BitfieldMessage): New function(overload).
  12948. * src/RequestSlot.h
  12949. (operator=): Defined the function body here.
  12950. (operator==): Defined the function body here.
  12951. * src/RequestSlot.cc
  12952. (operator=): Removed.
  12953. (operator==): Removed.
  12954. To remove the dependency on the PeerMessage subclass from
  12955. PeerInteraction:
  12956. * src/PeerMessageFactory.h: New class.
  12957. * src/PeerMessageFactory.cc: New class.
  12958. * src/SimplePeerMessage.cc
  12959. (send): If invalidate is true then do nothing.
  12960. * src/PeerInteractionCommand.cc
  12961. (HandshakeMessage.h): Included.
  12962. (KeepAliveMessage.h): Included.
  12963. (ChokeMessage.h): Included.
  12964. (UnchokeMessage.h): Included.
  12965. (HaveMessage.h): Included.
  12966. (executeInternal): Call setNoCheck().
  12967. Removed setWriteCheckSocket(socket).
  12968. * src/PeerInteraction.h
  12969. (ChokeMessage.h): Removed.
  12970. (UnchokeMessage.h): Removed.
  12971. (InterestedMessage.h): Removed.
  12972. (NotInterestedMessage.h): Removed.
  12973. (HaveMessage.h): Removed.
  12974. (BitfieldMessage.h): Removed.
  12975. (RequestMessage.h): Removed.
  12976. (CancelMessage.h): Removed.
  12977. (PieceMessage.h): Removed.
  12978. (HandshakeMessage.h): Removed.
  12979. (KeepAliveMessage.h): Removed.
  12980. (PortMessage.h): Removed.
  12981. (HaveAllMessage.h): Removed.
  12982. (HaveNoneMessage.h): Removed.
  12983. (RejectMessage.h): Removed.
  12984. (AllowedFastMessage.h): Removed.
  12985. (SuggestPieceMessage.h): Removed.
  12986. (PeerMessageFactory.h): Included.
  12987. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  12988. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  12989. (PeerMessageFactory): New variable.
  12990. (createPeerMessage): Removed.
  12991. (createHandshakeMessage): Removed.
  12992. (setPeerMessageCommonProperty): Removed.
  12993. (addRequestSlot): New function.
  12994. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  12995. (getPeerMessageFactory): New function.
  12996. (createRequestMessage): Removed.
  12997. (createCancelMessage): Removed.
  12998. (createPieceMessage): Removed.
  12999. (createHaveMessage): Removed.
  13000. (createChokeMessage): Removed.
  13001. (createUnchokeMessage): Removed.
  13002. (createInterestedMessage): Removed.
  13003. (createNotInterestedMessage): Removed.
  13004. (createBitfieldMessage): Removed.
  13005. (createKeepAliveMessage): Removed.
  13006. (createHaveAllMessage): Removed.
  13007. (createHaveNoneMessage): Removed.
  13008. (createRejectMessage): Removed.
  13009. (createAllowedFastMessage): Removed.
  13010. * src/PeerInteraction.cc
  13011. (PeerInteraction): Allocate PeerMessageFactory here.
  13012. (~PeerInteraction): Deallocate PeerMessageFactory here.
  13013. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  13014. PieceMessage::ID.
  13015. (addMessage): Simplified by using PeerMessage::onPush().
  13016. (addRequestSlot): New function.
  13017. (rejectAllPieceMessageInQueue): Simplified by using
  13018. PeerMessage::onChoked().
  13019. (rejectPieceMessageInQueue): Simplified by using
  13020. PeerMessage::onCanceled().
  13021. (abortPiece): Simplified by using PeerMessage::abortPiece().
  13022. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13023. (createHandshakeMessage): Removed.
  13024. (createPeerMessage): Removed.
  13025. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  13026. (setPeerMessageCommonProperty): Removed.
  13027. (createRequestMessage): Removed.
  13028. (createCancelMessage): Removed.
  13029. (createPieceMessage): Removed.
  13030. (createHaveMessage): Removed.
  13031. (createChokeMessage): Removed.
  13032. (createUnchokeMessage): Removed.
  13033. (createInterestedMessage): Removed.
  13034. (createNotInterestedMessage): Removed.
  13035. (createBitfieldMessage): Removed.
  13036. (createKeepAliveMessage): Removed.
  13037. (createHaveAllMessage): Removed.
  13038. (createHaveNoneMessage): Removed.
  13039. (createRejectMessage): Removed.
  13040. (createAllowedFastMessage): Removed.
  13041. * src/PieceMessage.h
  13042. (createRejectMessage): New function.
  13043. (PieceMessage): Rewritten.
  13044. (onChoked): New function.
  13045. (onCanceled): New function.
  13046. * src/PieceMessage.cc
  13047. (send): If invalidate is true then do nothing, just return.
  13048. (createRejectMessage): New function.
  13049. (onChoked): New function.
  13050. (onCanceled): New function.
  13051. * src/RequestMessage.h
  13052. (RequestMessage): Rewritten.
  13053. (onPush): New function.
  13054. (onAbortPiece): New function.
  13055. * src/RequestMessage.cc
  13056. (onPush): New function.
  13057. (onAbortPiece): New function.
  13058. Update fd_set when a socket is added or deleted in order to improve
  13059. performance:
  13060. * src/DownloadEngine.h
  13061. (rfdset): New variable.
  13062. (wfdset): New variable.
  13063. (updateFdSet): New function.
  13064. * src/DownloadEngine.cc
  13065. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  13066. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  13067. (waitData): Copy rfdset and wfdset.
  13068. (updateFdSet): New function.
  13069. (addSocket): Call updateFdSet.
  13070. (deleteSocket): Call updateFdSet.
  13071. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13072. To add the support for Metalink3.0 backward compatible links:
  13073. * src/Request.h
  13074. (SAFE_CHARS): Added '#'.
  13075. (METALINK_MARK): New definition.
  13076. * src/Request.cc
  13077. (parseUrl): Added the support for Metalink3.0 backward compatible
  13078. links.
  13079. etc
  13080. * src/PeerInteraction.cc
  13081. (MsgPushBack): Removed.
  13082. (sendMessages): Use STL copy and back_inserter.
  13083. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  13084. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  13085. * src/TorrentMan.h
  13086. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  13087. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13088. * src/SharedHandle.h: New class.
  13089. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  13090. * src/HttpResponseCommand.h
  13091. (HttpResponseCommand): Wrapped Socket.
  13092. * src/SocketCore.h
  13093. (operator==): New function.
  13094. (operator!=): New function.
  13095. (operator<): New function.
  13096. (getSockfd): New function.
  13097. (isOpen): New function.
  13098. (writeData): New function.
  13099. * src/SocketCore.cc
  13100. (operator==): New function.
  13101. (operator!=): New function.
  13102. (operator<): New function.
  13103. * src/AbstractCommand.h
  13104. (socket): Changed its type to SocketHandle.
  13105. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13106. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13107. (disableReadCheckSocket): New function.
  13108. (disableWriteCheckSocket): New function.
  13109. (readCheckTarget): Changed its type to SocketHandle.
  13110. (writeCheckTarget): Changed its type to SocketHandle.
  13111. (AbstractCommand): Replaced Socket with SocketHandle.
  13112. * src/AbstractCommand.cc
  13113. (AbstractCommand): Replaced Socket with SocketHandle.
  13114. (~AbstractCommand): Removed the deallocation for Socket object.
  13115. (disableReadCheckSocket): New function.
  13116. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13117. (disableWriteCheckSocket): New function.
  13118. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13119. * src/HttpDownloadCommand.cc
  13120. (DownloadCommand): Replaced Socket with SocketHandle.
  13121. * src/PeerAbstractCommand.h
  13122. (socket): Changed its type to SocketHandle.
  13123. (peer): Changed its type to PeerHandle.
  13124. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13125. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13126. (disableReadCheckSocket): New function.
  13127. (disableWriteCheckSocket): New function.
  13128. (readCheckTarget): Changed its type to SocketHandle.
  13129. (writeCheckTarget): Changed its type to SocketHandle.
  13130. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13131. Replaced Peer with PeerHandle.
  13132. * src/HttpRequestCommand.cc
  13133. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13134. Use disableReadCheckSocket.
  13135. * src/PeerInitiateConnectionCommand.h
  13136. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13137. * src/PeerChokeCommand.cc
  13138. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  13139. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  13140. (execute): Use PeerHandle.
  13141. * src/PeerConnection.h
  13142. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  13143. (socket): Changed its type to SocketHandle.
  13144. (PeerConnection): Replaced Socket with SocketHandle.
  13145. * src/PeerConnection.cc
  13146. (PeerConnection): Replaced Socket with SocketHandle.
  13147. * src/PeerInteractionCommand.h
  13148. (PeerInteractionCommand): Replaced socket with SocketHandle.
  13149. Replaced Peer with PeerHandle.
  13150. * src/PeerInteractionCommand.cc
  13151. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  13152. Replaced Peer with PeerHandle.
  13153. (executeInternal): Use disableWriteCheckSocket.
  13154. Use HandshakeMessageHandle.
  13155. (receiveMessages): Use PeerMessageHandle.
  13156. (prepareForNextPeer): Use PeerHandle.
  13157. * src/HttpProxyRequestCommand.h
  13158. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13159. * src/HttpResponseCommand.cc
  13160. (HttpResponseCommand): Replaced Socket with SocketHandle.
  13161. * src/TorrentMan.cc
  13162. (nullPeer): Added external reference.
  13163. (~TorrentMan): Removed the deallocation of the elements of peers.
  13164. (addPeer): Rewritten.
  13165. (isPeerAvailable): Use nullPeer.
  13166. (deleteOldpeers): Replaced with deleteErrorPeer.
  13167. (deleteErrorPeer): New function.
  13168. (getPeer): Use PeerHandle and nullPeer.
  13169. (hasMissingPiece): Replaced Peer with PeerHandle.
  13170. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13171. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13172. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13173. (getMissingPiece): Replaced Peer with PeerHandle.
  13174. * src/FtpNegotiateCommand.cc
  13175. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  13176. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  13177. (recvGreeting): Use disableWriteCheckSocket.
  13178. (recvPasv): Removed the allocation of Socket.
  13179. Use disableReadCheckSocket.
  13180. (sendRestPasv): Use disableWriteCheckSocket.
  13181. (recvRetr): Changed assertion.
  13182. * src/PeerInteraction.h
  13183. (SharedHandle.h): Included SharedHandle.h.
  13184. (PeerMessageHandle): New type definition.
  13185. (HandshakeMessageHandle): New type definition.
  13186. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  13187. (peer): Changed its type to PeerHandle.
  13188. (createHandshakeMessage): Replaced HandshakeMessage with
  13189. HandshakeMessageHandle.
  13190. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  13191. (PeerInteraction): Replaced Peer with PeerHandle.
  13192. Replaced Socket with SocketHandle.
  13193. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13194. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13195. (receiveHandshake): Replaced HandshakeMessage with
  13196. HandshakeMessageHandle.
  13197. * src/PeerInteraction.cc
  13198. (PeerInteraction): Replaced Peer with PeerHandle.
  13199. Replaced Socket with SocketHandle.
  13200. (~PeerInteraction): Removed the deallocation of the elements of
  13201. messageQueue.
  13202. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  13203. (isSendingMessageInProgress): Replaced PeerMessage with
  13204. PeerMessageHandle.
  13205. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  13206. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13207. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  13208. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  13209. (abortPiece): Use PeerMessageHandle.
  13210. (receiveHandshake): Replaced HandshakeMessage with
  13211. HandshakeMessageHandle. Removed try-catch block.
  13212. (createHandshakeMessage): Replaced HandshakeMessage with
  13213. HandshakeMessageHandle.
  13214. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13215. Removed try-catch block.
  13216. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  13217. * src/HttpProxyResponseCommand.cc
  13218. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13219. * src/FtpTunnelResponseCommand.h
  13220. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13221. * src/HttpConnection.cc
  13222. (HttpConnection): Replaced Socket with SocketHandle.
  13223. * src/PeerAbstractCommand.cc
  13224. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13225. (~PeerAbstractCommand): Removed the deallocation of socket.
  13226. Use disableReadCheckSocket, disableWriteCheckSocket.
  13227. (disableReadCheckSocket): New function.
  13228. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13229. (disableWriteCheckSocket): New function.
  13230. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13231. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  13232. * src/FtpTunnelRequestCommand.cc
  13233. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13234. (~FtpTunnelRequestCommand): Corrected indentation.
  13235. * src/DownloadCommand.h
  13236. (DownloadCommand): Replaced Socket with SocketHandle.
  13237. * src/PeerListenCommand.cc
  13238. (PeerListenCommand): Removed the initialization of socket.
  13239. (~PeerListenCommand): Removed the deallocation of socket.
  13240. (bindPort): Use SocketHandle.
  13241. (execute): Use SocketHandle and PeerHandle.
  13242. * src/FtpDowndloadCommand.cc
  13243. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13244. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  13245. * src/main.cc
  13246. (main): Corrected indentation.
  13247. * src/HttpInitiateConnectionCommand.cc
  13248. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  13249. (executeInternal): Removed the allocation of socket.
  13250. * src/HttpRequestCommand.h
  13251. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13252. * src/FtpNegotiationCommand.h
  13253. (dataSocket): Changed its type to SocketHandle.
  13254. (serverSocket): Changed its type to SocketHandle.
  13255. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  13256. * src/TorrentMan.h
  13257. (MAX_PEER_UPDATE): Removed.
  13258. (MAX_PEERS): New definition.
  13259. (Peers): The element is now of type PeerHandle.
  13260. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  13261. (getPeer): Replaced Peer with PeerHandle.
  13262. (deleteOldErrorPeers): Removed.
  13263. (deleteErrorPeer): New function.
  13264. (hasMissingPiece): Replaced Peer with PeerHandle.
  13265. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13266. (getMissingPiece): Replaced Peer with PeerHandle.
  13267. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13268. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13269. (addActivePeer): Replaced Peer with PeerHandle.
  13270. (deleteActivePeer): Replaced Peer with PeerHandle.
  13271. Added a check for the return value of find.
  13272. * src/FtpTunnelResponseCommand.cc
  13273. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13274. * src/FtpInitiateConnectionCommand.cc
  13275. (executeInternal): Removed the allocation of socket.
  13276. * src/DownloadEngine.h
  13277. (Sockets): An element is now of type SocketHandle.
  13278. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  13279. (CommandUuids): New type definition.
  13280. (rsockets): Changed its type to SockCmdMap.
  13281. (wsockets): Changed its type to SockCmdMap.
  13282. (addSocket): Rewritten.
  13283. (deleteSocket): Rewritten.
  13284. (addSocketForReadCheck): Rewritten.
  13285. (deleteSocketForReadCheck): Rewritten.
  13286. (addSocketForWriteCheck): Rewritten.
  13287. (deleteSocketForWriteCheck): Rewritten.
  13288. (PairFind): New template class.
  13289. * src/HttpDownloadCommand.h
  13290. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  13291. * src/FtpConnection.cc
  13292. (FtpConnection): Replaced Socket with SocketHandle.
  13293. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  13294. block.
  13295. * src/InitiateConnectionCommandFactory.cc
  13296. (DlAbortEx.h): Included DlAbortEx.h.
  13297. (createInitiateConnectionCommand): Throw exception if the protocol of
  13298. requested URI is not supported.
  13299. * src/Peer.cc
  13300. (nullPeer): Changed its type to PeerHandle.
  13301. (operator==): New function.
  13302. (operator!=): New function.
  13303. * src/Peer.h
  13304. (SharedHandle.h): Included SharedHandle.h.
  13305. (operator==): New function.
  13306. (operator!=): New function.
  13307. (Peer): Added the default constructor.
  13308. Use resetStatus() to initialize member variables.
  13309. (nullPeer): Removed.
  13310. * src/TrackerUpdateCommand.cc
  13311. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  13312. with MIN_PEERS.
  13313. * src/PeerListenCommand.h
  13314. (socket): Changed its type to SocketHandle.
  13315. * src/Command.h
  13316. (CommandUuid): New type definition.
  13317. (uuid): New variable.
  13318. (uuidGen): New variable.
  13319. (Command): Added the initialization of uuid.
  13320. (getUuid): New function.
  13321. * src/Socket.h
  13322. (Socket): Removed.
  13323. (SocketHandle): New type definition.
  13324. * src/DownloadEngine.h
  13325. (FindCommand): New function object.
  13326. (run): The portion of socket check was rewritten.
  13327. (SetDescriptor): New function object.
  13328. (AccumulateActiveCommandUuid): New function object.
  13329. (waitData): Rewritten.
  13330. (addSocket): Rewritten.
  13331. (deleteSocket): Rewritten.
  13332. (addSocketForReadCheck): Rewritten.
  13333. (addSocketForWriteCheck): Rewritten.
  13334. (deleteSocketForReadCheck): Rewritten.
  13335. (deleteSocketForWriteCheck): Rewritten.
  13336. * src/HttpProxyResponseCommand.h
  13337. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  13338. * src/HttpConnection.h
  13339. (socket): Changed its type to SocketHandle.
  13340. (HttpConnection): Replaced Socket with SocketHandle.
  13341. * src/PeerInitiateConnectionCommand.cc
  13342. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13343. (executeInternal): Removed the allocation of socket.
  13344. (prepareForNextPeer): Use PeerHandle.
  13345. * src/PeerMessage.h
  13346. (peer): Changed its type to PeerHandle.
  13347. (getPeer): Replaced Peer with PeerHandle.
  13348. (setPeer): Replaced Peer with PeerHandle.
  13349. * src/DownloadCommand.cc
  13350. (DownloadCommand): Replaced Socket with SocketHandle.
  13351. * src/FtpConnection.h
  13352. (socket): Changed its type to SocketHandle.
  13353. (FtpConnection): Replaced Socket with SocketHandle.
  13354. (sendPort); Replaced Socket with SocketHandle.
  13355. * src/FtpDowndloadCommand.h
  13356. (ctrlSocket): Changed its type to SocketHandle.
  13357. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13358. * src/HttpProxyRequestCommand.cc
  13359. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13360. * src/FtpTunnelRequestCommand.h
  13361. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13362. etc
  13363. * src/PeerChokeCommand.h
  13364. (setAllPeerChoked): Removed.
  13365. (setAllPeerResetDelta): Removed.
  13366. * src/PeerChokeCommand.cc
  13367. (setAllPeerChoked): Removed.
  13368. (ChokePeer): New function object.
  13369. (setAllPeerResetDelta): Removed.
  13370. (ResetDelta): New function object.
  13371. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  13372. (execute): Show download speed when the local node is a seeder.
  13373. setAllPeerChoked and setAllPeerResetDelta were rewritten
  13374. using STL.
  13375. * src/TrackerWatcherCommand.h
  13376. (MIN_PEERS): Removed.
  13377. * src/TorrentMan.cc
  13378. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  13379. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13380. To fix the bug that .aria2 file is not saved if downloading is stopped
  13381. by the errors:it results that aria2 can not resume downloading:
  13382. * src/main.cc
  13383. (normalDownload): Added the call to save().
  13384. (main): Added the deletion of the elements in 'reserved'.
  13385. To fix log:
  13386. * src/PeerInteraction.cc
  13387. (receiveHandshake): Fixed log.
  13388. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13389. To improve download performance in BitTorrent:
  13390. * src/TorrentMan.cc
  13391. (getPeer): Check the number of connections. Return nullPeer if
  13392. it is greater than MAX_PEER_UPDATE.
  13393. This code was originally here, but was removed in 0.5.1.
  13394. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13395. To improve the conditional compilation:
  13396. * src/MultiDiskWriter.h:
  13397. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13398. * src/MultiDiskWriter.cc:
  13399. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13400. * src/Util.h:
  13401. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13402. Added ENABLE_BITTORRENT around computeFastSet().
  13403. * src/Util.cc:
  13404. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13405. Added ENABLE_BITTORRENT around computeFastSet().
  13406. * src/messageDigest.h:
  13407. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  13408. * src/ShaVisitor.h:
  13409. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13410. * src/ShaVisitor.cc:
  13411. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13412. * src/main.cc:
  13413. Added ENABLE_BITTORRENT around includes and blocks related to
  13414. BitTorrent.
  13415. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  13416. digest support is not available.
  13417. * src/AbstractDiskWriter.h:
  13418. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13419. * src/AbstractDiskWriter.cc:
  13420. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13421. * src/MetalinkEntry.cc
  13422. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  13423. support is not available.
  13424. To add command-line options for Metalink:
  13425. * src/main.cc:
  13426. Added metalink-version, metalink-language, metalink-os,
  13427. follow-metalink.
  13428. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  13429. * src/main.cc: Use these definition.
  13430. * Release 0.6.0
  13431. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13432. To add Metalink support(http/ftp only):
  13433. * src/AbstractCommand.h
  13434. (tryReserved): New function.
  13435. * src/AbstractCommand.cc
  13436. (execute): Call tryReserved().
  13437. (tryReserved): New function.
  13438. * src/Request.h
  13439. (Requests): New type definition.
  13440. * src/SegmentMan.h
  13441. (reserved): New variable.
  13442. * src/Util.h
  13443. (fileChecksum): New function.
  13444. (toUpper): New function.
  13445. (toLower): New function.
  13446. * src/Util.cc
  13447. (messageDigest.h): Included.
  13448. (trim): Trim \r\n\t.
  13449. (fileChecksum): New function.
  13450. (toUpper): New function.
  13451. (toLower): New function.
  13452. * src/main.cc
  13453. (normalDownload): New function.
  13454. (main): Added 2 command-line options: metalink-file,
  13455. metalink-connection. Their usage has not been written yet.
  13456. * src/MetalinkProcessor.h: New class.
  13457. * src/Xml2MetalinkProcessor.h: New class.
  13458. * src/Xml2MetalinkProcessor.cc: New class.
  13459. * src/MetalinkEntry.h: New class.
  13460. * src/MetalinkEntry.cc: New class.
  13461. * src/MetalinkResource.h: New class.
  13462. * src/MetalinkResource.cc: New class.
  13463. To add md5 message digest checking:
  13464. * src/messageDigest.h: Rewritten.
  13465. * src/MultiDiskWriter.cc: Updated according to the changes in
  13466. messageDigest.h.
  13467. * src/ShaVisitor.cc: Updated according to the changes in
  13468. messageDigest.h.
  13469. * src/Util.cc: Updated according to the changes in messageDigest.h.
  13470. * src/AbstractDiskWriter.cc: Updated according to the changes in
  13471. messageDigest.h.
  13472. To fix a bug that causes segfault when the payload length in peer
  13473. message is less than 0:
  13474. * src/PeerConnection.cc:
  13475. (receiveMessage): Fixed the bug.
  13476. * src/PeerMessageUtil.cc
  13477. (checkLength): Throw an exception if length is less than or equals to
  13478. 0.
  13479. To add new interfaces to Base64 encoding/decoding:
  13480. * src/Base64.h
  13481. (part_encode): Changed the method signature.
  13482. (encode): New function(overload).
  13483. (decode): New function(overload).
  13484. * src/Base64.cc
  13485. (part_encode): Rewritten.
  13486. (encode): Rewritten.
  13487. (encode): New function(overload).
  13488. To prevent a peer to download same piece if there is an error in
  13489. checksum:
  13490. * src/PieceMessage.cc
  13491. (receivedAction): Call peerInteraction->abortPiece().
  13492. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13493. To fix the bug that causes same have message is sent many times to
  13494. a single peer.
  13495. * src/Time.cc
  13496. (isNewer): Use Util::difftv().
  13497. * src/Util.cc
  13498. (difftv): Added a cast to (long long int).
  13499. * src/TorrentMan.cc
  13500. (advertisePiece): Use push_front.
  13501. (getAdvertisedPieceIndexes): A performance improvement was made.
  13502. To fix the bug that sends tracker requests without a sleep interval
  13503. when the number of connections is less than 15.
  13504. * src/TrackerWatcherCommand.cc
  13505. (execute): Now the number of connections is not a factor to decide
  13506. whether or not a tracker request should be sent or not.
  13507. * src/Time.h
  13508. (setTimeInSec): New function.
  13509. * src/Time.cc
  13510. (setTimeInSec): New function.
  13511. etc.
  13512. * src/ChokeMessage.cc
  13513. (receivedAction): Removed peer->snubbing = false
  13514. * src/PeerConnection.h
  13515. (receiveHandshake): Updated doc.
  13516. * src/TorrentMan.h
  13517. (getAdvertisedPieceIndexes): Updated the method signature.
  13518. * src/TorrentMan.cc
  13519. (getAdvertisedPieceIndexes): Updated the method signature.
  13520. * src/Time.h
  13521. (getTimeInMicros): Added a cast to (long long int).
  13522. (getTimeInMillis): Added a cast to (long long int).
  13523. * Release 0.5.2
  13524. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13525. To make a listening socket non-block:
  13526. * src/SocketCore.h
  13527. (setNonBlockingMode): New function.
  13528. * src/SocketCore.cc
  13529. (setNonBlockingMode): New function.
  13530. (beginListen): Added a call to setNonBlockingMode().
  13531. (acceptConnection): Call setNonBlockingMode().
  13532. (setBlockingMode): Updated.
  13533. To handle tracker's NAT-checking:
  13534. * src/PeerConnection.cc
  13535. (receiveHandshake): 'msg' param is filled with received data and
  13536. its length is assigned to 'length' param, even if all handshake
  13537. message is not yet received.
  13538. * src/PeerInteractionCommand.cc
  13539. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  13540. a new peer connects to localhost.
  13541. A call to peerInteraction->sendHandshake() was removed because
  13542. it is called from peerInteraction->receiveHandshake(true).
  13543. * src/PeerInteraction.h
  13544. (quickReplied): New variable.
  13545. (receiveHandshake): Added an argument.
  13546. * src/PeerInteraction.cc
  13547. (PeerInteraction): Added the initialization of quickReplied.
  13548. (receiveHandshake): Send handshake message as soon as the info hash
  13549. in a handshake message from a peer is correct.
  13550. To change the random part of peer id and key parameter:
  13551. * src/TorrentMan.h
  13552. (key): New variable.
  13553. * src/TorrentMan.cc
  13554. (setupInternal1): Use Util::randomAlpha() to generate random part
  13555. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  13556. key is also generated by Util::randomAlpha() and it is now 8 character
  13557. long.
  13558. * src/Util.h
  13559. (randomAlpha): New function.
  13560. * src/Util.cc
  13561. (randomAlpha): New function.
  13562. * src/TrackerWatcherCommand.cc
  13563. (execute): In a tracker request: Use torrentMan->key as key parameter.
  13564. Added no_peer_id=1.
  13565. Set snubbing flag to false when a choke message is received from a
  13566. snubbed peer.
  13567. * src/ChokeMessage.cc
  13568. (receivedAction): Set snubbing flag to false.
  13569. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13570. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  13571. * src/SimpleLogger.h (writeHeader): New function.
  13572. * src/SimpleLogger.cc (writeHeader): New function.
  13573. (writeLog): Fixed the bug that causes segfaults if exception message
  13574. contains an unescaped "%" character.
  13575. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  13576. when a tracker request fails.
  13577. * src/Request.cc (parseUrl): Query string is now handled properly.
  13578. * Release 0.5.1
  13579. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13580. To add Time class which represents a specific instant in time and
  13581. its precision is microseconds. Time checking procedures were rewritten
  13582. using this object.
  13583. * src/Time.h: New class.
  13584. * src/Time.cc: New class.
  13585. * src/AbstractCommand.h
  13586. (updateCheckPoint): Removed.
  13587. (isTimeoutDetected): Removed.
  13588. (checkPoint): Changed the type to Time.
  13589. (timeout): New variable.
  13590. (setTimeout): New function.
  13591. * src/AbstractCommand.cc
  13592. (AbstractCommand): Removed the initialization of checkPoint.
  13593. Added the initialization of timeout.
  13594. (updateCheckPoint): Removed.
  13595. (isTimeoutDetected): Removed.
  13596. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  13597. * src/PeerChokeCommand.h
  13598. (checkPoint): Changed the type to Time.
  13599. * src/PeerChokeCommand.cc
  13600. (PeerChokeCommand): Removed the initialization of checkPoint.
  13601. (execute): Rewritten using Time object.
  13602. * src/TrackerWatcherCommand.h
  13603. (checkPoint): Changed the type to Time.
  13604. * src/TrackerWatcherCommand.cc
  13605. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  13606. (execute): Rewritten.
  13607. * src/ConsoleDownloadEngine.h
  13608. (cp): Changed the type to Time.
  13609. (startup): Changed the type to Time.
  13610. * src/ConsoleDownloadEngine.cc
  13611. (initStatistics): Use cp.reset(), startup.reset().
  13612. (calculateStatistics): Rewritten using Time object.
  13613. * src/PeerAbstractCommand.h
  13614. (updateCheckPoint): Removed.
  13615. (isTimeoutDetected): Removed.
  13616. (checkPoint): Changed the type to Time.
  13617. * src/PeerAbstractCommand.cc
  13618. (PeerAbstractCommand): Removed the initialization of checkPoint.
  13619. (updateCheckPoint): Removed.
  13620. (isTimeoutDetected): Removed.
  13621. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  13622. * src/PeerInteractionCommand.cc
  13623. (PeerInteractionCommand): Removed the initializations of struct
  13624. timeval variables.
  13625. * src/PeerInteractionCommand.h
  13626. (keepAliveCheckPoint): Changed the type to Time.
  13627. (chokeCheckPoint): Changed the type to Time.
  13628. (freqCheckPoint): Changed the type to Time.
  13629. (haveCheckTime): Changed the type to Time.
  13630. * src/PeerInteractionCommand.cc
  13631. (executeInternal): Rewritten using Time object.
  13632. (detectMessageFlooding): Rewritten using Time object.
  13633. (checkLongTimePeerChoking): Rewritten using Time object.
  13634. (sendKeepAlive): Rewritten using Time object.
  13635. (checkHave): Rewritten using Time object.
  13636. * src/SleepCommand.h
  13637. (checkPoint): Changed the type to Time.
  13638. * src/SleepCommand.cc
  13639. (SleepCommand): Removed the initialization of checkPoint.
  13640. (execute): Rewritten using Time object.
  13641. * src/TorrentAutoSaveCommand.h
  13642. (checkPoint): Changed the type to Time.
  13643. * src/TorrentAutoSaveCommand.cc
  13644. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  13645. (execute): Rewritten.
  13646. * src/DownloadCommand.h
  13647. (sw): Changed the type to Time.
  13648. * src/DownloadCommand.cc
  13649. (DownloadCommand): Removed the initialization of sw.
  13650. (executeInternal): Rewritten.
  13651. * src/RequestSlot.h
  13652. (dispatchedTime): Changed the type to Time.
  13653. * src/RequestSlot.cc
  13654. (RequestSlot): Removed the call to setDispatchedTime().
  13655. (setDispatchedTime): Rewirtten.
  13656. (isTimeout): Rewritten.
  13657. (getLatencyInMillis): Rewritten.
  13658. * src/TorrentDownloadEngine.h
  13659. (cp): Changed the type to Time[2].
  13660. (startup): Changed the type to Time.
  13661. * src/TorrentDownloadEngine.cc
  13662. (initStatistics): Rewritten.
  13663. (calculateStatistics): Rewritten.
  13664. * src/DownloadEngine.cc
  13665. (run): Rewritten.
  13666. To detect all attempts to connect to the tracker are failed:
  13667. * src/AbstractCommand.cc
  13668. (execute): Increment e->segmentMan->errors if a command aborted.
  13669. * src/SegmentMan.h
  13670. (errors): New variable.
  13671. * src/SegmentMan.cc
  13672. (SegmentMan): Added the initialization of errors.
  13673. (init): Added the initialization of errors.
  13674. * src/TrackerWatcherCommand.cc
  13675. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  13676. request was failed.
  13677. To handle snubbed peers:
  13678. * src/PeerChokeCommand.cc
  13679. (optUnchokingPeer): Snubbed peers don't get unchoked.
  13680. (execute): Snubbed peers don't get unchoked.
  13681. * src/PeerInteraction.h
  13682. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  13683. * src/PeerInteraction.cc
  13684. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  13685. back the requested 16k block in 60 seconds.
  13686. * src/PieceMessage.cc
  13687. (receivedAction): A peer's snubbed state is cleard if it sends
  13688. the requested 16k block in 60 seconds.
  13689. * src/Peer.h
  13690. (snubbing): New variable.
  13691. * src/Peer.cc
  13692. (resetStatus): Added snubbed = false.
  13693. To fix the bug that causes have message is not sent:
  13694. * src/PeerInteractionCommand.cc
  13695. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  13696. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  13697. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  13698. * src/TorrentMan.h
  13699. (HaveEntry): New class.
  13700. (advertisePiece): Rewritten.
  13701. (getAdvertisedPieceIndexes): Rewritten.
  13702. (Haves): Changed the type.
  13703. (getAdvertisedPieceIndexes): Added an argument.
  13704. Others:
  13705. * src/TorrentMan.h
  13706. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  13707. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  13708. * src/TorrentMan.cc
  13709. (getPeer): Don't check the number of connections here.
  13710. (setupInternal1): Changed peerId.
  13711. * src/PeerInteractionCommand.h
  13712. (KEEP_ALIVE_INTERVAL): New definition.
  13713. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  13714. * src/main.cc
  13715. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  13716. * src/DownloadEngine.h: Removed unnecessary header includes.
  13717. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13718. To fix the bug that causes segfaults if a tracker returns a zero-length
  13719. list as "peers":
  13720. * src/TrackerUpdateCommand.cc
  13721. (execute): Added a check to see wether the type of peers is Data*.
  13722. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13723. * Release 0.5.0
  13724. To fix compile issue with gcc3:
  13725. * src/CancelMessage.h
  13726. (ID): Renamed as ID_t
  13727. (ID_t): New enum.
  13728. * src/RejectMessage.h
  13729. (ID): Renamed as ID_t
  13730. (ID_t): New enum.
  13731. * src/SuggestPieceMessage.h
  13732. (ID): Renamed as ID_t
  13733. (ID_t): New enum.
  13734. * src/AllowedFastMessage.h
  13735. (ID): Renamed as ID_t
  13736. (ID_t): New enum.
  13737. * src/PortMessage.h
  13738. (ID): Renamed as ID_t
  13739. (ID_t): New enum.
  13740. * src/HaveNoneMessage.h
  13741. (ID): Renamed as ID_t
  13742. (ID_t): New enum.
  13743. * src/KeepAliveMessage.h
  13744. (ID): Renamed as ID_t
  13745. (ID_t): New enum.
  13746. * src/HaveAllMessage.h
  13747. (ID): Renamed as ID_t
  13748. (ID_t): New enum.
  13749. * src/UnchokeMessage.h
  13750. (ID): Renamed as ID_t
  13751. (ID_t): New enum.
  13752. * src/BitfieldMessage.h
  13753. (ID): Renamed as ID_t
  13754. (ID_t): New enum.
  13755. * src/PieceMessage.h
  13756. (ID): Renamed as ID_t
  13757. (ID_t): New enum.
  13758. * src/RequestMessage.h
  13759. (ID): Renamed as ID_t
  13760. (ID_t): New enum.
  13761. * src/NotInterestedMessage.h
  13762. (ID): Renamed as ID_t
  13763. (ID_t): New enum.
  13764. * src/ChokeMessage.h
  13765. (ID): Renamed as ID_t
  13766. (ID_t): New enum.
  13767. * src/InterestedMessage.h
  13768. (ID): Renamed as ID_t
  13769. (ID_t): New enum.
  13770. * src/HaveMessage.h
  13771. (ID): Renamed as ID_t
  13772. (ID_t): New enum.
  13773. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13774. * src/PeerAbstractCommand.h
  13775. (beforeSocketCheck): Removed.
  13776. * src/PeerAbstractCommand.cc
  13777. Modified in order to call executeInternal() even if socket check
  13778. and upload limit check fail.
  13779. * src/PeerInteractionCommand.h
  13780. (keepAlive): Removed.
  13781. (sendKeepAlive): New function.
  13782. (checkHave): New function.
  13783. (beforeSocketCheck): Removed.
  13784. * src/PeerInteractionCommand.cc
  13785. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  13786. calls to checkHave() and sendKeepAlive().
  13787. (keepAlive): Renamed to sendKeepAlive().
  13788. (sendKeepAlive): New function.
  13789. (beforeSocketCheck): Removed.
  13790. (checkHave): New function.
  13791. * src/BitfieldMan.cc
  13792. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  13793. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  13794. 0.
  13795. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  13796. * src/TorrentMan.h
  13797. (UsedPieces): Removed.
  13798. (Pieces): New type definition.
  13799. * src/Piece.h: Updated doc.
  13800. * src/Peer.h
  13801. (totalLength): Removed.
  13802. * src/Peer.cc
  13803. (updateLatency): Fixed the latency calculation.
  13804. * src/TorrentMan.cc
  13805. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  13806. than or equal to MAX_PEER_LIST_SIZE.
  13807. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  13808. then return false.
  13809. (deleteOldErrorPeers): Rewritten.
  13810. (deleteUsedPiece): Fixed the miss use of STL remove.
  13811. * src/PeerInteraction.h
  13812. (Pieces): Removed.
  13813. (deleteTimeoutRequestSlot): Removed.
  13814. (deleteCompletedRequestSlot): Removed.
  13815. (checkRequestSlot): New function.
  13816. * src/PeerInteraction.cc
  13817. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  13818. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  13819. (checkRequestSlot): New function.
  13820. * src/DownloadEngine.cc
  13821. (run): Clear activeSockets before calling waitData().
  13822. (waitData): Removed a call to activeSockets.clear().
  13823. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13824. To attempt to handle EINTR:
  13825. * src/SocketCore.cc
  13826. (isReadable): Added EINTR handling.
  13827. (isWritable): Added EINTR handling.
  13828. To improve the performance:
  13829. * src/AbstractCommand.cc
  13830. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  13831. * src/PeerInteractionCommand.h
  13832. (receiveMessage): Renamed as receiveMessages().
  13833. (receiveMessages): New function.
  13834. * src/PeerInteractionCommand.cc
  13835. (executeInternal): receiveMessage loop is moved to new receiveMessages
  13836. () function. detectMessageFlooding() is moved here.
  13837. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  13838. (). The flooding detection for have message is comment out.
  13839. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  13840. Util::difftv().
  13841. (receiveMessage): Renamed as receiveMessages().
  13842. (receiveMessages): New function.
  13843. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  13844. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  13845. * src/SleepCommand.cc
  13846. (execute): Use Util::difftvsec() instead of Util::difftv().
  13847. * src/BitfieldMan.h
  13848. (getNthBitIndex): New function.
  13849. (hasMissingPiece): New function.
  13850. (getAllMissingIndexes): New function.
  13851. * src/BitfieldMan.cc
  13852. (countSetBit): Rewritten.
  13853. (getNthBitIndex): New function.
  13854. (getMissingIndexRandomly): Rewritten.
  13855. (hasMissingPiece): New function.
  13856. (getAllMissingIndexes): New function.
  13857. * src/TorrentMan.cc
  13858. (hasMissingPiece): New function.
  13859. (deleteUsedPiece): Rewritten using STL.
  13860. * src/PeerInteraction.cc
  13861. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  13862. is a little bit faster then TorrentMan::getMissingPieceIndex().
  13863. (addRequests): Updated the number of pending requests.
  13864. * src/PeerAbstractCommand.cc
  13865. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  13866. (execute): Returns true if TorrentMan::isHalt() is true.
  13867. Corrected the condition of upload limit checking.
  13868. * src/Util.h
  13869. (countBit): New function.
  13870. * src/Util.cc
  13871. (nbits): New variable.
  13872. (countBit): New function.
  13873. * src/DownloadEngine.h
  13874. (SockCmdMap): New type definition.
  13875. (waitData): Added an argument.
  13876. (addSocket): Added an argument.
  13877. (addSocketForReadCheck): Added an argument.
  13878. (addSocketForWriteCheck): Added an argument.
  13879. * src/DownloadEngine.cc
  13880. (run): Executes only commands whose sockets are ready to read or write.
  13881. All commands are executed in every 1 second.
  13882. (waitData): Calls select() again if it returned
  13883. EINTR.
  13884. (addSocket): Saves socket and command object pair to the map.
  13885. (deleteSocket): Deletes socket and command object pair from the map.
  13886. (addSocketForReadCheck): Added an argument.
  13887. (addSocketForWriteCheck): Added an argument.
  13888. * src/DownloadCommand.cc
  13889. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  13890. To send "event=stopped" to the tracker when the application finishes:
  13891. * src/PeerChokeCommand.h
  13892. (checkPoint): New variable.
  13893. * src/PeerChokeCommand.cc
  13894. (PeerChokeCommand): Added the initialization of checkPoint.
  13895. (execute): The interval check is now done by checkPoint, not
  13896. SleepCommand. Return true if TorrentMan::isHalt() is true.
  13897. * src/TorrentMan.h
  13898. (halt): New function.
  13899. (hasMissingPiece): New function.
  13900. (isHalt): New function.
  13901. (setHalt): New function.
  13902. * src/TorrentMan.cc
  13903. (TorrentMan): Added the initialization of halt.
  13904. * src/TorrentAutoSaveCommand.h
  13905. (checkPoint): New variable.
  13906. * src/PeerListenCommand.cc
  13907. (execute): Returns true if TorrentMan::isHalt() is true.
  13908. * src/main.cc
  13909. (setSignalHander): Added flags argument.
  13910. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  13911. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  13912. Removed printDownloadAbortMessage() after torrent downloading loop.
  13913. * src/TorrentAutoSaveCommand.cc
  13914. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  13915. (execute): Returns true if TorrentMan::isHalt() is true.
  13916. The interval check is now done by checkPoint, not SleepCommand.
  13917. * src/TrackerWatcherCommand.cc
  13918. (execute): If TorrentMan::isHalt(), then create a tracker request with
  13919. event=stopped.
  13920. * src/TrackerUpdateCommand.cc
  13921. (prepareForRetry): Do not use SleepCommand here.
  13922. (execute): Returns true if TorrentMan::isHalt() is true.
  13923. Others:
  13924. * src/TorrentMan.cc
  13925. (getMissingPieceIndex): Updated log message.
  13926. * src/PeerInteraction.cc
  13927. (createPeerMessag): Updated log message.
  13928. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13929. To add the ability to download several pieces in mix in a command and
  13930. increase the number of request slots according to request-cancel
  13931. latency:
  13932. * src/PeerInteractionCommand.cc
  13933. (executeInternal): The number of messages to be received at a time
  13934. is increased from 10 to 50.
  13935. * src/LogFactory
  13936. (getInstance): Added NullLogger.
  13937. * src/NullLogger.h: New class.
  13938. * src/BitfieldMan.h
  13939. (getMissingIndex): New function.
  13940. * src/BitfieldMan.cc
  13941. (getMissingIndex): New function.
  13942. * src/TorrentMan.h
  13943. (checkOutPiece): New function.
  13944. (getMissingPieceIndex): New function.
  13945. (getMissingFastPieceIndex): New function.
  13946. (getMissingFastPiece): New function.
  13947. * src/TorrentMan.cc
  13948. (updatePiece): Rewritten using STL.
  13949. (syncPiece): Rewritten using STL.
  13950. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  13951. checkOutPiece().
  13952. (getMissingPieceIndex): New function.
  13953. (getMissingFastPieceIndex): New function.
  13954. (getMissingFastPiece): New function.
  13955. (checkOutPiece): New function.
  13956. * src/PeerInteraction.h
  13957. (Pieces): New type definition.
  13958. (piece): Removed.
  13959. (pieces): New variable.
  13960. (getNewPieceAndSendInterest): Added the "piece" argument.
  13961. (abortPiece): Added the "piece" argument.
  13962. (abortAllPieces): New function.
  13963. (isInRequestSlot): New function.
  13964. (hasDownloadPiece): Added the "index" argument.
  13965. (setDownloadPiece): Removed.
  13966. (getDownloadPiece): Added the "index" argument.
  13967. (updatePiece): New function.
  13968. (createRequestMessage): Added the "index" argument.
  13969. * src/PeerInteraction.cc
  13970. (onChoked): Rewritten.
  13971. (abortPiece): Rewirtten.
  13972. (abortAllPieces): New function.
  13973. (deleteTimeoutRequestSlot): Rewritten.
  13974. Clarified code a little bit.
  13975. (deleteCompletedRequestSlot): Rewritten.
  13976. (isInRequestSlot): New function.
  13977. (syncPiece): Rewritten.
  13978. (updatePiece): New function.
  13979. (getNewPieceAndSendInterest): Rewritten.
  13980. (addRequests): Rewritten.
  13981. (getDownloadPiece): Rewritten.
  13982. (hasDownloadPiece): Rewritten.
  13983. (createRequestMessage): Added the "index" argument.
  13984. * src/common.h
  13985. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  13986. (DIV_FLOOR): New definition.
  13987. * src/PieceMessage.cc
  13988. (receivedAction): Update request-piece latency here.
  13989. * src/RequestSlot.h
  13990. (getLatencyInMillis): New function.
  13991. * src/RequestSlot.cc
  13992. (isTimeout): Rewritten using getLatencyInMillis.
  13993. (getLatencyInMillis): New function.
  13994. * src/Piece.h
  13995. (operator==): New function.
  13996. (getMissingBlockIndex): New function.
  13997. * src/Piece.cc
  13998. (operator==): New function.
  13999. (getMissingBlockIndex): New function.
  14000. * src/Peer.h
  14001. (DEFAULT_LATENCY): New definition.
  14002. (latency): New variable.
  14003. (updateLatency): New function.
  14004. (getLatency): New function.
  14005. * src/Peer.cc
  14006. (resetStatus): Reset latecy.
  14007. (updateLatency): New function.
  14008. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14009. * src/SocketCore.cc
  14010. (isReadable): Added secure to the condition.
  14011. * src/HttpConnection.cc
  14012. (receiveResponse): Fixed a bug that causes no response header
  14013. exception.
  14014. * src/Peer.h
  14015. (getFastSet): Fixed the return value type.
  14016. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14017. To remove a wait from download loop:
  14018. * src/DownloadEngine.cc
  14019. (run): Comment out shortSleep.
  14020. To rewrite the message handling:
  14021. * src/SimplePeerMessage.h: New class.
  14022. * src/SimplePeerMessage.cc: New class.
  14023. * src/CancelMessage.h: Derived from SimplePeerMessage.
  14024. (msg): New variable.
  14025. (create): New function.
  14026. (send): Removed.
  14027. (getMessage): New function.
  14028. (getMessageLength): New function.
  14029. * src/CancelMessage.cc
  14030. (create): New function.
  14031. (receivedAction): Replaced deleteRequestMessageInQueue with
  14032. rejectPieceMessageInQueue.
  14033. (send): Removed.
  14034. (getMessage): New function.
  14035. (getMessageLength): New function.
  14036. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  14037. (msg): New variable.
  14038. (msgLength): New variable.
  14039. (~BitfieldMessage): Deleted msg.
  14040. (send): Removed.
  14041. (getMessage): New function.
  14042. (getMessageLength): New function.
  14043. * src/BitfieldMessage.cc
  14044. (create): New function.
  14045. (send): Removed.
  14046. (getMessage): New function.
  14047. (getMessageLength): New function.
  14048. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  14049. (msg): New variable.
  14050. (sendPredicate): New function.
  14051. (onSendComplete): New function.
  14052. (send): Removed.
  14053. (getMessage): New function.
  14054. (getMessageLength): New function.
  14055. (create): New function.
  14056. * src/ChokeMessage.cc
  14057. (create): New function.
  14058. (send): Removed.
  14059. (sendPredicate): New function.
  14060. (getMessage): New function.
  14061. (getMessageLength): New function.
  14062. (onSendComplete): New function.
  14063. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  14064. (msg): New variable.
  14065. (send): Removed.
  14066. (getMessage): New function.
  14067. (getMessageLength): New function.
  14068. * src/KeepAliveMessage.cc
  14069. (send): Removed.
  14070. (getMessage): New function.
  14071. (getMessageLength): New function.
  14072. * src/PortMessage.h
  14073. (create): New function.
  14074. (receivedAction): Updated log message.
  14075. * src/PortMessage.cc: New file.
  14076. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  14077. (msg): New variable.
  14078. (sendPredicate): New function.
  14079. (onSendComplete): New function.
  14080. (create): New function.
  14081. (send): Removed.
  14082. (getMessage): New function.
  14083. (getMessageLength): New function.
  14084. * src/UnchokeMessage.cc
  14085. (create): New function.
  14086. (send): Removed.
  14087. (sendPredicate): New function.
  14088. (getMessage): New function.
  14089. (getMessageLength): New function.
  14090. (onSendComplete): New function.
  14091. * src/PieceMessage.h
  14092. (leftPieceDataLength): Removed.
  14093. (leftDataLength): New variable.
  14094. (headerSend): New variable.
  14095. (pendingCount): New variable.
  14096. (msgHeader): New variable.
  14097. (sendPieceData): New function.
  14098. (incrementPendingCount): New function.
  14099. (isPendingCountMax): New function.
  14100. (create): New function.
  14101. (getMessageHeader): New function.
  14102. (getMessageHeaderLength): New function.
  14103. * src/PieceMessage.cc
  14104. (create): New function.
  14105. (getMessageHeader): New function.
  14106. (getMessageHeaderLength): New function.
  14107. (send): Rewritten.
  14108. (sendPieceData): New function.
  14109. * src/HaveMessage.h: Derived from SimplePeerMessage.
  14110. (msg): New variable.
  14111. (create): New function.
  14112. (getMessage): New function.
  14113. (getMessageLength): New function.
  14114. * src/HaveMessage.cc
  14115. (create): New function.
  14116. (send): Removed.
  14117. (sendPieceData): New function.
  14118. (getMessage): New function.
  14119. (getMessageLength): New function.
  14120. * src/RequestMessage.h: Derived from SimplePeerMessage.
  14121. (msg): New variable.
  14122. (create): New function.
  14123. (send): Removed.
  14124. (getMessage): New function.
  14125. (getMessageLength): New function.
  14126. * src/RequestMessage.cc
  14127. (create): New function.
  14128. (receivedAction): Added the handling of fast extension.
  14129. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  14130. (send): Removed.
  14131. (getMessage): New function.
  14132. (getMessageLength): New function.
  14133. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  14134. (msg): New variable.
  14135. (sendPredicate): New function.
  14136. (onSendComplete): New function.
  14137. (create): New function.
  14138. (getMessage): New function.
  14139. (getMessageLength): New function.
  14140. * src/InterestedMessage.cc
  14141. (create): New function.
  14142. (send): Removed.
  14143. (sendPieceData): New function.
  14144. (getMessage): New function.
  14145. (getMessageLength): New function.
  14146. (onSendComplete): New function.
  14147. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  14148. (msg): New variable.
  14149. (sendPieceData): New function.
  14150. (onSendComplete): New function.
  14151. (create): New function.
  14152. (send): Removed.
  14153. (getMessage): New function.
  14154. (getMessageLength): New function.
  14155. * src/NotInterestedMessage.cc
  14156. (create): New function.
  14157. (send): Removed.
  14158. (sendPredicate): New function.
  14159. (getMessage): New function.
  14160. (getMessageLength): New function.
  14161. (onSendComplete): New function.
  14162. * src/AllowedFastMessage.h: New class.
  14163. * src/AllowedFastMessage.cc: New class.
  14164. * src/RejectMessage.h: New class.
  14165. * src/RejectMessage.cc: New class.
  14166. * src/SuggestPieceMessage.h: New class.
  14167. * src/SuggestPieceMessage.cc: New class.
  14168. * src/HaveAllMessage.h: New class.
  14169. * src/HaveAllMessage.cc: New class.
  14170. * src/HaveNoneMessage.h: New class.
  14171. * src/HaveNoneMessage.cc: New class.
  14172. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  14173. (msg): New variable.
  14174. (reserved): New variable.
  14175. (create): New function.
  14176. (getId): New function.
  14177. (receivedAction): New function.
  14178. (getMessage): New function.
  14179. (getMessageLength): New function.
  14180. (isFastExtensionSupported): New function.
  14181. * src/HandshakeMessage.cc
  14182. (HandshakeMessage): Moved here from HandshakeMessage.h.
  14183. (create): New function.
  14184. (getMessage): New function.
  14185. (getMessageLength): New function.
  14186. (toString): Added the output of reserved field.
  14187. (check): Added const qualifier.
  14188. (isFastExtensionSupported): New function.
  14189. * src/PeerMessageUtil.h
  14190. (createChokeMessage): Removed.
  14191. (createUnchokeMessage): Removed.
  14192. (createInterestedMessage): Removed.
  14193. (createNotInterestedMessage): Removed.
  14194. (createHaveMessage): Removed.
  14195. (createBitfieldMessage): Removed.
  14196. (createRequestMessage): Removed.
  14197. (createCancelMessage): Removed.
  14198. (createPieceMessage): Removed.
  14199. (createPortMessage): Removed.
  14200. (createChokeMessage): Removed.
  14201. (createUnchokeMessage): Removed.
  14202. (createInterestedMessage): Removed.
  14203. (createNotInterestedMessage): Removed.
  14204. (createHaveMessage): Removed.
  14205. (createBitfieldMessage): Removed.
  14206. (createRequestMessage): Removed.
  14207. (createCancelMessage): Removed.
  14208. (createPieceMessage): Removed.
  14209. (createKeepAliveMessage): Removed.
  14210. (createHandshakeMessage): Removed.
  14211. (setIntParam): New function.
  14212. (createPeerMessageString): New function.
  14213. * src/PeerMessageUtil.cc
  14214. (createChokeMessage): Removed.
  14215. (createUnchokeMessage): Removed.
  14216. (createInterestedMessage): Removed.
  14217. (createNotInterestedMessage): Removed.
  14218. (createHaveMessage): Removed.
  14219. (createBitfieldMessage): Removed.
  14220. (createRequestMessage): Removed.
  14221. (createCancelMessage): Removed.
  14222. (createPieceMessage): Removed.
  14223. (createPortMessage): Removed.
  14224. (createRequestMessage): Removed.
  14225. (createCancelMessage): Removed.
  14226. (createPieceMessage): Removed.
  14227. (createHaveMessage): Removed.
  14228. (createChokeMessage): Removed.
  14229. (createUnchokeMessage): Removed.
  14230. (createInterestedMessage): Removed.
  14231. (createNotInterestedMessage): Removed.
  14232. (createBitfieldMessage): Removed.
  14233. (createKeepAliveMessage): Removed.
  14234. (createHandshakeMessage): Removed.
  14235. (setIntParam): New function.
  14236. (createPeerMessageString): New function.
  14237. * src/PeerConnection.h
  14238. (peer): Removed.
  14239. (torrentMan): Removed.
  14240. (createNLengthMessage): Removed.
  14241. (setIntParam): Removed.
  14242. (writeOutgoingMessageLog): Removed all overloaded functions.
  14243. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14244. (sendMessage): New function.
  14245. (sendHandshake): Removed.
  14246. (sendKeepAlive): Removed.
  14247. (sendChoke): Removed.
  14248. (sendUnchoke): Removed.
  14249. (sendInterested): Removed.
  14250. (sendNotInterested): Removed.
  14251. (sendHave): Removed.
  14252. (sendBitfield): Removed.
  14253. (sendRequest): Removed.
  14254. (sendPiece): Removed.
  14255. (sendPieceHeader): Removed.
  14256. (sendPieceData): Removed.
  14257. (sendCancel): Removed.
  14258. (getPeer): Removed.
  14259. * src/PeerConnection.cc
  14260. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14261. (sendHandshake): Removed.
  14262. (sendKeepAlive): Removed.
  14263. (createNLengthMessage): Removed.
  14264. (setIntParam): Removed.
  14265. (writeOutgoingMessageLog): Removed all overloaded functions.
  14266. (sendChoke): Removed.
  14267. (sendUnchoke): Removed.
  14268. (sendInterested): Removed.
  14269. (sendNotInterested): Removed.
  14270. (sendHave): Removed.
  14271. (sendBitfield): Removed.
  14272. (sendRequest): Removed.
  14273. (sendPiece): Removed.
  14274. (sendPieceHeader): Removed.
  14275. (sendPieceData): Removed.
  14276. (sendMessage): New function.
  14277. (sendCancel): Removed.
  14278. * src/PeerInteractionCommand.cc
  14279. (PeerInteractionCommand): Call setUploadLimit.
  14280. (executeInternal): Call setUploadLimit.
  14281. Added the handling of "inProgress" state of handshake message.
  14282. Call sendBitfield() or sendAllowdFast() instead of deprecated
  14283. sendNow().
  14284. (keepAlive): Call addMessage and sendMessage instead of deprecated
  14285. sendNow().
  14286. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  14287. * src/TorrentMan.h
  14288. (PEER_ID_LENGTH): New definition.
  14289. (hasAllPieces): New function.
  14290. * src/TorrentMan.cc
  14291. (getMissingPiece): Added the handling of fast extension.
  14292. (cancelPiece): Call updatePiece().
  14293. (hasAllPieces): New function.
  14294. * src/PeerInteraction.h
  14295. (fastSet): New variable.
  14296. (getNewPieceAndSendInterest): Changed the return type to void.
  14297. (send): Renamed as sendMessages.
  14298. (deleteAllRequestSlot): Removed.
  14299. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14300. (cancelAllRequest): Removed all overloaded functions.
  14301. (deleteAllRequestSlot): Removed.
  14302. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14303. (rejectPieceMessageInQueue): New function.
  14304. (rejectAllPieceMessageInQueue): New function.
  14305. (onChoked): New function.
  14306. (isSendingMessageInProgress): New function.
  14307. (getCorrespondingRequestSlot): Changed its arguments.
  14308. (isInFastSet): New function.
  14309. (addFastSetIndex): New function.
  14310. (addRequests): New function.
  14311. (sendNow): Removed.
  14312. (trySendNow): Removed.
  14313. (sendBitfield): New function.
  14314. (sendAllowdFast): New function.
  14315. (createHaveAllMessage): New function.
  14316. (createHaveNoneMessage): New function.
  14317. (createRejectMessage): New function.
  14318. (createAllowedFastMessage): New function.
  14319. * src/PeerInteraction.cc
  14320. (send): Renamed as sendMessages.
  14321. (sendMessages): New function.
  14322. (MsgPushBack): New class.
  14323. (isSendingMessageInProgress): New function.
  14324. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14325. (rejectAllPieceMessageInQueue): New function.
  14326. Added the handling of fast extension.
  14327. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14328. (rejectPieceMessageInQueue): New function.
  14329. Added the handling of fast extension.
  14330. (deleteRequestSlot): Replaced for loop with std::find.
  14331. (onChoked): New function.
  14332. (deleteAllRequestSlot): Removed.
  14333. (abortPiece): Rewirtten.
  14334. (deleteTimeoutRequestSlot): Updated log messages.
  14335. (getCorrespondingRequestSlot): Changed its arguments.
  14336. (cancelAllRequest): Removed all overloaded functions.
  14337. (receiveHandshake): Added the check to see whether an incoming peer
  14338. supports fast extension.
  14339. (createHandshakeMessage): Use HandshakeMessage::create instead of
  14340. PeerMessageUtil.
  14341. (createPeerMessage): Use create() of each message class instead of
  14342. PeerMessageUtil.
  14343. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  14344. AllowedFastMessage were added.
  14345. (getNewPieceAndSendInterest): Changed its return value type to void.
  14346. Added the handling of fast extension.
  14347. (addRequests): New function.
  14348. (sendNow): Removed.
  14349. (sendHandshake): Rewritten.
  14350. (trySendNow): Removed.
  14351. (sendBitfield): New function.
  14352. (sendAllowdFast): New function.
  14353. (isInFastSet): New function.
  14354. (addFastSetIndex): New function.
  14355. (createRequestMessage): Use RequestMessage::create instead of
  14356. PeerMessageUtil.
  14357. (createCancelMessage): Use CancelMessage::create instead of
  14358. PeerMessageUtil.
  14359. (createPieceMessage): Use PieceMessage::create instead of
  14360. PeerMessageUtil.
  14361. (createHaveMessage): Use HaveMessage::create instead of
  14362. PeerMessageUtil.
  14363. (createChokeMessage): Use ChokeMessage::create instead of
  14364. PeerMessageUtil.
  14365. (createUnchokeMessage): Use UnchokeMessage::create instead of
  14366. PeerMessageUtil.
  14367. (createInterestedMessage): Use InterestedMessage::create instead of
  14368. PeerMessageUtil.
  14369. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  14370. of PeerMessageUtil.
  14371. (createBitfieldMessage): Use BitfieldMessage::create instead of
  14372. PeerMessageUtil.
  14373. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  14374. PeerMessageUtil.
  14375. (createHaveAllMessage): New function.
  14376. (createHaveNoneMessage): New function.
  14377. (createRejectMessage): New function.
  14378. (createAllowedFastMessage: New function.
  14379. * src/Util.h
  14380. (sha1Sum): New function.
  14381. (computeFastSet): New function.
  14382. * src/Util.cc
  14383. (sha1Sum): New function.
  14384. (computeFastSet): New function.
  14385. * src/Peer.h
  14386. (fastExtensionEnabled): New variable.
  14387. (fastSet): New variable.
  14388. (setAllBitfield): New function.
  14389. (setFastExtensionEnabled): New function.
  14390. (isFastExtensionEnabled): New function.
  14391. (addFastSetIndex): New function.
  14392. (getFastSet): New function.
  14393. (isInFastSet): New function.
  14394. (countFastSet): New function.
  14395. * src/Peer.cc
  14396. (isInFastSet): New function.
  14397. (addFastSetIndex): New function.
  14398. (setAllBitfield): New function.
  14399. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  14400. sockets.
  14401. * src/PeerAbstractCommand.cc
  14402. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  14403. and uploadLimit.
  14404. (execute): Changed the procedure of checking sockets. The upload speed
  14405. checking were added.
  14406. (setUploadLimit): New function.
  14407. (setUploadLimitCheck): New function.
  14408. * src/PeerAbstractCommand.h
  14409. (setUploadLimit): New function.
  14410. (setUploadLimitCheck): New function.
  14411. (uploadLimit): New variable.
  14412. (uploadLimitCheck): New variable.
  14413. To contact a tracker regularly:
  14414. * src/TrackerWatcherCommand.h (interval): New variable.
  14415. (checkPoint): New variable.
  14416. (TrackerWatcherCommand): Added interval argument.
  14417. * src/TrackerWatcherCommand.cc
  14418. (TrackerWatcherCommand): Initialized checkPoint.
  14419. (execute): Now a tracker is contacted in every specified period.
  14420. If peer list is not needed, send request with numwant=0.
  14421. * src/TrackerUpdateCommand.cc
  14422. (execute): Updated log messages.
  14423. * src/DownloadEngine.cc
  14424. (~DownloadEngine): Removed two asserts.
  14425. (waitData): Uncommented wfds. May be a bug fix.
  14426. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14427. * src/PeerInteractionCommand.h
  14428. (checkInactiveConnection): Removed.
  14429. * src/PeerInteractionCommand.cc
  14430. (executeInternal): Removed following function calls:
  14431. detectMessageFlooding(), checkLongTimePeerChoking and
  14432. checkInactiveConnection().
  14433. (checkInactiveConnection): Removed.
  14434. (detectMessageFlooding): Removed function call to
  14435. checkInactiveConnection().
  14436. * src/PeerMessageUtil.h
  14437. (createChokeMessage): New function. Overload.
  14438. (createUnchokeMessage): New function. Overload.
  14439. (createInterestedMessage): New function. Overload.
  14440. (createNotInterestedMessage): New function. Overload.
  14441. (createHaveMessage): New function. Overload.
  14442. (createBitfieldMessage): New function. Overload.
  14443. (createRequestMessage): New function. Overload.
  14444. (createCancelMessage): New function. Overload.
  14445. (createPieceMessage): New function. Overload.
  14446. (createKeepAliveMessage): New function. Overload.
  14447. * src/PeerMessageUtil.cc
  14448. (createChokeMessage): New function. Overload.
  14449. (createUnchokeMessage): New function. Overload.
  14450. (createInterestedMessage): New function. Overload.
  14451. (createNotInterestedMessage): New function. Overload.
  14452. (createHaveMessage): New function. Overload.
  14453. (createBitfieldMessage): New function. Overload.
  14454. (createRequestMessage): New function. Overload.
  14455. (createCancelMessage): New function. Overload.
  14456. (createPieceMessage): New function. Overload.
  14457. (createKeepAliveMessage): New function. Overload.
  14458. * src/SendMessageQueue.cc
  14459. (createRequestMessage): Use PeerMessageUtil.
  14460. (createCancelMessage): Use PeerMessageUtil.
  14461. (createPieceMessage): Use PeerMessageUtil.
  14462. (createHaveMessage): Use PeerMessageUtil.
  14463. (createChokeMessage): Use PeerMessageUtil.
  14464. (createUnchokeMessage): Use PeerMessageUtil.
  14465. (createInterestedMessage): Use PeerMessageUtil.
  14466. (createNotInterestedMessage): Use PeerMessageUtil.
  14467. (createBitfieldMessage): Use PeerMessageUtil.
  14468. (createKeepAliveMessage): Use PeerMessageUtil.
  14469. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  14470. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  14471. * src/PeerInteraction.h: New class.
  14472. * src/PeerInteraction.cc: New class.
  14473. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14474. Each peer message has its own class.
  14475. * src/PendingMessages.h: Removed.
  14476. * src/PendingMessages.cc: Removed. The sending process was moved to
  14477. each message class.
  14478. * src/RequestSlotMan.h: Removed.
  14479. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  14480. SendMessageQueue.
  14481. * src/RequestMessage.h: New class.
  14482. * src/RequestMessage.cc: New class.
  14483. * src/CancelMessage.h: New class.
  14484. * src/CancelMessage.cc: New class.
  14485. * src/BitfieldMessage.h: New class.
  14486. * src/BitfieldMessage.cc: New class.
  14487. * src/ChokeMessage.h: New class.
  14488. * src/ChokeMessage.cc: New class.
  14489. * src/KeepAliveMessage.h: New class.
  14490. * src/KeepAliveMessage.cc: New class.
  14491. * src/PortMessage.h: New class.
  14492. * src/UnchokeMessage.h: New class.
  14493. * src/UnchokeMessage.cc: New class.
  14494. * src/PieceMessage.h: New class.
  14495. * src/PieceMessage.cc: New class.
  14496. * src/HaveMessage.h: New class.
  14497. * src/HaveMessage.cc: New class.
  14498. * src/BitfieldMessage.h: New class.
  14499. * src/BitfieldMessage.cc: New class.
  14500. * src/NotInterestedMessage.h: New class.
  14501. * src/NotInterestedMessage.cc: New class.
  14502. * src/InterestedMessage.h: New class.
  14503. * src/InterestedMessage.cc: New class.
  14504. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  14505. (getSendMessageQueue): New function.
  14506. (setSendMessageQueue): New function.
  14507. * src/HandshakeMessage.cc: New class.
  14508. * src/PeerConnection.h (receiveMessage): Changed return value and
  14509. arguments.
  14510. (receiveHandshake): Changed return value and arguments.
  14511. * src/PeerConnection.cc (receiveMessage): Do not create message class
  14512. here.
  14513. (receiveHandshake): Do not create handshake class here.
  14514. * src/PeerInteractionCommand.h (peerConnection): Removed.
  14515. (piece): Removed.
  14516. (syncPiece): Removed.
  14517. (sendInterest): Removed.
  14518. (sendMessages): Removed.
  14519. (createRequestPendingMessage): Removed.
  14520. (checkPieceHash): Removed.
  14521. (erasePieceOnDisk): Removed.
  14522. (getNewPieceAndSendInterest): Removed.
  14523. (onGotNewPice): Removed.
  14524. (onGotWrongPiece): Removed.
  14525. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  14526. Removed peerConnection, piece.
  14527. (~PeerInteractionCommand): Removed peerConnection.
  14528. (executeInternal): Use sendMessageQueue instead of peerConnection.
  14529. (syncPiece): Moved to SendMessageQueue.
  14530. (decideChoking): Removed PendingMessage.
  14531. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  14532. The action after receiving peer message was moved to each message
  14533. class.
  14534. (onGotNewPice): Moved to SendMessageQueue.
  14535. (onGotWrongPiece): Moved to SendMessageQueue.
  14536. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  14537. (sendInterest): Moved to SendMessageQueue.
  14538. (createRequestPendingMessage): Removed.
  14539. (sendMessages): Moved to SendMessageQueue.
  14540. (onAbort): Use SendMessageQueue::abortPiece()
  14541. (keepAlive): Use sendMessageQueue instead of peerConnection.
  14542. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  14543. (checkPieceHash): Moved to SendMessageQueue.
  14544. (erasePieceOnDisk): Moved to SendMessageQueue.
  14545. * src/PeerMessageUtil.h
  14546. (createBitfieldMessage): Removed.
  14547. (createHaveMessage): Changed return value and arguments.
  14548. (createBitfieldMessage): Changed return value and arguments.
  14549. (createRequestCancelMessage): Removed.
  14550. (createPieceMessage): Changed return value and arguments.
  14551. (getShortIntParam): New function.
  14552. (checkIndex): Changed arguments.
  14553. (checkBegin): Changed arguments.
  14554. (checkLength): Changed arguments.
  14555. (checkPieceOffset): Removed.
  14556. (checkRange): New function.
  14557. (checkBitfield): Changed arguments.
  14558. (createPeerMessage): Removed.
  14559. (checkIntegrity): Removed.
  14560. (createHandshakeMessage): Changed arguments.
  14561. (createChokeMessage): New function.
  14562. (createUnchokeMessage): New function.
  14563. (createInterestedMessage): New function.
  14564. (createNotInterestedMessage): New function.
  14565. (createRequestMessage): New function.
  14566. (createCancelMessage): New function.
  14567. (createPortMessage): New function.
  14568. * src/PeerMessageUtil.cc
  14569. (createBitfieldMessage): Removed.
  14570. (createHaveMessage): Changed return value and arguments.
  14571. (createBitfieldMessage): Changed return value and arguments.
  14572. (createRequestCancelMessage): Removed.
  14573. (createPieceMessage): Changed return value and arguments.
  14574. (getShortIntParam): New function.
  14575. (checkIndex): Changed arguments.
  14576. (checkBegin): Changed arguments.
  14577. (checkLength): Changed arguments.
  14578. (checkPieceOffset): Removed.
  14579. (checkRange): New function.
  14580. (checkBitfield): Changed arguments.
  14581. (createPeerMessage): Removed.
  14582. (checkIntegrity): Removed.
  14583. (createHandshakeMessage): Changed arguments.
  14584. (createChokeMessage): New function.
  14585. (createUnchokeMessage): New function.
  14586. (createInterestedMessage): New function.
  14587. (createNotInterestedMessage): New function.
  14588. (createRequestMessage): New function.
  14589. (createCancelMessage): New function.
  14590. (createPortMessage): New function.
  14591. * src/PeerMessage.h
  14592. (id): Removed.
  14593. (index): Removed.
  14594. (begin): Removed.
  14595. (length): Removed.
  14596. (bitfield): Removed.
  14597. (bitfieldLength): Removed.
  14598. (block): Removed.
  14599. (blockLength): Removed.
  14600. (inProgress): New variable.
  14601. (cuid): New variable.
  14602. (peer): New variable.
  14603. (sendMessageQueue): New variable.
  14604. (logger): New variable.
  14605. (setBitfield): Removed.
  14606. (getBitfield): Removed.
  14607. (setBlock): Removed.
  14608. (getBlock): Removed.
  14609. (getBitfieldLength): Removed.
  14610. (getBlockLength): Removed.
  14611. (isInProgress): New function.
  14612. (toString): Made pure virtual.
  14613. (check): New function.
  14614. (send): New function.
  14615. (receivedAction): New function.
  14616. (getId): Made pure virtual.
  14617. (setId): Removed.
  14618. (getIndex): Removed.
  14619. (setIndex): Removed.
  14620. (getBegin): Removed.
  14621. (setBegin): Removed.
  14622. (getLength): Removed.
  14623. (setLength): Removed.
  14624. (getCuid): New function.
  14625. (setCuid): New function.
  14626. (getPeer): New function.
  14627. (setPeer): New function.
  14628. (getSendMessageQueue): New function.
  14629. (setSendMessageQueue): New function.
  14630. (ID): Removed.
  14631. * src/PeerMessage.cc
  14632. (setBitfield): Removed.
  14633. (setBlock): Removed.
  14634. (toString): Removed.
  14635. * src/TorrentMan.h
  14636. (getPieceLength): New function.
  14637. (getPieceLength): New function.
  14638. * src/SendMessageQueue.h
  14639. (REQUEST_TIME_OUT): New definition.
  14640. (RequestSlots): New definition.
  14641. (MessageQueue): New definition.
  14642. (requestSlotMan): Removed.
  14643. (pendingMessages): Removed.
  14644. (requestSlots): New variable.
  14645. (messageQueue): New variable.
  14646. (torrentMan): New variable.
  14647. (peerConnection): New variable.
  14648. (peer): New variable.
  14649. (piece): New variable.
  14650. (getNewPieceAndSendInterest): New function.
  14651. (createPeerMessage): New function.
  14652. (createHandshakeMessage): New function.
  14653. (send): Made private.
  14654. (setPeerMessageCommonProperty): New function.
  14655. (deleteAllRequestSlot): New function.
  14656. (deleteRequestMessageInQueue): New function.
  14657. (cancelAllRequest): Made private.
  14658. (cancelAllRequest): Made private.
  14659. (countRequestSlot): Made private.
  14660. (addPendingMessage): Removed.
  14661. (deletePendingPieceMessage): Removed.
  14662. (deletePendingRequestMessage): Removed.
  14663. (addMessage): New function.
  14664. (deletePieceMessageInQueue): New function.
  14665. (deleteTimeoutRequestSlot): Changed argument.
  14666. (deleteCompletedRequestSlot): Changed argument.
  14667. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  14668. (getCorrespondingRequestSlot): New function.
  14669. (countPendingMessage): Removed.
  14670. (countMessageInQueue): New function.
  14671. (getTorrentMan): New function.
  14672. (getPeerConnection): New function.
  14673. (hasDownloadPiece): New function.
  14674. (getDownloadPiece): New function.
  14675. (setDownloadPiece): New function.
  14676. (syncPiece): New function.
  14677. (sendMessages): New function.
  14678. (sendNow): New function.
  14679. (trySendNow): New function.
  14680. (abortPiece): New function.
  14681. (sendHandshake): New function.
  14682. (receiveMessage): New function.
  14683. (receiveHandshake): New function.
  14684. (createRequestMessage): New function.
  14685. (createCancelMessage): New function.
  14686. (createPieceMessage): New function.
  14687. (createHaveMessage): New function.
  14688. (createChokeMessage): New function.
  14689. (createUnchokeMessage): New function.
  14690. (createInterestedMessage): New function.
  14691. (createNotInterestedMessage): New function.
  14692. (createBitfieldMessage): New function.
  14693. (createKeepAliveMessage): New function.
  14694. * src/SendMessageQueue.cc
  14695. (SendMessageQueue): Removed requestSlotMan.
  14696. Instantiated peerConnection here.
  14697. (~SendMessageQueue): Removed requestSlotMan.
  14698. Added deletion of peerConnection and the contents of messageQueue.
  14699. (send): Updated according to the change of messageQueue.
  14700. (addPendingMessage): Renamed to addMessage.
  14701. (addMessage): New function.
  14702. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  14703. (deletePieceMessageInQueue): New function.
  14704. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  14705. (deleteRequestMessageInQueue): New function.
  14706. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  14707. here.
  14708. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  14709. (...) was moved here.
  14710. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  14711. moved here.
  14712. (deleteCompletedRequestSlot):
  14713. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  14714. (getCorrespondingRequestSlot):
  14715. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  14716. And renamed to getCorrespondingRequestSlot, correcting a typo.
  14717. (countPendingMessage): Renamed to countMessageInQueue.
  14718. (countMessageInQueue): New function.
  14719. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  14720. (receiveHandshake): New function.
  14721. (createHandshakeMessage): New function.
  14722. (receiveMessage): New function.
  14723. (createPeerMessage): New function.
  14724. (syncPiece): New function.
  14725. (getNewPieceAndSendInterest): New function.
  14726. (sendMessages): New function.
  14727. (sendNow): New function.
  14728. (trySendNow): New function.
  14729. (sendHandshake): New function.
  14730. (abortPiece): New function.
  14731. (getDownloadPiece): New function.
  14732. (getPeerMessageCommonProperty): New function.
  14733. (createRequestMessage): New function.
  14734. (createCancelMessage): New function.
  14735. (createPieceMessage): New function.
  14736. (createHaveMessage): New function.
  14737. (createChokeMessage): New function.
  14738. (createUnchokeMessage): New function.
  14739. (createInterestedMessage): New function.
  14740. (createNotInterestedMessage): New function.
  14741. (createBitfieldMessage): New function.
  14742. (createKeepAliveMessage): New function.
  14743. To add simple Content-Disposition support:
  14744. * src/HttpResponseCommand.h (determinFilename): New function.
  14745. * src/HttpResponseCommand.cc (executeInternal):
  14746. Use determinFilename(headers) instead of req->getFile() when comparing
  14747. filename.
  14748. (determinFilename): New function.
  14749. (handleDefaultEncoding): Use determinFilename(headers) instead of
  14750. req->getFile().
  14751. (handleOtherEncoding): Use determinFilename(headers) instead of
  14752. req->getFile().
  14753. * src/Util.h (getContentDispositionFilename): New function.
  14754. * src/Util.cc (getContentDispositionFilename): New function.
  14755. * src/LogFactory.h (release): New function.
  14756. * src/LogFactory.cc (release): New function.
  14757. To fix a bug that causes out-of-bound exception when HTTP status
  14758. line is wrong:
  14759. * src/HttpConnection.cc (receiveResponse): Added a check for header
  14760. size.
  14761. * src/common.h (Deleter): New class.
  14762. * src/SegmentMan.cc
  14763. (~SegmentMan): Added deletion of splitter and diskWriter.
  14764. * src/DownloadEngine.h
  14765. (Commands): Use deque.
  14766. (clearQueue): New function.
  14767. * src/DownloadEngine.cc
  14768. (~DownloadEngine): Added deletion of segmentMan.
  14769. (cleanQueue): New function.
  14770. * src/TorrentDownloadEngine.h
  14771. (TorrentDownloadEngine): The implementation was moved to
  14772. TorrentDownloadEngine.cc.
  14773. (~TorrentDownloadEngine): The implementation was moved to
  14774. TorrentDownloadEngine.cc.
  14775. * src/TorrentDownloadEngine.cc
  14776. (~TorrentDownloadEngine): Added deletion of torrentMan.
  14777. * src/main.cc
  14778. (clearRequest): Removed.
  14779. (handler): Added deletion of e.
  14780. (torrentHandler): Added deletion of te.
  14781. (main): Do not share splitter.
  14782. Use Deleter instead of clearRequest.
  14783. Deletion of classes were updated.
  14784. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14785. * src/main.cc (main): Fixed typo.
  14786. * src/message.h: Fixed typo.
  14787. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  14788. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14789. To add --select-file command-line option:
  14790. * src/Util.cc
  14791. (unfoldRange): New function.
  14792. (getNum): New function.
  14793. (unfoldSubRange): New function
  14794. * src/main.cc
  14795. (showUsage): Added help message.
  14796. (main): Added --select-file command-line option. Updated the layout of
  14797. file listing.
  14798. * src/common.h
  14799. (Integers): New definition.
  14800. * src/SocketCore.cc
  14801. (writeData): Removed timeout argument.
  14802. (readData): Removed timeout argument.
  14803. (peekData): Removed timeout argument.
  14804. * src/Socket.cc
  14805. (writeData): Removed timeout argument.
  14806. (readData): Removed timeout argument.
  14807. (peekData): Removed timeout argument.
  14808. * Release 0.4.1
  14809. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14810. To deploy upload rate based choking algorithm:
  14811. * src/PeerInteractionCommand.cc
  14812. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  14813. peer currently used.
  14814. (decideChoking): Deleted the choke/unchoke decision algorithm when
  14815. download completes. Simplified.
  14816. (receiveMessage): Updated.
  14817. * src/TorrentMan.h
  14818. (activePeers): New variable.
  14819. (addActivePeer): New function.
  14820. (getActivePeers): New function.
  14821. (deleteActivePeer): New function.
  14822. * src/TorrentMan.cc
  14823. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  14824. * src/PeerAbstractCommand.cc
  14825. (onAbort): Use peer->resetStatus().
  14826. * src/main.cc
  14827. (PeerChokeCommand.h): Included.
  14828. (main): Added the instance of ChokingCommand to the command queue.
  14829. * src/Peer.h
  14830. (amChoking): Renamed from amChocking
  14831. (chokingRequired): New variable.
  14832. (optUnchoking): New variable.
  14833. (deltaUpload): New variable.
  14834. (deltaDownload): New variable.
  14835. (addDeltaUpload): New function.
  14836. (resetDeltaUpload): New function.
  14837. (addDeltaDownload): New function.
  14838. (resetDeltaDownload): New function.
  14839. (addPeerUpload): Added a call to addDeltaUpload.
  14840. (addPeerDownload): Added a call to addDeltaDownload.
  14841. * src/Peer.cc
  14842. (shouldBeChoking): Renamed from shouldChoke.
  14843. (resetStatus): New function.
  14844. * src/PeerChokeCommand.h: New class.
  14845. * src/PeerChokeCommand.cc: New class.
  14846. To add lazy upload speed limiter:
  14847. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  14848. statistics calculation to TorrentDownloadEngine.
  14849. * src/TorrentConsoleDownloadEngine.cc
  14850. (sendStatistics): Renamed from printStatistics.
  14851. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  14852. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  14853. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  14854. * src/TorrentDownloadEngine.h: Added the variables for statistics
  14855. calculation.
  14856. (sendStatistics): New function as pure virtual function.
  14857. (getUploadSpeed): New function.
  14858. * src/TorrentDownloadEngine.cc
  14859. (initStatistics): New function.
  14860. (calculateSpeed): New function.
  14861. (calculateStatistics): New function.
  14862. * src/SendMessageQueue.h
  14863. (uploadLength): New variable.
  14864. (send): Added an argument.
  14865. (setUploadLimit): New function.
  14866. (getUploadLimit): New function.
  14867. * src/SendMessageQueue.cc
  14868. (send): Added upload speed limiter.
  14869. * src/prefs.h
  14870. (PREF_UPLOAD_LIMIT): New definition.
  14871. * src/PeerInteractionCommand.cc
  14872. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  14873. * src/main.cc
  14874. (main): Added --upload-limit option
  14875. For bug fixes:
  14876. * src/main.cc
  14877. (showUsage): Corrected --listen-port help
  14878. Other changes:
  14879. * src/TorrentMan.cc
  14880. (getPeer): Return nullPeer if connection is grather than
  14881. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  14882. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14883. To add some useful information to the exception message:
  14884. * src/SocketCore.cc : Updated messages.
  14885. * src/SegmentMan.cc :
  14886. * src/TorrentMan.cc : Updated messages.
  14887. * src/MultiDiskWriter.cc : Updated messages.
  14888. * src/Util.cc : Updated messages.
  14889. * src/AbstractDiskWriter.cc : Updated messages.
  14890. * src/PreAllocationDiskWriter.cc : Updated messages.
  14891. * src/message.cc : Added new messages. Updated some messages.
  14892. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  14893. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  14894. Updated threshold from 30 to 15.
  14895. * src/AbstractDiskWriter.h (filename): New variable.
  14896. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  14897. (createFile): Assigned filename.
  14898. * src/main.cc: Updated the help message for http-auth-scheme.
  14899. * Release 0.4.0
  14900. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14901. To add TrackerUpdateCommand with which replaces
  14902. CompactTrackerResponseProcessor:
  14903. * src/TrackerWatcherCommand.h (req): Removed.
  14904. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  14905. if the number of peer connections are less than 30.
  14906. * src/ByteArrayDiskWriter.h (readData): Implemented.
  14907. * src/SegmentMan.h (diskWriter): New function.
  14908. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  14909. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  14910. (main): Use TrackerUpdateCommand.
  14911. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  14912. (req): New variable.
  14913. (setTrackerResponseProcessor): Removed.
  14914. (getTrackerResponseProcessor): Removed.
  14915. (processTrackerResponse): Removed.
  14916. * src/DownloadEngine.h (diskWriter): Removed.
  14917. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  14918. to torrentMan->processTrackerResponse().
  14919. To add Util::expandBuffer:
  14920. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  14921. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  14922. * src/Util.h (expandBuffer): New function.
  14923. To fix the bug that causes segmentation fault when "-l ." is specified
  14924. in command-line option:
  14925. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  14926. (openFile): New function.
  14927. (closeFile): New function.
  14928. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  14929. (~SimpleLogger): Call closeFile();
  14930. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  14931. * src/main.cc (main): Added a check to see logger is configured
  14932. properly.
  14933. To enable HTTP authentication without specifying "--http-auth-scheme"
  14934. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  14935. * src/HttpConnection.cc (createRequest): Send Authorization header
  14936. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  14937. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  14938. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  14939. * src/Peer.cc (shouldChoke): Updated algorithm.
  14940. * src/message.h (EX_AUTH_FAILED): New definition.
  14941. (EX_FILE_OPEN): New definition.
  14942. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  14943. if status == 401.
  14944. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  14945. if req->isTorrent == true.
  14946. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  14947. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  14948. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  14949. (createFile): Updated message.
  14950. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14951. To add a readout of estimated remaining time to normal HTTP/FTP
  14952. downloads:
  14953. * src/ConsoleDownloadEngine.h (startup): New variable.
  14954. (startupLength): New variable.
  14955. (isStartupLengthSet): New variable.
  14956. (avgSpeed): New variable.
  14957. (eta): New variable.
  14958. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  14959. estimated remaining time.
  14960. (initStatistics): Initialized newly added variables.
  14961. (calculateStatistics): Calculate average speed and estimated remaining
  14962. time.
  14963. To decouple TorrentDownloadEngine from HttpResponseCommand:
  14964. * src/TrackerDownloadCommand.h: Removed.
  14965. * src/TrackerDownloadCommand.cc: Removed.
  14966. * src/TrackerInitCommand.h: Removed.
  14967. * src/TrackerInitCommand.cc: Removed.
  14968. * src/TrackerUpdateCommand.h: Removed.
  14969. * src/TrackerUpdateCommand.cc: Removed.
  14970. * src/TrackerWatcherCommand.cc (execute): The construction of request
  14971. url written in TrackerInitCommand was moved here. Do not create
  14972. tracker request command if torrentMan->trackers != 0.
  14973. * src/CompactTrackerResponseProcessor.h: New class.
  14974. * src/CompactTrackerResponseProcessor.cc: New class.
  14975. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  14976. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  14977. Decoupled TorrentDownloadEngine from this.
  14978. * src/SegmentMan.h (init): New function.
  14979. * src/SegmentMan.cc (init): New function.
  14980. * src/TorrentMan.h (responseProcessor): New variable.
  14981. (trackers): New variable.
  14982. (setTrackerResponseProcessor): New function.
  14983. (getTrackerResponseProcessor): New function.
  14984. (processTrackerResponse): New function.
  14985. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  14986. (processTrackerResponse): New function.
  14987. * src/main.cc (main): Use ByteArrayDiskWriter and
  14988. CompactTrackerResponseProcessor.
  14989. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  14990. processTrackerResponse().
  14991. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  14992. readout.
  14993. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  14994. which indicates download has completed.
  14995. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  14996. (closeFile): fd >= 0, not fd > 0
  14997. * src/main.cc (main): Added short cut for show-files.
  14998. Added short cut for torrent-file.
  14999. Added new command-line option listen-port.
  15000. Updated i18n messages.
  15001. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15002. To add LogFactory which creates singleton logger:
  15003. * src/LogFactory.h: New class.
  15004. * src/LogFactory.cc: New class.
  15005. * src/Command.h (logger): New variable.
  15006. (Constructor): Use LogFactory.
  15007. * src/AbstractCommand.cc: Use Command::logger
  15008. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  15009. Use LogFactory.
  15010. * src/SegmentSplitter.h : Made logger protected.
  15011. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  15012. * src/SegmentMan.cc (Constructor): Use LogFactory.
  15013. * src/DownloadEngine.h : Made logger protected.
  15014. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  15015. * src/PeerInteractionCommand.cc : Use Command::logger.
  15016. * src/HttpResponseCommand.cc : Use Command::logger.
  15017. * src/SegmentMan.h : Made logger private.
  15018. * src/TorrentMan.h : Made logger private.
  15019. * src/TorrentMan.cc : Use LogFactory.
  15020. * src/FtpNegotiateCommand.cc : Use Command::logger.
  15021. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  15022. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  15023. Use LogFactory.
  15024. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  15025. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  15026. Use LogFactory.
  15027. * src/DownloadCommand.cc : Use Command::logger.
  15028. * src/PeerAbstractCommand.cc : Use Command::logger.
  15029. * src/PeerListenCommand.cc : Use Command::logger.
  15030. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  15031. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  15032. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  15033. * src/TrackerWatcherCommand.cc : Use Command::logger.
  15034. * src/TrackerUpdateCommand.cc : Use Command::logger.
  15035. * src/TrackerDownloadCommand.cc : Use Command::logger.
  15036. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  15037. Use LogFactory.
  15038. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  15039. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  15040. Use LogFactory.
  15041. * src/main.cc (main): Use LogFactory.
  15042. * src/DiskAdaptor.h (logger): New variable.
  15043. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  15044. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  15045. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15046. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  15047. parameter to a tracker request.
  15048. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  15049. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  15050. * src/main.cc (setSignalHander): New function.
  15051. (main): Added a handler for SIGTERM.
  15052. (handler): Updated message.
  15053. (torrentHandler): Updated message.
  15054. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15055. * src/TorrentConsoleDownloadEngine.cc
  15056. (onPartialDownloadingCompletes): Renamed as
  15057. onSelectiveDownloadingCompletes.
  15058. (onSelectiveDownloadingCompletes): Updated message.
  15059. To add DiskAdaptor which abstract DiskWriter family:
  15060. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  15061. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  15062. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  15063. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  15064. MultiDiskAdaptor.h.
  15065. (readFileEntry): Changed its arguments.
  15066. (setup): setupDiskWriter is merged into this function.
  15067. (setupDiskWriter): Removed.
  15068. (setFileFilter): New function.
  15069. (readFileEntryFromMetaInfoFile): Updated according to the changes
  15070. made in readFileEntry.
  15071. (getFilePath): Removed.
  15072. (getTempFilePath): Removed.
  15073. (getSegmentFilePath): Updated due to the removal of getFilePath.
  15074. (fixFilename): Removed.
  15075. (copySingleFile): Removed.
  15076. (splitMultiFile): Removed.
  15077. (deleteTempFile): Removed.
  15078. (setFileEntriesToDownload): Removed.
  15079. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  15080. (isSelectiveDownloadingMode): New function.
  15081. (setAllMultiFileRequestedState): Removed.
  15082. (finishPartialDownloadingMode): Renamed as
  15083. finishSelectiveDownloadingMode.
  15084. (finishSelectiveDownloadingMode): New function.
  15085. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  15086. (getSelectedTotalLength): New function.
  15087. (onDownloadComplete): Use diskAdaptor.
  15088. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  15089. (Range): Removed.
  15090. (setMultiFileEntries): Renamed as setFileEntries.
  15091. (setFileEntries): New function.
  15092. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  15093. (pieceLength): New variable.
  15094. * src/main.cc (printDownloadCompeleteMessage): New function.
  15095. (torrentHandler): Use diskAdaptor instead of diskWriter.
  15096. (main): Renamed torrent-show-files to show-files.
  15097. Rewritten file contents listing.
  15098. * src/TorrentMan.h (FileEntry): Removed.
  15099. (multiFileTopDir): Removed.
  15100. (multiFileEntries): Removed.
  15101. (diskWriter): Removed.
  15102. (diskAdaptor): New variable.
  15103. * src/DefaultDiskWriter.h (totalLength): New variable.
  15104. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  15105. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  15106. diskWriter.
  15107. * src/TorrentConsoleDownloadEngine.h
  15108. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  15109. (partialTotalLength): Renamed as selectedTotalLength.
  15110. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  15111. openExistingFile, otherwise call initAndOpenFile.
  15112. (closeFile): fd > 0, not fd != 0.
  15113. * src/DirectDiskAdaptor.h: New class.
  15114. * src/DirectDiskAdaptor.cc: New class.
  15115. * src/MultiDiskAdaptor.h: New class.
  15116. * src/MultiDiskAdaptor.cc: New class.
  15117. * src/CopyDiskAdaptor.h: New class.
  15118. * src/CopyDiskAdaptor.cc: New class.
  15119. * src/DiskAdaptor.h: New class.
  15120. * src/DiskAdaptor.cc: New class.
  15121. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  15122. (PREF_SHOW_FILES): New definition.
  15123. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15124. To add the ability to download multi torrent into respective files
  15125. directly:
  15126. * src/DiskWriter.h (openFile): New function.
  15127. (seek): Removed.
  15128. * src/MultiDiskWriter.h: New class.
  15129. * src/MultiDiskWriter.cc: New class.
  15130. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  15131. protected.
  15132. (openFile): New function.
  15133. * src/AbstractDiskWriter.cc (openFile): New function.
  15134. * src/prefs.h (V_FALSE): New definition.
  15135. (PREF_DIRECT_FILE_MAPPING): New definition.
  15136. * src/TorrentMan.h (setupDiskWriter): New function.
  15137. (setAllMultiFileRequestedState): New function.
  15138. (onDownloadComplete): New function.
  15139. * src/TorrentMan.cc : Included MultiDiskWriter.h
  15140. (setupDiskWriter): New function.
  15141. (getFilePath): Updated.
  15142. (getTempFilePath): Updated.
  15143. (getSegmentFilePath): Updated.
  15144. (fixFilename): Updated.
  15145. (deleteTempFile): Updated.
  15146. (setAllMultiFileRequestedState): New function.
  15147. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  15148. (finishPartialDownloadingMode): Reset requested flags.
  15149. (onDownloadComplete): New function.
  15150. * src/main.cc: Added --direct-file-mapping option.
  15151. Use TorrentMan::setupDiskWriter().
  15152. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  15153. onDownloadComplete().
  15154. To fix ETA bug:
  15155. * src/Util.h (difftvsec): New function.
  15156. * src/Util.cc (difftvsec): New function.
  15157. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  15158. type of "elapsed" instead of long long int.
  15159. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  15160. The updates of statistics takes place every 1 seconds.
  15161. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  15162. (calculateSpeed): Changed its argument signature.
  15163. * src/PeerMessage.cc (toString): Fixed message.
  15164. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15165. To print ETA:
  15166. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  15167. completion handling when dealing with
  15168. TorrentMan::isPartialDownloadingMode() == true.
  15169. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  15170. New function.
  15171. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  15172. (sessionDownloadLength): New variable.
  15173. (avgSpeed): New variable.
  15174. (eta): New variable.
  15175. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  15176. new variables: eta, avgSpeed, startup.
  15177. (calculateSpeed): Calculate average speed and ETA.
  15178. (printStatistics): Added ETA.
  15179. * src/Util.h (secfmt): New function.
  15180. * src/Util.cc (secfmt): New function.
  15181. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15182. To detect "keep alive" flooding:
  15183. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  15184. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  15185. variable: keepAliveCount.
  15186. (detectMessageFlooding): Added "keep alive" flooding detection.
  15187. (receiveMessage): Increase keepAliveCount when "keep alive" message
  15188. received.
  15189. To add the ability to download only specified files in multi-file
  15190. torrent:
  15191. * src/BitfieldMan.h (filterBitfield): New variable.
  15192. (filterEnabled): New variable.
  15193. (setFilterBit): New function.
  15194. (enableFilter): New function.
  15195. (disableFilter): New function.
  15196. (isFilterEnabled): New function.
  15197. (getFilteredTotalLength): New function.
  15198. (getCompletedLength): New function.
  15199. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  15200. filterBitfield, filterEnabled.
  15201. (CopyConstructor): Added filterBitfield and filterEnabled.
  15202. (operator==): Added filterBitfield and filterEnabled.
  15203. (Destructor): Added filterBitfield.
  15204. (getMissingIndex): Use filterBitfield.
  15205. (getMissingUnusedIndex): Use filterBitfield.
  15206. (getFirstMissingUnusedIndex): Use filterBitfield.
  15207. (getFirstMissingUnusedIndex): Use filterBitfield.
  15208. (getAllMissingIndexes): Use filterBitfield.
  15209. (countMissingBlock): Use filterBitfield.
  15210. (countBlock): Use filterBitfield.
  15211. (setBitInternal): Added new argument on.
  15212. (setUseBit): Use setBitInternal.
  15213. (unsetUseBit): Use setBitInternal.
  15214. (setBit): Use setBitInternal.
  15215. (unsetBit): Use setBitInternal.
  15216. (isAllBitSet): Use filterBitfield.
  15217. (setFilterBit): New function.
  15218. (addFilter): New function.
  15219. (enableFilter): New function.
  15220. (disableFilter): New function.
  15221. (clearFilter): New function.
  15222. (isFilterEnabled): New function.
  15223. (getFilteredTotalLength): New function.
  15224. (getCompletedLength): New function.
  15225. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  15226. Initalized newly added variables.
  15227. [FileEntry](offset): New variable.
  15228. [FileEntry](extracted): New variable.
  15229. [FileEntry](requested): New variable.
  15230. (readFileEntry): New function.
  15231. (option): New variable.
  15232. (splitMultiFile): Removed const qualifier.
  15233. (fixFilename): Removed const qualifier.
  15234. (readFileEntryFromMetaInfoFile): New function.
  15235. (finishPartialDownloadingMode): New function.
  15236. (isPartialDownloadingMode): New function.
  15237. (setFileEntriesToDownload): New function.
  15238. (getCompletedLength): New function.
  15239. (getPartialTotalLength): New function.
  15240. * src/TorrentMan.cc (readFileEntry): New function.
  15241. (setup): Use readFileEntry. If no-preallocation option is specified,
  15242. use DefaultDiskWriter.
  15243. (readFileEntryFromMetaInfoFile): New function.
  15244. (fixFilename): Removed const qualifier.
  15245. (splitMultiFile): Removed const qualifier.
  15246. (setFileEntriesToDownload): New function.
  15247. (isPartialDownloadingMode): New function.
  15248. (finishPartialDownloadingMode): New function.
  15249. (getCompletedLength): New function.
  15250. (getPartialTotalLength): New function.
  15251. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  15252. New variable.
  15253. (partialTotalLength): New variable.
  15254. (downloadLength): New variable.
  15255. (totalLength): New variable.
  15256. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  15257. Added log.
  15258. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  15259. partialTotalLength, downloadLength, totalLength.
  15260. (calculate): Calculate downloadLength and totalLength.
  15261. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  15262. * src/main.cc (addCommand): Changed argument signature.
  15263. (main): Added new variable: args. Added new option "torrent-show-files"
  15264. "no-preallocation". Usage is not updated yet.
  15265. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15266. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  15267. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15268. Attempt to add the ability to listing file entries in a .torrent file.
  15269. This feature is not yet complete.
  15270. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  15271. * src/TorrentMan.cc (getMultiFileEntries): New function.
  15272. (getName): New function.
  15273. * src/TorrentMan.h (getMultiFileEntries): New function.
  15274. (getName): New function.
  15275. * src/main.cc (main): Use above 2 funtion.
  15276. * Release 0.3.2
  15277. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15278. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  15279. (detectMessageFlooding): Updated threshold value.
  15280. (checkLongTimePeerChoking): Updated timeout value.
  15281. (getNewPieceAndSendInterest): Added debug log.
  15282. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  15283. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  15284. (getPeer): Updated.
  15285. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  15286. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  15287. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  15288. is localhost.
  15289. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  15290. * src/PendingMessage.cc (processMessage): Not to send piece message
  15291. if peer is not interested in the pieces localhost has.
  15292. * src/Peer.cc (shouldChoke): Updated.
  15293. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  15294. * src/Util.cc (isPowerOf): New function.
  15295. * src/Util.h (isPowerOf): New function.
  15296. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  15297. whether or not it is power of 2.
  15298. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15299. Added new class SendMessageQueue that includes PendingMessages and
  15300. RequestSlotMan.
  15301. * src/SendMessageQueue.h: New class.
  15302. * src/SendMessageQueue.cc: New class.
  15303. * src/PendingMessage.h: Added new member variable blockIndex and its
  15304. accessors.
  15305. (createRequestMessage): Updated.
  15306. * src/PendingMessage.cc (createRequestMessage): Updated.
  15307. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  15308. SendMessageQueue.
  15309. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  15310. (receiveMessage): Updated with SendMessageQueue.
  15311. (deletePendingPieceMessage): Removed.
  15312. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  15313. (sendInterest): Updated with SendMessageQueue.
  15314. (createRequestPendingMessage): Updated with SendMessageQueue.
  15315. (sendMessages): Updated with SendMessageQueue.
  15316. (onAbort): Updated with SendMessageQueue.
  15317. (keepAlive): Updated with SendMessageQueue.
  15318. (beforeSocketCheck): Updated SendMessageQueue.
  15319. * src/PeerInteractionCommand (sendMessages): Shuffle
  15320. missingBLockIndexes before using it.
  15321. Added its own timeout for peer connection.
  15322. * src/PeerAbstractCommand.h: Added member variable timeout and its
  15323. setter.
  15324. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  15325. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15326. Added setTimeout() call.
  15327. (executeInternal): Added setTimeout() call.
  15328. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  15329. Added timeout.
  15330. (isTimeoutDetected): Updated.
  15331. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  15332. option.
  15333. Added *simple* message flooding checker.
  15334. * src/PeerInteractionCommand.cc (executeInternal):
  15335. Added detectMessageFlooding() call.
  15336. (detectMessageFlooding): New function.
  15337. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  15338. (beforeSocketCheck): Added detectMessageFlooding() call.
  15339. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  15340. chokeUnchokeCount, haveCount, detectMessageFlooding().
  15341. Removed deletePendingPieceMessage(), getRequestSlot(),
  15342. deleteRequestSlot(), deleteAllRequestSlot().
  15343. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  15344. Added checkLongTimePeerChoking() call.
  15345. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  15346. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  15347. if duplicate == false.
  15348. The parameter "uploaded" and "downloaded" in the tracker request are
  15349. the size since the client sent the "started" event to the tracker.
  15350. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  15351. uploaded size to preDownloadedSize, preUploadedSize respectively.
  15352. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  15353. getSessionDownloadedSize(), getSessionUploadedSize().
  15354. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  15355. getSessionUploadedSize() instead of getDownloadedSize(),
  15356. getUploadedSize().
  15357. * src/PendingMessage.cc (processMessage): Do not send request message
  15358. if the peer is choking the client.
  15359. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  15360. less than interval.
  15361. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15362. * configure.in: Added gnutls support. Added several CPP macros.
  15363. * m4/openssl.m4: Added.
  15364. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  15365. readData(), peekData(). Added gnutls support.
  15366. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  15367. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  15368. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  15369. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  15370. Instead, added a check for whether setup method has executed
  15371. successfully.
  15372. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  15373. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  15374. * src/Makefile.am: Updated.
  15375. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  15376. using whether OpenSSL or gcrypt, depending on the result of configure
  15377. script.
  15378. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  15379. messageDigest.h.
  15380. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  15381. * src/PeerListenCommand.cc: Added log about port binded successfully.
  15382. Fixed memory leak.
  15383. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  15384. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  15385. Removed instantiation of TrackerInitCommand. Instead,
  15386. TrackerWatcherCommand is instantiated and pushed to the command queue.
  15387. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  15388. ENABLE_SSL.
  15389. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  15390. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  15391. If a piece is already acquired by another command, delete the request
  15392. slots for the piece.
  15393. * src/TrackerUpdateCommand.cc (execute):
  15394. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  15395. Added a check whether peer list is null.
  15396. Fixed the bug that causes sending completed event to the tracker
  15397. several times.
  15398. * src/TrackerInitCommand.cc (execute):
  15399. Fixed the bug that causes sending completed event to the tracker
  15400. several times.
  15401. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  15402. by using messageDigest.h.
  15403. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15404. * PeerConnection.cc: Replaced log message "keep-alive" with
  15405. "keep alive".
  15406. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  15407. localhost long time.
  15408. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  15409. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  15410. at most 100 failure entry from the list. If with duplicate = false,
  15411. MAX_PEER_LIST is not checked.
  15412. * PeerListenCommand.cc: Fixed the argument order of log message.
  15413. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15414. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  15415. Added warn().
  15416. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  15417. Implemented warn().
  15418. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  15419. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15420. * Request.h: Added AFTER_COMPLETED event.
  15421. * TorrentDownloadEngine.cc: Prints "Download complete" message
  15422. instead of downloaded size and progress(%) after download completes.
  15423. * PeerInteractionCommand.cc: After download completes, sends unchoke
  15424. message to the peer if it is interested in what localhost has
  15425. downloaded.
  15426. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  15427. destination instead of just renaming it.
  15428. * TorrentMan.cc: Added deleteTempFile().
  15429. * PeerAbstractCommand.cc: do not stop execution after download
  15430. completes. This makes localhost a seeder.
  15431. * Util.{h,cc}: Added fileCopy().
  15432. * PeerListenCommand.cc: do not stop execution after download completes.
  15433. This makes localhost a seeder.
  15434. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  15435. Added TorrentMan::deleteTempFile() to torrentHandler.
  15436. Initialized the variable dir as ".".
  15437. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  15438. Deleted renameSingleFile().
  15439. Added copySingleFile(), deleteTempFile().
  15440. * DownloadEngine.h: Added virtual function afterEachIteration().
  15441. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  15442. in onEndOfRun() to afterEachIteration().
  15443. In onEndOfRun(), changed if condition to check whether filenameFixed is
  15444. true.
  15445. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  15446. In rangedFileCopy(), added try-catch block to properly close file
  15447. descriptors.
  15448. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  15449. Added afterEachIteration(), isFilenameFixed().
  15450. * Peer.cc: Changed choking strategy.
  15451. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  15452. * TrackerInitCommand.cc: Send completed event only once.
  15453. * DownloadEngine.cc: Added a call to afterEachIteration().
  15454. * TrackerUpdateCommand.cc: Do not stop execution after download
  15455. completes.
  15456. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  15457. connect the peers at most MAX_PEER_UPDATE when a peer list is
  15458. received from a tracker.
  15459. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  15460. Decreased the number of failure peers to delete to 0(just comment out
  15461. the line).
  15462. * Release 0.3.1
  15463. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15464. * PeerInteractionCommand.cc: added a call to
  15465. TorrentMan::unadvertisePiece in Destructor.
  15466. * PeerInteractionCommand.cc: make have message sent immediately
  15467. if the size of pending message queue is zero.
  15468. * TorrentMan.cc: set the maximum size of peer list to 250.
  15469. * TorrentMan.h: changed the container type of Peers and UsedPieces
  15470. to deque.
  15471. * Util.cc: fixed rangedFileCopy.
  15472. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  15473. to Constructor. Also, moved digest cleanup to Destructor.
  15474. * MetaFileUtil.cc: fixed memory leak
  15475. * replaced std::vector with std::deque.
  15476. * AbstractCommand.cc: casted timeout value to long long int.
  15477. * ChunkedEncoding.cc: fixed memory leak.
  15478. * PeerInteractionCommand.cc: casted timeout value to long long int.
  15479. * SleepCommand.cc: casted timeout value to long long int.
  15480. * Data.cc: fixed memory leak.
  15481. * Data.cc: fixed toLLInt().
  15482. * BitfieldMan.cc: fixed memory leak.
  15483. * TorrentMan.cc: initialized storeDir to ".".
  15484. * TorrentMan.cc: fixed memory leak.
  15485. * TorrentMan.cc: corrected file paths of splitted files.
  15486. * PeerAbstractCommand.cc: casted timeout to long long int.
  15487. * main.cc: added delete(req) and delete(te->diskWriter).
  15488. * RequestSlot.cc: casted timeout value to long long int.
  15489. * Request.cc: fixed memory leak.
  15490. * PendingMessage.cc: make HAVE messages sent only when peer does not
  15491. have the piece.
  15492. * Peer.{h,cc}: added hasPiece(int index).
  15493. * main.cc: corrected addCommand.
  15494. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15495. * BitTorrent protocol support added.
  15496. * Release 0.3.0
  15497. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15498. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  15499. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15500. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  15501. decoding did not work properly.
  15502. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15503. * DownloadEngine.h: included sys/time.h
  15504. * DownloadEngine.cc: remove sys/time.h
  15505. * Makefile.am (SUBDIRS): Add intl.
  15506. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  15507. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15508. * main.cc: correct help message for --http-auth-scheme.
  15509. * main.cc: changed e-mail address for bug reports.
  15510. * ja.po: added japanese translation.
  15511. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15512. * SimpleLogger.cc: flush log file instead of stdout.
  15513. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15514. * main.cc: Fixed command-line option: max-tries
  15515. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  15516. does not equal to seg.sp.
  15517. * DownloadCommand.cc: If EOF is got from the server and the total size
  15518. of file is not zero, then throw DlRetryEx.
  15519. * main.cc: Set the minium value of min-segment-size to 1024.
  15520. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  15521. fails because of a regression since 0.2.0 release.
  15522. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15523. * HttpConnection.cc:
  15524. * common.h: defined the user agent name as macro
  15525. * DownloadEngine.{h, cc}:
  15526. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  15527. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  15528. * main.cc: Download complete/abort message is now generated by main.
  15529. * Makefile.am (SUBDIRS): Add m4.
  15530. (ACLOCAL_AMFLAGS): New variable.
  15531. (EXTRA_DIST): New variable.
  15532. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  15533. * gettext: added gettext functionality
  15534. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15535. * AbstractCommand.cc:
  15536. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  15537. unregister its cuid from SegmentMan.
  15538. * DownloadEngine.cc: .aria2 file was written when a downloading
  15539. failed with errors.
  15540. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  15541. Added "User-Agent" header to CONNECT proxy request.
  15542. Fixed "Proxy-Authorization" header. Now proxy authorization works
  15543. properly.
  15544. * Logger.h:
  15545. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  15546. * ChunkedEncoding.cc: Added #include directive for strings.h
  15547. * Release 0.2.1
  15548. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15549. * Util.{h,cc}: added startsWith().
  15550. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  15551. Util::endsWith().
  15552. * SocketCore.cc: struct addrinfo is now zero-initialized.
  15553. * common.h: added #include directive of limit.h.
  15554. * DownloadEngine.cc: added #include directive of sys/time.h and
  15555. algorithm.
  15556. * Exception.h: added #include directive of stdio.h.
  15557. * AbstractCommand.h: added #include directive of sys/time.h.
  15558. * DownloadCommand.h: added #include directive of sys/time.h.
  15559. * *.h: added #include directive of common.h to all base classes.
  15560. subclasses' one was removed.
  15561. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  15562. does not define these macros.
  15563. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15564. * Release 0.2.0
  15565. * main.cc:
  15566. * HttpInitiateConnectionCommand.{h,cc}:
  15567. * prefs.h:
  15568. * HttpConnection.{h,cc}: added --http-proxy-method option.
  15569. We can now use GET command in http proxy.
  15570. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15571. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  15572. that splits slowest segment of SegmentMan::commands vector.
  15573. This is the default split algorithm of aria2.
  15574. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  15575. that splits first segment of SegmentMan::commands vector.
  15576. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  15577. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  15578. * Segment.h:
  15579. * SegmentMan.cc: Added speed field to Segment.h
  15580. * main.cc: -s option now affects all URLs in command-line arguemtns.
  15581. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  15582. * message.h: Change file size related %d to %lld.
  15583. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15584. * FtpInitiateConnectionCommand.{h,cc}:
  15585. * FtpNegotiationCommand.{h,cc}:
  15586. * FtpDownloadCommand.{h,cc}:
  15587. * FtpConnection.{h,cc}: Added FTP support
  15588. * SimpleLogger.cc: Log message now includes time information.
  15589. * main.cc: The value of --http-auth-scheme option is chagned from
  15590. 'BASIC' to 'basic'
  15591. * main.cc: Added --timeout command-line option.
  15592. * main.cc: Added --min-segment-size command-line option.
  15593. * main.cc: Added --max-retries command-line option.
  15594. * prefs.h: option string constants are now defined in prefs.h
  15595. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15596. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  15597. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  15598. with version 0.1.0's one.
  15599. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15600. * configure.in: Added --enable-ssl option to configure script.
  15601. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  15602. cannot permit absoluteURI as Request-URI.
  15603. * HttpConnection.cc: Added Referer support.
  15604. * main.cc: Added referer command-line option.
  15605. * main.cc: Added rety-wait command-line option.
  15606. * Exception.h: Fixed formating bug in Exception::setMsg()
  15607. * SocketCore.{h,cc}:
  15608. * Socket.{h, cc}:
  15609. * Request.cc:
  15610. * InitiateConnectionCommandFactory.cc:
  15611. * HttpRequestCommand.cc: Added HTTPS support.
  15612. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  15613. for SocketCore.
  15614. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  15615. size is wrong
  15616. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  15617. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  15618. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  15619. * Release 0.1.0