ChangeLog 594 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948
  1. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Generate peer ID after SimpleRandomizer is initialized.
  3. * src/main.cc
  4. * src/option_processing.cc
  5. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6. Removed unused method argument.
  7. * src/CreateRequestCommand.cc
  8. * src/RequestGroup.cc
  9. * src/RequestGroup.h
  10. * src/RequestGroupMan.cc
  11. * src/TrackerWatcherCommand.cc
  12. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  13. Made URI reusing function work.
  14. * src/CreateRequestCommand.cc
  15. * src/FileEntry.cc
  16. * src/FileEntry.h
  17. * test/FileEntryTest.cc
  18. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  19. Add formerly fastest PeerStat's sessionDownloadLength to new
  20. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  21. bytes in a session.
  22. * src/PeerStat.cc
  23. * src/SegmentMan.cc
  24. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  25. If pipelining is enabled, we can always pool socket.
  26. * src/HttpDownloadCommand.cc
  27. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  28. In a single file download, file size becomes known just after
  29. downloading, set total length to FileEntry object when download
  30. completed.
  31. * src/DownloadCommand.cc
  32. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  33. Use std::vector::reserve() for fileEntries and pieceHashes in
  34. bittorrent_helper
  35. * src/bittorrent_helper.cc
  36. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  37. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  38. Removed hidden option PREF_RESET_URI.
  39. * src/AbstractCommand.cc
  40. * src/OptionHandlerFactory.cc
  41. * src/prefs.cc
  42. * src/prefs.h
  43. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  44. Removed unused variable/function.
  45. * src/PeerStat.h
  46. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  47. Show first URL in Download Results if file path is not available.
  48. * src/FileEntry.h
  49. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  50. Throw exception if file path doesn't exist in FTP URL.
  51. * src/InitiateConnectionCommandFactory.cc
  52. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  53. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  54. * src/BitfieldMan.cc
  55. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  56. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  57. of PeerStat in SegmentMan. peerStats is used for calculating
  58. download speed. Therefore all active PeerStats should be in
  59. there. Another one is _fastestPeerStats and it only contains
  60. fastest PeerStat for each hostname/protocol pair. They are used
  61. for updating ServerStat.
  62. * src/DownloadCommand.cc
  63. * src/Request.h
  64. * src/RequestGroupMan.cc
  65. * src/SegmentMan.cc
  66. * src/SegmentMan.h
  67. * test/SegmentManTest.cc
  68. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  69. Try all available addresses returned by DNS until it gets
  70. connected in HTTP(S)/FTP download
  71. * src/AbstractCommand.cc
  72. * src/AbstractCommand.h
  73. * src/AbstractProxyRequestCommand.cc
  74. * src/AbstractProxyRequestCommand.h
  75. * src/DNSCache.h
  76. * src/DownloadEngine.cc
  77. * src/DownloadEngine.h
  78. * src/FtpInitiateConnectionCommand.cc
  79. * src/FtpInitiateConnectionCommand.h
  80. * src/FtpNegotiationCommand.cc
  81. * src/FtpNegotiationCommand.h
  82. * src/HttpInitiateConnectionCommand.cc
  83. * src/HttpInitiateConnectionCommand.h
  84. * src/HttpRequestCommand.cc
  85. * src/HttpRequestCommand.h
  86. * src/InitiateConnectionCommand.cc
  87. * src/InitiateConnectionCommand.h
  88. * test/DNSCacheTest.cc
  89. * test/Makefile.am
  90. * test/SimpleDNSCacheTest.cc
  91. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  92. Updated doc
  93. * src/download_helper.cc
  94. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  95. Refactored fieldMan ctor.
  96. * src/BitfieldMan.cc
  97. * src/BitfieldMan.h
  98. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  99. Don't print "No files to download." message if -S is given.
  100. * src/main.cc
  101. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  102. Set referer and method to newly created Request object.
  103. * src/CreateRequestCommand.cc
  104. * src/FileEntry.cc
  105. * src/FileEntry.h
  106. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  107. Removed ctor of AbstractCommand which doesn't take FileEntry.
  108. * src/AbstractCommand.cc
  109. * src/AbstractCommand.h
  110. * src/CreateRequestCommand.cc
  111. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  112. Get proxy download working
  113. * src/AbstractProxyRequestCommand.cc
  114. * src/AbstractProxyRequestCommand.h
  115. * src/AbstractProxyResponseCommand.cc
  116. * src/AbstractProxyResponseCommand.h
  117. * src/FtpInitiateConnectionCommand.cc
  118. * src/FtpTunnelRequestCommand.cc
  119. * src/FtpTunnelRequestCommand.h
  120. * src/FtpTunnelResponseCommand.cc
  121. * src/FtpTunnelResponseCommand.h
  122. * src/HttpInitiateConnectionCommand.cc
  123. * src/HttpProxyRequestCommand.cc
  124. * src/HttpProxyRequestCommand.h
  125. * src/HttpProxyResponseCommand.cc
  126. * src/HttpProxyResponseCommand.h
  127. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  128. Use SegmentMan::getSegment(cuid) for single file download.
  129. * src/AbstractCommand.cc
  130. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  131. Fixed bufSize calculation
  132. * src/DownloadCommand.cc
  133. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  134. Don't append "/" if base URI ends with "/".
  135. * src/bittorrent_helper.cc
  136. * test/url-list-multiFile.torrent
  137. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  138. HTTP pipelining is now working. Fixed Segmention fault in
  139. BitfieldMan's copy ctor.
  140. * src/AbstractCommand.cc
  141. * src/BitfieldMan.cc
  142. * src/BitfieldMan.h
  143. * src/DownloadCommand.cc
  144. * src/HttpDownloadCommand.cc
  145. * src/HttpRequest.cc
  146. * src/SegmentMan.cc
  147. * src/SegmentMan.h
  148. * test/BitfieldManTest.cc
  149. * test/SegmentManTest.cc
  150. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  151. Removed ServerHost. Same functionality is implemented using
  152. FileEntry's in-flight Request objects.
  153. * src/AbstractCommand.cc
  154. * src/BtDependency.cc
  155. * src/CreateRequestCommand.cc
  156. * src/FileEntry.cc
  157. * src/FileEntry.h
  158. * src/FtpNegotiationCommand.cc
  159. * src/HttpResponseCommand.cc
  160. * src/Makefile.am
  161. * src/Metalink2RequestGroup.cc
  162. * src/RequestGroup.cc
  163. * src/RequestGroup.h
  164. * src/ServerHost.cc: Removed
  165. * src/ServerHost.h: Removed
  166. * test/BtDependencyTest.cc
  167. * test/FileEntryTest.cc
  168. * test/RequestGroupTest.cc
  169. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  170. Rewritten PeerStat handling. In the previous implementation,
  171. faster command tries to find slower command. In this new
  172. implementation, slower command tries to find faster command.
  173. PeerStat is now created in each HTTP/FTP request to get download
  174. rate correctly. If the download range is small, the download rate
  175. tends to small and this will occur at the later stage of download.
  176. * src/AbstractCommand.cc
  177. * src/DownloadCommand.cc
  178. * src/FileEntry.cc
  179. * src/FileEntry.h
  180. * src/Request.cc
  181. * src/Request.h
  182. * src/RequestGroup.h
  183. * src/RequestGroupMan.cc
  184. * src/SegmentMan.cc
  185. * src/SegmentMan.h
  186. * test/SegmentManTest.cc
  187. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  188. Removed _uris from RequestGroup. All functions that refer to _uris
  189. were moved to FileEntry. Exit status code are now defined in
  190. DownloadResultCode.h.
  191. * src/AbstractCommand.cc
  192. * src/AdaptiveURISelector.cc
  193. * src/AdaptiveURISelector.h
  194. * src/AutoSaveCommand.cc
  195. * src/BtPostDownloadHandler.cc
  196. * src/CheckIntegrityDispatcherCommand.cc
  197. * src/CookieStorage.cc
  198. * src/DHTAutoSaveCommand.cc
  199. * src/DHTBucketRefreshCommand.cc
  200. * src/DHTEntryPointNameResolveCommand.cc
  201. * src/DHTInteractionCommand.cc
  202. * src/DHTPeerAnnounceCommand.cc
  203. * src/DHTTokenUpdateCommand.cc
  204. * src/DlAbortEx.h
  205. * src/DlRetryEx.h
  206. * src/DownloadCommand.cc
  207. * src/DownloadContext.h
  208. * src/DownloadFailureException.h
  209. * src/DownloadResult.h
  210. * src/DownloadResultCode.h
  211. * src/FeedbackURISelector.cc
  212. * src/FeedbackURISelector.h
  213. * src/FileEntry.cc
  214. * src/FileEntry.h
  215. * src/FtpNegotiationCommand.cc
  216. * src/HttpListenCommand.cc
  217. * src/HttpResponseCommand.cc
  218. * src/HttpServerResponseCommand.cc
  219. * src/HttpSkipResponseCommand.cc
  220. * src/InOrderURISelector.cc
  221. * src/InOrderURISelector.h
  222. * src/Makefile.am
  223. * src/Makefile.in
  224. * src/Metalink2RequestGroup.cc
  225. * src/MultiUrlRequestInfo.cc
  226. * src/MultiUrlRequestInfo.h
  227. * src/OptionHandlerFactory.cc
  228. * src/PeerListenCommand.cc
  229. * src/RecoverableException.h
  230. * src/RequestGroup.cc
  231. * src/RequestGroup.h
  232. * src/RequestGroupMan.cc
  233. * src/RequestGroupMan.h
  234. * src/TimedHaltCommand.cc
  235. * src/TrackerWatcherCommand.cc
  236. * src/URIResult.cc
  237. * src/URIResult.h
  238. * src/URISelector.h
  239. * src/XmlRpcMethodImpl.cc
  240. * src/bittorrent_helper.cc
  241. * src/bittorrent_helper.h
  242. * src/download_helper.cc
  243. * src/main.cc
  244. * src/option_processing.cc
  245. * test/BtDependencyTest.cc
  246. * test/BtPostDownloadHandlerTest.cc
  247. * test/CookieStorageTest.cc
  248. * test/DefaultBtMessageDispatcherTest.cc
  249. * test/DownloadHandlerFactoryTest.cc
  250. * test/DownloadHelperTest.cc
  251. * test/FeedbackURISelectorTest.cc
  252. * test/FileEntryTest.cc
  253. * test/InOrderURISelectorTest.cc
  254. * test/Metalink2RequestGroupTest.cc
  255. * test/MetalinkPostDownloadHandlerTest.cc
  256. * test/RequestGroupManTest.cc
  257. * test/RequestGroupTest.cc
  258. * test/XmlRpcMethodTest.cc
  259. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  260. Removed MockBtContext.h
  261. * test/Makefile.am
  262. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  263. Removed _currentRequest from StreamCheckIntegrityEntry and
  264. StreamFileAllocationEntry.
  265. * src/AbstractCommand.cc
  266. * src/HttpResponseCommand.cc
  267. * src/RequestGroup.cc
  268. * src/StreamCheckIntegrityEntry.cc
  269. * src/StreamCheckIntegrityEntry.h
  270. * src/StreamFileAllocationEntry.cc
  271. * src/StreamFileAllocationEntry.h
  272. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  273. Rewritten DownloadContext and removed SingleFileDownloadContext
  274. and BtContext and its derived classes. BitTorrent specific
  275. attributes are now set by DownloadContext::setAttribute() with key
  276. bittorrent::BITTORRENT.
  277. * src/AbstractBtMessage.cc
  278. * src/AbstractBtMessage.h
  279. * src/AbstractCommand.cc
  280. * src/AbstractCommand.h
  281. * src/AbstractProxyRequestCommand.cc
  282. * src/AbstractProxyResponseCommand.cc
  283. * src/ActivePeerConnectionCommand.cc
  284. * src/ActivePeerConnectionCommand.h
  285. * src/AnnounceList.cc
  286. * src/BtCheckIntegrityEntry.cc
  287. * src/BtConstants.h
  288. * src/BtContext.h: Removed
  289. * src/BtDependency.cc
  290. * src/BtExtendedMessage.cc
  291. * src/BtPieceMessage.cc
  292. * src/BtPieceMessage.h
  293. * src/BtPostDownloadHandler.cc
  294. * src/BtRegistry.cc
  295. * src/BtRegistry.h
  296. * src/BtSetup.cc
  297. * src/CheckIntegrityCommand.cc
  298. * src/CheckIntegrityEntry.cc
  299. * src/ChecksumCheckIntegrityEntry.cc
  300. * src/ConsoleStatCalc.cc
  301. * src/ContentTypeRequestGroupCriteria.cc
  302. * src/DHTGetPeersCommand.cc
  303. * src/DHTGetPeersCommand.h
  304. * src/DHTPeerLookupTask.cc
  305. * src/DHTPeerLookupTask.h
  306. * src/DHTTaskFactory.h
  307. * src/DHTTaskFactoryImpl.cc
  308. * src/DHTTaskFactoryImpl.h
  309. * src/DefaultBtAnnounce.cc
  310. * src/DefaultBtAnnounce.h
  311. * src/DefaultBtContext.cc: Removed
  312. * src/DefaultBtContext.h: Removed
  313. * src/DefaultBtInteractive.cc
  314. * src/DefaultBtInteractive.h
  315. * src/DefaultBtMessageDispatcher.cc
  316. * src/DefaultBtMessageDispatcher.h
  317. * src/DefaultBtMessageFactory.cc
  318. * src/DefaultBtMessageFactory.h
  319. * src/DefaultBtMessageReceiver.cc
  320. * src/DefaultBtMessageReceiver.h
  321. * src/DefaultBtProgressInfoFile.cc
  322. * src/DefaultBtRequestFactory.cc
  323. * src/DefaultBtRequestFactory.h
  324. * src/DefaultExtensionMessageFactory.cc
  325. * src/DefaultExtensionMessageFactory.h
  326. * src/DefaultPeerStorage.cc
  327. * src/DefaultPeerStorage.h
  328. * src/DefaultPieceStorage.cc
  329. * src/DefaultSegmentManFactory.cc
  330. * src/DiskAdaptor.cc
  331. * src/DiskAdaptor.h
  332. * src/DownloadContext.cc
  333. * src/DownloadContext.h
  334. * src/DownloadEngine.cc
  335. * src/DownloadEngineFactory.cc
  336. * src/DownloadHandler.cc
  337. * src/DownloadResult.h
  338. * src/FileAllocationCommand.cc
  339. * src/FileAllocationDispatcherCommand.cc
  340. * src/FileAllocationEntry.cc
  341. * src/FileEntry.h
  342. * src/FillRequestGroupCommand.cc
  343. * src/FtpDownloadCommand.cc
  344. * src/FtpFinishDownloadCommand.cc
  345. * src/FtpInitiateConnectionCommand.cc
  346. * src/FtpNegotiationCommand.cc
  347. * src/FtpTunnelRequestCommand.cc
  348. * src/FtpTunnelResponseCommand.cc
  349. * src/HandshakeExtensionMessage.cc
  350. * src/HandshakeExtensionMessage.h
  351. * src/HaveEraseCommand.cc
  352. * src/HttpDownloadCommand.cc
  353. * src/HttpInitiateConnectionCommand.cc
  354. * src/HttpProxyRequestCommand.cc
  355. * src/HttpProxyResponseCommand.cc
  356. * src/HttpRequest.cc
  357. * src/HttpRequest.h
  358. * src/HttpRequestCommand.cc
  359. * src/HttpResponseCommand.cc
  360. * src/HttpServerBodyCommand.cc
  361. * src/HttpServerCommand.cc
  362. * src/HttpSkipResponseCommand.cc
  363. * src/InitiateConnectionCommandFactory.cc
  364. * src/InitiatorMSEHandshakeCommand.cc
  365. * src/InitiatorMSEHandshakeCommand.h
  366. * src/IteratableChecksumValidator.cc
  367. * src/IteratableChecksumValidator.h
  368. * src/IteratableChunkChecksumValidator.cc
  369. * src/MSEHandshake.cc
  370. * src/MSEHandshake.h
  371. * src/Makefile.am
  372. * src/Makefile.in
  373. * src/Metalink2RequestGroup.cc
  374. * src/MetalinkPostDownloadHandler.cc
  375. * src/MultiDiskAdaptor.cc
  376. * src/MultiDiskAdaptor.h
  377. * src/MultiFileAllocationIterator.cc
  378. * src/MultiUrlRequestInfo.cc
  379. * src/PeerChokeCommand.cc
  380. * src/PeerChokeCommand.h
  381. * src/PeerInitiateConnectionCommand.cc
  382. * src/PeerInitiateConnectionCommand.h
  383. * src/PeerInteractionCommand.cc
  384. * src/PeerInteractionCommand.h
  385. * src/PeerReceiveHandshakeCommand.cc
  386. * src/PieceHashCheckIntegrityEntry.cc
  387. * src/RealtimeCommand.cc
  388. * src/ReceiverMSEHandshakeCommand.cc
  389. * src/RequestGroup.cc
  390. * src/RequestGroup.h
  391. * src/RequestGroupEntry.cc
  392. * src/RequestGroupMan.cc
  393. * src/SeedCheckCommand.cc
  394. * src/SeedCheckCommand.h
  395. * src/SegmentMan.cc
  396. * src/ShareRatioSeedCriteria.h
  397. * src/SingleFileDownloadContext.cc: Removed
  398. * src/SingleFileDownloadContext.h: Removed
  399. * src/SleepCommand.cc
  400. * src/StreamCheckIntegrityEntry.cc
  401. * src/TrackerWatcherCommand.cc
  402. * src/TrackerWatcherCommand.h
  403. * src/UnknownLengthPieceStorage.cc
  404. * src/Util.cc
  405. * src/Util.h
  406. * src/XmlRpcMethodImpl.cc
  407. * src/bittorrent_helper.cc
  408. * src/bittorrent_helper.h
  409. * src/download_helper.cc
  410. * src/main.cc
  411. * src/option_processing.cc
  412. * test/BitfieldManTest.cc
  413. * test/BittorrentHelperTest.cc
  414. * test/BtCancelMessageTest.cc
  415. * test/BtChokeMessageTest.cc
  416. * test/BtDependencyTest.cc
  417. * test/BtPieceMessageTest.cc
  418. * test/BtPostDownloadHandlerTest.cc
  419. * test/BtRegistryTest.cc
  420. * test/BtRejectMessageTest.cc
  421. * test/BtRequestMessageTest.cc
  422. * test/DHTPeerAnnounceStorageTest.cc
  423. * test/DefaultBtAnnounceTest.cc
  424. * test/DefaultBtContextTest.cc: Removed
  425. * test/DefaultBtMessageDispatcherTest.cc
  426. * test/DefaultBtMessageFactoryTest.cc
  427. * test/DefaultBtProgressInfoFileTest.cc
  428. * test/DefaultBtRequestFactoryTest.cc
  429. * test/DefaultExtensionMessageFactoryTest.cc
  430. * test/DefaultPeerStorageTest.cc
  431. * test/DefaultPieceStorageTest.cc
  432. * test/DirectDiskAdaptorTest.cc
  433. * test/DownloadContextTest.cc
  434. * test/DownloadHandlerFactoryTest.cc
  435. * test/DownloadHelperTest.cc
  436. * test/HandshakeExtensionMessageTest.cc
  437. * test/HttpRequestTest.cc
  438. * test/HttpResponseTest.cc
  439. * test/IteratableChecksumValidatorTest.cc
  440. * test/IteratableChunkChecksumValidatorTest.cc
  441. * test/MSEHandshakeTest.cc
  442. * test/Makefile.am
  443. * test/Makefile.in
  444. * test/Metalink2RequestGroupTest.cc
  445. * test/MetalinkPostDownloadHandlerTest.cc
  446. * test/MockBtContext.h: Removed
  447. * test/MockDHTTaskFactory.h
  448. * test/MockDownloadContext.h: Removed
  449. * test/MockPieceStorage.h
  450. * test/MultiDiskAdaptorTest.cc
  451. * test/MultiFileAllocationIteratorTest.cc
  452. * test/RequestGroupManTest.cc
  453. * test/RequestGroupTest.cc
  454. * test/SegmentManTest.cc
  455. * test/ShareRatioSeedCriteriaTest.cc
  456. * test/SingleFileDownloadContextTest.cc: Removed
  457. * test/UtilTest.cc
  458. * test/XmlRpcMethodTest.cc
  459. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  460. Added experimental support of WEB-Seeding for multi-file torrent.
  461. Due to fundamental changes in file handling in HTTP/FTP code, many
  462. functions are not working: PeerStat, ServerHost, proxy..etc
  463. * src/AbstractCommand.cc
  464. * src/AbstractCommand.h
  465. * src/BitfieldMan.cc
  466. * src/BitfieldMan.h
  467. * src/CreateRequestCommand.cc
  468. * src/CreateRequestCommand.h
  469. * src/DefaultPieceStorage.cc
  470. * src/DefaultPieceStorage.h
  471. * src/DownloadCommand.cc
  472. * src/DownloadCommand.h
  473. * src/DownloadContext.cc
  474. * src/DownloadContext.h
  475. * src/FileEntry.cc
  476. * src/FileEntry.h
  477. * src/FtpDownloadCommand.cc
  478. * src/FtpDownloadCommand.h
  479. * src/FtpFinishDownloadCommand.cc
  480. * src/FtpFinishDownloadCommand.h
  481. * src/FtpInitiateConnectionCommand.cc
  482. * src/FtpInitiateConnectionCommand.h
  483. * src/FtpNegotiationCommand.cc
  484. * src/FtpNegotiationCommand.h
  485. * src/FtpTunnelResponseCommand.cc
  486. * src/HttpDownloadCommand.cc
  487. * src/HttpDownloadCommand.h
  488. * src/HttpInitiateConnectionCommand.cc
  489. * src/HttpInitiateConnectionCommand.h
  490. * src/HttpProxyResponseCommand.cc
  491. * src/HttpRequest.cc
  492. * src/HttpRequest.h
  493. * src/HttpRequestCommand.cc
  494. * src/HttpRequestCommand.h
  495. * src/HttpResponseCommand.cc
  496. * src/HttpResponseCommand.h
  497. * src/HttpSkipResponseCommand.cc
  498. * src/HttpSkipResponseCommand.h
  499. * src/InitiateConnectionCommand.cc
  500. * src/InitiateConnectionCommand.h
  501. * src/InitiateConnectionCommandFactory.cc
  502. * src/InitiateConnectionCommandFactory.h
  503. * src/Makefile.am
  504. * src/PieceStorage.h
  505. * src/RequestGroup.cc
  506. * src/RequestGroup.h
  507. * src/RequestGroupMan.cc
  508. * src/SegmentMan.cc
  509. * src/SegmentMan.h
  510. * src/SingleFileDownloadContext.h
  511. * src/StreamFileAllocationEntry.cc
  512. * src/TrackerWatcherCommand.cc
  513. * src/UnknownLengthPieceStorage.cc
  514. * src/UnknownLengthPieceStorage.h
  515. * src/array_fun.h
  516. * src/bitfield.h
  517. * src/download_helper.cc
  518. * test/DownloadContextTest.cc
  519. * test/Makefile.am
  520. * test/MockDownloadContext.h
  521. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  522. Added tellWaiting XML-RPC method.
  523. * src/SingleFileDownloadContext.cc
  524. * src/XmlRpcMethodFactory.cc
  525. * src/XmlRpcMethodImpl.cc
  526. * src/XmlRpcMethodImpl.h
  527. * test/XmlRpcMethodTest.cc
  528. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  529. Updated CookieStorageTest
  530. * test/CookieStorageTest.cc
  531. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  532. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  533. handle excepion inside these functions.
  534. * src/LibgnutlsTLSContext.cc
  535. * src/LibgnutlsTLSContext.h
  536. * src/LibsslTLSContext.cc
  537. * src/LibsslTLSContext.h
  538. * src/MultiUrlRequestInfo.cc
  539. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  540. Added comment
  541. * src/RequestGroup.cc
  542. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  543. In CookieStorage::load() and saveNsFormat(), handle exception
  544. inside the functions. When saving Cookies, first write temporary
  545. file and after successful writes, then renames it to final
  546. destination.
  547. * src/CookieStorage.cc
  548. * src/CookieStorage.h
  549. * src/MultiUrlRequestInfo.cc
  550. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  551. The default value of --dir option is the absolute path to the
  552. current directory. If getcwd() is failed, then it is ".", which is
  553. the same value with old implementation. This change is necessary
  554. because after daemon() call, the current working directory is
  555. changed to /.
  556. * src/File.cc
  557. * src/File.h
  558. * src/OptionHandlerFactory.cc
  559. * src/option_processing.cc
  560. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  561. Call daemon() with arguments(0,0), which means daemon() changes
  562. current working directory to / and redirects stdin, stdout and
  563. stderr to /dev/null.
  564. * src/option_processing.cc
  565. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  566. Small performance optimizations.
  567. * src/RequestGroupMan.cc
  568. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  569. Added _xmlRpc member variable to RequestGroupMan to reduce the
  570. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  571. * src/RequestGroupMan.cc
  572. * src/RequestGroupMan.h
  573. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  574. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  575. setNoWiat(true) if newly created command calls
  576. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  577. * src/HttpListenCommand.cc
  578. * src/HttpServerBodyCommand.cc
  579. * src/HttpServerCommand.cc
  580. * src/HttpServerResponseCommand.cc
  581. * src/InitiateConnectionCommand.cc
  582. * src/RequestGroup.cc
  583. * src/StreamFileAllocationEntry.cc
  584. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  585. Removed include vector
  586. * src/BtRegistry.h
  587. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  588. Rewritten BtRegistry
  589. * src/BtRegistry.cc
  590. * src/BtRegistry.h
  591. * src/BtSetup.cc
  592. * src/ConsoleStatCalc.cc
  593. * src/PeerInteractionCommand.cc
  594. * src/PeerReceiveHandshakeCommand.cc
  595. * src/ReceiverMSEHandshakeCommand.cc
  596. * src/RequestGroup.cc
  597. * src/XmlRpcMethodImpl.cc
  598. * test/BtRegistryTest.cc
  599. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  600. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  601. * src/DefaultBtProgressInfoFile.cc
  602. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  603. Throw an exception if position is less than 0.
  604. * src/XmlRpcMethodImpl.cc
  605. * test/XmlRpcMethodTest.cc
  606. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  607. Use writeFilePath() in ConsoleStatCalc.cc
  608. * src/ConsoleStatCalc.cc
  609. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  610. Receive the return value as const reference from
  611. DownloadContext::getFileEntries().
  612. * src/DefaultPieceStorage.cc
  613. * src/RequestGroupMan.cc
  614. * src/XmlRpcMethodImpl.cc
  615. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  616. DownloadContext now has _fileEntries so that
  617. DownloadContext::getFileEntries() can returns its const reference.
  618. * src/DefaultBtContext.cc
  619. * src/DefaultBtContext.h
  620. * src/DownloadContext.cc
  621. * src/DownloadContext.h
  622. * src/SingleFileDownloadContext.cc
  623. * src/SingleFileDownloadContext.h
  624. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  625. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  626. writeFilePath() function template from RequestGroupMan.cc to
  627. FileEntry.h
  628. * src/FileEntry.h
  629. * src/RequestGroupMan.cc
  630. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  631. Documented 'position' parameter is starting from 0 in man page.
  632. * doc/aria2c.1.txt
  633. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  634. Updated doc.
  635. * src/MSEHandshake.cc
  636. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  637. Removed _acceptFeatures and its accessor functions from
  638. RequestGroup since they are not used practically.
  639. * src/HttpRequestCommand.cc
  640. * src/RequestGroup.cc
  641. * src/RequestGroup.h
  642. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  643. Removed member _maxTries from RequestGroup class to avoid
  644. duplicate option value. Those classes who refer this variable
  645. should use option value of PREF_MAX_TRIES directly.
  646. * src/AbstractCommand.cc
  647. * src/RequestGroup.cc
  648. * src/RequestGroup.h
  649. * src/TrackerWatcherCommand.cc
  650. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  651. * Release 1.4.1
  652. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  653. Fixed compiler warnings on netbsd
  654. * src/DHTConnectionImpl.cc
  655. * src/PeerListenCommand.cc
  656. * src/PeerSessionResource.cc
  657. * src/SegmentMan.cc
  658. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  659. Updated Ukrainian translation. Thanks to all translators.
  660. * po/uk.po
  661. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  662. Bump up version number to 1.4.1.
  663. * configure.ac
  664. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  665. Added unit tests for strjoin, strconcat and strappend.
  666. * test/a2functionalTest.cc
  667. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  668. Rewritten strconcat and strappend using operator+ instead of
  669. append().
  670. * src/a2functional.h
  671. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  672. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  673. is enabled.
  674. * src/Makefile.am
  675. * test/Makefile.am
  676. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  677. Added countSeeder() function which counts seeder in the given
  678. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  679. * src/ConsoleStatCalc.cc
  680. * src/Peer.h
  681. * src/XmlRpcMethodImpl.cc
  682. * test/PeerTest.cc
  683. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  684. Documented missing seeder in getPeers xml-rpc method.
  685. Documented uploadLength and numSeeders.
  686. * doc/aria2c.1.txt
  687. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  688. Added uploadLength and numSeeders to the response of tellStatus
  689. xml-rpc method. Assert that PeerStorage instance is not null
  690. instead of checking if statement. It should be non-null in this
  691. context.
  692. * src/XmlRpcMethodImpl.cc
  693. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  694. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  695. * src/XmlRpcResponse.cc
  696. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  697. Avoid intermediate object during string concatenation.
  698. * src/HttpRequest.cc
  699. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  700. Added strjoin function template. Use it in pathJoin()
  701. * src/Util.h
  702. * src/a2functional.h
  703. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  704. Avoid intermediate object during string concatenation. Replaced
  705. post-increment unary operator with pre-increment one in for loop.
  706. * src/AdaptiveURISelector.cc
  707. * src/AnnounceList.cc
  708. * src/AuthConfig.h
  709. * src/BtBitfieldMessage.cc
  710. * src/BtExtendedMessage.cc
  711. * src/BtHandshakeMessage.cc
  712. * src/BtPieceMessage.cc
  713. * src/BtPortMessage.cc
  714. * src/Cookie.cc
  715. * src/DHTAnnouncePeerMessage.cc
  716. * src/DHTAutoSaveCommand.cc
  717. * src/DHTGetPeersReplyMessage.cc
  718. * src/DHTNode.cc
  719. * src/DHTQueryMessage.cc
  720. * src/DHTResponseMessage.cc
  721. * src/DHTUnknownMessage.cc
  722. * src/DefaultBtAnnounce.cc
  723. * src/DefaultBtContext.cc
  724. * src/DefaultBtInteractive.cc
  725. * src/DefaultBtProgressInfoFile.cc
  726. * src/DefaultPeerStorage.cc
  727. * src/DownloadEngine.cc
  728. * src/FeatureConfig.cc
  729. * src/File.cc
  730. * src/FtpConnection.cc
  731. * src/FtpNegotiationCommand.cc
  732. * src/HandshakeExtensionMessage.cc
  733. * src/HttpConnection.cc
  734. * src/HttpRequest.cc
  735. * src/HttpResponseCommand.cc
  736. * src/HttpServer.cc
  737. * src/IndexBtMessage.cc
  738. * src/Metalink2RequestGroup.cc
  739. * src/OptionHandlerImpl.h
  740. * src/PStringBuildVisitor.cc
  741. * src/Peer.cc
  742. * src/PeerListenCommand.cc
  743. * src/Piece.cc
  744. * src/RangeBtMessage.cc
  745. * src/Request.cc
  746. * src/Request.h
  747. * src/RequestGroup.cc
  748. * src/RequestGroupMan.cc
  749. * src/ServerStat.cc
  750. * src/ServerStatMan.cc
  751. * src/UTPexExtensionMessage.cc
  752. * src/Util.cc
  753. * src/a2functional.h
  754. * src/download_helper.cc
  755. * src/messageDigest.cc
  756. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  757. Unchoke a peer randomly at first and second choke round in seed
  758. state.
  759. * src/BtSeederStateChoke.cc
  760. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  761. Added (sock_t) to quiet compiler warnings in MinGW
  762. * src/SocketCore.cc
  763. * src/SocketCore.h
  764. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  765. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  766. * src/EpollEventPoll.h
  767. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  768. Added fork() emulation using CreateProcess() in MinGW
  769. * src/RequestGroupMan.cc
  770. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  771. * Release 1.4.0
  772. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  773. Added utf8.torrent to EXTRA_DIST
  774. * test/Makefile.am
  775. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  776. Fixed docs of aria2.addMetalink xml-rpc method.
  777. * doc/aria2c.1.txt
  778. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  779. Added Slovak translation. Updated Ukrainian and Brazilian
  780. Portuguese translation. Thanks to all translators.
  781. * po/sk.po
  782. * po/uk.po
  783. * po/pt_BR.po
  784. * po/LINGUAS
  785. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  786. Added test case for XmlRpcProcessor to fail to parse malformed
  787. document.
  788. * test/XmlRpcRequestProcessorTest.cc
  789. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  790. Removed *.gmo files in po because they are generated on 'make
  791. dist'
  792. * po/*.gmo
  793. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  794. Documented max-concurrent-downloads of changeGlobalOption method
  795. in man page.
  796. * doc/aria2c.1.txt
  797. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  798. Added max-concurrent-downloads option to changeGlobalOption
  799. xml-rpc method. Rewritten loop conditional in
  800. RequestGroupMan::fillRequestGroupFromReserver().
  801. * src/RequestGroupMan.cc
  802. * src/RequestGroupMan.h
  803. * src/XmlRpcMethod.cc
  804. * src/XmlRpcMethodImpl.cc
  805. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  806. Documented position parameter in man page.
  807. * doc/aria2c.1.txt
  808. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  809. Added 'position' parameter to addUri, addTorrent and addMetalink
  810. xml-rpc method.
  811. * src/RequestGroupMan.cc
  812. * src/RequestGroupMan.h
  813. * src/XmlRpcMethodImpl.cc
  814. * test/XmlRpcMethodTest.cc
  815. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  816. Removed Peer.cc from compile source list when --disable-bittorrent
  817. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  818. takes Peer.
  819. * src/DefaultPieceStorage.cc
  820. * src/DefaultPieceStorage.h
  821. * src/Makefile.am
  822. * src/PieceStorage.h
  823. * src/UnknownLengthPieceStorage.cc
  824. * src/UnknownLengthPieceStorage.h
  825. * test/MockPieceStorage.h
  826. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  827. Implemented getter methods in header files to give them more
  828. chance of optimization.
  829. Return const reference for SharadHandle if possible.
  830. * src/AbstractAuthResolver.cc
  831. * src/AbstractAuthResolver.h
  832. * src/AbstractBtMessage.cc
  833. * src/AbstractBtMessage.h
  834. * src/AbstractSingleDiskAdaptor.cc
  835. * src/AbstractSingleDiskAdaptor.h
  836. * src/AsyncNameResolver.cc
  837. * src/AsyncNameResolver.h
  838. * src/BNode.cc
  839. * src/BNode.h
  840. * src/BitfieldMan.cc
  841. * src/BitfieldMan.h
  842. * src/BtAbortOutstandingRequestEvent.h
  843. * src/BtExtendedMessage.cc
  844. * src/BtExtendedMessage.h
  845. * src/BtSeederStateChoke.cc
  846. * src/BtSeederStateChoke.h
  847. * src/Cookie.cc
  848. * src/Cookie.h
  849. * src/DHTBucket.cc
  850. * src/DHTBucket.h
  851. * src/DHTConnectionImpl.cc
  852. * src/DHTConnectionImpl.h
  853. * src/DHTFindNodeReplyMessage.cc
  854. * src/DHTFindNodeReplyMessage.h
  855. * src/DHTGetPeersReplyMessage.cc
  856. * src/DHTGetPeersReplyMessage.h
  857. * src/DHTInteractionCommand.cc
  858. * src/DHTMessage.cc
  859. * src/DHTMessage.h
  860. * src/DHTMessageDispatcherImpl.cc
  861. * src/DHTMessageEntry.cc
  862. * src/DHTMessageReceiver.cc
  863. * src/DHTMessageReceiver.h
  864. * src/DHTMessageTrackerEntry.cc
  865. * src/DHTMessageTrackerEntry.h
  866. * src/DHTPeerAnnounceEntry.cc
  867. * src/DHTPeerAnnounceEntry.h
  868. * src/DHTPeerLookupTask.cc
  869. * src/DHTPeerLookupTask.h
  870. * src/DHTRoutingTableDeserializer.cc
  871. * src/DHTRoutingTableDeserializer.h
  872. * src/DefaultBtAnnounce.cc
  873. * src/DefaultBtAnnounce.h
  874. * src/DefaultBtMessageDispatcher.cc
  875. * src/DefaultBtMessageDispatcher.h
  876. * src/DefaultBtRequestFactory.cc
  877. * src/DefaultBtRequestFactory.h
  878. * src/DiskAdaptor.cc
  879. * src/DiskAdaptor.h
  880. * src/DownloadContext.cc
  881. * src/DownloadContext.h
  882. * src/DownloadEngine.cc
  883. * src/DownloadEngine.h
  884. * src/EpollEventPoll.cc
  885. * src/EpollEventPoll.h
  886. * src/FtpConnection.cc
  887. * src/FtpConnection.h
  888. * src/HttpConnection.cc
  889. * src/HttpConnection.h
  890. * src/HttpHeader.cc
  891. * src/HttpHeader.h
  892. * src/HttpRequest.cc
  893. * src/HttpRequest.h
  894. * src/HttpResponse.cc
  895. * src/HttpResponse.h
  896. * src/LibsslTLSContext.cc
  897. * src/LibsslTLSContext.h
  898. * src/MSEHandshake.cc
  899. * src/MSEHandshake.h
  900. * src/MetalinkEntry.cc
  901. * src/MetalinkEntry.h
  902. * src/MetalinkParserController.cc
  903. * src/MetalinkParserController.h
  904. * src/MetalinkParserStateMachine.cc
  905. * src/MetalinkParserStateMachine.h
  906. * src/MultiDiskAdaptor.cc
  907. * src/MultiDiskAdaptor.h
  908. * src/NetrcAuthResolver.cc
  909. * src/NetrcAuthResolver.h
  910. * src/Peer.cc
  911. * src/Peer.h
  912. * src/PeerSessionResource.cc
  913. * src/PeerSessionResource.h
  914. * src/Piece.cc
  915. * src/Piece.h
  916. * src/PieceStatMan.cc
  917. * src/PieceStatMan.h
  918. * src/Request.cc
  919. * src/Request.h
  920. * src/RequestGroup.cc
  921. * src/RequestGroup.h
  922. * src/RequestGroupMan.cc
  923. * src/RequestGroupMan.h
  924. * src/RequestSlot.cc
  925. * src/RequestSlot.h
  926. * src/SegmentMan.cc
  927. * src/SegmentMan.h
  928. * src/SelectEventPoll.cc
  929. * src/SelectEventPoll.h
  930. * src/ServerStat.cc
  931. * src/ServerStat.h
  932. * src/Signature.cc
  933. * src/Signature.h
  934. * src/URIResult.cc
  935. * src/URIResult.h
  936. * src/UTPexExtensionMessage.cc
  937. * src/UTPexExtensionMessage.h
  938. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  939. Fixed compile error without BitTorrent and Metalink support.
  940. * src/XmlRpcMethod.cc
  941. * src/XmlRpcMethodFactory.cc
  942. * src/XmlRpcMethodImpl.cc
  943. * src/XmlRpcMethodImpl.h
  944. * test/XmlRpcMethodTest.cc
  945. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  946. Rewritten the help message for --allow-overwrite option.
  947. * doc/aria2c.1.txt
  948. * src/usage_text.h
  949. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  950. Fixed typo
  951. * doc/aria2c.1.txt
  952. * src/usage_text.h
  953. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  954. Updated README for 1.4.0 release. Use new table syntax of
  955. asciidoc.
  956. * README
  957. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  958. Documented --xml-rpc-max-request-size option in man page.
  959. * doc/aria2c.1.txt
  960. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  961. Moved C_* constants from BtContext to DefaultBtContext.
  962. * src/BtContext.cc: Removed.
  963. * src/BtContext.h
  964. * src/DefaultBtContext.cc
  965. * src/DefaultBtContext.h
  966. * src/Makefile.am
  967. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  968. Use name.utf-8 and path.utf-8 key in higher priority than name and
  969. path key respectively when persing .torrent file.
  970. * src/BtContext.cc
  971. * src/BtContext.h
  972. * src/DefaultBtContext.cc
  973. * test/DefaultBtContextTest.cc
  974. * test/utf8.torrent
  975. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  976. Added --xml-rpc-max-request-size option to limit the size of
  977. XML-RPC request.
  978. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  979. Documented XML-RPC API in man page.
  980. * doc/aria2c.1.txt
  981. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  982. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  983. will break strict-aliasing rules
  984. * src/PeerConnection.cc
  985. * test/DHTRoutingTableSerializerTest.cc
  986. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  987. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  988. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  989. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  990. PKG_CHECK_MODULES macro uses latter name.
  991. * m4/sqlite3.m4
  992. * src/Makefile.am
  993. * test/Makefile.am
  994. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  995. Fixed typo
  996. * configure.ac
  997. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  998. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  999. presence of libgnutls using pkg-config first. If it fails, fall
  1000. back to old macro libgnutls.m4.
  1001. * configure.ac
  1002. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1003. Use s itself instead of !s.bad()
  1004. * src/CookieStorage.cc
  1005. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1006. Documented --on-download-* option and --save-cookies option in man
  1007. page.
  1008. * doc/aria2c.1.txt
  1009. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1010. Set possible values for --load-cookie option to "/path/to/file".
  1011. * src/OptionHandlerFactory.cc
  1012. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1013. Added --save-cookies option.
  1014. * src/Cookie.cc
  1015. * src/Cookie.h
  1016. * src/CookieStorage.cc
  1017. * src/CookieStorage.h
  1018. * src/MultiUrlRequestInfo.cc
  1019. * src/OptionHandlerFactory.cc
  1020. * src/prefs.cc
  1021. * src/prefs.h
  1022. * src/usage_text.h
  1023. * test/CookieStorageTest.cc
  1024. * test/CookieTest.cc
  1025. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1026. Removed tellAll XML-RPC command because its reponse tends to be
  1027. big if stopped/waiting downloads pile up.
  1028. * src/XmlRpcMethodFactory.cc
  1029. * src/XmlRpcMethodImpl.cc
  1030. * src/XmlRpcMethodImpl.h
  1031. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1032. Added the ability to execute command when download starts and
  1033. stops. You can also specify command for particular cases such as
  1034. complete/error download. Added --on-download-start,
  1035. --on-download-stop, --on-download-complete and --on-download-error
  1036. option.
  1037. * src/OptionHandlerFactory.cc
  1038. * src/RequestGroupMan.cc
  1039. * src/prefs.cc
  1040. * src/prefs.h
  1041. * src/usage_text.h
  1042. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1043. Fixed test error
  1044. * test/BencodeTest.cc
  1045. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1046. Added unit tests.
  1047. * test/XmlRpcMethodTest.cc
  1048. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1049. Made exception message more verbose.
  1050. * src/bencode.cc
  1051. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1052. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  1053. space in console readout. Also they are now shown in MiB/s if
  1054. speed > 1024KiB/s.
  1055. * src/ConsoleStatCalc.cc
  1056. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1057. Added SEED to console output, which represents the number of
  1058. seeders currently the client is connecting to.
  1059. * src/ConsoleStatCalc.cc
  1060. * src/ConsoleStatCalc.h
  1061. * src/DownloadEngine.cc
  1062. * src/NullStatCalc.h
  1063. * src/StatCalc.h
  1064. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1065. Added source filename(__FILE__) and line number(__LINE__) to
  1066. exception message.
  1067. * src/AbstractCommand.cc
  1068. * src/AbstractDiskWriter.cc
  1069. * src/AbstractProxyResponseCommand.cc
  1070. * src/BDE.h
  1071. * src/BtAllowedFastMessage.cc
  1072. * src/BtHandshakeMessageValidator.h
  1073. * src/BtHaveAllMessage.cc
  1074. * src/BtHaveNoneMessage.cc
  1075. * src/BtPieceMessage.cc
  1076. * src/BtRejectMessage.cc
  1077. * src/ChunkedDecoder.cc
  1078. * src/CookieStorage.cc
  1079. * src/DHTAnnouncePeerMessage.cc
  1080. * src/DHTEntryPointNameResolveCommand.cc
  1081. * src/DHTMessageFactoryImpl.cc
  1082. * src/DHTMessageTracker.cc
  1083. * src/DHTRoutingTableDeserializer.cc
  1084. * src/DHTRoutingTableSerializer.cc
  1085. * src/DHTSetup.cc
  1086. * src/DHTTokenTracker.cc
  1087. * src/DefaultBtAnnounce.cc
  1088. * src/DefaultBtContext.cc
  1089. * src/DefaultBtInteractive.cc
  1090. * src/DefaultBtMessageFactory.cc
  1091. * src/DefaultBtProgressInfoFile.cc
  1092. * src/DefaultExtensionMessageFactory.cc
  1093. * src/DlAbortEx.h
  1094. * src/DlRetryEx.h
  1095. * src/DownloadCommand.cc
  1096. * src/DownloadEngineFactory.cc
  1097. * src/DownloadFailureException.h
  1098. * src/Exception.cc
  1099. * src/Exception.h
  1100. * src/ExpatMetalinkProcessor.cc
  1101. * src/ExpatXmlRpcRequestProcessor.cc
  1102. * src/FallocFileAllocationIterator.cc
  1103. * src/FatalException.h
  1104. * src/FtpConnection.cc
  1105. * src/FtpFinishDownloadCommand.cc
  1106. * src/FtpInitiateConnectionCommand.cc
  1107. * src/FtpNegotiationCommand.cc
  1108. * src/GZipDecoder.cc
  1109. * src/HandshakeExtensionMessage.cc
  1110. * src/HttpConnection.cc
  1111. * src/HttpHeaderProcessor.cc
  1112. * src/HttpInitiateConnectionCommand.cc
  1113. * src/HttpResponse.cc
  1114. * src/HttpResponseCommand.cc
  1115. * src/HttpServer.cc
  1116. * src/HttpSkipResponseCommand.cc
  1117. * src/InitiateConnectionCommandFactory.cc
  1118. * src/IteratableChunkChecksumValidator.cc
  1119. * src/LibgcryptARC4Context.h
  1120. * src/LibgcryptARC4Decryptor.h
  1121. * src/LibgcryptARC4Encryptor.h
  1122. * src/LibgcryptDHKeyExchange.h
  1123. * src/LibgnutlsTLSContext.cc
  1124. * src/LibsslARC4Context.h
  1125. * src/LibsslARC4Decryptor.h
  1126. * src/LibsslARC4Encryptor.h
  1127. * src/LibsslDHKeyExchange.h
  1128. * src/LibsslTLSContext.cc
  1129. * src/MSEHandshake.cc
  1130. * src/MessageDigestHelper.cc
  1131. * src/MetalinkHelper.cc
  1132. * src/MultiDiskAdaptor.cc
  1133. * src/NameMatchOptionHandler.h
  1134. * src/NameResolver.cc
  1135. * src/Netrc.cc
  1136. * src/NsCookieParser.cc
  1137. * src/OptionHandlerException.cc
  1138. * src/OptionHandlerException.h
  1139. * src/OptionHandlerImpl.h
  1140. * src/OptionParser.cc
  1141. * src/ParameterizedStringParser.cc
  1142. * src/PeerAbstractCommand.cc
  1143. * src/PeerConnection.cc
  1144. * src/PeerMessageUtil.cc
  1145. * src/PeerReceiveHandshakeCommand.cc
  1146. * src/Platform.cc
  1147. * src/ReceiverMSEHandshakeCommand.cc
  1148. * src/RecoverableException.h
  1149. * src/RequestGroup.cc
  1150. * src/SimpleLogger.cc
  1151. * src/SocketCore.cc
  1152. * src/Sqlite3MozCookieParser.cc
  1153. * src/UTPexExtensionMessage.cc
  1154. * src/Util.cc
  1155. * src/XML2SAXMetalinkProcessor.cc
  1156. * src/Xml2XmlRpcRequestProcessor.cc
  1157. * src/XmlRpcMethodImpl.cc
  1158. * src/bencode.cc
  1159. * src/download_helper.cc
  1160. * src/messageDigest.h
  1161. * test/ExceptionTest.cc
  1162. * test/TestUtil.cc
  1163. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1164. Bump up version number to 1.4.0
  1165. * configure.ac
  1166. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1167. Added 2files.metalink to EXTRA_DIST
  1168. * test/Makefile.am
  1169. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1170. Added missing 2files.metalink
  1171. * test/2files.metalink
  1172. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1173. Show "[MEMORY]" prefix before filename in download summary if it
  1174. is downloaded into memory.
  1175. * src/DownloadResult.h
  1176. * src/RequestGroup.cc
  1177. * src/RequestGroupMan.cc
  1178. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1179. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  1180. * src/ExpatXmlRpcRequestProcessor.cc
  1181. * src/Xml2XmlRpcRequestProcessor.cc
  1182. * src/message.h
  1183. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1184. Defined const BDEs to avoid duplicate instantiation.
  1185. Defined MSG_GID_NOT_PROVIDED.
  1186. * src/XmlRpcMethodImpl.cc
  1187. * src/message.h
  1188. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1189. Code cleanup
  1190. * src/Xml2XmlRpcRequestProcessor.cc
  1191. * src/Xml2XmlRpcRequestProcessor.h
  1192. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1193. Defined ENABLE_XML_RPC
  1194. * configure.ac
  1195. * configure
  1196. * config.h.in
  1197. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1198. Added ExpatXmlRpcRequestProcessor
  1199. * src/ExpatXmlRpcRequestProcessor.cc
  1200. * src/ExpatXmlRpcRequestProcessor.h
  1201. * src/Makefile.am
  1202. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1203. Added tests for addTorrent and addMetalink command.
  1204. * test/TestUtil.cc
  1205. * test/TestUtil.h
  1206. * test/XmlRpcMethodTest.cc
  1207. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1208. Corrected the description of --file-allocation option.
  1209. * doc/aria2c.1.txt
  1210. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1211. Added tellAll command.
  1212. * src/XmlRpcMethodFactory.cc
  1213. * src/XmlRpcMethodImpl.cc
  1214. * src/XmlRpcMethodImpl.h
  1215. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1216. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  1217. * src/XmlRpcMethodImpl.cc
  1218. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1219. Added changeGlobalOption command. Currently,
  1220. max-overall-download-limit and max-overall-upload-limit option are
  1221. available.
  1222. * src/RequestGroupMan.h
  1223. * src/XmlRpcMethod.cc
  1224. * src/XmlRpcMethod.h
  1225. * src/XmlRpcMethodFactory.cc
  1226. * src/XmlRpcMethodImpl.cc
  1227. * src/XmlRpcMethodImpl.h
  1228. * test/XmlRpcMethodTest.cc
  1229. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1230. Added changeOption command. Currently, max-download-limit,
  1231. max-upload-limit option are available in this command.
  1232. * src/RequestGroup.h
  1233. * src/XmlRpcMethod.cc
  1234. * src/XmlRpcMethod.h
  1235. * src/XmlRpcMethodFactory.cc
  1236. * src/XmlRpcMethodImpl.cc
  1237. * src/XmlRpcMethodImpl.h
  1238. * test/XmlRpcMethodTest.cc
  1239. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1240. Added purgeDownloadResult command.
  1241. * src/RequestGroupMan.cc
  1242. * src/RequestGroupMan.h
  1243. * src/XmlRpcMethodFactory.cc
  1244. * src/XmlRpcMethodImpl.cc
  1245. * src/XmlRpcMethodImpl.h
  1246. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1247. Refactored.
  1248. * src/XmlRpcMethod.cc
  1249. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1250. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  1251. XmlRpcResponse.
  1252. * src/HttpServerBodyCommand.cc
  1253. * src/Makefile.am
  1254. * src/XmlRpcMethod.cc
  1255. * src/XmlRpcMethod.h
  1256. * src/XmlRpcMethodImpl.cc
  1257. * src/XmlRpcResponse.cc
  1258. * src/XmlRpcResponse.h
  1259. * test/XmlRpcMethodTest.cc
  1260. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1261. In XML-RPC option struct, header and index-out option can take
  1262. array as value.
  1263. * src/XmlRpcMethod.cc
  1264. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1265. Removed unused option member from PeerConnection.
  1266. * src/InitiatorMSEHandshakeCommand.cc
  1267. * src/PeerConnection.cc
  1268. * src/PeerConnection.h
  1269. * src/PeerInteractionCommand.cc
  1270. * src/PeerReceiveHandshakeCommand.cc
  1271. * src/ReceiverMSEHandshakeCommand.cc
  1272. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1273. Added "seeder" key to getPeers response.
  1274. * src/XmlRpcMethodImpl.cc
  1275. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1276. Added addMetalink XML-RPC command.
  1277. * src/XmlRpcMethodFactory.cc
  1278. * src/XmlRpcMethodImpl.cc
  1279. * src/XmlRpcMethodImpl.h
  1280. * src/download_helper.cc
  1281. * src/download_helper.h
  1282. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1283. Fixed the bug that POU peers are never choked in seeding.
  1284. * src/BtSeederStateChoke.cc
  1285. * src/BtSeederStateChoke.h
  1286. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1287. Added web-seeding URI handling in addTorrent command.
  1288. * src/XmlRpcMethodImpl.cc
  1289. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1290. Added "length" key to getFiles response.
  1291. * src/XmlRpcMethodImpl.cc
  1292. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1293. Moved --no-netrc option from ftp option section to http/ftp option
  1294. section.
  1295. * doc/aria2c.1.txt
  1296. * src/OptionHandlerFactory.cc
  1297. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1298. Removed garbage "\" character before '
  1299. * doc/aria2c.1.txt
  1300. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1301. Removed garbage "\" character before http.
  1302. * doc/aria2c.1.txt
  1303. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1304. Documented additional options that can be specified in -i list.
  1305. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  1306. and --xml-rpc-passwd. Removed --enable-http-server and
  1307. --http-server-listen-port.
  1308. * doc/aria2c.1.txt
  1309. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1310. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  1311. * src/DefaultPeerStorage.cc
  1312. * src/DefaultPeerStorage.h
  1313. * src/PeerStorage.h
  1314. * src/XmlRpcMethodImpl.cc
  1315. * test/MockPeerStorage.h
  1316. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1317. Put a call to Socket::isReadable() in try block.
  1318. * src/HttpServerBodyCommand.cc
  1319. * src/HttpServerCommand.cc
  1320. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1321. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  1322. exception , so it is now in try block.
  1323. * src/HttpServerResponseCommand.cc
  1324. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1325. Added "amChoking" and "peerChoking" key in getPeers response.
  1326. * src/XmlRpcMethodImpl.cc
  1327. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1328. Added test case for zero-length filter.
  1329. * test/BitfieldManTest.cc
  1330. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1331. getFiles command now returns file data for finished/stopped
  1332. downloads.
  1333. * src/XmlRpcMethodImpl.cc
  1334. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1335. DownloadResult now has the list of FileEntry. The download
  1336. summary displays the path of first selected file and the number of
  1337. remaining files for multi-file torrent.
  1338. * src/DownloadResult.h
  1339. * src/RequestGroup.cc
  1340. * src/RequestGroupMan.cc
  1341. * test/RequestGroupTest.cc
  1342. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1343. Fixed segmentation fault error when no file is selected in
  1344. multi-file torrent.
  1345. * src/BitfieldMan.cc
  1346. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1347. Escaped <,>,& character in XML-RPC response.
  1348. * src/XmlRpcMethod.cc
  1349. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1350. Throw DlAbortEx instead of FatalException during parsing options
  1351. because we don't want for aria2 to quit when bad option is passed
  1352. via XML-RPC.
  1353. * src/OptionHandlerException.cc
  1354. * src/OptionHandlerException.h
  1355. * src/OptionHandlerImpl.h
  1356. * src/OptionParser.cc
  1357. * src/OptionParser.h
  1358. * src/PStringSegment.cc
  1359. * src/ParameterizedStringParser.cc
  1360. * src/download_helper.cc
  1361. * test/ParameterizedStringParserTest.cc
  1362. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1363. Selecting files are now done in
  1364. DefaultBtContext::setFileFileter().
  1365. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  1366. functions are removed because they are no longer used. Creating
  1367. filter in BitfieldMan is done in new funtion
  1368. PieceStorage::setupFileFilter()
  1369. * src/BtContext.cc
  1370. * src/BtContext.h
  1371. * src/DefaultBtContext.cc
  1372. * src/DefaultBtContext.h
  1373. * src/DefaultPieceStorage.cc
  1374. * src/DefaultPieceStorage.h
  1375. * src/DiskAdaptor.cc
  1376. * src/DiskAdaptor.h
  1377. * src/PieceStorage.h
  1378. * src/RequestGroup.cc
  1379. * src/UnknownLengthPieceStorage.h
  1380. * src/XmlRpcMethodImpl.cc
  1381. * test/DefaultBtContextTest.cc
  1382. * test/MockBtContext.h
  1383. * test/MockPieceStorage.h
  1384. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1385. Fixed compile error on Mac OS X
  1386. * src/HttpServer.cc
  1387. * src/XmlRpcMethod.h
  1388. * src/XmlRpcMethodImpl.cc
  1389. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1390. Use std::binary_search instead of std::find
  1391. * src/DefaultPieceStorage.cc
  1392. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1393. Removed unnecessary BDE() call; leave them to implicit conversion.
  1394. * src/XmlRpcMethodImpl.cc
  1395. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1396. Return connections and gid in string
  1397. * src/XmlRpcMethodImpl.cc
  1398. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1399. Renamed addURI as addUri
  1400. * src/XmlRpcMethodFactory.cc
  1401. * src/XmlRpcMethodImpl.cc
  1402. * src/XmlRpcMethodImpl.h
  1403. * test/XmlRpcMethodTest.cc
  1404. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1405. Renamed addTorrentFile as addTorrent
  1406. * src/XmlRpcMethodFactory.cc
  1407. * src/XmlRpcMethodImpl.cc
  1408. * src/XmlRpcMethodImpl.h
  1409. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1410. The information for files, URIs, peers are removed from the
  1411. reponse of TellaActive, TellStatus command because they tend to be
  1412. large. Instead they can be retrieved by the dedicated commands:
  1413. getFiles, getUris and getPeers respectively.
  1414. * src/XmlRpcMethodFactory.cc
  1415. * src/XmlRpcMethodImpl.cc
  1416. * src/XmlRpcMethodImpl.h
  1417. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1418. Removed --max-overall-upload-limit and
  1419. --max-overall-download-limit option from listRequestOptions.
  1420. * src/download_helper.cc
  1421. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1422. Log incoming host in HttpListenCommand.
  1423. * src/HttpListenCommand.cc
  1424. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1425. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  1426. --xml-rpc-passwd option.
  1427. * src/HttpServer.cc
  1428. * src/HttpServer.h
  1429. * src/HttpServerCommand.cc
  1430. * src/OptionHandlerFactory.cc
  1431. * src/prefs.cc
  1432. * src/prefs.h
  1433. * src/usage_text.h
  1434. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1435. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  1436. processing 0 length request.
  1437. * src/HttpServerBodyCommand.cc
  1438. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1439. Removed --enable-http-server and --http-server-listen-port
  1440. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  1441. instead. The original feature for --enable-http-server that
  1442. reports download progress in HTML was officially removed. Persist
  1443. XML-RPC connection if client supports keep-alive.
  1444. * src/DownloadEngineFactory.cc
  1445. * src/HttpServerCommand.cc
  1446. * src/HttpServerResponseCommand.cc
  1447. * src/Makefile.am
  1448. * src/Makefile.in
  1449. * src/OptionHandlerFactory.cc
  1450. * src/RequestGroupMan.cc
  1451. * src/main.cc
  1452. * src/option_processing.cc
  1453. * src/prefs.cc
  1454. * src/prefs.h
  1455. * src/usage_text.h
  1456. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1457. Added "uris" key to the response of tellStatus command. Added
  1458. "connections" key to the response of tellStatus and tellActive
  1459. command.
  1460. * src/XmlRpcMethodImpl.cc
  1461. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1462. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  1463. Added TellStatusXmlRpcMethod. Remove command can now remove
  1464. waiting RequestGroup.
  1465. * src/RequestGroupMan.cc
  1466. * src/RequestGroupMan.h
  1467. * src/XmlRpcMethodFactory.cc
  1468. * src/XmlRpcMethodImpl.cc
  1469. * src/XmlRpcMethodImpl.h
  1470. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1471. Initialized _peerId
  1472. * src/Peer.cc
  1473. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1474. Return fault structure for error. FailXmlRpcMethod is renamed as
  1475. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  1476. in non-torrent download. Return single param value.
  1477. * src/XmlRpcMethod.cc
  1478. * src/XmlRpcMethodFactory.cc
  1479. * src/XmlRpcMethodImpl.cc
  1480. * src/XmlRpcMethodImpl.h
  1481. * test/XmlRpcMethodTest.cc
  1482. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1483. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  1484. command.
  1485. * src/RequestGroup.cc
  1486. * src/RequestGroup.h
  1487. * src/RequestGroupMan.cc
  1488. * src/XmlRpcMethodImpl.cc
  1489. * test/RequestGroupTest.cc
  1490. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1491. Added more options that can be specified in -i list and xml-rpc
  1492. add* command.
  1493. * src/download_helper.h
  1494. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1495. The available options in -i list should be listed in
  1496. listRequestOptions().
  1497. * src/download_helper.cc
  1498. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1499. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  1500. command.
  1501. * src/XmlRpcMethodImpl.cc
  1502. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1503. Now RequestGroup has its own copy of Option object. This will help
  1504. to give custom option for each RequestGroup.
  1505. addTorrentFile command now takes options.
  1506. * src/AbstractCommand.cc
  1507. * src/AbstractCommand.h
  1508. * src/AbstractProxyRequestCommand.cc
  1509. * src/ActivePeerConnectionCommand.cc
  1510. * src/ActivePeerConnectionCommand.h
  1511. * src/AdaptiveURISelector.cc
  1512. * src/BtCheckIntegrityEntry.cc
  1513. * src/BtDependency.cc
  1514. * src/BtDependency.h
  1515. * src/BtFileAllocationEntry.cc
  1516. * src/BtPostDownloadHandler.cc
  1517. * src/CheckIntegrityEntry.cc
  1518. * src/DownloadCommand.cc
  1519. * src/FtpDownloadCommand.cc
  1520. * src/FtpFinishDownloadCommand.cc
  1521. * src/FtpInitiateConnectionCommand.cc
  1522. * src/FtpNegotiationCommand.cc
  1523. * src/HttpInitiateConnectionCommand.cc
  1524. * src/HttpRequestCommand.cc
  1525. * src/HttpResponseCommand.cc
  1526. * src/HttpSkipResponseCommand.cc
  1527. * src/InitiateConnectionCommand.cc
  1528. * src/InitiateConnectionCommandFactory.cc
  1529. * src/InitiatorMSEHandshakeCommand.cc
  1530. * src/InitiatorMSEHandshakeCommand.h
  1531. * src/Metalink2RequestGroup.cc
  1532. * src/Metalink2RequestGroup.h
  1533. * src/MetalinkPostDownloadHandler.cc
  1534. * src/MultiUrlRequestInfo.cc
  1535. * src/MultiUrlRequestInfo.h
  1536. * src/PeerAbstractCommand.cc
  1537. * src/PeerInteractionCommand.cc
  1538. * src/PeerInteractionCommand.h
  1539. * src/PeerReceiveHandshakeCommand.cc
  1540. * src/PeerReceiveHandshakeCommand.h
  1541. * src/RequestGroup.cc
  1542. * src/RequestGroup.h
  1543. * src/TrackerWatcherCommand.cc
  1544. * src/TrackerWatcherCommand.h
  1545. * src/XmlRpcMethod.cc
  1546. * src/XmlRpcMethod.h
  1547. * src/XmlRpcMethodImpl.cc
  1548. * src/download_helper.cc
  1549. * src/download_helper.h
  1550. * src/main.cc
  1551. * test/BtDependencyTest.cc
  1552. * test/BtPostDownloadHandlerTest.cc
  1553. * test/DefaultBtMessageDispatcherTest.cc
  1554. * test/DownloadHandlerFactoryTest.cc
  1555. * test/DownloadHelperTest.cc
  1556. * test/Metalink2RequestGroupTest.cc
  1557. * test/MetalinkPostDownloadHandlerTest.cc
  1558. * test/RequestGroupManTest.cc
  1559. * test/RequestGroupTest.cc
  1560. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1561. Added tellActiveStatus xml-rpc command which reports download
  1562. status of active downloads.
  1563. * src/XmlRpcMethodFactory.cc
  1564. * src/XmlRpcMethodImpl.cc
  1565. * src/XmlRpcMethodImpl.h
  1566. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1567. Added addTorrentFile xml-rpc command which receives uploaded
  1568. torrent file and add download for it.
  1569. * src/RequestGroupMan.cc
  1570. * src/XmlRpcMethodFactory.cc
  1571. * src/XmlRpcMethodImpl.cc
  1572. * src/XmlRpcMethodImpl.h
  1573. * src/download_helper.cc
  1574. * src/download_helper.h
  1575. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1576. Added remove xml-rpc command which removes specified download.
  1577. There is a known issue: the removed unfinished downloads are
  1578. reported ERR when aria2 exits. They should be reported as INPR.
  1579. * src/RequestGroupMan.cc
  1580. * src/RequestGroupMan.h
  1581. * src/XmlRpcMethodFactory.cc
  1582. * src/XmlRpcMethodImpl.cc
  1583. * src/XmlRpcMethodImpl.h
  1584. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1585. If --enable-http-server is enabled, don't stop aria2 when all
  1586. download finished and don't quit when no files to download at
  1587. start up.
  1588. * src/RequestGroupMan.cc
  1589. * src/main.cc
  1590. * src/option_processing.cc
  1591. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1592. Added missing AM_CONDITIONAL
  1593. * configure.ac
  1594. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1595. Added xml-rpc functionality. Currently only addURI commad is
  1596. supported. To enable xml-rpc, run aria2 with
  1597. --enable-http-server. This option name is temporal and will be
  1598. changed. The feature that reports download progress in html format
  1599. is temporarily disabled.
  1600. * src/HttpServer.cc
  1601. * src/HttpServer.h
  1602. * src/HttpServerBodyCommand.cc
  1603. * src/HttpServerBodyCommand.h
  1604. * src/HttpServerCommand.cc
  1605. * src/HttpServerResponseCommand.cc
  1606. * src/Makefile.am
  1607. * src/OptionParser.cc
  1608. * src/OptionParser.h
  1609. * src/RequestGroupMan.cc
  1610. * src/RequestGroupMan.h
  1611. * src/XmlRpcMethod.cc
  1612. * src/XmlRpcMethod.h
  1613. * src/XmlRpcMethodFactory.cc
  1614. * src/XmlRpcMethodFactory.h
  1615. * src/XmlRpcMethodImpl.cc
  1616. * src/XmlRpcMethodImpl.h
  1617. * src/download_helper.cc
  1618. * src/download_helper.h
  1619. * test/Makefile.am
  1620. * test/XmlRpcMethodTest.cc
  1621. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1622. Added xml-rpc request parser. The supported value types are:
  1623. i4/int, string, double, struct, array, base64. Currently only
  1624. libxml2 version is provided.
  1625. * src/Xml2XmlRpcRequestProcessor.cc
  1626. * src/Xml2XmlRpcRequestProcessor.h
  1627. * src/XmlRpcElements.cc
  1628. * src/XmlRpcElements.h
  1629. * src/XmlRpcRequest.h
  1630. * src/XmlRpcRequestParserController.cc
  1631. * src/XmlRpcRequestParserController.h
  1632. * src/XmlRpcRequestParserState.h
  1633. * src/XmlRpcRequestParserStateImpl.cc
  1634. * src/XmlRpcRequestParserStateImpl.h
  1635. * src/XmlRpcRequestParserStateMachine.cc
  1636. * src/XmlRpcRequestParserStateMachine.h
  1637. * src/XmlRpcRequestProcessor.h
  1638. * test/XmlRpcRequestParserControllerTest.cc
  1639. * test/XmlRpcRequestProcessorTest.cc
  1640. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1641. * Release 1.3.3
  1642. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1643. Fixed compile error since r1202.
  1644. * src/ExpatMetalinkProcessor.cc
  1645. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1646. Updated Ukrainian, Russian and Simplified Chinese
  1647. translations. Thanks to all translators.
  1648. * po/ru.po
  1649. * po/uk.po
  1650. * po/zh_CN.po
  1651. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1652. Pass reference of Option object instead of pointer.
  1653. * src/download_helper.cc
  1654. * src/download_helper.h
  1655. * src/main.cc
  1656. * test/DownloadHelperTest.cc
  1657. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1658. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  1659. from option directly. Instead, get them from RequestGroup.
  1660. * src/ActivePeerConnectionCommand.cc
  1661. * src/ActivePeerConnectionCommand.h
  1662. * src/PeerReceiveHandshakeCommand.cc
  1663. * src/RequestGroup.h
  1664. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1665. Removed unused uploadLimitCheck and uploadLimit from
  1666. PeerAbstractCommand. Removed unused maxDownloadLimit from
  1667. PeerInteractionCommand.
  1668. * src/PeerAbstractCommand.cc
  1669. * src/PeerAbstractCommand.h
  1670. * src/PeerInteractionCommand.cc
  1671. * src/PeerInteractionCommand.h
  1672. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1673. Fixed broken file renaming feature since r1202.
  1674. * src/FtpNegotiationCommand.cc
  1675. * src/FtpNegotiationCommand.h
  1676. * src/HttpResponseCommand.cc
  1677. * src/RequestGroup.cc
  1678. * src/RequestGroup.h
  1679. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1680. Removed unused debug log
  1681. * src/SocketCore.cc
  1682. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1683. Generated configure and Makefile.in using autoconf 2.63 and
  1684. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  1685. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  1686. * configure.ac
  1687. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1688. Moved piece statistics stuff to new PieceStatMan class.
  1689. Refactored PieceSelector interface.
  1690. * src/DefaultPieceStorage.cc
  1691. * src/DefaultPieceStorage.h
  1692. * src/LongestSequencePieceSelector.cc
  1693. * src/LongestSequencePieceSelector.h
  1694. * src/Makefile.am
  1695. * src/PieceSelector.h
  1696. * src/PieceStatMan.cc
  1697. * src/PieceStatMan.h
  1698. * src/RarestPieceSelector.cc
  1699. * src/RarestPieceSelector.h
  1700. * src/RequestGroup.cc
  1701. * test/DefaultPieceStorageTest.cc
  1702. * test/InOrderPieceSelector.h
  1703. * test/Makefile.am
  1704. * test/PieceStatManTest.cc
  1705. * test/RarestPieceSelectorTest.cc
  1706. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1707. Added static member _protocolFamily to SocketCore. By default,
  1708. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  1709. address. Sometime SocketCore::bind() and
  1710. SocketCore::establishConnection() use difference protocl family
  1711. and latter cannot connect to former. To avoid this situation, we
  1712. limit protocol family to AF_INET for unit tests.
  1713. * src/SocketCore.cc
  1714. * src/SocketCore.h
  1715. * test/AllTest.cc
  1716. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1717. Avoid std::bad_alloc for negative bencode string length.
  1718. * src/bencode.cc
  1719. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1720. Supported segmented downloading with chunked transfer encoding and
  1721. content-length.
  1722. * src/DownloadCommand.cc
  1723. * src/HttpResponseCommand.cc
  1724. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1725. Bump up version number to 1.3.3
  1726. * configure.ac
  1727. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1728. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  1729. from 4096 to 65536 (for insanely large ftp login banners)
  1730. * src/FtpConnection.h
  1731. * test/FtpConnectionTest.cc
  1732. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1733. In DefaultBtContext::getActualBasePath(), return first
  1734. FileEntry::getPath() for single file torrent.
  1735. * src/DefaultBtContext.cc
  1736. * test/DefaultBtContextTest.cc
  1737. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1738. Removed directIOAllowed() from BinaryStream, DiskWriter,
  1739. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  1740. Removed _directIOAllowed member from DiskWriter.
  1741. * src/AbstractDiskWriter.cc
  1742. * src/AbstractDiskWriter.h
  1743. * src/AbstractSingleDiskAdaptor.cc
  1744. * src/AbstractSingleDiskAdaptor.h
  1745. * src/BinaryStream.h
  1746. * src/ByteArrayDiskWriter.h
  1747. * src/DefaultPieceStorage.cc
  1748. * src/DiskWriter.h
  1749. * src/MultiDiskAdaptor.cc
  1750. * src/MultiDiskAdaptor.h
  1751. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1752. Now the constructor of AbstractDiskWriter takes filename as an
  1753. argument and filename argument is removed from openFile(),
  1754. initAndOpenFile(), openExistingFile() interface. storeDir member
  1755. and its accessor functions are removed from DiskAdaptor because it
  1756. is not used anymore. size() member function of DefaultDiskWriter,
  1757. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  1758. opening file.
  1759. * src/AbstractDiskWriter.cc
  1760. * src/AbstractDiskWriter.h
  1761. * src/AbstractSingleDiskAdaptor.cc
  1762. * src/AbstractSingleDiskAdaptor.h
  1763. * src/ByteArrayDiskWriter.cc
  1764. * src/ByteArrayDiskWriter.h
  1765. * src/ByteArrayDiskWriterFactory.cc
  1766. * src/ByteArrayDiskWriterFactory.h
  1767. * src/DefaultDiskWriter.cc
  1768. * src/DefaultDiskWriter.h
  1769. * src/DefaultDiskWriterFactory.cc
  1770. * src/DefaultDiskWriterFactory.h
  1771. * src/DefaultPieceStorage.cc
  1772. * src/DirectDiskAdaptor.cc
  1773. * src/DirectDiskAdaptor.h
  1774. * src/DiskAdaptor.h
  1775. * src/DiskWriter.h
  1776. * src/DiskWriterFactory.h
  1777. * src/MessageDigestHelper.cc
  1778. * src/MultiDiskAdaptor.cc
  1779. * src/RequestGroup.cc
  1780. * src/UnknownLengthPieceStorage.cc
  1781. * src/Util.cc
  1782. * test/DefaultDiskWriterTest.cc
  1783. * test/DirectDiskAdaptorTest.cc
  1784. * test/FallocFileAllocationIteratorTest.cc
  1785. * test/MessageDigestHelperTest.cc
  1786. * test/MetalinkProcessorTest.cc
  1787. * test/MultiDiskAdaptorTest.cc
  1788. * test/MultiFileAllocationIteratorTest.cc
  1789. * test/SingleFileAllocationIteratorTest.cc
  1790. * test/UtilTest.cc
  1791. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1792. Fixed the bug that aria2 aborts when --select-file is used. This
  1793. bug was introduced in r1199.
  1794. * src/MultiDiskAdaptor.cc
  1795. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1796. Code cleanup
  1797. * test/MockPieceStorage.cc
  1798. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1799. Fixed the bug that read-only file with wrong file size will cause
  1800. error because it cannot be truncated to the correct size. Now if
  1801. file size is different than the expected one, re-open file in
  1802. writable mode.
  1803. * src/AbstractSingleDiskAdaptor.cc
  1804. * src/AbstractSingleDiskAdaptor.h
  1805. * src/BtCheckIntegrityEntry.cc
  1806. * src/DiskAdaptor.h
  1807. * src/MultiDiskAdaptor.h
  1808. * src/RequestGroup.cc
  1809. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1810. Fixed the bug that with --check-integrity option aria2 reports
  1811. downloaded file size is 0 even if some parts of file is correctly
  1812. downloaded. This bug is reproducible for the download that a file
  1813. includes last piece is missing. This bug doesn't reveal for
  1814. single-torrent with file allocation on.
  1815. * src/IteratableChecksumValidator.cc
  1816. * test/IteratableChecksumValidatorTest.cc
  1817. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1818. Avoid circular reference between RequestGroup and AdaptiveURISelector
  1819. * src/RequestGroupMan.cc
  1820. * src/AdaptiveURISelector.cc
  1821. * src/AdaptiveURISelector.h
  1822. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1823. * Release 1.3.2
  1824. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1825. Updated README
  1826. * README
  1827. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1828. Updated Ukrainian translations. Thanks to Alexander10.
  1829. * po/uk.po
  1830. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1831. Code cleanup
  1832. * src/MetalinkParserStateMachine.cc
  1833. * src/MetalinkParserStateMachine.h
  1834. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1835. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  1836. and expat simultaneously, MetalinkProcessor is now not base class
  1837. and it is directly implemented in XML2SAXMetalinkProcessor and
  1838. ExpatMetalinkProcessor.
  1839. * src/ExpatMetalinkProcessor.cc
  1840. * src/ExpatMetalinkProcessor.h
  1841. * src/Makefile.am
  1842. * src/MetalinkHelper.cc
  1843. * src/MetalinkProcessor.h
  1844. * src/MetalinkProcessorFactory.cc: Removed.
  1845. * src/MetalinkProcessorFactory.h: Removed
  1846. * src/XML2SAXMetalinkProcessor.cc
  1847. * src/XML2SAXMetalinkProcessor.h
  1848. * test/MetalinkProcessorTest.cc
  1849. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1850. Bump up version number to 1.3.2
  1851. * configure.ac
  1852. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1853. Added missing file.
  1854. * test/Makefile.am
  1855. * test/url-list-singleFileEndsWithSlash.torrent
  1856. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1857. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  1858. request.
  1859. * src/AnnounceList.cc
  1860. * src/AnnounceList.h
  1861. * src/BDE.cc: Added
  1862. * src/BDE.h: Added
  1863. * src/DHTAbstractMessage.cc
  1864. * src/DHTAbstractMessage.h
  1865. * src/DHTAnnouncePeerMessage.cc
  1866. * src/DHTAnnouncePeerMessage.h
  1867. * src/DHTAnnouncePeerReplyMessage.cc
  1868. * src/DHTAnnouncePeerReplyMessage.h
  1869. * src/DHTFindNodeMessage.cc
  1870. * src/DHTFindNodeMessage.h
  1871. * src/DHTFindNodeReplyMessage.cc
  1872. * src/DHTFindNodeReplyMessage.h
  1873. * src/DHTGetPeersMessage.cc
  1874. * src/DHTGetPeersMessage.h
  1875. * src/DHTGetPeersReplyMessage.cc
  1876. * src/DHTGetPeersReplyMessage.h
  1877. * src/DHTMessageFactory.h
  1878. * src/DHTMessageFactoryImpl.cc
  1879. * src/DHTMessageFactoryImpl.h
  1880. * src/DHTMessageReceiver.cc
  1881. * src/DHTMessageTracker.cc
  1882. * src/DHTMessageTracker.h
  1883. * src/DHTPingMessage.cc
  1884. * src/DHTPingMessage.h
  1885. * src/DHTPingReplyMessage.cc
  1886. * src/DHTPingReplyMessage.h
  1887. * src/DHTQueryMessage.cc
  1888. * src/DHTQueryMessage.h
  1889. * src/DHTResponseMessage.cc
  1890. * src/DHTResponseMessage.h
  1891. * src/DefaultBtAnnounce.cc
  1892. * src/DefaultBtContext.cc
  1893. * src/DefaultBtContext.h
  1894. * src/HandshakeExtensionMessage.cc
  1895. * src/Makefile.am
  1896. * src/PeerListProcessor.h
  1897. * src/UTPexExtensionMessage.cc
  1898. * src/bencode.cc
  1899. * src/bencode.h
  1900. * test/AnnounceListTest.cc
  1901. * test/BDETest.cc: Added
  1902. * test/BencodeTest.cc
  1903. * test/DHTAnnouncePeerMessageTest.cc
  1904. * test/DHTAnnouncePeerReplyMessageTest.cc
  1905. * test/DHTFindNodeMessageTest.cc
  1906. * test/DHTFindNodeReplyMessageTest.cc
  1907. * test/DHTGetPeersMessageTest.cc
  1908. * test/DHTGetPeersReplyMessageTest.cc
  1909. * test/DHTMessageFactoryImplTest.cc
  1910. * test/DHTMessageTrackerTest.cc
  1911. * test/DHTPingMessageTest.cc
  1912. * test/DHTPingReplyMessageTest.cc
  1913. * test/Makefile.am
  1914. * test/MockDHTMessageFactory.h
  1915. * test/PeerListProcessorTest.cc
  1916. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1917. Use url-list (web-seeding) only for single-file torrent. This is
  1918. basically the same behavior with Metalink file with torrent and
  1919. URIs.
  1920. * src/RequestGroup.cc
  1921. * src/DefaultBtContext.cc
  1922. * test/DefaultBtContextTest.cc
  1923. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1924. Rewritten expr
  1925. * src/array_fun.h
  1926. * test/array_funTest.cc
  1927. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1928. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  1929. * src/DefaultBtMessageDispatcher.cc
  1930. * src/a2algo.h
  1931. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1932. Removed ExtendedMessagingAware. Instead of using inheritance,
  1933. added ExtensionMessageRegistry and it is passed to
  1934. DefaultExtensionMessageFactory.
  1935. * src/DefaultBtInteractive.cc
  1936. * src/DefaultBtInteractive.h
  1937. * src/DefaultExtensionMessageFactory.cc
  1938. * src/DefaultExtensionMessageFactory.h
  1939. * src/ExtendedMessagingAware.h: Removed.
  1940. * src/ExtensionMessageFactory.h
  1941. * src/ExtensionMessageRegistry.h: Added.
  1942. * src/Makefile.am
  1943. * src/PeerInteractionCommand.cc
  1944. * test/DefaultExtensionMessageFactoryTest.cc
  1945. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1946. Fixed typo in log messages
  1947. * src/MSEHandshake.cc
  1948. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1949. Fixed the bug that prevents torrent download from finishing. The
  1950. bug doesn't reveal for all torrents. The torrents affected this
  1951. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  1952. of pieces.
  1953. * src/bitfield.h
  1954. * test/bitfieldTest.cc
  1955. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1956. Code cleanup
  1957. * src/PeerListProcessor.h
  1958. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1959. Removed RequestGroupAware
  1960. * src/AbstractCommand.cc
  1961. * src/AbstractCommand.h
  1962. * src/ActivePeerConnectionCommand.cc
  1963. * src/ActivePeerConnectionCommand.h
  1964. * src/DHTGetPeersCommand.cc
  1965. * src/DHTGetPeersCommand.h
  1966. * src/InitiatorMSEHandshakeCommand.cc
  1967. * src/InitiatorMSEHandshakeCommand.h
  1968. * src/Makefile.am
  1969. * src/PeerInitiateConnectionCommand.cc
  1970. * src/PeerInitiateConnectionCommand.h
  1971. * src/PeerInteractionCommand.cc
  1972. * src/PeerInteractionCommand.h
  1973. * src/RealtimeCommand.cc
  1974. * src/RealtimeCommand.h
  1975. * src/RequestGroupAware.cc: Removed
  1976. * src/RequestGroupAware.h: Removed
  1977. * src/SeedCheckCommand.cc
  1978. * src/SeedCheckCommand.h
  1979. * src/SleepCommand.cc
  1980. * src/TrackerWatcherCommand.cc
  1981. * src/TrackerWatcherCommand.h
  1982. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1983. Rewritten PeerListProcessor
  1984. * src/PeerListProcessor.h
  1985. * src/CompactPeerListProcessor.h: Removed
  1986. * src/CompactPeerListProcessor.cc: Removed
  1987. * src/DelegatingPeerListProcessor.cc: Removed.
  1988. * src/DefaultBtAnnounce.cc
  1989. * src/Makefile.am
  1990. * src/UTPexExtensionMessage.cc
  1991. * src/DefaultPeerListProcessor.h: Removed.
  1992. * src/DefaultPeerListProcessor.cc: Removed.
  1993. * src/DelegatingPeerListProcessor.h: Removed.
  1994. * test/Makefile.am
  1995. * test/PeerListProcessorTest.cc
  1996. * test/DefaultPeerListProcessorTest.cc: Removed.
  1997. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1998. Rewritten RequestGroupMan::calculateStat()
  1999. * src/RequestGroupMan.cc
  2000. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2001. Removed unnecessary virtual destructor for Request class.
  2002. * src/Request.cc
  2003. * src/Request.h
  2004. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2005. Avoid dynamic_pointer_cast.
  2006. * src/DHTGetPeersCommand.cc
  2007. * src/DHTGetPeersCommand.h
  2008. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2009. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  2010. BtEvent.
  2011. * src/AbstractBtEventListener.h: Removed.
  2012. * src/AbstractBtMessage.cc
  2013. * src/AbstractBtMessage.h
  2014. * src/BtAbortOutstandingRequestEvent.h
  2015. * src/BtCancelSendingPieceEvent.h
  2016. * src/BtChokedEvent.h: Removed.
  2017. * src/BtChokingEvent.h
  2018. * src/BtEvent.h: Removed
  2019. * src/BtEventListener.h: Removed.
  2020. * src/BtMessage.h
  2021. * src/BtPieceMessage.cc
  2022. * src/BtPieceMessage.h
  2023. * src/BtRequestMessage.cc
  2024. * src/BtRequestMessage.h
  2025. * src/DefaultBtMessageDispatcher.cc
  2026. * src/Makefile.am
  2027. * src/a2functional.h
  2028. * test/BtPieceMessageTest.cc
  2029. * test/BtRequestMessageTest.cc
  2030. * test/DefaultBtMessageDispatcherTest.cc
  2031. * test/MockBtMessage.h
  2032. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2033. Code cleanup
  2034. * src/RequestGroupMan.cc
  2035. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2036. Code cleanup
  2037. * src/DownloadCommand.cc
  2038. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2039. Fixed segmentation fault when GZipDecoder::decode() returns 0
  2040. byte.
  2041. * src/DownloadCommand.cc
  2042. * src/bitfield.h
  2043. * test/bitfieldTest.cc
  2044. Fixed the bug that causes infinite loop if broken web server
  2045. returns chunked response without last "0" chunk-size marker and
  2046. closes connection.
  2047. * src/DownloadCommand.cc
  2048. Instantiate properly configured HttpDownloadCommand for
  2049. non-resumable downlaods.
  2050. * src/HttpResponseCommand.cc
  2051. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2052. Rewritten array operation functions.
  2053. * src/BitfieldMan.cc
  2054. * src/array_fun.h
  2055. * test/array_funTest.cc
  2056. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2057. Removed unused variable 'query'
  2058. * src/Request.cc
  2059. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2060. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  2061. accidentally set to false in r1162.
  2062. * configure.ac
  2063. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2064. Code cleanup
  2065. * src/BNode.cc
  2066. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2067. Increase prefixLength for the bucket which doesn't own local node
  2068. ID when splitting bucket.
  2069. * src/DHTBucket.cc
  2070. * test/DHTBucketTest.cc
  2071. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2072. * Release 1.3.1
  2073. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2074. Bump up version number to 1.3.1
  2075. * configure.ac
  2076. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2077. Removed unused variable checkPoint. Also removed include directive
  2078. for TimeA2.h.
  2079. * src/SeedCheckCommand.h
  2080. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2081. Fixed the bug that upload limit exceeds the value specified in
  2082. --seed-ratio option depending on the timing of the execution of
  2083. SeedCheckCommand.
  2084. * src/SeedCheckCommand.cc
  2085. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2086. Fixed the bug that removed peer's session upload/download length
  2087. are counted twice in _cachedTransferStat before it is
  2088. re-calculated. This affected the calculation of shara ratio,
  2089. resulting aria2 wrongly determines that specified share ratio is
  2090. reached. Also fixed the typo in calculateStatFor function name.
  2091. * src/BtSetup.cc
  2092. * src/DefaultPeerStorage.cc
  2093. * src/ShareRatioSeedCriteria.h
  2094. * test/ShareRatioSeedCriteriaTest.cc
  2095. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2096. * Release 1.3.0
  2097. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2098. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  2099. Nynorsk translations. Thanks to all translators.
  2100. * po/es.po
  2101. * po/ja.po
  2102. * po/nn.po
  2103. * po/ru.po
  2104. * po/uk.po
  2105. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2106. Rewritten isInRange()
  2107. * src/DHTBucket.cc
  2108. * test/DHTBucketTest.cc
  2109. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2110. Fixed typo
  2111. * doc/aria2c.1.txt
  2112. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2113. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  2114. malloc/realloc is not used.
  2115. * src/configure.ac
  2116. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2117. BitfieldMan::getMissingIndexes family functions now takes unsigned
  2118. char* bitfield instead of stl container for efficiency.
  2119. PieceSelector::select now takes this
  2120. bitfield. RarestPieceSelector::select now also performs
  2121. efficiently for this change. bitfield namespace is introduced and
  2122. it has several helper functions to handle basic bitfield
  2123. operations such as test, count set bits, etc.
  2124. * src/BitfieldMan.cc
  2125. * src/BitfieldMan.h
  2126. * src/DefaultBtRequestFactory.cc
  2127. * src/DefaultPieceStorage.cc
  2128. * src/DefaultPieceStorage.h
  2129. * src/LongestSequencePieceSelector.cc
  2130. * src/LongestSequencePieceSelector.h
  2131. * src/Makefile.am
  2132. * src/Piece.cc
  2133. * src/Piece.h
  2134. * src/PieceSelector.h
  2135. * src/RarestPieceSelector.cc
  2136. * src/RarestPieceSelector.h
  2137. * src/Util.cc
  2138. * src/Util.h
  2139. * src/bitfield.h
  2140. * test/BitfieldManTest.cc
  2141. * test/LongestSequencePieceSelectorTest.cc
  2142. * test/Makefile.am
  2143. * test/RarestPieceSelectorTest.cc
  2144. * test/UtilTest.cc
  2145. * test/bitfieldTest.cc
  2146. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2147. Made accepted socket non-block.
  2148. * src/FtpNegotiationCommand.cc
  2149. * src/HttpListenCommand.cc
  2150. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2151. Guarded #ifdef HAVE_POSIX_FALLOCATE
  2152. * src/AbstractSingleDiskAdaptor.cc
  2153. * src/DefaultPieceStorage.cc
  2154. * src/DiskAdaptor.h
  2155. * src/DiskAdaptor.h
  2156. * src/MultiFileAllocationIterator.cc
  2157. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2158. Run
  2159. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  2160. in every 1 sec. The timeout of RequestSlot is 60s by default and
  2161. it doesn't need to be called every time when
  2162. DefaultBtInteractive::doInteractionProcessing() is called.
  2163. * src/DefaultBtInteractive.cc
  2164. * src/DefaultBtInteractive.h
  2165. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2166. Documented 'falloc' in man page.
  2167. * doc/aria2c.1.txt
  2168. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2169. Updated doc
  2170. * src/usage_text.h
  2171. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2172. Added 'falloc' parameter for --file-allocation option. 'falloc'
  2173. allocation mode uses posix_fallocate() system call to allocate
  2174. file on disk. If you are using newer file systems such as ext4
  2175. (with extents support), btrfs or xfs, 'falloc' is your best
  2176. choice. It allocates large(few GiB) files almost instantly. Don't
  2177. use 'falloc' with legacy file systems such as ext3 because it
  2178. takes almost same time as 'prealloc' and it blocks aria2 entirely
  2179. until allocation finishes. 'falloc' may not be available if your
  2180. system doesn't have posix_fallocate() system call.
  2181. * configure.ac
  2182. * src/AbstractDiskWriter.cc
  2183. * src/AbstractDiskWriter.h
  2184. * src/AbstractSingleDiskAdaptor.cc
  2185. * src/BinaryStream.h
  2186. * src/BtCheckIntegrityEntry.cc
  2187. * src/ByteArrayDiskWriter.h
  2188. * src/CheckIntegrityEntry.cc
  2189. * src/CheckIntegrityEntry.h
  2190. * src/DefaultPieceStorage.cc
  2191. * src/DiskAdaptor.cc
  2192. * src/DiskAdaptor.h
  2193. * src/DiskWriter.h
  2194. * src/FallocFileAllocationIterator.cc
  2195. * src/FallocFileAllocationIterator.h
  2196. * src/FileAllocationEntry.cc
  2197. * src/FileAllocationEntry.h
  2198. * src/Makefile.am
  2199. * src/MultiFileAllocationIterator.cc
  2200. * src/MultiFileAllocationIterator.h
  2201. * src/OptionHandlerFactory.cc
  2202. * src/RequestGroup.cc
  2203. * src/StreamCheckIntegrityEntry.cc
  2204. * src/prefs.cc
  2205. * src/prefs.h
  2206. * src/usage_text.h
  2207. * test/FallocFileAllocationIteratorTest.cc
  2208. * test/Makefile.am
  2209. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2210. Removed duplicate enableDirectIO() call.
  2211. * src/MultiFileAllocationIterator.cc
  2212. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2213. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  2214. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  2215. cost of std::rotate().
  2216. * src/RarestPieceSelector.cc
  2217. * src/RarestPieceSelector.h
  2218. * test/RarestPieceSelectorTest.cc
  2219. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2220. Updated usage doc for --bt-tracker-interval option.
  2221. * src/usage_text.h
  2222. * doc/aria2c.1.txt
  2223. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2224. Documented --bt-tracker-interval option in man page.
  2225. * doc/aria2c.1.txt
  2226. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2227. Added an option to specify the interval between tracker requests.
  2228. If non-zero value is specified, aria2 uses it and ignores the
  2229. interval value in the response of tracker. If zero is specified,
  2230. aria2 determines the inteval value based on the tarcker response
  2231. and download progress.
  2232. * src/DefaultBtAnnounce.cc
  2233. * src/DefaultBtAnnounce.h
  2234. * src/OptionHandlerFactory.cc
  2235. * src/RequestGroup.cc
  2236. * src/prefs.cc
  2237. * src/prefs.h
  2238. * src/usage_text.h
  2239. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2240. Added operator+=, operator-=, operator-
  2241. * src/TransferStat.cc
  2242. * src/TransferStat.h
  2243. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2244. Refactored RarestPieceSelector to reduce CPU load, especially for
  2245. addPieceStats.
  2246. * src/RarestPieceSelector.cc
  2247. * src/RarestPieceSelector.h
  2248. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2249. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  2250. getAllMissingBlockIndexes to reduce a call to
  2251. array_function_base::operator[].
  2252. * src/BitfieldMan.cc
  2253. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2254. Cached TransferStat/download speed to avoid to sum them up in each
  2255. call.
  2256. * src/DefaultPeerStorage.cc
  2257. * src/DefaultPeerStorage.h
  2258. * src/SegmentMan.cc
  2259. * src/SegmentMan.h
  2260. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2261. Typedefed cuid_t as int32_t in Command.h
  2262. * src/CUIDCounter.h
  2263. * src/Command.cc
  2264. * src/Command.h
  2265. * src/DownloadEngine.cc
  2266. * src/DownloadEngine.h
  2267. * src/PeerStat.h
  2268. * src/SegmentMan.cc
  2269. * src/SegmentMan.h
  2270. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2271. Reduced the number of calls to PeerStorage::calculateStat() and
  2272. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  2273. transfer rate.
  2274. * src/DefaultBtInteractive.cc
  2275. * src/DefaultBtMessageDispatcher.cc
  2276. * src/DefaultPeerStorage.cc
  2277. * src/DefaultPeerStorage.h
  2278. * src/DownloadCommand.cc
  2279. * src/DownloadEngine.cc
  2280. * src/PeerStorage.h
  2281. * src/SegmentMan.cc
  2282. * src/SegmentMan.h
  2283. * test/MockPeerStorage.h
  2284. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2285. Prepended _dir+"/" after joining path elements in torrent file.
  2286. * src/DefaultBtContext.cc
  2287. * test/DefaultBtContextTest.cc
  2288. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2289. Added missing IndexBtMessageValidator.h
  2290. * src/Makefile.am
  2291. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2292. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  2293. Chinese translations. Thank you for contributing our project.
  2294. * po/id.po
  2295. * po/it.po
  2296. * po/ru.po
  2297. * po/uk.po
  2298. * po/zh_CN.po
  2299. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2300. Updated README
  2301. * README
  2302. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2303. Bump up version number to 1.3.0
  2304. * configure.ac
  2305. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2306. Updated doc
  2307. * src/DefaultBtContext.h
  2308. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2309. Slice/joinPath for name of single torrent.
  2310. * src/DefaultBtContext.cc
  2311. * test/DefaultBtContextTest.cc
  2312. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2313. Updated man page: Documented --dry-run and --index-out
  2314. options. Changed the default value of --uri-selector and
  2315. --http-auth-challenge options. Removed --direct-file-mapping
  2316. option. Added example for --index-out
  2317. * doc/aria2c.1.txt
  2318. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2319. Updated TEXT_DRY_RUN
  2320. * src/usage_text.h
  2321. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2322. Changed the default value of --uri-selector option from 'inorder'
  2323. to 'feedback'
  2324. * src/OptionHandlerFactory.cc
  2325. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2326. Included current URI in exception message.
  2327. * src/AbstractCommand.cc
  2328. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2329. Renamed ServerStatURISelector as FeedbackURISelector.
  2330. * src/FeedbackURISelector.cc
  2331. * src/FeedbackURISelector.h
  2332. * src/Makefile.am
  2333. * src/RequestGroupMan.cc
  2334. * src/ServerStatURISelector.cc
  2335. * src/ServerStatURISelector.h
  2336. * test/FeedbackURISelectorTest.cc
  2337. * test/Makefile.am
  2338. * test/ServerStatURISelectorTest.cc
  2339. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2340. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  2341. all URIs are tested and their timeout is not reached.
  2342. * src/AdaptiveURISelector.cc
  2343. * src/AdaptiveURISelector.h
  2344. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2345. Changed the default value of --http-auth-challenge option to false.
  2346. * src/OptionHandlerFactory.cc
  2347. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2348. Reuse URIs when all unused URIs run out.
  2349. * src/OptionHandlerFactory.cc
  2350. * src/RequestGroup.cc
  2351. * src/prefs.cc
  2352. * src/prefs.h
  2353. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2354. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  2355. and BtRejectMessage are derived from RangeBtMessage class.
  2356. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  2357. derived from IndexBtMessage class. BtChokeMessage,
  2358. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  2359. BtNotInterestedMessage and BtUnchokeMessage are derived from
  2360. ZeroBtMessage class.
  2361. * src/AbstractBtMessage.cc
  2362. * src/AbstractBtMessage.h
  2363. * src/BtAllowedFastMessage.cc
  2364. * src/BtAllowedFastMessage.h
  2365. * src/BtAllowedFastMessageValidator.h: Removed
  2366. * src/BtBitfieldMessage.cc
  2367. * src/BtBitfieldMessage.h
  2368. * src/BtCancelMessage.cc
  2369. * src/BtCancelMessage.h
  2370. * src/BtCancelMessageValidator.h: Removed
  2371. * src/BtChokeMessage.cc
  2372. * src/BtChokeMessage.h
  2373. * src/BtExtendedMessage.cc
  2374. * src/BtExtendedMessage.h
  2375. * src/BtHandshakeMessage.cc
  2376. * src/BtHandshakeMessage.h
  2377. * src/BtHaveAllMessage.cc
  2378. * src/BtHaveAllMessage.h
  2379. * src/BtHaveMessage.cc
  2380. * src/BtHaveMessage.h
  2381. * src/BtHaveMessageValidator.h: Removed
  2382. * src/BtHaveNoneMessage.cc
  2383. * src/BtHaveNoneMessage.h
  2384. * src/BtInterestedMessage.cc
  2385. * src/BtInterestedMessage.h
  2386. * src/BtKeepAliveMessage.cc
  2387. * src/BtKeepAliveMessage.h
  2388. * src/BtNotInterestedMessage.cc
  2389. * src/BtNotInterestedMessage.h
  2390. * src/BtPieceMessage.cc
  2391. * src/BtPieceMessage.h
  2392. * src/BtPortMessage.cc
  2393. * src/BtPortMessage.h
  2394. * src/BtRejectMessage.cc
  2395. * src/BtRejectMessage.h
  2396. * src/BtRejectMessageValidator.h: Removed
  2397. * src/BtRequestMessage.cc
  2398. * src/BtRequestMessage.h
  2399. * src/BtRequestMessageValidator.h: Removed
  2400. * src/BtSuggestPieceMessage.cc
  2401. * src/BtSuggestPieceMessage.h
  2402. * src/BtSuggestPieceMessageValidator.h: Removed
  2403. * src/BtUnchokeMessage.cc
  2404. * src/BtUnchokeMessage.h
  2405. * src/DefaultBtMessageFactory.cc
  2406. * src/IndexBtMessage.cc
  2407. * src/IndexBtMessage.h
  2408. * src/IndexBtMessageValidator.h
  2409. * src/Makefile.am
  2410. * src/PeerMessageUtil.cc
  2411. * src/PeerMessageUtil.h
  2412. * src/RangeBtMessage.cc
  2413. * src/RangeBtMessage.h
  2414. * src/RangeBtMessageValidator.h
  2415. * src/SimpleBtMessage.cc
  2416. * src/SimpleBtMessage.h
  2417. * src/ZeroBtMessage.cc
  2418. * src/ZeroBtMessage.h
  2419. * test/BtRequestMessageTest.cc
  2420. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2421. Reverted usage_text.h to r1093 to avoid to lose translated
  2422. messages.
  2423. * src/usage_text.h
  2424. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2425. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  2426. declared as non-const previously is now const and defined in class
  2427. definition.
  2428. * src/AbstractBtMessage.cc
  2429. * src/AbstractBtMessage.h
  2430. * src/BtAllowedFastMessage.cc
  2431. * src/BtAllowedFastMessage.h
  2432. * src/BtBitfieldMessage.h
  2433. * src/BtCancelMessage.cc
  2434. * src/BtCancelMessage.h
  2435. * src/BtChokeMessage.cc
  2436. * src/BtChokeMessage.h
  2437. * src/BtExtendedMessage.cc
  2438. * src/BtExtendedMessage.h
  2439. * src/BtHandshakeMessage.cc
  2440. * src/BtHandshakeMessage.h
  2441. * src/BtHaveAllMessage.cc
  2442. * src/BtHaveAllMessage.h
  2443. * src/BtHaveMessage.cc
  2444. * src/BtHaveMessage.h
  2445. * src/BtHaveNoneMessage.cc
  2446. * src/BtHaveNoneMessage.h
  2447. * src/BtInterestedMessage.cc
  2448. * src/BtInterestedMessage.h
  2449. * src/BtKeepAliveMessage.cc
  2450. * src/BtKeepAliveMessage.h
  2451. * src/BtMessage.h
  2452. * src/BtNotInterestedMessage.cc
  2453. * src/BtNotInterestedMessage.h
  2454. * src/BtPieceMessage.h
  2455. * src/BtPortMessage.cc
  2456. * src/BtPortMessage.h
  2457. * src/BtRejectMessage.cc
  2458. * src/BtRejectMessage.h
  2459. * src/BtRequestMessage.cc
  2460. * src/BtRequestMessage.h
  2461. * src/BtSuggestPieceMessage.cc
  2462. * src/BtSuggestPieceMessage.h
  2463. * src/BtUnchokeMessage.cc
  2464. * src/BtUnchokeMessage.h
  2465. * src/SimpleBtMessage.cc
  2466. * src/SimpleBtMessage.h
  2467. * test/MockBtMessage.h
  2468. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2469. Use FileEntry::exists()
  2470. * src/MultiDiskAdaptor.cc
  2471. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2472. Added exists()
  2473. * src/FileEntry.cc
  2474. * src/FileEntry.h
  2475. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2476. Added missing prefix dir.
  2477. * src/download_helper.cc
  2478. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2479. Removed --direct-file-mapping option and CopyDiskAdaptor.
  2480. * src/CopyDiskAdaptor.cc: Removed
  2481. * src/CopyDiskAdaptor.h: Removed
  2482. * src/DefaultPieceStorage.cc
  2483. * src/Makefile.am
  2484. * src/OptionHandlerFactory.cc
  2485. * src/prefs.cc
  2486. * src/prefs.h
  2487. * src/usage_text.h
  2488. * test/CopyDiskAdaptorTest.cc: Removed
  2489. * test/Makefile.am
  2490. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2491. Rewritten isSameFileBeingDownloaded()
  2492. * src/RequestGroupMan.cc
  2493. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2494. Removed getName() from DownloadContext. getName() is declared in
  2495. BtContext.
  2496. * src/BtContext.h
  2497. * src/DownloadContext.h
  2498. * src/SingleFileDownloadContext.cc
  2499. * src/SingleFileDownloadContext.h
  2500. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  2501. in AbstractSingleDiskAdaptor.
  2502. * src/AbstractSingleDiskAdaptor.h
  2503. * src/DiskAdaptor.h
  2504. * src/MultiDiskAdaptor.h
  2505. * src/RequestGroup.cc
  2506. Removed setTopDir() and getTopDir() and getTopDirPath() from
  2507. MultiDiskAdaptor.
  2508. * src/DefaultPieceStorage.cc
  2509. * src/MultiDiskAdaptor.cc
  2510. * src/MultiDiskAdaptor.h
  2511. * test/MultiDiskAdaptorTest.cc
  2512. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2513. FileEntry::getPath() contains store(top level) directory to
  2514. simplify path handling operation. In the previous implementation,
  2515. store directory is concatenated to FileEntry::getPath() in
  2516. DownloadContext.
  2517. * src/BtDependency.cc
  2518. * src/BtPostDownloadHandler.cc
  2519. * src/CopyDiskAdaptor.cc
  2520. * src/DefaultBtContext.cc
  2521. * src/DirectDiskAdaptor.cc
  2522. * src/FileEntry.cc
  2523. * src/FileEntry.h
  2524. * src/FtpNegotiationCommand.cc
  2525. * src/HttpResponse.cc
  2526. * src/HttpResponseCommand.cc
  2527. * src/Metalink2RequestGroup.cc
  2528. * src/MultiDiskAdaptor.cc
  2529. * src/MultiDiskAdaptor.h
  2530. * src/MultiFileAllocationIterator.cc
  2531. * src/RequestGroup.cc
  2532. * src/SingleFileDownloadContext.cc
  2533. * src/SingleFileDownloadContext.h
  2534. * src/download_helper.cc
  2535. * test/BtDependencyTest.cc
  2536. * test/CopyDiskAdaptorTest.cc
  2537. * test/DefaultBtContextTest.cc
  2538. * test/DefaultBtProgressInfoFileTest.cc
  2539. * test/DirectDiskAdaptorTest.cc
  2540. * test/DownloadHelperTest.cc
  2541. * test/FileEntryTest.cc
  2542. * test/MultiDiskAdaptorTest.cc
  2543. * test/MultiFileAllocationIteratorTest.cc
  2544. * test/RequestGroupTest.cc
  2545. * test/SingleFileDownloadContextTest.cc
  2546. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2547. Fixed compiler warning
  2548. * src/download_helper.cc
  2549. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2550. Throw exception if same infohash torrent is now downloading.
  2551. * src/RequestGroup.cc
  2552. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2553. Added --dry-run option. In this mode, aria2 just checks whether
  2554. the remote file is available and doesn't download data. This
  2555. option has effect on HTTP/FTP downloads and BitTorrent downloads
  2556. are canceled in this mode.
  2557. * src/FtpNegotiationCommand.cc
  2558. * src/HttpResponseCommand.cc
  2559. * src/HttpResponseCommand.h
  2560. * src/OptionHandlerFactory.cc
  2561. * src/RequestGroup.cc
  2562. * src/RequestGroupMan.cc
  2563. * src/prefs.cc
  2564. * src/prefs.h
  2565. * src/usage_text.h
  2566. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2567. Fixed compiler waring
  2568. * test/UriListParserTest.cc
  2569. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2570. Parse options in -i list using OptionParser.
  2571. * src/UriListParser.cc
  2572. * src/UriListParser.h
  2573. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2574. Don't reset URI in retry to avoid additional round trips because
  2575. of redirects.
  2576. * src/AbstractCommand.cc
  2577. * src/OptionHandlerFactory.cc
  2578. * src/prefs.cc
  2579. * src/prefs.h
  2580. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2581. Declared hide() in OptionHandler.
  2582. * src/NameMatchOptionHandler.h
  2583. * src/OptionHandler.h
  2584. * src/OptionHandlerImpl.h
  2585. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2586. Updated doc
  2587. * src/Peer.h
  2588. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2589. Added log message in setStatusInternal()
  2590. * src/ServerStat.cc
  2591. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2592. Call ServerStat::setError() in AbstractCommand::onAbort() to
  2593. effectively exclude failed server.
  2594. * src/AbstractCommand.cc
  2595. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2596. Added --index-out option to specify each file path for torrent.
  2597. Here index shown in --show-files option is used to specify which
  2598. file path should be altered. For example, to change the file path
  2599. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  2600. option multiple times: --index-out=1=aria2.tar.bz2
  2601. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  2602. available. This option can be specified in -i list.
  2603. * src/DefaultBtContext.cc
  2604. * src/DefaultBtContext.h
  2605. * src/MultiDiskAdaptor.cc
  2606. * src/MultiDiskAdaptor.h
  2607. * src/MultiFileAllocationIterator.cc
  2608. * src/OptionHandlerFactory.cc
  2609. * src/OptionHandlerImpl.h
  2610. * src/Util.cc
  2611. * src/Util.h
  2612. * src/download_helper.cc
  2613. * src/prefs.cc
  2614. * src/prefs.h
  2615. * src/usage_text.h
  2616. * test/DefaultBtContextTest.cc
  2617. * test/MultiDiskAdaptorTest.cc
  2618. * test/MultiFileAllocationIteratorTest.cc
  2619. * test/UtilTest.cc
  2620. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2621. Use Util::pathJoin()
  2622. * src/MetalinkParserController.cc
  2623. * test/test.xml
  2624. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2625. Use Util::pathJoin()
  2626. * src/DefaultBtContext.cc
  2627. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2628. Added Util::pathJoin()
  2629. * src/Util.h
  2630. * test/UtilTest.cc
  2631. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2632. Applied basename function to remove directory element in
  2633. content-disposition value.
  2634. Return empty string if content-disposition value is ".." or ".".
  2635. * src/Util.cc
  2636. * test/UtilTest.cc
  2637. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2638. Added --max-overall-download-limit in man page.
  2639. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  2640. * doc/aria2c.1.txt
  2641. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2642. Added --max-overall-download-limit option. Now --max-upload-limit
  2643. option is not ignored when --max-overall-upload-limit option has
  2644. non-zero value. aria2 checks download(upload) speed in the order:
  2645. first checks overall speed limit and if it is not exceeded, then
  2646. checks speed limit per download. Thus you can specify both
  2647. value. For example, set --max-overall-download-limit=1M and
  2648. --max-download-limit=500K to prevent from one download from eating
  2649. all overall speed limit.
  2650. * src/DefaultBtInteractive.cc
  2651. * src/DefaultBtInteractive.h
  2652. * src/DefaultBtMessageDispatcher.cc
  2653. * src/DefaultBtMessageDispatcher.h
  2654. * src/DownloadCommand.cc
  2655. * src/DownloadCommand.h
  2656. * src/FtpNegotiationCommand.cc
  2657. * src/HttpResponseCommand.cc
  2658. * src/OptionHandlerFactory.cc
  2659. * src/PeerInteractionCommand.cc
  2660. * src/RequestGroup.cc
  2661. * src/RequestGroup.h
  2662. * src/RequestGroupMan.cc
  2663. * src/RequestGroupMan.h
  2664. * src/prefs.cc
  2665. * src/prefs.h
  2666. * src/usage_text.h
  2667. * test/DefaultBtMessageDispatcherTest.cc
  2668. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2669. Documented select-file option in Input File section.
  2670. Documented --http-auth-challenge option.
  2671. * doc/aria2c.1.txt
  2672. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2673. Now select-file can be specified in the uri list(-i list).
  2674. * src/BtContext.cc
  2675. * src/BtContext.h
  2676. * src/RequestGroup.cc
  2677. * src/Sequence.h
  2678. * src/download_helper.cc
  2679. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2680. Made the upper value of --max-concurrent-downloads options unlimited.
  2681. * src/OptionHandlerFactory.cc
  2682. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2683. Fixed the bug that disk writer is not created even if it shares
  2684. same piece with the preceding file if the length of previous file
  2685. is 0.
  2686. * src/MultiDiskAdaptor.cc
  2687. * test/MultiDiskAdaptorTest.cc
  2688. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2689. In BitTorrent, Open files in read-only mode for hash check. After
  2690. that, re-open file in read/write mode only when the download is
  2691. not finished.
  2692. * src/AbstractDiskWriter.cc
  2693. * src/AbstractDiskWriter.h
  2694. * src/AbstractSingleDiskAdaptor.cc
  2695. * src/AbstractSingleDiskAdaptor.h
  2696. * src/BtCheckIntegrityEntry.cc
  2697. * src/DiskAdaptor.h
  2698. * src/DiskWriter.h
  2699. * src/MultiDiskAdaptor.cc
  2700. * src/MultiDiskAdaptor.h
  2701. * src/RequestGroup.cc
  2702. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2703. Added --http-auth-challenge option. If it is set to true(by
  2704. default), aria2 sends HTTP authorization header only when it is
  2705. requested by the server. If false is set, then authorization
  2706. header is always sent to the server. This is useful for servers
  2707. that don't respond 401 code when authentication is required.
  2708. There is an exception: if username and password are embedded in
  2709. URI, authorization header is always sent to the server regardless
  2710. of this option.
  2711. * src/AuthConfigFactory.cc
  2712. * src/HttpSkipResponseCommand.cc
  2713. * src/OptionHandlerFactory.cc
  2714. * src/prefs.cc
  2715. * src/prefs.h
  2716. * src/usage_text.h
  2717. * test/AuthConfigFactoryTest.cc
  2718. * test/HttpRequestTest.cc
  2719. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2720. * Release 1.2.0
  2721. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2722. Updated Spanish, Ukrainian, Russian and Japanese translations.
  2723. Thanks to all translators.
  2724. * po/es.po
  2725. * po/ja.po
  2726. * po/ru.po
  2727. * po/uk.po
  2728. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2729. Call deleteSocketForReadCheck() before socket is closed.
  2730. * src/HttpListenCommand.cc
  2731. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2732. Defined virtual destructor for BObject.
  2733. * src/bencode.h
  2734. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2735. Rewritten BDE to make it efficient.
  2736. * src/bencode.cc
  2737. * src/bencode.h
  2738. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2739. Removed function throw list.
  2740. * src/bencode.cc
  2741. * src/bencode.h
  2742. * test/BencodeTest.cc
  2743. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2744. Enclosed all URLs in double quotes in command-line examples.
  2745. * doc/aria2c.1.txt
  2746. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2747. Updated reference/see also section.
  2748. * README
  2749. * doc/aria2c.1.txt
  2750. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2751. Reorganized man page based on man man-pages.
  2752. * doc/aria2c.1.txt
  2753. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2754. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  2755. because same documents are available in man page. Added
  2756. References section.
  2757. * README
  2758. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2759. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  2760. PERFORMANCE PROFILE section.
  2761. * doc/aria2c.1.txt
  2762. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2763. Rewritten the section for configuration file.
  2764. * README
  2765. * doc/aria2c.1.txt
  2766. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2767. Fixed the segmentation fault during execution of choking algorithm
  2768. in leecher state because of broken compare operator
  2769. implementation.
  2770. * src/BtLeecherStateChoke.cc
  2771. * src/BtLeecherStateChoke.h
  2772. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2773. Open file in binary mode.
  2774. * src/CookieStorage.cc
  2775. * src/DHTSetup.cc
  2776. * src/DHTUtil.cc
  2777. * src/Netrc.cc
  2778. * src/NsCookieParser.cc
  2779. * src/ProtocolDetector.cc
  2780. * src/RequestGroupMan.cc
  2781. * src/Signature.cc
  2782. * src/bencode.cc
  2783. * src/download_helper.cc
  2784. * src/option_processing.cc
  2785. * test/CookieParserTest.cc
  2786. * test/DefaultBtProgressInfoFileTest.cc
  2787. * test/FileTest.cc
  2788. * test/GZipDecoderTest.cc
  2789. * test/RequestGroupManTest.cc
  2790. * test/SignatureTest.cc
  2791. * test/SingleFileAllocationIteratorTest.cc
  2792. * test/UriListParserTest.cc
  2793. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2794. Removed operator[] because it is ambiguous with built-in []
  2795. operator.
  2796. * src/array_fun.h
  2797. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2798. Fixed compile error
  2799. * src/OptionParser.cc
  2800. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2801. Added missing call to arrayWrapperConst
  2802. * test/array_funTest.cc
  2803. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2804. Use array_wrapper instead of array_ptr.
  2805. * src/DHTRoutingTableDeserializer.cc
  2806. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2807. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  2808. * src/array_fun.h
  2809. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2810. Added array_wrapper template.
  2811. * src/array_fun.h
  2812. * test/array_funTest.cc
  2813. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2814. Use operator T* of array_ptr.
  2815. * src/OptionParser.cc
  2816. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2817. Use localhost instead of 127.0.0.1
  2818. * test/FtpConnectionTest.cc
  2819. * test/MSEHandshakeTest.cc
  2820. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2821. Added operator T*
  2822. * src/array_fun.h
  2823. * test/array_funTest.cc
  2824. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2825. Use dynamically allocated char array to detect memory access
  2826. violation.
  2827. * src/DHTRoutingTableDeserializer.cc
  2828. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2829. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  2830. defined.
  2831. * src/PeerMessageUtil.cc
  2832. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2833. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  2834. * configure.ac
  2835. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2836. Added a check to see struct sockaddr_in has sin_len member.
  2837. * configure.ac
  2838. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2839. Fixed buffer overrun.
  2840. * src/DHTRoutingTableDeserializer.cc
  2841. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2842. Added LL for long long int constant.
  2843. * test/FtpConnectionTest.cc
  2844. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2845. Casted to unsigned int to suppress compiler warning on netbsd.
  2846. * src/BtRuntime.h
  2847. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2848. Assign the value of tv.tv_sec to time_t timesec instead of giving
  2849. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  2850. type time_t.
  2851. * src/SimpleLogger.cc
  2852. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2853. Added test for FtpConnection::receiveSizeResponse().
  2854. * test/FtpConnectionTest.cc
  2855. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2856. Fix epoll error on the old kernel 2.6.8 or ealier.
  2857. * src/EpollEventPoll.cc
  2858. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2859. Use Util::parseLLInt instead of sscanf for portability. The
  2860. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  2861. * src/FtpConnection.cc
  2862. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2863. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  2864. block. It should not filter anything.
  2865. * src/BitfieldMan.cc
  2866. * src/ConsoleStatCalc.cc
  2867. * test/BitfieldManTest.cc
  2868. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2869. Fixed the bug that the boolean options that don't take arguments
  2870. don't work.
  2871. * src/OptionHandlerImpl.h
  2872. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2873. Fixed broken selected file BitTorrent download.
  2874. * src/MultiDiskAdaptor.cc
  2875. * test/MultiDiskAdaptorTest.cc
  2876. * test/MultiFileAllocationIteratorTest.cc
  2877. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2878. Fixed #define guard for EpollEventPoll
  2879. * src/EpollEventPoll.h
  2880. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2881. Wait 2 seconds. 1 second is sometimes not enough.
  2882. * test/TimeSeedCriteriaTest.cc
  2883. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2884. Use localhost instead of 127.0.0.1.
  2885. * test/DHTConnectionImplTest.cc
  2886. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2887. Suppressed compiler warning.
  2888. * src/AdaptiveURISelector.cc
  2889. * src/DefaultPieceStorage.cc
  2890. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2891. Defined virtual destructor.
  2892. * src/MetalinkParserState.h
  2893. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2894. Give NULL for second argument of getaddrinfo instead of "0".
  2895. * src/NameResolver.cc
  2896. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2897. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  2898. included strptime doesn't parse data for this format.
  2899. * src/FtpConnection.cc
  2900. * test/FtpConnectionTest.cc
  2901. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2902. Removed tests giving -1 for unsigned argument.
  2903. * test/SingleFileDownloadContextTest.cc
  2904. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2905. Don't use sha256 in tests because it might not be supported by the
  2906. SSL library.
  2907. * test/MetalinkProcessorTest.cc
  2908. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2909. Removed tests giving -1 for unsigned argument.
  2910. * test/AlphaNumberDecoratorTest
  2911. * test/BitfieldManTest.cc
  2912. * test/DefaultBtContextTest.cc
  2913. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2914. Fixed compile error without libcares when epoll is available.
  2915. * src/EpollEventPoll.cc
  2916. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2917. Included fstream instead of iostream.
  2918. * test/SignatureTest.cc
  2919. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2920. Removed #include <algorithm>
  2921. * test/RequestGroupTest.cc
  2922. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2923. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  2924. using RequestGroup::extractURIResult().
  2925. * src/AdaptiveURISelector.cc
  2926. * src/RequestGroup.cc
  2927. * src/RequestGroup.h
  2928. * test/RequestGroupTest.cc
  2929. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2930. Added tests for array_ptr.
  2931. * test/array_funTest.cc
  2932. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2933. Don't send ip parameter to a tracker if ip parameter is empty
  2934. string.
  2935. * src/DefaultBtAnnounce.cc
  2936. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2937. Adjusted line feed.
  2938. * src/version_usage.cc
  2939. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2940. Print tags, possible values when OptionHandlerException is caught.
  2941. * src/option_processing.cc
  2942. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2943. Changed the message for FatalException.
  2944. * src/OptionParser.cc
  2945. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2946. Documented --bt-external-ip option in man page. Updated man pages
  2947. for --proxy-method option.
  2948. * doc/aria2c.1.txt
  2949. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2950. Use GET method for FTP via HTTP proxy.
  2951. * src/FtpInitiateConnectionCommand.cc
  2952. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2953. Changed the default value of --proxy-method option from 'tunnel'
  2954. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  2955. option.
  2956. * src/AbstractCommand.cc
  2957. * src/AbstractCommand.h
  2958. * src/FtpInitiateConnectionCommand.cc
  2959. * src/HttpDownloadCommand.cc
  2960. * src/HttpInitiateConnectionCommand.cc
  2961. * src/HttpInitiateConnectionCommand.h
  2962. * src/OptionHandlerFactory.cc
  2963. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2964. Initialized _logger
  2965. * src/SelectEventPoll.cc
  2966. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2967. Defined a copy constructor for the same type.
  2968. * src/SharedHandle.h
  2969. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2970. Added OptionParser::parseArg() which internally uses getopt_long
  2971. to parse command-line options. All command-line options are now
  2972. configured by OptionHandler. No manual editing of struct option*
  2973. is required any more.
  2974. * src/NameMatchOptionHandler.h
  2975. * src/OptionHandler.h
  2976. * src/OptionHandlerFactory.cc
  2977. * src/OptionHandlerImpl.h
  2978. * src/OptionParser.cc
  2979. * src/OptionParser.h
  2980. * src/array_fun.h
  2981. * src/main.cc
  2982. * src/option_processing.cc
  2983. * test/OptionHandlerTest.cc
  2984. * test/OptionParserTest.cc
  2985. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2986. Fixed configure error with --disable-epoll
  2987. * configure.ac
  2988. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2989. Fixed compile error when HAVE_EPOLL is not defined.
  2990. Fixed linker error on bigendian systems.
  2991. * src/SocketCore.cc
  2992. * src/SocketCore.h
  2993. * test/DefaultBtProgressInfoFileTest.cc
  2994. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2995. Added --bt-external-ip option. You can specify the external IP
  2996. address to report to a BitTorrent tracker. Although this function
  2997. is named 'external', it can accept any kind of IP addresses.
  2998. * src/DefaultBtAnnounce.cc
  2999. * src/OptionHandlerFactory.cc
  3000. * src/option_processing.cc
  3001. * src/prefs.cc
  3002. * src/prefs.h
  3003. * src/usage_text.h
  3004. * test/DefaultBtAnnounceTest.cc
  3005. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3006. Extracted the algorithm to find the longest incremental sequence
  3007. as max_sequence template.
  3008. * src/LongestSequencePieceSelector.cc
  3009. * src/a2algo.h
  3010. * test/Makefile.am
  3011. * test/a2algoTest.cc
  3012. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3013. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  3014. * src/usage_text.h
  3015. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3016. Updated doc for --uri-selector, --http-server-listen-port and
  3017. --enable-http-server option. Documented --event-poll option.
  3018. * doc/aria2c.1.txt
  3019. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3020. Updated doc for --enable-http-server.
  3021. * src/usage_text.h
  3022. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3023. Documented --http-server-listen-port and --enable-http-server in
  3024. man page.
  3025. * doc/aria2c.1.txt
  3026. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3027. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  3028. translations. Thanks to all translators.
  3029. * po/es.po
  3030. * po/id.po
  3031. * po/it.po
  3032. * po/ru.po
  3033. * po/uk.po
  3034. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3035. Bump up version number to 1.2.0
  3036. * configure.ac
  3037. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3038. BtContext::getAnnounceTiers() now returns const reference.
  3039. * src/BtContext.h
  3040. * src/DefaultBtContext.cc
  3041. * src/DefaultBtContext.h
  3042. * test/MockBtContext.h
  3043. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3044. Change the number of retries for tracker request based on the
  3045. number of available tracker in a torrent file.
  3046. * src/TrackerWatcherCommand.cc
  3047. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3048. Added _maxTries property to RequestGroup and assign the option
  3049. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  3050. RequestGroup::getMaxTries() instead of
  3051. Option::getAsInt(PREF_MAX_TRIES).
  3052. * src/AbstractCommand.cc
  3053. * src/RequestGroup.cc
  3054. * src/RequestGroup.h
  3055. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3056. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  3057. Mandriva. I modified the patch: make RequestGroup have the
  3058. timeout value and AdaptiveURISelector directly modifies that
  3059. value.
  3060. * src/AbstractCommand.cc
  3061. * src/AdaptiveURISelector.cc
  3062. * src/AdaptiveURISelector.h
  3063. * src/FtpNegotiationCommand.cc
  3064. * src/RequestGroup.cc
  3065. * src/RequestGroup.h
  3066. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3067. Fixed compiler warning
  3068. * test/IteratableChecksumValidatorTest.cc
  3069. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3070. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  3071. integrated downloads. This PieceSelector subclass finds the
  3072. longest continuous sequence in the available missing pieces and
  3073. selects the last index of such sequence. This makes HTTP/FTP
  3074. connections less interrupted by the pieces obtained by BitTorrent
  3075. peers.
  3076. * src/DefaultPieceStorage.cc
  3077. * src/DefaultPieceStorage.h
  3078. * src/LongestSequencePieceSelector.cc
  3079. * src/LongestSequencePieceSelector.h
  3080. * src/Makefile.am
  3081. * src/PieceSelector.h
  3082. * src/RarestPieceSelector.h
  3083. * src/RequestGroup.cc
  3084. * test/BtDependencyTest.cc
  3085. * test/DefaultPieceStorageTest.cc
  3086. * test/IteratableChecksumValidatorTest.cc
  3087. * test/LongestSequencePieceSelectorTest.cc
  3088. * test/Makefile.am
  3089. * test/SegmentManTest.cc
  3090. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3091. Fixed the bug that the average speed is wrong in
  3092. http/ftp/BitTorrent integrated download. Only the download bytes
  3093. in BitTorrent were considered.
  3094. * src/RequestGroup.cc
  3095. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3096. Choose port for BitTorrent/DHT randomly from the specified range.
  3097. * src/DHTConnectionImpl.cc
  3098. * src/PeerListenCommand.cc
  3099. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3100. Send HTTP Authorization header only if it is requested by the
  3101. server(response 401). There are some exceptions. The authorization
  3102. header for proxy is always sent if it is available without request
  3103. by the server. If username/password is specified in the URI, it
  3104. is immediately sent to the server without request by the server.
  3105. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  3106. SharedHandle<AuthConfig>().
  3107. NetrcAuthResolver::resolveAuthConfig() returns
  3108. SharedHandle<AuthConfig>() if no AuthConfig is available.
  3109. * src/AbstractAuthResolver.cc
  3110. * src/AbstractProxyRequestCommand.cc
  3111. * src/AuthConfigFactory.cc
  3112. * src/AuthConfigFactory.h
  3113. * src/HttpConnection.cc
  3114. * src/HttpRequest.cc
  3115. * src/HttpRequest.h
  3116. * src/HttpResponse.cc
  3117. * src/HttpResponseCommand.cc
  3118. * src/HttpSkipResponseCommand.cc
  3119. * test/AuthConfigFactoryTest.cc
  3120. * test/HttpRequestTest.cc
  3121. * test/HttpResponseTest.cc
  3122. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3123. Remove leading "--" from help keyword and a substring after "="
  3124. from help keyword, so that one can query options by '-h--max-' or
  3125. '-hmax-peers=10'.
  3126. * src/option_processing.cc
  3127. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3128. Rewritten PStringVisitor and its implementation.
  3129. * src/PStringBuildVisitor.cc
  3130. * src/PStringBuildVisitor.h
  3131. * src/PStringDatum.h
  3132. * src/PStringNumLoop.h
  3133. * src/PStringSegment.cc
  3134. * src/PStringSegment.h
  3135. * src/PStringSelect.h
  3136. * src/PStringVisitor.h
  3137. * src/download_helper.cc
  3138. * test/PStringBuildVisitorTest.cc
  3139. * test/ParameterizedStringParserTest.cc
  3140. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3141. Persist connection between the built-in HTTP server and a client
  3142. if a client supports keep-alive. Fixed the bug that aria2 exits
  3143. when the HTTP server receives EOF from a client.
  3144. * src/HttpServer.cc
  3145. * src/HttpServer.h
  3146. * src/HttpServerCommand.cc
  3147. * src/HttpServerCommand.h
  3148. * src/HttpServerResponseCommand.cc
  3149. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3150. Added experimental built-in HTTP server. Currently, when a client
  3151. accesses to the server, it responds with the current download
  3152. progress. By default, it is disabled. To enable the server, give
  3153. --enable-http-server option. To change the default port number
  3154. for the server to listen to, use --http-server-listen-port option.
  3155. The response HTML is very simple and refreshes it self each 1
  3156. second. Because of this refresh, you see flicker in normal web
  3157. browser such as Firefox. I recommend to use console-based browser
  3158. such as elinks, w3m. To connect to the server, run 'elinks
  3159. http://localhost:6800/' while running aria2. Please replace port
  3160. number '6800'(which is default) with your preference.
  3161. * src/DownloadEngineFactory.cc
  3162. * src/HttpHeader.cc
  3163. * src/HttpHeader.h
  3164. * src/HttpHeaderProcessor.cc
  3165. * src/HttpHeaderProcessor.h
  3166. * src/HttpListenCommand.cc
  3167. * src/HttpListenCommand.h
  3168. * src/HttpServer.cc
  3169. * src/HttpServer.h
  3170. * src/HttpServerCommand.cc
  3171. * src/HttpServerCommand.h
  3172. * src/HttpServerResponseCommand.cc
  3173. * src/HttpServerResponseCommand.h
  3174. * src/Makefile.am
  3175. * src/OptionHandlerFactory.cc
  3176. * src/Util.cc
  3177. * src/Util.h
  3178. * src/help_tags.h
  3179. * src/option_processing.cc
  3180. * src/prefs.cc
  3181. * src/prefs.h
  3182. * src/usage_text.h
  3183. * test/HttpHeaderProcessorTest.cc
  3184. * test/UtilTest.cc
  3185. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3186. Removed.
  3187. * src/CheckIntegrityMan.cc
  3188. * src/FileAllocationMan.cc
  3189. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3190. Made (piece) hash check sequential for each RequestGroup because
  3191. simultaneous hash check is slower than sequential execution.
  3192. * src/CheckIntegrityCommand.cc
  3193. * src/CheckIntegrityDispatcherCommand.cc
  3194. * src/CheckIntegrityDispatcherCommand.h
  3195. * src/CheckIntegrityMan.h
  3196. * src/ConsoleStatCalc.cc
  3197. * src/DownloadCommand.cc
  3198. * src/DownloadEngine.cc
  3199. * src/DownloadEngine.h
  3200. * src/DownloadEngineFactory.cc
  3201. * src/Makefile.am
  3202. * src/Makefile.in
  3203. * src/RequestGroup.cc
  3204. * src/StatCalc.h
  3205. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3206. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  3207. SequentialDispatcherCommand.
  3208. * src/FileAllocationDispatcherCommand.cc
  3209. * src/SequentialDispatcherCommand.h
  3210. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3211. Rewritten FileAllocationDispatcherCommand using brand new
  3212. SequentialDispatcherCommand.
  3213. * src/DownloadEngineFactory.cc
  3214. * src/FileAllocationCommand.cc
  3215. * src/FileAllocationDispatcherCommand.cc
  3216. * src/FileAllocationDispatcherCommand.h
  3217. * src/Makefile.am
  3218. * src/SequentialDispatcherCommand.h
  3219. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3220. Replaced FileAllocationMan with
  3221. SequentialPicker<FileAllocationEntry>.
  3222. * src/BtCheckIntegrityEntry.cc
  3223. * src/ConsoleStatCalc.cc
  3224. * src/DownloadEngine.cc
  3225. * src/DownloadEngine.h
  3226. * src/DownloadEngineFactory.cc
  3227. * src/FileAllocationCommand.cc
  3228. * src/FileAllocationDispatcherCommand.cc
  3229. * src/FileAllocationMan.h
  3230. * src/Makefile.am
  3231. * src/SequentialPicker.h
  3232. * src/StatCalc.h
  3233. * src/StreamCheckIntegrityEntry.cc
  3234. * test/Makefile.am
  3235. * test/SequentialPickerTest.cc
  3236. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3237. Added doc for adaptive URI selector.
  3238. * doc/aria2c.1.txt
  3239. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3240. Added doc for adaptive URI selector.
  3241. * src/usage_text.h
  3242. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3243. Added doc for --bt-max-peers option.
  3244. * doc/aria2c.1.txt
  3245. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3246. Added doc for --bt-hash-check-seed option.
  3247. * doc/aria2c.1.txt
  3248. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3249. Documented exit codes.
  3250. * doc/aria2c.1.txt
  3251. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3252. Added --bt-max-peers option to specify the maximum number of peers
  3253. per torrent. 0 means unlimited number of peers.
  3254. * src/ActivePeerConnectionCommand.cc
  3255. * src/BtRuntime.h
  3256. * src/DefaultPeerStorage.cc
  3257. * src/DefaultPeerStorage.h
  3258. * src/OptionHandlerFactory.cc
  3259. * src/RequestGroup.cc
  3260. * src/option_processing.cc
  3261. * src/prefs.cc
  3262. * src/prefs.h
  3263. * src/usage_text.h
  3264. * test/DefaultPeerStorageTest.cc
  3265. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3266. Added --bt-hash-check-seed option. If true is given to this
  3267. option, after hash check using --check-integrity option and file
  3268. is complete, continue to seed file. If you want to check file and
  3269. download it only when it is damaged or incomplete, set this option
  3270. to false. This option has effect only on BitTorrent download.
  3271. The default value is true(This is the same behavior with the
  3272. previous release).
  3273. * src/BtCheckIntegrityEntry.cc
  3274. * src/OptionHandlerFactory.cc
  3275. * src/option_processing.cc
  3276. * src/prefs.cc
  3277. * src/prefs.h
  3278. * src/usage_text.h
  3279. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3280. Updated copyright year.
  3281. * src/version_usage.cc
  3282. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3283. Rewritten the usage text for --bt-request-peer-speed-limit option.
  3284. * doc/aria2c.1.txt
  3285. * src/usage_text.h
  3286. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3287. Made the max value of split option unlimited.
  3288. * doc/aria2c.1.txt
  3289. * src/OptionHandlerFactory.cc
  3290. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3291. Fixed compile warning/error.
  3292. * src/DownloadResult.h
  3293. * src/HttpDownloadCommand.cc
  3294. * src/ServerStat.cc
  3295. * test/RequestGroupTest.cc
  3296. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3297. Added --event-poll option to select the method for polling events.
  3298. The available methods are "select" and "epoll". "epoll" is
  3299. available on Linux only. The earlier release has the compile
  3300. option to choose from these methods.
  3301. * configure.ac
  3302. * src/RequestGroupMan.cc
  3303. * src/OptionHandlerFactory.cc
  3304. * src/EpollEventPoll.h
  3305. * src/StreamFileAllocationEntry.cc
  3306. * src/a2io.h
  3307. * src/SelectEventPoll.h
  3308. * src/option_processing.cc
  3309. * src/prefs.h
  3310. * src/EpollEventPoll.cc
  3311. * src/EventPoll.h
  3312. * src/SocketCore.h
  3313. * src/Makefile.am
  3314. * src/main.cc
  3315. * src/DownloadEngine.h
  3316. * src/SelectEventPoll.cc
  3317. * src/DownloadEngine.cc
  3318. * src/SocketCore.cc
  3319. * src/DownloadEngineFactory.cc
  3320. * src/Makefile.in
  3321. * src/prefs.cc
  3322. * src/usage_text.h
  3323. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3324. Included RecoverableException.h from main.cc
  3325. * src/main.cc
  3326. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3327. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  3328. now returns last error encountered in the HTTP/FTP downloads as a
  3329. exit status value. If all downloads finished successfully, aria2
  3330. returns 0. The error code is defined in src/DownloadResult.h.
  3331. The error occurred in the download currently in progress is not
  3332. reported as a last error. If no error has encountered but there
  3333. are in progress or waiting downloads, aria2 returns 7.
  3334. * src/AbstractCommand.cc
  3335. * src/DlAbortEx.h
  3336. * src/DlRetryEx.h
  3337. * src/DownloadCommand.cc
  3338. * src/DownloadFailureException.h
  3339. * src/DownloadResult.h
  3340. * src/FtpNegotiationCommand.cc
  3341. * src/HttpSkipResponseCommand.cc
  3342. * src/Makefile.am
  3343. * src/MultiUrlRequestInfo.cc
  3344. * src/MultiUrlRequestInfo.h
  3345. * src/RecoverableException.h
  3346. * src/RequestGroup.cc
  3347. * src/RequestGroup.h
  3348. * src/RequestGroupMan.cc
  3349. * src/RequestGroupMan.h
  3350. * src/URIResult.cc
  3351. * src/URIResult.h
  3352. * src/main.cc
  3353. * src/option_processing.cc
  3354. * test/RequestGroupTest.cc
  3355. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3356. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  3357. patch adds AdaptiveURISelector, which selects one of the bests
  3358. mirrors for first and reserved connections. For supplementary
  3359. ones, it returns mirrors which has not been tested yet, and if
  3360. each of them already tested, returns mirrors which has to be
  3361. tested again. Otherwise, it doesn't return anymore mirrors.
  3362. * src/AdaptiveURISelector.cc
  3363. * src/AdaptiveURISelector.h
  3364. * src/FtpNegotiationCommand.cc
  3365. * src/HttpResponseCommand.cc
  3366. * src/Makefile.am
  3367. * src/Makefile.in
  3368. * src/OptionHandlerFactory.cc
  3369. * src/RequestGroup.cc
  3370. * src/RequestGroup.h
  3371. * src/RequestGroupMan.cc
  3372. * src/ServerStat.cc
  3373. * src/ServerStat.h
  3374. * src/ServerStatMan.cc
  3375. * src/SpeedCalc.cc
  3376. * src/URISelector.h
  3377. * src/prefs.cc
  3378. * src/prefs.h
  3379. * test/RequestGroupManTest.cc
  3380. * test/ServerStatManTest.cc
  3381. * test/ServerStatTest.cc
  3382. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3383. Fixed unit test error.
  3384. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  3385. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3386. * Release 1.1.2
  3387. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3388. Updated Russian translation. Thanks to the translators.
  3389. * po/ru.po
  3390. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3391. Added the description of --use-head option to man page.
  3392. * doc/aria2c.1.txt
  3393. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3394. Bump up version number to 1.1.2
  3395. * configure.ac
  3396. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3397. Added --use-head option to toggle whether HEAD method should be
  3398. used in the first HTTP request. By default aria2 uses HEAD method
  3399. as the first request. When the server doesn't recognize HEAD, then
  3400. give aria2 --use-head=false to force aria2 to use GET method
  3401. instead.
  3402. * src/OptionHandlerFactory.cc
  3403. * src/RequestGroupMan.cc
  3404. * src/option_processing.cc
  3405. * src/prefs.cc
  3406. * src/prefs.h
  3407. * src/usage_text.h
  3408. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3409. Fixed the bug that BitTorrent download doesn't finish when REJECT
  3410. message is received before CHOKE message. The old implementation
  3411. doen't clear the use-bit of the piece when recieved REJECT
  3412. message.
  3413. * src/DefaultBtMessageDispatcher.cc
  3414. * test/DefaultBtMessageDispatcherTest.cc
  3415. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3416. * Release 1.1.1
  3417. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3418. Bump up version number to 1.1.1.
  3419. * configure.ac
  3420. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3421. Fixed the bug that --summary-interval=0 doesn't work. The summary
  3422. is printed repeatedly.
  3423. * src/ConsoleStatCalc.cc
  3424. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3425. * Release 1.1.0
  3426. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3427. Added ifdef clause for conditional compilation.
  3428. * src/main.cc
  3429. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3430. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  3431. translations. Thanks to all translators.
  3432. * po/ja.po
  3433. * po/ru.po
  3434. * po/uk.po
  3435. * po/zh_CN.po
  3436. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3437. Added the preceding ">>> " before the message "Printing the
  3438. contents of file..." to make the output more readable.
  3439. * src/main.cc
  3440. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3441. Added try-catch block in the loop in showFiles() to continue the
  3442. operation even if the exception occurred in one file.
  3443. * src/main.cc (showFiles)
  3444. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3445. Made messages in showFiles() translatable.
  3446. * po/aria2.pot
  3447. * src/main.cc
  3448. * src/message.h
  3449. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3450. Print the contents of Torrent/Metalink files are printed without
  3451. -T/-M options.
  3452. * src/main.cc
  3453. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3454. Escaped '--' with '\--'
  3455. * README
  3456. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3457. Updated "How to build" section in README. Mentioned about
  3458. --with-ca-bundle compile option.
  3459. * README
  3460. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3461. Bump up version number to 1.1.0.
  3462. * configure.ac
  3463. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3464. Added a note for --dht-listen-port option.
  3465. * doc/aria2c.1.txt
  3466. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3467. Update doc for --realtime-chunk-checksum option.
  3468. * doc/aria2c.1.txt
  3469. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3470. Update doc for --realtime-chunk-checksum option.
  3471. * src/usage_text.h
  3472. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3473. Updated French, Japanese, Russian and Ukrainian translations.
  3474. Thanks to all translators.
  3475. * po/fr.po
  3476. * po/ja.po
  3477. * po/ru.po
  3478. * po/uk.po
  3479. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3480. Renamed aria2c.pot to aria2.pot
  3481. * po/aria2.pot
  3482. * po/aria2c.pot: Removed.
  3483. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3484. Removed MetaEntry.h
  3485. * src/Makefile.am
  3486. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3487. Rename file by appending digits if a local file exists and its
  3488. file size is larger than that of remote file with --continue
  3489. option. The old implementation just throws exception in such case.
  3490. * src/RequestGroup.cc
  3491. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3492. Fixed the bug that download progress summary is not printed in the
  3493. interval specified by the option.
  3494. * src/ConsoleStatCalc.cc
  3495. * src/ConsoleStatCalc.h
  3496. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3497. Fixed compiler warning
  3498. * src/Cookie.cc
  3499. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3500. Fixed the cookie implementation based on RFC2965.
  3501. Now if a value in domain field is not started with dot, then
  3502. prepend dot. That means a cookie with domain=sf.net is sent to
  3503. wiki.sf.net.
  3504. * src/Cookie.cc
  3505. * test/CookieParserTest.cc
  3506. * test/CookieStorageTest.cc
  3507. * test/CookieTest.cc
  3508. * test/NsCookieParserTest.cc
  3509. * test/Sqlite3MozCookieParserTest.cc
  3510. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3511. Fixed the bug that causes corrupted downloads if HTTP pipelining
  3512. is enabled and the server doesn't support keep-alive.
  3513. * src/AbstractCommand.cc
  3514. * src/DownloadCommand.cc
  3515. * src/HttpDownloadCommand.cc
  3516. * src/HttpDownloadCommand.h
  3517. * src/HttpResponseCommand.cc
  3518. * src/Request.cc
  3519. * src/Request.h
  3520. * test/RequestTest.cc
  3521. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3522. Removed Dictionary/List/Data and its related classes.
  3523. * src/BencodeVisitor.cc: Removed.
  3524. * src/BencodeVisitor.h: Removed.
  3525. * src/Data.cc: Removed.
  3526. * src/Data.h: Removed.
  3527. * src/Dictionary.cc: Removed.
  3528. * src/Dictionary.h: Removed.
  3529. * src/List.cc: Removed.
  3530. * src/List.h: Removed.
  3531. * src/Makefile.am
  3532. * src/MetaEntry.h: Removed.
  3533. * src/MetaEntryVisitor.h: Removed.
  3534. * src/MetaFileUtil.cc: Removed.
  3535. * src/MetaFileUtil.h: Removed.
  3536. * test/BencodeVisitorTest.cc: Removed.
  3537. * test/DataTest.cc: Removed.
  3538. * test/DictionaryTest.cc: Removed.
  3539. * test/ListTest.cc: Removed.
  3540. * test/Makefile.am
  3541. * test/MetaFileUtilTest.cc: Removed.
  3542. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3543. Removed include of MetaEntry.h
  3544. * test/DHTMessageTrackerEntryTest.cc
  3545. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3546. Use BDE instead of Dictionary/List/Data.
  3547. * src/AnnounceList.cc
  3548. * src/AnnounceList.h
  3549. * test/AnnounceListTest.cc
  3550. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3551. Use BDE instead of Dictionary/List/Data.
  3552. * src/DHTAbstractMessage.cc
  3553. * src/DHTAbstractMessage.h
  3554. * src/DHTAnnouncePeerMessage.cc
  3555. * src/DHTAnnouncePeerMessage.h
  3556. * src/DHTAnnouncePeerReplyMessage.cc
  3557. * src/DHTAnnouncePeerReplyMessage.h
  3558. * src/DHTFindNodeMessage.cc
  3559. * src/DHTFindNodeMessage.h
  3560. * src/DHTFindNodeReplyMessage.cc
  3561. * src/DHTFindNodeReplyMessage.h
  3562. * src/DHTGetPeersMessage.cc
  3563. * src/DHTGetPeersMessage.h
  3564. * src/DHTGetPeersReplyMessage.cc
  3565. * src/DHTGetPeersReplyMessage.h
  3566. * src/DHTMessageFactory.h
  3567. * src/DHTMessageFactoryImpl.cc
  3568. * src/DHTMessageFactoryImpl.h
  3569. * src/DHTMessageReceiver.cc
  3570. * src/DHTMessageTracker.cc
  3571. * src/DHTMessageTracker.h
  3572. * src/DHTPingMessage.cc
  3573. * src/DHTPingMessage.h
  3574. * src/DHTPingReplyMessage.cc
  3575. * src/DHTPingReplyMessage.h
  3576. * src/DHTQueryMessage.cc
  3577. * src/DHTQueryMessage.h
  3578. * src/DHTResponseMessage.cc
  3579. * src/DHTResponseMessage.h
  3580. * test/DHTAnnouncePeerMessageTest.cc
  3581. * test/DHTAnnouncePeerReplyMessageTest.cc
  3582. * test/DHTFindNodeMessageTest.cc
  3583. * test/DHTFindNodeReplyMessageTest.cc
  3584. * test/DHTGetPeersMessageTest.cc
  3585. * test/DHTGetPeersReplyMessageTest.cc
  3586. * test/DHTMessageFactoryImplTest.cc
  3587. * test/DHTMessageTrackerTest.cc
  3588. * test/DHTPingMessageTest.cc
  3589. * test/DHTPingReplyMessageTest.cc
  3590. * test/MockDHTMessageFactory.h
  3591. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3592. Added tests the case where length < 0 is specified.
  3593. * test/BencodeTest.cc
  3594. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3595. Fixed memory leak in decoderawstring()
  3596. * src/bencode.cc
  3597. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3598. Added missing #ifdef guard. Added uc() function for String and
  3599. removeKey() for Dict.
  3600. * src/bencode.cc
  3601. * src/bencode.h
  3602. * test/BencodeTest.cc
  3603. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3604. Use BDE instead of Dictionary/List/Data.
  3605. * src/HandshakeExtensionMessage.cc
  3606. * src/HandshakeExtensionMessage.h
  3607. * test/HandshakeExtensionMessageTest.cc
  3608. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3609. Added --max-overall-upload-limit option. This option limits the
  3610. overall upload speed. Stated in help message that the existing
  3611. --max-upload-limit option limits the upload speed per each
  3612. torrent. Man page is also updated.
  3613. * doc/aria2c.1.txt
  3614. * src/DefaultBtMessageDispatcher.cc
  3615. * src/DefaultBtMessageDispatcher.h
  3616. * src/OptionHandlerFactory.cc
  3617. * src/PeerInteractionCommand.cc
  3618. * src/option_processing.cc
  3619. * src/prefs.cc
  3620. * src/prefs.h
  3621. * src/usage_text.h
  3622. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3623. Use BDE instead of Dictionary/List/Data classes.
  3624. * src/CompactPeerListProcessor.cc
  3625. * src/CompactPeerListProcessor.h
  3626. * src/DefaultBtAnnounce.cc
  3627. * src/DefaultBtContext.cc
  3628. * src/DefaultBtContext.h
  3629. * src/DefaultPeerListProcessor.cc
  3630. * src/DefaultPeerListProcessor.h
  3631. * src/DelegatingPeerListProcessor.cc
  3632. * src/DelegatingPeerListProcessor.h
  3633. * src/PeerListProcessor.h
  3634. * src/UTPexExtensionMessage.cc
  3635. * src/Util.h
  3636. * src/message.h
  3637. * test/DefaultBtContextTest.cc
  3638. * test/DefaultPeerListProcessorTest.cc
  3639. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3640. Added bencode helper functions and BDE class.
  3641. They will replace MetaFileUtil and Dictionary/List/Data classes.
  3642. * src/Makefile.am
  3643. * src/bencode.cc
  3644. * src/bencode.h
  3645. * test/BencodeTest.cc
  3646. * test/Makefile.am
  3647. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3648. Fixed the bug that bad URI is sent to the tracker when the announe
  3649. URI in torrent file includes query.
  3650. * src/DefaultBtAnnounce.cc
  3651. * test/DefaultBtAnnounceTest.cc
  3652. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3653. Added Option::blank().
  3654. Use !Option::blank(name) instead of Option::defined(name) for
  3655. the options that take filename.
  3656. * src/MultiUrlRequestInfo.cc
  3657. * src/Option.cc
  3658. * src/Option.h
  3659. * src/main.cc
  3660. * src/option_processing.cc
  3661. * test/OptionTest.cc
  3662. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3663. Documented the default value of --check-certificate option in man
  3664. page.
  3665. * doc/aria2c.1.txt
  3666. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3667. Enabled --check-certificate by default. Added compile
  3668. time(configure) option --with-ca-bundle to specify CA bundle.
  3669. Warn if --check-certificate=true and --ca-certificate is not
  3670. specified or loading CA certificate is failed.
  3671. * configure.ac
  3672. * src/MultiUrlRequestInfo.cc
  3673. * src/OptionHandlerFactory.cc
  3674. * src/message.h
  3675. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3676. Mentioned https tag in help option.
  3677. * doc/aria2c.1.txt
  3678. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3679. Added `https' tag to help option category. Added https tag to
  3680. --ca-certificate, --certificate, --check-certificate and
  3681. --private-key option.
  3682. * src/OptionHandlerFactory.cc
  3683. * src/help_tags.h
  3684. * src/option_processing.cc
  3685. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3686. Changed the package name from `aria2c' to `aria2' in order to fix
  3687. the packaging issue in Debian and Fedora. The name of the
  3688. executable is not changed.
  3689. * configure.ac
  3690. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3691. Fixed typos
  3692. * src/usage_text.h
  3693. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3694. Fixed typos and updated doc.
  3695. * README
  3696. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3697. Fixed typos
  3698. * doc/aria2c.1.txt
  3699. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3700. Fixed typos
  3701. * src/usage_text.h
  3702. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3703. Print a message when no files to download.
  3704. * src/download_helper.cc
  3705. * src/main.cc
  3706. * src/message.h
  3707. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3708. RFC3986 complied Percent-Encoding(urlencode).
  3709. Use uppercase hexadecimal digits for encoded text instead of lowercase
  3710. ones.
  3711. * src/Request.cc
  3712. * src/Util.cc
  3713. * src/Util.h
  3714. * test/BtHandshakeMessageTest.cc
  3715. * test/DefaultBtAnnounceTest.cc
  3716. * test/DefaultBtContextTest.cc
  3717. * test/RequestTest.cc
  3718. * test/UtilTest.cc
  3719. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3720. Fixed the bug that prevents aria2 from downloading 0-length files
  3721. via HTTP/FTP.
  3722. * src/DefaultBtContext.cc
  3723. * src/DefaultBtContext.h
  3724. * src/DownloadContext.h
  3725. * src/FtpNegotiationCommand.cc
  3726. * src/HttpResponseCommand.cc
  3727. * src/HttpResponseCommand.h
  3728. * src/RequestGroup.cc
  3729. * src/SingleFileDownloadContext.cc
  3730. * src/SingleFileDownloadContext.h
  3731. * test/BtPostDownloadHandlerTest.cc
  3732. * test/MetalinkPostDownloadHandlerTest.cc
  3733. * test/MockBtContext.h
  3734. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3735. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  3736. * src/option_processing.cc
  3737. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3738. Applied aria2-1.0.1-mingw.patch.
  3739. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  3740. mingw.
  3741. Collected 4th and 5th argument types for getsockopt and setsockopt.
  3742. * src/SocketCore.cc
  3743. * src/a2netcompat.h
  3744. * test/SocketCoreTest.cc
  3745. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3746. * Release 1.0.1
  3747. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3748. Updated Ukrainian and Norwegian Nynorsk translations.
  3749. Thanks to all translators.
  3750. * po/nn.po
  3751. * po/uk.po
  3752. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3753. Don't show download result when -S option is used.
  3754. * src/main.cc
  3755. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3756. Bump up version number to 1.0.1
  3757. * configure.ac
  3758. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3759. Closed files after the test cases in MultiDiskWriterTest::
  3760. testResetDiskWriterEntries(). This will fix the unit test error
  3761. in mingw32 build.
  3762. * test/MultiDiskWriterTest.cc
  3763. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3764. Use HEAD method to get file size from HTTP server for segmented
  3765. downloading.
  3766. The request to the BitTorrent Tracker always uses GET method because
  3767. the response of the tracker is small and it doesn't need segmented
  3768. download.
  3769. * src/FtpNegotiationCommand.cc
  3770. * src/HttpRequest.cc
  3771. * src/HttpResponseCommand.cc
  3772. * src/HttpSkipResponseCommand.cc
  3773. * src/RequestGroup.cc
  3774. * src/RequestGroup.h
  3775. * src/TrackerWatcherCommand.cc
  3776. * test/HttpRequestTest.cc
  3777. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3778. Fixed the bug that causes floating exception when -T option is used and
  3779. no URIs are given.
  3780. * src/download_helper.cc
  3781. * test/DownloadHelperTest.cc
  3782. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  3783. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  3784. errors in MinGW:
  3785. Closed file after saving server stats (RequestGroupMan.cc)
  3786. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  3787. Ignored case & handled 2-digit years (strptime.c)
  3788. Added missing suseconds_t definition (a2time.h)
  3789. Fixed socket CLOSE() define (SocketCore.cc)
  3790. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  3791. Changed utime() test values from x000 to x00000 as MinGW failed on
  3792. values less than timezone offset from Unix epoch
  3793. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  3794. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  3795. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  3796. handle negative dates (CookieParserTest.cc)
  3797. * src/a2time.h
  3798. * src/FtpConnection.cc
  3799. * src/RequestGroupMan.cc
  3800. * src/SocketCore.cc
  3801. * src/strptime.c
  3802. * test/CookieParserTest.cc
  3803. * test/CopyDiskAdaptorTest.cc
  3804. * test/FileTest.cc
  3805. * test/FtpConnectionTest.cc
  3806. * test/MultiDiskAdaptorTest.cc
  3807. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3808. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  3809. * doc/aria2c.1.txt
  3810. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3811. * Release 1.0.0
  3812. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3813. Added '~' to reserved characters.
  3814. * src/Util.cc
  3815. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3816. Do not urlencode Request::url in setUrl() because we want unmodified
  3817. URL using Request::getUrl()
  3818. * src/Request.cc
  3819. * src/Request.h
  3820. * test/RequestTest.cc
  3821. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3822. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  3823. Thanks to all translators.
  3824. * po/bg.po
  3825. * po/fr.po
  3826. * po/ja.po
  3827. * po/ru.po
  3828. * po/uk.po
  3829. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3830. Bump up version number to 1.0.0
  3831. * configure.ac
  3832. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3833. Added nosqlite3 build to build_test.sh.
  3834. Renamed noxml as expat.
  3835. * build_test.sh
  3836. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3837. Updated INPUT FILE section.
  3838. * doc/aria2c.1.txt
  3839. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3840. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  3841. on big endian systems because test .aria2 files are made for little
  3842. endian systems.
  3843. * test/DefaultBtProgressInfoFileTest.cc
  3844. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3845. Dropped ares support.
  3846. * README
  3847. * configure.ac
  3848. * m4/libares.m4: Removed.
  3849. * src/AsyncNameResolver.cc
  3850. * src/Makefile.am
  3851. * test/Makefile.am
  3852. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3853. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  3854. Removed const qualifier from DiskWriter::size().
  3855. * src/AbstractDiskWriter.cc
  3856. * src/AbstractDiskWriter.h
  3857. * src/ByteArrayDiskWriter.cc
  3858. * src/ByteArrayDiskWriter.h
  3859. * src/DiskWriter.h
  3860. * test/ByteArrayDiskWriterTest.cc
  3861. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3862. Fixed the bug that causes segmentation fault/bus error during executing
  3863. choking algorithm while seeding. This is caused by improper
  3864. implementation of compare function which returns inconsistent results
  3865. depending on the timing of last unchoke.
  3866. * src/BtSeederStateChoke.cc
  3867. * src/BtSeederStateChoke.h
  3868. * src/DefaultPeerStorage.cc
  3869. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3870. Removed TODO
  3871. * TODO
  3872. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3873. Added a section that explains how to pass argument to options that
  3874. takes optional arguments with its short form.
  3875. * doc/aria2c.1.txt
  3876. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3877. Added -u for the short form of --max-upload-limit option.
  3878. * doc/aria2c.1.txt
  3879. * src/option_processing.cc
  3880. * src/usage_text.h
  3881. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3882. Added -V for the short form of --check-integrity option.
  3883. Now the argument of --check-integrity option is optional:
  3884. if it is omitted, it is evaluated as true.
  3885. * doc/aria2c.1.txt
  3886. * src/option_processing.cc
  3887. * src/usage_text.h
  3888. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3889. Made the default value of --ftp-pasv option set to true and it can take
  3890. true/false values.
  3891. * src/OptionHandlerFactory.cc
  3892. * src/option_processing.cc
  3893. * src/usage_text.h
  3894. * doc/aria2c.1.txt
  3895. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3896. Given custom random number generator to std::random_shuffle.
  3897. * src/AnnounceList.cc
  3898. * src/BtLeecherStateChoke.cc
  3899. * src/BtSeederStateChoke.cc
  3900. * src/DefaultBtRequestFactory.cc
  3901. * src/MetalinkEntry.cc
  3902. * src/RarestPieceSelector.cc
  3903. * src/SimpleRandomizer.cc
  3904. * src/SimpleRandomizer.h
  3905. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3906. Now the default value of --enable-direct-io is true.
  3907. * src/OptionHandlerFactory.cc
  3908. * doc/aria2c.1.txt
  3909. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3910. Erase peer before executing onReturningPeer and onErasingPeer
  3911. because choking algorithm called from onReturningPeer doesn't
  3912. like erasing peer in the active peer list.
  3913. * src/DefaultPeerStorage.cc
  3914. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3915. Instead of creating special filename in createDownloadResult() if
  3916. inMemoryDownload() is true, now it is done in getFilePath().
  3917. * src/RequestGroup.cc
  3918. * test/RequestGroupTest.cc
  3919. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3920. Print "[MEMORY]" and filename if a file is not saved in disk and just
  3921. processed in memory. This is the fix for previous comment out.
  3922. * src/MemoryBufferPreDownloadHandler.cc
  3923. * src/RequestGroup.cc
  3924. * src/RequestGroup.h
  3925. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3926. Commented out the code which sets virtual directory path "[MEMORY]"
  3927. propagate directory to store to following RequestGroup.
  3928. * src/MemoryBufferPreDownloadHandler.cc
  3929. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3930. Bump up version number to 1.0.0b
  3931. * configure.ac
  3932. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3933. Added input_uris.txt to EXTRA_DIST
  3934. * test/Makefile.am
  3935. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3936. Removed PeerObject.h from Makefile.am
  3937. * src/Makefile.am
  3938. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3939. Avoid slow seeding
  3940. * src/PeerInteractionCommand.cc
  3941. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3942. Updated usage for -i option.
  3943. * src/usage_text.h (TEXT_INPUT_FILE)
  3944. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3945. Added INPUT FILE section to man page.
  3946. Escaped fake URLs.
  3947. * doc/aria2c.1.txt
  3948. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3949. Fixed wrong note position for -o option.
  3950. * doc/aria2c.1.txt
  3951. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3952. Fixed compile error without SSL/XML library.
  3953. * src/DefaultBtProgressInfoFile.cc
  3954. * src/DefaultBtProgressInfoFile.h
  3955. * src/FileMetalinkParserState.cc
  3956. * src/RequestGroup.h
  3957. * src/SocketCore.cc
  3958. * src/SocketCore.h
  3959. * src/VerificationMetalinkParserState.cc
  3960. * src/download_helper.h
  3961. * src/main.cc
  3962. * test/DefaultBtProgressInfoFileTest.cc
  3963. * test/DownloadHelperTest.cc
  3964. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3965. Rewritten URI handling functions. They are now provided as a testable
  3966. functions.
  3967. * src/Makefile.am
  3968. * src/RequestGroup.cc
  3969. * src/RequestGroup.h
  3970. * src/download_helper.cc
  3971. * src/download_helper.h
  3972. * src/main.cc
  3973. * test/DownloadHelperTest.cc
  3974. * test/Makefile.am
  3975. * test/input_uris.txt
  3976. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3977. Quickly terminate commands when ctrl-c is pressed.
  3978. * src/DownloadEngine.cc
  3979. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3980. Quickly terminate idle commands when download finished.
  3981. * src/AbstractCommand.cc
  3982. * src/DownloadCommand.cc
  3983. * src/DownloadEngine.cc
  3984. * src/DownloadEngine.h
  3985. * src/SleepCommand.cc
  3986. * src/SleepCommand.h
  3987. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3988. Added the ability to specify output filename and directory in input
  3989. file.
  3990. Additional parameters are added in the following line of URIs
  3991. with proceeding white space(s), 1 parameter in 1 line.
  3992. The parameter names are the same with the command-line option name
  3993. without proceeding "--". Not all the options are available here:
  3994. at the moment, 'dir' and 'out' options are avialable.
  3995. Please note that out option has no effect against Metalink or BitTorrent
  3996. downloads.
  3997. Example input file:
  3998. http://host/foo-1.1.tar.bz2
  3999. out=foo.tar.bz2
  4000. dir=/tmp/downloads
  4001. http://host/thundermonkey-2.0.tar.bz2
  4002. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  4003. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  4004. thundermonkey-2.0.tar.bz2 is saved as
  4005. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  4006. * src/BtPostDownloadHandler.cc
  4007. * src/Metalink2RequestGroup.cc
  4008. * src/Metalink2RequestGroup.h
  4009. * src/MetalinkPostDownloadHandler.cc
  4010. * src/UriListParser.cc
  4011. * src/UriListParser.h
  4012. * src/main.cc
  4013. * test/Metalink2RequestGroupTest.cc
  4014. * test/UriListParserTest.cc
  4015. * test/filelist1.txt
  4016. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4017. Fixed error when SSL library is not found.
  4018. * configure.ac
  4019. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4020. Cross referenced among -s, -C and -j options.
  4021. Updated usage of -C and -s options.
  4022. * src/usage_text.h
  4023. * doc/aria2c.1.txt
  4024. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4025. Fixed bad cast in 32bit platforms.
  4026. * test/DefaultPieceStorageTest.cc
  4027. (DefaultPieceStorageTest::testGetCompletedLength)
  4028. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4029. Fixed unit test fails on 32bit platforms.
  4030. * test/CookieParserTest.cc
  4031. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4032. Show an average download speed in Download results.
  4033. * src/BtFileAllocationEntry.cc
  4034. * src/DefaultPieceStorage.cc
  4035. * src/DownloadContext.cc
  4036. * src/DownloadContext.h
  4037. * src/DownloadResult.h
  4038. * src/RequestGroup.cc
  4039. * src/RequestGroupMan.cc
  4040. * src/StreamFileAllocationEntry.cc
  4041. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4042. Fixed the bug that metalink file is not processed if Content-Type
  4043. field has a paramter.
  4044. * src/HttpResponse.cc
  4045. * src/HttpResponse.h
  4046. * test/HttpResponseTest.cc
  4047. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4048. Removed unused code.
  4049. * src/DefaultBtAnnounce.cc
  4050. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4051. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  4052. the value larger than DefaultPieceStorage::getTotalLength() when
  4053. in flight pieces are involved.
  4054. * src/DefaultPieceStorage.cc
  4055. * test/DefaultPieceStorageTest.cc
  4056. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4057. Bump up version number to 1.0.0a.
  4058. * configure.ac
  4059. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4060. Updated configure.ac
  4061. * configure.ac
  4062. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4063. Added usege for proxy.
  4064. * doc/aria2c.1.txt
  4065. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4066. Added usage for --ca-certificate, --certificate, --private-key and
  4067. --check-certificate options.
  4068. * doc/aria2c.1.txt
  4069. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4070. Updated man page
  4071. * doc/aria2c.1.txt
  4072. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4073. Added --no-proxy option. It receives comman separated hostname or
  4074. domains to which proxy should not be used.
  4075. aria2 honors the environment variable no_proxy to override no-proxy
  4076. value in configuration file. The user can override the environment
  4077. variable no_proxy with --no-proxy command-line option.
  4078. * src/AbstractCommand.cc
  4079. * src/OptionHandlerFactory.cc
  4080. * src/option_processing.cc
  4081. * src/prefs.cc
  4082. * src/prefs.h
  4083. * src/usage_text.h
  4084. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4085. Added the ability to verify peer in SSL/TLS using given CA certificates.
  4086. The CA certificates are specified in --ca-certificate option.
  4087. By default, the verification is disabled. Use --check-certificate
  4088. option to enable it.
  4089. * src/HttpRequestCommand.cc
  4090. * src/LibgnutlsTLSContext.cc
  4091. * src/LibgnutlsTLSContext.h
  4092. * src/LibsslTLSContext.cc
  4093. * src/LibsslTLSContext.h
  4094. * src/MultiUrlRequestInfo.cc
  4095. * src/OptionHandlerFactory.cc
  4096. * src/SocketCore.cc
  4097. * src/SocketCore.h
  4098. * src/a2functional.h
  4099. * src/message.h
  4100. * src/option_processing.cc
  4101. * src/prefs.cc
  4102. * src/prefs.h
  4103. * src/usage_text.h
  4104. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4105. Added client certificate authentication for SSL/TLS.
  4106. Currently a private key must be decrypted for use with aria2.
  4107. If a user accidentally gives encrypted file to aria2 then following
  4108. thing happens:
  4109. If encrypted private key is given to aria2, it behaves differently
  4110. depending on the ssl library it uses. If aria2 built with openssl then
  4111. openssl prompts the user for password. If aria2 build with gnutls then
  4112. aria2 exists with error at start up.
  4113. * src/DownloadEngineFactory.cc
  4114. * src/MultiUrlRequestInfo.cc
  4115. * src/OptionHandlerFactory.cc
  4116. * src/option_processing.cc
  4117. * src/prefs.cc
  4118. * src/prefs.h
  4119. * src/usage_text.h
  4120. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4121. Introduced TLSContext that holds TLS related data that can be shared
  4122. with multiple SSL connections.
  4123. * src/DownloadEngineFactory.cc
  4124. * src/LibgnutlsTLSContext.cc
  4125. * src/LibgnutlsTLSContext.h
  4126. * src/LibsslTLSContext.cc
  4127. * src/LibsslTLSContext.h
  4128. * src/Makefile.am
  4129. * src/SocketCore.cc
  4130. * src/SocketCore.h
  4131. * src/TLSContext.h
  4132. * src/message.h
  4133. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4134. Fixed the bug that the DiskWriter of the first FileEntry whose
  4135. `needsFileAllocation' property is false is not created
  4136. even if it shares a piece with next FileEntry which `requested' property
  4137. is true.
  4138. Fixed the bug that zero-length file is not created if pre file
  4139. allocation is not done.
  4140. * src/MultiDiskAdaptor.cc
  4141. * src/MultiDiskAdaptor.h
  4142. * test/MultiDiskAdaptorTest.cc
  4143. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4144. Added the ability to pool proxy connection.
  4145. The conneciton in FTP with proxy-method=GET is not pooled.
  4146. Proxy-Connection header will not be sent when sending CONNECT method.
  4147. * src/DownloadEngine.cc
  4148. * src/DownloadEngine.h
  4149. * src/FtpFinishDownloadCommand.cc
  4150. * src/FtpInitiateConnectionCommand.cc
  4151. * src/FtpNegotiationCommand.cc
  4152. * src/HttpDownloadCommand.cc
  4153. * src/HttpInitiateConnectionCommand.cc
  4154. * src/HttpRequest.cc
  4155. * src/HttpRequest.h
  4156. * src/HttpResponse.cc
  4157. * src/HttpSkipResponseCommand.cc
  4158. * test/HttpRequestTest.cc
  4159. * test/HttpResponseTest.cc
  4160. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4161. Handle date before epoch.
  4162. To create *bad* Time object, call Time::null().
  4163. * src/CookieParser.cc
  4164. * src/FtpConnection.cc
  4165. * src/FtpConnection.h
  4166. * src/FtpNegotiationCommand.cc
  4167. * src/RequestGroup.cc
  4168. * src/TimeA2.cc
  4169. * src/TimeA2.h
  4170. * test/CookieParserTest.cc
  4171. * test/FtpConnectionTest.cc
  4172. * test/TimeTest.cc
  4173. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4174. Added support for following envrionment variables: http_proxy,
  4175. https_proxy, ftp_proxy and all_proxy.
  4176. Each variable is equivalent to the aria2 option whose name is the
  4177. variable name with '_' replaced with '-'.
  4178. They overrides options specified in aria2.conf file.
  4179. The envrionment variables can be overrode using command-line option.
  4180. * src/option_processing.cc
  4181. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4182. Renamed --http-proxy-method as --proxy-method.
  4183. * src/AbstractCommand.cc
  4184. * src/FtpInitiateConnectionCommand.cc
  4185. * src/HttpInitiateConnectionCommand.cc
  4186. * src/OptionHandlerFactory.cc
  4187. * src/option_processing.cc
  4188. * src/prefs.cc
  4189. * src/prefs.h
  4190. * src/usage_text.h
  4191. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4192. Deprecated --http-proxy-user and --http-proxy-passwd options.
  4193. Added --https-proxy, --ftp-proxy and --all-proxy options.
  4194. Above 3 options and --http-proxy option can handle proxy in URL format
  4195. like: http://user:passwd@host:port.
  4196. If a proxy requires user/password, they must be specified in a URL.
  4197. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  4198. instead.
  4199. * src/AbstractCommand.cc
  4200. * src/AbstractCommand.h
  4201. * src/AbstractProxyRequestCommand.cc
  4202. * src/AbstractProxyRequestCommand.h
  4203. * src/AuthConfigFactory.cc
  4204. * src/AuthConfigFactory.h
  4205. * src/FtpFinishDownloadCommand.cc
  4206. * src/FtpInitiateConnectionCommand.cc
  4207. * src/FtpInitiateConnectionCommand.h
  4208. * src/FtpNegotiationCommand.cc
  4209. * src/FtpTunnelRequestCommand.cc
  4210. * src/FtpTunnelRequestCommand.h
  4211. * src/HttpDownloadCommand.cc
  4212. * src/HttpInitiateConnectionCommand.cc
  4213. * src/HttpInitiateConnectionCommand.h
  4214. * src/HttpProxyRequestCommand.cc
  4215. * src/HttpProxyRequestCommand.h
  4216. * src/HttpRequest.cc
  4217. * src/HttpRequest.h
  4218. * src/HttpRequestCommand.cc
  4219. * src/HttpRequestCommand.h
  4220. * src/HttpSkipResponseCommand.cc
  4221. * src/InitiateConnectionCommand.cc
  4222. * src/InitiateConnectionCommand.h
  4223. * src/OptionHandlerFactory.cc
  4224. * src/OptionHandlerImpl.h
  4225. * src/Request.cc
  4226. * src/option_processing.cc
  4227. * src/prefs.cc
  4228. * src/prefs.h
  4229. * src/usage_text.h
  4230. * test/AuthConfigFactoryTest.cc
  4231. * test/HttpRequestTest.cc
  4232. * test/OptionHandlerTest.cc
  4233. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4234. Execute choking algorithm when unchoked and interested peer is
  4235. disconected.
  4236. * src/DefaultPeerStorage.cc
  4237. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4238. Added testcase for BtNotInterestedMessage from unchoked peer.
  4239. * test/BtNotInterestedMessageTest.cc
  4240. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4241. Execute choking algorithm when BtInterestedMessage arrives from
  4242. unchoked peer.
  4243. * src/BtInterestedMessage.cc
  4244. * src/BtInterestedMessage.h
  4245. * src/DefaultBtMessageFactory.cc
  4246. * test/BtInterestedMessageTest.cc
  4247. * test/MockPeerStorage.h
  4248. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4249. AuthConfigFactory is now part of DownloadEngine.
  4250. * src/AbstractProxyRequestCommand.cc
  4251. * src/AuthConfigFactory.h
  4252. * src/DownloadEngine.cc
  4253. * src/DownloadEngine.h
  4254. * src/FtpConnection.cc
  4255. * src/FtpConnection.h
  4256. * src/FtpNegotiationCommand.cc
  4257. * src/HttpConnection.cc
  4258. * src/HttpRequest.cc
  4259. * src/HttpRequest.h
  4260. * src/HttpRequestCommand.cc
  4261. * src/HttpResponse.cc
  4262. * src/HttpResponseCommand.cc
  4263. * src/HttpSkipResponseCommand.cc
  4264. * src/MultiUrlRequestInfo.cc
  4265. * src/main.cc
  4266. * test/FtpConnectionTest.cc
  4267. * test/HttpRequestTest.cc
  4268. * test/HttpResponseTest.cc
  4269. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4270. Corrected catched exception type.
  4271. * src/ServerStatMan.cc
  4272. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4273. DNSCache is now part of DownloadEngine.
  4274. * src/DNSCache.h
  4275. * src/DownloadEngine.cc
  4276. * src/DownloadEngine.h
  4277. * src/InitiateConnectionCommand.cc
  4278. * src/MultiUrlRequestInfo.cc
  4279. * test/Makefile.am
  4280. * test/Makefile.in
  4281. * test/SimpleDNSCacheTest.cc
  4282. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4283. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  4284. DownloadEngine.
  4285. * src/ActivePeerConnectionCommand.cc
  4286. * src/BtSetup.cc
  4287. * src/CUIDCounter.h
  4288. * src/DHTSetup.cc
  4289. * src/DownloadCommand.cc
  4290. * src/DownloadEngine.cc
  4291. * src/DownloadEngine.h
  4292. * src/DownloadEngineFactory.cc
  4293. * src/FileAllocationDispatcherCommand.cc
  4294. * src/InitiatorMSEHandshakeCommand.cc
  4295. * src/PeerInitiateConnectionCommand.cc
  4296. * src/PeerInteractionCommand.cc
  4297. * src/PeerListenCommand.cc
  4298. * src/RequestGroup.cc
  4299. * src/StreamFileAllocationEntry.cc
  4300. * src/TrackerWatcherCommand.cc
  4301. * src/main.cc
  4302. * test/RequestGroupManTest.cc
  4303. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4304. Implemented commented code in BtSeederStateChoke
  4305. * src/BtSeederStateChoke.cc
  4306. * src/Peer.cc
  4307. * src/Peer.h
  4308. * src/PeerInteractionCommand.cc
  4309. * src/PeerSessionResource.cc
  4310. * src/PeerSessionResource.h
  4311. * test/MockBtMessageDispatcher.h
  4312. * test/PeerSessionResourceTest.cc
  4313. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4314. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  4315. its object.
  4316. * src/AbstractBtMessage.cc
  4317. * src/ActivePeerConnectionCommand.cc
  4318. * src/ActivePeerConnectionCommand.h
  4319. * src/BtContextAwareCommand.cc
  4320. * src/BtContextAwareCommand.h
  4321. * src/BtExtendedMessage.cc
  4322. * src/BtExtendedMessage.h
  4323. * src/BtInterestedMessage.cc
  4324. * src/BtInterestedMessage.h
  4325. * src/BtNotInterestedMessage.cc
  4326. * src/BtNotInterestedMessage.h
  4327. * src/BtRegistry.cc
  4328. * src/BtRegistry.h
  4329. * src/BtSeederStateChoke.cc
  4330. * src/BtSetup.cc
  4331. * src/DHTGetPeersCommand.cc
  4332. * src/DHTGetPeersCommand.h
  4333. * src/DHTPeerAnnounceEntry.cc
  4334. * src/DHTPeerAnnounceEntry.h
  4335. * src/DHTPeerAnnounceStorage.cc
  4336. * src/DHTPeerAnnounceStorage.h
  4337. * src/DHTPeerLookupTask.cc
  4338. * src/DHTPeerLookupTask.h
  4339. * src/DHTSetup.cc
  4340. * src/DHTSetup.h
  4341. * src/DHTTaskFactory.h
  4342. * src/DHTTaskFactoryImpl.cc
  4343. * src/DHTTaskFactoryImpl.h
  4344. * src/DefaultBtAnnounce.cc
  4345. * src/DefaultBtInteractive.cc
  4346. * src/DefaultBtInteractive.h
  4347. * src/DefaultBtMessageDispatcher.cc
  4348. * src/DefaultBtMessageDispatcher.h
  4349. * src/DefaultBtMessageFactory.cc
  4350. * src/DefaultBtMessageFactory.h
  4351. * src/DefaultBtMessageReceiver.cc
  4352. * src/DefaultBtProgressInfoFile.cc
  4353. * src/DefaultBtProgressInfoFile.h
  4354. * src/DefaultBtRequestFactory.cc
  4355. * src/DefaultBtRequestFactory.h
  4356. * src/DefaultExtensionMessageFactory.cc
  4357. * src/DefaultExtensionMessageFactory.h
  4358. * src/DefaultPeerStorage.cc
  4359. * src/DefaultPeerStorage.h
  4360. * src/DownloadEngine.cc
  4361. * src/DownloadEngine.h
  4362. * src/InitiatorMSEHandshakeCommand.cc
  4363. * src/InitiatorMSEHandshakeCommand.h
  4364. * src/MSEHandshake.cc
  4365. * src/MSEHandshake.h
  4366. * src/Makefile.am
  4367. * src/Makefile.in
  4368. * src/PeerChokeCommand.cc
  4369. * src/PeerChokeCommand.h
  4370. * src/PeerInitiateConnectionCommand.cc
  4371. * src/PeerInitiateConnectionCommand.h
  4372. * src/PeerInteractionCommand.cc
  4373. * src/PeerInteractionCommand.h
  4374. * src/PeerObject.h
  4375. * src/PeerReceiveHandshakeCommand.cc
  4376. * src/PeerReceiveHandshakeCommand.h
  4377. * src/ReceiverMSEHandshakeCommand.cc
  4378. * src/RequestGroup.cc
  4379. * src/RequestGroup.h
  4380. * src/RequestGroupMan.cc
  4381. * src/RequestGroupMan.h
  4382. * src/SeedCheckCommand.cc
  4383. * src/SeedCheckCommand.h
  4384. * src/ShareRatioSeedCriteria.h
  4385. * src/SimpleBtMessage.cc
  4386. * src/TrackerWatcherCommand.cc
  4387. * src/TrackerWatcherCommand.h
  4388. * src/UTPexExtensionMessage.cc
  4389. * src/UTPexExtensionMessage.h
  4390. * test/BtCancelMessageTest.cc
  4391. * test/BtChokeMessageTest.cc
  4392. * test/BtExtendedMessageTest.cc
  4393. * test/BtInterestedMessageTest.cc
  4394. * test/BtNotInterestedMessageTest.cc
  4395. * test/BtPieceMessageTest.cc
  4396. * test/BtPortMessageTest.cc
  4397. * test/BtRegistryTest.cc
  4398. * test/BtRejectMessageTest.cc
  4399. * test/BtRequestMessageTest.cc
  4400. * test/DHTPeerAnnounceEntryTest.cc
  4401. * test/DHTPeerAnnounceStorageTest.cc
  4402. * test/DefaultBtMessageDispatcherTest.cc
  4403. * test/DefaultBtMessageFactoryTest.cc
  4404. * test/DefaultBtProgressInfoFileTest.cc
  4405. * test/DefaultBtRequestFactoryTest.cc
  4406. * test/DefaultExtensionMessageFactoryTest.cc
  4407. * test/MSEHandshakeTest.cc
  4408. * test/MockDHTTaskFactory.h
  4409. * test/ShareRatioSeedCriteriaTest.cc
  4410. * test/UTPexExtensionMessageTest.cc
  4411. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4412. Fixed compiler warning.
  4413. * test/UtilTest.cc
  4414. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4415. Treat Cookie object as session cookie if expiry = 0 is given.
  4416. With this change, you can specify session scoped cookies in an external
  4417. file setting expiry value to 0.
  4418. * src/Cookie.cc
  4419. * src/Cookie.h
  4420. * test/CookieParserTest.cc
  4421. * test/CookieStorageTest.cc
  4422. * test/CookieTest.cc
  4423. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4424. Changed signature of DHTMessageFactory::createResponseMessage().
  4425. Removed unused validateIDMatch.
  4426. * src/DHTMessageFactory.h
  4427. * src/DHTMessageFactoryImpl.cc
  4428. * src/DHTMessageFactoryImpl.h
  4429. * src/DHTMessageTracker.cc
  4430. * test/DHTMessageFactoryImplTest.cc
  4431. * test/MockDHTMessageFactory.h
  4432. Dropped DHT message coming from same ID of localhost.
  4433. * src/DHTMessageReceiver.cc
  4434. Rejected adding node whose ID is the same as localhost's.
  4435. * src/DHTRoutingTable.cc
  4436. * test/BtPortMessageTest.cc
  4437. * test/DHTRoutingTableTest.cc
  4438. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4439. Pool connection when redirection occurs with Content-Length = 0.
  4440. * src/HttpSkipResponseCommand.cc
  4441. * src/HttpSkipResponseCommand.h
  4442. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4443. Fixed the bug that causes time out when redirection occurs with
  4444. content-length 0.
  4445. * src/HttpResponseCommand.cc
  4446. * src/HttpSkipResponseCommand.cc
  4447. * src/HttpSkipResponseCommand.h
  4448. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4449. Now each status legends is shown only when it appears in Download
  4450. Result. If Download Result has no item, then status legend will not
  4451. be printed.
  4452. * src/RequestGroupMan.cc
  4453. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4454. Removed duplicate creation of OptionHandlers.
  4455. * src/option_processing.cc
  4456. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4457. Fixed the bug that causes segmentation fault when accessing files which
  4458. don't exist or are not included in --select-file option while
  4459. validating chunk checksum.
  4460. * src/MultiDiskAdaptor.cc
  4461. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4462. Fixed compiler warning.
  4463. * test/UtilTest.cc
  4464. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4465. Included cstdlib. This fixed the compile error with g++-4.3.2.
  4466. * src/IteratableChecksumValidator.cc
  4467. * src/IteratableChunkChecksumValidator.cc
  4468. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4469. * Release 0.16.2
  4470. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4471. Added Serbian translation. Updated Ukrainian translation.
  4472. Thanks to all translators.
  4473. * po/sr.po
  4474. * po/uk.po
  4475. * po/LINGUAS
  4476. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4477. Bump up version number to 0.16.2
  4478. * configure.ac
  4479. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4480. Added length equality test to operator== to drop a piece message
  4481. whose length does not match to the requested one.
  4482. * src/RequestSlot.cc
  4483. * test/DefaultBtMessageDispatcherTest.cc
  4484. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4485. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  4486. recieved.
  4487. In this fix, if a request larger than 16KiB length is received, aria2
  4488. disconnects the peer.
  4489. * src/BtConstants.h
  4490. * src/PeerMessageUtil.cc
  4491. * src/PeerMessageUtil.h
  4492. * test/BtRequestMessageTest.cc
  4493. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4494. * Release 0.16.1
  4495. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4496. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  4497. * doc/aria2c.1.txt
  4498. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4499. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  4500. Updated French, Simplified Chinese and Japanese translations.
  4501. Thanks to all translators.
  4502. en@quot and en@boldquot are also added.
  4503. * po/LINGUAS
  4504. * po/fr.po
  4505. * po/ja.po
  4506. * po/uk.po
  4507. * po/vi.po
  4508. * po/zh_CN.po
  4509. * po/zh_TW.po
  4510. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4511. Bump up version number to 0.16.1.
  4512. * configure.ac
  4513. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4514. Updated README.
  4515. * README
  4516. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4517. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  4518. not to replace '--' with em dash character.
  4519. * doc/aria2c.1.txt
  4520. * doc/makeman
  4521. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4522. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  4523. every SEC seconds.
  4524. * src/DownloadEngineFactory.cc
  4525. * src/OptionHandlerFactory.cc
  4526. * src/option_processing.cc
  4527. * src/usage_text.h
  4528. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4529. Fixed compile warning on linux-amd64
  4530. * src/FtpConnection.cc
  4531. * src/IteratableChunkChecksumValidator.cc
  4532. * src/MultiDiskAdaptor.cc
  4533. Fixed the bug that unit test fails on linux-amd64
  4534. * test/UtilTest.cc
  4535. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4536. Added --dht-file-path option to change the path to dht.dat, which is a
  4537. serialized DHT routing table.
  4538. * src/OptionHandlerFactory.cc
  4539. * src/option_processing.cc
  4540. * src/usage_text.h
  4541. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4542. Fixed possible underflow.
  4543. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  4544. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4545. Fixed the bug that last character in URI is not encoded.
  4546. * src/Request.cc
  4547. * test/RequestTest.cc
  4548. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4549. Fixed the bug that referer header field contains fragment.
  4550. Now Request class removes fragment part of URI and encodes it
  4551. in Request::setUri() and setReferer().
  4552. * src/Request.h
  4553. * src/Request.cc
  4554. * test/RequestTest.cc
  4555. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4556. Added missing m4 macros.
  4557. * m4/cppunit.m4
  4558. * m4/libgcrypt.m4
  4559. * m4/libgnutls-extra.m4
  4560. * m4/libgnutls.m4
  4561. * m4/libxml2.m4
  4562. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4563. Fixed compile error with gcc-4.4(snapshot)
  4564. * src/File.cc
  4565. * src/FtpConnection.cc
  4566. * src/OptionHandlerImpl.h
  4567. * src/Util.cc
  4568. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4569. Removed assert()
  4570. * src/SocketBuffer.cc (SocketBuffer::send)
  4571. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4572. Changed the type of _numNewConnection to unsigned int.
  4573. * src/ActivePeerConnectionCommand.cc
  4574. * src/ActivePeerConnectionCommand.h
  4575. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4576. * Release 0.16.0
  4577. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4578. Updated doc
  4579. * README
  4580. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4581. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  4582. translations. Thanks to all translators.
  4583. * po/bg.po
  4584. * po/de.po
  4585. * po/fr.po
  4586. * po/ja.po
  4587. * po/zh_CN.po
  4588. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4589. Bump up version number to 0.16.0.
  4590. * configure.ac
  4591. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4592. Casted entry->maxConnections to int32_t for std::min<T> with T =
  4593. int32_t.
  4594. Changed the type of count to int32_t.
  4595. * src/Metalink2RequestGroup.cc
  4596. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4597. Added test for Time::elapsed(time_t).
  4598. * test/TimeTest.cc
  4599. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4600. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  4601. Util::difftv() should be used instead.
  4602. * src/TimeA2.cc
  4603. * src/TimeA2.h
  4604. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4605. Made socket for dht connections non-blocking
  4606. * src/DHTAbstractMessage.cc
  4607. * src/DHTAbstractMessage.h
  4608. * src/DHTConnection.h
  4609. * src/DHTConnectionImpl.cc
  4610. * src/DHTConnectionImpl.h
  4611. * src/DHTMessage.h
  4612. * src/DHTMessageDispatcherImpl.cc
  4613. * src/DHTMessageDispatcherImpl.h
  4614. * src/DHTUnknownMessage.cc
  4615. * src/DHTUnknownMessage.h
  4616. * src/SocketCore.cc
  4617. * src/SocketCore.h
  4618. * test/MockDHTMessage.h
  4619. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4620. Changed the type of offset to int.
  4621. * src/ParameterizedStringParser.cc
  4622. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4623. Made getAsInt() return int32_t
  4624. * src/Option.h
  4625. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4626. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  4627. build.
  4628. * configure.ac
  4629. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4630. Use sqlite3_open if sqlite3_open_v2 is not available.
  4631. * src/Sqlite3MozCookieParser.cc
  4632. * src/Sqlite3MozCookieParser.h
  4633. * m4/sqlite3.m4
  4634. * test/Sqlite3MozCookieParserTest.cc
  4635. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4636. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  4637. * src/BtPieceMessage.cc
  4638. * src/DHTPeerAnnounceStorage.cc
  4639. * src/DefaultPieceStorage.cc
  4640. * src/DownloadCommand.cc
  4641. * src/DownloadEngine.cc
  4642. * src/FtpConnection.cc
  4643. * src/PeerConnection.cc
  4644. * src/PeerMessageUtil.cc
  4645. * src/RequestGroup.cc
  4646. * src/RequestGroupMan.cc
  4647. * src/SimpleBtMessage.cc
  4648. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4649. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  4650. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  4651. * src/AbstractDiskWriter.cc
  4652. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4653. Don't set Request::supportsPersistentConnection() in HttpConnection
  4654. since this code is also used in AbstractProxyResponseCommand.
  4655. Moved those code to HttpResponse.
  4656. * src/HttpResponse.cc
  4657. * src/HttpResponse.h
  4658. * src/HttpConnection.cc
  4659. * src/HttpConnection.h
  4660. * src/HttpResponseCommand.cc
  4661. * test/HttpResponseTest.cc
  4662. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4663. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  4664. The configuration is minimum: no torrent, no metalink, so there may be
  4665. other compile error on their code.
  4666. * src/a2netcompat.h
  4667. * src/File.cc
  4668. * src/File.h
  4669. * src/SocketCore.cc
  4670. * src/SocketCore.h
  4671. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4672. Made a socket of incoming peer non-blocking.
  4673. * src/PeerListenCommand.cc
  4674. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4675. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  4676. whole message data is not sent in one send() call.
  4677. * src/BtPieceMessage.cc
  4678. * src/BtPieceMessage.h
  4679. * src/PeerConnection.cc
  4680. * src/PeerConnection.h
  4681. * src/SimpleBtMessage.cc
  4682. * src/SimpleBtMessage.h
  4683. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4684. Fixed the bug that aria2 downloads faster than max-download-limit when
  4685. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  4686. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  4687. , instead of sum of them.
  4688. * src/ActivePeerConnectionCommand.cc
  4689. * src/DefaultBtInteractive.cc
  4690. * src/DownloadCommand.cc
  4691. * src/PeerInteractionCommand.cc
  4692. * src/PeerReceiveHandshakeCommand.cc
  4693. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4694. Fixed the bug that HTTPS download fails.
  4695. * src/AbstractCommand.cc
  4696. * src/AbstractCommand.h
  4697. * src/DownloadCommand.cc
  4698. * src/FtpConnection.cc
  4699. * src/HttpConnection.cc
  4700. * src/HttpRequestCommand.cc
  4701. * src/HttpResponseCommand.cc
  4702. * src/HttpSkipResponseCommand.cc
  4703. * src/MSEHandshake.cc
  4704. * src/PeerConnection.cc
  4705. * src/SocketCore.cc
  4706. * src/SocketCore.h
  4707. Fixed the bug that aria2 doesn't download whole content body and cannot
  4708. reuse connection if chunked transfer encoding and gzip content encoding
  4709. are set.
  4710. * src/DownloadCommand.cc
  4711. * src/HttpSkipResponseCommand.cc
  4712. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4713. Updated man page.
  4714. * doc/aria2c.1.txt
  4715. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4716. When error occurred while aria2 was parsing an .aria2.conf file, print
  4717. the usage of the option that caused error.
  4718. * src/option_processing.cc
  4719. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4720. Fixed compile error on OptionHandlerException
  4721. * src/Makefile.am
  4722. * src/OptionHandlerException.cc
  4723. * src/OptionHandlerException.h
  4724. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4725. Moved message of the error to OptionHandlerException.h
  4726. * src/NameMatchOptionHandler.h
  4727. * src/OptionHandlerException.h
  4728. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4729. When error occurs while aria2 is parsing an command-line option, print
  4730. the usage of the option.
  4731. * src/Makefile.am
  4732. * src/NameMatchOptionHandler.h
  4733. * src/OptionHandlerException.h
  4734. * src/option_processing.cc
  4735. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4736. Reverted previous change.
  4737. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  4738. username is not in URI.
  4739. * src/HttpRequest.cc
  4740. * src/Request.cc
  4741. * test/HttpRequestTest.cc
  4742. * test/RequestTest.cc
  4743. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4744. Now colon is required for username and password in FTP URL, like:
  4745. ftp://username:password@host.
  4746. If colon is not there, aria2 don't parse it as a username. For example,
  4747. aria2 don't retrieve username from ftp://username@host.
  4748. This fix was made in order to login FTP server via non-transparent ftp
  4749. proxy.
  4750. * src/Request.cc
  4751. * test/RequestTest.cc
  4752. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4753. Use netrc for HTTP.
  4754. Now FTP user/password is sent in Authorization header when
  4755. --ftp-via-http-proxy=get is given.
  4756. * src/AuthConfigFactory.cc
  4757. * src/HttpRequest.cc
  4758. * src/HttpRequest.h
  4759. * src/NetrcAuthResolver.cc
  4760. * src/NetrcAuthResolver.h
  4761. * src/OptionHandlerFactory.cc
  4762. * src/option_processing.cc
  4763. * src/prefs.cc
  4764. * src/prefs.h
  4765. * test/AuthConfigFactoryTest.cc
  4766. * test/HttpRequestTest.cc
  4767. * test/NetrcAuthResolverTest.cc
  4768. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4769. Issue PWD command first and get working directory and use it as a prefix
  4770. for CWD command.
  4771. * src/DownloadEngine.cc
  4772. * src/DownloadEngine.h
  4773. * src/FtpConnection.cc
  4774. * src/FtpConnection.h
  4775. * src/FtpFinishDownloadCommand.cc
  4776. * src/FtpInitiateConnectionCommand.cc
  4777. * src/FtpNegotiationCommand.cc
  4778. * src/FtpNegotiationCommand.h
  4779. * test/FtpConnectionTest.cc
  4780. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4781. Removed default user/pass for FTP user/pass, since it should not have
  4782. precedence over netrc configuration by default.
  4783. * src/OptionHandlerFactory.cc
  4784. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4785. Added debug log for socket event.
  4786. * src/AbstractCommand.cc
  4787. * src/PeerAbstractCommand.cc
  4788. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4789. Log microseconds.
  4790. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4791. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4792. Replaced HelpItem.cc with OptionHandler.cc.
  4793. * po/POTFILES.in
  4794. Updated po files with 'make update-po'
  4795. * po/aria2c.pot
  4796. * po/*.po
  4797. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4798. Removed possible values from the text.
  4799. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  4800. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4801. Removed unused preferences:
  4802. PREF_NO_PREALLOCATION
  4803. PREF_STDOUT_LOG
  4804. PREF_TRACKER_MAX_TRIES
  4805. PREF_DIRECT_DOWNLOAD_TIMEOUT
  4806. PREF_MIN_SEGMENT_SIZE
  4807. * src/option_processing.cc
  4808. * src/prefs.cc
  4809. * src/prefs.h
  4810. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4811. Integrated HelpItem into OptionParser to ease the workload for adding
  4812. new options. Removed default value from usage text.
  4813. * src/HelpItem.cc: Removed.
  4814. * src/HelpItem.h: Removed.
  4815. * src/HelpItemFactory.cc: Removed.
  4816. * src/HelpItemFactory.h: Removed.
  4817. * src/Makefile.am
  4818. * src/Makefile.in
  4819. * src/NameMatchOptionHandler.h
  4820. * src/OptionHandler.cc
  4821. * src/OptionHandler.h
  4822. * src/OptionHandlerFactory.cc
  4823. * src/OptionHandlerImpl.h
  4824. * src/OptionParser.cc
  4825. * src/OptionParser.h
  4826. * src/TagContainer.cc: Removed.
  4827. * src/TagContainer.h: Removed.
  4828. * src/TaggedItem.cc: Removed.
  4829. * src/TaggedItem.h: Removed.
  4830. * src/main.cc
  4831. * src/option_processing.cc
  4832. * src/usage_text.h
  4833. * src/version_usage.cc
  4834. * test/HelpItemTest.cc: Removed.
  4835. * test/Makefile.am
  4836. * test/Makefile.in
  4837. * test/OptionHandlerTest.cc
  4838. * test/OptionParserTest.cc
  4839. * test/TagContainerTest.cc: Removed.
  4840. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4841. Moved `TransferStat stat = ...' to inside the `if' clause.
  4842. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  4843. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4844. Fixed the bug that a block in a piece is requested when same block is
  4845. already requested to the same peer in end game mode.
  4846. * src/BtRequestFactory.h
  4847. * src/DefaultBtInteractive.cc
  4848. * src/DefaultBtRequestFactory.cc
  4849. * src/DefaultBtRequestFactory.h
  4850. * src/DefaultPieceStorage.cc
  4851. * src/DefaultPieceStorage.h
  4852. * src/PieceStorage.h
  4853. * src/UnknownLengthPieceStorage.cc
  4854. * src/UnknownLengthPieceStorage.h
  4855. * test/DefaultBtRequestFactoryTest.cc
  4856. * test/DefaultPieceStorageTest.cc
  4857. * test/MockBtRequestFactory.h
  4858. * test/MockPieceStorage.h
  4859. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4860. Removed _uploadLength and _downloadLength from PeerSessionResource
  4861. and use PeerStat::_sessionUploadLength and
  4862. PeerStat::_sessionDownloadLength.
  4863. * src/PeerSessionResource.cc
  4864. * src/PeerSessionResource.h
  4865. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4866. Fixed the bug that prefixLength of split bucket which doesn't include
  4867. local node ID is incremented.
  4868. * src/DHTBucket.cc
  4869. * src/DHTBucket.h
  4870. * test/DHTBucketTest.cc
  4871. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4872. Added cookies.sqlite to EXTRA_DIST
  4873. * test/Makefile.am
  4874. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4875. Added Turkish translation. Updated French, German, Russian and
  4876. Simplified Chinese translations. Thanks to all translators.
  4877. * po/LINGUAS
  4878. * po/de.po
  4879. * po/fr.po
  4880. * po/ru.po
  4881. * po/tr.po
  4882. * po/zh_CN.po
  4883. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4884. Added deliminating text to the beginning of the log so that one can find
  4885. where the log starts easily.
  4886. * src/main.cc
  4887. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4888. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  4889. to fix compile error when async DNS is not enabled by configuration.
  4890. * src/AbstractCommand.cc
  4891. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4892. If establishing conneciton to a server is failed, then mark error on
  4893. its ServerStat.
  4894. Added the cause of error to log when error event occurred.
  4895. Moved message string to message.h for translation.
  4896. * src/AbstractCommand.cc
  4897. * src/AbstractCommand.h
  4898. * src/FtpNegotiationCommand.cc
  4899. * src/HttpRequestCommand.cc
  4900. * src/PeerAbstractCommand.cc
  4901. * src/message.h
  4902. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4903. Added the function to get error message from socket.
  4904. * src/SocketCore.cc
  4905. * src/SocketCore.h
  4906. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4907. Added convenient method RequestGroupMan::getOrCreateServerStat()
  4908. * src/RequestGroupMan.cc
  4909. * src/RequestGroupMan.h
  4910. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4911. If error event is received in epoll, then abort download immediately.
  4912. * src/AbstractCommand.cc
  4913. * src/Command.cc
  4914. * src/Command.h
  4915. * src/DownloadEngine.cc
  4916. * src/PeerAbstractCommand.cc
  4917. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4918. Added usage message for --uri-selector, --server-stat-of,
  4919. --server-stat-in, --server-stat-timeout options.
  4920. * src/HelpItemFactory.cc
  4921. * src/usage_text.h
  4922. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4923. Added upper limit of FTP response buffer. The current implementation
  4924. uses 4096bytes as a limit.
  4925. * src/FtpConnection.cc
  4926. * src/FtpConnection.h
  4927. * test/FtpConnectionTest.cc
  4928. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4929. Use non-blocking socket for TCP communication to avoid possible
  4930. blocking due to buffer full.
  4931. * src/AbstractProxyRequestCommand.cc
  4932. * src/FtpConnection.cc
  4933. * src/FtpConnection.h
  4934. * src/FtpNegotiationCommand.cc
  4935. * src/FtpNegotiationCommand.h
  4936. * src/HttpConnection.cc
  4937. * src/HttpConnection.h
  4938. * src/HttpRequestCommand.cc
  4939. * src/InitiatorMSEHandshakeCommand.cc
  4940. * src/InitiatorMSEHandshakeCommand.h
  4941. * src/MSEHandshake.cc
  4942. * src/MSEHandshake.h
  4943. * src/Makefile.am
  4944. * src/PeerConnection.cc
  4945. * src/PeerConnection.h
  4946. * src/PeerInteractionCommand.cc
  4947. * src/PeerListenCommand.cc
  4948. * src/ReceiverMSEHandshakeCommand.cc
  4949. * src/ReceiverMSEHandshakeCommand.h
  4950. * src/SocketBuffer.cc
  4951. * src/SocketBuffer.h
  4952. * src/SocketCore.cc
  4953. * src/SocketCore.h
  4954. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4955. Call setStatusRealtime() in constructor.
  4956. * src/RealtimeCommand.cc
  4957. * src/RealtimeCommand.h
  4958. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4959. Call Download::setNoWait(true) to execute newly created command without
  4960. a pause.
  4961. * src/AbstractCommand.cc
  4962. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4963. Added --max-file-not-found=NUM option. If aria2 receives `file not
  4964. found' error from HTTP/FTP server NUM times without getting single
  4965. bytes of data, then force the download to fail.
  4966. Basically aria2 tris all URIs available. So if long list of URIs are
  4967. specified in Metalink, then aria2 will take a long time to fail
  4968. eventually if all URIs are outdated. This option eases this situation
  4969. to limit the number of servers to try.
  4970. * src/FtpNegotiationCommand.cc
  4971. * src/HelpItemFactory.cc
  4972. * src/HttpResponseCommand.cc
  4973. * src/OptionHandlerFactory.cc
  4974. * src/PeerStat.h
  4975. * src/RequestGroup.cc
  4976. * src/RequestGroup.h
  4977. * src/SegmentMan.cc
  4978. * src/SegmentMan.h
  4979. * src/option_processing.cc
  4980. * src/prefs.cc
  4981. * src/prefs.h
  4982. * src/usage_text.h
  4983. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4984. Fixed the bug that bulkReceiveResponse() reads all received data as a
  4985. response even if more than one response is in it.
  4986. * src/FtpConnection.cc
  4987. * src/FtpConnection.h
  4988. * test/FtpConnectionTest.cc
  4989. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4990. Merged from stable-0.15
  4991. * m4/libcares.m4
  4992. Use pkg-config
  4993. * m4/sqlite3.m4
  4994. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4995. Removed unnecessary if statement.
  4996. * src/DefaultPieceStorage.cc (initPieceStorage)
  4997. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4998. Added --connect-timeout option to specify connect timeout in seconds.
  4999. This option is in effect for HTTP/FTP/proxy server. The timeout for
  5000. connecting to BitTorrent peer is not controlled by this option.
  5001. * src/AbstractProxyRequestCommand.cc
  5002. * src/FtpNegotiationCommand.cc
  5003. * src/HelpItemFactory.cc
  5004. * src/HttpRequestCommand.cc
  5005. * src/OptionHandlerFactory.cc
  5006. * src/option_processing.cc
  5007. * src/prefs.cc
  5008. * src/prefs.h
  5009. * src/usage_text.h
  5010. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5011. Added help message for -R option.
  5012. * src/HelpItemFactory.cc
  5013. * src/usage_text.h
  5014. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5015. Added the message that the time is in local time zone.
  5016. * src/RequestGroup.cc
  5017. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5018. Implemented the ability to get timestamp from remote FTP server using
  5019. MDTM command described in RFC3659.
  5020. * src/FtpConnection.cc
  5021. * src/FtpConnection.h
  5022. * src/FtpNegotiationCommand.cc
  5023. * src/FtpNegotiationCommand.h
  5024. * test/FtpConnectionTest.cc
  5025. * test/Makefile.am
  5026. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5027. Implemented the ability to get timestamp from remote HTTP server and
  5028. apply it to local file. To enable this feature, --remote-time option
  5029. is added. No usage text has been written yet.
  5030. If several servers returns difference timestamp, then aria2 uses latest
  5031. one.
  5032. * src/CopyDiskAdaptor.cc
  5033. * src/CopyDiskAdaptor.h
  5034. * src/DirectDiskAdaptor.cc
  5035. * src/DirectDiskAdaptor.h
  5036. * src/DiskAdaptor.h
  5037. * src/File.cc
  5038. * src/File.h
  5039. * src/HttpHeader.cc
  5040. * src/HttpHeader.h
  5041. * src/HttpResponse.cc
  5042. * src/HttpResponse.h
  5043. * src/HttpResponseCommand.cc
  5044. * src/HttpResponseCommand.h
  5045. * src/MultiDiskAdaptor.cc
  5046. * src/MultiDiskAdaptor.h
  5047. * src/OptionHandlerFactory.cc
  5048. * src/RequestGroup.cc
  5049. * src/RequestGroup.h
  5050. * src/RequestGroupMan.cc
  5051. * src/option_processing.cc
  5052. * src/prefs.cc
  5053. * src/prefs.h
  5054. * test/CopyDiskAdaptorTest.cc
  5055. * test/FileTest.cc
  5056. * test/Makefile.am
  5057. * test/Makefile.in
  5058. * test/MultiDiskAdaptorTest.cc
  5059. * test/TestUtil.cc
  5060. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5061. Fixed the bug that DiskWriterEntry is not created when its
  5062. FileEntry.isRequested() is false and it doesn't share a piece with
  5063. other FileEntries that are requested. This bug causes segmentation fault
  5064. in the end.
  5065. * src/MultiDiskAdaptor.cc
  5066. * src/MultiDiskAdaptor.h
  5067. * src/MultiFileAllocationIterator.cc
  5068. * test/MultiDiskAdaptorTest.cc
  5069. * test/MultiFileAllocationIteratorTest.cc
  5070. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5071. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  5072. called if the number of file entries are greater than max open files.
  5073. * src/AbstractSingleDiskAdaptor.cc
  5074. * src/AbstractSingleDiskAdaptor.h
  5075. * src/DiskAdaptor.h
  5076. * src/MultiDiskAdaptor.cc
  5077. * src/MultiDiskAdaptor.h
  5078. * test/MultiDiskAdaptorTest.cc
  5079. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5080. Added a constuctor that receives struct timeval.
  5081. Added operator<.
  5082. * src/TimeA2.cc
  5083. * src/TimeA2.h
  5084. * test/TimeTest.cc
  5085. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5086. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  5087. * src/CookieParser.cc
  5088. * test/CookieParserTest.cc
  5089. * test/HttpResponseTest.cc
  5090. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5091. Implmented the functions to parse date.
  5092. * src/TimeA2.cc
  5093. * src/TimeA2.h
  5094. * test/TimeTest.cc
  5095. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5096. Added "Firefox3 Cookie" feature to FeatureConfig
  5097. * src/FeatureConfig.cc
  5098. * src/FeatureConfig.h
  5099. * test/FeatureConfigTest.cc
  5100. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5101. Bump up version number to 0.16.0b
  5102. * configure.ac
  5103. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5104. Use pkg-config if is is available.
  5105. * m4/openssl.m4
  5106. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5107. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  5108. * src/BtAnnounce.h
  5109. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5110. If an error occurred with a URI, remove identical URI from remaining
  5111. URI list because it is likely that same error occurred in the end and it
  5112. is waste of time.
  5113. * src/AbstractCommand.cc
  5114. * src/RequestGroup.cc
  5115. * src/RequestGroup.h
  5116. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5117. Removed wrong comment.
  5118. * src/DefaultPeerStorage.cc
  5119. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5120. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  5121. Added return value of getpid() to argument of srand() to achieve more
  5122. randomized value.
  5123. * src/SimpleRandomizer.cc
  5124. * src/SimpleRandomizer.h
  5125. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5126. Contact tracker frequently when the number of connections are 0 and
  5127. download is not finished yet.
  5128. * src/ActivePeerConnectionCommand.cc
  5129. * src/BtAnnounce.h
  5130. * src/DefaultBtAnnounce.cc
  5131. * src/DefaultBtAnnounce.h
  5132. * test/MockBtAnnounce.h
  5133. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5134. Moved threshold values to UTPexExtensionMessage.
  5135. * src/DefaultBtInteractive.cc
  5136. * src/Peer.cc
  5137. * src/Peer.h
  5138. * src/UTPexExtensionMessage.cc
  5139. * src/UTPexExtensionMessage.h
  5140. * test/UTPexExtensionMessageTest.cc
  5141. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5142. Added _incoming member to Peer class and made it true if the peer
  5143. initiated connection. Don't add those peer to UTPex message.
  5144. If extended handshake is received, assign _incoming to false.
  5145. * src/DefaultBtInteractive.cc
  5146. * src/HandshakeExtensionMessage.cc
  5147. * src/Peer.cc
  5148. * src/Peer.h
  5149. * src/PeerListenCommand.cc
  5150. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5151. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  5152. Encoding Decoder. Removed size threshold for turning off on the fly
  5153. inflation because resulting file may or may not be inflated depending
  5154. on the file size and I think it is not expected by users.
  5155. This change fixes segmentation fault when Metalink file contains gzipped
  5156. file and its filesize is provided.
  5157. * src/HttpResponseCommand.cc
  5158. * src/HttpResponseCommand.h
  5159. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5160. Made Cookie immutable.
  5161. * src/Cookie.cc
  5162. * src/Cookie.h
  5163. * src/CookieParser.cc
  5164. * src/CookieParser.h
  5165. * src/CookieStorage.cc
  5166. * test/CookieParserTest.cc
  5167. * test/CookieStorageTest.cc
  5168. * test/NsCookieParserTest.cc
  5169. * test/Sqlite3MozCookieParserTest.cc
  5170. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5171. Removed CookieBox, CookieBoxFactory.
  5172. * src/CookieBox.cc
  5173. * src/CookieBox.h
  5174. * src/CookieBoxFactory.cc
  5175. * src/CookieBoxFactory.h
  5176. * src/Makefile.am
  5177. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5178. Use CookieStorage class instead of CookieBox class.
  5179. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  5180. * src/AbstractProxyRequestCommand.cc
  5181. * src/CookieStorage.cc
  5182. * src/DownloadEngine.cc
  5183. * src/DownloadEngine.h
  5184. * src/HttpConnection.cc
  5185. * src/HttpConnection.h
  5186. * src/HttpRequest.cc
  5187. * src/HttpRequest.h
  5188. * src/HttpRequestCommand.cc
  5189. * src/HttpResponse.cc
  5190. * src/HttpResponseCommand.cc
  5191. * src/HttpSkipResponseCommand.cc
  5192. * src/Makefile.am
  5193. * src/MultiUrlRequestInfo.cc
  5194. * src/Request.cc
  5195. * src/Request.h
  5196. * src/main.cc
  5197. * test/AllTest.cc
  5198. * test/CookieStorageTest.cc
  5199. * test/CookieTest.cc
  5200. * test/HttpRequestTest.cc
  5201. * test/HttpResponseTest.cc
  5202. * test/Makefile.am
  5203. * test/NsCookieParserTest.cc
  5204. * test/Sqlite3MozCookieParserTest.cc
  5205. * test/nscookietest.txt
  5206. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5207. Updated
  5208. * test/Cookies.sqlite
  5209. * test/nscookietest.txt
  5210. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5211. Added tests for CookieStorage::load()
  5212. * test/CookieStorageTest.cc
  5213. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5214. Added CookieStorage class which is based on RFC2109 and manages cookies
  5215. more strictly than CookieBox and CookieBoxFactory class.
  5216. * src/CookieStorage.cc
  5217. * src/CookieStorage.h
  5218. * src/Cookie.cc
  5219. * src/Cookie.h
  5220. * test/CookieStorageTest.cc
  5221. * test/CookieTest.cc
  5222. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5223. Fixed the bug that commands are created more than the number of pieces.
  5224. * src/RequestGroup.cc
  5225. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5226. Fixed infinite loop bug in FTP when SIZE command failed.
  5227. * src/FtpNegotiationCommand.cc
  5228. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5229. Removed DirectDiskAdaptorTest.h
  5230. * test/Makefile.am
  5231. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5232. Fixed chunk checksum validation cannot detect trailing garbage data.
  5233. BUG#2074141
  5234. * src/AbstractSingleDiskAdaptor.cc
  5235. * src/AbstractSingleDiskAdaptor.h
  5236. * src/CheckIntegrityEntry.cc
  5237. * src/CheckIntegrityEntry.h
  5238. * src/DiskAdaptor.h
  5239. * src/MultiDiskAdaptor.cc
  5240. * src/MultiDiskAdaptor.h
  5241. * src/RequestGroup.cc
  5242. * test/DirectDiskAdaptorTest.cc
  5243. * test/MultiDiskAdaptorTest.cc
  5244. * test/TestUtil.cc
  5245. * test/TestUtil.h
  5246. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5247. Bump up version number of dht.dat file to 3. In version 3 format, time
  5248. is stored in 64bit, network byte order.
  5249. New build can load old format(version 2) but it saves the file in new
  5250. format. It means once you used new build, your dht.dat becomes
  5251. incompatible with older build.
  5252. * src/DHTRoutingTableDeserializer.cc
  5253. * src/DHTRoutingTableSerializer.cc
  5254. * test/DHTRoutingTableSerializerTest.cc
  5255. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5256. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  5257. * test/Makefile.am
  5258. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5259. Bump up version number of .aria2 control file to 0001.
  5260. New aria2 can still load version 0000 file but it saves the file in
  5261. version 0001 format. It means that new aria2 can resume download
  5262. started by old aria2 but the opposite is not true.
  5263. * src/DefaultBtProgressInfoFile.cc
  5264. * src/DefaultBtProgressInfoFile.h
  5265. * test/DefaultBtProgressInfoFileTest.cc
  5266. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5267. Added ntoh64 and hton64 as inline functions.
  5268. * src/Util.cc
  5269. * test/UtilTest.cc
  5270. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5271. Added sqlite3 depenency and Firefox3 cookie support.
  5272. * README
  5273. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5274. State that firefox3 cookie is supported explicitly in the usage.
  5275. * src/usage_text.h
  5276. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5277. Externalized message.
  5278. * src/RequestGroupMan.cc
  5279. * src/message.h
  5280. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5281. Save temporary file first and rename to the destination on success.
  5282. Added test cases.
  5283. * src/RequestGroupMan.cc
  5284. * test/RequestGroupManTest.cc
  5285. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5286. Fixed the bug that the number of connected peer is exceeding the limit
  5287. (55 by default) in seeding mode.
  5288. Multiplied 0.8 to _maxUploadSpeedLimit.
  5289. * src/ActivePeerConnectionCommand.cc
  5290. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5291. Clear table item.
  5292. * src/Dictionary.cc
  5293. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5294. Fixed error handling of lseek.
  5295. * src/AbstractDiskWriter.cc
  5296. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5297. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  5298. style cookie file.
  5299. * src/usage_text.h
  5300. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5301. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  5302. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  5303. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  5304. * src/Util.cc
  5305. * src/Util.h
  5306. * src/CookieParser.cc
  5307. * test/UtilTest.cc
  5308. * test/CookieParserTest.cc
  5309. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5310. Separate the implementation to load old mozilla format of cookie to
  5311. NsCookieParser class.
  5312. * src/CookieBoxFactory.cc
  5313. * src/CookieBoxFactory.h
  5314. * src/NsCookieParser.cc
  5315. * src/NsCookieParser.h
  5316. * test/NsCookieParserTest.cc
  5317. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5318. Made parse() const
  5319. * src/Sqlite3MozCookieParser.cc
  5320. * src/Sqlite3MozCookieParser.h
  5321. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5322. Added firefox3 cookie support based on the patch submitted by
  5323. tizianomueller.
  5324. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  5325. this functionality.
  5326. * configure.ac
  5327. * m4/sqlite3.m4
  5328. * src/CookieBoxFactory.cc
  5329. * src/CookieBoxFactory.h
  5330. * src/Makefile.am
  5331. * src/Makefile.in
  5332. * src/Sqlite3MozCookieParser.cc
  5333. * src/Sqlite3MozCookieParser.h
  5334. * src/main.cc
  5335. * test/CookieBoxFactoryTest.cc
  5336. * test/Makefile.am
  5337. * test/Makefile.in
  5338. * test/Sqlite3MozCookieParserTest.cc
  5339. * test/badcookies.sqlite
  5340. * test/cookies.sqlite
  5341. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5342. Added Danish and Greek translations.
  5343. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  5344. Great thanks to all translators.
  5345. * po/LINGUAS
  5346. * po/el.po
  5347. * po/da.po
  5348. * po/es.po
  5349. * po/ca.po
  5350. * po/nn.po
  5351. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5352. Fixed man page: --follow-bittorrent should be --follow-torrent
  5353. * doc/aria2c.1.txt
  5354. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5355. Fixed: numCommand is less than the value specified in -C option.
  5356. * src/RequestGroup.cc
  5357. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5358. Fixed occasional assertion failure in PieceSegment.
  5359. Calling PieceStorage::getMissingPiece(size_t) was missing after
  5360. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  5361. creation of duplicate segments and one of the segment was finished then
  5362. assertion failure was caused.
  5363. * src/SegmentMan.cc
  5364. * test/SegmentManTest.cc
  5365. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5366. Added options to load/save the server's performance/status to a file
  5367. and the timeout to drop their data.
  5368. --server-stat-of=FILE specifies the file to which performance data
  5369. is saved.
  5370. --server-stat-if=FILE specifies the file to read previously saved
  5371. by --server-stat-of option. Might be used with --uri-selector=feedback.
  5372. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  5373. TIMEOUT is specified in seconds and the default value is 24hours.
  5374. * src/MultiUrlRequestInfo.cc
  5375. * src/OptionHandlerFactory.cc
  5376. * src/RequestGroupMan.cc
  5377. * src/RequestGroupMan.h
  5378. * src/ServerStatMan.cc
  5379. * src/ServerStatMan.h
  5380. * src/option_processing.cc
  5381. * src/prefs.cc
  5382. * src/prefs.h
  5383. * test/ServerStatManTest.cc
  5384. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5385. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  5386. * src/ServerStatMan.cc
  5387. * src/ServerStatMan.h
  5388. * test/ServerStatManTest.cc
  5389. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5390. Implemented ServerStatMan::load(...) function and its test case.
  5391. * src/ServerStat.cc
  5392. * src/ServerStat.h
  5393. * src/ServerStatMan.cc
  5394. * test/ServerStatManTest.cc
  5395. * test/ServerStatTest.cc
  5396. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5397. Use time_t instead of int32_t. Use int64_t where milli second is
  5398. expected.
  5399. * src/TimeA2.cc
  5400. * src/TimeA2.h
  5401. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5402. Implemented ServerStatMan::save(...) function and its test case.
  5403. * src/ServerStat.cc
  5404. * src/ServerStat.h
  5405. * src/ServerStatMan.cc
  5406. * src/ServerStatMan.h
  5407. * test/ServerStatManTest.cc
  5408. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5409. Now aria2 uses name attribute in Metalink as local filename in
  5410. BitTorrent downloads. BUG#2033999
  5411. * src/BtContext.h
  5412. * src/BtDependency.cc
  5413. * src/DefaultBtContext.cc
  5414. * src/DefaultBtContext.h
  5415. * src/SingleFileDownloadContext.cc
  5416. * src/SingleFileDownloadContext.h
  5417. * test/BtDependencyTest.cc
  5418. * test/DefaultBtContextTest.cc
  5419. * test/MockBtContext.h
  5420. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5421. Added AC_C_BIGENDIAN
  5422. * src/configure.ac
  5423. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5424. Limited numCommand less than or equal to the number of piece.
  5425. * src/RequestGroup.cc
  5426. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5427. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  5428. directive.
  5429. * test/DefaultPieceStorageTest.cc
  5430. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5431. Fixed memory leak in test code
  5432. * test/AnnounceListTest.cc
  5433. * test/DefaultPeerListProcessorTest.cc
  5434. * test/DefaultPeerStorageTest.cc
  5435. * test/MetaFileUtilTest.cc
  5436. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5437. Fixed wrong argument passing to BitfieldMan::isBitSet()
  5438. * src/DefaultPieceStorage.cc
  5439. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5440. Initialized _directIOAllowed
  5441. * src/MultiDiskAdaptor.cc
  5442. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5443. Fixed memory leak
  5444. * src/GZipDecoder.cc
  5445. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5446. Fixed memory leak
  5447. * src/MetalinkParserStateMachine.cc
  5448. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5449. Fixed memory leak
  5450. * src/Dictionary.cc
  5451. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5452. Fixed memory leak
  5453. * src/IteratableChunkChecksumValidator.h
  5454. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5455. Fixed unmatched malloc/free.
  5456. * src/IteratableChunkChecksumValidator.cc
  5457. * src/IteratableChecksumValidator.cc
  5458. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5459. Removed max chunk size check. This change fixes BUG#2040169
  5460. * src/ChunkedDecoder.cc
  5461. * src/ChunkedDecoder.h
  5462. * test/ChunkedDecoderTest.cc
  5463. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5464. Implemented download speed based URI selection algorithm.
  5465. Introduced new option --uri-selector.
  5466. If --uri-selector=feedback is given, aria2 uses download speed observed
  5467. in the previous downloads and chooses fastest server in the URI list.
  5468. Currently at most 10 URIs are considered to introduce randomeness for
  5469. finding better servers. The speed is average download speed in the
  5470. downloads.
  5471. On the other hand, if --uri-selector=inorder is given, which is default,
  5472. URI is tried in order in URI list.
  5473. The usage text for the new option has not been written yet.
  5474. * src/AbstractCommand.cc
  5475. * src/DownloadCommand.cc
  5476. * src/DownloadEngine.cc
  5477. * src/DownloadEngineFactory.cc
  5478. * src/InOrderURISelector.cc
  5479. * src/InOrderURISelector.h
  5480. * src/OptionHandlerFactory.cc
  5481. * src/PeerStat.h
  5482. * src/RequestGroup.cc
  5483. * src/RequestGroup.h
  5484. * src/RequestGroupMan.cc
  5485. * src/RequestGroupMan.h
  5486. * src/SegmentMan.cc
  5487. * src/SegmentMan.h
  5488. * src/ServerStat.cc
  5489. * src/ServerStat.h
  5490. * src/ServerStatMan.cc
  5491. * src/ServerStatMan.h
  5492. * src/ServerStatURISelector.cc
  5493. * src/ServerStatURISelector.h
  5494. * src/URISelector.h
  5495. * src/option_processing.cc
  5496. * src/prefs.cc
  5497. * src/prefs.h
  5498. * test/InOrderURISelectorTest.cc
  5499. * test/RequestGroupManTest.cc
  5500. * test/ServerStatManTest.cc
  5501. * test/ServerStatURISelectorTest.cc
  5502. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5503. * Release 0.15.1+2
  5504. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5505. Bump up version number to 0.15.1+2
  5506. * configure.ac
  5507. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5508. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  5509. * m4/aria2_arg.m4
  5510. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5511. * Release 0.15.1+1
  5512. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5513. Bump up version number to 0.15.1+1
  5514. * configure.ac
  5515. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5516. Fixed the bug that causes segmentaion fault when resuming download
  5517. using metalink without size tag. Reproducible only using HTTP URI.
  5518. * src/HttpResponseCommand.cc
  5519. * src/FtpNegotiationCommand.cc
  5520. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5521. * Release 0.15.1
  5522. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5523. Updated Bulgarian and French translations, thanks to all translators.
  5524. * po/bg.po
  5525. * po/fr.po
  5526. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5527. Bump up version number to 0.15.1
  5528. * configure.ac
  5529. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5530. Avoid repeated call of gettimeofday() when calculating speed.
  5531. * src/SpeedCalc.cc
  5532. * src/SpeedCalc.h
  5533. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5534. Removed writable check when socket's send buffer is full in BitTorrent
  5535. downloads to lower CPU usage.
  5536. * src/PeerInteractionCommand.cc
  5537. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5538. Fixed broken gzip inflation.
  5539. Turn off segmented downloading if gzip content is smaller than or equal
  5540. to 1MiB and inflate the data on the fly, because HTTP response header
  5541. doesn't contain the length of inflated file we can't determin where
  5542. the chunk of data should be written.
  5543. On the other hand, if gzip content is larger than 1MB, then turn off
  5544. on the fly inflation, because some servers returns "content-type: gzip"
  5545. for *.tgz, *.gz files.
  5546. * src/DownloadCommand.cc
  5547. * src/HttpResponseCommand.cc
  5548. * src/HttpResponseCommand.h
  5549. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5550. Applied tizianomueller's patch to fix compile error.
  5551. * test/BitfieldManTest.cc
  5552. * test/BtRequestMessageTest.cc
  5553. * test/DefaultBtContextTest.cc
  5554. * test/DefaultDiskWriterTest.cc
  5555. * test/DefaultPieceStorageTest.cc
  5556. * test/HttpHeaderProcessorTest.cc
  5557. * test/HttpResponseTest.cc
  5558. * test/Metalink2RequestGroupTest.cc
  5559. * test/MetalinkParserControllerTest.cc
  5560. * test/MetalinkProcessorTest.cc
  5561. * test/PeerSessionResourceTest.cc
  5562. * test/UtilTest.cc
  5563. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5564. * Release 0.15.0
  5565. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5566. Reordered src files in POTFILES.in so that usage text appears first.
  5567. * po/POTFILES.in
  5568. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5569. Bump up version number to 0.15.0
  5570. * configure.ac
  5571. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5572. Added Bulgarian translation.
  5573. Updated Catalan, Spanish, French and Japanese translations.
  5574. Thanks to all translators.
  5575. * po/LINGUAS
  5576. * po/bg.po
  5577. * po/ca.po
  5578. * po/es.po
  5579. * po/fr.po
  5580. * po/ja.po
  5581. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5582. Updated feature list. Added libz for dependency section.
  5583. Added a description about unit testing using CppUnit.
  5584. * README
  5585. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5586. Added a test for libz. Quoted where it is necessary.
  5587. * build_test.sh
  5588. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5589. Added GZip to `Enabled Features' list.
  5590. * src/FeatureConfig.cc
  5591. * src/FeatureConfig.h
  5592. * test/FeatureConfigTest.cc
  5593. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5594. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  5595. the transfer has not yet started.
  5596. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  5597. * src/SegmentMan.cc
  5598. * src/SegmentMan.h
  5599. * test/SegmentManTest.cc
  5600. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5601. Cache last calculated average download/upload speed.
  5602. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  5603. cached value.
  5604. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  5605. * src/PeerStat.h
  5606. * src/SpeedCalc.cc
  5607. * src/SpeedCalc.h
  5608. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5609. Call parseUrl directly.
  5610. * src/Request.cc (resetUrl)
  5611. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5612. Supported absolute/relative path in Location header field.
  5613. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  5614. * src/HttpHeader.cc
  5615. * src/HttpHeader.h
  5616. * src/HttpResponse.cc
  5617. * src/HttpSkipResponseCommand.cc
  5618. * src/Request.cc
  5619. * test/HttpHeaderTest.cc
  5620. * test/HttpResponseTest.cc
  5621. * test/RequestTest.cc
  5622. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5623. Changed help text for --load-cookie option.
  5624. * doc/aria2c.1.txt
  5625. * src/usage_text.h
  5626. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5627. Regenerated test/Makefile.in to remove stale ChangeLog.
  5628. * test/Makefile.in
  5629. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5630. Updated po files.
  5631. * po/aria2c.pot
  5632. * po/*.po
  5633. * po/*.gmo
  5634. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5635. Bump up version number to 0.15.0b
  5636. * configure.ac
  5637. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5638. Externalize messages.
  5639. * src/RequestGroupMan.cc
  5640. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  5641. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5642. Use File::exists() instead of File::isFile() to allow non-regular file
  5643. such as block special files.
  5644. * src/AbstractDiskWriter.cc
  5645. * src/MultiDiskWriter.cc
  5646. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5647. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  5648. * src/gai_strerror.h
  5649. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5650. Fixed compile error. Thanks gknauf for the patch.
  5651. * src/asctime_r.c
  5652. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5653. Included asctime_r.h from a2time.h.
  5654. * src/a2time.h
  5655. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5656. Added a message "aria2 doesn't verify signature" to log message when
  5657. signature file is saved.
  5658. * src/RequestGroupMan.cc
  5659. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5660. Added the ability to save signature when download is completed if
  5661. signature is available. The filename of signature file is the path to
  5662. download file followed by ".sig". If it already exists, then signature
  5663. will not be saved.
  5664. * src/RequestGroupMan.cc
  5665. * src/Signature.cc
  5666. * test/SignatureTest.cc
  5667. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5668. Updated the descriptions for --bt-seed-unverified.
  5669. * doc/aria2c.1
  5670. * doc/aria2c.1.html
  5671. * doc/aria2c.1.txt
  5672. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5673. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  5674. that this is not going to verify files using piece hashes.
  5675. * src/HelpItemFactory.cc
  5676. * src/OptionHandlerFactory.cc
  5677. * src/RequestGroup.cc
  5678. * src/option_processing.cc
  5679. * src/prefs.cc
  5680. * src/prefs.h
  5681. * src/usage_text.h
  5682. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5683. Added the ability to retrieve signature from Metalink file.
  5684. A retrieved signature is stored in Signature class and it is held by
  5685. DownloadContext class. Note that aria2 doesn't verify signature.
  5686. * src/DownloadContext.cc
  5687. * src/DownloadContext.h
  5688. * src/Makefile.am
  5689. * src/Makefile.in
  5690. * src/Metalink2RequestGroup.cc
  5691. * src/MetalinkEntry.cc
  5692. * src/MetalinkEntry.h
  5693. * src/MetalinkParserController.cc
  5694. * src/MetalinkParserController.h
  5695. * src/MetalinkParserStateMachine.cc
  5696. * src/MetalinkParserStateMachine.h
  5697. * src/Signature.cc
  5698. * src/Signature.h
  5699. * src/SignatureMetalinkParserState.cc
  5700. * src/SignatureMetalinkParserState.h
  5701. * src/VerificationMetalinkParserState.cc
  5702. * src/VerificationMetalinkParserState.h
  5703. * test/Metalink2RequestGroupTest.cc
  5704. * test/MetalinkParserControllerTest.cc
  5705. * test/MetalinkProcessorTest.cc
  5706. * test/test.xml
  5707. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5708. Close DiskAdaptor after renaming file.
  5709. * src/RequestGroup.cc
  5710. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5711. Corrected indentation
  5712. * src/DefaultBtProgressInfoFile.cc
  5713. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5714. Moved the calls of std::ios::exceptions() inside of try-catch block
  5715. because if an error occurred in constructor of std::fstream, then
  5716. exception is thrown immediately when std::ios::exceptions() is called
  5717. which results unhandled exception and aria2c aborts.
  5718. * src/DefaultBtProgressInfoFile.cc
  5719. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5720. Added the test for the previous change in DefaultBtContext.cc
  5721. * test/DefaultBtContextTest.cc
  5722. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5723. Fixed the bug that causes infinite loop when the number of pieces are
  5724. fewer than allowed fast set size which is 10 by default.
  5725. * src/DefaultBtContext.cc
  5726. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5727. Updated the descriptions for -j, -s. Added --bt-seed.
  5728. * doc/aria2c.1
  5729. * doc/aria2c.1.html
  5730. * doc/aria2c.1.txt
  5731. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5732. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  5733. aria2 seeds previously downloaded files without validating piece hashs.
  5734. * src/HelpItemFactory.cc
  5735. * src/OptionHandlerFactory.cc
  5736. * src/RequestGroup.cc
  5737. * src/option_processing.cc
  5738. * src/prefs.cc
  5739. * src/prefs.h
  5740. * src/usage_text.h
  5741. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5742. Updated DESCRIPTION of man page.
  5743. * doc/aria2c.1
  5744. * doc/aria2c.1.html
  5745. * doc/aria2c.1.txt
  5746. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5747. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  5748. Don't define `struct addrinfo' when __sun is defined.
  5749. * src/getaddrinfo.h
  5750. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5751. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  5752. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  5753. second argument is of type `struct _stati64'. Otherwise it is defined as
  5754. `struct stat'.
  5755. * src/AbstractDiskWriter.cc
  5756. * src/File.cc
  5757. * src/File.h
  5758. * src/a2io.h
  5759. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5760. Fixed the compile error in hurd-i386
  5761. See the original bug report:
  5762. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  5763. * src/a2io.h
  5764. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5765. Code cleanup.
  5766. * src/PeerAbstractCommand.cc
  5767. * src/PeerAbstractCommand.h
  5768. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5769. Removed TransferEncoding.
  5770. * src/DownloadCommand.cc
  5771. * src/DownloadCommand.h
  5772. * src/HttpResponseCommand.cc
  5773. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5774. Updated po files.
  5775. * po/aria2c.pot
  5776. * po/*.po
  5777. * po/*.gmo
  5778. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5779. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  5780. * src/A2STR.cc
  5781. * src/A2STR.h
  5782. * src/ChunkedDecoder.cc
  5783. * src/ChunkedDecoder.h
  5784. * src/ChunkedEncoding.cc: Removed
  5785. * src/ChunkedEncoding.h: Removed
  5786. * src/DownloadCommand.cc
  5787. * src/DownloadCommand.h
  5788. * src/HttpDownloadCommand.cc
  5789. * src/HttpResponse.cc
  5790. * src/HttpResponse.h
  5791. * src/HttpResponseCommand.cc
  5792. * src/HttpSkipResponseCommand.cc
  5793. * src/HttpSkipResponseCommand.h
  5794. * src/Makefile.am
  5795. * src/TransferEncoding.h: Removed
  5796. * test/ChunkedDecoderTest.cc
  5797. * test/ChunkedEncodingTest.cc: Removed
  5798. * test/HttpResponseTest.cc
  5799. * test/Makefile.am
  5800. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5801. Use append instead of insert.
  5802. * src/GZipDecoder.cc
  5803. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5804. Updated doc
  5805. * src/Decoder.h
  5806. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5807. Updated usage text for -s option.
  5808. * src/usage_text.h
  5809. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5810. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  5811. * src/Request.cc
  5812. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5813. Cleaned up configure.ac.
  5814. * configure.ac
  5815. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5816. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  5817. AC_ARG_ENABLE.
  5818. * configure.ac
  5819. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5820. Added gzip, deflate decoding support in HTTP using libz. If compiled
  5821. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  5822. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  5823. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  5824. fly and writes decoded data to a local disk.
  5825. * README
  5826. * README.html
  5827. * configure.ac
  5828. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  5829. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  5830. * m4/libz.m4
  5831. * src/Decoder.h
  5832. * src/DownloadCommand.cc
  5833. * src/DownloadCommand.h
  5834. * src/Exception.h
  5835. * src/GZipDecoder.cc
  5836. * src/GZipDecoder.h
  5837. * src/HttpHeader.cc
  5838. * src/HttpHeader.h
  5839. * src/HttpRequest.cc
  5840. * src/HttpRequest.h
  5841. * src/HttpResponse.cc
  5842. * src/HttpResponse.h
  5843. * src/HttpResponseCommand.cc
  5844. * src/Makefile.am
  5845. * test/GZipDecoderTest.cc
  5846. * test/HttpRequestTest.cc
  5847. * test/HttpResponseTest.cc
  5848. * test/Makefile.am
  5849. * test/Makefile.in
  5850. * test/gzip_decode_test.gz
  5851. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5852. Clarified usage of -j option.
  5853. * src/usage_text.h
  5854. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5855. Disabled getting size from the response of RETR.
  5856. If SIZE command failed, then disable resuming and segmented downloading.
  5857. * src/FtpConnection.cc
  5858. * src/FtpConnection.h
  5859. * src/FtpNegotiationCommand.cc
  5860. * src/FtpNegotiationCommand.h
  5861. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5862. Use digits to find first byte of file size, which makes the intention
  5863. of the code clearer.
  5864. * src/FtpConnection.cc
  5865. Don't call validateTotalLength() when size is 0.
  5866. * src/FtpNegotiationCommand.cc
  5867. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5868. Updated po files.
  5869. * po/aria2c.pot
  5870. * po/*.gmo
  5871. * po/*.po
  5872. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5873. Clarified usage text for --split option.
  5874. * src/usage_text.h
  5875. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5876. Bump up version number to 0.15.0dev. "dev" means "development"
  5877. version, which means I started the development of the next release!
  5878. * src/configure.ac
  5879. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5880. If FTP server returns negative response with REST raw command and
  5881. requested range is not 0, throw exception. If requested range is 0,
  5882. continue download a file from 0 byte.
  5883. * src/FtpNegotiationCommand.cc
  5884. * src/FtpNegotiationCommand.h
  5885. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5886. Supported FTP server which don't recognize SIZE raw command.
  5887. If SIZE raw command is failed, aria2 will try to get file size
  5888. from the response of RETR raw command. If both attempts are failed,
  5889. then resuming and segmented downloading are disabled.
  5890. * src/FtpConnection.cc
  5891. * src/FtpConnection.h
  5892. * src/FtpNegotiationCommand.cc
  5893. * src/FtpNegotiationCommand.h
  5894. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5895. * Release 0.14.0+1
  5896. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5897. Bump up version number to 0.14.0+1
  5898. * src/configure.ac
  5899. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5900. Fixed the code that refers static member variable from non-static
  5901. context.
  5902. * src/DefaultPeerStorage.cc
  5903. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5904. * Release 0.14.0
  5905. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5906. Added build test script
  5907. * build_test.sh
  5908. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5909. Updated ja.po
  5910. * src/ja.po
  5911. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5912. Bump up version number to 0.14.0
  5913. * src/configure.ac
  5914. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5915. Updated ja.po and fr.po. Great thanks for french translators and
  5916. Sebastien WILLEMIJNS.
  5917. * po/fr.po
  5918. * po/ja.po
  5919. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5920. Added configure option to enable/disable epoll support.
  5921. * configure.ac
  5922. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5923. Updated man page.
  5924. * doc/aria2c.1.txt
  5925. * doc/aria2c.1
  5926. * doc/aria2c.1.html
  5927. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5928. Added missing default value '5' to the usage of --split option.
  5929. * src/HelpItemFactory.cc
  5930. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5931. Filled up pieces based on the number of missing blocks, rather than
  5932. simplay the number of piece * block length.
  5933. * src/BtRequestFactory.h
  5934. * src/DefaultBtInteractive.cc
  5935. * src/DefaultBtInteractive.h
  5936. * src/DefaultBtRequestFactory.cc
  5937. * src/DefaultBtRequestFactory.h
  5938. * src/Piece.cc
  5939. * src/Piece.h
  5940. * test/BitfieldManTest.cc
  5941. * test/DefaultBtRequestFactoryTest.cc
  5942. * test/MockBtRequestFactory.h
  5943. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5944. Made _epEvents a member variable.
  5945. * src/DownloadEngine.cc
  5946. * src/DownloadEngine.h
  5947. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5948. Cancel download if http redirect is bounded more than 20 times.
  5949. * src/AbstractCommand.cc
  5950. * src/HttpSkipResponseCommand.cc
  5951. * src/Request.cc
  5952. * src/Request.h
  5953. * test/RequestTest.cc
  5954. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5955. Fixed unhandled exception(removed keyword `new').
  5956. * src/SocketCore.cc (initEPOLL)
  5957. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5958. Removed visit(const MetaEntry*)
  5959. * src/MetaEntryVisitor.h:
  5960. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  5961. and made them virtual.
  5962. * src/BencodeVisitor.h
  5963. * src/BencodeVisitor.cc
  5964. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5965. Updated po files.
  5966. * po/aria2c.pot
  5967. * po/*.po
  5968. * po/*.gmo
  5969. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5970. Moved the call setWriteCheckSocket inside the previous clause to reduce
  5971. the number of socket to watch out.
  5972. * src/PeerInteractionCommand.cc
  5973. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5974. When there is not enough space in disk when writing a chunk of data,
  5975. aria2 now prints the message to the console to warn user and aborts
  5976. its download. Not all downloads are canceled because some downloads
  5977. may use another disk or partition. BUG#1640332
  5978. * src/AbstractDiskWriter.cc
  5979. * src/PeerAbstractCommand.cc
  5980. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  5981. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  5982. setHaltRequested(true) to cancel download.
  5983. * src/PeerInteractionCommand.h
  5984. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5985. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  5986. socket from int to sock_t as sockets are unsigned in Windows.
  5987. For AsyncNameResolver, DownloadEngine, I did additional modification
  5988. for the portion of the code changed according to epoll support.
  5989. I defined sock_t in a2netcompat.h to use sock_t without including
  5990. SocketCore.h.
  5991. * src/AsyncNameResolver.cc
  5992. * src/AsyncNameResolver.h
  5993. * src/DownloadEngine.cc
  5994. * src/DownloadEngine.h
  5995. * src/SocketCore.cc
  5996. * src/SocketCore.h
  5997. * src/a2netcompat.h
  5998. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5999. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  6000. changes in the patch were applied.
  6001. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  6002. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  6003. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  6004. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6005. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  6006. a2io.h and common.h were modified.
  6007. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  6008. MinGW.
  6009. * src/common.h: Changed off_t to 64 bit in MinGW.
  6010. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6011. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6012. only a2netcompat.h is modified.
  6013. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  6014. directives.
  6015. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6016. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6017. only gai_strerror.h is modified.
  6018. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  6019. winsock errors in MinGW.
  6020. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6021. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  6022. follow sources are applied.
  6023. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  6024. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  6025. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  6026. I included locale.h from Platform.cc.
  6027. * src/main.cc: Moved common setup/teardown code to Platform class.
  6028. * test/AllTest.cc: Use Platform class.
  6029. Set locale to C in AllTest.cc to prevent the messages to be localized.
  6030. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6031. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  6032. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  6033. * test/HttpRequestTest.cc: Casted to off_t where it should.
  6034. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6035. Applied Ross's aria2-0.13.2+1-mingw.patch and
  6036. aria2-0.13.2+1-mingw-2.patch.
  6037. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  6038. systems which don't have termious.h. I moved the directive inside of
  6039. if(isTTY) { ... clause so that line is wiped out without termious.h.
  6040. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  6041. anyway.
  6042. * src/asctime_r.h
  6043. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  6044. I added 2nd argument to the prototype declaration.
  6045. * src/StringFormat.cc: Get rid of vasprintf.
  6046. * src/getaddrinfo.h: Fixed constants.
  6047. * configure.ac: Added the check for asctime_r function.
  6048. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  6049. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6050. Added writable test for Socket when the sending message is in progress.
  6051. Usually the sending message is piece message. Without wriable check,
  6052. upload latency is dropped to more than 1sec.
  6053. * src/PeerInteractionCommand.cc
  6054. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6055. Create only requested files and files which shares a piece with
  6056. requested file in multi-torrent downloads. Directory structures are
  6057. also created in the same rule.
  6058. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  6059. DiskWriterEntry as in the previous implementation.
  6060. * src/MultiDiskWriter.cc
  6061. * src/MultiFileAllocationIterator.cc
  6062. * src/MultiFileAllocationIterator.h
  6063. * test/MultiFileAllocationIteratorTest.cc
  6064. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6065. Commented out -lprofiler
  6066. * src/Makefile.am
  6067. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6068. Bump up version number to 0.14.0b.
  6069. * src/configure.ac
  6070. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6071. Actively establish connection to peers in seeding, when peer cache
  6072. is not full and max upload speed limit is not reached.
  6073. * src/ActivePeerConnectionCommand.cc
  6074. * src/ActivePeerConnectionCommand.h
  6075. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6076. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  6077. to make room more fleshy, recently found peers.
  6078. Peer::_badConditionStartTime is not used anymore. Consider to remove
  6079. it.
  6080. * src/DefaultPeerStorage.cc
  6081. * test/DefaultPeerStorageTest.cc
  6082. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6083. Returns cached data only when the previous receiveHandshake() is called
  6084. with peek = true.
  6085. * src/PeerConnection.cc (receiveHandshake)
  6086. * src/PeerConnection.h (receiveHandshake)
  6087. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6088. Changed default value of -s option from 1 to 5.
  6089. Also max value of -s option is changed from 5 to 16.
  6090. * src/HelpItemFactory.cc
  6091. * src/OptionHandlerFactory.cc
  6092. * src/option_processing.cc
  6093. * src/usage_text.h
  6094. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6095. Changed -s options behavior. Now it means the number of connections
  6096. made simultaneously in each http/ftp download.
  6097. If 1 URL is specified, the behavior is the same with old implementation.
  6098. If -s N is given and more than N URLs are specified, first N URLs are
  6099. used and remaining URLs are used for backup. If less than N URLs are
  6100. specified, some of URLs are used more than once so that totally N
  6101. connections are made simultaneously.
  6102. * src/main.cc
  6103. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6104. Included missing iosfwd or ostream header.
  6105. * src/RequestGroupMan.cc
  6106. * src/TaggedItem.cc
  6107. * src/TaggedItem.h
  6108. * src/Util.cc
  6109. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6110. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  6111. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  6112. * src/HttpConnection.cc: Included missing sstream.
  6113. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6114. Added --bt-max-open-files option.
  6115. * src/DefaultPieceStorage.cc
  6116. * src/HelpItemFactory.cc
  6117. * src/MultiDiskAdaptor.cc
  6118. * src/MultiDiskAdaptor.h
  6119. * src/OptionHandlerFactory.cc
  6120. * src/option_processing.cc
  6121. * src/prefs.cc
  6122. * src/prefs.h
  6123. * src/usage_text.h
  6124. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6125. Fixed the bug that aria2 aborts when a path to a directory is given
  6126. in command-line.
  6127. * src/ProtocolDetector.cc
  6128. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6129. Limited the number files opened in each BitTorrent download. The default
  6130. value is 100. The option to change this value will be added.
  6131. * src/MultiDiskAdaptor.cc
  6132. * src/MultiDiskAdaptor.h
  6133. * src/MultiFileAllocationIterator.cc
  6134. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6135. Fixed the bug that HTTP downloads don't start with old libraries.
  6136. * src/HttpHeaderProcessor.cc
  6137. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6138. Use empty() instead of size() > 0.
  6139. * src/HttpConnection.cc
  6140. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6141. Drop connection if the incoming peer ID is the same with localhost's
  6142. one. The previous implementation drops connection when incoming peer's
  6143. IP address is the same with localhost's one.
  6144. * src/PeerListenCommand.cc
  6145. * src/DefaultBtInteractive.cc
  6146. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6147. Returns cached data without checking whether socket is readable
  6148. if the cache is available.
  6149. * src/PeerConnection.cc (receiveHandshake)
  6150. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6151. Included stdint.h
  6152. * src/common.h
  6153. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6154. Removed duplicate HAVE_GETTIMEOFDAY
  6155. * src/Makefile.am
  6156. * src/Makefile.in
  6157. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6158. Use interval as a minInterval when minInterval is not supplied.
  6159. * src/DefaultBtAnnounce.cc
  6160. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6161. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  6162. attempt is failed, then 2nd attempt get kicked out more quickly.
  6163. And it is now static const member of DefaultBtAnnounce.
  6164. * src/DefaultBtAnnounce.h
  6165. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6166. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  6167. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  6168. * src/ActivePeerConnectionCommand.cc
  6169. * src/BtConstants.h
  6170. * src/BtRuntime.h
  6171. * src/DHTGetPeersCommand.cc
  6172. * src/DefaultBtAnnounce.cc
  6173. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  6174. BtRuntime::MAX_PEERS.
  6175. * src/DefaultPeerStorage.h
  6176. * src/InitiatorMSEHandshakeCommand.cc
  6177. * src/PeerInitiateConnectionCommand.cc
  6178. * src/PeerInteractionCommand.cc
  6179. * src/PeerReceiveHandshakeCommand.cc
  6180. * src/TrackerWatcherCommand.cc
  6181. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6182. Always Connect to _numNewConnection
  6183. * src/ActivePeerConnectionCommand.cc
  6184. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6185. Made `begin' unsigned int.
  6186. * src/GrowSegment.h
  6187. * src/Piece.cc
  6188. * src/Piece.h
  6189. * src/PiecedSegment.cc
  6190. * src/PiecedSegment.h
  6191. * src/Segment.h
  6192. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6193. Calculate piece hash when data is arrived if the data is arrived in
  6194. order. This removes additional read operation for hash calculation.
  6195. If the data is arrived in out of order, the hash is calucated when the
  6196. piece is completed. This is the same behavior as the old implementation.
  6197. * src/BtPieceMessage.cc
  6198. * src/DefaultBtProgressInfoFile.cc
  6199. * src/DefaultPieceStorage.cc
  6200. * src/DownloadCommand.cc
  6201. * src/DownloadCommand.h
  6202. * src/DownloadEngine.cc
  6203. * src/GrowSegment.cc
  6204. * src/GrowSegment.h
  6205. * src/Piece.cc
  6206. * src/Piece.h
  6207. * src/PiecedSegment.cc
  6208. * src/PiecedSegment.h
  6209. * src/Segment.h
  6210. * test/PieceTest.cc
  6211. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6212. Try to keep the ordering of outgoing piece message.
  6213. * src/DefaultBtMessageDispatcher.cc
  6214. (DefaultBtMessageDispatcher::sendMessages)
  6215. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6216. Fixed busy loop when error/hup epoll events occur.
  6217. * src/AbstractCommand.cc
  6218. * src/PeerAbstractCommand.cc
  6219. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6220. Added --bt-request-peer-speed-limit option, which was a constant
  6221. SLOW_SPEED_THRESHOLD.
  6222. * src/ActivePeerConnectionCommand.cc
  6223. * src/ActivePeerConnectionCommand.h
  6224. * src/BtConstants.h
  6225. * src/HelpItemFactory.cc
  6226. * src/OptionHandlerFactory.cc
  6227. * src/PeerReceiveHandshakeCommand.cc
  6228. * src/option_processing.cc
  6229. * src/prefs.cc
  6230. * src/prefs.h
  6231. * src/usage_text.h
  6232. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6233. Removed repeated call of getTopDirPath(). Instead, call it once and
  6234. cache the result.
  6235. * src/MultiDiskAdaptor.cc
  6236. * src/MultiDiskAdaptor.h
  6237. (mkdir, openFile, initAndOpenFile, openExistingFile)
  6238. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6239. Fixed compile error on debian etch.
  6240. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  6241. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  6242. it is undefined.
  6243. * src/Util.cc (ULLONG_MAX)
  6244. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6245. Added epoll support. Use epoll if it is available. If not, use select.
  6246. When async dns is enabled in compile time, epoll support is enabled
  6247. only when aria2 is built with c-ares. This condition statement is
  6248. defined in a2io.h.
  6249. Currently aria2 supports both c-ares and ares, but ares is maintained
  6250. for quite a while and debian already has c-ares package, ares support
  6251. will be dropped in the future version.
  6252. * configure.ac
  6253. * src/AbstractCommand.cc
  6254. * src/AsyncNameResolver.cc
  6255. * src/AsyncNameResolver.h
  6256. * src/Command.cc
  6257. * src/Command.h
  6258. * src/DownloadEngine.cc
  6259. * src/DownloadEngine.h
  6260. * src/PeerAbstractCommand.cc
  6261. * src/SocketCore.cc
  6262. * src/SocketCore.h
  6263. * src/a2io.h
  6264. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6265. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  6266. directive.
  6267. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6268. Do not do write operation to /dev/null file.
  6269. * src/LogFactory.cc
  6270. * src/SimpleLogger.cc
  6271. Replaced vasprintf with vsnprintf
  6272. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6273. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6274. * src/BtRequestMessage.cc
  6275. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  6276. for segmentation fault caused by previous commit.
  6277. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6278. Reduced the usage of gettimeofday().
  6279. * src/DefaultBtMessageDispatcher.cc
  6280. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  6281. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6282. * src/RequestSlot.cc
  6283. * src/RequestSlot.h
  6284. (RequestSlot::isTimeout)
  6285. Made RequestSlot have a reference to Piece object to avoid find
  6286. Piece repeatedly.
  6287. * src/DefaultBtMessageDispatcher.cc
  6288. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6289. * src/RequestSlot.cc
  6290. * src/RequestSlot.h
  6291. (RequestSlot::getPiece)
  6292. * test/DefaultBtMessageDispatcherTest.cc
  6293. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6294. * src/TimeA2.cc
  6295. * src/TimeA2.h
  6296. (Time::difference): New function.
  6297. (Time::elapsed): Done optimization.
  6298. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6299. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  6300. directive.
  6301. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6302. * src/option_processing.cc: Added missing `defined' keyword to #if
  6303. directive.
  6304. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6305. Bump up version number to 0.13.2+1
  6306. * src/configure.ac
  6307. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6308. Refactored broken outstanding piece handling.
  6309. * src/DefaultPieceStorage.cc
  6310. * src/DefaultPieceStorage.h
  6311. * src/Piece.cc
  6312. * src/Piece.h
  6313. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6314. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  6315. name collision of static variable and predefined macro.
  6316. * src/BtContext.cc
  6317. * src/BtContext.h
  6318. * src/CookieBoxFactory.cc
  6319. * src/CookieBoxFactory.h
  6320. * src/CookieParser.cc
  6321. * src/CookieParser.h
  6322. * src/DefaultBtContext.cc
  6323. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6324. * src/RequestGroup.cc
  6325. (RequestGroup::createInitialCommand): Use empty() instead of size().
  6326. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6327. * Release 0.13.2
  6328. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6329. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  6330. * po/fr.po
  6331. * po/ja.po
  6332. * po/aria2c.pot
  6333. * po/*.po
  6334. * po/*.gmo
  6335. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6336. Bump up version number to 0.13.2
  6337. * src/configure.ac
  6338. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6339. Refactord.
  6340. * src/RequestGroupMan.cc
  6341. (removeStoppedGroup)
  6342. (fillRequestGroupFromReserver)
  6343. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6344. Fixed compile error on Ubuntu.
  6345. * src/BtPieceMessage.cc
  6346. * src/MessageDigestHelper.cc
  6347. * src/Util.cc
  6348. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6349. Fixed compile error when configured with --disable-bittorrent
  6350. * test/DownloadHandlerFactoryTest.cc
  6351. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6352. Done make update-po
  6353. * po/aria2c.pot
  6354. * po/*.po
  6355. * po/*.gmo
  6356. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6357. Bump up version number to 0.13.2rc.
  6358. * src/configure.ac
  6359. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6360. Made option name bold. Updated SYNOPSIS to make it more readable.
  6361. * doc/aria2c.1.txt
  6362. * doc/aria2c.1
  6363. * doc/aria2c.1.html
  6364. * src/version_usage.cc
  6365. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6366. Refactored. Use std::string instead of size and char*.
  6367. * Data.cc
  6368. * Data.h
  6369. * test/Data.cc
  6370. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6371. Added trimSelf(). Rewritten trim() to use trimSelf().
  6372. * Util.cc
  6373. * Util.h
  6374. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6375. * src/ChunkChecksum.h (getChecksum): Return const reference.
  6376. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6377. Fixed compile error when configured with --disable-metalink.
  6378. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  6379. * test/FeatureConfigTest.cc
  6380. * test/DownloadHandlerFactoryTest.cc
  6381. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6382. Fixed compile error when configured with --without-gnutls
  6383. --without-openssl
  6384. * src/main.cc
  6385. * test/DefaultBtProgressInfoFileTest.cc
  6386. * test/SegmentManTest.cc
  6387. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6388. Fixed compile error with OpenSSL.
  6389. * src/IteratableChunkChecksumValidator.cc
  6390. * src/LibsslDHKeyExchange.h
  6391. * src/MessageDigestHelper.cc
  6392. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6393. Revert the default value of --max-concurrent-downloads to 5.
  6394. Revert the default value of --metalink-servers to 5.
  6395. Man pages was also updated.
  6396. * src/option_processing.cc
  6397. * doc/aria2c.1.txt
  6398. * doc/aria2c.1.html
  6399. * doc/aria2c.1
  6400. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6401. Returns const reference:
  6402. DownloadContext::getPieceHash, DownloadContext::getName,
  6403. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  6404. BtContext::getInfoHashAsString,
  6405. * src/BtContext.h
  6406. * src/DefaultBtContext.cc
  6407. * src/DefaultBtContext.h
  6408. * src/DownloadContext.h
  6409. * src/SingleFileDownloadContext.h
  6410. * test/MockBtContext.h
  6411. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6412. * src/RequestGroup.h (getDir): Removed.
  6413. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6414. Returns const reference. The internal urlencode function was optimized
  6415. a little bit.
  6416. * src/Request.cc
  6417. * src/Request.h
  6418. * src/HttpRequest.cc
  6419. * src/HttpRequest.h
  6420. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6421. Defined option name and possible values as std::string to reduce
  6422. temporary string object creation in runtime.
  6423. * src/HelpItemFactory.cc
  6424. * src/LogFactory.cc
  6425. * src/Option.cc
  6426. * src/OptionHandlerFactory.cc
  6427. * src/option_processing.cc
  6428. * src/prefs.cc
  6429. * src/prefs.h
  6430. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6431. Return const reference.
  6432. * src/DownloadHandlerConstants.cc
  6433. * src/DownloadHandlerConstants.h
  6434. (getMetalinkExtensions)
  6435. (getMetalinkContentTypes)
  6436. (getBtExtensions)
  6437. (getBtContentTypes)
  6438. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6439. * src/HttpHeader.cc (get): Rewritten.
  6440. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6441. Make HttpHeader::getFirst(...) return const reference.
  6442. * src/HttpHeader.cc
  6443. * src/HttpHeader.h
  6444. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6445. Use Option::getAsBool(...) instead of Option::get(...) and compare
  6446. it with V_TRUE.
  6447. * src/DefaultPieceStorage.cc
  6448. * src/DownloadCommand.cc
  6449. * src/FtpNegotiationCommand.cc
  6450. * src/HttpRequest.cc
  6451. * src/InitiateConnectionCommand.cc
  6452. * src/RequestGroup.cc
  6453. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6454. Made Option::get(...) return const reference of std::string.
  6455. * src/Option.cc
  6456. * src/Option.h
  6457. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6458. Replaced std:copy with insert.
  6459. * src/DefaultBtMessageDispatcher.cc
  6460. * src/DefaultPieceStorage.cc
  6461. * src/DownloadEngineFactory.cc
  6462. * src/RequestGroup.cc
  6463. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6464. Included SocketCore.h to fix compiler warning.
  6465. * src/InitiateConnectionCommand.cc
  6466. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6467. Put piece selection strategy algorithm to RarestPieceSelector class,
  6468. Added a switch to choose whether randomized selection so that unit
  6469. tests emit same results in, possibly, win32.
  6470. * src/DefaultPieceStorage.cc
  6471. * src/DefaultPieceStorage.h
  6472. * src/RarestPieceSelector.cc
  6473. * src/RarestPieceSelector.h
  6474. * test/DefaultPieceStorageTest.cc
  6475. * test/RarestPieceSelectorTest.cc
  6476. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6477. Don't pool connection if HTTP proxy is enabled.
  6478. * src/FtpFinishDownloadCommand.cc
  6479. * src/FtpNegotiationCommand.cc
  6480. * src/HttpSkipResponseCommand.cc
  6481. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6482. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  6483. * src/AbstractCommand.cc
  6484. * src/AbstractCommand.h
  6485. * src/ActivePeerConnectionCommand.cc
  6486. * src/FtpInitiateConnectionCommand.cc
  6487. * src/HttpInitiateConnectionCommand.cc
  6488. * src/InitiateConnectionCommandFactory.cc
  6489. * src/PeerAbstractCommand.cc
  6490. * src/PeerAbstractCommand.h
  6491. * src/PeerInitiateConnectionCommand.cc
  6492. * src/TrackerWatcherCommand.cc
  6493. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6494. Sort RequestSlot in ascending order and manipulate them using
  6495. lower_bound.
  6496. * src/DefaultBtMessageDispatcher.cc
  6497. * src/DefaultBtMessageDispatcher.h
  6498. (getMessageQueue): Added const qualifier.
  6499. (getRequestSlots): Added const qualifier.
  6500. (sendMessages): Use empty() instead of size().
  6501. (doCancelSendingPieceAction): Use HandleEvent object.
  6502. (doAbortOutstandingRequestAction): Rewritten.
  6503. (doChokedAction): Rewritten.
  6504. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  6505. (isOutstandingRequest): Rewritten.
  6506. (getOutstandingRequest): Rewritten.
  6507. (removeOutstandingRequest): Rewritten.
  6508. (addOutstandingRequest): Rewritten.
  6509. * src/RequestSlot.cc
  6510. * src/RequestSlot.h
  6511. (operator=): Rewritten.
  6512. (operator!=): New function.
  6513. (operator<): New function.
  6514. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6515. * src/DefaultBtRequestFactory.cc
  6516. (doChokedAction): Rewritten.
  6517. (removeCompletedPiece): Rewritten.
  6518. (removeTargetPiece): Rewritten.
  6519. (createRequestMessages): Added the debug log.
  6520. (createRequestMessagesOnEndGame: Added the debug log.
  6521. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6522. Added the debug log message.
  6523. * src/BtPieceMessage.cc (doReceivedAction)
  6524. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6525. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  6526. used lower_bound to process them rather than linear search.
  6527. * src/DHTPeerAnnounceStorage.cc
  6528. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6529. Call subtractPieceStats from ~PeerInteractionCommand only when the
  6530. peer has at least one completed piece.
  6531. * src/Peer.cc
  6532. * src/Peer.h
  6533. * src/PeerInteractionCommand.cc
  6534. * src/PeerSessionResource.cc
  6535. * src/PeerSessionResource.h
  6536. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6537. Removed unnecessary sorting
  6538. * src/DefaultPieceStorage (DefaultPieceStorage)
  6539. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6540. Rewritten the portion of the code that mangaes allowed fast indexes.
  6541. * src/PeerSessionResource.cc
  6542. * src/PeerSessionResource.h
  6543. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6544. Removed the invalid string including '\r' from ru.po and
  6545. did make update-po.
  6546. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6547. Added --log-level and --summary-interval to man page.
  6548. * doc/aria2c.1.txt
  6549. * doc/aria2c.1.html
  6550. * doc/aria2c.1
  6551. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6552. Added --log-level option to specify log level. Log messages under
  6553. the specified level are not output. Default value is `debug'.
  6554. * src/HelpItemFactory.cc
  6555. * src/LogFactory.cc
  6556. * src/LogFactory.h
  6557. * src/Logger.h
  6558. * src/OptionHandlerFactory.cc
  6559. * src/SimpleLogger.cc
  6560. * src/SimpleLogger.h
  6561. * src/main.cc
  6562. * src/option_processing.cc
  6563. * src/prefs.h
  6564. * src/usage_text.h
  6565. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6566. Print download progress summary of all parallel downloads in specified
  6567. interval, default 60 secs. While aria2 could download several files
  6568. in parallel (see -j option), it displayed just first download progress,
  6569. and the other downloads are hidden from the users. This new feature
  6570. prints all downloads currently in-progress to the console so that you
  6571. can check the status of all downloads. The interval can be adjusted
  6572. by --summary-interval option.
  6573. The progress readout is now cut so that all fits in the one line of
  6574. console.
  6575. * src/ConsoleStatCalc.cc
  6576. * src/ConsoleStatCalc.h
  6577. * src/HelpItemFactory.cc
  6578. * src/OptionHandlerFactory.cc
  6579. * src/RequestGroupMan.cc
  6580. * src/RequestGroupMan.h
  6581. * src/main.cc
  6582. * src/option_processing.cc
  6583. * src/prefs.h
  6584. * src/usage_text.h
  6585. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6586. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  6587. * src/DownloadEngine.cc (DownloadEngine)
  6588. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6589. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  6590. defined.
  6591. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  6592. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6593. Use erase+lower_bound+insert instead of sort.
  6594. * src/DefaultPieceStorage.cc (addPieceStats)
  6595. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6596. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  6597. * src/A2STR.cc
  6598. * src/A2STR.h
  6599. * src/OptionParser.cc (parse)
  6600. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6601. Defined fake filename `[tracker.announce]' as static const std::string.
  6602. * src/TrackerWatcherCommand.cc (createRequestGroup)
  6603. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6604. Defined default filename `index.html' as static const std::string
  6605. * src/SingleFileDownloadContext.cc
  6606. * src/SingleFileDownloadContext.h
  6607. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6608. Defined "[MEMORY]" as static const std::string.
  6609. * src/MemoryBufferPreDownloadHandler.cc (execute)
  6610. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6611. Defined control file's version number as static const std::string.
  6612. * src/DefaultBtProgressInfoFile.cc
  6613. * src/DefaultBtProgressInfoFile.h
  6614. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6615. Use Request::METHOD_GET
  6616. * src/RequestGroup.cc (createNextCommandWithAdj)
  6617. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6618. Defined "OK", "ERR", "INPR" as static const std::string
  6619. * src/RequestGroupMan.cc (showDownloadResults)
  6620. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6621. Defined default client used in extended handshake as static const
  6622. std::string
  6623. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  6624. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6625. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  6626. * src/HttpConnection.cc (eraseConfidentialInfo)
  6627. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6628. Defined default ftp user and password as static const std::string
  6629. * src/AuthConfigFactory.cc
  6630. * src/AuthConfigFactory.h
  6631. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6632. Defined strings used in netrc as static const std::string
  6633. * src/Netrc.cc
  6634. * src/Netrc.h
  6635. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6636. Defined HTTP status as static const std::string
  6637. * src/AbstractProxyResponseCommand.cc
  6638. * src/HttpHeader.cc
  6639. * src/HttpHeader.h
  6640. * src/HttpResponse.cc
  6641. * src/HttpResponseCommand.cc
  6642. * src/HttpSkipResponseCommand.cc
  6643. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6644. Defined "\r\n", "A", "I" as static const std::string
  6645. * src/A2STR.cc
  6646. * src/A2STR.h
  6647. * src/FtpConnection.cc
  6648. * src/FtpConnection.h
  6649. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6650. Added COLON_C(".") and used it in Request::parseUrl()
  6651. * src/A2STR.cc
  6652. * src/A2STR.h
  6653. * src/Request.cc (parseUrl)
  6654. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6655. Changed the type of padName from `const std::string&' to `const char*'.
  6656. * src/MSEHandshake.cc (verifyPadLength)
  6657. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6658. Defined "sha1" as static const std::string.
  6659. * src/MetalinkParserController.cc
  6660. * src/MetalinkParserController.h
  6661. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6662. Defined message digest algorithm name as static const std::string
  6663. * src/DHTTokenTracker.cc
  6664. * src/DHTUtil.cc
  6665. * src/DefaultBtContext.cc
  6666. * src/MSEHandshake.cc
  6667. * src/MessageDigestHelper.cc
  6668. * src/Peer.cc
  6669. * src/messageDigest.cc
  6670. * src/messageDigest.h
  6671. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6672. Made string literals used in SAX parser static const std::string.
  6673. * src/FileMetalinkParserState.cc
  6674. * src/FileMetalinkParserState.h
  6675. * src/FilesMetalinkParserState.cc
  6676. * src/FilesMetalinkParserState.h
  6677. * src/InitialMetalinkParserState.cc
  6678. * src/InitialMetalinkParserState.h
  6679. * src/MetalinkMetalinkParserState.cc
  6680. * src/MetalinkMetalinkParserState.h
  6681. * src/PiecesMetalinkParserState.cc
  6682. * src/PiecesMetalinkParserState.h
  6683. * src/ResourcesMetalinkParserState.cc
  6684. * src/ResourcesMetalinkParserState.h
  6685. * src/VerificationMetalinkParserState.cc
  6686. * src/VerificationMetalinkParserState.h
  6687. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6688. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  6689. * src/A2STR.cc
  6690. * src/A2STR.h
  6691. * src/File.cc
  6692. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6693. Defined static const std::string IP("ip"), PORT("port") and use them
  6694. instead of string literals.
  6695. * src/DefaultPeerListProcessor.cc
  6696. * src/DefaultPeerListProcessor.h
  6697. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6698. Made string literals for torrent file processing static const
  6699. std::string.
  6700. * src/BtContext.cc
  6701. * src/BtContext.h
  6702. * src/DefaultBtContext.cc
  6703. * src/DefaultBtContext.h
  6704. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6705. Made string literal for tracker response static const std::string
  6706. * src/BtAnnounce.cc
  6707. * src/BtAnnounce.h
  6708. * src/DefaultBtAnnounce.cc
  6709. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6710. Use DHTMessage::T instead of "t".
  6711. * src/DHTMessageTracker.cc (messageArrived)
  6712. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6713. Made keyName static const. Made trimmed charset static const
  6714. std::string.
  6715. * src/Util.cc (getContentDispositionFilename)
  6716. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6717. Made USER_AGENT const. Made "/" static const std::string.
  6718. * src/A2STR.cc
  6719. * src/A2STR.h
  6720. * src/HttpRequest.cc
  6721. * src/HttpRequest.h
  6722. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6723. Made string listeral to static const std::string:
  6724. "Content-Range", "Content-Length"
  6725. * src/HttpHeader.cc
  6726. * src/HttpHeader.h
  6727. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6728. Made string listeral to static const std::string.
  6729. * src/HttpConnection.cc
  6730. * src/HttpHeader.cc
  6731. * src/HttpHeader.h
  6732. * src/HttpResponse.cc
  6733. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6734. Made string listeral to static const std::string.
  6735. * src/A2STR.cc
  6736. * src/A2STR.h
  6737. * src/SimpleLogger.cc
  6738. * src/SimpleLogger.h
  6739. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6740. Made string literal to static const std::string.
  6741. Rewritten CookieParser::setField.
  6742. * src/A2STR.cc
  6743. * src/A2STR.h
  6744. * src/CookieBoxFactory.cc
  6745. * src/CookieBoxFactory.h
  6746. * src/CookieParser.cc
  6747. * src/CookieParser.h
  6748. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6749. Made string literal to static const std::string
  6750. * src/DHTAbstractMessage.cc
  6751. * src/DHTAnnouncePeerMessage.cc
  6752. * src/DHTAnnouncePeerMessage.h
  6753. * src/DHTAnnouncePeerReplyMessage.cc
  6754. * src/DHTAnnouncePeerReplyMessage.h
  6755. * src/DHTFindNodeMessage.cc
  6756. * src/DHTFindNodeMessage.h
  6757. * src/DHTFindNodeReplyMessage.cc
  6758. * src/DHTFindNodeReplyMessage.h
  6759. * src/DHTGetPeersMessage.cc
  6760. * src/DHTGetPeersMessage.h
  6761. * src/DHTGetPeersReplyMessage.cc
  6762. * src/DHTGetPeersReplyMessage.h
  6763. * src/DHTMessage.cc
  6764. * src/DHTMessage.h
  6765. * src/DHTMessageFactoryImpl.cc
  6766. * src/DHTMessageReceiver.cc
  6767. * src/DHTPingMessage.cc
  6768. * src/DHTPingMessage.h
  6769. * src/DHTPingReplyMessage.cc
  6770. * src/DHTPingReplyMessage.h
  6771. * src/DHTQueryMessage.cc
  6772. * src/DHTQueryMessage.h
  6773. * src/DHTResponseMessage.cc
  6774. * src/DHTResponseMessage.h
  6775. * src/DHTUnknownMessage.cc
  6776. * src/DHTUnknownMessage.h
  6777. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6778. Made string literal to static const std::string
  6779. * src/BtChokeMessage.cc (toString)
  6780. * src/BtHaveAllMessage.cc (toString)
  6781. * src/BtHaveNoneMessage.cc (toString)
  6782. * src/BtInterestedMessage.cc (toString)
  6783. * src/BtNotInterestedMessage.cc (toString)
  6784. * src/BtUnchokeMessage.cc (toString)
  6785. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6786. Replaced "" with static const variable A2STR::NIL.
  6787. Replaced string comparison against "" with std::string::empty().
  6788. Added PROTO_* to Request class and use them as a protocol string
  6789. constant.
  6790. Made "started", "stopped", "completed" static const variable in
  6791. AnnounceList class.
  6792. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6793. Updated translations. Great thanks to translators.
  6794. * po/ca.po
  6795. * po/de.po
  6796. * po/fr.po
  6797. * po/it.po
  6798. * po/ja.po
  6799. * po/ru.po
  6800. * po/zh_CN.po
  6801. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6802. Updated man page; categorized options and fixed typo.
  6803. * doc/aria2c.1.txt
  6804. * doc/aria2c.1.html
  6805. * doc/aria2c.1
  6806. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6807. Removed const ref
  6808. * src/MetalinkEntry.cc (AddProtocolPreference)
  6809. * src/RequestGroup.cc (FindServerHostByHostname)
  6810. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6811. Rewritten Accept-Features handling.
  6812. * src/HttpRequestCommand.cc (createHttpRequest)
  6813. * src/a2functional.h
  6814. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6815. Changed method signature:
  6816. DHTAbstractNodeLookupTask::toEntries
  6817. * src/DHTAbstractNodeLookupTask.cc
  6818. * src/DHTAbstractNodeLookupTask.h
  6819. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6820. Changed method signature:
  6821. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  6822. * src/BtContext.h
  6823. * src/DefaultBtContext.cc
  6824. * src/DefaultBtContext.h
  6825. * src/DefaultBtInteractive.cc
  6826. * test/DefaultBtContextTest.cc
  6827. * test/MockBtContext.h
  6828. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6829. Changed method signature:
  6830. MultiFileAllocationIterator::makeDiskWriterEntries
  6831. * src/MultiFileAllocationIterator.cc
  6832. * src/MultiFileAllocationIterator.h
  6833. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6834. Changed method sinature:
  6835. MetalinkEntry::toFileEntry,
  6836. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  6837. Metalinker::queryEntry
  6838. * src/Metalink2RequestGroup.cc
  6839. * src/MetalinkEntry.cc
  6840. * src/MetalinkEntry.h
  6841. * src/MetalinkHelper.cc
  6842. * src/MetalinkHelper.h
  6843. * src/Metalinker.cc
  6844. * src/Metalinker.h
  6845. * src/main.cc
  6846. * test/MetalinkHelperTest.cc
  6847. * test/MetalinkerTest.cc
  6848. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6849. Changed method sinature:
  6850. RequestGroup::getURIs
  6851. * src/RequestGroup.cc
  6852. * src/RequestGroup.h
  6853. * test/Metalink2RequestGroupTest.cc
  6854. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6855. Changed method signature:
  6856. PeerListProcessor::extractPeer
  6857. * src/CompactPeerListProcessor.cc
  6858. * src/CompactPeerListProcessor.h
  6859. * src/DefaultBtAnnounce.cc
  6860. * src/DefaultPeerListProcessor.cc
  6861. * src/DefaultPeerListProcessor.h
  6862. * src/DelegatingPeerListProcessor.cc
  6863. * src/DelegatingPeerListProcessor.h
  6864. * src/PeerListProcessor.h
  6865. * src/UTPexExtensionMessage.cc
  6866. * test/DefaultPeerListProcessorTest.cc
  6867. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6868. Changed method signature:
  6869. BtRequestFactory::createRequestMessages,
  6870. BtRequestFactory::createRequestMessagesOnEndGame
  6871. * src/BtRequestFactory.h
  6872. * src/DefaultBtInteractive.cc
  6873. * src/DefaultBtRequestFactory.cc
  6874. * src/DefaultBtRequestFactory.h
  6875. * test/DefaultBtRequestFactoryTest.cc
  6876. * test/MockBtRequestFactory.h
  6877. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6878. Changed method signature:
  6879. PieceStorage::getInFlightPieces
  6880. * src/DefaultBtProgressInfoFile.cc
  6881. * src/DefaultPieceStorage.cc
  6882. * src/DefaultPieceStorage.h
  6883. * src/PieceStorage.h
  6884. * src/UnknownLengthPieceStorage.cc
  6885. * src/UnknownLengthPieceStorage.h
  6886. * test/DefaultBtProgressInfoFileTest.cc
  6887. * test/MockPieceStorage.h
  6888. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6889. Changed method signature:
  6890. PostDownloadHandler::getNextRequestGroups
  6891. Metalink2RequestGroup::generate
  6892. RequestGroup::postDownloadProcessing
  6893. * src/BtPostDownloadHandler.cc
  6894. * src/BtPostDownloadHandler.h
  6895. * src/Metalink2RequestGroup.cc
  6896. * src/Metalink2RequestGroup.h
  6897. * src/MetalinkPostDownloadHandler.cc
  6898. * src/MetalinkPostDownloadHandler.h
  6899. * src/PostDownloadHandler.h
  6900. * src/RequestGroup.cc
  6901. * src/RequestGroup.h
  6902. * src/RequestGroupMan.cc
  6903. * src/main.cc
  6904. * test/BtPostDownloadHandlerTest.cc
  6905. * test/Metalink2RequestGroupTest.cc
  6906. * test/MetalinkPostDownloadHandlerTest.cc
  6907. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6908. Rewritten AccRequestGroup
  6909. * src/main.cc
  6910. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6911. Rewritten.
  6912. * src/TaggedItem.cc (toTagString)
  6913. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6914. Rewritten Accept-Features handling.
  6915. * src/HttpRequestCommand.cc (createHttpRequest)
  6916. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6917. Rewritten accept types handling.
  6918. * HttpRequest.cc (createRequest)
  6919. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6920. Rewritten
  6921. * src/FeatureConfig.cc (featureSummary)
  6922. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6923. Changed method signature:
  6924. PeerStorage::getActivePeers
  6925. * src/DHTPeerAnnounceEntry.cc
  6926. * src/DefaultPeerStorage.cc
  6927. * src/DefaultPeerStorage.h
  6928. * src/PeerStorage.h
  6929. * test/DefaultPeerStorageTest.cc
  6930. * test/MockPeerStorage.h
  6931. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6932. Changed method signature:
  6933. DHTPeerAnnounceStorage::getPeers,
  6934. DHTPeerAnnounceEntry::getPeers
  6935. * src/DHTGetPeersMessage.cc
  6936. * src/DHTPeerAnnounceEntry.cc
  6937. * src/DHTPeerAnnounceEntry.h
  6938. * src/DHTPeerAnnounceStorage.cc
  6939. * src/DHTPeerAnnounceStorage.h
  6940. * test/DHTAnnouncePeerMessageTest.cc
  6941. * test/DHTPeerAnnounceEntryTest.cc
  6942. * test/DHTPeerAnnounceStorageTest.cc
  6943. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6944. Changed method signature:
  6945. NameResolver::resolve
  6946. * src/DHTEntryPointNameResolveCommand.cc
  6947. * src/InitiateConnectionCommand.cc
  6948. * src/NameResolver.cc
  6949. * src/NameResolver.h
  6950. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6951. Changed method signature:
  6952. PieceStorage::getAdvertisedPieceIndexes
  6953. * src/DefaultBtInteractive.cc
  6954. * src/DefaultPieceStorage.cc
  6955. * src/DefaultPieceStorage.h
  6956. * src/PieceStorage.h
  6957. * src/UnknownLengthPieceStorage.h
  6958. * test/MockPieceStorage.h
  6959. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6960. Changed method signature:
  6961. SegmentMan::getInFlightSegment
  6962. * src/AbstractCommand.cc
  6963. * src/SegmentMan.cc
  6964. * src/SegmentMan.h
  6965. * test/SegmentManTest.cc
  6966. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6967. Changed method signature:
  6968. DHTAbstractNodeLookupTask::getNodesFromMessage
  6969. * src/DHTAbstractNodeLookupTask.cc
  6970. * src/DHTAbstractNodeLookupTask.h
  6971. * src/DHTNodeLookupTask.cc
  6972. * src/DHTNodeLookupTask.h
  6973. * src/DHTPeerLookupTask.cc
  6974. * src/DHTPeerLookupTask.h
  6975. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6976. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  6977. * src/AbstractCommand.cc
  6978. * src/BtCheckIntegrityEntry.cc
  6979. * src/BtCheckIntegrityEntry.h
  6980. * src/BtFileAllocationEntry.cc
  6981. * src/BtFileAllocationEntry.h
  6982. * src/BtSetup.cc
  6983. * src/BtSetup.h
  6984. * src/CheckIntegrityCommand.cc
  6985. * src/CheckIntegrityEntry.h
  6986. * src/ChecksumCheckIntegrityEntry.cc
  6987. * src/ChecksumCheckIntegrityEntry.h
  6988. * src/DHTSetup.cc
  6989. * src/DHTSetup.h
  6990. * src/DownloadEngine.cc
  6991. * src/FileAllocationCommand.cc
  6992. * src/FileAllocationEntry.h
  6993. * src/RequestGroup.cc
  6994. * src/RequestGroup.h
  6995. * src/RequestGroupMan.cc
  6996. * src/RequestGroupMan.h
  6997. * src/StreamCheckIntegrityEntry.cc
  6998. * src/StreamCheckIntegrityEntry.h
  6999. * src/StreamFileAllocationEntry.cc
  7000. * src/StreamFileAllocationEntry.h
  7001. * src/TrackerWatcherCommand.cc
  7002. * src/a2functional.h
  7003. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7004. Changed method signature:
  7005. BNode::findClosestKNodes, BNode:: enumerateBucket,
  7006. DHTBucket::getGoodNodes,
  7007. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  7008. * src/BNode.cc
  7009. * src/BNode.h
  7010. * src/DHTAbstractNodeLookupTask.cc
  7011. * src/DHTAutoSaveCommand.cc
  7012. * src/DHTBucket.cc
  7013. * src/DHTBucket.h
  7014. * src/DHTBucketRefreshTask.cc
  7015. * src/DHTFindNodeMessage.cc
  7016. * src/DHTGetPeersMessage.cc
  7017. * src/DHTRoutingTable.cc
  7018. * src/DHTRoutingTable.h
  7019. * test/BNodeTest.cc
  7020. * test/DHTBucketTest.cc
  7021. * test/DHTRoutingTableTest.cc
  7022. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7023. In piece selection functions, Pass std::deque<...> by reference rather
  7024. than returning it.
  7025. * src/BitfieldMan.cc
  7026. * src/BitfieldMan.h
  7027. * src/DefaultBtRequestFactory.cc
  7028. * src/DefaultPieceStorage.cc
  7029. * src/Piece.cc
  7030. * src/Piece.h
  7031. * test/BitfieldManTest.cc
  7032. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7033. Implemented rarest piece first piece selection strategy.
  7034. * src/AbstractBtMessage.cc
  7035. * src/AbstractBtMessage.h
  7036. * src/BitfieldMan.cc
  7037. * src/BitfieldMan.h
  7038. * src/BtBitfieldMessage.cc
  7039. * src/BtHaveAllMessage.cc
  7040. * src/BtHaveMessage.cc
  7041. * src/DefaultPieceStorage.cc
  7042. * src/DefaultPieceStorage.h
  7043. * src/PeerInteractionCommand.cc
  7044. * src/PieceStorage.h
  7045. * src/UnknownLengthPieceStorage.h
  7046. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7047. Rewritten readData and writeData.
  7048. * src/MultiDiskAdaptor.cc
  7049. * src/MultiDiskAdaptor.h
  7050. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7051. Move \n out of the message "Usage: ...".
  7052. * src/version_usage.cc
  7053. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7054. Bump up version number to 0.13.2b.
  7055. * configure.ac
  7056. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7057. Added const qualifier to argument Exception& e.
  7058. * src/Logger.h
  7059. * src/SimpleLogger.cc
  7060. * src/SimpleLogger.h
  7061. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7062. Pool connection when CWD, SIZE command fails.
  7063. * src/FtpNegotiationCommand.cc
  7064. * src/FtpNegotiationCommand.h
  7065. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7066. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  7067. * src/HttpResponseCommand.cc
  7068. * src/HttpSkipResponseCommand.cc
  7069. * src/HttpSkipResponseCommand.h
  7070. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7071. Pool connection when a server returns 4xx, 5xx responses.
  7072. * src/HttpNullDownloadCommand.cc
  7073. * src/HttpNullDownloadCommand.h
  7074. * src/HttpResponse.cc
  7075. * src/HttpResponse.h
  7076. * src/HttpResponseCommand.cc
  7077. * src/HttpResponseCommand.h
  7078. * test/HttpResponseTest.cc
  7079. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7080. Print usage when no URL is specifed or bad command-line option is
  7081. specified.
  7082. * src/HelpItemFactory.cc
  7083. * src/help_tags.h
  7084. * src/option_processing.cc
  7085. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7086. Removed duplicate log message.
  7087. * src/AbstractCommand.cc (asyncResolveHostname)
  7088. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7089. Updated man page: --async-dns and --ftp-reuse-connection were added.
  7090. Changed -j option's default value from 5 to 1.
  7091. Added new examples using protocol auto detection feature.
  7092. Removed -T, -M usage where it can be omitted.
  7093. * doc/aria2c.1.txt
  7094. * doc/aria2c.1.html
  7095. * doc/aria2c.1.txt
  7096. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7097. Updated command-line usage text, so that it tells users that they
  7098. can specify any number of torrent files and metalink files in
  7099. command-line.
  7100. * src/version_usage.cc
  7101. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7102. Changed the default value of -j option to 1.
  7103. * src/HelpItemFactory.cc
  7104. * src/option_processing.cc
  7105. * src/usage_text.h
  7106. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7107. Added the ability to reuse connection in FTP and it is enabled by
  7108. default. It can be disabled by --ftp-reuse-connection=false option.
  7109. * src/Command.cc
  7110. * src/DownloadCommand.cc
  7111. * src/FtpDownloadCommand.cc
  7112. * src/FtpDownloadCommand.h
  7113. * src/FtpFinishDownloadCommand.cc
  7114. * src/FtpFinishDownloadCommand.h
  7115. * src/FtpInitiateConnectionCommand.cc
  7116. * src/FtpNegotiationCommand.cc
  7117. * src/FtpNegotiationCommand.h
  7118. * src/HelpItemFactory.cc
  7119. * src/Makefile.am
  7120. * src/Makefile.in
  7121. * src/OptionHandlerFactory.cc
  7122. * src/option_processing.cc
  7123. * src/prefs.h
  7124. * src/usage_text.h
  7125. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7126. Call Command::transitStatus() before calling Command::execute(),
  7127. so that the status change made in execute() is not cleared.
  7128. * src/DownloadEngine.cc
  7129. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7130. Removed forward declaration of SocketCore class.
  7131. * src/HttpDownloadCommand.h
  7132. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7133. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  7134. in InitiateConnectionCommandFactory. They should be set only when
  7135. the protocol is HTTP or HTTPS.
  7136. * src/InitiateConnectionCommandFactory.cc
  7137. * src/RequestGroup.cc
  7138. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7139. Fixed infinite loop in checksum checking.
  7140. * src/IteratableChecksumValidator.cc
  7141. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7142. Set _supportsPersistentConnection to true by default.
  7143. * src/Request.cc
  7144. * src/RequestGroup.cc
  7145. * test/HttpRequestTest.cc
  7146. * test/RequestTest.cc
  7147. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7148. Added timeout to socket pool. The default timeout is 15 seconds,
  7149. which is the same value Apache uses.
  7150. * src/DownloadEngine.cc
  7151. * src/DownloadEngine.h
  7152. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7153. Fixed misuse of multimap::find()
  7154. * src/HttpHeader.cc
  7155. * test/HttpHeaderTest.cc
  7156. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7157. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  7158. option.
  7159. The asynchronous DNS is not capable of IPv6 yet.
  7160. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  7161. least for HTTP download.
  7162. * src/AbstractCommand.cc
  7163. * src/AbstractCommand.h
  7164. * src/AsyncNameResolver.cc
  7165. * src/AsyncNameResolver.h
  7166. * src/DHTEntryPointNameResolveCommand.cc
  7167. * src/DHTEntryPointNameResolveCommand.h
  7168. * src/DownloadEngine.cc
  7169. * src/DownloadEngine.h
  7170. * src/FtpInitiateConnectionCommand.cc
  7171. * src/FtpInitiateConnectionCommand.h
  7172. * src/HelpItemFactory.cc
  7173. * src/HttpInitiateConnectionCommand.cc
  7174. * src/HttpInitiateConnectionCommand.h
  7175. * src/InitiateConnectionCommand.cc
  7176. * src/InitiateConnectionCommand.h
  7177. * src/Makefile.am
  7178. * src/Makefile.in
  7179. * src/NameResolver.cc
  7180. * src/NameResolver.h
  7181. * src/OptionHandlerFactory.cc
  7182. * src/SocketCore.cc
  7183. * src/SocketCore.h
  7184. * src/Util.cc
  7185. * src/Util.h
  7186. * src/option_processing.cc
  7187. * src/prefs.h
  7188. * src/usage_text.h
  7189. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7190. Updated man page: --quiet, --header were added.
  7191. --metalink-servers and --enable-http-keep-alive option were updated.
  7192. * doc/aria2c.1
  7193. * doc/aria2c.1.html
  7194. * doc/aria2c.1.txt
  7195. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7196. Enable HTTP keep-alive by default.
  7197. * src/HelpItemFactory.cc
  7198. * src/option_processing.cc
  7199. * src/usage_text.h
  7200. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7201. Disable http keep-alive if the remote server is not HTTP/1.1.
  7202. * src/HttpConnection.cc
  7203. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7204. Receive content body of 302 response so that the connection can be
  7205. reused later when http keep-alive is enabled.
  7206. * src/HttpNullDownloadCommand.cc
  7207. * src/HttpNullDownloadCommand.h
  7208. * src/HttpResponseCommand.cc
  7209. * src/HttpResponseCommand.h
  7210. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7211. const SharedHandle<Request> -> const SharedHandle<Request>&
  7212. * src/FtpDowndloadCommand.cc
  7213. * src/FtpDowndloadCommand.h
  7214. * src/HttpDownloadCommand.cc
  7215. * src/HttpDownloadCommand.h
  7216. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7217. Fixed the bug that the control file(.aria2 file) is not renamed
  7218. according to tryAutoFileRenaming().
  7219. tryAutoFileRenaming() was rewritten so that if both renamed file and
  7220. its control file exist, use them and continue download.
  7221. The old implementation didn't take into account of control file's
  7222. existence, so basically you couldn't continue download of renamed file.
  7223. * src/BtProgressInfoFile.h
  7224. * src/DefaultBtProgressInfoFile.cc
  7225. * src/DefaultBtProgressInfoFile.h
  7226. * src/NullProgressInfoFile.h
  7227. * src/RequestGroup.cc
  7228. * test/DefaultBtProgressInfoFileTest.cc
  7229. * test/MockBtProgressInfoFile.h
  7230. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7231. Change the default value of --metalink-servers option from `5' to `1'.
  7232. * src/HelpItemFactory.cc
  7233. * src/option_processing.cc
  7234. * src/usage_text.h
  7235. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7236. Reimplemented transparent metalink using Accept request header.
  7237. * src/HttpRequest.cc
  7238. * src/HttpRequest.h
  7239. * src/HttpRequestCommand.cc
  7240. * src/Metalink2RequestGroup.cc
  7241. * src/RequestGroup.cc
  7242. * src/RequestGroup.h
  7243. * test/HttpRequestTest.cc
  7244. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7245. Bump up version number to 0.13.2a
  7246. * configure.ac
  7247. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7248. Updated configure.ac using the result of autoscan.
  7249. * configure.ac
  7250. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7251. Fixed compilation error without gcrypt/openssl.
  7252. * src/DownloadCommand.cc
  7253. * src/DownloadCommand.h
  7254. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7255. Reorganized version information so that it can be displayed in a
  7256. standard terminal screen without scrolling.
  7257. Removed http, ftp from Configuration section, because they are always
  7258. enabled.
  7259. * src/FeatureConfig.cc
  7260. * src/FeatureConfig.h
  7261. * src/main.cc
  7262. * src/messageDigest.cc
  7263. * src/messageDigest.h
  7264. * src/version_usage.cc
  7265. * test/FeatureConfigTest.cc
  7266. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7267. Masked user ID in log.
  7268. * src/FtpConnection.cc (sendUser)
  7269. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7270. Removed query part from filename in HTTP download. The query part means
  7271. the substring after "?" in URL. Firefox seems do the same thing.
  7272. A query part is sometimes very long and not suitable to filename,
  7273. so I think it is better to remove it from filename.
  7274. * src/HttpRequest.cc
  7275. * src/HttpRequest.h
  7276. * src/Request.cc
  7277. * src/Request.h
  7278. * test/HttpRequestTest.cc
  7279. * test/RequestTest.cc
  7280. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7281. Rewritten Exception class. Throw exception object, not its pointer and
  7282. catch by reference, so that remove problematic delete operator for
  7283. catched exception.
  7284. * src/Exception.cc
  7285. * src/Exception.h
  7286. * test/ExceptionTest.cc
  7287. * src/*: All files throwing/catching exception.
  7288. * test/*: All files throwing/catching exception.
  7289. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7290. Now auto protocol detection is enabled without -Z option.
  7291. But there is a important difference between with/without -Z optoin.
  7292. For example, if you type:
  7293. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  7294. then, aria2 interprets there are 3 request groups:
  7295. (1) http://host/file, http://mirror/file <-- multi-source download
  7296. (2) file1.torrent
  7297. (3) file2.metalink
  7298. On the other hand, if you invoke above command with -Z option, it is
  7299. interpreted as 4 request groups:
  7300. (1) http://host/file
  7301. (2) file1.torrent
  7302. (3) file2.metalink
  7303. (4) http://mirror/file
  7304. I think usually user don't mix multi-source URLs and torrent files, so
  7305. there is no big problem here.
  7306. * src/main.cc
  7307. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7308. Fixed the bug that causes segmentaion fault when reading XML containing
  7309. unescapsed character like '&'.
  7310. Also a modification was made which avoids adding unnecessary
  7311. characters stack and appending unused string.
  7312. * src/ExpatMetalinkProcessor.cc
  7313. * src/FileMetalinkParserState.h
  7314. * src/FilesMetalinkParserState.h
  7315. * src/FinMetalinkParserState.h
  7316. * src/HashMetalinkParserState.h
  7317. * src/InitialMetalinkParserState.h
  7318. * src/LanguageMetalinkParserState.h
  7319. * src/MetalinkMetalinkParserState.h
  7320. * src/MetalinkParserState.h
  7321. * src/MetalinkParserStateMachine.cc
  7322. * src/MetalinkParserStateMachine.h
  7323. * src/OSMetalinkParserState.h
  7324. * src/PieceHashMetalinkParserState.h
  7325. * src/PiecesMetalinkParserState.h
  7326. * src/ResourcesMetalinkParserState.h
  7327. * src/SizeMetalinkParserState.h
  7328. * src/SkipTagMetalinkParserState.h
  7329. * src/URLMetalinkParserState.h
  7330. * src/VerificationMetalinkParserState.h
  7331. * src/VersionMetalinkParserState.h
  7332. * src/XML2SAXMetalinkProcessor.cc
  7333. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7334. Added StringFormat class, which internally calls vasprintf.
  7335. operator<< is defined for this class, so it can be used with iostream
  7336. classes nicely. SimpleLogger and following functions are rewritten
  7337. using StringFormat class.
  7338. Besides, now Logger class's methods are non-const, many classes
  7339. that has a const Logger* as a member variable are modified to remove
  7340. const qualifier from the variable declaration.
  7341. * src/HelpItemFactory.cc
  7342. * src/Request.cc
  7343. * src/SimpleLogger.cc
  7344. * src/StringFormat.cc
  7345. * src/StringFormat.h
  7346. * src/Util.cc
  7347. * src/option_processing.cc
  7348. * src/version_usage.cc
  7349. * test/StringFormatTest.cc
  7350. * src/*.h: The classes that has const Logger* as a member variable.
  7351. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7352. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  7353. failed. Also fixed memory link when exception is thrown there.
  7354. * src/main.cc (AccRequestGroup)
  7355. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7356. Added build-in "Accept-Features" support. For now only "metalink" is
  7357. used in this header field.
  7358. This "metalink" value is removed from the list when connecting URLs
  7359. fed by metalink file to avoid loop in "transparent" metlaink.
  7360. * src/HttpRequest.cc
  7361. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  7362. header is also held in this variable. Also renamed setUserHeaders as
  7363. addHeader and it was rewritten to add header not just to clear the old
  7364. value.
  7365. * src/HttpRequestCommand.cc
  7366. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  7367. from "Accept-Features" list.
  7368. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  7369. default.
  7370. * src/RequestGroup.h
  7371. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  7372. * src/a2functional.h: Included <string> because Concat class depends on
  7373. it.
  7374. * test/HttpRequestTest.cc
  7375. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7376. Added comment
  7377. * src/RequestGroup.cc (createNextCommand)
  7378. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7379. Capitalized METHOD_GET and METHOD_HEAD
  7380. * src/Request.cc
  7381. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7382. Added getDownloadResults() method
  7383. * src/RequestGroupMan.cc
  7384. * src/RequestGroupMan.h
  7385. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7386. Fixed the bug that aria2 exits when commands is empty() but
  7387. _routineCommands are not.
  7388. * src/DownloadEngine.cc
  7389. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7390. Use the default value pulled from Option object in HelpItemFactory.
  7391. except options whose defualt value is embedded in a usage text.
  7392. * src/HelpItemFactory.cc
  7393. * src/HelpItemFactory.h
  7394. * src/option_processing.cc
  7395. * src/version_usage.cc
  7396. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7397. Added --quiet option to make aria2 quiet (no console output).
  7398. --quiet option is tagged with ADVANCED.
  7399. * src/HelpItemFactory.cc
  7400. * src/LogFactory.cc
  7401. * src/LogFactory.h
  7402. * src/MultiUrlRequestInfo.cc
  7403. * src/MultiUrlRequestInfo.h
  7404. * src/NullStatCalc.h: New class. This class prints nothing.
  7405. * src/OptionHandlerFactory.cc
  7406. * src/main.cc
  7407. * src/option_processing.cc
  7408. * src/prefs.h
  7409. * src/usage_text.h
  7410. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7411. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  7412. * src/HelpItemFactory.cc (createHelpItems):
  7413. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7414. Fixed compilation error in ExpatMetalinkProcessor.cc
  7415. * src/ExpatMetalinkProcessor.cc
  7416. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7417. Reuse socket if the origin server supports HTTP keep-alive and
  7418. --enable-http-keep-alive or --enable-http-pipelining is given.
  7419. The current implementation doesn't reuse the connections established
  7420. against proxy server.
  7421. * src/AbstractCommand.cc
  7422. * src/DownloadEngine.cc
  7423. * src/DownloadEngine.h
  7424. * src/HttpDownloadCommand.cc
  7425. * src/HttpInitiateConnectionCommand.cc
  7426. * src/HttpResponseCommand.cc
  7427. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7428. Rewritten HTTP keep-alive and pipelining routine.
  7429. * src/AbstractCommand.cc
  7430. * src/HttpConnection.cc
  7431. * src/HttpDownloadCommand.cc
  7432. * src/HttpRequest.cc
  7433. * src/HttpRequestCommand.cc
  7434. * src/HttpResponseCommand.cc
  7435. * src/Request.cc
  7436. * src/Request.h
  7437. * src/RequestGroup.cc
  7438. * test/HttpRequestTest.cc
  7439. * test/HttpResponseTest.cc
  7440. * test/RequestTest.cc
  7441. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7442. Added missing setUserHeaders call
  7443. * src/HttpRequestCommand.cc
  7444. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7445. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  7446. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  7447. waste of time because it is more likey false.
  7448. * src/FileAllocationDispatcherCommand.cc (execute)
  7449. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7450. Now HTTP status and version are a member variable of HttpHeader.
  7451. HTTP status is processed as a string, not integer.
  7452. * src/AbstractProxyResponseCommand.cc
  7453. * src/HttpConnection.cc
  7454. * src/HttpHeader.cc
  7455. * src/HttpHeader.h
  7456. * src/HttpHeaderProcessor.cc
  7457. * src/HttpHeaderProcessor.h
  7458. * src/HttpResponse.cc
  7459. * src/HttpResponse.h
  7460. * test/HttpHeaderProcessorTest.cc
  7461. * test/HttpResponseTest.cc
  7462. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7463. Added --header option. You can specify any number of additional HTTP headers
  7464. like:
  7465. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  7466. Unlike other commad-line option, you can use --header option multiple times.
  7467. * src/HelpItemFactory.cc
  7468. * src/HttpRequest.{cc, h}
  7469. * src/HttpRequestCommand.cc
  7470. * src/OptionHandlerFactory.cc
  7471. * src/OptionHandlerImpl.h
  7472. * src/option_processing.cc
  7473. * src/prefs.h
  7474. * src/usage_text.h
  7475. * test/HttpRequestTest.cc (testUserHeaders)
  7476. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7477. Eliminates the time lag between sequential downloads and commands in
  7478. the same RequestGroup.
  7479. In old implementation, aria2 occasionally waits 1 seconds before
  7480. executing next command or RequestGroup.
  7481. This is really a waste of time, and new implementation eliminates
  7482. this unnecessary time lag.
  7483. * src/AbstractCommand.cc
  7484. * src/AutoSaveCommand.cc
  7485. * src/CheckIntegrityCommand.cc
  7486. * src/Command.{cc, h}
  7487. * src/DownloadEngine.{cc, h}
  7488. * src/DownloadEngineFactory.cc
  7489. * src/FileAllocationCommand.cc
  7490. * src/FileAllocationDispatcherCommand.cc
  7491. * src/FillRequestGroupCommand.cc
  7492. * src/FtpInitiateConnectionCommand.cc
  7493. * src/HaveEraseCommand.cc
  7494. * src/HttpInitiateConnectionCommand.cc
  7495. * src/HttpResponseCommand.cc
  7496. * src/RealtimeCommand.cc
  7497. * src/RequestGroup.cc
  7498. * src/RequestGroupMan.cc
  7499. * src/StreamFileAllocationEntry.cc
  7500. * src/TimeBasedCommand.{cc, h}
  7501. * src/TimedHaltCommand.cc
  7502. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7503. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  7504. keyword explicit and SharedHandle's default constructor initializes
  7505. its internal obj to null, old implementation initializes it using
  7506. obj's default constructor.
  7507. To assign null, write SharedHandle<T> x(...); x.reset();
  7508. TODO: test/SharedHandleTest.cc needs more tests.
  7509. * src/SharedHandle.h
  7510. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7511. Fixed type in man page.
  7512. * doc/aria2c.1.txt
  7513. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7514. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  7515. * src/SimpleLogger.{cc, h}
  7516. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7517. Implemented auto protocol detection.
  7518. Now you can do:
  7519. aria2c -Z http://host/file file1.torrent file2.metalink
  7520. (Note: -Z option is required for auto protcol detection.)
  7521. Then aria2c downloads 3 files simultaneously:
  7522. 1. http://host/file
  7523. 2. file1.torrent <-- read local torrent file
  7524. 3. file2.metalink <-- read local Metalink file.
  7525. Same thing goes with -i option. Assume your uris.txt contans:
  7526. http://host/file
  7527. file1.torrent
  7528. file2.metalink
  7529. Then you can do: aria2c -i uris.txt
  7530. (Note: -Z option is not needed if -i option is given.)
  7531. * src/main.cc
  7532. * src/ProtocolDetector.{cc, h}
  7533. * test/ProtocolDetectorTest.cc
  7534. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7535. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  7536. installed
  7537. * src/ARC4Encryptor.h
  7538. * src/ARC4Decryptor.h
  7539. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7540. Renamed argument from 'errno' to 'err', since errno is confused with
  7541. errno defined in errno.h.
  7542. * src/LibgcryptARC4Decryptor.h
  7543. * src/LibgcryptARC4Context.h
  7544. * src/LibgcryptDHKeyExchange.h
  7545. * src/LibgcryptARC4Encryptor.h
  7546. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7547. Rewritten choking algorithm.
  7548. * src/PeerChokeCommand.{cc, h}
  7549. * src/BtInterestedMessage.cc
  7550. * src/PeerSessionResource.{cc, h}
  7551. * src/DefaultPeerStorage.{cc, h}
  7552. * src/BtNotInterestedMessage.cc
  7553. * src/DefaultBtMessageDispatcher.{cc, h}
  7554. * src/BtMessageDispatcher.h
  7555. * src/Peer.{cc, h}
  7556. * src/BtLeecherStateChoke.{cc, h}
  7557. * src/BtSetup.cc
  7558. * src/BtSeederStateChoke.{cc, h}
  7559. * src/PeerStorage.h
  7560. * test/MockPeerStorage.h
  7561. * test/MockBtMessageDispatcher.h
  7562. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7563. Fixed compilation error on x84-64 platform.
  7564. * src/AuthConfig.cc: Included ostream.
  7565. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7566. Rewritten getBasename() and getDirname(), without standard library
  7567. basename(), dirname().
  7568. * src/File.cc
  7569. * test/FileTest.cc
  7570. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7571. Added Simplified Chinese translation. Also updated the following
  7572. translations: Polish, Dutch, German. Great thanks to all translators.
  7573. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7574. Suppress content-range error when 'Content-Range' response header
  7575. doesn't contains bytes-unit specifier 'bytes'
  7576. * src/HttpHeader.cc (getRange)
  7577. * test/HttpHeaderTest.cc
  7578. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7579. Fixed compilation error with g++-4.3
  7580. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7581. Added missing include files for MinGW
  7582. * test/HttpHeaderProcessorTest.cc
  7583. * test/DHTRoutingTableSerializerTest.cc
  7584. * test/DHTRoutingTableDeserializerTest.cc
  7585. * test/UriListParserTest.cc
  7586. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7587. Now download line is printed nicely with no garbage at the end of
  7588. line. I use ioctl to get the columns of terminal.
  7589. If stdout is redirected to another device, instead of carriage return,
  7590. end of line '\n' character is used. This is feature request#1909659
  7591. * src/ConsoleStatCalc.cc (calculateStat)
  7592. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7593. Included a2time.h
  7594. * src/DHTMessageDispatcher.h
  7595. * src/DHTMessageEntry.h
  7596. * src/DHTReplaceNodeTask.h
  7597. * src/DHTMessageTracker.h
  7598. * src/Util.h
  7599. * src/CookieBox.h
  7600. * src/SocketCore.h
  7601. * src/DefaultBtMessageDispatcher.h
  7602. * src/SocketCore.cc
  7603. * src/Util.cc
  7604. * src/DHTPingTask.h
  7605. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7606. Fixed high memory footprint when DHT is enabled.
  7607. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  7608. queued than it is processed and the queue is getting longer. As a
  7609. consequence, momory usage is increased.
  7610. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  7611. replacement cache in DHTBucket which is described in Kademlia paper.
  7612. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  7613. DHTReplaceNodeTask.
  7614. * src/DHTBucket.{h, cc}
  7615. (cacheNode): New function.
  7616. (getCachedNodes): New function.
  7617. (dropNode): Push back cached node to _nodes.
  7618. * test/DHTBucketTest.cc
  7619. (testCacheNode): New test
  7620. (testDropNode): New test
  7621. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7622. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  7623. the unused 4KB memory when ssl is not used.
  7624. * src/SocketCore.cc
  7625. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7626. Added summary log for peer announce storage.
  7627. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  7628. Removed cast
  7629. * src/DefaultPeerStorage.cc (addPeer)
  7630. Log exception message
  7631. * src/DHTMessageTracker.cc (handleTimeout)
  7632. Fixed casting
  7633. * test/HttpRequestTest.cc
  7634. * test/MetalinkProcessorTest.cc
  7635. * test/PieceTest.cc
  7636. * test/MetalinkEntryTest.cc
  7637. * test/SequenceTest.cc
  7638. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7639. * src/ParameterizedStringParser.cc (createLoop):
  7640. Removed unused variable sstep.
  7641. * src/AlphaNumberDecorator.h (decode): Rewritten.
  7642. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7643. * src/Util.{h, cc}
  7644. (parseUInt): New function.
  7645. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  7646. The actual range is uint32_t.
  7647. * test/UtilTest.cc
  7648. * src/ParameterizedStringParser.cc:
  7649. Use Util::parseUInt() for loop variables.
  7650. * test/ParameterizedStringParserTest.cc
  7651. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  7652. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7653. Rewritten the functions for binding port.
  7654. * src/DHTConnectionImpl.{h, cc}
  7655. * src/PeerListenCommand.{h, cc}
  7656. * src/DHTSetup.cc
  7657. * src/BtSetup.cc
  7658. * test/DHTConnectionImplTest.cc
  7659. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7660. type cleanup for allmost all remaining files.
  7661. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7662. Type clarification
  7663. * src/PeerSessionResource.{h, cc}
  7664. * src/DefaultPieceStorage.{h, cc}
  7665. * src/Peer.{h, cc}
  7666. * test/PeerSessionResourceTest.cc
  7667. Use div function
  7668. * src/BtPieceMessage.cc (erasePieceOnDisk)
  7669. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7670. Type clarification
  7671. * src/DefaultPeerStorage.{h, cc}
  7672. * test/DefaultPeerStorageTest.cc
  7673. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7674. Type clarification: size_t for length or size, uint64_t for file
  7675. length, off_t for file offset.
  7676. * src/DefaultBtProgressInfoFile.cc
  7677. * src/DefaultBtContext.{h, cc}
  7678. * src/DefaultBtInteractive.cc
  7679. * src/DownloadCommand.{h, cc}
  7680. * src/IteratableChunkChecksumValidator.{h, cc}
  7681. * src/SegmentMan.{h, cc}
  7682. * src/SingleFileDownloadContext.{h, cc}
  7683. * src/IteratableChecksumValidator.{h, cc}
  7684. * src/BtContext.h
  7685. * src/IteratableValidator.h
  7686. * src/DownloadContext.h
  7687. * test/SingleFileDownloadContextTest.cc
  7688. * test/DefaultBtContextTest.cc
  7689. * test/MockBtContext.h
  7690. * test/Metalink2RequestGroupTest.cc
  7691. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7692. Type clarification: size_t for length or size, uint64_t for file
  7693. length, off_t for file offset.
  7694. * src/PiecedSegment.cc
  7695. * src/GrowSegment.h
  7696. * src/DefaultBtRequestFactory.h
  7697. * src/DefaultBtProgressInfoFile.cc
  7698. * src/UnknownLengthPieceStorage.h
  7699. * src/DefaultPieceStorage.cc
  7700. * src/UnknownLengthPieceStorage.cc
  7701. * src/DefaultBtInteractive.cc
  7702. * src/GrowSegment.cc
  7703. * src/BitfieldMan.h
  7704. * src/DownloadCommand.cc
  7705. * src/BtRequestFactory.h
  7706. * src/PiecedSegment.h
  7707. * src/DefaultPieceStorage.h
  7708. * src/Piece.cc
  7709. * src/DefaultBtRequestFactory.cc
  7710. * src/PieceStorage.h
  7711. * src/Segment.h
  7712. * src/Piece.h
  7713. * src/BitfieldMan.cc
  7714. * src/Util.cc
  7715. * test/DefaultBtProgressInfoFileTest.cc
  7716. * test/DefaultPieceStorageTest.cc
  7717. * test/MockPieceStorage.h
  7718. * test/BtRequestMessageTest.cc
  7719. * test/DefaultBtMessageDispatcherTest.cc
  7720. * test/BitfieldManTest.cc
  7721. * test/GrowSegmentTest.cc
  7722. * test/PieceTest.cc
  7723. * test/SegmentTest.cc
  7724. * test/SegmentManTest.cc
  7725. * test/DefaultBtRequestFactoryTest.cc
  7726. * test/MockBtRequestFactory.h
  7727. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7728. Fixed compilation error with --disable-nls
  7729. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  7730. in gettext.h causes the problem.
  7731. * src/common.h
  7732. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7733. Removed subPiece related functions.
  7734. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  7735. * src/DefaultPieceStorage.{h, cc}
  7736. * test/PieceTest.cc
  7737. * test/DefaultPieceStorageTest.cc
  7738. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7739. Use unsigned char for data store.
  7740. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7741. Bump up version number to 0.13.0+1
  7742. * configure.ac
  7743. * Release 0.13.0+1
  7744. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7745. Changed inactive connection timeout to 120.
  7746. To accept more mulually interested peers, disconnect peer when there
  7747. is no interest between us after certain time passed.
  7748. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  7749. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7750. Fixed the bug that aria2 only uses first dns server in resolv.conf
  7751. when compiled with async DNS support.
  7752. * src/DownloadEngine.cc
  7753. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  7754. value '10' will be a little bit short when some DNS servers are
  7755. offline and several DNS servers are tried. It should be configured
  7756. by command-line option.
  7757. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7758. Merged Ross's mingw patch.
  7759. * src/DHTRoutingTableDeserializer.cc
  7760. * src/DHTRoutingTableSerializer.cc
  7761. * src/Platform.{h, cc}
  7762. * src/timegm.h
  7763. * src/gettimeofday.h
  7764. * src/getaddrinfo.h
  7765. * src/SocketCore.h
  7766. * src/common.h
  7767. * src/inet_aton.h
  7768. * src/DownloadEngine.h
  7769. * src/gai_strerror.h
  7770. * src/a2netcompat.h
  7771. * configure.ac
  7772. * configure
  7773. * aclocal.m4
  7774. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7775. Included missing iostream.
  7776. * test/AllTest.cc
  7777. * test/BtDependencyTest.cc
  7778. * test/BtExtendedMessageTest.cc
  7779. * test/DHTConnectionImplTest.cc
  7780. * test/DHTMessageFactoryImplTest.cc
  7781. * test/DHTMessageTrackerEntryTest.cc
  7782. * test/DHTNodeTest.cc
  7783. * test/DHTRoutingTableSerializerTest.cc
  7784. * test/DefaultBtAnnounceTest.cc
  7785. * test/DefaultBtContextTest.cc
  7786. * test/DefaultBtMessageFactoryTest.cc
  7787. * test/DefaultExtensionMessageFactoryTest.cc
  7788. * test/HandshakeExtensionMessageTest.cc
  7789. * test/HttpResponseTest.cc
  7790. * test/MetalinkProcessorTest.cc
  7791. * test/MultiFileAllocationIteratorTest.cc
  7792. * test/SocketCoreTest.cc
  7793. * test/UTPexExtensionMessageTest.cc
  7794. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7795. Reorganized includes.
  7796. * src/NameResolver.cc
  7797. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7798. Fixed compilation error without ares/c-ares
  7799. * src/NameResolver.h:
  7800. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7801. Added a test for large file.
  7802. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  7803. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7804. Fixed the bug that file size is ignored if size > INT32_MAX
  7805. * src/SizeMetalinkParserState.cc (endElement):
  7806. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7807. Bump up version number to 0.13.0
  7808. * configure.ac
  7809. * Release 0.13.0
  7810. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7811. Updated Makfefile.am to make 'make dist' work.
  7812. Now packaged filename is aria2c-VERSION.tar.bz2.
  7813. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  7814. Added LICENSE.OpenSSL to dist_noinst_DATA.
  7815. Large file support is now configured by configure script.
  7816. * configure.ac
  7817. Removed unsused source files
  7818. * src/
  7819. * test/
  7820. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  7821. Peer.h and BtContext.h respectively.
  7822. * src/Peer.h
  7823. * src/BtContext.h
  7824. Updated translations.
  7825. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  7826. translations. Great thanks to all translators!;)
  7827. * po/*.{po, gmo}
  7828. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7829. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  7830. statically declared sha1 MessageDigestContext.
  7831. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  7832. initialization of short-lived MessageDigestContext.
  7833. * src/MessageDigestHelper.{h, cc}
  7834. * src/main.cc
  7835. Now DownloadCommand has a reference to MessageDigestContext to avoid
  7836. the initialization of MessageDigestContext every time in validating
  7837. chunk checksum.
  7838. * src/DownloadCommand.{h, cc}
  7839. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7840. Add a file descriptor which connected to fast peer(latency<1500) to
  7841. select(). This change reduced CPU load.
  7842. * src/PeerInteractionCommand.cc
  7843. * src/DefaultBtInteractive.{h, cc}
  7844. * src/BtInteractive.h
  7845. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7846. Fixed the previous insufficient fix for possible busy loop.
  7847. * src/MSEHandshake.cc (identifyHandshakeType)
  7848. Removed unused functions.
  7849. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  7850. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7851. Fixed possible busy loop if first 20 bytes are not received for a few
  7852. minutes.
  7853. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  7854. * src/ReceiverMSEHandshakeCommand.cc
  7855. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7856. Fixed compilation error
  7857. * src/ExpatMetalinkProcessor.cc
  7858. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7859. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  7860. * src/DHTBucket.cc
  7861. Removed unnecessary cast.
  7862. * src/HandshakeExtensionMessage.cc
  7863. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7864. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  7865. is missing.
  7866. * src/OptionHandlerFactory.cc
  7867. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7868. Fixed the bug that HAVE message is not sent for a piece they are
  7869. downloaded fom http/ftp server before any BitTorrent handshake is done
  7870. with peers.
  7871. * src/DefaultBtInteractive.cc
  7872. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7873. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  7874. * src/Makefile.am
  7875. * src/Makefile.in
  7876. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7877. Updated README. Added html version of README and man page.
  7878. * README
  7879. * README.html
  7880. * readme2html: Shell script to generate README.html from README using
  7881. asciidoc.
  7882. * doc/aria2c.1.html
  7883. * doc/makeman: Added the line to generate aria2c.1.html
  7884. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7885. Fixed offset calculation.
  7886. * src/LibgcryptDHKeyExchange.h (computeSecret)
  7887. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7888. Rewritten itos and uitos using template. llitos and ullitos are
  7889. replaced with itos and uitos respectively.
  7890. * src/Util.{h, cc}
  7891. * test/UtilTest.cc
  7892. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7893. Fixed the bug that DH key exchange sometimes fails due to bad handling
  7894. of the number of bytes required for storing public key and shared
  7895. secret.
  7896. * src/LibgcryptDHKeyExchange.h
  7897. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  7898. * src/MSEHandshake.cc
  7899. * test/DHKeyExchangeTest.cc
  7900. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7901. Removed since they are not used.
  7902. * src/Xml2MetalinkProcessor.{h, cc}
  7903. * src/Socket.cc
  7904. * src/SegmentSplitter.{h, cc}
  7905. * test/Xml2MetalinkProcessorTest.cc
  7906. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7907. Fixed the bug that prevents aria2 from stopping other than by pressing
  7908. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  7909. option. aria2 doesn't stop even after --seed-time is satisfied and
  7910. continues to output blank lines in the console.
  7911. * src/ReceiverMSEHandshakeCommand.cc
  7912. * src/PeerReceiveHandshakeCommand.cc
  7913. * src/PeerListenCommand.cc
  7914. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7915. Bump up version number to 0.13.0rc
  7916. * configure.ac
  7917. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7918. Updated man page and some usage text.
  7919. * doc/aria2c.1.txt
  7920. * src/usage_text.h
  7921. * po/*.{po, gmo}
  7922. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7923. Updated translations. Added Finnish and Hebrew translations.
  7924. Great thanks to all translators!
  7925. * po/*.{po, gmo}
  7926. * po/LINGUAS
  7927. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7928. Log more detailed information about each message.
  7929. * src/DHTQueryMessage.{h, cc}
  7930. * src/DHTGetPeersMessage.{h, cc}
  7931. * src/DHTFindNodeReplyMessage.{h, cc}
  7932. * src/DHTGetPeersReplyMessage.{h, cc}
  7933. * src/DHTAnnouncePeerMessage.{h, cc}
  7934. * src/DHTResponseMessage.{h, cc}
  7935. * src/DHTFindNodeMessage.{h, cc}
  7936. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7937. Use constants defined in prefs.h
  7938. * src/option_processing.cc
  7939. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7940. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  7941. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7942. Make room for future enchancements for IPv6 addresses.
  7943. Bump up version number of dht.dat file format to 2.
  7944. Not compatible with previous version.
  7945. * src/DHTRoutingTableSerializer.cc
  7946. * src/DHTRoutingTableDeserializer.cc
  7947. * test/DHTRoutingTableSerializerTest.cc
  7948. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7949. Added handling for the return values from
  7950. PeerMessageUtil::createcompact().
  7951. * src/DefaultBtContext.cc (computeFastSet):
  7952. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7953. Fixed abort when peer's ip address is IPv4-mapped address.
  7954. * src/DefaultBtContext.cc (computeFastSet)
  7955. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  7956. cannot handle IPv4-mapped addresses.
  7957. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  7958. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7959. Proper return value handling for OpenSSL functions.
  7960. * src/LibsslDHKeyExchange.h
  7961. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7962. Random bytes generation using libgcrypt and OpenSSL.
  7963. * src/DHTUtil.{h, cc}
  7964. * test/DHTUtilTest.cc
  7965. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7966. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  7967. received.
  7968. * src/DHTMessageReceiver.cc (receiveMessage)
  7969. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7970. Fixed the bug that a return code is always 0. BUG#1897704
  7971. If error occurred during the download or there exist unfinished
  7972. downloads, aria2 returns with code 1.
  7973. * src/RequestGroupMan.{h, cc}
  7974. * src/MultiUrlRequestInfo.{h, cc}
  7975. * src/main.cc
  7976. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7977. IPv6 support for SocketCore class.
  7978. TODO: In SocketCore::establishConnection(), this is insufficient to
  7979. determin the failure of connect() here because the socket is
  7980. non-blocking state. The next addresses should be tried after select().
  7981. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  7982. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  7983. instead which address family independent.
  7984. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  7985. information in a compact peer format which is for IPv4 only.
  7986. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  7987. this is a spec of BitTorrent protocol.
  7988. * src/SocketCore.{h, cc}
  7989. * src/PeerMessageUtil.cc
  7990. * test/SocketCoreTest.cc
  7991. * test/PeerMessageUtilTest.cc
  7992. * test/DHTConnectionImplTest.cc
  7993. Handle IPv4-mapped addresses.
  7994. * src/DHTNode.cc: Now identity is determined by node id.
  7995. * src/DHTMessageTrackerEntry.cc
  7996. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  7997. should handle it.
  7998. * src/DHTRoutingTableDeserializer.cc
  7999. * src/DHTMessageFactoryImpl.cc
  8000. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8001. Change the unit of --stop option from a minute to a second.
  8002. * src/usage_text.h
  8003. * src/DownloadEngineFactory.cc
  8004. * src/OptionHandlerFactory.cc
  8005. * src/message.h
  8006. * src/TimedHaltCommand.cc
  8007. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8008. Make listening socket non-block mode.
  8009. * src/FtpConnection.cc
  8010. * src/FtpNegotiationCommand.{h, cc}
  8011. * src/PeerListenCommand.cc
  8012. Fixed the bug that cause slow ftp negotiation.
  8013. * src/FtpNegotiationCommand.{h, cc}
  8014. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8015. Added basic tag to --enable-dht, --dht-listen-port option.
  8016. * src/HelpItemFactory.cc (createHelpItems)
  8017. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8018. Updated text.
  8019. * src/usage_text.h
  8020. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8021. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  8022. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8023. Determin _threadtholdSpeed in each constructor for
  8024. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  8025. * src/ActivePeerConnectionCommand.{h, cc}
  8026. * src/PeerReceiveHandshakeCommand.{h, cc}
  8027. * src/BtSetup.cc
  8028. * src/BtConstants.h
  8029. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8030. Added --bt-min-crypto-level and --bt-require-crypto options.
  8031. * src/OptionHandlerFactory.cc
  8032. * src/MSEHandshake.cc
  8033. * src/HelpItemFactory.cc
  8034. * src/option_processing.cc
  8035. * src/ReceiverMSEHandshakeCommand.cc
  8036. * src/prefs.h
  8037. * src/DefaultBtAnnounce.cc
  8038. * src/InitiatorMSEHandshakeCommand.cc
  8039. * src/usage_text.h
  8040. * test/MSEHandshakeTest.cc
  8041. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8042. Bump version number to 0.13.0b
  8043. * configure.ac
  8044. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8045. Updated doc.
  8046. * src/MessageDigestHelper.h:
  8047. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8048. Use raw message digest as a token instead of its hexadecimal
  8049. representation.
  8050. * src/DHTTokenTracker.cc (generateToken)
  8051. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8052. Added Message Stream Encryption(MSE) support.
  8053. Currently, aria2 accepts incoming connections with Obfuscation Header
  8054. and legacy BitTorrent Header and establishes connections with
  8055. Obfuscation Header first and if failed then retry with legacy
  8056. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  8057. choose ARC4. The new option to change the default behavior is planned.
  8058. For tracker extension, "supportcrypto=1" is added statically.
  8059. * src/PeerInitiateConnectionCommand.{h, cc}
  8060. * src/PeerConnection.{h, cc}
  8061. * src/HandleRegistry.h
  8062. * src/SocketCore.h
  8063. * src/PeerReceiveHandshakeCommand.{h, cc}
  8064. * src/BtRegistry.{h, cc}
  8065. * src/PeerListenCommand.cc
  8066. * src/InitiatorMSEHandshakeCommand.{h, cc}
  8067. * src/ReceiverMSEHandshakeCommand.{h, cc}
  8068. * src/MSEHandshake.{h, cc}
  8069. * src/ARC4Encryptor.h
  8070. * src/ARC4Decryptor.h
  8071. * src/LibgcryptARC4Encryptor.h
  8072. * src/LibgcryptARC4Decryptor.h
  8073. * src/LibgcryptARC4Context.h
  8074. * src/LibsslARC4Encryptor.h
  8075. * src/LibsslARC4Decryptor.h
  8076. * src/LibsslARC4Context.h
  8077. * src/DHKeyExchange.h
  8078. * src/LibgcryptDHKeyExchange.h
  8079. * src/LibsslDHKeyExchange.h
  8080. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  8081. * test/DefaultBtAnnounceTest.cc
  8082. * test/ARC4Test.cc
  8083. * test/DHKeyExchangeTest.cc
  8084. Removed prepareForRetry() because it is not used.
  8085. * src/PeerAbstractCommand.{h, cc}
  8086. * src/PeerInteractionCommand.{h, cc}
  8087. * src/PeerInitiateConnectionCommand.{h, cc}
  8088. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8089. Added the ability to load nodes from torrent file. These nodes are
  8090. added to the routing table when downloading that torrent.
  8091. * src/BtContext.h
  8092. * src/DefaultBtContext.{h, cc}
  8093. * src/DHTSetup.cc
  8094. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  8095. hostname and port pair, and resolves all of them.
  8096. * src/NameResolver.{h, cc}: Added reset().
  8097. * src/RequestGroup.cc
  8098. * test/DefaultBtContextTest.cc
  8099. * test/MockBtContext.h
  8100. Removed assert() from DefaultBtContext and throw exception instead.
  8101. * src/DefaultBtContext.cc
  8102. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8103. Fixed segmentation fault bug when exiting if dht is disabled.
  8104. * src/RequestGroup.cc
  8105. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8106. Fixed typo in log message and define the message in message.h
  8107. * src/TimedHaltCommand.cc
  8108. * src/message.h
  8109. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8110. Included RecoverableException.h to fix compilation error.
  8111. * test/DHTMessageFactoryImplTest.cc
  8112. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8113. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  8114. * test/DHTPingMessageTest.cc
  8115. * test/DHTGetPeersMessageTest.cc
  8116. * test/DHTFindNodeMessageTest.cc
  8117. * test/DHTAnnouncePeerMessageTest.cc
  8118. * test/MockDHTMessage.h
  8119. * test/MockDHTMessageFactory.h
  8120. * test/MockDHTMessageDispatcher.h: New class.
  8121. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8122. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  8123. virtual.
  8124. * src/DHTMessageDispatcher.h
  8125. * src/DHTMessageDispatcherImpl.{h, cc}
  8126. * src/DHTSetup.cc
  8127. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8128. Adding handling of DHT error message. Just log error message and
  8129. throw exception.
  8130. * src/DHTMessageFactoryImpl.cc
  8131. * test/DHTMessageFactoryImplTest.cc
  8132. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8133. Added handling of dynamic cast failure.
  8134. * src/DHTNodeLookupTask.cc
  8135. * src/DHTPeerLookupTask.cc
  8136. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8137. Added the ability to stop aria2 itself when given time has passed
  8138. from start. Use --stop option to specify time in minutes.
  8139. When 0 is given, this feature is disabled.
  8140. * src/OptionHandlerFactory.cc
  8141. * src/TimeBasedCommand.h: Make _interval protected scope.
  8142. * src/HelpItemFactory.cc
  8143. * src/option_processing.cc
  8144. * src/prefs.h
  8145. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  8146. before calling RequestGroupMan::fillRequestGroupFromReserver().
  8147. Without this modification, the result list shows "ERR" when aria2 is
  8148. stopped by --stop option. It should be "INPR".
  8149. * src/DownloadEngine.{h, cc}
  8150. * src/DownloadEngineFactory.cc
  8151. * src/usage_text.h
  8152. * src/TimedHaltCommand.{h, cc}: New class.
  8153. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8154. Bootstrap through node added by port message.
  8155. Currently bootstrap is executed if the number of buckets in routing
  8156. table is 1.
  8157. * src/BtPortMessage.{h, cc}
  8158. * src/DefaultBtMessageFactory.{h, cc}
  8159. * src/PeerInteractionCommand.cc
  8160. * test/BtPortMessageTest.cc
  8161. * test/MockDHTTask.h
  8162. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8163. Extract the Peer class's member variables, which are only needed after
  8164. PeerInteractionCommand, into PeerSessionResource class.
  8165. This class is instantiated in PeerInteractionCommand class's ctor and
  8166. released in its dtor.
  8167. This will make Peer class lightweight and uses less memory for peers
  8168. which are not connected and wait in the queue.
  8169. * src/PeerChokeCommand.cc
  8170. * src/PeerSessionResource.{h, cc}
  8171. * src/PeerInteractionCommand.cc
  8172. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  8173. * src/DefaultBtInteractive.cc
  8174. * src/BtPieceMessage.cc
  8175. * src/BtInterestedMessage.cc
  8176. * src/BtUnchokeMessage.cc
  8177. * src/DefaultPeerStorage.{h, cc}
  8178. * src/PeerInitiateConnectionCommand.cc
  8179. * src/ActivePeerConnectionCommand.cc
  8180. * src/BtNotInterestedMessage.cc
  8181. * src/DefaultBtMessageDispatcher.cc
  8182. * src/BtChokeMessage.cc
  8183. * src/BtRequestMessage.cc
  8184. * src/Peer.{h, cc}
  8185. * src/BtRegistry.h
  8186. * src/TrackerWatcherCommand.cc
  8187. * src/PeerReceiveHandshakeCommand.cc
  8188. * test/BtExtendedMessageTest.cc
  8189. * test/BtAllowedFastMessageTest.cc
  8190. * test/BtCancelMessageTest.cc
  8191. * test/DefaultPieceStorageTest.cc
  8192. * test/BtBitfieldMessageTest.cc
  8193. * test/BtHaveMessageTest.cc
  8194. * test/BtNotInterestedMessageTest.cc
  8195. * test/BtRequestMessageTest.cc
  8196. * test/PeerSessionResourceTest.cc
  8197. * test/DefaultBtMessageDispatcherTest.cc
  8198. * test/PeerTest.cc
  8199. * test/BtInterestedMessageTest.cc
  8200. * test/BtRejectMessageTest.cc
  8201. * test/BtChokeMessageTest.cc
  8202. * test/DefaultPeerStorageTest.cc
  8203. * test/BtHaveNoneMessageTest.cc
  8204. * test/BtHaveAllMessageTest.cc
  8205. * test/DefaultExtensionMessageFactoryTest.cc
  8206. * test/BtUnchokeMessageTest.cc
  8207. * test/DefaultBtMessageFactoryTest.cc
  8208. * test/HandshakeExtensionMessageTest.cc
  8209. * test/UTPexExtensionMessageTest.cc
  8210. * test/DefaultBtRequestFactoryTest.cc
  8211. * test/BtPieceMessageTest.cc
  8212. Removed typedef PeerStats.
  8213. * src/PeerStat.h
  8214. * src/SegmentMan.cc
  8215. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8216. Added std namespace to copy, remove_copy, back_inserter,
  8217. front_inserter.
  8218. * src/RequestGroupMan.cc
  8219. * src/DefaultPieceStorage.cc
  8220. * src/StreamFileAllocationEntry.cc
  8221. * src/BtFileAllocationEntry.cc
  8222. * src/RequestGroup.cc
  8223. * src/MetalinkEntry.cc
  8224. * src/DelegatingPeerListProcessor.cc
  8225. * src/DefaultBtRequestFactory.cc
  8226. * src/DefaultBtMessageDispatcher.cc
  8227. * src/version_usage.cc: Included <algorithm>
  8228. * src/main.cc
  8229. * src/MetalinkParserController.cc
  8230. * src/DefaultBtContext.cc
  8231. * src/DownloadEngineFactory.cc
  8232. * src/a2algo.h
  8233. Removed.
  8234. * test/StreamUriListParserTest.cc
  8235. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8236. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  8237. ActivePeerConnectionCommand when it is given and
  8238. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  8239. * src/ActivePeerConnectionCommand.{h, cc}
  8240. * src/BtSetup.cc
  8241. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8242. Only add socket to DownloadEngine's select routine when peer or
  8243. localhost is unchoked and interested. This lowers CPU usage a
  8244. little bit.
  8245. * src/PeerInteractionCommand.cc
  8246. * src/PeerAbstractCommand.{h, cc}
  8247. * src/BtInteractive.h
  8248. * src/DefaultBtInteractive.{h, cc}
  8249. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8250. Revert previous change because get_peers message is needed for
  8251. announce_peer anyway.
  8252. * src/DHTGetPeersCommand.cc
  8253. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8254. Request peers thought DHT only when download hasn't finished.
  8255. * src/DHTGetPeersCommand.cc
  8256. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8257. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  8258. * src/DHTBucketRefreshTask.{h, cc}
  8259. * src/DHTSetup.cc
  8260. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8261. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  8262. standard classes.
  8263. Included string.h where mem* function are used.
  8264. Added namespace aria2.
  8265. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8266. Create directory before saving DHT routing table.
  8267. Now ios::failure is now handled properly.
  8268. * src/DHTAutoSaveCommand.cc
  8269. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8270. Removed unnecessary cerr.
  8271. * src/DownloadEngine.cc
  8272. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8273. Catch exception inside DHTMessageReceiver::receiveMessage().
  8274. Log unknown message.
  8275. * src/DHTMessageReceiver.{h, cc}
  8276. * src/DHTMessageFactory.h
  8277. * src/DHTMessageFactoryImpl.{h, cc}
  8278. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  8279. * src/DHTInteractionCommand.cc
  8280. * src/DHTUnknownMessage.{h, cc}
  8281. * test/DHTUnknownMessageTest.cc
  8282. * test/MockDHTMessageFactory.h
  8283. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8284. Commented out ip address comparison because a host can have multiple
  8285. ip addresses and it is hard to predict the hostname is resolved into
  8286. which one.
  8287. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  8288. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8289. * po/Makefile.in: Removed since this is generated by configure.
  8290. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8291. Fixed compiler warning about redefinition of SIZE_MAX.
  8292. Use common.h instead of config.h directly here.
  8293. * src/Platform.{h, cc}
  8294. The check of ENABLE_NLS is made in gettext.h, so it is not required
  8295. here.
  8296. * common.h
  8297. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  8298. Updated gettext related files.
  8299. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  8300. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  8301. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8302. Added DHT functionality, compatible with mainline.
  8303. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  8304. You may need to specify entry point to DHT network using
  8305. --dht-entry-point. DHT uses UDP port to listen incoming message.
  8306. Use --dht-listen-port to specify port number. Make sure that your
  8307. firewall configuration can pass through UDP traffic to the port.
  8308. The routing table is saved in $HOME/.aria2/dht.dat.
  8309. * src/DHT*
  8310. * src/BNode.{h, cc}
  8311. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  8312. particular torrent.
  8313. * src/Data.cc: Rewritten ctor.
  8314. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  8315. --dht-entry-point.
  8316. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  8317. * src/RequestGroup.cc: Initialize DHT functionality. When download
  8318. ends, remove BtContext from DHTPeerAnnounceStorage.
  8319. * src/BtPortMessage.{h, cc}: Rewritten.
  8320. * src/message.h
  8321. * src/OptionHandlerImpl.cc
  8322. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  8323. --dht-entry-point.
  8324. * src/Dictionary.{h, cc} (remove): New function.
  8325. * src/prefs.h
  8326. * src/DefaultBtMessageFactory.h
  8327. * src/BtHandshakeMessage.cc
  8328. * src/ActivePeerConnectionCommand.cc
  8329. * src/SocketCore.{h, cc}: Added datagram socket support.
  8330. * src/DefaultBtMessageFactory.cc
  8331. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  8332. Create DHT commands.
  8333. * src/BtMessageFactory.h
  8334. * src/PeerMessageUtil.{h, cc}
  8335. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8336. Fixed the bug that log file is not written when configuration file doesn't exist.
  8337. This is caused by using Logger class before LogFactory is not configured.
  8338. BUG #1875079
  8339. * src/option_processing.cc
  8340. Warning message "configuration doesn't exist" is only printed when --conf is
  8341. given.
  8342. * src/option_processing.cc
  8343. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8344. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  8345. ShaVisitor is now deprecated and slated to be removed.
  8346. * src/DefaultBtContext.cc
  8347. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8348. Externalize message to message.h
  8349. * src/Platform.cc
  8350. * src/message.h
  8351. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8352. Set default domain and default path to cookie.
  8353. * src/HttpResponse.cc
  8354. * src/CookieBox.{h, cc}
  8355. * src/CookieParser.{h, cc}
  8356. * test/CookieParserTest.cc
  8357. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8358. Added --no-conf and --conf-path command-line option.
  8359. --no-conf option disables loading aria2.conf file.
  8360. --conf-path option changes the configuration file path. The default
  8361. file path is $HOME/.aria2/aria2.conf
  8362. Added a warning message when the configuration file is not found.
  8363. * src/HelpItemFactory.cc
  8364. * src/option_processing.cc
  8365. * src/prefs.h
  8366. * src/usage_text.h
  8367. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8368. Added the message to inform users that other help categories are
  8369. available in -h option.
  8370. * src/version_usage.cc
  8371. * src/TagContainer.{h, cc}
  8372. * test/TagContainerTest.cc
  8373. * src/TaggedItem.{h, cc}
  8374. * test/TaggedItemTest.cc
  8375. * src/HelpItem.h
  8376. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8377. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  8378. from PiecedSegment's ctor.
  8379. Previously Piece::getAllMissingBlockIndexes() is called from
  8380. PiecedSegment() but it is rather expensive since only first element is
  8381. used.
  8382. * src/PiecedSegment.cc
  8383. * src/Piece.{h, cc}
  8384. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8385. Rewritten get*Missing*Index functions. Now no need to allocate memory
  8386. each time these functions are called.
  8387. * src/BitfieldMan.{h, cc}
  8388. * test/BitfieldManTest.cc
  8389. * src/array_fun.h
  8390. * test/array_funTest.cc
  8391. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  8392. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  8393. filtered. Removed unnecessary cast to int32_t.
  8394. * src/BitfieldMan.{h, cc}
  8395. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8396. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  8397. payload length(4bytes) are received. This happens because lenbufLength
  8398. is not updated in this particular case and successive call of
  8399. receiveMessage() overwrites payload length with bytes recieved which
  8400. are payload body.
  8401. * src/PeerConnection.{h, cc}
  8402. * src/message.h
  8403. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8404. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  8405. peer if there are peers that have same ipaddr and port.
  8406. I've experiened segmentation fault and "pure virtual function was
  8407. called" error.
  8408. * src/Peer.h
  8409. * test/PeerTest.cc
  8410. * src/DefaultPeerStorage.cc
  8411. * test/DefaultPeerStorageTest.cc
  8412. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8413. Removed a call to isPowerOf() because it is no longer necessary here
  8414. and a request block is not always power of 2.
  8415. BUG#1866924
  8416. * src/PeerMessageUtil.cc (checkLength)
  8417. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8418. Fixed the bug that always first found Segment is removed from
  8419. usedSegmentEntries. Removed unused functions.
  8420. * src/SegmentMan.{h, cc}
  8421. * test/SegmentManTest.cc
  8422. Fixed the bug that ServerHost is not removed.
  8423. * src/RequestGroup.cc
  8424. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8425. Fixed the bug that SegmentMan::completeSegment() is not called
  8426. even if Segment is complete when --lowest-speed-limit is enabled.
  8427. BUG#1864525
  8428. * src/DownloadCommand.{h, cc}
  8429. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8430. Fixed: hash algorithm 'sha1' is always used.
  8431. * src/DownloadCommand.cc (validatePieceHash)
  8432. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8433. Added --enable-peer-exchange command-line option.
  8434. * src/OptionHandlerFactory.cc
  8435. * src/HelpItemFactory.cc
  8436. * src/option_processing.cc
  8437. * src/usage_text.h
  8438. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8439. Move extension from BtRuntime to ExtensionMessageFactory, because
  8440. extension can be specified per peer, not per torrent.
  8441. * src/DefaultBtInteractive.cc
  8442. * src/BtRuntime.h
  8443. * src/ExtendedMessagingAware.h
  8444. * src/ExtensionMessageFactory.h
  8445. * src/DefaultExtensionMessageFactory.cc
  8446. * test/DefaultExtensionMessageFactoryTest.cc
  8447. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8448. Added categorized option help. Specify category using --help option.
  8449. Also added the ability to search options in forward match.
  8450. * src/HelpItem.{h, cc}
  8451. * test/HelpItemTest.cc
  8452. * src/HelpItemFactory.{h, cc}
  8453. * src/TagContainer.{h, cc}
  8454. * test/TagContainerTest.cc
  8455. * src/option_processing.cc
  8456. * src/prefs.h
  8457. * src/TaggedItem.{h, cc}
  8458. * test/TaggedItemTest.cc
  8459. * src/version_usage.cc
  8460. * src/help_tags.h
  8461. * src/usage_text.h
  8462. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8463. Fixed segmentation fault when bad torrent metainfo is parsed.
  8464. Added dynamic_cast properly to detect the misconfiguration of metainfo
  8465. and then throw exception or skip it.
  8466. * src/DefaultBtContext.{h, cc}
  8467. * test/DefaultBtContextTest.cc
  8468. * src/AnnounceList.cc
  8469. * src/CompactPeerListProcessor.cc
  8470. * src/message.h
  8471. * src/DefaultBtAnnounce.{h, cc}
  8472. * test/DefaultBtAnnounceTest.cc
  8473. * src/BencodeVisitor.cc
  8474. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8475. Added missing "B"(=Byte). So now the message looks like this:
  8476. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  8477. * src/message.h (MSG_SHARE_RATIO_REPORT)
  8478. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8479. Show the seed ratio after torrent downloads.
  8480. For example, after torrent download completed and --seed-time and
  8481. --seed-ratio conditions are fulfilled, following message is printed
  8482. right after "Download complete: .....":
  8483. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  8484. * src/RequestGroupMan.cc
  8485. * src/RequestGroup.{h, cc}
  8486. * src/message.h
  8487. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8488. Remove a defunct control file. A defunct control file means that while
  8489. it exists, but the corresponding download file is missing.
  8490. After its removal, a download restarts from the beginning.
  8491. * src/RequestGroup.cc
  8492. * src/message.h
  8493. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8494. Allocate bitfield in Peer when it is really used. More specifically,
  8495. bitfield in Peer is allocated after the connection is established and
  8496. deallocated when the connection is dropped.
  8497. Since 2 parameters(piece length and total length) was removed from the
  8498. constructor of Peer class, many test classes were modified accordingly.
  8499. See svn log for more detailed information.
  8500. * src/PeerInteractionCommand.cc
  8501. * src/CompactPeerListProcessor.cc
  8502. * src/Peer.cc
  8503. * src/DefaultPeerListProcessor.cc
  8504. * src/PeerListenCommand.cc
  8505. * src/PeerReceiveHandshakeCommand.cc
  8506. Fixed memory leak
  8507. * src/Piece.cc
  8508. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8509. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  8510. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  8511. command-line options.
  8512. * src/option_processing.cc
  8513. * src/ActivePeerConnectionCommand.cc
  8514. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8515. Send have message to peer if it already has the piece.
  8516. * src/BtHaveMessage.{h, cc}
  8517. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8518. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  8519. port.
  8520. * src/DefaultPeerStorage.{h, cc}
  8521. * test/DefaultPeerStorageTest.cc
  8522. * src/HandshakeExtensionMessage.cc
  8523. * test/HandshakeExtensionMessageTest.cc
  8524. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  8525. * src/PeerStorage.h
  8526. * test/MockPeerStorage.h
  8527. * src/PeerListenCommand.cc
  8528. * src/PeerReceiveHandshakeCommand.cc
  8529. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8530. Added --metalink-enable-unique-protocol option.
  8531. * src/Metalink2RequestGroup.cc
  8532. * src/option_processing.cc
  8533. * src/prefs.h
  8534. * src/version_usage.cc
  8535. * doc/aria2c.1.txt
  8536. * doc/aria2c.1
  8537. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8538. Allow a peer in incomingPeer to be added peers.
  8539. * src/DefaultPeerStorage.cc
  8540. * test/DefaultPeerStorageTest.cc
  8541. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8542. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  8543. I could reproduce this bug in following procedure:
  8544. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  8545. 2. Restart aria2.
  8546. 3. You see the download stopped around 99%.
  8547. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8548. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  8549. If timeout is reached, then _nextCommand is unused and it may contains
  8550. segments and they won't be canceled. Actually, timeout is not needed
  8551. here because if the server dropped connection, then retry is made.
  8552. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8553. Added uTorrent compatible Peer Exchange.
  8554. * src/BencodeVisitor.{h, cc}
  8555. * test/BencodeVisitorTest.cc
  8556. * src/BtConstants.h
  8557. * src/BtContext.h: Added 'private' flag.
  8558. * src/BtExtendedMessage.{h, cc}
  8559. * test/BtExtendedMessageTest.cc
  8560. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  8561. reserved field.
  8562. * test/BtHandshakeMessageTest.cc
  8563. * src/BtMessageFactory.h
  8564. * src/BtRegistry.h
  8565. * src/BtRuntime.h: This class holds default extension message IDs for
  8566. aria2. By default, aria2 uses ID 8 for ut_pex.
  8567. * src/DefaultBtContext.cc
  8568. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  8569. When it is true, aria2 enables ut_pex. This value is set by
  8570. PeerInteractionCommand.
  8571. * src/DefaultBtMessageFactory.{h, cc}
  8572. * test/DefaultBtMessageFactoryTest.cc
  8573. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  8574. handling to DefaultBtInteractive class.
  8575. * src/DefaultExtensionMessageFactory.{h, cc}
  8576. * test/DefaultExtensionMessageFactoryTest.cc
  8577. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  8578. the container(peers and incomingPeers. The equality is determined by
  8579. Peer::id).
  8580. * test/DefaultPeerStorageTest.cc
  8581. * src/ExtensionMessage.h
  8582. * test/MockExtensionMessage.h
  8583. * src/ExtensionMessageFactory.h
  8584. * test/MockExtensionMessageFactory.h
  8585. * src/HandshakeExtensionMessage.{h, cc}
  8586. * test/HandshakeExtensionMessageTest.cc
  8587. * src/MetaEntry.h
  8588. * src/Peer.{h, cc}
  8589. * src/PeerInteractionCommand.cc
  8590. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  8591. addIncomingPeer.
  8592. * src/PeerMessageUtil.{h, cc}
  8593. * src/PeerObject.h
  8594. * src/UTPexExtensionMessage.{h, cc}
  8595. * test/UTPexExtensionMessageTest.cc
  8596. * src/message.h
  8597. * src/prefs.h
  8598. Fixed the bug that returns incomplete data when it contains null
  8599. character. A convenient constructor was also added.
  8600. * src/Data.{h, cc}
  8601. Rewritten.
  8602. * src/CompactPeerListProcessor.cc
  8603. Fixed typos.
  8604. * src/message.h
  8605. * src/MetaFileUtil.cc
  8606. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8607. Added "Status Legend" label to the explanation text of 'stat' in
  8608. download result and moved it to the last. BUG#1848214
  8609. * src/RequestGroupMan.cc
  8610. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8611. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  8612. * src/Makefie.am
  8613. * test/Makefile.am
  8614. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8615. Fixed the bug that prevents aria2 from loading cookie file when expire
  8616. value is greater than 2^31-1. BUG#1851066
  8617. * src/CookieBoxFactory.cc
  8618. * test/CookieBoxFactoryTest.cc
  8619. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8620. Fixed possible memory leak when an exception is thrown.
  8621. * src/XML2SAXMetalinkProcessor.cc
  8622. Added Expat support. If both libxml2 and Expat are installed, then
  8623. libxml2 is used by default.
  8624. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  8625. ExpatMetalinkProcessor according to the configuration.
  8626. * src/ExpatMetalinkProcessor.{h, cc}
  8627. * src/main.cc: Removed libxml2 specific header and init/free function.
  8628. * src/MetalinkProcessorFactory.{h, cc}
  8629. * src/MetalinkHelper.cc
  8630. * src/Metalinker.h: Removed unnecessary libxml2 header.
  8631. * src/MetalinkProcessor.h
  8632. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  8633. MetalinkProcessorTest is used instead.
  8634. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  8635. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  8636. MetalinkProcessorFactory::newInstance().
  8637. * m4/libexpat.m4
  8638. * configure.ac: Added configuration options for libexpat.
  8639. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8640. Disabled -s option in metalink download.
  8641. * src/Metalink2RequestGroup.cc
  8642. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8643. If several protocols are available for a mirror in metalink file,
  8644. aria2 now use one of them. --metalink-preferred-protocol option was
  8645. added to specify the preference of protocol.
  8646. * src/AbstractCommand.cc
  8647. * src/OptionHandlerFactory.cc
  8648. * src/ServerHost.{h, cc}
  8649. * src/Metalink2RequestGroup.cc
  8650. * src/RequestGroup.{h, cc}
  8651. * test/RequestGroupTest.cc
  8652. * src/option_processing.cc
  8653. * src/prefs.h
  8654. * src/HttpResponseCommand.cc
  8655. * src/MetalinkResource.{h, cc}
  8656. * src/FtpNegotiationCommand.cc
  8657. * src/MetalinkEntry.{h, cc}
  8658. * src/MetalinkEntryTest.cc
  8659. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8660. Code cleanup and added debug log.
  8661. * src/PeerConnection.cc
  8662. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8663. Compiler error fix: applied the patch by Tiziano Mueller
  8664. * src/RequestGroup.cc
  8665. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8666. Fixed the bug: only first announce URL is tried in AnnounceTier,
  8667. in stopped and completed event.
  8668. * src/AnnounceList.{h, cc}
  8669. * test/AnnounceListTest.cc
  8670. * src/DefaultBtAnnounce.cc
  8671. * test/DefaultBtAnnounceTest.cc
  8672. Sorted URLs.
  8673. * test/Metalink2RequestGroupTest.cc
  8674. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8675. Removed unnecessary string copy. Updated doc and corrected indentation.
  8676. * src/Base64.cc
  8677. Fixed compilation warnings
  8678. * test/DataTest.cc
  8679. * test/HttpRequestTest.cc
  8680. * test/MetaFileUtilTest.cc
  8681. * test/RequestTest.cc
  8682. * Release 0.12.0
  8683. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8684. Updated translations
  8685. * po/{de,fr,ja,nl,ru}.po
  8686. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  8687. translations. Many thanks to translators.
  8688. * po/{ca,es,it,pt_BR,sv}.po
  8689. * po/LINGUAS
  8690. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8691. Added a notice about URL
  8692. * src/version_usage.cc
  8693. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  8694. Fixed the bug#1845750; CTRL+C does not stop torrent.
  8695. aria2 repeatedly sends stopped request when tracker returns error code.
  8696. * src/AnnounceList.cc
  8697. * test/AnnounceListTest.cc
  8698. * src/AnnounceTier.h
  8699. Added a message when ctrl-c is hit.
  8700. Now second ctrl-c is also handled in signal handler.
  8701. * src/RequestGroupMan.{h, cc}
  8702. * src/RequestGroup.{h, cc}
  8703. * src/MultiUrlRequestInfo.cc
  8704. * src/DownloadEngine.cc
  8705. * src/TrackerWatcherCommand.cc
  8706. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8707. Code cleanup
  8708. * src/Base64.cc (encode)
  8709. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8710. Changed Direct/IO enable/disable procesure in file allocation routine.
  8711. * src/SingleFileAllocationIterator.cc
  8712. (SingleFileAllocationIterator):
  8713. Disable directIO if offset is not multiple of 512.
  8714. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  8715. * src/MultiFileAllocationIterator.cc (allocateChunk):
  8716. Enable created SingleFileAllocationIterator's directIO.
  8717. * src/FileAllocationEntry.cc
  8718. (FileAllocationEntry): Enable directIO here.
  8719. (~FileAllocationEntry): Disable directIO here.
  8720. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8721. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  8722. * src/Peer.{h, cc}
  8723. * src/DefaultPieceStorage.cc
  8724. * test/DefaultPieceStorageTest.cc
  8725. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8726. Rewritten direct I/O support routine
  8727. * src/SingleFileAllocationIterator.cc
  8728. * src/MultiDiskAdaptor.{h, cc}
  8729. * src/ByteArrayDiskWriter.h
  8730. * src/AbstractSingleDiskAdaptor.h
  8731. * src/AbstractDiskWriter.cc
  8732. * src/DefaultPieceStorage.cc
  8733. * src/DiskWriter.h
  8734. * src/BinaryStream.h
  8735. * src/IteratableChunkChecksumValidator.cc
  8736. * src/IteratableChecksumValidator.cc
  8737. * src/CheckIntegrityEntry.cc
  8738. * src/FileAllocationEntry.cc
  8739. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8740. Fixed typo
  8741. * src/version_usage.cc
  8742. Updated doc
  8743. * doc/aria2c.1.txt
  8744. * doc/aria2c.1
  8745. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8746. Fixed compile error without message digest support.
  8747. * src/FileMetalinkParserState.cc
  8748. * src/MetalinkParserController.{h, cc}
  8749. * test/XML2SAXMetalinkProcessorTest.cc
  8750. * test/MetalinkParserControllerTest.cc
  8751. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8752. Enable direct I/O support in checksum checking.
  8753. * src/IteratableChunkChecksumValidator.{h, cc}
  8754. * test/IteratableChunkChecksumValidatorTest.cc
  8755. * src/CheckIntegrityEntry.cc
  8756. * src/PieceHashCheckIntegrityEntry.cc
  8757. * src/IteratableChecksumValidator.{h, cc}
  8758. * src/BtCheckIntegrityEntry.cc: Added doc.
  8759. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8760. Added --allow-piece-length-change option.
  8761. * src/DefaultBtProgressInfoFile.cc
  8762. * test/DefaultBtProgressInfoFileTest.cc
  8763. * src/OptionHandlerFactory.cc
  8764. * src/option_processing.cc
  8765. * src/prefs.h
  8766. * src/version_usage.cc
  8767. * doc/aria2c.1.txt
  8768. * doc/aria2c.1
  8769. Fixed: duplicated result entry appears when exception is thrown in
  8770. RequestGroup::createInitiateConnectionCommand().
  8771. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  8772. Add RequestGroup to _requestGroup after RequetGroup::
  8773. createInitiateConnectionCommand() succeeds.
  8774. Externalized message
  8775. * src/XML2SAXMetalinkProcessor.cc
  8776. * src/message.h
  8777. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8778. Forced download abort when received negative response from http/ftp
  8779. server.
  8780. * src/HttpResponseCommand.cc
  8781. * src/FtpNegotiationCommand.cc
  8782. * src/HttpResponse.cc
  8783. * src/FtpConnection.cc
  8784. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8785. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  8786. the predecessor, Xml2MetalinkParser class.
  8787. I tested them against 94KB metalink file with 1234 chunk checksums.
  8788. The new one parsed it in 22msec, while it took 6000msec with old one.
  8789. * src/XML2SAXMetalinkProcessor.{h, cc}
  8790. * test/XML2SAXMetalinkProcessorTest.cc
  8791. * src/MetalinkParserController.{h, cc}
  8792. * test/MetalinkParserControllerTest.cc
  8793. * src/MetalinkParserState.h: Also added 16 subclasses.
  8794. * src/main.cc
  8795. * src/Metalink2RequestGroup.cc
  8796. * src/MetalinkHelper.cc
  8797. * src/MetalinkEntry.cc
  8798. * src/ChunkChecksum.h
  8799. Rewritten Base64 class for better performance.
  8800. * src/Base64.{h, cc}
  8801. * test/Base64Test.cc
  8802. * src/HttpRequest.cc
  8803. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8804. Fixed the bug#1841757: aria2 will connect to server to only get
  8805. file size.
  8806. * src/StreamFileAllocationEntry.cc
  8807. * src/option_processing.cc
  8808. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  8809. downloads.
  8810. * src/FtpNegotiationCommand.cc
  8811. Suppressed wrong message when finding PreDownloadHandler
  8812. * src/RequestGroup.cc
  8813. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8814. Updated usage
  8815. * src/version_usage.cc
  8816. Updated man page
  8817. * doc/aria2c.1.txt
  8818. * doc/aria2c.1
  8819. Updated po files
  8820. * po/aria2c.pot
  8821. * po/*.po
  8822. * po/*.gmo
  8823. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8824. Eliminated g++-4.2 warning
  8825. * src/DownloadHandlerConstants.{h, cc}
  8826. * src/Util.cc
  8827. * test/MetaFileUtilTest.cc
  8828. * test/PStringBuildVisitorTest.cc
  8829. Fixed bug: --check-integrity doesn't work for multi file torrent.
  8830. * src/RequestGroup.cc
  8831. * src/BtCheckIntegrityEntry.cc
  8832. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8833. Fixed a2io.h
  8834. * src/a2io.h
  8835. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8836. Added direct I/O support. The current implementation uses O_DIRECT,
  8837. which is not posix standard and is tested on linux 2.6.21.
  8838. Currently only file allocation uses direct I/O.
  8839. * src/SingleFileAllocationIterator.{h, cc}
  8840. * test/SingleFileAllocationIteratorTest.cc
  8841. * src/MultiFileAllocationIterator.{h, cc}
  8842. * test/MultiFileAllocationIteratorTest.cc
  8843. * src/BinaryStream.h
  8844. * src/DiskWriter.h
  8845. * src/AbstractDiskWriter.{h, cc}
  8846. * src/ByteArrayDiskWriter.h
  8847. * src/DiskAdaptor.h
  8848. * src/AbstractSingleDiskAdaptor.{h, cc}
  8849. * src/MultiDiskAdaptor.{h, cc}
  8850. * src/FileAllocationEntry.cc
  8851. * src/Util.{h, cc}
  8852. * src/OptionHandlerFactory.cc
  8853. * src/prefs.h
  8854. * src/version_usage.cc
  8855. * src/option_processing.cc
  8856. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  8857. handleException.
  8858. * src/MultiFileAllocationIterator.cc
  8859. Added EINTR handling
  8860. * src/SocketCore.cc
  8861. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8862. Updated usage
  8863. * src/version_usage.cc
  8864. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8865. Applied Ross's patch for MinGW port.
  8866. * src/DownloadEngine.h
  8867. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8868. Set Content-Type to SingleFileDownloadContext when http response is
  8869. received.
  8870. * src/HttpResponseCommand.cc
  8871. * src/HttpResponse.{h, cc}
  8872. * test/HttpResponseTest.cc
  8873. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8874. Rewritten to add content-type support.
  8875. * src/DownloadHandler.{h, cc}
  8876. * src/BtPostDownloadHandler.{h, cc}
  8877. * test/BtPostDownloadHandlerTest.cc
  8878. * src/MetalinkPostDownloadHandler.{h, cc}
  8879. * test/MetalinkPostDownloadHandlerTest.cc
  8880. * src/PostDownloadHandler.{h, cc}
  8881. * src/DownloadHandlerConstants.{h, cc}
  8882. * src/RequestGroup.cc
  8883. * src/HttpResponseCommand.cc
  8884. * src/FtpNegotiationCommand.cc
  8885. * src/SingleFileDownloadContext.{h, cc}
  8886. * src/RequestGroup.h
  8887. * src/RequestGroupCriteria.h
  8888. * src/ContentTypeRequestGroupCriteria.h
  8889. Added 'mem' option value for --follow-metalink, --follow-torrent.
  8890. If it is give, metalink/torrent file is not written to the disk, but
  8891. just is kept in memory. Parsing is occurred on memory.
  8892. * src/MetalinkHelper.{h, cc}
  8893. * src/MetalinkProcessor.h
  8894. * src/Xml2MetalinkProcessor.{h, cc}
  8895. * test/Xml2MetalinkProcessorTest.cc
  8896. * src/DownloadHandlerFactory.{h, cc}
  8897. * test/DownloadHandlerFactoryTest.cc
  8898. * src/PreDownloadHandler.{h, cc}
  8899. * src/OptionHandlerFactory.cc
  8900. * src/DefaultBtContext.{h, cc}
  8901. * test/DefaultBtContextTest.cc
  8902. * src/version_usage.cc
  8903. * src/Metalink2RequestGroup.{h, cc}
  8904. * src/RequestGroup.{h, cc}
  8905. * src/a2functional.h
  8906. * test/a2functionalTest.cc
  8907. * src/MemoryBufferPreDownloadHandler.{h, cc}
  8908. * src/OptionHandlerImpl.h
  8909. * src/prefs.h
  8910. * src/Util.{h, cc}
  8911. * test/UtilTest.cc
  8912. Keep DownloadResult rather than RequestGroup after downloads to reduce
  8913. memory usage.
  8914. * src/RequestGroupMan.{h, cc}
  8915. * src/DownloadEngine.cc
  8916. * src/BtDependency.{h, cc}: Changed the type of dependee from
  8917. WeakHandle to SharedHandle because WeakHandle could be null.
  8918. * src/RequestGroup.{h, cc}
  8919. * src/DownloadEngineFactory.cc
  8920. * src/DownloadResult.h
  8921. Set totalLength after download finished
  8922. * src/UnknownLengthPieceStorage.{h, cc}
  8923. Keep torrent file specified in metalink in memory.
  8924. * src/Metalink2RequestGroup.cc
  8925. * src/BtDependency.cc
  8926. * src/TrueRequestGroupCriteria.h
  8927. Fixed the bug: seekg is used where seekp should be used.
  8928. * src/ByteArrayDiskWriter.cc
  8929. * test/ByteArraydiskWriterTest.cc
  8930. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8931. Fixed syntax error
  8932. * test/SequenceTest.cc
  8933. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8934. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  8935. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  8936. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  8937. * src/RequestGroup.cc (downloadFinishedByFileLength)
  8938. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8939. Added the check to see whether ares_host_callback accepts timeouts
  8940. with c-ares; only c-ares 1.5.0 or newer accepts it.
  8941. * src/NameResolver.{h, cc}
  8942. * m4/libcares.m4
  8943. * configure.ac: Set C++ for language choice.
  8944. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8945. Fixed: compilation fails without c-ares/ares
  8946. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  8947. Generate http/ftp commands only when download is incomplete.
  8948. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  8949. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8950. Corrected typo. Examples are removed since they are available in man
  8951. page.
  8952. * src/version_usage.cc
  8953. Updated man page.
  8954. * doc/aria2c.1
  8955. * doc/aria2c.1.txt
  8956. * doc/makeman: Commented out sed command.
  8957. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8958. Throw DlAbortEx when a remote file is not found.
  8959. * src/HttpResponse.cc
  8960. * src/FtpNegotiationCommand.cc
  8961. * src/message.h
  8962. Overwrite an existing file if --allow-overwrite=true is given.
  8963. * src/RequestGroup.cc
  8964. Removed unused functions
  8965. * src/AbstractCommand.h
  8966. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8967. Removed 'extern' from 'extern typedef ...' in src/*.h
  8968. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8969. Updated usage
  8970. * src/version_usage.cc
  8971. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8972. Trim announce URL
  8973. * src/DefaultBtContext.cc
  8974. * test/ShaVisitorTest.cc
  8975. Trim argument s. Give trimed s to exception constructor.
  8976. * src/Util.cc (parseInt)(parseLLInt)
  8977. * test/UtilTest.cc
  8978. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8979. Set precision back to 1.
  8980. * src/ConsoleStatCalc.cc (calculateStat)
  8981. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8982. Replaced strtol with Util::parseInt
  8983. * src/ChunkedEncoding.cc
  8984. * src/HttpConnection.cc
  8985. * src/CookieBoxFactory.cc
  8986. * src/ParameterizedStringParser.cc
  8987. * src/Util.cc
  8988. * test/UtilTest.cc
  8989. * test/OptionHandlerTest.cc
  8990. * src/Request.cc
  8991. Throw exception when empty string is given. The message for exception
  8992. changed.
  8993. * src/Util.cc (parseInt)(parseLLInt)
  8994. * src/message.h
  8995. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8996. Set precision to 2 because share ratio is rounded into 1.0 if precision
  8997. set to 1.
  8998. * src/ConsoleStatCalc.cc (calculateStat)
  8999. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9000. Preallocate non-requested file which is adjacent forward to requested
  9001. file('requested' files means the files given in --select-file option)
  9002. if they share a same piece.
  9003. This fixes long pause in the file system which doesn't support sparse
  9004. files like FAT32 while downloading.
  9005. * src/MultiFileAllocationIterator.{h, cc}
  9006. * test/MultiFileAllocationIteratorTest.cc
  9007. * src/FileEntry.{h, cc}
  9008. Removed unused _option.
  9009. * src/MultiDiskAdaptor.h
  9010. * test/MultiDiskAdaptorTest.cc
  9011. * src/DefaultPieceStorage.cc
  9012. Set the default value of --seed-ratio to 1.0.
  9013. If 0.0 is given, then seeding continues regardless of share ratio.
  9014. * src/version_usage.cc
  9015. * src/option_processing.cc
  9016. * src/BtSetup.cc
  9017. * doc/aria2c.1.txt
  9018. * doc/aria2c.1
  9019. Fixed: Selective download is not working in BitTorrent
  9020. * src/RequestGroup.cc
  9021. Introduced Sequence class. Use this instead of Util::unfoldRange()
  9022. * src/PieceStorage.h
  9023. * test/MockPieceStorage.h
  9024. * src/UnknownLengthPieceStorage.h
  9025. * src/DefaultPieceStorage.{h, cc}
  9026. * src/Metalink2RequestGroup.cc
  9027. * src/RequestGroup.cc
  9028. * src/Sequence.h
  9029. * test/SequenceTest.cc
  9030. * src/IntSequence.h
  9031. * src/message.h
  9032. * src/Util.{h, cc}
  9033. * test/UtilTest.cc
  9034. Added new function 'parse' to catch exception thrown by subclass's
  9035. parseArg
  9036. * src/OptionHandler.h
  9037. * src/OptionParser.cc
  9038. * src/NameMatchOptionHandler.h
  9039. * src/OptionHandlerImpl.h
  9040. * test/OptionHandlerTest.cc
  9041. Added IntegerRangeOptionHandler. Used for --listen-port and
  9042. --select-file. Now --listen-port accepts range of port.
  9043. * src/OptionHandlerFactory.cc
  9044. * src/version_usage.cc
  9045. * src/OptionHandlerImpl.h
  9046. * src/option_processing.cc
  9047. * src/BtSetup.cc
  9048. * src/PeerListenCommand.{h, cc}
  9049. * doc/aria2c.1.txt
  9050. * doc/aria2c.1
  9051. Implemented operator< for Exception class to provide easy way to print
  9052. exception stack trace.
  9053. * src/Exception.{h, cc}
  9054. * src/main.cc
  9055. * src/option_processing.cc
  9056. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9057. * src/version_usage.cc
  9058. (showVersion): Reworked.
  9059. (showUsage): Added examples.
  9060. Removed Hint for total length and file name.
  9061. * src/Metalink2RequestGroup.cc
  9062. * src/RequestGroup.{h, cc}
  9063. * src/HttpResponseCommand.cc
  9064. * src/FtpNegotiationCommand.cc
  9065. Now --follow-torrent and --follow-metalink option work properly.
  9066. * src/RequestGroup.cc
  9067. Updated man page
  9068. * doc/aria2c.1.txt
  9069. * doc/aria2c.1
  9070. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9071. Removed.
  9072. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  9073. Use Segment::operator==()
  9074. * src/HttpConnection.cc
  9075. * src/Segment.h
  9076. Updated usage
  9077. * src/version_usage.cc
  9078. Added EINTR treatment.
  9079. * src/SocketCore.cc
  9080. * src/AbstractDiskWriter.cc
  9081. Rewritten.
  9082. * src/Util.cc (rangedFileCopy)
  9083. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9084. Fixed typo.
  9085. * src/version_usage.cc
  9086. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9087. Implemented. Now -c option works fine.
  9088. * src/DefaultPieceStorage.cc (markPiecesDone)
  9089. * test/DefaultPieceStorageTest.cc
  9090. Removed.
  9091. * src/SegmentMan.{h, cc}
  9092. (markAllPiecesDone)
  9093. (markPieceDone)
  9094. Synchronized po files with
  9095. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  9096. * src/fr.po
  9097. * src/ru.po
  9098. * src/de.po
  9099. * src/ja.po
  9100. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9101. Added ifdef and some modifications to compile without BitTorrent,
  9102. Metalink, MessageDigest
  9103. support.
  9104. * src/PieceHashCheckIntegrityEntry.cc
  9105. * src/MetalinkEntry.h
  9106. * src/version_usage.cc
  9107. * src/main.cc
  9108. * src/DownloadEngine.{h, cc}
  9109. * src/Metalink2RequestGroup.cc
  9110. * src/Peer.cc
  9111. * src/RequestGroup.cc
  9112. * src/MetalinkHelper.cc
  9113. * test/DefaultPieceStorageTest.cc
  9114. * test/MetalinkPostDownloadHandlerTest.cc
  9115. * test/Metalink2RequestGroupTest.cc
  9116. Hide TOTAL SPD when all downloads complete.
  9117. * src/ConsoleStatCalc.cc
  9118. Log target system information.
  9119. * src/main.cc
  9120. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9121. Now --metalink-location accepts a comma-deliminated list of locations.
  9122. * src/MetalinkEntry.{h, cc}
  9123. * test/MetalinkEntryTest.cc
  9124. * src/version_usage.cc
  9125. * src/Metalink2RequestGroup.cc
  9126. * src/Xml2MetalinkProcessor.cc
  9127. * test/Xml2MetalinkProcessorTest.cc
  9128. * doc/aria2c.1.txt
  9129. * doc/aria2c.1
  9130. * src/Util.cc (toUpper)(toLower): Rewritten.
  9131. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9132. Added the ability to detect duplicate download entry which is about to
  9133. download the same file other RequestGroup is downloading.
  9134. * src/RequestGroup.cc
  9135. * src/HttpResponseCommand.cc
  9136. * src/FtpNegotiationCommand.cc
  9137. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9138. Recalculates download progress when loading a control file,
  9139. if the piece length of DownloadContext is different from the one saved
  9140. in the control file. Currently in-flight pieces are ignored.
  9141. * src/DefaultBtProgressInfoFile.cc
  9142. * test/DefaultBtProgressInfoFileTest.cc
  9143. * src/Util.{h, cc}
  9144. * test/UtilTest.cc
  9145. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9146. Do not rotate tiers in announce-list.
  9147. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  9148. AnnounceList::allTiersFailed() used instead to detect whether all
  9149. tiers are tried and failed.
  9150. * test/DefaultBtAnnounceTest.cc
  9151. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  9152. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  9153. * test/AnnounceListTest.cc
  9154. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  9155. clause. Catch RecoverableException instead of DlRetryEx instead.
  9156. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9157. Implemented checksum validation feature(1 checksum for each file)
  9158. The validation takes place after the download.
  9159. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  9160. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  9161. * src/CheckIntegrityCommand.cc: Changed log message.
  9162. * src/Metalink2RequestGroup.cc: Set checksum to
  9163. SingleFileDownloadContext.
  9164. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  9165. PieceHashCheckIntegrity class.
  9166. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  9167. PieceHashCheckIntegrity class.
  9168. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  9169. * src/IteratableValidator.h: New class.
  9170. * src/message.h
  9171. * src/CheckIntegrityEntry.{h, cc}
  9172. * src/IteratableChunkChecksumValidator.{h, cc}
  9173. * src/SingleFileDownloadContext.h
  9174. * src/DownloadCommand.cc
  9175. --allow-overwrite=true is no longer needed to check file integrity
  9176. before download in BitTorrent download.
  9177. * src/RequestGroup.cc (getInitialCommand)
  9178. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  9179. throws exception.
  9180. * src/RequestGroupMan.cc (getInitialCommands)
  9181. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9182. urlencode the given url inside Request::parseUrl(...)
  9183. * src/Request.{h, cc}
  9184. * src/Util.{h, cc}
  9185. * test/RequestTest.cc
  9186. Removed #!metalink3! notation support because it is deleted from
  9187. the metalink specification.
  9188. * src/Request.{h, cc}
  9189. * test/RequestTest.cc
  9190. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9191. Don't connect server before checking file integrity at startup, if
  9192. filesize and output file path are known.
  9193. * src/AbstractCommand.cc
  9194. * src/StreamFileAllocationEntry.cc
  9195. * src/Metalink2RequestGroup.cc
  9196. * src/RequestGroup.{h, cc}
  9197. * src/HttpResponseCommand.cc
  9198. * src/FtpNegotiationCommand.cc
  9199. Added DownloadFailureException. If it is thrown, RequestGroup should
  9200. halt.
  9201. * src/AbstractCommand.cc
  9202. * src/DownloadFailureException.h
  9203. * src/RequestGroup.cc
  9204. Catch RecoverableException, instead of DlAbortEx.
  9205. * src/RequestGroupMan.cc
  9206. * src/FillRequestGroupCommand.cc
  9207. * src/MetaFileUtil.cc
  9208. * src/IteratableChunkChecksumValidator.cc
  9209. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  9210. getGID())
  9211. * src/CheckIntegrityCommand.cc
  9212. * src/message.h
  9213. Print gid instead of idx.
  9214. * src/RequestGroupMan.cc
  9215. Removed exception throwers declaration.
  9216. * src/DirectDiskAdaptor.{h, cc}
  9217. * src/SocketCore.{h, cc}
  9218. * src/MultiDiskAdaptor.{h, cc}
  9219. * src/HttpConnection.{h, cc}
  9220. * src/HttpResponse.{h, cc}
  9221. * src/DiskAdaptor.{h, cc}
  9222. * src/CopyDiskAdaptor.{h, cc}
  9223. * src/MultiDiskAdaptor.{h, cc}
  9224. * src/HttpHeaderProcessor.{h, cc}
  9225. * src/AbstractSingleDiskAdaptor.{h, cc}
  9226. * src/Util.{h, cc}
  9227. * test/UtilTest.cc
  9228. * src/DefaultDiskWriter.{h, cc}
  9229. * src/FtpConnection.{h, cc}
  9230. * src/AbstractDiskWriter.{h, cc}
  9231. Removed duplicate code.
  9232. * src/StreamCheckIntegrityEntry.cc
  9233. Removed unnecessary include.
  9234. * src/DiskWriter.h
  9235. Included Exception.h
  9236. * src/option_processing.cc
  9237. Included 2 files and added doc
  9238. * src/TrackerWatcherCommand.cc
  9239. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  9240. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9241. Changed CheckIntegrityEntry interface so that it can define
  9242. the action when all the chunk checksums are valid.
  9243. * src/CheckIntegrityEntry.h
  9244. * src/StreamCheckIntegrityEntry.{h, cc}
  9245. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  9246. are valid, then aira2 goes to seeding mode. Sometimes it is better
  9247. to exit rather than doing seeding. So, it would be good to toggle this
  9248. behavior.
  9249. * src/CheckIntegrityCommand.cc
  9250. * src/AbstractCommand.cc
  9251. * src/RequestGroup.cc
  9252. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9253. Reflect the download length of in-flight pieces.
  9254. It makes the download length readout more precise.
  9255. * src/DefaultPieceStorage.{h, cc}
  9256. * test/DefaultPieceStorageTest.cc
  9257. * src/a2functional.h
  9258. * test/a2functionalTest.cc
  9259. Lower CPU load when --max-download-limit is used.
  9260. There is up and down in speed indicator when enabling
  9261. http-pipelining but a download goes well. I think the problem is that
  9262. because http-pipelining is enabled, DownloadCommand is created for
  9263. each segment and in its constructor, PeerStat::downloadStart() is
  9264. called. In PeerStat::downloadStart(), speed calculation object is
  9265. reseted, which makes download speed zero.
  9266. * src/DownloadCommand.cc
  9267. Rewritten using accumulate.
  9268. * src/RequestGroupMan.cc (calculateStat)
  9269. Code clearnup.
  9270. * src/FtpNegotiationCommand.cc
  9271. * src/HttpResponseCommand.cc
  9272. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9273. Fixed: Can not resume: aria2 reports download already finished.
  9274. * src/AbstractCommand.{h, cc}
  9275. * src/HttpResponseCommand.cc
  9276. * src/FtpNegotiateCommand.cc
  9277. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9278. Now a file is stored in the directory specified in .metalnk file
  9279. (file[@name]).
  9280. * src/Metalink2RequestGroup.cc
  9281. Create the directory structure when opening the file if it doesn't
  9282. exist.
  9283. * src/AbstractDiskWriter.cc
  9284. * src/Util.{h, cc}
  9285. * src/File.h
  9286. * test/UtilTest.cc
  9287. Removed file name comparison
  9288. * src/Metalink2RequestGroup.cc
  9289. * src/HttpResponseCommand.cc
  9290. Rewritten using Util::mkdirs()
  9291. * src/FileEntry.cc (setupDir)
  9292. * test/FileEntryTest.cc
  9293. Updated doc
  9294. * src/SingleFileDownloadContext.h
  9295. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9296. Now SleepCommand dispatches nextCommand when halt is requested.
  9297. It avoids a possible long wait after hitting CTRL-C.
  9298. * src/SleepCommand.{h, cc}
  9299. * src/RequestGroupAware.{h, cc}
  9300. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9301. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  9302. to open listen port, then remove the port number from the tracker
  9303. request.
  9304. * src/DefaultBtAnnounce.cc
  9305. * test/DefaultBtAnnounceTest.cc
  9306. * test/MockPieceStorage.h
  9307. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  9308. them more testable.
  9309. * src/DefaultBtAnnounce.{h, cc}
  9310. * src/DefaultBtContext.{h, cc}
  9311. * src/Util.{h, cc}
  9312. * test/DefaultBtAnnounceTest.cc
  9313. * test/DefaultBtContextTest.cc
  9314. * test/UtilTest.cc
  9315. Added 'B' to upload bytes readout.
  9316. * src/ConsoleStatCalc.cc
  9317. Now the listen port for BitTorrent download is opened when it is
  9318. needed.
  9319. * src/DownloadEngineFactory.cc
  9320. * src/BtSetup.{h, cc}
  9321. * src/PeerListenCommand.{h, cc}
  9322. Now an exception thrown while parsing tracker response is now logged.
  9323. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  9324. called, which means no retry is made in this case, assuming a tracker
  9325. has a problem.
  9326. * src/TrackerWatcherCommand.cc
  9327. Fixed: downloading a file whose length is unkown fails.
  9328. * src/DownloadCommand.cc
  9329. Simplified prepareForNextSegment()
  9330. * src/DownloadCommand.cc
  9331. Updated
  9332. * po/POTFILES.in
  9333. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9334. Re-implemented a file listing for Metalink, which was dropped while
  9335. http/ftp/torrent integration was being implemented.
  9336. * src/MetalinkHelper.{h, cc}: New class.
  9337. * test/MetalinkHelperTest.cc
  9338. * src/main.cc
  9339. * src/Metalink2RequestGroup.cc
  9340. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9341. Added the ability to display the detailed torrent file information.
  9342. Now -S option gives not only a file listing, but also total download
  9343. length, info hash, announce URI, piece length, the number of pieces,
  9344. and mode(single or multi-torrent).
  9345. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  9346. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  9347. KiB)
  9348. * test/UtilTest.cc
  9349. * src/main.cc
  9350. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9351. Added ftp://USER:PASSWD@Servername automatic parsing.
  9352. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  9353. _password. Recognize username and password in URI.
  9354. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  9355. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  9356. * src/RequestFactory.{h, cc}: Removed.
  9357. * src/AuthConfigFactory.{h, cc}: New class.
  9358. * src/FtpConnection.cc: Use AuthConfigFactory.
  9359. * src/HttpRequest.cc: Use AuthConfigFactory.
  9360. * test/HttpRequestTest.cc: Updated.
  9361. * test/RequestTest.cc: Updated.
  9362. * test/AuthConfigFactoryTest.cc: New class.
  9363. * test/RequestFactoryTest.cc: Removed.
  9364. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9365. Use RequestGroup::allDownloadFinished() to decide whether the control
  9366. file should be removed or saved.
  9367. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  9368. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  9369. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9370. Use File::renameTo()
  9371. * src/DefaultBtProgressInfoFile.cc
  9372. Added --no-file-allocation-limit command-line option.
  9373. * src/version_usage.cc
  9374. * src/option_processing.cc
  9375. * src/OptionHandlerFactory.cc
  9376. * src/RequestGroup.{h, cc}
  9377. * src/BtCheckIntegrityEntry.cc
  9378. * src/StreamCheckIntegrityEntry.cc
  9379. * src/prefs.h
  9380. * doc/aria2c.1.txt
  9381. * doc/aria2c.1
  9382. Now prealloc is the default value for --file-allocation option.
  9383. * src/version_usage.cc
  9384. * src/option_processing.cc
  9385. * doc/aria2c.1.txt
  9386. * doc/aria2c.1
  9387. Don't URL-encode user-agent.
  9388. * src/HttpRequest.cc
  9389. Updated translations
  9390. * po/LINGUAS: Added nl for Dutch translation.
  9391. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  9392. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  9393. * po/POTFILES.in: Updated.
  9394. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9395. Added the ability to recognize url-list in a torrent file.
  9396. The retrieved URLs are attached to the corresponding FileEntry.
  9397. * src/DefaultBtContext.{h, cc}
  9398. * src/FileEntry.{h, cc}
  9399. * test/DefaultBtContextTest.cc
  9400. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9401. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  9402. after the download finishes.
  9403. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9404. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  9405. the data smaller than block length.
  9406. A block length can be specified by constructor's argument.
  9407. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  9408. Get a missing piece in the range of given FileEntry. This function is
  9409. not used in the program yet.
  9410. * src/Util.h: Added some macros.
  9411. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9412. Added HTTP/1.1 keep alive and pipelining support.
  9413. See --enable-http-keep-alive and --enable-http-pipelining option.
  9414. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  9415. Segment.
  9416. * src/HttpDownloadCommand.{h, cc}
  9417. * src/OptionHandlerFactory.cc
  9418. * src/HttpConnection.{h, cc}
  9419. * src/version_usage.cc
  9420. * src/HttpInitiateConnectionCommand.cc
  9421. * src/FtpInitiateConnectionCommand.cc
  9422. * src/Segment.h
  9423. * src/HttpRequestCommand.{h, cc}
  9424. * src/option_processing.cc
  9425. * src/prefs.h
  9426. * src/HttpResponseCommand.cc
  9427. * src/SegmentMan.{h, cc}
  9428. * src/FtpNegotiateCommand.cc
  9429. * src/HttpProxyResponseCommand.cc
  9430. * src/Request.cc
  9431. * src/HttpRequest.cc
  9432. * src/DownloadCommand.cc
  9433. * test/HttpRequestTest.cc
  9434. * test/RequestTest.cc
  9435. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9436. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  9437. finished.
  9438. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9439. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  9440. catching it inside the method.
  9441. When no file entry is found in a metalink without querying user
  9442. preferences, throw the exception with the error message that suggests
  9443. metalink file is probably broken.
  9444. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  9445. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9446. Fixed the bug that prevents remote Metalink/Torrent file from begin
  9447. processed.
  9448. * src/RequestGroupMan.cc (removeStoppedGroup)
  9449. Added debug message.
  9450. * src/BtPostDownloadHandler.cc
  9451. * src/MetalinkPostDownloadHandler.cc
  9452. * src/PostDownloadHandler.{h, cc}
  9453. * src/RequestGroup.cc
  9454. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9455. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  9456. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9457. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  9458. stops and there are any unfinished or in-progress downloads.
  9459. Added the legend of "stat".
  9460. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9461. Throw exception when chunck checksum verification fails.
  9462. * src/DownloadCommand.cc (validatePieceHash): New function.
  9463. * src/PiecedSegment.{h, cc} (clear): New function.
  9464. * src/GrowSegment.{h, cc} (clear): New function.
  9465. * src/Segment.h (clear): New function.
  9466. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  9467. * test/SegmentTest.cc
  9468. * test/GrowSegmentTest.cc
  9469. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9470. Do not send referer when redirected.
  9471. * src/Request.cc (redirectUrl)
  9472. * test/RequestTest.cc
  9473. * test/HttpRequestTest.cc
  9474. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9475. Implemented BitTorrent/http/ftp integrated download.
  9476. I've rewritten lots of files and now some headers have forward
  9477. class declarations to reduce compile time.
  9478. The implementation is extremely alpha stage, I recommend to use this
  9479. for testing purpose only.
  9480. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9481. Fixed the compilation error on 64bit platform.
  9482. * test/HttpHeaderProcessorTest.cc
  9483. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9484. Merged Ross's patch that fixes compilation problem in MinGW
  9485. * test/DefaultBtProgressInfoFileTest.cc
  9486. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9487. Updated fr.po by sebone
  9488. * po/fr.po
  9489. Updated man page.
  9490. * doc/aria2c.1.txt
  9491. * Release 0.11.3
  9492. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9493. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  9494. failure in Metalink.
  9495. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9496. Automatically save *.aria2 control file of http/ftp download in every
  9497. 60 seconds.
  9498. * src/AutoSaveCommand.{h, cc}: New class.
  9499. * src/TimeBasedCommand.{h, cc}: New class.
  9500. * src/DownloadEngineFactory.cc (newConsoleEngine)
  9501. Disable parameterized URI support by default. Added -P option to
  9502. enable the feature.
  9503. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  9504. * src/OptionHandlerFactory.cc
  9505. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  9506. Updated Japanese translation.
  9507. * po/ja.po
  9508. Updated man page.
  9509. * doc/aria2c.1.txt
  9510. * Release 0.11.3-rc
  9511. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9512. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  9513. it is successful, then renamed to *.aria2.
  9514. This prevents *.aria2 file from being truncated or corrupted when
  9515. file system becomes out of space.
  9516. * src/DefaultBtProgressInfoFile.cc (save)
  9517. * src/SegmentMan.cc (save)
  9518. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  9519. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9520. Reduced the fragmentation of bitfield in http/ftp download.
  9521. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  9522. * test/BitfieldManTest.cc
  9523. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9524. Added the ability to disable segmented download in .metalink.
  9525. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  9526. 'url' tag.
  9527. * src/MetalinkEntry.{h, cc}
  9528. * src/RequestResource.{h, cc}
  9529. * src/MetalinkRequestInfo.cc
  9530. * src/Xml2MetalinkProcessor.cc
  9531. * test/Xml2MetalinkProcessorTest.cc
  9532. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9533. Added parameterized URI support.
  9534. * src/main.cc: -Z option added.
  9535. * src/OptionHandlerFactory.cc
  9536. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  9537. * src/PStringDatum.h: New class.
  9538. * src/PStringSegment.{h,cc}: New class.
  9539. * src/PStringNumLoop.h: New class.
  9540. * src/PStringSelect.h: New class.
  9541. * src/NumberDecorator.h: New class.
  9542. * src/FixedWidthNumberDecorator.h: New class.
  9543. * src/AlphaNumberDecorator.h: New class.
  9544. * src/PStringVisitor.h: New class.
  9545. * src/PStringBuildVisitor.{h,cc}: New class.
  9546. * src/ParameterizedStringParser.{h,cc}: New class.
  9547. * src/Util.{h,cc}
  9548. (isNumber): New function.
  9549. (isLowercase): New function.
  9550. (isUppercase): New function.
  9551. (alphaToNum): New function.
  9552. * test/ParameterizedStringParserTest.cc: New class.
  9553. * test/AlphaNumberDecoratorTest.cc: New class.
  9554. * test/PStringBuildVisitorTest.cc: New class.
  9555. * test/UtilTest.cc
  9556. (testIsNumber): New function.
  9557. (testIsLowercase): New function.
  9558. (testIsUppercase): New function.
  9559. (testAlphaToNum): New function.
  9560. Added '\n' after the error message
  9561. * src/RequestInfo.h (printDownloadAbortMessage)
  9562. Added auto file renaming feature in http(s)/ftp download.
  9563. * src/main.cc: Added --auto-file-renaming command-line option.
  9564. * src/OptionHandlerFactory.cc
  9565. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  9566. * src/RequestGroup.{h, cc}
  9567. (shouldCancelDownloadForSafety): Rewritten
  9568. (tryAutoFileRenaming): New function.
  9569. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  9570. * src/HttpResponseCommand.cc
  9571. (executeInternal): Removed the call to RequestGroupMan::
  9572. isSameFileBeingDownloaded()
  9573. * src/FtpNegotiateCommand.cc
  9574. (recvSize): Removed the call to RequestGroupMan::
  9575. isSameFileBeingDownloaded()
  9576. * test/RequestGroupTest.cc: New class.
  9577. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9578. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  9579. IO.
  9580. * src/DefaultBtProgressInfoFile.cc
  9581. * src/MetaFileUtil.cc
  9582. * src/SimpleLogger.cc
  9583. * src/SegmentMan.cc
  9584. * src/Util.cc
  9585. * src/Platform.cc
  9586. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9587. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  9588. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9589. Avoid sparse files if possible, because VFAT32 doesn't support it.
  9590. * src/DefaultDiskWriter.cc (initAndOpenFile)
  9591. Fixed the bug that prevents file allocation is not done when
  9592. dowloading multi-torrent file.
  9593. * src/AbstractDiskWriter.cc (openFile)
  9594. Increase the maximum number of -j option from 15 to 45.
  9595. * src/OptionHandlerFactory.cc (createOptionHandlers)
  9596. Added fr.po, thanks to Charles Landemaine.
  9597. * po/fr.po
  9598. * po/LINGUAS
  9599. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  9600. gcc 3.4.4 support:
  9601. * src/DefaultBtContext.cc: int32_t -> int
  9602. * src/main.cc: int -> int32_t, int32_t -> int
  9603. * src/messageDigest.h: uint32_t -> unsigned int
  9604. * src/NameResolver.h: int32_t -> int
  9605. * src/PeerConnection.cc: int -> int32_t
  9606. * src/SpeedCalc.cc: int32_t -> int
  9607. * src/TrackerUpdateCommand.h: int -> int32_t
  9608. * src/Util.cc: int32_t -> int
  9609. * src/Util.h: int32_t -> int
  9610. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  9611. * test/AnnounceListTest.cc: int -> int32_t
  9612. * test/ChunkedEncodingTest.cc: int -> int32_t
  9613. * test/DataTest.cc: int -> int32_t
  9614. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  9615. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  9616. * test/DefaultPieceStorageTest.cc: int -> int32_t
  9617. * test/FeatureConfigTest.cc: int -> int32_t
  9618. * test/MetalinkEntryTest.cc: int -> int32_t
  9619. * test/MockBtRequestFactory.h: int -> int32_t
  9620. * test/MockPieceStorage.h: int -> int32_t
  9621. * test/OptionTest.cc: int -> int32_t
  9622. * test/RequestTest.cc: int -> int32_t
  9623. * test/SegmentManTest.cc: int -> int32_t
  9624. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  9625. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  9626. Move sleep functions to Util class:
  9627. * src/Util.cc
  9628. (sleep): New function.
  9629. (usleep): New function.
  9630. * src/DownloadCommand.cc: sleep -> Util::sleep
  9631. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  9632. MinGW build enhancements. The following files are added:
  9633. * src/timegm.{c,h}
  9634. Changes to support the above new files:
  9635. * configure.ac
  9636. * src/Makefile.am
  9637. * src/a2time.h
  9638. * src/Util.cc:
  9639. * src/strptime.c: Added support for %Z option.
  9640. Fixed MinGW non-blocking bug.
  9641. * src/SocketCore.cc
  9642. * src/HttpRequestCommand.cc
  9643. Miscellenous build fixes/enhancements.
  9644. * configure.ac: Added summary report.
  9645. * src/Platform.h: Tweaked #include's.
  9646. * src/a2netcompat.h: Tweaked #include's.
  9647. * src/strptime.h: Tweaked #include's.
  9648. * src/gai_strerror.c: Tweaked #include's.
  9649. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  9650. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  9651. * src/gettimeofday.h: Added HAVE_CONFIG_H
  9652. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9653. Increased the initial connection size in BitTorrent download to 40.
  9654. * src/BtRuntime.h
  9655. Added the usage message of --peer-id-prefix option.
  9656. * src/main.cc
  9657. * Release 0.11.2
  9658. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9659. MessageDigestHelper is introduced in order to simplify the use
  9660. of message digest. Removed repeated code.
  9661. The message digest algorithm is now specified by string, like "sha1",
  9662. "md5".
  9663. * src/messageDigest.{h, cc}
  9664. * src/MessageDigestHelper.{h, cc}: New class.
  9665. * src/DefaultPieceStorage.cc
  9666. * src/DefaultBtContext.{h, cc}
  9667. (computeFastSet): New function.
  9668. (setInfoHash): Added for unit testing.
  9669. (setNumPieces): Added for unit testing.
  9670. * src/DefaultBtInteractive.cc
  9671. * src/BtPieceMessage.cc
  9672. * src/Peer.cc
  9673. * src/Checksum.h
  9674. * src/message.h
  9675. * src/IteratableChecksumValidator.h
  9676. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  9677. inside it.
  9678. * src/SegmentMan.{h, cc}
  9679. (checkIntegrity): Removed.
  9680. * src/IteratableChunkChecksumValidator.{h, cc}
  9681. * src/Util.h
  9682. (sha1Sum): Removed.
  9683. (simpleMessageDigest): Removed.
  9684. (fileChecksum): Removed.
  9685. (computeFastSet): Removed.
  9686. * src/ShaVisitor.cc
  9687. * src/ChunkChecksum.h
  9688. * src/DownloadCommand.cc
  9689. Removed messageDigest virtual functions.
  9690. * src/MultiDiskAdaptor.{h, cc}
  9691. * src/DiskAdaptor.h
  9692. * src/ByteArrayDiskWriter.h
  9693. * src/DiskWriter.h
  9694. * src/DiskAdaptorWriter.h
  9695. * src/AbstractSingleDiskAdaptor.{h, cc}
  9696. * src/AbstractDiskWriter.{h, cc}
  9697. Fixed comilation error when message digest is disabled.
  9698. * src/MetalinkEntry.{h, cc}
  9699. * src/MetalinkRequestInfo.cc
  9700. Removed srandom and random.
  9701. * src/SimpleRandomizer.h
  9702. Added size() virtual function to DiskAdaptor
  9703. * src/MultiDiskAdaptor.h
  9704. Fixed the bug that causes that files are not opened correctly in
  9705. multi-file torrent.
  9706. * src/TorrentRequestInfo.cc
  9707. * src/MultiDiskAdaptor.cc
  9708. Added SHA256 support
  9709. * src/messageDigest.cc
  9710. * src/Xml2MetalinkProcessor.cc
  9711. Show supported message digest algorithms
  9712. * src/main.cc
  9713. Updated contact info.
  9714. * src/main.cc
  9715. Applied Ross's patch
  9716. * src/a2netcompat.h
  9717. * src/main.cc
  9718. Fixed the bug that prevents a remote metalink from not being processed
  9719. even if '-o foo.metalink' is specified.
  9720. * src/MetalinkRequestInfo.cc
  9721. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9722. Merged Dan's patch:
  9723. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  9724. Use va_copy to avoid core dump on amd64:
  9725. * src/SimpleLogger.cc
  9726. Updated contact info.
  9727. * src/main.cc
  9728. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  9729. digest is not available.
  9730. * src/MetalinkEntry.h
  9731. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9732. Make a2netcompat.h include a2io.h to fix compilation error:
  9733. * src/a2netcompat.h
  9734. * src/SocketCore.cc: Removed include of a2io.h
  9735. * src/Util.cc: Removed include of a2io.h
  9736. Gather time related functions to a2time.h:
  9737. * src/a2time.h: New file.
  9738. * src/DefaultPeerStorage.cc
  9739. * src/SimpleLogger.cc
  9740. * src/Util.{h, cc}
  9741. * src/SimpleRandomizer.h
  9742. * src/TimeA2.{h,cc}
  9743. * src/DownloadCommand.cc
  9744. * src/main.cc
  9745. Removed #ifdef __MINGW32__ since gai_strerror is included in
  9746. a2netcompat.h:
  9747. * src/NameResolver.cc
  9748. Fixed compilation error without openssl:
  9749. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  9750. Added default block to suppress compiler warnings:
  9751. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  9752. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  9753. MinGW build enhancements. The following files are added:
  9754. * src/gai_strerror.{c,h}
  9755. * src/gettimeofday.{c,h}
  9756. Changes to support the above new files:
  9757. * configure.ac
  9758. * src/Makefile.am
  9759. * src/a2netcompat.h
  9760. * src/TimeA2.cc
  9761. * src/DefaultPeerStorage.cc
  9762. * src/NameResolver.cc: removed mingw_strerror() function.
  9763. * src/SocketCore.cc: removed mingw_strerror() function.
  9764. Miscellaneous MinGW build fixes.
  9765. * src/a2io.h: Use _lseeki64() instead of lseek()
  9766. * src/common.h
  9767. * src/DefaultFileAllocator.cc
  9768. * src/GlowFileAllocator.cc
  9769. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  9770. * src/NameResolver.cc
  9771. (callback): Changed int32_t to int.
  9772. (resolve): Changed int32_t to int.
  9773. * src/Platform.cc
  9774. * src/Platform.h
  9775. * test/MultiDiskWriterTest.cc
  9776. * test/PeerMessageUtilTest.cc
  9777. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  9778. Other enhancements and fixes.
  9779. * src/HttpRequestCommand.cc
  9780. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  9781. * src/SocketCore.cc:
  9782. (error): New function to abstract errno/WSAGetLastError().
  9783. (errorMsg): New function to abstract errno/WSAGetLastError().
  9784. (initiateSecureConnection): Added more detailed error reporting.
  9785. * src/SocketCore.h: Added private variable blocking, to allow
  9786. proper handling of OpenSSL psuedo-errors.
  9787. * src/message.h
  9788. (EX_SSL_INIT_FAILURE)
  9789. (EX_SSL_IO_ERROR)
  9790. (EX_SSL_PROTOCOL_ERROR)
  9791. (EX_SSL_UNKNOWN_ERROR)
  9792. (EX_SSL_CONNECT_ERROR)
  9793. (EX_SOCKET_BLOCKING)
  9794. (EX_SOCKET_NONBLOCKING)
  9795. (EX_SOCKET_UNKNOWN_ERROR)
  9796. * src/Util.cc
  9797. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  9798. reserved name.
  9799. (httpGMT): Fixed typo.
  9800. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9801. Merged Ross's win32 patch(manually)
  9802. In the course of merging, following files are added.
  9803. * src/strptime.{h,c}
  9804. * src/libgen.{h,c}
  9805. * src/inet_aton.{h,c}
  9806. * src/Platform.{h,cc}
  9807. * src/localtime_r.{h,c}
  9808. * src/getaddrinfo.{h,c}
  9809. I've gethered network related things, and put them to following file:
  9810. * src/a2netcompat.h
  9811. Also io related things are put to following file:
  9812. * src/a2io.h
  9813. Changed %lld to %s because mingw32 doesn't recognize %lld.
  9814. * src/message.h
  9815. (MSG_ALLOCATION_COMPLETED)
  9816. (EX_TOO_LARGE_FILE)
  9817. (EX_SIZE_MISMATCH)
  9818. (EX_FILE_OFFSET_OUT_OF_RANGE)
  9819. (EX_INVALID_CHUNK_CHECKSUM)
  9820. (EX_INVALID_RANGE_HEADER)
  9821. * src/FileAllocationCommand.cc
  9822. * src/HttpResponse.cc
  9823. * src/RequestGroup.cc
  9824. * src/MultiDiskAdaptor.cc
  9825. * src/OptionHandlerImpl.h
  9826. * src/HttpResponseCommand.cc
  9827. * src/FtpNegotiateCommand.cc
  9828. * src/IteratableChecksumValidator.cc
  9829. * src/SegmentMan.cc
  9830. * src/ChunkChecksumValidator.cc
  9831. Added Randomizer::getRandomNumber(long int)
  9832. * src/Randomizer.h (getRandomNumber)
  9833. * src/SimpleRandomizer.h (getRandomNumber)
  9834. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  9835. * src/Util.cc (randomAlpha): Use this new function.
  9836. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9837. Converted int's to in32_t. long long int's are also converted to
  9838. int64_t
  9839. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9840. Fixed the bug that prevents cookies from being sent to the server
  9841. if the domain of cookie is FQDN and starts with ".".
  9842. * src/Cookie.cc (match)
  9843. To add the ability to change peer id.
  9844. * src/DefaultBtContext.h
  9845. (_peerIdPrefix): New variable
  9846. (setPeerIdPrefix): New function.
  9847. * src/torrentRequestInfo.cc
  9848. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  9849. DefaultBtContext.
  9850. * src/main.cc (main): Added peer-id-prefix command-line option.
  9851. The usage message is not added yet.
  9852. * src/DefaultBtContext.cc
  9853. (generatePeerId): Use _peerIdPrefix.
  9854. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  9855. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9856. Fixed the bug that prevents filename in content-disposition from
  9857. being retrieved when filename is not quoted.
  9858. * src/Util.cc (getContentDispositionFilename)
  9859. Fixed the bug that causes infinate loop and memory leak when file open
  9860. operation failed.
  9861. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  9862. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9863. Fixed the bug that causes segfault when all URIs specified are
  9864. unsupported.
  9865. * src/RequestGroupMan.cc (getInitialCommands)
  9866. Check if RequestGroup::createNextCommand() returns empty list of
  9867. commands.
  9868. * src/RequestGroup.cc (createNextCommand)
  9869. Change log level from info to error so that users can notice that
  9870. an error occurred.
  9871. Fixed the bug that causes segfault when a zero-sized file is
  9872. downloaded.
  9873. * src/BitfieldMan.cc (isAllBitSet)
  9874. Return true if bitfieldLength is 0.
  9875. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9876. * src/main.cc
  9877. (showUsage): Added 3 usage examples for metalink download.
  9878. Replace MetalinkChunkChecksum with ChunkChecksum.
  9879. * src/MetalinkChunkChecksum.h: Removed.
  9880. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  9881. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  9882. * src/Xml2MetalinkProcessor.cc
  9883. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  9884. * src/MetalinkRequestInfo.cc (execute)
  9885. * Release 0.11.1
  9886. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9887. Reads URIs from stdin when "-i -" is specified.
  9888. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  9889. * src/UriListParser.h, src/UriListParser.cc: New class.
  9890. * src/StreamUriListParser.h: New class.
  9891. * src/FileUriListParser.h: New class.
  9892. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  9893. instead of UriFileListParser.
  9894. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9895. Made console readout more readable.
  9896. * src/ConsoleDownloadEngine.cc (sendStatistics)
  9897. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9898. Fix the bug that causes -s option not to work.
  9899. * src/main.cc (main)
  9900. * src/a2algo.h: New file.
  9901. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9902. Create directory structure specified in metalink file.
  9903. * src/RequestGroup.h, src/RequestGroup.cc
  9904. (initAndOpenFile): Create a directory to store files if it does not
  9905. exist.
  9906. (getDir): New function.
  9907. Added ETA and download speed for an individual file to readout.
  9908. * src/ConsoleDownloadEngine.cc (sendStatistics)
  9909. * src/RequestGroup.h
  9910. (calculateDownloadSpeed): New function.
  9911. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9912. Made -S option work with metalink file and provided selective download
  9913. to metalink.
  9914. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  9915. (filename): Removed.
  9916. (file): New variable.
  9917. (size): Removed.
  9918. (operator=): Updated.
  9919. (getPath): New function.
  9920. (getLength): New function.
  9921. (toFileEntry): New function.
  9922. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  9923. (execute): Use toStream.
  9924. (showFileEntry): Removed.
  9925. * src/MetalinkRequestInfo.h
  9926. (targetFiles): New variable.
  9927. (setTargetFiles): New variable.
  9928. * src/MetalinkRequestInfo.cc
  9929. (execute): Added the ability to print file information included in
  9930. a metalink file.
  9931. Added selective download mode to metalink.
  9932. * src/main.cc
  9933. (showUsage): Updated to denote that -S and --select-file options are
  9934. applicable to metalink.
  9935. * src/FileEntry.h
  9936. (operator=): New function.
  9937. (getBasename): New function.
  9938. (getDirname): New function.
  9939. * src/Util.h, src/Util.cc
  9940. (toStream): New function.
  9941. * src/Xml2MetalinkProcessor.cc: Updated.
  9942. Made aria2 work with metalink with directory structure.
  9943. * src/File.h, src/File.cc
  9944. (getBasename): New function.
  9945. (getDirname): New function.
  9946. * src/RequestGroup.h, src/RequestGroup.cc
  9947. (_topDir): New variable.
  9948. (setTopDir): New function.
  9949. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  9950. Rewrote HTTP header parsing with stringstream.
  9951. * src/HttpConnection.h, src/HttpConnection.cc
  9952. (HttpRequestEntry): New class.
  9953. (headerBuf): Removed.
  9954. (headerBufLength): Removed.
  9955. (outstandingHttpRequests): Now its element type is
  9956. HttpRequestEntryHandle.
  9957. (findEndOfHeader): Removed.
  9958. (receiveResponse): Rewritten.
  9959. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  9960. Updated doc for -j option to notice that it should be used with -i
  9961. option.
  9962. * src/main.cc (showUsage)
  9963. Removed unused classes.
  9964. * src/RequestInfo.h
  9965. (FileInfo): Removed.
  9966. (checksum): Removed.
  9967. (fileInfo): Removed.
  9968. (setChecksum): Removed.
  9969. (getChecksum): Removed.
  9970. (getFileInfo): Removed.
  9971. Use ISO units.
  9972. * src/ConsoleDownloadEngine.cc
  9973. * src/TorrentConsoleDownloadEngine.cc
  9974. * src/Util.cc (abbrevSize)
  9975. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9976. Added the default listening ports to the help message.
  9977. * src/main.cc (showUsage)
  9978. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9979. Reduce the number of calls to gettimeofday to lower CPU load.
  9980. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  9981. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  9982. * src/Peer.h (calculateUploadSpeed): New function.
  9983. (calculateDownloadSpeed): New function.
  9984. * src/DefaultPeerStorage.cc
  9985. (CalculateStat): Added _now variable.
  9986. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  9987. and Peer::calculateUploadSpeed(const struct timeval&)
  9988. Drop connection if no request or piece message is exchanged in
  9989. a certain interval.
  9990. * src/DefaultBtInteractive.h
  9991. (btRuntime): New variable.
  9992. (inactiveCheckPoint): New variable.
  9993. (checkActiveInteraction): New function.
  9994. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  9995. request or piece message is received.
  9996. (checkActiveInteraction): New function.
  9997. (doInteractionProcessing): Call checkActiveInteraction.
  9998. Fixed the bug that causes remote Metalink and Torrent files are not
  9999. processed.
  10000. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  10001. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10002. Changed format of log file.
  10003. * src/SimpleLogger.cc
  10004. * Release 0.11.0
  10005. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10006. * src/AbstractCommand.cc
  10007. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  10008. MSG_MAX_TRY from error to info.
  10009. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  10010. * src/message.h
  10011. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  10012. (MSG_DOWNLOAD_ABORTED): Added %s.
  10013. (MSG_RESTARTING_DOWNLOAD): Added %s.
  10014. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  10015. * src/PeerAbstractCommand.cc
  10016. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  10017. * src/Request.h
  10018. (cookieBox): Made ShardHandle.
  10019. * src/RequestGroup.h, src/RequestGroup.cc
  10020. (createNextCommandWithAdj): New function.
  10021. * src/FileAllocationCommand.cc
  10022. (executeInternal): Use createNextCommandWithAdj().
  10023. * src/CheckIntegrityCommand.cc
  10024. (executeInternal): Use createNextCommandWithAdj().
  10025. Added --load-cookies command-option.
  10026. * src/OptionHandlerFactory.cc
  10027. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  10028. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  10029. Now aria2 can handle cookie's expiration date.
  10030. * src/Cookie.h (expires): Changed its type to time_t.
  10031. * src/main.cc: Added --load-cookies command-line option.
  10032. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  10033. * src/Util.h, src/Util.cc (httpGMT): New function.
  10034. * src/Request.cc (Request): Initialize cookieBox using
  10035. CookieBoxFactory.
  10036. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  10037. * src/CookieParser.h, src/CookieParser.cc: New class.
  10038. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  10039. * src/HttpResponseCommand.cc
  10040. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  10041. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  10042. download.
  10043. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10044. Added -j command-line option.
  10045. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10046. * src/main.cc
  10047. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  10048. Rewritten using stringstream.
  10049. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  10050. Rewritten using stringstream.
  10051. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10052. Make download size shown in MB, KB.
  10053. * src/ConsoleDownloadEngine.h (sendStatistics)
  10054. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  10055. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10056. Accept incoming connections if download rate is low.
  10057. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  10058. (_lowestSpeedLimit): New variable.
  10059. (setLowestSpeedLimit): New function.
  10060. (execute): Accept incoming connections if download rate is low.
  10061. MAX_PEERS is ignored in this case.
  10062. Disable PREF_OUT in multiple concurrent download:
  10063. * src/RequestGroup.h, src/RequestGroup.cc
  10064. (setUserDefinedFilename): New function.
  10065. * src/DownloadEngineFactory.cc
  10066. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  10067. concurrent download.
  10068. * src/DefaultSegmentManFactory.cc
  10069. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  10070. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10071. RequestGroup::getNextCommand() was renamed to createNextCommand().
  10072. Added its overloaded method.
  10073. * src/RequestGroup.h
  10074. (_numConcurrentCommand): New variable.
  10075. (setNumConcurrentCommand): New function.
  10076. * src/RequestGroup.cc
  10077. Abort download if same file is being downloaded concurrently.
  10078. * src/RequestGroup.h, src/RequestGroupMan.cc
  10079. (isSameFileBeingDownloaded): New function.
  10080. * src/HttpResponseCommand.cc (executeInternal)
  10081. * src/FtpNegotiateCommand.cc (recvSize)
  10082. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  10083. * main.cc: Added help message for -i option.
  10084. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10085. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  10086. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  10087. * src/MetalinkEntry.h
  10088. (checksum): Changed to ChecksumHandle
  10089. * src/MetalinkRequestInfo.cc
  10090. (checksum): Changed to ChecksumHandle
  10091. * src/File.cc
  10092. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  10093. * src/common.h
  10094. (DIR_OPEN_MODE): New definition
  10095. * src/RequestGroup.cc
  10096. (prepareForNextAction): Added an argument.
  10097. * src/message.h
  10098. (MSG_GOOD_CHECKSUM): New definition
  10099. (MSG_BAD_CHECKSUM): New definition
  10100. * src/HttpResponseCommand.cc
  10101. (handleDefaultEncoding): Continue download sequence in new
  10102. non-segmented download.
  10103. * src/FileAllocationEntry.h
  10104. (_nextDownloadCommand): New variable.
  10105. * src/DownloadCommand.cc
  10106. (prepareForNextSegment): Create ChecksumCommand if checksum is
  10107. available.
  10108. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  10109. * src/IteratableChecksumValidator.h,
  10110. src/IteratableChecksumValidator.cc: New class.
  10111. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  10112. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10113. Change file mode to 666:
  10114. * src/common.h (OPEN_MODE): New definition.
  10115. * src/File.cc
  10116. * src/Util.cc
  10117. * src/Directry.cc
  10118. * src/AbstractDiskWriter.cc
  10119. Change the level of log message "download aborted" to debug:
  10120. * src/PeerAbstractCommand.cc (execute)
  10121. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  10122. * src/TrackerWatcherCommand.cc
  10123. (createCommand): Sleep some seconds after request failed.
  10124. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  10125. then abort tracker request.
  10126. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10127. * Added the simultaneous download feature.
  10128. * src/main.cc: Print "Exception caught: " when exception is caught.
  10129. Use CUIDCounter instead of BtRuntime::getNewCuid():
  10130. * src/ActivePeerConnectionCommand.cc
  10131. * src/PeerInteractionCommand.cc
  10132. * src/BtRuntime.h
  10133. (cuidCounter): Removed.
  10134. (getNewCuid): Removed.
  10135. * src/DownloadEngineFactory.cc
  10136. * src/PeerListenCommand.cc
  10137. * src/TrackerUpdateCommand.cc
  10138. * src/PeerInitiateConnectionCommand.cc
  10139. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10140. * src/PeerAbstractCommand.cc
  10141. (onAbort): Call PeerStorage::returnPeer()
  10142. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  10143. (incomingPeers): New variable.
  10144. (addIncomingPeer): New function.
  10145. (returnPeer): New function.
  10146. (onErasingPeer): New function.
  10147. (addPeer): push_back -> push_front
  10148. (getActivePeers): Rewritten.
  10149. (calculateStat): Rewritten.
  10150. * src/PeerStorage.h
  10151. (TransferStat::copy): New function.
  10152. (TransferStat::TransferStat): New function.
  10153. (TransferStat::operator=): New function.
  10154. (addIncomingPeer): New function.
  10155. (returnPeer): New function.
  10156. * src/PeerListenCommand.cc
  10157. (execute): Use PeerStorage::addIncomingPeer() instead of
  10158. Peer::addPeer().
  10159. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10160. Connect to a peer actively when download speed is lower than specified
  10161. speed in torrent download:
  10162. * src/ActivePeerConnectionCommand.h: New class.
  10163. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10164. * src/HttpRequest.cc (createRequest): url-encode user-agent
  10165. * src/main.cc: Fixed the bug that prevents download if .netrc
  10166. doesn't exist.
  10167. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10168. To cache resolved hostname:
  10169. * src/AbstractCommand.h, src/AbstractCommand.cc
  10170. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  10171. Added dns cache.
  10172. * src/FtpInitiateConnectionCommand.cc
  10173. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  10174. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  10175. NameResolver working without ares.
  10176. * src/TorrentRequestInfo.cc
  10177. (execute): Don't cache dns in torrent download.
  10178. * src/HttpInitiateConnectionCommand.cc
  10179. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  10180. * src/DNSCache.h: New class.
  10181. * src/UrlRequestInfo.cc
  10182. (execute): Use dns cache.
  10183. In http request, suppress port number in http request header if port
  10184. is 80 or 443:
  10185. * src/HttpRequest.cc (getHostText): Suppress port number in http
  10186. request header if port is 80 or 443.
  10187. (createProxyRequest): Allways send port number.
  10188. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10189. To add the command-line option which disables netrc support:
  10190. * src/OptionHandlerFactory.cc
  10191. (createOptionHandlers): Added PREF_NO_NETRC.
  10192. * src/main.cc: Added -n option.
  10193. * src/prefs.h (PREF_NO_NETRC): New definition.
  10194. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  10195. V_TRUE.
  10196. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  10197. is V_FALSE. This may get configurable in the future release.
  10198. To clear peer's error status by time basis:
  10199. * src/PeerAbstractCommand.cc
  10200. (onAbort): Call Peer::startBadCondition().
  10201. * src/Peer.h, src/Peer.cc
  10202. (error): Removed.
  10203. (_badConditionStartTime): New variable.
  10204. (_badConditionInterval): New variable. Initialized to 10 seconds.
  10205. (startBadCondition): New function.
  10206. (isGood): New function.
  10207. * src/DefaultPeerStorage.cc
  10208. (addPeer): Use Peer::isGood().
  10209. (FindFinePeer): Use Peer::isGood().
  10210. Always include port number in http request header:
  10211. * src/HttpRequest.cc (getHostText): Always include port number in
  10212. http request header.
  10213. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10214. To the ability to read options from a config file:
  10215. * src/main.cc: Command-line parameter validation is delegated to
  10216. OptionHandler class.
  10217. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  10218. * src/Option.h, src/Option.cc (clear): New function.
  10219. * src/OptionParser.h, src/OptionParser.cc: New class.
  10220. * src/OptionHandler.h: New class.
  10221. * src/NameMatchOptionHandler.h: New class.
  10222. * src/OptionHandlerImpl.h: New classes.
  10223. * src/prefs.h: '_' -> '-'
  10224. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  10225. (FTP_PASV): New definition.
  10226. * src/Util.h, src/Util.cc (getRealSize): New function.
  10227. To disable netrc support if .netrc file does not have correct
  10228. permissions:
  10229. * src/File.h, src/File.cc (mode): New function.
  10230. To prevent confidential information to be logged:
  10231. * src/HttpConnection.h, src/HttpConnection.cc
  10232. (eraseConfidentialInfo): New function.
  10233. (sendRequest): Call eraseConfidentialInfo().
  10234. (sendProxyRequest): Call eraseConfidentialInfo().
  10235. * src/main.cc: Validate permissions of .netrc file.
  10236. To add --user-agent command-line option:
  10237. * src/main.cc: Added new command line option: --user-agent
  10238. * src/prefs.h (PREF_USER_AGENT): New definition.
  10239. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  10240. parameter to HttpRequest object.
  10241. * src/AbstractProxyRequestCommand.cc
  10242. (executeInternal): Set user-agent option parameter to HttpRequest
  10243. object.
  10244. Marged the patches from Dan Fandrich.
  10245. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10246. Use filename and size from Metalink file instead of sending HEAD
  10247. request:
  10248. * src/UrlRequestInfo.h
  10249. (_filename): New variable.
  10250. (_totalLength): New variable.
  10251. (setTotalLength): New variable.
  10252. (setFilename): New variable.
  10253. * src/MetalinkRequestInfo.cc
  10254. (execute): Set filename and size to UrlRequestInfo
  10255. * src/UrlRequestInfo.cc
  10256. (execute): Use filename and size from Metalink instead of seding
  10257. HEAD request to servers.
  10258. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10259. To add the ability to resume downloading a partially downloaded file
  10260. which is downloaded from the beginning:
  10261. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  10262. takes this role.
  10263. * src/main.cc: Added -c option.
  10264. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  10265. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  10266. * src/prefs.h (PREF_CONTINUE): New definition.
  10267. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  10268. * src/DefaultDiskWriter.cc
  10269. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  10270. * src/AbstractDiskWriter.h
  10271. (glowFileAllocator): New variable.
  10272. * src/AbstractDiskWriter.cc
  10273. (openExistingFile): Now preallocate file space from the end of the
  10274. existing file if totalLength argument is specified and grater than 0.
  10275. * src/UrlRequestInfo.cc: If -c option is specified and the file
  10276. to download exists in local, continue the download of the file.
  10277. --allow-overwrite=true is assumed in this context.
  10278. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  10279. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  10280. Throw exception if --check-integrity=true is specified but chunk
  10281. checksums are not provided:
  10282. * src/UrlRequestInfo.cc
  10283. Do not print URLs to stdout:
  10284. * src/UrlRequestInfo.cc
  10285. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10286. * src/Request.h: Use AuthResolver to get authentication information.
  10287. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  10288. set to RequestFactory object.
  10289. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  10290. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  10291. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  10292. create Request object.
  10293. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  10294. To integrate Netrc into exsiting classes:
  10295. * src/Request.h
  10296. (_userDefinedAuthConfig): New variable.
  10297. (findNetrcAuthenticator): New function.
  10298. (segment): Removed.
  10299. (setUserDefinedAuthConfig): New function.
  10300. (resolveHttpAuthConfigItem): New function.
  10301. (resolveFtpAuthConfigItem): New function.
  10302. (resolveHttpProxyAuthConfigItem): New function.
  10303. * src/HttpRequest.h
  10304. (authConfig): Removed.
  10305. (proxyAuthConfig): Removed.
  10306. (setAuthConfig): Removed.
  10307. (setProxyAuthConfig): Removed.
  10308. * src/UrlRequest.h
  10309. (getHeadResult): Added a parameter: authConfigHandle
  10310. * src/common.h
  10311. (SingletonHolder.h): New include.
  10312. * src/main.cc
  10313. (Netrc.h): New include.
  10314. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  10315. Added initial value of PREF_NETRC_PATH.
  10316. Added the initialization of netrc.
  10317. * src/AuthConfig.h: New class.
  10318. * src/prefs.h
  10319. (PREF_NETRC_PATH): New definition.
  10320. * src/HttpAuthConfig.h: Removed.
  10321. * src/Netrc.cc
  10322. (getRequiredNextToken): New function.
  10323. (skipMacdef): New function.
  10324. (parse): Rewritten.
  10325. * src/Netrc.h
  10326. (getRequiredNextToken): New function.
  10327. (skipMacdef): New function.
  10328. * src/Util.h, src/Util.cc
  10329. (getHomeDir): New function.
  10330. * src/TrackerWatcherComand.cc
  10331. (createRequestCommand): Use AuthConfig.
  10332. * src/FtpConnection.cc
  10333. (sendUser): Use Request::resolveFtpAuthConfigItem().
  10334. (sendPass): Use Request::resolveFtpAuthConfigItem().
  10335. * src/Request.cc
  10336. (findNetrcAuthenticator): New function.
  10337. (resolveHttpAuthConfigItem): New function.
  10338. (resolveFtpAuthConfigItem): New function.
  10339. (resolveHttpProxyAuthConfigItem): New function.
  10340. * src/UrlRequestInfo.cc: Use AuthConfig.
  10341. * src/HttpRequest.cc
  10342. (createRequest): Use authConfig.
  10343. (getProxyAuthString): Use authConfig.
  10344. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  10345. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  10346. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10347. To reduce overhead to find commands whose socket is either
  10348. readable or writable in the download engine loop:
  10349. * src/Command.h, src/Command.cc
  10350. (STATUS): New enum.
  10351. (status): New variable.
  10352. (statusMatch): New function.
  10353. (setStatusActive): New function.
  10354. (setStatusInactive): New function.
  10355. * src/DownloadEngine.h, src/DownloadEngine.cc
  10356. (executeCommand): New function.
  10357. (run): Simplified.
  10358. (waitData): Call Command::setStatusActive() when command's socket is
  10359. readable or writable.
  10360. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10361. To handle Segment as SegmentHandle:
  10362. * src/AbstractCommand.cc (execute): Rewritten.
  10363. * src/SegmentMan.h: Segment -> SegmentHandle
  10364. Introducded HttpResponse class, HttpRequest class to improve code
  10365. extensiveness and make it clear:
  10366. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  10367. HttpResponse class.
  10368. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  10369. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  10370. * src/HttpConnection.cc: Contruction of http request were moved to
  10371. HttpRequest class.
  10372. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  10373. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  10374. * src/HttpAuthConfig.h: New class.
  10375. * src/Range.h: New class.
  10376. To make FtpTunnel{Request, Response}Command and
  10377. HttpProxy{Request, Response}Command derived from
  10378. AbstractProxy{Request, Response}Command:
  10379. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  10380. Derived from AbstractProxyRequestCommand class.
  10381. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  10382. Derived from AbstractProxyResponseCommand class.
  10383. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  10384. Derived from AbstractProxyRequestCommand class.
  10385. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  10386. Derived from AbstractProxyResponseCommand class.
  10387. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  10388. : New class.
  10389. * src/AbstractProxyResponseCommand.h,
  10390. src/AbstractProxyResponseCommand.cc: New class.
  10391. To add netrc support:
  10392. * src/Netrc.h, src/Netrc.cc: New class.
  10393. * src/Util.h, src/Util.cc (split): New function.
  10394. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  10395. "Content-Range" header instead of "Range" header.
  10396. * src/HttpHeader.h
  10397. (getStatus): Removed.
  10398. (setStatus): Removed.
  10399. * src/Segment.h
  10400. (getPositionToWrite): New function.
  10401. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10402. * src/HttpHeader.h
  10403. (Range.h): New include.
  10404. (status): New variable.
  10405. (HttpHeader): Initialized status with 0.
  10406. (getStatus): New function.
  10407. (setStatus): New function.
  10408. (getRange): New function.
  10409. (HttpHeaderHandle): New function.
  10410. * src/HttpHeader.cc
  10411. (getRange): New function.
  10412. * src/Request.h
  10413. (RequestWeakHandle): New definition.
  10414. * src/HttpConnection.h
  10415. (HttpConnectionHandle): New type definition.
  10416. * src/HttpConnection.cc
  10417. (receiveResponse): Set HTTP status to headers.
  10418. * src/main.cc
  10419. (showUsage): Fixed typo.
  10420. * src/Segment.h
  10421. (SegmentHandle): New type definition.
  10422. * src/BitfieldMan.h
  10423. (getMissingUnusedLength): New function.
  10424. * src/BitfieldMan.cc
  10425. (getMissingUnusedLength): New function.
  10426. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10427. To fix static initialization order problem:
  10428. * src/BitfieldManFactory.h
  10429. (defaultRandomizer): Removed.
  10430. (factory): New variable.
  10431. (getNewFactory): Removed.
  10432. (getFactoryInstance): New function.
  10433. (setDefaultRandomizer): Rewritten.
  10434. (getDefaultRandomizer): Rewritten.
  10435. * src/BitfieldManFactory.cc
  10436. (defaultRandomizer): Removed.
  10437. (factory): Initialized to 0.
  10438. (BitfieldManFactory): Initialized randomizer to 0.
  10439. * src/DefaultPieceStorage.cc
  10440. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  10441. * src/Peer.cc
  10442. (Peer): getNewFactory() -> getFactoryInstance()
  10443. * src/SegmentMan.cc
  10444. (initBitfield): getNewFactory() -> getFactoryInstance()
  10445. * src/Piece.cc
  10446. (Piece): getNewFactory() -> getFactoryInstance()
  10447. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10448. To fix the bug that causes crash on Max OS X:
  10449. * src/SimpleRandomizer.h
  10450. (getInstance): Create new instance if the static variable is null.
  10451. * src/SimpleRandomizer.cc
  10452. (randomizer): Initialized to 0.
  10453. * src/BitfieldManFactory.h
  10454. (getNewFactory): Removed the call to setRandomizer().
  10455. To fix the miscalculation of the range of checksum:
  10456. * src/BitfieldMan.h
  10457. (isBitSetOffsetRange): New function.
  10458. * src/BitfieldMan.cc
  10459. (isBitSetOffsetRange): New function.
  10460. * src/SegmentMan.cc
  10461. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  10462. Use bitfield->getBlockLength() instead of segment.segmentLength.
  10463. * Release 0.10.1
  10464. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10465. To lower CPU usage in BitTorrent download when --max-upload-limit
  10466. command-line option specified:
  10467. * src/DefaultBtMessageDispatcher.cc
  10468. (sendMessages): Calculate uploading speed only when current message
  10469. is uploading data and is not sent yet.
  10470. * src/DefaultPeerStorage.h
  10471. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  10472. * src/HttpResponseCommand.cc
  10473. (handleDefaultEncoding): Added the cast to int32_t to itos.
  10474. This fixes compile error in Soralis 10.
  10475. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10476. To fix segfault in Metalink download:
  10477. * src/UrlRequestInfo.h
  10478. (filename): Removed.
  10479. (totalLength): Removed.
  10480. (setTotalLength): Removed.
  10481. (setFilename): Removed.
  10482. * src/MetalinkRequestInfo.cc
  10483. (execute): Do not set filename and totalLength to reqInfo.
  10484. Set chunk checksum to reqInfo if it is not null.
  10485. * src/HttpResponseCommand.cc
  10486. (executeInternal): Fixed filename in log.
  10487. (handleDefaultEncoding): Removed the call to initBitfield() and
  10488. markAllPiecesDone().
  10489. (handleOtherEncoding): Added HEAD method handling.
  10490. * src/FtpNegotiateCommand.cc
  10491. (executeInternal): Added SEQ_HEAD_OK handling.
  10492. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  10493. return false.
  10494. * src/FtpNegotiateCommand.h
  10495. (SEQ_HEAD_OK): New definition.
  10496. * src/SegmentMan.cc
  10497. (initBitfield): Delete bitfield.
  10498. (isChunkChecksumValidationReady): Fixed the condition.
  10499. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  10500. works fine.
  10501. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10502. * src/Xml2MetalinkProcessor.h
  10503. (xpathExists): New function.
  10504. * src/Xml2MetalinkProcessor.cc
  10505. (xpathExists): New function.
  10506. Not to send HEAD request if filename and size are available in Metalink
  10507. file:
  10508. * src/UrlRequestInfo.h
  10509. (filename): New variable.
  10510. (totalLength): New variable.
  10511. (setTotalLength): New function.
  10512. (setFilename): New function.
  10513. * src/MetalinkRequestInfo.cc
  10514. (execute): Set filename and size to UrlRequestInfo.
  10515. * src/MetalinkEntry.cc
  10516. (MetalinkEntry): Initialize size with 0.
  10517. * src/UrlRequestInfo.cc
  10518. (execute): Set filename and size to SegmentMan.
  10519. Not to download rest of the files after selected files are downloaded
  10520. in BitTorrent:
  10521. * src/PieceStorage.h
  10522. (allDownloadFinished): New function.
  10523. * src/DefaultBtAnnounce.cc
  10524. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  10525. downloadFinished.
  10526. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  10527. * src/DefaultPieceStorage.cc
  10528. (completePiece): Use allDownloadFinished instead of downloadFinished.
  10529. Commented out the call to finishSelectiveDownloadingMode().
  10530. (downloadFinished): Call isFilteredAllBitSet() instead of
  10531. isAllBitSet().
  10532. (allDownloadFinished): New function.
  10533. * src/DefaultBtInteractive.cc
  10534. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  10535. downloadFinished().
  10536. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  10537. * src/TorrentDownloadEngine.cc
  10538. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  10539. * src/BitfieldMan.h
  10540. (isFilteredAllBitSet): New function.
  10541. * src/ShareRatioSeedCriteria.h
  10542. (PieceStorage.h): New include.
  10543. (pieceStorage): New variable.
  10544. (evaluate):
  10545. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  10546. * src/BitfieldMan.cc
  10547. (isFilteredAllBitSet): New function.
  10548. (isAllBitSet): Filter is not took into account.
  10549. Rename --force-truncate as --allow-overwrite:
  10550. * src/TorrentRequestInfo.cc
  10551. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  10552. * src/main.cc
  10553. (showUsage): --force-truncate -> --allow-overwrite
  10554. * src/message.h
  10555. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  10556. * src/prefs.h
  10557. (PREF_FORCE_TRUNCATE): Removed.
  10558. (PREF_ALLOW_OVERWRITE): New definition.
  10559. * src/SegmentMan.cc
  10560. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  10561. * src/MetalinkRequestInfo.cc
  10562. (execute): Queueing message are now logged in info level.
  10563. * src/common.h
  10564. (LONG_LONG_MAX): Removed.
  10565. (LONG_LONG_MIN): Removed.
  10566. * src/HttpResponseCommand.cc
  10567. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  10568. * src/FtpNegotiateCommand.cc
  10569. (recvSize): LONG_LONG_MAX -> INT64_MAX
  10570. * src/main.cc
  10571. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  10572. command-line option.
  10573. (main): Added --check-integriy and --realtime-chunk-checksum
  10574. command-line option.
  10575. --force-truncate -> --allow-overwrite
  10576. Set initial value of --check-integrity option to false.
  10577. Don't show usage when error occurs while persing command-line options.
  10578. Removed deprecated --upload-limit option.
  10579. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10580. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  10581. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  10582. * src/BtAllowedFastMessage.cc:
  10583. * src/BtBitfieldMessage.cc
  10584. * src/BtCancelMessage.cc
  10585. * src/BtChokeMessage.cc
  10586. * src/BtHaveAllMessage.cc
  10587. * src/BtHaveMessage.cc
  10588. * src/BtHaveNoneMessage.cc
  10589. * src/BtInterestedMessage.cc
  10590. * src/BtNotInterestedMessage.cc
  10591. * src/BtPieceMessage.cc
  10592. * src/BtPortMessage.cc
  10593. * src/BtRejectMessage.cc
  10594. * src/BtRequestMessage.cc
  10595. * src/BtSuggestPieceMessage.cc
  10596. * src/BtUnchokeMessage.cc
  10597. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  10598. files are affected.
  10599. * src/ChunkChecksumValidator.cc
  10600. * src/SegmentMan.cc
  10601. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10602. To add chunk checksum validation:
  10603. * src/MetalinkEntry.h
  10604. (MetalinkChunkChecksum.h): New include.
  10605. (chunkChecksum): New variable.
  10606. * src/Request.h
  10607. (method): New variable.
  10608. (setMethod): New function.
  10609. (getMethod): New function.
  10610. (METHOD_GET): New static constant.
  10611. (METHOD_HEAD): New static constant.
  10612. * src/Xml2MetalinkProcessor.h
  10613. (getPieceHash): New function.
  10614. * src/PieceStorage.h
  10615. (markAllPiecesDone): New function.
  10616. (checkIntegrity): New function.
  10617. * src/FileAllocator.h
  10618. (NullFileAllocationMonitor.h): New include.
  10619. (FileAllocator): Initialize fileAllocationMonitor with new
  10620. NullFileAllocationMonitor().
  10621. * src/MultiDiskAdaptor.h
  10622. (messageDigest.h): Remove include.
  10623. (ctx): Removed.
  10624. (hashUpdate): Added ctx.
  10625. (MultiDiskAdaptor): Removed ctx.
  10626. (sha1Sum): Renamed as messageDigest.
  10627. (messageDigest): New function.
  10628. * src/UrlRequestInfo.h
  10629. (HeadResult): New class.
  10630. (digestAlgo): New variable.
  10631. (chunkChecksumLength): New variable.
  10632. (chunkChecksums): New variable.
  10633. (getHeadResult): New function.
  10634. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  10635. (setDigestAlgo): New function.
  10636. (setChunkChecksumLength): New function.
  10637. (setChunkChecksums): New function.
  10638. * src/DefaultPieceStorage.cc
  10639. (DiskAdaptorWriter.h): New include.
  10640. (ChunkChecksumValidator.h): New include.
  10641. (markAllPiecesDone): New function.
  10642. (checkIntegrity): New function.
  10643. * src/DefaultBtContext.h
  10644. (getPieceHashes): New function.
  10645. * src/TorrentRequestInfo.cc
  10646. (execute): Try to validate chunk checksum if file already exists and
  10647. .aria2 file doesn't there and user allows aria2 to overwrite it.
  10648. * src/messageDigest.h
  10649. (~MessageDigestContext): Added digestFree().
  10650. * src/MetalinkRequestInfo.cc
  10651. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  10652. * src/DiskAdaptor.h
  10653. (messageDigest.h): New include.
  10654. (sha1Sum): Renamed as messageDigest.
  10655. (messageDigest): New function.
  10656. * src/DownloadCommand.h
  10657. (PeerStat.h): New include.
  10658. (maxDownloadSpeedLimit): New variable.
  10659. (startupIdleTime): New variable.
  10660. (lowestDownloadSpeedLimit): New variable.
  10661. (peerStat): New variable.
  10662. (setMaxDownloadSpeedLimit): New function.
  10663. (setStartupIdleTime): New function.
  10664. (setLowestDownloadSPeedLimit): New function.
  10665. * src/BtContext.h
  10666. (getPieceHashes): New function.
  10667. * src/main.cc
  10668. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  10669. option to true for testing purpose.
  10670. * src/BtPieceMessage.cc
  10671. (checkPieceHash): Use messageDigest
  10672. * src/DownloadEngine.cc
  10673. (SetDescriptor): Removed.
  10674. (AccumulateActiveCommand): Removed.
  10675. (waitData): Rewritten.
  10676. (updateFdSet): Rewritten.
  10677. * src/MultiDiskAdaptor.cc
  10678. (hashUpdate): Added ctx.
  10679. (sha1Sum): Renamed as messageDigest.
  10680. (messageDigest): New function.
  10681. * src/BitfieldMan.h
  10682. (isBitRangeSet): New function.
  10683. (unsetBitRange): New function.
  10684. * src/ByteArrayDiskWriter.h
  10685. (sha1Sum): Renamed as messageDigest.
  10686. (messageDigest): New function.
  10687. * src/ConsoleDownloadEngine.cc
  10688. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  10689. * src/DiskWriter.h
  10690. (messageDigest.h): New include.
  10691. (sha1Sum): Renamed as messageDigest.
  10692. (messageDigest): New function.
  10693. * src/ChunkChecksumValidator.h: New class.
  10694. * src/DiskAdaptorWriter.h: New class.
  10695. * src/prefs.h
  10696. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  10697. (PREF_CHECK_INTEGRITY): New definition.
  10698. * src/HttpResponseCommand.cc
  10699. (handleDefaultEncoding): Added method "HEAD" handling.
  10700. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  10701. (handleOtherEncoding):
  10702. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  10703. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  10704. startupIdleTime, lowestDownloadSpeedLimit to command.
  10705. * src/SegmentMan.h
  10706. (getSegmentEntryByIndex): New function.
  10707. (getSegmentEntryByCuid): New function.
  10708. (getSegmentEntryIteratorByCuid): New function.
  10709. (diskWriter): DiskWriter -> DiskWriterHandle
  10710. (pieceHashes): New variable.
  10711. (chunkHashLength): New variable.
  10712. (digestAlgo): New variable.
  10713. (FindPeerStat): Removed.
  10714. (getPeerStat): Rewritten.
  10715. (markAllPiecesDone): New function.
  10716. (checkIntegrity): New function.
  10717. (tryChunkChecksumValidation): New function.
  10718. (isChunkChecksumValidationReady): New function.
  10719. * src/BitfieldMan.cc
  10720. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  10721. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  10722. blocks to 0.
  10723. (isBitRangeSet): New function.
  10724. (unsetBitRange): New function.
  10725. * src/FtpNegotiateCommand.cc
  10726. (executeInternal): Set maxDownloadSpeedLimit,
  10727. startupIdleTime, lowestDownloadSpeedLimit to command.
  10728. (recvSize): Added method "HEAD" handling.
  10729. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  10730. * src/AbstractSingleDiskAdaptor.cc
  10731. (sha1Sum): Renamed as messageDigest.
  10732. (messageDigest): New function.
  10733. * src/AbstractSingleDiskAdaptor.h
  10734. (sha1Sum): Renamed as messageDigest.
  10735. (messageDigest): New function.
  10736. * src/Util.h
  10737. (indexRange): New function.
  10738. * src/MetalinkEntry.cc
  10739. (MetalinkEntry): Initialized chunkChecksum to 0.
  10740. * src/ShaVisitor.cc
  10741. (~ShaVisitor): Removed the call to ctx.digestFree().
  10742. * src/SegmentMan.cc
  10743. (ChunkChecksumValidator.h): New include.
  10744. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  10745. to DIGEST_ALGO_SHA1.
  10746. (~SegmentMan): Removed diskWriter.
  10747. (FindSegmentEntryByIndex): Removed.
  10748. (FindSegmentEntryByCuid): Removed.
  10749. (checkoutSegment): Rewritten.
  10750. (findSlowerSegmentEntry): Rewritten.
  10751. (getSegment): Rewritten.
  10752. (updateSegment): Rewritten.
  10753. (completeSegment): Rewritten.
  10754. (markAllPiecesDone): New function.
  10755. (checkIntegrity): New function.
  10756. (isChunkChecksumValidationReady): New function.
  10757. (tryChunkChecksumValidation): New function.
  10758. * src/Xml2MetalinkProcessor.cc
  10759. (getEntry): Get size and set it to entry.
  10760. Get chunk checksum and set it to entry.
  10761. (getPieceHash): New function.
  10762. * src/Util.cc
  10763. (sha1Sum): Removed ctx.digestFree()
  10764. (fileChecksum): Removed ctx.digestFree()
  10765. (indexRange): New function.
  10766. * src/Request.cc
  10767. (METHOD_GET): New variable.
  10768. (METHOD_HEAD): New variable.
  10769. (Request): Added method.
  10770. * src/UrlRequestInfo.cc
  10771. (FatalException.h): New include.
  10772. (message.h): New include.
  10773. (operator<<): Added operator<< for class HeadResult.
  10774. (getHeadResult): New function.
  10775. (execute): Get filename and size in separate download engine.
  10776. * src/ChunkChecksumValidator.cc: New class.
  10777. * src/DownloadCommand.cc:
  10778. (DownloadCommand): Added peerStat.
  10779. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  10780. the value from Option.
  10781. The buffer size is now 16KB.
  10782. Use peerStat member instead of getting it from SegmentMan.
  10783. Use startupIdleTime member instead of gettingit from Option.
  10784. Added chunk checksum validation.
  10785. * src/AbstractDiskWriter.cc
  10786. (AbstractDiskWriter): Removed ctx.
  10787. (~AbstractDiskWriter): Removed ctx.digestFree()
  10788. (writeDataInternal): Returns the return value of write.
  10789. (readDataInternal): Returns the return value of read.
  10790. (sha1Sum): Renamed as messageDigest
  10791. (messageDigest): New function.
  10792. * src/AbstractDiwkWriter.h
  10793. (messageDigest.h): Removed include.
  10794. (ctx): Removed.
  10795. (sha1Sum): Renamed as messageDigest
  10796. (messageDigest): New function.
  10797. * src/DefaultPieceStorage.h
  10798. (markAllPiecesDone): New function.
  10799. (checkIntegrity): New function.
  10800. * src/NullFileAllocationMonitor.h: New class.
  10801. * src/MetalinkChunkChecksum.h: New class.
  10802. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10803. To decrease CPU usage in bittorrent download, calculation results in
  10804. BitfieldMan were cached and realtime fetching PeerObject was removed
  10805. with WeakHandle introduced. Option values are set to the objects
  10806. by setter before download begins.
  10807. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  10808. * src/DefaultBtRequestFactory.h
  10809. (dispatcher): BtMessageDispatcherHandle ->
  10810. BtMessageDispatcherWeakHandle.
  10811. (messageFactory): New variable.
  10812. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  10813. BtMessageDispatcherWeakHandle.
  10814. (setBtMessageFactory): New function.
  10815. * src/DefaultBtMessageDispatcher.cc:
  10816. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  10817. from Option.
  10818. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  10819. feating the value from Option.
  10820. Use messageFactory member.
  10821. * src/PeerInteractionCommand.cc
  10822. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  10823. Add reverse dependencies to factory object.
  10824. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  10825. dispatcher.
  10826. Set messageFactory to receiver.
  10827. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  10828. btInteractive.
  10829. Set receiver to peerObject.
  10830. Set maxDownloadSpeedLimit to this.
  10831. (executeInternal): Use maxDownloadSpeedLimit member.
  10832. * src/BtChokeMessage.cc
  10833. (doReceivedAction): Use dispatcher, requestFactory member.
  10834. (onSendComplete): Use dispatcher member.
  10835. * src/PeerInteractionCommand.h
  10836. (maxDownloadSpeedLimit): New variable.
  10837. * src/DefaultBtMessageReceiver.h
  10838. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10839. (dispatcher):
  10840. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  10841. (messageFactory): New variable.
  10842. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10843. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10844. (setDispatcher):
  10845. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  10846. (setBtMessageFactory): New function.
  10847. * src/DefaultBtInteractive.cc
  10848. (initiateHandshake): Use messageFactory member.
  10849. (addBitfieldMessageToQueue): Use messageFactory member.
  10850. (addAllowedFastMessageToQueue): Use messageFactory member.
  10851. (decideChoking): Use messageFactory member.
  10852. (checkHave): Use messageFactory member.
  10853. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  10854. (receiveMessages): Use maxDownloadSpeedLimit member.
  10855. (decideInterest): Use messageFactory member.
  10856. * src/BtRequestMessage.cc
  10857. (doReceivedAction): Use messageFactory, dispatcher member.
  10858. (onQueued): Use dispatcher member.
  10859. * src/BtPieceMessage.cc
  10860. (doReceivedAction): Use dispatcher member.
  10861. (send): Use peerConnection member.
  10862. (onWrongPiece): Use requestFactory member.
  10863. (handleChokingEvent): Use messageFactory, dispatcher member.
  10864. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  10865. * src/BtMessageDispatcher.h
  10866. (BtMessageDispatcherWeakHandle): New type definition.
  10867. * src/SimpleBtMessage.cc
  10868. (send): Use peerConnection member.
  10869. * src/BtRejectMessage.cc
  10870. (doReceivedAction): Use dispatcher member.
  10871. * src/DefaultBtMessageDispatcher.h
  10872. (Option.h): Removed include.
  10873. (messageFactory): New variable.
  10874. (option): Removed.
  10875. (maxUploadSpeedLimit): New variable.
  10876. (requestTimeout): New variable.
  10877. (DefaultBtMessageDispatcher): Removed option.
  10878. Added maxUploadSpeedLimit, requestTimeout.
  10879. (setOption): Removed.
  10880. (getOption): Removed.
  10881. (setMaxUploadSpeedLimit): New function.
  10882. (setRequestTimeout): New function.
  10883. (setBtMessageFactory): New function.
  10884. * src/DefaultBtInteractive.h
  10885. (btMessageReceiver):
  10886. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  10887. (dispatcher):
  10888. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  10889. (btRequestFactory):
  10890. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  10891. (peerConnection):
  10892. PeerConnectionHandle -> PeerConnectionWeakHandle
  10893. (messageFactory): New variable.
  10894. (option): Removed.
  10895. (keepAliveInterval): New variable.
  10896. (maxDownloadSpeedLimit): New variable.
  10897. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  10898. (setBtMessageReceiver):
  10899. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  10900. (setDispatcher):
  10901. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  10902. (setBtRequestFactory):
  10903. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  10904. (setPeerConnection):
  10905. PeerConnectionHandle -> PeerConnectionWeakHandle
  10906. (setOption): Removed.
  10907. (setKeepAliveInterval): New function.
  10908. (setMaxDownloadSpeedLimit): New function.
  10909. (setBtMessageFactory): New function.
  10910. * src/BitfieldMan.h
  10911. (cachedNumMissingBlock): New variable.
  10912. (cachedNumFilteredBlock): New variable.
  10913. (cachedCompletedLength): New variable.
  10914. (cachedFilteredComletedLength): New variable.
  10915. (cachedFilteredTotalLength): New variable.
  10916. (countMissingBlockNow): New function.
  10917. (countFilteredBlockNow): New function.
  10918. (getFilteredTotalLengthNow): New function.
  10919. (getCompletedLengthNow): New function.
  10920. (getFilteredCompletedLengthNow): New function.
  10921. (updateCache): New function.
  10922. * src/AbstractBtMessage.h
  10923. (BtMessageDispatcher.h): New include.
  10924. (PeerConnection.h): New include.
  10925. (BtRequestFactory.h): New include
  10926. (BtMessageFactory.h): New include.
  10927. (dispatcher): New variable.
  10928. (messageFactory): New variable.
  10929. (peerConnection: New variable.
  10930. (setBtMessageDispatcher): New function.
  10931. (setPeerConnection): New function.
  10932. (setBtMessageFactory): New function.
  10933. (setBtRequestFactory): New function.
  10934. * src/DefaultBtMessageFactory.cc
  10935. (setCommonProperty): Set dispatcher, requestFactory, this,
  10936. peerConnection to msg.
  10937. * src/BtRegistry.h
  10938. (BT_MESSAGE_RECEIVER): New macro.
  10939. * src/PeerConnection.h
  10940. (PeerConnectionWeakHandle): New type definition.
  10941. * src/BtMessageFactory.h
  10942. (BtMessageFactoryWeakHandle): New type definition.
  10943. * src/BitfieldMan.cc
  10944. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  10945. cachedCompletedLength, cachedFilteredComletedLength,
  10946. cachedFilteredTotalLength.
  10947. Call updateCache().
  10948. (countMissingBlock): Return cachedNumMissingBlock.
  10949. (countMissingBlockNow): New function.
  10950. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  10951. (countFilteredBlockNow): New function.
  10952. (setBit): Call updateCache().
  10953. (unsetBit): Call updateCache().
  10954. (setBitfield): Call updateCache().
  10955. (clearAllBit): Call updateCache().
  10956. (setAllBit): Use setBitInternal instead of setBit.
  10957. Call updateCache().
  10958. (addFilter): Call updateCache().
  10959. (enableFilter): Call updateCache().
  10960. (disableFilter): Call updateCache().
  10961. (clearFilter): Call updateCache().
  10962. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  10963. (getFilteredTotalLengthNow): New function.
  10964. (getCompletedLength): Return cachedCompletedLength.
  10965. (getCompletedLengthNow): New function.
  10966. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  10967. (getFilteredCompletedLengthNow): New function.
  10968. (updateCache): New function.
  10969. * src/BtMessageReceiver.h
  10970. (BtMessageReceiverWeakHandle): New type definition.
  10971. * src/DefaultBtMessageReceiver.cc
  10972. (receiveHandshake): Use messageFactory member.
  10973. (sendHandshake): Use messageFactory member.
  10974. (receiveMessage): Use messageFactory member.
  10975. * src/DefaultBtMessageFactory.h
  10976. (dispatcher): New variable.
  10977. (requestFactory): New variable.
  10978. (peerConnection): New variablle.
  10979. (setBtMessageDispatcher): New function.
  10980. (setBtRequestFactory): New function.
  10981. (setPeerConnection): New function.
  10982. * src/SharedHandle.h
  10983. (RefCount): New class.
  10984. (WeakHandle): New class.
  10985. * src/PeerObject.h
  10986. (BtMessageReceiver.h): New include.
  10987. (PeerObject): Added btMessageReceiver.
  10988. (btMessageReceiver): New variable.
  10989. * src/Util.cc
  10990. (countBit): Simplified.
  10991. * src/BtCancelMessage.cc
  10992. (doReceivedAction): Use dispatcher member.
  10993. * src/BtRequestFactory.h
  10994. (BtRequestFactoryWeakHandle): New type definition.
  10995. * src/PeerStorage.h
  10996. (downloadSpeed): int -> uint32_t
  10997. (uploadSpeed): int -> uint32_t
  10998. (sessionDownloadLength): long long int -> uint64_t
  10999. (sessionUploadLength): long long int -> uint64_t
  11000. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11001. To add RecoverableException, FatalException:
  11002. * src/AbstractCommand.cc
  11003. (onAbort): Exception -> RecoverableException
  11004. * src/PeerAbstractCommand.h
  11005. (RecoverableException.h): New include.
  11006. (onAbort): Exception -> RecoverableException.
  11007. * src/PeerInteractionCommand.cc
  11008. (onAbort): Exception -> RecoverableException.
  11009. * src/PeerAbstractCommand.cc
  11010. (execute): Exception -> RecoverableException.
  11011. (onAbort): Exception -> RecoverableException.
  11012. * src/TorrentRequestInfo.cc
  11013. (execute): Exception -> RecoverableException.
  11014. * src/MetalinkRequestInfo.cc
  11015. (execute): Exception -> RecoverableException.
  11016. * src/MetaFileUtil.cc: RecoverableException.
  11017. * src/AbstractCommand.h
  11018. (onAbort): Exception -> RecoverableException.
  11019. * src/DlRetryEx.h: Exception -> RecoverableException.
  11020. * src/DlAbortEx.h: Exception -> RecoverableException.
  11021. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  11022. * src/Util.cc: Exception -> RecoverableException.
  11023. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  11024. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  11025. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  11026. To make ID static const int
  11027. * src/BtInterestedMessage.h
  11028. (ID_t): Removed.
  11029. (ID): New variable.
  11030. (getId): Made non-const.
  11031. * src/BtPieceMessage.h
  11032. (ID_t): Removed.
  11033. (ID): New variable.
  11034. (getId): Made non-const.
  11035. * src/BtChokeMessage.h
  11036. (ID_t): Removed.
  11037. (ID): New variable.
  11038. (getId): Made non-const.
  11039. * src/BtHaveAllMessage.h
  11040. (ID_t): Removed.
  11041. (ID): New variable.
  11042. (getId): Made non-const.
  11043. * src/BtKeepAliveMessage.h
  11044. (ID_t): Removed.
  11045. (ID): New variable.
  11046. (getId): Made non-const.
  11047. * src/BtHandshakeMessage.h
  11048. (ID): New variable.
  11049. (getId): Made non-const.
  11050. * src/BtSuggestPieceMessage.h
  11051. (ID_t): Removed.
  11052. (ID): New variable.
  11053. (getId): Made non-const.
  11054. * src/BtPortMessage.h
  11055. (ID_t): Removed.
  11056. (ID): New variable.
  11057. (getId): Made non-const.
  11058. * src/AbstractBtMessage.h
  11059. (id): Removed.
  11060. (AbstractBtMessage): Removed id.
  11061. (getId): Removed.
  11062. * src/BtHaveMessage.h
  11063. (ID_t): Removed.
  11064. (ID): New variable.
  11065. (getId): Made non-const.
  11066. * src/BtAllowedFastMessage.h
  11067. (ID_t): Removed.
  11068. (ID): New variable.
  11069. (getId): Made non-const.
  11070. * src/BtCancelMessage.h
  11071. (ID_t): Removed.
  11072. (ID): New variable.
  11073. (getId): Made non-const.
  11074. * src/BtNotInterestedMessage.h
  11075. (ID_t): Removed.
  11076. (ID): New variable.
  11077. (getId): Made non-const.
  11078. * src/BtChokeMessage.h
  11079. (ID_t): Removed.
  11080. (ID): New variable.
  11081. (getId): Made non-const.
  11082. * src/BtRejectMessage.h
  11083. (ID_t): Removed.
  11084. (ID): New variable.
  11085. (getId): Made non-const.
  11086. * src/BtBitfieldMessage.h
  11087. (ID_t): Removed.
  11088. (ID): New variable.
  11089. (getId): Made non-const.
  11090. * src/BtUnchokeMessage.h
  11091. (ID_t): Removed.
  11092. (ID): New variable.
  11093. (getId): Made non-const.
  11094. * src/BtRequestMessage.h
  11095. (ID_t): Removed.
  11096. (ID): New variable.
  11097. (getId): Made non-const.
  11098. * src/BtHaveMessage.h
  11099. (ID_t): Removed.
  11100. (ID): New variable.
  11101. (getId): Made non-const.
  11102. To add --force-truncate command-line option and a check whether
  11103. the file already exists:
  11104. * src/DirectDiskAdaptor.h
  11105. (getFilePath): Made virtual public.
  11106. * src/MultiDiskAdaptor.h
  11107. (File.h): New include.
  11108. (DiskWriterEntry::fileEntry): Made private.
  11109. (DiskWriterEntry::fileExists): New function.
  11110. (DiskWriterEntry::getFileEntry): New function.
  11111. (fileExists): New function.
  11112. (getFilePath): New function.
  11113. * src/TorrentRequestInfo.cc
  11114. (FatalException.h): New include.
  11115. (message.h): New include.
  11116. (RecoverableException.h): New include.
  11117. (execute): Added a check whether file is already exists or not.
  11118. * src/DiskAdaptor.h
  11119. (fileExists): New function.
  11120. (getFilePath): New function.
  11121. * src/main.cc
  11122. (showUsage): Added an explanation of --force-truncate command-line
  11123. option.
  11124. (main): Added --force-truncate command-line option.
  11125. * src/Exception.h
  11126. (setMsg): buf[256] -> buf[1024]
  11127. * src/CopyDiskWriter.h
  11128. (getFilePath): Made public virtual.
  11129. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  11130. (fileExists): New function.
  11131. * src/DownloadEngineFactory.cc
  11132. (newTorrentConsoleEngine): Don't open file here.
  11133. * src/message.h
  11134. (EX_FILE_ALREADY_EXISTS): New definition.
  11135. * src/prefs.h
  11136. (PREF_FOECE_TRUNCATE): New definition.
  11137. * src/HttpResponseCommand.cc
  11138. (handleDefaultEncoding): Added a check whether the file already exists.
  11139. * src/SegmentMan.h
  11140. (fileExists): New function.
  11141. (shouldCancelDownloadForSafety): New function.
  11142. * src/FtpNegotiateCommand.cc
  11143. (recvSize): Added a check whether the file already exists.
  11144. * src/AbstractSingleDiskAdaptor.cc
  11145. (File.h): New include.
  11146. (fileExists): New function.
  11147. * src/AbstractSingleDiskAdaptor.h
  11148. (getFilePath): Removed.
  11149. (fileExists): New function.
  11150. * src/SegmentMan.cc
  11151. (fileExists): New function.
  11152. (shouldCancelDownloadForSafety): New function.
  11153. To fix regression bug in torrent downloading:
  11154. * src/DefaultBtRequestFactory.cc
  11155. (doChokedAction): New function.
  11156. * src/DefaultBtRequestFactory.h
  11157. (doChokedAction): New function.
  11158. * src/DefaultBtMessageDispatcher.cc
  11159. (doChokedAction): Do not delete request if its target is in allowed
  11160. fast set.
  11161. * src/DefaultBtInteractive.cc
  11162. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  11163. (sendKeepAlive): Send keep alive message even if the outgoing message
  11164. queue is not empty.
  11165. (decideInterest): Simplified the code.
  11166. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  11167. it is already called when BtChokeMessage is received from a peer.
  11168. * src/BtRequestFactory.h
  11169. (doChokedAction): New function.
  11170. To clean up code:
  11171. * src/PeerInteractionCommand.h
  11172. (executeInternal): Added virtual keyword explicitly.
  11173. (prepareForRetry): Added virtual keyword explicitly.
  11174. (prepareForNextPeer): Added virtual keyword explicitly.
  11175. (onAbort): Added virtual keyword explicitly.
  11176. * src/RequestSlot.cc
  11177. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  11178. * src/BtPieceMessage.cc
  11179. (doReceivedAction): Added a debug log of piece's bitfield.
  11180. * src/Piece.h
  11181. (getBitfieldLength): New function.
  11182. * src/ByteArrayDiskWriter.cc
  11183. (clear): Added buf = 0 to avoid double free corruption.
  11184. * src/FileAllocator.cc
  11185. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  11186. Added cp.reset().
  11187. * src/BitfieldMan.h
  11188. (operator=): Rewritten.
  11189. * src/BitfieldMan.cc
  11190. (BitfieldMan): Initialized bitfield, useBitfield.
  11191. * src/PeerConnection.cc
  11192. (receiveMessage): Added a call to socket->readable() after getting
  11193. message length to avoid possible EOF.
  11194. * src/Util.cc
  11195. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  11196. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11197. To add an ability to pre-allocate file space:
  11198. * src/DirectDiskAdaptor.h: Rewritten.
  11199. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  11200. * src/MultiDiskAdaptor.h: Rewritten.
  11201. * src/DefaultPieceStorage.cc
  11202. (MultiDiskWriter.h): Removed include.
  11203. (PreAllocationDiskWriter.h): Removed include.
  11204. (FileAllocationMonitor.h): New include.
  11205. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  11206. (initStorage): Rewritten.
  11207. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11208. * src/FileAllocator.h: New class.
  11209. * src/FileAllocator.cc: New class.
  11210. * src/FileAllocationMonitor.h: New class.
  11211. * src/FileAllocationMonitor.cc: New class.
  11212. * src/ConsoleFileAllocationMonitor.h: New class.
  11213. * src/ConsoleFileAllocationMonitor.cc: New class.
  11214. * src/AbstractSingleDiskAdaptor.h: New class.
  11215. * src/AbstractSingleDiskAdaptor.cc: New class.
  11216. * src/DiskAdaptor.h
  11217. (Directory.h): Removed include.
  11218. (DiskWriter.h): Removed include.
  11219. (FileEntry.h): Removed include.
  11220. (diskWriter): Removed.
  11221. (DiskAdaptor): Removed diskWriter.
  11222. (openFile): Made pure virtual.
  11223. (closeFile): Made pure virtual.
  11224. (openExistingFile): Made pure virtual.
  11225. (initAndOpenFile): Made pure virtual.
  11226. (writeData): Made pure virtual.
  11227. (readData): Made pure virtual.
  11228. (sha1Sum): Made pure virtual.
  11229. (getStoreDir): Returns const reference of storeDir.
  11230. (DiskAdaptorHandle): New type definition.
  11231. * src/main.cc
  11232. (ConsoleFileAllocationMonitor.h): New include.
  11233. (showUsage): Added default value description of -s option.
  11234. Added the description of --file-allocation option.
  11235. (main): Set default value of --file-allocation option to 'none'.
  11236. Added --file-allocation command-line option.
  11237. Setup FileAllocationMonitorFactory.
  11238. * src/FtpInitiateConnectionCommand.cc
  11239. (executeInternal): Removed diskWriter related processing, which was
  11240. moved to FtpNegotiationCommand.cc.
  11241. * src/DirectDiskAdaptor.cc
  11242. (getFilePath): Made non-const.
  11243. * src/CopyDiskAdaptor.h
  11244. (DiskAdaptor.h): Removed include.
  11245. (DiskWriter.h): Removed include.
  11246. (AbstractSingleDiskAdaptor.h): New include.
  11247. (getFilePath): Made non-const. Added virtual keyword.
  11248. (CopyDiskAdaptor): Removed diskWriter.
  11249. (getTempFile): Returns const reference.
  11250. (CopyDiskAdaptorHandle): New type definition.
  11251. * src/ByteArrayDiskWriter.cc
  11252. (clear): Simplified.
  11253. (initAndOpenFile): Rewritten.
  11254. (openFile): Call initAndOpenFile()
  11255. * src/MultiDiskAdaptor.cc: Rewritten.
  11256. * src/DownloadEngineFactory.cc
  11257. (FileAllocator.h): New include.
  11258. (FileAllocationMonitor.h): New include.
  11259. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  11260. create DefaultDiskWriter with file allocator.
  11261. * src/DiskWriter.h
  11262. (initAndOpenFile): Added totalLength argument.
  11263. (openFile): Added totalLength argument.
  11264. * src/prefs.h
  11265. (PREF_FILE_ALLOCATION): New definition.
  11266. (V_PREALLOC): New definition.
  11267. (V_NONE): New definition.
  11268. * src/HttpResponseCommand.cc
  11269. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  11270. size.
  11271. * src/FtpNegotiateCommand.cc
  11272. (Util.h): New include.
  11273. (recvSize): Open file here.
  11274. * src/Util.h
  11275. (ullitos): New function.
  11276. * src/CopyDiskWriter.h
  11277. (getFilePath): Made non-const.
  11278. * src/DefaultDiskWriter.h
  11279. (Option.h): New include.
  11280. (totalLength): Removed.
  11281. (DefaultDiskWriter): Removed totalLength.
  11282. (initAndOpenFile): Added totalLength argument.
  11283. (DefaultDiskWriterHandle): New type definition.
  11284. (createNewDiskWriter): New function.
  11285. * src/Util.cc
  11286. (ullitos): New function.
  11287. * src/DefaultDiskWriter.cc
  11288. (message.h): New include.
  11289. (FileAllocator.h): New include.
  11290. (prefs.h): New include.
  11291. (Util.h): New include.
  11292. (DefaultDiskWriter): Removed totalLength.
  11293. (initAndOpenFile): Added file allocation.
  11294. (createNewDiskWriter): New function. Just for temporary solution.
  11295. It will be rewritten later.
  11296. * src/DiskAdaptor.cc
  11297. (DiskAdaptor): Removed diskWriter.
  11298. * src/AbstractDiskWriter.cc
  11299. (LogFactory.h): New include.
  11300. (AbstractDiskWriter): Added fileAllocator, logger.
  11301. (openFile): Added totalLength argument.
  11302. * src/AbstractDiskWriter.h
  11303. (FileAllocator.h): New include.
  11304. (Logger.h): New include.
  11305. (fileAllocator): New variable.
  11306. (logger): New variable.
  11307. (openFile): Added totalLength argument. Added virtual keyword
  11308. explicitly.
  11309. (openExistingFile): Added totalLength argument. Added virtual keyword
  11310. explicitly.
  11311. (closeFile): Added virtual keyword explicitly.
  11312. (sha1Sum): Added virtual keyword explicitly.
  11313. (writeData): Added virtual keyword explicitly.
  11314. (readData): Added virtual keyword explicitly.
  11315. (setFileAllocator): New function.
  11316. * src/DefaultPieceStorage.h
  11317. (FileAllocator.h): New include.
  11318. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11319. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11320. * src/FileProgressMonitor.h: New class.
  11321. To compile aria2 on PC-BSD:
  11322. * src/DefaultBtContext.cc
  11323. (libgen.h): New include.
  11324. To fix memory leak:
  11325. * src/Exception.h
  11326. (~Exception): Delete cause. Fixed memory leak.
  11327. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11328. Rewritten a portion of bittorrent implementation:
  11329. * src/BtMessageValidator.h: New class.
  11330. * src/BtBitfieldMessageValidator.h: New class.
  11331. * src/BtHandshakeMessageValidator.h: New class.
  11332. * src/BtRequestMessageValidator.h: New class.
  11333. * src/BtSuggestPieceMessageValidator.h: New class.
  11334. * src/BtAllowedFastMessageValidator.h: New class.
  11335. * src/BtRejectMessageValidator.h: New class.
  11336. * src/BtCancelMessageValidator.h: New class.
  11337. * src/BtPieceMessageValidator.h: New class.
  11338. * src/BtHaveMessageValidator.h: New class.
  11339. * src/BtEventListener.h: New class.
  11340. * src/AbstractBtEventListener.h: New class.
  11341. * src/BtEvent.h: New class.
  11342. * src/BtChokingEvent.h: New class.
  11343. * src/BtChokedEvent.h: New class.
  11344. * src/BtCancelSendingPieceEvent.h: New class.
  11345. * src/BtAbortOutstandingRequestEvent.h: New class.
  11346. * src/Randomizer.h: New class.
  11347. * src/SimpleRandomizer.h: New class.
  11348. * src/BtMessage.h: New class.
  11349. * src/AbstractBtMessage.h: New class.
  11350. * src/SimpleBtMessage.h: New class.
  11351. * src/BtHaveMessage.h: New class.
  11352. * src/BtInterestedMessage.h: New class.
  11353. * src/BtAllowedFastMessage.h: New class.
  11354. * src/BtUnchokeMessage.h: New class.
  11355. * src/BtCancelMessage.h: New class.
  11356. * src/BtNotInterestedMessage.h: New class.
  11357. * src/BtChokeMessage.h: New class.
  11358. * src/BtHaveNoneMessage.h: New class.
  11359. * src/BtHandshakeMessage.h: New class.
  11360. * src/BtSuggestPieceMessage.h: New class.
  11361. * src/BtHaveMessage.h: New class.
  11362. * src/BtPieceMessage.h: New class.
  11363. * src/BtHaveAllMessage.h: New class.
  11364. * src/BtKeepAliveMessage.h: New class.
  11365. * src/BtPortMessage.h: New class.
  11366. * src/BtRejectMessage.h: New class.
  11367. * src/BtBitfieldMessage.h: New class.
  11368. * src/BtRequestMessage.h: New class.
  11369. * src/DefaultBtRequestFactory.h: New class.
  11370. * src/DefaultBtMessageReceiver.h: New class.
  11371. * src/BtInteractive.h: New class.
  11372. * src/BtMessageDispatcher.h: New class.
  11373. * src/DefaultBtMessageDispatcher.h: New class.
  11374. * src/DefaultBtInteractive.h: New class.
  11375. * src/BitfieldManFactory.h: New class.
  11376. * src/HandleRegistry.h: New class.
  11377. * src/BtMessageFactory.h: New class.
  11378. * src/BtMessageReceiver.h: New class.
  11379. * src/DefaultBtMessageFactory.h: New class.
  11380. * src/PeerObject.h: New class.
  11381. * src/BtRequestFactory.h: New class.
  11382. * src/SuggestPieceMessage.h: Removed.
  11383. * src/PortMessage.h: Removed.
  11384. * src/SuggestPieceMessage.h: Removed.
  11385. * src/KeepAliveMessage.h: Removed.
  11386. * src/HandshakeMessage.h: Removed.
  11387. * src/PeerInteraction.h: Removed.
  11388. * src/UnchokeMessage.h: Removed.
  11389. * src/PieceMessage.h: Removed.
  11390. * src/RequestMessage.h: Removed.
  11391. * src/InterestedMessage.h: Removed.
  11392. * src/HaveMessage.h: Removed.
  11393. * src/CancelMessage.h: Removed.
  11394. * src/RejectMessage.h: Removed.
  11395. * src/AllowedFastMessage.h: Removed.
  11396. * src/HaveNoneMessage.h: Removed.
  11397. * src/SimplePeerMessage.h: Removed.
  11398. * src/HaveAllMessage.h: Removed.
  11399. * src/BitfieldMessage.h: Removed.
  11400. * src/PeerMessageFactory.h: Removed.
  11401. * src/NotInterestedMessage.h: Removed.
  11402. * src/ChokeMessage.h: Removed.
  11403. * src/PeerMessage.h: Removed.
  11404. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11405. To know root cause of exception:
  11406. * src/Exception.h
  11407. (cause): New variable.
  11408. (Exception): Added a parameter.
  11409. (getMsg): Return const reference to msg.
  11410. (getCause): New function.
  11411. * src/DlRetryEx.h
  11412. (DlRetryEx): Added a parameter 'cause'.
  11413. Added an overloaded constructor.
  11414. (DlAbortEx): Added a parameter 'cause'.
  11415. Added an overloaded constructor.
  11416. * src/SimpleLogger.cc
  11417. (writeLog): Log nested exception messages recursively.
  11418. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11419. * src/DefaultBtProgressInfoFile.cc
  11420. (load): Fixed memory leak when the infohash doesn't match.
  11421. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11422. * src/DefaultPeerStorage.cc
  11423. (calculateStat): Simplified the code by combining 2 loops into 1.
  11424. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11425. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  11426. for BitTorrent download:
  11427. * src/PeerAbstractCommand.cc
  11428. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  11429. * src/main.cc:
  11430. (timeoutSpecified): Removed.
  11431. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  11432. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  11433. * src/TorrentRequestInfo.cc
  11434. (timeoutSpecified): Removed.
  11435. (torrentHandler): Removed timeoutSpecified and the adjustment of
  11436. timeout value.
  11437. * src/prefs.h
  11438. (PREF_BT_TIMEOUT): New definition.
  11439. Delete unused variables:
  11440. * src/TorrentRequestInfo.cc
  11441. (requestInfo): Removed.
  11442. Move setSignalHander to Util::setGlobalSignalHandler:
  11443. * src/TorrentRequestInfo.cc:
  11444. setSignalHander -> Util::setGlobalSignalHandler
  11445. * src/main.cc
  11446. (setSignalHander): Removed.
  11447. (main): setSignalHander -> Util::setGlobalSignalHandler
  11448. * src/Util.h
  11449. (setGlobalSignalHandler): New function.
  11450. * src/Util.cc
  11451. (setGlobalSignalHandler): New function.
  11452. * src/UrlRequestInfo.cc:
  11453. setSignalHander -> Util::setGlobalSignalHandler
  11454. Reset peer status in order to exit gracefully:
  11455. * src/PeerAbstractCommand.cc
  11456. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  11457. To fix the bug that causes the number of bytes uploaded is not saved
  11458. to .aria2 file:
  11459. * src/DefaultPeerStorage.h
  11460. (removedPeerSessionDownloadLength): New variable.
  11461. (removedPeerSessionUploadLength): New variable.
  11462. * src/DefaultPeerStorage.cc
  11463. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  11464. removedPeerSessionUploadLength(0).
  11465. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  11466. through all peers, and then add removedPeerSessionDownloadLength(
  11467. removedPeerSessionUploadLength) to it.
  11468. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  11469. (to) the peer to removedPeerSessionDownloadLength
  11470. (removedPeerSessionUploadLength).
  11471. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11472. To add Metalink location option:
  11473. * src/MetalinkRequestInfo.cc
  11474. (execute): Call MetalinkEntry::setLocationPreference()
  11475. * src/main.cc
  11476. (showUsage): Added the help message for --metalink-location option.
  11477. (main): Added --metalink-location option.
  11478. * src/prefs.h
  11479. (PREF_METALINK_LOCATION): New definition.
  11480. * src/MetalinkEntry.cc
  11481. (AddLocationPreference): New function object.
  11482. (setLocationPreference): New function.
  11483. * src/Xml2MetalinkProcessor.cc
  11484. (getResource): Set location attribute to MetalinkResource
  11485. To show URLs to download
  11486. * src/UrlRequestInfo.h
  11487. (printUrls): New function.
  11488. To add multiple <file> Metalink support:
  11489. * src/MetalinkEntry.h
  11490. (MetalinkResources): Removed.
  11491. (setLocationPreference): New function.
  11492. (MetalinkEntryHandle): New type definition.
  11493. (MetalinkEntries): New type definition.
  11494. * src/Xml2MetalinkProcessor.h
  11495. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  11496. (getResource): MetalinkResource* -> MetalinkResourceHandle
  11497. (parseFile): Metalinker* -> MetalinkerHandle
  11498. * src/UrlRequestInfo.h
  11499. (execute): RequestInfo* -> RequestInfos
  11500. * src/MetalinkRequestInfo.cc
  11501. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  11502. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  11503. (execute): RequestInfo* -> RequestInfos
  11504. Added multiple <file> support. Print filename when it is queued.
  11505. * src/MetalinkRequestInfo.h
  11506. (execute): RequestInfo* -> RequestInfos
  11507. (getDownloadEngine): Removed.
  11508. * src/RequestInfo.h
  11509. (RequestInfoHandle): New type definition.
  11510. (RequestInfos): New type definition.
  11511. (execute): RequestInfo* -> RequestInfos
  11512. (getDownloadEngine): Removed.
  11513. * src/MetalinkResource.h
  11514. (MetalinkResourceHandle): New type definition.
  11515. (MetalinkResources): New type definition.
  11516. * src/MetalinkEntry.cc
  11517. (~MetalinkEntry): Removed the deletion of the elements of resources,
  11518. because the element is now of type MetalinkResourceHandle.
  11519. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  11520. (Supported): MetalinkResource* -> MetalinkResourceHandle
  11521. (dropUnsupportedResource): Removed the deletion of the elements of
  11522. resources because the element is now of type MetalinkResourceHandle.
  11523. * src/Xml2MetalinkProcessor.cc
  11524. (parseFile): Metalinker* -> MetalinkerHandle
  11525. MetalinkEntry* -> MetalinkEntryHandle
  11526. Removed try-catch block.
  11527. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  11528. MetalinkResource* -> MetalinkResourceHandle
  11529. Removed try-catch block.
  11530. (getResource): MetalinkResource* -> MetalinkResourceHandle
  11531. Free result by using xmlXPathFreeObject()
  11532. * src/Metalinker.cc
  11533. (~Metalinker): Removed the deletion of entries.
  11534. MetalinkEntry* -> MetalinkEntryHandle
  11535. (queryEntry): Add multiple <file> Metalink support.
  11536. * src/Metalinker.h
  11537. (MetalinkEntries): Removed.
  11538. (queryEntry): MetalinkEntry* -> MetalinkEntries
  11539. * src/MetalinkProcessor.h
  11540. (parseFile): Metalinker* -> MetalinkerHandle
  11541. Bug fixes:
  11542. * src/PeerChokeCommand.cc
  11543. (execute): cat01->cat02
  11544. * src/DefaultPieceStorage.cc
  11545. (DefaultPieceStorage): Added diskAdaptor(0)
  11546. * src/TrackerWatcherComand.cc:
  11547. (execute): Use btAnnounce->noMoreAnnounce()
  11548. to determin whether the function returns true or not.
  11549. * src/TrackerUpdateCommand.cc:
  11550. (execute): Use btAnnounce->noMoreAnnounce()
  11551. to determin whether the function returns true or not.
  11552. * src/FtpConnection.cc
  11553. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  11554. This is the fix of the busy loop bug.
  11555. * src/DownloadCommand.cc
  11556. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  11557. cached PeerStat.
  11558. The value of "name" entry in torrent file is now set by
  11559. *DiskAdaptor::setTopDir(...) methods.
  11560. * src/MultiDiskAdaptor.h
  11561. (topDir): New variable.
  11562. (setTopDir): New function.
  11563. (getTopDir): New function.
  11564. * src/MultiDiskAdaptor.cc
  11565. (getFilePath): Concat storDir, "/" and topDir.
  11566. (mkdir): Use getFilePath() to get the directory path for output.
  11567. * src/DefaultPieceStorage.cc
  11568. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  11569. CopyDiskAdaptor.
  11570. * src/CopyDiskAdaptor.h
  11571. (topDir): New variable.
  11572. (setTopDir): New function.
  11573. (getTopDir): New function.
  11574. * src/CopyDiskAdaptor.cc
  11575. (fixFilename): Updated.
  11576. Misc
  11577. * src/UrlRequestInfo.h
  11578. (e): Removed.
  11579. (UrlRequestInfo): Removed e.
  11580. (getDownloadEngine): Removed.
  11581. * src/UrlRequestInfo.cc
  11582. (handler): Rewritten.
  11583. (printUrls): New function.
  11584. (execute): Call printUrls().
  11585. * src/HandshakeMessage.cc
  11586. (check): peerinteraction->getBtContext() -> btContext
  11587. * src/PeerInteraction.h
  11588. (getBtContext): Removed.
  11589. * src/TorrentRequestInfo.h
  11590. (execute): RequestInfo* -> RequestInfos
  11591. (getDownloadEngine): Removed.
  11592. * src/TorrentRequestInfo.cc
  11593. (haltRequested): Removed.
  11594. (btHaltRequested): New variable.
  11595. (torrentHandler): haltRequested -> btHaltRequested
  11596. (execute): RequestInfo* -> RequestInfos
  11597. * src/TorrentConsoleDownloadEngine.cc
  11598. (afterEachIteration): haltRequested -> btHaltRequested.
  11599. * src/ConsoleDownloadEngine.h
  11600. (initStatistics): Added virtual.
  11601. (calculateStatistics): Added virtual.
  11602. (onEndOfRun): Added virtual.
  11603. (afterEachIteration): Added virtual.
  11604. * src/ConsoleDownloadEngine.cc
  11605. (haltRequested): New variable.
  11606. (afterEachIteration): New function.
  11607. * src/main.cc
  11608. (requestInfo): Removed.
  11609. * src/SegmentMan.cc
  11610. (findSlowerSegmentEntry): Refactored.
  11611. * Release 0.9.0
  11612. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11613. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  11614. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  11615. * src/TorrentMan.h: Removed.
  11616. * src/TorrentMan.cc: Removed.
  11617. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  11618. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  11619. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  11620. * src/PeerAbstractCommand.cc: Use btRuntime.
  11621. * src/BtContextAwareCommand.h: New class.
  11622. * src/FileEntry.h: Added accessor methods for following variables.
  11623. (path): Made private.
  11624. (length): Made private.
  11625. (offset): Made private.
  11626. (extracted): Made private.
  11627. (requested): Made private.
  11628. (FileEntries): New definition.
  11629. (FileEntryHandle): New definition.
  11630. * src/FileEntry.cc: New file.
  11631. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  11632. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  11633. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  11634. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  11635. * src/PieceStorage.h: New file.
  11636. * src/PeerInteractionCommand.h: Use btContext.
  11637. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  11638. btRuntime.
  11639. * src/DefaultBtProgressInfoFile.h: New file.
  11640. * src/DefaultBtProgressInfoFile.cc: New file.
  11641. * src/File.cc
  11642. (Util.h): New include.
  11643. (mkdirs): New function.
  11644. * src/MultiDiskAdaptor.h
  11645. (mkdir): New function.
  11646. * src/PeerListProcessor.h
  11647. (Peers): Removed.
  11648. * src/PeerInteraction.h
  11649. (torrentMan): Removed.
  11650. (btContext): New variable.
  11651. (peerStorage): New variable.
  11652. (pieceStorage): New variable.
  11653. (btAnnounce): New variable.
  11654. (getTorrentMan): Removed.
  11655. (getBtContext): New function.
  11656. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  11657. btAnnounce.
  11658. * src/HandshakeMessage.h
  11659. (TorrentMan.h): Removed.
  11660. * src/HandshakeMessage.cc: Use btContext.
  11661. * src/DefaultBtAnnounce.cc: New file.
  11662. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  11663. * src/DefaultPieceStorage.cc: New file.
  11664. * src/DefaultBtContext.h: New file.
  11665. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  11666. Use the accessor methods of FileEntry.
  11667. * src/CookieBox.cc: Updated to use Util::slice().
  11668. * src/PieceMessage.cc: Use btContext, pieceStorage.
  11669. * src/common.h (SharedHandle.h): New include.
  11670. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  11671. pieceStorage.
  11672. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  11673. * src/DiskAdaptor.h
  11674. (topDir): Removed.
  11675. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  11676. (setTopDir): Removed.
  11677. (getTopDir): Removed.
  11678. * src/BtContext.h: New file.
  11679. * src/DefaultPeerStorage.h: New file.
  11680. * src/PieceMessage.h (TorrentMan.h): Removed.
  11681. * src/RequestMessage.h (TorrentMan.h): Removed.
  11682. * src/TorrentDownloadEngine.h
  11683. (uploadLength): New variable.
  11684. (btContext): New variable.
  11685. (btRuntime): New variable.
  11686. (pieceStorage): New variable.
  11687. (peerStorage): New variable.
  11688. (btAnnounce): New variable.
  11689. (btProgressInfoFile): New variable.
  11690. (torrentMan): Removed.
  11691. (setBtContext): New function.
  11692. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  11693. peerStorage, btAnnounce, btProgressInfoFile.
  11694. * src/Piece.h
  11695. (toString): New function.
  11696. (Pieces): New type definition.
  11697. * src/Peer.h
  11698. (active): New variable.
  11699. (Peer): Added active.
  11700. (activate): Set active to true.
  11701. (deactivate): Set active to false.
  11702. (isActive): New function.
  11703. (Peers): New type definition.
  11704. * src/DirectDiskAdaptor.cc
  11705. (getFilePath): Use the accessor methods of FileEntry.
  11706. * src/TorrentConsoleDownloadEngine.h
  11707. (afterEachIteration): New function.
  11708. * src/TorrentConsoleDownloadEngine.cc
  11709. (haltRequested): New variable.
  11710. (sendStatistics): Use pieceStorage, btRuntime.
  11711. (afterEachIteration): New function.
  11712. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  11713. * src/Directry.h
  11714. (Directory): New function.
  11715. (DirectoryHandle): New type definition.
  11716. * src/BtProgressInfoFile.h: New file.
  11717. * src/RequestMessage.cc: Use pieceStorage.
  11718. * src/BtRuntime.h: New file.
  11719. * src/DefaultBtContext.cc: New file.
  11720. * src/BitfieldMan.h
  11721. (getCompletedLength): New function(private).
  11722. (getCompletedLength): New function.
  11723. (getFilteredCompletedLength): New function.
  11724. * src/BitfieldMan.h
  11725. (getCompletedLength): New function(private).
  11726. (getCompletedLength): New function.
  11727. (getFilteredCompletedLength): New function.
  11728. * src/MultiDiskAdaptor.cc
  11729. (mkdir): New function.
  11730. (openFile): Call mkdir().
  11731. (initAndOpenFile): Call mkdir().
  11732. * src/CancelMessage.h
  11733. (TorrentMan.h): Removed.
  11734. * src/RejectMessage.h
  11735. (TorrentMan.h): Removed.
  11736. * src/DownloadEngineFactory.cc
  11737. (DefaultPieceStorage.h): New include.
  11738. (DefaultPeerStorage.h): New include.
  11739. (DefaultBtAnnounce.h): New include.
  11740. (DefaultBtProgressInfoFile.h): New include.
  11741. (newTorrentConsoleEngine): Rewritten.
  11742. * src/ShareRatioSeedCriteria.h
  11743. (torrentMan): Removed.
  11744. (btContext): New variable.
  11745. (peerStorage): New variable.
  11746. (btRuntime): New variable.
  11747. (evaluate): Use btContext, btRuntime, peerStorage.
  11748. * src/AnnounceTier.h: New file.
  11749. * src/BtAnnounce.h: New file.
  11750. * src/BtRegistry.h: New file.
  11751. * src/PeerInitiateConnectionCommand.h: Added btContext.
  11752. * src/PeerConnection.h (TorrentMan.h): Removed.
  11753. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  11754. * src/Util.h
  11755. (slice): Added an argument.
  11756. * src/Util.cc
  11757. (slice): Added an argument to control whether trim is made or not.
  11758. * src/PeerStorage.h: New file.
  11759. * src/BtRegistry.cc: New file.
  11760. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  11761. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  11762. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  11763. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  11764. * src/TorrentRequestInfo.h
  11765. (e): Removed.
  11766. (showFileEntry): Added an argument.
  11767. (getDownloadEngine): Return 0.
  11768. * src/DefaultBtAnnounce.h: New file.
  11769. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  11770. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  11771. * src/PeerMessageFactory.h
  11772. (btContext): New variable.
  11773. (pieceStorage): New variable.
  11774. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  11775. btAnnounce.
  11776. * src/DiskAdaptor.cc
  11777. (DiskAdaptor): Removed topDir.
  11778. (~DiskAdaptor): Removed topDir.
  11779. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  11780. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  11781. * src/File.h (mkdirs): New function.
  11782. * src/DefaultPeerStorage): New file.
  11783. * src/DownloadEngineFactory.h
  11784. (newTorrentConsoleEngine): Use btContext.
  11785. * src/BtContextAwareCommand.cc: New file.
  11786. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  11787. * src/PeerMessage.h
  11788. (btContext): New variable.
  11789. (peerStorage): New variable.
  11790. (pieceStorage): New variable.
  11791. (setBtContext): New function.
  11792. * src/Directry.cc
  11793. (Directory): New function.
  11794. (createDir): Do nothing if name.size() == 0.
  11795. * src/AnnounceList.h
  11796. (AnnounceTier): Removed.
  11797. (AnnounceTiers): Removed.
  11798. * src/DefaultPieceStorage.h: New file.
  11799. * src/Piece.cc (toString): New function.
  11800. To fix typo:
  11801. * src/main.cc (showVersion): Fixed typo.
  11802. To fix compile warning:
  11803. * src/DelegatingPeerListProcessor.cc
  11804. (canHandle): Added "return false".
  11805. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11806. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  11807. make the process of announce request testable.
  11808. * src/TrackerWatcherCommand.h
  11809. (TimeA2.h): Removed.
  11810. (interval): Removed.
  11811. (checkPoint): Removed.
  11812. (createRequestCommand): Added an argument 'url'.
  11813. (TrackerWatherCommand): Removed interval.
  11814. (createCommand): New function.
  11815. * src/DownloadEngineFactory.cc
  11816. (newTorrentConsoleEngine): Updated according to the changes in
  11817. TrackerWatherCommand.
  11818. * src/TorrentMan.cc
  11819. (DelegatingPeerListProcessor.h): New includes.
  11820. (TorrentMan): Added the initialization of announceInterval.
  11821. (isStoppedAnnounceReady): New function.
  11822. (isCompletedAnnounceReady): New function.
  11823. (isDefaultAnnounceReady): New function.
  11824. (isAnnounceReady): New function.
  11825. (getAnnounceUrl): New function.
  11826. (announceStart): New function.
  11827. (announceFailure): New function.
  11828. (announceSuccess): New function.
  11829. (isAllAnnounceFailed): New function.
  11830. (resetAnnounce): New function.
  11831. (processAnnounceResponse): New function.
  11832. (needMorePeerConnection): New function.
  11833. (noMoreAnnounce): New function.
  11834. * src/TrackerUpdateCommand.h
  11835. (getTrackerResponse): int->size_t
  11836. * src/TorrentMan.h
  11837. (isStoppedAnnounceReady): New function.
  11838. (isCompletedAnnounceReady): New function.
  11839. (isDefaultAnnounceReady): New function.
  11840. (announceInterval): New variable.
  11841. (isAnnounceReady): New function.
  11842. (getAnnounceUrl): New function.
  11843. (announceStart): New function.
  11844. (announceFailure): New function.
  11845. (announceSuccess): New function.
  11846. (isAllAnnounceFailed): New function.
  11847. (resetAnnounce): New function.
  11848. (processAnnounceResponse): New function.
  11849. (needMorePeerConnection): New function.
  11850. (noMoreAnnounce): New function.
  11851. * src/TrackerWatcherCommand.cc
  11852. (TrackerWatherCommand): Removed interval and checkPoint.
  11853. (execute): Rewritten.
  11854. (createCommand): New function.
  11855. (createRequestCommand): Rewritten.
  11856. * src/TrackerUpdateCommand.cc
  11857. (MetaFileUtil.h): Removed.
  11858. (DelegatingPeerListProcessor.h): Removed.
  11859. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  11860. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11861. Request -> RequestHandle:
  11862. * src/HttpResponseCommand.h: Request->RequestHandle
  11863. * src/AbstractCommand.cc: Request->RequestHandle
  11864. * src/HttpDownloadCommand.cc: Request->RequestHandle
  11865. * src/HttpRequestCommand.cc: Request->RequestHandle
  11866. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  11867. * src/AbstractCommand.h: Request->RequestHandle
  11868. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  11869. * src/HttpResponseCommand.cc: Request->RequestHandle
  11870. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  11871. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  11872. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  11873. * src/HttpConnection.h: Request->RequestHandle
  11874. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  11875. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  11876. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  11877. * src/DownloadCommand.h: Request->RequestHandle
  11878. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  11879. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  11880. * src/HttpRequestCommand.h: Request->RequestHandle
  11881. * src/FtpNegotiateCommand.h: Request->RequestHandle
  11882. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  11883. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  11884. * src/HttpDownloadCommand.h: Request->RequestHandle
  11885. * src/FtpConnection.cc: Request->RequestHandle
  11886. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  11887. * src/UrlRequestInfo.cc: Request->RequestHandle
  11888. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  11889. * src/HttpConnection.h: Request->RequestHandle
  11890. * src/DownloadCommand.cc: Request->RequestHandle
  11891. * src/FtpConnection.h: Request->RequestHandle
  11892. * src/FtpDowndloadCommand.h: Request->RequestHandle
  11893. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  11894. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  11895. * src/Request.h
  11896. (SharedHandle.h): New include.
  11897. (RequestHandle): New type definition.
  11898. (Requests): Redefined.
  11899. To add MULTITRACKER support:
  11900. * src/TrackerWatcherCommand.h
  11901. (createRequestCommand): New function.
  11902. * src/DownloadEngineFactory.cc
  11903. (newTorrentConsoleEngine): Removed req.
  11904. * src/prefs.h
  11905. (PREF_TRACKER_MAX_TRIES): New definition.
  11906. * src/TorrentMan.cc
  11907. (TorrentMan): Removed req. Added trackerNumTry.
  11908. (~TorrentMan): Removed req.
  11909. (setupInternal1): Added announceList.
  11910. * src/TorrentRequestInfo.cc
  11911. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  11912. announces is now specified by PREF_TRACKER_MAX_TRIES.
  11913. * src/main.cc
  11914. (main): Added PREF_TRACKER_MAX_TRIES.
  11915. * src/TorrentMan.h
  11916. (Request.h): Removed.
  11917. (AnnounceList.h): New include.
  11918. (trackerNumTry): New variable.
  11919. (req): Removed.
  11920. (announceList): New variable.
  11921. * src/TrackerWatcherCommand.cc
  11922. (execute): Rewritten.
  11923. (createRequestCommand): New function.
  11924. * src/TrackerUpdateCommand.cc
  11925. (execute): Updated with the use of AnnounceList.
  11926. * src/AnnounceList.cc: New class.
  11927. * src/AnnounceList.h: New class.
  11928. To fix typo:
  11929. * src/prefs.h
  11930. (PREF_MAX_TRIES): max_try->max_tries
  11931. To not to decode "+" as space in URL decode:
  11932. * src/Util.cc
  11933. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  11934. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11935. To add timeout to async name resolution:
  11936. * src/AbstractCommand.h
  11937. (nameResolveFinished): New function. This is not elegant way. It needs
  11938. to be more refined.
  11939. (nameResolverCheck): New variable.
  11940. * src/AbstractCommand.cc
  11941. (AbstractCommand): Added nameResolverCheck.
  11942. (execute): Added the check whether the name resolution has finished.
  11943. (setNameResolverCheck): Set nameResolverCheck to true.
  11944. (disableNameResolverCheck): Set nameResolverCheck to false.
  11945. (nameResolverFinished): New function.
  11946. * src/FtpInitiateConnectionCommand.h
  11947. (nameResolverFinished): New function.
  11948. * src/FtpInitiateConnectionCommand.cc
  11949. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  11950. * src/HttpInitiateConnectionCommand.h
  11951. (nameResolverFinished): New function.
  11952. * src/HttpInitiateConnectionCommand.cc
  11953. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  11954. * src/prefs.h
  11955. (PREF_DNS_TIMEOUT): New definition.
  11956. * src/main.cc
  11957. (main): Added PREF_DNS_TIMEOUT.
  11958. To add the support for a non-compact response from a tracker:
  11959. * src/PeerListProcessor.h: New class.
  11960. * src/DefaultPeerListProcessor.h: New class.
  11961. * src/DefaultPeerListProcessor.cc: New class.
  11962. * src/CompactPeerListProcessor.h: New class.
  11963. * src/CompactPeerListProcessor.cc: New class.
  11964. * src/DelegatingPeerListProcessor.h: New class.
  11965. * src/DelegatingPeerListProcessor.cc: New class.
  11966. * src/TorrentMan.cc
  11967. (addPeer): New function(overload).
  11968. (addPeer): Delete unused peers only when new peer is added.
  11969. * src/TorrentMan.h
  11970. (PeerListProcessor.h): Included.
  11971. (Peers): Removed.
  11972. (addPeer): New function(overload).
  11973. * src/TrackerUpdateCommand.cc
  11974. (netinet/in.h): Removed.
  11975. (DelegatingPeerListProcessor.h): Included.
  11976. (execute): Updated to use DelegatingPeerListProcessor.
  11977. To fix the memory leak in TorrentMan::peers:
  11978. * src/PeerAbstractCommand.cc
  11979. (onAbort): Added peer->resetStatus().
  11980. * src/Peer.h
  11981. (resetStatus): Made public.
  11982. To improve the precision of the speed calculation:
  11983. * src/SpeedCalc.h
  11984. (nextInterval): New variable.
  11985. * src/SpeedCalc.cc
  11986. (reset): Added nextInterval.
  11987. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  11988. (changeSw): Set nextInterval to 15 seconds relative to the current
  11989. instant time.
  11990. * src/main.cc
  11991. (showVersion): Updated.
  11992. (showUsage): Updated.
  11993. * Release 0.8.1
  11994. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11995. * src/main.cc
  11996. (showUsage): Commented out --min-segment-size option.
  11997. (main): Commented out --min-segment-size option.
  11998. * Release 0.8.0
  11999. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12000. * src/*.{h,cc}:
  12001. Added an exception to the license which allows linking with OpenSSL.
  12002. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12003. * src/AbstractCommand.cc
  12004. (execute): Check whether the download has finished before checking
  12005. socket status.
  12006. Return true if peerStat->getStatus() == REQUEST_IDLE.
  12007. Do not exit even if no segment is available.
  12008. * src/prefs.h
  12009. (PREF_STARTUP_IDLE_TIME): New definition.
  12010. * src/PeerInteractionCommand.cc
  12011. (executeInternal): Removed max speed limit. Because it performs bad.
  12012. (receiveMessages): Added max speed limit. This was better than above,
  12013. but still a little bit to be desired. Sometimes the download speed
  12014. became much faster than I specified.
  12015. * src/SpeedCalc.h
  12016. (start): New variable.
  12017. (accumulatedLength): New variable.
  12018. (getAvgSpeed): New function.
  12019. * src/SpeedCalc.cc
  12020. (reset): Added start, accumulatedLength.
  12021. (update): Added calculation of an average speed.
  12022. (getAvgSpeed): New function.
  12023. * src/DownloadCommand.h
  12024. (sw): Removed.
  12025. * src/main.cc
  12026. (main): Added PREF_STARTUP_IDLE_TIME.
  12027. * src/PeerStat.h
  12028. (STATUS): Added REQUEST_IDLE.
  12029. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  12030. (getAvgDownloadSpeed): New function
  12031. (requestIdle): New function.
  12032. * src/SegmentMan.h
  12033. (SegmentEntryHandle): New type definition.
  12034. (SegmentEntries): Now holds SegmentEntryHandle.
  12035. (findSlowerSegmentEntry): New funtion.
  12036. * src/SegmentMan.cc
  12037. (save): Updated according to the changes in SegmentEntries.
  12038. (read): Updated according to the changes in SegmentEntries.
  12039. (FindSegmentEntryByIndex): Updated according to the changes in
  12040. SegmentEntries.
  12041. (FindSegmentEntryByCuid): Updated according to the changes in
  12042. SegmentEntries.
  12043. (checkoutSegment): Updated according to the changes in SegmentEntries.
  12044. (onNullBitfield): Updated according to the changes in SegmentEntries.
  12045. Renamed uitr as itr.
  12046. (findSlowerSegmentEntry): New function.
  12047. (getSegment): Updated according to the changes in SegmentEntries.
  12048. Added the feature that cancels the segment with slow server and fast
  12049. one takes it over.
  12050. (cancelSegment): Updated according to the changes in SegmentEntries.
  12051. (getDownloadLength): Updated according to the changes in
  12052. SegmentEntries.
  12053. (init): Assigned 0 to bitfield after deleting it.
  12054. * src/DownloadCommand.cc
  12055. (STARTUP_IDLE_TIME): Removed.
  12056. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  12057. * src/PeerChokeCommand.cc
  12058. (optUnchokingPeer): Updated according to the changes in Peer.
  12059. (ResetDelta): Removed.
  12060. (UploadFaster): Updated according to the changes in Peer.
  12061. (DownloadFaster): Updated according to the changes in Peer.
  12062. (execute): I clarify the meaning of "upload" and "download" here.
  12063. "upload" means the transfer from localhost to remote host.
  12064. "download" means the transfer from remote host to localhost.
  12065. Based on this rule, I swapped orderByUploadRate and
  12066. orderByDownloadRate.
  12067. * src/PeerInteractionCommand.cc
  12068. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  12069. (executeInternal): Removed the argument of
  12070. peerInteraction->sendMessages().
  12071. (receiveMessages): Rewritten download speed limit.
  12072. (sendKeepAlive): Removed peerInteraction->sendMessages().
  12073. * src/HttpResponseCommand.cc
  12074. (handleDefaultEncoding): If file size is unknown in torrent request,
  12075. do not call segmentMan->initBitfield() here.
  12076. Disabled persistent connection feature in torrent request.
  12077. * src/UrlRequestInfo.h
  12078. (UrlRequestInfo): Removed const qualifier from option.
  12079. * src/TorrentMan.h
  12080. (TransferStat): New class.
  12081. (deltaDownloadLength): Removed.
  12082. (deltaUploadLength): Removed.
  12083. (addDeltaDownloadLength): Removed.
  12084. (getDeltaDownloadLength): Removed.
  12085. (resetDeltaDownloadLength): Removed.
  12086. (addDeltaUploadLength): Removed.
  12087. (getDeltaUploadLength): Removed.
  12088. (resetDeltaUploadLength): Removed.
  12089. (addActivePeer): Added peer->activate().
  12090. (deleteActivePeer): Added peer->deactivate().
  12091. (calculateStat): New function.
  12092. * src/TorrentMan.cc
  12093. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  12094. (calculateStat): New function.
  12095. * src/PeerInteraction.h
  12096. (uploadLimit): Removed.
  12097. (option): New variable.
  12098. (setUploadLimit): Removed.
  12099. (getUploadSpeed): Removed.
  12100. (sendMessages): Removed the argument "currentUploadSpeed".
  12101. * src/PeerInteraction.cc
  12102. (prefs.h): Included.
  12103. (PeerInteraction): Removed uploadLimit. Added option.
  12104. (sendMessages): Rewritten upload speed limit.
  12105. (sendHandshake): Removed the argument from sendMessages().
  12106. (sendBitfield): Removed the argument from sendMessages().
  12107. * src/PeerAbstractCommand.cc
  12108. (execute): Commented out the portion of upload limit.
  12109. (onAbort): Removed peer->resetStatus().
  12110. * src/TorrentRequestInfo.cc
  12111. (timeoutSpecified): Declared extern.
  12112. (execute): Set timeout to 180 if timeout is not specified by.
  12113. command-line.
  12114. * src/PieceMessage.cc
  12115. (receivedAction): Added peer->updateDownloadLength().
  12116. Removed peer->addPeerUpload().
  12117. Removed torrentMan->addDeltaDownloadLength().
  12118. (send): Added peer->updateUploadLength().
  12119. Removed peer->addPeerDownload().
  12120. Removed torrentMan->addDeltaUploadLength().
  12121. * src/main.cc
  12122. (timeoutSpecified): New variable.
  12123. (main): Set timeoutSpecified to false.
  12124. If the command-line option "--upload-limit" is specified, then
  12125. timeoutSpecified is set to true. This option will remain in the next
  12126. release, but be deprecated in the future release.
  12127. * src/TorrentRequestInfo.h
  12128. (TorrentRequestInfo): Removed const qualifier from op.
  12129. * src/PeerStat.h
  12130. (uploadSpeed): New variable.
  12131. (PeerStat): Added default value to cuid.
  12132. (calculateUploadSpeed): New function.
  12133. (updateUploadLength): New function.
  12134. (getMaxUploadSpeed): New function.
  12135. (getAvgUploadSpeed): New function.
  12136. (reset): Added uploadSpeed. Set status to IDLE.
  12137. * src/TorrentDownloadEngine.h
  12138. (cp): Declared as Time.
  12139. (sessionDownloadLengthArray): Removed.
  12140. (sessionUploadLengthArray): Removed.
  12141. (currentCp): Removed.
  12142. (lastCalcStat): New variable
  12143. (lastElapsed): Removed.
  12144. (sessionDownloadLength): Removed.
  12145. (calculateStat): New function.
  12146. * src/TorrentDownloadEngine.cc
  12147. (initStatistics): Removed lastElapsed, cp[],
  12148. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  12149. currentCp, sessionDownloadLength.
  12150. Added cp.reset() and lastCalcStat.reset().
  12151. (calculateSpeed): Changed the name of the argument.
  12152. (calculateStatistics): Rewritten.
  12153. (calculateStat): New function.
  12154. * src/Peer.h
  12155. (PeerStat.h): Included.
  12156. (peerUpload): Removed.
  12157. (peerDownload): Removed.
  12158. (peerStat): New variable.
  12159. (sessionUploadLength): New variable.
  12160. (sessionDownloadLength): New variable.
  12161. (deltaUpload): Removed.
  12162. (deltaDownload): Removed.
  12163. (resetStatus): Made private.
  12164. (Peer): Added sessionUploadLength, sessionDownloadLength.
  12165. Removed peerUpload, peerDownload.
  12166. (updateUploadLength): New function.
  12167. (addDeltaUpload): Removed.
  12168. (updateDownloadLength): New function.
  12169. (resetDeltaUpload): Removed.
  12170. (getDeltaUpload): Removed.
  12171. (addDeltaDownload): Removed.
  12172. (calculateUploadSpeed): New function.
  12173. (resetDeltaDownload): Removed.
  12174. (getDeltaDownload): Removed.
  12175. (calculateDownloadSpeed): New function.
  12176. (getSessionUploadLength): New function.
  12177. (getSessionDownloadLength): New function.
  12178. (activate): New function.
  12179. (deactivate): New function.
  12180. (addPeerUpload): Removed.
  12181. (setPeerUpload): Removed.
  12182. (getPeerUpload): Removed.
  12183. (addPeerDownload): Removed.
  12184. (setPeerDownload): Removed.
  12185. (getPeerDownload): Removed.
  12186. * src/Peer.cc
  12187. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  12188. * src/MetalinkRequestInfo.h
  12189. (MetalinkRequestInfo): Removed const qualifier from op.
  12190. * src/RequestInfo.h
  12191. (op): Removed const qualifier.
  12192. (RequestInfo): Removed const qualifier from op.
  12193. * src/prefs.h
  12194. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  12195. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  12196. * src/PeerInteractionCommand.cc
  12197. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  12198. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  12199. * src/PeerInteraction.cc
  12200. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  12201. * src/main.cc
  12202. (showUsage): Updated the description of "--lowest-speed-limit" option.
  12203. Added the description of "--max-download-limit" option.
  12204. Removed the description of "--upload-limit" option.
  12205. Added the description of "--max-upload-limit" option.
  12206. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  12207. Added "--max-download-limit" option and "--max-upload-limit" option.
  12208. Added the warning message if "--upload-limit" option is used.
  12209. * src/DownloadCommand.cc
  12210. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  12211. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12212. To rewrite segment download mechanism for HTTP/FTP download.
  12213. Use BitfieldMan to manage segment download.
  12214. * src/HttpResponseCommand.h
  12215. (executeInternal): Pass the reference of segment.
  12216. * src/AbstractCommand.cc
  12217. (prepareForRetry): Call segmentMan->cancelSegment here.
  12218. (onAbort): Call segmentMan->cancelSegment here.
  12219. * src/HttpDownloadCommand.cc
  12220. (prepareForNextSegment): New function.
  12221. * src/DownloadEngineFactory.cc
  12222. (newConsoleEngine): Removed splitter.
  12223. (newTorrentConsoleEngine): Removed splitter.
  12224. * src/Request.h
  12225. (segment): Renamed from seg.
  12226. * src/FtpInitiateConnectionCommand.h
  12227. (executeInternal): Pass the reference of segment.
  12228. * src/AbstractCommand.h
  12229. (executeInternal): Pass the reference of segment.
  12230. * src/pref.h
  12231. (PREF_SEGMENT_SIZE): New definition.
  12232. * src/HttpProxyRequestCommand.h
  12233. (executeInternal): Pass the reference of segment.
  12234. * src/HttpResponseCommand.cc
  12235. (checkResponse): Allowed status 206 when a request range starts 0.
  12236. (handleDefaultEncoding): Rewritten the code related to Segment.
  12237. (handleOtherEncoding): Rewritten the code related to Segment.
  12238. * src/SegmentMan.h
  12239. (SegmentEntry): New class.
  12240. (SegmentEntries): New type definition.
  12241. (bitfield): New variable.
  12242. (usedSegmentEntries): New variable.
  12243. (onNullBitfield): New function.
  12244. (checkoutSegment): New function.
  12245. (segments): Removed.
  12246. (splitter): Removed.
  12247. (unregisterId): Removed.
  12248. (getSegment): New function(overload)
  12249. (getDownloadedSize): Removed.
  12250. (cancelSegment): New function.
  12251. (completeSegment): New function.
  12252. (initBitfield): New function.
  12253. (hasSegment): New function.
  12254. (getDownloadLength): New function.
  12255. * src/BitfieldMan.h
  12256. (getStartIndex): New function.
  12257. (getEndIndex): New function.
  12258. (getMissingUnusedIndex): New function(overload).
  12259. (getSparseMissingUnusedIndex): New function.
  12260. * src/BitfieldMan.cc
  12261. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  12262. (getMissingUnusedIndex): New function(overload).
  12263. (Range): New class.
  12264. (getStartIndex): New function.
  12265. (getEndIndex): New function.
  12266. (getSparseMissingUnusedIndex): New function.
  12267. (isBitSetInternal): Return false if the given index is less than 0.
  12268. * src/HttpInitiateConnectionCommand.h
  12269. (executeInternal): Pass the reference of segment.
  12270. * src/FtpNegotiateCommand.h
  12271. (executeInternal): Pass the reference of segment.
  12272. * src/FtpNegotiateCommand.cc
  12273. (recvSize): Initialize bitfield here.
  12274. * src/FtpTunnelResponseCommand.h
  12275. (executeInternal): Pass the reference of segment.
  12276. * src/HttpConnection.cc
  12277. (createRequest): Rewritten range header processing.
  12278. * src/DownloadCommand.h
  12279. (executeInternal): Pass the reference of segment.
  12280. (prepareForRetry): Removed.
  12281. (prepareForNextSegment): Added an argument segment. Made it a virtual
  12282. function.
  12283. * src/main.cc
  12284. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  12285. * src/SegmentMan.cc
  12286. (SegmentMan): Added bitfield. Removed splitter.
  12287. (~SegmentMan): Added bitfield. Removed splitter.
  12288. (unregisterId): Removed.
  12289. (getSegment): Rewritten.
  12290. (updateSegment): Rewritten.
  12291. (save): Rewritten.
  12292. (read): Rewritten.
  12293. (finished): Rewritten.
  12294. (getDownloadedSize): Removed.
  12295. (initBitfield): New function.
  12296. (FindSegmentEntryByIndex): New function object.
  12297. (FindSegmentEntryByCuid): New function object.
  12298. (checkoutSegment): New function.
  12299. (onNullBitfield): New function.
  12300. (getSegment): New function(overload).
  12301. (CancelSegment): New function object.
  12302. (cancelSegment): New function.
  12303. (completeSegment): New function.
  12304. (hasSegment): New function.
  12305. (getDownloadLength): New function.
  12306. * src/FtpInitiateConnectionCommand.cc
  12307. (executeInternal): Load .aria2 file after hostname resolution finishes.
  12308. * src/Segment.h: Rewritten.
  12309. * src/Segment.cc (operator<<): New function.
  12310. * src/HttpDownloadCommand.h
  12311. (prepareForNextSegment): New function.
  12312. * src/Request.cc
  12313. (resetUrl): Made segment null.
  12314. * src/DownloadEngine.cc
  12315. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  12316. * src/HttpProxyRequestCommand.h
  12317. (executeInternal): Pass the reference of segment.
  12318. * src/DownloadCommand.cc
  12319. (executeInternal): Rewritten the code related to Segment.
  12320. (prepareForRetry): Removed.
  12321. (prepareForNextSegment): Rewritten.
  12322. * src/FtpTunnelResponseCommand.h
  12323. (executeInternal): Pass the reference of segment.
  12324. To add HTTP 1.1 persistent connection support(experimental)
  12325. * src/HttpRequestCommand.cc
  12326. (executeInternal): Disable keep alive if it is disabled by
  12327. configuration.
  12328. * src/Request.h
  12329. (keepAlive): New variable.
  12330. (isKeepAlive): New function.
  12331. (setKeepAlive): New function.
  12332. * src/pref.h
  12333. (PREF_HTTP_KEEP_ALIVE): New definition.
  12334. * src/HttpResponseCommand.cc
  12335. (executeInternal): Check the remote server supports keep alive.
  12336. * src/HttpConnection.cc
  12337. (createRequest): Send "Connection: close" only if keep alive is
  12338. disabled.
  12339. * src/main.cc
  12340. (main):
  12341. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  12342. To add max download speed limit:
  12343. * src/pref.h
  12344. (PREF_MAX_SPEED_LIMIT): New definition.
  12345. * src/PeerInteractionCommand.cc
  12346. (executeInternal): Added max download speed limit. Not tested yet.
  12347. * src/SegmentMan.h
  12348. (PeerStats): New type definition.
  12349. (peerStats): New variable.
  12350. (registerPeerStat): New function.
  12351. (FindPeerStat): New function object.
  12352. (getPeerStat): New function.
  12353. (calculateDownloadSpeed): New function.
  12354. * src/SpeedCalc.h: New class.
  12355. * src/SpeedCalc.cc: New class.
  12356. * src/main.cc
  12357. (main):
  12358. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  12359. download speed is not restricted).
  12360. * src/PeerStat.h: New class.
  12361. * src/SegmentMan.cc
  12362. (registerPeerStat): New function.
  12363. (calculateDownloadSpeed): New function.
  12364. * src/DownloadCommand.cc
  12365. (STARTUP_IDLE_TIME): New definition.
  12366. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  12367. downloadStart.
  12368. (~DownloadCommand): Call peerStat->downloadStop.
  12369. (executeInternal): Added download speed limitter. Rewritten lowest
  12370. speed limitter.
  12371. * src/HttpConnection.cc
  12372. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  12373. * src/AbstractCommand.cc
  12374. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  12375. Added hostname to the error message.
  12376. * src/ConsoleDownloadEngine.cc
  12377. (calculateStatistics): Initialize psize with dlSize.
  12378. * src/PieceMessage.cc
  12379. (receivedAction): Do not call peerInteraction->abortPiece here.
  12380. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  12381. * src/BitfieldMan.h
  12382. (clearAllUseBit): New function.
  12383. (setAllUseBit): New function.
  12384. * src/BitfieldMan.cc
  12385. (clearAllBit): Do not clear useBitfield here.
  12386. (clearAllUseBit): New function.
  12387. (setAllUseBit): New function.
  12388. * src/Piece.cc
  12389. (clearAllBlock): Call bitfield->clearAllUseBit().
  12390. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12391. To make filename URL-decoded:
  12392. * src/HttpResponseCommand.h: Updated doc.
  12393. * src/HttpResponseCommand.cc
  12394. (determinFilename): Made filename URL-decoded.
  12395. * src/FtpInitiateConnectionCommand.cc
  12396. (executeInternal): Made filename URL-decoded.
  12397. * src/Util.h (urldecode): New function.
  12398. * src/Util.cc (urldecode): New function.
  12399. To fix a bug that caused assertion failure in ares_strerror:
  12400. * src/NameResolver.cc (callback): Fixed the bug.
  12401. * Release 0.7.3
  12402. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12403. To add --seed-time and --seed-ratio command-line option:
  12404. * src/Option.h (getAsDouble): New function.
  12405. * src/Option.cc (getAsDouble): New function.
  12406. * src/SeedCheckCommand.h: New class.
  12407. * src/SeedCheckCommand.cc: New class.
  12408. * src/DownloadEngineFactory.cc
  12409. (SeedCheckCommand.h): Included.
  12410. (UnionSeedCriteria.h): Included.
  12411. (TimeSeedCriteria.h): Included.
  12412. (ShareRatioSeedCriteria.h): Included.
  12413. (newTorrentConsoleEngine): Added the processing of seed option.
  12414. * src/SeedCriteria.h: New class.
  12415. * src/ShareRatioSeedCriteria.h: New class.
  12416. * src/TimeSeedCriteria.h: New class.
  12417. * src/UnionSeedCriteria.h: New class.
  12418. * src/prefs.h
  12419. (PREF_SEED_TIME): New definition.
  12420. (PREF_SEED_RATIO): New definition.
  12421. * src/main.cc
  12422. (showUsage): Added --seed-time and --seed-ratio option.
  12423. (main): Added --seed-time and --seed-ratio option.
  12424. Made default log file name "/dev/null".
  12425. * src/SharedHandle.h
  12426. (SharedHandle): Copy constructor. Made it assignable from the
  12427. SharedHandle of the subclasses.
  12428. (operator=): Made it assignable from the SharedHandle of the
  12429. subclasses.
  12430. (getRefCount): New function.
  12431. To add notice log level and the switch to write log to stdout. This
  12432. switch is configurable per log level.
  12433. * src/Logger.h
  12434. (notice): New function.
  12435. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  12436. constant.
  12437. * src/LogFactory.cc
  12438. (getInstance): The use of NullLogger was removed. A log message with
  12439. notice log level was made written to stdout along with log file.
  12440. * src/NullLogger.h
  12441. (notice): New function.
  12442. * src/SimpleLogger.h
  12443. (writeHeader): Added the 'file' argument.
  12444. (writeLog): Added the 'file' argument.
  12445. (writeFile): New function.
  12446. (stdoutField): New variable.
  12447. (SimpleLogger): Removed the default constructor.
  12448. (SimpleLogger): Made the default value of logfile 0.
  12449. (debug): Added 'virtual' keyword.
  12450. (info): Added 'virtual' keyword.
  12451. (warn): Added 'virtual' keyword.
  12452. (error): Added 'virtual' keyword.
  12453. (notice): New function.
  12454. (setStdout): New function.
  12455. * src/SimpleLogger.cc
  12456. (WRITE_LOG): Replaced writeLog with writeFile.
  12457. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  12458. (SimpleLogger): Removed the default constructor.
  12459. (setStdout): New function.
  12460. (writeLog): Added the handling of NOTICE log level.
  12461. (writeFile): New function.
  12462. (notice): New function.
  12463. * src/TorrentMan.h: Updated doc.
  12464. * src/BitfieldMan.h: Updated doc.
  12465. * src/TrackerWatcherCommand.cc
  12466. (execute): Return true if error occurred in the request to the tracker
  12467. and halt is requested.
  12468. * src/TrackerUpdateCommand.cc
  12469. (execute): Return true if error occurred in the request to the tracker
  12470. and halt is requested.
  12471. To call onDownloadComplete from TorrentMan::completePiece(), not from
  12472. DownloadEngine:
  12473. * src/TorrentConsoleDownloadEngine.h
  12474. (onSelectiveDownloadingCompletes): Removed.
  12475. * src/TorrentConsoleDownloadEngine.cc
  12476. (onSelectiveDownloadingCompletes): Removed.
  12477. * src/TorrentDownloadEngine.h
  12478. (onEndOfRun): Added 'virtual' keyword.
  12479. (afterEachIteration): Removed.
  12480. (onSelectiveDownloadingCompletes): Removed.
  12481. * src/TorrentDownloadEngine.cc
  12482. (onEndOfRun): Removed filenameFixed.
  12483. (afterEachIteration): Removed.
  12484. * src/TorrentMan.cc
  12485. (completePiece): Call onDownloadComplete here.
  12486. (onDownloadComplete): Added 2 log messages.
  12487. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12488. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  12489. * src/NameResolver.h: Added the prototype declaration of callback().
  12490. To support c-ares library:
  12491. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12492. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12493. * src/FtpInitiateConnectionCommand.h:
  12494. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12495. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12496. * src/HttpInitiateConnectionCommand.h:
  12497. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12498. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  12499. Added thes upport of c-ares's ares_strerror(the idea came from patch
  12500. #1542285 by tizianomueller)
  12501. * src/HttpInitiateConnectionCommand.cc:
  12502. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12503. * src/FtpInitiateConnectionCommand.cc:
  12504. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12505. * src/DownloadEngine.h:
  12506. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12507. * src/DownloadEngine.cc:
  12508. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12509. To fix the bug that causes compilation failure with metalink-support
  12510. disabled(bug#1543587):
  12511. * src/main.cc: Fixed with the patch by tizianomueller.
  12512. * Release 0.7.2
  12513. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12514. * src/main.cc
  12515. (main): Added a message to inform users that aria2 is starting to
  12516. verify checksum.
  12517. * src/RequestInfo.cc
  12518. (printDownloadAbortMessage): Added a message to inform users that
  12519. transfer can be resumed.
  12520. * src/FeatureConfig.cc
  12521. (FEATURE_ASYNC_DNS): New definition.
  12522. (FeatureConfig): Added aysnc DNS entry.
  12523. To replace CommandUuid with Command* in SocketEntry and
  12524. NameResolverEntry:
  12525. * src/DownloadEngine.h
  12526. (CommandUuids): Removed.
  12527. (SocketEntry::commandUuid): Removed.
  12528. (SocketEntry::command): New variable.
  12529. (SocketEntry::SocketEntry): Updated.
  12530. (SocketEntry::operator==): Updated.
  12531. (NameResolverEntry::commandUuid): Removed.
  12532. (NameResolverEntry::command): New variable.
  12533. (NameResolverEntry::NameResolverEntry): Updated.
  12534. (NameResolverEntry::operator==): Updated.
  12535. (waitData): Changed the argument type.
  12536. (addSocketForReadCheck): Changed the argument type.
  12537. (deleteSocketForReadCheck): Changed the argument type.
  12538. (addSocketForWriteCheck): Changed the argument type.
  12539. (deleteSocketForWriteCheck): Changed the argument type.
  12540. (addNameResolverCheck): Changed the argument type.
  12541. (deleteNameResolverCheck): Changed the argument type.
  12542. * src/DownloadEngine.cc
  12543. (FindCommand): Removed.
  12544. (run): Removed activeUuid. Added activeCommands instead.
  12545. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  12546. (AccumulateActiveCommand): New function object.
  12547. (waitData): Use AccumulateActiveCommand.
  12548. (addSocketForReadCheck): Use Command instead of CommandUuid.
  12549. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  12550. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  12551. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  12552. (addNameResolverCheck): Use Command instead of CommandUuid.
  12553. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  12554. * src/AbstractCommand.cc
  12555. (disableReadCheckSocket): Updated according to the changes in
  12556. DownloadEngine.
  12557. (setReadCheckSocket): Updated according to the changes in
  12558. DownloadEngine.
  12559. (disableWriteCheckSocket): Updated according to the changes in
  12560. DownloadEngine.
  12561. (setWriteCheckSocket): Updated according to the changes in
  12562. DownloadEngine.
  12563. (setNameResolverCheck): Updated according to the changes in
  12564. DownloadEngine.
  12565. (disableNameResolverCheck): Updated according to the changes in
  12566. DownloadEngine.
  12567. * src/AbstractCommand.cc
  12568. (disableReadCheckSocket): Updated according to the changes in
  12569. DownloadEngine.
  12570. (setReadCheckSocket): Updated according to the changes in
  12571. DownloadEngine.
  12572. (disableWriteCheckSocket): Updated according to the changes in
  12573. DownloadEngine.
  12574. (setWriteCheckSocket): Updated according to the changes in
  12575. DownloadEngine.
  12576. * release 0.7.1
  12577. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12578. To handle the case where some BitTorrent tracker requires all letters
  12579. except for [A-Za-z0-9] is URL encoded.
  12580. * src/Util.h
  12581. (torrentUrlencode): New function.
  12582. * src/Util.cc
  12583. (ctype.h): Included.
  12584. (torrentUrlencode): New function.
  12585. * src/TrackerWatcherCommand.cc
  12586. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  12587. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12588. To add asynchronous DNS support(libares):
  12589. * src/AbstractCommand.h
  12590. (setNameResolverCheck): New function.
  12591. (disableNameResolverCheck): New function
  12592. (resolveHostname): New function.
  12593. * src/AbstractCommand.cc
  12594. (setNameResolverCheck): New function.
  12595. (disableNameResolverCheck): New function
  12596. (resolveHostname): New function.
  12597. * src/FtpInitiateConnectionCommand.h
  12598. (nameResolver): New function.
  12599. * src/FtpInitiateConnectionCommand.cc
  12600. (Util.h): Included.
  12601. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  12602. disableWriteCheckSocket.
  12603. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  12604. (executeInternal): Added async DNS support.
  12605. * src/HttpInitiateConnectionCommand.h
  12606. (nameResolver): New function.
  12607. * src/HttpInitiateConnectionCommand.cc
  12608. (DlRetryEx.h): Included.
  12609. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  12610. disableWriteCheckSocket.
  12611. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  12612. (executeInternal): Added async DNS support.
  12613. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  12614. by extern "C" declaration.
  12615. * src/NameResolver.cc: New class.
  12616. * src/Util.h:
  12617. (isNumberAndDotsNotation): New function
  12618. * src/Util.cc
  12619. (isNumberAndDotsNotation): New function.
  12620. * src/DownloadEngine.h
  12621. (NameResolver.h): Included.
  12622. (NameResolverEntry): New class.
  12623. (NameResolverEntries): New type definition.
  12624. (addNameResolverCheck): New function.
  12625. (deleteNameResolverCheck): New function.
  12626. * src/DownloadEngine.cc
  12627. (run): Initialize cp with 0.
  12628. (SetDescriptor::operator()): Added for NameResolverEntry.
  12629. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  12630. (waitData): Check nameResolver entries.
  12631. (updateFdSet): Update fds in nameResolver entries.
  12632. (addNameResolverCheck): New function.
  12633. (deleteNameResolverCheck): new function.
  12634. * src/PeerInteractionCommand.cc
  12635. (executeInternal): Fixed wrong socket handling.
  12636. * src/main.cc
  12637. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  12638. * src/Util.cc
  12639. (fileChecksum): Removed the call to ctx.digestReset().
  12640. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12641. * po/ru.po: Azamat sent me Russian translation.
  12642. * src/FtpNegotiateCommand.cc
  12643. (recvGreeting): Call disableWriteCheckSocket just after
  12644. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  12645. (recvRetr): Recognized status code 125 as a acceptable response code.
  12646. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  12647. case-insesitive filesystem(BUG#1531057).
  12648. * src/Time.h: Renamed as TimeA2.h.
  12649. * src/Time.cc: Renamed as TimeA2.cc.
  12650. * src/TimeA2.h: New class.
  12651. * src/TimeA2.cc: New class.
  12652. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  12653. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  12654. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  12655. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  12656. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  12657. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  12658. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  12659. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  12660. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  12661. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  12662. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  12663. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  12664. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  12665. * release 0.7.0
  12666. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12667. * src/PeerChokeCommand.h
  12668. (PeerChokeCommand): Rearranged the arguments.
  12669. * src/PeerChokeCommand.cc
  12670. (PeerChokeCommand): Rearranged the arguments.
  12671. * src/MetalinkEntry.h
  12672. (Checksum.h): Included.
  12673. (md5): Removed.
  12674. (sha1): Removed.
  12675. (checksum): New variable.
  12676. (operator=): Updated.
  12677. (check): Removed.
  12678. * src/prefs.h
  12679. (PREF_LOWEST_SPEED_LIMIT): New definition.
  12680. (PREF_FOLLOW_TORRENT): New definition.
  12681. (PREF_SELECT_FILE): New definition.
  12682. (PREF_FOLLOW_METALINK): New definition.
  12683. * src/MetalinkResource.h
  12684. (TYPE_HTTPS): Added to enum TYPE.
  12685. * src/TorrentMan.cc
  12686. (~TorrentMan): Rewritten.
  12687. * src/MultiDiskWriter.cc
  12688. (MultiDiskAdaptor): Updated according to the changes in
  12689. MessageDigestContext.
  12690. (~MultiDiskAdaptor): Updated according to the changes in
  12691. MessageDigestContext.
  12692. (hashUpdate): Updated according to the changes in MessageDigestContext.
  12693. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12694. * src/Util.h
  12695. (fileChecksum): Updated according to the changes in
  12696. MessageDigestContext.
  12697. * src/Util.cc
  12698. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12699. (fileChecksum): Updated according to the changes in
  12700. MessageDigestContext.
  12701. * src/messageDigest.h: Rewritten.
  12702. * src/MetalinkEntry.cc
  12703. (check): Removed.
  12704. (Supported): Updated.
  12705. (dropUnsupportedResource): Fixed a memory leak.
  12706. * src/ShaVisitor.cc
  12707. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  12708. (~ShaVisitor): Updated according to the changes in
  12709. MessageDigestContext.
  12710. (visit): Updated according to the changes in MessageDigestContext.
  12711. * src/main.cc
  12712. (main): Rewritten the portion of download loop. --lowest-speed-limit
  12713. command-line option added.
  12714. * src/DownloadEngine.h
  12715. (SocketEntry): New class.
  12716. (SocketEntries): New definition.
  12717. (PairFind): Removed.
  12718. (SockCmdMap): Removed.
  12719. * src/DownloadEngine.cc
  12720. (DownloadEngine): Rewritten.
  12721. (~DownloadEngine): Rewritten.
  12722. (run): Renamed activeCommandUuids as activeUuids.
  12723. (SetDescriptor): Rewritten.
  12724. (AccumulateActiveCommandUuid): Removed.
  12725. (AccumulateActiveUuid): New function object.
  12726. (waitData): Rewritten.
  12727. (updateFdSet): Rewritten.
  12728. (addSocket): Rewritten.
  12729. (deleteSocket): Rewritten.
  12730. (addSocketForReadCheck): Rewritten.
  12731. (deleteSocketForReadCheck): Rewritten.
  12732. (addSocketForWriteCheck): Rewritten.
  12733. (deleteSocketForWriteCheck): Rewritten.
  12734. * src/Xml2MetalinkProcessor.cc
  12735. (getEntry): Rewritten the portion of MetalinkEntry creation.
  12736. * src/DownloadCommand.cc
  12737. (executeInternal): Added the check routine for lowest speed limit.
  12738. * src/AbstractDiskWriter.cc
  12739. (AbstractDiskWriter): Updated according to the changes in
  12740. MessageDigestContext.
  12741. (~AbstractDiskWriter): Updated according to the changes in
  12742. MessageDigestContext.
  12743. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12744. * src/RequestInfo.h: New class.
  12745. * src/UrlRequestInfo.h: New class.
  12746. * src/UrlRequestInfo.cc: New class.
  12747. * src/TorrentRequestInfo.h: New class.
  12748. * src/TorrentRequestInfo.cc: New class.
  12749. * src/MetalinkRequestInfo.h: New class.
  12750. * src/MetalinkRequestInfo.cc: New class.
  12751. * src/Checksum.h: New class.
  12752. * src/DownloadEngineFactory.h: New class.
  12753. * src/DownloadEngineFactory.cc: New class.
  12754. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12755. * src/Option.h
  12756. (getAsBool): New function.
  12757. * src/Option.cc
  12758. (prefs.h): Included.
  12759. (defined): 0-length value is now recognized as undefined.
  12760. (getAsInt): Rewritten.
  12761. (getAsLLInt): Rewritten.
  12762. (getAsBool): New function.
  12763. * src/FeatureConfig.h: Rewritten.
  12764. * src/FeatureConfig.cc: Rewritten.
  12765. * src/prefs.h
  12766. (PREF_STDOUT_LOG): New definition.
  12767. (PREF_LOG): New definition.
  12768. (PREF_DIR): New definition.
  12769. (PREF_OUT): New definition.
  12770. (PREF_SPLIT): New definition.
  12771. (PREF_DAEMON): New definition.
  12772. (PREF_REFERER): New definition.
  12773. (PREF_TORRENT_FILE): New definition.
  12774. (PREF_LISTEN_PORT): New definition.
  12775. (PREF_METALINK_FILE): New definition.
  12776. (PREF_METALINK_VERSION): New definition.
  12777. (PREF_METALINK_LANGUAGE): New definition.
  12778. (PREF_METALINK_OS): New definition.
  12779. (PREF_METALINK_SERVERS): New definition.
  12780. * src/main.cc
  12781. (main): Following command-line parameters are now put into Option
  12782. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  12783. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  12784. metalinkLanguage, metalinkOs, metalinkServers
  12785. To fix the bug that aria2 can not handle http response header properly.
  12786. * src/HttpHeader.cc
  12787. (put): Made name lowercased.
  12788. (defined): Made name lowercased.
  12789. (getFirst): Made name lowercased.
  12790. (get): Made name lowercased.
  12791. (getFirstAsInt): Rewritten.
  12792. (getFirstAsLLInt): Rewritten.
  12793. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12794. * src/TorrentMan.h:
  12795. (advertisePiece): Updated doc.
  12796. (getAdvertisedPieceIndexes): Updated doc.
  12797. (removeAdvertisedPiece); New function.
  12798. * src/TorrentMan.cc
  12799. (FindElapsedHave): New function object.
  12800. (removeAdvertisedPiece): New function.
  12801. * src/HaveEraseCommand.h: New class.
  12802. * src/HaveEraseCommand.cc: New class.
  12803. * src/FeatureConfig.h: New class.
  12804. * src/FeatureConfig.cc: New class.
  12805. * src/Request.h
  12806. (defaultPorts): Removed.
  12807. * src/Request.cc
  12808. (FeatureConfig.h): Included.
  12809. (Request): Removed the statements related to defaultPorts.
  12810. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  12811. A default port number is now retrieved from FeatureConfig.
  12812. * src/main.cc
  12813. (HaveEraseCommand.h): Included.
  12814. (showVersion): Added the output of feature list.
  12815. (main): Added HaveEraseCommand to command queue in BitTorrent
  12816. downloading.
  12817. * src/PeerInteractionCommand.h
  12818. (chokeCheckPoint): Commented out.
  12819. (periodicExecPoint): New variable.
  12820. * src/PeerInteractionCommand.cc
  12821. (executeInternal): Following methods are now called in at least every
  12822. 0.5 seconds to reduce CPU usage:
  12823. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  12824. checkHave(), sendKeepAlive().
  12825. (checkLongTimePeerChoking): Commented out.
  12826. * src/BitfieldMan.h
  12827. (getNthBitIndex): Changed the method signature.
  12828. (getMissingIndexRandomly): Changed the method signature.
  12829. * src/BitfieldMan.cc
  12830. (getNthBitIndex): Rewritten
  12831. (getMissingIndexRandomly): Rewritten.
  12832. (hasMissingPiece): Rewritten.
  12833. (getMissingIndex): Refactored.
  12834. (getMissingUnusedIndex); Refactored.
  12835. (getMissingIndex): Refactored.
  12836. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12837. * src/PeerMessage.h
  12838. (Piece.h): Included.
  12839. (SharedHandle.h): Included.
  12840. (invalidate): New variable.
  12841. (uploading): New variable.
  12842. (isInvalidate): New function.
  12843. (isUploading): New function.
  12844. (onPush): New function.
  12845. (onChoked): New function.
  12846. (onCanceled): New function.
  12847. (onAbortPiece): New function.
  12848. (PeerMessageHandle): New type definition.
  12849. * src/PeerMessage.cc
  12850. (PeerMessage): Added the initialization for invalidate and uploading.
  12851. * src/CancelMessage.h
  12852. (CancelMessage): Rewritten.
  12853. * src/RejectMessage.h
  12854. (RejectMessage): Rewritten.
  12855. * src/Metalinker.h
  12856. (operator=): Defined.
  12857. * src/MetaEntry.h
  12858. (operator=): Defined.
  12859. * src/MetalinkResource.h
  12860. (operator=): Defined.
  12861. * src/AllowedFastMessage.h
  12862. (AllowedFastMessage): Rewritten.
  12863. * src/HandshakeMessage.h
  12864. (HandshakeMessage): New function(overload).
  12865. * src/HandshakeMessage.cc
  12866. (HandshakeMessage): Rewritten.
  12867. (init): New function.
  12868. * src/HaveMessage.h
  12869. (HaveMessage): Rewritten.
  12870. * src/Time.h
  12871. (operator=): Defined the function body here.
  12872. * src/Time.cc
  12873. (operator=): Removed.
  12874. * src/SocketCore.h
  12875. (operator==): Defined here.
  12876. (operator!=): Defined here.
  12877. (operator<): Defined here.
  12878. * src/SocketCore.cc
  12879. (operator==): Removed.
  12880. (operator<): Removed.
  12881. * src/BitfieldMan.h
  12882. (operator=): Defined the function body here.
  12883. * src/BitfieldMan.cc
  12884. (operator=): Removed.
  12885. * src/TorrentMan.h
  12886. (deleteErrorPeer): Removed.
  12887. (deleteUnusedPeer); New function.
  12888. * src/TorrentMan.cc
  12889. (addPeer): Call deleteUnusedPeer.
  12890. (deleteErrorPeer): Removed.
  12891. (deleteUnusedPeer): New function.
  12892. * src/PeerAbstractCommand.h
  12893. (setNoCheck): New function.
  12894. (noCheck): New variable.
  12895. * src/PeerAbstractCommand.cc
  12896. (PeerAbstractCommand): Added the initialization of noCheck.
  12897. (execute): Added a check for noCheck.
  12898. (setNoCheck): New function.
  12899. * src/Util.h
  12900. (stdio.h): Included.
  12901. * src/Util.cc
  12902. (unistd.h): Included.
  12903. * src/DefaultDiskWriter.cc
  12904. (unistd.h): Included.
  12905. * src/Peer.h
  12906. (operator==): Defined the function body here.
  12907. (operator!=): Defined the function body here.
  12908. * src/Peer.cc
  12909. (operator==): Removed.
  12910. (operator!=): Removed.
  12911. * src/Piece.h
  12912. (Piece): Defined the function body here(copy constructor).
  12913. (operator=): Defined the function body here.
  12914. (operator==): Defined the function body here.
  12915. * src/Piece.cc
  12916. (Piece): Removed(copy constructor).
  12917. (operator=): Removed.
  12918. (operator==): Removed.
  12919. * src/PeerMessageUtil.h
  12920. (ChokeMessage.h): Removed.
  12921. (UnchokeMessage.h): Removed.
  12922. (InterestedMessage.h): Removed.
  12923. (NotInterestedMessage.h): Removed.
  12924. (HaveMessage.h): Removed.
  12925. (BitfieldMessage.h): Removed.
  12926. (RequestMessage.h): Removed.
  12927. (CancelMessage.h): Removed.
  12928. (PieceMessage.h): Removed.
  12929. (HandshakeMessage.h): Removed.
  12930. (KeepAliveMessage.h): Removed.
  12931. (PortMessage.h): Removed.
  12932. (HaveAllMessage.h): Removed.
  12933. (HaveNoneMessage.h): Removed.
  12934. (PeerConnection.h): Removed.
  12935. (HandshakeMessage.h): Included.
  12936. * src/BitfieldMessage.h
  12937. (init): New function.
  12938. (BitfieldMessage): Rewritten.
  12939. (BitfieldMessage): New function(overload).
  12940. * src/RequestSlot.h
  12941. (operator=): Defined the function body here.
  12942. (operator==): Defined the function body here.
  12943. * src/RequestSlot.cc
  12944. (operator=): Removed.
  12945. (operator==): Removed.
  12946. To remove the dependency on the PeerMessage subclass from
  12947. PeerInteraction:
  12948. * src/PeerMessageFactory.h: New class.
  12949. * src/PeerMessageFactory.cc: New class.
  12950. * src/SimplePeerMessage.cc
  12951. (send): If invalidate is true then do nothing.
  12952. * src/PeerInteractionCommand.cc
  12953. (HandshakeMessage.h): Included.
  12954. (KeepAliveMessage.h): Included.
  12955. (ChokeMessage.h): Included.
  12956. (UnchokeMessage.h): Included.
  12957. (HaveMessage.h): Included.
  12958. (executeInternal): Call setNoCheck().
  12959. Removed setWriteCheckSocket(socket).
  12960. * src/PeerInteraction.h
  12961. (ChokeMessage.h): Removed.
  12962. (UnchokeMessage.h): Removed.
  12963. (InterestedMessage.h): Removed.
  12964. (NotInterestedMessage.h): Removed.
  12965. (HaveMessage.h): Removed.
  12966. (BitfieldMessage.h): Removed.
  12967. (RequestMessage.h): Removed.
  12968. (CancelMessage.h): Removed.
  12969. (PieceMessage.h): Removed.
  12970. (HandshakeMessage.h): Removed.
  12971. (KeepAliveMessage.h): Removed.
  12972. (PortMessage.h): Removed.
  12973. (HaveAllMessage.h): Removed.
  12974. (HaveNoneMessage.h): Removed.
  12975. (RejectMessage.h): Removed.
  12976. (AllowedFastMessage.h): Removed.
  12977. (SuggestPieceMessage.h): Removed.
  12978. (PeerMessageFactory.h): Included.
  12979. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  12980. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  12981. (PeerMessageFactory): New variable.
  12982. (createPeerMessage): Removed.
  12983. (createHandshakeMessage): Removed.
  12984. (setPeerMessageCommonProperty): Removed.
  12985. (addRequestSlot): New function.
  12986. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  12987. (getPeerMessageFactory): New function.
  12988. (createRequestMessage): Removed.
  12989. (createCancelMessage): Removed.
  12990. (createPieceMessage): Removed.
  12991. (createHaveMessage): Removed.
  12992. (createChokeMessage): Removed.
  12993. (createUnchokeMessage): Removed.
  12994. (createInterestedMessage): Removed.
  12995. (createNotInterestedMessage): Removed.
  12996. (createBitfieldMessage): Removed.
  12997. (createKeepAliveMessage): Removed.
  12998. (createHaveAllMessage): Removed.
  12999. (createHaveNoneMessage): Removed.
  13000. (createRejectMessage): Removed.
  13001. (createAllowedFastMessage): Removed.
  13002. * src/PeerInteraction.cc
  13003. (PeerInteraction): Allocate PeerMessageFactory here.
  13004. (~PeerInteraction): Deallocate PeerMessageFactory here.
  13005. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  13006. PieceMessage::ID.
  13007. (addMessage): Simplified by using PeerMessage::onPush().
  13008. (addRequestSlot): New function.
  13009. (rejectAllPieceMessageInQueue): Simplified by using
  13010. PeerMessage::onChoked().
  13011. (rejectPieceMessageInQueue): Simplified by using
  13012. PeerMessage::onCanceled().
  13013. (abortPiece): Simplified by using PeerMessage::abortPiece().
  13014. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13015. (createHandshakeMessage): Removed.
  13016. (createPeerMessage): Removed.
  13017. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  13018. (setPeerMessageCommonProperty): Removed.
  13019. (createRequestMessage): Removed.
  13020. (createCancelMessage): Removed.
  13021. (createPieceMessage): Removed.
  13022. (createHaveMessage): Removed.
  13023. (createChokeMessage): Removed.
  13024. (createUnchokeMessage): Removed.
  13025. (createInterestedMessage): Removed.
  13026. (createNotInterestedMessage): Removed.
  13027. (createBitfieldMessage): Removed.
  13028. (createKeepAliveMessage): Removed.
  13029. (createHaveAllMessage): Removed.
  13030. (createHaveNoneMessage): Removed.
  13031. (createRejectMessage): Removed.
  13032. (createAllowedFastMessage): Removed.
  13033. * src/PieceMessage.h
  13034. (createRejectMessage): New function.
  13035. (PieceMessage): Rewritten.
  13036. (onChoked): New function.
  13037. (onCanceled): New function.
  13038. * src/PieceMessage.cc
  13039. (send): If invalidate is true then do nothing, just return.
  13040. (createRejectMessage): New function.
  13041. (onChoked): New function.
  13042. (onCanceled): New function.
  13043. * src/RequestMessage.h
  13044. (RequestMessage): Rewritten.
  13045. (onPush): New function.
  13046. (onAbortPiece): New function.
  13047. * src/RequestMessage.cc
  13048. (onPush): New function.
  13049. (onAbortPiece): New function.
  13050. Update fd_set when a socket is added or deleted in order to improve
  13051. performance:
  13052. * src/DownloadEngine.h
  13053. (rfdset): New variable.
  13054. (wfdset): New variable.
  13055. (updateFdSet): New function.
  13056. * src/DownloadEngine.cc
  13057. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  13058. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  13059. (waitData): Copy rfdset and wfdset.
  13060. (updateFdSet): New function.
  13061. (addSocket): Call updateFdSet.
  13062. (deleteSocket): Call updateFdSet.
  13063. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13064. To add the support for Metalink3.0 backward compatible links:
  13065. * src/Request.h
  13066. (SAFE_CHARS): Added '#'.
  13067. (METALINK_MARK): New definition.
  13068. * src/Request.cc
  13069. (parseUrl): Added the support for Metalink3.0 backward compatible
  13070. links.
  13071. etc
  13072. * src/PeerInteraction.cc
  13073. (MsgPushBack): Removed.
  13074. (sendMessages): Use STL copy and back_inserter.
  13075. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  13076. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  13077. * src/TorrentMan.h
  13078. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  13079. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13080. * src/SharedHandle.h: New class.
  13081. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  13082. * src/HttpResponseCommand.h
  13083. (HttpResponseCommand): Wrapped Socket.
  13084. * src/SocketCore.h
  13085. (operator==): New function.
  13086. (operator!=): New function.
  13087. (operator<): New function.
  13088. (getSockfd): New function.
  13089. (isOpen): New function.
  13090. (writeData): New function.
  13091. * src/SocketCore.cc
  13092. (operator==): New function.
  13093. (operator!=): New function.
  13094. (operator<): New function.
  13095. * src/AbstractCommand.h
  13096. (socket): Changed its type to SocketHandle.
  13097. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13098. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13099. (disableReadCheckSocket): New function.
  13100. (disableWriteCheckSocket): New function.
  13101. (readCheckTarget): Changed its type to SocketHandle.
  13102. (writeCheckTarget): Changed its type to SocketHandle.
  13103. (AbstractCommand): Replaced Socket with SocketHandle.
  13104. * src/AbstractCommand.cc
  13105. (AbstractCommand): Replaced Socket with SocketHandle.
  13106. (~AbstractCommand): Removed the deallocation for Socket object.
  13107. (disableReadCheckSocket): New function.
  13108. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13109. (disableWriteCheckSocket): New function.
  13110. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13111. * src/HttpDownloadCommand.cc
  13112. (DownloadCommand): Replaced Socket with SocketHandle.
  13113. * src/PeerAbstractCommand.h
  13114. (socket): Changed its type to SocketHandle.
  13115. (peer): Changed its type to PeerHandle.
  13116. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13117. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13118. (disableReadCheckSocket): New function.
  13119. (disableWriteCheckSocket): New function.
  13120. (readCheckTarget): Changed its type to SocketHandle.
  13121. (writeCheckTarget): Changed its type to SocketHandle.
  13122. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13123. Replaced Peer with PeerHandle.
  13124. * src/HttpRequestCommand.cc
  13125. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13126. Use disableReadCheckSocket.
  13127. * src/PeerInitiateConnectionCommand.h
  13128. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13129. * src/PeerChokeCommand.cc
  13130. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  13131. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  13132. (execute): Use PeerHandle.
  13133. * src/PeerConnection.h
  13134. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  13135. (socket): Changed its type to SocketHandle.
  13136. (PeerConnection): Replaced Socket with SocketHandle.
  13137. * src/PeerConnection.cc
  13138. (PeerConnection): Replaced Socket with SocketHandle.
  13139. * src/PeerInteractionCommand.h
  13140. (PeerInteractionCommand): Replaced socket with SocketHandle.
  13141. Replaced Peer with PeerHandle.
  13142. * src/PeerInteractionCommand.cc
  13143. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  13144. Replaced Peer with PeerHandle.
  13145. (executeInternal): Use disableWriteCheckSocket.
  13146. Use HandshakeMessageHandle.
  13147. (receiveMessages): Use PeerMessageHandle.
  13148. (prepareForNextPeer): Use PeerHandle.
  13149. * src/HttpProxyRequestCommand.h
  13150. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13151. * src/HttpResponseCommand.cc
  13152. (HttpResponseCommand): Replaced Socket with SocketHandle.
  13153. * src/TorrentMan.cc
  13154. (nullPeer): Added external reference.
  13155. (~TorrentMan): Removed the deallocation of the elements of peers.
  13156. (addPeer): Rewritten.
  13157. (isPeerAvailable): Use nullPeer.
  13158. (deleteOldpeers): Replaced with deleteErrorPeer.
  13159. (deleteErrorPeer): New function.
  13160. (getPeer): Use PeerHandle and nullPeer.
  13161. (hasMissingPiece): Replaced Peer with PeerHandle.
  13162. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13163. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13164. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13165. (getMissingPiece): Replaced Peer with PeerHandle.
  13166. * src/FtpNegotiateCommand.cc
  13167. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  13168. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  13169. (recvGreeting): Use disableWriteCheckSocket.
  13170. (recvPasv): Removed the allocation of Socket.
  13171. Use disableReadCheckSocket.
  13172. (sendRestPasv): Use disableWriteCheckSocket.
  13173. (recvRetr): Changed assertion.
  13174. * src/PeerInteraction.h
  13175. (SharedHandle.h): Included SharedHandle.h.
  13176. (PeerMessageHandle): New type definition.
  13177. (HandshakeMessageHandle): New type definition.
  13178. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  13179. (peer): Changed its type to PeerHandle.
  13180. (createHandshakeMessage): Replaced HandshakeMessage with
  13181. HandshakeMessageHandle.
  13182. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  13183. (PeerInteraction): Replaced Peer with PeerHandle.
  13184. Replaced Socket with SocketHandle.
  13185. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13186. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13187. (receiveHandshake): Replaced HandshakeMessage with
  13188. HandshakeMessageHandle.
  13189. * src/PeerInteraction.cc
  13190. (PeerInteraction): Replaced Peer with PeerHandle.
  13191. Replaced Socket with SocketHandle.
  13192. (~PeerInteraction): Removed the deallocation of the elements of
  13193. messageQueue.
  13194. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  13195. (isSendingMessageInProgress): Replaced PeerMessage with
  13196. PeerMessageHandle.
  13197. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  13198. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13199. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  13200. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  13201. (abortPiece): Use PeerMessageHandle.
  13202. (receiveHandshake): Replaced HandshakeMessage with
  13203. HandshakeMessageHandle. Removed try-catch block.
  13204. (createHandshakeMessage): Replaced HandshakeMessage with
  13205. HandshakeMessageHandle.
  13206. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13207. Removed try-catch block.
  13208. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  13209. * src/HttpProxyResponseCommand.cc
  13210. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13211. * src/FtpTunnelResponseCommand.h
  13212. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13213. * src/HttpConnection.cc
  13214. (HttpConnection): Replaced Socket with SocketHandle.
  13215. * src/PeerAbstractCommand.cc
  13216. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13217. (~PeerAbstractCommand): Removed the deallocation of socket.
  13218. Use disableReadCheckSocket, disableWriteCheckSocket.
  13219. (disableReadCheckSocket): New function.
  13220. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13221. (disableWriteCheckSocket): New function.
  13222. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13223. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  13224. * src/FtpTunnelRequestCommand.cc
  13225. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13226. (~FtpTunnelRequestCommand): Corrected indentation.
  13227. * src/DownloadCommand.h
  13228. (DownloadCommand): Replaced Socket with SocketHandle.
  13229. * src/PeerListenCommand.cc
  13230. (PeerListenCommand): Removed the initialization of socket.
  13231. (~PeerListenCommand): Removed the deallocation of socket.
  13232. (bindPort): Use SocketHandle.
  13233. (execute): Use SocketHandle and PeerHandle.
  13234. * src/FtpDowndloadCommand.cc
  13235. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13236. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  13237. * src/main.cc
  13238. (main): Corrected indentation.
  13239. * src/HttpInitiateConnectionCommand.cc
  13240. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  13241. (executeInternal): Removed the allocation of socket.
  13242. * src/HttpRequestCommand.h
  13243. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13244. * src/FtpNegotiationCommand.h
  13245. (dataSocket): Changed its type to SocketHandle.
  13246. (serverSocket): Changed its type to SocketHandle.
  13247. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  13248. * src/TorrentMan.h
  13249. (MAX_PEER_UPDATE): Removed.
  13250. (MAX_PEERS): New definition.
  13251. (Peers): The element is now of type PeerHandle.
  13252. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  13253. (getPeer): Replaced Peer with PeerHandle.
  13254. (deleteOldErrorPeers): Removed.
  13255. (deleteErrorPeer): New function.
  13256. (hasMissingPiece): Replaced Peer with PeerHandle.
  13257. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13258. (getMissingPiece): Replaced Peer with PeerHandle.
  13259. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13260. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13261. (addActivePeer): Replaced Peer with PeerHandle.
  13262. (deleteActivePeer): Replaced Peer with PeerHandle.
  13263. Added a check for the return value of find.
  13264. * src/FtpTunnelResponseCommand.cc
  13265. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13266. * src/FtpInitiateConnectionCommand.cc
  13267. (executeInternal): Removed the allocation of socket.
  13268. * src/DownloadEngine.h
  13269. (Sockets): An element is now of type SocketHandle.
  13270. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  13271. (CommandUuids): New type definition.
  13272. (rsockets): Changed its type to SockCmdMap.
  13273. (wsockets): Changed its type to SockCmdMap.
  13274. (addSocket): Rewritten.
  13275. (deleteSocket): Rewritten.
  13276. (addSocketForReadCheck): Rewritten.
  13277. (deleteSocketForReadCheck): Rewritten.
  13278. (addSocketForWriteCheck): Rewritten.
  13279. (deleteSocketForWriteCheck): Rewritten.
  13280. (PairFind): New template class.
  13281. * src/HttpDownloadCommand.h
  13282. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  13283. * src/FtpConnection.cc
  13284. (FtpConnection): Replaced Socket with SocketHandle.
  13285. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  13286. block.
  13287. * src/InitiateConnectionCommandFactory.cc
  13288. (DlAbortEx.h): Included DlAbortEx.h.
  13289. (createInitiateConnectionCommand): Throw exception if the protocol of
  13290. requested URI is not supported.
  13291. * src/Peer.cc
  13292. (nullPeer): Changed its type to PeerHandle.
  13293. (operator==): New function.
  13294. (operator!=): New function.
  13295. * src/Peer.h
  13296. (SharedHandle.h): Included SharedHandle.h.
  13297. (operator==): New function.
  13298. (operator!=): New function.
  13299. (Peer): Added the default constructor.
  13300. Use resetStatus() to initialize member variables.
  13301. (nullPeer): Removed.
  13302. * src/TrackerUpdateCommand.cc
  13303. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  13304. with MIN_PEERS.
  13305. * src/PeerListenCommand.h
  13306. (socket): Changed its type to SocketHandle.
  13307. * src/Command.h
  13308. (CommandUuid): New type definition.
  13309. (uuid): New variable.
  13310. (uuidGen): New variable.
  13311. (Command): Added the initialization of uuid.
  13312. (getUuid): New function.
  13313. * src/Socket.h
  13314. (Socket): Removed.
  13315. (SocketHandle): New type definition.
  13316. * src/DownloadEngine.h
  13317. (FindCommand): New function object.
  13318. (run): The portion of socket check was rewritten.
  13319. (SetDescriptor): New function object.
  13320. (AccumulateActiveCommandUuid): New function object.
  13321. (waitData): Rewritten.
  13322. (addSocket): Rewritten.
  13323. (deleteSocket): Rewritten.
  13324. (addSocketForReadCheck): Rewritten.
  13325. (addSocketForWriteCheck): Rewritten.
  13326. (deleteSocketForReadCheck): Rewritten.
  13327. (deleteSocketForWriteCheck): Rewritten.
  13328. * src/HttpProxyResponseCommand.h
  13329. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  13330. * src/HttpConnection.h
  13331. (socket): Changed its type to SocketHandle.
  13332. (HttpConnection): Replaced Socket with SocketHandle.
  13333. * src/PeerInitiateConnectionCommand.cc
  13334. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13335. (executeInternal): Removed the allocation of socket.
  13336. (prepareForNextPeer): Use PeerHandle.
  13337. * src/PeerMessage.h
  13338. (peer): Changed its type to PeerHandle.
  13339. (getPeer): Replaced Peer with PeerHandle.
  13340. (setPeer): Replaced Peer with PeerHandle.
  13341. * src/DownloadCommand.cc
  13342. (DownloadCommand): Replaced Socket with SocketHandle.
  13343. * src/FtpConnection.h
  13344. (socket): Changed its type to SocketHandle.
  13345. (FtpConnection): Replaced Socket with SocketHandle.
  13346. (sendPort); Replaced Socket with SocketHandle.
  13347. * src/FtpDowndloadCommand.h
  13348. (ctrlSocket): Changed its type to SocketHandle.
  13349. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13350. * src/HttpProxyRequestCommand.cc
  13351. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13352. * src/FtpTunnelRequestCommand.h
  13353. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13354. etc
  13355. * src/PeerChokeCommand.h
  13356. (setAllPeerChoked): Removed.
  13357. (setAllPeerResetDelta): Removed.
  13358. * src/PeerChokeCommand.cc
  13359. (setAllPeerChoked): Removed.
  13360. (ChokePeer): New function object.
  13361. (setAllPeerResetDelta): Removed.
  13362. (ResetDelta): New function object.
  13363. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  13364. (execute): Show download speed when the local node is a seeder.
  13365. setAllPeerChoked and setAllPeerResetDelta were rewritten
  13366. using STL.
  13367. * src/TrackerWatcherCommand.h
  13368. (MIN_PEERS): Removed.
  13369. * src/TorrentMan.cc
  13370. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  13371. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13372. To fix the bug that .aria2 file is not saved if downloading is stopped
  13373. by the errors:it results that aria2 can not resume downloading:
  13374. * src/main.cc
  13375. (normalDownload): Added the call to save().
  13376. (main): Added the deletion of the elements in 'reserved'.
  13377. To fix log:
  13378. * src/PeerInteraction.cc
  13379. (receiveHandshake): Fixed log.
  13380. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13381. To improve download performance in BitTorrent:
  13382. * src/TorrentMan.cc
  13383. (getPeer): Check the number of connections. Return nullPeer if
  13384. it is greater than MAX_PEER_UPDATE.
  13385. This code was originally here, but was removed in 0.5.1.
  13386. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13387. To improve the conditional compilation:
  13388. * src/MultiDiskWriter.h:
  13389. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13390. * src/MultiDiskWriter.cc:
  13391. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13392. * src/Util.h:
  13393. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13394. Added ENABLE_BITTORRENT around computeFastSet().
  13395. * src/Util.cc:
  13396. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13397. Added ENABLE_BITTORRENT around computeFastSet().
  13398. * src/messageDigest.h:
  13399. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  13400. * src/ShaVisitor.h:
  13401. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13402. * src/ShaVisitor.cc:
  13403. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13404. * src/main.cc:
  13405. Added ENABLE_BITTORRENT around includes and blocks related to
  13406. BitTorrent.
  13407. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  13408. digest support is not available.
  13409. * src/AbstractDiskWriter.h:
  13410. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13411. * src/AbstractDiskWriter.cc:
  13412. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13413. * src/MetalinkEntry.cc
  13414. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  13415. support is not available.
  13416. To add command-line options for Metalink:
  13417. * src/main.cc:
  13418. Added metalink-version, metalink-language, metalink-os,
  13419. follow-metalink.
  13420. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  13421. * src/main.cc: Use these definition.
  13422. * Release 0.6.0
  13423. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13424. To add Metalink support(http/ftp only):
  13425. * src/AbstractCommand.h
  13426. (tryReserved): New function.
  13427. * src/AbstractCommand.cc
  13428. (execute): Call tryReserved().
  13429. (tryReserved): New function.
  13430. * src/Request.h
  13431. (Requests): New type definition.
  13432. * src/SegmentMan.h
  13433. (reserved): New variable.
  13434. * src/Util.h
  13435. (fileChecksum): New function.
  13436. (toUpper): New function.
  13437. (toLower): New function.
  13438. * src/Util.cc
  13439. (messageDigest.h): Included.
  13440. (trim): Trim \r\n\t.
  13441. (fileChecksum): New function.
  13442. (toUpper): New function.
  13443. (toLower): New function.
  13444. * src/main.cc
  13445. (normalDownload): New function.
  13446. (main): Added 2 command-line options: metalink-file,
  13447. metalink-connection. Their usage has not been written yet.
  13448. * src/MetalinkProcessor.h: New class.
  13449. * src/Xml2MetalinkProcessor.h: New class.
  13450. * src/Xml2MetalinkProcessor.cc: New class.
  13451. * src/MetalinkEntry.h: New class.
  13452. * src/MetalinkEntry.cc: New class.
  13453. * src/MetalinkResource.h: New class.
  13454. * src/MetalinkResource.cc: New class.
  13455. To add md5 message digest checking:
  13456. * src/messageDigest.h: Rewritten.
  13457. * src/MultiDiskWriter.cc: Updated according to the changes in
  13458. messageDigest.h.
  13459. * src/ShaVisitor.cc: Updated according to the changes in
  13460. messageDigest.h.
  13461. * src/Util.cc: Updated according to the changes in messageDigest.h.
  13462. * src/AbstractDiskWriter.cc: Updated according to the changes in
  13463. messageDigest.h.
  13464. To fix a bug that causes segfault when the payload length in peer
  13465. message is less than 0:
  13466. * src/PeerConnection.cc:
  13467. (receiveMessage): Fixed the bug.
  13468. * src/PeerMessageUtil.cc
  13469. (checkLength): Throw an exception if length is less than or equals to
  13470. 0.
  13471. To add new interfaces to Base64 encoding/decoding:
  13472. * src/Base64.h
  13473. (part_encode): Changed the method signature.
  13474. (encode): New function(overload).
  13475. (decode): New function(overload).
  13476. * src/Base64.cc
  13477. (part_encode): Rewritten.
  13478. (encode): Rewritten.
  13479. (encode): New function(overload).
  13480. To prevent a peer to download same piece if there is an error in
  13481. checksum:
  13482. * src/PieceMessage.cc
  13483. (receivedAction): Call peerInteraction->abortPiece().
  13484. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13485. To fix the bug that causes same have message is sent many times to
  13486. a single peer.
  13487. * src/Time.cc
  13488. (isNewer): Use Util::difftv().
  13489. * src/Util.cc
  13490. (difftv): Added a cast to (long long int).
  13491. * src/TorrentMan.cc
  13492. (advertisePiece): Use push_front.
  13493. (getAdvertisedPieceIndexes): A performance improvement was made.
  13494. To fix the bug that sends tracker requests without a sleep interval
  13495. when the number of connections is less than 15.
  13496. * src/TrackerWatcherCommand.cc
  13497. (execute): Now the number of connections is not a factor to decide
  13498. whether or not a tracker request should be sent or not.
  13499. * src/Time.h
  13500. (setTimeInSec): New function.
  13501. * src/Time.cc
  13502. (setTimeInSec): New function.
  13503. etc.
  13504. * src/ChokeMessage.cc
  13505. (receivedAction): Removed peer->snubbing = false
  13506. * src/PeerConnection.h
  13507. (receiveHandshake): Updated doc.
  13508. * src/TorrentMan.h
  13509. (getAdvertisedPieceIndexes): Updated the method signature.
  13510. * src/TorrentMan.cc
  13511. (getAdvertisedPieceIndexes): Updated the method signature.
  13512. * src/Time.h
  13513. (getTimeInMicros): Added a cast to (long long int).
  13514. (getTimeInMillis): Added a cast to (long long int).
  13515. * Release 0.5.2
  13516. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13517. To make a listening socket non-block:
  13518. * src/SocketCore.h
  13519. (setNonBlockingMode): New function.
  13520. * src/SocketCore.cc
  13521. (setNonBlockingMode): New function.
  13522. (beginListen): Added a call to setNonBlockingMode().
  13523. (acceptConnection): Call setNonBlockingMode().
  13524. (setBlockingMode): Updated.
  13525. To handle tracker's NAT-checking:
  13526. * src/PeerConnection.cc
  13527. (receiveHandshake): 'msg' param is filled with received data and
  13528. its length is assigned to 'length' param, even if all handshake
  13529. message is not yet received.
  13530. * src/PeerInteractionCommand.cc
  13531. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  13532. a new peer connects to localhost.
  13533. A call to peerInteraction->sendHandshake() was removed because
  13534. it is called from peerInteraction->receiveHandshake(true).
  13535. * src/PeerInteraction.h
  13536. (quickReplied): New variable.
  13537. (receiveHandshake): Added an argument.
  13538. * src/PeerInteraction.cc
  13539. (PeerInteraction): Added the initialization of quickReplied.
  13540. (receiveHandshake): Send handshake message as soon as the info hash
  13541. in a handshake message from a peer is correct.
  13542. To change the random part of peer id and key parameter:
  13543. * src/TorrentMan.h
  13544. (key): New variable.
  13545. * src/TorrentMan.cc
  13546. (setupInternal1): Use Util::randomAlpha() to generate random part
  13547. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  13548. key is also generated by Util::randomAlpha() and it is now 8 character
  13549. long.
  13550. * src/Util.h
  13551. (randomAlpha): New function.
  13552. * src/Util.cc
  13553. (randomAlpha): New function.
  13554. * src/TrackerWatcherCommand.cc
  13555. (execute): In a tracker request: Use torrentMan->key as key parameter.
  13556. Added no_peer_id=1.
  13557. Set snubbing flag to false when a choke message is received from a
  13558. snubbed peer.
  13559. * src/ChokeMessage.cc
  13560. (receivedAction): Set snubbing flag to false.
  13561. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13562. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  13563. * src/SimpleLogger.h (writeHeader): New function.
  13564. * src/SimpleLogger.cc (writeHeader): New function.
  13565. (writeLog): Fixed the bug that causes segfaults if exception message
  13566. contains an unescaped "%" character.
  13567. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  13568. when a tracker request fails.
  13569. * src/Request.cc (parseUrl): Query string is now handled properly.
  13570. * Release 0.5.1
  13571. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13572. To add Time class which represents a specific instant in time and
  13573. its precision is microseconds. Time checking procedures were rewritten
  13574. using this object.
  13575. * src/Time.h: New class.
  13576. * src/Time.cc: New class.
  13577. * src/AbstractCommand.h
  13578. (updateCheckPoint): Removed.
  13579. (isTimeoutDetected): Removed.
  13580. (checkPoint): Changed the type to Time.
  13581. (timeout): New variable.
  13582. (setTimeout): New function.
  13583. * src/AbstractCommand.cc
  13584. (AbstractCommand): Removed the initialization of checkPoint.
  13585. Added the initialization of timeout.
  13586. (updateCheckPoint): Removed.
  13587. (isTimeoutDetected): Removed.
  13588. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  13589. * src/PeerChokeCommand.h
  13590. (checkPoint): Changed the type to Time.
  13591. * src/PeerChokeCommand.cc
  13592. (PeerChokeCommand): Removed the initialization of checkPoint.
  13593. (execute): Rewritten using Time object.
  13594. * src/TrackerWatcherCommand.h
  13595. (checkPoint): Changed the type to Time.
  13596. * src/TrackerWatcherCommand.cc
  13597. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  13598. (execute): Rewritten.
  13599. * src/ConsoleDownloadEngine.h
  13600. (cp): Changed the type to Time.
  13601. (startup): Changed the type to Time.
  13602. * src/ConsoleDownloadEngine.cc
  13603. (initStatistics): Use cp.reset(), startup.reset().
  13604. (calculateStatistics): Rewritten using Time object.
  13605. * src/PeerAbstractCommand.h
  13606. (updateCheckPoint): Removed.
  13607. (isTimeoutDetected): Removed.
  13608. (checkPoint): Changed the type to Time.
  13609. * src/PeerAbstractCommand.cc
  13610. (PeerAbstractCommand): Removed the initialization of checkPoint.
  13611. (updateCheckPoint): Removed.
  13612. (isTimeoutDetected): Removed.
  13613. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  13614. * src/PeerInteractionCommand.cc
  13615. (PeerInteractionCommand): Removed the initializations of struct
  13616. timeval variables.
  13617. * src/PeerInteractionCommand.h
  13618. (keepAliveCheckPoint): Changed the type to Time.
  13619. (chokeCheckPoint): Changed the type to Time.
  13620. (freqCheckPoint): Changed the type to Time.
  13621. (haveCheckTime): Changed the type to Time.
  13622. * src/PeerInteractionCommand.cc
  13623. (executeInternal): Rewritten using Time object.
  13624. (detectMessageFlooding): Rewritten using Time object.
  13625. (checkLongTimePeerChoking): Rewritten using Time object.
  13626. (sendKeepAlive): Rewritten using Time object.
  13627. (checkHave): Rewritten using Time object.
  13628. * src/SleepCommand.h
  13629. (checkPoint): Changed the type to Time.
  13630. * src/SleepCommand.cc
  13631. (SleepCommand): Removed the initialization of checkPoint.
  13632. (execute): Rewritten using Time object.
  13633. * src/TorrentAutoSaveCommand.h
  13634. (checkPoint): Changed the type to Time.
  13635. * src/TorrentAutoSaveCommand.cc
  13636. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  13637. (execute): Rewritten.
  13638. * src/DownloadCommand.h
  13639. (sw): Changed the type to Time.
  13640. * src/DownloadCommand.cc
  13641. (DownloadCommand): Removed the initialization of sw.
  13642. (executeInternal): Rewritten.
  13643. * src/RequestSlot.h
  13644. (dispatchedTime): Changed the type to Time.
  13645. * src/RequestSlot.cc
  13646. (RequestSlot): Removed the call to setDispatchedTime().
  13647. (setDispatchedTime): Rewirtten.
  13648. (isTimeout): Rewritten.
  13649. (getLatencyInMillis): Rewritten.
  13650. * src/TorrentDownloadEngine.h
  13651. (cp): Changed the type to Time[2].
  13652. (startup): Changed the type to Time.
  13653. * src/TorrentDownloadEngine.cc
  13654. (initStatistics): Rewritten.
  13655. (calculateStatistics): Rewritten.
  13656. * src/DownloadEngine.cc
  13657. (run): Rewritten.
  13658. To detect all attempts to connect to the tracker are failed:
  13659. * src/AbstractCommand.cc
  13660. (execute): Increment e->segmentMan->errors if a command aborted.
  13661. * src/SegmentMan.h
  13662. (errors): New variable.
  13663. * src/SegmentMan.cc
  13664. (SegmentMan): Added the initialization of errors.
  13665. (init): Added the initialization of errors.
  13666. * src/TrackerWatcherCommand.cc
  13667. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  13668. request was failed.
  13669. To handle snubbed peers:
  13670. * src/PeerChokeCommand.cc
  13671. (optUnchokingPeer): Snubbed peers don't get unchoked.
  13672. (execute): Snubbed peers don't get unchoked.
  13673. * src/PeerInteraction.h
  13674. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  13675. * src/PeerInteraction.cc
  13676. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  13677. back the requested 16k block in 60 seconds.
  13678. * src/PieceMessage.cc
  13679. (receivedAction): A peer's snubbed state is cleard if it sends
  13680. the requested 16k block in 60 seconds.
  13681. * src/Peer.h
  13682. (snubbing): New variable.
  13683. * src/Peer.cc
  13684. (resetStatus): Added snubbed = false.
  13685. To fix the bug that causes have message is not sent:
  13686. * src/PeerInteractionCommand.cc
  13687. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  13688. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  13689. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  13690. * src/TorrentMan.h
  13691. (HaveEntry): New class.
  13692. (advertisePiece): Rewritten.
  13693. (getAdvertisedPieceIndexes): Rewritten.
  13694. (Haves): Changed the type.
  13695. (getAdvertisedPieceIndexes): Added an argument.
  13696. Others:
  13697. * src/TorrentMan.h
  13698. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  13699. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  13700. * src/TorrentMan.cc
  13701. (getPeer): Don't check the number of connections here.
  13702. (setupInternal1): Changed peerId.
  13703. * src/PeerInteractionCommand.h
  13704. (KEEP_ALIVE_INTERVAL): New definition.
  13705. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  13706. * src/main.cc
  13707. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  13708. * src/DownloadEngine.h: Removed unnecessary header includes.
  13709. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13710. To fix the bug that causes segfaults if a tracker returns a zero-length
  13711. list as "peers":
  13712. * src/TrackerUpdateCommand.cc
  13713. (execute): Added a check to see wether the type of peers is Data*.
  13714. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13715. * Release 0.5.0
  13716. To fix compile issue with gcc3:
  13717. * src/CancelMessage.h
  13718. (ID): Renamed as ID_t
  13719. (ID_t): New enum.
  13720. * src/RejectMessage.h
  13721. (ID): Renamed as ID_t
  13722. (ID_t): New enum.
  13723. * src/SuggestPieceMessage.h
  13724. (ID): Renamed as ID_t
  13725. (ID_t): New enum.
  13726. * src/AllowedFastMessage.h
  13727. (ID): Renamed as ID_t
  13728. (ID_t): New enum.
  13729. * src/PortMessage.h
  13730. (ID): Renamed as ID_t
  13731. (ID_t): New enum.
  13732. * src/HaveNoneMessage.h
  13733. (ID): Renamed as ID_t
  13734. (ID_t): New enum.
  13735. * src/KeepAliveMessage.h
  13736. (ID): Renamed as ID_t
  13737. (ID_t): New enum.
  13738. * src/HaveAllMessage.h
  13739. (ID): Renamed as ID_t
  13740. (ID_t): New enum.
  13741. * src/UnchokeMessage.h
  13742. (ID): Renamed as ID_t
  13743. (ID_t): New enum.
  13744. * src/BitfieldMessage.h
  13745. (ID): Renamed as ID_t
  13746. (ID_t): New enum.
  13747. * src/PieceMessage.h
  13748. (ID): Renamed as ID_t
  13749. (ID_t): New enum.
  13750. * src/RequestMessage.h
  13751. (ID): Renamed as ID_t
  13752. (ID_t): New enum.
  13753. * src/NotInterestedMessage.h
  13754. (ID): Renamed as ID_t
  13755. (ID_t): New enum.
  13756. * src/ChokeMessage.h
  13757. (ID): Renamed as ID_t
  13758. (ID_t): New enum.
  13759. * src/InterestedMessage.h
  13760. (ID): Renamed as ID_t
  13761. (ID_t): New enum.
  13762. * src/HaveMessage.h
  13763. (ID): Renamed as ID_t
  13764. (ID_t): New enum.
  13765. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13766. * src/PeerAbstractCommand.h
  13767. (beforeSocketCheck): Removed.
  13768. * src/PeerAbstractCommand.cc
  13769. Modified in order to call executeInternal() even if socket check
  13770. and upload limit check fail.
  13771. * src/PeerInteractionCommand.h
  13772. (keepAlive): Removed.
  13773. (sendKeepAlive): New function.
  13774. (checkHave): New function.
  13775. (beforeSocketCheck): Removed.
  13776. * src/PeerInteractionCommand.cc
  13777. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  13778. calls to checkHave() and sendKeepAlive().
  13779. (keepAlive): Renamed to sendKeepAlive().
  13780. (sendKeepAlive): New function.
  13781. (beforeSocketCheck): Removed.
  13782. (checkHave): New function.
  13783. * src/BitfieldMan.cc
  13784. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  13785. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  13786. 0.
  13787. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  13788. * src/TorrentMan.h
  13789. (UsedPieces): Removed.
  13790. (Pieces): New type definition.
  13791. * src/Piece.h: Updated doc.
  13792. * src/Peer.h
  13793. (totalLength): Removed.
  13794. * src/Peer.cc
  13795. (updateLatency): Fixed the latency calculation.
  13796. * src/TorrentMan.cc
  13797. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  13798. than or equal to MAX_PEER_LIST_SIZE.
  13799. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  13800. then return false.
  13801. (deleteOldErrorPeers): Rewritten.
  13802. (deleteUsedPiece): Fixed the miss use of STL remove.
  13803. * src/PeerInteraction.h
  13804. (Pieces): Removed.
  13805. (deleteTimeoutRequestSlot): Removed.
  13806. (deleteCompletedRequestSlot): Removed.
  13807. (checkRequestSlot): New function.
  13808. * src/PeerInteraction.cc
  13809. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  13810. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  13811. (checkRequestSlot): New function.
  13812. * src/DownloadEngine.cc
  13813. (run): Clear activeSockets before calling waitData().
  13814. (waitData): Removed a call to activeSockets.clear().
  13815. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13816. To attempt to handle EINTR:
  13817. * src/SocketCore.cc
  13818. (isReadable): Added EINTR handling.
  13819. (isWritable): Added EINTR handling.
  13820. To improve the performance:
  13821. * src/AbstractCommand.cc
  13822. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  13823. * src/PeerInteractionCommand.h
  13824. (receiveMessage): Renamed as receiveMessages().
  13825. (receiveMessages): New function.
  13826. * src/PeerInteractionCommand.cc
  13827. (executeInternal): receiveMessage loop is moved to new receiveMessages
  13828. () function. detectMessageFlooding() is moved here.
  13829. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  13830. (). The flooding detection for have message is comment out.
  13831. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  13832. Util::difftv().
  13833. (receiveMessage): Renamed as receiveMessages().
  13834. (receiveMessages): New function.
  13835. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  13836. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  13837. * src/SleepCommand.cc
  13838. (execute): Use Util::difftvsec() instead of Util::difftv().
  13839. * src/BitfieldMan.h
  13840. (getNthBitIndex): New function.
  13841. (hasMissingPiece): New function.
  13842. (getAllMissingIndexes): New function.
  13843. * src/BitfieldMan.cc
  13844. (countSetBit): Rewritten.
  13845. (getNthBitIndex): New function.
  13846. (getMissingIndexRandomly): Rewritten.
  13847. (hasMissingPiece): New function.
  13848. (getAllMissingIndexes): New function.
  13849. * src/TorrentMan.cc
  13850. (hasMissingPiece): New function.
  13851. (deleteUsedPiece): Rewritten using STL.
  13852. * src/PeerInteraction.cc
  13853. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  13854. is a little bit faster then TorrentMan::getMissingPieceIndex().
  13855. (addRequests): Updated the number of pending requests.
  13856. * src/PeerAbstractCommand.cc
  13857. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  13858. (execute): Returns true if TorrentMan::isHalt() is true.
  13859. Corrected the condition of upload limit checking.
  13860. * src/Util.h
  13861. (countBit): New function.
  13862. * src/Util.cc
  13863. (nbits): New variable.
  13864. (countBit): New function.
  13865. * src/DownloadEngine.h
  13866. (SockCmdMap): New type definition.
  13867. (waitData): Added an argument.
  13868. (addSocket): Added an argument.
  13869. (addSocketForReadCheck): Added an argument.
  13870. (addSocketForWriteCheck): Added an argument.
  13871. * src/DownloadEngine.cc
  13872. (run): Executes only commands whose sockets are ready to read or write.
  13873. All commands are executed in every 1 second.
  13874. (waitData): Calls select() again if it returned
  13875. EINTR.
  13876. (addSocket): Saves socket and command object pair to the map.
  13877. (deleteSocket): Deletes socket and command object pair from the map.
  13878. (addSocketForReadCheck): Added an argument.
  13879. (addSocketForWriteCheck): Added an argument.
  13880. * src/DownloadCommand.cc
  13881. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  13882. To send "event=stopped" to the tracker when the application finishes:
  13883. * src/PeerChokeCommand.h
  13884. (checkPoint): New variable.
  13885. * src/PeerChokeCommand.cc
  13886. (PeerChokeCommand): Added the initialization of checkPoint.
  13887. (execute): The interval check is now done by checkPoint, not
  13888. SleepCommand. Return true if TorrentMan::isHalt() is true.
  13889. * src/TorrentMan.h
  13890. (halt): New function.
  13891. (hasMissingPiece): New function.
  13892. (isHalt): New function.
  13893. (setHalt): New function.
  13894. * src/TorrentMan.cc
  13895. (TorrentMan): Added the initialization of halt.
  13896. * src/TorrentAutoSaveCommand.h
  13897. (checkPoint): New variable.
  13898. * src/PeerListenCommand.cc
  13899. (execute): Returns true if TorrentMan::isHalt() is true.
  13900. * src/main.cc
  13901. (setSignalHander): Added flags argument.
  13902. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  13903. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  13904. Removed printDownloadAbortMessage() after torrent downloading loop.
  13905. * src/TorrentAutoSaveCommand.cc
  13906. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  13907. (execute): Returns true if TorrentMan::isHalt() is true.
  13908. The interval check is now done by checkPoint, not SleepCommand.
  13909. * src/TrackerWatcherCommand.cc
  13910. (execute): If TorrentMan::isHalt(), then create a tracker request with
  13911. event=stopped.
  13912. * src/TrackerUpdateCommand.cc
  13913. (prepareForRetry): Do not use SleepCommand here.
  13914. (execute): Returns true if TorrentMan::isHalt() is true.
  13915. Others:
  13916. * src/TorrentMan.cc
  13917. (getMissingPieceIndex): Updated log message.
  13918. * src/PeerInteraction.cc
  13919. (createPeerMessag): Updated log message.
  13920. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13921. To add the ability to download several pieces in mix in a command and
  13922. increase the number of request slots according to request-cancel
  13923. latency:
  13924. * src/PeerInteractionCommand.cc
  13925. (executeInternal): The number of messages to be received at a time
  13926. is increased from 10 to 50.
  13927. * src/LogFactory
  13928. (getInstance): Added NullLogger.
  13929. * src/NullLogger.h: New class.
  13930. * src/BitfieldMan.h
  13931. (getMissingIndex): New function.
  13932. * src/BitfieldMan.cc
  13933. (getMissingIndex): New function.
  13934. * src/TorrentMan.h
  13935. (checkOutPiece): New function.
  13936. (getMissingPieceIndex): New function.
  13937. (getMissingFastPieceIndex): New function.
  13938. (getMissingFastPiece): New function.
  13939. * src/TorrentMan.cc
  13940. (updatePiece): Rewritten using STL.
  13941. (syncPiece): Rewritten using STL.
  13942. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  13943. checkOutPiece().
  13944. (getMissingPieceIndex): New function.
  13945. (getMissingFastPieceIndex): New function.
  13946. (getMissingFastPiece): New function.
  13947. (checkOutPiece): New function.
  13948. * src/PeerInteraction.h
  13949. (Pieces): New type definition.
  13950. (piece): Removed.
  13951. (pieces): New variable.
  13952. (getNewPieceAndSendInterest): Added the "piece" argument.
  13953. (abortPiece): Added the "piece" argument.
  13954. (abortAllPieces): New function.
  13955. (isInRequestSlot): New function.
  13956. (hasDownloadPiece): Added the "index" argument.
  13957. (setDownloadPiece): Removed.
  13958. (getDownloadPiece): Added the "index" argument.
  13959. (updatePiece): New function.
  13960. (createRequestMessage): Added the "index" argument.
  13961. * src/PeerInteraction.cc
  13962. (onChoked): Rewritten.
  13963. (abortPiece): Rewirtten.
  13964. (abortAllPieces): New function.
  13965. (deleteTimeoutRequestSlot): Rewritten.
  13966. Clarified code a little bit.
  13967. (deleteCompletedRequestSlot): Rewritten.
  13968. (isInRequestSlot): New function.
  13969. (syncPiece): Rewritten.
  13970. (updatePiece): New function.
  13971. (getNewPieceAndSendInterest): Rewritten.
  13972. (addRequests): Rewritten.
  13973. (getDownloadPiece): Rewritten.
  13974. (hasDownloadPiece): Rewritten.
  13975. (createRequestMessage): Added the "index" argument.
  13976. * src/common.h
  13977. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  13978. (DIV_FLOOR): New definition.
  13979. * src/PieceMessage.cc
  13980. (receivedAction): Update request-piece latency here.
  13981. * src/RequestSlot.h
  13982. (getLatencyInMillis): New function.
  13983. * src/RequestSlot.cc
  13984. (isTimeout): Rewritten using getLatencyInMillis.
  13985. (getLatencyInMillis): New function.
  13986. * src/Piece.h
  13987. (operator==): New function.
  13988. (getMissingBlockIndex): New function.
  13989. * src/Piece.cc
  13990. (operator==): New function.
  13991. (getMissingBlockIndex): New function.
  13992. * src/Peer.h
  13993. (DEFAULT_LATENCY): New definition.
  13994. (latency): New variable.
  13995. (updateLatency): New function.
  13996. (getLatency): New function.
  13997. * src/Peer.cc
  13998. (resetStatus): Reset latecy.
  13999. (updateLatency): New function.
  14000. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14001. * src/SocketCore.cc
  14002. (isReadable): Added secure to the condition.
  14003. * src/HttpConnection.cc
  14004. (receiveResponse): Fixed a bug that causes no response header
  14005. exception.
  14006. * src/Peer.h
  14007. (getFastSet): Fixed the return value type.
  14008. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14009. To remove a wait from download loop:
  14010. * src/DownloadEngine.cc
  14011. (run): Comment out shortSleep.
  14012. To rewrite the message handling:
  14013. * src/SimplePeerMessage.h: New class.
  14014. * src/SimplePeerMessage.cc: New class.
  14015. * src/CancelMessage.h: Derived from SimplePeerMessage.
  14016. (msg): New variable.
  14017. (create): New function.
  14018. (send): Removed.
  14019. (getMessage): New function.
  14020. (getMessageLength): New function.
  14021. * src/CancelMessage.cc
  14022. (create): New function.
  14023. (receivedAction): Replaced deleteRequestMessageInQueue with
  14024. rejectPieceMessageInQueue.
  14025. (send): Removed.
  14026. (getMessage): New function.
  14027. (getMessageLength): New function.
  14028. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  14029. (msg): New variable.
  14030. (msgLength): New variable.
  14031. (~BitfieldMessage): Deleted msg.
  14032. (send): Removed.
  14033. (getMessage): New function.
  14034. (getMessageLength): New function.
  14035. * src/BitfieldMessage.cc
  14036. (create): New function.
  14037. (send): Removed.
  14038. (getMessage): New function.
  14039. (getMessageLength): New function.
  14040. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  14041. (msg): New variable.
  14042. (sendPredicate): New function.
  14043. (onSendComplete): New function.
  14044. (send): Removed.
  14045. (getMessage): New function.
  14046. (getMessageLength): New function.
  14047. (create): New function.
  14048. * src/ChokeMessage.cc
  14049. (create): New function.
  14050. (send): Removed.
  14051. (sendPredicate): New function.
  14052. (getMessage): New function.
  14053. (getMessageLength): New function.
  14054. (onSendComplete): New function.
  14055. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  14056. (msg): New variable.
  14057. (send): Removed.
  14058. (getMessage): New function.
  14059. (getMessageLength): New function.
  14060. * src/KeepAliveMessage.cc
  14061. (send): Removed.
  14062. (getMessage): New function.
  14063. (getMessageLength): New function.
  14064. * src/PortMessage.h
  14065. (create): New function.
  14066. (receivedAction): Updated log message.
  14067. * src/PortMessage.cc: New file.
  14068. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  14069. (msg): New variable.
  14070. (sendPredicate): New function.
  14071. (onSendComplete): New function.
  14072. (create): New function.
  14073. (send): Removed.
  14074. (getMessage): New function.
  14075. (getMessageLength): New function.
  14076. * src/UnchokeMessage.cc
  14077. (create): New function.
  14078. (send): Removed.
  14079. (sendPredicate): New function.
  14080. (getMessage): New function.
  14081. (getMessageLength): New function.
  14082. (onSendComplete): New function.
  14083. * src/PieceMessage.h
  14084. (leftPieceDataLength): Removed.
  14085. (leftDataLength): New variable.
  14086. (headerSend): New variable.
  14087. (pendingCount): New variable.
  14088. (msgHeader): New variable.
  14089. (sendPieceData): New function.
  14090. (incrementPendingCount): New function.
  14091. (isPendingCountMax): New function.
  14092. (create): New function.
  14093. (getMessageHeader): New function.
  14094. (getMessageHeaderLength): New function.
  14095. * src/PieceMessage.cc
  14096. (create): New function.
  14097. (getMessageHeader): New function.
  14098. (getMessageHeaderLength): New function.
  14099. (send): Rewritten.
  14100. (sendPieceData): New function.
  14101. * src/HaveMessage.h: Derived from SimplePeerMessage.
  14102. (msg): New variable.
  14103. (create): New function.
  14104. (getMessage): New function.
  14105. (getMessageLength): New function.
  14106. * src/HaveMessage.cc
  14107. (create): New function.
  14108. (send): Removed.
  14109. (sendPieceData): New function.
  14110. (getMessage): New function.
  14111. (getMessageLength): New function.
  14112. * src/RequestMessage.h: Derived from SimplePeerMessage.
  14113. (msg): New variable.
  14114. (create): New function.
  14115. (send): Removed.
  14116. (getMessage): New function.
  14117. (getMessageLength): New function.
  14118. * src/RequestMessage.cc
  14119. (create): New function.
  14120. (receivedAction): Added the handling of fast extension.
  14121. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  14122. (send): Removed.
  14123. (getMessage): New function.
  14124. (getMessageLength): New function.
  14125. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  14126. (msg): New variable.
  14127. (sendPredicate): New function.
  14128. (onSendComplete): New function.
  14129. (create): New function.
  14130. (getMessage): New function.
  14131. (getMessageLength): New function.
  14132. * src/InterestedMessage.cc
  14133. (create): New function.
  14134. (send): Removed.
  14135. (sendPieceData): New function.
  14136. (getMessage): New function.
  14137. (getMessageLength): New function.
  14138. (onSendComplete): New function.
  14139. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  14140. (msg): New variable.
  14141. (sendPieceData): New function.
  14142. (onSendComplete): New function.
  14143. (create): New function.
  14144. (send): Removed.
  14145. (getMessage): New function.
  14146. (getMessageLength): New function.
  14147. * src/NotInterestedMessage.cc
  14148. (create): New function.
  14149. (send): Removed.
  14150. (sendPredicate): New function.
  14151. (getMessage): New function.
  14152. (getMessageLength): New function.
  14153. (onSendComplete): New function.
  14154. * src/AllowedFastMessage.h: New class.
  14155. * src/AllowedFastMessage.cc: New class.
  14156. * src/RejectMessage.h: New class.
  14157. * src/RejectMessage.cc: New class.
  14158. * src/SuggestPieceMessage.h: New class.
  14159. * src/SuggestPieceMessage.cc: New class.
  14160. * src/HaveAllMessage.h: New class.
  14161. * src/HaveAllMessage.cc: New class.
  14162. * src/HaveNoneMessage.h: New class.
  14163. * src/HaveNoneMessage.cc: New class.
  14164. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  14165. (msg): New variable.
  14166. (reserved): New variable.
  14167. (create): New function.
  14168. (getId): New function.
  14169. (receivedAction): New function.
  14170. (getMessage): New function.
  14171. (getMessageLength): New function.
  14172. (isFastExtensionSupported): New function.
  14173. * src/HandshakeMessage.cc
  14174. (HandshakeMessage): Moved here from HandshakeMessage.h.
  14175. (create): New function.
  14176. (getMessage): New function.
  14177. (getMessageLength): New function.
  14178. (toString): Added the output of reserved field.
  14179. (check): Added const qualifier.
  14180. (isFastExtensionSupported): New function.
  14181. * src/PeerMessageUtil.h
  14182. (createChokeMessage): Removed.
  14183. (createUnchokeMessage): Removed.
  14184. (createInterestedMessage): Removed.
  14185. (createNotInterestedMessage): Removed.
  14186. (createHaveMessage): Removed.
  14187. (createBitfieldMessage): Removed.
  14188. (createRequestMessage): Removed.
  14189. (createCancelMessage): Removed.
  14190. (createPieceMessage): Removed.
  14191. (createPortMessage): Removed.
  14192. (createChokeMessage): Removed.
  14193. (createUnchokeMessage): Removed.
  14194. (createInterestedMessage): Removed.
  14195. (createNotInterestedMessage): Removed.
  14196. (createHaveMessage): Removed.
  14197. (createBitfieldMessage): Removed.
  14198. (createRequestMessage): Removed.
  14199. (createCancelMessage): Removed.
  14200. (createPieceMessage): Removed.
  14201. (createKeepAliveMessage): Removed.
  14202. (createHandshakeMessage): Removed.
  14203. (setIntParam): New function.
  14204. (createPeerMessageString): New function.
  14205. * src/PeerMessageUtil.cc
  14206. (createChokeMessage): Removed.
  14207. (createUnchokeMessage): Removed.
  14208. (createInterestedMessage): Removed.
  14209. (createNotInterestedMessage): Removed.
  14210. (createHaveMessage): Removed.
  14211. (createBitfieldMessage): Removed.
  14212. (createRequestMessage): Removed.
  14213. (createCancelMessage): Removed.
  14214. (createPieceMessage): Removed.
  14215. (createPortMessage): Removed.
  14216. (createRequestMessage): Removed.
  14217. (createCancelMessage): Removed.
  14218. (createPieceMessage): Removed.
  14219. (createHaveMessage): Removed.
  14220. (createChokeMessage): Removed.
  14221. (createUnchokeMessage): Removed.
  14222. (createInterestedMessage): Removed.
  14223. (createNotInterestedMessage): Removed.
  14224. (createBitfieldMessage): Removed.
  14225. (createKeepAliveMessage): Removed.
  14226. (createHandshakeMessage): Removed.
  14227. (setIntParam): New function.
  14228. (createPeerMessageString): New function.
  14229. * src/PeerConnection.h
  14230. (peer): Removed.
  14231. (torrentMan): Removed.
  14232. (createNLengthMessage): Removed.
  14233. (setIntParam): Removed.
  14234. (writeOutgoingMessageLog): Removed all overloaded functions.
  14235. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14236. (sendMessage): New function.
  14237. (sendHandshake): Removed.
  14238. (sendKeepAlive): Removed.
  14239. (sendChoke): Removed.
  14240. (sendUnchoke): Removed.
  14241. (sendInterested): Removed.
  14242. (sendNotInterested): Removed.
  14243. (sendHave): Removed.
  14244. (sendBitfield): Removed.
  14245. (sendRequest): Removed.
  14246. (sendPiece): Removed.
  14247. (sendPieceHeader): Removed.
  14248. (sendPieceData): Removed.
  14249. (sendCancel): Removed.
  14250. (getPeer): Removed.
  14251. * src/PeerConnection.cc
  14252. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14253. (sendHandshake): Removed.
  14254. (sendKeepAlive): Removed.
  14255. (createNLengthMessage): Removed.
  14256. (setIntParam): Removed.
  14257. (writeOutgoingMessageLog): Removed all overloaded functions.
  14258. (sendChoke): Removed.
  14259. (sendUnchoke): Removed.
  14260. (sendInterested): Removed.
  14261. (sendNotInterested): Removed.
  14262. (sendHave): Removed.
  14263. (sendBitfield): Removed.
  14264. (sendRequest): Removed.
  14265. (sendPiece): Removed.
  14266. (sendPieceHeader): Removed.
  14267. (sendPieceData): Removed.
  14268. (sendMessage): New function.
  14269. (sendCancel): Removed.
  14270. * src/PeerInteractionCommand.cc
  14271. (PeerInteractionCommand): Call setUploadLimit.
  14272. (executeInternal): Call setUploadLimit.
  14273. Added the handling of "inProgress" state of handshake message.
  14274. Call sendBitfield() or sendAllowdFast() instead of deprecated
  14275. sendNow().
  14276. (keepAlive): Call addMessage and sendMessage instead of deprecated
  14277. sendNow().
  14278. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  14279. * src/TorrentMan.h
  14280. (PEER_ID_LENGTH): New definition.
  14281. (hasAllPieces): New function.
  14282. * src/TorrentMan.cc
  14283. (getMissingPiece): Added the handling of fast extension.
  14284. (cancelPiece): Call updatePiece().
  14285. (hasAllPieces): New function.
  14286. * src/PeerInteraction.h
  14287. (fastSet): New variable.
  14288. (getNewPieceAndSendInterest): Changed the return type to void.
  14289. (send): Renamed as sendMessages.
  14290. (deleteAllRequestSlot): Removed.
  14291. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14292. (cancelAllRequest): Removed all overloaded functions.
  14293. (deleteAllRequestSlot): Removed.
  14294. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14295. (rejectPieceMessageInQueue): New function.
  14296. (rejectAllPieceMessageInQueue): New function.
  14297. (onChoked): New function.
  14298. (isSendingMessageInProgress): New function.
  14299. (getCorrespondingRequestSlot): Changed its arguments.
  14300. (isInFastSet): New function.
  14301. (addFastSetIndex): New function.
  14302. (addRequests): New function.
  14303. (sendNow): Removed.
  14304. (trySendNow): Removed.
  14305. (sendBitfield): New function.
  14306. (sendAllowdFast): New function.
  14307. (createHaveAllMessage): New function.
  14308. (createHaveNoneMessage): New function.
  14309. (createRejectMessage): New function.
  14310. (createAllowedFastMessage): New function.
  14311. * src/PeerInteraction.cc
  14312. (send): Renamed as sendMessages.
  14313. (sendMessages): New function.
  14314. (MsgPushBack): New class.
  14315. (isSendingMessageInProgress): New function.
  14316. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14317. (rejectAllPieceMessageInQueue): New function.
  14318. Added the handling of fast extension.
  14319. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14320. (rejectPieceMessageInQueue): New function.
  14321. Added the handling of fast extension.
  14322. (deleteRequestSlot): Replaced for loop with std::find.
  14323. (onChoked): New function.
  14324. (deleteAllRequestSlot): Removed.
  14325. (abortPiece): Rewirtten.
  14326. (deleteTimeoutRequestSlot): Updated log messages.
  14327. (getCorrespondingRequestSlot): Changed its arguments.
  14328. (cancelAllRequest): Removed all overloaded functions.
  14329. (receiveHandshake): Added the check to see whether an incoming peer
  14330. supports fast extension.
  14331. (createHandshakeMessage): Use HandshakeMessage::create instead of
  14332. PeerMessageUtil.
  14333. (createPeerMessage): Use create() of each message class instead of
  14334. PeerMessageUtil.
  14335. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  14336. AllowedFastMessage were added.
  14337. (getNewPieceAndSendInterest): Changed its return value type to void.
  14338. Added the handling of fast extension.
  14339. (addRequests): New function.
  14340. (sendNow): Removed.
  14341. (sendHandshake): Rewritten.
  14342. (trySendNow): Removed.
  14343. (sendBitfield): New function.
  14344. (sendAllowdFast): New function.
  14345. (isInFastSet): New function.
  14346. (addFastSetIndex): New function.
  14347. (createRequestMessage): Use RequestMessage::create instead of
  14348. PeerMessageUtil.
  14349. (createCancelMessage): Use CancelMessage::create instead of
  14350. PeerMessageUtil.
  14351. (createPieceMessage): Use PieceMessage::create instead of
  14352. PeerMessageUtil.
  14353. (createHaveMessage): Use HaveMessage::create instead of
  14354. PeerMessageUtil.
  14355. (createChokeMessage): Use ChokeMessage::create instead of
  14356. PeerMessageUtil.
  14357. (createUnchokeMessage): Use UnchokeMessage::create instead of
  14358. PeerMessageUtil.
  14359. (createInterestedMessage): Use InterestedMessage::create instead of
  14360. PeerMessageUtil.
  14361. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  14362. of PeerMessageUtil.
  14363. (createBitfieldMessage): Use BitfieldMessage::create instead of
  14364. PeerMessageUtil.
  14365. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  14366. PeerMessageUtil.
  14367. (createHaveAllMessage): New function.
  14368. (createHaveNoneMessage): New function.
  14369. (createRejectMessage): New function.
  14370. (createAllowedFastMessage: New function.
  14371. * src/Util.h
  14372. (sha1Sum): New function.
  14373. (computeFastSet): New function.
  14374. * src/Util.cc
  14375. (sha1Sum): New function.
  14376. (computeFastSet): New function.
  14377. * src/Peer.h
  14378. (fastExtensionEnabled): New variable.
  14379. (fastSet): New variable.
  14380. (setAllBitfield): New function.
  14381. (setFastExtensionEnabled): New function.
  14382. (isFastExtensionEnabled): New function.
  14383. (addFastSetIndex): New function.
  14384. (getFastSet): New function.
  14385. (isInFastSet): New function.
  14386. (countFastSet): New function.
  14387. * src/Peer.cc
  14388. (isInFastSet): New function.
  14389. (addFastSetIndex): New function.
  14390. (setAllBitfield): New function.
  14391. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  14392. sockets.
  14393. * src/PeerAbstractCommand.cc
  14394. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  14395. and uploadLimit.
  14396. (execute): Changed the procedure of checking sockets. The upload speed
  14397. checking were added.
  14398. (setUploadLimit): New function.
  14399. (setUploadLimitCheck): New function.
  14400. * src/PeerAbstractCommand.h
  14401. (setUploadLimit): New function.
  14402. (setUploadLimitCheck): New function.
  14403. (uploadLimit): New variable.
  14404. (uploadLimitCheck): New variable.
  14405. To contact a tracker regularly:
  14406. * src/TrackerWatcherCommand.h (interval): New variable.
  14407. (checkPoint): New variable.
  14408. (TrackerWatcherCommand): Added interval argument.
  14409. * src/TrackerWatcherCommand.cc
  14410. (TrackerWatcherCommand): Initialized checkPoint.
  14411. (execute): Now a tracker is contacted in every specified period.
  14412. If peer list is not needed, send request with numwant=0.
  14413. * src/TrackerUpdateCommand.cc
  14414. (execute): Updated log messages.
  14415. * src/DownloadEngine.cc
  14416. (~DownloadEngine): Removed two asserts.
  14417. (waitData): Uncommented wfds. May be a bug fix.
  14418. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14419. * src/PeerInteractionCommand.h
  14420. (checkInactiveConnection): Removed.
  14421. * src/PeerInteractionCommand.cc
  14422. (executeInternal): Removed following function calls:
  14423. detectMessageFlooding(), checkLongTimePeerChoking and
  14424. checkInactiveConnection().
  14425. (checkInactiveConnection): Removed.
  14426. (detectMessageFlooding): Removed function call to
  14427. checkInactiveConnection().
  14428. * src/PeerMessageUtil.h
  14429. (createChokeMessage): New function. Overload.
  14430. (createUnchokeMessage): New function. Overload.
  14431. (createInterestedMessage): New function. Overload.
  14432. (createNotInterestedMessage): New function. Overload.
  14433. (createHaveMessage): New function. Overload.
  14434. (createBitfieldMessage): New function. Overload.
  14435. (createRequestMessage): New function. Overload.
  14436. (createCancelMessage): New function. Overload.
  14437. (createPieceMessage): New function. Overload.
  14438. (createKeepAliveMessage): New function. Overload.
  14439. * src/PeerMessageUtil.cc
  14440. (createChokeMessage): New function. Overload.
  14441. (createUnchokeMessage): New function. Overload.
  14442. (createInterestedMessage): New function. Overload.
  14443. (createNotInterestedMessage): New function. Overload.
  14444. (createHaveMessage): New function. Overload.
  14445. (createBitfieldMessage): New function. Overload.
  14446. (createRequestMessage): New function. Overload.
  14447. (createCancelMessage): New function. Overload.
  14448. (createPieceMessage): New function. Overload.
  14449. (createKeepAliveMessage): New function. Overload.
  14450. * src/SendMessageQueue.cc
  14451. (createRequestMessage): Use PeerMessageUtil.
  14452. (createCancelMessage): Use PeerMessageUtil.
  14453. (createPieceMessage): Use PeerMessageUtil.
  14454. (createHaveMessage): Use PeerMessageUtil.
  14455. (createChokeMessage): Use PeerMessageUtil.
  14456. (createUnchokeMessage): Use PeerMessageUtil.
  14457. (createInterestedMessage): Use PeerMessageUtil.
  14458. (createNotInterestedMessage): Use PeerMessageUtil.
  14459. (createBitfieldMessage): Use PeerMessageUtil.
  14460. (createKeepAliveMessage): Use PeerMessageUtil.
  14461. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  14462. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  14463. * src/PeerInteraction.h: New class.
  14464. * src/PeerInteraction.cc: New class.
  14465. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14466. Each peer message has its own class.
  14467. * src/PendingMessages.h: Removed.
  14468. * src/PendingMessages.cc: Removed. The sending process was moved to
  14469. each message class.
  14470. * src/RequestSlotMan.h: Removed.
  14471. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  14472. SendMessageQueue.
  14473. * src/RequestMessage.h: New class.
  14474. * src/RequestMessage.cc: New class.
  14475. * src/CancelMessage.h: New class.
  14476. * src/CancelMessage.cc: New class.
  14477. * src/BitfieldMessage.h: New class.
  14478. * src/BitfieldMessage.cc: New class.
  14479. * src/ChokeMessage.h: New class.
  14480. * src/ChokeMessage.cc: New class.
  14481. * src/KeepAliveMessage.h: New class.
  14482. * src/KeepAliveMessage.cc: New class.
  14483. * src/PortMessage.h: New class.
  14484. * src/UnchokeMessage.h: New class.
  14485. * src/UnchokeMessage.cc: New class.
  14486. * src/PieceMessage.h: New class.
  14487. * src/PieceMessage.cc: New class.
  14488. * src/HaveMessage.h: New class.
  14489. * src/HaveMessage.cc: New class.
  14490. * src/BitfieldMessage.h: New class.
  14491. * src/BitfieldMessage.cc: New class.
  14492. * src/NotInterestedMessage.h: New class.
  14493. * src/NotInterestedMessage.cc: New class.
  14494. * src/InterestedMessage.h: New class.
  14495. * src/InterestedMessage.cc: New class.
  14496. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  14497. (getSendMessageQueue): New function.
  14498. (setSendMessageQueue): New function.
  14499. * src/HandshakeMessage.cc: New class.
  14500. * src/PeerConnection.h (receiveMessage): Changed return value and
  14501. arguments.
  14502. (receiveHandshake): Changed return value and arguments.
  14503. * src/PeerConnection.cc (receiveMessage): Do not create message class
  14504. here.
  14505. (receiveHandshake): Do not create handshake class here.
  14506. * src/PeerInteractionCommand.h (peerConnection): Removed.
  14507. (piece): Removed.
  14508. (syncPiece): Removed.
  14509. (sendInterest): Removed.
  14510. (sendMessages): Removed.
  14511. (createRequestPendingMessage): Removed.
  14512. (checkPieceHash): Removed.
  14513. (erasePieceOnDisk): Removed.
  14514. (getNewPieceAndSendInterest): Removed.
  14515. (onGotNewPice): Removed.
  14516. (onGotWrongPiece): Removed.
  14517. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  14518. Removed peerConnection, piece.
  14519. (~PeerInteractionCommand): Removed peerConnection.
  14520. (executeInternal): Use sendMessageQueue instead of peerConnection.
  14521. (syncPiece): Moved to SendMessageQueue.
  14522. (decideChoking): Removed PendingMessage.
  14523. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  14524. The action after receiving peer message was moved to each message
  14525. class.
  14526. (onGotNewPice): Moved to SendMessageQueue.
  14527. (onGotWrongPiece): Moved to SendMessageQueue.
  14528. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  14529. (sendInterest): Moved to SendMessageQueue.
  14530. (createRequestPendingMessage): Removed.
  14531. (sendMessages): Moved to SendMessageQueue.
  14532. (onAbort): Use SendMessageQueue::abortPiece()
  14533. (keepAlive): Use sendMessageQueue instead of peerConnection.
  14534. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  14535. (checkPieceHash): Moved to SendMessageQueue.
  14536. (erasePieceOnDisk): Moved to SendMessageQueue.
  14537. * src/PeerMessageUtil.h
  14538. (createBitfieldMessage): Removed.
  14539. (createHaveMessage): Changed return value and arguments.
  14540. (createBitfieldMessage): Changed return value and arguments.
  14541. (createRequestCancelMessage): Removed.
  14542. (createPieceMessage): Changed return value and arguments.
  14543. (getShortIntParam): New function.
  14544. (checkIndex): Changed arguments.
  14545. (checkBegin): Changed arguments.
  14546. (checkLength): Changed arguments.
  14547. (checkPieceOffset): Removed.
  14548. (checkRange): New function.
  14549. (checkBitfield): Changed arguments.
  14550. (createPeerMessage): Removed.
  14551. (checkIntegrity): Removed.
  14552. (createHandshakeMessage): Changed arguments.
  14553. (createChokeMessage): New function.
  14554. (createUnchokeMessage): New function.
  14555. (createInterestedMessage): New function.
  14556. (createNotInterestedMessage): New function.
  14557. (createRequestMessage): New function.
  14558. (createCancelMessage): New function.
  14559. (createPortMessage): New function.
  14560. * src/PeerMessageUtil.cc
  14561. (createBitfieldMessage): Removed.
  14562. (createHaveMessage): Changed return value and arguments.
  14563. (createBitfieldMessage): Changed return value and arguments.
  14564. (createRequestCancelMessage): Removed.
  14565. (createPieceMessage): Changed return value and arguments.
  14566. (getShortIntParam): New function.
  14567. (checkIndex): Changed arguments.
  14568. (checkBegin): Changed arguments.
  14569. (checkLength): Changed arguments.
  14570. (checkPieceOffset): Removed.
  14571. (checkRange): New function.
  14572. (checkBitfield): Changed arguments.
  14573. (createPeerMessage): Removed.
  14574. (checkIntegrity): Removed.
  14575. (createHandshakeMessage): Changed arguments.
  14576. (createChokeMessage): New function.
  14577. (createUnchokeMessage): New function.
  14578. (createInterestedMessage): New function.
  14579. (createNotInterestedMessage): New function.
  14580. (createRequestMessage): New function.
  14581. (createCancelMessage): New function.
  14582. (createPortMessage): New function.
  14583. * src/PeerMessage.h
  14584. (id): Removed.
  14585. (index): Removed.
  14586. (begin): Removed.
  14587. (length): Removed.
  14588. (bitfield): Removed.
  14589. (bitfieldLength): Removed.
  14590. (block): Removed.
  14591. (blockLength): Removed.
  14592. (inProgress): New variable.
  14593. (cuid): New variable.
  14594. (peer): New variable.
  14595. (sendMessageQueue): New variable.
  14596. (logger): New variable.
  14597. (setBitfield): Removed.
  14598. (getBitfield): Removed.
  14599. (setBlock): Removed.
  14600. (getBlock): Removed.
  14601. (getBitfieldLength): Removed.
  14602. (getBlockLength): Removed.
  14603. (isInProgress): New function.
  14604. (toString): Made pure virtual.
  14605. (check): New function.
  14606. (send): New function.
  14607. (receivedAction): New function.
  14608. (getId): Made pure virtual.
  14609. (setId): Removed.
  14610. (getIndex): Removed.
  14611. (setIndex): Removed.
  14612. (getBegin): Removed.
  14613. (setBegin): Removed.
  14614. (getLength): Removed.
  14615. (setLength): Removed.
  14616. (getCuid): New function.
  14617. (setCuid): New function.
  14618. (getPeer): New function.
  14619. (setPeer): New function.
  14620. (getSendMessageQueue): New function.
  14621. (setSendMessageQueue): New function.
  14622. (ID): Removed.
  14623. * src/PeerMessage.cc
  14624. (setBitfield): Removed.
  14625. (setBlock): Removed.
  14626. (toString): Removed.
  14627. * src/TorrentMan.h
  14628. (getPieceLength): New function.
  14629. (getPieceLength): New function.
  14630. * src/SendMessageQueue.h
  14631. (REQUEST_TIME_OUT): New definition.
  14632. (RequestSlots): New definition.
  14633. (MessageQueue): New definition.
  14634. (requestSlotMan): Removed.
  14635. (pendingMessages): Removed.
  14636. (requestSlots): New variable.
  14637. (messageQueue): New variable.
  14638. (torrentMan): New variable.
  14639. (peerConnection): New variable.
  14640. (peer): New variable.
  14641. (piece): New variable.
  14642. (getNewPieceAndSendInterest): New function.
  14643. (createPeerMessage): New function.
  14644. (createHandshakeMessage): New function.
  14645. (send): Made private.
  14646. (setPeerMessageCommonProperty): New function.
  14647. (deleteAllRequestSlot): New function.
  14648. (deleteRequestMessageInQueue): New function.
  14649. (cancelAllRequest): Made private.
  14650. (cancelAllRequest): Made private.
  14651. (countRequestSlot): Made private.
  14652. (addPendingMessage): Removed.
  14653. (deletePendingPieceMessage): Removed.
  14654. (deletePendingRequestMessage): Removed.
  14655. (addMessage): New function.
  14656. (deletePieceMessageInQueue): New function.
  14657. (deleteTimeoutRequestSlot): Changed argument.
  14658. (deleteCompletedRequestSlot): Changed argument.
  14659. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  14660. (getCorrespondingRequestSlot): New function.
  14661. (countPendingMessage): Removed.
  14662. (countMessageInQueue): New function.
  14663. (getTorrentMan): New function.
  14664. (getPeerConnection): New function.
  14665. (hasDownloadPiece): New function.
  14666. (getDownloadPiece): New function.
  14667. (setDownloadPiece): New function.
  14668. (syncPiece): New function.
  14669. (sendMessages): New function.
  14670. (sendNow): New function.
  14671. (trySendNow): New function.
  14672. (abortPiece): New function.
  14673. (sendHandshake): New function.
  14674. (receiveMessage): New function.
  14675. (receiveHandshake): New function.
  14676. (createRequestMessage): New function.
  14677. (createCancelMessage): New function.
  14678. (createPieceMessage): New function.
  14679. (createHaveMessage): New function.
  14680. (createChokeMessage): New function.
  14681. (createUnchokeMessage): New function.
  14682. (createInterestedMessage): New function.
  14683. (createNotInterestedMessage): New function.
  14684. (createBitfieldMessage): New function.
  14685. (createKeepAliveMessage): New function.
  14686. * src/SendMessageQueue.cc
  14687. (SendMessageQueue): Removed requestSlotMan.
  14688. Instantiated peerConnection here.
  14689. (~SendMessageQueue): Removed requestSlotMan.
  14690. Added deletion of peerConnection and the contents of messageQueue.
  14691. (send): Updated according to the change of messageQueue.
  14692. (addPendingMessage): Renamed to addMessage.
  14693. (addMessage): New function.
  14694. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  14695. (deletePieceMessageInQueue): New function.
  14696. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  14697. (deleteRequestMessageInQueue): New function.
  14698. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  14699. here.
  14700. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  14701. (...) was moved here.
  14702. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  14703. moved here.
  14704. (deleteCompletedRequestSlot):
  14705. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  14706. (getCorrespondingRequestSlot):
  14707. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  14708. And renamed to getCorrespondingRequestSlot, correcting a typo.
  14709. (countPendingMessage): Renamed to countMessageInQueue.
  14710. (countMessageInQueue): New function.
  14711. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  14712. (receiveHandshake): New function.
  14713. (createHandshakeMessage): New function.
  14714. (receiveMessage): New function.
  14715. (createPeerMessage): New function.
  14716. (syncPiece): New function.
  14717. (getNewPieceAndSendInterest): New function.
  14718. (sendMessages): New function.
  14719. (sendNow): New function.
  14720. (trySendNow): New function.
  14721. (sendHandshake): New function.
  14722. (abortPiece): New function.
  14723. (getDownloadPiece): New function.
  14724. (getPeerMessageCommonProperty): New function.
  14725. (createRequestMessage): New function.
  14726. (createCancelMessage): New function.
  14727. (createPieceMessage): New function.
  14728. (createHaveMessage): New function.
  14729. (createChokeMessage): New function.
  14730. (createUnchokeMessage): New function.
  14731. (createInterestedMessage): New function.
  14732. (createNotInterestedMessage): New function.
  14733. (createBitfieldMessage): New function.
  14734. (createKeepAliveMessage): New function.
  14735. To add simple Content-Disposition support:
  14736. * src/HttpResponseCommand.h (determinFilename): New function.
  14737. * src/HttpResponseCommand.cc (executeInternal):
  14738. Use determinFilename(headers) instead of req->getFile() when comparing
  14739. filename.
  14740. (determinFilename): New function.
  14741. (handleDefaultEncoding): Use determinFilename(headers) instead of
  14742. req->getFile().
  14743. (handleOtherEncoding): Use determinFilename(headers) instead of
  14744. req->getFile().
  14745. * src/Util.h (getContentDispositionFilename): New function.
  14746. * src/Util.cc (getContentDispositionFilename): New function.
  14747. * src/LogFactory.h (release): New function.
  14748. * src/LogFactory.cc (release): New function.
  14749. To fix a bug that causes out-of-bound exception when HTTP status
  14750. line is wrong:
  14751. * src/HttpConnection.cc (receiveResponse): Added a check for header
  14752. size.
  14753. * src/common.h (Deleter): New class.
  14754. * src/SegmentMan.cc
  14755. (~SegmentMan): Added deletion of splitter and diskWriter.
  14756. * src/DownloadEngine.h
  14757. (Commands): Use deque.
  14758. (clearQueue): New function.
  14759. * src/DownloadEngine.cc
  14760. (~DownloadEngine): Added deletion of segmentMan.
  14761. (cleanQueue): New function.
  14762. * src/TorrentDownloadEngine.h
  14763. (TorrentDownloadEngine): The implementation was moved to
  14764. TorrentDownloadEngine.cc.
  14765. (~TorrentDownloadEngine): The implementation was moved to
  14766. TorrentDownloadEngine.cc.
  14767. * src/TorrentDownloadEngine.cc
  14768. (~TorrentDownloadEngine): Added deletion of torrentMan.
  14769. * src/main.cc
  14770. (clearRequest): Removed.
  14771. (handler): Added deletion of e.
  14772. (torrentHandler): Added deletion of te.
  14773. (main): Do not share splitter.
  14774. Use Deleter instead of clearRequest.
  14775. Deletion of classes were updated.
  14776. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14777. * src/main.cc (main): Fixed typo.
  14778. * src/message.h: Fixed typo.
  14779. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  14780. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14781. To add --select-file command-line option:
  14782. * src/Util.cc
  14783. (unfoldRange): New function.
  14784. (getNum): New function.
  14785. (unfoldSubRange): New function
  14786. * src/main.cc
  14787. (showUsage): Added help message.
  14788. (main): Added --select-file command-line option. Updated the layout of
  14789. file listing.
  14790. * src/common.h
  14791. (Integers): New definition.
  14792. * src/SocketCore.cc
  14793. (writeData): Removed timeout argument.
  14794. (readData): Removed timeout argument.
  14795. (peekData): Removed timeout argument.
  14796. * src/Socket.cc
  14797. (writeData): Removed timeout argument.
  14798. (readData): Removed timeout argument.
  14799. (peekData): Removed timeout argument.
  14800. * Release 0.4.1
  14801. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14802. To deploy upload rate based choking algorithm:
  14803. * src/PeerInteractionCommand.cc
  14804. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  14805. peer currently used.
  14806. (decideChoking): Deleted the choke/unchoke decision algorithm when
  14807. download completes. Simplified.
  14808. (receiveMessage): Updated.
  14809. * src/TorrentMan.h
  14810. (activePeers): New variable.
  14811. (addActivePeer): New function.
  14812. (getActivePeers): New function.
  14813. (deleteActivePeer): New function.
  14814. * src/TorrentMan.cc
  14815. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  14816. * src/PeerAbstractCommand.cc
  14817. (onAbort): Use peer->resetStatus().
  14818. * src/main.cc
  14819. (PeerChokeCommand.h): Included.
  14820. (main): Added the instance of ChokingCommand to the command queue.
  14821. * src/Peer.h
  14822. (amChoking): Renamed from amChocking
  14823. (chokingRequired): New variable.
  14824. (optUnchoking): New variable.
  14825. (deltaUpload): New variable.
  14826. (deltaDownload): New variable.
  14827. (addDeltaUpload): New function.
  14828. (resetDeltaUpload): New function.
  14829. (addDeltaDownload): New function.
  14830. (resetDeltaDownload): New function.
  14831. (addPeerUpload): Added a call to addDeltaUpload.
  14832. (addPeerDownload): Added a call to addDeltaDownload.
  14833. * src/Peer.cc
  14834. (shouldBeChoking): Renamed from shouldChoke.
  14835. (resetStatus): New function.
  14836. * src/PeerChokeCommand.h: New class.
  14837. * src/PeerChokeCommand.cc: New class.
  14838. To add lazy upload speed limiter:
  14839. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  14840. statistics calculation to TorrentDownloadEngine.
  14841. * src/TorrentConsoleDownloadEngine.cc
  14842. (sendStatistics): Renamed from printStatistics.
  14843. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  14844. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  14845. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  14846. * src/TorrentDownloadEngine.h: Added the variables for statistics
  14847. calculation.
  14848. (sendStatistics): New function as pure virtual function.
  14849. (getUploadSpeed): New function.
  14850. * src/TorrentDownloadEngine.cc
  14851. (initStatistics): New function.
  14852. (calculateSpeed): New function.
  14853. (calculateStatistics): New function.
  14854. * src/SendMessageQueue.h
  14855. (uploadLength): New variable.
  14856. (send): Added an argument.
  14857. (setUploadLimit): New function.
  14858. (getUploadLimit): New function.
  14859. * src/SendMessageQueue.cc
  14860. (send): Added upload speed limiter.
  14861. * src/prefs.h
  14862. (PREF_UPLOAD_LIMIT): New definition.
  14863. * src/PeerInteractionCommand.cc
  14864. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  14865. * src/main.cc
  14866. (main): Added --upload-limit option
  14867. For bug fixes:
  14868. * src/main.cc
  14869. (showUsage): Corrected --listen-port help
  14870. Other changes:
  14871. * src/TorrentMan.cc
  14872. (getPeer): Return nullPeer if connection is grather than
  14873. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  14874. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14875. To add some useful information to the exception message:
  14876. * src/SocketCore.cc : Updated messages.
  14877. * src/SegmentMan.cc :
  14878. * src/TorrentMan.cc : Updated messages.
  14879. * src/MultiDiskWriter.cc : Updated messages.
  14880. * src/Util.cc : Updated messages.
  14881. * src/AbstractDiskWriter.cc : Updated messages.
  14882. * src/PreAllocationDiskWriter.cc : Updated messages.
  14883. * src/message.cc : Added new messages. Updated some messages.
  14884. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  14885. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  14886. Updated threshold from 30 to 15.
  14887. * src/AbstractDiskWriter.h (filename): New variable.
  14888. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  14889. (createFile): Assigned filename.
  14890. * src/main.cc: Updated the help message for http-auth-scheme.
  14891. * Release 0.4.0
  14892. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14893. To add TrackerUpdateCommand with which replaces
  14894. CompactTrackerResponseProcessor:
  14895. * src/TrackerWatcherCommand.h (req): Removed.
  14896. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  14897. if the number of peer connections are less than 30.
  14898. * src/ByteArrayDiskWriter.h (readData): Implemented.
  14899. * src/SegmentMan.h (diskWriter): New function.
  14900. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  14901. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  14902. (main): Use TrackerUpdateCommand.
  14903. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  14904. (req): New variable.
  14905. (setTrackerResponseProcessor): Removed.
  14906. (getTrackerResponseProcessor): Removed.
  14907. (processTrackerResponse): Removed.
  14908. * src/DownloadEngine.h (diskWriter): Removed.
  14909. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  14910. to torrentMan->processTrackerResponse().
  14911. To add Util::expandBuffer:
  14912. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  14913. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  14914. * src/Util.h (expandBuffer): New function.
  14915. To fix the bug that causes segmentation fault when "-l ." is specified
  14916. in command-line option:
  14917. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  14918. (openFile): New function.
  14919. (closeFile): New function.
  14920. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  14921. (~SimpleLogger): Call closeFile();
  14922. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  14923. * src/main.cc (main): Added a check to see logger is configured
  14924. properly.
  14925. To enable HTTP authentication without specifying "--http-auth-scheme"
  14926. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  14927. * src/HttpConnection.cc (createRequest): Send Authorization header
  14928. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  14929. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  14930. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  14931. * src/Peer.cc (shouldChoke): Updated algorithm.
  14932. * src/message.h (EX_AUTH_FAILED): New definition.
  14933. (EX_FILE_OPEN): New definition.
  14934. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  14935. if status == 401.
  14936. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  14937. if req->isTorrent == true.
  14938. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  14939. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  14940. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  14941. (createFile): Updated message.
  14942. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14943. To add a readout of estimated remaining time to normal HTTP/FTP
  14944. downloads:
  14945. * src/ConsoleDownloadEngine.h (startup): New variable.
  14946. (startupLength): New variable.
  14947. (isStartupLengthSet): New variable.
  14948. (avgSpeed): New variable.
  14949. (eta): New variable.
  14950. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  14951. estimated remaining time.
  14952. (initStatistics): Initialized newly added variables.
  14953. (calculateStatistics): Calculate average speed and estimated remaining
  14954. time.
  14955. To decouple TorrentDownloadEngine from HttpResponseCommand:
  14956. * src/TrackerDownloadCommand.h: Removed.
  14957. * src/TrackerDownloadCommand.cc: Removed.
  14958. * src/TrackerInitCommand.h: Removed.
  14959. * src/TrackerInitCommand.cc: Removed.
  14960. * src/TrackerUpdateCommand.h: Removed.
  14961. * src/TrackerUpdateCommand.cc: Removed.
  14962. * src/TrackerWatcherCommand.cc (execute): The construction of request
  14963. url written in TrackerInitCommand was moved here. Do not create
  14964. tracker request command if torrentMan->trackers != 0.
  14965. * src/CompactTrackerResponseProcessor.h: New class.
  14966. * src/CompactTrackerResponseProcessor.cc: New class.
  14967. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  14968. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  14969. Decoupled TorrentDownloadEngine from this.
  14970. * src/SegmentMan.h (init): New function.
  14971. * src/SegmentMan.cc (init): New function.
  14972. * src/TorrentMan.h (responseProcessor): New variable.
  14973. (trackers): New variable.
  14974. (setTrackerResponseProcessor): New function.
  14975. (getTrackerResponseProcessor): New function.
  14976. (processTrackerResponse): New function.
  14977. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  14978. (processTrackerResponse): New function.
  14979. * src/main.cc (main): Use ByteArrayDiskWriter and
  14980. CompactTrackerResponseProcessor.
  14981. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  14982. processTrackerResponse().
  14983. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  14984. readout.
  14985. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  14986. which indicates download has completed.
  14987. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  14988. (closeFile): fd >= 0, not fd > 0
  14989. * src/main.cc (main): Added short cut for show-files.
  14990. Added short cut for torrent-file.
  14991. Added new command-line option listen-port.
  14992. Updated i18n messages.
  14993. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14994. To add LogFactory which creates singleton logger:
  14995. * src/LogFactory.h: New class.
  14996. * src/LogFactory.cc: New class.
  14997. * src/Command.h (logger): New variable.
  14998. (Constructor): Use LogFactory.
  14999. * src/AbstractCommand.cc: Use Command::logger
  15000. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  15001. Use LogFactory.
  15002. * src/SegmentSplitter.h : Made logger protected.
  15003. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  15004. * src/SegmentMan.cc (Constructor): Use LogFactory.
  15005. * src/DownloadEngine.h : Made logger protected.
  15006. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  15007. * src/PeerInteractionCommand.cc : Use Command::logger.
  15008. * src/HttpResponseCommand.cc : Use Command::logger.
  15009. * src/SegmentMan.h : Made logger private.
  15010. * src/TorrentMan.h : Made logger private.
  15011. * src/TorrentMan.cc : Use LogFactory.
  15012. * src/FtpNegotiateCommand.cc : Use Command::logger.
  15013. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  15014. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  15015. Use LogFactory.
  15016. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  15017. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  15018. Use LogFactory.
  15019. * src/DownloadCommand.cc : Use Command::logger.
  15020. * src/PeerAbstractCommand.cc : Use Command::logger.
  15021. * src/PeerListenCommand.cc : Use Command::logger.
  15022. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  15023. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  15024. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  15025. * src/TrackerWatcherCommand.cc : Use Command::logger.
  15026. * src/TrackerUpdateCommand.cc : Use Command::logger.
  15027. * src/TrackerDownloadCommand.cc : Use Command::logger.
  15028. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  15029. Use LogFactory.
  15030. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  15031. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  15032. Use LogFactory.
  15033. * src/main.cc (main): Use LogFactory.
  15034. * src/DiskAdaptor.h (logger): New variable.
  15035. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  15036. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  15037. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15038. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  15039. parameter to a tracker request.
  15040. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  15041. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  15042. * src/main.cc (setSignalHander): New function.
  15043. (main): Added a handler for SIGTERM.
  15044. (handler): Updated message.
  15045. (torrentHandler): Updated message.
  15046. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15047. * src/TorrentConsoleDownloadEngine.cc
  15048. (onPartialDownloadingCompletes): Renamed as
  15049. onSelectiveDownloadingCompletes.
  15050. (onSelectiveDownloadingCompletes): Updated message.
  15051. To add DiskAdaptor which abstract DiskWriter family:
  15052. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  15053. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  15054. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  15055. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  15056. MultiDiskAdaptor.h.
  15057. (readFileEntry): Changed its arguments.
  15058. (setup): setupDiskWriter is merged into this function.
  15059. (setupDiskWriter): Removed.
  15060. (setFileFilter): New function.
  15061. (readFileEntryFromMetaInfoFile): Updated according to the changes
  15062. made in readFileEntry.
  15063. (getFilePath): Removed.
  15064. (getTempFilePath): Removed.
  15065. (getSegmentFilePath): Updated due to the removal of getFilePath.
  15066. (fixFilename): Removed.
  15067. (copySingleFile): Removed.
  15068. (splitMultiFile): Removed.
  15069. (deleteTempFile): Removed.
  15070. (setFileEntriesToDownload): Removed.
  15071. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  15072. (isSelectiveDownloadingMode): New function.
  15073. (setAllMultiFileRequestedState): Removed.
  15074. (finishPartialDownloadingMode): Renamed as
  15075. finishSelectiveDownloadingMode.
  15076. (finishSelectiveDownloadingMode): New function.
  15077. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  15078. (getSelectedTotalLength): New function.
  15079. (onDownloadComplete): Use diskAdaptor.
  15080. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  15081. (Range): Removed.
  15082. (setMultiFileEntries): Renamed as setFileEntries.
  15083. (setFileEntries): New function.
  15084. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  15085. (pieceLength): New variable.
  15086. * src/main.cc (printDownloadCompeleteMessage): New function.
  15087. (torrentHandler): Use diskAdaptor instead of diskWriter.
  15088. (main): Renamed torrent-show-files to show-files.
  15089. Rewritten file contents listing.
  15090. * src/TorrentMan.h (FileEntry): Removed.
  15091. (multiFileTopDir): Removed.
  15092. (multiFileEntries): Removed.
  15093. (diskWriter): Removed.
  15094. (diskAdaptor): New variable.
  15095. * src/DefaultDiskWriter.h (totalLength): New variable.
  15096. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  15097. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  15098. diskWriter.
  15099. * src/TorrentConsoleDownloadEngine.h
  15100. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  15101. (partialTotalLength): Renamed as selectedTotalLength.
  15102. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  15103. openExistingFile, otherwise call initAndOpenFile.
  15104. (closeFile): fd > 0, not fd != 0.
  15105. * src/DirectDiskAdaptor.h: New class.
  15106. * src/DirectDiskAdaptor.cc: New class.
  15107. * src/MultiDiskAdaptor.h: New class.
  15108. * src/MultiDiskAdaptor.cc: New class.
  15109. * src/CopyDiskAdaptor.h: New class.
  15110. * src/CopyDiskAdaptor.cc: New class.
  15111. * src/DiskAdaptor.h: New class.
  15112. * src/DiskAdaptor.cc: New class.
  15113. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  15114. (PREF_SHOW_FILES): New definition.
  15115. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15116. To add the ability to download multi torrent into respective files
  15117. directly:
  15118. * src/DiskWriter.h (openFile): New function.
  15119. (seek): Removed.
  15120. * src/MultiDiskWriter.h: New class.
  15121. * src/MultiDiskWriter.cc: New class.
  15122. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  15123. protected.
  15124. (openFile): New function.
  15125. * src/AbstractDiskWriter.cc (openFile): New function.
  15126. * src/prefs.h (V_FALSE): New definition.
  15127. (PREF_DIRECT_FILE_MAPPING): New definition.
  15128. * src/TorrentMan.h (setupDiskWriter): New function.
  15129. (setAllMultiFileRequestedState): New function.
  15130. (onDownloadComplete): New function.
  15131. * src/TorrentMan.cc : Included MultiDiskWriter.h
  15132. (setupDiskWriter): New function.
  15133. (getFilePath): Updated.
  15134. (getTempFilePath): Updated.
  15135. (getSegmentFilePath): Updated.
  15136. (fixFilename): Updated.
  15137. (deleteTempFile): Updated.
  15138. (setAllMultiFileRequestedState): New function.
  15139. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  15140. (finishPartialDownloadingMode): Reset requested flags.
  15141. (onDownloadComplete): New function.
  15142. * src/main.cc: Added --direct-file-mapping option.
  15143. Use TorrentMan::setupDiskWriter().
  15144. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  15145. onDownloadComplete().
  15146. To fix ETA bug:
  15147. * src/Util.h (difftvsec): New function.
  15148. * src/Util.cc (difftvsec): New function.
  15149. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  15150. type of "elapsed" instead of long long int.
  15151. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  15152. The updates of statistics takes place every 1 seconds.
  15153. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  15154. (calculateSpeed): Changed its argument signature.
  15155. * src/PeerMessage.cc (toString): Fixed message.
  15156. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15157. To print ETA:
  15158. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  15159. completion handling when dealing with
  15160. TorrentMan::isPartialDownloadingMode() == true.
  15161. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  15162. New function.
  15163. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  15164. (sessionDownloadLength): New variable.
  15165. (avgSpeed): New variable.
  15166. (eta): New variable.
  15167. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  15168. new variables: eta, avgSpeed, startup.
  15169. (calculateSpeed): Calculate average speed and ETA.
  15170. (printStatistics): Added ETA.
  15171. * src/Util.h (secfmt): New function.
  15172. * src/Util.cc (secfmt): New function.
  15173. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15174. To detect "keep alive" flooding:
  15175. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  15176. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  15177. variable: keepAliveCount.
  15178. (detectMessageFlooding): Added "keep alive" flooding detection.
  15179. (receiveMessage): Increase keepAliveCount when "keep alive" message
  15180. received.
  15181. To add the ability to download only specified files in multi-file
  15182. torrent:
  15183. * src/BitfieldMan.h (filterBitfield): New variable.
  15184. (filterEnabled): New variable.
  15185. (setFilterBit): New function.
  15186. (enableFilter): New function.
  15187. (disableFilter): New function.
  15188. (isFilterEnabled): New function.
  15189. (getFilteredTotalLength): New function.
  15190. (getCompletedLength): New function.
  15191. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  15192. filterBitfield, filterEnabled.
  15193. (CopyConstructor): Added filterBitfield and filterEnabled.
  15194. (operator==): Added filterBitfield and filterEnabled.
  15195. (Destructor): Added filterBitfield.
  15196. (getMissingIndex): Use filterBitfield.
  15197. (getMissingUnusedIndex): Use filterBitfield.
  15198. (getFirstMissingUnusedIndex): Use filterBitfield.
  15199. (getFirstMissingUnusedIndex): Use filterBitfield.
  15200. (getAllMissingIndexes): Use filterBitfield.
  15201. (countMissingBlock): Use filterBitfield.
  15202. (countBlock): Use filterBitfield.
  15203. (setBitInternal): Added new argument on.
  15204. (setUseBit): Use setBitInternal.
  15205. (unsetUseBit): Use setBitInternal.
  15206. (setBit): Use setBitInternal.
  15207. (unsetBit): Use setBitInternal.
  15208. (isAllBitSet): Use filterBitfield.
  15209. (setFilterBit): New function.
  15210. (addFilter): New function.
  15211. (enableFilter): New function.
  15212. (disableFilter): New function.
  15213. (clearFilter): New function.
  15214. (isFilterEnabled): New function.
  15215. (getFilteredTotalLength): New function.
  15216. (getCompletedLength): New function.
  15217. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  15218. Initalized newly added variables.
  15219. [FileEntry](offset): New variable.
  15220. [FileEntry](extracted): New variable.
  15221. [FileEntry](requested): New variable.
  15222. (readFileEntry): New function.
  15223. (option): New variable.
  15224. (splitMultiFile): Removed const qualifier.
  15225. (fixFilename): Removed const qualifier.
  15226. (readFileEntryFromMetaInfoFile): New function.
  15227. (finishPartialDownloadingMode): New function.
  15228. (isPartialDownloadingMode): New function.
  15229. (setFileEntriesToDownload): New function.
  15230. (getCompletedLength): New function.
  15231. (getPartialTotalLength): New function.
  15232. * src/TorrentMan.cc (readFileEntry): New function.
  15233. (setup): Use readFileEntry. If no-preallocation option is specified,
  15234. use DefaultDiskWriter.
  15235. (readFileEntryFromMetaInfoFile): New function.
  15236. (fixFilename): Removed const qualifier.
  15237. (splitMultiFile): Removed const qualifier.
  15238. (setFileEntriesToDownload): New function.
  15239. (isPartialDownloadingMode): New function.
  15240. (finishPartialDownloadingMode): New function.
  15241. (getCompletedLength): New function.
  15242. (getPartialTotalLength): New function.
  15243. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  15244. New variable.
  15245. (partialTotalLength): New variable.
  15246. (downloadLength): New variable.
  15247. (totalLength): New variable.
  15248. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  15249. Added log.
  15250. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  15251. partialTotalLength, downloadLength, totalLength.
  15252. (calculate): Calculate downloadLength and totalLength.
  15253. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  15254. * src/main.cc (addCommand): Changed argument signature.
  15255. (main): Added new variable: args. Added new option "torrent-show-files"
  15256. "no-preallocation". Usage is not updated yet.
  15257. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15258. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  15259. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15260. Attempt to add the ability to listing file entries in a .torrent file.
  15261. This feature is not yet complete.
  15262. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  15263. * src/TorrentMan.cc (getMultiFileEntries): New function.
  15264. (getName): New function.
  15265. * src/TorrentMan.h (getMultiFileEntries): New function.
  15266. (getName): New function.
  15267. * src/main.cc (main): Use above 2 funtion.
  15268. * Release 0.3.2
  15269. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15270. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  15271. (detectMessageFlooding): Updated threshold value.
  15272. (checkLongTimePeerChoking): Updated timeout value.
  15273. (getNewPieceAndSendInterest): Added debug log.
  15274. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  15275. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  15276. (getPeer): Updated.
  15277. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  15278. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  15279. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  15280. is localhost.
  15281. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  15282. * src/PendingMessage.cc (processMessage): Not to send piece message
  15283. if peer is not interested in the pieces localhost has.
  15284. * src/Peer.cc (shouldChoke): Updated.
  15285. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  15286. * src/Util.cc (isPowerOf): New function.
  15287. * src/Util.h (isPowerOf): New function.
  15288. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  15289. whether or not it is power of 2.
  15290. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15291. Added new class SendMessageQueue that includes PendingMessages and
  15292. RequestSlotMan.
  15293. * src/SendMessageQueue.h: New class.
  15294. * src/SendMessageQueue.cc: New class.
  15295. * src/PendingMessage.h: Added new member variable blockIndex and its
  15296. accessors.
  15297. (createRequestMessage): Updated.
  15298. * src/PendingMessage.cc (createRequestMessage): Updated.
  15299. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  15300. SendMessageQueue.
  15301. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  15302. (receiveMessage): Updated with SendMessageQueue.
  15303. (deletePendingPieceMessage): Removed.
  15304. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  15305. (sendInterest): Updated with SendMessageQueue.
  15306. (createRequestPendingMessage): Updated with SendMessageQueue.
  15307. (sendMessages): Updated with SendMessageQueue.
  15308. (onAbort): Updated with SendMessageQueue.
  15309. (keepAlive): Updated with SendMessageQueue.
  15310. (beforeSocketCheck): Updated SendMessageQueue.
  15311. * src/PeerInteractionCommand (sendMessages): Shuffle
  15312. missingBLockIndexes before using it.
  15313. Added its own timeout for peer connection.
  15314. * src/PeerAbstractCommand.h: Added member variable timeout and its
  15315. setter.
  15316. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  15317. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15318. Added setTimeout() call.
  15319. (executeInternal): Added setTimeout() call.
  15320. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  15321. Added timeout.
  15322. (isTimeoutDetected): Updated.
  15323. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  15324. option.
  15325. Added *simple* message flooding checker.
  15326. * src/PeerInteractionCommand.cc (executeInternal):
  15327. Added detectMessageFlooding() call.
  15328. (detectMessageFlooding): New function.
  15329. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  15330. (beforeSocketCheck): Added detectMessageFlooding() call.
  15331. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  15332. chokeUnchokeCount, haveCount, detectMessageFlooding().
  15333. Removed deletePendingPieceMessage(), getRequestSlot(),
  15334. deleteRequestSlot(), deleteAllRequestSlot().
  15335. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  15336. Added checkLongTimePeerChoking() call.
  15337. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  15338. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  15339. if duplicate == false.
  15340. The parameter "uploaded" and "downloaded" in the tracker request are
  15341. the size since the client sent the "started" event to the tracker.
  15342. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  15343. uploaded size to preDownloadedSize, preUploadedSize respectively.
  15344. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  15345. getSessionDownloadedSize(), getSessionUploadedSize().
  15346. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  15347. getSessionUploadedSize() instead of getDownloadedSize(),
  15348. getUploadedSize().
  15349. * src/PendingMessage.cc (processMessage): Do not send request message
  15350. if the peer is choking the client.
  15351. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  15352. less than interval.
  15353. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15354. * configure.in: Added gnutls support. Added several CPP macros.
  15355. * m4/openssl.m4: Added.
  15356. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  15357. readData(), peekData(). Added gnutls support.
  15358. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  15359. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  15360. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  15361. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  15362. Instead, added a check for whether setup method has executed
  15363. successfully.
  15364. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  15365. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  15366. * src/Makefile.am: Updated.
  15367. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  15368. using whether OpenSSL or gcrypt, depending on the result of configure
  15369. script.
  15370. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  15371. messageDigest.h.
  15372. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  15373. * src/PeerListenCommand.cc: Added log about port binded successfully.
  15374. Fixed memory leak.
  15375. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  15376. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  15377. Removed instantiation of TrackerInitCommand. Instead,
  15378. TrackerWatcherCommand is instantiated and pushed to the command queue.
  15379. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  15380. ENABLE_SSL.
  15381. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  15382. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  15383. If a piece is already acquired by another command, delete the request
  15384. slots for the piece.
  15385. * src/TrackerUpdateCommand.cc (execute):
  15386. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  15387. Added a check whether peer list is null.
  15388. Fixed the bug that causes sending completed event to the tracker
  15389. several times.
  15390. * src/TrackerInitCommand.cc (execute):
  15391. Fixed the bug that causes sending completed event to the tracker
  15392. several times.
  15393. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  15394. by using messageDigest.h.
  15395. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15396. * PeerConnection.cc: Replaced log message "keep-alive" with
  15397. "keep alive".
  15398. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  15399. localhost long time.
  15400. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  15401. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  15402. at most 100 failure entry from the list. If with duplicate = false,
  15403. MAX_PEER_LIST is not checked.
  15404. * PeerListenCommand.cc: Fixed the argument order of log message.
  15405. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15406. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  15407. Added warn().
  15408. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  15409. Implemented warn().
  15410. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  15411. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15412. * Request.h: Added AFTER_COMPLETED event.
  15413. * TorrentDownloadEngine.cc: Prints "Download complete" message
  15414. instead of downloaded size and progress(%) after download completes.
  15415. * PeerInteractionCommand.cc: After download completes, sends unchoke
  15416. message to the peer if it is interested in what localhost has
  15417. downloaded.
  15418. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  15419. destination instead of just renaming it.
  15420. * TorrentMan.cc: Added deleteTempFile().
  15421. * PeerAbstractCommand.cc: do not stop execution after download
  15422. completes. This makes localhost a seeder.
  15423. * Util.{h,cc}: Added fileCopy().
  15424. * PeerListenCommand.cc: do not stop execution after download completes.
  15425. This makes localhost a seeder.
  15426. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  15427. Added TorrentMan::deleteTempFile() to torrentHandler.
  15428. Initialized the variable dir as ".".
  15429. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  15430. Deleted renameSingleFile().
  15431. Added copySingleFile(), deleteTempFile().
  15432. * DownloadEngine.h: Added virtual function afterEachIteration().
  15433. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  15434. in onEndOfRun() to afterEachIteration().
  15435. In onEndOfRun(), changed if condition to check whether filenameFixed is
  15436. true.
  15437. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  15438. In rangedFileCopy(), added try-catch block to properly close file
  15439. descriptors.
  15440. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  15441. Added afterEachIteration(), isFilenameFixed().
  15442. * Peer.cc: Changed choking strategy.
  15443. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  15444. * TrackerInitCommand.cc: Send completed event only once.
  15445. * DownloadEngine.cc: Added a call to afterEachIteration().
  15446. * TrackerUpdateCommand.cc: Do not stop execution after download
  15447. completes.
  15448. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  15449. connect the peers at most MAX_PEER_UPDATE when a peer list is
  15450. received from a tracker.
  15451. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  15452. Decreased the number of failure peers to delete to 0(just comment out
  15453. the line).
  15454. * Release 0.3.1
  15455. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15456. * PeerInteractionCommand.cc: added a call to
  15457. TorrentMan::unadvertisePiece in Destructor.
  15458. * PeerInteractionCommand.cc: make have message sent immediately
  15459. if the size of pending message queue is zero.
  15460. * TorrentMan.cc: set the maximum size of peer list to 250.
  15461. * TorrentMan.h: changed the container type of Peers and UsedPieces
  15462. to deque.
  15463. * Util.cc: fixed rangedFileCopy.
  15464. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  15465. to Constructor. Also, moved digest cleanup to Destructor.
  15466. * MetaFileUtil.cc: fixed memory leak
  15467. * replaced std::vector with std::deque.
  15468. * AbstractCommand.cc: casted timeout value to long long int.
  15469. * ChunkedEncoding.cc: fixed memory leak.
  15470. * PeerInteractionCommand.cc: casted timeout value to long long int.
  15471. * SleepCommand.cc: casted timeout value to long long int.
  15472. * Data.cc: fixed memory leak.
  15473. * Data.cc: fixed toLLInt().
  15474. * BitfieldMan.cc: fixed memory leak.
  15475. * TorrentMan.cc: initialized storeDir to ".".
  15476. * TorrentMan.cc: fixed memory leak.
  15477. * TorrentMan.cc: corrected file paths of splitted files.
  15478. * PeerAbstractCommand.cc: casted timeout to long long int.
  15479. * main.cc: added delete(req) and delete(te->diskWriter).
  15480. * RequestSlot.cc: casted timeout value to long long int.
  15481. * Request.cc: fixed memory leak.
  15482. * PendingMessage.cc: make HAVE messages sent only when peer does not
  15483. have the piece.
  15484. * Peer.{h,cc}: added hasPiece(int index).
  15485. * main.cc: corrected addCommand.
  15486. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15487. * BitTorrent protocol support added.
  15488. * Release 0.3.0
  15489. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15490. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  15491. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15492. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  15493. decoding did not work properly.
  15494. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15495. * DownloadEngine.h: included sys/time.h
  15496. * DownloadEngine.cc: remove sys/time.h
  15497. * Makefile.am (SUBDIRS): Add intl.
  15498. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  15499. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15500. * main.cc: correct help message for --http-auth-scheme.
  15501. * main.cc: changed e-mail address for bug reports.
  15502. * ja.po: added japanese translation.
  15503. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15504. * SimpleLogger.cc: flush log file instead of stdout.
  15505. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15506. * main.cc: Fixed command-line option: max-tries
  15507. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  15508. does not equal to seg.sp.
  15509. * DownloadCommand.cc: If EOF is got from the server and the total size
  15510. of file is not zero, then throw DlRetryEx.
  15511. * main.cc: Set the minium value of min-segment-size to 1024.
  15512. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  15513. fails because of a regression since 0.2.0 release.
  15514. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15515. * HttpConnection.cc:
  15516. * common.h: defined the user agent name as macro
  15517. * DownloadEngine.{h, cc}:
  15518. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  15519. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  15520. * main.cc: Download complete/abort message is now generated by main.
  15521. * Makefile.am (SUBDIRS): Add m4.
  15522. (ACLOCAL_AMFLAGS): New variable.
  15523. (EXTRA_DIST): New variable.
  15524. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  15525. * gettext: added gettext functionality
  15526. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15527. * AbstractCommand.cc:
  15528. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  15529. unregister its cuid from SegmentMan.
  15530. * DownloadEngine.cc: .aria2 file was written when a downloading
  15531. failed with errors.
  15532. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  15533. Added "User-Agent" header to CONNECT proxy request.
  15534. Fixed "Proxy-Authorization" header. Now proxy authorization works
  15535. properly.
  15536. * Logger.h:
  15537. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  15538. * ChunkedEncoding.cc: Added #include directive for strings.h
  15539. * Release 0.2.1
  15540. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15541. * Util.{h,cc}: added startsWith().
  15542. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  15543. Util::endsWith().
  15544. * SocketCore.cc: struct addrinfo is now zero-initialized.
  15545. * common.h: added #include directive of limit.h.
  15546. * DownloadEngine.cc: added #include directive of sys/time.h and
  15547. algorithm.
  15548. * Exception.h: added #include directive of stdio.h.
  15549. * AbstractCommand.h: added #include directive of sys/time.h.
  15550. * DownloadCommand.h: added #include directive of sys/time.h.
  15551. * *.h: added #include directive of common.h to all base classes.
  15552. subclasses' one was removed.
  15553. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  15554. does not define these macros.
  15555. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15556. * Release 0.2.0
  15557. * main.cc:
  15558. * HttpInitiateConnectionCommand.{h,cc}:
  15559. * prefs.h:
  15560. * HttpConnection.{h,cc}: added --http-proxy-method option.
  15561. We can now use GET command in http proxy.
  15562. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15563. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  15564. that splits slowest segment of SegmentMan::commands vector.
  15565. This is the default split algorithm of aria2.
  15566. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  15567. that splits first segment of SegmentMan::commands vector.
  15568. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  15569. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  15570. * Segment.h:
  15571. * SegmentMan.cc: Added speed field to Segment.h
  15572. * main.cc: -s option now affects all URLs in command-line arguemtns.
  15573. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  15574. * message.h: Change file size related %d to %lld.
  15575. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15576. * FtpInitiateConnectionCommand.{h,cc}:
  15577. * FtpNegotiationCommand.{h,cc}:
  15578. * FtpDownloadCommand.{h,cc}:
  15579. * FtpConnection.{h,cc}: Added FTP support
  15580. * SimpleLogger.cc: Log message now includes time information.
  15581. * main.cc: The value of --http-auth-scheme option is chagned from
  15582. 'BASIC' to 'basic'
  15583. * main.cc: Added --timeout command-line option.
  15584. * main.cc: Added --min-segment-size command-line option.
  15585. * main.cc: Added --max-retries command-line option.
  15586. * prefs.h: option string constants are now defined in prefs.h
  15587. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15588. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  15589. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  15590. with version 0.1.0's one.
  15591. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15592. * configure.in: Added --enable-ssl option to configure script.
  15593. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  15594. cannot permit absoluteURI as Request-URI.
  15595. * HttpConnection.cc: Added Referer support.
  15596. * main.cc: Added referer command-line option.
  15597. * main.cc: Added rety-wait command-line option.
  15598. * Exception.h: Fixed formating bug in Exception::setMsg()
  15599. * SocketCore.{h,cc}:
  15600. * Socket.{h, cc}:
  15601. * Request.cc:
  15602. * InitiateConnectionCommandFactory.cc:
  15603. * HttpRequestCommand.cc: Added HTTPS support.
  15604. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  15605. for SocketCore.
  15606. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  15607. size is wrong
  15608. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  15609. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  15610. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  15611. * Release 0.1.0