ChangeLog 550 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402
  1. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Added web-seeding URI handling in addTorrent command.
  3. * src/XmlRpcMethodImpl.cc
  4. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Added "length" key to getFiles response.
  6. * src/XmlRpcMethodImpl.cc
  7. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8. Moved --no-netrc option from ftp option section to http/ftp option
  9. section.
  10. * doc/aria2c.1.txt
  11. * src/OptionHandlerFactory.cc
  12. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  13. Removed garbage "\" character before '
  14. * doc/aria2c.1.txt
  15. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  16. Removed garbage "\" character before http.
  17. * doc/aria2c.1.txt
  18. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  19. Documented additional options that can be specified in -i list.
  20. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  21. and --xml-rpc-passwd. Removed --enable-http-server and
  22. --http-server-listen-port.
  23. * doc/aria2c.1.txt
  24. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  25. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  26. * src/DefaultPeerStorage.cc
  27. * src/DefaultPeerStorage.h
  28. * src/PeerStorage.h
  29. * src/XmlRpcMethodImpl.cc
  30. * test/MockPeerStorage.h
  31. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  32. Put a call to Socket::isReadable() in try block.
  33. * src/HttpServerBodyCommand.cc
  34. * src/HttpServerCommand.cc
  35. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  36. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  37. exception , so it is now in try block.
  38. * src/HttpServerResponseCommand.cc
  39. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  40. Added "amChoking" and "peerChoking" key in getPeers response.
  41. * src/XmlRpcMethodImpl.cc
  42. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  43. Added test case for zero-length filter.
  44. * test/BitfieldManTest.cc
  45. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  46. getFiles command now returns file data for finished/stopped
  47. downloads.
  48. * src/XmlRpcMethodImpl.cc
  49. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  50. DownloadResult now has the list of FileEntry. The download
  51. summary displays the path of first selected file and the number of
  52. remaining files for multi-file torrent.
  53. * src/DownloadResult.h
  54. * src/RequestGroup.cc
  55. * src/RequestGroupMan.cc
  56. * test/RequestGroupTest.cc
  57. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  58. Fixed segmentation fault error when no file is selected in
  59. multi-file torrent.
  60. * src/BitfieldMan.cc
  61. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  62. Escaped <,>,& character in XML-RPC response.
  63. * src/XmlRpcMethod.cc
  64. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  65. Throw DlAbortEx instead of FatalException during parsing options
  66. because we don't want for aria2 to quit when bad option is passed
  67. via XML-RPC.
  68. * src/OptionHandlerException.cc
  69. * src/OptionHandlerException.h
  70. * src/OptionHandlerImpl.h
  71. * src/OptionParser.cc
  72. * src/OptionParser.h
  73. * src/PStringSegment.cc
  74. * src/ParameterizedStringParser.cc
  75. * src/download_helper.cc
  76. * test/ParameterizedStringParserTest.cc
  77. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  78. Selecting files are now done in
  79. DefaultBtContext::setFileFileter().
  80. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  81. functions are removed because they are no longer used. Creating
  82. filter in BitfieldMan is done in new funtion
  83. PieceStorage::setupFileFilter()
  84. * src/BtContext.cc
  85. * src/BtContext.h
  86. * src/DefaultBtContext.cc
  87. * src/DefaultBtContext.h
  88. * src/DefaultPieceStorage.cc
  89. * src/DefaultPieceStorage.h
  90. * src/DiskAdaptor.cc
  91. * src/DiskAdaptor.h
  92. * src/PieceStorage.h
  93. * src/RequestGroup.cc
  94. * src/UnknownLengthPieceStorage.h
  95. * src/XmlRpcMethodImpl.cc
  96. * test/DefaultBtContextTest.cc
  97. * test/MockBtContext.h
  98. * test/MockPieceStorage.h
  99. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  100. Fixed compile error on Mac OS X
  101. * src/HttpServer.cc
  102. * src/XmlRpcMethod.h
  103. * src/XmlRpcMethodImpl.cc
  104. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  105. Use std::binary_search instead of std::find
  106. * src/DefaultPieceStorage.cc
  107. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  108. Removed unnecessary BDE() call; leave them to implicit conversion.
  109. * src/XmlRpcMethodImpl.cc
  110. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  111. Return connections and gid in string
  112. * src/XmlRpcMethodImpl.cc
  113. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  114. Renamed addURI as addUri
  115. * src/XmlRpcMethodFactory.cc
  116. * src/XmlRpcMethodImpl.cc
  117. * src/XmlRpcMethodImpl.h
  118. * test/XmlRpcMethodTest.cc
  119. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  120. Renamed addTorrentFile as addTorrent
  121. * src/XmlRpcMethodFactory.cc
  122. * src/XmlRpcMethodImpl.cc
  123. * src/XmlRpcMethodImpl.h
  124. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  125. The information for files, URIs, peers are removed from the
  126. reponse of TellaActive, TellStatus command because they tend to be
  127. large. Instead they can be retrieved by the dedicated commands:
  128. getFiles, getUris and getPeers respectively.
  129. * src/XmlRpcMethodFactory.cc
  130. * src/XmlRpcMethodImpl.cc
  131. * src/XmlRpcMethodImpl.h
  132. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  133. Removed --max-overall-upload-limit and
  134. --max-overall-download-limit option from listRequestOptions.
  135. * src/download_helper.cc
  136. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  137. Log incoming host in HttpListenCommand.
  138. * src/HttpListenCommand.cc
  139. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  140. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  141. --xml-rpc-passwd option.
  142. * src/HttpServer.cc
  143. * src/HttpServer.h
  144. * src/HttpServerCommand.cc
  145. * src/OptionHandlerFactory.cc
  146. * src/prefs.cc
  147. * src/prefs.h
  148. * src/usage_text.h
  149. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  150. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  151. processing 0 length request.
  152. * src/HttpServerBodyCommand.cc
  153. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  154. Removed --enable-http-server and --http-server-listen-port
  155. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  156. instead. The original feature for --enable-http-server that
  157. reports download progress in HTML was officially removed. Persist
  158. XML-RPC connection if client supports keep-alive.
  159. * src/DownloadEngineFactory.cc
  160. * src/HttpServerCommand.cc
  161. * src/HttpServerResponseCommand.cc
  162. * src/Makefile.am
  163. * src/Makefile.in
  164. * src/OptionHandlerFactory.cc
  165. * src/RequestGroupMan.cc
  166. * src/main.cc
  167. * src/option_processing.cc
  168. * src/prefs.cc
  169. * src/prefs.h
  170. * src/usage_text.h
  171. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  172. Added "uris" key to the response of tellStatus command. Added
  173. "connections" key to the response of tellStatus and tellActive
  174. command.
  175. * src/XmlRpcMethodImpl.cc
  176. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  177. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  178. Added TellStatusXmlRpcMethod. Remove command can now remove
  179. waiting RequestGroup.
  180. * src/RequestGroupMan.cc
  181. * src/RequestGroupMan.h
  182. * src/XmlRpcMethodFactory.cc
  183. * src/XmlRpcMethodImpl.cc
  184. * src/XmlRpcMethodImpl.h
  185. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  186. Initialized _peerId
  187. * src/Peer.cc
  188. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  189. Return fault structure for error. FailXmlRpcMethod is renamed as
  190. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  191. in non-torrent download. Return single param value.
  192. * src/XmlRpcMethod.cc
  193. * src/XmlRpcMethodFactory.cc
  194. * src/XmlRpcMethodImpl.cc
  195. * src/XmlRpcMethodImpl.h
  196. * test/XmlRpcMethodTest.cc
  197. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  198. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  199. command.
  200. * src/RequestGroup.cc
  201. * src/RequestGroup.h
  202. * src/RequestGroupMan.cc
  203. * src/XmlRpcMethodImpl.cc
  204. * test/RequestGroupTest.cc
  205. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  206. Added more options that can be specified in -i list and xml-rpc
  207. add* command.
  208. * src/download_helper.h
  209. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  210. The available options in -i list should be listed in
  211. listRequestOptions().
  212. * src/download_helper.cc
  213. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  214. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  215. command.
  216. * src/XmlRpcMethodImpl.cc
  217. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  218. Now RequestGroup has its own copy of Option object. This will help
  219. to give custom option for each RequestGroup.
  220. addTorrentFile command now takes options.
  221. * src/AbstractCommand.cc
  222. * src/AbstractCommand.h
  223. * src/AbstractProxyRequestCommand.cc
  224. * src/ActivePeerConnectionCommand.cc
  225. * src/ActivePeerConnectionCommand.h
  226. * src/AdaptiveURISelector.cc
  227. * src/BtCheckIntegrityEntry.cc
  228. * src/BtDependency.cc
  229. * src/BtDependency.h
  230. * src/BtFileAllocationEntry.cc
  231. * src/BtPostDownloadHandler.cc
  232. * src/CheckIntegrityEntry.cc
  233. * src/DownloadCommand.cc
  234. * src/FtpDownloadCommand.cc
  235. * src/FtpFinishDownloadCommand.cc
  236. * src/FtpInitiateConnectionCommand.cc
  237. * src/FtpNegotiationCommand.cc
  238. * src/HttpInitiateConnectionCommand.cc
  239. * src/HttpRequestCommand.cc
  240. * src/HttpResponseCommand.cc
  241. * src/HttpSkipResponseCommand.cc
  242. * src/InitiateConnectionCommand.cc
  243. * src/InitiateConnectionCommandFactory.cc
  244. * src/InitiatorMSEHandshakeCommand.cc
  245. * src/InitiatorMSEHandshakeCommand.h
  246. * src/Metalink2RequestGroup.cc
  247. * src/Metalink2RequestGroup.h
  248. * src/MetalinkPostDownloadHandler.cc
  249. * src/MultiUrlRequestInfo.cc
  250. * src/MultiUrlRequestInfo.h
  251. * src/PeerAbstractCommand.cc
  252. * src/PeerInteractionCommand.cc
  253. * src/PeerInteractionCommand.h
  254. * src/PeerReceiveHandshakeCommand.cc
  255. * src/PeerReceiveHandshakeCommand.h
  256. * src/RequestGroup.cc
  257. * src/RequestGroup.h
  258. * src/TrackerWatcherCommand.cc
  259. * src/TrackerWatcherCommand.h
  260. * src/XmlRpcMethod.cc
  261. * src/XmlRpcMethod.h
  262. * src/XmlRpcMethodImpl.cc
  263. * src/download_helper.cc
  264. * src/download_helper.h
  265. * src/main.cc
  266. * test/BtDependencyTest.cc
  267. * test/BtPostDownloadHandlerTest.cc
  268. * test/DefaultBtMessageDispatcherTest.cc
  269. * test/DownloadHandlerFactoryTest.cc
  270. * test/DownloadHelperTest.cc
  271. * test/Metalink2RequestGroupTest.cc
  272. * test/MetalinkPostDownloadHandlerTest.cc
  273. * test/RequestGroupManTest.cc
  274. * test/RequestGroupTest.cc
  275. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  276. Added tellActiveStatus xml-rpc command which reports download
  277. status of active downloads.
  278. * src/XmlRpcMethodFactory.cc
  279. * src/XmlRpcMethodImpl.cc
  280. * src/XmlRpcMethodImpl.h
  281. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  282. Added addTorrentFile xml-rpc command which receives uploaded
  283. torrent file and add download for it.
  284. * src/RequestGroupMan.cc
  285. * src/XmlRpcMethodFactory.cc
  286. * src/XmlRpcMethodImpl.cc
  287. * src/XmlRpcMethodImpl.h
  288. * src/download_helper.cc
  289. * src/download_helper.h
  290. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  291. Added remove xml-rpc command which removes specified download.
  292. There is a known issue: the removed unfinished downloads are
  293. reported ERR when aria2 exits. They should be reported as INPR.
  294. * src/RequestGroupMan.cc
  295. * src/RequestGroupMan.h
  296. * src/XmlRpcMethodFactory.cc
  297. * src/XmlRpcMethodImpl.cc
  298. * src/XmlRpcMethodImpl.h
  299. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  300. If --enable-http-server is enabled, don't stop aria2 when all
  301. download finished and don't quit when no files to download at
  302. start up.
  303. * src/RequestGroupMan.cc
  304. * src/main.cc
  305. * src/option_processing.cc
  306. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  307. Added missing AM_CONDITIONAL
  308. * configure.ac
  309. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  310. Added xml-rpc functionality. Currently only addURI commad is
  311. supported. To enable xml-rpc, run aria2 with
  312. --enable-http-server. This option name is temporal and will be
  313. changed. The feature that reports download progress in html format
  314. is temporarily disabled.
  315. * src/HttpServer.cc
  316. * src/HttpServer.h
  317. * src/HttpServerBodyCommand.cc
  318. * src/HttpServerBodyCommand.h
  319. * src/HttpServerCommand.cc
  320. * src/HttpServerResponseCommand.cc
  321. * src/Makefile.am
  322. * src/OptionParser.cc
  323. * src/OptionParser.h
  324. * src/RequestGroupMan.cc
  325. * src/RequestGroupMan.h
  326. * src/XmlRpcMethod.cc
  327. * src/XmlRpcMethod.h
  328. * src/XmlRpcMethodFactory.cc
  329. * src/XmlRpcMethodFactory.h
  330. * src/XmlRpcMethodImpl.cc
  331. * src/XmlRpcMethodImpl.h
  332. * src/download_helper.cc
  333. * src/download_helper.h
  334. * test/Makefile.am
  335. * test/XmlRpcMethodTest.cc
  336. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  337. Added xml-rpc request parser. The supported value types are:
  338. i4/int, string, double, struct, array, base64. Currently only
  339. libxml2 version is provided.
  340. * src/Xml2XmlRpcRequestProcessor.cc
  341. * src/Xml2XmlRpcRequestProcessor.h
  342. * src/XmlRpcElements.cc
  343. * src/XmlRpcElements.h
  344. * src/XmlRpcRequest.h
  345. * src/XmlRpcRequestParserController.cc
  346. * src/XmlRpcRequestParserController.h
  347. * src/XmlRpcRequestParserState.h
  348. * src/XmlRpcRequestParserStateImpl.cc
  349. * src/XmlRpcRequestParserStateImpl.h
  350. * src/XmlRpcRequestParserStateMachine.cc
  351. * src/XmlRpcRequestParserStateMachine.h
  352. * src/XmlRpcRequestProcessor.h
  353. * test/XmlRpcRequestParserControllerTest.cc
  354. * test/XmlRpcRequestProcessorTest.cc
  355. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  356. * Release 1.3.3
  357. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  358. Fixed compile error since r1202.
  359. * src/ExpatMetalinkProcessor.cc
  360. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  361. Updated Ukrainian, Russian and Simplified Chinese
  362. translations. Thanks to all translators.
  363. * po/ru.po
  364. * po/uk.po
  365. * po/zh_CN.po
  366. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  367. Pass reference of Option object instead of pointer.
  368. * src/download_helper.cc
  369. * src/download_helper.h
  370. * src/main.cc
  371. * test/DownloadHelperTest.cc
  372. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  373. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  374. from option directly. Instead, get them from RequestGroup.
  375. * src/ActivePeerConnectionCommand.cc
  376. * src/ActivePeerConnectionCommand.h
  377. * src/PeerReceiveHandshakeCommand.cc
  378. * src/RequestGroup.h
  379. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  380. Removed unused uploadLimitCheck and uploadLimit from
  381. PeerAbstractCommand. Removed unused maxDownloadLimit from
  382. PeerInteractionCommand.
  383. * src/PeerAbstractCommand.cc
  384. * src/PeerAbstractCommand.h
  385. * src/PeerInteractionCommand.cc
  386. * src/PeerInteractionCommand.h
  387. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  388. Fixed broken file renaming feature since r1202.
  389. * src/FtpNegotiationCommand.cc
  390. * src/FtpNegotiationCommand.h
  391. * src/HttpResponseCommand.cc
  392. * src/RequestGroup.cc
  393. * src/RequestGroup.h
  394. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  395. Removed unused debug log
  396. * src/SocketCore.cc
  397. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  398. Generated configure and Makefile.in using autoconf 2.63 and
  399. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  400. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  401. * configure.ac
  402. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  403. Moved piece statistics stuff to new PieceStatMan class.
  404. Refactored PieceSelector interface.
  405. * src/DefaultPieceStorage.cc
  406. * src/DefaultPieceStorage.h
  407. * src/LongestSequencePieceSelector.cc
  408. * src/LongestSequencePieceSelector.h
  409. * src/Makefile.am
  410. * src/PieceSelector.h
  411. * src/PieceStatMan.cc
  412. * src/PieceStatMan.h
  413. * src/RarestPieceSelector.cc
  414. * src/RarestPieceSelector.h
  415. * src/RequestGroup.cc
  416. * test/DefaultPieceStorageTest.cc
  417. * test/InOrderPieceSelector.h
  418. * test/Makefile.am
  419. * test/PieceStatManTest.cc
  420. * test/RarestPieceSelectorTest.cc
  421. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  422. Added static member _protocolFamily to SocketCore. By default,
  423. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  424. address. Sometime SocketCore::bind() and
  425. SocketCore::establishConnection() use difference protocl family
  426. and latter cannot connect to former. To avoid this situation, we
  427. limit protocol family to AF_INET for unit tests.
  428. * src/SocketCore.cc
  429. * src/SocketCore.h
  430. * test/AllTest.cc
  431. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  432. Avoid std::bad_alloc for negative bencode string length.
  433. * src/bencode.cc
  434. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  435. Supported segmented downloading with chunked transfer encoding and
  436. content-length.
  437. * src/DownloadCommand.cc
  438. * src/HttpResponseCommand.cc
  439. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  440. Bump up version number to 1.3.3
  441. * configure.ac
  442. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  443. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  444. from 4096 to 65536 (for insanely large ftp login banners)
  445. * src/FtpConnection.h
  446. * test/FtpConnectionTest.cc
  447. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  448. In DefaultBtContext::getActualBasePath(), return first
  449. FileEntry::getPath() for single file torrent.
  450. * src/DefaultBtContext.cc
  451. * test/DefaultBtContextTest.cc
  452. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  453. Removed directIOAllowed() from BinaryStream, DiskWriter,
  454. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  455. Removed _directIOAllowed member from DiskWriter.
  456. * src/AbstractDiskWriter.cc
  457. * src/AbstractDiskWriter.h
  458. * src/AbstractSingleDiskAdaptor.cc
  459. * src/AbstractSingleDiskAdaptor.h
  460. * src/BinaryStream.h
  461. * src/ByteArrayDiskWriter.h
  462. * src/DefaultPieceStorage.cc
  463. * src/DiskWriter.h
  464. * src/MultiDiskAdaptor.cc
  465. * src/MultiDiskAdaptor.h
  466. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  467. Now the constructor of AbstractDiskWriter takes filename as an
  468. argument and filename argument is removed from openFile(),
  469. initAndOpenFile(), openExistingFile() interface. storeDir member
  470. and its accessor functions are removed from DiskAdaptor because it
  471. is not used anymore. size() member function of DefaultDiskWriter,
  472. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  473. opening file.
  474. * src/AbstractDiskWriter.cc
  475. * src/AbstractDiskWriter.h
  476. * src/AbstractSingleDiskAdaptor.cc
  477. * src/AbstractSingleDiskAdaptor.h
  478. * src/ByteArrayDiskWriter.cc
  479. * src/ByteArrayDiskWriter.h
  480. * src/ByteArrayDiskWriterFactory.cc
  481. * src/ByteArrayDiskWriterFactory.h
  482. * src/DefaultDiskWriter.cc
  483. * src/DefaultDiskWriter.h
  484. * src/DefaultDiskWriterFactory.cc
  485. * src/DefaultDiskWriterFactory.h
  486. * src/DefaultPieceStorage.cc
  487. * src/DirectDiskAdaptor.cc
  488. * src/DirectDiskAdaptor.h
  489. * src/DiskAdaptor.h
  490. * src/DiskWriter.h
  491. * src/DiskWriterFactory.h
  492. * src/MessageDigestHelper.cc
  493. * src/MultiDiskAdaptor.cc
  494. * src/RequestGroup.cc
  495. * src/UnknownLengthPieceStorage.cc
  496. * src/Util.cc
  497. * test/DefaultDiskWriterTest.cc
  498. * test/DirectDiskAdaptorTest.cc
  499. * test/FallocFileAllocationIteratorTest.cc
  500. * test/MessageDigestHelperTest.cc
  501. * test/MetalinkProcessorTest.cc
  502. * test/MultiDiskAdaptorTest.cc
  503. * test/MultiFileAllocationIteratorTest.cc
  504. * test/SingleFileAllocationIteratorTest.cc
  505. * test/UtilTest.cc
  506. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  507. Fixed the bug that aria2 aborts when --select-file is used. This
  508. bug was introduced in r1199.
  509. * src/MultiDiskAdaptor.cc
  510. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  511. Code cleanup
  512. * test/MockPieceStorage.cc
  513. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  514. Fixed the bug that read-only file with wrong file size will cause
  515. error because it cannot be truncated to the correct size. Now if
  516. file size is different than the expected one, re-open file in
  517. writable mode.
  518. * src/AbstractSingleDiskAdaptor.cc
  519. * src/AbstractSingleDiskAdaptor.h
  520. * src/BtCheckIntegrityEntry.cc
  521. * src/DiskAdaptor.h
  522. * src/MultiDiskAdaptor.h
  523. * src/RequestGroup.cc
  524. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  525. Fixed the bug that with --check-integrity option aria2 reports
  526. downloaded file size is 0 even if some parts of file is correctly
  527. downloaded. This bug is reproducible for the download that a file
  528. includes last piece is missing. This bug doesn't reveal for
  529. single-torrent with file allocation on.
  530. * src/IteratableChecksumValidator.cc
  531. * test/IteratableChecksumValidatorTest.cc
  532. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  533. Avoid circular reference between RequestGroup and AdaptiveURISelector
  534. * src/RequestGroupMan.cc
  535. * src/AdaptiveURISelector.cc
  536. * src/AdaptiveURISelector.h
  537. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  538. * Release 1.3.2
  539. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  540. Updated README
  541. * README
  542. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  543. Updated Ukrainian translations. Thanks to Alexander10.
  544. * po/uk.po
  545. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  546. Code cleanup
  547. * src/MetalinkParserStateMachine.cc
  548. * src/MetalinkParserStateMachine.h
  549. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  550. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  551. and expat simultaneously, MetalinkProcessor is now not base class
  552. and it is directly implemented in XML2SAXMetalinkProcessor and
  553. ExpatMetalinkProcessor.
  554. * src/ExpatMetalinkProcessor.cc
  555. * src/ExpatMetalinkProcessor.h
  556. * src/Makefile.am
  557. * src/MetalinkHelper.cc
  558. * src/MetalinkProcessor.h
  559. * src/MetalinkProcessorFactory.cc: Removed.
  560. * src/MetalinkProcessorFactory.h: Removed
  561. * src/XML2SAXMetalinkProcessor.cc
  562. * src/XML2SAXMetalinkProcessor.h
  563. * test/MetalinkProcessorTest.cc
  564. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  565. Bump up version number to 1.3.2
  566. * configure.ac
  567. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  568. Added missing file.
  569. * test/Makefile.am
  570. * test/url-list-singleFileEndsWithSlash.torrent
  571. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  572. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  573. request.
  574. * src/AnnounceList.cc
  575. * src/AnnounceList.h
  576. * src/BDE.cc: Added
  577. * src/BDE.h: Added
  578. * src/DHTAbstractMessage.cc
  579. * src/DHTAbstractMessage.h
  580. * src/DHTAnnouncePeerMessage.cc
  581. * src/DHTAnnouncePeerMessage.h
  582. * src/DHTAnnouncePeerReplyMessage.cc
  583. * src/DHTAnnouncePeerReplyMessage.h
  584. * src/DHTFindNodeMessage.cc
  585. * src/DHTFindNodeMessage.h
  586. * src/DHTFindNodeReplyMessage.cc
  587. * src/DHTFindNodeReplyMessage.h
  588. * src/DHTGetPeersMessage.cc
  589. * src/DHTGetPeersMessage.h
  590. * src/DHTGetPeersReplyMessage.cc
  591. * src/DHTGetPeersReplyMessage.h
  592. * src/DHTMessageFactory.h
  593. * src/DHTMessageFactoryImpl.cc
  594. * src/DHTMessageFactoryImpl.h
  595. * src/DHTMessageReceiver.cc
  596. * src/DHTMessageTracker.cc
  597. * src/DHTMessageTracker.h
  598. * src/DHTPingMessage.cc
  599. * src/DHTPingMessage.h
  600. * src/DHTPingReplyMessage.cc
  601. * src/DHTPingReplyMessage.h
  602. * src/DHTQueryMessage.cc
  603. * src/DHTQueryMessage.h
  604. * src/DHTResponseMessage.cc
  605. * src/DHTResponseMessage.h
  606. * src/DefaultBtAnnounce.cc
  607. * src/DefaultBtContext.cc
  608. * src/DefaultBtContext.h
  609. * src/HandshakeExtensionMessage.cc
  610. * src/Makefile.am
  611. * src/PeerListProcessor.h
  612. * src/UTPexExtensionMessage.cc
  613. * src/bencode.cc
  614. * src/bencode.h
  615. * test/AnnounceListTest.cc
  616. * test/BDETest.cc: Added
  617. * test/BencodeTest.cc
  618. * test/DHTAnnouncePeerMessageTest.cc
  619. * test/DHTAnnouncePeerReplyMessageTest.cc
  620. * test/DHTFindNodeMessageTest.cc
  621. * test/DHTFindNodeReplyMessageTest.cc
  622. * test/DHTGetPeersMessageTest.cc
  623. * test/DHTGetPeersReplyMessageTest.cc
  624. * test/DHTMessageFactoryImplTest.cc
  625. * test/DHTMessageTrackerTest.cc
  626. * test/DHTPingMessageTest.cc
  627. * test/DHTPingReplyMessageTest.cc
  628. * test/Makefile.am
  629. * test/MockDHTMessageFactory.h
  630. * test/PeerListProcessorTest.cc
  631. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  632. Use url-list (web-seeding) only for single-file torrent. This is
  633. basically the same behavior with Metalink file with torrent and
  634. URIs.
  635. * src/RequestGroup.cc
  636. * src/DefaultBtContext.cc
  637. * test/DefaultBtContextTest.cc
  638. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  639. Rewritten expr
  640. * src/array_fun.h
  641. * test/array_funTest.cc
  642. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  643. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  644. * src/DefaultBtMessageDispatcher.cc
  645. * src/a2algo.h
  646. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  647. Removed ExtendedMessagingAware. Instead of using inheritance,
  648. added ExtensionMessageRegistry and it is passed to
  649. DefaultExtensionMessageFactory.
  650. * src/DefaultBtInteractive.cc
  651. * src/DefaultBtInteractive.h
  652. * src/DefaultExtensionMessageFactory.cc
  653. * src/DefaultExtensionMessageFactory.h
  654. * src/ExtendedMessagingAware.h: Removed.
  655. * src/ExtensionMessageFactory.h
  656. * src/ExtensionMessageRegistry.h: Added.
  657. * src/Makefile.am
  658. * src/PeerInteractionCommand.cc
  659. * test/DefaultExtensionMessageFactoryTest.cc
  660. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  661. Fixed typo in log messages
  662. * src/MSEHandshake.cc
  663. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  664. Fixed the bug that prevents torrent download from finishing. The
  665. bug doesn't reveal for all torrents. The torrents affected this
  666. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  667. of pieces.
  668. * src/bitfield.h
  669. * test/bitfieldTest.cc
  670. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  671. Code cleanup
  672. * src/PeerListProcessor.h
  673. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  674. Removed RequestGroupAware
  675. * src/AbstractCommand.cc
  676. * src/AbstractCommand.h
  677. * src/ActivePeerConnectionCommand.cc
  678. * src/ActivePeerConnectionCommand.h
  679. * src/DHTGetPeersCommand.cc
  680. * src/DHTGetPeersCommand.h
  681. * src/InitiatorMSEHandshakeCommand.cc
  682. * src/InitiatorMSEHandshakeCommand.h
  683. * src/Makefile.am
  684. * src/PeerInitiateConnectionCommand.cc
  685. * src/PeerInitiateConnectionCommand.h
  686. * src/PeerInteractionCommand.cc
  687. * src/PeerInteractionCommand.h
  688. * src/RealtimeCommand.cc
  689. * src/RealtimeCommand.h
  690. * src/RequestGroupAware.cc: Removed
  691. * src/RequestGroupAware.h: Removed
  692. * src/SeedCheckCommand.cc
  693. * src/SeedCheckCommand.h
  694. * src/SleepCommand.cc
  695. * src/TrackerWatcherCommand.cc
  696. * src/TrackerWatcherCommand.h
  697. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  698. Rewritten PeerListProcessor
  699. * src/PeerListProcessor.h
  700. * src/CompactPeerListProcessor.h: Removed
  701. * src/CompactPeerListProcessor.cc: Removed
  702. * src/DelegatingPeerListProcessor.cc: Removed.
  703. * src/DefaultBtAnnounce.cc
  704. * src/Makefile.am
  705. * src/UTPexExtensionMessage.cc
  706. * src/DefaultPeerListProcessor.h: Removed.
  707. * src/DefaultPeerListProcessor.cc: Removed.
  708. * src/DelegatingPeerListProcessor.h: Removed.
  709. * test/Makefile.am
  710. * test/PeerListProcessorTest.cc
  711. * test/DefaultPeerListProcessorTest.cc: Removed.
  712. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  713. Rewritten RequestGroupMan::calculateStat()
  714. * src/RequestGroupMan.cc
  715. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  716. Removed unnecessary virtual destructor for Request class.
  717. * src/Request.cc
  718. * src/Request.h
  719. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  720. Avoid dynamic_pointer_cast.
  721. * src/DHTGetPeersCommand.cc
  722. * src/DHTGetPeersCommand.h
  723. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  724. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  725. BtEvent.
  726. * src/AbstractBtEventListener.h: Removed.
  727. * src/AbstractBtMessage.cc
  728. * src/AbstractBtMessage.h
  729. * src/BtAbortOutstandingRequestEvent.h
  730. * src/BtCancelSendingPieceEvent.h
  731. * src/BtChokedEvent.h: Removed.
  732. * src/BtChokingEvent.h
  733. * src/BtEvent.h: Removed
  734. * src/BtEventListener.h: Removed.
  735. * src/BtMessage.h
  736. * src/BtPieceMessage.cc
  737. * src/BtPieceMessage.h
  738. * src/BtRequestMessage.cc
  739. * src/BtRequestMessage.h
  740. * src/DefaultBtMessageDispatcher.cc
  741. * src/Makefile.am
  742. * src/a2functional.h
  743. * test/BtPieceMessageTest.cc
  744. * test/BtRequestMessageTest.cc
  745. * test/DefaultBtMessageDispatcherTest.cc
  746. * test/MockBtMessage.h
  747. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  748. Code cleanup
  749. * src/RequestGroupMan.cc
  750. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  751. Code cleanup
  752. * src/DownloadCommand.cc
  753. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  754. Fixed segmentation fault when GZipDecoder::decode() returns 0
  755. byte.
  756. * src/DownloadCommand.cc
  757. * src/bitfield.h
  758. * test/bitfieldTest.cc
  759. Fixed the bug that causes infinite loop if broken web server
  760. returns chunked response without last "0" chunk-size marker and
  761. closes connection.
  762. * src/DownloadCommand.cc
  763. Instantiate properly configured HttpDownloadCommand for
  764. non-resumable downlaods.
  765. * src/HttpResponseCommand.cc
  766. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  767. Rewritten array operation functions.
  768. * src/BitfieldMan.cc
  769. * src/array_fun.h
  770. * test/array_funTest.cc
  771. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  772. Removed unused variable 'query'
  773. * src/Request.cc
  774. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  775. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  776. accidentally set to false in r1162.
  777. * configure.ac
  778. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  779. Code cleanup
  780. * src/BNode.cc
  781. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  782. Increase prefixLength for the bucket which doesn't own local node
  783. ID when splitting bucket.
  784. * src/DHTBucket.cc
  785. * test/DHTBucketTest.cc
  786. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  787. * Release 1.3.1
  788. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  789. Bump up version number to 1.3.1
  790. * configure.ac
  791. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  792. Removed unused variable checkPoint. Also removed include directive
  793. for TimeA2.h.
  794. * src/SeedCheckCommand.h
  795. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  796. Fixed the bug that upload limit exceeds the value specified in
  797. --seed-ratio option depending on the timing of the execution of
  798. SeedCheckCommand.
  799. * src/SeedCheckCommand.cc
  800. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  801. Fixed the bug that removed peer's session upload/download length
  802. are counted twice in _cachedTransferStat before it is
  803. re-calculated. This affected the calculation of shara ratio,
  804. resulting aria2 wrongly determines that specified share ratio is
  805. reached. Also fixed the typo in calculateStatFor function name.
  806. * src/BtSetup.cc
  807. * src/DefaultPeerStorage.cc
  808. * src/ShareRatioSeedCriteria.h
  809. * test/ShareRatioSeedCriteriaTest.cc
  810. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  811. * Release 1.3.0
  812. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  813. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  814. Nynorsk translations. Thanks to all translators.
  815. * po/es.po
  816. * po/ja.po
  817. * po/nn.po
  818. * po/ru.po
  819. * po/uk.po
  820. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  821. Rewritten isInRange()
  822. * src/DHTBucket.cc
  823. * test/DHTBucketTest.cc
  824. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  825. Fixed typo
  826. * doc/aria2c.1.txt
  827. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  828. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  829. malloc/realloc is not used.
  830. * src/configure.ac
  831. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  832. BitfieldMan::getMissingIndexes family functions now takes unsigned
  833. char* bitfield instead of stl container for efficiency.
  834. PieceSelector::select now takes this
  835. bitfield. RarestPieceSelector::select now also performs
  836. efficiently for this change. bitfield namespace is introduced and
  837. it has several helper functions to handle basic bitfield
  838. operations such as test, count set bits, etc.
  839. * src/BitfieldMan.cc
  840. * src/BitfieldMan.h
  841. * src/DefaultBtRequestFactory.cc
  842. * src/DefaultPieceStorage.cc
  843. * src/DefaultPieceStorage.h
  844. * src/LongestSequencePieceSelector.cc
  845. * src/LongestSequencePieceSelector.h
  846. * src/Makefile.am
  847. * src/Piece.cc
  848. * src/Piece.h
  849. * src/PieceSelector.h
  850. * src/RarestPieceSelector.cc
  851. * src/RarestPieceSelector.h
  852. * src/Util.cc
  853. * src/Util.h
  854. * src/bitfield.h
  855. * test/BitfieldManTest.cc
  856. * test/LongestSequencePieceSelectorTest.cc
  857. * test/Makefile.am
  858. * test/RarestPieceSelectorTest.cc
  859. * test/UtilTest.cc
  860. * test/bitfieldTest.cc
  861. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  862. Made accepted socket non-block.
  863. * src/FtpNegotiationCommand.cc
  864. * src/HttpListenCommand.cc
  865. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  866. Guarded #ifdef HAVE_POSIX_FALLOCATE
  867. * src/AbstractSingleDiskAdaptor.cc
  868. * src/DefaultPieceStorage.cc
  869. * src/DiskAdaptor.h
  870. * src/DiskAdaptor.h
  871. * src/MultiFileAllocationIterator.cc
  872. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  873. Run
  874. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  875. in every 1 sec. The timeout of RequestSlot is 60s by default and
  876. it doesn't need to be called every time when
  877. DefaultBtInteractive::doInteractionProcessing() is called.
  878. * src/DefaultBtInteractive.cc
  879. * src/DefaultBtInteractive.h
  880. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  881. Documented 'falloc' in man page.
  882. * doc/aria2c.1.txt
  883. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  884. Updated doc
  885. * src/usage_text.h
  886. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  887. Added 'falloc' parameter for --file-allocation option. 'falloc'
  888. allocation mode uses posix_fallocate() system call to allocate
  889. file on disk. If you are using newer file systems such as ext4
  890. (with extents support), btrfs or xfs, 'falloc' is your best
  891. choice. It allocates large(few GiB) files almost instantly. Don't
  892. use 'falloc' with legacy file systems such as ext3 because it
  893. takes almost same time as 'prealloc' and it blocks aria2 entirely
  894. until allocation finishes. 'falloc' may not be available if your
  895. system doesn't have posix_fallocate() system call.
  896. * configure.ac
  897. * src/AbstractDiskWriter.cc
  898. * src/AbstractDiskWriter.h
  899. * src/AbstractSingleDiskAdaptor.cc
  900. * src/BinaryStream.h
  901. * src/BtCheckIntegrityEntry.cc
  902. * src/ByteArrayDiskWriter.h
  903. * src/CheckIntegrityEntry.cc
  904. * src/CheckIntegrityEntry.h
  905. * src/DefaultPieceStorage.cc
  906. * src/DiskAdaptor.cc
  907. * src/DiskAdaptor.h
  908. * src/DiskWriter.h
  909. * src/FallocFileAllocationIterator.cc
  910. * src/FallocFileAllocationIterator.h
  911. * src/FileAllocationEntry.cc
  912. * src/FileAllocationEntry.h
  913. * src/Makefile.am
  914. * src/MultiFileAllocationIterator.cc
  915. * src/MultiFileAllocationIterator.h
  916. * src/OptionHandlerFactory.cc
  917. * src/RequestGroup.cc
  918. * src/StreamCheckIntegrityEntry.cc
  919. * src/prefs.cc
  920. * src/prefs.h
  921. * src/usage_text.h
  922. * test/FallocFileAllocationIteratorTest.cc
  923. * test/Makefile.am
  924. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  925. Removed duplicate enableDirectIO() call.
  926. * src/MultiFileAllocationIterator.cc
  927. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  928. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  929. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  930. cost of std::rotate().
  931. * src/RarestPieceSelector.cc
  932. * src/RarestPieceSelector.h
  933. * test/RarestPieceSelectorTest.cc
  934. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  935. Updated usage doc for --bt-tracker-interval option.
  936. * src/usage_text.h
  937. * doc/aria2c.1.txt
  938. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  939. Documented --bt-tracker-interval option in man page.
  940. * doc/aria2c.1.txt
  941. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  942. Added an option to specify the interval between tracker requests.
  943. If non-zero value is specified, aria2 uses it and ignores the
  944. interval value in the response of tracker. If zero is specified,
  945. aria2 determines the inteval value based on the tarcker response
  946. and download progress.
  947. * src/DefaultBtAnnounce.cc
  948. * src/DefaultBtAnnounce.h
  949. * src/OptionHandlerFactory.cc
  950. * src/RequestGroup.cc
  951. * src/prefs.cc
  952. * src/prefs.h
  953. * src/usage_text.h
  954. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  955. Added operator+=, operator-=, operator-
  956. * src/TransferStat.cc
  957. * src/TransferStat.h
  958. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  959. Refactored RarestPieceSelector to reduce CPU load, especially for
  960. addPieceStats.
  961. * src/RarestPieceSelector.cc
  962. * src/RarestPieceSelector.h
  963. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  964. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  965. getAllMissingBlockIndexes to reduce a call to
  966. array_function_base::operator[].
  967. * src/BitfieldMan.cc
  968. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  969. Cached TransferStat/download speed to avoid to sum them up in each
  970. call.
  971. * src/DefaultPeerStorage.cc
  972. * src/DefaultPeerStorage.h
  973. * src/SegmentMan.cc
  974. * src/SegmentMan.h
  975. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  976. Typedefed cuid_t as int32_t in Command.h
  977. * src/CUIDCounter.h
  978. * src/Command.cc
  979. * src/Command.h
  980. * src/DownloadEngine.cc
  981. * src/DownloadEngine.h
  982. * src/PeerStat.h
  983. * src/SegmentMan.cc
  984. * src/SegmentMan.h
  985. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  986. Reduced the number of calls to PeerStorage::calculateStat() and
  987. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  988. transfer rate.
  989. * src/DefaultBtInteractive.cc
  990. * src/DefaultBtMessageDispatcher.cc
  991. * src/DefaultPeerStorage.cc
  992. * src/DefaultPeerStorage.h
  993. * src/DownloadCommand.cc
  994. * src/DownloadEngine.cc
  995. * src/PeerStorage.h
  996. * src/SegmentMan.cc
  997. * src/SegmentMan.h
  998. * test/MockPeerStorage.h
  999. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1000. Prepended _dir+"/" after joining path elements in torrent file.
  1001. * src/DefaultBtContext.cc
  1002. * test/DefaultBtContextTest.cc
  1003. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1004. Added missing IndexBtMessageValidator.h
  1005. * src/Makefile.am
  1006. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1007. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  1008. Chinese translations. Thank you for contributing our project.
  1009. * po/id.po
  1010. * po/it.po
  1011. * po/ru.po
  1012. * po/uk.po
  1013. * po/zh_CN.po
  1014. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1015. Updated README
  1016. * README
  1017. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1018. Bump up version number to 1.3.0
  1019. * configure.ac
  1020. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1021. Updated doc
  1022. * src/DefaultBtContext.h
  1023. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1024. Slice/joinPath for name of single torrent.
  1025. * src/DefaultBtContext.cc
  1026. * test/DefaultBtContextTest.cc
  1027. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1028. Updated man page: Documented --dry-run and --index-out
  1029. options. Changed the default value of --uri-selector and
  1030. --http-auth-challenge options. Removed --direct-file-mapping
  1031. option. Added example for --index-out
  1032. * doc/aria2c.1.txt
  1033. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1034. Updated TEXT_DRY_RUN
  1035. * src/usage_text.h
  1036. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1037. Changed the default value of --uri-selector option from 'inorder'
  1038. to 'feedback'
  1039. * src/OptionHandlerFactory.cc
  1040. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1041. Included current URI in exception message.
  1042. * src/AbstractCommand.cc
  1043. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1044. Renamed ServerStatURISelector as FeedbackURISelector.
  1045. * src/FeedbackURISelector.cc
  1046. * src/FeedbackURISelector.h
  1047. * src/Makefile.am
  1048. * src/RequestGroupMan.cc
  1049. * src/ServerStatURISelector.cc
  1050. * src/ServerStatURISelector.h
  1051. * test/FeedbackURISelectorTest.cc
  1052. * test/Makefile.am
  1053. * test/ServerStatURISelectorTest.cc
  1054. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1055. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  1056. all URIs are tested and their timeout is not reached.
  1057. * src/AdaptiveURISelector.cc
  1058. * src/AdaptiveURISelector.h
  1059. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1060. Changed the default value of --http-auth-challenge option to false.
  1061. * src/OptionHandlerFactory.cc
  1062. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1063. Reuse URIs when all unused URIs run out.
  1064. * src/OptionHandlerFactory.cc
  1065. * src/RequestGroup.cc
  1066. * src/prefs.cc
  1067. * src/prefs.h
  1068. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1069. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  1070. and BtRejectMessage are derived from RangeBtMessage class.
  1071. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  1072. derived from IndexBtMessage class. BtChokeMessage,
  1073. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  1074. BtNotInterestedMessage and BtUnchokeMessage are derived from
  1075. ZeroBtMessage class.
  1076. * src/AbstractBtMessage.cc
  1077. * src/AbstractBtMessage.h
  1078. * src/BtAllowedFastMessage.cc
  1079. * src/BtAllowedFastMessage.h
  1080. * src/BtAllowedFastMessageValidator.h: Removed
  1081. * src/BtBitfieldMessage.cc
  1082. * src/BtBitfieldMessage.h
  1083. * src/BtCancelMessage.cc
  1084. * src/BtCancelMessage.h
  1085. * src/BtCancelMessageValidator.h: Removed
  1086. * src/BtChokeMessage.cc
  1087. * src/BtChokeMessage.h
  1088. * src/BtExtendedMessage.cc
  1089. * src/BtExtendedMessage.h
  1090. * src/BtHandshakeMessage.cc
  1091. * src/BtHandshakeMessage.h
  1092. * src/BtHaveAllMessage.cc
  1093. * src/BtHaveAllMessage.h
  1094. * src/BtHaveMessage.cc
  1095. * src/BtHaveMessage.h
  1096. * src/BtHaveMessageValidator.h: Removed
  1097. * src/BtHaveNoneMessage.cc
  1098. * src/BtHaveNoneMessage.h
  1099. * src/BtInterestedMessage.cc
  1100. * src/BtInterestedMessage.h
  1101. * src/BtKeepAliveMessage.cc
  1102. * src/BtKeepAliveMessage.h
  1103. * src/BtNotInterestedMessage.cc
  1104. * src/BtNotInterestedMessage.h
  1105. * src/BtPieceMessage.cc
  1106. * src/BtPieceMessage.h
  1107. * src/BtPortMessage.cc
  1108. * src/BtPortMessage.h
  1109. * src/BtRejectMessage.cc
  1110. * src/BtRejectMessage.h
  1111. * src/BtRejectMessageValidator.h: Removed
  1112. * src/BtRequestMessage.cc
  1113. * src/BtRequestMessage.h
  1114. * src/BtRequestMessageValidator.h: Removed
  1115. * src/BtSuggestPieceMessage.cc
  1116. * src/BtSuggestPieceMessage.h
  1117. * src/BtSuggestPieceMessageValidator.h: Removed
  1118. * src/BtUnchokeMessage.cc
  1119. * src/BtUnchokeMessage.h
  1120. * src/DefaultBtMessageFactory.cc
  1121. * src/IndexBtMessage.cc
  1122. * src/IndexBtMessage.h
  1123. * src/IndexBtMessageValidator.h
  1124. * src/Makefile.am
  1125. * src/PeerMessageUtil.cc
  1126. * src/PeerMessageUtil.h
  1127. * src/RangeBtMessage.cc
  1128. * src/RangeBtMessage.h
  1129. * src/RangeBtMessageValidator.h
  1130. * src/SimpleBtMessage.cc
  1131. * src/SimpleBtMessage.h
  1132. * src/ZeroBtMessage.cc
  1133. * src/ZeroBtMessage.h
  1134. * test/BtRequestMessageTest.cc
  1135. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1136. Reverted usage_text.h to r1093 to avoid to lose translated
  1137. messages.
  1138. * src/usage_text.h
  1139. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1140. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  1141. declared as non-const previously is now const and defined in class
  1142. definition.
  1143. * src/AbstractBtMessage.cc
  1144. * src/AbstractBtMessage.h
  1145. * src/BtAllowedFastMessage.cc
  1146. * src/BtAllowedFastMessage.h
  1147. * src/BtBitfieldMessage.h
  1148. * src/BtCancelMessage.cc
  1149. * src/BtCancelMessage.h
  1150. * src/BtChokeMessage.cc
  1151. * src/BtChokeMessage.h
  1152. * src/BtExtendedMessage.cc
  1153. * src/BtExtendedMessage.h
  1154. * src/BtHandshakeMessage.cc
  1155. * src/BtHandshakeMessage.h
  1156. * src/BtHaveAllMessage.cc
  1157. * src/BtHaveAllMessage.h
  1158. * src/BtHaveMessage.cc
  1159. * src/BtHaveMessage.h
  1160. * src/BtHaveNoneMessage.cc
  1161. * src/BtHaveNoneMessage.h
  1162. * src/BtInterestedMessage.cc
  1163. * src/BtInterestedMessage.h
  1164. * src/BtKeepAliveMessage.cc
  1165. * src/BtKeepAliveMessage.h
  1166. * src/BtMessage.h
  1167. * src/BtNotInterestedMessage.cc
  1168. * src/BtNotInterestedMessage.h
  1169. * src/BtPieceMessage.h
  1170. * src/BtPortMessage.cc
  1171. * src/BtPortMessage.h
  1172. * src/BtRejectMessage.cc
  1173. * src/BtRejectMessage.h
  1174. * src/BtRequestMessage.cc
  1175. * src/BtRequestMessage.h
  1176. * src/BtSuggestPieceMessage.cc
  1177. * src/BtSuggestPieceMessage.h
  1178. * src/BtUnchokeMessage.cc
  1179. * src/BtUnchokeMessage.h
  1180. * src/SimpleBtMessage.cc
  1181. * src/SimpleBtMessage.h
  1182. * test/MockBtMessage.h
  1183. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1184. Use FileEntry::exists()
  1185. * src/MultiDiskAdaptor.cc
  1186. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1187. Added exists()
  1188. * src/FileEntry.cc
  1189. * src/FileEntry.h
  1190. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1191. Added missing prefix dir.
  1192. * src/download_helper.cc
  1193. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1194. Removed --direct-file-mapping option and CopyDiskAdaptor.
  1195. * src/CopyDiskAdaptor.cc: Removed
  1196. * src/CopyDiskAdaptor.h: Removed
  1197. * src/DefaultPieceStorage.cc
  1198. * src/Makefile.am
  1199. * src/OptionHandlerFactory.cc
  1200. * src/prefs.cc
  1201. * src/prefs.h
  1202. * src/usage_text.h
  1203. * test/CopyDiskAdaptorTest.cc: Removed
  1204. * test/Makefile.am
  1205. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1206. Rewritten isSameFileBeingDownloaded()
  1207. * src/RequestGroupMan.cc
  1208. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1209. Removed getName() from DownloadContext. getName() is declared in
  1210. BtContext.
  1211. * src/BtContext.h
  1212. * src/DownloadContext.h
  1213. * src/SingleFileDownloadContext.cc
  1214. * src/SingleFileDownloadContext.h
  1215. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  1216. in AbstractSingleDiskAdaptor.
  1217. * src/AbstractSingleDiskAdaptor.h
  1218. * src/DiskAdaptor.h
  1219. * src/MultiDiskAdaptor.h
  1220. * src/RequestGroup.cc
  1221. Removed setTopDir() and getTopDir() and getTopDirPath() from
  1222. MultiDiskAdaptor.
  1223. * src/DefaultPieceStorage.cc
  1224. * src/MultiDiskAdaptor.cc
  1225. * src/MultiDiskAdaptor.h
  1226. * test/MultiDiskAdaptorTest.cc
  1227. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1228. FileEntry::getPath() contains store(top level) directory to
  1229. simplify path handling operation. In the previous implementation,
  1230. store directory is concatenated to FileEntry::getPath() in
  1231. DownloadContext.
  1232. * src/BtDependency.cc
  1233. * src/BtPostDownloadHandler.cc
  1234. * src/CopyDiskAdaptor.cc
  1235. * src/DefaultBtContext.cc
  1236. * src/DirectDiskAdaptor.cc
  1237. * src/FileEntry.cc
  1238. * src/FileEntry.h
  1239. * src/FtpNegotiationCommand.cc
  1240. * src/HttpResponse.cc
  1241. * src/HttpResponseCommand.cc
  1242. * src/Metalink2RequestGroup.cc
  1243. * src/MultiDiskAdaptor.cc
  1244. * src/MultiDiskAdaptor.h
  1245. * src/MultiFileAllocationIterator.cc
  1246. * src/RequestGroup.cc
  1247. * src/SingleFileDownloadContext.cc
  1248. * src/SingleFileDownloadContext.h
  1249. * src/download_helper.cc
  1250. * test/BtDependencyTest.cc
  1251. * test/CopyDiskAdaptorTest.cc
  1252. * test/DefaultBtContextTest.cc
  1253. * test/DefaultBtProgressInfoFileTest.cc
  1254. * test/DirectDiskAdaptorTest.cc
  1255. * test/DownloadHelperTest.cc
  1256. * test/FileEntryTest.cc
  1257. * test/MultiDiskAdaptorTest.cc
  1258. * test/MultiFileAllocationIteratorTest.cc
  1259. * test/RequestGroupTest.cc
  1260. * test/SingleFileDownloadContextTest.cc
  1261. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1262. Fixed compiler warning
  1263. * src/download_helper.cc
  1264. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1265. Throw exception if same infohash torrent is now downloading.
  1266. * src/RequestGroup.cc
  1267. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1268. Added --dry-run option. In this mode, aria2 just checks whether
  1269. the remote file is available and doesn't download data. This
  1270. option has effect on HTTP/FTP downloads and BitTorrent downloads
  1271. are canceled in this mode.
  1272. * src/FtpNegotiationCommand.cc
  1273. * src/HttpResponseCommand.cc
  1274. * src/HttpResponseCommand.h
  1275. * src/OptionHandlerFactory.cc
  1276. * src/RequestGroup.cc
  1277. * src/RequestGroupMan.cc
  1278. * src/prefs.cc
  1279. * src/prefs.h
  1280. * src/usage_text.h
  1281. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1282. Fixed compiler waring
  1283. * test/UriListParserTest.cc
  1284. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1285. Parse options in -i list using OptionParser.
  1286. * src/UriListParser.cc
  1287. * src/UriListParser.h
  1288. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1289. Don't reset URI in retry to avoid additional round trips because
  1290. of redirects.
  1291. * src/AbstractCommand.cc
  1292. * src/OptionHandlerFactory.cc
  1293. * src/prefs.cc
  1294. * src/prefs.h
  1295. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1296. Declared hide() in OptionHandler.
  1297. * src/NameMatchOptionHandler.h
  1298. * src/OptionHandler.h
  1299. * src/OptionHandlerImpl.h
  1300. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1301. Updated doc
  1302. * src/Peer.h
  1303. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1304. Added log message in setStatusInternal()
  1305. * src/ServerStat.cc
  1306. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1307. Call ServerStat::setError() in AbstractCommand::onAbort() to
  1308. effectively exclude failed server.
  1309. * src/AbstractCommand.cc
  1310. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1311. Added --index-out option to specify each file path for torrent.
  1312. Here index shown in --show-files option is used to specify which
  1313. file path should be altered. For example, to change the file path
  1314. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  1315. option multiple times: --index-out=1=aria2.tar.bz2
  1316. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  1317. available. This option can be specified in -i list.
  1318. * src/DefaultBtContext.cc
  1319. * src/DefaultBtContext.h
  1320. * src/MultiDiskAdaptor.cc
  1321. * src/MultiDiskAdaptor.h
  1322. * src/MultiFileAllocationIterator.cc
  1323. * src/OptionHandlerFactory.cc
  1324. * src/OptionHandlerImpl.h
  1325. * src/Util.cc
  1326. * src/Util.h
  1327. * src/download_helper.cc
  1328. * src/prefs.cc
  1329. * src/prefs.h
  1330. * src/usage_text.h
  1331. * test/DefaultBtContextTest.cc
  1332. * test/MultiDiskAdaptorTest.cc
  1333. * test/MultiFileAllocationIteratorTest.cc
  1334. * test/UtilTest.cc
  1335. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1336. Use Util::pathJoin()
  1337. * src/MetalinkParserController.cc
  1338. * test/test.xml
  1339. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1340. Use Util::pathJoin()
  1341. * src/DefaultBtContext.cc
  1342. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1343. Added Util::pathJoin()
  1344. * src/Util.h
  1345. * test/UtilTest.cc
  1346. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1347. Applied basename function to remove directory element in
  1348. content-disposition value.
  1349. Return empty string if content-disposition value is ".." or ".".
  1350. * src/Util.cc
  1351. * test/UtilTest.cc
  1352. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1353. Added --max-overall-download-limit in man page.
  1354. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  1355. * doc/aria2c.1.txt
  1356. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1357. Added --max-overall-download-limit option. Now --max-upload-limit
  1358. option is not ignored when --max-overall-upload-limit option has
  1359. non-zero value. aria2 checks download(upload) speed in the order:
  1360. first checks overall speed limit and if it is not exceeded, then
  1361. checks speed limit per download. Thus you can specify both
  1362. value. For example, set --max-overall-download-limit=1M and
  1363. --max-download-limit=500K to prevent from one download from eating
  1364. all overall speed limit.
  1365. * src/DefaultBtInteractive.cc
  1366. * src/DefaultBtInteractive.h
  1367. * src/DefaultBtMessageDispatcher.cc
  1368. * src/DefaultBtMessageDispatcher.h
  1369. * src/DownloadCommand.cc
  1370. * src/DownloadCommand.h
  1371. * src/FtpNegotiationCommand.cc
  1372. * src/HttpResponseCommand.cc
  1373. * src/OptionHandlerFactory.cc
  1374. * src/PeerInteractionCommand.cc
  1375. * src/RequestGroup.cc
  1376. * src/RequestGroup.h
  1377. * src/RequestGroupMan.cc
  1378. * src/RequestGroupMan.h
  1379. * src/prefs.cc
  1380. * src/prefs.h
  1381. * src/usage_text.h
  1382. * test/DefaultBtMessageDispatcherTest.cc
  1383. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1384. Documented select-file option in Input File section.
  1385. Documented --http-auth-challenge option.
  1386. * doc/aria2c.1.txt
  1387. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1388. Now select-file can be specified in the uri list(-i list).
  1389. * src/BtContext.cc
  1390. * src/BtContext.h
  1391. * src/RequestGroup.cc
  1392. * src/Sequence.h
  1393. * src/download_helper.cc
  1394. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1395. Made the upper value of --max-concurrent-downloads options unlimited.
  1396. * src/OptionHandlerFactory.cc
  1397. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1398. Fixed the bug that disk writer is not created even if it shares
  1399. same piece with the preceding file if the length of previous file
  1400. is 0.
  1401. * src/MultiDiskAdaptor.cc
  1402. * test/MultiDiskAdaptorTest.cc
  1403. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1404. In BitTorrent, Open files in read-only mode for hash check. After
  1405. that, re-open file in read/write mode only when the download is
  1406. not finished.
  1407. * src/AbstractDiskWriter.cc
  1408. * src/AbstractDiskWriter.h
  1409. * src/AbstractSingleDiskAdaptor.cc
  1410. * src/AbstractSingleDiskAdaptor.h
  1411. * src/BtCheckIntegrityEntry.cc
  1412. * src/DiskAdaptor.h
  1413. * src/DiskWriter.h
  1414. * src/MultiDiskAdaptor.cc
  1415. * src/MultiDiskAdaptor.h
  1416. * src/RequestGroup.cc
  1417. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1418. Added --http-auth-challenge option. If it is set to true(by
  1419. default), aria2 sends HTTP authorization header only when it is
  1420. requested by the server. If false is set, then authorization
  1421. header is always sent to the server. This is useful for servers
  1422. that don't respond 401 code when authentication is required.
  1423. There is an exception: if username and password are embedded in
  1424. URI, authorization header is always sent to the server regardless
  1425. of this option.
  1426. * src/AuthConfigFactory.cc
  1427. * src/HttpSkipResponseCommand.cc
  1428. * src/OptionHandlerFactory.cc
  1429. * src/prefs.cc
  1430. * src/prefs.h
  1431. * src/usage_text.h
  1432. * test/AuthConfigFactoryTest.cc
  1433. * test/HttpRequestTest.cc
  1434. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1435. * Release 1.2.0
  1436. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1437. Updated Spanish, Ukrainian, Russian and Japanese translations.
  1438. Thanks to all translators.
  1439. * po/es.po
  1440. * po/ja.po
  1441. * po/ru.po
  1442. * po/uk.po
  1443. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1444. Call deleteSocketForReadCheck() before socket is closed.
  1445. * src/HttpListenCommand.cc
  1446. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1447. Defined virtual destructor for BObject.
  1448. * src/bencode.h
  1449. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1450. Rewritten BDE to make it efficient.
  1451. * src/bencode.cc
  1452. * src/bencode.h
  1453. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1454. Removed function throw list.
  1455. * src/bencode.cc
  1456. * src/bencode.h
  1457. * test/BencodeTest.cc
  1458. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1459. Enclosed all URLs in double quotes in command-line examples.
  1460. * doc/aria2c.1.txt
  1461. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1462. Updated reference/see also section.
  1463. * README
  1464. * doc/aria2c.1.txt
  1465. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1466. Reorganized man page based on man man-pages.
  1467. * doc/aria2c.1.txt
  1468. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1469. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  1470. because same documents are available in man page. Added
  1471. References section.
  1472. * README
  1473. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1474. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  1475. PERFORMANCE PROFILE section.
  1476. * doc/aria2c.1.txt
  1477. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1478. Rewritten the section for configuration file.
  1479. * README
  1480. * doc/aria2c.1.txt
  1481. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1482. Fixed the segmentation fault during execution of choking algorithm
  1483. in leecher state because of broken compare operator
  1484. implementation.
  1485. * src/BtLeecherStateChoke.cc
  1486. * src/BtLeecherStateChoke.h
  1487. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1488. Open file in binary mode.
  1489. * src/CookieStorage.cc
  1490. * src/DHTSetup.cc
  1491. * src/DHTUtil.cc
  1492. * src/Netrc.cc
  1493. * src/NsCookieParser.cc
  1494. * src/ProtocolDetector.cc
  1495. * src/RequestGroupMan.cc
  1496. * src/Signature.cc
  1497. * src/bencode.cc
  1498. * src/download_helper.cc
  1499. * src/option_processing.cc
  1500. * test/CookieParserTest.cc
  1501. * test/DefaultBtProgressInfoFileTest.cc
  1502. * test/FileTest.cc
  1503. * test/GZipDecoderTest.cc
  1504. * test/RequestGroupManTest.cc
  1505. * test/SignatureTest.cc
  1506. * test/SingleFileAllocationIteratorTest.cc
  1507. * test/UriListParserTest.cc
  1508. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1509. Removed operator[] because it is ambiguous with built-in []
  1510. operator.
  1511. * src/array_fun.h
  1512. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1513. Fixed compile error
  1514. * src/OptionParser.cc
  1515. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1516. Added missing call to arrayWrapperConst
  1517. * test/array_funTest.cc
  1518. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1519. Use array_wrapper instead of array_ptr.
  1520. * src/DHTRoutingTableDeserializer.cc
  1521. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1522. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  1523. * src/array_fun.h
  1524. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1525. Added array_wrapper template.
  1526. * src/array_fun.h
  1527. * test/array_funTest.cc
  1528. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1529. Use operator T* of array_ptr.
  1530. * src/OptionParser.cc
  1531. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1532. Use localhost instead of 127.0.0.1
  1533. * test/FtpConnectionTest.cc
  1534. * test/MSEHandshakeTest.cc
  1535. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1536. Added operator T*
  1537. * src/array_fun.h
  1538. * test/array_funTest.cc
  1539. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1540. Use dynamically allocated char array to detect memory access
  1541. violation.
  1542. * src/DHTRoutingTableDeserializer.cc
  1543. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1544. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  1545. defined.
  1546. * src/PeerMessageUtil.cc
  1547. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1548. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  1549. * configure.ac
  1550. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1551. Added a check to see struct sockaddr_in has sin_len member.
  1552. * configure.ac
  1553. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1554. Fixed buffer overrun.
  1555. * src/DHTRoutingTableDeserializer.cc
  1556. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1557. Added LL for long long int constant.
  1558. * test/FtpConnectionTest.cc
  1559. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1560. Casted to unsigned int to suppress compiler warning on netbsd.
  1561. * src/BtRuntime.h
  1562. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1563. Assign the value of tv.tv_sec to time_t timesec instead of giving
  1564. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  1565. type time_t.
  1566. * src/SimpleLogger.cc
  1567. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1568. Added test for FtpConnection::receiveSizeResponse().
  1569. * test/FtpConnectionTest.cc
  1570. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1571. Fix epoll error on the old kernel 2.6.8 or ealier.
  1572. * src/EpollEventPoll.cc
  1573. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1574. Use Util::parseLLInt instead of sscanf for portability. The
  1575. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  1576. * src/FtpConnection.cc
  1577. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1578. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  1579. block. It should not filter anything.
  1580. * src/BitfieldMan.cc
  1581. * src/ConsoleStatCalc.cc
  1582. * test/BitfieldManTest.cc
  1583. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1584. Fixed the bug that the boolean options that don't take arguments
  1585. don't work.
  1586. * src/OptionHandlerImpl.h
  1587. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1588. Fixed broken selected file BitTorrent download.
  1589. * src/MultiDiskAdaptor.cc
  1590. * test/MultiDiskAdaptorTest.cc
  1591. * test/MultiFileAllocationIteratorTest.cc
  1592. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1593. Fixed #define guard for EpollEventPoll
  1594. * src/EpollEventPoll.h
  1595. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1596. Wait 2 seconds. 1 second is sometimes not enough.
  1597. * test/TimeSeedCriteriaTest.cc
  1598. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1599. Use localhost instead of 127.0.0.1.
  1600. * test/DHTConnectionImplTest.cc
  1601. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1602. Suppressed compiler warning.
  1603. * src/AdaptiveURISelector.cc
  1604. * src/DefaultPieceStorage.cc
  1605. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1606. Defined virtual destructor.
  1607. * src/MetalinkParserState.h
  1608. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1609. Give NULL for second argument of getaddrinfo instead of "0".
  1610. * src/NameResolver.cc
  1611. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1612. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  1613. included strptime doesn't parse data for this format.
  1614. * src/FtpConnection.cc
  1615. * test/FtpConnectionTest.cc
  1616. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1617. Removed tests giving -1 for unsigned argument.
  1618. * test/SingleFileDownloadContextTest.cc
  1619. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1620. Don't use sha256 in tests because it might not be supported by the
  1621. SSL library.
  1622. * test/MetalinkProcessorTest.cc
  1623. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1624. Removed tests giving -1 for unsigned argument.
  1625. * test/AlphaNumberDecoratorTest
  1626. * test/BitfieldManTest.cc
  1627. * test/DefaultBtContextTest.cc
  1628. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1629. Fixed compile error without libcares when epoll is available.
  1630. * src/EpollEventPoll.cc
  1631. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1632. Included fstream instead of iostream.
  1633. * test/SignatureTest.cc
  1634. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1635. Removed #include <algorithm>
  1636. * test/RequestGroupTest.cc
  1637. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1638. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  1639. using RequestGroup::extractURIResult().
  1640. * src/AdaptiveURISelector.cc
  1641. * src/RequestGroup.cc
  1642. * src/RequestGroup.h
  1643. * test/RequestGroupTest.cc
  1644. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1645. Added tests for array_ptr.
  1646. * test/array_funTest.cc
  1647. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1648. Don't send ip parameter to a tracker if ip parameter is empty
  1649. string.
  1650. * src/DefaultBtAnnounce.cc
  1651. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1652. Adjusted line feed.
  1653. * src/version_usage.cc
  1654. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1655. Print tags, possible values when OptionHandlerException is caught.
  1656. * src/option_processing.cc
  1657. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1658. Changed the message for FatalException.
  1659. * src/OptionParser.cc
  1660. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1661. Documented --bt-external-ip option in man page. Updated man pages
  1662. for --proxy-method option.
  1663. * doc/aria2c.1.txt
  1664. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1665. Use GET method for FTP via HTTP proxy.
  1666. * src/FtpInitiateConnectionCommand.cc
  1667. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1668. Changed the default value of --proxy-method option from 'tunnel'
  1669. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  1670. option.
  1671. * src/AbstractCommand.cc
  1672. * src/AbstractCommand.h
  1673. * src/FtpInitiateConnectionCommand.cc
  1674. * src/HttpDownloadCommand.cc
  1675. * src/HttpInitiateConnectionCommand.cc
  1676. * src/HttpInitiateConnectionCommand.h
  1677. * src/OptionHandlerFactory.cc
  1678. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1679. Initialized _logger
  1680. * src/SelectEventPoll.cc
  1681. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1682. Defined a copy constructor for the same type.
  1683. * src/SharedHandle.h
  1684. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1685. Added OptionParser::parseArg() which internally uses getopt_long
  1686. to parse command-line options. All command-line options are now
  1687. configured by OptionHandler. No manual editing of struct option*
  1688. is required any more.
  1689. * src/NameMatchOptionHandler.h
  1690. * src/OptionHandler.h
  1691. * src/OptionHandlerFactory.cc
  1692. * src/OptionHandlerImpl.h
  1693. * src/OptionParser.cc
  1694. * src/OptionParser.h
  1695. * src/array_fun.h
  1696. * src/main.cc
  1697. * src/option_processing.cc
  1698. * test/OptionHandlerTest.cc
  1699. * test/OptionParserTest.cc
  1700. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1701. Fixed configure error with --disable-epoll
  1702. * configure.ac
  1703. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1704. Fixed compile error when HAVE_EPOLL is not defined.
  1705. Fixed linker error on bigendian systems.
  1706. * src/SocketCore.cc
  1707. * src/SocketCore.h
  1708. * test/DefaultBtProgressInfoFileTest.cc
  1709. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1710. Added --bt-external-ip option. You can specify the external IP
  1711. address to report to a BitTorrent tracker. Although this function
  1712. is named 'external', it can accept any kind of IP addresses.
  1713. * src/DefaultBtAnnounce.cc
  1714. * src/OptionHandlerFactory.cc
  1715. * src/option_processing.cc
  1716. * src/prefs.cc
  1717. * src/prefs.h
  1718. * src/usage_text.h
  1719. * test/DefaultBtAnnounceTest.cc
  1720. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1721. Extracted the algorithm to find the longest incremental sequence
  1722. as max_sequence template.
  1723. * src/LongestSequencePieceSelector.cc
  1724. * src/a2algo.h
  1725. * test/Makefile.am
  1726. * test/a2algoTest.cc
  1727. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1728. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  1729. * src/usage_text.h
  1730. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1731. Updated doc for --uri-selector, --http-server-listen-port and
  1732. --enable-http-server option. Documented --event-poll option.
  1733. * doc/aria2c.1.txt
  1734. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1735. Updated doc for --enable-http-server.
  1736. * src/usage_text.h
  1737. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1738. Documented --http-server-listen-port and --enable-http-server in
  1739. man page.
  1740. * doc/aria2c.1.txt
  1741. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1742. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  1743. translations. Thanks to all translators.
  1744. * po/es.po
  1745. * po/id.po
  1746. * po/it.po
  1747. * po/ru.po
  1748. * po/uk.po
  1749. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1750. Bump up version number to 1.2.0
  1751. * configure.ac
  1752. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1753. BtContext::getAnnounceTiers() now returns const reference.
  1754. * src/BtContext.h
  1755. * src/DefaultBtContext.cc
  1756. * src/DefaultBtContext.h
  1757. * test/MockBtContext.h
  1758. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1759. Change the number of retries for tracker request based on the
  1760. number of available tracker in a torrent file.
  1761. * src/TrackerWatcherCommand.cc
  1762. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1763. Added _maxTries property to RequestGroup and assign the option
  1764. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  1765. RequestGroup::getMaxTries() instead of
  1766. Option::getAsInt(PREF_MAX_TRIES).
  1767. * src/AbstractCommand.cc
  1768. * src/RequestGroup.cc
  1769. * src/RequestGroup.h
  1770. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1771. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  1772. Mandriva. I modified the patch: make RequestGroup have the
  1773. timeout value and AdaptiveURISelector directly modifies that
  1774. value.
  1775. * src/AbstractCommand.cc
  1776. * src/AdaptiveURISelector.cc
  1777. * src/AdaptiveURISelector.h
  1778. * src/FtpNegotiationCommand.cc
  1779. * src/RequestGroup.cc
  1780. * src/RequestGroup.h
  1781. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1782. Fixed compiler warning
  1783. * test/IteratableChecksumValidatorTest.cc
  1784. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1785. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  1786. integrated downloads. This PieceSelector subclass finds the
  1787. longest continuous sequence in the available missing pieces and
  1788. selects the last index of such sequence. This makes HTTP/FTP
  1789. connections less interrupted by the pieces obtained by BitTorrent
  1790. peers.
  1791. * src/DefaultPieceStorage.cc
  1792. * src/DefaultPieceStorage.h
  1793. * src/LongestSequencePieceSelector.cc
  1794. * src/LongestSequencePieceSelector.h
  1795. * src/Makefile.am
  1796. * src/PieceSelector.h
  1797. * src/RarestPieceSelector.h
  1798. * src/RequestGroup.cc
  1799. * test/BtDependencyTest.cc
  1800. * test/DefaultPieceStorageTest.cc
  1801. * test/IteratableChecksumValidatorTest.cc
  1802. * test/LongestSequencePieceSelectorTest.cc
  1803. * test/Makefile.am
  1804. * test/SegmentManTest.cc
  1805. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1806. Fixed the bug that the average speed is wrong in
  1807. http/ftp/BitTorrent integrated download. Only the download bytes
  1808. in BitTorrent were considered.
  1809. * src/RequestGroup.cc
  1810. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1811. Choose port for BitTorrent/DHT randomly from the specified range.
  1812. * src/DHTConnectionImpl.cc
  1813. * src/PeerListenCommand.cc
  1814. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1815. Send HTTP Authorization header only if it is requested by the
  1816. server(response 401). There are some exceptions. The authorization
  1817. header for proxy is always sent if it is available without request
  1818. by the server. If username/password is specified in the URI, it
  1819. is immediately sent to the server without request by the server.
  1820. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  1821. SharedHandle<AuthConfig>().
  1822. NetrcAuthResolver::resolveAuthConfig() returns
  1823. SharedHandle<AuthConfig>() if no AuthConfig is available.
  1824. * src/AbstractAuthResolver.cc
  1825. * src/AbstractProxyRequestCommand.cc
  1826. * src/AuthConfigFactory.cc
  1827. * src/AuthConfigFactory.h
  1828. * src/HttpConnection.cc
  1829. * src/HttpRequest.cc
  1830. * src/HttpRequest.h
  1831. * src/HttpResponse.cc
  1832. * src/HttpResponseCommand.cc
  1833. * src/HttpSkipResponseCommand.cc
  1834. * test/AuthConfigFactoryTest.cc
  1835. * test/HttpRequestTest.cc
  1836. * test/HttpResponseTest.cc
  1837. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1838. Remove leading "--" from help keyword and a substring after "="
  1839. from help keyword, so that one can query options by '-h--max-' or
  1840. '-hmax-peers=10'.
  1841. * src/option_processing.cc
  1842. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1843. Rewritten PStringVisitor and its implementation.
  1844. * src/PStringBuildVisitor.cc
  1845. * src/PStringBuildVisitor.h
  1846. * src/PStringDatum.h
  1847. * src/PStringNumLoop.h
  1848. * src/PStringSegment.cc
  1849. * src/PStringSegment.h
  1850. * src/PStringSelect.h
  1851. * src/PStringVisitor.h
  1852. * src/download_helper.cc
  1853. * test/PStringBuildVisitorTest.cc
  1854. * test/ParameterizedStringParserTest.cc
  1855. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1856. Persist connection between the built-in HTTP server and a client
  1857. if a client supports keep-alive. Fixed the bug that aria2 exits
  1858. when the HTTP server receives EOF from a client.
  1859. * src/HttpServer.cc
  1860. * src/HttpServer.h
  1861. * src/HttpServerCommand.cc
  1862. * src/HttpServerCommand.h
  1863. * src/HttpServerResponseCommand.cc
  1864. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1865. Added experimental built-in HTTP server. Currently, when a client
  1866. accesses to the server, it responds with the current download
  1867. progress. By default, it is disabled. To enable the server, give
  1868. --enable-http-server option. To change the default port number
  1869. for the server to listen to, use --http-server-listen-port option.
  1870. The response HTML is very simple and refreshes it self each 1
  1871. second. Because of this refresh, you see flicker in normal web
  1872. browser such as Firefox. I recommend to use console-based browser
  1873. such as elinks, w3m. To connect to the server, run 'elinks
  1874. http://localhost:6800/' while running aria2. Please replace port
  1875. number '6800'(which is default) with your preference.
  1876. * src/DownloadEngineFactory.cc
  1877. * src/HttpHeader.cc
  1878. * src/HttpHeader.h
  1879. * src/HttpHeaderProcessor.cc
  1880. * src/HttpHeaderProcessor.h
  1881. * src/HttpListenCommand.cc
  1882. * src/HttpListenCommand.h
  1883. * src/HttpServer.cc
  1884. * src/HttpServer.h
  1885. * src/HttpServerCommand.cc
  1886. * src/HttpServerCommand.h
  1887. * src/HttpServerResponseCommand.cc
  1888. * src/HttpServerResponseCommand.h
  1889. * src/Makefile.am
  1890. * src/OptionHandlerFactory.cc
  1891. * src/Util.cc
  1892. * src/Util.h
  1893. * src/help_tags.h
  1894. * src/option_processing.cc
  1895. * src/prefs.cc
  1896. * src/prefs.h
  1897. * src/usage_text.h
  1898. * test/HttpHeaderProcessorTest.cc
  1899. * test/UtilTest.cc
  1900. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1901. Removed.
  1902. * src/CheckIntegrityMan.cc
  1903. * src/FileAllocationMan.cc
  1904. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1905. Made (piece) hash check sequential for each RequestGroup because
  1906. simultaneous hash check is slower than sequential execution.
  1907. * src/CheckIntegrityCommand.cc
  1908. * src/CheckIntegrityDispatcherCommand.cc
  1909. * src/CheckIntegrityDispatcherCommand.h
  1910. * src/CheckIntegrityMan.h
  1911. * src/ConsoleStatCalc.cc
  1912. * src/DownloadCommand.cc
  1913. * src/DownloadEngine.cc
  1914. * src/DownloadEngine.h
  1915. * src/DownloadEngineFactory.cc
  1916. * src/Makefile.am
  1917. * src/Makefile.in
  1918. * src/RequestGroup.cc
  1919. * src/StatCalc.h
  1920. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1921. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  1922. SequentialDispatcherCommand.
  1923. * src/FileAllocationDispatcherCommand.cc
  1924. * src/SequentialDispatcherCommand.h
  1925. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1926. Rewritten FileAllocationDispatcherCommand using brand new
  1927. SequentialDispatcherCommand.
  1928. * src/DownloadEngineFactory.cc
  1929. * src/FileAllocationCommand.cc
  1930. * src/FileAllocationDispatcherCommand.cc
  1931. * src/FileAllocationDispatcherCommand.h
  1932. * src/Makefile.am
  1933. * src/SequentialDispatcherCommand.h
  1934. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1935. Replaced FileAllocationMan with
  1936. SequentialPicker<FileAllocationEntry>.
  1937. * src/BtCheckIntegrityEntry.cc
  1938. * src/ConsoleStatCalc.cc
  1939. * src/DownloadEngine.cc
  1940. * src/DownloadEngine.h
  1941. * src/DownloadEngineFactory.cc
  1942. * src/FileAllocationCommand.cc
  1943. * src/FileAllocationDispatcherCommand.cc
  1944. * src/FileAllocationMan.h
  1945. * src/Makefile.am
  1946. * src/SequentialPicker.h
  1947. * src/StatCalc.h
  1948. * src/StreamCheckIntegrityEntry.cc
  1949. * test/Makefile.am
  1950. * test/SequentialPickerTest.cc
  1951. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1952. Added doc for adaptive URI selector.
  1953. * doc/aria2c.1.txt
  1954. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1955. Added doc for adaptive URI selector.
  1956. * src/usage_text.h
  1957. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1958. Added doc for --bt-max-peers option.
  1959. * doc/aria2c.1.txt
  1960. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1961. Added doc for --bt-hash-check-seed option.
  1962. * doc/aria2c.1.txt
  1963. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1964. Documented exit codes.
  1965. * doc/aria2c.1.txt
  1966. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1967. Added --bt-max-peers option to specify the maximum number of peers
  1968. per torrent. 0 means unlimited number of peers.
  1969. * src/ActivePeerConnectionCommand.cc
  1970. * src/BtRuntime.h
  1971. * src/DefaultPeerStorage.cc
  1972. * src/DefaultPeerStorage.h
  1973. * src/OptionHandlerFactory.cc
  1974. * src/RequestGroup.cc
  1975. * src/option_processing.cc
  1976. * src/prefs.cc
  1977. * src/prefs.h
  1978. * src/usage_text.h
  1979. * test/DefaultPeerStorageTest.cc
  1980. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1981. Added --bt-hash-check-seed option. If true is given to this
  1982. option, after hash check using --check-integrity option and file
  1983. is complete, continue to seed file. If you want to check file and
  1984. download it only when it is damaged or incomplete, set this option
  1985. to false. This option has effect only on BitTorrent download.
  1986. The default value is true(This is the same behavior with the
  1987. previous release).
  1988. * src/BtCheckIntegrityEntry.cc
  1989. * src/OptionHandlerFactory.cc
  1990. * src/option_processing.cc
  1991. * src/prefs.cc
  1992. * src/prefs.h
  1993. * src/usage_text.h
  1994. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1995. Updated copyright year.
  1996. * src/version_usage.cc
  1997. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1998. Rewritten the usage text for --bt-request-peer-speed-limit option.
  1999. * doc/aria2c.1.txt
  2000. * src/usage_text.h
  2001. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2002. Made the max value of split option unlimited.
  2003. * doc/aria2c.1.txt
  2004. * src/OptionHandlerFactory.cc
  2005. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2006. Fixed compile warning/error.
  2007. * src/DownloadResult.h
  2008. * src/HttpDownloadCommand.cc
  2009. * src/ServerStat.cc
  2010. * test/RequestGroupTest.cc
  2011. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2012. Added --event-poll option to select the method for polling events.
  2013. The available methods are "select" and "epoll". "epoll" is
  2014. available on Linux only. The earlier release has the compile
  2015. option to choose from these methods.
  2016. * configure.ac
  2017. * src/RequestGroupMan.cc
  2018. * src/OptionHandlerFactory.cc
  2019. * src/EpollEventPoll.h
  2020. * src/StreamFileAllocationEntry.cc
  2021. * src/a2io.h
  2022. * src/SelectEventPoll.h
  2023. * src/option_processing.cc
  2024. * src/prefs.h
  2025. * src/EpollEventPoll.cc
  2026. * src/EventPoll.h
  2027. * src/SocketCore.h
  2028. * src/Makefile.am
  2029. * src/main.cc
  2030. * src/DownloadEngine.h
  2031. * src/SelectEventPoll.cc
  2032. * src/DownloadEngine.cc
  2033. * src/SocketCore.cc
  2034. * src/DownloadEngineFactory.cc
  2035. * src/Makefile.in
  2036. * src/prefs.cc
  2037. * src/usage_text.h
  2038. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2039. Included RecoverableException.h from main.cc
  2040. * src/main.cc
  2041. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2042. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  2043. now returns last error encountered in the HTTP/FTP downloads as a
  2044. exit status value. If all downloads finished successfully, aria2
  2045. returns 0. The error code is defined in src/DownloadResult.h.
  2046. The error occurred in the download currently in progress is not
  2047. reported as a last error. If no error has encountered but there
  2048. are in progress or waiting downloads, aria2 returns 7.
  2049. * src/AbstractCommand.cc
  2050. * src/DlAbortEx.h
  2051. * src/DlRetryEx.h
  2052. * src/DownloadCommand.cc
  2053. * src/DownloadFailureException.h
  2054. * src/DownloadResult.h
  2055. * src/FtpNegotiationCommand.cc
  2056. * src/HttpSkipResponseCommand.cc
  2057. * src/Makefile.am
  2058. * src/MultiUrlRequestInfo.cc
  2059. * src/MultiUrlRequestInfo.h
  2060. * src/RecoverableException.h
  2061. * src/RequestGroup.cc
  2062. * src/RequestGroup.h
  2063. * src/RequestGroupMan.cc
  2064. * src/RequestGroupMan.h
  2065. * src/URIResult.cc
  2066. * src/URIResult.h
  2067. * src/main.cc
  2068. * src/option_processing.cc
  2069. * test/RequestGroupTest.cc
  2070. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2071. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  2072. patch adds AdaptiveURISelector, which selects one of the bests
  2073. mirrors for first and reserved connections. For supplementary
  2074. ones, it returns mirrors which has not been tested yet, and if
  2075. each of them already tested, returns mirrors which has to be
  2076. tested again. Otherwise, it doesn't return anymore mirrors.
  2077. * src/AdaptiveURISelector.cc
  2078. * src/AdaptiveURISelector.h
  2079. * src/FtpNegotiationCommand.cc
  2080. * src/HttpResponseCommand.cc
  2081. * src/Makefile.am
  2082. * src/Makefile.in
  2083. * src/OptionHandlerFactory.cc
  2084. * src/RequestGroup.cc
  2085. * src/RequestGroup.h
  2086. * src/RequestGroupMan.cc
  2087. * src/ServerStat.cc
  2088. * src/ServerStat.h
  2089. * src/ServerStatMan.cc
  2090. * src/SpeedCalc.cc
  2091. * src/URISelector.h
  2092. * src/prefs.cc
  2093. * src/prefs.h
  2094. * test/RequestGroupManTest.cc
  2095. * test/ServerStatManTest.cc
  2096. * test/ServerStatTest.cc
  2097. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2098. Fixed unit test error.
  2099. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  2100. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2101. * Release 1.1.2
  2102. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2103. Updated Russian translation. Thanks to the translators.
  2104. * po/ru.po
  2105. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2106. Added the description of --use-head option to man page.
  2107. * doc/aria2c.1.txt
  2108. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2109. Bump up version number to 1.1.2
  2110. * configure.ac
  2111. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2112. Added --use-head option to toggle whether HEAD method should be
  2113. used in the first HTTP request. By default aria2 uses HEAD method
  2114. as the first request. When the server doesn't recognize HEAD, then
  2115. give aria2 --use-head=false to force aria2 to use GET method
  2116. instead.
  2117. * src/OptionHandlerFactory.cc
  2118. * src/RequestGroupMan.cc
  2119. * src/option_processing.cc
  2120. * src/prefs.cc
  2121. * src/prefs.h
  2122. * src/usage_text.h
  2123. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2124. Fixed the bug that BitTorrent download doesn't finish when REJECT
  2125. message is received before CHOKE message. The old implementation
  2126. doen't clear the use-bit of the piece when recieved REJECT
  2127. message.
  2128. * src/DefaultBtMessageDispatcher.cc
  2129. * test/DefaultBtMessageDispatcherTest.cc
  2130. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2131. * Release 1.1.1
  2132. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2133. Bump up version number to 1.1.1.
  2134. * configure.ac
  2135. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2136. Fixed the bug that --summary-interval=0 doesn't work. The summary
  2137. is printed repeatedly.
  2138. * src/ConsoleStatCalc.cc
  2139. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2140. * Release 1.1.0
  2141. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2142. Added ifdef clause for conditional compilation.
  2143. * src/main.cc
  2144. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2145. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  2146. translations. Thanks to all translators.
  2147. * po/ja.po
  2148. * po/ru.po
  2149. * po/uk.po
  2150. * po/zh_CN.po
  2151. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2152. Added the preceding ">>> " before the message "Printing the
  2153. contents of file..." to make the output more readable.
  2154. * src/main.cc
  2155. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2156. Added try-catch block in the loop in showFiles() to continue the
  2157. operation even if the exception occurred in one file.
  2158. * src/main.cc (showFiles)
  2159. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2160. Made messages in showFiles() translatable.
  2161. * po/aria2.pot
  2162. * src/main.cc
  2163. * src/message.h
  2164. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2165. Print the contents of Torrent/Metalink files are printed without
  2166. -T/-M options.
  2167. * src/main.cc
  2168. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2169. Escaped '--' with '\--'
  2170. * README
  2171. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2172. Updated "How to build" section in README. Mentioned about
  2173. --with-ca-bundle compile option.
  2174. * README
  2175. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2176. Bump up version number to 1.1.0.
  2177. * configure.ac
  2178. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2179. Added a note for --dht-listen-port option.
  2180. * doc/aria2c.1.txt
  2181. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2182. Update doc for --realtime-chunk-checksum option.
  2183. * doc/aria2c.1.txt
  2184. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2185. Update doc for --realtime-chunk-checksum option.
  2186. * src/usage_text.h
  2187. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2188. Updated French, Japanese, Russian and Ukrainian translations.
  2189. Thanks to all translators.
  2190. * po/fr.po
  2191. * po/ja.po
  2192. * po/ru.po
  2193. * po/uk.po
  2194. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2195. Renamed aria2c.pot to aria2.pot
  2196. * po/aria2.pot
  2197. * po/aria2c.pot: Removed.
  2198. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2199. Removed MetaEntry.h
  2200. * src/Makefile.am
  2201. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2202. Rename file by appending digits if a local file exists and its
  2203. file size is larger than that of remote file with --continue
  2204. option. The old implementation just throws exception in such case.
  2205. * src/RequestGroup.cc
  2206. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2207. Fixed the bug that download progress summary is not printed in the
  2208. interval specified by the option.
  2209. * src/ConsoleStatCalc.cc
  2210. * src/ConsoleStatCalc.h
  2211. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2212. Fixed compiler warning
  2213. * src/Cookie.cc
  2214. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2215. Fixed the cookie implementation based on RFC2965.
  2216. Now if a value in domain field is not started with dot, then
  2217. prepend dot. That means a cookie with domain=sf.net is sent to
  2218. wiki.sf.net.
  2219. * src/Cookie.cc
  2220. * test/CookieParserTest.cc
  2221. * test/CookieStorageTest.cc
  2222. * test/CookieTest.cc
  2223. * test/NsCookieParserTest.cc
  2224. * test/Sqlite3MozCookieParserTest.cc
  2225. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2226. Fixed the bug that causes corrupted downloads if HTTP pipelining
  2227. is enabled and the server doesn't support keep-alive.
  2228. * src/AbstractCommand.cc
  2229. * src/DownloadCommand.cc
  2230. * src/HttpDownloadCommand.cc
  2231. * src/HttpDownloadCommand.h
  2232. * src/HttpResponseCommand.cc
  2233. * src/Request.cc
  2234. * src/Request.h
  2235. * test/RequestTest.cc
  2236. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2237. Removed Dictionary/List/Data and its related classes.
  2238. * src/BencodeVisitor.cc: Removed.
  2239. * src/BencodeVisitor.h: Removed.
  2240. * src/Data.cc: Removed.
  2241. * src/Data.h: Removed.
  2242. * src/Dictionary.cc: Removed.
  2243. * src/Dictionary.h: Removed.
  2244. * src/List.cc: Removed.
  2245. * src/List.h: Removed.
  2246. * src/Makefile.am
  2247. * src/MetaEntry.h: Removed.
  2248. * src/MetaEntryVisitor.h: Removed.
  2249. * src/MetaFileUtil.cc: Removed.
  2250. * src/MetaFileUtil.h: Removed.
  2251. * test/BencodeVisitorTest.cc: Removed.
  2252. * test/DataTest.cc: Removed.
  2253. * test/DictionaryTest.cc: Removed.
  2254. * test/ListTest.cc: Removed.
  2255. * test/Makefile.am
  2256. * test/MetaFileUtilTest.cc: Removed.
  2257. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2258. Removed include of MetaEntry.h
  2259. * test/DHTMessageTrackerEntryTest.cc
  2260. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2261. Use BDE instead of Dictionary/List/Data.
  2262. * src/AnnounceList.cc
  2263. * src/AnnounceList.h
  2264. * test/AnnounceListTest.cc
  2265. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2266. Use BDE instead of Dictionary/List/Data.
  2267. * src/DHTAbstractMessage.cc
  2268. * src/DHTAbstractMessage.h
  2269. * src/DHTAnnouncePeerMessage.cc
  2270. * src/DHTAnnouncePeerMessage.h
  2271. * src/DHTAnnouncePeerReplyMessage.cc
  2272. * src/DHTAnnouncePeerReplyMessage.h
  2273. * src/DHTFindNodeMessage.cc
  2274. * src/DHTFindNodeMessage.h
  2275. * src/DHTFindNodeReplyMessage.cc
  2276. * src/DHTFindNodeReplyMessage.h
  2277. * src/DHTGetPeersMessage.cc
  2278. * src/DHTGetPeersMessage.h
  2279. * src/DHTGetPeersReplyMessage.cc
  2280. * src/DHTGetPeersReplyMessage.h
  2281. * src/DHTMessageFactory.h
  2282. * src/DHTMessageFactoryImpl.cc
  2283. * src/DHTMessageFactoryImpl.h
  2284. * src/DHTMessageReceiver.cc
  2285. * src/DHTMessageTracker.cc
  2286. * src/DHTMessageTracker.h
  2287. * src/DHTPingMessage.cc
  2288. * src/DHTPingMessage.h
  2289. * src/DHTPingReplyMessage.cc
  2290. * src/DHTPingReplyMessage.h
  2291. * src/DHTQueryMessage.cc
  2292. * src/DHTQueryMessage.h
  2293. * src/DHTResponseMessage.cc
  2294. * src/DHTResponseMessage.h
  2295. * test/DHTAnnouncePeerMessageTest.cc
  2296. * test/DHTAnnouncePeerReplyMessageTest.cc
  2297. * test/DHTFindNodeMessageTest.cc
  2298. * test/DHTFindNodeReplyMessageTest.cc
  2299. * test/DHTGetPeersMessageTest.cc
  2300. * test/DHTGetPeersReplyMessageTest.cc
  2301. * test/DHTMessageFactoryImplTest.cc
  2302. * test/DHTMessageTrackerTest.cc
  2303. * test/DHTPingMessageTest.cc
  2304. * test/DHTPingReplyMessageTest.cc
  2305. * test/MockDHTMessageFactory.h
  2306. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2307. Added tests the case where length < 0 is specified.
  2308. * test/BencodeTest.cc
  2309. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2310. Fixed memory leak in decoderawstring()
  2311. * src/bencode.cc
  2312. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2313. Added missing #ifdef guard. Added uc() function for String and
  2314. removeKey() for Dict.
  2315. * src/bencode.cc
  2316. * src/bencode.h
  2317. * test/BencodeTest.cc
  2318. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2319. Use BDE instead of Dictionary/List/Data.
  2320. * src/HandshakeExtensionMessage.cc
  2321. * src/HandshakeExtensionMessage.h
  2322. * test/HandshakeExtensionMessageTest.cc
  2323. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2324. Added --max-overall-upload-limit option. This option limits the
  2325. overall upload speed. Stated in help message that the existing
  2326. --max-upload-limit option limits the upload speed per each
  2327. torrent. Man page is also updated.
  2328. * doc/aria2c.1.txt
  2329. * src/DefaultBtMessageDispatcher.cc
  2330. * src/DefaultBtMessageDispatcher.h
  2331. * src/OptionHandlerFactory.cc
  2332. * src/PeerInteractionCommand.cc
  2333. * src/option_processing.cc
  2334. * src/prefs.cc
  2335. * src/prefs.h
  2336. * src/usage_text.h
  2337. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2338. Use BDE instead of Dictionary/List/Data classes.
  2339. * src/CompactPeerListProcessor.cc
  2340. * src/CompactPeerListProcessor.h
  2341. * src/DefaultBtAnnounce.cc
  2342. * src/DefaultBtContext.cc
  2343. * src/DefaultBtContext.h
  2344. * src/DefaultPeerListProcessor.cc
  2345. * src/DefaultPeerListProcessor.h
  2346. * src/DelegatingPeerListProcessor.cc
  2347. * src/DelegatingPeerListProcessor.h
  2348. * src/PeerListProcessor.h
  2349. * src/UTPexExtensionMessage.cc
  2350. * src/Util.h
  2351. * src/message.h
  2352. * test/DefaultBtContextTest.cc
  2353. * test/DefaultPeerListProcessorTest.cc
  2354. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2355. Added bencode helper functions and BDE class.
  2356. They will replace MetaFileUtil and Dictionary/List/Data classes.
  2357. * src/Makefile.am
  2358. * src/bencode.cc
  2359. * src/bencode.h
  2360. * test/BencodeTest.cc
  2361. * test/Makefile.am
  2362. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2363. Fixed the bug that bad URI is sent to the tracker when the announe
  2364. URI in torrent file includes query.
  2365. * src/DefaultBtAnnounce.cc
  2366. * test/DefaultBtAnnounceTest.cc
  2367. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2368. Added Option::blank().
  2369. Use !Option::blank(name) instead of Option::defined(name) for
  2370. the options that take filename.
  2371. * src/MultiUrlRequestInfo.cc
  2372. * src/Option.cc
  2373. * src/Option.h
  2374. * src/main.cc
  2375. * src/option_processing.cc
  2376. * test/OptionTest.cc
  2377. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2378. Documented the default value of --check-certificate option in man
  2379. page.
  2380. * doc/aria2c.1.txt
  2381. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2382. Enabled --check-certificate by default. Added compile
  2383. time(configure) option --with-ca-bundle to specify CA bundle.
  2384. Warn if --check-certificate=true and --ca-certificate is not
  2385. specified or loading CA certificate is failed.
  2386. * configure.ac
  2387. * src/MultiUrlRequestInfo.cc
  2388. * src/OptionHandlerFactory.cc
  2389. * src/message.h
  2390. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2391. Mentioned https tag in help option.
  2392. * doc/aria2c.1.txt
  2393. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2394. Added `https' tag to help option category. Added https tag to
  2395. --ca-certificate, --certificate, --check-certificate and
  2396. --private-key option.
  2397. * src/OptionHandlerFactory.cc
  2398. * src/help_tags.h
  2399. * src/option_processing.cc
  2400. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2401. Changed the package name from `aria2c' to `aria2' in order to fix
  2402. the packaging issue in Debian and Fedora. The name of the
  2403. executable is not changed.
  2404. * configure.ac
  2405. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2406. Fixed typos
  2407. * src/usage_text.h
  2408. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2409. Fixed typos and updated doc.
  2410. * README
  2411. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2412. Fixed typos
  2413. * doc/aria2c.1.txt
  2414. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2415. Fixed typos
  2416. * src/usage_text.h
  2417. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2418. Print a message when no files to download.
  2419. * src/download_helper.cc
  2420. * src/main.cc
  2421. * src/message.h
  2422. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2423. RFC3986 complied Percent-Encoding(urlencode).
  2424. Use uppercase hexadecimal digits for encoded text instead of lowercase
  2425. ones.
  2426. * src/Request.cc
  2427. * src/Util.cc
  2428. * src/Util.h
  2429. * test/BtHandshakeMessageTest.cc
  2430. * test/DefaultBtAnnounceTest.cc
  2431. * test/DefaultBtContextTest.cc
  2432. * test/RequestTest.cc
  2433. * test/UtilTest.cc
  2434. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2435. Fixed the bug that prevents aria2 from downloading 0-length files
  2436. via HTTP/FTP.
  2437. * src/DefaultBtContext.cc
  2438. * src/DefaultBtContext.h
  2439. * src/DownloadContext.h
  2440. * src/FtpNegotiationCommand.cc
  2441. * src/HttpResponseCommand.cc
  2442. * src/HttpResponseCommand.h
  2443. * src/RequestGroup.cc
  2444. * src/SingleFileDownloadContext.cc
  2445. * src/SingleFileDownloadContext.h
  2446. * test/BtPostDownloadHandlerTest.cc
  2447. * test/MetalinkPostDownloadHandlerTest.cc
  2448. * test/MockBtContext.h
  2449. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2450. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  2451. * src/option_processing.cc
  2452. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2453. Applied aria2-1.0.1-mingw.patch.
  2454. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  2455. mingw.
  2456. Collected 4th and 5th argument types for getsockopt and setsockopt.
  2457. * src/SocketCore.cc
  2458. * src/a2netcompat.h
  2459. * test/SocketCoreTest.cc
  2460. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2461. * Release 1.0.1
  2462. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2463. Updated Ukrainian and Norwegian Nynorsk translations.
  2464. Thanks to all translators.
  2465. * po/nn.po
  2466. * po/uk.po
  2467. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2468. Don't show download result when -S option is used.
  2469. * src/main.cc
  2470. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2471. Bump up version number to 1.0.1
  2472. * configure.ac
  2473. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2474. Closed files after the test cases in MultiDiskWriterTest::
  2475. testResetDiskWriterEntries(). This will fix the unit test error
  2476. in mingw32 build.
  2477. * test/MultiDiskWriterTest.cc
  2478. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2479. Use HEAD method to get file size from HTTP server for segmented
  2480. downloading.
  2481. The request to the BitTorrent Tracker always uses GET method because
  2482. the response of the tracker is small and it doesn't need segmented
  2483. download.
  2484. * src/FtpNegotiationCommand.cc
  2485. * src/HttpRequest.cc
  2486. * src/HttpResponseCommand.cc
  2487. * src/HttpSkipResponseCommand.cc
  2488. * src/RequestGroup.cc
  2489. * src/RequestGroup.h
  2490. * src/TrackerWatcherCommand.cc
  2491. * test/HttpRequestTest.cc
  2492. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2493. Fixed the bug that causes floating exception when -T option is used and
  2494. no URIs are given.
  2495. * src/download_helper.cc
  2496. * test/DownloadHelperTest.cc
  2497. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  2498. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  2499. errors in MinGW:
  2500. Closed file after saving server stats (RequestGroupMan.cc)
  2501. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  2502. Ignored case & handled 2-digit years (strptime.c)
  2503. Added missing suseconds_t definition (a2time.h)
  2504. Fixed socket CLOSE() define (SocketCore.cc)
  2505. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  2506. Changed utime() test values from x000 to x00000 as MinGW failed on
  2507. values less than timezone offset from Unix epoch
  2508. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  2509. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  2510. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  2511. handle negative dates (CookieParserTest.cc)
  2512. * src/a2time.h
  2513. * src/FtpConnection.cc
  2514. * src/RequestGroupMan.cc
  2515. * src/SocketCore.cc
  2516. * src/strptime.c
  2517. * test/CookieParserTest.cc
  2518. * test/CopyDiskAdaptorTest.cc
  2519. * test/FileTest.cc
  2520. * test/FtpConnectionTest.cc
  2521. * test/MultiDiskAdaptorTest.cc
  2522. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2523. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  2524. * doc/aria2c.1.txt
  2525. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2526. * Release 1.0.0
  2527. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2528. Added '~' to reserved characters.
  2529. * src/Util.cc
  2530. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2531. Do not urlencode Request::url in setUrl() because we want unmodified
  2532. URL using Request::getUrl()
  2533. * src/Request.cc
  2534. * src/Request.h
  2535. * test/RequestTest.cc
  2536. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2537. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  2538. Thanks to all translators.
  2539. * po/bg.po
  2540. * po/fr.po
  2541. * po/ja.po
  2542. * po/ru.po
  2543. * po/uk.po
  2544. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2545. Bump up version number to 1.0.0
  2546. * configure.ac
  2547. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2548. Added nosqlite3 build to build_test.sh.
  2549. Renamed noxml as expat.
  2550. * build_test.sh
  2551. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2552. Updated INPUT FILE section.
  2553. * doc/aria2c.1.txt
  2554. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2555. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  2556. on big endian systems because test .aria2 files are made for little
  2557. endian systems.
  2558. * test/DefaultBtProgressInfoFileTest.cc
  2559. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2560. Dropped ares support.
  2561. * README
  2562. * configure.ac
  2563. * m4/libares.m4: Removed.
  2564. * src/AsyncNameResolver.cc
  2565. * src/Makefile.am
  2566. * test/Makefile.am
  2567. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2568. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  2569. Removed const qualifier from DiskWriter::size().
  2570. * src/AbstractDiskWriter.cc
  2571. * src/AbstractDiskWriter.h
  2572. * src/ByteArrayDiskWriter.cc
  2573. * src/ByteArrayDiskWriter.h
  2574. * src/DiskWriter.h
  2575. * test/ByteArrayDiskWriterTest.cc
  2576. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2577. Fixed the bug that causes segmentation fault/bus error during executing
  2578. choking algorithm while seeding. This is caused by improper
  2579. implementation of compare function which returns inconsistent results
  2580. depending on the timing of last unchoke.
  2581. * src/BtSeederStateChoke.cc
  2582. * src/BtSeederStateChoke.h
  2583. * src/DefaultPeerStorage.cc
  2584. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2585. Removed TODO
  2586. * TODO
  2587. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2588. Added a section that explains how to pass argument to options that
  2589. takes optional arguments with its short form.
  2590. * doc/aria2c.1.txt
  2591. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2592. Added -u for the short form of --max-upload-limit option.
  2593. * doc/aria2c.1.txt
  2594. * src/option_processing.cc
  2595. * src/usage_text.h
  2596. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2597. Added -V for the short form of --check-integrity option.
  2598. Now the argument of --check-integrity option is optional:
  2599. if it is omitted, it is evaluated as true.
  2600. * doc/aria2c.1.txt
  2601. * src/option_processing.cc
  2602. * src/usage_text.h
  2603. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2604. Made the default value of --ftp-pasv option set to true and it can take
  2605. true/false values.
  2606. * src/OptionHandlerFactory.cc
  2607. * src/option_processing.cc
  2608. * src/usage_text.h
  2609. * doc/aria2c.1.txt
  2610. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2611. Given custom random number generator to std::random_shuffle.
  2612. * src/AnnounceList.cc
  2613. * src/BtLeecherStateChoke.cc
  2614. * src/BtSeederStateChoke.cc
  2615. * src/DefaultBtRequestFactory.cc
  2616. * src/MetalinkEntry.cc
  2617. * src/RarestPieceSelector.cc
  2618. * src/SimpleRandomizer.cc
  2619. * src/SimpleRandomizer.h
  2620. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2621. Now the default value of --enable-direct-io is true.
  2622. * src/OptionHandlerFactory.cc
  2623. * doc/aria2c.1.txt
  2624. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2625. Erase peer before executing onReturningPeer and onErasingPeer
  2626. because choking algorithm called from onReturningPeer doesn't
  2627. like erasing peer in the active peer list.
  2628. * src/DefaultPeerStorage.cc
  2629. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2630. Instead of creating special filename in createDownloadResult() if
  2631. inMemoryDownload() is true, now it is done in getFilePath().
  2632. * src/RequestGroup.cc
  2633. * test/RequestGroupTest.cc
  2634. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2635. Print "[MEMORY]" and filename if a file is not saved in disk and just
  2636. processed in memory. This is the fix for previous comment out.
  2637. * src/MemoryBufferPreDownloadHandler.cc
  2638. * src/RequestGroup.cc
  2639. * src/RequestGroup.h
  2640. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2641. Commented out the code which sets virtual directory path "[MEMORY]"
  2642. propagate directory to store to following RequestGroup.
  2643. * src/MemoryBufferPreDownloadHandler.cc
  2644. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2645. Bump up version number to 1.0.0b
  2646. * configure.ac
  2647. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2648. Added input_uris.txt to EXTRA_DIST
  2649. * test/Makefile.am
  2650. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2651. Removed PeerObject.h from Makefile.am
  2652. * src/Makefile.am
  2653. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2654. Avoid slow seeding
  2655. * src/PeerInteractionCommand.cc
  2656. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2657. Updated usage for -i option.
  2658. * src/usage_text.h (TEXT_INPUT_FILE)
  2659. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2660. Added INPUT FILE section to man page.
  2661. Escaped fake URLs.
  2662. * doc/aria2c.1.txt
  2663. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2664. Fixed wrong note position for -o option.
  2665. * doc/aria2c.1.txt
  2666. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2667. Fixed compile error without SSL/XML library.
  2668. * src/DefaultBtProgressInfoFile.cc
  2669. * src/DefaultBtProgressInfoFile.h
  2670. * src/FileMetalinkParserState.cc
  2671. * src/RequestGroup.h
  2672. * src/SocketCore.cc
  2673. * src/SocketCore.h
  2674. * src/VerificationMetalinkParserState.cc
  2675. * src/download_helper.h
  2676. * src/main.cc
  2677. * test/DefaultBtProgressInfoFileTest.cc
  2678. * test/DownloadHelperTest.cc
  2679. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2680. Rewritten URI handling functions. They are now provided as a testable
  2681. functions.
  2682. * src/Makefile.am
  2683. * src/RequestGroup.cc
  2684. * src/RequestGroup.h
  2685. * src/download_helper.cc
  2686. * src/download_helper.h
  2687. * src/main.cc
  2688. * test/DownloadHelperTest.cc
  2689. * test/Makefile.am
  2690. * test/input_uris.txt
  2691. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2692. Quickly terminate commands when ctrl-c is pressed.
  2693. * src/DownloadEngine.cc
  2694. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2695. Quickly terminate idle commands when download finished.
  2696. * src/AbstractCommand.cc
  2697. * src/DownloadCommand.cc
  2698. * src/DownloadEngine.cc
  2699. * src/DownloadEngine.h
  2700. * src/SleepCommand.cc
  2701. * src/SleepCommand.h
  2702. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2703. Added the ability to specify output filename and directory in input
  2704. file.
  2705. Additional parameters are added in the following line of URIs
  2706. with proceeding white space(s), 1 parameter in 1 line.
  2707. The parameter names are the same with the command-line option name
  2708. without proceeding "--". Not all the options are available here:
  2709. at the moment, 'dir' and 'out' options are avialable.
  2710. Please note that out option has no effect against Metalink or BitTorrent
  2711. downloads.
  2712. Example input file:
  2713. http://host/foo-1.1.tar.bz2
  2714. out=foo.tar.bz2
  2715. dir=/tmp/downloads
  2716. http://host/thundermonkey-2.0.tar.bz2
  2717. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  2718. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  2719. thundermonkey-2.0.tar.bz2 is saved as
  2720. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  2721. * src/BtPostDownloadHandler.cc
  2722. * src/Metalink2RequestGroup.cc
  2723. * src/Metalink2RequestGroup.h
  2724. * src/MetalinkPostDownloadHandler.cc
  2725. * src/UriListParser.cc
  2726. * src/UriListParser.h
  2727. * src/main.cc
  2728. * test/Metalink2RequestGroupTest.cc
  2729. * test/UriListParserTest.cc
  2730. * test/filelist1.txt
  2731. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2732. Fixed error when SSL library is not found.
  2733. * configure.ac
  2734. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2735. Cross referenced among -s, -C and -j options.
  2736. Updated usage of -C and -s options.
  2737. * src/usage_text.h
  2738. * doc/aria2c.1.txt
  2739. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2740. Fixed bad cast in 32bit platforms.
  2741. * test/DefaultPieceStorageTest.cc
  2742. (DefaultPieceStorageTest::testGetCompletedLength)
  2743. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2744. Fixed unit test fails on 32bit platforms.
  2745. * test/CookieParserTest.cc
  2746. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2747. Show an average download speed in Download results.
  2748. * src/BtFileAllocationEntry.cc
  2749. * src/DefaultPieceStorage.cc
  2750. * src/DownloadContext.cc
  2751. * src/DownloadContext.h
  2752. * src/DownloadResult.h
  2753. * src/RequestGroup.cc
  2754. * src/RequestGroupMan.cc
  2755. * src/StreamFileAllocationEntry.cc
  2756. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2757. Fixed the bug that metalink file is not processed if Content-Type
  2758. field has a paramter.
  2759. * src/HttpResponse.cc
  2760. * src/HttpResponse.h
  2761. * test/HttpResponseTest.cc
  2762. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2763. Removed unused code.
  2764. * src/DefaultBtAnnounce.cc
  2765. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2766. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  2767. the value larger than DefaultPieceStorage::getTotalLength() when
  2768. in flight pieces are involved.
  2769. * src/DefaultPieceStorage.cc
  2770. * test/DefaultPieceStorageTest.cc
  2771. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2772. Bump up version number to 1.0.0a.
  2773. * configure.ac
  2774. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2775. Updated configure.ac
  2776. * configure.ac
  2777. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2778. Added usege for proxy.
  2779. * doc/aria2c.1.txt
  2780. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2781. Added usage for --ca-certificate, --certificate, --private-key and
  2782. --check-certificate options.
  2783. * doc/aria2c.1.txt
  2784. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2785. Updated man page
  2786. * doc/aria2c.1.txt
  2787. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2788. Added --no-proxy option. It receives comman separated hostname or
  2789. domains to which proxy should not be used.
  2790. aria2 honors the environment variable no_proxy to override no-proxy
  2791. value in configuration file. The user can override the environment
  2792. variable no_proxy with --no-proxy command-line option.
  2793. * src/AbstractCommand.cc
  2794. * src/OptionHandlerFactory.cc
  2795. * src/option_processing.cc
  2796. * src/prefs.cc
  2797. * src/prefs.h
  2798. * src/usage_text.h
  2799. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2800. Added the ability to verify peer in SSL/TLS using given CA certificates.
  2801. The CA certificates are specified in --ca-certificate option.
  2802. By default, the verification is disabled. Use --check-certificate
  2803. option to enable it.
  2804. * src/HttpRequestCommand.cc
  2805. * src/LibgnutlsTLSContext.cc
  2806. * src/LibgnutlsTLSContext.h
  2807. * src/LibsslTLSContext.cc
  2808. * src/LibsslTLSContext.h
  2809. * src/MultiUrlRequestInfo.cc
  2810. * src/OptionHandlerFactory.cc
  2811. * src/SocketCore.cc
  2812. * src/SocketCore.h
  2813. * src/a2functional.h
  2814. * src/message.h
  2815. * src/option_processing.cc
  2816. * src/prefs.cc
  2817. * src/prefs.h
  2818. * src/usage_text.h
  2819. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2820. Added client certificate authentication for SSL/TLS.
  2821. Currently a private key must be decrypted for use with aria2.
  2822. If a user accidentally gives encrypted file to aria2 then following
  2823. thing happens:
  2824. If encrypted private key is given to aria2, it behaves differently
  2825. depending on the ssl library it uses. If aria2 built with openssl then
  2826. openssl prompts the user for password. If aria2 build with gnutls then
  2827. aria2 exists with error at start up.
  2828. * src/DownloadEngineFactory.cc
  2829. * src/MultiUrlRequestInfo.cc
  2830. * src/OptionHandlerFactory.cc
  2831. * src/option_processing.cc
  2832. * src/prefs.cc
  2833. * src/prefs.h
  2834. * src/usage_text.h
  2835. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2836. Introduced TLSContext that holds TLS related data that can be shared
  2837. with multiple SSL connections.
  2838. * src/DownloadEngineFactory.cc
  2839. * src/LibgnutlsTLSContext.cc
  2840. * src/LibgnutlsTLSContext.h
  2841. * src/LibsslTLSContext.cc
  2842. * src/LibsslTLSContext.h
  2843. * src/Makefile.am
  2844. * src/SocketCore.cc
  2845. * src/SocketCore.h
  2846. * src/TLSContext.h
  2847. * src/message.h
  2848. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2849. Fixed the bug that the DiskWriter of the first FileEntry whose
  2850. `needsFileAllocation' property is false is not created
  2851. even if it shares a piece with next FileEntry which `requested' property
  2852. is true.
  2853. Fixed the bug that zero-length file is not created if pre file
  2854. allocation is not done.
  2855. * src/MultiDiskAdaptor.cc
  2856. * src/MultiDiskAdaptor.h
  2857. * test/MultiDiskAdaptorTest.cc
  2858. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2859. Added the ability to pool proxy connection.
  2860. The conneciton in FTP with proxy-method=GET is not pooled.
  2861. Proxy-Connection header will not be sent when sending CONNECT method.
  2862. * src/DownloadEngine.cc
  2863. * src/DownloadEngine.h
  2864. * src/FtpFinishDownloadCommand.cc
  2865. * src/FtpInitiateConnectionCommand.cc
  2866. * src/FtpNegotiationCommand.cc
  2867. * src/HttpDownloadCommand.cc
  2868. * src/HttpInitiateConnectionCommand.cc
  2869. * src/HttpRequest.cc
  2870. * src/HttpRequest.h
  2871. * src/HttpResponse.cc
  2872. * src/HttpSkipResponseCommand.cc
  2873. * test/HttpRequestTest.cc
  2874. * test/HttpResponseTest.cc
  2875. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2876. Handle date before epoch.
  2877. To create *bad* Time object, call Time::null().
  2878. * src/CookieParser.cc
  2879. * src/FtpConnection.cc
  2880. * src/FtpConnection.h
  2881. * src/FtpNegotiationCommand.cc
  2882. * src/RequestGroup.cc
  2883. * src/TimeA2.cc
  2884. * src/TimeA2.h
  2885. * test/CookieParserTest.cc
  2886. * test/FtpConnectionTest.cc
  2887. * test/TimeTest.cc
  2888. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2889. Added support for following envrionment variables: http_proxy,
  2890. https_proxy, ftp_proxy and all_proxy.
  2891. Each variable is equivalent to the aria2 option whose name is the
  2892. variable name with '_' replaced with '-'.
  2893. They overrides options specified in aria2.conf file.
  2894. The envrionment variables can be overrode using command-line option.
  2895. * src/option_processing.cc
  2896. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2897. Renamed --http-proxy-method as --proxy-method.
  2898. * src/AbstractCommand.cc
  2899. * src/FtpInitiateConnectionCommand.cc
  2900. * src/HttpInitiateConnectionCommand.cc
  2901. * src/OptionHandlerFactory.cc
  2902. * src/option_processing.cc
  2903. * src/prefs.cc
  2904. * src/prefs.h
  2905. * src/usage_text.h
  2906. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2907. Deprecated --http-proxy-user and --http-proxy-passwd options.
  2908. Added --https-proxy, --ftp-proxy and --all-proxy options.
  2909. Above 3 options and --http-proxy option can handle proxy in URL format
  2910. like: http://user:passwd@host:port.
  2911. If a proxy requires user/password, they must be specified in a URL.
  2912. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  2913. instead.
  2914. * src/AbstractCommand.cc
  2915. * src/AbstractCommand.h
  2916. * src/AbstractProxyRequestCommand.cc
  2917. * src/AbstractProxyRequestCommand.h
  2918. * src/AuthConfigFactory.cc
  2919. * src/AuthConfigFactory.h
  2920. * src/FtpFinishDownloadCommand.cc
  2921. * src/FtpInitiateConnectionCommand.cc
  2922. * src/FtpInitiateConnectionCommand.h
  2923. * src/FtpNegotiationCommand.cc
  2924. * src/FtpTunnelRequestCommand.cc
  2925. * src/FtpTunnelRequestCommand.h
  2926. * src/HttpDownloadCommand.cc
  2927. * src/HttpInitiateConnectionCommand.cc
  2928. * src/HttpInitiateConnectionCommand.h
  2929. * src/HttpProxyRequestCommand.cc
  2930. * src/HttpProxyRequestCommand.h
  2931. * src/HttpRequest.cc
  2932. * src/HttpRequest.h
  2933. * src/HttpRequestCommand.cc
  2934. * src/HttpRequestCommand.h
  2935. * src/HttpSkipResponseCommand.cc
  2936. * src/InitiateConnectionCommand.cc
  2937. * src/InitiateConnectionCommand.h
  2938. * src/OptionHandlerFactory.cc
  2939. * src/OptionHandlerImpl.h
  2940. * src/Request.cc
  2941. * src/option_processing.cc
  2942. * src/prefs.cc
  2943. * src/prefs.h
  2944. * src/usage_text.h
  2945. * test/AuthConfigFactoryTest.cc
  2946. * test/HttpRequestTest.cc
  2947. * test/OptionHandlerTest.cc
  2948. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2949. Execute choking algorithm when unchoked and interested peer is
  2950. disconected.
  2951. * src/DefaultPeerStorage.cc
  2952. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2953. Added testcase for BtNotInterestedMessage from unchoked peer.
  2954. * test/BtNotInterestedMessageTest.cc
  2955. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2956. Execute choking algorithm when BtInterestedMessage arrives from
  2957. unchoked peer.
  2958. * src/BtInterestedMessage.cc
  2959. * src/BtInterestedMessage.h
  2960. * src/DefaultBtMessageFactory.cc
  2961. * test/BtInterestedMessageTest.cc
  2962. * test/MockPeerStorage.h
  2963. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2964. AuthConfigFactory is now part of DownloadEngine.
  2965. * src/AbstractProxyRequestCommand.cc
  2966. * src/AuthConfigFactory.h
  2967. * src/DownloadEngine.cc
  2968. * src/DownloadEngine.h
  2969. * src/FtpConnection.cc
  2970. * src/FtpConnection.h
  2971. * src/FtpNegotiationCommand.cc
  2972. * src/HttpConnection.cc
  2973. * src/HttpRequest.cc
  2974. * src/HttpRequest.h
  2975. * src/HttpRequestCommand.cc
  2976. * src/HttpResponse.cc
  2977. * src/HttpResponseCommand.cc
  2978. * src/HttpSkipResponseCommand.cc
  2979. * src/MultiUrlRequestInfo.cc
  2980. * src/main.cc
  2981. * test/FtpConnectionTest.cc
  2982. * test/HttpRequestTest.cc
  2983. * test/HttpResponseTest.cc
  2984. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2985. Corrected catched exception type.
  2986. * src/ServerStatMan.cc
  2987. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2988. DNSCache is now part of DownloadEngine.
  2989. * src/DNSCache.h
  2990. * src/DownloadEngine.cc
  2991. * src/DownloadEngine.h
  2992. * src/InitiateConnectionCommand.cc
  2993. * src/MultiUrlRequestInfo.cc
  2994. * test/Makefile.am
  2995. * test/Makefile.in
  2996. * test/SimpleDNSCacheTest.cc
  2997. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2998. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  2999. DownloadEngine.
  3000. * src/ActivePeerConnectionCommand.cc
  3001. * src/BtSetup.cc
  3002. * src/CUIDCounter.h
  3003. * src/DHTSetup.cc
  3004. * src/DownloadCommand.cc
  3005. * src/DownloadEngine.cc
  3006. * src/DownloadEngine.h
  3007. * src/DownloadEngineFactory.cc
  3008. * src/FileAllocationDispatcherCommand.cc
  3009. * src/InitiatorMSEHandshakeCommand.cc
  3010. * src/PeerInitiateConnectionCommand.cc
  3011. * src/PeerInteractionCommand.cc
  3012. * src/PeerListenCommand.cc
  3013. * src/RequestGroup.cc
  3014. * src/StreamFileAllocationEntry.cc
  3015. * src/TrackerWatcherCommand.cc
  3016. * src/main.cc
  3017. * test/RequestGroupManTest.cc
  3018. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3019. Implemented commented code in BtSeederStateChoke
  3020. * src/BtSeederStateChoke.cc
  3021. * src/Peer.cc
  3022. * src/Peer.h
  3023. * src/PeerInteractionCommand.cc
  3024. * src/PeerSessionResource.cc
  3025. * src/PeerSessionResource.h
  3026. * test/MockBtMessageDispatcher.h
  3027. * test/PeerSessionResourceTest.cc
  3028. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3029. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  3030. its object.
  3031. * src/AbstractBtMessage.cc
  3032. * src/ActivePeerConnectionCommand.cc
  3033. * src/ActivePeerConnectionCommand.h
  3034. * src/BtContextAwareCommand.cc
  3035. * src/BtContextAwareCommand.h
  3036. * src/BtExtendedMessage.cc
  3037. * src/BtExtendedMessage.h
  3038. * src/BtInterestedMessage.cc
  3039. * src/BtInterestedMessage.h
  3040. * src/BtNotInterestedMessage.cc
  3041. * src/BtNotInterestedMessage.h
  3042. * src/BtRegistry.cc
  3043. * src/BtRegistry.h
  3044. * src/BtSeederStateChoke.cc
  3045. * src/BtSetup.cc
  3046. * src/DHTGetPeersCommand.cc
  3047. * src/DHTGetPeersCommand.h
  3048. * src/DHTPeerAnnounceEntry.cc
  3049. * src/DHTPeerAnnounceEntry.h
  3050. * src/DHTPeerAnnounceStorage.cc
  3051. * src/DHTPeerAnnounceStorage.h
  3052. * src/DHTPeerLookupTask.cc
  3053. * src/DHTPeerLookupTask.h
  3054. * src/DHTSetup.cc
  3055. * src/DHTSetup.h
  3056. * src/DHTTaskFactory.h
  3057. * src/DHTTaskFactoryImpl.cc
  3058. * src/DHTTaskFactoryImpl.h
  3059. * src/DefaultBtAnnounce.cc
  3060. * src/DefaultBtInteractive.cc
  3061. * src/DefaultBtInteractive.h
  3062. * src/DefaultBtMessageDispatcher.cc
  3063. * src/DefaultBtMessageDispatcher.h
  3064. * src/DefaultBtMessageFactory.cc
  3065. * src/DefaultBtMessageFactory.h
  3066. * src/DefaultBtMessageReceiver.cc
  3067. * src/DefaultBtProgressInfoFile.cc
  3068. * src/DefaultBtProgressInfoFile.h
  3069. * src/DefaultBtRequestFactory.cc
  3070. * src/DefaultBtRequestFactory.h
  3071. * src/DefaultExtensionMessageFactory.cc
  3072. * src/DefaultExtensionMessageFactory.h
  3073. * src/DefaultPeerStorage.cc
  3074. * src/DefaultPeerStorage.h
  3075. * src/DownloadEngine.cc
  3076. * src/DownloadEngine.h
  3077. * src/InitiatorMSEHandshakeCommand.cc
  3078. * src/InitiatorMSEHandshakeCommand.h
  3079. * src/MSEHandshake.cc
  3080. * src/MSEHandshake.h
  3081. * src/Makefile.am
  3082. * src/Makefile.in
  3083. * src/PeerChokeCommand.cc
  3084. * src/PeerChokeCommand.h
  3085. * src/PeerInitiateConnectionCommand.cc
  3086. * src/PeerInitiateConnectionCommand.h
  3087. * src/PeerInteractionCommand.cc
  3088. * src/PeerInteractionCommand.h
  3089. * src/PeerObject.h
  3090. * src/PeerReceiveHandshakeCommand.cc
  3091. * src/PeerReceiveHandshakeCommand.h
  3092. * src/ReceiverMSEHandshakeCommand.cc
  3093. * src/RequestGroup.cc
  3094. * src/RequestGroup.h
  3095. * src/RequestGroupMan.cc
  3096. * src/RequestGroupMan.h
  3097. * src/SeedCheckCommand.cc
  3098. * src/SeedCheckCommand.h
  3099. * src/ShareRatioSeedCriteria.h
  3100. * src/SimpleBtMessage.cc
  3101. * src/TrackerWatcherCommand.cc
  3102. * src/TrackerWatcherCommand.h
  3103. * src/UTPexExtensionMessage.cc
  3104. * src/UTPexExtensionMessage.h
  3105. * test/BtCancelMessageTest.cc
  3106. * test/BtChokeMessageTest.cc
  3107. * test/BtExtendedMessageTest.cc
  3108. * test/BtInterestedMessageTest.cc
  3109. * test/BtNotInterestedMessageTest.cc
  3110. * test/BtPieceMessageTest.cc
  3111. * test/BtPortMessageTest.cc
  3112. * test/BtRegistryTest.cc
  3113. * test/BtRejectMessageTest.cc
  3114. * test/BtRequestMessageTest.cc
  3115. * test/DHTPeerAnnounceEntryTest.cc
  3116. * test/DHTPeerAnnounceStorageTest.cc
  3117. * test/DefaultBtMessageDispatcherTest.cc
  3118. * test/DefaultBtMessageFactoryTest.cc
  3119. * test/DefaultBtProgressInfoFileTest.cc
  3120. * test/DefaultBtRequestFactoryTest.cc
  3121. * test/DefaultExtensionMessageFactoryTest.cc
  3122. * test/MSEHandshakeTest.cc
  3123. * test/MockDHTTaskFactory.h
  3124. * test/ShareRatioSeedCriteriaTest.cc
  3125. * test/UTPexExtensionMessageTest.cc
  3126. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3127. Fixed compiler warning.
  3128. * test/UtilTest.cc
  3129. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3130. Treat Cookie object as session cookie if expiry = 0 is given.
  3131. With this change, you can specify session scoped cookies in an external
  3132. file setting expiry value to 0.
  3133. * src/Cookie.cc
  3134. * src/Cookie.h
  3135. * test/CookieParserTest.cc
  3136. * test/CookieStorageTest.cc
  3137. * test/CookieTest.cc
  3138. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3139. Changed signature of DHTMessageFactory::createResponseMessage().
  3140. Removed unused validateIDMatch.
  3141. * src/DHTMessageFactory.h
  3142. * src/DHTMessageFactoryImpl.cc
  3143. * src/DHTMessageFactoryImpl.h
  3144. * src/DHTMessageTracker.cc
  3145. * test/DHTMessageFactoryImplTest.cc
  3146. * test/MockDHTMessageFactory.h
  3147. Dropped DHT message coming from same ID of localhost.
  3148. * src/DHTMessageReceiver.cc
  3149. Rejected adding node whose ID is the same as localhost's.
  3150. * src/DHTRoutingTable.cc
  3151. * test/BtPortMessageTest.cc
  3152. * test/DHTRoutingTableTest.cc
  3153. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3154. Pool connection when redirection occurs with Content-Length = 0.
  3155. * src/HttpSkipResponseCommand.cc
  3156. * src/HttpSkipResponseCommand.h
  3157. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3158. Fixed the bug that causes time out when redirection occurs with
  3159. content-length 0.
  3160. * src/HttpResponseCommand.cc
  3161. * src/HttpSkipResponseCommand.cc
  3162. * src/HttpSkipResponseCommand.h
  3163. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3164. Now each status legends is shown only when it appears in Download
  3165. Result. If Download Result has no item, then status legend will not
  3166. be printed.
  3167. * src/RequestGroupMan.cc
  3168. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3169. Removed duplicate creation of OptionHandlers.
  3170. * src/option_processing.cc
  3171. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3172. Fixed the bug that causes segmentation fault when accessing files which
  3173. don't exist or are not included in --select-file option while
  3174. validating chunk checksum.
  3175. * src/MultiDiskAdaptor.cc
  3176. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3177. Fixed compiler warning.
  3178. * test/UtilTest.cc
  3179. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3180. Included cstdlib. This fixed the compile error with g++-4.3.2.
  3181. * src/IteratableChecksumValidator.cc
  3182. * src/IteratableChunkChecksumValidator.cc
  3183. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3184. * Release 0.16.2
  3185. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3186. Added Serbian translation. Updated Ukrainian translation.
  3187. Thanks to all translators.
  3188. * po/sr.po
  3189. * po/uk.po
  3190. * po/LINGUAS
  3191. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3192. Bump up version number to 0.16.2
  3193. * configure.ac
  3194. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3195. Added length equality test to operator== to drop a piece message
  3196. whose length does not match to the requested one.
  3197. * src/RequestSlot.cc
  3198. * test/DefaultBtMessageDispatcherTest.cc
  3199. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3200. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  3201. recieved.
  3202. In this fix, if a request larger than 16KiB length is received, aria2
  3203. disconnects the peer.
  3204. * src/BtConstants.h
  3205. * src/PeerMessageUtil.cc
  3206. * src/PeerMessageUtil.h
  3207. * test/BtRequestMessageTest.cc
  3208. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3209. * Release 0.16.1
  3210. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3211. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  3212. * doc/aria2c.1.txt
  3213. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3214. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  3215. Updated French, Simplified Chinese and Japanese translations.
  3216. Thanks to all translators.
  3217. en@quot and en@boldquot are also added.
  3218. * po/LINGUAS
  3219. * po/fr.po
  3220. * po/ja.po
  3221. * po/uk.po
  3222. * po/vi.po
  3223. * po/zh_CN.po
  3224. * po/zh_TW.po
  3225. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3226. Bump up version number to 0.16.1.
  3227. * configure.ac
  3228. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3229. Updated README.
  3230. * README
  3231. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3232. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  3233. not to replace '--' with em dash character.
  3234. * doc/aria2c.1.txt
  3235. * doc/makeman
  3236. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3237. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  3238. every SEC seconds.
  3239. * src/DownloadEngineFactory.cc
  3240. * src/OptionHandlerFactory.cc
  3241. * src/option_processing.cc
  3242. * src/usage_text.h
  3243. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3244. Fixed compile warning on linux-amd64
  3245. * src/FtpConnection.cc
  3246. * src/IteratableChunkChecksumValidator.cc
  3247. * src/MultiDiskAdaptor.cc
  3248. Fixed the bug that unit test fails on linux-amd64
  3249. * test/UtilTest.cc
  3250. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3251. Added --dht-file-path option to change the path to dht.dat, which is a
  3252. serialized DHT routing table.
  3253. * src/OptionHandlerFactory.cc
  3254. * src/option_processing.cc
  3255. * src/usage_text.h
  3256. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3257. Fixed possible underflow.
  3258. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  3259. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3260. Fixed the bug that last character in URI is not encoded.
  3261. * src/Request.cc
  3262. * test/RequestTest.cc
  3263. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3264. Fixed the bug that referer header field contains fragment.
  3265. Now Request class removes fragment part of URI and encodes it
  3266. in Request::setUri() and setReferer().
  3267. * src/Request.h
  3268. * src/Request.cc
  3269. * test/RequestTest.cc
  3270. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3271. Added missing m4 macros.
  3272. * m4/cppunit.m4
  3273. * m4/libgcrypt.m4
  3274. * m4/libgnutls-extra.m4
  3275. * m4/libgnutls.m4
  3276. * m4/libxml2.m4
  3277. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3278. Fixed compile error with gcc-4.4(snapshot)
  3279. * src/File.cc
  3280. * src/FtpConnection.cc
  3281. * src/OptionHandlerImpl.h
  3282. * src/Util.cc
  3283. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3284. Removed assert()
  3285. * src/SocketBuffer.cc (SocketBuffer::send)
  3286. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3287. Changed the type of _numNewConnection to unsigned int.
  3288. * src/ActivePeerConnectionCommand.cc
  3289. * src/ActivePeerConnectionCommand.h
  3290. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3291. * Release 0.16.0
  3292. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3293. Updated doc
  3294. * README
  3295. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3296. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  3297. translations. Thanks to all translators.
  3298. * po/bg.po
  3299. * po/de.po
  3300. * po/fr.po
  3301. * po/ja.po
  3302. * po/zh_CN.po
  3303. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3304. Bump up version number to 0.16.0.
  3305. * configure.ac
  3306. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3307. Casted entry->maxConnections to int32_t for std::min<T> with T =
  3308. int32_t.
  3309. Changed the type of count to int32_t.
  3310. * src/Metalink2RequestGroup.cc
  3311. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3312. Added test for Time::elapsed(time_t).
  3313. * test/TimeTest.cc
  3314. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3315. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  3316. Util::difftv() should be used instead.
  3317. * src/TimeA2.cc
  3318. * src/TimeA2.h
  3319. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3320. Made socket for dht connections non-blocking
  3321. * src/DHTAbstractMessage.cc
  3322. * src/DHTAbstractMessage.h
  3323. * src/DHTConnection.h
  3324. * src/DHTConnectionImpl.cc
  3325. * src/DHTConnectionImpl.h
  3326. * src/DHTMessage.h
  3327. * src/DHTMessageDispatcherImpl.cc
  3328. * src/DHTMessageDispatcherImpl.h
  3329. * src/DHTUnknownMessage.cc
  3330. * src/DHTUnknownMessage.h
  3331. * src/SocketCore.cc
  3332. * src/SocketCore.h
  3333. * test/MockDHTMessage.h
  3334. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3335. Changed the type of offset to int.
  3336. * src/ParameterizedStringParser.cc
  3337. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3338. Made getAsInt() return int32_t
  3339. * src/Option.h
  3340. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3341. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  3342. build.
  3343. * configure.ac
  3344. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3345. Use sqlite3_open if sqlite3_open_v2 is not available.
  3346. * src/Sqlite3MozCookieParser.cc
  3347. * src/Sqlite3MozCookieParser.h
  3348. * m4/sqlite3.m4
  3349. * test/Sqlite3MozCookieParserTest.cc
  3350. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3351. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  3352. * src/BtPieceMessage.cc
  3353. * src/DHTPeerAnnounceStorage.cc
  3354. * src/DefaultPieceStorage.cc
  3355. * src/DownloadCommand.cc
  3356. * src/DownloadEngine.cc
  3357. * src/FtpConnection.cc
  3358. * src/PeerConnection.cc
  3359. * src/PeerMessageUtil.cc
  3360. * src/RequestGroup.cc
  3361. * src/RequestGroupMan.cc
  3362. * src/SimpleBtMessage.cc
  3363. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3364. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  3365. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  3366. * src/AbstractDiskWriter.cc
  3367. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3368. Don't set Request::supportsPersistentConnection() in HttpConnection
  3369. since this code is also used in AbstractProxyResponseCommand.
  3370. Moved those code to HttpResponse.
  3371. * src/HttpResponse.cc
  3372. * src/HttpResponse.h
  3373. * src/HttpConnection.cc
  3374. * src/HttpConnection.h
  3375. * src/HttpResponseCommand.cc
  3376. * test/HttpResponseTest.cc
  3377. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3378. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  3379. The configuration is minimum: no torrent, no metalink, so there may be
  3380. other compile error on their code.
  3381. * src/a2netcompat.h
  3382. * src/File.cc
  3383. * src/File.h
  3384. * src/SocketCore.cc
  3385. * src/SocketCore.h
  3386. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3387. Made a socket of incoming peer non-blocking.
  3388. * src/PeerListenCommand.cc
  3389. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3390. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  3391. whole message data is not sent in one send() call.
  3392. * src/BtPieceMessage.cc
  3393. * src/BtPieceMessage.h
  3394. * src/PeerConnection.cc
  3395. * src/PeerConnection.h
  3396. * src/SimpleBtMessage.cc
  3397. * src/SimpleBtMessage.h
  3398. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3399. Fixed the bug that aria2 downloads faster than max-download-limit when
  3400. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  3401. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  3402. , instead of sum of them.
  3403. * src/ActivePeerConnectionCommand.cc
  3404. * src/DefaultBtInteractive.cc
  3405. * src/DownloadCommand.cc
  3406. * src/PeerInteractionCommand.cc
  3407. * src/PeerReceiveHandshakeCommand.cc
  3408. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3409. Fixed the bug that HTTPS download fails.
  3410. * src/AbstractCommand.cc
  3411. * src/AbstractCommand.h
  3412. * src/DownloadCommand.cc
  3413. * src/FtpConnection.cc
  3414. * src/HttpConnection.cc
  3415. * src/HttpRequestCommand.cc
  3416. * src/HttpResponseCommand.cc
  3417. * src/HttpSkipResponseCommand.cc
  3418. * src/MSEHandshake.cc
  3419. * src/PeerConnection.cc
  3420. * src/SocketCore.cc
  3421. * src/SocketCore.h
  3422. Fixed the bug that aria2 doesn't download whole content body and cannot
  3423. reuse connection if chunked transfer encoding and gzip content encoding
  3424. are set.
  3425. * src/DownloadCommand.cc
  3426. * src/HttpSkipResponseCommand.cc
  3427. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3428. Updated man page.
  3429. * doc/aria2c.1.txt
  3430. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3431. When error occurred while aria2 was parsing an .aria2.conf file, print
  3432. the usage of the option that caused error.
  3433. * src/option_processing.cc
  3434. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3435. Fixed compile error on OptionHandlerException
  3436. * src/Makefile.am
  3437. * src/OptionHandlerException.cc
  3438. * src/OptionHandlerException.h
  3439. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3440. Moved message of the error to OptionHandlerException.h
  3441. * src/NameMatchOptionHandler.h
  3442. * src/OptionHandlerException.h
  3443. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3444. When error occurs while aria2 is parsing an command-line option, print
  3445. the usage of the option.
  3446. * src/Makefile.am
  3447. * src/NameMatchOptionHandler.h
  3448. * src/OptionHandlerException.h
  3449. * src/option_processing.cc
  3450. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3451. Reverted previous change.
  3452. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  3453. username is not in URI.
  3454. * src/HttpRequest.cc
  3455. * src/Request.cc
  3456. * test/HttpRequestTest.cc
  3457. * test/RequestTest.cc
  3458. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3459. Now colon is required for username and password in FTP URL, like:
  3460. ftp://username:password@host.
  3461. If colon is not there, aria2 don't parse it as a username. For example,
  3462. aria2 don't retrieve username from ftp://username@host.
  3463. This fix was made in order to login FTP server via non-transparent ftp
  3464. proxy.
  3465. * src/Request.cc
  3466. * test/RequestTest.cc
  3467. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3468. Use netrc for HTTP.
  3469. Now FTP user/password is sent in Authorization header when
  3470. --ftp-via-http-proxy=get is given.
  3471. * src/AuthConfigFactory.cc
  3472. * src/HttpRequest.cc
  3473. * src/HttpRequest.h
  3474. * src/NetrcAuthResolver.cc
  3475. * src/NetrcAuthResolver.h
  3476. * src/OptionHandlerFactory.cc
  3477. * src/option_processing.cc
  3478. * src/prefs.cc
  3479. * src/prefs.h
  3480. * test/AuthConfigFactoryTest.cc
  3481. * test/HttpRequestTest.cc
  3482. * test/NetrcAuthResolverTest.cc
  3483. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3484. Issue PWD command first and get working directory and use it as a prefix
  3485. for CWD command.
  3486. * src/DownloadEngine.cc
  3487. * src/DownloadEngine.h
  3488. * src/FtpConnection.cc
  3489. * src/FtpConnection.h
  3490. * src/FtpFinishDownloadCommand.cc
  3491. * src/FtpInitiateConnectionCommand.cc
  3492. * src/FtpNegotiationCommand.cc
  3493. * src/FtpNegotiationCommand.h
  3494. * test/FtpConnectionTest.cc
  3495. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3496. Removed default user/pass for FTP user/pass, since it should not have
  3497. precedence over netrc configuration by default.
  3498. * src/OptionHandlerFactory.cc
  3499. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3500. Added debug log for socket event.
  3501. * src/AbstractCommand.cc
  3502. * src/PeerAbstractCommand.cc
  3503. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3504. Log microseconds.
  3505. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  3506. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3507. Replaced HelpItem.cc with OptionHandler.cc.
  3508. * po/POTFILES.in
  3509. Updated po files with 'make update-po'
  3510. * po/aria2c.pot
  3511. * po/*.po
  3512. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3513. Removed possible values from the text.
  3514. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  3515. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3516. Removed unused preferences:
  3517. PREF_NO_PREALLOCATION
  3518. PREF_STDOUT_LOG
  3519. PREF_TRACKER_MAX_TRIES
  3520. PREF_DIRECT_DOWNLOAD_TIMEOUT
  3521. PREF_MIN_SEGMENT_SIZE
  3522. * src/option_processing.cc
  3523. * src/prefs.cc
  3524. * src/prefs.h
  3525. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3526. Integrated HelpItem into OptionParser to ease the workload for adding
  3527. new options. Removed default value from usage text.
  3528. * src/HelpItem.cc: Removed.
  3529. * src/HelpItem.h: Removed.
  3530. * src/HelpItemFactory.cc: Removed.
  3531. * src/HelpItemFactory.h: Removed.
  3532. * src/Makefile.am
  3533. * src/Makefile.in
  3534. * src/NameMatchOptionHandler.h
  3535. * src/OptionHandler.cc
  3536. * src/OptionHandler.h
  3537. * src/OptionHandlerFactory.cc
  3538. * src/OptionHandlerImpl.h
  3539. * src/OptionParser.cc
  3540. * src/OptionParser.h
  3541. * src/TagContainer.cc: Removed.
  3542. * src/TagContainer.h: Removed.
  3543. * src/TaggedItem.cc: Removed.
  3544. * src/TaggedItem.h: Removed.
  3545. * src/main.cc
  3546. * src/option_processing.cc
  3547. * src/usage_text.h
  3548. * src/version_usage.cc
  3549. * test/HelpItemTest.cc: Removed.
  3550. * test/Makefile.am
  3551. * test/Makefile.in
  3552. * test/OptionHandlerTest.cc
  3553. * test/OptionParserTest.cc
  3554. * test/TagContainerTest.cc: Removed.
  3555. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3556. Moved `TransferStat stat = ...' to inside the `if' clause.
  3557. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  3558. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3559. Fixed the bug that a block in a piece is requested when same block is
  3560. already requested to the same peer in end game mode.
  3561. * src/BtRequestFactory.h
  3562. * src/DefaultBtInteractive.cc
  3563. * src/DefaultBtRequestFactory.cc
  3564. * src/DefaultBtRequestFactory.h
  3565. * src/DefaultPieceStorage.cc
  3566. * src/DefaultPieceStorage.h
  3567. * src/PieceStorage.h
  3568. * src/UnknownLengthPieceStorage.cc
  3569. * src/UnknownLengthPieceStorage.h
  3570. * test/DefaultBtRequestFactoryTest.cc
  3571. * test/DefaultPieceStorageTest.cc
  3572. * test/MockBtRequestFactory.h
  3573. * test/MockPieceStorage.h
  3574. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3575. Removed _uploadLength and _downloadLength from PeerSessionResource
  3576. and use PeerStat::_sessionUploadLength and
  3577. PeerStat::_sessionDownloadLength.
  3578. * src/PeerSessionResource.cc
  3579. * src/PeerSessionResource.h
  3580. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3581. Fixed the bug that prefixLength of split bucket which doesn't include
  3582. local node ID is incremented.
  3583. * src/DHTBucket.cc
  3584. * src/DHTBucket.h
  3585. * test/DHTBucketTest.cc
  3586. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3587. Added cookies.sqlite to EXTRA_DIST
  3588. * test/Makefile.am
  3589. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3590. Added Turkish translation. Updated French, German, Russian and
  3591. Simplified Chinese translations. Thanks to all translators.
  3592. * po/LINGUAS
  3593. * po/de.po
  3594. * po/fr.po
  3595. * po/ru.po
  3596. * po/tr.po
  3597. * po/zh_CN.po
  3598. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3599. Added deliminating text to the beginning of the log so that one can find
  3600. where the log starts easily.
  3601. * src/main.cc
  3602. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3603. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  3604. to fix compile error when async DNS is not enabled by configuration.
  3605. * src/AbstractCommand.cc
  3606. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3607. If establishing conneciton to a server is failed, then mark error on
  3608. its ServerStat.
  3609. Added the cause of error to log when error event occurred.
  3610. Moved message string to message.h for translation.
  3611. * src/AbstractCommand.cc
  3612. * src/AbstractCommand.h
  3613. * src/FtpNegotiationCommand.cc
  3614. * src/HttpRequestCommand.cc
  3615. * src/PeerAbstractCommand.cc
  3616. * src/message.h
  3617. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3618. Added the function to get error message from socket.
  3619. * src/SocketCore.cc
  3620. * src/SocketCore.h
  3621. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3622. Added convenient method RequestGroupMan::getOrCreateServerStat()
  3623. * src/RequestGroupMan.cc
  3624. * src/RequestGroupMan.h
  3625. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3626. If error event is received in epoll, then abort download immediately.
  3627. * src/AbstractCommand.cc
  3628. * src/Command.cc
  3629. * src/Command.h
  3630. * src/DownloadEngine.cc
  3631. * src/PeerAbstractCommand.cc
  3632. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3633. Added usage message for --uri-selector, --server-stat-of,
  3634. --server-stat-in, --server-stat-timeout options.
  3635. * src/HelpItemFactory.cc
  3636. * src/usage_text.h
  3637. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3638. Added upper limit of FTP response buffer. The current implementation
  3639. uses 4096bytes as a limit.
  3640. * src/FtpConnection.cc
  3641. * src/FtpConnection.h
  3642. * test/FtpConnectionTest.cc
  3643. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3644. Use non-blocking socket for TCP communication to avoid possible
  3645. blocking due to buffer full.
  3646. * src/AbstractProxyRequestCommand.cc
  3647. * src/FtpConnection.cc
  3648. * src/FtpConnection.h
  3649. * src/FtpNegotiationCommand.cc
  3650. * src/FtpNegotiationCommand.h
  3651. * src/HttpConnection.cc
  3652. * src/HttpConnection.h
  3653. * src/HttpRequestCommand.cc
  3654. * src/InitiatorMSEHandshakeCommand.cc
  3655. * src/InitiatorMSEHandshakeCommand.h
  3656. * src/MSEHandshake.cc
  3657. * src/MSEHandshake.h
  3658. * src/Makefile.am
  3659. * src/PeerConnection.cc
  3660. * src/PeerConnection.h
  3661. * src/PeerInteractionCommand.cc
  3662. * src/PeerListenCommand.cc
  3663. * src/ReceiverMSEHandshakeCommand.cc
  3664. * src/ReceiverMSEHandshakeCommand.h
  3665. * src/SocketBuffer.cc
  3666. * src/SocketBuffer.h
  3667. * src/SocketCore.cc
  3668. * src/SocketCore.h
  3669. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3670. Call setStatusRealtime() in constructor.
  3671. * src/RealtimeCommand.cc
  3672. * src/RealtimeCommand.h
  3673. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3674. Call Download::setNoWait(true) to execute newly created command without
  3675. a pause.
  3676. * src/AbstractCommand.cc
  3677. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3678. Added --max-file-not-found=NUM option. If aria2 receives `file not
  3679. found' error from HTTP/FTP server NUM times without getting single
  3680. bytes of data, then force the download to fail.
  3681. Basically aria2 tris all URIs available. So if long list of URIs are
  3682. specified in Metalink, then aria2 will take a long time to fail
  3683. eventually if all URIs are outdated. This option eases this situation
  3684. to limit the number of servers to try.
  3685. * src/FtpNegotiationCommand.cc
  3686. * src/HelpItemFactory.cc
  3687. * src/HttpResponseCommand.cc
  3688. * src/OptionHandlerFactory.cc
  3689. * src/PeerStat.h
  3690. * src/RequestGroup.cc
  3691. * src/RequestGroup.h
  3692. * src/SegmentMan.cc
  3693. * src/SegmentMan.h
  3694. * src/option_processing.cc
  3695. * src/prefs.cc
  3696. * src/prefs.h
  3697. * src/usage_text.h
  3698. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3699. Fixed the bug that bulkReceiveResponse() reads all received data as a
  3700. response even if more than one response is in it.
  3701. * src/FtpConnection.cc
  3702. * src/FtpConnection.h
  3703. * test/FtpConnectionTest.cc
  3704. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3705. Merged from stable-0.15
  3706. * m4/libcares.m4
  3707. Use pkg-config
  3708. * m4/sqlite3.m4
  3709. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3710. Removed unnecessary if statement.
  3711. * src/DefaultPieceStorage.cc (initPieceStorage)
  3712. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3713. Added --connect-timeout option to specify connect timeout in seconds.
  3714. This option is in effect for HTTP/FTP/proxy server. The timeout for
  3715. connecting to BitTorrent peer is not controlled by this option.
  3716. * src/AbstractProxyRequestCommand.cc
  3717. * src/FtpNegotiationCommand.cc
  3718. * src/HelpItemFactory.cc
  3719. * src/HttpRequestCommand.cc
  3720. * src/OptionHandlerFactory.cc
  3721. * src/option_processing.cc
  3722. * src/prefs.cc
  3723. * src/prefs.h
  3724. * src/usage_text.h
  3725. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3726. Added help message for -R option.
  3727. * src/HelpItemFactory.cc
  3728. * src/usage_text.h
  3729. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3730. Added the message that the time is in local time zone.
  3731. * src/RequestGroup.cc
  3732. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3733. Implemented the ability to get timestamp from remote FTP server using
  3734. MDTM command described in RFC3659.
  3735. * src/FtpConnection.cc
  3736. * src/FtpConnection.h
  3737. * src/FtpNegotiationCommand.cc
  3738. * src/FtpNegotiationCommand.h
  3739. * test/FtpConnectionTest.cc
  3740. * test/Makefile.am
  3741. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3742. Implemented the ability to get timestamp from remote HTTP server and
  3743. apply it to local file. To enable this feature, --remote-time option
  3744. is added. No usage text has been written yet.
  3745. If several servers returns difference timestamp, then aria2 uses latest
  3746. one.
  3747. * src/CopyDiskAdaptor.cc
  3748. * src/CopyDiskAdaptor.h
  3749. * src/DirectDiskAdaptor.cc
  3750. * src/DirectDiskAdaptor.h
  3751. * src/DiskAdaptor.h
  3752. * src/File.cc
  3753. * src/File.h
  3754. * src/HttpHeader.cc
  3755. * src/HttpHeader.h
  3756. * src/HttpResponse.cc
  3757. * src/HttpResponse.h
  3758. * src/HttpResponseCommand.cc
  3759. * src/HttpResponseCommand.h
  3760. * src/MultiDiskAdaptor.cc
  3761. * src/MultiDiskAdaptor.h
  3762. * src/OptionHandlerFactory.cc
  3763. * src/RequestGroup.cc
  3764. * src/RequestGroup.h
  3765. * src/RequestGroupMan.cc
  3766. * src/option_processing.cc
  3767. * src/prefs.cc
  3768. * src/prefs.h
  3769. * test/CopyDiskAdaptorTest.cc
  3770. * test/FileTest.cc
  3771. * test/Makefile.am
  3772. * test/Makefile.in
  3773. * test/MultiDiskAdaptorTest.cc
  3774. * test/TestUtil.cc
  3775. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3776. Fixed the bug that DiskWriterEntry is not created when its
  3777. FileEntry.isRequested() is false and it doesn't share a piece with
  3778. other FileEntries that are requested. This bug causes segmentation fault
  3779. in the end.
  3780. * src/MultiDiskAdaptor.cc
  3781. * src/MultiDiskAdaptor.h
  3782. * src/MultiFileAllocationIterator.cc
  3783. * test/MultiDiskAdaptorTest.cc
  3784. * test/MultiFileAllocationIteratorTest.cc
  3785. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3786. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  3787. called if the number of file entries are greater than max open files.
  3788. * src/AbstractSingleDiskAdaptor.cc
  3789. * src/AbstractSingleDiskAdaptor.h
  3790. * src/DiskAdaptor.h
  3791. * src/MultiDiskAdaptor.cc
  3792. * src/MultiDiskAdaptor.h
  3793. * test/MultiDiskAdaptorTest.cc
  3794. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3795. Added a constuctor that receives struct timeval.
  3796. Added operator<.
  3797. * src/TimeA2.cc
  3798. * src/TimeA2.h
  3799. * test/TimeTest.cc
  3800. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3801. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  3802. * src/CookieParser.cc
  3803. * test/CookieParserTest.cc
  3804. * test/HttpResponseTest.cc
  3805. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3806. Implmented the functions to parse date.
  3807. * src/TimeA2.cc
  3808. * src/TimeA2.h
  3809. * test/TimeTest.cc
  3810. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3811. Added "Firefox3 Cookie" feature to FeatureConfig
  3812. * src/FeatureConfig.cc
  3813. * src/FeatureConfig.h
  3814. * test/FeatureConfigTest.cc
  3815. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3816. Bump up version number to 0.16.0b
  3817. * configure.ac
  3818. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3819. Use pkg-config if is is available.
  3820. * m4/openssl.m4
  3821. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3822. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  3823. * src/BtAnnounce.h
  3824. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3825. If an error occurred with a URI, remove identical URI from remaining
  3826. URI list because it is likely that same error occurred in the end and it
  3827. is waste of time.
  3828. * src/AbstractCommand.cc
  3829. * src/RequestGroup.cc
  3830. * src/RequestGroup.h
  3831. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3832. Removed wrong comment.
  3833. * src/DefaultPeerStorage.cc
  3834. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3835. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  3836. Added return value of getpid() to argument of srand() to achieve more
  3837. randomized value.
  3838. * src/SimpleRandomizer.cc
  3839. * src/SimpleRandomizer.h
  3840. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3841. Contact tracker frequently when the number of connections are 0 and
  3842. download is not finished yet.
  3843. * src/ActivePeerConnectionCommand.cc
  3844. * src/BtAnnounce.h
  3845. * src/DefaultBtAnnounce.cc
  3846. * src/DefaultBtAnnounce.h
  3847. * test/MockBtAnnounce.h
  3848. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3849. Moved threshold values to UTPexExtensionMessage.
  3850. * src/DefaultBtInteractive.cc
  3851. * src/Peer.cc
  3852. * src/Peer.h
  3853. * src/UTPexExtensionMessage.cc
  3854. * src/UTPexExtensionMessage.h
  3855. * test/UTPexExtensionMessageTest.cc
  3856. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3857. Added _incoming member to Peer class and made it true if the peer
  3858. initiated connection. Don't add those peer to UTPex message.
  3859. If extended handshake is received, assign _incoming to false.
  3860. * src/DefaultBtInteractive.cc
  3861. * src/HandshakeExtensionMessage.cc
  3862. * src/Peer.cc
  3863. * src/Peer.h
  3864. * src/PeerListenCommand.cc
  3865. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3866. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  3867. Encoding Decoder. Removed size threshold for turning off on the fly
  3868. inflation because resulting file may or may not be inflated depending
  3869. on the file size and I think it is not expected by users.
  3870. This change fixes segmentation fault when Metalink file contains gzipped
  3871. file and its filesize is provided.
  3872. * src/HttpResponseCommand.cc
  3873. * src/HttpResponseCommand.h
  3874. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3875. Made Cookie immutable.
  3876. * src/Cookie.cc
  3877. * src/Cookie.h
  3878. * src/CookieParser.cc
  3879. * src/CookieParser.h
  3880. * src/CookieStorage.cc
  3881. * test/CookieParserTest.cc
  3882. * test/CookieStorageTest.cc
  3883. * test/NsCookieParserTest.cc
  3884. * test/Sqlite3MozCookieParserTest.cc
  3885. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3886. Removed CookieBox, CookieBoxFactory.
  3887. * src/CookieBox.cc
  3888. * src/CookieBox.h
  3889. * src/CookieBoxFactory.cc
  3890. * src/CookieBoxFactory.h
  3891. * src/Makefile.am
  3892. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3893. Use CookieStorage class instead of CookieBox class.
  3894. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  3895. * src/AbstractProxyRequestCommand.cc
  3896. * src/CookieStorage.cc
  3897. * src/DownloadEngine.cc
  3898. * src/DownloadEngine.h
  3899. * src/HttpConnection.cc
  3900. * src/HttpConnection.h
  3901. * src/HttpRequest.cc
  3902. * src/HttpRequest.h
  3903. * src/HttpRequestCommand.cc
  3904. * src/HttpResponse.cc
  3905. * src/HttpResponseCommand.cc
  3906. * src/HttpSkipResponseCommand.cc
  3907. * src/Makefile.am
  3908. * src/MultiUrlRequestInfo.cc
  3909. * src/Request.cc
  3910. * src/Request.h
  3911. * src/main.cc
  3912. * test/AllTest.cc
  3913. * test/CookieStorageTest.cc
  3914. * test/CookieTest.cc
  3915. * test/HttpRequestTest.cc
  3916. * test/HttpResponseTest.cc
  3917. * test/Makefile.am
  3918. * test/NsCookieParserTest.cc
  3919. * test/Sqlite3MozCookieParserTest.cc
  3920. * test/nscookietest.txt
  3921. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3922. Updated
  3923. * test/Cookies.sqlite
  3924. * test/nscookietest.txt
  3925. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3926. Added tests for CookieStorage::load()
  3927. * test/CookieStorageTest.cc
  3928. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3929. Added CookieStorage class which is based on RFC2109 and manages cookies
  3930. more strictly than CookieBox and CookieBoxFactory class.
  3931. * src/CookieStorage.cc
  3932. * src/CookieStorage.h
  3933. * src/Cookie.cc
  3934. * src/Cookie.h
  3935. * test/CookieStorageTest.cc
  3936. * test/CookieTest.cc
  3937. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3938. Fixed the bug that commands are created more than the number of pieces.
  3939. * src/RequestGroup.cc
  3940. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3941. Fixed infinite loop bug in FTP when SIZE command failed.
  3942. * src/FtpNegotiationCommand.cc
  3943. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3944. Removed DirectDiskAdaptorTest.h
  3945. * test/Makefile.am
  3946. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3947. Fixed chunk checksum validation cannot detect trailing garbage data.
  3948. BUG#2074141
  3949. * src/AbstractSingleDiskAdaptor.cc
  3950. * src/AbstractSingleDiskAdaptor.h
  3951. * src/CheckIntegrityEntry.cc
  3952. * src/CheckIntegrityEntry.h
  3953. * src/DiskAdaptor.h
  3954. * src/MultiDiskAdaptor.cc
  3955. * src/MultiDiskAdaptor.h
  3956. * src/RequestGroup.cc
  3957. * test/DirectDiskAdaptorTest.cc
  3958. * test/MultiDiskAdaptorTest.cc
  3959. * test/TestUtil.cc
  3960. * test/TestUtil.h
  3961. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3962. Bump up version number of dht.dat file to 3. In version 3 format, time
  3963. is stored in 64bit, network byte order.
  3964. New build can load old format(version 2) but it saves the file in new
  3965. format. It means once you used new build, your dht.dat becomes
  3966. incompatible with older build.
  3967. * src/DHTRoutingTableDeserializer.cc
  3968. * src/DHTRoutingTableSerializer.cc
  3969. * test/DHTRoutingTableSerializerTest.cc
  3970. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3971. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  3972. * test/Makefile.am
  3973. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3974. Bump up version number of .aria2 control file to 0001.
  3975. New aria2 can still load version 0000 file but it saves the file in
  3976. version 0001 format. It means that new aria2 can resume download
  3977. started by old aria2 but the opposite is not true.
  3978. * src/DefaultBtProgressInfoFile.cc
  3979. * src/DefaultBtProgressInfoFile.h
  3980. * test/DefaultBtProgressInfoFileTest.cc
  3981. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3982. Added ntoh64 and hton64 as inline functions.
  3983. * src/Util.cc
  3984. * test/UtilTest.cc
  3985. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3986. Added sqlite3 depenency and Firefox3 cookie support.
  3987. * README
  3988. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3989. State that firefox3 cookie is supported explicitly in the usage.
  3990. * src/usage_text.h
  3991. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3992. Externalized message.
  3993. * src/RequestGroupMan.cc
  3994. * src/message.h
  3995. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3996. Save temporary file first and rename to the destination on success.
  3997. Added test cases.
  3998. * src/RequestGroupMan.cc
  3999. * test/RequestGroupManTest.cc
  4000. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4001. Fixed the bug that the number of connected peer is exceeding the limit
  4002. (55 by default) in seeding mode.
  4003. Multiplied 0.8 to _maxUploadSpeedLimit.
  4004. * src/ActivePeerConnectionCommand.cc
  4005. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4006. Clear table item.
  4007. * src/Dictionary.cc
  4008. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4009. Fixed error handling of lseek.
  4010. * src/AbstractDiskWriter.cc
  4011. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4012. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  4013. style cookie file.
  4014. * src/usage_text.h
  4015. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4016. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  4017. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  4018. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  4019. * src/Util.cc
  4020. * src/Util.h
  4021. * src/CookieParser.cc
  4022. * test/UtilTest.cc
  4023. * test/CookieParserTest.cc
  4024. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4025. Separate the implementation to load old mozilla format of cookie to
  4026. NsCookieParser class.
  4027. * src/CookieBoxFactory.cc
  4028. * src/CookieBoxFactory.h
  4029. * src/NsCookieParser.cc
  4030. * src/NsCookieParser.h
  4031. * test/NsCookieParserTest.cc
  4032. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4033. Made parse() const
  4034. * src/Sqlite3MozCookieParser.cc
  4035. * src/Sqlite3MozCookieParser.h
  4036. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4037. Added firefox3 cookie support based on the patch submitted by
  4038. tizianomueller.
  4039. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  4040. this functionality.
  4041. * configure.ac
  4042. * m4/sqlite3.m4
  4043. * src/CookieBoxFactory.cc
  4044. * src/CookieBoxFactory.h
  4045. * src/Makefile.am
  4046. * src/Makefile.in
  4047. * src/Sqlite3MozCookieParser.cc
  4048. * src/Sqlite3MozCookieParser.h
  4049. * src/main.cc
  4050. * test/CookieBoxFactoryTest.cc
  4051. * test/Makefile.am
  4052. * test/Makefile.in
  4053. * test/Sqlite3MozCookieParserTest.cc
  4054. * test/badcookies.sqlite
  4055. * test/cookies.sqlite
  4056. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4057. Added Danish and Greek translations.
  4058. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  4059. Great thanks to all translators.
  4060. * po/LINGUAS
  4061. * po/el.po
  4062. * po/da.po
  4063. * po/es.po
  4064. * po/ca.po
  4065. * po/nn.po
  4066. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4067. Fixed man page: --follow-bittorrent should be --follow-torrent
  4068. * doc/aria2c.1.txt
  4069. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4070. Fixed: numCommand is less than the value specified in -C option.
  4071. * src/RequestGroup.cc
  4072. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4073. Fixed occasional assertion failure in PieceSegment.
  4074. Calling PieceStorage::getMissingPiece(size_t) was missing after
  4075. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  4076. creation of duplicate segments and one of the segment was finished then
  4077. assertion failure was caused.
  4078. * src/SegmentMan.cc
  4079. * test/SegmentManTest.cc
  4080. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4081. Added options to load/save the server's performance/status to a file
  4082. and the timeout to drop their data.
  4083. --server-stat-of=FILE specifies the file to which performance data
  4084. is saved.
  4085. --server-stat-if=FILE specifies the file to read previously saved
  4086. by --server-stat-of option. Might be used with --uri-selector=feedback.
  4087. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  4088. TIMEOUT is specified in seconds and the default value is 24hours.
  4089. * src/MultiUrlRequestInfo.cc
  4090. * src/OptionHandlerFactory.cc
  4091. * src/RequestGroupMan.cc
  4092. * src/RequestGroupMan.h
  4093. * src/ServerStatMan.cc
  4094. * src/ServerStatMan.h
  4095. * src/option_processing.cc
  4096. * src/prefs.cc
  4097. * src/prefs.h
  4098. * test/ServerStatManTest.cc
  4099. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4100. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  4101. * src/ServerStatMan.cc
  4102. * src/ServerStatMan.h
  4103. * test/ServerStatManTest.cc
  4104. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4105. Implemented ServerStatMan::load(...) function and its test case.
  4106. * src/ServerStat.cc
  4107. * src/ServerStat.h
  4108. * src/ServerStatMan.cc
  4109. * test/ServerStatManTest.cc
  4110. * test/ServerStatTest.cc
  4111. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4112. Use time_t instead of int32_t. Use int64_t where milli second is
  4113. expected.
  4114. * src/TimeA2.cc
  4115. * src/TimeA2.h
  4116. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4117. Implemented ServerStatMan::save(...) function and its test case.
  4118. * src/ServerStat.cc
  4119. * src/ServerStat.h
  4120. * src/ServerStatMan.cc
  4121. * src/ServerStatMan.h
  4122. * test/ServerStatManTest.cc
  4123. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4124. Now aria2 uses name attribute in Metalink as local filename in
  4125. BitTorrent downloads. BUG#2033999
  4126. * src/BtContext.h
  4127. * src/BtDependency.cc
  4128. * src/DefaultBtContext.cc
  4129. * src/DefaultBtContext.h
  4130. * src/SingleFileDownloadContext.cc
  4131. * src/SingleFileDownloadContext.h
  4132. * test/BtDependencyTest.cc
  4133. * test/DefaultBtContextTest.cc
  4134. * test/MockBtContext.h
  4135. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4136. Added AC_C_BIGENDIAN
  4137. * src/configure.ac
  4138. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4139. Limited numCommand less than or equal to the number of piece.
  4140. * src/RequestGroup.cc
  4141. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4142. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  4143. directive.
  4144. * test/DefaultPieceStorageTest.cc
  4145. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4146. Fixed memory leak in test code
  4147. * test/AnnounceListTest.cc
  4148. * test/DefaultPeerListProcessorTest.cc
  4149. * test/DefaultPeerStorageTest.cc
  4150. * test/MetaFileUtilTest.cc
  4151. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4152. Fixed wrong argument passing to BitfieldMan::isBitSet()
  4153. * src/DefaultPieceStorage.cc
  4154. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4155. Initialized _directIOAllowed
  4156. * src/MultiDiskAdaptor.cc
  4157. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4158. Fixed memory leak
  4159. * src/GZipDecoder.cc
  4160. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4161. Fixed memory leak
  4162. * src/MetalinkParserStateMachine.cc
  4163. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4164. Fixed memory leak
  4165. * src/Dictionary.cc
  4166. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4167. Fixed memory leak
  4168. * src/IteratableChunkChecksumValidator.h
  4169. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4170. Fixed unmatched malloc/free.
  4171. * src/IteratableChunkChecksumValidator.cc
  4172. * src/IteratableChecksumValidator.cc
  4173. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4174. Removed max chunk size check. This change fixes BUG#2040169
  4175. * src/ChunkedDecoder.cc
  4176. * src/ChunkedDecoder.h
  4177. * test/ChunkedDecoderTest.cc
  4178. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4179. Implemented download speed based URI selection algorithm.
  4180. Introduced new option --uri-selector.
  4181. If --uri-selector=feedback is given, aria2 uses download speed observed
  4182. in the previous downloads and chooses fastest server in the URI list.
  4183. Currently at most 10 URIs are considered to introduce randomeness for
  4184. finding better servers. The speed is average download speed in the
  4185. downloads.
  4186. On the other hand, if --uri-selector=inorder is given, which is default,
  4187. URI is tried in order in URI list.
  4188. The usage text for the new option has not been written yet.
  4189. * src/AbstractCommand.cc
  4190. * src/DownloadCommand.cc
  4191. * src/DownloadEngine.cc
  4192. * src/DownloadEngineFactory.cc
  4193. * src/InOrderURISelector.cc
  4194. * src/InOrderURISelector.h
  4195. * src/OptionHandlerFactory.cc
  4196. * src/PeerStat.h
  4197. * src/RequestGroup.cc
  4198. * src/RequestGroup.h
  4199. * src/RequestGroupMan.cc
  4200. * src/RequestGroupMan.h
  4201. * src/SegmentMan.cc
  4202. * src/SegmentMan.h
  4203. * src/ServerStat.cc
  4204. * src/ServerStat.h
  4205. * src/ServerStatMan.cc
  4206. * src/ServerStatMan.h
  4207. * src/ServerStatURISelector.cc
  4208. * src/ServerStatURISelector.h
  4209. * src/URISelector.h
  4210. * src/option_processing.cc
  4211. * src/prefs.cc
  4212. * src/prefs.h
  4213. * test/InOrderURISelectorTest.cc
  4214. * test/RequestGroupManTest.cc
  4215. * test/ServerStatManTest.cc
  4216. * test/ServerStatURISelectorTest.cc
  4217. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4218. * Release 0.15.1+2
  4219. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4220. Bump up version number to 0.15.1+2
  4221. * configure.ac
  4222. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4223. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  4224. * m4/aria2_arg.m4
  4225. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4226. * Release 0.15.1+1
  4227. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4228. Bump up version number to 0.15.1+1
  4229. * configure.ac
  4230. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4231. Fixed the bug that causes segmentaion fault when resuming download
  4232. using metalink without size tag. Reproducible only using HTTP URI.
  4233. * src/HttpResponseCommand.cc
  4234. * src/FtpNegotiationCommand.cc
  4235. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4236. * Release 0.15.1
  4237. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4238. Updated Bulgarian and French translations, thanks to all translators.
  4239. * po/bg.po
  4240. * po/fr.po
  4241. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4242. Bump up version number to 0.15.1
  4243. * configure.ac
  4244. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4245. Avoid repeated call of gettimeofday() when calculating speed.
  4246. * src/SpeedCalc.cc
  4247. * src/SpeedCalc.h
  4248. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4249. Removed writable check when socket's send buffer is full in BitTorrent
  4250. downloads to lower CPU usage.
  4251. * src/PeerInteractionCommand.cc
  4252. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4253. Fixed broken gzip inflation.
  4254. Turn off segmented downloading if gzip content is smaller than or equal
  4255. to 1MiB and inflate the data on the fly, because HTTP response header
  4256. doesn't contain the length of inflated file we can't determin where
  4257. the chunk of data should be written.
  4258. On the other hand, if gzip content is larger than 1MB, then turn off
  4259. on the fly inflation, because some servers returns "content-type: gzip"
  4260. for *.tgz, *.gz files.
  4261. * src/DownloadCommand.cc
  4262. * src/HttpResponseCommand.cc
  4263. * src/HttpResponseCommand.h
  4264. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4265. Applied tizianomueller's patch to fix compile error.
  4266. * test/BitfieldManTest.cc
  4267. * test/BtRequestMessageTest.cc
  4268. * test/DefaultBtContextTest.cc
  4269. * test/DefaultDiskWriterTest.cc
  4270. * test/DefaultPieceStorageTest.cc
  4271. * test/HttpHeaderProcessorTest.cc
  4272. * test/HttpResponseTest.cc
  4273. * test/Metalink2RequestGroupTest.cc
  4274. * test/MetalinkParserControllerTest.cc
  4275. * test/MetalinkProcessorTest.cc
  4276. * test/PeerSessionResourceTest.cc
  4277. * test/UtilTest.cc
  4278. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4279. * Release 0.15.0
  4280. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4281. Reordered src files in POTFILES.in so that usage text appears first.
  4282. * po/POTFILES.in
  4283. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4284. Bump up version number to 0.15.0
  4285. * configure.ac
  4286. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4287. Added Bulgarian translation.
  4288. Updated Catalan, Spanish, French and Japanese translations.
  4289. Thanks to all translators.
  4290. * po/LINGUAS
  4291. * po/bg.po
  4292. * po/ca.po
  4293. * po/es.po
  4294. * po/fr.po
  4295. * po/ja.po
  4296. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4297. Updated feature list. Added libz for dependency section.
  4298. Added a description about unit testing using CppUnit.
  4299. * README
  4300. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4301. Added a test for libz. Quoted where it is necessary.
  4302. * build_test.sh
  4303. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4304. Added GZip to `Enabled Features' list.
  4305. * src/FeatureConfig.cc
  4306. * src/FeatureConfig.h
  4307. * test/FeatureConfigTest.cc
  4308. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4309. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  4310. the transfer has not yet started.
  4311. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  4312. * src/SegmentMan.cc
  4313. * src/SegmentMan.h
  4314. * test/SegmentManTest.cc
  4315. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4316. Cache last calculated average download/upload speed.
  4317. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  4318. cached value.
  4319. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  4320. * src/PeerStat.h
  4321. * src/SpeedCalc.cc
  4322. * src/SpeedCalc.h
  4323. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4324. Call parseUrl directly.
  4325. * src/Request.cc (resetUrl)
  4326. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4327. Supported absolute/relative path in Location header field.
  4328. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  4329. * src/HttpHeader.cc
  4330. * src/HttpHeader.h
  4331. * src/HttpResponse.cc
  4332. * src/HttpSkipResponseCommand.cc
  4333. * src/Request.cc
  4334. * test/HttpHeaderTest.cc
  4335. * test/HttpResponseTest.cc
  4336. * test/RequestTest.cc
  4337. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4338. Changed help text for --load-cookie option.
  4339. * doc/aria2c.1.txt
  4340. * src/usage_text.h
  4341. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4342. Regenerated test/Makefile.in to remove stale ChangeLog.
  4343. * test/Makefile.in
  4344. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4345. Updated po files.
  4346. * po/aria2c.pot
  4347. * po/*.po
  4348. * po/*.gmo
  4349. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4350. Bump up version number to 0.15.0b
  4351. * configure.ac
  4352. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4353. Externalize messages.
  4354. * src/RequestGroupMan.cc
  4355. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  4356. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4357. Use File::exists() instead of File::isFile() to allow non-regular file
  4358. such as block special files.
  4359. * src/AbstractDiskWriter.cc
  4360. * src/MultiDiskWriter.cc
  4361. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4362. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  4363. * src/gai_strerror.h
  4364. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4365. Fixed compile error. Thanks gknauf for the patch.
  4366. * src/asctime_r.c
  4367. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4368. Included asctime_r.h from a2time.h.
  4369. * src/a2time.h
  4370. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4371. Added a message "aria2 doesn't verify signature" to log message when
  4372. signature file is saved.
  4373. * src/RequestGroupMan.cc
  4374. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4375. Added the ability to save signature when download is completed if
  4376. signature is available. The filename of signature file is the path to
  4377. download file followed by ".sig". If it already exists, then signature
  4378. will not be saved.
  4379. * src/RequestGroupMan.cc
  4380. * src/Signature.cc
  4381. * test/SignatureTest.cc
  4382. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4383. Updated the descriptions for --bt-seed-unverified.
  4384. * doc/aria2c.1
  4385. * doc/aria2c.1.html
  4386. * doc/aria2c.1.txt
  4387. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4388. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  4389. that this is not going to verify files using piece hashes.
  4390. * src/HelpItemFactory.cc
  4391. * src/OptionHandlerFactory.cc
  4392. * src/RequestGroup.cc
  4393. * src/option_processing.cc
  4394. * src/prefs.cc
  4395. * src/prefs.h
  4396. * src/usage_text.h
  4397. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4398. Added the ability to retrieve signature from Metalink file.
  4399. A retrieved signature is stored in Signature class and it is held by
  4400. DownloadContext class. Note that aria2 doesn't verify signature.
  4401. * src/DownloadContext.cc
  4402. * src/DownloadContext.h
  4403. * src/Makefile.am
  4404. * src/Makefile.in
  4405. * src/Metalink2RequestGroup.cc
  4406. * src/MetalinkEntry.cc
  4407. * src/MetalinkEntry.h
  4408. * src/MetalinkParserController.cc
  4409. * src/MetalinkParserController.h
  4410. * src/MetalinkParserStateMachine.cc
  4411. * src/MetalinkParserStateMachine.h
  4412. * src/Signature.cc
  4413. * src/Signature.h
  4414. * src/SignatureMetalinkParserState.cc
  4415. * src/SignatureMetalinkParserState.h
  4416. * src/VerificationMetalinkParserState.cc
  4417. * src/VerificationMetalinkParserState.h
  4418. * test/Metalink2RequestGroupTest.cc
  4419. * test/MetalinkParserControllerTest.cc
  4420. * test/MetalinkProcessorTest.cc
  4421. * test/test.xml
  4422. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4423. Close DiskAdaptor after renaming file.
  4424. * src/RequestGroup.cc
  4425. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4426. Corrected indentation
  4427. * src/DefaultBtProgressInfoFile.cc
  4428. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4429. Moved the calls of std::ios::exceptions() inside of try-catch block
  4430. because if an error occurred in constructor of std::fstream, then
  4431. exception is thrown immediately when std::ios::exceptions() is called
  4432. which results unhandled exception and aria2c aborts.
  4433. * src/DefaultBtProgressInfoFile.cc
  4434. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4435. Added the test for the previous change in DefaultBtContext.cc
  4436. * test/DefaultBtContextTest.cc
  4437. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4438. Fixed the bug that causes infinite loop when the number of pieces are
  4439. fewer than allowed fast set size which is 10 by default.
  4440. * src/DefaultBtContext.cc
  4441. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4442. Updated the descriptions for -j, -s. Added --bt-seed.
  4443. * doc/aria2c.1
  4444. * doc/aria2c.1.html
  4445. * doc/aria2c.1.txt
  4446. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4447. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  4448. aria2 seeds previously downloaded files without validating piece hashs.
  4449. * src/HelpItemFactory.cc
  4450. * src/OptionHandlerFactory.cc
  4451. * src/RequestGroup.cc
  4452. * src/option_processing.cc
  4453. * src/prefs.cc
  4454. * src/prefs.h
  4455. * src/usage_text.h
  4456. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4457. Updated DESCRIPTION of man page.
  4458. * doc/aria2c.1
  4459. * doc/aria2c.1.html
  4460. * doc/aria2c.1.txt
  4461. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4462. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  4463. Don't define `struct addrinfo' when __sun is defined.
  4464. * src/getaddrinfo.h
  4465. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4466. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  4467. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  4468. second argument is of type `struct _stati64'. Otherwise it is defined as
  4469. `struct stat'.
  4470. * src/AbstractDiskWriter.cc
  4471. * src/File.cc
  4472. * src/File.h
  4473. * src/a2io.h
  4474. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4475. Fixed the compile error in hurd-i386
  4476. See the original bug report:
  4477. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  4478. * src/a2io.h
  4479. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4480. Code cleanup.
  4481. * src/PeerAbstractCommand.cc
  4482. * src/PeerAbstractCommand.h
  4483. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4484. Removed TransferEncoding.
  4485. * src/DownloadCommand.cc
  4486. * src/DownloadCommand.h
  4487. * src/HttpResponseCommand.cc
  4488. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4489. Updated po files.
  4490. * po/aria2c.pot
  4491. * po/*.po
  4492. * po/*.gmo
  4493. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4494. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  4495. * src/A2STR.cc
  4496. * src/A2STR.h
  4497. * src/ChunkedDecoder.cc
  4498. * src/ChunkedDecoder.h
  4499. * src/ChunkedEncoding.cc: Removed
  4500. * src/ChunkedEncoding.h: Removed
  4501. * src/DownloadCommand.cc
  4502. * src/DownloadCommand.h
  4503. * src/HttpDownloadCommand.cc
  4504. * src/HttpResponse.cc
  4505. * src/HttpResponse.h
  4506. * src/HttpResponseCommand.cc
  4507. * src/HttpSkipResponseCommand.cc
  4508. * src/HttpSkipResponseCommand.h
  4509. * src/Makefile.am
  4510. * src/TransferEncoding.h: Removed
  4511. * test/ChunkedDecoderTest.cc
  4512. * test/ChunkedEncodingTest.cc: Removed
  4513. * test/HttpResponseTest.cc
  4514. * test/Makefile.am
  4515. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4516. Use append instead of insert.
  4517. * src/GZipDecoder.cc
  4518. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4519. Updated doc
  4520. * src/Decoder.h
  4521. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4522. Updated usage text for -s option.
  4523. * src/usage_text.h
  4524. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4525. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  4526. * src/Request.cc
  4527. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4528. Cleaned up configure.ac.
  4529. * configure.ac
  4530. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4531. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  4532. AC_ARG_ENABLE.
  4533. * configure.ac
  4534. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4535. Added gzip, deflate decoding support in HTTP using libz. If compiled
  4536. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  4537. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  4538. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  4539. fly and writes decoded data to a local disk.
  4540. * README
  4541. * README.html
  4542. * configure.ac
  4543. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  4544. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  4545. * m4/libz.m4
  4546. * src/Decoder.h
  4547. * src/DownloadCommand.cc
  4548. * src/DownloadCommand.h
  4549. * src/Exception.h
  4550. * src/GZipDecoder.cc
  4551. * src/GZipDecoder.h
  4552. * src/HttpHeader.cc
  4553. * src/HttpHeader.h
  4554. * src/HttpRequest.cc
  4555. * src/HttpRequest.h
  4556. * src/HttpResponse.cc
  4557. * src/HttpResponse.h
  4558. * src/HttpResponseCommand.cc
  4559. * src/Makefile.am
  4560. * test/GZipDecoderTest.cc
  4561. * test/HttpRequestTest.cc
  4562. * test/HttpResponseTest.cc
  4563. * test/Makefile.am
  4564. * test/Makefile.in
  4565. * test/gzip_decode_test.gz
  4566. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4567. Clarified usage of -j option.
  4568. * src/usage_text.h
  4569. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4570. Disabled getting size from the response of RETR.
  4571. If SIZE command failed, then disable resuming and segmented downloading.
  4572. * src/FtpConnection.cc
  4573. * src/FtpConnection.h
  4574. * src/FtpNegotiationCommand.cc
  4575. * src/FtpNegotiationCommand.h
  4576. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4577. Use digits to find first byte of file size, which makes the intention
  4578. of the code clearer.
  4579. * src/FtpConnection.cc
  4580. Don't call validateTotalLength() when size is 0.
  4581. * src/FtpNegotiationCommand.cc
  4582. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4583. Updated po files.
  4584. * po/aria2c.pot
  4585. * po/*.gmo
  4586. * po/*.po
  4587. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4588. Clarified usage text for --split option.
  4589. * src/usage_text.h
  4590. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4591. Bump up version number to 0.15.0dev. "dev" means "development"
  4592. version, which means I started the development of the next release!
  4593. * src/configure.ac
  4594. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4595. If FTP server returns negative response with REST raw command and
  4596. requested range is not 0, throw exception. If requested range is 0,
  4597. continue download a file from 0 byte.
  4598. * src/FtpNegotiationCommand.cc
  4599. * src/FtpNegotiationCommand.h
  4600. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4601. Supported FTP server which don't recognize SIZE raw command.
  4602. If SIZE raw command is failed, aria2 will try to get file size
  4603. from the response of RETR raw command. If both attempts are failed,
  4604. then resuming and segmented downloading are disabled.
  4605. * src/FtpConnection.cc
  4606. * src/FtpConnection.h
  4607. * src/FtpNegotiationCommand.cc
  4608. * src/FtpNegotiationCommand.h
  4609. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4610. * Release 0.14.0+1
  4611. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4612. Bump up version number to 0.14.0+1
  4613. * src/configure.ac
  4614. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4615. Fixed the code that refers static member variable from non-static
  4616. context.
  4617. * src/DefaultPeerStorage.cc
  4618. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4619. * Release 0.14.0
  4620. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4621. Added build test script
  4622. * build_test.sh
  4623. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4624. Updated ja.po
  4625. * src/ja.po
  4626. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4627. Bump up version number to 0.14.0
  4628. * src/configure.ac
  4629. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4630. Updated ja.po and fr.po. Great thanks for french translators and
  4631. Sebastien WILLEMIJNS.
  4632. * po/fr.po
  4633. * po/ja.po
  4634. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4635. Added configure option to enable/disable epoll support.
  4636. * configure.ac
  4637. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4638. Updated man page.
  4639. * doc/aria2c.1.txt
  4640. * doc/aria2c.1
  4641. * doc/aria2c.1.html
  4642. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4643. Added missing default value '5' to the usage of --split option.
  4644. * src/HelpItemFactory.cc
  4645. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4646. Filled up pieces based on the number of missing blocks, rather than
  4647. simplay the number of piece * block length.
  4648. * src/BtRequestFactory.h
  4649. * src/DefaultBtInteractive.cc
  4650. * src/DefaultBtInteractive.h
  4651. * src/DefaultBtRequestFactory.cc
  4652. * src/DefaultBtRequestFactory.h
  4653. * src/Piece.cc
  4654. * src/Piece.h
  4655. * test/BitfieldManTest.cc
  4656. * test/DefaultBtRequestFactoryTest.cc
  4657. * test/MockBtRequestFactory.h
  4658. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4659. Made _epEvents a member variable.
  4660. * src/DownloadEngine.cc
  4661. * src/DownloadEngine.h
  4662. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4663. Cancel download if http redirect is bounded more than 20 times.
  4664. * src/AbstractCommand.cc
  4665. * src/HttpSkipResponseCommand.cc
  4666. * src/Request.cc
  4667. * src/Request.h
  4668. * test/RequestTest.cc
  4669. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4670. Fixed unhandled exception(removed keyword `new').
  4671. * src/SocketCore.cc (initEPOLL)
  4672. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4673. Removed visit(const MetaEntry*)
  4674. * src/MetaEntryVisitor.h:
  4675. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  4676. and made them virtual.
  4677. * src/BencodeVisitor.h
  4678. * src/BencodeVisitor.cc
  4679. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4680. Updated po files.
  4681. * po/aria2c.pot
  4682. * po/*.po
  4683. * po/*.gmo
  4684. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4685. Moved the call setWriteCheckSocket inside the previous clause to reduce
  4686. the number of socket to watch out.
  4687. * src/PeerInteractionCommand.cc
  4688. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4689. When there is not enough space in disk when writing a chunk of data,
  4690. aria2 now prints the message to the console to warn user and aborts
  4691. its download. Not all downloads are canceled because some downloads
  4692. may use another disk or partition. BUG#1640332
  4693. * src/AbstractDiskWriter.cc
  4694. * src/PeerAbstractCommand.cc
  4695. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  4696. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  4697. setHaltRequested(true) to cancel download.
  4698. * src/PeerInteractionCommand.h
  4699. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4700. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  4701. socket from int to sock_t as sockets are unsigned in Windows.
  4702. For AsyncNameResolver, DownloadEngine, I did additional modification
  4703. for the portion of the code changed according to epoll support.
  4704. I defined sock_t in a2netcompat.h to use sock_t without including
  4705. SocketCore.h.
  4706. * src/AsyncNameResolver.cc
  4707. * src/AsyncNameResolver.h
  4708. * src/DownloadEngine.cc
  4709. * src/DownloadEngine.h
  4710. * src/SocketCore.cc
  4711. * src/SocketCore.h
  4712. * src/a2netcompat.h
  4713. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4714. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  4715. changes in the patch were applied.
  4716. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  4717. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  4718. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  4719. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4720. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  4721. a2io.h and common.h were modified.
  4722. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  4723. MinGW.
  4724. * src/common.h: Changed off_t to 64 bit in MinGW.
  4725. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4726. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4727. only a2netcompat.h is modified.
  4728. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  4729. directives.
  4730. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4731. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4732. only gai_strerror.h is modified.
  4733. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  4734. winsock errors in MinGW.
  4735. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4736. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  4737. follow sources are applied.
  4738. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  4739. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  4740. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  4741. I included locale.h from Platform.cc.
  4742. * src/main.cc: Moved common setup/teardown code to Platform class.
  4743. * test/AllTest.cc: Use Platform class.
  4744. Set locale to C in AllTest.cc to prevent the messages to be localized.
  4745. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4746. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  4747. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  4748. * test/HttpRequestTest.cc: Casted to off_t where it should.
  4749. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4750. Applied Ross's aria2-0.13.2+1-mingw.patch and
  4751. aria2-0.13.2+1-mingw-2.patch.
  4752. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  4753. systems which don't have termious.h. I moved the directive inside of
  4754. if(isTTY) { ... clause so that line is wiped out without termious.h.
  4755. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  4756. anyway.
  4757. * src/asctime_r.h
  4758. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  4759. I added 2nd argument to the prototype declaration.
  4760. * src/StringFormat.cc: Get rid of vasprintf.
  4761. * src/getaddrinfo.h: Fixed constants.
  4762. * configure.ac: Added the check for asctime_r function.
  4763. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  4764. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4765. Added writable test for Socket when the sending message is in progress.
  4766. Usually the sending message is piece message. Without wriable check,
  4767. upload latency is dropped to more than 1sec.
  4768. * src/PeerInteractionCommand.cc
  4769. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4770. Create only requested files and files which shares a piece with
  4771. requested file in multi-torrent downloads. Directory structures are
  4772. also created in the same rule.
  4773. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  4774. DiskWriterEntry as in the previous implementation.
  4775. * src/MultiDiskWriter.cc
  4776. * src/MultiFileAllocationIterator.cc
  4777. * src/MultiFileAllocationIterator.h
  4778. * test/MultiFileAllocationIteratorTest.cc
  4779. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4780. Commented out -lprofiler
  4781. * src/Makefile.am
  4782. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4783. Bump up version number to 0.14.0b.
  4784. * src/configure.ac
  4785. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4786. Actively establish connection to peers in seeding, when peer cache
  4787. is not full and max upload speed limit is not reached.
  4788. * src/ActivePeerConnectionCommand.cc
  4789. * src/ActivePeerConnectionCommand.h
  4790. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4791. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  4792. to make room more fleshy, recently found peers.
  4793. Peer::_badConditionStartTime is not used anymore. Consider to remove
  4794. it.
  4795. * src/DefaultPeerStorage.cc
  4796. * test/DefaultPeerStorageTest.cc
  4797. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4798. Returns cached data only when the previous receiveHandshake() is called
  4799. with peek = true.
  4800. * src/PeerConnection.cc (receiveHandshake)
  4801. * src/PeerConnection.h (receiveHandshake)
  4802. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4803. Changed default value of -s option from 1 to 5.
  4804. Also max value of -s option is changed from 5 to 16.
  4805. * src/HelpItemFactory.cc
  4806. * src/OptionHandlerFactory.cc
  4807. * src/option_processing.cc
  4808. * src/usage_text.h
  4809. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4810. Changed -s options behavior. Now it means the number of connections
  4811. made simultaneously in each http/ftp download.
  4812. If 1 URL is specified, the behavior is the same with old implementation.
  4813. If -s N is given and more than N URLs are specified, first N URLs are
  4814. used and remaining URLs are used for backup. If less than N URLs are
  4815. specified, some of URLs are used more than once so that totally N
  4816. connections are made simultaneously.
  4817. * src/main.cc
  4818. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4819. Included missing iosfwd or ostream header.
  4820. * src/RequestGroupMan.cc
  4821. * src/TaggedItem.cc
  4822. * src/TaggedItem.h
  4823. * src/Util.cc
  4824. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4825. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  4826. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  4827. * src/HttpConnection.cc: Included missing sstream.
  4828. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4829. Added --bt-max-open-files option.
  4830. * src/DefaultPieceStorage.cc
  4831. * src/HelpItemFactory.cc
  4832. * src/MultiDiskAdaptor.cc
  4833. * src/MultiDiskAdaptor.h
  4834. * src/OptionHandlerFactory.cc
  4835. * src/option_processing.cc
  4836. * src/prefs.cc
  4837. * src/prefs.h
  4838. * src/usage_text.h
  4839. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4840. Fixed the bug that aria2 aborts when a path to a directory is given
  4841. in command-line.
  4842. * src/ProtocolDetector.cc
  4843. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4844. Limited the number files opened in each BitTorrent download. The default
  4845. value is 100. The option to change this value will be added.
  4846. * src/MultiDiskAdaptor.cc
  4847. * src/MultiDiskAdaptor.h
  4848. * src/MultiFileAllocationIterator.cc
  4849. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4850. Fixed the bug that HTTP downloads don't start with old libraries.
  4851. * src/HttpHeaderProcessor.cc
  4852. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4853. Use empty() instead of size() > 0.
  4854. * src/HttpConnection.cc
  4855. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4856. Drop connection if the incoming peer ID is the same with localhost's
  4857. one. The previous implementation drops connection when incoming peer's
  4858. IP address is the same with localhost's one.
  4859. * src/PeerListenCommand.cc
  4860. * src/DefaultBtInteractive.cc
  4861. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4862. Returns cached data without checking whether socket is readable
  4863. if the cache is available.
  4864. * src/PeerConnection.cc (receiveHandshake)
  4865. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4866. Included stdint.h
  4867. * src/common.h
  4868. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4869. Removed duplicate HAVE_GETTIMEOFDAY
  4870. * src/Makefile.am
  4871. * src/Makefile.in
  4872. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4873. Use interval as a minInterval when minInterval is not supplied.
  4874. * src/DefaultBtAnnounce.cc
  4875. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4876. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  4877. attempt is failed, then 2nd attempt get kicked out more quickly.
  4878. And it is now static const member of DefaultBtAnnounce.
  4879. * src/DefaultBtAnnounce.h
  4880. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4881. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  4882. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  4883. * src/ActivePeerConnectionCommand.cc
  4884. * src/BtConstants.h
  4885. * src/BtRuntime.h
  4886. * src/DHTGetPeersCommand.cc
  4887. * src/DefaultBtAnnounce.cc
  4888. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  4889. BtRuntime::MAX_PEERS.
  4890. * src/DefaultPeerStorage.h
  4891. * src/InitiatorMSEHandshakeCommand.cc
  4892. * src/PeerInitiateConnectionCommand.cc
  4893. * src/PeerInteractionCommand.cc
  4894. * src/PeerReceiveHandshakeCommand.cc
  4895. * src/TrackerWatcherCommand.cc
  4896. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4897. Always Connect to _numNewConnection
  4898. * src/ActivePeerConnectionCommand.cc
  4899. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4900. Made `begin' unsigned int.
  4901. * src/GrowSegment.h
  4902. * src/Piece.cc
  4903. * src/Piece.h
  4904. * src/PiecedSegment.cc
  4905. * src/PiecedSegment.h
  4906. * src/Segment.h
  4907. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4908. Calculate piece hash when data is arrived if the data is arrived in
  4909. order. This removes additional read operation for hash calculation.
  4910. If the data is arrived in out of order, the hash is calucated when the
  4911. piece is completed. This is the same behavior as the old implementation.
  4912. * src/BtPieceMessage.cc
  4913. * src/DefaultBtProgressInfoFile.cc
  4914. * src/DefaultPieceStorage.cc
  4915. * src/DownloadCommand.cc
  4916. * src/DownloadCommand.h
  4917. * src/DownloadEngine.cc
  4918. * src/GrowSegment.cc
  4919. * src/GrowSegment.h
  4920. * src/Piece.cc
  4921. * src/Piece.h
  4922. * src/PiecedSegment.cc
  4923. * src/PiecedSegment.h
  4924. * src/Segment.h
  4925. * test/PieceTest.cc
  4926. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4927. Try to keep the ordering of outgoing piece message.
  4928. * src/DefaultBtMessageDispatcher.cc
  4929. (DefaultBtMessageDispatcher::sendMessages)
  4930. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4931. Fixed busy loop when error/hup epoll events occur.
  4932. * src/AbstractCommand.cc
  4933. * src/PeerAbstractCommand.cc
  4934. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4935. Added --bt-request-peer-speed-limit option, which was a constant
  4936. SLOW_SPEED_THRESHOLD.
  4937. * src/ActivePeerConnectionCommand.cc
  4938. * src/ActivePeerConnectionCommand.h
  4939. * src/BtConstants.h
  4940. * src/HelpItemFactory.cc
  4941. * src/OptionHandlerFactory.cc
  4942. * src/PeerReceiveHandshakeCommand.cc
  4943. * src/option_processing.cc
  4944. * src/prefs.cc
  4945. * src/prefs.h
  4946. * src/usage_text.h
  4947. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4948. Removed repeated call of getTopDirPath(). Instead, call it once and
  4949. cache the result.
  4950. * src/MultiDiskAdaptor.cc
  4951. * src/MultiDiskAdaptor.h
  4952. (mkdir, openFile, initAndOpenFile, openExistingFile)
  4953. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4954. Fixed compile error on debian etch.
  4955. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  4956. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  4957. it is undefined.
  4958. * src/Util.cc (ULLONG_MAX)
  4959. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4960. Added epoll support. Use epoll if it is available. If not, use select.
  4961. When async dns is enabled in compile time, epoll support is enabled
  4962. only when aria2 is built with c-ares. This condition statement is
  4963. defined in a2io.h.
  4964. Currently aria2 supports both c-ares and ares, but ares is maintained
  4965. for quite a while and debian already has c-ares package, ares support
  4966. will be dropped in the future version.
  4967. * configure.ac
  4968. * src/AbstractCommand.cc
  4969. * src/AsyncNameResolver.cc
  4970. * src/AsyncNameResolver.h
  4971. * src/Command.cc
  4972. * src/Command.h
  4973. * src/DownloadEngine.cc
  4974. * src/DownloadEngine.h
  4975. * src/PeerAbstractCommand.cc
  4976. * src/SocketCore.cc
  4977. * src/SocketCore.h
  4978. * src/a2io.h
  4979. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4980. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  4981. directive.
  4982. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4983. Do not do write operation to /dev/null file.
  4984. * src/LogFactory.cc
  4985. * src/SimpleLogger.cc
  4986. Replaced vasprintf with vsnprintf
  4987. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4988. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4989. * src/BtRequestMessage.cc
  4990. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  4991. for segmentation fault caused by previous commit.
  4992. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4993. Reduced the usage of gettimeofday().
  4994. * src/DefaultBtMessageDispatcher.cc
  4995. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  4996. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4997. * src/RequestSlot.cc
  4998. * src/RequestSlot.h
  4999. (RequestSlot::isTimeout)
  5000. Made RequestSlot have a reference to Piece object to avoid find
  5001. Piece repeatedly.
  5002. * src/DefaultBtMessageDispatcher.cc
  5003. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  5004. * src/RequestSlot.cc
  5005. * src/RequestSlot.h
  5006. (RequestSlot::getPiece)
  5007. * test/DefaultBtMessageDispatcherTest.cc
  5008. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5009. * src/TimeA2.cc
  5010. * src/TimeA2.h
  5011. (Time::difference): New function.
  5012. (Time::elapsed): Done optimization.
  5013. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5014. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  5015. directive.
  5016. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5017. * src/option_processing.cc: Added missing `defined' keyword to #if
  5018. directive.
  5019. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5020. Bump up version number to 0.13.2+1
  5021. * src/configure.ac
  5022. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5023. Refactored broken outstanding piece handling.
  5024. * src/DefaultPieceStorage.cc
  5025. * src/DefaultPieceStorage.h
  5026. * src/Piece.cc
  5027. * src/Piece.h
  5028. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5029. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  5030. name collision of static variable and predefined macro.
  5031. * src/BtContext.cc
  5032. * src/BtContext.h
  5033. * src/CookieBoxFactory.cc
  5034. * src/CookieBoxFactory.h
  5035. * src/CookieParser.cc
  5036. * src/CookieParser.h
  5037. * src/DefaultBtContext.cc
  5038. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5039. * src/RequestGroup.cc
  5040. (RequestGroup::createInitialCommand): Use empty() instead of size().
  5041. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5042. * Release 0.13.2
  5043. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5044. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  5045. * po/fr.po
  5046. * po/ja.po
  5047. * po/aria2c.pot
  5048. * po/*.po
  5049. * po/*.gmo
  5050. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5051. Bump up version number to 0.13.2
  5052. * src/configure.ac
  5053. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5054. Refactord.
  5055. * src/RequestGroupMan.cc
  5056. (removeStoppedGroup)
  5057. (fillRequestGroupFromReserver)
  5058. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5059. Fixed compile error on Ubuntu.
  5060. * src/BtPieceMessage.cc
  5061. * src/MessageDigestHelper.cc
  5062. * src/Util.cc
  5063. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5064. Fixed compile error when configured with --disable-bittorrent
  5065. * test/DownloadHandlerFactoryTest.cc
  5066. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5067. Done make update-po
  5068. * po/aria2c.pot
  5069. * po/*.po
  5070. * po/*.gmo
  5071. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5072. Bump up version number to 0.13.2rc.
  5073. * src/configure.ac
  5074. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5075. Made option name bold. Updated SYNOPSIS to make it more readable.
  5076. * doc/aria2c.1.txt
  5077. * doc/aria2c.1
  5078. * doc/aria2c.1.html
  5079. * src/version_usage.cc
  5080. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5081. Refactored. Use std::string instead of size and char*.
  5082. * Data.cc
  5083. * Data.h
  5084. * test/Data.cc
  5085. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5086. Added trimSelf(). Rewritten trim() to use trimSelf().
  5087. * Util.cc
  5088. * Util.h
  5089. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5090. * src/ChunkChecksum.h (getChecksum): Return const reference.
  5091. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5092. Fixed compile error when configured with --disable-metalink.
  5093. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  5094. * test/FeatureConfigTest.cc
  5095. * test/DownloadHandlerFactoryTest.cc
  5096. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5097. Fixed compile error when configured with --without-gnutls
  5098. --without-openssl
  5099. * src/main.cc
  5100. * test/DefaultBtProgressInfoFileTest.cc
  5101. * test/SegmentManTest.cc
  5102. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5103. Fixed compile error with OpenSSL.
  5104. * src/IteratableChunkChecksumValidator.cc
  5105. * src/LibsslDHKeyExchange.h
  5106. * src/MessageDigestHelper.cc
  5107. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5108. Revert the default value of --max-concurrent-downloads to 5.
  5109. Revert the default value of --metalink-servers to 5.
  5110. Man pages was also updated.
  5111. * src/option_processing.cc
  5112. * doc/aria2c.1.txt
  5113. * doc/aria2c.1.html
  5114. * doc/aria2c.1
  5115. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5116. Returns const reference:
  5117. DownloadContext::getPieceHash, DownloadContext::getName,
  5118. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  5119. BtContext::getInfoHashAsString,
  5120. * src/BtContext.h
  5121. * src/DefaultBtContext.cc
  5122. * src/DefaultBtContext.h
  5123. * src/DownloadContext.h
  5124. * src/SingleFileDownloadContext.h
  5125. * test/MockBtContext.h
  5126. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5127. * src/RequestGroup.h (getDir): Removed.
  5128. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5129. Returns const reference. The internal urlencode function was optimized
  5130. a little bit.
  5131. * src/Request.cc
  5132. * src/Request.h
  5133. * src/HttpRequest.cc
  5134. * src/HttpRequest.h
  5135. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5136. Defined option name and possible values as std::string to reduce
  5137. temporary string object creation in runtime.
  5138. * src/HelpItemFactory.cc
  5139. * src/LogFactory.cc
  5140. * src/Option.cc
  5141. * src/OptionHandlerFactory.cc
  5142. * src/option_processing.cc
  5143. * src/prefs.cc
  5144. * src/prefs.h
  5145. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5146. Return const reference.
  5147. * src/DownloadHandlerConstants.cc
  5148. * src/DownloadHandlerConstants.h
  5149. (getMetalinkExtensions)
  5150. (getMetalinkContentTypes)
  5151. (getBtExtensions)
  5152. (getBtContentTypes)
  5153. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5154. * src/HttpHeader.cc (get): Rewritten.
  5155. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5156. Make HttpHeader::getFirst(...) return const reference.
  5157. * src/HttpHeader.cc
  5158. * src/HttpHeader.h
  5159. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5160. Use Option::getAsBool(...) instead of Option::get(...) and compare
  5161. it with V_TRUE.
  5162. * src/DefaultPieceStorage.cc
  5163. * src/DownloadCommand.cc
  5164. * src/FtpNegotiationCommand.cc
  5165. * src/HttpRequest.cc
  5166. * src/InitiateConnectionCommand.cc
  5167. * src/RequestGroup.cc
  5168. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5169. Made Option::get(...) return const reference of std::string.
  5170. * src/Option.cc
  5171. * src/Option.h
  5172. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5173. Replaced std:copy with insert.
  5174. * src/DefaultBtMessageDispatcher.cc
  5175. * src/DefaultPieceStorage.cc
  5176. * src/DownloadEngineFactory.cc
  5177. * src/RequestGroup.cc
  5178. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5179. Included SocketCore.h to fix compiler warning.
  5180. * src/InitiateConnectionCommand.cc
  5181. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5182. Put piece selection strategy algorithm to RarestPieceSelector class,
  5183. Added a switch to choose whether randomized selection so that unit
  5184. tests emit same results in, possibly, win32.
  5185. * src/DefaultPieceStorage.cc
  5186. * src/DefaultPieceStorage.h
  5187. * src/RarestPieceSelector.cc
  5188. * src/RarestPieceSelector.h
  5189. * test/DefaultPieceStorageTest.cc
  5190. * test/RarestPieceSelectorTest.cc
  5191. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5192. Don't pool connection if HTTP proxy is enabled.
  5193. * src/FtpFinishDownloadCommand.cc
  5194. * src/FtpNegotiationCommand.cc
  5195. * src/HttpSkipResponseCommand.cc
  5196. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5197. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  5198. * src/AbstractCommand.cc
  5199. * src/AbstractCommand.h
  5200. * src/ActivePeerConnectionCommand.cc
  5201. * src/FtpInitiateConnectionCommand.cc
  5202. * src/HttpInitiateConnectionCommand.cc
  5203. * src/InitiateConnectionCommandFactory.cc
  5204. * src/PeerAbstractCommand.cc
  5205. * src/PeerAbstractCommand.h
  5206. * src/PeerInitiateConnectionCommand.cc
  5207. * src/TrackerWatcherCommand.cc
  5208. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5209. Sort RequestSlot in ascending order and manipulate them using
  5210. lower_bound.
  5211. * src/DefaultBtMessageDispatcher.cc
  5212. * src/DefaultBtMessageDispatcher.h
  5213. (getMessageQueue): Added const qualifier.
  5214. (getRequestSlots): Added const qualifier.
  5215. (sendMessages): Use empty() instead of size().
  5216. (doCancelSendingPieceAction): Use HandleEvent object.
  5217. (doAbortOutstandingRequestAction): Rewritten.
  5218. (doChokedAction): Rewritten.
  5219. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  5220. (isOutstandingRequest): Rewritten.
  5221. (getOutstandingRequest): Rewritten.
  5222. (removeOutstandingRequest): Rewritten.
  5223. (addOutstandingRequest): Rewritten.
  5224. * src/RequestSlot.cc
  5225. * src/RequestSlot.h
  5226. (operator=): Rewritten.
  5227. (operator!=): New function.
  5228. (operator<): New function.
  5229. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5230. * src/DefaultBtRequestFactory.cc
  5231. (doChokedAction): Rewritten.
  5232. (removeCompletedPiece): Rewritten.
  5233. (removeTargetPiece): Rewritten.
  5234. (createRequestMessages): Added the debug log.
  5235. (createRequestMessagesOnEndGame: Added the debug log.
  5236. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5237. Added the debug log message.
  5238. * src/BtPieceMessage.cc (doReceivedAction)
  5239. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5240. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  5241. used lower_bound to process them rather than linear search.
  5242. * src/DHTPeerAnnounceStorage.cc
  5243. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5244. Call subtractPieceStats from ~PeerInteractionCommand only when the
  5245. peer has at least one completed piece.
  5246. * src/Peer.cc
  5247. * src/Peer.h
  5248. * src/PeerInteractionCommand.cc
  5249. * src/PeerSessionResource.cc
  5250. * src/PeerSessionResource.h
  5251. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5252. Removed unnecessary sorting
  5253. * src/DefaultPieceStorage (DefaultPieceStorage)
  5254. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5255. Rewritten the portion of the code that mangaes allowed fast indexes.
  5256. * src/PeerSessionResource.cc
  5257. * src/PeerSessionResource.h
  5258. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5259. Removed the invalid string including '\r' from ru.po and
  5260. did make update-po.
  5261. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5262. Added --log-level and --summary-interval to man page.
  5263. * doc/aria2c.1.txt
  5264. * doc/aria2c.1.html
  5265. * doc/aria2c.1
  5266. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5267. Added --log-level option to specify log level. Log messages under
  5268. the specified level are not output. Default value is `debug'.
  5269. * src/HelpItemFactory.cc
  5270. * src/LogFactory.cc
  5271. * src/LogFactory.h
  5272. * src/Logger.h
  5273. * src/OptionHandlerFactory.cc
  5274. * src/SimpleLogger.cc
  5275. * src/SimpleLogger.h
  5276. * src/main.cc
  5277. * src/option_processing.cc
  5278. * src/prefs.h
  5279. * src/usage_text.h
  5280. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5281. Print download progress summary of all parallel downloads in specified
  5282. interval, default 60 secs. While aria2 could download several files
  5283. in parallel (see -j option), it displayed just first download progress,
  5284. and the other downloads are hidden from the users. This new feature
  5285. prints all downloads currently in-progress to the console so that you
  5286. can check the status of all downloads. The interval can be adjusted
  5287. by --summary-interval option.
  5288. The progress readout is now cut so that all fits in the one line of
  5289. console.
  5290. * src/ConsoleStatCalc.cc
  5291. * src/ConsoleStatCalc.h
  5292. * src/HelpItemFactory.cc
  5293. * src/OptionHandlerFactory.cc
  5294. * src/RequestGroupMan.cc
  5295. * src/RequestGroupMan.h
  5296. * src/main.cc
  5297. * src/option_processing.cc
  5298. * src/prefs.h
  5299. * src/usage_text.h
  5300. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5301. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  5302. * src/DownloadEngine.cc (DownloadEngine)
  5303. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5304. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  5305. defined.
  5306. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  5307. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5308. Use erase+lower_bound+insert instead of sort.
  5309. * src/DefaultPieceStorage.cc (addPieceStats)
  5310. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5311. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  5312. * src/A2STR.cc
  5313. * src/A2STR.h
  5314. * src/OptionParser.cc (parse)
  5315. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5316. Defined fake filename `[tracker.announce]' as static const std::string.
  5317. * src/TrackerWatcherCommand.cc (createRequestGroup)
  5318. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5319. Defined default filename `index.html' as static const std::string
  5320. * src/SingleFileDownloadContext.cc
  5321. * src/SingleFileDownloadContext.h
  5322. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5323. Defined "[MEMORY]" as static const std::string.
  5324. * src/MemoryBufferPreDownloadHandler.cc (execute)
  5325. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5326. Defined control file's version number as static const std::string.
  5327. * src/DefaultBtProgressInfoFile.cc
  5328. * src/DefaultBtProgressInfoFile.h
  5329. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5330. Use Request::METHOD_GET
  5331. * src/RequestGroup.cc (createNextCommandWithAdj)
  5332. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5333. Defined "OK", "ERR", "INPR" as static const std::string
  5334. * src/RequestGroupMan.cc (showDownloadResults)
  5335. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5336. Defined default client used in extended handshake as static const
  5337. std::string
  5338. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  5339. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5340. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  5341. * src/HttpConnection.cc (eraseConfidentialInfo)
  5342. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5343. Defined default ftp user and password as static const std::string
  5344. * src/AuthConfigFactory.cc
  5345. * src/AuthConfigFactory.h
  5346. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5347. Defined strings used in netrc as static const std::string
  5348. * src/Netrc.cc
  5349. * src/Netrc.h
  5350. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5351. Defined HTTP status as static const std::string
  5352. * src/AbstractProxyResponseCommand.cc
  5353. * src/HttpHeader.cc
  5354. * src/HttpHeader.h
  5355. * src/HttpResponse.cc
  5356. * src/HttpResponseCommand.cc
  5357. * src/HttpSkipResponseCommand.cc
  5358. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5359. Defined "\r\n", "A", "I" as static const std::string
  5360. * src/A2STR.cc
  5361. * src/A2STR.h
  5362. * src/FtpConnection.cc
  5363. * src/FtpConnection.h
  5364. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5365. Added COLON_C(".") and used it in Request::parseUrl()
  5366. * src/A2STR.cc
  5367. * src/A2STR.h
  5368. * src/Request.cc (parseUrl)
  5369. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5370. Changed the type of padName from `const std::string&' to `const char*'.
  5371. * src/MSEHandshake.cc (verifyPadLength)
  5372. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5373. Defined "sha1" as static const std::string.
  5374. * src/MetalinkParserController.cc
  5375. * src/MetalinkParserController.h
  5376. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5377. Defined message digest algorithm name as static const std::string
  5378. * src/DHTTokenTracker.cc
  5379. * src/DHTUtil.cc
  5380. * src/DefaultBtContext.cc
  5381. * src/MSEHandshake.cc
  5382. * src/MessageDigestHelper.cc
  5383. * src/Peer.cc
  5384. * src/messageDigest.cc
  5385. * src/messageDigest.h
  5386. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5387. Made string literals used in SAX parser static const std::string.
  5388. * src/FileMetalinkParserState.cc
  5389. * src/FileMetalinkParserState.h
  5390. * src/FilesMetalinkParserState.cc
  5391. * src/FilesMetalinkParserState.h
  5392. * src/InitialMetalinkParserState.cc
  5393. * src/InitialMetalinkParserState.h
  5394. * src/MetalinkMetalinkParserState.cc
  5395. * src/MetalinkMetalinkParserState.h
  5396. * src/PiecesMetalinkParserState.cc
  5397. * src/PiecesMetalinkParserState.h
  5398. * src/ResourcesMetalinkParserState.cc
  5399. * src/ResourcesMetalinkParserState.h
  5400. * src/VerificationMetalinkParserState.cc
  5401. * src/VerificationMetalinkParserState.h
  5402. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5403. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  5404. * src/A2STR.cc
  5405. * src/A2STR.h
  5406. * src/File.cc
  5407. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5408. Defined static const std::string IP("ip"), PORT("port") and use them
  5409. instead of string literals.
  5410. * src/DefaultPeerListProcessor.cc
  5411. * src/DefaultPeerListProcessor.h
  5412. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5413. Made string literals for torrent file processing static const
  5414. std::string.
  5415. * src/BtContext.cc
  5416. * src/BtContext.h
  5417. * src/DefaultBtContext.cc
  5418. * src/DefaultBtContext.h
  5419. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5420. Made string literal for tracker response static const std::string
  5421. * src/BtAnnounce.cc
  5422. * src/BtAnnounce.h
  5423. * src/DefaultBtAnnounce.cc
  5424. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5425. Use DHTMessage::T instead of "t".
  5426. * src/DHTMessageTracker.cc (messageArrived)
  5427. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5428. Made keyName static const. Made trimmed charset static const
  5429. std::string.
  5430. * src/Util.cc (getContentDispositionFilename)
  5431. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5432. Made USER_AGENT const. Made "/" static const std::string.
  5433. * src/A2STR.cc
  5434. * src/A2STR.h
  5435. * src/HttpRequest.cc
  5436. * src/HttpRequest.h
  5437. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5438. Made string listeral to static const std::string:
  5439. "Content-Range", "Content-Length"
  5440. * src/HttpHeader.cc
  5441. * src/HttpHeader.h
  5442. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5443. Made string listeral to static const std::string.
  5444. * src/HttpConnection.cc
  5445. * src/HttpHeader.cc
  5446. * src/HttpHeader.h
  5447. * src/HttpResponse.cc
  5448. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5449. Made string listeral to static const std::string.
  5450. * src/A2STR.cc
  5451. * src/A2STR.h
  5452. * src/SimpleLogger.cc
  5453. * src/SimpleLogger.h
  5454. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5455. Made string literal to static const std::string.
  5456. Rewritten CookieParser::setField.
  5457. * src/A2STR.cc
  5458. * src/A2STR.h
  5459. * src/CookieBoxFactory.cc
  5460. * src/CookieBoxFactory.h
  5461. * src/CookieParser.cc
  5462. * src/CookieParser.h
  5463. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5464. Made string literal to static const std::string
  5465. * src/DHTAbstractMessage.cc
  5466. * src/DHTAnnouncePeerMessage.cc
  5467. * src/DHTAnnouncePeerMessage.h
  5468. * src/DHTAnnouncePeerReplyMessage.cc
  5469. * src/DHTAnnouncePeerReplyMessage.h
  5470. * src/DHTFindNodeMessage.cc
  5471. * src/DHTFindNodeMessage.h
  5472. * src/DHTFindNodeReplyMessage.cc
  5473. * src/DHTFindNodeReplyMessage.h
  5474. * src/DHTGetPeersMessage.cc
  5475. * src/DHTGetPeersMessage.h
  5476. * src/DHTGetPeersReplyMessage.cc
  5477. * src/DHTGetPeersReplyMessage.h
  5478. * src/DHTMessage.cc
  5479. * src/DHTMessage.h
  5480. * src/DHTMessageFactoryImpl.cc
  5481. * src/DHTMessageReceiver.cc
  5482. * src/DHTPingMessage.cc
  5483. * src/DHTPingMessage.h
  5484. * src/DHTPingReplyMessage.cc
  5485. * src/DHTPingReplyMessage.h
  5486. * src/DHTQueryMessage.cc
  5487. * src/DHTQueryMessage.h
  5488. * src/DHTResponseMessage.cc
  5489. * src/DHTResponseMessage.h
  5490. * src/DHTUnknownMessage.cc
  5491. * src/DHTUnknownMessage.h
  5492. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5493. Made string literal to static const std::string
  5494. * src/BtChokeMessage.cc (toString)
  5495. * src/BtHaveAllMessage.cc (toString)
  5496. * src/BtHaveNoneMessage.cc (toString)
  5497. * src/BtInterestedMessage.cc (toString)
  5498. * src/BtNotInterestedMessage.cc (toString)
  5499. * src/BtUnchokeMessage.cc (toString)
  5500. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5501. Replaced "" with static const variable A2STR::NIL.
  5502. Replaced string comparison against "" with std::string::empty().
  5503. Added PROTO_* to Request class and use them as a protocol string
  5504. constant.
  5505. Made "started", "stopped", "completed" static const variable in
  5506. AnnounceList class.
  5507. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5508. Updated translations. Great thanks to translators.
  5509. * po/ca.po
  5510. * po/de.po
  5511. * po/fr.po
  5512. * po/it.po
  5513. * po/ja.po
  5514. * po/ru.po
  5515. * po/zh_CN.po
  5516. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5517. Updated man page; categorized options and fixed typo.
  5518. * doc/aria2c.1.txt
  5519. * doc/aria2c.1.html
  5520. * doc/aria2c.1
  5521. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5522. Removed const ref
  5523. * src/MetalinkEntry.cc (AddProtocolPreference)
  5524. * src/RequestGroup.cc (FindServerHostByHostname)
  5525. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5526. Rewritten Accept-Features handling.
  5527. * src/HttpRequestCommand.cc (createHttpRequest)
  5528. * src/a2functional.h
  5529. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5530. Changed method signature:
  5531. DHTAbstractNodeLookupTask::toEntries
  5532. * src/DHTAbstractNodeLookupTask.cc
  5533. * src/DHTAbstractNodeLookupTask.h
  5534. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5535. Changed method signature:
  5536. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  5537. * src/BtContext.h
  5538. * src/DefaultBtContext.cc
  5539. * src/DefaultBtContext.h
  5540. * src/DefaultBtInteractive.cc
  5541. * test/DefaultBtContextTest.cc
  5542. * test/MockBtContext.h
  5543. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5544. Changed method signature:
  5545. MultiFileAllocationIterator::makeDiskWriterEntries
  5546. * src/MultiFileAllocationIterator.cc
  5547. * src/MultiFileAllocationIterator.h
  5548. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5549. Changed method sinature:
  5550. MetalinkEntry::toFileEntry,
  5551. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  5552. Metalinker::queryEntry
  5553. * src/Metalink2RequestGroup.cc
  5554. * src/MetalinkEntry.cc
  5555. * src/MetalinkEntry.h
  5556. * src/MetalinkHelper.cc
  5557. * src/MetalinkHelper.h
  5558. * src/Metalinker.cc
  5559. * src/Metalinker.h
  5560. * src/main.cc
  5561. * test/MetalinkHelperTest.cc
  5562. * test/MetalinkerTest.cc
  5563. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5564. Changed method sinature:
  5565. RequestGroup::getURIs
  5566. * src/RequestGroup.cc
  5567. * src/RequestGroup.h
  5568. * test/Metalink2RequestGroupTest.cc
  5569. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5570. Changed method signature:
  5571. PeerListProcessor::extractPeer
  5572. * src/CompactPeerListProcessor.cc
  5573. * src/CompactPeerListProcessor.h
  5574. * src/DefaultBtAnnounce.cc
  5575. * src/DefaultPeerListProcessor.cc
  5576. * src/DefaultPeerListProcessor.h
  5577. * src/DelegatingPeerListProcessor.cc
  5578. * src/DelegatingPeerListProcessor.h
  5579. * src/PeerListProcessor.h
  5580. * src/UTPexExtensionMessage.cc
  5581. * test/DefaultPeerListProcessorTest.cc
  5582. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5583. Changed method signature:
  5584. BtRequestFactory::createRequestMessages,
  5585. BtRequestFactory::createRequestMessagesOnEndGame
  5586. * src/BtRequestFactory.h
  5587. * src/DefaultBtInteractive.cc
  5588. * src/DefaultBtRequestFactory.cc
  5589. * src/DefaultBtRequestFactory.h
  5590. * test/DefaultBtRequestFactoryTest.cc
  5591. * test/MockBtRequestFactory.h
  5592. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5593. Changed method signature:
  5594. PieceStorage::getInFlightPieces
  5595. * src/DefaultBtProgressInfoFile.cc
  5596. * src/DefaultPieceStorage.cc
  5597. * src/DefaultPieceStorage.h
  5598. * src/PieceStorage.h
  5599. * src/UnknownLengthPieceStorage.cc
  5600. * src/UnknownLengthPieceStorage.h
  5601. * test/DefaultBtProgressInfoFileTest.cc
  5602. * test/MockPieceStorage.h
  5603. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5604. Changed method signature:
  5605. PostDownloadHandler::getNextRequestGroups
  5606. Metalink2RequestGroup::generate
  5607. RequestGroup::postDownloadProcessing
  5608. * src/BtPostDownloadHandler.cc
  5609. * src/BtPostDownloadHandler.h
  5610. * src/Metalink2RequestGroup.cc
  5611. * src/Metalink2RequestGroup.h
  5612. * src/MetalinkPostDownloadHandler.cc
  5613. * src/MetalinkPostDownloadHandler.h
  5614. * src/PostDownloadHandler.h
  5615. * src/RequestGroup.cc
  5616. * src/RequestGroup.h
  5617. * src/RequestGroupMan.cc
  5618. * src/main.cc
  5619. * test/BtPostDownloadHandlerTest.cc
  5620. * test/Metalink2RequestGroupTest.cc
  5621. * test/MetalinkPostDownloadHandlerTest.cc
  5622. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5623. Rewritten AccRequestGroup
  5624. * src/main.cc
  5625. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5626. Rewritten.
  5627. * src/TaggedItem.cc (toTagString)
  5628. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5629. Rewritten Accept-Features handling.
  5630. * src/HttpRequestCommand.cc (createHttpRequest)
  5631. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5632. Rewritten accept types handling.
  5633. * HttpRequest.cc (createRequest)
  5634. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5635. Rewritten
  5636. * src/FeatureConfig.cc (featureSummary)
  5637. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5638. Changed method signature:
  5639. PeerStorage::getActivePeers
  5640. * src/DHTPeerAnnounceEntry.cc
  5641. * src/DefaultPeerStorage.cc
  5642. * src/DefaultPeerStorage.h
  5643. * src/PeerStorage.h
  5644. * test/DefaultPeerStorageTest.cc
  5645. * test/MockPeerStorage.h
  5646. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5647. Changed method signature:
  5648. DHTPeerAnnounceStorage::getPeers,
  5649. DHTPeerAnnounceEntry::getPeers
  5650. * src/DHTGetPeersMessage.cc
  5651. * src/DHTPeerAnnounceEntry.cc
  5652. * src/DHTPeerAnnounceEntry.h
  5653. * src/DHTPeerAnnounceStorage.cc
  5654. * src/DHTPeerAnnounceStorage.h
  5655. * test/DHTAnnouncePeerMessageTest.cc
  5656. * test/DHTPeerAnnounceEntryTest.cc
  5657. * test/DHTPeerAnnounceStorageTest.cc
  5658. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5659. Changed method signature:
  5660. NameResolver::resolve
  5661. * src/DHTEntryPointNameResolveCommand.cc
  5662. * src/InitiateConnectionCommand.cc
  5663. * src/NameResolver.cc
  5664. * src/NameResolver.h
  5665. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5666. Changed method signature:
  5667. PieceStorage::getAdvertisedPieceIndexes
  5668. * src/DefaultBtInteractive.cc
  5669. * src/DefaultPieceStorage.cc
  5670. * src/DefaultPieceStorage.h
  5671. * src/PieceStorage.h
  5672. * src/UnknownLengthPieceStorage.h
  5673. * test/MockPieceStorage.h
  5674. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5675. Changed method signature:
  5676. SegmentMan::getInFlightSegment
  5677. * src/AbstractCommand.cc
  5678. * src/SegmentMan.cc
  5679. * src/SegmentMan.h
  5680. * test/SegmentManTest.cc
  5681. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5682. Changed method signature:
  5683. DHTAbstractNodeLookupTask::getNodesFromMessage
  5684. * src/DHTAbstractNodeLookupTask.cc
  5685. * src/DHTAbstractNodeLookupTask.h
  5686. * src/DHTNodeLookupTask.cc
  5687. * src/DHTNodeLookupTask.h
  5688. * src/DHTPeerLookupTask.cc
  5689. * src/DHTPeerLookupTask.h
  5690. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5691. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  5692. * src/AbstractCommand.cc
  5693. * src/BtCheckIntegrityEntry.cc
  5694. * src/BtCheckIntegrityEntry.h
  5695. * src/BtFileAllocationEntry.cc
  5696. * src/BtFileAllocationEntry.h
  5697. * src/BtSetup.cc
  5698. * src/BtSetup.h
  5699. * src/CheckIntegrityCommand.cc
  5700. * src/CheckIntegrityEntry.h
  5701. * src/ChecksumCheckIntegrityEntry.cc
  5702. * src/ChecksumCheckIntegrityEntry.h
  5703. * src/DHTSetup.cc
  5704. * src/DHTSetup.h
  5705. * src/DownloadEngine.cc
  5706. * src/FileAllocationCommand.cc
  5707. * src/FileAllocationEntry.h
  5708. * src/RequestGroup.cc
  5709. * src/RequestGroup.h
  5710. * src/RequestGroupMan.cc
  5711. * src/RequestGroupMan.h
  5712. * src/StreamCheckIntegrityEntry.cc
  5713. * src/StreamCheckIntegrityEntry.h
  5714. * src/StreamFileAllocationEntry.cc
  5715. * src/StreamFileAllocationEntry.h
  5716. * src/TrackerWatcherCommand.cc
  5717. * src/a2functional.h
  5718. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5719. Changed method signature:
  5720. BNode::findClosestKNodes, BNode:: enumerateBucket,
  5721. DHTBucket::getGoodNodes,
  5722. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  5723. * src/BNode.cc
  5724. * src/BNode.h
  5725. * src/DHTAbstractNodeLookupTask.cc
  5726. * src/DHTAutoSaveCommand.cc
  5727. * src/DHTBucket.cc
  5728. * src/DHTBucket.h
  5729. * src/DHTBucketRefreshTask.cc
  5730. * src/DHTFindNodeMessage.cc
  5731. * src/DHTGetPeersMessage.cc
  5732. * src/DHTRoutingTable.cc
  5733. * src/DHTRoutingTable.h
  5734. * test/BNodeTest.cc
  5735. * test/DHTBucketTest.cc
  5736. * test/DHTRoutingTableTest.cc
  5737. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5738. In piece selection functions, Pass std::deque<...> by reference rather
  5739. than returning it.
  5740. * src/BitfieldMan.cc
  5741. * src/BitfieldMan.h
  5742. * src/DefaultBtRequestFactory.cc
  5743. * src/DefaultPieceStorage.cc
  5744. * src/Piece.cc
  5745. * src/Piece.h
  5746. * test/BitfieldManTest.cc
  5747. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5748. Implemented rarest piece first piece selection strategy.
  5749. * src/AbstractBtMessage.cc
  5750. * src/AbstractBtMessage.h
  5751. * src/BitfieldMan.cc
  5752. * src/BitfieldMan.h
  5753. * src/BtBitfieldMessage.cc
  5754. * src/BtHaveAllMessage.cc
  5755. * src/BtHaveMessage.cc
  5756. * src/DefaultPieceStorage.cc
  5757. * src/DefaultPieceStorage.h
  5758. * src/PeerInteractionCommand.cc
  5759. * src/PieceStorage.h
  5760. * src/UnknownLengthPieceStorage.h
  5761. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5762. Rewritten readData and writeData.
  5763. * src/MultiDiskAdaptor.cc
  5764. * src/MultiDiskAdaptor.h
  5765. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5766. Move \n out of the message "Usage: ...".
  5767. * src/version_usage.cc
  5768. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5769. Bump up version number to 0.13.2b.
  5770. * configure.ac
  5771. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5772. Added const qualifier to argument Exception& e.
  5773. * src/Logger.h
  5774. * src/SimpleLogger.cc
  5775. * src/SimpleLogger.h
  5776. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5777. Pool connection when CWD, SIZE command fails.
  5778. * src/FtpNegotiationCommand.cc
  5779. * src/FtpNegotiationCommand.h
  5780. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5781. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  5782. * src/HttpResponseCommand.cc
  5783. * src/HttpSkipResponseCommand.cc
  5784. * src/HttpSkipResponseCommand.h
  5785. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5786. Pool connection when a server returns 4xx, 5xx responses.
  5787. * src/HttpNullDownloadCommand.cc
  5788. * src/HttpNullDownloadCommand.h
  5789. * src/HttpResponse.cc
  5790. * src/HttpResponse.h
  5791. * src/HttpResponseCommand.cc
  5792. * src/HttpResponseCommand.h
  5793. * test/HttpResponseTest.cc
  5794. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5795. Print usage when no URL is specifed or bad command-line option is
  5796. specified.
  5797. * src/HelpItemFactory.cc
  5798. * src/help_tags.h
  5799. * src/option_processing.cc
  5800. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5801. Removed duplicate log message.
  5802. * src/AbstractCommand.cc (asyncResolveHostname)
  5803. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5804. Updated man page: --async-dns and --ftp-reuse-connection were added.
  5805. Changed -j option's default value from 5 to 1.
  5806. Added new examples using protocol auto detection feature.
  5807. Removed -T, -M usage where it can be omitted.
  5808. * doc/aria2c.1.txt
  5809. * doc/aria2c.1.html
  5810. * doc/aria2c.1.txt
  5811. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5812. Updated command-line usage text, so that it tells users that they
  5813. can specify any number of torrent files and metalink files in
  5814. command-line.
  5815. * src/version_usage.cc
  5816. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5817. Changed the default value of -j option to 1.
  5818. * src/HelpItemFactory.cc
  5819. * src/option_processing.cc
  5820. * src/usage_text.h
  5821. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5822. Added the ability to reuse connection in FTP and it is enabled by
  5823. default. It can be disabled by --ftp-reuse-connection=false option.
  5824. * src/Command.cc
  5825. * src/DownloadCommand.cc
  5826. * src/FtpDownloadCommand.cc
  5827. * src/FtpDownloadCommand.h
  5828. * src/FtpFinishDownloadCommand.cc
  5829. * src/FtpFinishDownloadCommand.h
  5830. * src/FtpInitiateConnectionCommand.cc
  5831. * src/FtpNegotiationCommand.cc
  5832. * src/FtpNegotiationCommand.h
  5833. * src/HelpItemFactory.cc
  5834. * src/Makefile.am
  5835. * src/Makefile.in
  5836. * src/OptionHandlerFactory.cc
  5837. * src/option_processing.cc
  5838. * src/prefs.h
  5839. * src/usage_text.h
  5840. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5841. Call Command::transitStatus() before calling Command::execute(),
  5842. so that the status change made in execute() is not cleared.
  5843. * src/DownloadEngine.cc
  5844. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5845. Removed forward declaration of SocketCore class.
  5846. * src/HttpDownloadCommand.h
  5847. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5848. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  5849. in InitiateConnectionCommandFactory. They should be set only when
  5850. the protocol is HTTP or HTTPS.
  5851. * src/InitiateConnectionCommandFactory.cc
  5852. * src/RequestGroup.cc
  5853. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5854. Fixed infinite loop in checksum checking.
  5855. * src/IteratableChecksumValidator.cc
  5856. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5857. Set _supportsPersistentConnection to true by default.
  5858. * src/Request.cc
  5859. * src/RequestGroup.cc
  5860. * test/HttpRequestTest.cc
  5861. * test/RequestTest.cc
  5862. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5863. Added timeout to socket pool. The default timeout is 15 seconds,
  5864. which is the same value Apache uses.
  5865. * src/DownloadEngine.cc
  5866. * src/DownloadEngine.h
  5867. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5868. Fixed misuse of multimap::find()
  5869. * src/HttpHeader.cc
  5870. * test/HttpHeaderTest.cc
  5871. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5872. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  5873. option.
  5874. The asynchronous DNS is not capable of IPv6 yet.
  5875. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  5876. least for HTTP download.
  5877. * src/AbstractCommand.cc
  5878. * src/AbstractCommand.h
  5879. * src/AsyncNameResolver.cc
  5880. * src/AsyncNameResolver.h
  5881. * src/DHTEntryPointNameResolveCommand.cc
  5882. * src/DHTEntryPointNameResolveCommand.h
  5883. * src/DownloadEngine.cc
  5884. * src/DownloadEngine.h
  5885. * src/FtpInitiateConnectionCommand.cc
  5886. * src/FtpInitiateConnectionCommand.h
  5887. * src/HelpItemFactory.cc
  5888. * src/HttpInitiateConnectionCommand.cc
  5889. * src/HttpInitiateConnectionCommand.h
  5890. * src/InitiateConnectionCommand.cc
  5891. * src/InitiateConnectionCommand.h
  5892. * src/Makefile.am
  5893. * src/Makefile.in
  5894. * src/NameResolver.cc
  5895. * src/NameResolver.h
  5896. * src/OptionHandlerFactory.cc
  5897. * src/SocketCore.cc
  5898. * src/SocketCore.h
  5899. * src/Util.cc
  5900. * src/Util.h
  5901. * src/option_processing.cc
  5902. * src/prefs.h
  5903. * src/usage_text.h
  5904. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5905. Updated man page: --quiet, --header were added.
  5906. --metalink-servers and --enable-http-keep-alive option were updated.
  5907. * doc/aria2c.1
  5908. * doc/aria2c.1.html
  5909. * doc/aria2c.1.txt
  5910. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5911. Enable HTTP keep-alive by default.
  5912. * src/HelpItemFactory.cc
  5913. * src/option_processing.cc
  5914. * src/usage_text.h
  5915. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5916. Disable http keep-alive if the remote server is not HTTP/1.1.
  5917. * src/HttpConnection.cc
  5918. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5919. Receive content body of 302 response so that the connection can be
  5920. reused later when http keep-alive is enabled.
  5921. * src/HttpNullDownloadCommand.cc
  5922. * src/HttpNullDownloadCommand.h
  5923. * src/HttpResponseCommand.cc
  5924. * src/HttpResponseCommand.h
  5925. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5926. const SharedHandle<Request> -> const SharedHandle<Request>&
  5927. * src/FtpDowndloadCommand.cc
  5928. * src/FtpDowndloadCommand.h
  5929. * src/HttpDownloadCommand.cc
  5930. * src/HttpDownloadCommand.h
  5931. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5932. Fixed the bug that the control file(.aria2 file) is not renamed
  5933. according to tryAutoFileRenaming().
  5934. tryAutoFileRenaming() was rewritten so that if both renamed file and
  5935. its control file exist, use them and continue download.
  5936. The old implementation didn't take into account of control file's
  5937. existence, so basically you couldn't continue download of renamed file.
  5938. * src/BtProgressInfoFile.h
  5939. * src/DefaultBtProgressInfoFile.cc
  5940. * src/DefaultBtProgressInfoFile.h
  5941. * src/NullProgressInfoFile.h
  5942. * src/RequestGroup.cc
  5943. * test/DefaultBtProgressInfoFileTest.cc
  5944. * test/MockBtProgressInfoFile.h
  5945. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5946. Change the default value of --metalink-servers option from `5' to `1'.
  5947. * src/HelpItemFactory.cc
  5948. * src/option_processing.cc
  5949. * src/usage_text.h
  5950. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5951. Reimplemented transparent metalink using Accept request header.
  5952. * src/HttpRequest.cc
  5953. * src/HttpRequest.h
  5954. * src/HttpRequestCommand.cc
  5955. * src/Metalink2RequestGroup.cc
  5956. * src/RequestGroup.cc
  5957. * src/RequestGroup.h
  5958. * test/HttpRequestTest.cc
  5959. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5960. Bump up version number to 0.13.2a
  5961. * configure.ac
  5962. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5963. Updated configure.ac using the result of autoscan.
  5964. * configure.ac
  5965. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5966. Fixed compilation error without gcrypt/openssl.
  5967. * src/DownloadCommand.cc
  5968. * src/DownloadCommand.h
  5969. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5970. Reorganized version information so that it can be displayed in a
  5971. standard terminal screen without scrolling.
  5972. Removed http, ftp from Configuration section, because they are always
  5973. enabled.
  5974. * src/FeatureConfig.cc
  5975. * src/FeatureConfig.h
  5976. * src/main.cc
  5977. * src/messageDigest.cc
  5978. * src/messageDigest.h
  5979. * src/version_usage.cc
  5980. * test/FeatureConfigTest.cc
  5981. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5982. Masked user ID in log.
  5983. * src/FtpConnection.cc (sendUser)
  5984. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5985. Removed query part from filename in HTTP download. The query part means
  5986. the substring after "?" in URL. Firefox seems do the same thing.
  5987. A query part is sometimes very long and not suitable to filename,
  5988. so I think it is better to remove it from filename.
  5989. * src/HttpRequest.cc
  5990. * src/HttpRequest.h
  5991. * src/Request.cc
  5992. * src/Request.h
  5993. * test/HttpRequestTest.cc
  5994. * test/RequestTest.cc
  5995. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5996. Rewritten Exception class. Throw exception object, not its pointer and
  5997. catch by reference, so that remove problematic delete operator for
  5998. catched exception.
  5999. * src/Exception.cc
  6000. * src/Exception.h
  6001. * test/ExceptionTest.cc
  6002. * src/*: All files throwing/catching exception.
  6003. * test/*: All files throwing/catching exception.
  6004. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6005. Now auto protocol detection is enabled without -Z option.
  6006. But there is a important difference between with/without -Z optoin.
  6007. For example, if you type:
  6008. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  6009. then, aria2 interprets there are 3 request groups:
  6010. (1) http://host/file, http://mirror/file <-- multi-source download
  6011. (2) file1.torrent
  6012. (3) file2.metalink
  6013. On the other hand, if you invoke above command with -Z option, it is
  6014. interpreted as 4 request groups:
  6015. (1) http://host/file
  6016. (2) file1.torrent
  6017. (3) file2.metalink
  6018. (4) http://mirror/file
  6019. I think usually user don't mix multi-source URLs and torrent files, so
  6020. there is no big problem here.
  6021. * src/main.cc
  6022. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6023. Fixed the bug that causes segmentaion fault when reading XML containing
  6024. unescapsed character like '&'.
  6025. Also a modification was made which avoids adding unnecessary
  6026. characters stack and appending unused string.
  6027. * src/ExpatMetalinkProcessor.cc
  6028. * src/FileMetalinkParserState.h
  6029. * src/FilesMetalinkParserState.h
  6030. * src/FinMetalinkParserState.h
  6031. * src/HashMetalinkParserState.h
  6032. * src/InitialMetalinkParserState.h
  6033. * src/LanguageMetalinkParserState.h
  6034. * src/MetalinkMetalinkParserState.h
  6035. * src/MetalinkParserState.h
  6036. * src/MetalinkParserStateMachine.cc
  6037. * src/MetalinkParserStateMachine.h
  6038. * src/OSMetalinkParserState.h
  6039. * src/PieceHashMetalinkParserState.h
  6040. * src/PiecesMetalinkParserState.h
  6041. * src/ResourcesMetalinkParserState.h
  6042. * src/SizeMetalinkParserState.h
  6043. * src/SkipTagMetalinkParserState.h
  6044. * src/URLMetalinkParserState.h
  6045. * src/VerificationMetalinkParserState.h
  6046. * src/VersionMetalinkParserState.h
  6047. * src/XML2SAXMetalinkProcessor.cc
  6048. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6049. Added StringFormat class, which internally calls vasprintf.
  6050. operator<< is defined for this class, so it can be used with iostream
  6051. classes nicely. SimpleLogger and following functions are rewritten
  6052. using StringFormat class.
  6053. Besides, now Logger class's methods are non-const, many classes
  6054. that has a const Logger* as a member variable are modified to remove
  6055. const qualifier from the variable declaration.
  6056. * src/HelpItemFactory.cc
  6057. * src/Request.cc
  6058. * src/SimpleLogger.cc
  6059. * src/StringFormat.cc
  6060. * src/StringFormat.h
  6061. * src/Util.cc
  6062. * src/option_processing.cc
  6063. * src/version_usage.cc
  6064. * test/StringFormatTest.cc
  6065. * src/*.h: The classes that has const Logger* as a member variable.
  6066. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6067. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  6068. failed. Also fixed memory link when exception is thrown there.
  6069. * src/main.cc (AccRequestGroup)
  6070. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6071. Added build-in "Accept-Features" support. For now only "metalink" is
  6072. used in this header field.
  6073. This "metalink" value is removed from the list when connecting URLs
  6074. fed by metalink file to avoid loop in "transparent" metlaink.
  6075. * src/HttpRequest.cc
  6076. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  6077. header is also held in this variable. Also renamed setUserHeaders as
  6078. addHeader and it was rewritten to add header not just to clear the old
  6079. value.
  6080. * src/HttpRequestCommand.cc
  6081. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  6082. from "Accept-Features" list.
  6083. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  6084. default.
  6085. * src/RequestGroup.h
  6086. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  6087. * src/a2functional.h: Included <string> because Concat class depends on
  6088. it.
  6089. * test/HttpRequestTest.cc
  6090. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6091. Added comment
  6092. * src/RequestGroup.cc (createNextCommand)
  6093. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6094. Capitalized METHOD_GET and METHOD_HEAD
  6095. * src/Request.cc
  6096. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6097. Added getDownloadResults() method
  6098. * src/RequestGroupMan.cc
  6099. * src/RequestGroupMan.h
  6100. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6101. Fixed the bug that aria2 exits when commands is empty() but
  6102. _routineCommands are not.
  6103. * src/DownloadEngine.cc
  6104. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6105. Use the default value pulled from Option object in HelpItemFactory.
  6106. except options whose defualt value is embedded in a usage text.
  6107. * src/HelpItemFactory.cc
  6108. * src/HelpItemFactory.h
  6109. * src/option_processing.cc
  6110. * src/version_usage.cc
  6111. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6112. Added --quiet option to make aria2 quiet (no console output).
  6113. --quiet option is tagged with ADVANCED.
  6114. * src/HelpItemFactory.cc
  6115. * src/LogFactory.cc
  6116. * src/LogFactory.h
  6117. * src/MultiUrlRequestInfo.cc
  6118. * src/MultiUrlRequestInfo.h
  6119. * src/NullStatCalc.h: New class. This class prints nothing.
  6120. * src/OptionHandlerFactory.cc
  6121. * src/main.cc
  6122. * src/option_processing.cc
  6123. * src/prefs.h
  6124. * src/usage_text.h
  6125. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6126. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  6127. * src/HelpItemFactory.cc (createHelpItems):
  6128. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6129. Fixed compilation error in ExpatMetalinkProcessor.cc
  6130. * src/ExpatMetalinkProcessor.cc
  6131. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6132. Reuse socket if the origin server supports HTTP keep-alive and
  6133. --enable-http-keep-alive or --enable-http-pipelining is given.
  6134. The current implementation doesn't reuse the connections established
  6135. against proxy server.
  6136. * src/AbstractCommand.cc
  6137. * src/DownloadEngine.cc
  6138. * src/DownloadEngine.h
  6139. * src/HttpDownloadCommand.cc
  6140. * src/HttpInitiateConnectionCommand.cc
  6141. * src/HttpResponseCommand.cc
  6142. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6143. Rewritten HTTP keep-alive and pipelining routine.
  6144. * src/AbstractCommand.cc
  6145. * src/HttpConnection.cc
  6146. * src/HttpDownloadCommand.cc
  6147. * src/HttpRequest.cc
  6148. * src/HttpRequestCommand.cc
  6149. * src/HttpResponseCommand.cc
  6150. * src/Request.cc
  6151. * src/Request.h
  6152. * src/RequestGroup.cc
  6153. * test/HttpRequestTest.cc
  6154. * test/HttpResponseTest.cc
  6155. * test/RequestTest.cc
  6156. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6157. Added missing setUserHeaders call
  6158. * src/HttpRequestCommand.cc
  6159. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6160. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  6161. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  6162. waste of time because it is more likey false.
  6163. * src/FileAllocationDispatcherCommand.cc (execute)
  6164. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6165. Now HTTP status and version are a member variable of HttpHeader.
  6166. HTTP status is processed as a string, not integer.
  6167. * src/AbstractProxyResponseCommand.cc
  6168. * src/HttpConnection.cc
  6169. * src/HttpHeader.cc
  6170. * src/HttpHeader.h
  6171. * src/HttpHeaderProcessor.cc
  6172. * src/HttpHeaderProcessor.h
  6173. * src/HttpResponse.cc
  6174. * src/HttpResponse.h
  6175. * test/HttpHeaderProcessorTest.cc
  6176. * test/HttpResponseTest.cc
  6177. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6178. Added --header option. You can specify any number of additional HTTP headers
  6179. like:
  6180. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  6181. Unlike other commad-line option, you can use --header option multiple times.
  6182. * src/HelpItemFactory.cc
  6183. * src/HttpRequest.{cc, h}
  6184. * src/HttpRequestCommand.cc
  6185. * src/OptionHandlerFactory.cc
  6186. * src/OptionHandlerImpl.h
  6187. * src/option_processing.cc
  6188. * src/prefs.h
  6189. * src/usage_text.h
  6190. * test/HttpRequestTest.cc (testUserHeaders)
  6191. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6192. Eliminates the time lag between sequential downloads and commands in
  6193. the same RequestGroup.
  6194. In old implementation, aria2 occasionally waits 1 seconds before
  6195. executing next command or RequestGroup.
  6196. This is really a waste of time, and new implementation eliminates
  6197. this unnecessary time lag.
  6198. * src/AbstractCommand.cc
  6199. * src/AutoSaveCommand.cc
  6200. * src/CheckIntegrityCommand.cc
  6201. * src/Command.{cc, h}
  6202. * src/DownloadEngine.{cc, h}
  6203. * src/DownloadEngineFactory.cc
  6204. * src/FileAllocationCommand.cc
  6205. * src/FileAllocationDispatcherCommand.cc
  6206. * src/FillRequestGroupCommand.cc
  6207. * src/FtpInitiateConnectionCommand.cc
  6208. * src/HaveEraseCommand.cc
  6209. * src/HttpInitiateConnectionCommand.cc
  6210. * src/HttpResponseCommand.cc
  6211. * src/RealtimeCommand.cc
  6212. * src/RequestGroup.cc
  6213. * src/RequestGroupMan.cc
  6214. * src/StreamFileAllocationEntry.cc
  6215. * src/TimeBasedCommand.{cc, h}
  6216. * src/TimedHaltCommand.cc
  6217. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6218. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  6219. keyword explicit and SharedHandle's default constructor initializes
  6220. its internal obj to null, old implementation initializes it using
  6221. obj's default constructor.
  6222. To assign null, write SharedHandle<T> x(...); x.reset();
  6223. TODO: test/SharedHandleTest.cc needs more tests.
  6224. * src/SharedHandle.h
  6225. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6226. Fixed type in man page.
  6227. * doc/aria2c.1.txt
  6228. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6229. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  6230. * src/SimpleLogger.{cc, h}
  6231. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6232. Implemented auto protocol detection.
  6233. Now you can do:
  6234. aria2c -Z http://host/file file1.torrent file2.metalink
  6235. (Note: -Z option is required for auto protcol detection.)
  6236. Then aria2c downloads 3 files simultaneously:
  6237. 1. http://host/file
  6238. 2. file1.torrent <-- read local torrent file
  6239. 3. file2.metalink <-- read local Metalink file.
  6240. Same thing goes with -i option. Assume your uris.txt contans:
  6241. http://host/file
  6242. file1.torrent
  6243. file2.metalink
  6244. Then you can do: aria2c -i uris.txt
  6245. (Note: -Z option is not needed if -i option is given.)
  6246. * src/main.cc
  6247. * src/ProtocolDetector.{cc, h}
  6248. * test/ProtocolDetectorTest.cc
  6249. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6250. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  6251. installed
  6252. * src/ARC4Encryptor.h
  6253. * src/ARC4Decryptor.h
  6254. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6255. Renamed argument from 'errno' to 'err', since errno is confused with
  6256. errno defined in errno.h.
  6257. * src/LibgcryptARC4Decryptor.h
  6258. * src/LibgcryptARC4Context.h
  6259. * src/LibgcryptDHKeyExchange.h
  6260. * src/LibgcryptARC4Encryptor.h
  6261. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6262. Rewritten choking algorithm.
  6263. * src/PeerChokeCommand.{cc, h}
  6264. * src/BtInterestedMessage.cc
  6265. * src/PeerSessionResource.{cc, h}
  6266. * src/DefaultPeerStorage.{cc, h}
  6267. * src/BtNotInterestedMessage.cc
  6268. * src/DefaultBtMessageDispatcher.{cc, h}
  6269. * src/BtMessageDispatcher.h
  6270. * src/Peer.{cc, h}
  6271. * src/BtLeecherStateChoke.{cc, h}
  6272. * src/BtSetup.cc
  6273. * src/BtSeederStateChoke.{cc, h}
  6274. * src/PeerStorage.h
  6275. * test/MockPeerStorage.h
  6276. * test/MockBtMessageDispatcher.h
  6277. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6278. Fixed compilation error on x84-64 platform.
  6279. * src/AuthConfig.cc: Included ostream.
  6280. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6281. Rewritten getBasename() and getDirname(), without standard library
  6282. basename(), dirname().
  6283. * src/File.cc
  6284. * test/FileTest.cc
  6285. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6286. Added Simplified Chinese translation. Also updated the following
  6287. translations: Polish, Dutch, German. Great thanks to all translators.
  6288. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6289. Suppress content-range error when 'Content-Range' response header
  6290. doesn't contains bytes-unit specifier 'bytes'
  6291. * src/HttpHeader.cc (getRange)
  6292. * test/HttpHeaderTest.cc
  6293. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6294. Fixed compilation error with g++-4.3
  6295. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6296. Added missing include files for MinGW
  6297. * test/HttpHeaderProcessorTest.cc
  6298. * test/DHTRoutingTableSerializerTest.cc
  6299. * test/DHTRoutingTableDeserializerTest.cc
  6300. * test/UriListParserTest.cc
  6301. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6302. Now download line is printed nicely with no garbage at the end of
  6303. line. I use ioctl to get the columns of terminal.
  6304. If stdout is redirected to another device, instead of carriage return,
  6305. end of line '\n' character is used. This is feature request#1909659
  6306. * src/ConsoleStatCalc.cc (calculateStat)
  6307. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6308. Included a2time.h
  6309. * src/DHTMessageDispatcher.h
  6310. * src/DHTMessageEntry.h
  6311. * src/DHTReplaceNodeTask.h
  6312. * src/DHTMessageTracker.h
  6313. * src/Util.h
  6314. * src/CookieBox.h
  6315. * src/SocketCore.h
  6316. * src/DefaultBtMessageDispatcher.h
  6317. * src/SocketCore.cc
  6318. * src/Util.cc
  6319. * src/DHTPingTask.h
  6320. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6321. Fixed high memory footprint when DHT is enabled.
  6322. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  6323. queued than it is processed and the queue is getting longer. As a
  6324. consequence, momory usage is increased.
  6325. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  6326. replacement cache in DHTBucket which is described in Kademlia paper.
  6327. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  6328. DHTReplaceNodeTask.
  6329. * src/DHTBucket.{h, cc}
  6330. (cacheNode): New function.
  6331. (getCachedNodes): New function.
  6332. (dropNode): Push back cached node to _nodes.
  6333. * test/DHTBucketTest.cc
  6334. (testCacheNode): New test
  6335. (testDropNode): New test
  6336. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6337. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  6338. the unused 4KB memory when ssl is not used.
  6339. * src/SocketCore.cc
  6340. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6341. Added summary log for peer announce storage.
  6342. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  6343. Removed cast
  6344. * src/DefaultPeerStorage.cc (addPeer)
  6345. Log exception message
  6346. * src/DHTMessageTracker.cc (handleTimeout)
  6347. Fixed casting
  6348. * test/HttpRequestTest.cc
  6349. * test/MetalinkProcessorTest.cc
  6350. * test/PieceTest.cc
  6351. * test/MetalinkEntryTest.cc
  6352. * test/SequenceTest.cc
  6353. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6354. * src/ParameterizedStringParser.cc (createLoop):
  6355. Removed unused variable sstep.
  6356. * src/AlphaNumberDecorator.h (decode): Rewritten.
  6357. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6358. * src/Util.{h, cc}
  6359. (parseUInt): New function.
  6360. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  6361. The actual range is uint32_t.
  6362. * test/UtilTest.cc
  6363. * src/ParameterizedStringParser.cc:
  6364. Use Util::parseUInt() for loop variables.
  6365. * test/ParameterizedStringParserTest.cc
  6366. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  6367. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6368. Rewritten the functions for binding port.
  6369. * src/DHTConnectionImpl.{h, cc}
  6370. * src/PeerListenCommand.{h, cc}
  6371. * src/DHTSetup.cc
  6372. * src/BtSetup.cc
  6373. * test/DHTConnectionImplTest.cc
  6374. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6375. type cleanup for allmost all remaining files.
  6376. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6377. Type clarification
  6378. * src/PeerSessionResource.{h, cc}
  6379. * src/DefaultPieceStorage.{h, cc}
  6380. * src/Peer.{h, cc}
  6381. * test/PeerSessionResourceTest.cc
  6382. Use div function
  6383. * src/BtPieceMessage.cc (erasePieceOnDisk)
  6384. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6385. Type clarification
  6386. * src/DefaultPeerStorage.{h, cc}
  6387. * test/DefaultPeerStorageTest.cc
  6388. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6389. Type clarification: size_t for length or size, uint64_t for file
  6390. length, off_t for file offset.
  6391. * src/DefaultBtProgressInfoFile.cc
  6392. * src/DefaultBtContext.{h, cc}
  6393. * src/DefaultBtInteractive.cc
  6394. * src/DownloadCommand.{h, cc}
  6395. * src/IteratableChunkChecksumValidator.{h, cc}
  6396. * src/SegmentMan.{h, cc}
  6397. * src/SingleFileDownloadContext.{h, cc}
  6398. * src/IteratableChecksumValidator.{h, cc}
  6399. * src/BtContext.h
  6400. * src/IteratableValidator.h
  6401. * src/DownloadContext.h
  6402. * test/SingleFileDownloadContextTest.cc
  6403. * test/DefaultBtContextTest.cc
  6404. * test/MockBtContext.h
  6405. * test/Metalink2RequestGroupTest.cc
  6406. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6407. Type clarification: size_t for length or size, uint64_t for file
  6408. length, off_t for file offset.
  6409. * src/PiecedSegment.cc
  6410. * src/GrowSegment.h
  6411. * src/DefaultBtRequestFactory.h
  6412. * src/DefaultBtProgressInfoFile.cc
  6413. * src/UnknownLengthPieceStorage.h
  6414. * src/DefaultPieceStorage.cc
  6415. * src/UnknownLengthPieceStorage.cc
  6416. * src/DefaultBtInteractive.cc
  6417. * src/GrowSegment.cc
  6418. * src/BitfieldMan.h
  6419. * src/DownloadCommand.cc
  6420. * src/BtRequestFactory.h
  6421. * src/PiecedSegment.h
  6422. * src/DefaultPieceStorage.h
  6423. * src/Piece.cc
  6424. * src/DefaultBtRequestFactory.cc
  6425. * src/PieceStorage.h
  6426. * src/Segment.h
  6427. * src/Piece.h
  6428. * src/BitfieldMan.cc
  6429. * src/Util.cc
  6430. * test/DefaultBtProgressInfoFileTest.cc
  6431. * test/DefaultPieceStorageTest.cc
  6432. * test/MockPieceStorage.h
  6433. * test/BtRequestMessageTest.cc
  6434. * test/DefaultBtMessageDispatcherTest.cc
  6435. * test/BitfieldManTest.cc
  6436. * test/GrowSegmentTest.cc
  6437. * test/PieceTest.cc
  6438. * test/SegmentTest.cc
  6439. * test/SegmentManTest.cc
  6440. * test/DefaultBtRequestFactoryTest.cc
  6441. * test/MockBtRequestFactory.h
  6442. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6443. Fixed compilation error with --disable-nls
  6444. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  6445. in gettext.h causes the problem.
  6446. * src/common.h
  6447. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6448. Removed subPiece related functions.
  6449. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  6450. * src/DefaultPieceStorage.{h, cc}
  6451. * test/PieceTest.cc
  6452. * test/DefaultPieceStorageTest.cc
  6453. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6454. Use unsigned char for data store.
  6455. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6456. Bump up version number to 0.13.0+1
  6457. * configure.ac
  6458. * Release 0.13.0+1
  6459. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6460. Changed inactive connection timeout to 120.
  6461. To accept more mulually interested peers, disconnect peer when there
  6462. is no interest between us after certain time passed.
  6463. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  6464. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6465. Fixed the bug that aria2 only uses first dns server in resolv.conf
  6466. when compiled with async DNS support.
  6467. * src/DownloadEngine.cc
  6468. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  6469. value '10' will be a little bit short when some DNS servers are
  6470. offline and several DNS servers are tried. It should be configured
  6471. by command-line option.
  6472. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6473. Merged Ross's mingw patch.
  6474. * src/DHTRoutingTableDeserializer.cc
  6475. * src/DHTRoutingTableSerializer.cc
  6476. * src/Platform.{h, cc}
  6477. * src/timegm.h
  6478. * src/gettimeofday.h
  6479. * src/getaddrinfo.h
  6480. * src/SocketCore.h
  6481. * src/common.h
  6482. * src/inet_aton.h
  6483. * src/DownloadEngine.h
  6484. * src/gai_strerror.h
  6485. * src/a2netcompat.h
  6486. * configure.ac
  6487. * configure
  6488. * aclocal.m4
  6489. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6490. Included missing iostream.
  6491. * test/AllTest.cc
  6492. * test/BtDependencyTest.cc
  6493. * test/BtExtendedMessageTest.cc
  6494. * test/DHTConnectionImplTest.cc
  6495. * test/DHTMessageFactoryImplTest.cc
  6496. * test/DHTMessageTrackerEntryTest.cc
  6497. * test/DHTNodeTest.cc
  6498. * test/DHTRoutingTableSerializerTest.cc
  6499. * test/DefaultBtAnnounceTest.cc
  6500. * test/DefaultBtContextTest.cc
  6501. * test/DefaultBtMessageFactoryTest.cc
  6502. * test/DefaultExtensionMessageFactoryTest.cc
  6503. * test/HandshakeExtensionMessageTest.cc
  6504. * test/HttpResponseTest.cc
  6505. * test/MetalinkProcessorTest.cc
  6506. * test/MultiFileAllocationIteratorTest.cc
  6507. * test/SocketCoreTest.cc
  6508. * test/UTPexExtensionMessageTest.cc
  6509. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6510. Reorganized includes.
  6511. * src/NameResolver.cc
  6512. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6513. Fixed compilation error without ares/c-ares
  6514. * src/NameResolver.h:
  6515. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6516. Added a test for large file.
  6517. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  6518. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6519. Fixed the bug that file size is ignored if size > INT32_MAX
  6520. * src/SizeMetalinkParserState.cc (endElement):
  6521. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6522. Bump up version number to 0.13.0
  6523. * configure.ac
  6524. * Release 0.13.0
  6525. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6526. Updated Makfefile.am to make 'make dist' work.
  6527. Now packaged filename is aria2c-VERSION.tar.bz2.
  6528. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  6529. Added LICENSE.OpenSSL to dist_noinst_DATA.
  6530. Large file support is now configured by configure script.
  6531. * configure.ac
  6532. Removed unsused source files
  6533. * src/
  6534. * test/
  6535. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  6536. Peer.h and BtContext.h respectively.
  6537. * src/Peer.h
  6538. * src/BtContext.h
  6539. Updated translations.
  6540. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  6541. translations. Great thanks to all translators!;)
  6542. * po/*.{po, gmo}
  6543. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6544. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  6545. statically declared sha1 MessageDigestContext.
  6546. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  6547. initialization of short-lived MessageDigestContext.
  6548. * src/MessageDigestHelper.{h, cc}
  6549. * src/main.cc
  6550. Now DownloadCommand has a reference to MessageDigestContext to avoid
  6551. the initialization of MessageDigestContext every time in validating
  6552. chunk checksum.
  6553. * src/DownloadCommand.{h, cc}
  6554. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6555. Add a file descriptor which connected to fast peer(latency<1500) to
  6556. select(). This change reduced CPU load.
  6557. * src/PeerInteractionCommand.cc
  6558. * src/DefaultBtInteractive.{h, cc}
  6559. * src/BtInteractive.h
  6560. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6561. Fixed the previous insufficient fix for possible busy loop.
  6562. * src/MSEHandshake.cc (identifyHandshakeType)
  6563. Removed unused functions.
  6564. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  6565. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6566. Fixed possible busy loop if first 20 bytes are not received for a few
  6567. minutes.
  6568. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  6569. * src/ReceiverMSEHandshakeCommand.cc
  6570. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6571. Fixed compilation error
  6572. * src/ExpatMetalinkProcessor.cc
  6573. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6574. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  6575. * src/DHTBucket.cc
  6576. Removed unnecessary cast.
  6577. * src/HandshakeExtensionMessage.cc
  6578. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6579. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  6580. is missing.
  6581. * src/OptionHandlerFactory.cc
  6582. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6583. Fixed the bug that HAVE message is not sent for a piece they are
  6584. downloaded fom http/ftp server before any BitTorrent handshake is done
  6585. with peers.
  6586. * src/DefaultBtInteractive.cc
  6587. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6588. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  6589. * src/Makefile.am
  6590. * src/Makefile.in
  6591. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6592. Updated README. Added html version of README and man page.
  6593. * README
  6594. * README.html
  6595. * readme2html: Shell script to generate README.html from README using
  6596. asciidoc.
  6597. * doc/aria2c.1.html
  6598. * doc/makeman: Added the line to generate aria2c.1.html
  6599. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6600. Fixed offset calculation.
  6601. * src/LibgcryptDHKeyExchange.h (computeSecret)
  6602. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6603. Rewritten itos and uitos using template. llitos and ullitos are
  6604. replaced with itos and uitos respectively.
  6605. * src/Util.{h, cc}
  6606. * test/UtilTest.cc
  6607. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6608. Fixed the bug that DH key exchange sometimes fails due to bad handling
  6609. of the number of bytes required for storing public key and shared
  6610. secret.
  6611. * src/LibgcryptDHKeyExchange.h
  6612. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  6613. * src/MSEHandshake.cc
  6614. * test/DHKeyExchangeTest.cc
  6615. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6616. Removed since they are not used.
  6617. * src/Xml2MetalinkProcessor.{h, cc}
  6618. * src/Socket.cc
  6619. * src/SegmentSplitter.{h, cc}
  6620. * test/Xml2MetalinkProcessorTest.cc
  6621. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6622. Fixed the bug that prevents aria2 from stopping other than by pressing
  6623. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  6624. option. aria2 doesn't stop even after --seed-time is satisfied and
  6625. continues to output blank lines in the console.
  6626. * src/ReceiverMSEHandshakeCommand.cc
  6627. * src/PeerReceiveHandshakeCommand.cc
  6628. * src/PeerListenCommand.cc
  6629. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6630. Bump up version number to 0.13.0rc
  6631. * configure.ac
  6632. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6633. Updated man page and some usage text.
  6634. * doc/aria2c.1.txt
  6635. * src/usage_text.h
  6636. * po/*.{po, gmo}
  6637. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6638. Updated translations. Added Finnish and Hebrew translations.
  6639. Great thanks to all translators!
  6640. * po/*.{po, gmo}
  6641. * po/LINGUAS
  6642. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6643. Log more detailed information about each message.
  6644. * src/DHTQueryMessage.{h, cc}
  6645. * src/DHTGetPeersMessage.{h, cc}
  6646. * src/DHTFindNodeReplyMessage.{h, cc}
  6647. * src/DHTGetPeersReplyMessage.{h, cc}
  6648. * src/DHTAnnouncePeerMessage.{h, cc}
  6649. * src/DHTResponseMessage.{h, cc}
  6650. * src/DHTFindNodeMessage.{h, cc}
  6651. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6652. Use constants defined in prefs.h
  6653. * src/option_processing.cc
  6654. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6655. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  6656. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6657. Make room for future enchancements for IPv6 addresses.
  6658. Bump up version number of dht.dat file format to 2.
  6659. Not compatible with previous version.
  6660. * src/DHTRoutingTableSerializer.cc
  6661. * src/DHTRoutingTableDeserializer.cc
  6662. * test/DHTRoutingTableSerializerTest.cc
  6663. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6664. Added handling for the return values from
  6665. PeerMessageUtil::createcompact().
  6666. * src/DefaultBtContext.cc (computeFastSet):
  6667. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6668. Fixed abort when peer's ip address is IPv4-mapped address.
  6669. * src/DefaultBtContext.cc (computeFastSet)
  6670. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  6671. cannot handle IPv4-mapped addresses.
  6672. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  6673. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6674. Proper return value handling for OpenSSL functions.
  6675. * src/LibsslDHKeyExchange.h
  6676. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6677. Random bytes generation using libgcrypt and OpenSSL.
  6678. * src/DHTUtil.{h, cc}
  6679. * test/DHTUtilTest.cc
  6680. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6681. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  6682. received.
  6683. * src/DHTMessageReceiver.cc (receiveMessage)
  6684. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6685. Fixed the bug that a return code is always 0. BUG#1897704
  6686. If error occurred during the download or there exist unfinished
  6687. downloads, aria2 returns with code 1.
  6688. * src/RequestGroupMan.{h, cc}
  6689. * src/MultiUrlRequestInfo.{h, cc}
  6690. * src/main.cc
  6691. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6692. IPv6 support for SocketCore class.
  6693. TODO: In SocketCore::establishConnection(), this is insufficient to
  6694. determin the failure of connect() here because the socket is
  6695. non-blocking state. The next addresses should be tried after select().
  6696. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  6697. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  6698. instead which address family independent.
  6699. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  6700. information in a compact peer format which is for IPv4 only.
  6701. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  6702. this is a spec of BitTorrent protocol.
  6703. * src/SocketCore.{h, cc}
  6704. * src/PeerMessageUtil.cc
  6705. * test/SocketCoreTest.cc
  6706. * test/PeerMessageUtilTest.cc
  6707. * test/DHTConnectionImplTest.cc
  6708. Handle IPv4-mapped addresses.
  6709. * src/DHTNode.cc: Now identity is determined by node id.
  6710. * src/DHTMessageTrackerEntry.cc
  6711. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  6712. should handle it.
  6713. * src/DHTRoutingTableDeserializer.cc
  6714. * src/DHTMessageFactoryImpl.cc
  6715. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6716. Change the unit of --stop option from a minute to a second.
  6717. * src/usage_text.h
  6718. * src/DownloadEngineFactory.cc
  6719. * src/OptionHandlerFactory.cc
  6720. * src/message.h
  6721. * src/TimedHaltCommand.cc
  6722. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6723. Make listening socket non-block mode.
  6724. * src/FtpConnection.cc
  6725. * src/FtpNegotiationCommand.{h, cc}
  6726. * src/PeerListenCommand.cc
  6727. Fixed the bug that cause slow ftp negotiation.
  6728. * src/FtpNegotiationCommand.{h, cc}
  6729. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6730. Added basic tag to --enable-dht, --dht-listen-port option.
  6731. * src/HelpItemFactory.cc (createHelpItems)
  6732. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6733. Updated text.
  6734. * src/usage_text.h
  6735. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6736. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  6737. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6738. Determin _threadtholdSpeed in each constructor for
  6739. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  6740. * src/ActivePeerConnectionCommand.{h, cc}
  6741. * src/PeerReceiveHandshakeCommand.{h, cc}
  6742. * src/BtSetup.cc
  6743. * src/BtConstants.h
  6744. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6745. Added --bt-min-crypto-level and --bt-require-crypto options.
  6746. * src/OptionHandlerFactory.cc
  6747. * src/MSEHandshake.cc
  6748. * src/HelpItemFactory.cc
  6749. * src/option_processing.cc
  6750. * src/ReceiverMSEHandshakeCommand.cc
  6751. * src/prefs.h
  6752. * src/DefaultBtAnnounce.cc
  6753. * src/InitiatorMSEHandshakeCommand.cc
  6754. * src/usage_text.h
  6755. * test/MSEHandshakeTest.cc
  6756. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6757. Bump version number to 0.13.0b
  6758. * configure.ac
  6759. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6760. Updated doc.
  6761. * src/MessageDigestHelper.h:
  6762. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6763. Use raw message digest as a token instead of its hexadecimal
  6764. representation.
  6765. * src/DHTTokenTracker.cc (generateToken)
  6766. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6767. Added Message Stream Encryption(MSE) support.
  6768. Currently, aria2 accepts incoming connections with Obfuscation Header
  6769. and legacy BitTorrent Header and establishes connections with
  6770. Obfuscation Header first and if failed then retry with legacy
  6771. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  6772. choose ARC4. The new option to change the default behavior is planned.
  6773. For tracker extension, "supportcrypto=1" is added statically.
  6774. * src/PeerInitiateConnectionCommand.{h, cc}
  6775. * src/PeerConnection.{h, cc}
  6776. * src/HandleRegistry.h
  6777. * src/SocketCore.h
  6778. * src/PeerReceiveHandshakeCommand.{h, cc}
  6779. * src/BtRegistry.{h, cc}
  6780. * src/PeerListenCommand.cc
  6781. * src/InitiatorMSEHandshakeCommand.{h, cc}
  6782. * src/ReceiverMSEHandshakeCommand.{h, cc}
  6783. * src/MSEHandshake.{h, cc}
  6784. * src/ARC4Encryptor.h
  6785. * src/ARC4Decryptor.h
  6786. * src/LibgcryptARC4Encryptor.h
  6787. * src/LibgcryptARC4Decryptor.h
  6788. * src/LibgcryptARC4Context.h
  6789. * src/LibsslARC4Encryptor.h
  6790. * src/LibsslARC4Decryptor.h
  6791. * src/LibsslARC4Context.h
  6792. * src/DHKeyExchange.h
  6793. * src/LibgcryptDHKeyExchange.h
  6794. * src/LibsslDHKeyExchange.h
  6795. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  6796. * test/DefaultBtAnnounceTest.cc
  6797. * test/ARC4Test.cc
  6798. * test/DHKeyExchangeTest.cc
  6799. Removed prepareForRetry() because it is not used.
  6800. * src/PeerAbstractCommand.{h, cc}
  6801. * src/PeerInteractionCommand.{h, cc}
  6802. * src/PeerInitiateConnectionCommand.{h, cc}
  6803. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6804. Added the ability to load nodes from torrent file. These nodes are
  6805. added to the routing table when downloading that torrent.
  6806. * src/BtContext.h
  6807. * src/DefaultBtContext.{h, cc}
  6808. * src/DHTSetup.cc
  6809. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  6810. hostname and port pair, and resolves all of them.
  6811. * src/NameResolver.{h, cc}: Added reset().
  6812. * src/RequestGroup.cc
  6813. * test/DefaultBtContextTest.cc
  6814. * test/MockBtContext.h
  6815. Removed assert() from DefaultBtContext and throw exception instead.
  6816. * src/DefaultBtContext.cc
  6817. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6818. Fixed segmentation fault bug when exiting if dht is disabled.
  6819. * src/RequestGroup.cc
  6820. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6821. Fixed typo in log message and define the message in message.h
  6822. * src/TimedHaltCommand.cc
  6823. * src/message.h
  6824. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6825. Included RecoverableException.h to fix compilation error.
  6826. * test/DHTMessageFactoryImplTest.cc
  6827. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6828. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  6829. * test/DHTPingMessageTest.cc
  6830. * test/DHTGetPeersMessageTest.cc
  6831. * test/DHTFindNodeMessageTest.cc
  6832. * test/DHTAnnouncePeerMessageTest.cc
  6833. * test/MockDHTMessage.h
  6834. * test/MockDHTMessageFactory.h
  6835. * test/MockDHTMessageDispatcher.h: New class.
  6836. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6837. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  6838. virtual.
  6839. * src/DHTMessageDispatcher.h
  6840. * src/DHTMessageDispatcherImpl.{h, cc}
  6841. * src/DHTSetup.cc
  6842. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6843. Adding handling of DHT error message. Just log error message and
  6844. throw exception.
  6845. * src/DHTMessageFactoryImpl.cc
  6846. * test/DHTMessageFactoryImplTest.cc
  6847. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6848. Added handling of dynamic cast failure.
  6849. * src/DHTNodeLookupTask.cc
  6850. * src/DHTPeerLookupTask.cc
  6851. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6852. Added the ability to stop aria2 itself when given time has passed
  6853. from start. Use --stop option to specify time in minutes.
  6854. When 0 is given, this feature is disabled.
  6855. * src/OptionHandlerFactory.cc
  6856. * src/TimeBasedCommand.h: Make _interval protected scope.
  6857. * src/HelpItemFactory.cc
  6858. * src/option_processing.cc
  6859. * src/prefs.h
  6860. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  6861. before calling RequestGroupMan::fillRequestGroupFromReserver().
  6862. Without this modification, the result list shows "ERR" when aria2 is
  6863. stopped by --stop option. It should be "INPR".
  6864. * src/DownloadEngine.{h, cc}
  6865. * src/DownloadEngineFactory.cc
  6866. * src/usage_text.h
  6867. * src/TimedHaltCommand.{h, cc}: New class.
  6868. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6869. Bootstrap through node added by port message.
  6870. Currently bootstrap is executed if the number of buckets in routing
  6871. table is 1.
  6872. * src/BtPortMessage.{h, cc}
  6873. * src/DefaultBtMessageFactory.{h, cc}
  6874. * src/PeerInteractionCommand.cc
  6875. * test/BtPortMessageTest.cc
  6876. * test/MockDHTTask.h
  6877. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6878. Extract the Peer class's member variables, which are only needed after
  6879. PeerInteractionCommand, into PeerSessionResource class.
  6880. This class is instantiated in PeerInteractionCommand class's ctor and
  6881. released in its dtor.
  6882. This will make Peer class lightweight and uses less memory for peers
  6883. which are not connected and wait in the queue.
  6884. * src/PeerChokeCommand.cc
  6885. * src/PeerSessionResource.{h, cc}
  6886. * src/PeerInteractionCommand.cc
  6887. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  6888. * src/DefaultBtInteractive.cc
  6889. * src/BtPieceMessage.cc
  6890. * src/BtInterestedMessage.cc
  6891. * src/BtUnchokeMessage.cc
  6892. * src/DefaultPeerStorage.{h, cc}
  6893. * src/PeerInitiateConnectionCommand.cc
  6894. * src/ActivePeerConnectionCommand.cc
  6895. * src/BtNotInterestedMessage.cc
  6896. * src/DefaultBtMessageDispatcher.cc
  6897. * src/BtChokeMessage.cc
  6898. * src/BtRequestMessage.cc
  6899. * src/Peer.{h, cc}
  6900. * src/BtRegistry.h
  6901. * src/TrackerWatcherCommand.cc
  6902. * src/PeerReceiveHandshakeCommand.cc
  6903. * test/BtExtendedMessageTest.cc
  6904. * test/BtAllowedFastMessageTest.cc
  6905. * test/BtCancelMessageTest.cc
  6906. * test/DefaultPieceStorageTest.cc
  6907. * test/BtBitfieldMessageTest.cc
  6908. * test/BtHaveMessageTest.cc
  6909. * test/BtNotInterestedMessageTest.cc
  6910. * test/BtRequestMessageTest.cc
  6911. * test/PeerSessionResourceTest.cc
  6912. * test/DefaultBtMessageDispatcherTest.cc
  6913. * test/PeerTest.cc
  6914. * test/BtInterestedMessageTest.cc
  6915. * test/BtRejectMessageTest.cc
  6916. * test/BtChokeMessageTest.cc
  6917. * test/DefaultPeerStorageTest.cc
  6918. * test/BtHaveNoneMessageTest.cc
  6919. * test/BtHaveAllMessageTest.cc
  6920. * test/DefaultExtensionMessageFactoryTest.cc
  6921. * test/BtUnchokeMessageTest.cc
  6922. * test/DefaultBtMessageFactoryTest.cc
  6923. * test/HandshakeExtensionMessageTest.cc
  6924. * test/UTPexExtensionMessageTest.cc
  6925. * test/DefaultBtRequestFactoryTest.cc
  6926. * test/BtPieceMessageTest.cc
  6927. Removed typedef PeerStats.
  6928. * src/PeerStat.h
  6929. * src/SegmentMan.cc
  6930. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6931. Added std namespace to copy, remove_copy, back_inserter,
  6932. front_inserter.
  6933. * src/RequestGroupMan.cc
  6934. * src/DefaultPieceStorage.cc
  6935. * src/StreamFileAllocationEntry.cc
  6936. * src/BtFileAllocationEntry.cc
  6937. * src/RequestGroup.cc
  6938. * src/MetalinkEntry.cc
  6939. * src/DelegatingPeerListProcessor.cc
  6940. * src/DefaultBtRequestFactory.cc
  6941. * src/DefaultBtMessageDispatcher.cc
  6942. * src/version_usage.cc: Included <algorithm>
  6943. * src/main.cc
  6944. * src/MetalinkParserController.cc
  6945. * src/DefaultBtContext.cc
  6946. * src/DownloadEngineFactory.cc
  6947. * src/a2algo.h
  6948. Removed.
  6949. * test/StreamUriListParserTest.cc
  6950. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6951. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  6952. ActivePeerConnectionCommand when it is given and
  6953. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  6954. * src/ActivePeerConnectionCommand.{h, cc}
  6955. * src/BtSetup.cc
  6956. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6957. Only add socket to DownloadEngine's select routine when peer or
  6958. localhost is unchoked and interested. This lowers CPU usage a
  6959. little bit.
  6960. * src/PeerInteractionCommand.cc
  6961. * src/PeerAbstractCommand.{h, cc}
  6962. * src/BtInteractive.h
  6963. * src/DefaultBtInteractive.{h, cc}
  6964. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6965. Revert previous change because get_peers message is needed for
  6966. announce_peer anyway.
  6967. * src/DHTGetPeersCommand.cc
  6968. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6969. Request peers thought DHT only when download hasn't finished.
  6970. * src/DHTGetPeersCommand.cc
  6971. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6972. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  6973. * src/DHTBucketRefreshTask.{h, cc}
  6974. * src/DHTSetup.cc
  6975. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6976. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  6977. standard classes.
  6978. Included string.h where mem* function are used.
  6979. Added namespace aria2.
  6980. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6981. Create directory before saving DHT routing table.
  6982. Now ios::failure is now handled properly.
  6983. * src/DHTAutoSaveCommand.cc
  6984. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6985. Removed unnecessary cerr.
  6986. * src/DownloadEngine.cc
  6987. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6988. Catch exception inside DHTMessageReceiver::receiveMessage().
  6989. Log unknown message.
  6990. * src/DHTMessageReceiver.{h, cc}
  6991. * src/DHTMessageFactory.h
  6992. * src/DHTMessageFactoryImpl.{h, cc}
  6993. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  6994. * src/DHTInteractionCommand.cc
  6995. * src/DHTUnknownMessage.{h, cc}
  6996. * test/DHTUnknownMessageTest.cc
  6997. * test/MockDHTMessageFactory.h
  6998. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6999. Commented out ip address comparison because a host can have multiple
  7000. ip addresses and it is hard to predict the hostname is resolved into
  7001. which one.
  7002. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  7003. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7004. * po/Makefile.in: Removed since this is generated by configure.
  7005. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7006. Fixed compiler warning about redefinition of SIZE_MAX.
  7007. Use common.h instead of config.h directly here.
  7008. * src/Platform.{h, cc}
  7009. The check of ENABLE_NLS is made in gettext.h, so it is not required
  7010. here.
  7011. * common.h
  7012. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  7013. Updated gettext related files.
  7014. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  7015. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  7016. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7017. Added DHT functionality, compatible with mainline.
  7018. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  7019. You may need to specify entry point to DHT network using
  7020. --dht-entry-point. DHT uses UDP port to listen incoming message.
  7021. Use --dht-listen-port to specify port number. Make sure that your
  7022. firewall configuration can pass through UDP traffic to the port.
  7023. The routing table is saved in $HOME/.aria2/dht.dat.
  7024. * src/DHT*
  7025. * src/BNode.{h, cc}
  7026. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  7027. particular torrent.
  7028. * src/Data.cc: Rewritten ctor.
  7029. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  7030. --dht-entry-point.
  7031. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  7032. * src/RequestGroup.cc: Initialize DHT functionality. When download
  7033. ends, remove BtContext from DHTPeerAnnounceStorage.
  7034. * src/BtPortMessage.{h, cc}: Rewritten.
  7035. * src/message.h
  7036. * src/OptionHandlerImpl.cc
  7037. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  7038. --dht-entry-point.
  7039. * src/Dictionary.{h, cc} (remove): New function.
  7040. * src/prefs.h
  7041. * src/DefaultBtMessageFactory.h
  7042. * src/BtHandshakeMessage.cc
  7043. * src/ActivePeerConnectionCommand.cc
  7044. * src/SocketCore.{h, cc}: Added datagram socket support.
  7045. * src/DefaultBtMessageFactory.cc
  7046. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  7047. Create DHT commands.
  7048. * src/BtMessageFactory.h
  7049. * src/PeerMessageUtil.{h, cc}
  7050. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7051. Fixed the bug that log file is not written when configuration file doesn't exist.
  7052. This is caused by using Logger class before LogFactory is not configured.
  7053. BUG #1875079
  7054. * src/option_processing.cc
  7055. Warning message "configuration doesn't exist" is only printed when --conf is
  7056. given.
  7057. * src/option_processing.cc
  7058. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7059. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  7060. ShaVisitor is now deprecated and slated to be removed.
  7061. * src/DefaultBtContext.cc
  7062. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7063. Externalize message to message.h
  7064. * src/Platform.cc
  7065. * src/message.h
  7066. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7067. Set default domain and default path to cookie.
  7068. * src/HttpResponse.cc
  7069. * src/CookieBox.{h, cc}
  7070. * src/CookieParser.{h, cc}
  7071. * test/CookieParserTest.cc
  7072. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7073. Added --no-conf and --conf-path command-line option.
  7074. --no-conf option disables loading aria2.conf file.
  7075. --conf-path option changes the configuration file path. The default
  7076. file path is $HOME/.aria2/aria2.conf
  7077. Added a warning message when the configuration file is not found.
  7078. * src/HelpItemFactory.cc
  7079. * src/option_processing.cc
  7080. * src/prefs.h
  7081. * src/usage_text.h
  7082. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7083. Added the message to inform users that other help categories are
  7084. available in -h option.
  7085. * src/version_usage.cc
  7086. * src/TagContainer.{h, cc}
  7087. * test/TagContainerTest.cc
  7088. * src/TaggedItem.{h, cc}
  7089. * test/TaggedItemTest.cc
  7090. * src/HelpItem.h
  7091. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7092. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  7093. from PiecedSegment's ctor.
  7094. Previously Piece::getAllMissingBlockIndexes() is called from
  7095. PiecedSegment() but it is rather expensive since only first element is
  7096. used.
  7097. * src/PiecedSegment.cc
  7098. * src/Piece.{h, cc}
  7099. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7100. Rewritten get*Missing*Index functions. Now no need to allocate memory
  7101. each time these functions are called.
  7102. * src/BitfieldMan.{h, cc}
  7103. * test/BitfieldManTest.cc
  7104. * src/array_fun.h
  7105. * test/array_funTest.cc
  7106. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  7107. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  7108. filtered. Removed unnecessary cast to int32_t.
  7109. * src/BitfieldMan.{h, cc}
  7110. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7111. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  7112. payload length(4bytes) are received. This happens because lenbufLength
  7113. is not updated in this particular case and successive call of
  7114. receiveMessage() overwrites payload length with bytes recieved which
  7115. are payload body.
  7116. * src/PeerConnection.{h, cc}
  7117. * src/message.h
  7118. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7119. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  7120. peer if there are peers that have same ipaddr and port.
  7121. I've experiened segmentation fault and "pure virtual function was
  7122. called" error.
  7123. * src/Peer.h
  7124. * test/PeerTest.cc
  7125. * src/DefaultPeerStorage.cc
  7126. * test/DefaultPeerStorageTest.cc
  7127. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7128. Removed a call to isPowerOf() because it is no longer necessary here
  7129. and a request block is not always power of 2.
  7130. BUG#1866924
  7131. * src/PeerMessageUtil.cc (checkLength)
  7132. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7133. Fixed the bug that always first found Segment is removed from
  7134. usedSegmentEntries. Removed unused functions.
  7135. * src/SegmentMan.{h, cc}
  7136. * test/SegmentManTest.cc
  7137. Fixed the bug that ServerHost is not removed.
  7138. * src/RequestGroup.cc
  7139. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7140. Fixed the bug that SegmentMan::completeSegment() is not called
  7141. even if Segment is complete when --lowest-speed-limit is enabled.
  7142. BUG#1864525
  7143. * src/DownloadCommand.{h, cc}
  7144. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7145. Fixed: hash algorithm 'sha1' is always used.
  7146. * src/DownloadCommand.cc (validatePieceHash)
  7147. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7148. Added --enable-peer-exchange command-line option.
  7149. * src/OptionHandlerFactory.cc
  7150. * src/HelpItemFactory.cc
  7151. * src/option_processing.cc
  7152. * src/usage_text.h
  7153. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7154. Move extension from BtRuntime to ExtensionMessageFactory, because
  7155. extension can be specified per peer, not per torrent.
  7156. * src/DefaultBtInteractive.cc
  7157. * src/BtRuntime.h
  7158. * src/ExtendedMessagingAware.h
  7159. * src/ExtensionMessageFactory.h
  7160. * src/DefaultExtensionMessageFactory.cc
  7161. * test/DefaultExtensionMessageFactoryTest.cc
  7162. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7163. Added categorized option help. Specify category using --help option.
  7164. Also added the ability to search options in forward match.
  7165. * src/HelpItem.{h, cc}
  7166. * test/HelpItemTest.cc
  7167. * src/HelpItemFactory.{h, cc}
  7168. * src/TagContainer.{h, cc}
  7169. * test/TagContainerTest.cc
  7170. * src/option_processing.cc
  7171. * src/prefs.h
  7172. * src/TaggedItem.{h, cc}
  7173. * test/TaggedItemTest.cc
  7174. * src/version_usage.cc
  7175. * src/help_tags.h
  7176. * src/usage_text.h
  7177. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7178. Fixed segmentation fault when bad torrent metainfo is parsed.
  7179. Added dynamic_cast properly to detect the misconfiguration of metainfo
  7180. and then throw exception or skip it.
  7181. * src/DefaultBtContext.{h, cc}
  7182. * test/DefaultBtContextTest.cc
  7183. * src/AnnounceList.cc
  7184. * src/CompactPeerListProcessor.cc
  7185. * src/message.h
  7186. * src/DefaultBtAnnounce.{h, cc}
  7187. * test/DefaultBtAnnounceTest.cc
  7188. * src/BencodeVisitor.cc
  7189. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7190. Added missing "B"(=Byte). So now the message looks like this:
  7191. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  7192. * src/message.h (MSG_SHARE_RATIO_REPORT)
  7193. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7194. Show the seed ratio after torrent downloads.
  7195. For example, after torrent download completed and --seed-time and
  7196. --seed-ratio conditions are fulfilled, following message is printed
  7197. right after "Download complete: .....":
  7198. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  7199. * src/RequestGroupMan.cc
  7200. * src/RequestGroup.{h, cc}
  7201. * src/message.h
  7202. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7203. Remove a defunct control file. A defunct control file means that while
  7204. it exists, but the corresponding download file is missing.
  7205. After its removal, a download restarts from the beginning.
  7206. * src/RequestGroup.cc
  7207. * src/message.h
  7208. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7209. Allocate bitfield in Peer when it is really used. More specifically,
  7210. bitfield in Peer is allocated after the connection is established and
  7211. deallocated when the connection is dropped.
  7212. Since 2 parameters(piece length and total length) was removed from the
  7213. constructor of Peer class, many test classes were modified accordingly.
  7214. See svn log for more detailed information.
  7215. * src/PeerInteractionCommand.cc
  7216. * src/CompactPeerListProcessor.cc
  7217. * src/Peer.cc
  7218. * src/DefaultPeerListProcessor.cc
  7219. * src/PeerListenCommand.cc
  7220. * src/PeerReceiveHandshakeCommand.cc
  7221. Fixed memory leak
  7222. * src/Piece.cc
  7223. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7224. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  7225. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  7226. command-line options.
  7227. * src/option_processing.cc
  7228. * src/ActivePeerConnectionCommand.cc
  7229. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7230. Send have message to peer if it already has the piece.
  7231. * src/BtHaveMessage.{h, cc}
  7232. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7233. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  7234. port.
  7235. * src/DefaultPeerStorage.{h, cc}
  7236. * test/DefaultPeerStorageTest.cc
  7237. * src/HandshakeExtensionMessage.cc
  7238. * test/HandshakeExtensionMessageTest.cc
  7239. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  7240. * src/PeerStorage.h
  7241. * test/MockPeerStorage.h
  7242. * src/PeerListenCommand.cc
  7243. * src/PeerReceiveHandshakeCommand.cc
  7244. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7245. Added --metalink-enable-unique-protocol option.
  7246. * src/Metalink2RequestGroup.cc
  7247. * src/option_processing.cc
  7248. * src/prefs.h
  7249. * src/version_usage.cc
  7250. * doc/aria2c.1.txt
  7251. * doc/aria2c.1
  7252. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7253. Allow a peer in incomingPeer to be added peers.
  7254. * src/DefaultPeerStorage.cc
  7255. * test/DefaultPeerStorageTest.cc
  7256. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7257. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  7258. I could reproduce this bug in following procedure:
  7259. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  7260. 2. Restart aria2.
  7261. 3. You see the download stopped around 99%.
  7262. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  7263. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  7264. If timeout is reached, then _nextCommand is unused and it may contains
  7265. segments and they won't be canceled. Actually, timeout is not needed
  7266. here because if the server dropped connection, then retry is made.
  7267. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7268. Added uTorrent compatible Peer Exchange.
  7269. * src/BencodeVisitor.{h, cc}
  7270. * test/BencodeVisitorTest.cc
  7271. * src/BtConstants.h
  7272. * src/BtContext.h: Added 'private' flag.
  7273. * src/BtExtendedMessage.{h, cc}
  7274. * test/BtExtendedMessageTest.cc
  7275. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  7276. reserved field.
  7277. * test/BtHandshakeMessageTest.cc
  7278. * src/BtMessageFactory.h
  7279. * src/BtRegistry.h
  7280. * src/BtRuntime.h: This class holds default extension message IDs for
  7281. aria2. By default, aria2 uses ID 8 for ut_pex.
  7282. * src/DefaultBtContext.cc
  7283. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  7284. When it is true, aria2 enables ut_pex. This value is set by
  7285. PeerInteractionCommand.
  7286. * src/DefaultBtMessageFactory.{h, cc}
  7287. * test/DefaultBtMessageFactoryTest.cc
  7288. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  7289. handling to DefaultBtInteractive class.
  7290. * src/DefaultExtensionMessageFactory.{h, cc}
  7291. * test/DefaultExtensionMessageFactoryTest.cc
  7292. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  7293. the container(peers and incomingPeers. The equality is determined by
  7294. Peer::id).
  7295. * test/DefaultPeerStorageTest.cc
  7296. * src/ExtensionMessage.h
  7297. * test/MockExtensionMessage.h
  7298. * src/ExtensionMessageFactory.h
  7299. * test/MockExtensionMessageFactory.h
  7300. * src/HandshakeExtensionMessage.{h, cc}
  7301. * test/HandshakeExtensionMessageTest.cc
  7302. * src/MetaEntry.h
  7303. * src/Peer.{h, cc}
  7304. * src/PeerInteractionCommand.cc
  7305. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  7306. addIncomingPeer.
  7307. * src/PeerMessageUtil.{h, cc}
  7308. * src/PeerObject.h
  7309. * src/UTPexExtensionMessage.{h, cc}
  7310. * test/UTPexExtensionMessageTest.cc
  7311. * src/message.h
  7312. * src/prefs.h
  7313. Fixed the bug that returns incomplete data when it contains null
  7314. character. A convenient constructor was also added.
  7315. * src/Data.{h, cc}
  7316. Rewritten.
  7317. * src/CompactPeerListProcessor.cc
  7318. Fixed typos.
  7319. * src/message.h
  7320. * src/MetaFileUtil.cc
  7321. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7322. Added "Status Legend" label to the explanation text of 'stat' in
  7323. download result and moved it to the last. BUG#1848214
  7324. * src/RequestGroupMan.cc
  7325. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7326. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  7327. * src/Makefie.am
  7328. * test/Makefile.am
  7329. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7330. Fixed the bug that prevents aria2 from loading cookie file when expire
  7331. value is greater than 2^31-1. BUG#1851066
  7332. * src/CookieBoxFactory.cc
  7333. * test/CookieBoxFactoryTest.cc
  7334. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7335. Fixed possible memory leak when an exception is thrown.
  7336. * src/XML2SAXMetalinkProcessor.cc
  7337. Added Expat support. If both libxml2 and Expat are installed, then
  7338. libxml2 is used by default.
  7339. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  7340. ExpatMetalinkProcessor according to the configuration.
  7341. * src/ExpatMetalinkProcessor.{h, cc}
  7342. * src/main.cc: Removed libxml2 specific header and init/free function.
  7343. * src/MetalinkProcessorFactory.{h, cc}
  7344. * src/MetalinkHelper.cc
  7345. * src/Metalinker.h: Removed unnecessary libxml2 header.
  7346. * src/MetalinkProcessor.h
  7347. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  7348. MetalinkProcessorTest is used instead.
  7349. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  7350. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  7351. MetalinkProcessorFactory::newInstance().
  7352. * m4/libexpat.m4
  7353. * configure.ac: Added configuration options for libexpat.
  7354. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7355. Disabled -s option in metalink download.
  7356. * src/Metalink2RequestGroup.cc
  7357. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7358. If several protocols are available for a mirror in metalink file,
  7359. aria2 now use one of them. --metalink-preferred-protocol option was
  7360. added to specify the preference of protocol.
  7361. * src/AbstractCommand.cc
  7362. * src/OptionHandlerFactory.cc
  7363. * src/ServerHost.{h, cc}
  7364. * src/Metalink2RequestGroup.cc
  7365. * src/RequestGroup.{h, cc}
  7366. * test/RequestGroupTest.cc
  7367. * src/option_processing.cc
  7368. * src/prefs.h
  7369. * src/HttpResponseCommand.cc
  7370. * src/MetalinkResource.{h, cc}
  7371. * src/FtpNegotiationCommand.cc
  7372. * src/MetalinkEntry.{h, cc}
  7373. * src/MetalinkEntryTest.cc
  7374. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7375. Code cleanup and added debug log.
  7376. * src/PeerConnection.cc
  7377. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7378. Compiler error fix: applied the patch by Tiziano Mueller
  7379. * src/RequestGroup.cc
  7380. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7381. Fixed the bug: only first announce URL is tried in AnnounceTier,
  7382. in stopped and completed event.
  7383. * src/AnnounceList.{h, cc}
  7384. * test/AnnounceListTest.cc
  7385. * src/DefaultBtAnnounce.cc
  7386. * test/DefaultBtAnnounceTest.cc
  7387. Sorted URLs.
  7388. * test/Metalink2RequestGroupTest.cc
  7389. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7390. Removed unnecessary string copy. Updated doc and corrected indentation.
  7391. * src/Base64.cc
  7392. Fixed compilation warnings
  7393. * test/DataTest.cc
  7394. * test/HttpRequestTest.cc
  7395. * test/MetaFileUtilTest.cc
  7396. * test/RequestTest.cc
  7397. * Release 0.12.0
  7398. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7399. Updated translations
  7400. * po/{de,fr,ja,nl,ru}.po
  7401. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  7402. translations. Many thanks to translators.
  7403. * po/{ca,es,it,pt_BR,sv}.po
  7404. * po/LINGUAS
  7405. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7406. Added a notice about URL
  7407. * src/version_usage.cc
  7408. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  7409. Fixed the bug#1845750; CTRL+C does not stop torrent.
  7410. aria2 repeatedly sends stopped request when tracker returns error code.
  7411. * src/AnnounceList.cc
  7412. * test/AnnounceListTest.cc
  7413. * src/AnnounceTier.h
  7414. Added a message when ctrl-c is hit.
  7415. Now second ctrl-c is also handled in signal handler.
  7416. * src/RequestGroupMan.{h, cc}
  7417. * src/RequestGroup.{h, cc}
  7418. * src/MultiUrlRequestInfo.cc
  7419. * src/DownloadEngine.cc
  7420. * src/TrackerWatcherCommand.cc
  7421. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7422. Code cleanup
  7423. * src/Base64.cc (encode)
  7424. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7425. Changed Direct/IO enable/disable procesure in file allocation routine.
  7426. * src/SingleFileAllocationIterator.cc
  7427. (SingleFileAllocationIterator):
  7428. Disable directIO if offset is not multiple of 512.
  7429. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  7430. * src/MultiFileAllocationIterator.cc (allocateChunk):
  7431. Enable created SingleFileAllocationIterator's directIO.
  7432. * src/FileAllocationEntry.cc
  7433. (FileAllocationEntry): Enable directIO here.
  7434. (~FileAllocationEntry): Disable directIO here.
  7435. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7436. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  7437. * src/Peer.{h, cc}
  7438. * src/DefaultPieceStorage.cc
  7439. * test/DefaultPieceStorageTest.cc
  7440. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7441. Rewritten direct I/O support routine
  7442. * src/SingleFileAllocationIterator.cc
  7443. * src/MultiDiskAdaptor.{h, cc}
  7444. * src/ByteArrayDiskWriter.h
  7445. * src/AbstractSingleDiskAdaptor.h
  7446. * src/AbstractDiskWriter.cc
  7447. * src/DefaultPieceStorage.cc
  7448. * src/DiskWriter.h
  7449. * src/BinaryStream.h
  7450. * src/IteratableChunkChecksumValidator.cc
  7451. * src/IteratableChecksumValidator.cc
  7452. * src/CheckIntegrityEntry.cc
  7453. * src/FileAllocationEntry.cc
  7454. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7455. Fixed typo
  7456. * src/version_usage.cc
  7457. Updated doc
  7458. * doc/aria2c.1.txt
  7459. * doc/aria2c.1
  7460. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7461. Fixed compile error without message digest support.
  7462. * src/FileMetalinkParserState.cc
  7463. * src/MetalinkParserController.{h, cc}
  7464. * test/XML2SAXMetalinkProcessorTest.cc
  7465. * test/MetalinkParserControllerTest.cc
  7466. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7467. Enable direct I/O support in checksum checking.
  7468. * src/IteratableChunkChecksumValidator.{h, cc}
  7469. * test/IteratableChunkChecksumValidatorTest.cc
  7470. * src/CheckIntegrityEntry.cc
  7471. * src/PieceHashCheckIntegrityEntry.cc
  7472. * src/IteratableChecksumValidator.{h, cc}
  7473. * src/BtCheckIntegrityEntry.cc: Added doc.
  7474. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7475. Added --allow-piece-length-change option.
  7476. * src/DefaultBtProgressInfoFile.cc
  7477. * test/DefaultBtProgressInfoFileTest.cc
  7478. * src/OptionHandlerFactory.cc
  7479. * src/option_processing.cc
  7480. * src/prefs.h
  7481. * src/version_usage.cc
  7482. * doc/aria2c.1.txt
  7483. * doc/aria2c.1
  7484. Fixed: duplicated result entry appears when exception is thrown in
  7485. RequestGroup::createInitiateConnectionCommand().
  7486. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  7487. Add RequestGroup to _requestGroup after RequetGroup::
  7488. createInitiateConnectionCommand() succeeds.
  7489. Externalized message
  7490. * src/XML2SAXMetalinkProcessor.cc
  7491. * src/message.h
  7492. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7493. Forced download abort when received negative response from http/ftp
  7494. server.
  7495. * src/HttpResponseCommand.cc
  7496. * src/FtpNegotiationCommand.cc
  7497. * src/HttpResponse.cc
  7498. * src/FtpConnection.cc
  7499. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7500. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  7501. the predecessor, Xml2MetalinkParser class.
  7502. I tested them against 94KB metalink file with 1234 chunk checksums.
  7503. The new one parsed it in 22msec, while it took 6000msec with old one.
  7504. * src/XML2SAXMetalinkProcessor.{h, cc}
  7505. * test/XML2SAXMetalinkProcessorTest.cc
  7506. * src/MetalinkParserController.{h, cc}
  7507. * test/MetalinkParserControllerTest.cc
  7508. * src/MetalinkParserState.h: Also added 16 subclasses.
  7509. * src/main.cc
  7510. * src/Metalink2RequestGroup.cc
  7511. * src/MetalinkHelper.cc
  7512. * src/MetalinkEntry.cc
  7513. * src/ChunkChecksum.h
  7514. Rewritten Base64 class for better performance.
  7515. * src/Base64.{h, cc}
  7516. * test/Base64Test.cc
  7517. * src/HttpRequest.cc
  7518. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7519. Fixed the bug#1841757: aria2 will connect to server to only get
  7520. file size.
  7521. * src/StreamFileAllocationEntry.cc
  7522. * src/option_processing.cc
  7523. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  7524. downloads.
  7525. * src/FtpNegotiationCommand.cc
  7526. Suppressed wrong message when finding PreDownloadHandler
  7527. * src/RequestGroup.cc
  7528. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7529. Updated usage
  7530. * src/version_usage.cc
  7531. Updated man page
  7532. * doc/aria2c.1.txt
  7533. * doc/aria2c.1
  7534. Updated po files
  7535. * po/aria2c.pot
  7536. * po/*.po
  7537. * po/*.gmo
  7538. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7539. Eliminated g++-4.2 warning
  7540. * src/DownloadHandlerConstants.{h, cc}
  7541. * src/Util.cc
  7542. * test/MetaFileUtilTest.cc
  7543. * test/PStringBuildVisitorTest.cc
  7544. Fixed bug: --check-integrity doesn't work for multi file torrent.
  7545. * src/RequestGroup.cc
  7546. * src/BtCheckIntegrityEntry.cc
  7547. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7548. Fixed a2io.h
  7549. * src/a2io.h
  7550. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7551. Added direct I/O support. The current implementation uses O_DIRECT,
  7552. which is not posix standard and is tested on linux 2.6.21.
  7553. Currently only file allocation uses direct I/O.
  7554. * src/SingleFileAllocationIterator.{h, cc}
  7555. * test/SingleFileAllocationIteratorTest.cc
  7556. * src/MultiFileAllocationIterator.{h, cc}
  7557. * test/MultiFileAllocationIteratorTest.cc
  7558. * src/BinaryStream.h
  7559. * src/DiskWriter.h
  7560. * src/AbstractDiskWriter.{h, cc}
  7561. * src/ByteArrayDiskWriter.h
  7562. * src/DiskAdaptor.h
  7563. * src/AbstractSingleDiskAdaptor.{h, cc}
  7564. * src/MultiDiskAdaptor.{h, cc}
  7565. * src/FileAllocationEntry.cc
  7566. * src/Util.{h, cc}
  7567. * src/OptionHandlerFactory.cc
  7568. * src/prefs.h
  7569. * src/version_usage.cc
  7570. * src/option_processing.cc
  7571. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  7572. handleException.
  7573. * src/MultiFileAllocationIterator.cc
  7574. Added EINTR handling
  7575. * src/SocketCore.cc
  7576. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7577. Updated usage
  7578. * src/version_usage.cc
  7579. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7580. Applied Ross's patch for MinGW port.
  7581. * src/DownloadEngine.h
  7582. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7583. Set Content-Type to SingleFileDownloadContext when http response is
  7584. received.
  7585. * src/HttpResponseCommand.cc
  7586. * src/HttpResponse.{h, cc}
  7587. * test/HttpResponseTest.cc
  7588. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7589. Rewritten to add content-type support.
  7590. * src/DownloadHandler.{h, cc}
  7591. * src/BtPostDownloadHandler.{h, cc}
  7592. * test/BtPostDownloadHandlerTest.cc
  7593. * src/MetalinkPostDownloadHandler.{h, cc}
  7594. * test/MetalinkPostDownloadHandlerTest.cc
  7595. * src/PostDownloadHandler.{h, cc}
  7596. * src/DownloadHandlerConstants.{h, cc}
  7597. * src/RequestGroup.cc
  7598. * src/HttpResponseCommand.cc
  7599. * src/FtpNegotiationCommand.cc
  7600. * src/SingleFileDownloadContext.{h, cc}
  7601. * src/RequestGroup.h
  7602. * src/RequestGroupCriteria.h
  7603. * src/ContentTypeRequestGroupCriteria.h
  7604. Added 'mem' option value for --follow-metalink, --follow-torrent.
  7605. If it is give, metalink/torrent file is not written to the disk, but
  7606. just is kept in memory. Parsing is occurred on memory.
  7607. * src/MetalinkHelper.{h, cc}
  7608. * src/MetalinkProcessor.h
  7609. * src/Xml2MetalinkProcessor.{h, cc}
  7610. * test/Xml2MetalinkProcessorTest.cc
  7611. * src/DownloadHandlerFactory.{h, cc}
  7612. * test/DownloadHandlerFactoryTest.cc
  7613. * src/PreDownloadHandler.{h, cc}
  7614. * src/OptionHandlerFactory.cc
  7615. * src/DefaultBtContext.{h, cc}
  7616. * test/DefaultBtContextTest.cc
  7617. * src/version_usage.cc
  7618. * src/Metalink2RequestGroup.{h, cc}
  7619. * src/RequestGroup.{h, cc}
  7620. * src/a2functional.h
  7621. * test/a2functionalTest.cc
  7622. * src/MemoryBufferPreDownloadHandler.{h, cc}
  7623. * src/OptionHandlerImpl.h
  7624. * src/prefs.h
  7625. * src/Util.{h, cc}
  7626. * test/UtilTest.cc
  7627. Keep DownloadResult rather than RequestGroup after downloads to reduce
  7628. memory usage.
  7629. * src/RequestGroupMan.{h, cc}
  7630. * src/DownloadEngine.cc
  7631. * src/BtDependency.{h, cc}: Changed the type of dependee from
  7632. WeakHandle to SharedHandle because WeakHandle could be null.
  7633. * src/RequestGroup.{h, cc}
  7634. * src/DownloadEngineFactory.cc
  7635. * src/DownloadResult.h
  7636. Set totalLength after download finished
  7637. * src/UnknownLengthPieceStorage.{h, cc}
  7638. Keep torrent file specified in metalink in memory.
  7639. * src/Metalink2RequestGroup.cc
  7640. * src/BtDependency.cc
  7641. * src/TrueRequestGroupCriteria.h
  7642. Fixed the bug: seekg is used where seekp should be used.
  7643. * src/ByteArrayDiskWriter.cc
  7644. * test/ByteArraydiskWriterTest.cc
  7645. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7646. Fixed syntax error
  7647. * test/SequenceTest.cc
  7648. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7649. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7650. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  7651. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7652. * src/RequestGroup.cc (downloadFinishedByFileLength)
  7653. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7654. Added the check to see whether ares_host_callback accepts timeouts
  7655. with c-ares; only c-ares 1.5.0 or newer accepts it.
  7656. * src/NameResolver.{h, cc}
  7657. * m4/libcares.m4
  7658. * configure.ac: Set C++ for language choice.
  7659. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7660. Fixed: compilation fails without c-ares/ares
  7661. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  7662. Generate http/ftp commands only when download is incomplete.
  7663. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  7664. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7665. Corrected typo. Examples are removed since they are available in man
  7666. page.
  7667. * src/version_usage.cc
  7668. Updated man page.
  7669. * doc/aria2c.1
  7670. * doc/aria2c.1.txt
  7671. * doc/makeman: Commented out sed command.
  7672. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7673. Throw DlAbortEx when a remote file is not found.
  7674. * src/HttpResponse.cc
  7675. * src/FtpNegotiationCommand.cc
  7676. * src/message.h
  7677. Overwrite an existing file if --allow-overwrite=true is given.
  7678. * src/RequestGroup.cc
  7679. Removed unused functions
  7680. * src/AbstractCommand.h
  7681. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7682. Removed 'extern' from 'extern typedef ...' in src/*.h
  7683. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7684. Updated usage
  7685. * src/version_usage.cc
  7686. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7687. Trim announce URL
  7688. * src/DefaultBtContext.cc
  7689. * test/ShaVisitorTest.cc
  7690. Trim argument s. Give trimed s to exception constructor.
  7691. * src/Util.cc (parseInt)(parseLLInt)
  7692. * test/UtilTest.cc
  7693. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7694. Set precision back to 1.
  7695. * src/ConsoleStatCalc.cc (calculateStat)
  7696. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7697. Replaced strtol with Util::parseInt
  7698. * src/ChunkedEncoding.cc
  7699. * src/HttpConnection.cc
  7700. * src/CookieBoxFactory.cc
  7701. * src/ParameterizedStringParser.cc
  7702. * src/Util.cc
  7703. * test/UtilTest.cc
  7704. * test/OptionHandlerTest.cc
  7705. * src/Request.cc
  7706. Throw exception when empty string is given. The message for exception
  7707. changed.
  7708. * src/Util.cc (parseInt)(parseLLInt)
  7709. * src/message.h
  7710. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7711. Set precision to 2 because share ratio is rounded into 1.0 if precision
  7712. set to 1.
  7713. * src/ConsoleStatCalc.cc (calculateStat)
  7714. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7715. Preallocate non-requested file which is adjacent forward to requested
  7716. file('requested' files means the files given in --select-file option)
  7717. if they share a same piece.
  7718. This fixes long pause in the file system which doesn't support sparse
  7719. files like FAT32 while downloading.
  7720. * src/MultiFileAllocationIterator.{h, cc}
  7721. * test/MultiFileAllocationIteratorTest.cc
  7722. * src/FileEntry.{h, cc}
  7723. Removed unused _option.
  7724. * src/MultiDiskAdaptor.h
  7725. * test/MultiDiskAdaptorTest.cc
  7726. * src/DefaultPieceStorage.cc
  7727. Set the default value of --seed-ratio to 1.0.
  7728. If 0.0 is given, then seeding continues regardless of share ratio.
  7729. * src/version_usage.cc
  7730. * src/option_processing.cc
  7731. * src/BtSetup.cc
  7732. * doc/aria2c.1.txt
  7733. * doc/aria2c.1
  7734. Fixed: Selective download is not working in BitTorrent
  7735. * src/RequestGroup.cc
  7736. Introduced Sequence class. Use this instead of Util::unfoldRange()
  7737. * src/PieceStorage.h
  7738. * test/MockPieceStorage.h
  7739. * src/UnknownLengthPieceStorage.h
  7740. * src/DefaultPieceStorage.{h, cc}
  7741. * src/Metalink2RequestGroup.cc
  7742. * src/RequestGroup.cc
  7743. * src/Sequence.h
  7744. * test/SequenceTest.cc
  7745. * src/IntSequence.h
  7746. * src/message.h
  7747. * src/Util.{h, cc}
  7748. * test/UtilTest.cc
  7749. Added new function 'parse' to catch exception thrown by subclass's
  7750. parseArg
  7751. * src/OptionHandler.h
  7752. * src/OptionParser.cc
  7753. * src/NameMatchOptionHandler.h
  7754. * src/OptionHandlerImpl.h
  7755. * test/OptionHandlerTest.cc
  7756. Added IntegerRangeOptionHandler. Used for --listen-port and
  7757. --select-file. Now --listen-port accepts range of port.
  7758. * src/OptionHandlerFactory.cc
  7759. * src/version_usage.cc
  7760. * src/OptionHandlerImpl.h
  7761. * src/option_processing.cc
  7762. * src/BtSetup.cc
  7763. * src/PeerListenCommand.{h, cc}
  7764. * doc/aria2c.1.txt
  7765. * doc/aria2c.1
  7766. Implemented operator< for Exception class to provide easy way to print
  7767. exception stack trace.
  7768. * src/Exception.{h, cc}
  7769. * src/main.cc
  7770. * src/option_processing.cc
  7771. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7772. * src/version_usage.cc
  7773. (showVersion): Reworked.
  7774. (showUsage): Added examples.
  7775. Removed Hint for total length and file name.
  7776. * src/Metalink2RequestGroup.cc
  7777. * src/RequestGroup.{h, cc}
  7778. * src/HttpResponseCommand.cc
  7779. * src/FtpNegotiationCommand.cc
  7780. Now --follow-torrent and --follow-metalink option work properly.
  7781. * src/RequestGroup.cc
  7782. Updated man page
  7783. * doc/aria2c.1.txt
  7784. * doc/aria2c.1
  7785. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7786. Removed.
  7787. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  7788. Use Segment::operator==()
  7789. * src/HttpConnection.cc
  7790. * src/Segment.h
  7791. Updated usage
  7792. * src/version_usage.cc
  7793. Added EINTR treatment.
  7794. * src/SocketCore.cc
  7795. * src/AbstractDiskWriter.cc
  7796. Rewritten.
  7797. * src/Util.cc (rangedFileCopy)
  7798. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7799. Fixed typo.
  7800. * src/version_usage.cc
  7801. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7802. Implemented. Now -c option works fine.
  7803. * src/DefaultPieceStorage.cc (markPiecesDone)
  7804. * test/DefaultPieceStorageTest.cc
  7805. Removed.
  7806. * src/SegmentMan.{h, cc}
  7807. (markAllPiecesDone)
  7808. (markPieceDone)
  7809. Synchronized po files with
  7810. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  7811. * src/fr.po
  7812. * src/ru.po
  7813. * src/de.po
  7814. * src/ja.po
  7815. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7816. Added ifdef and some modifications to compile without BitTorrent,
  7817. Metalink, MessageDigest
  7818. support.
  7819. * src/PieceHashCheckIntegrityEntry.cc
  7820. * src/MetalinkEntry.h
  7821. * src/version_usage.cc
  7822. * src/main.cc
  7823. * src/DownloadEngine.{h, cc}
  7824. * src/Metalink2RequestGroup.cc
  7825. * src/Peer.cc
  7826. * src/RequestGroup.cc
  7827. * src/MetalinkHelper.cc
  7828. * test/DefaultPieceStorageTest.cc
  7829. * test/MetalinkPostDownloadHandlerTest.cc
  7830. * test/Metalink2RequestGroupTest.cc
  7831. Hide TOTAL SPD when all downloads complete.
  7832. * src/ConsoleStatCalc.cc
  7833. Log target system information.
  7834. * src/main.cc
  7835. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7836. Now --metalink-location accepts a comma-deliminated list of locations.
  7837. * src/MetalinkEntry.{h, cc}
  7838. * test/MetalinkEntryTest.cc
  7839. * src/version_usage.cc
  7840. * src/Metalink2RequestGroup.cc
  7841. * src/Xml2MetalinkProcessor.cc
  7842. * test/Xml2MetalinkProcessorTest.cc
  7843. * doc/aria2c.1.txt
  7844. * doc/aria2c.1
  7845. * src/Util.cc (toUpper)(toLower): Rewritten.
  7846. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7847. Added the ability to detect duplicate download entry which is about to
  7848. download the same file other RequestGroup is downloading.
  7849. * src/RequestGroup.cc
  7850. * src/HttpResponseCommand.cc
  7851. * src/FtpNegotiationCommand.cc
  7852. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7853. Recalculates download progress when loading a control file,
  7854. if the piece length of DownloadContext is different from the one saved
  7855. in the control file. Currently in-flight pieces are ignored.
  7856. * src/DefaultBtProgressInfoFile.cc
  7857. * test/DefaultBtProgressInfoFileTest.cc
  7858. * src/Util.{h, cc}
  7859. * test/UtilTest.cc
  7860. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7861. Do not rotate tiers in announce-list.
  7862. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  7863. AnnounceList::allTiersFailed() used instead to detect whether all
  7864. tiers are tried and failed.
  7865. * test/DefaultBtAnnounceTest.cc
  7866. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  7867. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  7868. * test/AnnounceListTest.cc
  7869. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  7870. clause. Catch RecoverableException instead of DlRetryEx instead.
  7871. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7872. Implemented checksum validation feature(1 checksum for each file)
  7873. The validation takes place after the download.
  7874. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  7875. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  7876. * src/CheckIntegrityCommand.cc: Changed log message.
  7877. * src/Metalink2RequestGroup.cc: Set checksum to
  7878. SingleFileDownloadContext.
  7879. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  7880. PieceHashCheckIntegrity class.
  7881. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  7882. PieceHashCheckIntegrity class.
  7883. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  7884. * src/IteratableValidator.h: New class.
  7885. * src/message.h
  7886. * src/CheckIntegrityEntry.{h, cc}
  7887. * src/IteratableChunkChecksumValidator.{h, cc}
  7888. * src/SingleFileDownloadContext.h
  7889. * src/DownloadCommand.cc
  7890. --allow-overwrite=true is no longer needed to check file integrity
  7891. before download in BitTorrent download.
  7892. * src/RequestGroup.cc (getInitialCommand)
  7893. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  7894. throws exception.
  7895. * src/RequestGroupMan.cc (getInitialCommands)
  7896. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7897. urlencode the given url inside Request::parseUrl(...)
  7898. * src/Request.{h, cc}
  7899. * src/Util.{h, cc}
  7900. * test/RequestTest.cc
  7901. Removed #!metalink3! notation support because it is deleted from
  7902. the metalink specification.
  7903. * src/Request.{h, cc}
  7904. * test/RequestTest.cc
  7905. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7906. Don't connect server before checking file integrity at startup, if
  7907. filesize and output file path are known.
  7908. * src/AbstractCommand.cc
  7909. * src/StreamFileAllocationEntry.cc
  7910. * src/Metalink2RequestGroup.cc
  7911. * src/RequestGroup.{h, cc}
  7912. * src/HttpResponseCommand.cc
  7913. * src/FtpNegotiationCommand.cc
  7914. Added DownloadFailureException. If it is thrown, RequestGroup should
  7915. halt.
  7916. * src/AbstractCommand.cc
  7917. * src/DownloadFailureException.h
  7918. * src/RequestGroup.cc
  7919. Catch RecoverableException, instead of DlAbortEx.
  7920. * src/RequestGroupMan.cc
  7921. * src/FillRequestGroupCommand.cc
  7922. * src/MetaFileUtil.cc
  7923. * src/IteratableChunkChecksumValidator.cc
  7924. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  7925. getGID())
  7926. * src/CheckIntegrityCommand.cc
  7927. * src/message.h
  7928. Print gid instead of idx.
  7929. * src/RequestGroupMan.cc
  7930. Removed exception throwers declaration.
  7931. * src/DirectDiskAdaptor.{h, cc}
  7932. * src/SocketCore.{h, cc}
  7933. * src/MultiDiskAdaptor.{h, cc}
  7934. * src/HttpConnection.{h, cc}
  7935. * src/HttpResponse.{h, cc}
  7936. * src/DiskAdaptor.{h, cc}
  7937. * src/CopyDiskAdaptor.{h, cc}
  7938. * src/MultiDiskAdaptor.{h, cc}
  7939. * src/HttpHeaderProcessor.{h, cc}
  7940. * src/AbstractSingleDiskAdaptor.{h, cc}
  7941. * src/Util.{h, cc}
  7942. * test/UtilTest.cc
  7943. * src/DefaultDiskWriter.{h, cc}
  7944. * src/FtpConnection.{h, cc}
  7945. * src/AbstractDiskWriter.{h, cc}
  7946. Removed duplicate code.
  7947. * src/StreamCheckIntegrityEntry.cc
  7948. Removed unnecessary include.
  7949. * src/DiskWriter.h
  7950. Included Exception.h
  7951. * src/option_processing.cc
  7952. Included 2 files and added doc
  7953. * src/TrackerWatcherCommand.cc
  7954. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  7955. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7956. Changed CheckIntegrityEntry interface so that it can define
  7957. the action when all the chunk checksums are valid.
  7958. * src/CheckIntegrityEntry.h
  7959. * src/StreamCheckIntegrityEntry.{h, cc}
  7960. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  7961. are valid, then aira2 goes to seeding mode. Sometimes it is better
  7962. to exit rather than doing seeding. So, it would be good to toggle this
  7963. behavior.
  7964. * src/CheckIntegrityCommand.cc
  7965. * src/AbstractCommand.cc
  7966. * src/RequestGroup.cc
  7967. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7968. Reflect the download length of in-flight pieces.
  7969. It makes the download length readout more precise.
  7970. * src/DefaultPieceStorage.{h, cc}
  7971. * test/DefaultPieceStorageTest.cc
  7972. * src/a2functional.h
  7973. * test/a2functionalTest.cc
  7974. Lower CPU load when --max-download-limit is used.
  7975. There is up and down in speed indicator when enabling
  7976. http-pipelining but a download goes well. I think the problem is that
  7977. because http-pipelining is enabled, DownloadCommand is created for
  7978. each segment and in its constructor, PeerStat::downloadStart() is
  7979. called. In PeerStat::downloadStart(), speed calculation object is
  7980. reseted, which makes download speed zero.
  7981. * src/DownloadCommand.cc
  7982. Rewritten using accumulate.
  7983. * src/RequestGroupMan.cc (calculateStat)
  7984. Code clearnup.
  7985. * src/FtpNegotiationCommand.cc
  7986. * src/HttpResponseCommand.cc
  7987. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7988. Fixed: Can not resume: aria2 reports download already finished.
  7989. * src/AbstractCommand.{h, cc}
  7990. * src/HttpResponseCommand.cc
  7991. * src/FtpNegotiateCommand.cc
  7992. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7993. Now a file is stored in the directory specified in .metalnk file
  7994. (file[@name]).
  7995. * src/Metalink2RequestGroup.cc
  7996. Create the directory structure when opening the file if it doesn't
  7997. exist.
  7998. * src/AbstractDiskWriter.cc
  7999. * src/Util.{h, cc}
  8000. * src/File.h
  8001. * test/UtilTest.cc
  8002. Removed file name comparison
  8003. * src/Metalink2RequestGroup.cc
  8004. * src/HttpResponseCommand.cc
  8005. Rewritten using Util::mkdirs()
  8006. * src/FileEntry.cc (setupDir)
  8007. * test/FileEntryTest.cc
  8008. Updated doc
  8009. * src/SingleFileDownloadContext.h
  8010. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8011. Now SleepCommand dispatches nextCommand when halt is requested.
  8012. It avoids a possible long wait after hitting CTRL-C.
  8013. * src/SleepCommand.{h, cc}
  8014. * src/RequestGroupAware.{h, cc}
  8015. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8016. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  8017. to open listen port, then remove the port number from the tracker
  8018. request.
  8019. * src/DefaultBtAnnounce.cc
  8020. * test/DefaultBtAnnounceTest.cc
  8021. * test/MockPieceStorage.h
  8022. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  8023. them more testable.
  8024. * src/DefaultBtAnnounce.{h, cc}
  8025. * src/DefaultBtContext.{h, cc}
  8026. * src/Util.{h, cc}
  8027. * test/DefaultBtAnnounceTest.cc
  8028. * test/DefaultBtContextTest.cc
  8029. * test/UtilTest.cc
  8030. Added 'B' to upload bytes readout.
  8031. * src/ConsoleStatCalc.cc
  8032. Now the listen port for BitTorrent download is opened when it is
  8033. needed.
  8034. * src/DownloadEngineFactory.cc
  8035. * src/BtSetup.{h, cc}
  8036. * src/PeerListenCommand.{h, cc}
  8037. Now an exception thrown while parsing tracker response is now logged.
  8038. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  8039. called, which means no retry is made in this case, assuming a tracker
  8040. has a problem.
  8041. * src/TrackerWatcherCommand.cc
  8042. Fixed: downloading a file whose length is unkown fails.
  8043. * src/DownloadCommand.cc
  8044. Simplified prepareForNextSegment()
  8045. * src/DownloadCommand.cc
  8046. Updated
  8047. * po/POTFILES.in
  8048. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8049. Re-implemented a file listing for Metalink, which was dropped while
  8050. http/ftp/torrent integration was being implemented.
  8051. * src/MetalinkHelper.{h, cc}: New class.
  8052. * test/MetalinkHelperTest.cc
  8053. * src/main.cc
  8054. * src/Metalink2RequestGroup.cc
  8055. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8056. Added the ability to display the detailed torrent file information.
  8057. Now -S option gives not only a file listing, but also total download
  8058. length, info hash, announce URI, piece length, the number of pieces,
  8059. and mode(single or multi-torrent).
  8060. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  8061. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  8062. KiB)
  8063. * test/UtilTest.cc
  8064. * src/main.cc
  8065. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8066. Added ftp://USER:PASSWD@Servername automatic parsing.
  8067. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  8068. _password. Recognize username and password in URI.
  8069. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  8070. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  8071. * src/RequestFactory.{h, cc}: Removed.
  8072. * src/AuthConfigFactory.{h, cc}: New class.
  8073. * src/FtpConnection.cc: Use AuthConfigFactory.
  8074. * src/HttpRequest.cc: Use AuthConfigFactory.
  8075. * test/HttpRequestTest.cc: Updated.
  8076. * test/RequestTest.cc: Updated.
  8077. * test/AuthConfigFactoryTest.cc: New class.
  8078. * test/RequestFactoryTest.cc: Removed.
  8079. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8080. Use RequestGroup::allDownloadFinished() to decide whether the control
  8081. file should be removed or saved.
  8082. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  8083. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  8084. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8085. Use File::renameTo()
  8086. * src/DefaultBtProgressInfoFile.cc
  8087. Added --no-file-allocation-limit command-line option.
  8088. * src/version_usage.cc
  8089. * src/option_processing.cc
  8090. * src/OptionHandlerFactory.cc
  8091. * src/RequestGroup.{h, cc}
  8092. * src/BtCheckIntegrityEntry.cc
  8093. * src/StreamCheckIntegrityEntry.cc
  8094. * src/prefs.h
  8095. * doc/aria2c.1.txt
  8096. * doc/aria2c.1
  8097. Now prealloc is the default value for --file-allocation option.
  8098. * src/version_usage.cc
  8099. * src/option_processing.cc
  8100. * doc/aria2c.1.txt
  8101. * doc/aria2c.1
  8102. Don't URL-encode user-agent.
  8103. * src/HttpRequest.cc
  8104. Updated translations
  8105. * po/LINGUAS: Added nl for Dutch translation.
  8106. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  8107. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  8108. * po/POTFILES.in: Updated.
  8109. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8110. Added the ability to recognize url-list in a torrent file.
  8111. The retrieved URLs are attached to the corresponding FileEntry.
  8112. * src/DefaultBtContext.{h, cc}
  8113. * src/FileEntry.{h, cc}
  8114. * test/DefaultBtContextTest.cc
  8115. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8116. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  8117. after the download finishes.
  8118. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8119. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  8120. the data smaller than block length.
  8121. A block length can be specified by constructor's argument.
  8122. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  8123. Get a missing piece in the range of given FileEntry. This function is
  8124. not used in the program yet.
  8125. * src/Util.h: Added some macros.
  8126. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8127. Added HTTP/1.1 keep alive and pipelining support.
  8128. See --enable-http-keep-alive and --enable-http-pipelining option.
  8129. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  8130. Segment.
  8131. * src/HttpDownloadCommand.{h, cc}
  8132. * src/OptionHandlerFactory.cc
  8133. * src/HttpConnection.{h, cc}
  8134. * src/version_usage.cc
  8135. * src/HttpInitiateConnectionCommand.cc
  8136. * src/FtpInitiateConnectionCommand.cc
  8137. * src/Segment.h
  8138. * src/HttpRequestCommand.{h, cc}
  8139. * src/option_processing.cc
  8140. * src/prefs.h
  8141. * src/HttpResponseCommand.cc
  8142. * src/SegmentMan.{h, cc}
  8143. * src/FtpNegotiateCommand.cc
  8144. * src/HttpProxyResponseCommand.cc
  8145. * src/Request.cc
  8146. * src/HttpRequest.cc
  8147. * src/DownloadCommand.cc
  8148. * test/HttpRequestTest.cc
  8149. * test/RequestTest.cc
  8150. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8151. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  8152. finished.
  8153. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8154. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  8155. catching it inside the method.
  8156. When no file entry is found in a metalink without querying user
  8157. preferences, throw the exception with the error message that suggests
  8158. metalink file is probably broken.
  8159. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  8160. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8161. Fixed the bug that prevents remote Metalink/Torrent file from begin
  8162. processed.
  8163. * src/RequestGroupMan.cc (removeStoppedGroup)
  8164. Added debug message.
  8165. * src/BtPostDownloadHandler.cc
  8166. * src/MetalinkPostDownloadHandler.cc
  8167. * src/PostDownloadHandler.{h, cc}
  8168. * src/RequestGroup.cc
  8169. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8170. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  8171. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8172. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  8173. stops and there are any unfinished or in-progress downloads.
  8174. Added the legend of "stat".
  8175. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8176. Throw exception when chunck checksum verification fails.
  8177. * src/DownloadCommand.cc (validatePieceHash): New function.
  8178. * src/PiecedSegment.{h, cc} (clear): New function.
  8179. * src/GrowSegment.{h, cc} (clear): New function.
  8180. * src/Segment.h (clear): New function.
  8181. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  8182. * test/SegmentTest.cc
  8183. * test/GrowSegmentTest.cc
  8184. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8185. Do not send referer when redirected.
  8186. * src/Request.cc (redirectUrl)
  8187. * test/RequestTest.cc
  8188. * test/HttpRequestTest.cc
  8189. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8190. Implemented BitTorrent/http/ftp integrated download.
  8191. I've rewritten lots of files and now some headers have forward
  8192. class declarations to reduce compile time.
  8193. The implementation is extremely alpha stage, I recommend to use this
  8194. for testing purpose only.
  8195. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8196. Fixed the compilation error on 64bit platform.
  8197. * test/HttpHeaderProcessorTest.cc
  8198. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8199. Merged Ross's patch that fixes compilation problem in MinGW
  8200. * test/DefaultBtProgressInfoFileTest.cc
  8201. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8202. Updated fr.po by sebone
  8203. * po/fr.po
  8204. Updated man page.
  8205. * doc/aria2c.1.txt
  8206. * Release 0.11.3
  8207. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8208. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  8209. failure in Metalink.
  8210. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8211. Automatically save *.aria2 control file of http/ftp download in every
  8212. 60 seconds.
  8213. * src/AutoSaveCommand.{h, cc}: New class.
  8214. * src/TimeBasedCommand.{h, cc}: New class.
  8215. * src/DownloadEngineFactory.cc (newConsoleEngine)
  8216. Disable parameterized URI support by default. Added -P option to
  8217. enable the feature.
  8218. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  8219. * src/OptionHandlerFactory.cc
  8220. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  8221. Updated Japanese translation.
  8222. * po/ja.po
  8223. Updated man page.
  8224. * doc/aria2c.1.txt
  8225. * Release 0.11.3-rc
  8226. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8227. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  8228. it is successful, then renamed to *.aria2.
  8229. This prevents *.aria2 file from being truncated or corrupted when
  8230. file system becomes out of space.
  8231. * src/DefaultBtProgressInfoFile.cc (save)
  8232. * src/SegmentMan.cc (save)
  8233. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  8234. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8235. Reduced the fragmentation of bitfield in http/ftp download.
  8236. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  8237. * test/BitfieldManTest.cc
  8238. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8239. Added the ability to disable segmented download in .metalink.
  8240. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  8241. 'url' tag.
  8242. * src/MetalinkEntry.{h, cc}
  8243. * src/RequestResource.{h, cc}
  8244. * src/MetalinkRequestInfo.cc
  8245. * src/Xml2MetalinkProcessor.cc
  8246. * test/Xml2MetalinkProcessorTest.cc
  8247. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8248. Added parameterized URI support.
  8249. * src/main.cc: -Z option added.
  8250. * src/OptionHandlerFactory.cc
  8251. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  8252. * src/PStringDatum.h: New class.
  8253. * src/PStringSegment.{h,cc}: New class.
  8254. * src/PStringNumLoop.h: New class.
  8255. * src/PStringSelect.h: New class.
  8256. * src/NumberDecorator.h: New class.
  8257. * src/FixedWidthNumberDecorator.h: New class.
  8258. * src/AlphaNumberDecorator.h: New class.
  8259. * src/PStringVisitor.h: New class.
  8260. * src/PStringBuildVisitor.{h,cc}: New class.
  8261. * src/ParameterizedStringParser.{h,cc}: New class.
  8262. * src/Util.{h,cc}
  8263. (isNumber): New function.
  8264. (isLowercase): New function.
  8265. (isUppercase): New function.
  8266. (alphaToNum): New function.
  8267. * test/ParameterizedStringParserTest.cc: New class.
  8268. * test/AlphaNumberDecoratorTest.cc: New class.
  8269. * test/PStringBuildVisitorTest.cc: New class.
  8270. * test/UtilTest.cc
  8271. (testIsNumber): New function.
  8272. (testIsLowercase): New function.
  8273. (testIsUppercase): New function.
  8274. (testAlphaToNum): New function.
  8275. Added '\n' after the error message
  8276. * src/RequestInfo.h (printDownloadAbortMessage)
  8277. Added auto file renaming feature in http(s)/ftp download.
  8278. * src/main.cc: Added --auto-file-renaming command-line option.
  8279. * src/OptionHandlerFactory.cc
  8280. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  8281. * src/RequestGroup.{h, cc}
  8282. (shouldCancelDownloadForSafety): Rewritten
  8283. (tryAutoFileRenaming): New function.
  8284. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  8285. * src/HttpResponseCommand.cc
  8286. (executeInternal): Removed the call to RequestGroupMan::
  8287. isSameFileBeingDownloaded()
  8288. * src/FtpNegotiateCommand.cc
  8289. (recvSize): Removed the call to RequestGroupMan::
  8290. isSameFileBeingDownloaded()
  8291. * test/RequestGroupTest.cc: New class.
  8292. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8293. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  8294. IO.
  8295. * src/DefaultBtProgressInfoFile.cc
  8296. * src/MetaFileUtil.cc
  8297. * src/SimpleLogger.cc
  8298. * src/SegmentMan.cc
  8299. * src/Util.cc
  8300. * src/Platform.cc
  8301. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8302. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  8303. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8304. Avoid sparse files if possible, because VFAT32 doesn't support it.
  8305. * src/DefaultDiskWriter.cc (initAndOpenFile)
  8306. Fixed the bug that prevents file allocation is not done when
  8307. dowloading multi-torrent file.
  8308. * src/AbstractDiskWriter.cc (openFile)
  8309. Increase the maximum number of -j option from 15 to 45.
  8310. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8311. Added fr.po, thanks to Charles Landemaine.
  8312. * po/fr.po
  8313. * po/LINGUAS
  8314. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8315. gcc 3.4.4 support:
  8316. * src/DefaultBtContext.cc: int32_t -> int
  8317. * src/main.cc: int -> int32_t, int32_t -> int
  8318. * src/messageDigest.h: uint32_t -> unsigned int
  8319. * src/NameResolver.h: int32_t -> int
  8320. * src/PeerConnection.cc: int -> int32_t
  8321. * src/SpeedCalc.cc: int32_t -> int
  8322. * src/TrackerUpdateCommand.h: int -> int32_t
  8323. * src/Util.cc: int32_t -> int
  8324. * src/Util.h: int32_t -> int
  8325. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  8326. * test/AnnounceListTest.cc: int -> int32_t
  8327. * test/ChunkedEncodingTest.cc: int -> int32_t
  8328. * test/DataTest.cc: int -> int32_t
  8329. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  8330. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  8331. * test/DefaultPieceStorageTest.cc: int -> int32_t
  8332. * test/FeatureConfigTest.cc: int -> int32_t
  8333. * test/MetalinkEntryTest.cc: int -> int32_t
  8334. * test/MockBtRequestFactory.h: int -> int32_t
  8335. * test/MockPieceStorage.h: int -> int32_t
  8336. * test/OptionTest.cc: int -> int32_t
  8337. * test/RequestTest.cc: int -> int32_t
  8338. * test/SegmentManTest.cc: int -> int32_t
  8339. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  8340. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8341. Move sleep functions to Util class:
  8342. * src/Util.cc
  8343. (sleep): New function.
  8344. (usleep): New function.
  8345. * src/DownloadCommand.cc: sleep -> Util::sleep
  8346. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  8347. MinGW build enhancements. The following files are added:
  8348. * src/timegm.{c,h}
  8349. Changes to support the above new files:
  8350. * configure.ac
  8351. * src/Makefile.am
  8352. * src/a2time.h
  8353. * src/Util.cc:
  8354. * src/strptime.c: Added support for %Z option.
  8355. Fixed MinGW non-blocking bug.
  8356. * src/SocketCore.cc
  8357. * src/HttpRequestCommand.cc
  8358. Miscellenous build fixes/enhancements.
  8359. * configure.ac: Added summary report.
  8360. * src/Platform.h: Tweaked #include's.
  8361. * src/a2netcompat.h: Tweaked #include's.
  8362. * src/strptime.h: Tweaked #include's.
  8363. * src/gai_strerror.c: Tweaked #include's.
  8364. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  8365. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  8366. * src/gettimeofday.h: Added HAVE_CONFIG_H
  8367. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8368. Increased the initial connection size in BitTorrent download to 40.
  8369. * src/BtRuntime.h
  8370. Added the usage message of --peer-id-prefix option.
  8371. * src/main.cc
  8372. * Release 0.11.2
  8373. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8374. MessageDigestHelper is introduced in order to simplify the use
  8375. of message digest. Removed repeated code.
  8376. The message digest algorithm is now specified by string, like "sha1",
  8377. "md5".
  8378. * src/messageDigest.{h, cc}
  8379. * src/MessageDigestHelper.{h, cc}: New class.
  8380. * src/DefaultPieceStorage.cc
  8381. * src/DefaultBtContext.{h, cc}
  8382. (computeFastSet): New function.
  8383. (setInfoHash): Added for unit testing.
  8384. (setNumPieces): Added for unit testing.
  8385. * src/DefaultBtInteractive.cc
  8386. * src/BtPieceMessage.cc
  8387. * src/Peer.cc
  8388. * src/Checksum.h
  8389. * src/message.h
  8390. * src/IteratableChecksumValidator.h
  8391. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  8392. inside it.
  8393. * src/SegmentMan.{h, cc}
  8394. (checkIntegrity): Removed.
  8395. * src/IteratableChunkChecksumValidator.{h, cc}
  8396. * src/Util.h
  8397. (sha1Sum): Removed.
  8398. (simpleMessageDigest): Removed.
  8399. (fileChecksum): Removed.
  8400. (computeFastSet): Removed.
  8401. * src/ShaVisitor.cc
  8402. * src/ChunkChecksum.h
  8403. * src/DownloadCommand.cc
  8404. Removed messageDigest virtual functions.
  8405. * src/MultiDiskAdaptor.{h, cc}
  8406. * src/DiskAdaptor.h
  8407. * src/ByteArrayDiskWriter.h
  8408. * src/DiskWriter.h
  8409. * src/DiskAdaptorWriter.h
  8410. * src/AbstractSingleDiskAdaptor.{h, cc}
  8411. * src/AbstractDiskWriter.{h, cc}
  8412. Fixed comilation error when message digest is disabled.
  8413. * src/MetalinkEntry.{h, cc}
  8414. * src/MetalinkRequestInfo.cc
  8415. Removed srandom and random.
  8416. * src/SimpleRandomizer.h
  8417. Added size() virtual function to DiskAdaptor
  8418. * src/MultiDiskAdaptor.h
  8419. Fixed the bug that causes that files are not opened correctly in
  8420. multi-file torrent.
  8421. * src/TorrentRequestInfo.cc
  8422. * src/MultiDiskAdaptor.cc
  8423. Added SHA256 support
  8424. * src/messageDigest.cc
  8425. * src/Xml2MetalinkProcessor.cc
  8426. Show supported message digest algorithms
  8427. * src/main.cc
  8428. Updated contact info.
  8429. * src/main.cc
  8430. Applied Ross's patch
  8431. * src/a2netcompat.h
  8432. * src/main.cc
  8433. Fixed the bug that prevents a remote metalink from not being processed
  8434. even if '-o foo.metalink' is specified.
  8435. * src/MetalinkRequestInfo.cc
  8436. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8437. Merged Dan's patch:
  8438. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  8439. Use va_copy to avoid core dump on amd64:
  8440. * src/SimpleLogger.cc
  8441. Updated contact info.
  8442. * src/main.cc
  8443. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  8444. digest is not available.
  8445. * src/MetalinkEntry.h
  8446. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8447. Make a2netcompat.h include a2io.h to fix compilation error:
  8448. * src/a2netcompat.h
  8449. * src/SocketCore.cc: Removed include of a2io.h
  8450. * src/Util.cc: Removed include of a2io.h
  8451. Gather time related functions to a2time.h:
  8452. * src/a2time.h: New file.
  8453. * src/DefaultPeerStorage.cc
  8454. * src/SimpleLogger.cc
  8455. * src/Util.{h, cc}
  8456. * src/SimpleRandomizer.h
  8457. * src/TimeA2.{h,cc}
  8458. * src/DownloadCommand.cc
  8459. * src/main.cc
  8460. Removed #ifdef __MINGW32__ since gai_strerror is included in
  8461. a2netcompat.h:
  8462. * src/NameResolver.cc
  8463. Fixed compilation error without openssl:
  8464. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  8465. Added default block to suppress compiler warnings:
  8466. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  8467. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  8468. MinGW build enhancements. The following files are added:
  8469. * src/gai_strerror.{c,h}
  8470. * src/gettimeofday.{c,h}
  8471. Changes to support the above new files:
  8472. * configure.ac
  8473. * src/Makefile.am
  8474. * src/a2netcompat.h
  8475. * src/TimeA2.cc
  8476. * src/DefaultPeerStorage.cc
  8477. * src/NameResolver.cc: removed mingw_strerror() function.
  8478. * src/SocketCore.cc: removed mingw_strerror() function.
  8479. Miscellaneous MinGW build fixes.
  8480. * src/a2io.h: Use _lseeki64() instead of lseek()
  8481. * src/common.h
  8482. * src/DefaultFileAllocator.cc
  8483. * src/GlowFileAllocator.cc
  8484. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  8485. * src/NameResolver.cc
  8486. (callback): Changed int32_t to int.
  8487. (resolve): Changed int32_t to int.
  8488. * src/Platform.cc
  8489. * src/Platform.h
  8490. * test/MultiDiskWriterTest.cc
  8491. * test/PeerMessageUtilTest.cc
  8492. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  8493. Other enhancements and fixes.
  8494. * src/HttpRequestCommand.cc
  8495. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  8496. * src/SocketCore.cc:
  8497. (error): New function to abstract errno/WSAGetLastError().
  8498. (errorMsg): New function to abstract errno/WSAGetLastError().
  8499. (initiateSecureConnection): Added more detailed error reporting.
  8500. * src/SocketCore.h: Added private variable blocking, to allow
  8501. proper handling of OpenSSL psuedo-errors.
  8502. * src/message.h
  8503. (EX_SSL_INIT_FAILURE)
  8504. (EX_SSL_IO_ERROR)
  8505. (EX_SSL_PROTOCOL_ERROR)
  8506. (EX_SSL_UNKNOWN_ERROR)
  8507. (EX_SSL_CONNECT_ERROR)
  8508. (EX_SOCKET_BLOCKING)
  8509. (EX_SOCKET_NONBLOCKING)
  8510. (EX_SOCKET_UNKNOWN_ERROR)
  8511. * src/Util.cc
  8512. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  8513. reserved name.
  8514. (httpGMT): Fixed typo.
  8515. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8516. Merged Ross's win32 patch(manually)
  8517. In the course of merging, following files are added.
  8518. * src/strptime.{h,c}
  8519. * src/libgen.{h,c}
  8520. * src/inet_aton.{h,c}
  8521. * src/Platform.{h,cc}
  8522. * src/localtime_r.{h,c}
  8523. * src/getaddrinfo.{h,c}
  8524. I've gethered network related things, and put them to following file:
  8525. * src/a2netcompat.h
  8526. Also io related things are put to following file:
  8527. * src/a2io.h
  8528. Changed %lld to %s because mingw32 doesn't recognize %lld.
  8529. * src/message.h
  8530. (MSG_ALLOCATION_COMPLETED)
  8531. (EX_TOO_LARGE_FILE)
  8532. (EX_SIZE_MISMATCH)
  8533. (EX_FILE_OFFSET_OUT_OF_RANGE)
  8534. (EX_INVALID_CHUNK_CHECKSUM)
  8535. (EX_INVALID_RANGE_HEADER)
  8536. * src/FileAllocationCommand.cc
  8537. * src/HttpResponse.cc
  8538. * src/RequestGroup.cc
  8539. * src/MultiDiskAdaptor.cc
  8540. * src/OptionHandlerImpl.h
  8541. * src/HttpResponseCommand.cc
  8542. * src/FtpNegotiateCommand.cc
  8543. * src/IteratableChecksumValidator.cc
  8544. * src/SegmentMan.cc
  8545. * src/ChunkChecksumValidator.cc
  8546. Added Randomizer::getRandomNumber(long int)
  8547. * src/Randomizer.h (getRandomNumber)
  8548. * src/SimpleRandomizer.h (getRandomNumber)
  8549. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  8550. * src/Util.cc (randomAlpha): Use this new function.
  8551. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8552. Converted int's to in32_t. long long int's are also converted to
  8553. int64_t
  8554. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8555. Fixed the bug that prevents cookies from being sent to the server
  8556. if the domain of cookie is FQDN and starts with ".".
  8557. * src/Cookie.cc (match)
  8558. To add the ability to change peer id.
  8559. * src/DefaultBtContext.h
  8560. (_peerIdPrefix): New variable
  8561. (setPeerIdPrefix): New function.
  8562. * src/torrentRequestInfo.cc
  8563. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  8564. DefaultBtContext.
  8565. * src/main.cc (main): Added peer-id-prefix command-line option.
  8566. The usage message is not added yet.
  8567. * src/DefaultBtContext.cc
  8568. (generatePeerId): Use _peerIdPrefix.
  8569. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  8570. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8571. Fixed the bug that prevents filename in content-disposition from
  8572. being retrieved when filename is not quoted.
  8573. * src/Util.cc (getContentDispositionFilename)
  8574. Fixed the bug that causes infinate loop and memory leak when file open
  8575. operation failed.
  8576. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8577. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8578. Fixed the bug that causes segfault when all URIs specified are
  8579. unsupported.
  8580. * src/RequestGroupMan.cc (getInitialCommands)
  8581. Check if RequestGroup::createNextCommand() returns empty list of
  8582. commands.
  8583. * src/RequestGroup.cc (createNextCommand)
  8584. Change log level from info to error so that users can notice that
  8585. an error occurred.
  8586. Fixed the bug that causes segfault when a zero-sized file is
  8587. downloaded.
  8588. * src/BitfieldMan.cc (isAllBitSet)
  8589. Return true if bitfieldLength is 0.
  8590. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8591. * src/main.cc
  8592. (showUsage): Added 3 usage examples for metalink download.
  8593. Replace MetalinkChunkChecksum with ChunkChecksum.
  8594. * src/MetalinkChunkChecksum.h: Removed.
  8595. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  8596. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  8597. * src/Xml2MetalinkProcessor.cc
  8598. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  8599. * src/MetalinkRequestInfo.cc (execute)
  8600. * Release 0.11.1
  8601. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8602. Reads URIs from stdin when "-i -" is specified.
  8603. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  8604. * src/UriListParser.h, src/UriListParser.cc: New class.
  8605. * src/StreamUriListParser.h: New class.
  8606. * src/FileUriListParser.h: New class.
  8607. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  8608. instead of UriFileListParser.
  8609. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8610. Made console readout more readable.
  8611. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8612. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8613. Fix the bug that causes -s option not to work.
  8614. * src/main.cc (main)
  8615. * src/a2algo.h: New file.
  8616. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8617. Create directory structure specified in metalink file.
  8618. * src/RequestGroup.h, src/RequestGroup.cc
  8619. (initAndOpenFile): Create a directory to store files if it does not
  8620. exist.
  8621. (getDir): New function.
  8622. Added ETA and download speed for an individual file to readout.
  8623. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8624. * src/RequestGroup.h
  8625. (calculateDownloadSpeed): New function.
  8626. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8627. Made -S option work with metalink file and provided selective download
  8628. to metalink.
  8629. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  8630. (filename): Removed.
  8631. (file): New variable.
  8632. (size): Removed.
  8633. (operator=): Updated.
  8634. (getPath): New function.
  8635. (getLength): New function.
  8636. (toFileEntry): New function.
  8637. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  8638. (execute): Use toStream.
  8639. (showFileEntry): Removed.
  8640. * src/MetalinkRequestInfo.h
  8641. (targetFiles): New variable.
  8642. (setTargetFiles): New variable.
  8643. * src/MetalinkRequestInfo.cc
  8644. (execute): Added the ability to print file information included in
  8645. a metalink file.
  8646. Added selective download mode to metalink.
  8647. * src/main.cc
  8648. (showUsage): Updated to denote that -S and --select-file options are
  8649. applicable to metalink.
  8650. * src/FileEntry.h
  8651. (operator=): New function.
  8652. (getBasename): New function.
  8653. (getDirname): New function.
  8654. * src/Util.h, src/Util.cc
  8655. (toStream): New function.
  8656. * src/Xml2MetalinkProcessor.cc: Updated.
  8657. Made aria2 work with metalink with directory structure.
  8658. * src/File.h, src/File.cc
  8659. (getBasename): New function.
  8660. (getDirname): New function.
  8661. * src/RequestGroup.h, src/RequestGroup.cc
  8662. (_topDir): New variable.
  8663. (setTopDir): New function.
  8664. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  8665. Rewrote HTTP header parsing with stringstream.
  8666. * src/HttpConnection.h, src/HttpConnection.cc
  8667. (HttpRequestEntry): New class.
  8668. (headerBuf): Removed.
  8669. (headerBufLength): Removed.
  8670. (outstandingHttpRequests): Now its element type is
  8671. HttpRequestEntryHandle.
  8672. (findEndOfHeader): Removed.
  8673. (receiveResponse): Rewritten.
  8674. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  8675. Updated doc for -j option to notice that it should be used with -i
  8676. option.
  8677. * src/main.cc (showUsage)
  8678. Removed unused classes.
  8679. * src/RequestInfo.h
  8680. (FileInfo): Removed.
  8681. (checksum): Removed.
  8682. (fileInfo): Removed.
  8683. (setChecksum): Removed.
  8684. (getChecksum): Removed.
  8685. (getFileInfo): Removed.
  8686. Use ISO units.
  8687. * src/ConsoleDownloadEngine.cc
  8688. * src/TorrentConsoleDownloadEngine.cc
  8689. * src/Util.cc (abbrevSize)
  8690. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8691. Added the default listening ports to the help message.
  8692. * src/main.cc (showUsage)
  8693. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8694. Reduce the number of calls to gettimeofday to lower CPU load.
  8695. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  8696. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  8697. * src/Peer.h (calculateUploadSpeed): New function.
  8698. (calculateDownloadSpeed): New function.
  8699. * src/DefaultPeerStorage.cc
  8700. (CalculateStat): Added _now variable.
  8701. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  8702. and Peer::calculateUploadSpeed(const struct timeval&)
  8703. Drop connection if no request or piece message is exchanged in
  8704. a certain interval.
  8705. * src/DefaultBtInteractive.h
  8706. (btRuntime): New variable.
  8707. (inactiveCheckPoint): New variable.
  8708. (checkActiveInteraction): New function.
  8709. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  8710. request or piece message is received.
  8711. (checkActiveInteraction): New function.
  8712. (doInteractionProcessing): Call checkActiveInteraction.
  8713. Fixed the bug that causes remote Metalink and Torrent files are not
  8714. processed.
  8715. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  8716. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8717. Changed format of log file.
  8718. * src/SimpleLogger.cc
  8719. * Release 0.11.0
  8720. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8721. * src/AbstractCommand.cc
  8722. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  8723. MSG_MAX_TRY from error to info.
  8724. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  8725. * src/message.h
  8726. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  8727. (MSG_DOWNLOAD_ABORTED): Added %s.
  8728. (MSG_RESTARTING_DOWNLOAD): Added %s.
  8729. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  8730. * src/PeerAbstractCommand.cc
  8731. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  8732. * src/Request.h
  8733. (cookieBox): Made ShardHandle.
  8734. * src/RequestGroup.h, src/RequestGroup.cc
  8735. (createNextCommandWithAdj): New function.
  8736. * src/FileAllocationCommand.cc
  8737. (executeInternal): Use createNextCommandWithAdj().
  8738. * src/CheckIntegrityCommand.cc
  8739. (executeInternal): Use createNextCommandWithAdj().
  8740. Added --load-cookies command-option.
  8741. * src/OptionHandlerFactory.cc
  8742. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  8743. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  8744. Now aria2 can handle cookie's expiration date.
  8745. * src/Cookie.h (expires): Changed its type to time_t.
  8746. * src/main.cc: Added --load-cookies command-line option.
  8747. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  8748. * src/Util.h, src/Util.cc (httpGMT): New function.
  8749. * src/Request.cc (Request): Initialize cookieBox using
  8750. CookieBoxFactory.
  8751. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  8752. * src/CookieParser.h, src/CookieParser.cc: New class.
  8753. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  8754. * src/HttpResponseCommand.cc
  8755. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  8756. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  8757. download.
  8758. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8759. Added -j command-line option.
  8760. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8761. * src/main.cc
  8762. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  8763. Rewritten using stringstream.
  8764. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  8765. Rewritten using stringstream.
  8766. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8767. Make download size shown in MB, KB.
  8768. * src/ConsoleDownloadEngine.h (sendStatistics)
  8769. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  8770. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8771. Accept incoming connections if download rate is low.
  8772. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  8773. (_lowestSpeedLimit): New variable.
  8774. (setLowestSpeedLimit): New function.
  8775. (execute): Accept incoming connections if download rate is low.
  8776. MAX_PEERS is ignored in this case.
  8777. Disable PREF_OUT in multiple concurrent download:
  8778. * src/RequestGroup.h, src/RequestGroup.cc
  8779. (setUserDefinedFilename): New function.
  8780. * src/DownloadEngineFactory.cc
  8781. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  8782. concurrent download.
  8783. * src/DefaultSegmentManFactory.cc
  8784. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  8785. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8786. RequestGroup::getNextCommand() was renamed to createNextCommand().
  8787. Added its overloaded method.
  8788. * src/RequestGroup.h
  8789. (_numConcurrentCommand): New variable.
  8790. (setNumConcurrentCommand): New function.
  8791. * src/RequestGroup.cc
  8792. Abort download if same file is being downloaded concurrently.
  8793. * src/RequestGroup.h, src/RequestGroupMan.cc
  8794. (isSameFileBeingDownloaded): New function.
  8795. * src/HttpResponseCommand.cc (executeInternal)
  8796. * src/FtpNegotiateCommand.cc (recvSize)
  8797. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  8798. * main.cc: Added help message for -i option.
  8799. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8800. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  8801. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  8802. * src/MetalinkEntry.h
  8803. (checksum): Changed to ChecksumHandle
  8804. * src/MetalinkRequestInfo.cc
  8805. (checksum): Changed to ChecksumHandle
  8806. * src/File.cc
  8807. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  8808. * src/common.h
  8809. (DIR_OPEN_MODE): New definition
  8810. * src/RequestGroup.cc
  8811. (prepareForNextAction): Added an argument.
  8812. * src/message.h
  8813. (MSG_GOOD_CHECKSUM): New definition
  8814. (MSG_BAD_CHECKSUM): New definition
  8815. * src/HttpResponseCommand.cc
  8816. (handleDefaultEncoding): Continue download sequence in new
  8817. non-segmented download.
  8818. * src/FileAllocationEntry.h
  8819. (_nextDownloadCommand): New variable.
  8820. * src/DownloadCommand.cc
  8821. (prepareForNextSegment): Create ChecksumCommand if checksum is
  8822. available.
  8823. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  8824. * src/IteratableChecksumValidator.h,
  8825. src/IteratableChecksumValidator.cc: New class.
  8826. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  8827. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8828. Change file mode to 666:
  8829. * src/common.h (OPEN_MODE): New definition.
  8830. * src/File.cc
  8831. * src/Util.cc
  8832. * src/Directry.cc
  8833. * src/AbstractDiskWriter.cc
  8834. Change the level of log message "download aborted" to debug:
  8835. * src/PeerAbstractCommand.cc (execute)
  8836. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  8837. * src/TrackerWatcherCommand.cc
  8838. (createCommand): Sleep some seconds after request failed.
  8839. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  8840. then abort tracker request.
  8841. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8842. * Added the simultaneous download feature.
  8843. * src/main.cc: Print "Exception caught: " when exception is caught.
  8844. Use CUIDCounter instead of BtRuntime::getNewCuid():
  8845. * src/ActivePeerConnectionCommand.cc
  8846. * src/PeerInteractionCommand.cc
  8847. * src/BtRuntime.h
  8848. (cuidCounter): Removed.
  8849. (getNewCuid): Removed.
  8850. * src/DownloadEngineFactory.cc
  8851. * src/PeerListenCommand.cc
  8852. * src/TrackerUpdateCommand.cc
  8853. * src/PeerInitiateConnectionCommand.cc
  8854. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8855. * src/PeerAbstractCommand.cc
  8856. (onAbort): Call PeerStorage::returnPeer()
  8857. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  8858. (incomingPeers): New variable.
  8859. (addIncomingPeer): New function.
  8860. (returnPeer): New function.
  8861. (onErasingPeer): New function.
  8862. (addPeer): push_back -> push_front
  8863. (getActivePeers): Rewritten.
  8864. (calculateStat): Rewritten.
  8865. * src/PeerStorage.h
  8866. (TransferStat::copy): New function.
  8867. (TransferStat::TransferStat): New function.
  8868. (TransferStat::operator=): New function.
  8869. (addIncomingPeer): New function.
  8870. (returnPeer): New function.
  8871. * src/PeerListenCommand.cc
  8872. (execute): Use PeerStorage::addIncomingPeer() instead of
  8873. Peer::addPeer().
  8874. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8875. Connect to a peer actively when download speed is lower than specified
  8876. speed in torrent download:
  8877. * src/ActivePeerConnectionCommand.h: New class.
  8878. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8879. * src/HttpRequest.cc (createRequest): url-encode user-agent
  8880. * src/main.cc: Fixed the bug that prevents download if .netrc
  8881. doesn't exist.
  8882. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8883. To cache resolved hostname:
  8884. * src/AbstractCommand.h, src/AbstractCommand.cc
  8885. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  8886. Added dns cache.
  8887. * src/FtpInitiateConnectionCommand.cc
  8888. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  8889. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  8890. NameResolver working without ares.
  8891. * src/TorrentRequestInfo.cc
  8892. (execute): Don't cache dns in torrent download.
  8893. * src/HttpInitiateConnectionCommand.cc
  8894. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  8895. * src/DNSCache.h: New class.
  8896. * src/UrlRequestInfo.cc
  8897. (execute): Use dns cache.
  8898. In http request, suppress port number in http request header if port
  8899. is 80 or 443:
  8900. * src/HttpRequest.cc (getHostText): Suppress port number in http
  8901. request header if port is 80 or 443.
  8902. (createProxyRequest): Allways send port number.
  8903. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8904. To add the command-line option which disables netrc support:
  8905. * src/OptionHandlerFactory.cc
  8906. (createOptionHandlers): Added PREF_NO_NETRC.
  8907. * src/main.cc: Added -n option.
  8908. * src/prefs.h (PREF_NO_NETRC): New definition.
  8909. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  8910. V_TRUE.
  8911. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  8912. is V_FALSE. This may get configurable in the future release.
  8913. To clear peer's error status by time basis:
  8914. * src/PeerAbstractCommand.cc
  8915. (onAbort): Call Peer::startBadCondition().
  8916. * src/Peer.h, src/Peer.cc
  8917. (error): Removed.
  8918. (_badConditionStartTime): New variable.
  8919. (_badConditionInterval): New variable. Initialized to 10 seconds.
  8920. (startBadCondition): New function.
  8921. (isGood): New function.
  8922. * src/DefaultPeerStorage.cc
  8923. (addPeer): Use Peer::isGood().
  8924. (FindFinePeer): Use Peer::isGood().
  8925. Always include port number in http request header:
  8926. * src/HttpRequest.cc (getHostText): Always include port number in
  8927. http request header.
  8928. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8929. To the ability to read options from a config file:
  8930. * src/main.cc: Command-line parameter validation is delegated to
  8931. OptionHandler class.
  8932. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  8933. * src/Option.h, src/Option.cc (clear): New function.
  8934. * src/OptionParser.h, src/OptionParser.cc: New class.
  8935. * src/OptionHandler.h: New class.
  8936. * src/NameMatchOptionHandler.h: New class.
  8937. * src/OptionHandlerImpl.h: New classes.
  8938. * src/prefs.h: '_' -> '-'
  8939. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  8940. (FTP_PASV): New definition.
  8941. * src/Util.h, src/Util.cc (getRealSize): New function.
  8942. To disable netrc support if .netrc file does not have correct
  8943. permissions:
  8944. * src/File.h, src/File.cc (mode): New function.
  8945. To prevent confidential information to be logged:
  8946. * src/HttpConnection.h, src/HttpConnection.cc
  8947. (eraseConfidentialInfo): New function.
  8948. (sendRequest): Call eraseConfidentialInfo().
  8949. (sendProxyRequest): Call eraseConfidentialInfo().
  8950. * src/main.cc: Validate permissions of .netrc file.
  8951. To add --user-agent command-line option:
  8952. * src/main.cc: Added new command line option: --user-agent
  8953. * src/prefs.h (PREF_USER_AGENT): New definition.
  8954. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  8955. parameter to HttpRequest object.
  8956. * src/AbstractProxyRequestCommand.cc
  8957. (executeInternal): Set user-agent option parameter to HttpRequest
  8958. object.
  8959. Marged the patches from Dan Fandrich.
  8960. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8961. Use filename and size from Metalink file instead of sending HEAD
  8962. request:
  8963. * src/UrlRequestInfo.h
  8964. (_filename): New variable.
  8965. (_totalLength): New variable.
  8966. (setTotalLength): New variable.
  8967. (setFilename): New variable.
  8968. * src/MetalinkRequestInfo.cc
  8969. (execute): Set filename and size to UrlRequestInfo
  8970. * src/UrlRequestInfo.cc
  8971. (execute): Use filename and size from Metalink instead of seding
  8972. HEAD request to servers.
  8973. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8974. To add the ability to resume downloading a partially downloaded file
  8975. which is downloaded from the beginning:
  8976. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  8977. takes this role.
  8978. * src/main.cc: Added -c option.
  8979. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  8980. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  8981. * src/prefs.h (PREF_CONTINUE): New definition.
  8982. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  8983. * src/DefaultDiskWriter.cc
  8984. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  8985. * src/AbstractDiskWriter.h
  8986. (glowFileAllocator): New variable.
  8987. * src/AbstractDiskWriter.cc
  8988. (openExistingFile): Now preallocate file space from the end of the
  8989. existing file if totalLength argument is specified and grater than 0.
  8990. * src/UrlRequestInfo.cc: If -c option is specified and the file
  8991. to download exists in local, continue the download of the file.
  8992. --allow-overwrite=true is assumed in this context.
  8993. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  8994. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  8995. Throw exception if --check-integrity=true is specified but chunk
  8996. checksums are not provided:
  8997. * src/UrlRequestInfo.cc
  8998. Do not print URLs to stdout:
  8999. * src/UrlRequestInfo.cc
  9000. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9001. * src/Request.h: Use AuthResolver to get authentication information.
  9002. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  9003. set to RequestFactory object.
  9004. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  9005. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  9006. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  9007. create Request object.
  9008. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  9009. To integrate Netrc into exsiting classes:
  9010. * src/Request.h
  9011. (_userDefinedAuthConfig): New variable.
  9012. (findNetrcAuthenticator): New function.
  9013. (segment): Removed.
  9014. (setUserDefinedAuthConfig): New function.
  9015. (resolveHttpAuthConfigItem): New function.
  9016. (resolveFtpAuthConfigItem): New function.
  9017. (resolveHttpProxyAuthConfigItem): New function.
  9018. * src/HttpRequest.h
  9019. (authConfig): Removed.
  9020. (proxyAuthConfig): Removed.
  9021. (setAuthConfig): Removed.
  9022. (setProxyAuthConfig): Removed.
  9023. * src/UrlRequest.h
  9024. (getHeadResult): Added a parameter: authConfigHandle
  9025. * src/common.h
  9026. (SingletonHolder.h): New include.
  9027. * src/main.cc
  9028. (Netrc.h): New include.
  9029. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  9030. Added initial value of PREF_NETRC_PATH.
  9031. Added the initialization of netrc.
  9032. * src/AuthConfig.h: New class.
  9033. * src/prefs.h
  9034. (PREF_NETRC_PATH): New definition.
  9035. * src/HttpAuthConfig.h: Removed.
  9036. * src/Netrc.cc
  9037. (getRequiredNextToken): New function.
  9038. (skipMacdef): New function.
  9039. (parse): Rewritten.
  9040. * src/Netrc.h
  9041. (getRequiredNextToken): New function.
  9042. (skipMacdef): New function.
  9043. * src/Util.h, src/Util.cc
  9044. (getHomeDir): New function.
  9045. * src/TrackerWatcherComand.cc
  9046. (createRequestCommand): Use AuthConfig.
  9047. * src/FtpConnection.cc
  9048. (sendUser): Use Request::resolveFtpAuthConfigItem().
  9049. (sendPass): Use Request::resolveFtpAuthConfigItem().
  9050. * src/Request.cc
  9051. (findNetrcAuthenticator): New function.
  9052. (resolveHttpAuthConfigItem): New function.
  9053. (resolveFtpAuthConfigItem): New function.
  9054. (resolveHttpProxyAuthConfigItem): New function.
  9055. * src/UrlRequestInfo.cc: Use AuthConfig.
  9056. * src/HttpRequest.cc
  9057. (createRequest): Use authConfig.
  9058. (getProxyAuthString): Use authConfig.
  9059. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  9060. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  9061. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9062. To reduce overhead to find commands whose socket is either
  9063. readable or writable in the download engine loop:
  9064. * src/Command.h, src/Command.cc
  9065. (STATUS): New enum.
  9066. (status): New variable.
  9067. (statusMatch): New function.
  9068. (setStatusActive): New function.
  9069. (setStatusInactive): New function.
  9070. * src/DownloadEngine.h, src/DownloadEngine.cc
  9071. (executeCommand): New function.
  9072. (run): Simplified.
  9073. (waitData): Call Command::setStatusActive() when command's socket is
  9074. readable or writable.
  9075. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9076. To handle Segment as SegmentHandle:
  9077. * src/AbstractCommand.cc (execute): Rewritten.
  9078. * src/SegmentMan.h: Segment -> SegmentHandle
  9079. Introducded HttpResponse class, HttpRequest class to improve code
  9080. extensiveness and make it clear:
  9081. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  9082. HttpResponse class.
  9083. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  9084. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  9085. * src/HttpConnection.cc: Contruction of http request were moved to
  9086. HttpRequest class.
  9087. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  9088. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  9089. * src/HttpAuthConfig.h: New class.
  9090. * src/Range.h: New class.
  9091. To make FtpTunnel{Request, Response}Command and
  9092. HttpProxy{Request, Response}Command derived from
  9093. AbstractProxy{Request, Response}Command:
  9094. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  9095. Derived from AbstractProxyRequestCommand class.
  9096. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  9097. Derived from AbstractProxyResponseCommand class.
  9098. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  9099. Derived from AbstractProxyRequestCommand class.
  9100. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  9101. Derived from AbstractProxyResponseCommand class.
  9102. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  9103. : New class.
  9104. * src/AbstractProxyResponseCommand.h,
  9105. src/AbstractProxyResponseCommand.cc: New class.
  9106. To add netrc support:
  9107. * src/Netrc.h, src/Netrc.cc: New class.
  9108. * src/Util.h, src/Util.cc (split): New function.
  9109. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  9110. "Content-Range" header instead of "Range" header.
  9111. * src/HttpHeader.h
  9112. (getStatus): Removed.
  9113. (setStatus): Removed.
  9114. * src/Segment.h
  9115. (getPositionToWrite): New function.
  9116. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9117. * src/HttpHeader.h
  9118. (Range.h): New include.
  9119. (status): New variable.
  9120. (HttpHeader): Initialized status with 0.
  9121. (getStatus): New function.
  9122. (setStatus): New function.
  9123. (getRange): New function.
  9124. (HttpHeaderHandle): New function.
  9125. * src/HttpHeader.cc
  9126. (getRange): New function.
  9127. * src/Request.h
  9128. (RequestWeakHandle): New definition.
  9129. * src/HttpConnection.h
  9130. (HttpConnectionHandle): New type definition.
  9131. * src/HttpConnection.cc
  9132. (receiveResponse): Set HTTP status to headers.
  9133. * src/main.cc
  9134. (showUsage): Fixed typo.
  9135. * src/Segment.h
  9136. (SegmentHandle): New type definition.
  9137. * src/BitfieldMan.h
  9138. (getMissingUnusedLength): New function.
  9139. * src/BitfieldMan.cc
  9140. (getMissingUnusedLength): New function.
  9141. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9142. To fix static initialization order problem:
  9143. * src/BitfieldManFactory.h
  9144. (defaultRandomizer): Removed.
  9145. (factory): New variable.
  9146. (getNewFactory): Removed.
  9147. (getFactoryInstance): New function.
  9148. (setDefaultRandomizer): Rewritten.
  9149. (getDefaultRandomizer): Rewritten.
  9150. * src/BitfieldManFactory.cc
  9151. (defaultRandomizer): Removed.
  9152. (factory): Initialized to 0.
  9153. (BitfieldManFactory): Initialized randomizer to 0.
  9154. * src/DefaultPieceStorage.cc
  9155. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  9156. * src/Peer.cc
  9157. (Peer): getNewFactory() -> getFactoryInstance()
  9158. * src/SegmentMan.cc
  9159. (initBitfield): getNewFactory() -> getFactoryInstance()
  9160. * src/Piece.cc
  9161. (Piece): getNewFactory() -> getFactoryInstance()
  9162. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9163. To fix the bug that causes crash on Max OS X:
  9164. * src/SimpleRandomizer.h
  9165. (getInstance): Create new instance if the static variable is null.
  9166. * src/SimpleRandomizer.cc
  9167. (randomizer): Initialized to 0.
  9168. * src/BitfieldManFactory.h
  9169. (getNewFactory): Removed the call to setRandomizer().
  9170. To fix the miscalculation of the range of checksum:
  9171. * src/BitfieldMan.h
  9172. (isBitSetOffsetRange): New function.
  9173. * src/BitfieldMan.cc
  9174. (isBitSetOffsetRange): New function.
  9175. * src/SegmentMan.cc
  9176. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  9177. Use bitfield->getBlockLength() instead of segment.segmentLength.
  9178. * Release 0.10.1
  9179. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9180. To lower CPU usage in BitTorrent download when --max-upload-limit
  9181. command-line option specified:
  9182. * src/DefaultBtMessageDispatcher.cc
  9183. (sendMessages): Calculate uploading speed only when current message
  9184. is uploading data and is not sent yet.
  9185. * src/DefaultPeerStorage.h
  9186. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  9187. * src/HttpResponseCommand.cc
  9188. (handleDefaultEncoding): Added the cast to int32_t to itos.
  9189. This fixes compile error in Soralis 10.
  9190. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9191. To fix segfault in Metalink download:
  9192. * src/UrlRequestInfo.h
  9193. (filename): Removed.
  9194. (totalLength): Removed.
  9195. (setTotalLength): Removed.
  9196. (setFilename): Removed.
  9197. * src/MetalinkRequestInfo.cc
  9198. (execute): Do not set filename and totalLength to reqInfo.
  9199. Set chunk checksum to reqInfo if it is not null.
  9200. * src/HttpResponseCommand.cc
  9201. (executeInternal): Fixed filename in log.
  9202. (handleDefaultEncoding): Removed the call to initBitfield() and
  9203. markAllPiecesDone().
  9204. (handleOtherEncoding): Added HEAD method handling.
  9205. * src/FtpNegotiateCommand.cc
  9206. (executeInternal): Added SEQ_HEAD_OK handling.
  9207. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  9208. return false.
  9209. * src/FtpNegotiateCommand.h
  9210. (SEQ_HEAD_OK): New definition.
  9211. * src/SegmentMan.cc
  9212. (initBitfield): Delete bitfield.
  9213. (isChunkChecksumValidationReady): Fixed the condition.
  9214. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  9215. works fine.
  9216. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9217. * src/Xml2MetalinkProcessor.h
  9218. (xpathExists): New function.
  9219. * src/Xml2MetalinkProcessor.cc
  9220. (xpathExists): New function.
  9221. Not to send HEAD request if filename and size are available in Metalink
  9222. file:
  9223. * src/UrlRequestInfo.h
  9224. (filename): New variable.
  9225. (totalLength): New variable.
  9226. (setTotalLength): New function.
  9227. (setFilename): New function.
  9228. * src/MetalinkRequestInfo.cc
  9229. (execute): Set filename and size to UrlRequestInfo.
  9230. * src/MetalinkEntry.cc
  9231. (MetalinkEntry): Initialize size with 0.
  9232. * src/UrlRequestInfo.cc
  9233. (execute): Set filename and size to SegmentMan.
  9234. Not to download rest of the files after selected files are downloaded
  9235. in BitTorrent:
  9236. * src/PieceStorage.h
  9237. (allDownloadFinished): New function.
  9238. * src/DefaultBtAnnounce.cc
  9239. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  9240. downloadFinished.
  9241. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  9242. * src/DefaultPieceStorage.cc
  9243. (completePiece): Use allDownloadFinished instead of downloadFinished.
  9244. Commented out the call to finishSelectiveDownloadingMode().
  9245. (downloadFinished): Call isFilteredAllBitSet() instead of
  9246. isAllBitSet().
  9247. (allDownloadFinished): New function.
  9248. * src/DefaultBtInteractive.cc
  9249. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  9250. downloadFinished().
  9251. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  9252. * src/TorrentDownloadEngine.cc
  9253. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  9254. * src/BitfieldMan.h
  9255. (isFilteredAllBitSet): New function.
  9256. * src/ShareRatioSeedCriteria.h
  9257. (PieceStorage.h): New include.
  9258. (pieceStorage): New variable.
  9259. (evaluate):
  9260. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  9261. * src/BitfieldMan.cc
  9262. (isFilteredAllBitSet): New function.
  9263. (isAllBitSet): Filter is not took into account.
  9264. Rename --force-truncate as --allow-overwrite:
  9265. * src/TorrentRequestInfo.cc
  9266. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  9267. * src/main.cc
  9268. (showUsage): --force-truncate -> --allow-overwrite
  9269. * src/message.h
  9270. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  9271. * src/prefs.h
  9272. (PREF_FORCE_TRUNCATE): Removed.
  9273. (PREF_ALLOW_OVERWRITE): New definition.
  9274. * src/SegmentMan.cc
  9275. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  9276. * src/MetalinkRequestInfo.cc
  9277. (execute): Queueing message are now logged in info level.
  9278. * src/common.h
  9279. (LONG_LONG_MAX): Removed.
  9280. (LONG_LONG_MIN): Removed.
  9281. * src/HttpResponseCommand.cc
  9282. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  9283. * src/FtpNegotiateCommand.cc
  9284. (recvSize): LONG_LONG_MAX -> INT64_MAX
  9285. * src/main.cc
  9286. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  9287. command-line option.
  9288. (main): Added --check-integriy and --realtime-chunk-checksum
  9289. command-line option.
  9290. --force-truncate -> --allow-overwrite
  9291. Set initial value of --check-integrity option to false.
  9292. Don't show usage when error occurs while persing command-line options.
  9293. Removed deprecated --upload-limit option.
  9294. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9295. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  9296. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  9297. * src/BtAllowedFastMessage.cc:
  9298. * src/BtBitfieldMessage.cc
  9299. * src/BtCancelMessage.cc
  9300. * src/BtChokeMessage.cc
  9301. * src/BtHaveAllMessage.cc
  9302. * src/BtHaveMessage.cc
  9303. * src/BtHaveNoneMessage.cc
  9304. * src/BtInterestedMessage.cc
  9305. * src/BtNotInterestedMessage.cc
  9306. * src/BtPieceMessage.cc
  9307. * src/BtPortMessage.cc
  9308. * src/BtRejectMessage.cc
  9309. * src/BtRequestMessage.cc
  9310. * src/BtSuggestPieceMessage.cc
  9311. * src/BtUnchokeMessage.cc
  9312. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  9313. files are affected.
  9314. * src/ChunkChecksumValidator.cc
  9315. * src/SegmentMan.cc
  9316. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9317. To add chunk checksum validation:
  9318. * src/MetalinkEntry.h
  9319. (MetalinkChunkChecksum.h): New include.
  9320. (chunkChecksum): New variable.
  9321. * src/Request.h
  9322. (method): New variable.
  9323. (setMethod): New function.
  9324. (getMethod): New function.
  9325. (METHOD_GET): New static constant.
  9326. (METHOD_HEAD): New static constant.
  9327. * src/Xml2MetalinkProcessor.h
  9328. (getPieceHash): New function.
  9329. * src/PieceStorage.h
  9330. (markAllPiecesDone): New function.
  9331. (checkIntegrity): New function.
  9332. * src/FileAllocator.h
  9333. (NullFileAllocationMonitor.h): New include.
  9334. (FileAllocator): Initialize fileAllocationMonitor with new
  9335. NullFileAllocationMonitor().
  9336. * src/MultiDiskAdaptor.h
  9337. (messageDigest.h): Remove include.
  9338. (ctx): Removed.
  9339. (hashUpdate): Added ctx.
  9340. (MultiDiskAdaptor): Removed ctx.
  9341. (sha1Sum): Renamed as messageDigest.
  9342. (messageDigest): New function.
  9343. * src/UrlRequestInfo.h
  9344. (HeadResult): New class.
  9345. (digestAlgo): New variable.
  9346. (chunkChecksumLength): New variable.
  9347. (chunkChecksums): New variable.
  9348. (getHeadResult): New function.
  9349. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  9350. (setDigestAlgo): New function.
  9351. (setChunkChecksumLength): New function.
  9352. (setChunkChecksums): New function.
  9353. * src/DefaultPieceStorage.cc
  9354. (DiskAdaptorWriter.h): New include.
  9355. (ChunkChecksumValidator.h): New include.
  9356. (markAllPiecesDone): New function.
  9357. (checkIntegrity): New function.
  9358. * src/DefaultBtContext.h
  9359. (getPieceHashes): New function.
  9360. * src/TorrentRequestInfo.cc
  9361. (execute): Try to validate chunk checksum if file already exists and
  9362. .aria2 file doesn't there and user allows aria2 to overwrite it.
  9363. * src/messageDigest.h
  9364. (~MessageDigestContext): Added digestFree().
  9365. * src/MetalinkRequestInfo.cc
  9366. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  9367. * src/DiskAdaptor.h
  9368. (messageDigest.h): New include.
  9369. (sha1Sum): Renamed as messageDigest.
  9370. (messageDigest): New function.
  9371. * src/DownloadCommand.h
  9372. (PeerStat.h): New include.
  9373. (maxDownloadSpeedLimit): New variable.
  9374. (startupIdleTime): New variable.
  9375. (lowestDownloadSpeedLimit): New variable.
  9376. (peerStat): New variable.
  9377. (setMaxDownloadSpeedLimit): New function.
  9378. (setStartupIdleTime): New function.
  9379. (setLowestDownloadSPeedLimit): New function.
  9380. * src/BtContext.h
  9381. (getPieceHashes): New function.
  9382. * src/main.cc
  9383. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  9384. option to true for testing purpose.
  9385. * src/BtPieceMessage.cc
  9386. (checkPieceHash): Use messageDigest
  9387. * src/DownloadEngine.cc
  9388. (SetDescriptor): Removed.
  9389. (AccumulateActiveCommand): Removed.
  9390. (waitData): Rewritten.
  9391. (updateFdSet): Rewritten.
  9392. * src/MultiDiskAdaptor.cc
  9393. (hashUpdate): Added ctx.
  9394. (sha1Sum): Renamed as messageDigest.
  9395. (messageDigest): New function.
  9396. * src/BitfieldMan.h
  9397. (isBitRangeSet): New function.
  9398. (unsetBitRange): New function.
  9399. * src/ByteArrayDiskWriter.h
  9400. (sha1Sum): Renamed as messageDigest.
  9401. (messageDigest): New function.
  9402. * src/ConsoleDownloadEngine.cc
  9403. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  9404. * src/DiskWriter.h
  9405. (messageDigest.h): New include.
  9406. (sha1Sum): Renamed as messageDigest.
  9407. (messageDigest): New function.
  9408. * src/ChunkChecksumValidator.h: New class.
  9409. * src/DiskAdaptorWriter.h: New class.
  9410. * src/prefs.h
  9411. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  9412. (PREF_CHECK_INTEGRITY): New definition.
  9413. * src/HttpResponseCommand.cc
  9414. (handleDefaultEncoding): Added method "HEAD" handling.
  9415. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9416. (handleOtherEncoding):
  9417. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  9418. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  9419. startupIdleTime, lowestDownloadSpeedLimit to command.
  9420. * src/SegmentMan.h
  9421. (getSegmentEntryByIndex): New function.
  9422. (getSegmentEntryByCuid): New function.
  9423. (getSegmentEntryIteratorByCuid): New function.
  9424. (diskWriter): DiskWriter -> DiskWriterHandle
  9425. (pieceHashes): New variable.
  9426. (chunkHashLength): New variable.
  9427. (digestAlgo): New variable.
  9428. (FindPeerStat): Removed.
  9429. (getPeerStat): Rewritten.
  9430. (markAllPiecesDone): New function.
  9431. (checkIntegrity): New function.
  9432. (tryChunkChecksumValidation): New function.
  9433. (isChunkChecksumValidationReady): New function.
  9434. * src/BitfieldMan.cc
  9435. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  9436. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  9437. blocks to 0.
  9438. (isBitRangeSet): New function.
  9439. (unsetBitRange): New function.
  9440. * src/FtpNegotiateCommand.cc
  9441. (executeInternal): Set maxDownloadSpeedLimit,
  9442. startupIdleTime, lowestDownloadSpeedLimit to command.
  9443. (recvSize): Added method "HEAD" handling.
  9444. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9445. * src/AbstractSingleDiskAdaptor.cc
  9446. (sha1Sum): Renamed as messageDigest.
  9447. (messageDigest): New function.
  9448. * src/AbstractSingleDiskAdaptor.h
  9449. (sha1Sum): Renamed as messageDigest.
  9450. (messageDigest): New function.
  9451. * src/Util.h
  9452. (indexRange): New function.
  9453. * src/MetalinkEntry.cc
  9454. (MetalinkEntry): Initialized chunkChecksum to 0.
  9455. * src/ShaVisitor.cc
  9456. (~ShaVisitor): Removed the call to ctx.digestFree().
  9457. * src/SegmentMan.cc
  9458. (ChunkChecksumValidator.h): New include.
  9459. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  9460. to DIGEST_ALGO_SHA1.
  9461. (~SegmentMan): Removed diskWriter.
  9462. (FindSegmentEntryByIndex): Removed.
  9463. (FindSegmentEntryByCuid): Removed.
  9464. (checkoutSegment): Rewritten.
  9465. (findSlowerSegmentEntry): Rewritten.
  9466. (getSegment): Rewritten.
  9467. (updateSegment): Rewritten.
  9468. (completeSegment): Rewritten.
  9469. (markAllPiecesDone): New function.
  9470. (checkIntegrity): New function.
  9471. (isChunkChecksumValidationReady): New function.
  9472. (tryChunkChecksumValidation): New function.
  9473. * src/Xml2MetalinkProcessor.cc
  9474. (getEntry): Get size and set it to entry.
  9475. Get chunk checksum and set it to entry.
  9476. (getPieceHash): New function.
  9477. * src/Util.cc
  9478. (sha1Sum): Removed ctx.digestFree()
  9479. (fileChecksum): Removed ctx.digestFree()
  9480. (indexRange): New function.
  9481. * src/Request.cc
  9482. (METHOD_GET): New variable.
  9483. (METHOD_HEAD): New variable.
  9484. (Request): Added method.
  9485. * src/UrlRequestInfo.cc
  9486. (FatalException.h): New include.
  9487. (message.h): New include.
  9488. (operator<<): Added operator<< for class HeadResult.
  9489. (getHeadResult): New function.
  9490. (execute): Get filename and size in separate download engine.
  9491. * src/ChunkChecksumValidator.cc: New class.
  9492. * src/DownloadCommand.cc:
  9493. (DownloadCommand): Added peerStat.
  9494. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  9495. the value from Option.
  9496. The buffer size is now 16KB.
  9497. Use peerStat member instead of getting it from SegmentMan.
  9498. Use startupIdleTime member instead of gettingit from Option.
  9499. Added chunk checksum validation.
  9500. * src/AbstractDiskWriter.cc
  9501. (AbstractDiskWriter): Removed ctx.
  9502. (~AbstractDiskWriter): Removed ctx.digestFree()
  9503. (writeDataInternal): Returns the return value of write.
  9504. (readDataInternal): Returns the return value of read.
  9505. (sha1Sum): Renamed as messageDigest
  9506. (messageDigest): New function.
  9507. * src/AbstractDiwkWriter.h
  9508. (messageDigest.h): Removed include.
  9509. (ctx): Removed.
  9510. (sha1Sum): Renamed as messageDigest
  9511. (messageDigest): New function.
  9512. * src/DefaultPieceStorage.h
  9513. (markAllPiecesDone): New function.
  9514. (checkIntegrity): New function.
  9515. * src/NullFileAllocationMonitor.h: New class.
  9516. * src/MetalinkChunkChecksum.h: New class.
  9517. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9518. To decrease CPU usage in bittorrent download, calculation results in
  9519. BitfieldMan were cached and realtime fetching PeerObject was removed
  9520. with WeakHandle introduced. Option values are set to the objects
  9521. by setter before download begins.
  9522. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  9523. * src/DefaultBtRequestFactory.h
  9524. (dispatcher): BtMessageDispatcherHandle ->
  9525. BtMessageDispatcherWeakHandle.
  9526. (messageFactory): New variable.
  9527. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  9528. BtMessageDispatcherWeakHandle.
  9529. (setBtMessageFactory): New function.
  9530. * src/DefaultBtMessageDispatcher.cc:
  9531. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  9532. from Option.
  9533. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  9534. feating the value from Option.
  9535. Use messageFactory member.
  9536. * src/PeerInteractionCommand.cc
  9537. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  9538. Add reverse dependencies to factory object.
  9539. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  9540. dispatcher.
  9541. Set messageFactory to receiver.
  9542. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  9543. btInteractive.
  9544. Set receiver to peerObject.
  9545. Set maxDownloadSpeedLimit to this.
  9546. (executeInternal): Use maxDownloadSpeedLimit member.
  9547. * src/BtChokeMessage.cc
  9548. (doReceivedAction): Use dispatcher, requestFactory member.
  9549. (onSendComplete): Use dispatcher member.
  9550. * src/PeerInteractionCommand.h
  9551. (maxDownloadSpeedLimit): New variable.
  9552. * src/DefaultBtMessageReceiver.h
  9553. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9554. (dispatcher):
  9555. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9556. (messageFactory): New variable.
  9557. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9558. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9559. (setDispatcher):
  9560. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9561. (setBtMessageFactory): New function.
  9562. * src/DefaultBtInteractive.cc
  9563. (initiateHandshake): Use messageFactory member.
  9564. (addBitfieldMessageToQueue): Use messageFactory member.
  9565. (addAllowedFastMessageToQueue): Use messageFactory member.
  9566. (decideChoking): Use messageFactory member.
  9567. (checkHave): Use messageFactory member.
  9568. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  9569. (receiveMessages): Use maxDownloadSpeedLimit member.
  9570. (decideInterest): Use messageFactory member.
  9571. * src/BtRequestMessage.cc
  9572. (doReceivedAction): Use messageFactory, dispatcher member.
  9573. (onQueued): Use dispatcher member.
  9574. * src/BtPieceMessage.cc
  9575. (doReceivedAction): Use dispatcher member.
  9576. (send): Use peerConnection member.
  9577. (onWrongPiece): Use requestFactory member.
  9578. (handleChokingEvent): Use messageFactory, dispatcher member.
  9579. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  9580. * src/BtMessageDispatcher.h
  9581. (BtMessageDispatcherWeakHandle): New type definition.
  9582. * src/SimpleBtMessage.cc
  9583. (send): Use peerConnection member.
  9584. * src/BtRejectMessage.cc
  9585. (doReceivedAction): Use dispatcher member.
  9586. * src/DefaultBtMessageDispatcher.h
  9587. (Option.h): Removed include.
  9588. (messageFactory): New variable.
  9589. (option): Removed.
  9590. (maxUploadSpeedLimit): New variable.
  9591. (requestTimeout): New variable.
  9592. (DefaultBtMessageDispatcher): Removed option.
  9593. Added maxUploadSpeedLimit, requestTimeout.
  9594. (setOption): Removed.
  9595. (getOption): Removed.
  9596. (setMaxUploadSpeedLimit): New function.
  9597. (setRequestTimeout): New function.
  9598. (setBtMessageFactory): New function.
  9599. * src/DefaultBtInteractive.h
  9600. (btMessageReceiver):
  9601. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9602. (dispatcher):
  9603. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9604. (btRequestFactory):
  9605. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9606. (peerConnection):
  9607. PeerConnectionHandle -> PeerConnectionWeakHandle
  9608. (messageFactory): New variable.
  9609. (option): Removed.
  9610. (keepAliveInterval): New variable.
  9611. (maxDownloadSpeedLimit): New variable.
  9612. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  9613. (setBtMessageReceiver):
  9614. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9615. (setDispatcher):
  9616. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9617. (setBtRequestFactory):
  9618. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9619. (setPeerConnection):
  9620. PeerConnectionHandle -> PeerConnectionWeakHandle
  9621. (setOption): Removed.
  9622. (setKeepAliveInterval): New function.
  9623. (setMaxDownloadSpeedLimit): New function.
  9624. (setBtMessageFactory): New function.
  9625. * src/BitfieldMan.h
  9626. (cachedNumMissingBlock): New variable.
  9627. (cachedNumFilteredBlock): New variable.
  9628. (cachedCompletedLength): New variable.
  9629. (cachedFilteredComletedLength): New variable.
  9630. (cachedFilteredTotalLength): New variable.
  9631. (countMissingBlockNow): New function.
  9632. (countFilteredBlockNow): New function.
  9633. (getFilteredTotalLengthNow): New function.
  9634. (getCompletedLengthNow): New function.
  9635. (getFilteredCompletedLengthNow): New function.
  9636. (updateCache): New function.
  9637. * src/AbstractBtMessage.h
  9638. (BtMessageDispatcher.h): New include.
  9639. (PeerConnection.h): New include.
  9640. (BtRequestFactory.h): New include
  9641. (BtMessageFactory.h): New include.
  9642. (dispatcher): New variable.
  9643. (messageFactory): New variable.
  9644. (peerConnection: New variable.
  9645. (setBtMessageDispatcher): New function.
  9646. (setPeerConnection): New function.
  9647. (setBtMessageFactory): New function.
  9648. (setBtRequestFactory): New function.
  9649. * src/DefaultBtMessageFactory.cc
  9650. (setCommonProperty): Set dispatcher, requestFactory, this,
  9651. peerConnection to msg.
  9652. * src/BtRegistry.h
  9653. (BT_MESSAGE_RECEIVER): New macro.
  9654. * src/PeerConnection.h
  9655. (PeerConnectionWeakHandle): New type definition.
  9656. * src/BtMessageFactory.h
  9657. (BtMessageFactoryWeakHandle): New type definition.
  9658. * src/BitfieldMan.cc
  9659. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  9660. cachedCompletedLength, cachedFilteredComletedLength,
  9661. cachedFilteredTotalLength.
  9662. Call updateCache().
  9663. (countMissingBlock): Return cachedNumMissingBlock.
  9664. (countMissingBlockNow): New function.
  9665. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  9666. (countFilteredBlockNow): New function.
  9667. (setBit): Call updateCache().
  9668. (unsetBit): Call updateCache().
  9669. (setBitfield): Call updateCache().
  9670. (clearAllBit): Call updateCache().
  9671. (setAllBit): Use setBitInternal instead of setBit.
  9672. Call updateCache().
  9673. (addFilter): Call updateCache().
  9674. (enableFilter): Call updateCache().
  9675. (disableFilter): Call updateCache().
  9676. (clearFilter): Call updateCache().
  9677. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  9678. (getFilteredTotalLengthNow): New function.
  9679. (getCompletedLength): Return cachedCompletedLength.
  9680. (getCompletedLengthNow): New function.
  9681. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  9682. (getFilteredCompletedLengthNow): New function.
  9683. (updateCache): New function.
  9684. * src/BtMessageReceiver.h
  9685. (BtMessageReceiverWeakHandle): New type definition.
  9686. * src/DefaultBtMessageReceiver.cc
  9687. (receiveHandshake): Use messageFactory member.
  9688. (sendHandshake): Use messageFactory member.
  9689. (receiveMessage): Use messageFactory member.
  9690. * src/DefaultBtMessageFactory.h
  9691. (dispatcher): New variable.
  9692. (requestFactory): New variable.
  9693. (peerConnection): New variablle.
  9694. (setBtMessageDispatcher): New function.
  9695. (setBtRequestFactory): New function.
  9696. (setPeerConnection): New function.
  9697. * src/SharedHandle.h
  9698. (RefCount): New class.
  9699. (WeakHandle): New class.
  9700. * src/PeerObject.h
  9701. (BtMessageReceiver.h): New include.
  9702. (PeerObject): Added btMessageReceiver.
  9703. (btMessageReceiver): New variable.
  9704. * src/Util.cc
  9705. (countBit): Simplified.
  9706. * src/BtCancelMessage.cc
  9707. (doReceivedAction): Use dispatcher member.
  9708. * src/BtRequestFactory.h
  9709. (BtRequestFactoryWeakHandle): New type definition.
  9710. * src/PeerStorage.h
  9711. (downloadSpeed): int -> uint32_t
  9712. (uploadSpeed): int -> uint32_t
  9713. (sessionDownloadLength): long long int -> uint64_t
  9714. (sessionUploadLength): long long int -> uint64_t
  9715. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9716. To add RecoverableException, FatalException:
  9717. * src/AbstractCommand.cc
  9718. (onAbort): Exception -> RecoverableException
  9719. * src/PeerAbstractCommand.h
  9720. (RecoverableException.h): New include.
  9721. (onAbort): Exception -> RecoverableException.
  9722. * src/PeerInteractionCommand.cc
  9723. (onAbort): Exception -> RecoverableException.
  9724. * src/PeerAbstractCommand.cc
  9725. (execute): Exception -> RecoverableException.
  9726. (onAbort): Exception -> RecoverableException.
  9727. * src/TorrentRequestInfo.cc
  9728. (execute): Exception -> RecoverableException.
  9729. * src/MetalinkRequestInfo.cc
  9730. (execute): Exception -> RecoverableException.
  9731. * src/MetaFileUtil.cc: RecoverableException.
  9732. * src/AbstractCommand.h
  9733. (onAbort): Exception -> RecoverableException.
  9734. * src/DlRetryEx.h: Exception -> RecoverableException.
  9735. * src/DlAbortEx.h: Exception -> RecoverableException.
  9736. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  9737. * src/Util.cc: Exception -> RecoverableException.
  9738. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  9739. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  9740. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  9741. To make ID static const int
  9742. * src/BtInterestedMessage.h
  9743. (ID_t): Removed.
  9744. (ID): New variable.
  9745. (getId): Made non-const.
  9746. * src/BtPieceMessage.h
  9747. (ID_t): Removed.
  9748. (ID): New variable.
  9749. (getId): Made non-const.
  9750. * src/BtChokeMessage.h
  9751. (ID_t): Removed.
  9752. (ID): New variable.
  9753. (getId): Made non-const.
  9754. * src/BtHaveAllMessage.h
  9755. (ID_t): Removed.
  9756. (ID): New variable.
  9757. (getId): Made non-const.
  9758. * src/BtKeepAliveMessage.h
  9759. (ID_t): Removed.
  9760. (ID): New variable.
  9761. (getId): Made non-const.
  9762. * src/BtHandshakeMessage.h
  9763. (ID): New variable.
  9764. (getId): Made non-const.
  9765. * src/BtSuggestPieceMessage.h
  9766. (ID_t): Removed.
  9767. (ID): New variable.
  9768. (getId): Made non-const.
  9769. * src/BtPortMessage.h
  9770. (ID_t): Removed.
  9771. (ID): New variable.
  9772. (getId): Made non-const.
  9773. * src/AbstractBtMessage.h
  9774. (id): Removed.
  9775. (AbstractBtMessage): Removed id.
  9776. (getId): Removed.
  9777. * src/BtHaveMessage.h
  9778. (ID_t): Removed.
  9779. (ID): New variable.
  9780. (getId): Made non-const.
  9781. * src/BtAllowedFastMessage.h
  9782. (ID_t): Removed.
  9783. (ID): New variable.
  9784. (getId): Made non-const.
  9785. * src/BtCancelMessage.h
  9786. (ID_t): Removed.
  9787. (ID): New variable.
  9788. (getId): Made non-const.
  9789. * src/BtNotInterestedMessage.h
  9790. (ID_t): Removed.
  9791. (ID): New variable.
  9792. (getId): Made non-const.
  9793. * src/BtChokeMessage.h
  9794. (ID_t): Removed.
  9795. (ID): New variable.
  9796. (getId): Made non-const.
  9797. * src/BtRejectMessage.h
  9798. (ID_t): Removed.
  9799. (ID): New variable.
  9800. (getId): Made non-const.
  9801. * src/BtBitfieldMessage.h
  9802. (ID_t): Removed.
  9803. (ID): New variable.
  9804. (getId): Made non-const.
  9805. * src/BtUnchokeMessage.h
  9806. (ID_t): Removed.
  9807. (ID): New variable.
  9808. (getId): Made non-const.
  9809. * src/BtRequestMessage.h
  9810. (ID_t): Removed.
  9811. (ID): New variable.
  9812. (getId): Made non-const.
  9813. * src/BtHaveMessage.h
  9814. (ID_t): Removed.
  9815. (ID): New variable.
  9816. (getId): Made non-const.
  9817. To add --force-truncate command-line option and a check whether
  9818. the file already exists:
  9819. * src/DirectDiskAdaptor.h
  9820. (getFilePath): Made virtual public.
  9821. * src/MultiDiskAdaptor.h
  9822. (File.h): New include.
  9823. (DiskWriterEntry::fileEntry): Made private.
  9824. (DiskWriterEntry::fileExists): New function.
  9825. (DiskWriterEntry::getFileEntry): New function.
  9826. (fileExists): New function.
  9827. (getFilePath): New function.
  9828. * src/TorrentRequestInfo.cc
  9829. (FatalException.h): New include.
  9830. (message.h): New include.
  9831. (RecoverableException.h): New include.
  9832. (execute): Added a check whether file is already exists or not.
  9833. * src/DiskAdaptor.h
  9834. (fileExists): New function.
  9835. (getFilePath): New function.
  9836. * src/main.cc
  9837. (showUsage): Added an explanation of --force-truncate command-line
  9838. option.
  9839. (main): Added --force-truncate command-line option.
  9840. * src/Exception.h
  9841. (setMsg): buf[256] -> buf[1024]
  9842. * src/CopyDiskWriter.h
  9843. (getFilePath): Made public virtual.
  9844. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  9845. (fileExists): New function.
  9846. * src/DownloadEngineFactory.cc
  9847. (newTorrentConsoleEngine): Don't open file here.
  9848. * src/message.h
  9849. (EX_FILE_ALREADY_EXISTS): New definition.
  9850. * src/prefs.h
  9851. (PREF_FOECE_TRUNCATE): New definition.
  9852. * src/HttpResponseCommand.cc
  9853. (handleDefaultEncoding): Added a check whether the file already exists.
  9854. * src/SegmentMan.h
  9855. (fileExists): New function.
  9856. (shouldCancelDownloadForSafety): New function.
  9857. * src/FtpNegotiateCommand.cc
  9858. (recvSize): Added a check whether the file already exists.
  9859. * src/AbstractSingleDiskAdaptor.cc
  9860. (File.h): New include.
  9861. (fileExists): New function.
  9862. * src/AbstractSingleDiskAdaptor.h
  9863. (getFilePath): Removed.
  9864. (fileExists): New function.
  9865. * src/SegmentMan.cc
  9866. (fileExists): New function.
  9867. (shouldCancelDownloadForSafety): New function.
  9868. To fix regression bug in torrent downloading:
  9869. * src/DefaultBtRequestFactory.cc
  9870. (doChokedAction): New function.
  9871. * src/DefaultBtRequestFactory.h
  9872. (doChokedAction): New function.
  9873. * src/DefaultBtMessageDispatcher.cc
  9874. (doChokedAction): Do not delete request if its target is in allowed
  9875. fast set.
  9876. * src/DefaultBtInteractive.cc
  9877. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  9878. (sendKeepAlive): Send keep alive message even if the outgoing message
  9879. queue is not empty.
  9880. (decideInterest): Simplified the code.
  9881. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  9882. it is already called when BtChokeMessage is received from a peer.
  9883. * src/BtRequestFactory.h
  9884. (doChokedAction): New function.
  9885. To clean up code:
  9886. * src/PeerInteractionCommand.h
  9887. (executeInternal): Added virtual keyword explicitly.
  9888. (prepareForRetry): Added virtual keyword explicitly.
  9889. (prepareForNextPeer): Added virtual keyword explicitly.
  9890. (onAbort): Added virtual keyword explicitly.
  9891. * src/RequestSlot.cc
  9892. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  9893. * src/BtPieceMessage.cc
  9894. (doReceivedAction): Added a debug log of piece's bitfield.
  9895. * src/Piece.h
  9896. (getBitfieldLength): New function.
  9897. * src/ByteArrayDiskWriter.cc
  9898. (clear): Added buf = 0 to avoid double free corruption.
  9899. * src/FileAllocator.cc
  9900. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  9901. Added cp.reset().
  9902. * src/BitfieldMan.h
  9903. (operator=): Rewritten.
  9904. * src/BitfieldMan.cc
  9905. (BitfieldMan): Initialized bitfield, useBitfield.
  9906. * src/PeerConnection.cc
  9907. (receiveMessage): Added a call to socket->readable() after getting
  9908. message length to avoid possible EOF.
  9909. * src/Util.cc
  9910. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  9911. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9912. To add an ability to pre-allocate file space:
  9913. * src/DirectDiskAdaptor.h: Rewritten.
  9914. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  9915. * src/MultiDiskAdaptor.h: Rewritten.
  9916. * src/DefaultPieceStorage.cc
  9917. (MultiDiskWriter.h): Removed include.
  9918. (PreAllocationDiskWriter.h): Removed include.
  9919. (FileAllocationMonitor.h): New include.
  9920. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  9921. (initStorage): Rewritten.
  9922. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9923. * src/FileAllocator.h: New class.
  9924. * src/FileAllocator.cc: New class.
  9925. * src/FileAllocationMonitor.h: New class.
  9926. * src/FileAllocationMonitor.cc: New class.
  9927. * src/ConsoleFileAllocationMonitor.h: New class.
  9928. * src/ConsoleFileAllocationMonitor.cc: New class.
  9929. * src/AbstractSingleDiskAdaptor.h: New class.
  9930. * src/AbstractSingleDiskAdaptor.cc: New class.
  9931. * src/DiskAdaptor.h
  9932. (Directory.h): Removed include.
  9933. (DiskWriter.h): Removed include.
  9934. (FileEntry.h): Removed include.
  9935. (diskWriter): Removed.
  9936. (DiskAdaptor): Removed diskWriter.
  9937. (openFile): Made pure virtual.
  9938. (closeFile): Made pure virtual.
  9939. (openExistingFile): Made pure virtual.
  9940. (initAndOpenFile): Made pure virtual.
  9941. (writeData): Made pure virtual.
  9942. (readData): Made pure virtual.
  9943. (sha1Sum): Made pure virtual.
  9944. (getStoreDir): Returns const reference of storeDir.
  9945. (DiskAdaptorHandle): New type definition.
  9946. * src/main.cc
  9947. (ConsoleFileAllocationMonitor.h): New include.
  9948. (showUsage): Added default value description of -s option.
  9949. Added the description of --file-allocation option.
  9950. (main): Set default value of --file-allocation option to 'none'.
  9951. Added --file-allocation command-line option.
  9952. Setup FileAllocationMonitorFactory.
  9953. * src/FtpInitiateConnectionCommand.cc
  9954. (executeInternal): Removed diskWriter related processing, which was
  9955. moved to FtpNegotiationCommand.cc.
  9956. * src/DirectDiskAdaptor.cc
  9957. (getFilePath): Made non-const.
  9958. * src/CopyDiskAdaptor.h
  9959. (DiskAdaptor.h): Removed include.
  9960. (DiskWriter.h): Removed include.
  9961. (AbstractSingleDiskAdaptor.h): New include.
  9962. (getFilePath): Made non-const. Added virtual keyword.
  9963. (CopyDiskAdaptor): Removed diskWriter.
  9964. (getTempFile): Returns const reference.
  9965. (CopyDiskAdaptorHandle): New type definition.
  9966. * src/ByteArrayDiskWriter.cc
  9967. (clear): Simplified.
  9968. (initAndOpenFile): Rewritten.
  9969. (openFile): Call initAndOpenFile()
  9970. * src/MultiDiskAdaptor.cc: Rewritten.
  9971. * src/DownloadEngineFactory.cc
  9972. (FileAllocator.h): New include.
  9973. (FileAllocationMonitor.h): New include.
  9974. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  9975. create DefaultDiskWriter with file allocator.
  9976. * src/DiskWriter.h
  9977. (initAndOpenFile): Added totalLength argument.
  9978. (openFile): Added totalLength argument.
  9979. * src/prefs.h
  9980. (PREF_FILE_ALLOCATION): New definition.
  9981. (V_PREALLOC): New definition.
  9982. (V_NONE): New definition.
  9983. * src/HttpResponseCommand.cc
  9984. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  9985. size.
  9986. * src/FtpNegotiateCommand.cc
  9987. (Util.h): New include.
  9988. (recvSize): Open file here.
  9989. * src/Util.h
  9990. (ullitos): New function.
  9991. * src/CopyDiskWriter.h
  9992. (getFilePath): Made non-const.
  9993. * src/DefaultDiskWriter.h
  9994. (Option.h): New include.
  9995. (totalLength): Removed.
  9996. (DefaultDiskWriter): Removed totalLength.
  9997. (initAndOpenFile): Added totalLength argument.
  9998. (DefaultDiskWriterHandle): New type definition.
  9999. (createNewDiskWriter): New function.
  10000. * src/Util.cc
  10001. (ullitos): New function.
  10002. * src/DefaultDiskWriter.cc
  10003. (message.h): New include.
  10004. (FileAllocator.h): New include.
  10005. (prefs.h): New include.
  10006. (Util.h): New include.
  10007. (DefaultDiskWriter): Removed totalLength.
  10008. (initAndOpenFile): Added file allocation.
  10009. (createNewDiskWriter): New function. Just for temporary solution.
  10010. It will be rewritten later.
  10011. * src/DiskAdaptor.cc
  10012. (DiskAdaptor): Removed diskWriter.
  10013. * src/AbstractDiskWriter.cc
  10014. (LogFactory.h): New include.
  10015. (AbstractDiskWriter): Added fileAllocator, logger.
  10016. (openFile): Added totalLength argument.
  10017. * src/AbstractDiskWriter.h
  10018. (FileAllocator.h): New include.
  10019. (Logger.h): New include.
  10020. (fileAllocator): New variable.
  10021. (logger): New variable.
  10022. (openFile): Added totalLength argument. Added virtual keyword
  10023. explicitly.
  10024. (openExistingFile): Added totalLength argument. Added virtual keyword
  10025. explicitly.
  10026. (closeFile): Added virtual keyword explicitly.
  10027. (sha1Sum): Added virtual keyword explicitly.
  10028. (writeData): Added virtual keyword explicitly.
  10029. (readData): Added virtual keyword explicitly.
  10030. (setFileAllocator): New function.
  10031. * src/DefaultPieceStorage.h
  10032. (FileAllocator.h): New include.
  10033. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10034. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10035. * src/FileProgressMonitor.h: New class.
  10036. To compile aria2 on PC-BSD:
  10037. * src/DefaultBtContext.cc
  10038. (libgen.h): New include.
  10039. To fix memory leak:
  10040. * src/Exception.h
  10041. (~Exception): Delete cause. Fixed memory leak.
  10042. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10043. Rewritten a portion of bittorrent implementation:
  10044. * src/BtMessageValidator.h: New class.
  10045. * src/BtBitfieldMessageValidator.h: New class.
  10046. * src/BtHandshakeMessageValidator.h: New class.
  10047. * src/BtRequestMessageValidator.h: New class.
  10048. * src/BtSuggestPieceMessageValidator.h: New class.
  10049. * src/BtAllowedFastMessageValidator.h: New class.
  10050. * src/BtRejectMessageValidator.h: New class.
  10051. * src/BtCancelMessageValidator.h: New class.
  10052. * src/BtPieceMessageValidator.h: New class.
  10053. * src/BtHaveMessageValidator.h: New class.
  10054. * src/BtEventListener.h: New class.
  10055. * src/AbstractBtEventListener.h: New class.
  10056. * src/BtEvent.h: New class.
  10057. * src/BtChokingEvent.h: New class.
  10058. * src/BtChokedEvent.h: New class.
  10059. * src/BtCancelSendingPieceEvent.h: New class.
  10060. * src/BtAbortOutstandingRequestEvent.h: New class.
  10061. * src/Randomizer.h: New class.
  10062. * src/SimpleRandomizer.h: New class.
  10063. * src/BtMessage.h: New class.
  10064. * src/AbstractBtMessage.h: New class.
  10065. * src/SimpleBtMessage.h: New class.
  10066. * src/BtHaveMessage.h: New class.
  10067. * src/BtInterestedMessage.h: New class.
  10068. * src/BtAllowedFastMessage.h: New class.
  10069. * src/BtUnchokeMessage.h: New class.
  10070. * src/BtCancelMessage.h: New class.
  10071. * src/BtNotInterestedMessage.h: New class.
  10072. * src/BtChokeMessage.h: New class.
  10073. * src/BtHaveNoneMessage.h: New class.
  10074. * src/BtHandshakeMessage.h: New class.
  10075. * src/BtSuggestPieceMessage.h: New class.
  10076. * src/BtHaveMessage.h: New class.
  10077. * src/BtPieceMessage.h: New class.
  10078. * src/BtHaveAllMessage.h: New class.
  10079. * src/BtKeepAliveMessage.h: New class.
  10080. * src/BtPortMessage.h: New class.
  10081. * src/BtRejectMessage.h: New class.
  10082. * src/BtBitfieldMessage.h: New class.
  10083. * src/BtRequestMessage.h: New class.
  10084. * src/DefaultBtRequestFactory.h: New class.
  10085. * src/DefaultBtMessageReceiver.h: New class.
  10086. * src/BtInteractive.h: New class.
  10087. * src/BtMessageDispatcher.h: New class.
  10088. * src/DefaultBtMessageDispatcher.h: New class.
  10089. * src/DefaultBtInteractive.h: New class.
  10090. * src/BitfieldManFactory.h: New class.
  10091. * src/HandleRegistry.h: New class.
  10092. * src/BtMessageFactory.h: New class.
  10093. * src/BtMessageReceiver.h: New class.
  10094. * src/DefaultBtMessageFactory.h: New class.
  10095. * src/PeerObject.h: New class.
  10096. * src/BtRequestFactory.h: New class.
  10097. * src/SuggestPieceMessage.h: Removed.
  10098. * src/PortMessage.h: Removed.
  10099. * src/SuggestPieceMessage.h: Removed.
  10100. * src/KeepAliveMessage.h: Removed.
  10101. * src/HandshakeMessage.h: Removed.
  10102. * src/PeerInteraction.h: Removed.
  10103. * src/UnchokeMessage.h: Removed.
  10104. * src/PieceMessage.h: Removed.
  10105. * src/RequestMessage.h: Removed.
  10106. * src/InterestedMessage.h: Removed.
  10107. * src/HaveMessage.h: Removed.
  10108. * src/CancelMessage.h: Removed.
  10109. * src/RejectMessage.h: Removed.
  10110. * src/AllowedFastMessage.h: Removed.
  10111. * src/HaveNoneMessage.h: Removed.
  10112. * src/SimplePeerMessage.h: Removed.
  10113. * src/HaveAllMessage.h: Removed.
  10114. * src/BitfieldMessage.h: Removed.
  10115. * src/PeerMessageFactory.h: Removed.
  10116. * src/NotInterestedMessage.h: Removed.
  10117. * src/ChokeMessage.h: Removed.
  10118. * src/PeerMessage.h: Removed.
  10119. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10120. To know root cause of exception:
  10121. * src/Exception.h
  10122. (cause): New variable.
  10123. (Exception): Added a parameter.
  10124. (getMsg): Return const reference to msg.
  10125. (getCause): New function.
  10126. * src/DlRetryEx.h
  10127. (DlRetryEx): Added a parameter 'cause'.
  10128. Added an overloaded constructor.
  10129. (DlAbortEx): Added a parameter 'cause'.
  10130. Added an overloaded constructor.
  10131. * src/SimpleLogger.cc
  10132. (writeLog): Log nested exception messages recursively.
  10133. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10134. * src/DefaultBtProgressInfoFile.cc
  10135. (load): Fixed memory leak when the infohash doesn't match.
  10136. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10137. * src/DefaultPeerStorage.cc
  10138. (calculateStat): Simplified the code by combining 2 loops into 1.
  10139. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10140. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  10141. for BitTorrent download:
  10142. * src/PeerAbstractCommand.cc
  10143. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  10144. * src/main.cc:
  10145. (timeoutSpecified): Removed.
  10146. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  10147. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  10148. * src/TorrentRequestInfo.cc
  10149. (timeoutSpecified): Removed.
  10150. (torrentHandler): Removed timeoutSpecified and the adjustment of
  10151. timeout value.
  10152. * src/prefs.h
  10153. (PREF_BT_TIMEOUT): New definition.
  10154. Delete unused variables:
  10155. * src/TorrentRequestInfo.cc
  10156. (requestInfo): Removed.
  10157. Move setSignalHander to Util::setGlobalSignalHandler:
  10158. * src/TorrentRequestInfo.cc:
  10159. setSignalHander -> Util::setGlobalSignalHandler
  10160. * src/main.cc
  10161. (setSignalHander): Removed.
  10162. (main): setSignalHander -> Util::setGlobalSignalHandler
  10163. * src/Util.h
  10164. (setGlobalSignalHandler): New function.
  10165. * src/Util.cc
  10166. (setGlobalSignalHandler): New function.
  10167. * src/UrlRequestInfo.cc:
  10168. setSignalHander -> Util::setGlobalSignalHandler
  10169. Reset peer status in order to exit gracefully:
  10170. * src/PeerAbstractCommand.cc
  10171. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  10172. To fix the bug that causes the number of bytes uploaded is not saved
  10173. to .aria2 file:
  10174. * src/DefaultPeerStorage.h
  10175. (removedPeerSessionDownloadLength): New variable.
  10176. (removedPeerSessionUploadLength): New variable.
  10177. * src/DefaultPeerStorage.cc
  10178. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  10179. removedPeerSessionUploadLength(0).
  10180. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  10181. through all peers, and then add removedPeerSessionDownloadLength(
  10182. removedPeerSessionUploadLength) to it.
  10183. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  10184. (to) the peer to removedPeerSessionDownloadLength
  10185. (removedPeerSessionUploadLength).
  10186. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10187. To add Metalink location option:
  10188. * src/MetalinkRequestInfo.cc
  10189. (execute): Call MetalinkEntry::setLocationPreference()
  10190. * src/main.cc
  10191. (showUsage): Added the help message for --metalink-location option.
  10192. (main): Added --metalink-location option.
  10193. * src/prefs.h
  10194. (PREF_METALINK_LOCATION): New definition.
  10195. * src/MetalinkEntry.cc
  10196. (AddLocationPreference): New function object.
  10197. (setLocationPreference): New function.
  10198. * src/Xml2MetalinkProcessor.cc
  10199. (getResource): Set location attribute to MetalinkResource
  10200. To show URLs to download
  10201. * src/UrlRequestInfo.h
  10202. (printUrls): New function.
  10203. To add multiple <file> Metalink support:
  10204. * src/MetalinkEntry.h
  10205. (MetalinkResources): Removed.
  10206. (setLocationPreference): New function.
  10207. (MetalinkEntryHandle): New type definition.
  10208. (MetalinkEntries): New type definition.
  10209. * src/Xml2MetalinkProcessor.h
  10210. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10211. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10212. (parseFile): Metalinker* -> MetalinkerHandle
  10213. * src/UrlRequestInfo.h
  10214. (execute): RequestInfo* -> RequestInfos
  10215. * src/MetalinkRequestInfo.cc
  10216. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  10217. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  10218. (execute): RequestInfo* -> RequestInfos
  10219. Added multiple <file> support. Print filename when it is queued.
  10220. * src/MetalinkRequestInfo.h
  10221. (execute): RequestInfo* -> RequestInfos
  10222. (getDownloadEngine): Removed.
  10223. * src/RequestInfo.h
  10224. (RequestInfoHandle): New type definition.
  10225. (RequestInfos): New type definition.
  10226. (execute): RequestInfo* -> RequestInfos
  10227. (getDownloadEngine): Removed.
  10228. * src/MetalinkResource.h
  10229. (MetalinkResourceHandle): New type definition.
  10230. (MetalinkResources): New type definition.
  10231. * src/MetalinkEntry.cc
  10232. (~MetalinkEntry): Removed the deletion of the elements of resources,
  10233. because the element is now of type MetalinkResourceHandle.
  10234. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  10235. (Supported): MetalinkResource* -> MetalinkResourceHandle
  10236. (dropUnsupportedResource): Removed the deletion of the elements of
  10237. resources because the element is now of type MetalinkResourceHandle.
  10238. * src/Xml2MetalinkProcessor.cc
  10239. (parseFile): Metalinker* -> MetalinkerHandle
  10240. MetalinkEntry* -> MetalinkEntryHandle
  10241. Removed try-catch block.
  10242. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10243. MetalinkResource* -> MetalinkResourceHandle
  10244. Removed try-catch block.
  10245. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10246. Free result by using xmlXPathFreeObject()
  10247. * src/Metalinker.cc
  10248. (~Metalinker): Removed the deletion of entries.
  10249. MetalinkEntry* -> MetalinkEntryHandle
  10250. (queryEntry): Add multiple <file> Metalink support.
  10251. * src/Metalinker.h
  10252. (MetalinkEntries): Removed.
  10253. (queryEntry): MetalinkEntry* -> MetalinkEntries
  10254. * src/MetalinkProcessor.h
  10255. (parseFile): Metalinker* -> MetalinkerHandle
  10256. Bug fixes:
  10257. * src/PeerChokeCommand.cc
  10258. (execute): cat01->cat02
  10259. * src/DefaultPieceStorage.cc
  10260. (DefaultPieceStorage): Added diskAdaptor(0)
  10261. * src/TrackerWatcherComand.cc:
  10262. (execute): Use btAnnounce->noMoreAnnounce()
  10263. to determin whether the function returns true or not.
  10264. * src/TrackerUpdateCommand.cc:
  10265. (execute): Use btAnnounce->noMoreAnnounce()
  10266. to determin whether the function returns true or not.
  10267. * src/FtpConnection.cc
  10268. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  10269. This is the fix of the busy loop bug.
  10270. * src/DownloadCommand.cc
  10271. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  10272. cached PeerStat.
  10273. The value of "name" entry in torrent file is now set by
  10274. *DiskAdaptor::setTopDir(...) methods.
  10275. * src/MultiDiskAdaptor.h
  10276. (topDir): New variable.
  10277. (setTopDir): New function.
  10278. (getTopDir): New function.
  10279. * src/MultiDiskAdaptor.cc
  10280. (getFilePath): Concat storDir, "/" and topDir.
  10281. (mkdir): Use getFilePath() to get the directory path for output.
  10282. * src/DefaultPieceStorage.cc
  10283. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  10284. CopyDiskAdaptor.
  10285. * src/CopyDiskAdaptor.h
  10286. (topDir): New variable.
  10287. (setTopDir): New function.
  10288. (getTopDir): New function.
  10289. * src/CopyDiskAdaptor.cc
  10290. (fixFilename): Updated.
  10291. Misc
  10292. * src/UrlRequestInfo.h
  10293. (e): Removed.
  10294. (UrlRequestInfo): Removed e.
  10295. (getDownloadEngine): Removed.
  10296. * src/UrlRequestInfo.cc
  10297. (handler): Rewritten.
  10298. (printUrls): New function.
  10299. (execute): Call printUrls().
  10300. * src/HandshakeMessage.cc
  10301. (check): peerinteraction->getBtContext() -> btContext
  10302. * src/PeerInteraction.h
  10303. (getBtContext): Removed.
  10304. * src/TorrentRequestInfo.h
  10305. (execute): RequestInfo* -> RequestInfos
  10306. (getDownloadEngine): Removed.
  10307. * src/TorrentRequestInfo.cc
  10308. (haltRequested): Removed.
  10309. (btHaltRequested): New variable.
  10310. (torrentHandler): haltRequested -> btHaltRequested
  10311. (execute): RequestInfo* -> RequestInfos
  10312. * src/TorrentConsoleDownloadEngine.cc
  10313. (afterEachIteration): haltRequested -> btHaltRequested.
  10314. * src/ConsoleDownloadEngine.h
  10315. (initStatistics): Added virtual.
  10316. (calculateStatistics): Added virtual.
  10317. (onEndOfRun): Added virtual.
  10318. (afterEachIteration): Added virtual.
  10319. * src/ConsoleDownloadEngine.cc
  10320. (haltRequested): New variable.
  10321. (afterEachIteration): New function.
  10322. * src/main.cc
  10323. (requestInfo): Removed.
  10324. * src/SegmentMan.cc
  10325. (findSlowerSegmentEntry): Refactored.
  10326. * Release 0.9.0
  10327. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10328. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  10329. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  10330. * src/TorrentMan.h: Removed.
  10331. * src/TorrentMan.cc: Removed.
  10332. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  10333. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  10334. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  10335. * src/PeerAbstractCommand.cc: Use btRuntime.
  10336. * src/BtContextAwareCommand.h: New class.
  10337. * src/FileEntry.h: Added accessor methods for following variables.
  10338. (path): Made private.
  10339. (length): Made private.
  10340. (offset): Made private.
  10341. (extracted): Made private.
  10342. (requested): Made private.
  10343. (FileEntries): New definition.
  10344. (FileEntryHandle): New definition.
  10345. * src/FileEntry.cc: New file.
  10346. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  10347. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  10348. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  10349. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  10350. * src/PieceStorage.h: New file.
  10351. * src/PeerInteractionCommand.h: Use btContext.
  10352. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  10353. btRuntime.
  10354. * src/DefaultBtProgressInfoFile.h: New file.
  10355. * src/DefaultBtProgressInfoFile.cc: New file.
  10356. * src/File.cc
  10357. (Util.h): New include.
  10358. (mkdirs): New function.
  10359. * src/MultiDiskAdaptor.h
  10360. (mkdir): New function.
  10361. * src/PeerListProcessor.h
  10362. (Peers): Removed.
  10363. * src/PeerInteraction.h
  10364. (torrentMan): Removed.
  10365. (btContext): New variable.
  10366. (peerStorage): New variable.
  10367. (pieceStorage): New variable.
  10368. (btAnnounce): New variable.
  10369. (getTorrentMan): Removed.
  10370. (getBtContext): New function.
  10371. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  10372. btAnnounce.
  10373. * src/HandshakeMessage.h
  10374. (TorrentMan.h): Removed.
  10375. * src/HandshakeMessage.cc: Use btContext.
  10376. * src/DefaultBtAnnounce.cc: New file.
  10377. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  10378. * src/DefaultPieceStorage.cc: New file.
  10379. * src/DefaultBtContext.h: New file.
  10380. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  10381. Use the accessor methods of FileEntry.
  10382. * src/CookieBox.cc: Updated to use Util::slice().
  10383. * src/PieceMessage.cc: Use btContext, pieceStorage.
  10384. * src/common.h (SharedHandle.h): New include.
  10385. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  10386. pieceStorage.
  10387. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  10388. * src/DiskAdaptor.h
  10389. (topDir): Removed.
  10390. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  10391. (setTopDir): Removed.
  10392. (getTopDir): Removed.
  10393. * src/BtContext.h: New file.
  10394. * src/DefaultPeerStorage.h: New file.
  10395. * src/PieceMessage.h (TorrentMan.h): Removed.
  10396. * src/RequestMessage.h (TorrentMan.h): Removed.
  10397. * src/TorrentDownloadEngine.h
  10398. (uploadLength): New variable.
  10399. (btContext): New variable.
  10400. (btRuntime): New variable.
  10401. (pieceStorage): New variable.
  10402. (peerStorage): New variable.
  10403. (btAnnounce): New variable.
  10404. (btProgressInfoFile): New variable.
  10405. (torrentMan): Removed.
  10406. (setBtContext): New function.
  10407. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  10408. peerStorage, btAnnounce, btProgressInfoFile.
  10409. * src/Piece.h
  10410. (toString): New function.
  10411. (Pieces): New type definition.
  10412. * src/Peer.h
  10413. (active): New variable.
  10414. (Peer): Added active.
  10415. (activate): Set active to true.
  10416. (deactivate): Set active to false.
  10417. (isActive): New function.
  10418. (Peers): New type definition.
  10419. * src/DirectDiskAdaptor.cc
  10420. (getFilePath): Use the accessor methods of FileEntry.
  10421. * src/TorrentConsoleDownloadEngine.h
  10422. (afterEachIteration): New function.
  10423. * src/TorrentConsoleDownloadEngine.cc
  10424. (haltRequested): New variable.
  10425. (sendStatistics): Use pieceStorage, btRuntime.
  10426. (afterEachIteration): New function.
  10427. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  10428. * src/Directry.h
  10429. (Directory): New function.
  10430. (DirectoryHandle): New type definition.
  10431. * src/BtProgressInfoFile.h: New file.
  10432. * src/RequestMessage.cc: Use pieceStorage.
  10433. * src/BtRuntime.h: New file.
  10434. * src/DefaultBtContext.cc: New file.
  10435. * src/BitfieldMan.h
  10436. (getCompletedLength): New function(private).
  10437. (getCompletedLength): New function.
  10438. (getFilteredCompletedLength): New function.
  10439. * src/BitfieldMan.h
  10440. (getCompletedLength): New function(private).
  10441. (getCompletedLength): New function.
  10442. (getFilteredCompletedLength): New function.
  10443. * src/MultiDiskAdaptor.cc
  10444. (mkdir): New function.
  10445. (openFile): Call mkdir().
  10446. (initAndOpenFile): Call mkdir().
  10447. * src/CancelMessage.h
  10448. (TorrentMan.h): Removed.
  10449. * src/RejectMessage.h
  10450. (TorrentMan.h): Removed.
  10451. * src/DownloadEngineFactory.cc
  10452. (DefaultPieceStorage.h): New include.
  10453. (DefaultPeerStorage.h): New include.
  10454. (DefaultBtAnnounce.h): New include.
  10455. (DefaultBtProgressInfoFile.h): New include.
  10456. (newTorrentConsoleEngine): Rewritten.
  10457. * src/ShareRatioSeedCriteria.h
  10458. (torrentMan): Removed.
  10459. (btContext): New variable.
  10460. (peerStorage): New variable.
  10461. (btRuntime): New variable.
  10462. (evaluate): Use btContext, btRuntime, peerStorage.
  10463. * src/AnnounceTier.h: New file.
  10464. * src/BtAnnounce.h: New file.
  10465. * src/BtRegistry.h: New file.
  10466. * src/PeerInitiateConnectionCommand.h: Added btContext.
  10467. * src/PeerConnection.h (TorrentMan.h): Removed.
  10468. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  10469. * src/Util.h
  10470. (slice): Added an argument.
  10471. * src/Util.cc
  10472. (slice): Added an argument to control whether trim is made or not.
  10473. * src/PeerStorage.h: New file.
  10474. * src/BtRegistry.cc: New file.
  10475. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  10476. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  10477. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  10478. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  10479. * src/TorrentRequestInfo.h
  10480. (e): Removed.
  10481. (showFileEntry): Added an argument.
  10482. (getDownloadEngine): Return 0.
  10483. * src/DefaultBtAnnounce.h: New file.
  10484. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  10485. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  10486. * src/PeerMessageFactory.h
  10487. (btContext): New variable.
  10488. (pieceStorage): New variable.
  10489. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  10490. btAnnounce.
  10491. * src/DiskAdaptor.cc
  10492. (DiskAdaptor): Removed topDir.
  10493. (~DiskAdaptor): Removed topDir.
  10494. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  10495. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  10496. * src/File.h (mkdirs): New function.
  10497. * src/DefaultPeerStorage): New file.
  10498. * src/DownloadEngineFactory.h
  10499. (newTorrentConsoleEngine): Use btContext.
  10500. * src/BtContextAwareCommand.cc: New file.
  10501. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  10502. * src/PeerMessage.h
  10503. (btContext): New variable.
  10504. (peerStorage): New variable.
  10505. (pieceStorage): New variable.
  10506. (setBtContext): New function.
  10507. * src/Directry.cc
  10508. (Directory): New function.
  10509. (createDir): Do nothing if name.size() == 0.
  10510. * src/AnnounceList.h
  10511. (AnnounceTier): Removed.
  10512. (AnnounceTiers): Removed.
  10513. * src/DefaultPieceStorage.h: New file.
  10514. * src/Piece.cc (toString): New function.
  10515. To fix typo:
  10516. * src/main.cc (showVersion): Fixed typo.
  10517. To fix compile warning:
  10518. * src/DelegatingPeerListProcessor.cc
  10519. (canHandle): Added "return false".
  10520. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10521. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  10522. make the process of announce request testable.
  10523. * src/TrackerWatcherCommand.h
  10524. (TimeA2.h): Removed.
  10525. (interval): Removed.
  10526. (checkPoint): Removed.
  10527. (createRequestCommand): Added an argument 'url'.
  10528. (TrackerWatherCommand): Removed interval.
  10529. (createCommand): New function.
  10530. * src/DownloadEngineFactory.cc
  10531. (newTorrentConsoleEngine): Updated according to the changes in
  10532. TrackerWatherCommand.
  10533. * src/TorrentMan.cc
  10534. (DelegatingPeerListProcessor.h): New includes.
  10535. (TorrentMan): Added the initialization of announceInterval.
  10536. (isStoppedAnnounceReady): New function.
  10537. (isCompletedAnnounceReady): New function.
  10538. (isDefaultAnnounceReady): New function.
  10539. (isAnnounceReady): New function.
  10540. (getAnnounceUrl): New function.
  10541. (announceStart): New function.
  10542. (announceFailure): New function.
  10543. (announceSuccess): New function.
  10544. (isAllAnnounceFailed): New function.
  10545. (resetAnnounce): New function.
  10546. (processAnnounceResponse): New function.
  10547. (needMorePeerConnection): New function.
  10548. (noMoreAnnounce): New function.
  10549. * src/TrackerUpdateCommand.h
  10550. (getTrackerResponse): int->size_t
  10551. * src/TorrentMan.h
  10552. (isStoppedAnnounceReady): New function.
  10553. (isCompletedAnnounceReady): New function.
  10554. (isDefaultAnnounceReady): New function.
  10555. (announceInterval): New variable.
  10556. (isAnnounceReady): New function.
  10557. (getAnnounceUrl): New function.
  10558. (announceStart): New function.
  10559. (announceFailure): New function.
  10560. (announceSuccess): New function.
  10561. (isAllAnnounceFailed): New function.
  10562. (resetAnnounce): New function.
  10563. (processAnnounceResponse): New function.
  10564. (needMorePeerConnection): New function.
  10565. (noMoreAnnounce): New function.
  10566. * src/TrackerWatcherCommand.cc
  10567. (TrackerWatherCommand): Removed interval and checkPoint.
  10568. (execute): Rewritten.
  10569. (createCommand): New function.
  10570. (createRequestCommand): Rewritten.
  10571. * src/TrackerUpdateCommand.cc
  10572. (MetaFileUtil.h): Removed.
  10573. (DelegatingPeerListProcessor.h): Removed.
  10574. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  10575. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10576. Request -> RequestHandle:
  10577. * src/HttpResponseCommand.h: Request->RequestHandle
  10578. * src/AbstractCommand.cc: Request->RequestHandle
  10579. * src/HttpDownloadCommand.cc: Request->RequestHandle
  10580. * src/HttpRequestCommand.cc: Request->RequestHandle
  10581. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  10582. * src/AbstractCommand.h: Request->RequestHandle
  10583. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  10584. * src/HttpResponseCommand.cc: Request->RequestHandle
  10585. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  10586. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  10587. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  10588. * src/HttpConnection.h: Request->RequestHandle
  10589. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  10590. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  10591. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10592. * src/DownloadCommand.h: Request->RequestHandle
  10593. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  10594. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  10595. * src/HttpRequestCommand.h: Request->RequestHandle
  10596. * src/FtpNegotiateCommand.h: Request->RequestHandle
  10597. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10598. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  10599. * src/HttpDownloadCommand.h: Request->RequestHandle
  10600. * src/FtpConnection.cc: Request->RequestHandle
  10601. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  10602. * src/UrlRequestInfo.cc: Request->RequestHandle
  10603. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  10604. * src/HttpConnection.h: Request->RequestHandle
  10605. * src/DownloadCommand.cc: Request->RequestHandle
  10606. * src/FtpConnection.h: Request->RequestHandle
  10607. * src/FtpDowndloadCommand.h: Request->RequestHandle
  10608. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  10609. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  10610. * src/Request.h
  10611. (SharedHandle.h): New include.
  10612. (RequestHandle): New type definition.
  10613. (Requests): Redefined.
  10614. To add MULTITRACKER support:
  10615. * src/TrackerWatcherCommand.h
  10616. (createRequestCommand): New function.
  10617. * src/DownloadEngineFactory.cc
  10618. (newTorrentConsoleEngine): Removed req.
  10619. * src/prefs.h
  10620. (PREF_TRACKER_MAX_TRIES): New definition.
  10621. * src/TorrentMan.cc
  10622. (TorrentMan): Removed req. Added trackerNumTry.
  10623. (~TorrentMan): Removed req.
  10624. (setupInternal1): Added announceList.
  10625. * src/TorrentRequestInfo.cc
  10626. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  10627. announces is now specified by PREF_TRACKER_MAX_TRIES.
  10628. * src/main.cc
  10629. (main): Added PREF_TRACKER_MAX_TRIES.
  10630. * src/TorrentMan.h
  10631. (Request.h): Removed.
  10632. (AnnounceList.h): New include.
  10633. (trackerNumTry): New variable.
  10634. (req): Removed.
  10635. (announceList): New variable.
  10636. * src/TrackerWatcherCommand.cc
  10637. (execute): Rewritten.
  10638. (createRequestCommand): New function.
  10639. * src/TrackerUpdateCommand.cc
  10640. (execute): Updated with the use of AnnounceList.
  10641. * src/AnnounceList.cc: New class.
  10642. * src/AnnounceList.h: New class.
  10643. To fix typo:
  10644. * src/prefs.h
  10645. (PREF_MAX_TRIES): max_try->max_tries
  10646. To not to decode "+" as space in URL decode:
  10647. * src/Util.cc
  10648. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  10649. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10650. To add timeout to async name resolution:
  10651. * src/AbstractCommand.h
  10652. (nameResolveFinished): New function. This is not elegant way. It needs
  10653. to be more refined.
  10654. (nameResolverCheck): New variable.
  10655. * src/AbstractCommand.cc
  10656. (AbstractCommand): Added nameResolverCheck.
  10657. (execute): Added the check whether the name resolution has finished.
  10658. (setNameResolverCheck): Set nameResolverCheck to true.
  10659. (disableNameResolverCheck): Set nameResolverCheck to false.
  10660. (nameResolverFinished): New function.
  10661. * src/FtpInitiateConnectionCommand.h
  10662. (nameResolverFinished): New function.
  10663. * src/FtpInitiateConnectionCommand.cc
  10664. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10665. * src/HttpInitiateConnectionCommand.h
  10666. (nameResolverFinished): New function.
  10667. * src/HttpInitiateConnectionCommand.cc
  10668. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10669. * src/prefs.h
  10670. (PREF_DNS_TIMEOUT): New definition.
  10671. * src/main.cc
  10672. (main): Added PREF_DNS_TIMEOUT.
  10673. To add the support for a non-compact response from a tracker:
  10674. * src/PeerListProcessor.h: New class.
  10675. * src/DefaultPeerListProcessor.h: New class.
  10676. * src/DefaultPeerListProcessor.cc: New class.
  10677. * src/CompactPeerListProcessor.h: New class.
  10678. * src/CompactPeerListProcessor.cc: New class.
  10679. * src/DelegatingPeerListProcessor.h: New class.
  10680. * src/DelegatingPeerListProcessor.cc: New class.
  10681. * src/TorrentMan.cc
  10682. (addPeer): New function(overload).
  10683. (addPeer): Delete unused peers only when new peer is added.
  10684. * src/TorrentMan.h
  10685. (PeerListProcessor.h): Included.
  10686. (Peers): Removed.
  10687. (addPeer): New function(overload).
  10688. * src/TrackerUpdateCommand.cc
  10689. (netinet/in.h): Removed.
  10690. (DelegatingPeerListProcessor.h): Included.
  10691. (execute): Updated to use DelegatingPeerListProcessor.
  10692. To fix the memory leak in TorrentMan::peers:
  10693. * src/PeerAbstractCommand.cc
  10694. (onAbort): Added peer->resetStatus().
  10695. * src/Peer.h
  10696. (resetStatus): Made public.
  10697. To improve the precision of the speed calculation:
  10698. * src/SpeedCalc.h
  10699. (nextInterval): New variable.
  10700. * src/SpeedCalc.cc
  10701. (reset): Added nextInterval.
  10702. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  10703. (changeSw): Set nextInterval to 15 seconds relative to the current
  10704. instant time.
  10705. * src/main.cc
  10706. (showVersion): Updated.
  10707. (showUsage): Updated.
  10708. * Release 0.8.1
  10709. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10710. * src/main.cc
  10711. (showUsage): Commented out --min-segment-size option.
  10712. (main): Commented out --min-segment-size option.
  10713. * Release 0.8.0
  10714. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10715. * src/*.{h,cc}:
  10716. Added an exception to the license which allows linking with OpenSSL.
  10717. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10718. * src/AbstractCommand.cc
  10719. (execute): Check whether the download has finished before checking
  10720. socket status.
  10721. Return true if peerStat->getStatus() == REQUEST_IDLE.
  10722. Do not exit even if no segment is available.
  10723. * src/prefs.h
  10724. (PREF_STARTUP_IDLE_TIME): New definition.
  10725. * src/PeerInteractionCommand.cc
  10726. (executeInternal): Removed max speed limit. Because it performs bad.
  10727. (receiveMessages): Added max speed limit. This was better than above,
  10728. but still a little bit to be desired. Sometimes the download speed
  10729. became much faster than I specified.
  10730. * src/SpeedCalc.h
  10731. (start): New variable.
  10732. (accumulatedLength): New variable.
  10733. (getAvgSpeed): New function.
  10734. * src/SpeedCalc.cc
  10735. (reset): Added start, accumulatedLength.
  10736. (update): Added calculation of an average speed.
  10737. (getAvgSpeed): New function.
  10738. * src/DownloadCommand.h
  10739. (sw): Removed.
  10740. * src/main.cc
  10741. (main): Added PREF_STARTUP_IDLE_TIME.
  10742. * src/PeerStat.h
  10743. (STATUS): Added REQUEST_IDLE.
  10744. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  10745. (getAvgDownloadSpeed): New function
  10746. (requestIdle): New function.
  10747. * src/SegmentMan.h
  10748. (SegmentEntryHandle): New type definition.
  10749. (SegmentEntries): Now holds SegmentEntryHandle.
  10750. (findSlowerSegmentEntry): New funtion.
  10751. * src/SegmentMan.cc
  10752. (save): Updated according to the changes in SegmentEntries.
  10753. (read): Updated according to the changes in SegmentEntries.
  10754. (FindSegmentEntryByIndex): Updated according to the changes in
  10755. SegmentEntries.
  10756. (FindSegmentEntryByCuid): Updated according to the changes in
  10757. SegmentEntries.
  10758. (checkoutSegment): Updated according to the changes in SegmentEntries.
  10759. (onNullBitfield): Updated according to the changes in SegmentEntries.
  10760. Renamed uitr as itr.
  10761. (findSlowerSegmentEntry): New function.
  10762. (getSegment): Updated according to the changes in SegmentEntries.
  10763. Added the feature that cancels the segment with slow server and fast
  10764. one takes it over.
  10765. (cancelSegment): Updated according to the changes in SegmentEntries.
  10766. (getDownloadLength): Updated according to the changes in
  10767. SegmentEntries.
  10768. (init): Assigned 0 to bitfield after deleting it.
  10769. * src/DownloadCommand.cc
  10770. (STARTUP_IDLE_TIME): Removed.
  10771. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  10772. * src/PeerChokeCommand.cc
  10773. (optUnchokingPeer): Updated according to the changes in Peer.
  10774. (ResetDelta): Removed.
  10775. (UploadFaster): Updated according to the changes in Peer.
  10776. (DownloadFaster): Updated according to the changes in Peer.
  10777. (execute): I clarify the meaning of "upload" and "download" here.
  10778. "upload" means the transfer from localhost to remote host.
  10779. "download" means the transfer from remote host to localhost.
  10780. Based on this rule, I swapped orderByUploadRate and
  10781. orderByDownloadRate.
  10782. * src/PeerInteractionCommand.cc
  10783. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  10784. (executeInternal): Removed the argument of
  10785. peerInteraction->sendMessages().
  10786. (receiveMessages): Rewritten download speed limit.
  10787. (sendKeepAlive): Removed peerInteraction->sendMessages().
  10788. * src/HttpResponseCommand.cc
  10789. (handleDefaultEncoding): If file size is unknown in torrent request,
  10790. do not call segmentMan->initBitfield() here.
  10791. Disabled persistent connection feature in torrent request.
  10792. * src/UrlRequestInfo.h
  10793. (UrlRequestInfo): Removed const qualifier from option.
  10794. * src/TorrentMan.h
  10795. (TransferStat): New class.
  10796. (deltaDownloadLength): Removed.
  10797. (deltaUploadLength): Removed.
  10798. (addDeltaDownloadLength): Removed.
  10799. (getDeltaDownloadLength): Removed.
  10800. (resetDeltaDownloadLength): Removed.
  10801. (addDeltaUploadLength): Removed.
  10802. (getDeltaUploadLength): Removed.
  10803. (resetDeltaUploadLength): Removed.
  10804. (addActivePeer): Added peer->activate().
  10805. (deleteActivePeer): Added peer->deactivate().
  10806. (calculateStat): New function.
  10807. * src/TorrentMan.cc
  10808. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  10809. (calculateStat): New function.
  10810. * src/PeerInteraction.h
  10811. (uploadLimit): Removed.
  10812. (option): New variable.
  10813. (setUploadLimit): Removed.
  10814. (getUploadSpeed): Removed.
  10815. (sendMessages): Removed the argument "currentUploadSpeed".
  10816. * src/PeerInteraction.cc
  10817. (prefs.h): Included.
  10818. (PeerInteraction): Removed uploadLimit. Added option.
  10819. (sendMessages): Rewritten upload speed limit.
  10820. (sendHandshake): Removed the argument from sendMessages().
  10821. (sendBitfield): Removed the argument from sendMessages().
  10822. * src/PeerAbstractCommand.cc
  10823. (execute): Commented out the portion of upload limit.
  10824. (onAbort): Removed peer->resetStatus().
  10825. * src/TorrentRequestInfo.cc
  10826. (timeoutSpecified): Declared extern.
  10827. (execute): Set timeout to 180 if timeout is not specified by.
  10828. command-line.
  10829. * src/PieceMessage.cc
  10830. (receivedAction): Added peer->updateDownloadLength().
  10831. Removed peer->addPeerUpload().
  10832. Removed torrentMan->addDeltaDownloadLength().
  10833. (send): Added peer->updateUploadLength().
  10834. Removed peer->addPeerDownload().
  10835. Removed torrentMan->addDeltaUploadLength().
  10836. * src/main.cc
  10837. (timeoutSpecified): New variable.
  10838. (main): Set timeoutSpecified to false.
  10839. If the command-line option "--upload-limit" is specified, then
  10840. timeoutSpecified is set to true. This option will remain in the next
  10841. release, but be deprecated in the future release.
  10842. * src/TorrentRequestInfo.h
  10843. (TorrentRequestInfo): Removed const qualifier from op.
  10844. * src/PeerStat.h
  10845. (uploadSpeed): New variable.
  10846. (PeerStat): Added default value to cuid.
  10847. (calculateUploadSpeed): New function.
  10848. (updateUploadLength): New function.
  10849. (getMaxUploadSpeed): New function.
  10850. (getAvgUploadSpeed): New function.
  10851. (reset): Added uploadSpeed. Set status to IDLE.
  10852. * src/TorrentDownloadEngine.h
  10853. (cp): Declared as Time.
  10854. (sessionDownloadLengthArray): Removed.
  10855. (sessionUploadLengthArray): Removed.
  10856. (currentCp): Removed.
  10857. (lastCalcStat): New variable
  10858. (lastElapsed): Removed.
  10859. (sessionDownloadLength): Removed.
  10860. (calculateStat): New function.
  10861. * src/TorrentDownloadEngine.cc
  10862. (initStatistics): Removed lastElapsed, cp[],
  10863. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  10864. currentCp, sessionDownloadLength.
  10865. Added cp.reset() and lastCalcStat.reset().
  10866. (calculateSpeed): Changed the name of the argument.
  10867. (calculateStatistics): Rewritten.
  10868. (calculateStat): New function.
  10869. * src/Peer.h
  10870. (PeerStat.h): Included.
  10871. (peerUpload): Removed.
  10872. (peerDownload): Removed.
  10873. (peerStat): New variable.
  10874. (sessionUploadLength): New variable.
  10875. (sessionDownloadLength): New variable.
  10876. (deltaUpload): Removed.
  10877. (deltaDownload): Removed.
  10878. (resetStatus): Made private.
  10879. (Peer): Added sessionUploadLength, sessionDownloadLength.
  10880. Removed peerUpload, peerDownload.
  10881. (updateUploadLength): New function.
  10882. (addDeltaUpload): Removed.
  10883. (updateDownloadLength): New function.
  10884. (resetDeltaUpload): Removed.
  10885. (getDeltaUpload): Removed.
  10886. (addDeltaDownload): Removed.
  10887. (calculateUploadSpeed): New function.
  10888. (resetDeltaDownload): Removed.
  10889. (getDeltaDownload): Removed.
  10890. (calculateDownloadSpeed): New function.
  10891. (getSessionUploadLength): New function.
  10892. (getSessionDownloadLength): New function.
  10893. (activate): New function.
  10894. (deactivate): New function.
  10895. (addPeerUpload): Removed.
  10896. (setPeerUpload): Removed.
  10897. (getPeerUpload): Removed.
  10898. (addPeerDownload): Removed.
  10899. (setPeerDownload): Removed.
  10900. (getPeerDownload): Removed.
  10901. * src/Peer.cc
  10902. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  10903. * src/MetalinkRequestInfo.h
  10904. (MetalinkRequestInfo): Removed const qualifier from op.
  10905. * src/RequestInfo.h
  10906. (op): Removed const qualifier.
  10907. (RequestInfo): Removed const qualifier from op.
  10908. * src/prefs.h
  10909. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  10910. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  10911. * src/PeerInteractionCommand.cc
  10912. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  10913. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  10914. * src/PeerInteraction.cc
  10915. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  10916. * src/main.cc
  10917. (showUsage): Updated the description of "--lowest-speed-limit" option.
  10918. Added the description of "--max-download-limit" option.
  10919. Removed the description of "--upload-limit" option.
  10920. Added the description of "--max-upload-limit" option.
  10921. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  10922. Added "--max-download-limit" option and "--max-upload-limit" option.
  10923. Added the warning message if "--upload-limit" option is used.
  10924. * src/DownloadCommand.cc
  10925. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  10926. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10927. To rewrite segment download mechanism for HTTP/FTP download.
  10928. Use BitfieldMan to manage segment download.
  10929. * src/HttpResponseCommand.h
  10930. (executeInternal): Pass the reference of segment.
  10931. * src/AbstractCommand.cc
  10932. (prepareForRetry): Call segmentMan->cancelSegment here.
  10933. (onAbort): Call segmentMan->cancelSegment here.
  10934. * src/HttpDownloadCommand.cc
  10935. (prepareForNextSegment): New function.
  10936. * src/DownloadEngineFactory.cc
  10937. (newConsoleEngine): Removed splitter.
  10938. (newTorrentConsoleEngine): Removed splitter.
  10939. * src/Request.h
  10940. (segment): Renamed from seg.
  10941. * src/FtpInitiateConnectionCommand.h
  10942. (executeInternal): Pass the reference of segment.
  10943. * src/AbstractCommand.h
  10944. (executeInternal): Pass the reference of segment.
  10945. * src/pref.h
  10946. (PREF_SEGMENT_SIZE): New definition.
  10947. * src/HttpProxyRequestCommand.h
  10948. (executeInternal): Pass the reference of segment.
  10949. * src/HttpResponseCommand.cc
  10950. (checkResponse): Allowed status 206 when a request range starts 0.
  10951. (handleDefaultEncoding): Rewritten the code related to Segment.
  10952. (handleOtherEncoding): Rewritten the code related to Segment.
  10953. * src/SegmentMan.h
  10954. (SegmentEntry): New class.
  10955. (SegmentEntries): New type definition.
  10956. (bitfield): New variable.
  10957. (usedSegmentEntries): New variable.
  10958. (onNullBitfield): New function.
  10959. (checkoutSegment): New function.
  10960. (segments): Removed.
  10961. (splitter): Removed.
  10962. (unregisterId): Removed.
  10963. (getSegment): New function(overload)
  10964. (getDownloadedSize): Removed.
  10965. (cancelSegment): New function.
  10966. (completeSegment): New function.
  10967. (initBitfield): New function.
  10968. (hasSegment): New function.
  10969. (getDownloadLength): New function.
  10970. * src/BitfieldMan.h
  10971. (getStartIndex): New function.
  10972. (getEndIndex): New function.
  10973. (getMissingUnusedIndex): New function(overload).
  10974. (getSparseMissingUnusedIndex): New function.
  10975. * src/BitfieldMan.cc
  10976. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  10977. (getMissingUnusedIndex): New function(overload).
  10978. (Range): New class.
  10979. (getStartIndex): New function.
  10980. (getEndIndex): New function.
  10981. (getSparseMissingUnusedIndex): New function.
  10982. (isBitSetInternal): Return false if the given index is less than 0.
  10983. * src/HttpInitiateConnectionCommand.h
  10984. (executeInternal): Pass the reference of segment.
  10985. * src/FtpNegotiateCommand.h
  10986. (executeInternal): Pass the reference of segment.
  10987. * src/FtpNegotiateCommand.cc
  10988. (recvSize): Initialize bitfield here.
  10989. * src/FtpTunnelResponseCommand.h
  10990. (executeInternal): Pass the reference of segment.
  10991. * src/HttpConnection.cc
  10992. (createRequest): Rewritten range header processing.
  10993. * src/DownloadCommand.h
  10994. (executeInternal): Pass the reference of segment.
  10995. (prepareForRetry): Removed.
  10996. (prepareForNextSegment): Added an argument segment. Made it a virtual
  10997. function.
  10998. * src/main.cc
  10999. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  11000. * src/SegmentMan.cc
  11001. (SegmentMan): Added bitfield. Removed splitter.
  11002. (~SegmentMan): Added bitfield. Removed splitter.
  11003. (unregisterId): Removed.
  11004. (getSegment): Rewritten.
  11005. (updateSegment): Rewritten.
  11006. (save): Rewritten.
  11007. (read): Rewritten.
  11008. (finished): Rewritten.
  11009. (getDownloadedSize): Removed.
  11010. (initBitfield): New function.
  11011. (FindSegmentEntryByIndex): New function object.
  11012. (FindSegmentEntryByCuid): New function object.
  11013. (checkoutSegment): New function.
  11014. (onNullBitfield): New function.
  11015. (getSegment): New function(overload).
  11016. (CancelSegment): New function object.
  11017. (cancelSegment): New function.
  11018. (completeSegment): New function.
  11019. (hasSegment): New function.
  11020. (getDownloadLength): New function.
  11021. * src/FtpInitiateConnectionCommand.cc
  11022. (executeInternal): Load .aria2 file after hostname resolution finishes.
  11023. * src/Segment.h: Rewritten.
  11024. * src/Segment.cc (operator<<): New function.
  11025. * src/HttpDownloadCommand.h
  11026. (prepareForNextSegment): New function.
  11027. * src/Request.cc
  11028. (resetUrl): Made segment null.
  11029. * src/DownloadEngine.cc
  11030. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  11031. * src/HttpProxyRequestCommand.h
  11032. (executeInternal): Pass the reference of segment.
  11033. * src/DownloadCommand.cc
  11034. (executeInternal): Rewritten the code related to Segment.
  11035. (prepareForRetry): Removed.
  11036. (prepareForNextSegment): Rewritten.
  11037. * src/FtpTunnelResponseCommand.h
  11038. (executeInternal): Pass the reference of segment.
  11039. To add HTTP 1.1 persistent connection support(experimental)
  11040. * src/HttpRequestCommand.cc
  11041. (executeInternal): Disable keep alive if it is disabled by
  11042. configuration.
  11043. * src/Request.h
  11044. (keepAlive): New variable.
  11045. (isKeepAlive): New function.
  11046. (setKeepAlive): New function.
  11047. * src/pref.h
  11048. (PREF_HTTP_KEEP_ALIVE): New definition.
  11049. * src/HttpResponseCommand.cc
  11050. (executeInternal): Check the remote server supports keep alive.
  11051. * src/HttpConnection.cc
  11052. (createRequest): Send "Connection: close" only if keep alive is
  11053. disabled.
  11054. * src/main.cc
  11055. (main):
  11056. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  11057. To add max download speed limit:
  11058. * src/pref.h
  11059. (PREF_MAX_SPEED_LIMIT): New definition.
  11060. * src/PeerInteractionCommand.cc
  11061. (executeInternal): Added max download speed limit. Not tested yet.
  11062. * src/SegmentMan.h
  11063. (PeerStats): New type definition.
  11064. (peerStats): New variable.
  11065. (registerPeerStat): New function.
  11066. (FindPeerStat): New function object.
  11067. (getPeerStat): New function.
  11068. (calculateDownloadSpeed): New function.
  11069. * src/SpeedCalc.h: New class.
  11070. * src/SpeedCalc.cc: New class.
  11071. * src/main.cc
  11072. (main):
  11073. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  11074. download speed is not restricted).
  11075. * src/PeerStat.h: New class.
  11076. * src/SegmentMan.cc
  11077. (registerPeerStat): New function.
  11078. (calculateDownloadSpeed): New function.
  11079. * src/DownloadCommand.cc
  11080. (STARTUP_IDLE_TIME): New definition.
  11081. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  11082. downloadStart.
  11083. (~DownloadCommand): Call peerStat->downloadStop.
  11084. (executeInternal): Added download speed limitter. Rewritten lowest
  11085. speed limitter.
  11086. * src/HttpConnection.cc
  11087. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  11088. * src/AbstractCommand.cc
  11089. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  11090. Added hostname to the error message.
  11091. * src/ConsoleDownloadEngine.cc
  11092. (calculateStatistics): Initialize psize with dlSize.
  11093. * src/PieceMessage.cc
  11094. (receivedAction): Do not call peerInteraction->abortPiece here.
  11095. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  11096. * src/BitfieldMan.h
  11097. (clearAllUseBit): New function.
  11098. (setAllUseBit): New function.
  11099. * src/BitfieldMan.cc
  11100. (clearAllBit): Do not clear useBitfield here.
  11101. (clearAllUseBit): New function.
  11102. (setAllUseBit): New function.
  11103. * src/Piece.cc
  11104. (clearAllBlock): Call bitfield->clearAllUseBit().
  11105. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11106. To make filename URL-decoded:
  11107. * src/HttpResponseCommand.h: Updated doc.
  11108. * src/HttpResponseCommand.cc
  11109. (determinFilename): Made filename URL-decoded.
  11110. * src/FtpInitiateConnectionCommand.cc
  11111. (executeInternal): Made filename URL-decoded.
  11112. * src/Util.h (urldecode): New function.
  11113. * src/Util.cc (urldecode): New function.
  11114. To fix a bug that caused assertion failure in ares_strerror:
  11115. * src/NameResolver.cc (callback): Fixed the bug.
  11116. * Release 0.7.3
  11117. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11118. To add --seed-time and --seed-ratio command-line option:
  11119. * src/Option.h (getAsDouble): New function.
  11120. * src/Option.cc (getAsDouble): New function.
  11121. * src/SeedCheckCommand.h: New class.
  11122. * src/SeedCheckCommand.cc: New class.
  11123. * src/DownloadEngineFactory.cc
  11124. (SeedCheckCommand.h): Included.
  11125. (UnionSeedCriteria.h): Included.
  11126. (TimeSeedCriteria.h): Included.
  11127. (ShareRatioSeedCriteria.h): Included.
  11128. (newTorrentConsoleEngine): Added the processing of seed option.
  11129. * src/SeedCriteria.h: New class.
  11130. * src/ShareRatioSeedCriteria.h: New class.
  11131. * src/TimeSeedCriteria.h: New class.
  11132. * src/UnionSeedCriteria.h: New class.
  11133. * src/prefs.h
  11134. (PREF_SEED_TIME): New definition.
  11135. (PREF_SEED_RATIO): New definition.
  11136. * src/main.cc
  11137. (showUsage): Added --seed-time and --seed-ratio option.
  11138. (main): Added --seed-time and --seed-ratio option.
  11139. Made default log file name "/dev/null".
  11140. * src/SharedHandle.h
  11141. (SharedHandle): Copy constructor. Made it assignable from the
  11142. SharedHandle of the subclasses.
  11143. (operator=): Made it assignable from the SharedHandle of the
  11144. subclasses.
  11145. (getRefCount): New function.
  11146. To add notice log level and the switch to write log to stdout. This
  11147. switch is configurable per log level.
  11148. * src/Logger.h
  11149. (notice): New function.
  11150. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  11151. constant.
  11152. * src/LogFactory.cc
  11153. (getInstance): The use of NullLogger was removed. A log message with
  11154. notice log level was made written to stdout along with log file.
  11155. * src/NullLogger.h
  11156. (notice): New function.
  11157. * src/SimpleLogger.h
  11158. (writeHeader): Added the 'file' argument.
  11159. (writeLog): Added the 'file' argument.
  11160. (writeFile): New function.
  11161. (stdoutField): New variable.
  11162. (SimpleLogger): Removed the default constructor.
  11163. (SimpleLogger): Made the default value of logfile 0.
  11164. (debug): Added 'virtual' keyword.
  11165. (info): Added 'virtual' keyword.
  11166. (warn): Added 'virtual' keyword.
  11167. (error): Added 'virtual' keyword.
  11168. (notice): New function.
  11169. (setStdout): New function.
  11170. * src/SimpleLogger.cc
  11171. (WRITE_LOG): Replaced writeLog with writeFile.
  11172. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  11173. (SimpleLogger): Removed the default constructor.
  11174. (setStdout): New function.
  11175. (writeLog): Added the handling of NOTICE log level.
  11176. (writeFile): New function.
  11177. (notice): New function.
  11178. * src/TorrentMan.h: Updated doc.
  11179. * src/BitfieldMan.h: Updated doc.
  11180. * src/TrackerWatcherCommand.cc
  11181. (execute): Return true if error occurred in the request to the tracker
  11182. and halt is requested.
  11183. * src/TrackerUpdateCommand.cc
  11184. (execute): Return true if error occurred in the request to the tracker
  11185. and halt is requested.
  11186. To call onDownloadComplete from TorrentMan::completePiece(), not from
  11187. DownloadEngine:
  11188. * src/TorrentConsoleDownloadEngine.h
  11189. (onSelectiveDownloadingCompletes): Removed.
  11190. * src/TorrentConsoleDownloadEngine.cc
  11191. (onSelectiveDownloadingCompletes): Removed.
  11192. * src/TorrentDownloadEngine.h
  11193. (onEndOfRun): Added 'virtual' keyword.
  11194. (afterEachIteration): Removed.
  11195. (onSelectiveDownloadingCompletes): Removed.
  11196. * src/TorrentDownloadEngine.cc
  11197. (onEndOfRun): Removed filenameFixed.
  11198. (afterEachIteration): Removed.
  11199. * src/TorrentMan.cc
  11200. (completePiece): Call onDownloadComplete here.
  11201. (onDownloadComplete): Added 2 log messages.
  11202. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11203. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  11204. * src/NameResolver.h: Added the prototype declaration of callback().
  11205. To support c-ares library:
  11206. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11207. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11208. * src/FtpInitiateConnectionCommand.h:
  11209. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11210. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11211. * src/HttpInitiateConnectionCommand.h:
  11212. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11213. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  11214. Added thes upport of c-ares's ares_strerror(the idea came from patch
  11215. #1542285 by tizianomueller)
  11216. * src/HttpInitiateConnectionCommand.cc:
  11217. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11218. * src/FtpInitiateConnectionCommand.cc:
  11219. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11220. * src/DownloadEngine.h:
  11221. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11222. * src/DownloadEngine.cc:
  11223. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11224. To fix the bug that causes compilation failure with metalink-support
  11225. disabled(bug#1543587):
  11226. * src/main.cc: Fixed with the patch by tizianomueller.
  11227. * Release 0.7.2
  11228. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11229. * src/main.cc
  11230. (main): Added a message to inform users that aria2 is starting to
  11231. verify checksum.
  11232. * src/RequestInfo.cc
  11233. (printDownloadAbortMessage): Added a message to inform users that
  11234. transfer can be resumed.
  11235. * src/FeatureConfig.cc
  11236. (FEATURE_ASYNC_DNS): New definition.
  11237. (FeatureConfig): Added aysnc DNS entry.
  11238. To replace CommandUuid with Command* in SocketEntry and
  11239. NameResolverEntry:
  11240. * src/DownloadEngine.h
  11241. (CommandUuids): Removed.
  11242. (SocketEntry::commandUuid): Removed.
  11243. (SocketEntry::command): New variable.
  11244. (SocketEntry::SocketEntry): Updated.
  11245. (SocketEntry::operator==): Updated.
  11246. (NameResolverEntry::commandUuid): Removed.
  11247. (NameResolverEntry::command): New variable.
  11248. (NameResolverEntry::NameResolverEntry): Updated.
  11249. (NameResolverEntry::operator==): Updated.
  11250. (waitData): Changed the argument type.
  11251. (addSocketForReadCheck): Changed the argument type.
  11252. (deleteSocketForReadCheck): Changed the argument type.
  11253. (addSocketForWriteCheck): Changed the argument type.
  11254. (deleteSocketForWriteCheck): Changed the argument type.
  11255. (addNameResolverCheck): Changed the argument type.
  11256. (deleteNameResolverCheck): Changed the argument type.
  11257. * src/DownloadEngine.cc
  11258. (FindCommand): Removed.
  11259. (run): Removed activeUuid. Added activeCommands instead.
  11260. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  11261. (AccumulateActiveCommand): New function object.
  11262. (waitData): Use AccumulateActiveCommand.
  11263. (addSocketForReadCheck): Use Command instead of CommandUuid.
  11264. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  11265. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  11266. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  11267. (addNameResolverCheck): Use Command instead of CommandUuid.
  11268. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  11269. * src/AbstractCommand.cc
  11270. (disableReadCheckSocket): Updated according to the changes in
  11271. DownloadEngine.
  11272. (setReadCheckSocket): Updated according to the changes in
  11273. DownloadEngine.
  11274. (disableWriteCheckSocket): Updated according to the changes in
  11275. DownloadEngine.
  11276. (setWriteCheckSocket): Updated according to the changes in
  11277. DownloadEngine.
  11278. (setNameResolverCheck): Updated according to the changes in
  11279. DownloadEngine.
  11280. (disableNameResolverCheck): Updated according to the changes in
  11281. DownloadEngine.
  11282. * src/AbstractCommand.cc
  11283. (disableReadCheckSocket): Updated according to the changes in
  11284. DownloadEngine.
  11285. (setReadCheckSocket): Updated according to the changes in
  11286. DownloadEngine.
  11287. (disableWriteCheckSocket): Updated according to the changes in
  11288. DownloadEngine.
  11289. (setWriteCheckSocket): Updated according to the changes in
  11290. DownloadEngine.
  11291. * release 0.7.1
  11292. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11293. To handle the case where some BitTorrent tracker requires all letters
  11294. except for [A-Za-z0-9] is URL encoded.
  11295. * src/Util.h
  11296. (torrentUrlencode): New function.
  11297. * src/Util.cc
  11298. (ctype.h): Included.
  11299. (torrentUrlencode): New function.
  11300. * src/TrackerWatcherCommand.cc
  11301. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  11302. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11303. To add asynchronous DNS support(libares):
  11304. * src/AbstractCommand.h
  11305. (setNameResolverCheck): New function.
  11306. (disableNameResolverCheck): New function
  11307. (resolveHostname): New function.
  11308. * src/AbstractCommand.cc
  11309. (setNameResolverCheck): New function.
  11310. (disableNameResolverCheck): New function
  11311. (resolveHostname): New function.
  11312. * src/FtpInitiateConnectionCommand.h
  11313. (nameResolver): New function.
  11314. * src/FtpInitiateConnectionCommand.cc
  11315. (Util.h): Included.
  11316. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  11317. disableWriteCheckSocket.
  11318. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  11319. (executeInternal): Added async DNS support.
  11320. * src/HttpInitiateConnectionCommand.h
  11321. (nameResolver): New function.
  11322. * src/HttpInitiateConnectionCommand.cc
  11323. (DlRetryEx.h): Included.
  11324. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  11325. disableWriteCheckSocket.
  11326. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  11327. (executeInternal): Added async DNS support.
  11328. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  11329. by extern "C" declaration.
  11330. * src/NameResolver.cc: New class.
  11331. * src/Util.h:
  11332. (isNumberAndDotsNotation): New function
  11333. * src/Util.cc
  11334. (isNumberAndDotsNotation): New function.
  11335. * src/DownloadEngine.h
  11336. (NameResolver.h): Included.
  11337. (NameResolverEntry): New class.
  11338. (NameResolverEntries): New type definition.
  11339. (addNameResolverCheck): New function.
  11340. (deleteNameResolverCheck): New function.
  11341. * src/DownloadEngine.cc
  11342. (run): Initialize cp with 0.
  11343. (SetDescriptor::operator()): Added for NameResolverEntry.
  11344. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  11345. (waitData): Check nameResolver entries.
  11346. (updateFdSet): Update fds in nameResolver entries.
  11347. (addNameResolverCheck): New function.
  11348. (deleteNameResolverCheck): new function.
  11349. * src/PeerInteractionCommand.cc
  11350. (executeInternal): Fixed wrong socket handling.
  11351. * src/main.cc
  11352. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  11353. * src/Util.cc
  11354. (fileChecksum): Removed the call to ctx.digestReset().
  11355. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11356. * po/ru.po: Azamat sent me Russian translation.
  11357. * src/FtpNegotiateCommand.cc
  11358. (recvGreeting): Call disableWriteCheckSocket just after
  11359. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  11360. (recvRetr): Recognized status code 125 as a acceptable response code.
  11361. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  11362. case-insesitive filesystem(BUG#1531057).
  11363. * src/Time.h: Renamed as TimeA2.h.
  11364. * src/Time.cc: Renamed as TimeA2.cc.
  11365. * src/TimeA2.h: New class.
  11366. * src/TimeA2.cc: New class.
  11367. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  11368. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  11369. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  11370. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  11371. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  11372. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11373. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  11374. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  11375. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  11376. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11377. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  11378. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  11379. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  11380. * release 0.7.0
  11381. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11382. * src/PeerChokeCommand.h
  11383. (PeerChokeCommand): Rearranged the arguments.
  11384. * src/PeerChokeCommand.cc
  11385. (PeerChokeCommand): Rearranged the arguments.
  11386. * src/MetalinkEntry.h
  11387. (Checksum.h): Included.
  11388. (md5): Removed.
  11389. (sha1): Removed.
  11390. (checksum): New variable.
  11391. (operator=): Updated.
  11392. (check): Removed.
  11393. * src/prefs.h
  11394. (PREF_LOWEST_SPEED_LIMIT): New definition.
  11395. (PREF_FOLLOW_TORRENT): New definition.
  11396. (PREF_SELECT_FILE): New definition.
  11397. (PREF_FOLLOW_METALINK): New definition.
  11398. * src/MetalinkResource.h
  11399. (TYPE_HTTPS): Added to enum TYPE.
  11400. * src/TorrentMan.cc
  11401. (~TorrentMan): Rewritten.
  11402. * src/MultiDiskWriter.cc
  11403. (MultiDiskAdaptor): Updated according to the changes in
  11404. MessageDigestContext.
  11405. (~MultiDiskAdaptor): Updated according to the changes in
  11406. MessageDigestContext.
  11407. (hashUpdate): Updated according to the changes in MessageDigestContext.
  11408. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11409. * src/Util.h
  11410. (fileChecksum): Updated according to the changes in
  11411. MessageDigestContext.
  11412. * src/Util.cc
  11413. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11414. (fileChecksum): Updated according to the changes in
  11415. MessageDigestContext.
  11416. * src/messageDigest.h: Rewritten.
  11417. * src/MetalinkEntry.cc
  11418. (check): Removed.
  11419. (Supported): Updated.
  11420. (dropUnsupportedResource): Fixed a memory leak.
  11421. * src/ShaVisitor.cc
  11422. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  11423. (~ShaVisitor): Updated according to the changes in
  11424. MessageDigestContext.
  11425. (visit): Updated according to the changes in MessageDigestContext.
  11426. * src/main.cc
  11427. (main): Rewritten the portion of download loop. --lowest-speed-limit
  11428. command-line option added.
  11429. * src/DownloadEngine.h
  11430. (SocketEntry): New class.
  11431. (SocketEntries): New definition.
  11432. (PairFind): Removed.
  11433. (SockCmdMap): Removed.
  11434. * src/DownloadEngine.cc
  11435. (DownloadEngine): Rewritten.
  11436. (~DownloadEngine): Rewritten.
  11437. (run): Renamed activeCommandUuids as activeUuids.
  11438. (SetDescriptor): Rewritten.
  11439. (AccumulateActiveCommandUuid): Removed.
  11440. (AccumulateActiveUuid): New function object.
  11441. (waitData): Rewritten.
  11442. (updateFdSet): Rewritten.
  11443. (addSocket): Rewritten.
  11444. (deleteSocket): Rewritten.
  11445. (addSocketForReadCheck): Rewritten.
  11446. (deleteSocketForReadCheck): Rewritten.
  11447. (addSocketForWriteCheck): Rewritten.
  11448. (deleteSocketForWriteCheck): Rewritten.
  11449. * src/Xml2MetalinkProcessor.cc
  11450. (getEntry): Rewritten the portion of MetalinkEntry creation.
  11451. * src/DownloadCommand.cc
  11452. (executeInternal): Added the check routine for lowest speed limit.
  11453. * src/AbstractDiskWriter.cc
  11454. (AbstractDiskWriter): Updated according to the changes in
  11455. MessageDigestContext.
  11456. (~AbstractDiskWriter): Updated according to the changes in
  11457. MessageDigestContext.
  11458. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11459. * src/RequestInfo.h: New class.
  11460. * src/UrlRequestInfo.h: New class.
  11461. * src/UrlRequestInfo.cc: New class.
  11462. * src/TorrentRequestInfo.h: New class.
  11463. * src/TorrentRequestInfo.cc: New class.
  11464. * src/MetalinkRequestInfo.h: New class.
  11465. * src/MetalinkRequestInfo.cc: New class.
  11466. * src/Checksum.h: New class.
  11467. * src/DownloadEngineFactory.h: New class.
  11468. * src/DownloadEngineFactory.cc: New class.
  11469. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11470. * src/Option.h
  11471. (getAsBool): New function.
  11472. * src/Option.cc
  11473. (prefs.h): Included.
  11474. (defined): 0-length value is now recognized as undefined.
  11475. (getAsInt): Rewritten.
  11476. (getAsLLInt): Rewritten.
  11477. (getAsBool): New function.
  11478. * src/FeatureConfig.h: Rewritten.
  11479. * src/FeatureConfig.cc: Rewritten.
  11480. * src/prefs.h
  11481. (PREF_STDOUT_LOG): New definition.
  11482. (PREF_LOG): New definition.
  11483. (PREF_DIR): New definition.
  11484. (PREF_OUT): New definition.
  11485. (PREF_SPLIT): New definition.
  11486. (PREF_DAEMON): New definition.
  11487. (PREF_REFERER): New definition.
  11488. (PREF_TORRENT_FILE): New definition.
  11489. (PREF_LISTEN_PORT): New definition.
  11490. (PREF_METALINK_FILE): New definition.
  11491. (PREF_METALINK_VERSION): New definition.
  11492. (PREF_METALINK_LANGUAGE): New definition.
  11493. (PREF_METALINK_OS): New definition.
  11494. (PREF_METALINK_SERVERS): New definition.
  11495. * src/main.cc
  11496. (main): Following command-line parameters are now put into Option
  11497. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  11498. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  11499. metalinkLanguage, metalinkOs, metalinkServers
  11500. To fix the bug that aria2 can not handle http response header properly.
  11501. * src/HttpHeader.cc
  11502. (put): Made name lowercased.
  11503. (defined): Made name lowercased.
  11504. (getFirst): Made name lowercased.
  11505. (get): Made name lowercased.
  11506. (getFirstAsInt): Rewritten.
  11507. (getFirstAsLLInt): Rewritten.
  11508. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11509. * src/TorrentMan.h:
  11510. (advertisePiece): Updated doc.
  11511. (getAdvertisedPieceIndexes): Updated doc.
  11512. (removeAdvertisedPiece); New function.
  11513. * src/TorrentMan.cc
  11514. (FindElapsedHave): New function object.
  11515. (removeAdvertisedPiece): New function.
  11516. * src/HaveEraseCommand.h: New class.
  11517. * src/HaveEraseCommand.cc: New class.
  11518. * src/FeatureConfig.h: New class.
  11519. * src/FeatureConfig.cc: New class.
  11520. * src/Request.h
  11521. (defaultPorts): Removed.
  11522. * src/Request.cc
  11523. (FeatureConfig.h): Included.
  11524. (Request): Removed the statements related to defaultPorts.
  11525. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  11526. A default port number is now retrieved from FeatureConfig.
  11527. * src/main.cc
  11528. (HaveEraseCommand.h): Included.
  11529. (showVersion): Added the output of feature list.
  11530. (main): Added HaveEraseCommand to command queue in BitTorrent
  11531. downloading.
  11532. * src/PeerInteractionCommand.h
  11533. (chokeCheckPoint): Commented out.
  11534. (periodicExecPoint): New variable.
  11535. * src/PeerInteractionCommand.cc
  11536. (executeInternal): Following methods are now called in at least every
  11537. 0.5 seconds to reduce CPU usage:
  11538. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  11539. checkHave(), sendKeepAlive().
  11540. (checkLongTimePeerChoking): Commented out.
  11541. * src/BitfieldMan.h
  11542. (getNthBitIndex): Changed the method signature.
  11543. (getMissingIndexRandomly): Changed the method signature.
  11544. * src/BitfieldMan.cc
  11545. (getNthBitIndex): Rewritten
  11546. (getMissingIndexRandomly): Rewritten.
  11547. (hasMissingPiece): Rewritten.
  11548. (getMissingIndex): Refactored.
  11549. (getMissingUnusedIndex); Refactored.
  11550. (getMissingIndex): Refactored.
  11551. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11552. * src/PeerMessage.h
  11553. (Piece.h): Included.
  11554. (SharedHandle.h): Included.
  11555. (invalidate): New variable.
  11556. (uploading): New variable.
  11557. (isInvalidate): New function.
  11558. (isUploading): New function.
  11559. (onPush): New function.
  11560. (onChoked): New function.
  11561. (onCanceled): New function.
  11562. (onAbortPiece): New function.
  11563. (PeerMessageHandle): New type definition.
  11564. * src/PeerMessage.cc
  11565. (PeerMessage): Added the initialization for invalidate and uploading.
  11566. * src/CancelMessage.h
  11567. (CancelMessage): Rewritten.
  11568. * src/RejectMessage.h
  11569. (RejectMessage): Rewritten.
  11570. * src/Metalinker.h
  11571. (operator=): Defined.
  11572. * src/MetaEntry.h
  11573. (operator=): Defined.
  11574. * src/MetalinkResource.h
  11575. (operator=): Defined.
  11576. * src/AllowedFastMessage.h
  11577. (AllowedFastMessage): Rewritten.
  11578. * src/HandshakeMessage.h
  11579. (HandshakeMessage): New function(overload).
  11580. * src/HandshakeMessage.cc
  11581. (HandshakeMessage): Rewritten.
  11582. (init): New function.
  11583. * src/HaveMessage.h
  11584. (HaveMessage): Rewritten.
  11585. * src/Time.h
  11586. (operator=): Defined the function body here.
  11587. * src/Time.cc
  11588. (operator=): Removed.
  11589. * src/SocketCore.h
  11590. (operator==): Defined here.
  11591. (operator!=): Defined here.
  11592. (operator<): Defined here.
  11593. * src/SocketCore.cc
  11594. (operator==): Removed.
  11595. (operator<): Removed.
  11596. * src/BitfieldMan.h
  11597. (operator=): Defined the function body here.
  11598. * src/BitfieldMan.cc
  11599. (operator=): Removed.
  11600. * src/TorrentMan.h
  11601. (deleteErrorPeer): Removed.
  11602. (deleteUnusedPeer); New function.
  11603. * src/TorrentMan.cc
  11604. (addPeer): Call deleteUnusedPeer.
  11605. (deleteErrorPeer): Removed.
  11606. (deleteUnusedPeer): New function.
  11607. * src/PeerAbstractCommand.h
  11608. (setNoCheck): New function.
  11609. (noCheck): New variable.
  11610. * src/PeerAbstractCommand.cc
  11611. (PeerAbstractCommand): Added the initialization of noCheck.
  11612. (execute): Added a check for noCheck.
  11613. (setNoCheck): New function.
  11614. * src/Util.h
  11615. (stdio.h): Included.
  11616. * src/Util.cc
  11617. (unistd.h): Included.
  11618. * src/DefaultDiskWriter.cc
  11619. (unistd.h): Included.
  11620. * src/Peer.h
  11621. (operator==): Defined the function body here.
  11622. (operator!=): Defined the function body here.
  11623. * src/Peer.cc
  11624. (operator==): Removed.
  11625. (operator!=): Removed.
  11626. * src/Piece.h
  11627. (Piece): Defined the function body here(copy constructor).
  11628. (operator=): Defined the function body here.
  11629. (operator==): Defined the function body here.
  11630. * src/Piece.cc
  11631. (Piece): Removed(copy constructor).
  11632. (operator=): Removed.
  11633. (operator==): Removed.
  11634. * src/PeerMessageUtil.h
  11635. (ChokeMessage.h): Removed.
  11636. (UnchokeMessage.h): Removed.
  11637. (InterestedMessage.h): Removed.
  11638. (NotInterestedMessage.h): Removed.
  11639. (HaveMessage.h): Removed.
  11640. (BitfieldMessage.h): Removed.
  11641. (RequestMessage.h): Removed.
  11642. (CancelMessage.h): Removed.
  11643. (PieceMessage.h): Removed.
  11644. (HandshakeMessage.h): Removed.
  11645. (KeepAliveMessage.h): Removed.
  11646. (PortMessage.h): Removed.
  11647. (HaveAllMessage.h): Removed.
  11648. (HaveNoneMessage.h): Removed.
  11649. (PeerConnection.h): Removed.
  11650. (HandshakeMessage.h): Included.
  11651. * src/BitfieldMessage.h
  11652. (init): New function.
  11653. (BitfieldMessage): Rewritten.
  11654. (BitfieldMessage): New function(overload).
  11655. * src/RequestSlot.h
  11656. (operator=): Defined the function body here.
  11657. (operator==): Defined the function body here.
  11658. * src/RequestSlot.cc
  11659. (operator=): Removed.
  11660. (operator==): Removed.
  11661. To remove the dependency on the PeerMessage subclass from
  11662. PeerInteraction:
  11663. * src/PeerMessageFactory.h: New class.
  11664. * src/PeerMessageFactory.cc: New class.
  11665. * src/SimplePeerMessage.cc
  11666. (send): If invalidate is true then do nothing.
  11667. * src/PeerInteractionCommand.cc
  11668. (HandshakeMessage.h): Included.
  11669. (KeepAliveMessage.h): Included.
  11670. (ChokeMessage.h): Included.
  11671. (UnchokeMessage.h): Included.
  11672. (HaveMessage.h): Included.
  11673. (executeInternal): Call setNoCheck().
  11674. Removed setWriteCheckSocket(socket).
  11675. * src/PeerInteraction.h
  11676. (ChokeMessage.h): Removed.
  11677. (UnchokeMessage.h): Removed.
  11678. (InterestedMessage.h): Removed.
  11679. (NotInterestedMessage.h): Removed.
  11680. (HaveMessage.h): Removed.
  11681. (BitfieldMessage.h): Removed.
  11682. (RequestMessage.h): Removed.
  11683. (CancelMessage.h): Removed.
  11684. (PieceMessage.h): Removed.
  11685. (HandshakeMessage.h): Removed.
  11686. (KeepAliveMessage.h): Removed.
  11687. (PortMessage.h): Removed.
  11688. (HaveAllMessage.h): Removed.
  11689. (HaveNoneMessage.h): Removed.
  11690. (RejectMessage.h): Removed.
  11691. (AllowedFastMessage.h): Removed.
  11692. (SuggestPieceMessage.h): Removed.
  11693. (PeerMessageFactory.h): Included.
  11694. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  11695. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  11696. (PeerMessageFactory): New variable.
  11697. (createPeerMessage): Removed.
  11698. (createHandshakeMessage): Removed.
  11699. (setPeerMessageCommonProperty): Removed.
  11700. (addRequestSlot): New function.
  11701. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11702. (getPeerMessageFactory): New function.
  11703. (createRequestMessage): Removed.
  11704. (createCancelMessage): Removed.
  11705. (createPieceMessage): Removed.
  11706. (createHaveMessage): Removed.
  11707. (createChokeMessage): Removed.
  11708. (createUnchokeMessage): Removed.
  11709. (createInterestedMessage): Removed.
  11710. (createNotInterestedMessage): Removed.
  11711. (createBitfieldMessage): Removed.
  11712. (createKeepAliveMessage): Removed.
  11713. (createHaveAllMessage): Removed.
  11714. (createHaveNoneMessage): Removed.
  11715. (createRejectMessage): Removed.
  11716. (createAllowedFastMessage): Removed.
  11717. * src/PeerInteraction.cc
  11718. (PeerInteraction): Allocate PeerMessageFactory here.
  11719. (~PeerInteraction): Deallocate PeerMessageFactory here.
  11720. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  11721. PieceMessage::ID.
  11722. (addMessage): Simplified by using PeerMessage::onPush().
  11723. (addRequestSlot): New function.
  11724. (rejectAllPieceMessageInQueue): Simplified by using
  11725. PeerMessage::onChoked().
  11726. (rejectPieceMessageInQueue): Simplified by using
  11727. PeerMessage::onCanceled().
  11728. (abortPiece): Simplified by using PeerMessage::abortPiece().
  11729. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11730. (createHandshakeMessage): Removed.
  11731. (createPeerMessage): Removed.
  11732. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  11733. (setPeerMessageCommonProperty): Removed.
  11734. (createRequestMessage): Removed.
  11735. (createCancelMessage): Removed.
  11736. (createPieceMessage): Removed.
  11737. (createHaveMessage): Removed.
  11738. (createChokeMessage): Removed.
  11739. (createUnchokeMessage): Removed.
  11740. (createInterestedMessage): Removed.
  11741. (createNotInterestedMessage): Removed.
  11742. (createBitfieldMessage): Removed.
  11743. (createKeepAliveMessage): Removed.
  11744. (createHaveAllMessage): Removed.
  11745. (createHaveNoneMessage): Removed.
  11746. (createRejectMessage): Removed.
  11747. (createAllowedFastMessage): Removed.
  11748. * src/PieceMessage.h
  11749. (createRejectMessage): New function.
  11750. (PieceMessage): Rewritten.
  11751. (onChoked): New function.
  11752. (onCanceled): New function.
  11753. * src/PieceMessage.cc
  11754. (send): If invalidate is true then do nothing, just return.
  11755. (createRejectMessage): New function.
  11756. (onChoked): New function.
  11757. (onCanceled): New function.
  11758. * src/RequestMessage.h
  11759. (RequestMessage): Rewritten.
  11760. (onPush): New function.
  11761. (onAbortPiece): New function.
  11762. * src/RequestMessage.cc
  11763. (onPush): New function.
  11764. (onAbortPiece): New function.
  11765. Update fd_set when a socket is added or deleted in order to improve
  11766. performance:
  11767. * src/DownloadEngine.h
  11768. (rfdset): New variable.
  11769. (wfdset): New variable.
  11770. (updateFdSet): New function.
  11771. * src/DownloadEngine.cc
  11772. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  11773. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  11774. (waitData): Copy rfdset and wfdset.
  11775. (updateFdSet): New function.
  11776. (addSocket): Call updateFdSet.
  11777. (deleteSocket): Call updateFdSet.
  11778. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11779. To add the support for Metalink3.0 backward compatible links:
  11780. * src/Request.h
  11781. (SAFE_CHARS): Added '#'.
  11782. (METALINK_MARK): New definition.
  11783. * src/Request.cc
  11784. (parseUrl): Added the support for Metalink3.0 backward compatible
  11785. links.
  11786. etc
  11787. * src/PeerInteraction.cc
  11788. (MsgPushBack): Removed.
  11789. (sendMessages): Use STL copy and back_inserter.
  11790. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  11791. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  11792. * src/TorrentMan.h
  11793. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  11794. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11795. * src/SharedHandle.h: New class.
  11796. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  11797. * src/HttpResponseCommand.h
  11798. (HttpResponseCommand): Wrapped Socket.
  11799. * src/SocketCore.h
  11800. (operator==): New function.
  11801. (operator!=): New function.
  11802. (operator<): New function.
  11803. (getSockfd): New function.
  11804. (isOpen): New function.
  11805. (writeData): New function.
  11806. * src/SocketCore.cc
  11807. (operator==): New function.
  11808. (operator!=): New function.
  11809. (operator<): New function.
  11810. * src/AbstractCommand.h
  11811. (socket): Changed its type to SocketHandle.
  11812. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11813. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11814. (disableReadCheckSocket): New function.
  11815. (disableWriteCheckSocket): New function.
  11816. (readCheckTarget): Changed its type to SocketHandle.
  11817. (writeCheckTarget): Changed its type to SocketHandle.
  11818. (AbstractCommand): Replaced Socket with SocketHandle.
  11819. * src/AbstractCommand.cc
  11820. (AbstractCommand): Replaced Socket with SocketHandle.
  11821. (~AbstractCommand): Removed the deallocation for Socket object.
  11822. (disableReadCheckSocket): New function.
  11823. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11824. (disableWriteCheckSocket): New function.
  11825. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11826. * src/HttpDownloadCommand.cc
  11827. (DownloadCommand): Replaced Socket with SocketHandle.
  11828. * src/PeerAbstractCommand.h
  11829. (socket): Changed its type to SocketHandle.
  11830. (peer): Changed its type to PeerHandle.
  11831. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11832. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11833. (disableReadCheckSocket): New function.
  11834. (disableWriteCheckSocket): New function.
  11835. (readCheckTarget): Changed its type to SocketHandle.
  11836. (writeCheckTarget): Changed its type to SocketHandle.
  11837. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11838. Replaced Peer with PeerHandle.
  11839. * src/HttpRequestCommand.cc
  11840. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11841. Use disableReadCheckSocket.
  11842. * src/PeerInitiateConnectionCommand.h
  11843. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11844. * src/PeerChokeCommand.cc
  11845. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  11846. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  11847. (execute): Use PeerHandle.
  11848. * src/PeerConnection.h
  11849. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  11850. (socket): Changed its type to SocketHandle.
  11851. (PeerConnection): Replaced Socket with SocketHandle.
  11852. * src/PeerConnection.cc
  11853. (PeerConnection): Replaced Socket with SocketHandle.
  11854. * src/PeerInteractionCommand.h
  11855. (PeerInteractionCommand): Replaced socket with SocketHandle.
  11856. Replaced Peer with PeerHandle.
  11857. * src/PeerInteractionCommand.cc
  11858. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  11859. Replaced Peer with PeerHandle.
  11860. (executeInternal): Use disableWriteCheckSocket.
  11861. Use HandshakeMessageHandle.
  11862. (receiveMessages): Use PeerMessageHandle.
  11863. (prepareForNextPeer): Use PeerHandle.
  11864. * src/HttpProxyRequestCommand.h
  11865. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11866. * src/HttpResponseCommand.cc
  11867. (HttpResponseCommand): Replaced Socket with SocketHandle.
  11868. * src/TorrentMan.cc
  11869. (nullPeer): Added external reference.
  11870. (~TorrentMan): Removed the deallocation of the elements of peers.
  11871. (addPeer): Rewritten.
  11872. (isPeerAvailable): Use nullPeer.
  11873. (deleteOldpeers): Replaced with deleteErrorPeer.
  11874. (deleteErrorPeer): New function.
  11875. (getPeer): Use PeerHandle and nullPeer.
  11876. (hasMissingPiece): Replaced Peer with PeerHandle.
  11877. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11878. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11879. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11880. (getMissingPiece): Replaced Peer with PeerHandle.
  11881. * src/FtpNegotiateCommand.cc
  11882. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  11883. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  11884. (recvGreeting): Use disableWriteCheckSocket.
  11885. (recvPasv): Removed the allocation of Socket.
  11886. Use disableReadCheckSocket.
  11887. (sendRestPasv): Use disableWriteCheckSocket.
  11888. (recvRetr): Changed assertion.
  11889. * src/PeerInteraction.h
  11890. (SharedHandle.h): Included SharedHandle.h.
  11891. (PeerMessageHandle): New type definition.
  11892. (HandshakeMessageHandle): New type definition.
  11893. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  11894. (peer): Changed its type to PeerHandle.
  11895. (createHandshakeMessage): Replaced HandshakeMessage with
  11896. HandshakeMessageHandle.
  11897. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  11898. (PeerInteraction): Replaced Peer with PeerHandle.
  11899. Replaced Socket with SocketHandle.
  11900. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11901. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11902. (receiveHandshake): Replaced HandshakeMessage with
  11903. HandshakeMessageHandle.
  11904. * src/PeerInteraction.cc
  11905. (PeerInteraction): Replaced Peer with PeerHandle.
  11906. Replaced Socket with SocketHandle.
  11907. (~PeerInteraction): Removed the deallocation of the elements of
  11908. messageQueue.
  11909. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  11910. (isSendingMessageInProgress): Replaced PeerMessage with
  11911. PeerMessageHandle.
  11912. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  11913. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11914. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  11915. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  11916. (abortPiece): Use PeerMessageHandle.
  11917. (receiveHandshake): Replaced HandshakeMessage with
  11918. HandshakeMessageHandle. Removed try-catch block.
  11919. (createHandshakeMessage): Replaced HandshakeMessage with
  11920. HandshakeMessageHandle.
  11921. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11922. Removed try-catch block.
  11923. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  11924. * src/HttpProxyResponseCommand.cc
  11925. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11926. * src/FtpTunnelResponseCommand.h
  11927. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11928. * src/HttpConnection.cc
  11929. (HttpConnection): Replaced Socket with SocketHandle.
  11930. * src/PeerAbstractCommand.cc
  11931. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11932. (~PeerAbstractCommand): Removed the deallocation of socket.
  11933. Use disableReadCheckSocket, disableWriteCheckSocket.
  11934. (disableReadCheckSocket): New function.
  11935. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11936. (disableWriteCheckSocket): New function.
  11937. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11938. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  11939. * src/FtpTunnelRequestCommand.cc
  11940. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11941. (~FtpTunnelRequestCommand): Corrected indentation.
  11942. * src/DownloadCommand.h
  11943. (DownloadCommand): Replaced Socket with SocketHandle.
  11944. * src/PeerListenCommand.cc
  11945. (PeerListenCommand): Removed the initialization of socket.
  11946. (~PeerListenCommand): Removed the deallocation of socket.
  11947. (bindPort): Use SocketHandle.
  11948. (execute): Use SocketHandle and PeerHandle.
  11949. * src/FtpDowndloadCommand.cc
  11950. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11951. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  11952. * src/main.cc
  11953. (main): Corrected indentation.
  11954. * src/HttpInitiateConnectionCommand.cc
  11955. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  11956. (executeInternal): Removed the allocation of socket.
  11957. * src/HttpRequestCommand.h
  11958. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11959. * src/FtpNegotiationCommand.h
  11960. (dataSocket): Changed its type to SocketHandle.
  11961. (serverSocket): Changed its type to SocketHandle.
  11962. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  11963. * src/TorrentMan.h
  11964. (MAX_PEER_UPDATE): Removed.
  11965. (MAX_PEERS): New definition.
  11966. (Peers): The element is now of type PeerHandle.
  11967. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  11968. (getPeer): Replaced Peer with PeerHandle.
  11969. (deleteOldErrorPeers): Removed.
  11970. (deleteErrorPeer): New function.
  11971. (hasMissingPiece): Replaced Peer with PeerHandle.
  11972. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11973. (getMissingPiece): Replaced Peer with PeerHandle.
  11974. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11975. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11976. (addActivePeer): Replaced Peer with PeerHandle.
  11977. (deleteActivePeer): Replaced Peer with PeerHandle.
  11978. Added a check for the return value of find.
  11979. * src/FtpTunnelResponseCommand.cc
  11980. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11981. * src/FtpInitiateConnectionCommand.cc
  11982. (executeInternal): Removed the allocation of socket.
  11983. * src/DownloadEngine.h
  11984. (Sockets): An element is now of type SocketHandle.
  11985. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  11986. (CommandUuids): New type definition.
  11987. (rsockets): Changed its type to SockCmdMap.
  11988. (wsockets): Changed its type to SockCmdMap.
  11989. (addSocket): Rewritten.
  11990. (deleteSocket): Rewritten.
  11991. (addSocketForReadCheck): Rewritten.
  11992. (deleteSocketForReadCheck): Rewritten.
  11993. (addSocketForWriteCheck): Rewritten.
  11994. (deleteSocketForWriteCheck): Rewritten.
  11995. (PairFind): New template class.
  11996. * src/HttpDownloadCommand.h
  11997. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  11998. * src/FtpConnection.cc
  11999. (FtpConnection): Replaced Socket with SocketHandle.
  12000. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  12001. block.
  12002. * src/InitiateConnectionCommandFactory.cc
  12003. (DlAbortEx.h): Included DlAbortEx.h.
  12004. (createInitiateConnectionCommand): Throw exception if the protocol of
  12005. requested URI is not supported.
  12006. * src/Peer.cc
  12007. (nullPeer): Changed its type to PeerHandle.
  12008. (operator==): New function.
  12009. (operator!=): New function.
  12010. * src/Peer.h
  12011. (SharedHandle.h): Included SharedHandle.h.
  12012. (operator==): New function.
  12013. (operator!=): New function.
  12014. (Peer): Added the default constructor.
  12015. Use resetStatus() to initialize member variables.
  12016. (nullPeer): Removed.
  12017. * src/TrackerUpdateCommand.cc
  12018. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  12019. with MIN_PEERS.
  12020. * src/PeerListenCommand.h
  12021. (socket): Changed its type to SocketHandle.
  12022. * src/Command.h
  12023. (CommandUuid): New type definition.
  12024. (uuid): New variable.
  12025. (uuidGen): New variable.
  12026. (Command): Added the initialization of uuid.
  12027. (getUuid): New function.
  12028. * src/Socket.h
  12029. (Socket): Removed.
  12030. (SocketHandle): New type definition.
  12031. * src/DownloadEngine.h
  12032. (FindCommand): New function object.
  12033. (run): The portion of socket check was rewritten.
  12034. (SetDescriptor): New function object.
  12035. (AccumulateActiveCommandUuid): New function object.
  12036. (waitData): Rewritten.
  12037. (addSocket): Rewritten.
  12038. (deleteSocket): Rewritten.
  12039. (addSocketForReadCheck): Rewritten.
  12040. (addSocketForWriteCheck): Rewritten.
  12041. (deleteSocketForReadCheck): Rewritten.
  12042. (deleteSocketForWriteCheck): Rewritten.
  12043. * src/HttpProxyResponseCommand.h
  12044. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  12045. * src/HttpConnection.h
  12046. (socket): Changed its type to SocketHandle.
  12047. (HttpConnection): Replaced Socket with SocketHandle.
  12048. * src/PeerInitiateConnectionCommand.cc
  12049. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  12050. (executeInternal): Removed the allocation of socket.
  12051. (prepareForNextPeer): Use PeerHandle.
  12052. * src/PeerMessage.h
  12053. (peer): Changed its type to PeerHandle.
  12054. (getPeer): Replaced Peer with PeerHandle.
  12055. (setPeer): Replaced Peer with PeerHandle.
  12056. * src/DownloadCommand.cc
  12057. (DownloadCommand): Replaced Socket with SocketHandle.
  12058. * src/FtpConnection.h
  12059. (socket): Changed its type to SocketHandle.
  12060. (FtpConnection): Replaced Socket with SocketHandle.
  12061. (sendPort); Replaced Socket with SocketHandle.
  12062. * src/FtpDowndloadCommand.h
  12063. (ctrlSocket): Changed its type to SocketHandle.
  12064. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  12065. * src/HttpProxyRequestCommand.cc
  12066. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12067. * src/FtpTunnelRequestCommand.h
  12068. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  12069. etc
  12070. * src/PeerChokeCommand.h
  12071. (setAllPeerChoked): Removed.
  12072. (setAllPeerResetDelta): Removed.
  12073. * src/PeerChokeCommand.cc
  12074. (setAllPeerChoked): Removed.
  12075. (ChokePeer): New function object.
  12076. (setAllPeerResetDelta): Removed.
  12077. (ResetDelta): New function object.
  12078. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  12079. (execute): Show download speed when the local node is a seeder.
  12080. setAllPeerChoked and setAllPeerResetDelta were rewritten
  12081. using STL.
  12082. * src/TrackerWatcherCommand.h
  12083. (MIN_PEERS): Removed.
  12084. * src/TorrentMan.cc
  12085. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  12086. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12087. To fix the bug that .aria2 file is not saved if downloading is stopped
  12088. by the errors:it results that aria2 can not resume downloading:
  12089. * src/main.cc
  12090. (normalDownload): Added the call to save().
  12091. (main): Added the deletion of the elements in 'reserved'.
  12092. To fix log:
  12093. * src/PeerInteraction.cc
  12094. (receiveHandshake): Fixed log.
  12095. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12096. To improve download performance in BitTorrent:
  12097. * src/TorrentMan.cc
  12098. (getPeer): Check the number of connections. Return nullPeer if
  12099. it is greater than MAX_PEER_UPDATE.
  12100. This code was originally here, but was removed in 0.5.1.
  12101. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12102. To improve the conditional compilation:
  12103. * src/MultiDiskWriter.h:
  12104. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12105. * src/MultiDiskWriter.cc:
  12106. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12107. * src/Util.h:
  12108. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12109. Added ENABLE_BITTORRENT around computeFastSet().
  12110. * src/Util.cc:
  12111. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12112. Added ENABLE_BITTORRENT around computeFastSet().
  12113. * src/messageDigest.h:
  12114. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  12115. * src/ShaVisitor.h:
  12116. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12117. * src/ShaVisitor.cc:
  12118. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12119. * src/main.cc:
  12120. Added ENABLE_BITTORRENT around includes and blocks related to
  12121. BitTorrent.
  12122. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  12123. digest support is not available.
  12124. * src/AbstractDiskWriter.h:
  12125. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12126. * src/AbstractDiskWriter.cc:
  12127. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12128. * src/MetalinkEntry.cc
  12129. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  12130. support is not available.
  12131. To add command-line options for Metalink:
  12132. * src/main.cc:
  12133. Added metalink-version, metalink-language, metalink-os,
  12134. follow-metalink.
  12135. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  12136. * src/main.cc: Use these definition.
  12137. * Release 0.6.0
  12138. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12139. To add Metalink support(http/ftp only):
  12140. * src/AbstractCommand.h
  12141. (tryReserved): New function.
  12142. * src/AbstractCommand.cc
  12143. (execute): Call tryReserved().
  12144. (tryReserved): New function.
  12145. * src/Request.h
  12146. (Requests): New type definition.
  12147. * src/SegmentMan.h
  12148. (reserved): New variable.
  12149. * src/Util.h
  12150. (fileChecksum): New function.
  12151. (toUpper): New function.
  12152. (toLower): New function.
  12153. * src/Util.cc
  12154. (messageDigest.h): Included.
  12155. (trim): Trim \r\n\t.
  12156. (fileChecksum): New function.
  12157. (toUpper): New function.
  12158. (toLower): New function.
  12159. * src/main.cc
  12160. (normalDownload): New function.
  12161. (main): Added 2 command-line options: metalink-file,
  12162. metalink-connection. Their usage has not been written yet.
  12163. * src/MetalinkProcessor.h: New class.
  12164. * src/Xml2MetalinkProcessor.h: New class.
  12165. * src/Xml2MetalinkProcessor.cc: New class.
  12166. * src/MetalinkEntry.h: New class.
  12167. * src/MetalinkEntry.cc: New class.
  12168. * src/MetalinkResource.h: New class.
  12169. * src/MetalinkResource.cc: New class.
  12170. To add md5 message digest checking:
  12171. * src/messageDigest.h: Rewritten.
  12172. * src/MultiDiskWriter.cc: Updated according to the changes in
  12173. messageDigest.h.
  12174. * src/ShaVisitor.cc: Updated according to the changes in
  12175. messageDigest.h.
  12176. * src/Util.cc: Updated according to the changes in messageDigest.h.
  12177. * src/AbstractDiskWriter.cc: Updated according to the changes in
  12178. messageDigest.h.
  12179. To fix a bug that causes segfault when the payload length in peer
  12180. message is less than 0:
  12181. * src/PeerConnection.cc:
  12182. (receiveMessage): Fixed the bug.
  12183. * src/PeerMessageUtil.cc
  12184. (checkLength): Throw an exception if length is less than or equals to
  12185. 0.
  12186. To add new interfaces to Base64 encoding/decoding:
  12187. * src/Base64.h
  12188. (part_encode): Changed the method signature.
  12189. (encode): New function(overload).
  12190. (decode): New function(overload).
  12191. * src/Base64.cc
  12192. (part_encode): Rewritten.
  12193. (encode): Rewritten.
  12194. (encode): New function(overload).
  12195. To prevent a peer to download same piece if there is an error in
  12196. checksum:
  12197. * src/PieceMessage.cc
  12198. (receivedAction): Call peerInteraction->abortPiece().
  12199. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12200. To fix the bug that causes same have message is sent many times to
  12201. a single peer.
  12202. * src/Time.cc
  12203. (isNewer): Use Util::difftv().
  12204. * src/Util.cc
  12205. (difftv): Added a cast to (long long int).
  12206. * src/TorrentMan.cc
  12207. (advertisePiece): Use push_front.
  12208. (getAdvertisedPieceIndexes): A performance improvement was made.
  12209. To fix the bug that sends tracker requests without a sleep interval
  12210. when the number of connections is less than 15.
  12211. * src/TrackerWatcherCommand.cc
  12212. (execute): Now the number of connections is not a factor to decide
  12213. whether or not a tracker request should be sent or not.
  12214. * src/Time.h
  12215. (setTimeInSec): New function.
  12216. * src/Time.cc
  12217. (setTimeInSec): New function.
  12218. etc.
  12219. * src/ChokeMessage.cc
  12220. (receivedAction): Removed peer->snubbing = false
  12221. * src/PeerConnection.h
  12222. (receiveHandshake): Updated doc.
  12223. * src/TorrentMan.h
  12224. (getAdvertisedPieceIndexes): Updated the method signature.
  12225. * src/TorrentMan.cc
  12226. (getAdvertisedPieceIndexes): Updated the method signature.
  12227. * src/Time.h
  12228. (getTimeInMicros): Added a cast to (long long int).
  12229. (getTimeInMillis): Added a cast to (long long int).
  12230. * Release 0.5.2
  12231. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12232. To make a listening socket non-block:
  12233. * src/SocketCore.h
  12234. (setNonBlockingMode): New function.
  12235. * src/SocketCore.cc
  12236. (setNonBlockingMode): New function.
  12237. (beginListen): Added a call to setNonBlockingMode().
  12238. (acceptConnection): Call setNonBlockingMode().
  12239. (setBlockingMode): Updated.
  12240. To handle tracker's NAT-checking:
  12241. * src/PeerConnection.cc
  12242. (receiveHandshake): 'msg' param is filled with received data and
  12243. its length is assigned to 'length' param, even if all handshake
  12244. message is not yet received.
  12245. * src/PeerInteractionCommand.cc
  12246. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  12247. a new peer connects to localhost.
  12248. A call to peerInteraction->sendHandshake() was removed because
  12249. it is called from peerInteraction->receiveHandshake(true).
  12250. * src/PeerInteraction.h
  12251. (quickReplied): New variable.
  12252. (receiveHandshake): Added an argument.
  12253. * src/PeerInteraction.cc
  12254. (PeerInteraction): Added the initialization of quickReplied.
  12255. (receiveHandshake): Send handshake message as soon as the info hash
  12256. in a handshake message from a peer is correct.
  12257. To change the random part of peer id and key parameter:
  12258. * src/TorrentMan.h
  12259. (key): New variable.
  12260. * src/TorrentMan.cc
  12261. (setupInternal1): Use Util::randomAlpha() to generate random part
  12262. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  12263. key is also generated by Util::randomAlpha() and it is now 8 character
  12264. long.
  12265. * src/Util.h
  12266. (randomAlpha): New function.
  12267. * src/Util.cc
  12268. (randomAlpha): New function.
  12269. * src/TrackerWatcherCommand.cc
  12270. (execute): In a tracker request: Use torrentMan->key as key parameter.
  12271. Added no_peer_id=1.
  12272. Set snubbing flag to false when a choke message is received from a
  12273. snubbed peer.
  12274. * src/ChokeMessage.cc
  12275. (receivedAction): Set snubbing flag to false.
  12276. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12277. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  12278. * src/SimpleLogger.h (writeHeader): New function.
  12279. * src/SimpleLogger.cc (writeHeader): New function.
  12280. (writeLog): Fixed the bug that causes segfaults if exception message
  12281. contains an unescaped "%" character.
  12282. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  12283. when a tracker request fails.
  12284. * src/Request.cc (parseUrl): Query string is now handled properly.
  12285. * Release 0.5.1
  12286. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12287. To add Time class which represents a specific instant in time and
  12288. its precision is microseconds. Time checking procedures were rewritten
  12289. using this object.
  12290. * src/Time.h: New class.
  12291. * src/Time.cc: New class.
  12292. * src/AbstractCommand.h
  12293. (updateCheckPoint): Removed.
  12294. (isTimeoutDetected): Removed.
  12295. (checkPoint): Changed the type to Time.
  12296. (timeout): New variable.
  12297. (setTimeout): New function.
  12298. * src/AbstractCommand.cc
  12299. (AbstractCommand): Removed the initialization of checkPoint.
  12300. Added the initialization of timeout.
  12301. (updateCheckPoint): Removed.
  12302. (isTimeoutDetected): Removed.
  12303. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12304. * src/PeerChokeCommand.h
  12305. (checkPoint): Changed the type to Time.
  12306. * src/PeerChokeCommand.cc
  12307. (PeerChokeCommand): Removed the initialization of checkPoint.
  12308. (execute): Rewritten using Time object.
  12309. * src/TrackerWatcherCommand.h
  12310. (checkPoint): Changed the type to Time.
  12311. * src/TrackerWatcherCommand.cc
  12312. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  12313. (execute): Rewritten.
  12314. * src/ConsoleDownloadEngine.h
  12315. (cp): Changed the type to Time.
  12316. (startup): Changed the type to Time.
  12317. * src/ConsoleDownloadEngine.cc
  12318. (initStatistics): Use cp.reset(), startup.reset().
  12319. (calculateStatistics): Rewritten using Time object.
  12320. * src/PeerAbstractCommand.h
  12321. (updateCheckPoint): Removed.
  12322. (isTimeoutDetected): Removed.
  12323. (checkPoint): Changed the type to Time.
  12324. * src/PeerAbstractCommand.cc
  12325. (PeerAbstractCommand): Removed the initialization of checkPoint.
  12326. (updateCheckPoint): Removed.
  12327. (isTimeoutDetected): Removed.
  12328. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12329. * src/PeerInteractionCommand.cc
  12330. (PeerInteractionCommand): Removed the initializations of struct
  12331. timeval variables.
  12332. * src/PeerInteractionCommand.h
  12333. (keepAliveCheckPoint): Changed the type to Time.
  12334. (chokeCheckPoint): Changed the type to Time.
  12335. (freqCheckPoint): Changed the type to Time.
  12336. (haveCheckTime): Changed the type to Time.
  12337. * src/PeerInteractionCommand.cc
  12338. (executeInternal): Rewritten using Time object.
  12339. (detectMessageFlooding): Rewritten using Time object.
  12340. (checkLongTimePeerChoking): Rewritten using Time object.
  12341. (sendKeepAlive): Rewritten using Time object.
  12342. (checkHave): Rewritten using Time object.
  12343. * src/SleepCommand.h
  12344. (checkPoint): Changed the type to Time.
  12345. * src/SleepCommand.cc
  12346. (SleepCommand): Removed the initialization of checkPoint.
  12347. (execute): Rewritten using Time object.
  12348. * src/TorrentAutoSaveCommand.h
  12349. (checkPoint): Changed the type to Time.
  12350. * src/TorrentAutoSaveCommand.cc
  12351. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  12352. (execute): Rewritten.
  12353. * src/DownloadCommand.h
  12354. (sw): Changed the type to Time.
  12355. * src/DownloadCommand.cc
  12356. (DownloadCommand): Removed the initialization of sw.
  12357. (executeInternal): Rewritten.
  12358. * src/RequestSlot.h
  12359. (dispatchedTime): Changed the type to Time.
  12360. * src/RequestSlot.cc
  12361. (RequestSlot): Removed the call to setDispatchedTime().
  12362. (setDispatchedTime): Rewirtten.
  12363. (isTimeout): Rewritten.
  12364. (getLatencyInMillis): Rewritten.
  12365. * src/TorrentDownloadEngine.h
  12366. (cp): Changed the type to Time[2].
  12367. (startup): Changed the type to Time.
  12368. * src/TorrentDownloadEngine.cc
  12369. (initStatistics): Rewritten.
  12370. (calculateStatistics): Rewritten.
  12371. * src/DownloadEngine.cc
  12372. (run): Rewritten.
  12373. To detect all attempts to connect to the tracker are failed:
  12374. * src/AbstractCommand.cc
  12375. (execute): Increment e->segmentMan->errors if a command aborted.
  12376. * src/SegmentMan.h
  12377. (errors): New variable.
  12378. * src/SegmentMan.cc
  12379. (SegmentMan): Added the initialization of errors.
  12380. (init): Added the initialization of errors.
  12381. * src/TrackerWatcherCommand.cc
  12382. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  12383. request was failed.
  12384. To handle snubbed peers:
  12385. * src/PeerChokeCommand.cc
  12386. (optUnchokingPeer): Snubbed peers don't get unchoked.
  12387. (execute): Snubbed peers don't get unchoked.
  12388. * src/PeerInteraction.h
  12389. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  12390. * src/PeerInteraction.cc
  12391. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  12392. back the requested 16k block in 60 seconds.
  12393. * src/PieceMessage.cc
  12394. (receivedAction): A peer's snubbed state is cleard if it sends
  12395. the requested 16k block in 60 seconds.
  12396. * src/Peer.h
  12397. (snubbing): New variable.
  12398. * src/Peer.cc
  12399. (resetStatus): Added snubbed = false.
  12400. To fix the bug that causes have message is not sent:
  12401. * src/PeerInteractionCommand.cc
  12402. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  12403. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  12404. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  12405. * src/TorrentMan.h
  12406. (HaveEntry): New class.
  12407. (advertisePiece): Rewritten.
  12408. (getAdvertisedPieceIndexes): Rewritten.
  12409. (Haves): Changed the type.
  12410. (getAdvertisedPieceIndexes): Added an argument.
  12411. Others:
  12412. * src/TorrentMan.h
  12413. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  12414. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  12415. * src/TorrentMan.cc
  12416. (getPeer): Don't check the number of connections here.
  12417. (setupInternal1): Changed peerId.
  12418. * src/PeerInteractionCommand.h
  12419. (KEEP_ALIVE_INTERVAL): New definition.
  12420. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  12421. * src/main.cc
  12422. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  12423. * src/DownloadEngine.h: Removed unnecessary header includes.
  12424. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12425. To fix the bug that causes segfaults if a tracker returns a zero-length
  12426. list as "peers":
  12427. * src/TrackerUpdateCommand.cc
  12428. (execute): Added a check to see wether the type of peers is Data*.
  12429. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12430. * Release 0.5.0
  12431. To fix compile issue with gcc3:
  12432. * src/CancelMessage.h
  12433. (ID): Renamed as ID_t
  12434. (ID_t): New enum.
  12435. * src/RejectMessage.h
  12436. (ID): Renamed as ID_t
  12437. (ID_t): New enum.
  12438. * src/SuggestPieceMessage.h
  12439. (ID): Renamed as ID_t
  12440. (ID_t): New enum.
  12441. * src/AllowedFastMessage.h
  12442. (ID): Renamed as ID_t
  12443. (ID_t): New enum.
  12444. * src/PortMessage.h
  12445. (ID): Renamed as ID_t
  12446. (ID_t): New enum.
  12447. * src/HaveNoneMessage.h
  12448. (ID): Renamed as ID_t
  12449. (ID_t): New enum.
  12450. * src/KeepAliveMessage.h
  12451. (ID): Renamed as ID_t
  12452. (ID_t): New enum.
  12453. * src/HaveAllMessage.h
  12454. (ID): Renamed as ID_t
  12455. (ID_t): New enum.
  12456. * src/UnchokeMessage.h
  12457. (ID): Renamed as ID_t
  12458. (ID_t): New enum.
  12459. * src/BitfieldMessage.h
  12460. (ID): Renamed as ID_t
  12461. (ID_t): New enum.
  12462. * src/PieceMessage.h
  12463. (ID): Renamed as ID_t
  12464. (ID_t): New enum.
  12465. * src/RequestMessage.h
  12466. (ID): Renamed as ID_t
  12467. (ID_t): New enum.
  12468. * src/NotInterestedMessage.h
  12469. (ID): Renamed as ID_t
  12470. (ID_t): New enum.
  12471. * src/ChokeMessage.h
  12472. (ID): Renamed as ID_t
  12473. (ID_t): New enum.
  12474. * src/InterestedMessage.h
  12475. (ID): Renamed as ID_t
  12476. (ID_t): New enum.
  12477. * src/HaveMessage.h
  12478. (ID): Renamed as ID_t
  12479. (ID_t): New enum.
  12480. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12481. * src/PeerAbstractCommand.h
  12482. (beforeSocketCheck): Removed.
  12483. * src/PeerAbstractCommand.cc
  12484. Modified in order to call executeInternal() even if socket check
  12485. and upload limit check fail.
  12486. * src/PeerInteractionCommand.h
  12487. (keepAlive): Removed.
  12488. (sendKeepAlive): New function.
  12489. (checkHave): New function.
  12490. (beforeSocketCheck): Removed.
  12491. * src/PeerInteractionCommand.cc
  12492. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  12493. calls to checkHave() and sendKeepAlive().
  12494. (keepAlive): Renamed to sendKeepAlive().
  12495. (sendKeepAlive): New function.
  12496. (beforeSocketCheck): Removed.
  12497. (checkHave): New function.
  12498. * src/BitfieldMan.cc
  12499. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  12500. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  12501. 0.
  12502. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  12503. * src/TorrentMan.h
  12504. (UsedPieces): Removed.
  12505. (Pieces): New type definition.
  12506. * src/Piece.h: Updated doc.
  12507. * src/Peer.h
  12508. (totalLength): Removed.
  12509. * src/Peer.cc
  12510. (updateLatency): Fixed the latency calculation.
  12511. * src/TorrentMan.cc
  12512. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  12513. than or equal to MAX_PEER_LIST_SIZE.
  12514. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  12515. then return false.
  12516. (deleteOldErrorPeers): Rewritten.
  12517. (deleteUsedPiece): Fixed the miss use of STL remove.
  12518. * src/PeerInteraction.h
  12519. (Pieces): Removed.
  12520. (deleteTimeoutRequestSlot): Removed.
  12521. (deleteCompletedRequestSlot): Removed.
  12522. (checkRequestSlot): New function.
  12523. * src/PeerInteraction.cc
  12524. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  12525. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  12526. (checkRequestSlot): New function.
  12527. * src/DownloadEngine.cc
  12528. (run): Clear activeSockets before calling waitData().
  12529. (waitData): Removed a call to activeSockets.clear().
  12530. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12531. To attempt to handle EINTR:
  12532. * src/SocketCore.cc
  12533. (isReadable): Added EINTR handling.
  12534. (isWritable): Added EINTR handling.
  12535. To improve the performance:
  12536. * src/AbstractCommand.cc
  12537. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12538. * src/PeerInteractionCommand.h
  12539. (receiveMessage): Renamed as receiveMessages().
  12540. (receiveMessages): New function.
  12541. * src/PeerInteractionCommand.cc
  12542. (executeInternal): receiveMessage loop is moved to new receiveMessages
  12543. () function. detectMessageFlooding() is moved here.
  12544. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  12545. (). The flooding detection for have message is comment out.
  12546. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  12547. Util::difftv().
  12548. (receiveMessage): Renamed as receiveMessages().
  12549. (receiveMessages): New function.
  12550. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  12551. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  12552. * src/SleepCommand.cc
  12553. (execute): Use Util::difftvsec() instead of Util::difftv().
  12554. * src/BitfieldMan.h
  12555. (getNthBitIndex): New function.
  12556. (hasMissingPiece): New function.
  12557. (getAllMissingIndexes): New function.
  12558. * src/BitfieldMan.cc
  12559. (countSetBit): Rewritten.
  12560. (getNthBitIndex): New function.
  12561. (getMissingIndexRandomly): Rewritten.
  12562. (hasMissingPiece): New function.
  12563. (getAllMissingIndexes): New function.
  12564. * src/TorrentMan.cc
  12565. (hasMissingPiece): New function.
  12566. (deleteUsedPiece): Rewritten using STL.
  12567. * src/PeerInteraction.cc
  12568. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  12569. is a little bit faster then TorrentMan::getMissingPieceIndex().
  12570. (addRequests): Updated the number of pending requests.
  12571. * src/PeerAbstractCommand.cc
  12572. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12573. (execute): Returns true if TorrentMan::isHalt() is true.
  12574. Corrected the condition of upload limit checking.
  12575. * src/Util.h
  12576. (countBit): New function.
  12577. * src/Util.cc
  12578. (nbits): New variable.
  12579. (countBit): New function.
  12580. * src/DownloadEngine.h
  12581. (SockCmdMap): New type definition.
  12582. (waitData): Added an argument.
  12583. (addSocket): Added an argument.
  12584. (addSocketForReadCheck): Added an argument.
  12585. (addSocketForWriteCheck): Added an argument.
  12586. * src/DownloadEngine.cc
  12587. (run): Executes only commands whose sockets are ready to read or write.
  12588. All commands are executed in every 1 second.
  12589. (waitData): Calls select() again if it returned
  12590. EINTR.
  12591. (addSocket): Saves socket and command object pair to the map.
  12592. (deleteSocket): Deletes socket and command object pair from the map.
  12593. (addSocketForReadCheck): Added an argument.
  12594. (addSocketForWriteCheck): Added an argument.
  12595. * src/DownloadCommand.cc
  12596. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  12597. To send "event=stopped" to the tracker when the application finishes:
  12598. * src/PeerChokeCommand.h
  12599. (checkPoint): New variable.
  12600. * src/PeerChokeCommand.cc
  12601. (PeerChokeCommand): Added the initialization of checkPoint.
  12602. (execute): The interval check is now done by checkPoint, not
  12603. SleepCommand. Return true if TorrentMan::isHalt() is true.
  12604. * src/TorrentMan.h
  12605. (halt): New function.
  12606. (hasMissingPiece): New function.
  12607. (isHalt): New function.
  12608. (setHalt): New function.
  12609. * src/TorrentMan.cc
  12610. (TorrentMan): Added the initialization of halt.
  12611. * src/TorrentAutoSaveCommand.h
  12612. (checkPoint): New variable.
  12613. * src/PeerListenCommand.cc
  12614. (execute): Returns true if TorrentMan::isHalt() is true.
  12615. * src/main.cc
  12616. (setSignalHander): Added flags argument.
  12617. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  12618. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  12619. Removed printDownloadAbortMessage() after torrent downloading loop.
  12620. * src/TorrentAutoSaveCommand.cc
  12621. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  12622. (execute): Returns true if TorrentMan::isHalt() is true.
  12623. The interval check is now done by checkPoint, not SleepCommand.
  12624. * src/TrackerWatcherCommand.cc
  12625. (execute): If TorrentMan::isHalt(), then create a tracker request with
  12626. event=stopped.
  12627. * src/TrackerUpdateCommand.cc
  12628. (prepareForRetry): Do not use SleepCommand here.
  12629. (execute): Returns true if TorrentMan::isHalt() is true.
  12630. Others:
  12631. * src/TorrentMan.cc
  12632. (getMissingPieceIndex): Updated log message.
  12633. * src/PeerInteraction.cc
  12634. (createPeerMessag): Updated log message.
  12635. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12636. To add the ability to download several pieces in mix in a command and
  12637. increase the number of request slots according to request-cancel
  12638. latency:
  12639. * src/PeerInteractionCommand.cc
  12640. (executeInternal): The number of messages to be received at a time
  12641. is increased from 10 to 50.
  12642. * src/LogFactory
  12643. (getInstance): Added NullLogger.
  12644. * src/NullLogger.h: New class.
  12645. * src/BitfieldMan.h
  12646. (getMissingIndex): New function.
  12647. * src/BitfieldMan.cc
  12648. (getMissingIndex): New function.
  12649. * src/TorrentMan.h
  12650. (checkOutPiece): New function.
  12651. (getMissingPieceIndex): New function.
  12652. (getMissingFastPieceIndex): New function.
  12653. (getMissingFastPiece): New function.
  12654. * src/TorrentMan.cc
  12655. (updatePiece): Rewritten using STL.
  12656. (syncPiece): Rewritten using STL.
  12657. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  12658. checkOutPiece().
  12659. (getMissingPieceIndex): New function.
  12660. (getMissingFastPieceIndex): New function.
  12661. (getMissingFastPiece): New function.
  12662. (checkOutPiece): New function.
  12663. * src/PeerInteraction.h
  12664. (Pieces): New type definition.
  12665. (piece): Removed.
  12666. (pieces): New variable.
  12667. (getNewPieceAndSendInterest): Added the "piece" argument.
  12668. (abortPiece): Added the "piece" argument.
  12669. (abortAllPieces): New function.
  12670. (isInRequestSlot): New function.
  12671. (hasDownloadPiece): Added the "index" argument.
  12672. (setDownloadPiece): Removed.
  12673. (getDownloadPiece): Added the "index" argument.
  12674. (updatePiece): New function.
  12675. (createRequestMessage): Added the "index" argument.
  12676. * src/PeerInteraction.cc
  12677. (onChoked): Rewritten.
  12678. (abortPiece): Rewirtten.
  12679. (abortAllPieces): New function.
  12680. (deleteTimeoutRequestSlot): Rewritten.
  12681. Clarified code a little bit.
  12682. (deleteCompletedRequestSlot): Rewritten.
  12683. (isInRequestSlot): New function.
  12684. (syncPiece): Rewritten.
  12685. (updatePiece): New function.
  12686. (getNewPieceAndSendInterest): Rewritten.
  12687. (addRequests): Rewritten.
  12688. (getDownloadPiece): Rewritten.
  12689. (hasDownloadPiece): Rewritten.
  12690. (createRequestMessage): Added the "index" argument.
  12691. * src/common.h
  12692. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  12693. (DIV_FLOOR): New definition.
  12694. * src/PieceMessage.cc
  12695. (receivedAction): Update request-piece latency here.
  12696. * src/RequestSlot.h
  12697. (getLatencyInMillis): New function.
  12698. * src/RequestSlot.cc
  12699. (isTimeout): Rewritten using getLatencyInMillis.
  12700. (getLatencyInMillis): New function.
  12701. * src/Piece.h
  12702. (operator==): New function.
  12703. (getMissingBlockIndex): New function.
  12704. * src/Piece.cc
  12705. (operator==): New function.
  12706. (getMissingBlockIndex): New function.
  12707. * src/Peer.h
  12708. (DEFAULT_LATENCY): New definition.
  12709. (latency): New variable.
  12710. (updateLatency): New function.
  12711. (getLatency): New function.
  12712. * src/Peer.cc
  12713. (resetStatus): Reset latecy.
  12714. (updateLatency): New function.
  12715. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12716. * src/SocketCore.cc
  12717. (isReadable): Added secure to the condition.
  12718. * src/HttpConnection.cc
  12719. (receiveResponse): Fixed a bug that causes no response header
  12720. exception.
  12721. * src/Peer.h
  12722. (getFastSet): Fixed the return value type.
  12723. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12724. To remove a wait from download loop:
  12725. * src/DownloadEngine.cc
  12726. (run): Comment out shortSleep.
  12727. To rewrite the message handling:
  12728. * src/SimplePeerMessage.h: New class.
  12729. * src/SimplePeerMessage.cc: New class.
  12730. * src/CancelMessage.h: Derived from SimplePeerMessage.
  12731. (msg): New variable.
  12732. (create): New function.
  12733. (send): Removed.
  12734. (getMessage): New function.
  12735. (getMessageLength): New function.
  12736. * src/CancelMessage.cc
  12737. (create): New function.
  12738. (receivedAction): Replaced deleteRequestMessageInQueue with
  12739. rejectPieceMessageInQueue.
  12740. (send): Removed.
  12741. (getMessage): New function.
  12742. (getMessageLength): New function.
  12743. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  12744. (msg): New variable.
  12745. (msgLength): New variable.
  12746. (~BitfieldMessage): Deleted msg.
  12747. (send): Removed.
  12748. (getMessage): New function.
  12749. (getMessageLength): New function.
  12750. * src/BitfieldMessage.cc
  12751. (create): New function.
  12752. (send): Removed.
  12753. (getMessage): New function.
  12754. (getMessageLength): New function.
  12755. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  12756. (msg): New variable.
  12757. (sendPredicate): New function.
  12758. (onSendComplete): New function.
  12759. (send): Removed.
  12760. (getMessage): New function.
  12761. (getMessageLength): New function.
  12762. (create): New function.
  12763. * src/ChokeMessage.cc
  12764. (create): New function.
  12765. (send): Removed.
  12766. (sendPredicate): New function.
  12767. (getMessage): New function.
  12768. (getMessageLength): New function.
  12769. (onSendComplete): New function.
  12770. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  12771. (msg): New variable.
  12772. (send): Removed.
  12773. (getMessage): New function.
  12774. (getMessageLength): New function.
  12775. * src/KeepAliveMessage.cc
  12776. (send): Removed.
  12777. (getMessage): New function.
  12778. (getMessageLength): New function.
  12779. * src/PortMessage.h
  12780. (create): New function.
  12781. (receivedAction): Updated log message.
  12782. * src/PortMessage.cc: New file.
  12783. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  12784. (msg): New variable.
  12785. (sendPredicate): New function.
  12786. (onSendComplete): New function.
  12787. (create): New function.
  12788. (send): Removed.
  12789. (getMessage): New function.
  12790. (getMessageLength): New function.
  12791. * src/UnchokeMessage.cc
  12792. (create): New function.
  12793. (send): Removed.
  12794. (sendPredicate): New function.
  12795. (getMessage): New function.
  12796. (getMessageLength): New function.
  12797. (onSendComplete): New function.
  12798. * src/PieceMessage.h
  12799. (leftPieceDataLength): Removed.
  12800. (leftDataLength): New variable.
  12801. (headerSend): New variable.
  12802. (pendingCount): New variable.
  12803. (msgHeader): New variable.
  12804. (sendPieceData): New function.
  12805. (incrementPendingCount): New function.
  12806. (isPendingCountMax): New function.
  12807. (create): New function.
  12808. (getMessageHeader): New function.
  12809. (getMessageHeaderLength): New function.
  12810. * src/PieceMessage.cc
  12811. (create): New function.
  12812. (getMessageHeader): New function.
  12813. (getMessageHeaderLength): New function.
  12814. (send): Rewritten.
  12815. (sendPieceData): New function.
  12816. * src/HaveMessage.h: Derived from SimplePeerMessage.
  12817. (msg): New variable.
  12818. (create): New function.
  12819. (getMessage): New function.
  12820. (getMessageLength): New function.
  12821. * src/HaveMessage.cc
  12822. (create): New function.
  12823. (send): Removed.
  12824. (sendPieceData): New function.
  12825. (getMessage): New function.
  12826. (getMessageLength): New function.
  12827. * src/RequestMessage.h: Derived from SimplePeerMessage.
  12828. (msg): New variable.
  12829. (create): New function.
  12830. (send): Removed.
  12831. (getMessage): New function.
  12832. (getMessageLength): New function.
  12833. * src/RequestMessage.cc
  12834. (create): New function.
  12835. (receivedAction): Added the handling of fast extension.
  12836. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  12837. (send): Removed.
  12838. (getMessage): New function.
  12839. (getMessageLength): New function.
  12840. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  12841. (msg): New variable.
  12842. (sendPredicate): New function.
  12843. (onSendComplete): New function.
  12844. (create): New function.
  12845. (getMessage): New function.
  12846. (getMessageLength): New function.
  12847. * src/InterestedMessage.cc
  12848. (create): New function.
  12849. (send): Removed.
  12850. (sendPieceData): New function.
  12851. (getMessage): New function.
  12852. (getMessageLength): New function.
  12853. (onSendComplete): New function.
  12854. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  12855. (msg): New variable.
  12856. (sendPieceData): New function.
  12857. (onSendComplete): New function.
  12858. (create): New function.
  12859. (send): Removed.
  12860. (getMessage): New function.
  12861. (getMessageLength): New function.
  12862. * src/NotInterestedMessage.cc
  12863. (create): New function.
  12864. (send): Removed.
  12865. (sendPredicate): New function.
  12866. (getMessage): New function.
  12867. (getMessageLength): New function.
  12868. (onSendComplete): New function.
  12869. * src/AllowedFastMessage.h: New class.
  12870. * src/AllowedFastMessage.cc: New class.
  12871. * src/RejectMessage.h: New class.
  12872. * src/RejectMessage.cc: New class.
  12873. * src/SuggestPieceMessage.h: New class.
  12874. * src/SuggestPieceMessage.cc: New class.
  12875. * src/HaveAllMessage.h: New class.
  12876. * src/HaveAllMessage.cc: New class.
  12877. * src/HaveNoneMessage.h: New class.
  12878. * src/HaveNoneMessage.cc: New class.
  12879. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  12880. (msg): New variable.
  12881. (reserved): New variable.
  12882. (create): New function.
  12883. (getId): New function.
  12884. (receivedAction): New function.
  12885. (getMessage): New function.
  12886. (getMessageLength): New function.
  12887. (isFastExtensionSupported): New function.
  12888. * src/HandshakeMessage.cc
  12889. (HandshakeMessage): Moved here from HandshakeMessage.h.
  12890. (create): New function.
  12891. (getMessage): New function.
  12892. (getMessageLength): New function.
  12893. (toString): Added the output of reserved field.
  12894. (check): Added const qualifier.
  12895. (isFastExtensionSupported): New function.
  12896. * src/PeerMessageUtil.h
  12897. (createChokeMessage): Removed.
  12898. (createUnchokeMessage): Removed.
  12899. (createInterestedMessage): Removed.
  12900. (createNotInterestedMessage): Removed.
  12901. (createHaveMessage): Removed.
  12902. (createBitfieldMessage): Removed.
  12903. (createRequestMessage): Removed.
  12904. (createCancelMessage): Removed.
  12905. (createPieceMessage): Removed.
  12906. (createPortMessage): Removed.
  12907. (createChokeMessage): Removed.
  12908. (createUnchokeMessage): Removed.
  12909. (createInterestedMessage): Removed.
  12910. (createNotInterestedMessage): Removed.
  12911. (createHaveMessage): Removed.
  12912. (createBitfieldMessage): Removed.
  12913. (createRequestMessage): Removed.
  12914. (createCancelMessage): Removed.
  12915. (createPieceMessage): Removed.
  12916. (createKeepAliveMessage): Removed.
  12917. (createHandshakeMessage): Removed.
  12918. (setIntParam): New function.
  12919. (createPeerMessageString): New function.
  12920. * src/PeerMessageUtil.cc
  12921. (createChokeMessage): Removed.
  12922. (createUnchokeMessage): Removed.
  12923. (createInterestedMessage): Removed.
  12924. (createNotInterestedMessage): Removed.
  12925. (createHaveMessage): Removed.
  12926. (createBitfieldMessage): Removed.
  12927. (createRequestMessage): Removed.
  12928. (createCancelMessage): Removed.
  12929. (createPieceMessage): Removed.
  12930. (createPortMessage): Removed.
  12931. (createRequestMessage): Removed.
  12932. (createCancelMessage): Removed.
  12933. (createPieceMessage): Removed.
  12934. (createHaveMessage): Removed.
  12935. (createChokeMessage): Removed.
  12936. (createUnchokeMessage): Removed.
  12937. (createInterestedMessage): Removed.
  12938. (createNotInterestedMessage): Removed.
  12939. (createBitfieldMessage): Removed.
  12940. (createKeepAliveMessage): Removed.
  12941. (createHandshakeMessage): Removed.
  12942. (setIntParam): New function.
  12943. (createPeerMessageString): New function.
  12944. * src/PeerConnection.h
  12945. (peer): Removed.
  12946. (torrentMan): Removed.
  12947. (createNLengthMessage): Removed.
  12948. (setIntParam): Removed.
  12949. (writeOutgoingMessageLog): Removed all overloaded functions.
  12950. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12951. (sendMessage): New function.
  12952. (sendHandshake): Removed.
  12953. (sendKeepAlive): Removed.
  12954. (sendChoke): Removed.
  12955. (sendUnchoke): Removed.
  12956. (sendInterested): Removed.
  12957. (sendNotInterested): Removed.
  12958. (sendHave): Removed.
  12959. (sendBitfield): Removed.
  12960. (sendRequest): Removed.
  12961. (sendPiece): Removed.
  12962. (sendPieceHeader): Removed.
  12963. (sendPieceData): Removed.
  12964. (sendCancel): Removed.
  12965. (getPeer): Removed.
  12966. * src/PeerConnection.cc
  12967. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12968. (sendHandshake): Removed.
  12969. (sendKeepAlive): Removed.
  12970. (createNLengthMessage): Removed.
  12971. (setIntParam): Removed.
  12972. (writeOutgoingMessageLog): Removed all overloaded functions.
  12973. (sendChoke): Removed.
  12974. (sendUnchoke): Removed.
  12975. (sendInterested): Removed.
  12976. (sendNotInterested): Removed.
  12977. (sendHave): Removed.
  12978. (sendBitfield): Removed.
  12979. (sendRequest): Removed.
  12980. (sendPiece): Removed.
  12981. (sendPieceHeader): Removed.
  12982. (sendPieceData): Removed.
  12983. (sendMessage): New function.
  12984. (sendCancel): Removed.
  12985. * src/PeerInteractionCommand.cc
  12986. (PeerInteractionCommand): Call setUploadLimit.
  12987. (executeInternal): Call setUploadLimit.
  12988. Added the handling of "inProgress" state of handshake message.
  12989. Call sendBitfield() or sendAllowdFast() instead of deprecated
  12990. sendNow().
  12991. (keepAlive): Call addMessage and sendMessage instead of deprecated
  12992. sendNow().
  12993. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  12994. * src/TorrentMan.h
  12995. (PEER_ID_LENGTH): New definition.
  12996. (hasAllPieces): New function.
  12997. * src/TorrentMan.cc
  12998. (getMissingPiece): Added the handling of fast extension.
  12999. (cancelPiece): Call updatePiece().
  13000. (hasAllPieces): New function.
  13001. * src/PeerInteraction.h
  13002. (fastSet): New variable.
  13003. (getNewPieceAndSendInterest): Changed the return type to void.
  13004. (send): Renamed as sendMessages.
  13005. (deleteAllRequestSlot): Removed.
  13006. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  13007. (cancelAllRequest): Removed all overloaded functions.
  13008. (deleteAllRequestSlot): Removed.
  13009. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  13010. (rejectPieceMessageInQueue): New function.
  13011. (rejectAllPieceMessageInQueue): New function.
  13012. (onChoked): New function.
  13013. (isSendingMessageInProgress): New function.
  13014. (getCorrespondingRequestSlot): Changed its arguments.
  13015. (isInFastSet): New function.
  13016. (addFastSetIndex): New function.
  13017. (addRequests): New function.
  13018. (sendNow): Removed.
  13019. (trySendNow): Removed.
  13020. (sendBitfield): New function.
  13021. (sendAllowdFast): New function.
  13022. (createHaveAllMessage): New function.
  13023. (createHaveNoneMessage): New function.
  13024. (createRejectMessage): New function.
  13025. (createAllowedFastMessage): New function.
  13026. * src/PeerInteraction.cc
  13027. (send): Renamed as sendMessages.
  13028. (sendMessages): New function.
  13029. (MsgPushBack): New class.
  13030. (isSendingMessageInProgress): New function.
  13031. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  13032. (rejectAllPieceMessageInQueue): New function.
  13033. Added the handling of fast extension.
  13034. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  13035. (rejectPieceMessageInQueue): New function.
  13036. Added the handling of fast extension.
  13037. (deleteRequestSlot): Replaced for loop with std::find.
  13038. (onChoked): New function.
  13039. (deleteAllRequestSlot): Removed.
  13040. (abortPiece): Rewirtten.
  13041. (deleteTimeoutRequestSlot): Updated log messages.
  13042. (getCorrespondingRequestSlot): Changed its arguments.
  13043. (cancelAllRequest): Removed all overloaded functions.
  13044. (receiveHandshake): Added the check to see whether an incoming peer
  13045. supports fast extension.
  13046. (createHandshakeMessage): Use HandshakeMessage::create instead of
  13047. PeerMessageUtil.
  13048. (createPeerMessage): Use create() of each message class instead of
  13049. PeerMessageUtil.
  13050. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  13051. AllowedFastMessage were added.
  13052. (getNewPieceAndSendInterest): Changed its return value type to void.
  13053. Added the handling of fast extension.
  13054. (addRequests): New function.
  13055. (sendNow): Removed.
  13056. (sendHandshake): Rewritten.
  13057. (trySendNow): Removed.
  13058. (sendBitfield): New function.
  13059. (sendAllowdFast): New function.
  13060. (isInFastSet): New function.
  13061. (addFastSetIndex): New function.
  13062. (createRequestMessage): Use RequestMessage::create instead of
  13063. PeerMessageUtil.
  13064. (createCancelMessage): Use CancelMessage::create instead of
  13065. PeerMessageUtil.
  13066. (createPieceMessage): Use PieceMessage::create instead of
  13067. PeerMessageUtil.
  13068. (createHaveMessage): Use HaveMessage::create instead of
  13069. PeerMessageUtil.
  13070. (createChokeMessage): Use ChokeMessage::create instead of
  13071. PeerMessageUtil.
  13072. (createUnchokeMessage): Use UnchokeMessage::create instead of
  13073. PeerMessageUtil.
  13074. (createInterestedMessage): Use InterestedMessage::create instead of
  13075. PeerMessageUtil.
  13076. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  13077. of PeerMessageUtil.
  13078. (createBitfieldMessage): Use BitfieldMessage::create instead of
  13079. PeerMessageUtil.
  13080. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  13081. PeerMessageUtil.
  13082. (createHaveAllMessage): New function.
  13083. (createHaveNoneMessage): New function.
  13084. (createRejectMessage): New function.
  13085. (createAllowedFastMessage: New function.
  13086. * src/Util.h
  13087. (sha1Sum): New function.
  13088. (computeFastSet): New function.
  13089. * src/Util.cc
  13090. (sha1Sum): New function.
  13091. (computeFastSet): New function.
  13092. * src/Peer.h
  13093. (fastExtensionEnabled): New variable.
  13094. (fastSet): New variable.
  13095. (setAllBitfield): New function.
  13096. (setFastExtensionEnabled): New function.
  13097. (isFastExtensionEnabled): New function.
  13098. (addFastSetIndex): New function.
  13099. (getFastSet): New function.
  13100. (isInFastSet): New function.
  13101. (countFastSet): New function.
  13102. * src/Peer.cc
  13103. (isInFastSet): New function.
  13104. (addFastSetIndex): New function.
  13105. (setAllBitfield): New function.
  13106. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  13107. sockets.
  13108. * src/PeerAbstractCommand.cc
  13109. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  13110. and uploadLimit.
  13111. (execute): Changed the procedure of checking sockets. The upload speed
  13112. checking were added.
  13113. (setUploadLimit): New function.
  13114. (setUploadLimitCheck): New function.
  13115. * src/PeerAbstractCommand.h
  13116. (setUploadLimit): New function.
  13117. (setUploadLimitCheck): New function.
  13118. (uploadLimit): New variable.
  13119. (uploadLimitCheck): New variable.
  13120. To contact a tracker regularly:
  13121. * src/TrackerWatcherCommand.h (interval): New variable.
  13122. (checkPoint): New variable.
  13123. (TrackerWatcherCommand): Added interval argument.
  13124. * src/TrackerWatcherCommand.cc
  13125. (TrackerWatcherCommand): Initialized checkPoint.
  13126. (execute): Now a tracker is contacted in every specified period.
  13127. If peer list is not needed, send request with numwant=0.
  13128. * src/TrackerUpdateCommand.cc
  13129. (execute): Updated log messages.
  13130. * src/DownloadEngine.cc
  13131. (~DownloadEngine): Removed two asserts.
  13132. (waitData): Uncommented wfds. May be a bug fix.
  13133. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13134. * src/PeerInteractionCommand.h
  13135. (checkInactiveConnection): Removed.
  13136. * src/PeerInteractionCommand.cc
  13137. (executeInternal): Removed following function calls:
  13138. detectMessageFlooding(), checkLongTimePeerChoking and
  13139. checkInactiveConnection().
  13140. (checkInactiveConnection): Removed.
  13141. (detectMessageFlooding): Removed function call to
  13142. checkInactiveConnection().
  13143. * src/PeerMessageUtil.h
  13144. (createChokeMessage): New function. Overload.
  13145. (createUnchokeMessage): New function. Overload.
  13146. (createInterestedMessage): New function. Overload.
  13147. (createNotInterestedMessage): New function. Overload.
  13148. (createHaveMessage): New function. Overload.
  13149. (createBitfieldMessage): New function. Overload.
  13150. (createRequestMessage): New function. Overload.
  13151. (createCancelMessage): New function. Overload.
  13152. (createPieceMessage): New function. Overload.
  13153. (createKeepAliveMessage): New function. Overload.
  13154. * src/PeerMessageUtil.cc
  13155. (createChokeMessage): New function. Overload.
  13156. (createUnchokeMessage): New function. Overload.
  13157. (createInterestedMessage): New function. Overload.
  13158. (createNotInterestedMessage): New function. Overload.
  13159. (createHaveMessage): New function. Overload.
  13160. (createBitfieldMessage): New function. Overload.
  13161. (createRequestMessage): New function. Overload.
  13162. (createCancelMessage): New function. Overload.
  13163. (createPieceMessage): New function. Overload.
  13164. (createKeepAliveMessage): New function. Overload.
  13165. * src/SendMessageQueue.cc
  13166. (createRequestMessage): Use PeerMessageUtil.
  13167. (createCancelMessage): Use PeerMessageUtil.
  13168. (createPieceMessage): Use PeerMessageUtil.
  13169. (createHaveMessage): Use PeerMessageUtil.
  13170. (createChokeMessage): Use PeerMessageUtil.
  13171. (createUnchokeMessage): Use PeerMessageUtil.
  13172. (createInterestedMessage): Use PeerMessageUtil.
  13173. (createNotInterestedMessage): Use PeerMessageUtil.
  13174. (createBitfieldMessage): Use PeerMessageUtil.
  13175. (createKeepAliveMessage): Use PeerMessageUtil.
  13176. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  13177. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  13178. * src/PeerInteraction.h: New class.
  13179. * src/PeerInteraction.cc: New class.
  13180. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13181. Each peer message has its own class.
  13182. * src/PendingMessages.h: Removed.
  13183. * src/PendingMessages.cc: Removed. The sending process was moved to
  13184. each message class.
  13185. * src/RequestSlotMan.h: Removed.
  13186. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  13187. SendMessageQueue.
  13188. * src/RequestMessage.h: New class.
  13189. * src/RequestMessage.cc: New class.
  13190. * src/CancelMessage.h: New class.
  13191. * src/CancelMessage.cc: New class.
  13192. * src/BitfieldMessage.h: New class.
  13193. * src/BitfieldMessage.cc: New class.
  13194. * src/ChokeMessage.h: New class.
  13195. * src/ChokeMessage.cc: New class.
  13196. * src/KeepAliveMessage.h: New class.
  13197. * src/KeepAliveMessage.cc: New class.
  13198. * src/PortMessage.h: New class.
  13199. * src/UnchokeMessage.h: New class.
  13200. * src/UnchokeMessage.cc: New class.
  13201. * src/PieceMessage.h: New class.
  13202. * src/PieceMessage.cc: New class.
  13203. * src/HaveMessage.h: New class.
  13204. * src/HaveMessage.cc: New class.
  13205. * src/BitfieldMessage.h: New class.
  13206. * src/BitfieldMessage.cc: New class.
  13207. * src/NotInterestedMessage.h: New class.
  13208. * src/NotInterestedMessage.cc: New class.
  13209. * src/InterestedMessage.h: New class.
  13210. * src/InterestedMessage.cc: New class.
  13211. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  13212. (getSendMessageQueue): New function.
  13213. (setSendMessageQueue): New function.
  13214. * src/HandshakeMessage.cc: New class.
  13215. * src/PeerConnection.h (receiveMessage): Changed return value and
  13216. arguments.
  13217. (receiveHandshake): Changed return value and arguments.
  13218. * src/PeerConnection.cc (receiveMessage): Do not create message class
  13219. here.
  13220. (receiveHandshake): Do not create handshake class here.
  13221. * src/PeerInteractionCommand.h (peerConnection): Removed.
  13222. (piece): Removed.
  13223. (syncPiece): Removed.
  13224. (sendInterest): Removed.
  13225. (sendMessages): Removed.
  13226. (createRequestPendingMessage): Removed.
  13227. (checkPieceHash): Removed.
  13228. (erasePieceOnDisk): Removed.
  13229. (getNewPieceAndSendInterest): Removed.
  13230. (onGotNewPice): Removed.
  13231. (onGotWrongPiece): Removed.
  13232. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13233. Removed peerConnection, piece.
  13234. (~PeerInteractionCommand): Removed peerConnection.
  13235. (executeInternal): Use sendMessageQueue instead of peerConnection.
  13236. (syncPiece): Moved to SendMessageQueue.
  13237. (decideChoking): Removed PendingMessage.
  13238. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  13239. The action after receiving peer message was moved to each message
  13240. class.
  13241. (onGotNewPice): Moved to SendMessageQueue.
  13242. (onGotWrongPiece): Moved to SendMessageQueue.
  13243. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  13244. (sendInterest): Moved to SendMessageQueue.
  13245. (createRequestPendingMessage): Removed.
  13246. (sendMessages): Moved to SendMessageQueue.
  13247. (onAbort): Use SendMessageQueue::abortPiece()
  13248. (keepAlive): Use sendMessageQueue instead of peerConnection.
  13249. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  13250. (checkPieceHash): Moved to SendMessageQueue.
  13251. (erasePieceOnDisk): Moved to SendMessageQueue.
  13252. * src/PeerMessageUtil.h
  13253. (createBitfieldMessage): Removed.
  13254. (createHaveMessage): Changed return value and arguments.
  13255. (createBitfieldMessage): Changed return value and arguments.
  13256. (createRequestCancelMessage): Removed.
  13257. (createPieceMessage): Changed return value and arguments.
  13258. (getShortIntParam): New function.
  13259. (checkIndex): Changed arguments.
  13260. (checkBegin): Changed arguments.
  13261. (checkLength): Changed arguments.
  13262. (checkPieceOffset): Removed.
  13263. (checkRange): New function.
  13264. (checkBitfield): Changed arguments.
  13265. (createPeerMessage): Removed.
  13266. (checkIntegrity): Removed.
  13267. (createHandshakeMessage): Changed arguments.
  13268. (createChokeMessage): New function.
  13269. (createUnchokeMessage): New function.
  13270. (createInterestedMessage): New function.
  13271. (createNotInterestedMessage): New function.
  13272. (createRequestMessage): New function.
  13273. (createCancelMessage): New function.
  13274. (createPortMessage): New function.
  13275. * src/PeerMessageUtil.cc
  13276. (createBitfieldMessage): Removed.
  13277. (createHaveMessage): Changed return value and arguments.
  13278. (createBitfieldMessage): Changed return value and arguments.
  13279. (createRequestCancelMessage): Removed.
  13280. (createPieceMessage): Changed return value and arguments.
  13281. (getShortIntParam): New function.
  13282. (checkIndex): Changed arguments.
  13283. (checkBegin): Changed arguments.
  13284. (checkLength): Changed arguments.
  13285. (checkPieceOffset): Removed.
  13286. (checkRange): New function.
  13287. (checkBitfield): Changed arguments.
  13288. (createPeerMessage): Removed.
  13289. (checkIntegrity): Removed.
  13290. (createHandshakeMessage): Changed arguments.
  13291. (createChokeMessage): New function.
  13292. (createUnchokeMessage): New function.
  13293. (createInterestedMessage): New function.
  13294. (createNotInterestedMessage): New function.
  13295. (createRequestMessage): New function.
  13296. (createCancelMessage): New function.
  13297. (createPortMessage): New function.
  13298. * src/PeerMessage.h
  13299. (id): Removed.
  13300. (index): Removed.
  13301. (begin): Removed.
  13302. (length): Removed.
  13303. (bitfield): Removed.
  13304. (bitfieldLength): Removed.
  13305. (block): Removed.
  13306. (blockLength): Removed.
  13307. (inProgress): New variable.
  13308. (cuid): New variable.
  13309. (peer): New variable.
  13310. (sendMessageQueue): New variable.
  13311. (logger): New variable.
  13312. (setBitfield): Removed.
  13313. (getBitfield): Removed.
  13314. (setBlock): Removed.
  13315. (getBlock): Removed.
  13316. (getBitfieldLength): Removed.
  13317. (getBlockLength): Removed.
  13318. (isInProgress): New function.
  13319. (toString): Made pure virtual.
  13320. (check): New function.
  13321. (send): New function.
  13322. (receivedAction): New function.
  13323. (getId): Made pure virtual.
  13324. (setId): Removed.
  13325. (getIndex): Removed.
  13326. (setIndex): Removed.
  13327. (getBegin): Removed.
  13328. (setBegin): Removed.
  13329. (getLength): Removed.
  13330. (setLength): Removed.
  13331. (getCuid): New function.
  13332. (setCuid): New function.
  13333. (getPeer): New function.
  13334. (setPeer): New function.
  13335. (getSendMessageQueue): New function.
  13336. (setSendMessageQueue): New function.
  13337. (ID): Removed.
  13338. * src/PeerMessage.cc
  13339. (setBitfield): Removed.
  13340. (setBlock): Removed.
  13341. (toString): Removed.
  13342. * src/TorrentMan.h
  13343. (getPieceLength): New function.
  13344. (getPieceLength): New function.
  13345. * src/SendMessageQueue.h
  13346. (REQUEST_TIME_OUT): New definition.
  13347. (RequestSlots): New definition.
  13348. (MessageQueue): New definition.
  13349. (requestSlotMan): Removed.
  13350. (pendingMessages): Removed.
  13351. (requestSlots): New variable.
  13352. (messageQueue): New variable.
  13353. (torrentMan): New variable.
  13354. (peerConnection): New variable.
  13355. (peer): New variable.
  13356. (piece): New variable.
  13357. (getNewPieceAndSendInterest): New function.
  13358. (createPeerMessage): New function.
  13359. (createHandshakeMessage): New function.
  13360. (send): Made private.
  13361. (setPeerMessageCommonProperty): New function.
  13362. (deleteAllRequestSlot): New function.
  13363. (deleteRequestMessageInQueue): New function.
  13364. (cancelAllRequest): Made private.
  13365. (cancelAllRequest): Made private.
  13366. (countRequestSlot): Made private.
  13367. (addPendingMessage): Removed.
  13368. (deletePendingPieceMessage): Removed.
  13369. (deletePendingRequestMessage): Removed.
  13370. (addMessage): New function.
  13371. (deletePieceMessageInQueue): New function.
  13372. (deleteTimeoutRequestSlot): Changed argument.
  13373. (deleteCompletedRequestSlot): Changed argument.
  13374. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  13375. (getCorrespondingRequestSlot): New function.
  13376. (countPendingMessage): Removed.
  13377. (countMessageInQueue): New function.
  13378. (getTorrentMan): New function.
  13379. (getPeerConnection): New function.
  13380. (hasDownloadPiece): New function.
  13381. (getDownloadPiece): New function.
  13382. (setDownloadPiece): New function.
  13383. (syncPiece): New function.
  13384. (sendMessages): New function.
  13385. (sendNow): New function.
  13386. (trySendNow): New function.
  13387. (abortPiece): New function.
  13388. (sendHandshake): New function.
  13389. (receiveMessage): New function.
  13390. (receiveHandshake): New function.
  13391. (createRequestMessage): New function.
  13392. (createCancelMessage): New function.
  13393. (createPieceMessage): New function.
  13394. (createHaveMessage): New function.
  13395. (createChokeMessage): New function.
  13396. (createUnchokeMessage): New function.
  13397. (createInterestedMessage): New function.
  13398. (createNotInterestedMessage): New function.
  13399. (createBitfieldMessage): New function.
  13400. (createKeepAliveMessage): New function.
  13401. * src/SendMessageQueue.cc
  13402. (SendMessageQueue): Removed requestSlotMan.
  13403. Instantiated peerConnection here.
  13404. (~SendMessageQueue): Removed requestSlotMan.
  13405. Added deletion of peerConnection and the contents of messageQueue.
  13406. (send): Updated according to the change of messageQueue.
  13407. (addPendingMessage): Renamed to addMessage.
  13408. (addMessage): New function.
  13409. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  13410. (deletePieceMessageInQueue): New function.
  13411. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  13412. (deleteRequestMessageInQueue): New function.
  13413. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  13414. here.
  13415. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  13416. (...) was moved here.
  13417. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  13418. moved here.
  13419. (deleteCompletedRequestSlot):
  13420. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  13421. (getCorrespondingRequestSlot):
  13422. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  13423. And renamed to getCorrespondingRequestSlot, correcting a typo.
  13424. (countPendingMessage): Renamed to countMessageInQueue.
  13425. (countMessageInQueue): New function.
  13426. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  13427. (receiveHandshake): New function.
  13428. (createHandshakeMessage): New function.
  13429. (receiveMessage): New function.
  13430. (createPeerMessage): New function.
  13431. (syncPiece): New function.
  13432. (getNewPieceAndSendInterest): New function.
  13433. (sendMessages): New function.
  13434. (sendNow): New function.
  13435. (trySendNow): New function.
  13436. (sendHandshake): New function.
  13437. (abortPiece): New function.
  13438. (getDownloadPiece): New function.
  13439. (getPeerMessageCommonProperty): New function.
  13440. (createRequestMessage): New function.
  13441. (createCancelMessage): New function.
  13442. (createPieceMessage): New function.
  13443. (createHaveMessage): New function.
  13444. (createChokeMessage): New function.
  13445. (createUnchokeMessage): New function.
  13446. (createInterestedMessage): New function.
  13447. (createNotInterestedMessage): New function.
  13448. (createBitfieldMessage): New function.
  13449. (createKeepAliveMessage): New function.
  13450. To add simple Content-Disposition support:
  13451. * src/HttpResponseCommand.h (determinFilename): New function.
  13452. * src/HttpResponseCommand.cc (executeInternal):
  13453. Use determinFilename(headers) instead of req->getFile() when comparing
  13454. filename.
  13455. (determinFilename): New function.
  13456. (handleDefaultEncoding): Use determinFilename(headers) instead of
  13457. req->getFile().
  13458. (handleOtherEncoding): Use determinFilename(headers) instead of
  13459. req->getFile().
  13460. * src/Util.h (getContentDispositionFilename): New function.
  13461. * src/Util.cc (getContentDispositionFilename): New function.
  13462. * src/LogFactory.h (release): New function.
  13463. * src/LogFactory.cc (release): New function.
  13464. To fix a bug that causes out-of-bound exception when HTTP status
  13465. line is wrong:
  13466. * src/HttpConnection.cc (receiveResponse): Added a check for header
  13467. size.
  13468. * src/common.h (Deleter): New class.
  13469. * src/SegmentMan.cc
  13470. (~SegmentMan): Added deletion of splitter and diskWriter.
  13471. * src/DownloadEngine.h
  13472. (Commands): Use deque.
  13473. (clearQueue): New function.
  13474. * src/DownloadEngine.cc
  13475. (~DownloadEngine): Added deletion of segmentMan.
  13476. (cleanQueue): New function.
  13477. * src/TorrentDownloadEngine.h
  13478. (TorrentDownloadEngine): The implementation was moved to
  13479. TorrentDownloadEngine.cc.
  13480. (~TorrentDownloadEngine): The implementation was moved to
  13481. TorrentDownloadEngine.cc.
  13482. * src/TorrentDownloadEngine.cc
  13483. (~TorrentDownloadEngine): Added deletion of torrentMan.
  13484. * src/main.cc
  13485. (clearRequest): Removed.
  13486. (handler): Added deletion of e.
  13487. (torrentHandler): Added deletion of te.
  13488. (main): Do not share splitter.
  13489. Use Deleter instead of clearRequest.
  13490. Deletion of classes were updated.
  13491. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13492. * src/main.cc (main): Fixed typo.
  13493. * src/message.h: Fixed typo.
  13494. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  13495. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13496. To add --select-file command-line option:
  13497. * src/Util.cc
  13498. (unfoldRange): New function.
  13499. (getNum): New function.
  13500. (unfoldSubRange): New function
  13501. * src/main.cc
  13502. (showUsage): Added help message.
  13503. (main): Added --select-file command-line option. Updated the layout of
  13504. file listing.
  13505. * src/common.h
  13506. (Integers): New definition.
  13507. * src/SocketCore.cc
  13508. (writeData): Removed timeout argument.
  13509. (readData): Removed timeout argument.
  13510. (peekData): Removed timeout argument.
  13511. * src/Socket.cc
  13512. (writeData): Removed timeout argument.
  13513. (readData): Removed timeout argument.
  13514. (peekData): Removed timeout argument.
  13515. * Release 0.4.1
  13516. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13517. To deploy upload rate based choking algorithm:
  13518. * src/PeerInteractionCommand.cc
  13519. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  13520. peer currently used.
  13521. (decideChoking): Deleted the choke/unchoke decision algorithm when
  13522. download completes. Simplified.
  13523. (receiveMessage): Updated.
  13524. * src/TorrentMan.h
  13525. (activePeers): New variable.
  13526. (addActivePeer): New function.
  13527. (getActivePeers): New function.
  13528. (deleteActivePeer): New function.
  13529. * src/TorrentMan.cc
  13530. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  13531. * src/PeerAbstractCommand.cc
  13532. (onAbort): Use peer->resetStatus().
  13533. * src/main.cc
  13534. (PeerChokeCommand.h): Included.
  13535. (main): Added the instance of ChokingCommand to the command queue.
  13536. * src/Peer.h
  13537. (amChoking): Renamed from amChocking
  13538. (chokingRequired): New variable.
  13539. (optUnchoking): New variable.
  13540. (deltaUpload): New variable.
  13541. (deltaDownload): New variable.
  13542. (addDeltaUpload): New function.
  13543. (resetDeltaUpload): New function.
  13544. (addDeltaDownload): New function.
  13545. (resetDeltaDownload): New function.
  13546. (addPeerUpload): Added a call to addDeltaUpload.
  13547. (addPeerDownload): Added a call to addDeltaDownload.
  13548. * src/Peer.cc
  13549. (shouldBeChoking): Renamed from shouldChoke.
  13550. (resetStatus): New function.
  13551. * src/PeerChokeCommand.h: New class.
  13552. * src/PeerChokeCommand.cc: New class.
  13553. To add lazy upload speed limiter:
  13554. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  13555. statistics calculation to TorrentDownloadEngine.
  13556. * src/TorrentConsoleDownloadEngine.cc
  13557. (sendStatistics): Renamed from printStatistics.
  13558. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  13559. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  13560. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  13561. * src/TorrentDownloadEngine.h: Added the variables for statistics
  13562. calculation.
  13563. (sendStatistics): New function as pure virtual function.
  13564. (getUploadSpeed): New function.
  13565. * src/TorrentDownloadEngine.cc
  13566. (initStatistics): New function.
  13567. (calculateSpeed): New function.
  13568. (calculateStatistics): New function.
  13569. * src/SendMessageQueue.h
  13570. (uploadLength): New variable.
  13571. (send): Added an argument.
  13572. (setUploadLimit): New function.
  13573. (getUploadLimit): New function.
  13574. * src/SendMessageQueue.cc
  13575. (send): Added upload speed limiter.
  13576. * src/prefs.h
  13577. (PREF_UPLOAD_LIMIT): New definition.
  13578. * src/PeerInteractionCommand.cc
  13579. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  13580. * src/main.cc
  13581. (main): Added --upload-limit option
  13582. For bug fixes:
  13583. * src/main.cc
  13584. (showUsage): Corrected --listen-port help
  13585. Other changes:
  13586. * src/TorrentMan.cc
  13587. (getPeer): Return nullPeer if connection is grather than
  13588. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  13589. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13590. To add some useful information to the exception message:
  13591. * src/SocketCore.cc : Updated messages.
  13592. * src/SegmentMan.cc :
  13593. * src/TorrentMan.cc : Updated messages.
  13594. * src/MultiDiskWriter.cc : Updated messages.
  13595. * src/Util.cc : Updated messages.
  13596. * src/AbstractDiskWriter.cc : Updated messages.
  13597. * src/PreAllocationDiskWriter.cc : Updated messages.
  13598. * src/message.cc : Added new messages. Updated some messages.
  13599. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  13600. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  13601. Updated threshold from 30 to 15.
  13602. * src/AbstractDiskWriter.h (filename): New variable.
  13603. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  13604. (createFile): Assigned filename.
  13605. * src/main.cc: Updated the help message for http-auth-scheme.
  13606. * Release 0.4.0
  13607. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13608. To add TrackerUpdateCommand with which replaces
  13609. CompactTrackerResponseProcessor:
  13610. * src/TrackerWatcherCommand.h (req): Removed.
  13611. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  13612. if the number of peer connections are less than 30.
  13613. * src/ByteArrayDiskWriter.h (readData): Implemented.
  13614. * src/SegmentMan.h (diskWriter): New function.
  13615. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  13616. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  13617. (main): Use TrackerUpdateCommand.
  13618. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  13619. (req): New variable.
  13620. (setTrackerResponseProcessor): Removed.
  13621. (getTrackerResponseProcessor): Removed.
  13622. (processTrackerResponse): Removed.
  13623. * src/DownloadEngine.h (diskWriter): Removed.
  13624. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  13625. to torrentMan->processTrackerResponse().
  13626. To add Util::expandBuffer:
  13627. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  13628. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  13629. * src/Util.h (expandBuffer): New function.
  13630. To fix the bug that causes segmentation fault when "-l ." is specified
  13631. in command-line option:
  13632. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  13633. (openFile): New function.
  13634. (closeFile): New function.
  13635. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  13636. (~SimpleLogger): Call closeFile();
  13637. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  13638. * src/main.cc (main): Added a check to see logger is configured
  13639. properly.
  13640. To enable HTTP authentication without specifying "--http-auth-scheme"
  13641. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  13642. * src/HttpConnection.cc (createRequest): Send Authorization header
  13643. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  13644. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  13645. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  13646. * src/Peer.cc (shouldChoke): Updated algorithm.
  13647. * src/message.h (EX_AUTH_FAILED): New definition.
  13648. (EX_FILE_OPEN): New definition.
  13649. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  13650. if status == 401.
  13651. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  13652. if req->isTorrent == true.
  13653. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  13654. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  13655. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  13656. (createFile): Updated message.
  13657. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13658. To add a readout of estimated remaining time to normal HTTP/FTP
  13659. downloads:
  13660. * src/ConsoleDownloadEngine.h (startup): New variable.
  13661. (startupLength): New variable.
  13662. (isStartupLengthSet): New variable.
  13663. (avgSpeed): New variable.
  13664. (eta): New variable.
  13665. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  13666. estimated remaining time.
  13667. (initStatistics): Initialized newly added variables.
  13668. (calculateStatistics): Calculate average speed and estimated remaining
  13669. time.
  13670. To decouple TorrentDownloadEngine from HttpResponseCommand:
  13671. * src/TrackerDownloadCommand.h: Removed.
  13672. * src/TrackerDownloadCommand.cc: Removed.
  13673. * src/TrackerInitCommand.h: Removed.
  13674. * src/TrackerInitCommand.cc: Removed.
  13675. * src/TrackerUpdateCommand.h: Removed.
  13676. * src/TrackerUpdateCommand.cc: Removed.
  13677. * src/TrackerWatcherCommand.cc (execute): The construction of request
  13678. url written in TrackerInitCommand was moved here. Do not create
  13679. tracker request command if torrentMan->trackers != 0.
  13680. * src/CompactTrackerResponseProcessor.h: New class.
  13681. * src/CompactTrackerResponseProcessor.cc: New class.
  13682. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  13683. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  13684. Decoupled TorrentDownloadEngine from this.
  13685. * src/SegmentMan.h (init): New function.
  13686. * src/SegmentMan.cc (init): New function.
  13687. * src/TorrentMan.h (responseProcessor): New variable.
  13688. (trackers): New variable.
  13689. (setTrackerResponseProcessor): New function.
  13690. (getTrackerResponseProcessor): New function.
  13691. (processTrackerResponse): New function.
  13692. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  13693. (processTrackerResponse): New function.
  13694. * src/main.cc (main): Use ByteArrayDiskWriter and
  13695. CompactTrackerResponseProcessor.
  13696. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  13697. processTrackerResponse().
  13698. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  13699. readout.
  13700. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  13701. which indicates download has completed.
  13702. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  13703. (closeFile): fd >= 0, not fd > 0
  13704. * src/main.cc (main): Added short cut for show-files.
  13705. Added short cut for torrent-file.
  13706. Added new command-line option listen-port.
  13707. Updated i18n messages.
  13708. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13709. To add LogFactory which creates singleton logger:
  13710. * src/LogFactory.h: New class.
  13711. * src/LogFactory.cc: New class.
  13712. * src/Command.h (logger): New variable.
  13713. (Constructor): Use LogFactory.
  13714. * src/AbstractCommand.cc: Use Command::logger
  13715. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  13716. Use LogFactory.
  13717. * src/SegmentSplitter.h : Made logger protected.
  13718. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  13719. * src/SegmentMan.cc (Constructor): Use LogFactory.
  13720. * src/DownloadEngine.h : Made logger protected.
  13721. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  13722. * src/PeerInteractionCommand.cc : Use Command::logger.
  13723. * src/HttpResponseCommand.cc : Use Command::logger.
  13724. * src/SegmentMan.h : Made logger private.
  13725. * src/TorrentMan.h : Made logger private.
  13726. * src/TorrentMan.cc : Use LogFactory.
  13727. * src/FtpNegotiateCommand.cc : Use Command::logger.
  13728. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  13729. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  13730. Use LogFactory.
  13731. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  13732. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  13733. Use LogFactory.
  13734. * src/DownloadCommand.cc : Use Command::logger.
  13735. * src/PeerAbstractCommand.cc : Use Command::logger.
  13736. * src/PeerListenCommand.cc : Use Command::logger.
  13737. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  13738. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  13739. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  13740. * src/TrackerWatcherCommand.cc : Use Command::logger.
  13741. * src/TrackerUpdateCommand.cc : Use Command::logger.
  13742. * src/TrackerDownloadCommand.cc : Use Command::logger.
  13743. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  13744. Use LogFactory.
  13745. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  13746. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  13747. Use LogFactory.
  13748. * src/main.cc (main): Use LogFactory.
  13749. * src/DiskAdaptor.h (logger): New variable.
  13750. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  13751. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  13752. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13753. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  13754. parameter to a tracker request.
  13755. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  13756. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  13757. * src/main.cc (setSignalHander): New function.
  13758. (main): Added a handler for SIGTERM.
  13759. (handler): Updated message.
  13760. (torrentHandler): Updated message.
  13761. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13762. * src/TorrentConsoleDownloadEngine.cc
  13763. (onPartialDownloadingCompletes): Renamed as
  13764. onSelectiveDownloadingCompletes.
  13765. (onSelectiveDownloadingCompletes): Updated message.
  13766. To add DiskAdaptor which abstract DiskWriter family:
  13767. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  13768. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  13769. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  13770. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  13771. MultiDiskAdaptor.h.
  13772. (readFileEntry): Changed its arguments.
  13773. (setup): setupDiskWriter is merged into this function.
  13774. (setupDiskWriter): Removed.
  13775. (setFileFilter): New function.
  13776. (readFileEntryFromMetaInfoFile): Updated according to the changes
  13777. made in readFileEntry.
  13778. (getFilePath): Removed.
  13779. (getTempFilePath): Removed.
  13780. (getSegmentFilePath): Updated due to the removal of getFilePath.
  13781. (fixFilename): Removed.
  13782. (copySingleFile): Removed.
  13783. (splitMultiFile): Removed.
  13784. (deleteTempFile): Removed.
  13785. (setFileEntriesToDownload): Removed.
  13786. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  13787. (isSelectiveDownloadingMode): New function.
  13788. (setAllMultiFileRequestedState): Removed.
  13789. (finishPartialDownloadingMode): Renamed as
  13790. finishSelectiveDownloadingMode.
  13791. (finishSelectiveDownloadingMode): New function.
  13792. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  13793. (getSelectedTotalLength): New function.
  13794. (onDownloadComplete): Use diskAdaptor.
  13795. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  13796. (Range): Removed.
  13797. (setMultiFileEntries): Renamed as setFileEntries.
  13798. (setFileEntries): New function.
  13799. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  13800. (pieceLength): New variable.
  13801. * src/main.cc (printDownloadCompeleteMessage): New function.
  13802. (torrentHandler): Use diskAdaptor instead of diskWriter.
  13803. (main): Renamed torrent-show-files to show-files.
  13804. Rewritten file contents listing.
  13805. * src/TorrentMan.h (FileEntry): Removed.
  13806. (multiFileTopDir): Removed.
  13807. (multiFileEntries): Removed.
  13808. (diskWriter): Removed.
  13809. (diskAdaptor): New variable.
  13810. * src/DefaultDiskWriter.h (totalLength): New variable.
  13811. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  13812. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  13813. diskWriter.
  13814. * src/TorrentConsoleDownloadEngine.h
  13815. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  13816. (partialTotalLength): Renamed as selectedTotalLength.
  13817. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  13818. openExistingFile, otherwise call initAndOpenFile.
  13819. (closeFile): fd > 0, not fd != 0.
  13820. * src/DirectDiskAdaptor.h: New class.
  13821. * src/DirectDiskAdaptor.cc: New class.
  13822. * src/MultiDiskAdaptor.h: New class.
  13823. * src/MultiDiskAdaptor.cc: New class.
  13824. * src/CopyDiskAdaptor.h: New class.
  13825. * src/CopyDiskAdaptor.cc: New class.
  13826. * src/DiskAdaptor.h: New class.
  13827. * src/DiskAdaptor.cc: New class.
  13828. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  13829. (PREF_SHOW_FILES): New definition.
  13830. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13831. To add the ability to download multi torrent into respective files
  13832. directly:
  13833. * src/DiskWriter.h (openFile): New function.
  13834. (seek): Removed.
  13835. * src/MultiDiskWriter.h: New class.
  13836. * src/MultiDiskWriter.cc: New class.
  13837. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  13838. protected.
  13839. (openFile): New function.
  13840. * src/AbstractDiskWriter.cc (openFile): New function.
  13841. * src/prefs.h (V_FALSE): New definition.
  13842. (PREF_DIRECT_FILE_MAPPING): New definition.
  13843. * src/TorrentMan.h (setupDiskWriter): New function.
  13844. (setAllMultiFileRequestedState): New function.
  13845. (onDownloadComplete): New function.
  13846. * src/TorrentMan.cc : Included MultiDiskWriter.h
  13847. (setupDiskWriter): New function.
  13848. (getFilePath): Updated.
  13849. (getTempFilePath): Updated.
  13850. (getSegmentFilePath): Updated.
  13851. (fixFilename): Updated.
  13852. (deleteTempFile): Updated.
  13853. (setAllMultiFileRequestedState): New function.
  13854. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  13855. (finishPartialDownloadingMode): Reset requested flags.
  13856. (onDownloadComplete): New function.
  13857. * src/main.cc: Added --direct-file-mapping option.
  13858. Use TorrentMan::setupDiskWriter().
  13859. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  13860. onDownloadComplete().
  13861. To fix ETA bug:
  13862. * src/Util.h (difftvsec): New function.
  13863. * src/Util.cc (difftvsec): New function.
  13864. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  13865. type of "elapsed" instead of long long int.
  13866. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  13867. The updates of statistics takes place every 1 seconds.
  13868. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  13869. (calculateSpeed): Changed its argument signature.
  13870. * src/PeerMessage.cc (toString): Fixed message.
  13871. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13872. To print ETA:
  13873. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  13874. completion handling when dealing with
  13875. TorrentMan::isPartialDownloadingMode() == true.
  13876. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  13877. New function.
  13878. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  13879. (sessionDownloadLength): New variable.
  13880. (avgSpeed): New variable.
  13881. (eta): New variable.
  13882. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  13883. new variables: eta, avgSpeed, startup.
  13884. (calculateSpeed): Calculate average speed and ETA.
  13885. (printStatistics): Added ETA.
  13886. * src/Util.h (secfmt): New function.
  13887. * src/Util.cc (secfmt): New function.
  13888. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13889. To detect "keep alive" flooding:
  13890. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  13891. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  13892. variable: keepAliveCount.
  13893. (detectMessageFlooding): Added "keep alive" flooding detection.
  13894. (receiveMessage): Increase keepAliveCount when "keep alive" message
  13895. received.
  13896. To add the ability to download only specified files in multi-file
  13897. torrent:
  13898. * src/BitfieldMan.h (filterBitfield): New variable.
  13899. (filterEnabled): New variable.
  13900. (setFilterBit): New function.
  13901. (enableFilter): New function.
  13902. (disableFilter): New function.
  13903. (isFilterEnabled): New function.
  13904. (getFilteredTotalLength): New function.
  13905. (getCompletedLength): New function.
  13906. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  13907. filterBitfield, filterEnabled.
  13908. (CopyConstructor): Added filterBitfield and filterEnabled.
  13909. (operator==): Added filterBitfield and filterEnabled.
  13910. (Destructor): Added filterBitfield.
  13911. (getMissingIndex): Use filterBitfield.
  13912. (getMissingUnusedIndex): Use filterBitfield.
  13913. (getFirstMissingUnusedIndex): Use filterBitfield.
  13914. (getFirstMissingUnusedIndex): Use filterBitfield.
  13915. (getAllMissingIndexes): Use filterBitfield.
  13916. (countMissingBlock): Use filterBitfield.
  13917. (countBlock): Use filterBitfield.
  13918. (setBitInternal): Added new argument on.
  13919. (setUseBit): Use setBitInternal.
  13920. (unsetUseBit): Use setBitInternal.
  13921. (setBit): Use setBitInternal.
  13922. (unsetBit): Use setBitInternal.
  13923. (isAllBitSet): Use filterBitfield.
  13924. (setFilterBit): New function.
  13925. (addFilter): New function.
  13926. (enableFilter): New function.
  13927. (disableFilter): New function.
  13928. (clearFilter): New function.
  13929. (isFilterEnabled): New function.
  13930. (getFilteredTotalLength): New function.
  13931. (getCompletedLength): New function.
  13932. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  13933. Initalized newly added variables.
  13934. [FileEntry](offset): New variable.
  13935. [FileEntry](extracted): New variable.
  13936. [FileEntry](requested): New variable.
  13937. (readFileEntry): New function.
  13938. (option): New variable.
  13939. (splitMultiFile): Removed const qualifier.
  13940. (fixFilename): Removed const qualifier.
  13941. (readFileEntryFromMetaInfoFile): New function.
  13942. (finishPartialDownloadingMode): New function.
  13943. (isPartialDownloadingMode): New function.
  13944. (setFileEntriesToDownload): New function.
  13945. (getCompletedLength): New function.
  13946. (getPartialTotalLength): New function.
  13947. * src/TorrentMan.cc (readFileEntry): New function.
  13948. (setup): Use readFileEntry. If no-preallocation option is specified,
  13949. use DefaultDiskWriter.
  13950. (readFileEntryFromMetaInfoFile): New function.
  13951. (fixFilename): Removed const qualifier.
  13952. (splitMultiFile): Removed const qualifier.
  13953. (setFileEntriesToDownload): New function.
  13954. (isPartialDownloadingMode): New function.
  13955. (finishPartialDownloadingMode): New function.
  13956. (getCompletedLength): New function.
  13957. (getPartialTotalLength): New function.
  13958. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  13959. New variable.
  13960. (partialTotalLength): New variable.
  13961. (downloadLength): New variable.
  13962. (totalLength): New variable.
  13963. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  13964. Added log.
  13965. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  13966. partialTotalLength, downloadLength, totalLength.
  13967. (calculate): Calculate downloadLength and totalLength.
  13968. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  13969. * src/main.cc (addCommand): Changed argument signature.
  13970. (main): Added new variable: args. Added new option "torrent-show-files"
  13971. "no-preallocation". Usage is not updated yet.
  13972. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13973. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  13974. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13975. Attempt to add the ability to listing file entries in a .torrent file.
  13976. This feature is not yet complete.
  13977. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  13978. * src/TorrentMan.cc (getMultiFileEntries): New function.
  13979. (getName): New function.
  13980. * src/TorrentMan.h (getMultiFileEntries): New function.
  13981. (getName): New function.
  13982. * src/main.cc (main): Use above 2 funtion.
  13983. * Release 0.3.2
  13984. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13985. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  13986. (detectMessageFlooding): Updated threshold value.
  13987. (checkLongTimePeerChoking): Updated timeout value.
  13988. (getNewPieceAndSendInterest): Added debug log.
  13989. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  13990. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  13991. (getPeer): Updated.
  13992. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  13993. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  13994. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  13995. is localhost.
  13996. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  13997. * src/PendingMessage.cc (processMessage): Not to send piece message
  13998. if peer is not interested in the pieces localhost has.
  13999. * src/Peer.cc (shouldChoke): Updated.
  14000. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  14001. * src/Util.cc (isPowerOf): New function.
  14002. * src/Util.h (isPowerOf): New function.
  14003. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  14004. whether or not it is power of 2.
  14005. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14006. Added new class SendMessageQueue that includes PendingMessages and
  14007. RequestSlotMan.
  14008. * src/SendMessageQueue.h: New class.
  14009. * src/SendMessageQueue.cc: New class.
  14010. * src/PendingMessage.h: Added new member variable blockIndex and its
  14011. accessors.
  14012. (createRequestMessage): Updated.
  14013. * src/PendingMessage.cc (createRequestMessage): Updated.
  14014. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  14015. SendMessageQueue.
  14016. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  14017. (receiveMessage): Updated with SendMessageQueue.
  14018. (deletePendingPieceMessage): Removed.
  14019. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  14020. (sendInterest): Updated with SendMessageQueue.
  14021. (createRequestPendingMessage): Updated with SendMessageQueue.
  14022. (sendMessages): Updated with SendMessageQueue.
  14023. (onAbort): Updated with SendMessageQueue.
  14024. (keepAlive): Updated with SendMessageQueue.
  14025. (beforeSocketCheck): Updated SendMessageQueue.
  14026. * src/PeerInteractionCommand (sendMessages): Shuffle
  14027. missingBLockIndexes before using it.
  14028. Added its own timeout for peer connection.
  14029. * src/PeerAbstractCommand.h: Added member variable timeout and its
  14030. setter.
  14031. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  14032. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  14033. Added setTimeout() call.
  14034. (executeInternal): Added setTimeout() call.
  14035. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  14036. Added timeout.
  14037. (isTimeoutDetected): Updated.
  14038. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  14039. option.
  14040. Added *simple* message flooding checker.
  14041. * src/PeerInteractionCommand.cc (executeInternal):
  14042. Added detectMessageFlooding() call.
  14043. (detectMessageFlooding): New function.
  14044. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  14045. (beforeSocketCheck): Added detectMessageFlooding() call.
  14046. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  14047. chokeUnchokeCount, haveCount, detectMessageFlooding().
  14048. Removed deletePendingPieceMessage(), getRequestSlot(),
  14049. deleteRequestSlot(), deleteAllRequestSlot().
  14050. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  14051. Added checkLongTimePeerChoking() call.
  14052. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  14053. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  14054. if duplicate == false.
  14055. The parameter "uploaded" and "downloaded" in the tracker request are
  14056. the size since the client sent the "started" event to the tracker.
  14057. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  14058. uploaded size to preDownloadedSize, preUploadedSize respectively.
  14059. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  14060. getSessionDownloadedSize(), getSessionUploadedSize().
  14061. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  14062. getSessionUploadedSize() instead of getDownloadedSize(),
  14063. getUploadedSize().
  14064. * src/PendingMessage.cc (processMessage): Do not send request message
  14065. if the peer is choking the client.
  14066. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  14067. less than interval.
  14068. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14069. * configure.in: Added gnutls support. Added several CPP macros.
  14070. * m4/openssl.m4: Added.
  14071. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  14072. readData(), peekData(). Added gnutls support.
  14073. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  14074. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  14075. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  14076. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  14077. Instead, added a check for whether setup method has executed
  14078. successfully.
  14079. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  14080. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  14081. * src/Makefile.am: Updated.
  14082. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  14083. using whether OpenSSL or gcrypt, depending on the result of configure
  14084. script.
  14085. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  14086. messageDigest.h.
  14087. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  14088. * src/PeerListenCommand.cc: Added log about port binded successfully.
  14089. Fixed memory leak.
  14090. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  14091. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  14092. Removed instantiation of TrackerInitCommand. Instead,
  14093. TrackerWatcherCommand is instantiated and pushed to the command queue.
  14094. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  14095. ENABLE_SSL.
  14096. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  14097. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  14098. If a piece is already acquired by another command, delete the request
  14099. slots for the piece.
  14100. * src/TrackerUpdateCommand.cc (execute):
  14101. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  14102. Added a check whether peer list is null.
  14103. Fixed the bug that causes sending completed event to the tracker
  14104. several times.
  14105. * src/TrackerInitCommand.cc (execute):
  14106. Fixed the bug that causes sending completed event to the tracker
  14107. several times.
  14108. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  14109. by using messageDigest.h.
  14110. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14111. * PeerConnection.cc: Replaced log message "keep-alive" with
  14112. "keep alive".
  14113. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  14114. localhost long time.
  14115. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  14116. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  14117. at most 100 failure entry from the list. If with duplicate = false,
  14118. MAX_PEER_LIST is not checked.
  14119. * PeerListenCommand.cc: Fixed the argument order of log message.
  14120. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14121. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  14122. Added warn().
  14123. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  14124. Implemented warn().
  14125. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  14126. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14127. * Request.h: Added AFTER_COMPLETED event.
  14128. * TorrentDownloadEngine.cc: Prints "Download complete" message
  14129. instead of downloaded size and progress(%) after download completes.
  14130. * PeerInteractionCommand.cc: After download completes, sends unchoke
  14131. message to the peer if it is interested in what localhost has
  14132. downloaded.
  14133. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  14134. destination instead of just renaming it.
  14135. * TorrentMan.cc: Added deleteTempFile().
  14136. * PeerAbstractCommand.cc: do not stop execution after download
  14137. completes. This makes localhost a seeder.
  14138. * Util.{h,cc}: Added fileCopy().
  14139. * PeerListenCommand.cc: do not stop execution after download completes.
  14140. This makes localhost a seeder.
  14141. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  14142. Added TorrentMan::deleteTempFile() to torrentHandler.
  14143. Initialized the variable dir as ".".
  14144. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  14145. Deleted renameSingleFile().
  14146. Added copySingleFile(), deleteTempFile().
  14147. * DownloadEngine.h: Added virtual function afterEachIteration().
  14148. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  14149. in onEndOfRun() to afterEachIteration().
  14150. In onEndOfRun(), changed if condition to check whether filenameFixed is
  14151. true.
  14152. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  14153. In rangedFileCopy(), added try-catch block to properly close file
  14154. descriptors.
  14155. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  14156. Added afterEachIteration(), isFilenameFixed().
  14157. * Peer.cc: Changed choking strategy.
  14158. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  14159. * TrackerInitCommand.cc: Send completed event only once.
  14160. * DownloadEngine.cc: Added a call to afterEachIteration().
  14161. * TrackerUpdateCommand.cc: Do not stop execution after download
  14162. completes.
  14163. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  14164. connect the peers at most MAX_PEER_UPDATE when a peer list is
  14165. received from a tracker.
  14166. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  14167. Decreased the number of failure peers to delete to 0(just comment out
  14168. the line).
  14169. * Release 0.3.1
  14170. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14171. * PeerInteractionCommand.cc: added a call to
  14172. TorrentMan::unadvertisePiece in Destructor.
  14173. * PeerInteractionCommand.cc: make have message sent immediately
  14174. if the size of pending message queue is zero.
  14175. * TorrentMan.cc: set the maximum size of peer list to 250.
  14176. * TorrentMan.h: changed the container type of Peers and UsedPieces
  14177. to deque.
  14178. * Util.cc: fixed rangedFileCopy.
  14179. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  14180. to Constructor. Also, moved digest cleanup to Destructor.
  14181. * MetaFileUtil.cc: fixed memory leak
  14182. * replaced std::vector with std::deque.
  14183. * AbstractCommand.cc: casted timeout value to long long int.
  14184. * ChunkedEncoding.cc: fixed memory leak.
  14185. * PeerInteractionCommand.cc: casted timeout value to long long int.
  14186. * SleepCommand.cc: casted timeout value to long long int.
  14187. * Data.cc: fixed memory leak.
  14188. * Data.cc: fixed toLLInt().
  14189. * BitfieldMan.cc: fixed memory leak.
  14190. * TorrentMan.cc: initialized storeDir to ".".
  14191. * TorrentMan.cc: fixed memory leak.
  14192. * TorrentMan.cc: corrected file paths of splitted files.
  14193. * PeerAbstractCommand.cc: casted timeout to long long int.
  14194. * main.cc: added delete(req) and delete(te->diskWriter).
  14195. * RequestSlot.cc: casted timeout value to long long int.
  14196. * Request.cc: fixed memory leak.
  14197. * PendingMessage.cc: make HAVE messages sent only when peer does not
  14198. have the piece.
  14199. * Peer.{h,cc}: added hasPiece(int index).
  14200. * main.cc: corrected addCommand.
  14201. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14202. * BitTorrent protocol support added.
  14203. * Release 0.3.0
  14204. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14205. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  14206. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14207. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  14208. decoding did not work properly.
  14209. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14210. * DownloadEngine.h: included sys/time.h
  14211. * DownloadEngine.cc: remove sys/time.h
  14212. * Makefile.am (SUBDIRS): Add intl.
  14213. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  14214. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14215. * main.cc: correct help message for --http-auth-scheme.
  14216. * main.cc: changed e-mail address for bug reports.
  14217. * ja.po: added japanese translation.
  14218. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14219. * SimpleLogger.cc: flush log file instead of stdout.
  14220. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14221. * main.cc: Fixed command-line option: max-tries
  14222. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  14223. does not equal to seg.sp.
  14224. * DownloadCommand.cc: If EOF is got from the server and the total size
  14225. of file is not zero, then throw DlRetryEx.
  14226. * main.cc: Set the minium value of min-segment-size to 1024.
  14227. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  14228. fails because of a regression since 0.2.0 release.
  14229. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14230. * HttpConnection.cc:
  14231. * common.h: defined the user agent name as macro
  14232. * DownloadEngine.{h, cc}:
  14233. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  14234. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  14235. * main.cc: Download complete/abort message is now generated by main.
  14236. * Makefile.am (SUBDIRS): Add m4.
  14237. (ACLOCAL_AMFLAGS): New variable.
  14238. (EXTRA_DIST): New variable.
  14239. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  14240. * gettext: added gettext functionality
  14241. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14242. * AbstractCommand.cc:
  14243. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  14244. unregister its cuid from SegmentMan.
  14245. * DownloadEngine.cc: .aria2 file was written when a downloading
  14246. failed with errors.
  14247. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  14248. Added "User-Agent" header to CONNECT proxy request.
  14249. Fixed "Proxy-Authorization" header. Now proxy authorization works
  14250. properly.
  14251. * Logger.h:
  14252. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  14253. * ChunkedEncoding.cc: Added #include directive for strings.h
  14254. * Release 0.2.1
  14255. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14256. * Util.{h,cc}: added startsWith().
  14257. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  14258. Util::endsWith().
  14259. * SocketCore.cc: struct addrinfo is now zero-initialized.
  14260. * common.h: added #include directive of limit.h.
  14261. * DownloadEngine.cc: added #include directive of sys/time.h and
  14262. algorithm.
  14263. * Exception.h: added #include directive of stdio.h.
  14264. * AbstractCommand.h: added #include directive of sys/time.h.
  14265. * DownloadCommand.h: added #include directive of sys/time.h.
  14266. * *.h: added #include directive of common.h to all base classes.
  14267. subclasses' one was removed.
  14268. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  14269. does not define these macros.
  14270. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14271. * Release 0.2.0
  14272. * main.cc:
  14273. * HttpInitiateConnectionCommand.{h,cc}:
  14274. * prefs.h:
  14275. * HttpConnection.{h,cc}: added --http-proxy-method option.
  14276. We can now use GET command in http proxy.
  14277. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14278. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  14279. that splits slowest segment of SegmentMan::commands vector.
  14280. This is the default split algorithm of aria2.
  14281. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  14282. that splits first segment of SegmentMan::commands vector.
  14283. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  14284. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  14285. * Segment.h:
  14286. * SegmentMan.cc: Added speed field to Segment.h
  14287. * main.cc: -s option now affects all URLs in command-line arguemtns.
  14288. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  14289. * message.h: Change file size related %d to %lld.
  14290. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14291. * FtpInitiateConnectionCommand.{h,cc}:
  14292. * FtpNegotiationCommand.{h,cc}:
  14293. * FtpDownloadCommand.{h,cc}:
  14294. * FtpConnection.{h,cc}: Added FTP support
  14295. * SimpleLogger.cc: Log message now includes time information.
  14296. * main.cc: The value of --http-auth-scheme option is chagned from
  14297. 'BASIC' to 'basic'
  14298. * main.cc: Added --timeout command-line option.
  14299. * main.cc: Added --min-segment-size command-line option.
  14300. * main.cc: Added --max-retries command-line option.
  14301. * prefs.h: option string constants are now defined in prefs.h
  14302. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14303. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  14304. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  14305. with version 0.1.0's one.
  14306. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14307. * configure.in: Added --enable-ssl option to configure script.
  14308. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  14309. cannot permit absoluteURI as Request-URI.
  14310. * HttpConnection.cc: Added Referer support.
  14311. * main.cc: Added referer command-line option.
  14312. * main.cc: Added rety-wait command-line option.
  14313. * Exception.h: Fixed formating bug in Exception::setMsg()
  14314. * SocketCore.{h,cc}:
  14315. * Socket.{h, cc}:
  14316. * Request.cc:
  14317. * InitiateConnectionCommandFactory.cc:
  14318. * HttpRequestCommand.cc: Added HTTPS support.
  14319. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  14320. for SocketCore.
  14321. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  14322. size is wrong
  14323. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  14324. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  14325. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  14326. * Release 0.1.0