ChangeLog 548 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341
  1. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Added test case for zero-length filter.
  3. * test/BitfieldManTest.cc
  4. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. getFiles command now returns file data for finished/stopped
  6. downloads.
  7. * src/XmlRpcMethodImpl.cc
  8. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  9. DownloadResult now has the list of FileEntry. The download
  10. summary displays the path of first selected file and the number of
  11. remaining files for multi-file torrent.
  12. * src/DownloadResult.h
  13. * src/RequestGroup.cc
  14. * src/RequestGroupMan.cc
  15. * test/RequestGroupTest.cc
  16. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  17. Fixed segmentation fault error when no file is selected in
  18. multi-file torrent.
  19. * src/BitfieldMan.cc
  20. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  21. Escaped <,>,& character in XML-RPC response.
  22. * src/XmlRpcMethod.cc
  23. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  24. Throw DlAbortEx instead of FatalException during parsing options
  25. because we don't want for aria2 to quit when bad option is passed
  26. via XML-RPC.
  27. * src/OptionHandlerException.cc
  28. * src/OptionHandlerException.h
  29. * src/OptionHandlerImpl.h
  30. * src/OptionParser.cc
  31. * src/OptionParser.h
  32. * src/PStringSegment.cc
  33. * src/ParameterizedStringParser.cc
  34. * src/download_helper.cc
  35. * test/ParameterizedStringParserTest.cc
  36. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  37. Selecting files are now done in
  38. DefaultBtContext::setFileFileter().
  39. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  40. functions are removed because they are no longer used. Creating
  41. filter in BitfieldMan is done in new funtion
  42. PieceStorage::setupFileFilter()
  43. * src/BtContext.cc
  44. * src/BtContext.h
  45. * src/DefaultBtContext.cc
  46. * src/DefaultBtContext.h
  47. * src/DefaultPieceStorage.cc
  48. * src/DefaultPieceStorage.h
  49. * src/DiskAdaptor.cc
  50. * src/DiskAdaptor.h
  51. * src/PieceStorage.h
  52. * src/RequestGroup.cc
  53. * src/UnknownLengthPieceStorage.h
  54. * src/XmlRpcMethodImpl.cc
  55. * test/DefaultBtContextTest.cc
  56. * test/MockBtContext.h
  57. * test/MockPieceStorage.h
  58. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  59. Fixed compile error on Mac OS X
  60. * src/HttpServer.cc
  61. * src/XmlRpcMethod.h
  62. * src/XmlRpcMethodImpl.cc
  63. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  64. Use std::binary_search instead of std::find
  65. * src/DefaultPieceStorage.cc
  66. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  67. Removed unnecessary BDE() call; leave them to implicit conversion.
  68. * src/XmlRpcMethodImpl.cc
  69. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  70. Return connections and gid in string
  71. * src/XmlRpcMethodImpl.cc
  72. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  73. Renamed addURI as addUri
  74. * src/XmlRpcMethodFactory.cc
  75. * src/XmlRpcMethodImpl.cc
  76. * src/XmlRpcMethodImpl.h
  77. * test/XmlRpcMethodTest.cc
  78. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  79. Renamed addTorrentFile as addTorrent
  80. * src/XmlRpcMethodFactory.cc
  81. * src/XmlRpcMethodImpl.cc
  82. * src/XmlRpcMethodImpl.h
  83. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  84. The information for files, URIs, peers are removed from the
  85. reponse of TellaActive, TellStatus command because they tend to be
  86. large. Instead they can be retrieved by the dedicated commands:
  87. getFiles, getUris and getPeers respectively.
  88. * src/XmlRpcMethodFactory.cc
  89. * src/XmlRpcMethodImpl.cc
  90. * src/XmlRpcMethodImpl.h
  91. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  92. Removed --max-overall-upload-limit and
  93. --max-overall-download-limit option from listRequestOptions.
  94. * src/download_helper.cc
  95. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  96. Log incoming host in HttpListenCommand.
  97. * src/HttpListenCommand.cc
  98. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  99. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  100. --xml-rpc-passwd option.
  101. * src/HttpServer.cc
  102. * src/HttpServer.h
  103. * src/HttpServerCommand.cc
  104. * src/OptionHandlerFactory.cc
  105. * src/prefs.cc
  106. * src/prefs.h
  107. * src/usage_text.h
  108. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  109. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  110. processing 0 length request.
  111. * src/HttpServerBodyCommand.cc
  112. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  113. Removed --enable-http-server and --http-server-listen-port
  114. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  115. instead. The original feature for --enable-http-server that
  116. reports download progress in HTML was officially removed. Persist
  117. XML-RPC connection if client supports keep-alive.
  118. * src/DownloadEngineFactory.cc
  119. * src/HttpServerCommand.cc
  120. * src/HttpServerResponseCommand.cc
  121. * src/Makefile.am
  122. * src/Makefile.in
  123. * src/OptionHandlerFactory.cc
  124. * src/RequestGroupMan.cc
  125. * src/main.cc
  126. * src/option_processing.cc
  127. * src/prefs.cc
  128. * src/prefs.h
  129. * src/usage_text.h
  130. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  131. Added "uris" key to the response of tellStatus command. Added
  132. "connections" key to the response of tellStatus and tellActive
  133. command.
  134. * src/XmlRpcMethodImpl.cc
  135. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  136. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  137. Added TellStatusXmlRpcMethod. Remove command can now remove
  138. waiting RequestGroup.
  139. * src/RequestGroupMan.cc
  140. * src/RequestGroupMan.h
  141. * src/XmlRpcMethodFactory.cc
  142. * src/XmlRpcMethodImpl.cc
  143. * src/XmlRpcMethodImpl.h
  144. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  145. Initialized _peerId
  146. * src/Peer.cc
  147. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  148. Return fault structure for error. FailXmlRpcMethod is renamed as
  149. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  150. in non-torrent download. Return single param value.
  151. * src/XmlRpcMethod.cc
  152. * src/XmlRpcMethodFactory.cc
  153. * src/XmlRpcMethodImpl.cc
  154. * src/XmlRpcMethodImpl.h
  155. * test/XmlRpcMethodTest.cc
  156. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  157. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  158. command.
  159. * src/RequestGroup.cc
  160. * src/RequestGroup.h
  161. * src/RequestGroupMan.cc
  162. * src/XmlRpcMethodImpl.cc
  163. * test/RequestGroupTest.cc
  164. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  165. Added more options that can be specified in -i list and xml-rpc
  166. add* command.
  167. * src/download_helper.h
  168. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  169. The available options in -i list should be listed in
  170. listRequestOptions().
  171. * src/download_helper.cc
  172. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  173. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  174. command.
  175. * src/XmlRpcMethodImpl.cc
  176. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  177. Now RequestGroup has its own copy of Option object. This will help
  178. to give custom option for each RequestGroup.
  179. addTorrentFile command now takes options.
  180. * src/AbstractCommand.cc
  181. * src/AbstractCommand.h
  182. * src/AbstractProxyRequestCommand.cc
  183. * src/ActivePeerConnectionCommand.cc
  184. * src/ActivePeerConnectionCommand.h
  185. * src/AdaptiveURISelector.cc
  186. * src/BtCheckIntegrityEntry.cc
  187. * src/BtDependency.cc
  188. * src/BtDependency.h
  189. * src/BtFileAllocationEntry.cc
  190. * src/BtPostDownloadHandler.cc
  191. * src/CheckIntegrityEntry.cc
  192. * src/DownloadCommand.cc
  193. * src/FtpDownloadCommand.cc
  194. * src/FtpFinishDownloadCommand.cc
  195. * src/FtpInitiateConnectionCommand.cc
  196. * src/FtpNegotiationCommand.cc
  197. * src/HttpInitiateConnectionCommand.cc
  198. * src/HttpRequestCommand.cc
  199. * src/HttpResponseCommand.cc
  200. * src/HttpSkipResponseCommand.cc
  201. * src/InitiateConnectionCommand.cc
  202. * src/InitiateConnectionCommandFactory.cc
  203. * src/InitiatorMSEHandshakeCommand.cc
  204. * src/InitiatorMSEHandshakeCommand.h
  205. * src/Metalink2RequestGroup.cc
  206. * src/Metalink2RequestGroup.h
  207. * src/MetalinkPostDownloadHandler.cc
  208. * src/MultiUrlRequestInfo.cc
  209. * src/MultiUrlRequestInfo.h
  210. * src/PeerAbstractCommand.cc
  211. * src/PeerInteractionCommand.cc
  212. * src/PeerInteractionCommand.h
  213. * src/PeerReceiveHandshakeCommand.cc
  214. * src/PeerReceiveHandshakeCommand.h
  215. * src/RequestGroup.cc
  216. * src/RequestGroup.h
  217. * src/TrackerWatcherCommand.cc
  218. * src/TrackerWatcherCommand.h
  219. * src/XmlRpcMethod.cc
  220. * src/XmlRpcMethod.h
  221. * src/XmlRpcMethodImpl.cc
  222. * src/download_helper.cc
  223. * src/download_helper.h
  224. * src/main.cc
  225. * test/BtDependencyTest.cc
  226. * test/BtPostDownloadHandlerTest.cc
  227. * test/DefaultBtMessageDispatcherTest.cc
  228. * test/DownloadHandlerFactoryTest.cc
  229. * test/DownloadHelperTest.cc
  230. * test/Metalink2RequestGroupTest.cc
  231. * test/MetalinkPostDownloadHandlerTest.cc
  232. * test/RequestGroupManTest.cc
  233. * test/RequestGroupTest.cc
  234. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  235. Added tellActiveStatus xml-rpc command which reports download
  236. status of active downloads.
  237. * src/XmlRpcMethodFactory.cc
  238. * src/XmlRpcMethodImpl.cc
  239. * src/XmlRpcMethodImpl.h
  240. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  241. Added addTorrentFile xml-rpc command which receives uploaded
  242. torrent file and add download for it.
  243. * src/RequestGroupMan.cc
  244. * src/XmlRpcMethodFactory.cc
  245. * src/XmlRpcMethodImpl.cc
  246. * src/XmlRpcMethodImpl.h
  247. * src/download_helper.cc
  248. * src/download_helper.h
  249. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  250. Added remove xml-rpc command which removes specified download.
  251. There is a known issue: the removed unfinished downloads are
  252. reported ERR when aria2 exits. They should be reported as INPR.
  253. * src/RequestGroupMan.cc
  254. * src/RequestGroupMan.h
  255. * src/XmlRpcMethodFactory.cc
  256. * src/XmlRpcMethodImpl.cc
  257. * src/XmlRpcMethodImpl.h
  258. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  259. If --enable-http-server is enabled, don't stop aria2 when all
  260. download finished and don't quit when no files to download at
  261. start up.
  262. * src/RequestGroupMan.cc
  263. * src/main.cc
  264. * src/option_processing.cc
  265. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  266. Added missing AM_CONDITIONAL
  267. * configure.ac
  268. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  269. Added xml-rpc functionality. Currently only addURI commad is
  270. supported. To enable xml-rpc, run aria2 with
  271. --enable-http-server. This option name is temporal and will be
  272. changed. The feature that reports download progress in html format
  273. is temporarily disabled.
  274. * src/HttpServer.cc
  275. * src/HttpServer.h
  276. * src/HttpServerBodyCommand.cc
  277. * src/HttpServerBodyCommand.h
  278. * src/HttpServerCommand.cc
  279. * src/HttpServerResponseCommand.cc
  280. * src/Makefile.am
  281. * src/OptionParser.cc
  282. * src/OptionParser.h
  283. * src/RequestGroupMan.cc
  284. * src/RequestGroupMan.h
  285. * src/XmlRpcMethod.cc
  286. * src/XmlRpcMethod.h
  287. * src/XmlRpcMethodFactory.cc
  288. * src/XmlRpcMethodFactory.h
  289. * src/XmlRpcMethodImpl.cc
  290. * src/XmlRpcMethodImpl.h
  291. * src/download_helper.cc
  292. * src/download_helper.h
  293. * test/Makefile.am
  294. * test/XmlRpcMethodTest.cc
  295. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  296. Added xml-rpc request parser. The supported value types are:
  297. i4/int, string, double, struct, array, base64. Currently only
  298. libxml2 version is provided.
  299. * src/Xml2XmlRpcRequestProcessor.cc
  300. * src/Xml2XmlRpcRequestProcessor.h
  301. * src/XmlRpcElements.cc
  302. * src/XmlRpcElements.h
  303. * src/XmlRpcRequest.h
  304. * src/XmlRpcRequestParserController.cc
  305. * src/XmlRpcRequestParserController.h
  306. * src/XmlRpcRequestParserState.h
  307. * src/XmlRpcRequestParserStateImpl.cc
  308. * src/XmlRpcRequestParserStateImpl.h
  309. * src/XmlRpcRequestParserStateMachine.cc
  310. * src/XmlRpcRequestParserStateMachine.h
  311. * src/XmlRpcRequestProcessor.h
  312. * test/XmlRpcRequestParserControllerTest.cc
  313. * test/XmlRpcRequestProcessorTest.cc
  314. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  315. * Release 1.3.3
  316. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  317. Fixed compile error since r1202.
  318. * src/ExpatMetalinkProcessor.cc
  319. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  320. Updated Ukrainian, Russian and Simplified Chinese
  321. translations. Thanks to all translators.
  322. * po/ru.po
  323. * po/uk.po
  324. * po/zh_CN.po
  325. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  326. Pass reference of Option object instead of pointer.
  327. * src/download_helper.cc
  328. * src/download_helper.h
  329. * src/main.cc
  330. * test/DownloadHelperTest.cc
  331. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  332. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  333. from option directly. Instead, get them from RequestGroup.
  334. * src/ActivePeerConnectionCommand.cc
  335. * src/ActivePeerConnectionCommand.h
  336. * src/PeerReceiveHandshakeCommand.cc
  337. * src/RequestGroup.h
  338. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  339. Removed unused uploadLimitCheck and uploadLimit from
  340. PeerAbstractCommand. Removed unused maxDownloadLimit from
  341. PeerInteractionCommand.
  342. * src/PeerAbstractCommand.cc
  343. * src/PeerAbstractCommand.h
  344. * src/PeerInteractionCommand.cc
  345. * src/PeerInteractionCommand.h
  346. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  347. Fixed broken file renaming feature since r1202.
  348. * src/FtpNegotiationCommand.cc
  349. * src/FtpNegotiationCommand.h
  350. * src/HttpResponseCommand.cc
  351. * src/RequestGroup.cc
  352. * src/RequestGroup.h
  353. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  354. Removed unused debug log
  355. * src/SocketCore.cc
  356. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  357. Generated configure and Makefile.in using autoconf 2.63 and
  358. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  359. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  360. * configure.ac
  361. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  362. Moved piece statistics stuff to new PieceStatMan class.
  363. Refactored PieceSelector interface.
  364. * src/DefaultPieceStorage.cc
  365. * src/DefaultPieceStorage.h
  366. * src/LongestSequencePieceSelector.cc
  367. * src/LongestSequencePieceSelector.h
  368. * src/Makefile.am
  369. * src/PieceSelector.h
  370. * src/PieceStatMan.cc
  371. * src/PieceStatMan.h
  372. * src/RarestPieceSelector.cc
  373. * src/RarestPieceSelector.h
  374. * src/RequestGroup.cc
  375. * test/DefaultPieceStorageTest.cc
  376. * test/InOrderPieceSelector.h
  377. * test/Makefile.am
  378. * test/PieceStatManTest.cc
  379. * test/RarestPieceSelectorTest.cc
  380. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  381. Added static member _protocolFamily to SocketCore. By default,
  382. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  383. address. Sometime SocketCore::bind() and
  384. SocketCore::establishConnection() use difference protocl family
  385. and latter cannot connect to former. To avoid this situation, we
  386. limit protocol family to AF_INET for unit tests.
  387. * src/SocketCore.cc
  388. * src/SocketCore.h
  389. * test/AllTest.cc
  390. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  391. Avoid std::bad_alloc for negative bencode string length.
  392. * src/bencode.cc
  393. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  394. Supported segmented downloading with chunked transfer encoding and
  395. content-length.
  396. * src/DownloadCommand.cc
  397. * src/HttpResponseCommand.cc
  398. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  399. Bump up version number to 1.3.3
  400. * configure.ac
  401. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  402. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  403. from 4096 to 65536 (for insanely large ftp login banners)
  404. * src/FtpConnection.h
  405. * test/FtpConnectionTest.cc
  406. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  407. In DefaultBtContext::getActualBasePath(), return first
  408. FileEntry::getPath() for single file torrent.
  409. * src/DefaultBtContext.cc
  410. * test/DefaultBtContextTest.cc
  411. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  412. Removed directIOAllowed() from BinaryStream, DiskWriter,
  413. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  414. Removed _directIOAllowed member from DiskWriter.
  415. * src/AbstractDiskWriter.cc
  416. * src/AbstractDiskWriter.h
  417. * src/AbstractSingleDiskAdaptor.cc
  418. * src/AbstractSingleDiskAdaptor.h
  419. * src/BinaryStream.h
  420. * src/ByteArrayDiskWriter.h
  421. * src/DefaultPieceStorage.cc
  422. * src/DiskWriter.h
  423. * src/MultiDiskAdaptor.cc
  424. * src/MultiDiskAdaptor.h
  425. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  426. Now the constructor of AbstractDiskWriter takes filename as an
  427. argument and filename argument is removed from openFile(),
  428. initAndOpenFile(), openExistingFile() interface. storeDir member
  429. and its accessor functions are removed from DiskAdaptor because it
  430. is not used anymore. size() member function of DefaultDiskWriter,
  431. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  432. opening file.
  433. * src/AbstractDiskWriter.cc
  434. * src/AbstractDiskWriter.h
  435. * src/AbstractSingleDiskAdaptor.cc
  436. * src/AbstractSingleDiskAdaptor.h
  437. * src/ByteArrayDiskWriter.cc
  438. * src/ByteArrayDiskWriter.h
  439. * src/ByteArrayDiskWriterFactory.cc
  440. * src/ByteArrayDiskWriterFactory.h
  441. * src/DefaultDiskWriter.cc
  442. * src/DefaultDiskWriter.h
  443. * src/DefaultDiskWriterFactory.cc
  444. * src/DefaultDiskWriterFactory.h
  445. * src/DefaultPieceStorage.cc
  446. * src/DirectDiskAdaptor.cc
  447. * src/DirectDiskAdaptor.h
  448. * src/DiskAdaptor.h
  449. * src/DiskWriter.h
  450. * src/DiskWriterFactory.h
  451. * src/MessageDigestHelper.cc
  452. * src/MultiDiskAdaptor.cc
  453. * src/RequestGroup.cc
  454. * src/UnknownLengthPieceStorage.cc
  455. * src/Util.cc
  456. * test/DefaultDiskWriterTest.cc
  457. * test/DirectDiskAdaptorTest.cc
  458. * test/FallocFileAllocationIteratorTest.cc
  459. * test/MessageDigestHelperTest.cc
  460. * test/MetalinkProcessorTest.cc
  461. * test/MultiDiskAdaptorTest.cc
  462. * test/MultiFileAllocationIteratorTest.cc
  463. * test/SingleFileAllocationIteratorTest.cc
  464. * test/UtilTest.cc
  465. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  466. Fixed the bug that aria2 aborts when --select-file is used. This
  467. bug was introduced in r1199.
  468. * src/MultiDiskAdaptor.cc
  469. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  470. Code cleanup
  471. * test/MockPieceStorage.cc
  472. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  473. Fixed the bug that read-only file with wrong file size will cause
  474. error because it cannot be truncated to the correct size. Now if
  475. file size is different than the expected one, re-open file in
  476. writable mode.
  477. * src/AbstractSingleDiskAdaptor.cc
  478. * src/AbstractSingleDiskAdaptor.h
  479. * src/BtCheckIntegrityEntry.cc
  480. * src/DiskAdaptor.h
  481. * src/MultiDiskAdaptor.h
  482. * src/RequestGroup.cc
  483. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  484. Fixed the bug that with --check-integrity option aria2 reports
  485. downloaded file size is 0 even if some parts of file is correctly
  486. downloaded. This bug is reproducible for the download that a file
  487. includes last piece is missing. This bug doesn't reveal for
  488. single-torrent with file allocation on.
  489. * src/IteratableChecksumValidator.cc
  490. * test/IteratableChecksumValidatorTest.cc
  491. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  492. Avoid circular reference between RequestGroup and AdaptiveURISelector
  493. * src/RequestGroupMan.cc
  494. * src/AdaptiveURISelector.cc
  495. * src/AdaptiveURISelector.h
  496. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  497. * Release 1.3.2
  498. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  499. Updated README
  500. * README
  501. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  502. Updated Ukrainian translations. Thanks to Alexander10.
  503. * po/uk.po
  504. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  505. Code cleanup
  506. * src/MetalinkParserStateMachine.cc
  507. * src/MetalinkParserStateMachine.h
  508. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  509. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  510. and expat simultaneously, MetalinkProcessor is now not base class
  511. and it is directly implemented in XML2SAXMetalinkProcessor and
  512. ExpatMetalinkProcessor.
  513. * src/ExpatMetalinkProcessor.cc
  514. * src/ExpatMetalinkProcessor.h
  515. * src/Makefile.am
  516. * src/MetalinkHelper.cc
  517. * src/MetalinkProcessor.h
  518. * src/MetalinkProcessorFactory.cc: Removed.
  519. * src/MetalinkProcessorFactory.h: Removed
  520. * src/XML2SAXMetalinkProcessor.cc
  521. * src/XML2SAXMetalinkProcessor.h
  522. * test/MetalinkProcessorTest.cc
  523. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  524. Bump up version number to 1.3.2
  525. * configure.ac
  526. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  527. Added missing file.
  528. * test/Makefile.am
  529. * test/url-list-singleFileEndsWithSlash.torrent
  530. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  531. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  532. request.
  533. * src/AnnounceList.cc
  534. * src/AnnounceList.h
  535. * src/BDE.cc: Added
  536. * src/BDE.h: Added
  537. * src/DHTAbstractMessage.cc
  538. * src/DHTAbstractMessage.h
  539. * src/DHTAnnouncePeerMessage.cc
  540. * src/DHTAnnouncePeerMessage.h
  541. * src/DHTAnnouncePeerReplyMessage.cc
  542. * src/DHTAnnouncePeerReplyMessage.h
  543. * src/DHTFindNodeMessage.cc
  544. * src/DHTFindNodeMessage.h
  545. * src/DHTFindNodeReplyMessage.cc
  546. * src/DHTFindNodeReplyMessage.h
  547. * src/DHTGetPeersMessage.cc
  548. * src/DHTGetPeersMessage.h
  549. * src/DHTGetPeersReplyMessage.cc
  550. * src/DHTGetPeersReplyMessage.h
  551. * src/DHTMessageFactory.h
  552. * src/DHTMessageFactoryImpl.cc
  553. * src/DHTMessageFactoryImpl.h
  554. * src/DHTMessageReceiver.cc
  555. * src/DHTMessageTracker.cc
  556. * src/DHTMessageTracker.h
  557. * src/DHTPingMessage.cc
  558. * src/DHTPingMessage.h
  559. * src/DHTPingReplyMessage.cc
  560. * src/DHTPingReplyMessage.h
  561. * src/DHTQueryMessage.cc
  562. * src/DHTQueryMessage.h
  563. * src/DHTResponseMessage.cc
  564. * src/DHTResponseMessage.h
  565. * src/DefaultBtAnnounce.cc
  566. * src/DefaultBtContext.cc
  567. * src/DefaultBtContext.h
  568. * src/HandshakeExtensionMessage.cc
  569. * src/Makefile.am
  570. * src/PeerListProcessor.h
  571. * src/UTPexExtensionMessage.cc
  572. * src/bencode.cc
  573. * src/bencode.h
  574. * test/AnnounceListTest.cc
  575. * test/BDETest.cc: Added
  576. * test/BencodeTest.cc
  577. * test/DHTAnnouncePeerMessageTest.cc
  578. * test/DHTAnnouncePeerReplyMessageTest.cc
  579. * test/DHTFindNodeMessageTest.cc
  580. * test/DHTFindNodeReplyMessageTest.cc
  581. * test/DHTGetPeersMessageTest.cc
  582. * test/DHTGetPeersReplyMessageTest.cc
  583. * test/DHTMessageFactoryImplTest.cc
  584. * test/DHTMessageTrackerTest.cc
  585. * test/DHTPingMessageTest.cc
  586. * test/DHTPingReplyMessageTest.cc
  587. * test/Makefile.am
  588. * test/MockDHTMessageFactory.h
  589. * test/PeerListProcessorTest.cc
  590. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  591. Use url-list (web-seeding) only for single-file torrent. This is
  592. basically the same behavior with Metalink file with torrent and
  593. URIs.
  594. * src/RequestGroup.cc
  595. * src/DefaultBtContext.cc
  596. * test/DefaultBtContextTest.cc
  597. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  598. Rewritten expr
  599. * src/array_fun.h
  600. * test/array_funTest.cc
  601. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  602. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  603. * src/DefaultBtMessageDispatcher.cc
  604. * src/a2algo.h
  605. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  606. Removed ExtendedMessagingAware. Instead of using inheritance,
  607. added ExtensionMessageRegistry and it is passed to
  608. DefaultExtensionMessageFactory.
  609. * src/DefaultBtInteractive.cc
  610. * src/DefaultBtInteractive.h
  611. * src/DefaultExtensionMessageFactory.cc
  612. * src/DefaultExtensionMessageFactory.h
  613. * src/ExtendedMessagingAware.h: Removed.
  614. * src/ExtensionMessageFactory.h
  615. * src/ExtensionMessageRegistry.h: Added.
  616. * src/Makefile.am
  617. * src/PeerInteractionCommand.cc
  618. * test/DefaultExtensionMessageFactoryTest.cc
  619. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  620. Fixed typo in log messages
  621. * src/MSEHandshake.cc
  622. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  623. Fixed the bug that prevents torrent download from finishing. The
  624. bug doesn't reveal for all torrents. The torrents affected this
  625. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  626. of pieces.
  627. * src/bitfield.h
  628. * test/bitfieldTest.cc
  629. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  630. Code cleanup
  631. * src/PeerListProcessor.h
  632. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  633. Removed RequestGroupAware
  634. * src/AbstractCommand.cc
  635. * src/AbstractCommand.h
  636. * src/ActivePeerConnectionCommand.cc
  637. * src/ActivePeerConnectionCommand.h
  638. * src/DHTGetPeersCommand.cc
  639. * src/DHTGetPeersCommand.h
  640. * src/InitiatorMSEHandshakeCommand.cc
  641. * src/InitiatorMSEHandshakeCommand.h
  642. * src/Makefile.am
  643. * src/PeerInitiateConnectionCommand.cc
  644. * src/PeerInitiateConnectionCommand.h
  645. * src/PeerInteractionCommand.cc
  646. * src/PeerInteractionCommand.h
  647. * src/RealtimeCommand.cc
  648. * src/RealtimeCommand.h
  649. * src/RequestGroupAware.cc: Removed
  650. * src/RequestGroupAware.h: Removed
  651. * src/SeedCheckCommand.cc
  652. * src/SeedCheckCommand.h
  653. * src/SleepCommand.cc
  654. * src/TrackerWatcherCommand.cc
  655. * src/TrackerWatcherCommand.h
  656. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  657. Rewritten PeerListProcessor
  658. * src/PeerListProcessor.h
  659. * src/CompactPeerListProcessor.h: Removed
  660. * src/CompactPeerListProcessor.cc: Removed
  661. * src/DelegatingPeerListProcessor.cc: Removed.
  662. * src/DefaultBtAnnounce.cc
  663. * src/Makefile.am
  664. * src/UTPexExtensionMessage.cc
  665. * src/DefaultPeerListProcessor.h: Removed.
  666. * src/DefaultPeerListProcessor.cc: Removed.
  667. * src/DelegatingPeerListProcessor.h: Removed.
  668. * test/Makefile.am
  669. * test/PeerListProcessorTest.cc
  670. * test/DefaultPeerListProcessorTest.cc: Removed.
  671. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  672. Rewritten RequestGroupMan::calculateStat()
  673. * src/RequestGroupMan.cc
  674. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  675. Removed unnecessary virtual destructor for Request class.
  676. * src/Request.cc
  677. * src/Request.h
  678. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  679. Avoid dynamic_pointer_cast.
  680. * src/DHTGetPeersCommand.cc
  681. * src/DHTGetPeersCommand.h
  682. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  683. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  684. BtEvent.
  685. * src/AbstractBtEventListener.h: Removed.
  686. * src/AbstractBtMessage.cc
  687. * src/AbstractBtMessage.h
  688. * src/BtAbortOutstandingRequestEvent.h
  689. * src/BtCancelSendingPieceEvent.h
  690. * src/BtChokedEvent.h: Removed.
  691. * src/BtChokingEvent.h
  692. * src/BtEvent.h: Removed
  693. * src/BtEventListener.h: Removed.
  694. * src/BtMessage.h
  695. * src/BtPieceMessage.cc
  696. * src/BtPieceMessage.h
  697. * src/BtRequestMessage.cc
  698. * src/BtRequestMessage.h
  699. * src/DefaultBtMessageDispatcher.cc
  700. * src/Makefile.am
  701. * src/a2functional.h
  702. * test/BtPieceMessageTest.cc
  703. * test/BtRequestMessageTest.cc
  704. * test/DefaultBtMessageDispatcherTest.cc
  705. * test/MockBtMessage.h
  706. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  707. Code cleanup
  708. * src/RequestGroupMan.cc
  709. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  710. Code cleanup
  711. * src/DownloadCommand.cc
  712. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  713. Fixed segmentation fault when GZipDecoder::decode() returns 0
  714. byte.
  715. * src/DownloadCommand.cc
  716. * src/bitfield.h
  717. * test/bitfieldTest.cc
  718. Fixed the bug that causes infinite loop if broken web server
  719. returns chunked response without last "0" chunk-size marker and
  720. closes connection.
  721. * src/DownloadCommand.cc
  722. Instantiate properly configured HttpDownloadCommand for
  723. non-resumable downlaods.
  724. * src/HttpResponseCommand.cc
  725. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  726. Rewritten array operation functions.
  727. * src/BitfieldMan.cc
  728. * src/array_fun.h
  729. * test/array_funTest.cc
  730. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  731. Removed unused variable 'query'
  732. * src/Request.cc
  733. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  734. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  735. accidentally set to false in r1162.
  736. * configure.ac
  737. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  738. Code cleanup
  739. * src/BNode.cc
  740. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  741. Increase prefixLength for the bucket which doesn't own local node
  742. ID when splitting bucket.
  743. * src/DHTBucket.cc
  744. * test/DHTBucketTest.cc
  745. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  746. * Release 1.3.1
  747. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  748. Bump up version number to 1.3.1
  749. * configure.ac
  750. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  751. Removed unused variable checkPoint. Also removed include directive
  752. for TimeA2.h.
  753. * src/SeedCheckCommand.h
  754. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  755. Fixed the bug that upload limit exceeds the value specified in
  756. --seed-ratio option depending on the timing of the execution of
  757. SeedCheckCommand.
  758. * src/SeedCheckCommand.cc
  759. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  760. Fixed the bug that removed peer's session upload/download length
  761. are counted twice in _cachedTransferStat before it is
  762. re-calculated. This affected the calculation of shara ratio,
  763. resulting aria2 wrongly determines that specified share ratio is
  764. reached. Also fixed the typo in calculateStatFor function name.
  765. * src/BtSetup.cc
  766. * src/DefaultPeerStorage.cc
  767. * src/ShareRatioSeedCriteria.h
  768. * test/ShareRatioSeedCriteriaTest.cc
  769. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  770. * Release 1.3.0
  771. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  772. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  773. Nynorsk translations. Thanks to all translators.
  774. * po/es.po
  775. * po/ja.po
  776. * po/nn.po
  777. * po/ru.po
  778. * po/uk.po
  779. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  780. Rewritten isInRange()
  781. * src/DHTBucket.cc
  782. * test/DHTBucketTest.cc
  783. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  784. Fixed typo
  785. * doc/aria2c.1.txt
  786. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  787. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  788. malloc/realloc is not used.
  789. * src/configure.ac
  790. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  791. BitfieldMan::getMissingIndexes family functions now takes unsigned
  792. char* bitfield instead of stl container for efficiency.
  793. PieceSelector::select now takes this
  794. bitfield. RarestPieceSelector::select now also performs
  795. efficiently for this change. bitfield namespace is introduced and
  796. it has several helper functions to handle basic bitfield
  797. operations such as test, count set bits, etc.
  798. * src/BitfieldMan.cc
  799. * src/BitfieldMan.h
  800. * src/DefaultBtRequestFactory.cc
  801. * src/DefaultPieceStorage.cc
  802. * src/DefaultPieceStorage.h
  803. * src/LongestSequencePieceSelector.cc
  804. * src/LongestSequencePieceSelector.h
  805. * src/Makefile.am
  806. * src/Piece.cc
  807. * src/Piece.h
  808. * src/PieceSelector.h
  809. * src/RarestPieceSelector.cc
  810. * src/RarestPieceSelector.h
  811. * src/Util.cc
  812. * src/Util.h
  813. * src/bitfield.h
  814. * test/BitfieldManTest.cc
  815. * test/LongestSequencePieceSelectorTest.cc
  816. * test/Makefile.am
  817. * test/RarestPieceSelectorTest.cc
  818. * test/UtilTest.cc
  819. * test/bitfieldTest.cc
  820. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  821. Made accepted socket non-block.
  822. * src/FtpNegotiationCommand.cc
  823. * src/HttpListenCommand.cc
  824. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  825. Guarded #ifdef HAVE_POSIX_FALLOCATE
  826. * src/AbstractSingleDiskAdaptor.cc
  827. * src/DefaultPieceStorage.cc
  828. * src/DiskAdaptor.h
  829. * src/DiskAdaptor.h
  830. * src/MultiFileAllocationIterator.cc
  831. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  832. Run
  833. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  834. in every 1 sec. The timeout of RequestSlot is 60s by default and
  835. it doesn't need to be called every time when
  836. DefaultBtInteractive::doInteractionProcessing() is called.
  837. * src/DefaultBtInteractive.cc
  838. * src/DefaultBtInteractive.h
  839. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  840. Documented 'falloc' in man page.
  841. * doc/aria2c.1.txt
  842. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  843. Updated doc
  844. * src/usage_text.h
  845. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  846. Added 'falloc' parameter for --file-allocation option. 'falloc'
  847. allocation mode uses posix_fallocate() system call to allocate
  848. file on disk. If you are using newer file systems such as ext4
  849. (with extents support), btrfs or xfs, 'falloc' is your best
  850. choice. It allocates large(few GiB) files almost instantly. Don't
  851. use 'falloc' with legacy file systems such as ext3 because it
  852. takes almost same time as 'prealloc' and it blocks aria2 entirely
  853. until allocation finishes. 'falloc' may not be available if your
  854. system doesn't have posix_fallocate() system call.
  855. * configure.ac
  856. * src/AbstractDiskWriter.cc
  857. * src/AbstractDiskWriter.h
  858. * src/AbstractSingleDiskAdaptor.cc
  859. * src/BinaryStream.h
  860. * src/BtCheckIntegrityEntry.cc
  861. * src/ByteArrayDiskWriter.h
  862. * src/CheckIntegrityEntry.cc
  863. * src/CheckIntegrityEntry.h
  864. * src/DefaultPieceStorage.cc
  865. * src/DiskAdaptor.cc
  866. * src/DiskAdaptor.h
  867. * src/DiskWriter.h
  868. * src/FallocFileAllocationIterator.cc
  869. * src/FallocFileAllocationIterator.h
  870. * src/FileAllocationEntry.cc
  871. * src/FileAllocationEntry.h
  872. * src/Makefile.am
  873. * src/MultiFileAllocationIterator.cc
  874. * src/MultiFileAllocationIterator.h
  875. * src/OptionHandlerFactory.cc
  876. * src/RequestGroup.cc
  877. * src/StreamCheckIntegrityEntry.cc
  878. * src/prefs.cc
  879. * src/prefs.h
  880. * src/usage_text.h
  881. * test/FallocFileAllocationIteratorTest.cc
  882. * test/Makefile.am
  883. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  884. Removed duplicate enableDirectIO() call.
  885. * src/MultiFileAllocationIterator.cc
  886. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  887. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  888. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  889. cost of std::rotate().
  890. * src/RarestPieceSelector.cc
  891. * src/RarestPieceSelector.h
  892. * test/RarestPieceSelectorTest.cc
  893. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  894. Updated usage doc for --bt-tracker-interval option.
  895. * src/usage_text.h
  896. * doc/aria2c.1.txt
  897. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  898. Documented --bt-tracker-interval option in man page.
  899. * doc/aria2c.1.txt
  900. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  901. Added an option to specify the interval between tracker requests.
  902. If non-zero value is specified, aria2 uses it and ignores the
  903. interval value in the response of tracker. If zero is specified,
  904. aria2 determines the inteval value based on the tarcker response
  905. and download progress.
  906. * src/DefaultBtAnnounce.cc
  907. * src/DefaultBtAnnounce.h
  908. * src/OptionHandlerFactory.cc
  909. * src/RequestGroup.cc
  910. * src/prefs.cc
  911. * src/prefs.h
  912. * src/usage_text.h
  913. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  914. Added operator+=, operator-=, operator-
  915. * src/TransferStat.cc
  916. * src/TransferStat.h
  917. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  918. Refactored RarestPieceSelector to reduce CPU load, especially for
  919. addPieceStats.
  920. * src/RarestPieceSelector.cc
  921. * src/RarestPieceSelector.h
  922. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  923. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  924. getAllMissingBlockIndexes to reduce a call to
  925. array_function_base::operator[].
  926. * src/BitfieldMan.cc
  927. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  928. Cached TransferStat/download speed to avoid to sum them up in each
  929. call.
  930. * src/DefaultPeerStorage.cc
  931. * src/DefaultPeerStorage.h
  932. * src/SegmentMan.cc
  933. * src/SegmentMan.h
  934. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  935. Typedefed cuid_t as int32_t in Command.h
  936. * src/CUIDCounter.h
  937. * src/Command.cc
  938. * src/Command.h
  939. * src/DownloadEngine.cc
  940. * src/DownloadEngine.h
  941. * src/PeerStat.h
  942. * src/SegmentMan.cc
  943. * src/SegmentMan.h
  944. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  945. Reduced the number of calls to PeerStorage::calculateStat() and
  946. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  947. transfer rate.
  948. * src/DefaultBtInteractive.cc
  949. * src/DefaultBtMessageDispatcher.cc
  950. * src/DefaultPeerStorage.cc
  951. * src/DefaultPeerStorage.h
  952. * src/DownloadCommand.cc
  953. * src/DownloadEngine.cc
  954. * src/PeerStorage.h
  955. * src/SegmentMan.cc
  956. * src/SegmentMan.h
  957. * test/MockPeerStorage.h
  958. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  959. Prepended _dir+"/" after joining path elements in torrent file.
  960. * src/DefaultBtContext.cc
  961. * test/DefaultBtContextTest.cc
  962. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  963. Added missing IndexBtMessageValidator.h
  964. * src/Makefile.am
  965. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  966. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  967. Chinese translations. Thank you for contributing our project.
  968. * po/id.po
  969. * po/it.po
  970. * po/ru.po
  971. * po/uk.po
  972. * po/zh_CN.po
  973. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  974. Updated README
  975. * README
  976. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  977. Bump up version number to 1.3.0
  978. * configure.ac
  979. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  980. Updated doc
  981. * src/DefaultBtContext.h
  982. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  983. Slice/joinPath for name of single torrent.
  984. * src/DefaultBtContext.cc
  985. * test/DefaultBtContextTest.cc
  986. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  987. Updated man page: Documented --dry-run and --index-out
  988. options. Changed the default value of --uri-selector and
  989. --http-auth-challenge options. Removed --direct-file-mapping
  990. option. Added example for --index-out
  991. * doc/aria2c.1.txt
  992. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  993. Updated TEXT_DRY_RUN
  994. * src/usage_text.h
  995. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  996. Changed the default value of --uri-selector option from 'inorder'
  997. to 'feedback'
  998. * src/OptionHandlerFactory.cc
  999. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1000. Included current URI in exception message.
  1001. * src/AbstractCommand.cc
  1002. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1003. Renamed ServerStatURISelector as FeedbackURISelector.
  1004. * src/FeedbackURISelector.cc
  1005. * src/FeedbackURISelector.h
  1006. * src/Makefile.am
  1007. * src/RequestGroupMan.cc
  1008. * src/ServerStatURISelector.cc
  1009. * src/ServerStatURISelector.h
  1010. * test/FeedbackURISelectorTest.cc
  1011. * test/Makefile.am
  1012. * test/ServerStatURISelectorTest.cc
  1013. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1014. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  1015. all URIs are tested and their timeout is not reached.
  1016. * src/AdaptiveURISelector.cc
  1017. * src/AdaptiveURISelector.h
  1018. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1019. Changed the default value of --http-auth-challenge option to false.
  1020. * src/OptionHandlerFactory.cc
  1021. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1022. Reuse URIs when all unused URIs run out.
  1023. * src/OptionHandlerFactory.cc
  1024. * src/RequestGroup.cc
  1025. * src/prefs.cc
  1026. * src/prefs.h
  1027. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1028. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  1029. and BtRejectMessage are derived from RangeBtMessage class.
  1030. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  1031. derived from IndexBtMessage class. BtChokeMessage,
  1032. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  1033. BtNotInterestedMessage and BtUnchokeMessage are derived from
  1034. ZeroBtMessage class.
  1035. * src/AbstractBtMessage.cc
  1036. * src/AbstractBtMessage.h
  1037. * src/BtAllowedFastMessage.cc
  1038. * src/BtAllowedFastMessage.h
  1039. * src/BtAllowedFastMessageValidator.h: Removed
  1040. * src/BtBitfieldMessage.cc
  1041. * src/BtBitfieldMessage.h
  1042. * src/BtCancelMessage.cc
  1043. * src/BtCancelMessage.h
  1044. * src/BtCancelMessageValidator.h: Removed
  1045. * src/BtChokeMessage.cc
  1046. * src/BtChokeMessage.h
  1047. * src/BtExtendedMessage.cc
  1048. * src/BtExtendedMessage.h
  1049. * src/BtHandshakeMessage.cc
  1050. * src/BtHandshakeMessage.h
  1051. * src/BtHaveAllMessage.cc
  1052. * src/BtHaveAllMessage.h
  1053. * src/BtHaveMessage.cc
  1054. * src/BtHaveMessage.h
  1055. * src/BtHaveMessageValidator.h: Removed
  1056. * src/BtHaveNoneMessage.cc
  1057. * src/BtHaveNoneMessage.h
  1058. * src/BtInterestedMessage.cc
  1059. * src/BtInterestedMessage.h
  1060. * src/BtKeepAliveMessage.cc
  1061. * src/BtKeepAliveMessage.h
  1062. * src/BtNotInterestedMessage.cc
  1063. * src/BtNotInterestedMessage.h
  1064. * src/BtPieceMessage.cc
  1065. * src/BtPieceMessage.h
  1066. * src/BtPortMessage.cc
  1067. * src/BtPortMessage.h
  1068. * src/BtRejectMessage.cc
  1069. * src/BtRejectMessage.h
  1070. * src/BtRejectMessageValidator.h: Removed
  1071. * src/BtRequestMessage.cc
  1072. * src/BtRequestMessage.h
  1073. * src/BtRequestMessageValidator.h: Removed
  1074. * src/BtSuggestPieceMessage.cc
  1075. * src/BtSuggestPieceMessage.h
  1076. * src/BtSuggestPieceMessageValidator.h: Removed
  1077. * src/BtUnchokeMessage.cc
  1078. * src/BtUnchokeMessage.h
  1079. * src/DefaultBtMessageFactory.cc
  1080. * src/IndexBtMessage.cc
  1081. * src/IndexBtMessage.h
  1082. * src/IndexBtMessageValidator.h
  1083. * src/Makefile.am
  1084. * src/PeerMessageUtil.cc
  1085. * src/PeerMessageUtil.h
  1086. * src/RangeBtMessage.cc
  1087. * src/RangeBtMessage.h
  1088. * src/RangeBtMessageValidator.h
  1089. * src/SimpleBtMessage.cc
  1090. * src/SimpleBtMessage.h
  1091. * src/ZeroBtMessage.cc
  1092. * src/ZeroBtMessage.h
  1093. * test/BtRequestMessageTest.cc
  1094. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1095. Reverted usage_text.h to r1093 to avoid to lose translated
  1096. messages.
  1097. * src/usage_text.h
  1098. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1099. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  1100. declared as non-const previously is now const and defined in class
  1101. definition.
  1102. * src/AbstractBtMessage.cc
  1103. * src/AbstractBtMessage.h
  1104. * src/BtAllowedFastMessage.cc
  1105. * src/BtAllowedFastMessage.h
  1106. * src/BtBitfieldMessage.h
  1107. * src/BtCancelMessage.cc
  1108. * src/BtCancelMessage.h
  1109. * src/BtChokeMessage.cc
  1110. * src/BtChokeMessage.h
  1111. * src/BtExtendedMessage.cc
  1112. * src/BtExtendedMessage.h
  1113. * src/BtHandshakeMessage.cc
  1114. * src/BtHandshakeMessage.h
  1115. * src/BtHaveAllMessage.cc
  1116. * src/BtHaveAllMessage.h
  1117. * src/BtHaveMessage.cc
  1118. * src/BtHaveMessage.h
  1119. * src/BtHaveNoneMessage.cc
  1120. * src/BtHaveNoneMessage.h
  1121. * src/BtInterestedMessage.cc
  1122. * src/BtInterestedMessage.h
  1123. * src/BtKeepAliveMessage.cc
  1124. * src/BtKeepAliveMessage.h
  1125. * src/BtMessage.h
  1126. * src/BtNotInterestedMessage.cc
  1127. * src/BtNotInterestedMessage.h
  1128. * src/BtPieceMessage.h
  1129. * src/BtPortMessage.cc
  1130. * src/BtPortMessage.h
  1131. * src/BtRejectMessage.cc
  1132. * src/BtRejectMessage.h
  1133. * src/BtRequestMessage.cc
  1134. * src/BtRequestMessage.h
  1135. * src/BtSuggestPieceMessage.cc
  1136. * src/BtSuggestPieceMessage.h
  1137. * src/BtUnchokeMessage.cc
  1138. * src/BtUnchokeMessage.h
  1139. * src/SimpleBtMessage.cc
  1140. * src/SimpleBtMessage.h
  1141. * test/MockBtMessage.h
  1142. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1143. Use FileEntry::exists()
  1144. * src/MultiDiskAdaptor.cc
  1145. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1146. Added exists()
  1147. * src/FileEntry.cc
  1148. * src/FileEntry.h
  1149. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1150. Added missing prefix dir.
  1151. * src/download_helper.cc
  1152. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1153. Removed --direct-file-mapping option and CopyDiskAdaptor.
  1154. * src/CopyDiskAdaptor.cc: Removed
  1155. * src/CopyDiskAdaptor.h: Removed
  1156. * src/DefaultPieceStorage.cc
  1157. * src/Makefile.am
  1158. * src/OptionHandlerFactory.cc
  1159. * src/prefs.cc
  1160. * src/prefs.h
  1161. * src/usage_text.h
  1162. * test/CopyDiskAdaptorTest.cc: Removed
  1163. * test/Makefile.am
  1164. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1165. Rewritten isSameFileBeingDownloaded()
  1166. * src/RequestGroupMan.cc
  1167. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1168. Removed getName() from DownloadContext. getName() is declared in
  1169. BtContext.
  1170. * src/BtContext.h
  1171. * src/DownloadContext.h
  1172. * src/SingleFileDownloadContext.cc
  1173. * src/SingleFileDownloadContext.h
  1174. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  1175. in AbstractSingleDiskAdaptor.
  1176. * src/AbstractSingleDiskAdaptor.h
  1177. * src/DiskAdaptor.h
  1178. * src/MultiDiskAdaptor.h
  1179. * src/RequestGroup.cc
  1180. Removed setTopDir() and getTopDir() and getTopDirPath() from
  1181. MultiDiskAdaptor.
  1182. * src/DefaultPieceStorage.cc
  1183. * src/MultiDiskAdaptor.cc
  1184. * src/MultiDiskAdaptor.h
  1185. * test/MultiDiskAdaptorTest.cc
  1186. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1187. FileEntry::getPath() contains store(top level) directory to
  1188. simplify path handling operation. In the previous implementation,
  1189. store directory is concatenated to FileEntry::getPath() in
  1190. DownloadContext.
  1191. * src/BtDependency.cc
  1192. * src/BtPostDownloadHandler.cc
  1193. * src/CopyDiskAdaptor.cc
  1194. * src/DefaultBtContext.cc
  1195. * src/DirectDiskAdaptor.cc
  1196. * src/FileEntry.cc
  1197. * src/FileEntry.h
  1198. * src/FtpNegotiationCommand.cc
  1199. * src/HttpResponse.cc
  1200. * src/HttpResponseCommand.cc
  1201. * src/Metalink2RequestGroup.cc
  1202. * src/MultiDiskAdaptor.cc
  1203. * src/MultiDiskAdaptor.h
  1204. * src/MultiFileAllocationIterator.cc
  1205. * src/RequestGroup.cc
  1206. * src/SingleFileDownloadContext.cc
  1207. * src/SingleFileDownloadContext.h
  1208. * src/download_helper.cc
  1209. * test/BtDependencyTest.cc
  1210. * test/CopyDiskAdaptorTest.cc
  1211. * test/DefaultBtContextTest.cc
  1212. * test/DefaultBtProgressInfoFileTest.cc
  1213. * test/DirectDiskAdaptorTest.cc
  1214. * test/DownloadHelperTest.cc
  1215. * test/FileEntryTest.cc
  1216. * test/MultiDiskAdaptorTest.cc
  1217. * test/MultiFileAllocationIteratorTest.cc
  1218. * test/RequestGroupTest.cc
  1219. * test/SingleFileDownloadContextTest.cc
  1220. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1221. Fixed compiler warning
  1222. * src/download_helper.cc
  1223. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1224. Throw exception if same infohash torrent is now downloading.
  1225. * src/RequestGroup.cc
  1226. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1227. Added --dry-run option. In this mode, aria2 just checks whether
  1228. the remote file is available and doesn't download data. This
  1229. option has effect on HTTP/FTP downloads and BitTorrent downloads
  1230. are canceled in this mode.
  1231. * src/FtpNegotiationCommand.cc
  1232. * src/HttpResponseCommand.cc
  1233. * src/HttpResponseCommand.h
  1234. * src/OptionHandlerFactory.cc
  1235. * src/RequestGroup.cc
  1236. * src/RequestGroupMan.cc
  1237. * src/prefs.cc
  1238. * src/prefs.h
  1239. * src/usage_text.h
  1240. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1241. Fixed compiler waring
  1242. * test/UriListParserTest.cc
  1243. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1244. Parse options in -i list using OptionParser.
  1245. * src/UriListParser.cc
  1246. * src/UriListParser.h
  1247. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1248. Don't reset URI in retry to avoid additional round trips because
  1249. of redirects.
  1250. * src/AbstractCommand.cc
  1251. * src/OptionHandlerFactory.cc
  1252. * src/prefs.cc
  1253. * src/prefs.h
  1254. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1255. Declared hide() in OptionHandler.
  1256. * src/NameMatchOptionHandler.h
  1257. * src/OptionHandler.h
  1258. * src/OptionHandlerImpl.h
  1259. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1260. Updated doc
  1261. * src/Peer.h
  1262. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1263. Added log message in setStatusInternal()
  1264. * src/ServerStat.cc
  1265. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1266. Call ServerStat::setError() in AbstractCommand::onAbort() to
  1267. effectively exclude failed server.
  1268. * src/AbstractCommand.cc
  1269. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1270. Added --index-out option to specify each file path for torrent.
  1271. Here index shown in --show-files option is used to specify which
  1272. file path should be altered. For example, to change the file path
  1273. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  1274. option multiple times: --index-out=1=aria2.tar.bz2
  1275. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  1276. available. This option can be specified in -i list.
  1277. * src/DefaultBtContext.cc
  1278. * src/DefaultBtContext.h
  1279. * src/MultiDiskAdaptor.cc
  1280. * src/MultiDiskAdaptor.h
  1281. * src/MultiFileAllocationIterator.cc
  1282. * src/OptionHandlerFactory.cc
  1283. * src/OptionHandlerImpl.h
  1284. * src/Util.cc
  1285. * src/Util.h
  1286. * src/download_helper.cc
  1287. * src/prefs.cc
  1288. * src/prefs.h
  1289. * src/usage_text.h
  1290. * test/DefaultBtContextTest.cc
  1291. * test/MultiDiskAdaptorTest.cc
  1292. * test/MultiFileAllocationIteratorTest.cc
  1293. * test/UtilTest.cc
  1294. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1295. Use Util::pathJoin()
  1296. * src/MetalinkParserController.cc
  1297. * test/test.xml
  1298. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1299. Use Util::pathJoin()
  1300. * src/DefaultBtContext.cc
  1301. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1302. Added Util::pathJoin()
  1303. * src/Util.h
  1304. * test/UtilTest.cc
  1305. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1306. Applied basename function to remove directory element in
  1307. content-disposition value.
  1308. Return empty string if content-disposition value is ".." or ".".
  1309. * src/Util.cc
  1310. * test/UtilTest.cc
  1311. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1312. Added --max-overall-download-limit in man page.
  1313. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  1314. * doc/aria2c.1.txt
  1315. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1316. Added --max-overall-download-limit option. Now --max-upload-limit
  1317. option is not ignored when --max-overall-upload-limit option has
  1318. non-zero value. aria2 checks download(upload) speed in the order:
  1319. first checks overall speed limit and if it is not exceeded, then
  1320. checks speed limit per download. Thus you can specify both
  1321. value. For example, set --max-overall-download-limit=1M and
  1322. --max-download-limit=500K to prevent from one download from eating
  1323. all overall speed limit.
  1324. * src/DefaultBtInteractive.cc
  1325. * src/DefaultBtInteractive.h
  1326. * src/DefaultBtMessageDispatcher.cc
  1327. * src/DefaultBtMessageDispatcher.h
  1328. * src/DownloadCommand.cc
  1329. * src/DownloadCommand.h
  1330. * src/FtpNegotiationCommand.cc
  1331. * src/HttpResponseCommand.cc
  1332. * src/OptionHandlerFactory.cc
  1333. * src/PeerInteractionCommand.cc
  1334. * src/RequestGroup.cc
  1335. * src/RequestGroup.h
  1336. * src/RequestGroupMan.cc
  1337. * src/RequestGroupMan.h
  1338. * src/prefs.cc
  1339. * src/prefs.h
  1340. * src/usage_text.h
  1341. * test/DefaultBtMessageDispatcherTest.cc
  1342. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1343. Documented select-file option in Input File section.
  1344. Documented --http-auth-challenge option.
  1345. * doc/aria2c.1.txt
  1346. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1347. Now select-file can be specified in the uri list(-i list).
  1348. * src/BtContext.cc
  1349. * src/BtContext.h
  1350. * src/RequestGroup.cc
  1351. * src/Sequence.h
  1352. * src/download_helper.cc
  1353. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1354. Made the upper value of --max-concurrent-downloads options unlimited.
  1355. * src/OptionHandlerFactory.cc
  1356. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1357. Fixed the bug that disk writer is not created even if it shares
  1358. same piece with the preceding file if the length of previous file
  1359. is 0.
  1360. * src/MultiDiskAdaptor.cc
  1361. * test/MultiDiskAdaptorTest.cc
  1362. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1363. In BitTorrent, Open files in read-only mode for hash check. After
  1364. that, re-open file in read/write mode only when the download is
  1365. not finished.
  1366. * src/AbstractDiskWriter.cc
  1367. * src/AbstractDiskWriter.h
  1368. * src/AbstractSingleDiskAdaptor.cc
  1369. * src/AbstractSingleDiskAdaptor.h
  1370. * src/BtCheckIntegrityEntry.cc
  1371. * src/DiskAdaptor.h
  1372. * src/DiskWriter.h
  1373. * src/MultiDiskAdaptor.cc
  1374. * src/MultiDiskAdaptor.h
  1375. * src/RequestGroup.cc
  1376. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1377. Added --http-auth-challenge option. If it is set to true(by
  1378. default), aria2 sends HTTP authorization header only when it is
  1379. requested by the server. If false is set, then authorization
  1380. header is always sent to the server. This is useful for servers
  1381. that don't respond 401 code when authentication is required.
  1382. There is an exception: if username and password are embedded in
  1383. URI, authorization header is always sent to the server regardless
  1384. of this option.
  1385. * src/AuthConfigFactory.cc
  1386. * src/HttpSkipResponseCommand.cc
  1387. * src/OptionHandlerFactory.cc
  1388. * src/prefs.cc
  1389. * src/prefs.h
  1390. * src/usage_text.h
  1391. * test/AuthConfigFactoryTest.cc
  1392. * test/HttpRequestTest.cc
  1393. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1394. * Release 1.2.0
  1395. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1396. Updated Spanish, Ukrainian, Russian and Japanese translations.
  1397. Thanks to all translators.
  1398. * po/es.po
  1399. * po/ja.po
  1400. * po/ru.po
  1401. * po/uk.po
  1402. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1403. Call deleteSocketForReadCheck() before socket is closed.
  1404. * src/HttpListenCommand.cc
  1405. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1406. Defined virtual destructor for BObject.
  1407. * src/bencode.h
  1408. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1409. Rewritten BDE to make it efficient.
  1410. * src/bencode.cc
  1411. * src/bencode.h
  1412. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1413. Removed function throw list.
  1414. * src/bencode.cc
  1415. * src/bencode.h
  1416. * test/BencodeTest.cc
  1417. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1418. Enclosed all URLs in double quotes in command-line examples.
  1419. * doc/aria2c.1.txt
  1420. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1421. Updated reference/see also section.
  1422. * README
  1423. * doc/aria2c.1.txt
  1424. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1425. Reorganized man page based on man man-pages.
  1426. * doc/aria2c.1.txt
  1427. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1428. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  1429. because same documents are available in man page. Added
  1430. References section.
  1431. * README
  1432. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1433. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  1434. PERFORMANCE PROFILE section.
  1435. * doc/aria2c.1.txt
  1436. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1437. Rewritten the section for configuration file.
  1438. * README
  1439. * doc/aria2c.1.txt
  1440. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1441. Fixed the segmentation fault during execution of choking algorithm
  1442. in leecher state because of broken compare operator
  1443. implementation.
  1444. * src/BtLeecherStateChoke.cc
  1445. * src/BtLeecherStateChoke.h
  1446. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1447. Open file in binary mode.
  1448. * src/CookieStorage.cc
  1449. * src/DHTSetup.cc
  1450. * src/DHTUtil.cc
  1451. * src/Netrc.cc
  1452. * src/NsCookieParser.cc
  1453. * src/ProtocolDetector.cc
  1454. * src/RequestGroupMan.cc
  1455. * src/Signature.cc
  1456. * src/bencode.cc
  1457. * src/download_helper.cc
  1458. * src/option_processing.cc
  1459. * test/CookieParserTest.cc
  1460. * test/DefaultBtProgressInfoFileTest.cc
  1461. * test/FileTest.cc
  1462. * test/GZipDecoderTest.cc
  1463. * test/RequestGroupManTest.cc
  1464. * test/SignatureTest.cc
  1465. * test/SingleFileAllocationIteratorTest.cc
  1466. * test/UriListParserTest.cc
  1467. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1468. Removed operator[] because it is ambiguous with built-in []
  1469. operator.
  1470. * src/array_fun.h
  1471. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1472. Fixed compile error
  1473. * src/OptionParser.cc
  1474. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1475. Added missing call to arrayWrapperConst
  1476. * test/array_funTest.cc
  1477. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1478. Use array_wrapper instead of array_ptr.
  1479. * src/DHTRoutingTableDeserializer.cc
  1480. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1481. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  1482. * src/array_fun.h
  1483. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1484. Added array_wrapper template.
  1485. * src/array_fun.h
  1486. * test/array_funTest.cc
  1487. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1488. Use operator T* of array_ptr.
  1489. * src/OptionParser.cc
  1490. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1491. Use localhost instead of 127.0.0.1
  1492. * test/FtpConnectionTest.cc
  1493. * test/MSEHandshakeTest.cc
  1494. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1495. Added operator T*
  1496. * src/array_fun.h
  1497. * test/array_funTest.cc
  1498. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1499. Use dynamically allocated char array to detect memory access
  1500. violation.
  1501. * src/DHTRoutingTableDeserializer.cc
  1502. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1503. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  1504. defined.
  1505. * src/PeerMessageUtil.cc
  1506. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1507. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  1508. * configure.ac
  1509. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1510. Added a check to see struct sockaddr_in has sin_len member.
  1511. * configure.ac
  1512. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1513. Fixed buffer overrun.
  1514. * src/DHTRoutingTableDeserializer.cc
  1515. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1516. Added LL for long long int constant.
  1517. * test/FtpConnectionTest.cc
  1518. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1519. Casted to unsigned int to suppress compiler warning on netbsd.
  1520. * src/BtRuntime.h
  1521. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1522. Assign the value of tv.tv_sec to time_t timesec instead of giving
  1523. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  1524. type time_t.
  1525. * src/SimpleLogger.cc
  1526. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1527. Added test for FtpConnection::receiveSizeResponse().
  1528. * test/FtpConnectionTest.cc
  1529. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1530. Fix epoll error on the old kernel 2.6.8 or ealier.
  1531. * src/EpollEventPoll.cc
  1532. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1533. Use Util::parseLLInt instead of sscanf for portability. The
  1534. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  1535. * src/FtpConnection.cc
  1536. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1537. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  1538. block. It should not filter anything.
  1539. * src/BitfieldMan.cc
  1540. * src/ConsoleStatCalc.cc
  1541. * test/BitfieldManTest.cc
  1542. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1543. Fixed the bug that the boolean options that don't take arguments
  1544. don't work.
  1545. * src/OptionHandlerImpl.h
  1546. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1547. Fixed broken selected file BitTorrent download.
  1548. * src/MultiDiskAdaptor.cc
  1549. * test/MultiDiskAdaptorTest.cc
  1550. * test/MultiFileAllocationIteratorTest.cc
  1551. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1552. Fixed #define guard for EpollEventPoll
  1553. * src/EpollEventPoll.h
  1554. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1555. Wait 2 seconds. 1 second is sometimes not enough.
  1556. * test/TimeSeedCriteriaTest.cc
  1557. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1558. Use localhost instead of 127.0.0.1.
  1559. * test/DHTConnectionImplTest.cc
  1560. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1561. Suppressed compiler warning.
  1562. * src/AdaptiveURISelector.cc
  1563. * src/DefaultPieceStorage.cc
  1564. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1565. Defined virtual destructor.
  1566. * src/MetalinkParserState.h
  1567. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1568. Give NULL for second argument of getaddrinfo instead of "0".
  1569. * src/NameResolver.cc
  1570. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1571. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  1572. included strptime doesn't parse data for this format.
  1573. * src/FtpConnection.cc
  1574. * test/FtpConnectionTest.cc
  1575. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1576. Removed tests giving -1 for unsigned argument.
  1577. * test/SingleFileDownloadContextTest.cc
  1578. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1579. Don't use sha256 in tests because it might not be supported by the
  1580. SSL library.
  1581. * test/MetalinkProcessorTest.cc
  1582. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1583. Removed tests giving -1 for unsigned argument.
  1584. * test/AlphaNumberDecoratorTest
  1585. * test/BitfieldManTest.cc
  1586. * test/DefaultBtContextTest.cc
  1587. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1588. Fixed compile error without libcares when epoll is available.
  1589. * src/EpollEventPoll.cc
  1590. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1591. Included fstream instead of iostream.
  1592. * test/SignatureTest.cc
  1593. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1594. Removed #include <algorithm>
  1595. * test/RequestGroupTest.cc
  1596. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1597. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  1598. using RequestGroup::extractURIResult().
  1599. * src/AdaptiveURISelector.cc
  1600. * src/RequestGroup.cc
  1601. * src/RequestGroup.h
  1602. * test/RequestGroupTest.cc
  1603. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1604. Added tests for array_ptr.
  1605. * test/array_funTest.cc
  1606. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1607. Don't send ip parameter to a tracker if ip parameter is empty
  1608. string.
  1609. * src/DefaultBtAnnounce.cc
  1610. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1611. Adjusted line feed.
  1612. * src/version_usage.cc
  1613. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1614. Print tags, possible values when OptionHandlerException is caught.
  1615. * src/option_processing.cc
  1616. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1617. Changed the message for FatalException.
  1618. * src/OptionParser.cc
  1619. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1620. Documented --bt-external-ip option in man page. Updated man pages
  1621. for --proxy-method option.
  1622. * doc/aria2c.1.txt
  1623. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1624. Use GET method for FTP via HTTP proxy.
  1625. * src/FtpInitiateConnectionCommand.cc
  1626. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1627. Changed the default value of --proxy-method option from 'tunnel'
  1628. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  1629. option.
  1630. * src/AbstractCommand.cc
  1631. * src/AbstractCommand.h
  1632. * src/FtpInitiateConnectionCommand.cc
  1633. * src/HttpDownloadCommand.cc
  1634. * src/HttpInitiateConnectionCommand.cc
  1635. * src/HttpInitiateConnectionCommand.h
  1636. * src/OptionHandlerFactory.cc
  1637. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1638. Initialized _logger
  1639. * src/SelectEventPoll.cc
  1640. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1641. Defined a copy constructor for the same type.
  1642. * src/SharedHandle.h
  1643. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1644. Added OptionParser::parseArg() which internally uses getopt_long
  1645. to parse command-line options. All command-line options are now
  1646. configured by OptionHandler. No manual editing of struct option*
  1647. is required any more.
  1648. * src/NameMatchOptionHandler.h
  1649. * src/OptionHandler.h
  1650. * src/OptionHandlerFactory.cc
  1651. * src/OptionHandlerImpl.h
  1652. * src/OptionParser.cc
  1653. * src/OptionParser.h
  1654. * src/array_fun.h
  1655. * src/main.cc
  1656. * src/option_processing.cc
  1657. * test/OptionHandlerTest.cc
  1658. * test/OptionParserTest.cc
  1659. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1660. Fixed configure error with --disable-epoll
  1661. * configure.ac
  1662. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1663. Fixed compile error when HAVE_EPOLL is not defined.
  1664. Fixed linker error on bigendian systems.
  1665. * src/SocketCore.cc
  1666. * src/SocketCore.h
  1667. * test/DefaultBtProgressInfoFileTest.cc
  1668. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1669. Added --bt-external-ip option. You can specify the external IP
  1670. address to report to a BitTorrent tracker. Although this function
  1671. is named 'external', it can accept any kind of IP addresses.
  1672. * src/DefaultBtAnnounce.cc
  1673. * src/OptionHandlerFactory.cc
  1674. * src/option_processing.cc
  1675. * src/prefs.cc
  1676. * src/prefs.h
  1677. * src/usage_text.h
  1678. * test/DefaultBtAnnounceTest.cc
  1679. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1680. Extracted the algorithm to find the longest incremental sequence
  1681. as max_sequence template.
  1682. * src/LongestSequencePieceSelector.cc
  1683. * src/a2algo.h
  1684. * test/Makefile.am
  1685. * test/a2algoTest.cc
  1686. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1687. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  1688. * src/usage_text.h
  1689. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1690. Updated doc for --uri-selector, --http-server-listen-port and
  1691. --enable-http-server option. Documented --event-poll option.
  1692. * doc/aria2c.1.txt
  1693. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1694. Updated doc for --enable-http-server.
  1695. * src/usage_text.h
  1696. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1697. Documented --http-server-listen-port and --enable-http-server in
  1698. man page.
  1699. * doc/aria2c.1.txt
  1700. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1701. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  1702. translations. Thanks to all translators.
  1703. * po/es.po
  1704. * po/id.po
  1705. * po/it.po
  1706. * po/ru.po
  1707. * po/uk.po
  1708. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1709. Bump up version number to 1.2.0
  1710. * configure.ac
  1711. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1712. BtContext::getAnnounceTiers() now returns const reference.
  1713. * src/BtContext.h
  1714. * src/DefaultBtContext.cc
  1715. * src/DefaultBtContext.h
  1716. * test/MockBtContext.h
  1717. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1718. Change the number of retries for tracker request based on the
  1719. number of available tracker in a torrent file.
  1720. * src/TrackerWatcherCommand.cc
  1721. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1722. Added _maxTries property to RequestGroup and assign the option
  1723. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  1724. RequestGroup::getMaxTries() instead of
  1725. Option::getAsInt(PREF_MAX_TRIES).
  1726. * src/AbstractCommand.cc
  1727. * src/RequestGroup.cc
  1728. * src/RequestGroup.h
  1729. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1730. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  1731. Mandriva. I modified the patch: make RequestGroup have the
  1732. timeout value and AdaptiveURISelector directly modifies that
  1733. value.
  1734. * src/AbstractCommand.cc
  1735. * src/AdaptiveURISelector.cc
  1736. * src/AdaptiveURISelector.h
  1737. * src/FtpNegotiationCommand.cc
  1738. * src/RequestGroup.cc
  1739. * src/RequestGroup.h
  1740. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1741. Fixed compiler warning
  1742. * test/IteratableChecksumValidatorTest.cc
  1743. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1744. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  1745. integrated downloads. This PieceSelector subclass finds the
  1746. longest continuous sequence in the available missing pieces and
  1747. selects the last index of such sequence. This makes HTTP/FTP
  1748. connections less interrupted by the pieces obtained by BitTorrent
  1749. peers.
  1750. * src/DefaultPieceStorage.cc
  1751. * src/DefaultPieceStorage.h
  1752. * src/LongestSequencePieceSelector.cc
  1753. * src/LongestSequencePieceSelector.h
  1754. * src/Makefile.am
  1755. * src/PieceSelector.h
  1756. * src/RarestPieceSelector.h
  1757. * src/RequestGroup.cc
  1758. * test/BtDependencyTest.cc
  1759. * test/DefaultPieceStorageTest.cc
  1760. * test/IteratableChecksumValidatorTest.cc
  1761. * test/LongestSequencePieceSelectorTest.cc
  1762. * test/Makefile.am
  1763. * test/SegmentManTest.cc
  1764. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1765. Fixed the bug that the average speed is wrong in
  1766. http/ftp/BitTorrent integrated download. Only the download bytes
  1767. in BitTorrent were considered.
  1768. * src/RequestGroup.cc
  1769. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1770. Choose port for BitTorrent/DHT randomly from the specified range.
  1771. * src/DHTConnectionImpl.cc
  1772. * src/PeerListenCommand.cc
  1773. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1774. Send HTTP Authorization header only if it is requested by the
  1775. server(response 401). There are some exceptions. The authorization
  1776. header for proxy is always sent if it is available without request
  1777. by the server. If username/password is specified in the URI, it
  1778. is immediately sent to the server without request by the server.
  1779. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  1780. SharedHandle<AuthConfig>().
  1781. NetrcAuthResolver::resolveAuthConfig() returns
  1782. SharedHandle<AuthConfig>() if no AuthConfig is available.
  1783. * src/AbstractAuthResolver.cc
  1784. * src/AbstractProxyRequestCommand.cc
  1785. * src/AuthConfigFactory.cc
  1786. * src/AuthConfigFactory.h
  1787. * src/HttpConnection.cc
  1788. * src/HttpRequest.cc
  1789. * src/HttpRequest.h
  1790. * src/HttpResponse.cc
  1791. * src/HttpResponseCommand.cc
  1792. * src/HttpSkipResponseCommand.cc
  1793. * test/AuthConfigFactoryTest.cc
  1794. * test/HttpRequestTest.cc
  1795. * test/HttpResponseTest.cc
  1796. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1797. Remove leading "--" from help keyword and a substring after "="
  1798. from help keyword, so that one can query options by '-h--max-' or
  1799. '-hmax-peers=10'.
  1800. * src/option_processing.cc
  1801. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1802. Rewritten PStringVisitor and its implementation.
  1803. * src/PStringBuildVisitor.cc
  1804. * src/PStringBuildVisitor.h
  1805. * src/PStringDatum.h
  1806. * src/PStringNumLoop.h
  1807. * src/PStringSegment.cc
  1808. * src/PStringSegment.h
  1809. * src/PStringSelect.h
  1810. * src/PStringVisitor.h
  1811. * src/download_helper.cc
  1812. * test/PStringBuildVisitorTest.cc
  1813. * test/ParameterizedStringParserTest.cc
  1814. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1815. Persist connection between the built-in HTTP server and a client
  1816. if a client supports keep-alive. Fixed the bug that aria2 exits
  1817. when the HTTP server receives EOF from a client.
  1818. * src/HttpServer.cc
  1819. * src/HttpServer.h
  1820. * src/HttpServerCommand.cc
  1821. * src/HttpServerCommand.h
  1822. * src/HttpServerResponseCommand.cc
  1823. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1824. Added experimental built-in HTTP server. Currently, when a client
  1825. accesses to the server, it responds with the current download
  1826. progress. By default, it is disabled. To enable the server, give
  1827. --enable-http-server option. To change the default port number
  1828. for the server to listen to, use --http-server-listen-port option.
  1829. The response HTML is very simple and refreshes it self each 1
  1830. second. Because of this refresh, you see flicker in normal web
  1831. browser such as Firefox. I recommend to use console-based browser
  1832. such as elinks, w3m. To connect to the server, run 'elinks
  1833. http://localhost:6800/' while running aria2. Please replace port
  1834. number '6800'(which is default) with your preference.
  1835. * src/DownloadEngineFactory.cc
  1836. * src/HttpHeader.cc
  1837. * src/HttpHeader.h
  1838. * src/HttpHeaderProcessor.cc
  1839. * src/HttpHeaderProcessor.h
  1840. * src/HttpListenCommand.cc
  1841. * src/HttpListenCommand.h
  1842. * src/HttpServer.cc
  1843. * src/HttpServer.h
  1844. * src/HttpServerCommand.cc
  1845. * src/HttpServerCommand.h
  1846. * src/HttpServerResponseCommand.cc
  1847. * src/HttpServerResponseCommand.h
  1848. * src/Makefile.am
  1849. * src/OptionHandlerFactory.cc
  1850. * src/Util.cc
  1851. * src/Util.h
  1852. * src/help_tags.h
  1853. * src/option_processing.cc
  1854. * src/prefs.cc
  1855. * src/prefs.h
  1856. * src/usage_text.h
  1857. * test/HttpHeaderProcessorTest.cc
  1858. * test/UtilTest.cc
  1859. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1860. Removed.
  1861. * src/CheckIntegrityMan.cc
  1862. * src/FileAllocationMan.cc
  1863. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1864. Made (piece) hash check sequential for each RequestGroup because
  1865. simultaneous hash check is slower than sequential execution.
  1866. * src/CheckIntegrityCommand.cc
  1867. * src/CheckIntegrityDispatcherCommand.cc
  1868. * src/CheckIntegrityDispatcherCommand.h
  1869. * src/CheckIntegrityMan.h
  1870. * src/ConsoleStatCalc.cc
  1871. * src/DownloadCommand.cc
  1872. * src/DownloadEngine.cc
  1873. * src/DownloadEngine.h
  1874. * src/DownloadEngineFactory.cc
  1875. * src/Makefile.am
  1876. * src/Makefile.in
  1877. * src/RequestGroup.cc
  1878. * src/StatCalc.h
  1879. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1880. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  1881. SequentialDispatcherCommand.
  1882. * src/FileAllocationDispatcherCommand.cc
  1883. * src/SequentialDispatcherCommand.h
  1884. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1885. Rewritten FileAllocationDispatcherCommand using brand new
  1886. SequentialDispatcherCommand.
  1887. * src/DownloadEngineFactory.cc
  1888. * src/FileAllocationCommand.cc
  1889. * src/FileAllocationDispatcherCommand.cc
  1890. * src/FileAllocationDispatcherCommand.h
  1891. * src/Makefile.am
  1892. * src/SequentialDispatcherCommand.h
  1893. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1894. Replaced FileAllocationMan with
  1895. SequentialPicker<FileAllocationEntry>.
  1896. * src/BtCheckIntegrityEntry.cc
  1897. * src/ConsoleStatCalc.cc
  1898. * src/DownloadEngine.cc
  1899. * src/DownloadEngine.h
  1900. * src/DownloadEngineFactory.cc
  1901. * src/FileAllocationCommand.cc
  1902. * src/FileAllocationDispatcherCommand.cc
  1903. * src/FileAllocationMan.h
  1904. * src/Makefile.am
  1905. * src/SequentialPicker.h
  1906. * src/StatCalc.h
  1907. * src/StreamCheckIntegrityEntry.cc
  1908. * test/Makefile.am
  1909. * test/SequentialPickerTest.cc
  1910. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1911. Added doc for adaptive URI selector.
  1912. * doc/aria2c.1.txt
  1913. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1914. Added doc for adaptive URI selector.
  1915. * src/usage_text.h
  1916. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1917. Added doc for --bt-max-peers option.
  1918. * doc/aria2c.1.txt
  1919. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1920. Added doc for --bt-hash-check-seed option.
  1921. * doc/aria2c.1.txt
  1922. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1923. Documented exit codes.
  1924. * doc/aria2c.1.txt
  1925. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1926. Added --bt-max-peers option to specify the maximum number of peers
  1927. per torrent. 0 means unlimited number of peers.
  1928. * src/ActivePeerConnectionCommand.cc
  1929. * src/BtRuntime.h
  1930. * src/DefaultPeerStorage.cc
  1931. * src/DefaultPeerStorage.h
  1932. * src/OptionHandlerFactory.cc
  1933. * src/RequestGroup.cc
  1934. * src/option_processing.cc
  1935. * src/prefs.cc
  1936. * src/prefs.h
  1937. * src/usage_text.h
  1938. * test/DefaultPeerStorageTest.cc
  1939. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1940. Added --bt-hash-check-seed option. If true is given to this
  1941. option, after hash check using --check-integrity option and file
  1942. is complete, continue to seed file. If you want to check file and
  1943. download it only when it is damaged or incomplete, set this option
  1944. to false. This option has effect only on BitTorrent download.
  1945. The default value is true(This is the same behavior with the
  1946. previous release).
  1947. * src/BtCheckIntegrityEntry.cc
  1948. * src/OptionHandlerFactory.cc
  1949. * src/option_processing.cc
  1950. * src/prefs.cc
  1951. * src/prefs.h
  1952. * src/usage_text.h
  1953. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1954. Updated copyright year.
  1955. * src/version_usage.cc
  1956. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1957. Rewritten the usage text for --bt-request-peer-speed-limit option.
  1958. * doc/aria2c.1.txt
  1959. * src/usage_text.h
  1960. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1961. Made the max value of split option unlimited.
  1962. * doc/aria2c.1.txt
  1963. * src/OptionHandlerFactory.cc
  1964. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1965. Fixed compile warning/error.
  1966. * src/DownloadResult.h
  1967. * src/HttpDownloadCommand.cc
  1968. * src/ServerStat.cc
  1969. * test/RequestGroupTest.cc
  1970. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1971. Added --event-poll option to select the method for polling events.
  1972. The available methods are "select" and "epoll". "epoll" is
  1973. available on Linux only. The earlier release has the compile
  1974. option to choose from these methods.
  1975. * configure.ac
  1976. * src/RequestGroupMan.cc
  1977. * src/OptionHandlerFactory.cc
  1978. * src/EpollEventPoll.h
  1979. * src/StreamFileAllocationEntry.cc
  1980. * src/a2io.h
  1981. * src/SelectEventPoll.h
  1982. * src/option_processing.cc
  1983. * src/prefs.h
  1984. * src/EpollEventPoll.cc
  1985. * src/EventPoll.h
  1986. * src/SocketCore.h
  1987. * src/Makefile.am
  1988. * src/main.cc
  1989. * src/DownloadEngine.h
  1990. * src/SelectEventPoll.cc
  1991. * src/DownloadEngine.cc
  1992. * src/SocketCore.cc
  1993. * src/DownloadEngineFactory.cc
  1994. * src/Makefile.in
  1995. * src/prefs.cc
  1996. * src/usage_text.h
  1997. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1998. Included RecoverableException.h from main.cc
  1999. * src/main.cc
  2000. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2001. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  2002. now returns last error encountered in the HTTP/FTP downloads as a
  2003. exit status value. If all downloads finished successfully, aria2
  2004. returns 0. The error code is defined in src/DownloadResult.h.
  2005. The error occurred in the download currently in progress is not
  2006. reported as a last error. If no error has encountered but there
  2007. are in progress or waiting downloads, aria2 returns 7.
  2008. * src/AbstractCommand.cc
  2009. * src/DlAbortEx.h
  2010. * src/DlRetryEx.h
  2011. * src/DownloadCommand.cc
  2012. * src/DownloadFailureException.h
  2013. * src/DownloadResult.h
  2014. * src/FtpNegotiationCommand.cc
  2015. * src/HttpSkipResponseCommand.cc
  2016. * src/Makefile.am
  2017. * src/MultiUrlRequestInfo.cc
  2018. * src/MultiUrlRequestInfo.h
  2019. * src/RecoverableException.h
  2020. * src/RequestGroup.cc
  2021. * src/RequestGroup.h
  2022. * src/RequestGroupMan.cc
  2023. * src/RequestGroupMan.h
  2024. * src/URIResult.cc
  2025. * src/URIResult.h
  2026. * src/main.cc
  2027. * src/option_processing.cc
  2028. * test/RequestGroupTest.cc
  2029. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2030. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  2031. patch adds AdaptiveURISelector, which selects one of the bests
  2032. mirrors for first and reserved connections. For supplementary
  2033. ones, it returns mirrors which has not been tested yet, and if
  2034. each of them already tested, returns mirrors which has to be
  2035. tested again. Otherwise, it doesn't return anymore mirrors.
  2036. * src/AdaptiveURISelector.cc
  2037. * src/AdaptiveURISelector.h
  2038. * src/FtpNegotiationCommand.cc
  2039. * src/HttpResponseCommand.cc
  2040. * src/Makefile.am
  2041. * src/Makefile.in
  2042. * src/OptionHandlerFactory.cc
  2043. * src/RequestGroup.cc
  2044. * src/RequestGroup.h
  2045. * src/RequestGroupMan.cc
  2046. * src/ServerStat.cc
  2047. * src/ServerStat.h
  2048. * src/ServerStatMan.cc
  2049. * src/SpeedCalc.cc
  2050. * src/URISelector.h
  2051. * src/prefs.cc
  2052. * src/prefs.h
  2053. * test/RequestGroupManTest.cc
  2054. * test/ServerStatManTest.cc
  2055. * test/ServerStatTest.cc
  2056. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2057. Fixed unit test error.
  2058. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  2059. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2060. * Release 1.1.2
  2061. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2062. Updated Russian translation. Thanks to the translators.
  2063. * po/ru.po
  2064. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2065. Added the description of --use-head option to man page.
  2066. * doc/aria2c.1.txt
  2067. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2068. Bump up version number to 1.1.2
  2069. * configure.ac
  2070. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2071. Added --use-head option to toggle whether HEAD method should be
  2072. used in the first HTTP request. By default aria2 uses HEAD method
  2073. as the first request. When the server doesn't recognize HEAD, then
  2074. give aria2 --use-head=false to force aria2 to use GET method
  2075. instead.
  2076. * src/OptionHandlerFactory.cc
  2077. * src/RequestGroupMan.cc
  2078. * src/option_processing.cc
  2079. * src/prefs.cc
  2080. * src/prefs.h
  2081. * src/usage_text.h
  2082. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2083. Fixed the bug that BitTorrent download doesn't finish when REJECT
  2084. message is received before CHOKE message. The old implementation
  2085. doen't clear the use-bit of the piece when recieved REJECT
  2086. message.
  2087. * src/DefaultBtMessageDispatcher.cc
  2088. * test/DefaultBtMessageDispatcherTest.cc
  2089. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2090. * Release 1.1.1
  2091. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2092. Bump up version number to 1.1.1.
  2093. * configure.ac
  2094. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2095. Fixed the bug that --summary-interval=0 doesn't work. The summary
  2096. is printed repeatedly.
  2097. * src/ConsoleStatCalc.cc
  2098. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2099. * Release 1.1.0
  2100. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2101. Added ifdef clause for conditional compilation.
  2102. * src/main.cc
  2103. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2104. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  2105. translations. Thanks to all translators.
  2106. * po/ja.po
  2107. * po/ru.po
  2108. * po/uk.po
  2109. * po/zh_CN.po
  2110. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2111. Added the preceding ">>> " before the message "Printing the
  2112. contents of file..." to make the output more readable.
  2113. * src/main.cc
  2114. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2115. Added try-catch block in the loop in showFiles() to continue the
  2116. operation even if the exception occurred in one file.
  2117. * src/main.cc (showFiles)
  2118. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2119. Made messages in showFiles() translatable.
  2120. * po/aria2.pot
  2121. * src/main.cc
  2122. * src/message.h
  2123. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2124. Print the contents of Torrent/Metalink files are printed without
  2125. -T/-M options.
  2126. * src/main.cc
  2127. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2128. Escaped '--' with '\--'
  2129. * README
  2130. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2131. Updated "How to build" section in README. Mentioned about
  2132. --with-ca-bundle compile option.
  2133. * README
  2134. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2135. Bump up version number to 1.1.0.
  2136. * configure.ac
  2137. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2138. Added a note for --dht-listen-port option.
  2139. * doc/aria2c.1.txt
  2140. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2141. Update doc for --realtime-chunk-checksum option.
  2142. * doc/aria2c.1.txt
  2143. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2144. Update doc for --realtime-chunk-checksum option.
  2145. * src/usage_text.h
  2146. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2147. Updated French, Japanese, Russian and Ukrainian translations.
  2148. Thanks to all translators.
  2149. * po/fr.po
  2150. * po/ja.po
  2151. * po/ru.po
  2152. * po/uk.po
  2153. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2154. Renamed aria2c.pot to aria2.pot
  2155. * po/aria2.pot
  2156. * po/aria2c.pot: Removed.
  2157. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2158. Removed MetaEntry.h
  2159. * src/Makefile.am
  2160. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2161. Rename file by appending digits if a local file exists and its
  2162. file size is larger than that of remote file with --continue
  2163. option. The old implementation just throws exception in such case.
  2164. * src/RequestGroup.cc
  2165. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2166. Fixed the bug that download progress summary is not printed in the
  2167. interval specified by the option.
  2168. * src/ConsoleStatCalc.cc
  2169. * src/ConsoleStatCalc.h
  2170. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2171. Fixed compiler warning
  2172. * src/Cookie.cc
  2173. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2174. Fixed the cookie implementation based on RFC2965.
  2175. Now if a value in domain field is not started with dot, then
  2176. prepend dot. That means a cookie with domain=sf.net is sent to
  2177. wiki.sf.net.
  2178. * src/Cookie.cc
  2179. * test/CookieParserTest.cc
  2180. * test/CookieStorageTest.cc
  2181. * test/CookieTest.cc
  2182. * test/NsCookieParserTest.cc
  2183. * test/Sqlite3MozCookieParserTest.cc
  2184. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2185. Fixed the bug that causes corrupted downloads if HTTP pipelining
  2186. is enabled and the server doesn't support keep-alive.
  2187. * src/AbstractCommand.cc
  2188. * src/DownloadCommand.cc
  2189. * src/HttpDownloadCommand.cc
  2190. * src/HttpDownloadCommand.h
  2191. * src/HttpResponseCommand.cc
  2192. * src/Request.cc
  2193. * src/Request.h
  2194. * test/RequestTest.cc
  2195. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2196. Removed Dictionary/List/Data and its related classes.
  2197. * src/BencodeVisitor.cc: Removed.
  2198. * src/BencodeVisitor.h: Removed.
  2199. * src/Data.cc: Removed.
  2200. * src/Data.h: Removed.
  2201. * src/Dictionary.cc: Removed.
  2202. * src/Dictionary.h: Removed.
  2203. * src/List.cc: Removed.
  2204. * src/List.h: Removed.
  2205. * src/Makefile.am
  2206. * src/MetaEntry.h: Removed.
  2207. * src/MetaEntryVisitor.h: Removed.
  2208. * src/MetaFileUtil.cc: Removed.
  2209. * src/MetaFileUtil.h: Removed.
  2210. * test/BencodeVisitorTest.cc: Removed.
  2211. * test/DataTest.cc: Removed.
  2212. * test/DictionaryTest.cc: Removed.
  2213. * test/ListTest.cc: Removed.
  2214. * test/Makefile.am
  2215. * test/MetaFileUtilTest.cc: Removed.
  2216. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2217. Removed include of MetaEntry.h
  2218. * test/DHTMessageTrackerEntryTest.cc
  2219. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2220. Use BDE instead of Dictionary/List/Data.
  2221. * src/AnnounceList.cc
  2222. * src/AnnounceList.h
  2223. * test/AnnounceListTest.cc
  2224. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2225. Use BDE instead of Dictionary/List/Data.
  2226. * src/DHTAbstractMessage.cc
  2227. * src/DHTAbstractMessage.h
  2228. * src/DHTAnnouncePeerMessage.cc
  2229. * src/DHTAnnouncePeerMessage.h
  2230. * src/DHTAnnouncePeerReplyMessage.cc
  2231. * src/DHTAnnouncePeerReplyMessage.h
  2232. * src/DHTFindNodeMessage.cc
  2233. * src/DHTFindNodeMessage.h
  2234. * src/DHTFindNodeReplyMessage.cc
  2235. * src/DHTFindNodeReplyMessage.h
  2236. * src/DHTGetPeersMessage.cc
  2237. * src/DHTGetPeersMessage.h
  2238. * src/DHTGetPeersReplyMessage.cc
  2239. * src/DHTGetPeersReplyMessage.h
  2240. * src/DHTMessageFactory.h
  2241. * src/DHTMessageFactoryImpl.cc
  2242. * src/DHTMessageFactoryImpl.h
  2243. * src/DHTMessageReceiver.cc
  2244. * src/DHTMessageTracker.cc
  2245. * src/DHTMessageTracker.h
  2246. * src/DHTPingMessage.cc
  2247. * src/DHTPingMessage.h
  2248. * src/DHTPingReplyMessage.cc
  2249. * src/DHTPingReplyMessage.h
  2250. * src/DHTQueryMessage.cc
  2251. * src/DHTQueryMessage.h
  2252. * src/DHTResponseMessage.cc
  2253. * src/DHTResponseMessage.h
  2254. * test/DHTAnnouncePeerMessageTest.cc
  2255. * test/DHTAnnouncePeerReplyMessageTest.cc
  2256. * test/DHTFindNodeMessageTest.cc
  2257. * test/DHTFindNodeReplyMessageTest.cc
  2258. * test/DHTGetPeersMessageTest.cc
  2259. * test/DHTGetPeersReplyMessageTest.cc
  2260. * test/DHTMessageFactoryImplTest.cc
  2261. * test/DHTMessageTrackerTest.cc
  2262. * test/DHTPingMessageTest.cc
  2263. * test/DHTPingReplyMessageTest.cc
  2264. * test/MockDHTMessageFactory.h
  2265. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2266. Added tests the case where length < 0 is specified.
  2267. * test/BencodeTest.cc
  2268. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2269. Fixed memory leak in decoderawstring()
  2270. * src/bencode.cc
  2271. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2272. Added missing #ifdef guard. Added uc() function for String and
  2273. removeKey() for Dict.
  2274. * src/bencode.cc
  2275. * src/bencode.h
  2276. * test/BencodeTest.cc
  2277. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2278. Use BDE instead of Dictionary/List/Data.
  2279. * src/HandshakeExtensionMessage.cc
  2280. * src/HandshakeExtensionMessage.h
  2281. * test/HandshakeExtensionMessageTest.cc
  2282. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2283. Added --max-overall-upload-limit option. This option limits the
  2284. overall upload speed. Stated in help message that the existing
  2285. --max-upload-limit option limits the upload speed per each
  2286. torrent. Man page is also updated.
  2287. * doc/aria2c.1.txt
  2288. * src/DefaultBtMessageDispatcher.cc
  2289. * src/DefaultBtMessageDispatcher.h
  2290. * src/OptionHandlerFactory.cc
  2291. * src/PeerInteractionCommand.cc
  2292. * src/option_processing.cc
  2293. * src/prefs.cc
  2294. * src/prefs.h
  2295. * src/usage_text.h
  2296. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2297. Use BDE instead of Dictionary/List/Data classes.
  2298. * src/CompactPeerListProcessor.cc
  2299. * src/CompactPeerListProcessor.h
  2300. * src/DefaultBtAnnounce.cc
  2301. * src/DefaultBtContext.cc
  2302. * src/DefaultBtContext.h
  2303. * src/DefaultPeerListProcessor.cc
  2304. * src/DefaultPeerListProcessor.h
  2305. * src/DelegatingPeerListProcessor.cc
  2306. * src/DelegatingPeerListProcessor.h
  2307. * src/PeerListProcessor.h
  2308. * src/UTPexExtensionMessage.cc
  2309. * src/Util.h
  2310. * src/message.h
  2311. * test/DefaultBtContextTest.cc
  2312. * test/DefaultPeerListProcessorTest.cc
  2313. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2314. Added bencode helper functions and BDE class.
  2315. They will replace MetaFileUtil and Dictionary/List/Data classes.
  2316. * src/Makefile.am
  2317. * src/bencode.cc
  2318. * src/bencode.h
  2319. * test/BencodeTest.cc
  2320. * test/Makefile.am
  2321. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2322. Fixed the bug that bad URI is sent to the tracker when the announe
  2323. URI in torrent file includes query.
  2324. * src/DefaultBtAnnounce.cc
  2325. * test/DefaultBtAnnounceTest.cc
  2326. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2327. Added Option::blank().
  2328. Use !Option::blank(name) instead of Option::defined(name) for
  2329. the options that take filename.
  2330. * src/MultiUrlRequestInfo.cc
  2331. * src/Option.cc
  2332. * src/Option.h
  2333. * src/main.cc
  2334. * src/option_processing.cc
  2335. * test/OptionTest.cc
  2336. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2337. Documented the default value of --check-certificate option in man
  2338. page.
  2339. * doc/aria2c.1.txt
  2340. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2341. Enabled --check-certificate by default. Added compile
  2342. time(configure) option --with-ca-bundle to specify CA bundle.
  2343. Warn if --check-certificate=true and --ca-certificate is not
  2344. specified or loading CA certificate is failed.
  2345. * configure.ac
  2346. * src/MultiUrlRequestInfo.cc
  2347. * src/OptionHandlerFactory.cc
  2348. * src/message.h
  2349. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2350. Mentioned https tag in help option.
  2351. * doc/aria2c.1.txt
  2352. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2353. Added `https' tag to help option category. Added https tag to
  2354. --ca-certificate, --certificate, --check-certificate and
  2355. --private-key option.
  2356. * src/OptionHandlerFactory.cc
  2357. * src/help_tags.h
  2358. * src/option_processing.cc
  2359. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2360. Changed the package name from `aria2c' to `aria2' in order to fix
  2361. the packaging issue in Debian and Fedora. The name of the
  2362. executable is not changed.
  2363. * configure.ac
  2364. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2365. Fixed typos
  2366. * src/usage_text.h
  2367. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2368. Fixed typos and updated doc.
  2369. * README
  2370. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2371. Fixed typos
  2372. * doc/aria2c.1.txt
  2373. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2374. Fixed typos
  2375. * src/usage_text.h
  2376. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2377. Print a message when no files to download.
  2378. * src/download_helper.cc
  2379. * src/main.cc
  2380. * src/message.h
  2381. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2382. RFC3986 complied Percent-Encoding(urlencode).
  2383. Use uppercase hexadecimal digits for encoded text instead of lowercase
  2384. ones.
  2385. * src/Request.cc
  2386. * src/Util.cc
  2387. * src/Util.h
  2388. * test/BtHandshakeMessageTest.cc
  2389. * test/DefaultBtAnnounceTest.cc
  2390. * test/DefaultBtContextTest.cc
  2391. * test/RequestTest.cc
  2392. * test/UtilTest.cc
  2393. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2394. Fixed the bug that prevents aria2 from downloading 0-length files
  2395. via HTTP/FTP.
  2396. * src/DefaultBtContext.cc
  2397. * src/DefaultBtContext.h
  2398. * src/DownloadContext.h
  2399. * src/FtpNegotiationCommand.cc
  2400. * src/HttpResponseCommand.cc
  2401. * src/HttpResponseCommand.h
  2402. * src/RequestGroup.cc
  2403. * src/SingleFileDownloadContext.cc
  2404. * src/SingleFileDownloadContext.h
  2405. * test/BtPostDownloadHandlerTest.cc
  2406. * test/MetalinkPostDownloadHandlerTest.cc
  2407. * test/MockBtContext.h
  2408. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2409. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  2410. * src/option_processing.cc
  2411. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2412. Applied aria2-1.0.1-mingw.patch.
  2413. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  2414. mingw.
  2415. Collected 4th and 5th argument types for getsockopt and setsockopt.
  2416. * src/SocketCore.cc
  2417. * src/a2netcompat.h
  2418. * test/SocketCoreTest.cc
  2419. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2420. * Release 1.0.1
  2421. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2422. Updated Ukrainian and Norwegian Nynorsk translations.
  2423. Thanks to all translators.
  2424. * po/nn.po
  2425. * po/uk.po
  2426. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2427. Don't show download result when -S option is used.
  2428. * src/main.cc
  2429. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2430. Bump up version number to 1.0.1
  2431. * configure.ac
  2432. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2433. Closed files after the test cases in MultiDiskWriterTest::
  2434. testResetDiskWriterEntries(). This will fix the unit test error
  2435. in mingw32 build.
  2436. * test/MultiDiskWriterTest.cc
  2437. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2438. Use HEAD method to get file size from HTTP server for segmented
  2439. downloading.
  2440. The request to the BitTorrent Tracker always uses GET method because
  2441. the response of the tracker is small and it doesn't need segmented
  2442. download.
  2443. * src/FtpNegotiationCommand.cc
  2444. * src/HttpRequest.cc
  2445. * src/HttpResponseCommand.cc
  2446. * src/HttpSkipResponseCommand.cc
  2447. * src/RequestGroup.cc
  2448. * src/RequestGroup.h
  2449. * src/TrackerWatcherCommand.cc
  2450. * test/HttpRequestTest.cc
  2451. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2452. Fixed the bug that causes floating exception when -T option is used and
  2453. no URIs are given.
  2454. * src/download_helper.cc
  2455. * test/DownloadHelperTest.cc
  2456. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  2457. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  2458. errors in MinGW:
  2459. Closed file after saving server stats (RequestGroupMan.cc)
  2460. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  2461. Ignored case & handled 2-digit years (strptime.c)
  2462. Added missing suseconds_t definition (a2time.h)
  2463. Fixed socket CLOSE() define (SocketCore.cc)
  2464. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  2465. Changed utime() test values from x000 to x00000 as MinGW failed on
  2466. values less than timezone offset from Unix epoch
  2467. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  2468. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  2469. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  2470. handle negative dates (CookieParserTest.cc)
  2471. * src/a2time.h
  2472. * src/FtpConnection.cc
  2473. * src/RequestGroupMan.cc
  2474. * src/SocketCore.cc
  2475. * src/strptime.c
  2476. * test/CookieParserTest.cc
  2477. * test/CopyDiskAdaptorTest.cc
  2478. * test/FileTest.cc
  2479. * test/FtpConnectionTest.cc
  2480. * test/MultiDiskAdaptorTest.cc
  2481. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2482. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  2483. * doc/aria2c.1.txt
  2484. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2485. * Release 1.0.0
  2486. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2487. Added '~' to reserved characters.
  2488. * src/Util.cc
  2489. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2490. Do not urlencode Request::url in setUrl() because we want unmodified
  2491. URL using Request::getUrl()
  2492. * src/Request.cc
  2493. * src/Request.h
  2494. * test/RequestTest.cc
  2495. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2496. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  2497. Thanks to all translators.
  2498. * po/bg.po
  2499. * po/fr.po
  2500. * po/ja.po
  2501. * po/ru.po
  2502. * po/uk.po
  2503. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2504. Bump up version number to 1.0.0
  2505. * configure.ac
  2506. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2507. Added nosqlite3 build to build_test.sh.
  2508. Renamed noxml as expat.
  2509. * build_test.sh
  2510. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2511. Updated INPUT FILE section.
  2512. * doc/aria2c.1.txt
  2513. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2514. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  2515. on big endian systems because test .aria2 files are made for little
  2516. endian systems.
  2517. * test/DefaultBtProgressInfoFileTest.cc
  2518. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2519. Dropped ares support.
  2520. * README
  2521. * configure.ac
  2522. * m4/libares.m4: Removed.
  2523. * src/AsyncNameResolver.cc
  2524. * src/Makefile.am
  2525. * test/Makefile.am
  2526. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2527. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  2528. Removed const qualifier from DiskWriter::size().
  2529. * src/AbstractDiskWriter.cc
  2530. * src/AbstractDiskWriter.h
  2531. * src/ByteArrayDiskWriter.cc
  2532. * src/ByteArrayDiskWriter.h
  2533. * src/DiskWriter.h
  2534. * test/ByteArrayDiskWriterTest.cc
  2535. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2536. Fixed the bug that causes segmentation fault/bus error during executing
  2537. choking algorithm while seeding. This is caused by improper
  2538. implementation of compare function which returns inconsistent results
  2539. depending on the timing of last unchoke.
  2540. * src/BtSeederStateChoke.cc
  2541. * src/BtSeederStateChoke.h
  2542. * src/DefaultPeerStorage.cc
  2543. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2544. Removed TODO
  2545. * TODO
  2546. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2547. Added a section that explains how to pass argument to options that
  2548. takes optional arguments with its short form.
  2549. * doc/aria2c.1.txt
  2550. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2551. Added -u for the short form of --max-upload-limit option.
  2552. * doc/aria2c.1.txt
  2553. * src/option_processing.cc
  2554. * src/usage_text.h
  2555. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2556. Added -V for the short form of --check-integrity option.
  2557. Now the argument of --check-integrity option is optional:
  2558. if it is omitted, it is evaluated as true.
  2559. * doc/aria2c.1.txt
  2560. * src/option_processing.cc
  2561. * src/usage_text.h
  2562. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2563. Made the default value of --ftp-pasv option set to true and it can take
  2564. true/false values.
  2565. * src/OptionHandlerFactory.cc
  2566. * src/option_processing.cc
  2567. * src/usage_text.h
  2568. * doc/aria2c.1.txt
  2569. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2570. Given custom random number generator to std::random_shuffle.
  2571. * src/AnnounceList.cc
  2572. * src/BtLeecherStateChoke.cc
  2573. * src/BtSeederStateChoke.cc
  2574. * src/DefaultBtRequestFactory.cc
  2575. * src/MetalinkEntry.cc
  2576. * src/RarestPieceSelector.cc
  2577. * src/SimpleRandomizer.cc
  2578. * src/SimpleRandomizer.h
  2579. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2580. Now the default value of --enable-direct-io is true.
  2581. * src/OptionHandlerFactory.cc
  2582. * doc/aria2c.1.txt
  2583. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2584. Erase peer before executing onReturningPeer and onErasingPeer
  2585. because choking algorithm called from onReturningPeer doesn't
  2586. like erasing peer in the active peer list.
  2587. * src/DefaultPeerStorage.cc
  2588. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2589. Instead of creating special filename in createDownloadResult() if
  2590. inMemoryDownload() is true, now it is done in getFilePath().
  2591. * src/RequestGroup.cc
  2592. * test/RequestGroupTest.cc
  2593. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2594. Print "[MEMORY]" and filename if a file is not saved in disk and just
  2595. processed in memory. This is the fix for previous comment out.
  2596. * src/MemoryBufferPreDownloadHandler.cc
  2597. * src/RequestGroup.cc
  2598. * src/RequestGroup.h
  2599. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2600. Commented out the code which sets virtual directory path "[MEMORY]"
  2601. propagate directory to store to following RequestGroup.
  2602. * src/MemoryBufferPreDownloadHandler.cc
  2603. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2604. Bump up version number to 1.0.0b
  2605. * configure.ac
  2606. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2607. Added input_uris.txt to EXTRA_DIST
  2608. * test/Makefile.am
  2609. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2610. Removed PeerObject.h from Makefile.am
  2611. * src/Makefile.am
  2612. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2613. Avoid slow seeding
  2614. * src/PeerInteractionCommand.cc
  2615. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2616. Updated usage for -i option.
  2617. * src/usage_text.h (TEXT_INPUT_FILE)
  2618. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2619. Added INPUT FILE section to man page.
  2620. Escaped fake URLs.
  2621. * doc/aria2c.1.txt
  2622. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2623. Fixed wrong note position for -o option.
  2624. * doc/aria2c.1.txt
  2625. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2626. Fixed compile error without SSL/XML library.
  2627. * src/DefaultBtProgressInfoFile.cc
  2628. * src/DefaultBtProgressInfoFile.h
  2629. * src/FileMetalinkParserState.cc
  2630. * src/RequestGroup.h
  2631. * src/SocketCore.cc
  2632. * src/SocketCore.h
  2633. * src/VerificationMetalinkParserState.cc
  2634. * src/download_helper.h
  2635. * src/main.cc
  2636. * test/DefaultBtProgressInfoFileTest.cc
  2637. * test/DownloadHelperTest.cc
  2638. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2639. Rewritten URI handling functions. They are now provided as a testable
  2640. functions.
  2641. * src/Makefile.am
  2642. * src/RequestGroup.cc
  2643. * src/RequestGroup.h
  2644. * src/download_helper.cc
  2645. * src/download_helper.h
  2646. * src/main.cc
  2647. * test/DownloadHelperTest.cc
  2648. * test/Makefile.am
  2649. * test/input_uris.txt
  2650. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2651. Quickly terminate commands when ctrl-c is pressed.
  2652. * src/DownloadEngine.cc
  2653. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2654. Quickly terminate idle commands when download finished.
  2655. * src/AbstractCommand.cc
  2656. * src/DownloadCommand.cc
  2657. * src/DownloadEngine.cc
  2658. * src/DownloadEngine.h
  2659. * src/SleepCommand.cc
  2660. * src/SleepCommand.h
  2661. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2662. Added the ability to specify output filename and directory in input
  2663. file.
  2664. Additional parameters are added in the following line of URIs
  2665. with proceeding white space(s), 1 parameter in 1 line.
  2666. The parameter names are the same with the command-line option name
  2667. without proceeding "--". Not all the options are available here:
  2668. at the moment, 'dir' and 'out' options are avialable.
  2669. Please note that out option has no effect against Metalink or BitTorrent
  2670. downloads.
  2671. Example input file:
  2672. http://host/foo-1.1.tar.bz2
  2673. out=foo.tar.bz2
  2674. dir=/tmp/downloads
  2675. http://host/thundermonkey-2.0.tar.bz2
  2676. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  2677. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  2678. thundermonkey-2.0.tar.bz2 is saved as
  2679. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  2680. * src/BtPostDownloadHandler.cc
  2681. * src/Metalink2RequestGroup.cc
  2682. * src/Metalink2RequestGroup.h
  2683. * src/MetalinkPostDownloadHandler.cc
  2684. * src/UriListParser.cc
  2685. * src/UriListParser.h
  2686. * src/main.cc
  2687. * test/Metalink2RequestGroupTest.cc
  2688. * test/UriListParserTest.cc
  2689. * test/filelist1.txt
  2690. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2691. Fixed error when SSL library is not found.
  2692. * configure.ac
  2693. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2694. Cross referenced among -s, -C and -j options.
  2695. Updated usage of -C and -s options.
  2696. * src/usage_text.h
  2697. * doc/aria2c.1.txt
  2698. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2699. Fixed bad cast in 32bit platforms.
  2700. * test/DefaultPieceStorageTest.cc
  2701. (DefaultPieceStorageTest::testGetCompletedLength)
  2702. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2703. Fixed unit test fails on 32bit platforms.
  2704. * test/CookieParserTest.cc
  2705. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2706. Show an average download speed in Download results.
  2707. * src/BtFileAllocationEntry.cc
  2708. * src/DefaultPieceStorage.cc
  2709. * src/DownloadContext.cc
  2710. * src/DownloadContext.h
  2711. * src/DownloadResult.h
  2712. * src/RequestGroup.cc
  2713. * src/RequestGroupMan.cc
  2714. * src/StreamFileAllocationEntry.cc
  2715. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2716. Fixed the bug that metalink file is not processed if Content-Type
  2717. field has a paramter.
  2718. * src/HttpResponse.cc
  2719. * src/HttpResponse.h
  2720. * test/HttpResponseTest.cc
  2721. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2722. Removed unused code.
  2723. * src/DefaultBtAnnounce.cc
  2724. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2725. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  2726. the value larger than DefaultPieceStorage::getTotalLength() when
  2727. in flight pieces are involved.
  2728. * src/DefaultPieceStorage.cc
  2729. * test/DefaultPieceStorageTest.cc
  2730. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2731. Bump up version number to 1.0.0a.
  2732. * configure.ac
  2733. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2734. Updated configure.ac
  2735. * configure.ac
  2736. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2737. Added usege for proxy.
  2738. * doc/aria2c.1.txt
  2739. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2740. Added usage for --ca-certificate, --certificate, --private-key and
  2741. --check-certificate options.
  2742. * doc/aria2c.1.txt
  2743. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2744. Updated man page
  2745. * doc/aria2c.1.txt
  2746. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2747. Added --no-proxy option. It receives comman separated hostname or
  2748. domains to which proxy should not be used.
  2749. aria2 honors the environment variable no_proxy to override no-proxy
  2750. value in configuration file. The user can override the environment
  2751. variable no_proxy with --no-proxy command-line option.
  2752. * src/AbstractCommand.cc
  2753. * src/OptionHandlerFactory.cc
  2754. * src/option_processing.cc
  2755. * src/prefs.cc
  2756. * src/prefs.h
  2757. * src/usage_text.h
  2758. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2759. Added the ability to verify peer in SSL/TLS using given CA certificates.
  2760. The CA certificates are specified in --ca-certificate option.
  2761. By default, the verification is disabled. Use --check-certificate
  2762. option to enable it.
  2763. * src/HttpRequestCommand.cc
  2764. * src/LibgnutlsTLSContext.cc
  2765. * src/LibgnutlsTLSContext.h
  2766. * src/LibsslTLSContext.cc
  2767. * src/LibsslTLSContext.h
  2768. * src/MultiUrlRequestInfo.cc
  2769. * src/OptionHandlerFactory.cc
  2770. * src/SocketCore.cc
  2771. * src/SocketCore.h
  2772. * src/a2functional.h
  2773. * src/message.h
  2774. * src/option_processing.cc
  2775. * src/prefs.cc
  2776. * src/prefs.h
  2777. * src/usage_text.h
  2778. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2779. Added client certificate authentication for SSL/TLS.
  2780. Currently a private key must be decrypted for use with aria2.
  2781. If a user accidentally gives encrypted file to aria2 then following
  2782. thing happens:
  2783. If encrypted private key is given to aria2, it behaves differently
  2784. depending on the ssl library it uses. If aria2 built with openssl then
  2785. openssl prompts the user for password. If aria2 build with gnutls then
  2786. aria2 exists with error at start up.
  2787. * src/DownloadEngineFactory.cc
  2788. * src/MultiUrlRequestInfo.cc
  2789. * src/OptionHandlerFactory.cc
  2790. * src/option_processing.cc
  2791. * src/prefs.cc
  2792. * src/prefs.h
  2793. * src/usage_text.h
  2794. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2795. Introduced TLSContext that holds TLS related data that can be shared
  2796. with multiple SSL connections.
  2797. * src/DownloadEngineFactory.cc
  2798. * src/LibgnutlsTLSContext.cc
  2799. * src/LibgnutlsTLSContext.h
  2800. * src/LibsslTLSContext.cc
  2801. * src/LibsslTLSContext.h
  2802. * src/Makefile.am
  2803. * src/SocketCore.cc
  2804. * src/SocketCore.h
  2805. * src/TLSContext.h
  2806. * src/message.h
  2807. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2808. Fixed the bug that the DiskWriter of the first FileEntry whose
  2809. `needsFileAllocation' property is false is not created
  2810. even if it shares a piece with next FileEntry which `requested' property
  2811. is true.
  2812. Fixed the bug that zero-length file is not created if pre file
  2813. allocation is not done.
  2814. * src/MultiDiskAdaptor.cc
  2815. * src/MultiDiskAdaptor.h
  2816. * test/MultiDiskAdaptorTest.cc
  2817. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2818. Added the ability to pool proxy connection.
  2819. The conneciton in FTP with proxy-method=GET is not pooled.
  2820. Proxy-Connection header will not be sent when sending CONNECT method.
  2821. * src/DownloadEngine.cc
  2822. * src/DownloadEngine.h
  2823. * src/FtpFinishDownloadCommand.cc
  2824. * src/FtpInitiateConnectionCommand.cc
  2825. * src/FtpNegotiationCommand.cc
  2826. * src/HttpDownloadCommand.cc
  2827. * src/HttpInitiateConnectionCommand.cc
  2828. * src/HttpRequest.cc
  2829. * src/HttpRequest.h
  2830. * src/HttpResponse.cc
  2831. * src/HttpSkipResponseCommand.cc
  2832. * test/HttpRequestTest.cc
  2833. * test/HttpResponseTest.cc
  2834. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2835. Handle date before epoch.
  2836. To create *bad* Time object, call Time::null().
  2837. * src/CookieParser.cc
  2838. * src/FtpConnection.cc
  2839. * src/FtpConnection.h
  2840. * src/FtpNegotiationCommand.cc
  2841. * src/RequestGroup.cc
  2842. * src/TimeA2.cc
  2843. * src/TimeA2.h
  2844. * test/CookieParserTest.cc
  2845. * test/FtpConnectionTest.cc
  2846. * test/TimeTest.cc
  2847. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2848. Added support for following envrionment variables: http_proxy,
  2849. https_proxy, ftp_proxy and all_proxy.
  2850. Each variable is equivalent to the aria2 option whose name is the
  2851. variable name with '_' replaced with '-'.
  2852. They overrides options specified in aria2.conf file.
  2853. The envrionment variables can be overrode using command-line option.
  2854. * src/option_processing.cc
  2855. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2856. Renamed --http-proxy-method as --proxy-method.
  2857. * src/AbstractCommand.cc
  2858. * src/FtpInitiateConnectionCommand.cc
  2859. * src/HttpInitiateConnectionCommand.cc
  2860. * src/OptionHandlerFactory.cc
  2861. * src/option_processing.cc
  2862. * src/prefs.cc
  2863. * src/prefs.h
  2864. * src/usage_text.h
  2865. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2866. Deprecated --http-proxy-user and --http-proxy-passwd options.
  2867. Added --https-proxy, --ftp-proxy and --all-proxy options.
  2868. Above 3 options and --http-proxy option can handle proxy in URL format
  2869. like: http://user:passwd@host:port.
  2870. If a proxy requires user/password, they must be specified in a URL.
  2871. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  2872. instead.
  2873. * src/AbstractCommand.cc
  2874. * src/AbstractCommand.h
  2875. * src/AbstractProxyRequestCommand.cc
  2876. * src/AbstractProxyRequestCommand.h
  2877. * src/AuthConfigFactory.cc
  2878. * src/AuthConfigFactory.h
  2879. * src/FtpFinishDownloadCommand.cc
  2880. * src/FtpInitiateConnectionCommand.cc
  2881. * src/FtpInitiateConnectionCommand.h
  2882. * src/FtpNegotiationCommand.cc
  2883. * src/FtpTunnelRequestCommand.cc
  2884. * src/FtpTunnelRequestCommand.h
  2885. * src/HttpDownloadCommand.cc
  2886. * src/HttpInitiateConnectionCommand.cc
  2887. * src/HttpInitiateConnectionCommand.h
  2888. * src/HttpProxyRequestCommand.cc
  2889. * src/HttpProxyRequestCommand.h
  2890. * src/HttpRequest.cc
  2891. * src/HttpRequest.h
  2892. * src/HttpRequestCommand.cc
  2893. * src/HttpRequestCommand.h
  2894. * src/HttpSkipResponseCommand.cc
  2895. * src/InitiateConnectionCommand.cc
  2896. * src/InitiateConnectionCommand.h
  2897. * src/OptionHandlerFactory.cc
  2898. * src/OptionHandlerImpl.h
  2899. * src/Request.cc
  2900. * src/option_processing.cc
  2901. * src/prefs.cc
  2902. * src/prefs.h
  2903. * src/usage_text.h
  2904. * test/AuthConfigFactoryTest.cc
  2905. * test/HttpRequestTest.cc
  2906. * test/OptionHandlerTest.cc
  2907. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2908. Execute choking algorithm when unchoked and interested peer is
  2909. disconected.
  2910. * src/DefaultPeerStorage.cc
  2911. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2912. Added testcase for BtNotInterestedMessage from unchoked peer.
  2913. * test/BtNotInterestedMessageTest.cc
  2914. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2915. Execute choking algorithm when BtInterestedMessage arrives from
  2916. unchoked peer.
  2917. * src/BtInterestedMessage.cc
  2918. * src/BtInterestedMessage.h
  2919. * src/DefaultBtMessageFactory.cc
  2920. * test/BtInterestedMessageTest.cc
  2921. * test/MockPeerStorage.h
  2922. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2923. AuthConfigFactory is now part of DownloadEngine.
  2924. * src/AbstractProxyRequestCommand.cc
  2925. * src/AuthConfigFactory.h
  2926. * src/DownloadEngine.cc
  2927. * src/DownloadEngine.h
  2928. * src/FtpConnection.cc
  2929. * src/FtpConnection.h
  2930. * src/FtpNegotiationCommand.cc
  2931. * src/HttpConnection.cc
  2932. * src/HttpRequest.cc
  2933. * src/HttpRequest.h
  2934. * src/HttpRequestCommand.cc
  2935. * src/HttpResponse.cc
  2936. * src/HttpResponseCommand.cc
  2937. * src/HttpSkipResponseCommand.cc
  2938. * src/MultiUrlRequestInfo.cc
  2939. * src/main.cc
  2940. * test/FtpConnectionTest.cc
  2941. * test/HttpRequestTest.cc
  2942. * test/HttpResponseTest.cc
  2943. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2944. Corrected catched exception type.
  2945. * src/ServerStatMan.cc
  2946. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2947. DNSCache is now part of DownloadEngine.
  2948. * src/DNSCache.h
  2949. * src/DownloadEngine.cc
  2950. * src/DownloadEngine.h
  2951. * src/InitiateConnectionCommand.cc
  2952. * src/MultiUrlRequestInfo.cc
  2953. * test/Makefile.am
  2954. * test/Makefile.in
  2955. * test/SimpleDNSCacheTest.cc
  2956. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2957. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  2958. DownloadEngine.
  2959. * src/ActivePeerConnectionCommand.cc
  2960. * src/BtSetup.cc
  2961. * src/CUIDCounter.h
  2962. * src/DHTSetup.cc
  2963. * src/DownloadCommand.cc
  2964. * src/DownloadEngine.cc
  2965. * src/DownloadEngine.h
  2966. * src/DownloadEngineFactory.cc
  2967. * src/FileAllocationDispatcherCommand.cc
  2968. * src/InitiatorMSEHandshakeCommand.cc
  2969. * src/PeerInitiateConnectionCommand.cc
  2970. * src/PeerInteractionCommand.cc
  2971. * src/PeerListenCommand.cc
  2972. * src/RequestGroup.cc
  2973. * src/StreamFileAllocationEntry.cc
  2974. * src/TrackerWatcherCommand.cc
  2975. * src/main.cc
  2976. * test/RequestGroupManTest.cc
  2977. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2978. Implemented commented code in BtSeederStateChoke
  2979. * src/BtSeederStateChoke.cc
  2980. * src/Peer.cc
  2981. * src/Peer.h
  2982. * src/PeerInteractionCommand.cc
  2983. * src/PeerSessionResource.cc
  2984. * src/PeerSessionResource.h
  2985. * test/MockBtMessageDispatcher.h
  2986. * test/PeerSessionResourceTest.cc
  2987. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2988. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  2989. its object.
  2990. * src/AbstractBtMessage.cc
  2991. * src/ActivePeerConnectionCommand.cc
  2992. * src/ActivePeerConnectionCommand.h
  2993. * src/BtContextAwareCommand.cc
  2994. * src/BtContextAwareCommand.h
  2995. * src/BtExtendedMessage.cc
  2996. * src/BtExtendedMessage.h
  2997. * src/BtInterestedMessage.cc
  2998. * src/BtInterestedMessage.h
  2999. * src/BtNotInterestedMessage.cc
  3000. * src/BtNotInterestedMessage.h
  3001. * src/BtRegistry.cc
  3002. * src/BtRegistry.h
  3003. * src/BtSeederStateChoke.cc
  3004. * src/BtSetup.cc
  3005. * src/DHTGetPeersCommand.cc
  3006. * src/DHTGetPeersCommand.h
  3007. * src/DHTPeerAnnounceEntry.cc
  3008. * src/DHTPeerAnnounceEntry.h
  3009. * src/DHTPeerAnnounceStorage.cc
  3010. * src/DHTPeerAnnounceStorage.h
  3011. * src/DHTPeerLookupTask.cc
  3012. * src/DHTPeerLookupTask.h
  3013. * src/DHTSetup.cc
  3014. * src/DHTSetup.h
  3015. * src/DHTTaskFactory.h
  3016. * src/DHTTaskFactoryImpl.cc
  3017. * src/DHTTaskFactoryImpl.h
  3018. * src/DefaultBtAnnounce.cc
  3019. * src/DefaultBtInteractive.cc
  3020. * src/DefaultBtInteractive.h
  3021. * src/DefaultBtMessageDispatcher.cc
  3022. * src/DefaultBtMessageDispatcher.h
  3023. * src/DefaultBtMessageFactory.cc
  3024. * src/DefaultBtMessageFactory.h
  3025. * src/DefaultBtMessageReceiver.cc
  3026. * src/DefaultBtProgressInfoFile.cc
  3027. * src/DefaultBtProgressInfoFile.h
  3028. * src/DefaultBtRequestFactory.cc
  3029. * src/DefaultBtRequestFactory.h
  3030. * src/DefaultExtensionMessageFactory.cc
  3031. * src/DefaultExtensionMessageFactory.h
  3032. * src/DefaultPeerStorage.cc
  3033. * src/DefaultPeerStorage.h
  3034. * src/DownloadEngine.cc
  3035. * src/DownloadEngine.h
  3036. * src/InitiatorMSEHandshakeCommand.cc
  3037. * src/InitiatorMSEHandshakeCommand.h
  3038. * src/MSEHandshake.cc
  3039. * src/MSEHandshake.h
  3040. * src/Makefile.am
  3041. * src/Makefile.in
  3042. * src/PeerChokeCommand.cc
  3043. * src/PeerChokeCommand.h
  3044. * src/PeerInitiateConnectionCommand.cc
  3045. * src/PeerInitiateConnectionCommand.h
  3046. * src/PeerInteractionCommand.cc
  3047. * src/PeerInteractionCommand.h
  3048. * src/PeerObject.h
  3049. * src/PeerReceiveHandshakeCommand.cc
  3050. * src/PeerReceiveHandshakeCommand.h
  3051. * src/ReceiverMSEHandshakeCommand.cc
  3052. * src/RequestGroup.cc
  3053. * src/RequestGroup.h
  3054. * src/RequestGroupMan.cc
  3055. * src/RequestGroupMan.h
  3056. * src/SeedCheckCommand.cc
  3057. * src/SeedCheckCommand.h
  3058. * src/ShareRatioSeedCriteria.h
  3059. * src/SimpleBtMessage.cc
  3060. * src/TrackerWatcherCommand.cc
  3061. * src/TrackerWatcherCommand.h
  3062. * src/UTPexExtensionMessage.cc
  3063. * src/UTPexExtensionMessage.h
  3064. * test/BtCancelMessageTest.cc
  3065. * test/BtChokeMessageTest.cc
  3066. * test/BtExtendedMessageTest.cc
  3067. * test/BtInterestedMessageTest.cc
  3068. * test/BtNotInterestedMessageTest.cc
  3069. * test/BtPieceMessageTest.cc
  3070. * test/BtPortMessageTest.cc
  3071. * test/BtRegistryTest.cc
  3072. * test/BtRejectMessageTest.cc
  3073. * test/BtRequestMessageTest.cc
  3074. * test/DHTPeerAnnounceEntryTest.cc
  3075. * test/DHTPeerAnnounceStorageTest.cc
  3076. * test/DefaultBtMessageDispatcherTest.cc
  3077. * test/DefaultBtMessageFactoryTest.cc
  3078. * test/DefaultBtProgressInfoFileTest.cc
  3079. * test/DefaultBtRequestFactoryTest.cc
  3080. * test/DefaultExtensionMessageFactoryTest.cc
  3081. * test/MSEHandshakeTest.cc
  3082. * test/MockDHTTaskFactory.h
  3083. * test/ShareRatioSeedCriteriaTest.cc
  3084. * test/UTPexExtensionMessageTest.cc
  3085. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3086. Fixed compiler warning.
  3087. * test/UtilTest.cc
  3088. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3089. Treat Cookie object as session cookie if expiry = 0 is given.
  3090. With this change, you can specify session scoped cookies in an external
  3091. file setting expiry value to 0.
  3092. * src/Cookie.cc
  3093. * src/Cookie.h
  3094. * test/CookieParserTest.cc
  3095. * test/CookieStorageTest.cc
  3096. * test/CookieTest.cc
  3097. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3098. Changed signature of DHTMessageFactory::createResponseMessage().
  3099. Removed unused validateIDMatch.
  3100. * src/DHTMessageFactory.h
  3101. * src/DHTMessageFactoryImpl.cc
  3102. * src/DHTMessageFactoryImpl.h
  3103. * src/DHTMessageTracker.cc
  3104. * test/DHTMessageFactoryImplTest.cc
  3105. * test/MockDHTMessageFactory.h
  3106. Dropped DHT message coming from same ID of localhost.
  3107. * src/DHTMessageReceiver.cc
  3108. Rejected adding node whose ID is the same as localhost's.
  3109. * src/DHTRoutingTable.cc
  3110. * test/BtPortMessageTest.cc
  3111. * test/DHTRoutingTableTest.cc
  3112. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3113. Pool connection when redirection occurs with Content-Length = 0.
  3114. * src/HttpSkipResponseCommand.cc
  3115. * src/HttpSkipResponseCommand.h
  3116. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3117. Fixed the bug that causes time out when redirection occurs with
  3118. content-length 0.
  3119. * src/HttpResponseCommand.cc
  3120. * src/HttpSkipResponseCommand.cc
  3121. * src/HttpSkipResponseCommand.h
  3122. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3123. Now each status legends is shown only when it appears in Download
  3124. Result. If Download Result has no item, then status legend will not
  3125. be printed.
  3126. * src/RequestGroupMan.cc
  3127. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3128. Removed duplicate creation of OptionHandlers.
  3129. * src/option_processing.cc
  3130. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3131. Fixed the bug that causes segmentation fault when accessing files which
  3132. don't exist or are not included in --select-file option while
  3133. validating chunk checksum.
  3134. * src/MultiDiskAdaptor.cc
  3135. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3136. Fixed compiler warning.
  3137. * test/UtilTest.cc
  3138. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3139. Included cstdlib. This fixed the compile error with g++-4.3.2.
  3140. * src/IteratableChecksumValidator.cc
  3141. * src/IteratableChunkChecksumValidator.cc
  3142. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3143. * Release 0.16.2
  3144. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3145. Added Serbian translation. Updated Ukrainian translation.
  3146. Thanks to all translators.
  3147. * po/sr.po
  3148. * po/uk.po
  3149. * po/LINGUAS
  3150. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3151. Bump up version number to 0.16.2
  3152. * configure.ac
  3153. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3154. Added length equality test to operator== to drop a piece message
  3155. whose length does not match to the requested one.
  3156. * src/RequestSlot.cc
  3157. * test/DefaultBtMessageDispatcherTest.cc
  3158. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3159. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  3160. recieved.
  3161. In this fix, if a request larger than 16KiB length is received, aria2
  3162. disconnects the peer.
  3163. * src/BtConstants.h
  3164. * src/PeerMessageUtil.cc
  3165. * src/PeerMessageUtil.h
  3166. * test/BtRequestMessageTest.cc
  3167. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3168. * Release 0.16.1
  3169. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3170. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  3171. * doc/aria2c.1.txt
  3172. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3173. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  3174. Updated French, Simplified Chinese and Japanese translations.
  3175. Thanks to all translators.
  3176. en@quot and en@boldquot are also added.
  3177. * po/LINGUAS
  3178. * po/fr.po
  3179. * po/ja.po
  3180. * po/uk.po
  3181. * po/vi.po
  3182. * po/zh_CN.po
  3183. * po/zh_TW.po
  3184. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3185. Bump up version number to 0.16.1.
  3186. * configure.ac
  3187. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3188. Updated README.
  3189. * README
  3190. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3191. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  3192. not to replace '--' with em dash character.
  3193. * doc/aria2c.1.txt
  3194. * doc/makeman
  3195. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3196. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  3197. every SEC seconds.
  3198. * src/DownloadEngineFactory.cc
  3199. * src/OptionHandlerFactory.cc
  3200. * src/option_processing.cc
  3201. * src/usage_text.h
  3202. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3203. Fixed compile warning on linux-amd64
  3204. * src/FtpConnection.cc
  3205. * src/IteratableChunkChecksumValidator.cc
  3206. * src/MultiDiskAdaptor.cc
  3207. Fixed the bug that unit test fails on linux-amd64
  3208. * test/UtilTest.cc
  3209. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3210. Added --dht-file-path option to change the path to dht.dat, which is a
  3211. serialized DHT routing table.
  3212. * src/OptionHandlerFactory.cc
  3213. * src/option_processing.cc
  3214. * src/usage_text.h
  3215. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3216. Fixed possible underflow.
  3217. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  3218. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3219. Fixed the bug that last character in URI is not encoded.
  3220. * src/Request.cc
  3221. * test/RequestTest.cc
  3222. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3223. Fixed the bug that referer header field contains fragment.
  3224. Now Request class removes fragment part of URI and encodes it
  3225. in Request::setUri() and setReferer().
  3226. * src/Request.h
  3227. * src/Request.cc
  3228. * test/RequestTest.cc
  3229. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3230. Added missing m4 macros.
  3231. * m4/cppunit.m4
  3232. * m4/libgcrypt.m4
  3233. * m4/libgnutls-extra.m4
  3234. * m4/libgnutls.m4
  3235. * m4/libxml2.m4
  3236. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3237. Fixed compile error with gcc-4.4(snapshot)
  3238. * src/File.cc
  3239. * src/FtpConnection.cc
  3240. * src/OptionHandlerImpl.h
  3241. * src/Util.cc
  3242. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3243. Removed assert()
  3244. * src/SocketBuffer.cc (SocketBuffer::send)
  3245. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3246. Changed the type of _numNewConnection to unsigned int.
  3247. * src/ActivePeerConnectionCommand.cc
  3248. * src/ActivePeerConnectionCommand.h
  3249. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3250. * Release 0.16.0
  3251. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3252. Updated doc
  3253. * README
  3254. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3255. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  3256. translations. Thanks to all translators.
  3257. * po/bg.po
  3258. * po/de.po
  3259. * po/fr.po
  3260. * po/ja.po
  3261. * po/zh_CN.po
  3262. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3263. Bump up version number to 0.16.0.
  3264. * configure.ac
  3265. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3266. Casted entry->maxConnections to int32_t for std::min<T> with T =
  3267. int32_t.
  3268. Changed the type of count to int32_t.
  3269. * src/Metalink2RequestGroup.cc
  3270. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3271. Added test for Time::elapsed(time_t).
  3272. * test/TimeTest.cc
  3273. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3274. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  3275. Util::difftv() should be used instead.
  3276. * src/TimeA2.cc
  3277. * src/TimeA2.h
  3278. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3279. Made socket for dht connections non-blocking
  3280. * src/DHTAbstractMessage.cc
  3281. * src/DHTAbstractMessage.h
  3282. * src/DHTConnection.h
  3283. * src/DHTConnectionImpl.cc
  3284. * src/DHTConnectionImpl.h
  3285. * src/DHTMessage.h
  3286. * src/DHTMessageDispatcherImpl.cc
  3287. * src/DHTMessageDispatcherImpl.h
  3288. * src/DHTUnknownMessage.cc
  3289. * src/DHTUnknownMessage.h
  3290. * src/SocketCore.cc
  3291. * src/SocketCore.h
  3292. * test/MockDHTMessage.h
  3293. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3294. Changed the type of offset to int.
  3295. * src/ParameterizedStringParser.cc
  3296. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3297. Made getAsInt() return int32_t
  3298. * src/Option.h
  3299. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3300. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  3301. build.
  3302. * configure.ac
  3303. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3304. Use sqlite3_open if sqlite3_open_v2 is not available.
  3305. * src/Sqlite3MozCookieParser.cc
  3306. * src/Sqlite3MozCookieParser.h
  3307. * m4/sqlite3.m4
  3308. * test/Sqlite3MozCookieParserTest.cc
  3309. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3310. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  3311. * src/BtPieceMessage.cc
  3312. * src/DHTPeerAnnounceStorage.cc
  3313. * src/DefaultPieceStorage.cc
  3314. * src/DownloadCommand.cc
  3315. * src/DownloadEngine.cc
  3316. * src/FtpConnection.cc
  3317. * src/PeerConnection.cc
  3318. * src/PeerMessageUtil.cc
  3319. * src/RequestGroup.cc
  3320. * src/RequestGroupMan.cc
  3321. * src/SimpleBtMessage.cc
  3322. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3323. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  3324. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  3325. * src/AbstractDiskWriter.cc
  3326. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3327. Don't set Request::supportsPersistentConnection() in HttpConnection
  3328. since this code is also used in AbstractProxyResponseCommand.
  3329. Moved those code to HttpResponse.
  3330. * src/HttpResponse.cc
  3331. * src/HttpResponse.h
  3332. * src/HttpConnection.cc
  3333. * src/HttpConnection.h
  3334. * src/HttpResponseCommand.cc
  3335. * test/HttpResponseTest.cc
  3336. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3337. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  3338. The configuration is minimum: no torrent, no metalink, so there may be
  3339. other compile error on their code.
  3340. * src/a2netcompat.h
  3341. * src/File.cc
  3342. * src/File.h
  3343. * src/SocketCore.cc
  3344. * src/SocketCore.h
  3345. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3346. Made a socket of incoming peer non-blocking.
  3347. * src/PeerListenCommand.cc
  3348. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3349. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  3350. whole message data is not sent in one send() call.
  3351. * src/BtPieceMessage.cc
  3352. * src/BtPieceMessage.h
  3353. * src/PeerConnection.cc
  3354. * src/PeerConnection.h
  3355. * src/SimpleBtMessage.cc
  3356. * src/SimpleBtMessage.h
  3357. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3358. Fixed the bug that aria2 downloads faster than max-download-limit when
  3359. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  3360. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  3361. , instead of sum of them.
  3362. * src/ActivePeerConnectionCommand.cc
  3363. * src/DefaultBtInteractive.cc
  3364. * src/DownloadCommand.cc
  3365. * src/PeerInteractionCommand.cc
  3366. * src/PeerReceiveHandshakeCommand.cc
  3367. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3368. Fixed the bug that HTTPS download fails.
  3369. * src/AbstractCommand.cc
  3370. * src/AbstractCommand.h
  3371. * src/DownloadCommand.cc
  3372. * src/FtpConnection.cc
  3373. * src/HttpConnection.cc
  3374. * src/HttpRequestCommand.cc
  3375. * src/HttpResponseCommand.cc
  3376. * src/HttpSkipResponseCommand.cc
  3377. * src/MSEHandshake.cc
  3378. * src/PeerConnection.cc
  3379. * src/SocketCore.cc
  3380. * src/SocketCore.h
  3381. Fixed the bug that aria2 doesn't download whole content body and cannot
  3382. reuse connection if chunked transfer encoding and gzip content encoding
  3383. are set.
  3384. * src/DownloadCommand.cc
  3385. * src/HttpSkipResponseCommand.cc
  3386. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3387. Updated man page.
  3388. * doc/aria2c.1.txt
  3389. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3390. When error occurred while aria2 was parsing an .aria2.conf file, print
  3391. the usage of the option that caused error.
  3392. * src/option_processing.cc
  3393. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3394. Fixed compile error on OptionHandlerException
  3395. * src/Makefile.am
  3396. * src/OptionHandlerException.cc
  3397. * src/OptionHandlerException.h
  3398. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3399. Moved message of the error to OptionHandlerException.h
  3400. * src/NameMatchOptionHandler.h
  3401. * src/OptionHandlerException.h
  3402. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3403. When error occurs while aria2 is parsing an command-line option, print
  3404. the usage of the option.
  3405. * src/Makefile.am
  3406. * src/NameMatchOptionHandler.h
  3407. * src/OptionHandlerException.h
  3408. * src/option_processing.cc
  3409. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3410. Reverted previous change.
  3411. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  3412. username is not in URI.
  3413. * src/HttpRequest.cc
  3414. * src/Request.cc
  3415. * test/HttpRequestTest.cc
  3416. * test/RequestTest.cc
  3417. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3418. Now colon is required for username and password in FTP URL, like:
  3419. ftp://username:password@host.
  3420. If colon is not there, aria2 don't parse it as a username. For example,
  3421. aria2 don't retrieve username from ftp://username@host.
  3422. This fix was made in order to login FTP server via non-transparent ftp
  3423. proxy.
  3424. * src/Request.cc
  3425. * test/RequestTest.cc
  3426. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3427. Use netrc for HTTP.
  3428. Now FTP user/password is sent in Authorization header when
  3429. --ftp-via-http-proxy=get is given.
  3430. * src/AuthConfigFactory.cc
  3431. * src/HttpRequest.cc
  3432. * src/HttpRequest.h
  3433. * src/NetrcAuthResolver.cc
  3434. * src/NetrcAuthResolver.h
  3435. * src/OptionHandlerFactory.cc
  3436. * src/option_processing.cc
  3437. * src/prefs.cc
  3438. * src/prefs.h
  3439. * test/AuthConfigFactoryTest.cc
  3440. * test/HttpRequestTest.cc
  3441. * test/NetrcAuthResolverTest.cc
  3442. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3443. Issue PWD command first and get working directory and use it as a prefix
  3444. for CWD command.
  3445. * src/DownloadEngine.cc
  3446. * src/DownloadEngine.h
  3447. * src/FtpConnection.cc
  3448. * src/FtpConnection.h
  3449. * src/FtpFinishDownloadCommand.cc
  3450. * src/FtpInitiateConnectionCommand.cc
  3451. * src/FtpNegotiationCommand.cc
  3452. * src/FtpNegotiationCommand.h
  3453. * test/FtpConnectionTest.cc
  3454. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3455. Removed default user/pass for FTP user/pass, since it should not have
  3456. precedence over netrc configuration by default.
  3457. * src/OptionHandlerFactory.cc
  3458. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3459. Added debug log for socket event.
  3460. * src/AbstractCommand.cc
  3461. * src/PeerAbstractCommand.cc
  3462. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3463. Log microseconds.
  3464. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  3465. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3466. Replaced HelpItem.cc with OptionHandler.cc.
  3467. * po/POTFILES.in
  3468. Updated po files with 'make update-po'
  3469. * po/aria2c.pot
  3470. * po/*.po
  3471. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3472. Removed possible values from the text.
  3473. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  3474. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3475. Removed unused preferences:
  3476. PREF_NO_PREALLOCATION
  3477. PREF_STDOUT_LOG
  3478. PREF_TRACKER_MAX_TRIES
  3479. PREF_DIRECT_DOWNLOAD_TIMEOUT
  3480. PREF_MIN_SEGMENT_SIZE
  3481. * src/option_processing.cc
  3482. * src/prefs.cc
  3483. * src/prefs.h
  3484. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3485. Integrated HelpItem into OptionParser to ease the workload for adding
  3486. new options. Removed default value from usage text.
  3487. * src/HelpItem.cc: Removed.
  3488. * src/HelpItem.h: Removed.
  3489. * src/HelpItemFactory.cc: Removed.
  3490. * src/HelpItemFactory.h: Removed.
  3491. * src/Makefile.am
  3492. * src/Makefile.in
  3493. * src/NameMatchOptionHandler.h
  3494. * src/OptionHandler.cc
  3495. * src/OptionHandler.h
  3496. * src/OptionHandlerFactory.cc
  3497. * src/OptionHandlerImpl.h
  3498. * src/OptionParser.cc
  3499. * src/OptionParser.h
  3500. * src/TagContainer.cc: Removed.
  3501. * src/TagContainer.h: Removed.
  3502. * src/TaggedItem.cc: Removed.
  3503. * src/TaggedItem.h: Removed.
  3504. * src/main.cc
  3505. * src/option_processing.cc
  3506. * src/usage_text.h
  3507. * src/version_usage.cc
  3508. * test/HelpItemTest.cc: Removed.
  3509. * test/Makefile.am
  3510. * test/Makefile.in
  3511. * test/OptionHandlerTest.cc
  3512. * test/OptionParserTest.cc
  3513. * test/TagContainerTest.cc: Removed.
  3514. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3515. Moved `TransferStat stat = ...' to inside the `if' clause.
  3516. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  3517. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3518. Fixed the bug that a block in a piece is requested when same block is
  3519. already requested to the same peer in end game mode.
  3520. * src/BtRequestFactory.h
  3521. * src/DefaultBtInteractive.cc
  3522. * src/DefaultBtRequestFactory.cc
  3523. * src/DefaultBtRequestFactory.h
  3524. * src/DefaultPieceStorage.cc
  3525. * src/DefaultPieceStorage.h
  3526. * src/PieceStorage.h
  3527. * src/UnknownLengthPieceStorage.cc
  3528. * src/UnknownLengthPieceStorage.h
  3529. * test/DefaultBtRequestFactoryTest.cc
  3530. * test/DefaultPieceStorageTest.cc
  3531. * test/MockBtRequestFactory.h
  3532. * test/MockPieceStorage.h
  3533. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3534. Removed _uploadLength and _downloadLength from PeerSessionResource
  3535. and use PeerStat::_sessionUploadLength and
  3536. PeerStat::_sessionDownloadLength.
  3537. * src/PeerSessionResource.cc
  3538. * src/PeerSessionResource.h
  3539. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3540. Fixed the bug that prefixLength of split bucket which doesn't include
  3541. local node ID is incremented.
  3542. * src/DHTBucket.cc
  3543. * src/DHTBucket.h
  3544. * test/DHTBucketTest.cc
  3545. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3546. Added cookies.sqlite to EXTRA_DIST
  3547. * test/Makefile.am
  3548. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3549. Added Turkish translation. Updated French, German, Russian and
  3550. Simplified Chinese translations. Thanks to all translators.
  3551. * po/LINGUAS
  3552. * po/de.po
  3553. * po/fr.po
  3554. * po/ru.po
  3555. * po/tr.po
  3556. * po/zh_CN.po
  3557. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3558. Added deliminating text to the beginning of the log so that one can find
  3559. where the log starts easily.
  3560. * src/main.cc
  3561. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3562. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  3563. to fix compile error when async DNS is not enabled by configuration.
  3564. * src/AbstractCommand.cc
  3565. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3566. If establishing conneciton to a server is failed, then mark error on
  3567. its ServerStat.
  3568. Added the cause of error to log when error event occurred.
  3569. Moved message string to message.h for translation.
  3570. * src/AbstractCommand.cc
  3571. * src/AbstractCommand.h
  3572. * src/FtpNegotiationCommand.cc
  3573. * src/HttpRequestCommand.cc
  3574. * src/PeerAbstractCommand.cc
  3575. * src/message.h
  3576. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3577. Added the function to get error message from socket.
  3578. * src/SocketCore.cc
  3579. * src/SocketCore.h
  3580. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3581. Added convenient method RequestGroupMan::getOrCreateServerStat()
  3582. * src/RequestGroupMan.cc
  3583. * src/RequestGroupMan.h
  3584. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3585. If error event is received in epoll, then abort download immediately.
  3586. * src/AbstractCommand.cc
  3587. * src/Command.cc
  3588. * src/Command.h
  3589. * src/DownloadEngine.cc
  3590. * src/PeerAbstractCommand.cc
  3591. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3592. Added usage message for --uri-selector, --server-stat-of,
  3593. --server-stat-in, --server-stat-timeout options.
  3594. * src/HelpItemFactory.cc
  3595. * src/usage_text.h
  3596. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3597. Added upper limit of FTP response buffer. The current implementation
  3598. uses 4096bytes as a limit.
  3599. * src/FtpConnection.cc
  3600. * src/FtpConnection.h
  3601. * test/FtpConnectionTest.cc
  3602. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3603. Use non-blocking socket for TCP communication to avoid possible
  3604. blocking due to buffer full.
  3605. * src/AbstractProxyRequestCommand.cc
  3606. * src/FtpConnection.cc
  3607. * src/FtpConnection.h
  3608. * src/FtpNegotiationCommand.cc
  3609. * src/FtpNegotiationCommand.h
  3610. * src/HttpConnection.cc
  3611. * src/HttpConnection.h
  3612. * src/HttpRequestCommand.cc
  3613. * src/InitiatorMSEHandshakeCommand.cc
  3614. * src/InitiatorMSEHandshakeCommand.h
  3615. * src/MSEHandshake.cc
  3616. * src/MSEHandshake.h
  3617. * src/Makefile.am
  3618. * src/PeerConnection.cc
  3619. * src/PeerConnection.h
  3620. * src/PeerInteractionCommand.cc
  3621. * src/PeerListenCommand.cc
  3622. * src/ReceiverMSEHandshakeCommand.cc
  3623. * src/ReceiverMSEHandshakeCommand.h
  3624. * src/SocketBuffer.cc
  3625. * src/SocketBuffer.h
  3626. * src/SocketCore.cc
  3627. * src/SocketCore.h
  3628. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3629. Call setStatusRealtime() in constructor.
  3630. * src/RealtimeCommand.cc
  3631. * src/RealtimeCommand.h
  3632. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3633. Call Download::setNoWait(true) to execute newly created command without
  3634. a pause.
  3635. * src/AbstractCommand.cc
  3636. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3637. Added --max-file-not-found=NUM option. If aria2 receives `file not
  3638. found' error from HTTP/FTP server NUM times without getting single
  3639. bytes of data, then force the download to fail.
  3640. Basically aria2 tris all URIs available. So if long list of URIs are
  3641. specified in Metalink, then aria2 will take a long time to fail
  3642. eventually if all URIs are outdated. This option eases this situation
  3643. to limit the number of servers to try.
  3644. * src/FtpNegotiationCommand.cc
  3645. * src/HelpItemFactory.cc
  3646. * src/HttpResponseCommand.cc
  3647. * src/OptionHandlerFactory.cc
  3648. * src/PeerStat.h
  3649. * src/RequestGroup.cc
  3650. * src/RequestGroup.h
  3651. * src/SegmentMan.cc
  3652. * src/SegmentMan.h
  3653. * src/option_processing.cc
  3654. * src/prefs.cc
  3655. * src/prefs.h
  3656. * src/usage_text.h
  3657. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3658. Fixed the bug that bulkReceiveResponse() reads all received data as a
  3659. response even if more than one response is in it.
  3660. * src/FtpConnection.cc
  3661. * src/FtpConnection.h
  3662. * test/FtpConnectionTest.cc
  3663. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3664. Merged from stable-0.15
  3665. * m4/libcares.m4
  3666. Use pkg-config
  3667. * m4/sqlite3.m4
  3668. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3669. Removed unnecessary if statement.
  3670. * src/DefaultPieceStorage.cc (initPieceStorage)
  3671. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3672. Added --connect-timeout option to specify connect timeout in seconds.
  3673. This option is in effect for HTTP/FTP/proxy server. The timeout for
  3674. connecting to BitTorrent peer is not controlled by this option.
  3675. * src/AbstractProxyRequestCommand.cc
  3676. * src/FtpNegotiationCommand.cc
  3677. * src/HelpItemFactory.cc
  3678. * src/HttpRequestCommand.cc
  3679. * src/OptionHandlerFactory.cc
  3680. * src/option_processing.cc
  3681. * src/prefs.cc
  3682. * src/prefs.h
  3683. * src/usage_text.h
  3684. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3685. Added help message for -R option.
  3686. * src/HelpItemFactory.cc
  3687. * src/usage_text.h
  3688. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3689. Added the message that the time is in local time zone.
  3690. * src/RequestGroup.cc
  3691. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3692. Implemented the ability to get timestamp from remote FTP server using
  3693. MDTM command described in RFC3659.
  3694. * src/FtpConnection.cc
  3695. * src/FtpConnection.h
  3696. * src/FtpNegotiationCommand.cc
  3697. * src/FtpNegotiationCommand.h
  3698. * test/FtpConnectionTest.cc
  3699. * test/Makefile.am
  3700. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3701. Implemented the ability to get timestamp from remote HTTP server and
  3702. apply it to local file. To enable this feature, --remote-time option
  3703. is added. No usage text has been written yet.
  3704. If several servers returns difference timestamp, then aria2 uses latest
  3705. one.
  3706. * src/CopyDiskAdaptor.cc
  3707. * src/CopyDiskAdaptor.h
  3708. * src/DirectDiskAdaptor.cc
  3709. * src/DirectDiskAdaptor.h
  3710. * src/DiskAdaptor.h
  3711. * src/File.cc
  3712. * src/File.h
  3713. * src/HttpHeader.cc
  3714. * src/HttpHeader.h
  3715. * src/HttpResponse.cc
  3716. * src/HttpResponse.h
  3717. * src/HttpResponseCommand.cc
  3718. * src/HttpResponseCommand.h
  3719. * src/MultiDiskAdaptor.cc
  3720. * src/MultiDiskAdaptor.h
  3721. * src/OptionHandlerFactory.cc
  3722. * src/RequestGroup.cc
  3723. * src/RequestGroup.h
  3724. * src/RequestGroupMan.cc
  3725. * src/option_processing.cc
  3726. * src/prefs.cc
  3727. * src/prefs.h
  3728. * test/CopyDiskAdaptorTest.cc
  3729. * test/FileTest.cc
  3730. * test/Makefile.am
  3731. * test/Makefile.in
  3732. * test/MultiDiskAdaptorTest.cc
  3733. * test/TestUtil.cc
  3734. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3735. Fixed the bug that DiskWriterEntry is not created when its
  3736. FileEntry.isRequested() is false and it doesn't share a piece with
  3737. other FileEntries that are requested. This bug causes segmentation fault
  3738. in the end.
  3739. * src/MultiDiskAdaptor.cc
  3740. * src/MultiDiskAdaptor.h
  3741. * src/MultiFileAllocationIterator.cc
  3742. * test/MultiDiskAdaptorTest.cc
  3743. * test/MultiFileAllocationIteratorTest.cc
  3744. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3745. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  3746. called if the number of file entries are greater than max open files.
  3747. * src/AbstractSingleDiskAdaptor.cc
  3748. * src/AbstractSingleDiskAdaptor.h
  3749. * src/DiskAdaptor.h
  3750. * src/MultiDiskAdaptor.cc
  3751. * src/MultiDiskAdaptor.h
  3752. * test/MultiDiskAdaptorTest.cc
  3753. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3754. Added a constuctor that receives struct timeval.
  3755. Added operator<.
  3756. * src/TimeA2.cc
  3757. * src/TimeA2.h
  3758. * test/TimeTest.cc
  3759. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3760. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  3761. * src/CookieParser.cc
  3762. * test/CookieParserTest.cc
  3763. * test/HttpResponseTest.cc
  3764. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3765. Implmented the functions to parse date.
  3766. * src/TimeA2.cc
  3767. * src/TimeA2.h
  3768. * test/TimeTest.cc
  3769. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3770. Added "Firefox3 Cookie" feature to FeatureConfig
  3771. * src/FeatureConfig.cc
  3772. * src/FeatureConfig.h
  3773. * test/FeatureConfigTest.cc
  3774. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3775. Bump up version number to 0.16.0b
  3776. * configure.ac
  3777. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3778. Use pkg-config if is is available.
  3779. * m4/openssl.m4
  3780. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3781. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  3782. * src/BtAnnounce.h
  3783. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3784. If an error occurred with a URI, remove identical URI from remaining
  3785. URI list because it is likely that same error occurred in the end and it
  3786. is waste of time.
  3787. * src/AbstractCommand.cc
  3788. * src/RequestGroup.cc
  3789. * src/RequestGroup.h
  3790. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3791. Removed wrong comment.
  3792. * src/DefaultPeerStorage.cc
  3793. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3794. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  3795. Added return value of getpid() to argument of srand() to achieve more
  3796. randomized value.
  3797. * src/SimpleRandomizer.cc
  3798. * src/SimpleRandomizer.h
  3799. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3800. Contact tracker frequently when the number of connections are 0 and
  3801. download is not finished yet.
  3802. * src/ActivePeerConnectionCommand.cc
  3803. * src/BtAnnounce.h
  3804. * src/DefaultBtAnnounce.cc
  3805. * src/DefaultBtAnnounce.h
  3806. * test/MockBtAnnounce.h
  3807. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3808. Moved threshold values to UTPexExtensionMessage.
  3809. * src/DefaultBtInteractive.cc
  3810. * src/Peer.cc
  3811. * src/Peer.h
  3812. * src/UTPexExtensionMessage.cc
  3813. * src/UTPexExtensionMessage.h
  3814. * test/UTPexExtensionMessageTest.cc
  3815. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3816. Added _incoming member to Peer class and made it true if the peer
  3817. initiated connection. Don't add those peer to UTPex message.
  3818. If extended handshake is received, assign _incoming to false.
  3819. * src/DefaultBtInteractive.cc
  3820. * src/HandshakeExtensionMessage.cc
  3821. * src/Peer.cc
  3822. * src/Peer.h
  3823. * src/PeerListenCommand.cc
  3824. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3825. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  3826. Encoding Decoder. Removed size threshold for turning off on the fly
  3827. inflation because resulting file may or may not be inflated depending
  3828. on the file size and I think it is not expected by users.
  3829. This change fixes segmentation fault when Metalink file contains gzipped
  3830. file and its filesize is provided.
  3831. * src/HttpResponseCommand.cc
  3832. * src/HttpResponseCommand.h
  3833. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3834. Made Cookie immutable.
  3835. * src/Cookie.cc
  3836. * src/Cookie.h
  3837. * src/CookieParser.cc
  3838. * src/CookieParser.h
  3839. * src/CookieStorage.cc
  3840. * test/CookieParserTest.cc
  3841. * test/CookieStorageTest.cc
  3842. * test/NsCookieParserTest.cc
  3843. * test/Sqlite3MozCookieParserTest.cc
  3844. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3845. Removed CookieBox, CookieBoxFactory.
  3846. * src/CookieBox.cc
  3847. * src/CookieBox.h
  3848. * src/CookieBoxFactory.cc
  3849. * src/CookieBoxFactory.h
  3850. * src/Makefile.am
  3851. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3852. Use CookieStorage class instead of CookieBox class.
  3853. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  3854. * src/AbstractProxyRequestCommand.cc
  3855. * src/CookieStorage.cc
  3856. * src/DownloadEngine.cc
  3857. * src/DownloadEngine.h
  3858. * src/HttpConnection.cc
  3859. * src/HttpConnection.h
  3860. * src/HttpRequest.cc
  3861. * src/HttpRequest.h
  3862. * src/HttpRequestCommand.cc
  3863. * src/HttpResponse.cc
  3864. * src/HttpResponseCommand.cc
  3865. * src/HttpSkipResponseCommand.cc
  3866. * src/Makefile.am
  3867. * src/MultiUrlRequestInfo.cc
  3868. * src/Request.cc
  3869. * src/Request.h
  3870. * src/main.cc
  3871. * test/AllTest.cc
  3872. * test/CookieStorageTest.cc
  3873. * test/CookieTest.cc
  3874. * test/HttpRequestTest.cc
  3875. * test/HttpResponseTest.cc
  3876. * test/Makefile.am
  3877. * test/NsCookieParserTest.cc
  3878. * test/Sqlite3MozCookieParserTest.cc
  3879. * test/nscookietest.txt
  3880. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3881. Updated
  3882. * test/Cookies.sqlite
  3883. * test/nscookietest.txt
  3884. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3885. Added tests for CookieStorage::load()
  3886. * test/CookieStorageTest.cc
  3887. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3888. Added CookieStorage class which is based on RFC2109 and manages cookies
  3889. more strictly than CookieBox and CookieBoxFactory class.
  3890. * src/CookieStorage.cc
  3891. * src/CookieStorage.h
  3892. * src/Cookie.cc
  3893. * src/Cookie.h
  3894. * test/CookieStorageTest.cc
  3895. * test/CookieTest.cc
  3896. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3897. Fixed the bug that commands are created more than the number of pieces.
  3898. * src/RequestGroup.cc
  3899. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3900. Fixed infinite loop bug in FTP when SIZE command failed.
  3901. * src/FtpNegotiationCommand.cc
  3902. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3903. Removed DirectDiskAdaptorTest.h
  3904. * test/Makefile.am
  3905. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3906. Fixed chunk checksum validation cannot detect trailing garbage data.
  3907. BUG#2074141
  3908. * src/AbstractSingleDiskAdaptor.cc
  3909. * src/AbstractSingleDiskAdaptor.h
  3910. * src/CheckIntegrityEntry.cc
  3911. * src/CheckIntegrityEntry.h
  3912. * src/DiskAdaptor.h
  3913. * src/MultiDiskAdaptor.cc
  3914. * src/MultiDiskAdaptor.h
  3915. * src/RequestGroup.cc
  3916. * test/DirectDiskAdaptorTest.cc
  3917. * test/MultiDiskAdaptorTest.cc
  3918. * test/TestUtil.cc
  3919. * test/TestUtil.h
  3920. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3921. Bump up version number of dht.dat file to 3. In version 3 format, time
  3922. is stored in 64bit, network byte order.
  3923. New build can load old format(version 2) but it saves the file in new
  3924. format. It means once you used new build, your dht.dat becomes
  3925. incompatible with older build.
  3926. * src/DHTRoutingTableDeserializer.cc
  3927. * src/DHTRoutingTableSerializer.cc
  3928. * test/DHTRoutingTableSerializerTest.cc
  3929. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3930. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  3931. * test/Makefile.am
  3932. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3933. Bump up version number of .aria2 control file to 0001.
  3934. New aria2 can still load version 0000 file but it saves the file in
  3935. version 0001 format. It means that new aria2 can resume download
  3936. started by old aria2 but the opposite is not true.
  3937. * src/DefaultBtProgressInfoFile.cc
  3938. * src/DefaultBtProgressInfoFile.h
  3939. * test/DefaultBtProgressInfoFileTest.cc
  3940. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3941. Added ntoh64 and hton64 as inline functions.
  3942. * src/Util.cc
  3943. * test/UtilTest.cc
  3944. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3945. Added sqlite3 depenency and Firefox3 cookie support.
  3946. * README
  3947. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3948. State that firefox3 cookie is supported explicitly in the usage.
  3949. * src/usage_text.h
  3950. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3951. Externalized message.
  3952. * src/RequestGroupMan.cc
  3953. * src/message.h
  3954. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3955. Save temporary file first and rename to the destination on success.
  3956. Added test cases.
  3957. * src/RequestGroupMan.cc
  3958. * test/RequestGroupManTest.cc
  3959. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3960. Fixed the bug that the number of connected peer is exceeding the limit
  3961. (55 by default) in seeding mode.
  3962. Multiplied 0.8 to _maxUploadSpeedLimit.
  3963. * src/ActivePeerConnectionCommand.cc
  3964. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3965. Clear table item.
  3966. * src/Dictionary.cc
  3967. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3968. Fixed error handling of lseek.
  3969. * src/AbstractDiskWriter.cc
  3970. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3971. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  3972. style cookie file.
  3973. * src/usage_text.h
  3974. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3975. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  3976. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  3977. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  3978. * src/Util.cc
  3979. * src/Util.h
  3980. * src/CookieParser.cc
  3981. * test/UtilTest.cc
  3982. * test/CookieParserTest.cc
  3983. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3984. Separate the implementation to load old mozilla format of cookie to
  3985. NsCookieParser class.
  3986. * src/CookieBoxFactory.cc
  3987. * src/CookieBoxFactory.h
  3988. * src/NsCookieParser.cc
  3989. * src/NsCookieParser.h
  3990. * test/NsCookieParserTest.cc
  3991. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3992. Made parse() const
  3993. * src/Sqlite3MozCookieParser.cc
  3994. * src/Sqlite3MozCookieParser.h
  3995. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3996. Added firefox3 cookie support based on the patch submitted by
  3997. tizianomueller.
  3998. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  3999. this functionality.
  4000. * configure.ac
  4001. * m4/sqlite3.m4
  4002. * src/CookieBoxFactory.cc
  4003. * src/CookieBoxFactory.h
  4004. * src/Makefile.am
  4005. * src/Makefile.in
  4006. * src/Sqlite3MozCookieParser.cc
  4007. * src/Sqlite3MozCookieParser.h
  4008. * src/main.cc
  4009. * test/CookieBoxFactoryTest.cc
  4010. * test/Makefile.am
  4011. * test/Makefile.in
  4012. * test/Sqlite3MozCookieParserTest.cc
  4013. * test/badcookies.sqlite
  4014. * test/cookies.sqlite
  4015. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4016. Added Danish and Greek translations.
  4017. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  4018. Great thanks to all translators.
  4019. * po/LINGUAS
  4020. * po/el.po
  4021. * po/da.po
  4022. * po/es.po
  4023. * po/ca.po
  4024. * po/nn.po
  4025. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4026. Fixed man page: --follow-bittorrent should be --follow-torrent
  4027. * doc/aria2c.1.txt
  4028. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4029. Fixed: numCommand is less than the value specified in -C option.
  4030. * src/RequestGroup.cc
  4031. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4032. Fixed occasional assertion failure in PieceSegment.
  4033. Calling PieceStorage::getMissingPiece(size_t) was missing after
  4034. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  4035. creation of duplicate segments and one of the segment was finished then
  4036. assertion failure was caused.
  4037. * src/SegmentMan.cc
  4038. * test/SegmentManTest.cc
  4039. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4040. Added options to load/save the server's performance/status to a file
  4041. and the timeout to drop their data.
  4042. --server-stat-of=FILE specifies the file to which performance data
  4043. is saved.
  4044. --server-stat-if=FILE specifies the file to read previously saved
  4045. by --server-stat-of option. Might be used with --uri-selector=feedback.
  4046. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  4047. TIMEOUT is specified in seconds and the default value is 24hours.
  4048. * src/MultiUrlRequestInfo.cc
  4049. * src/OptionHandlerFactory.cc
  4050. * src/RequestGroupMan.cc
  4051. * src/RequestGroupMan.h
  4052. * src/ServerStatMan.cc
  4053. * src/ServerStatMan.h
  4054. * src/option_processing.cc
  4055. * src/prefs.cc
  4056. * src/prefs.h
  4057. * test/ServerStatManTest.cc
  4058. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4059. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  4060. * src/ServerStatMan.cc
  4061. * src/ServerStatMan.h
  4062. * test/ServerStatManTest.cc
  4063. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4064. Implemented ServerStatMan::load(...) function and its test case.
  4065. * src/ServerStat.cc
  4066. * src/ServerStat.h
  4067. * src/ServerStatMan.cc
  4068. * test/ServerStatManTest.cc
  4069. * test/ServerStatTest.cc
  4070. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4071. Use time_t instead of int32_t. Use int64_t where milli second is
  4072. expected.
  4073. * src/TimeA2.cc
  4074. * src/TimeA2.h
  4075. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4076. Implemented ServerStatMan::save(...) function and its test case.
  4077. * src/ServerStat.cc
  4078. * src/ServerStat.h
  4079. * src/ServerStatMan.cc
  4080. * src/ServerStatMan.h
  4081. * test/ServerStatManTest.cc
  4082. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4083. Now aria2 uses name attribute in Metalink as local filename in
  4084. BitTorrent downloads. BUG#2033999
  4085. * src/BtContext.h
  4086. * src/BtDependency.cc
  4087. * src/DefaultBtContext.cc
  4088. * src/DefaultBtContext.h
  4089. * src/SingleFileDownloadContext.cc
  4090. * src/SingleFileDownloadContext.h
  4091. * test/BtDependencyTest.cc
  4092. * test/DefaultBtContextTest.cc
  4093. * test/MockBtContext.h
  4094. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4095. Added AC_C_BIGENDIAN
  4096. * src/configure.ac
  4097. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4098. Limited numCommand less than or equal to the number of piece.
  4099. * src/RequestGroup.cc
  4100. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4101. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  4102. directive.
  4103. * test/DefaultPieceStorageTest.cc
  4104. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4105. Fixed memory leak in test code
  4106. * test/AnnounceListTest.cc
  4107. * test/DefaultPeerListProcessorTest.cc
  4108. * test/DefaultPeerStorageTest.cc
  4109. * test/MetaFileUtilTest.cc
  4110. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4111. Fixed wrong argument passing to BitfieldMan::isBitSet()
  4112. * src/DefaultPieceStorage.cc
  4113. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4114. Initialized _directIOAllowed
  4115. * src/MultiDiskAdaptor.cc
  4116. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4117. Fixed memory leak
  4118. * src/GZipDecoder.cc
  4119. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4120. Fixed memory leak
  4121. * src/MetalinkParserStateMachine.cc
  4122. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4123. Fixed memory leak
  4124. * src/Dictionary.cc
  4125. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4126. Fixed memory leak
  4127. * src/IteratableChunkChecksumValidator.h
  4128. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4129. Fixed unmatched malloc/free.
  4130. * src/IteratableChunkChecksumValidator.cc
  4131. * src/IteratableChecksumValidator.cc
  4132. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4133. Removed max chunk size check. This change fixes BUG#2040169
  4134. * src/ChunkedDecoder.cc
  4135. * src/ChunkedDecoder.h
  4136. * test/ChunkedDecoderTest.cc
  4137. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4138. Implemented download speed based URI selection algorithm.
  4139. Introduced new option --uri-selector.
  4140. If --uri-selector=feedback is given, aria2 uses download speed observed
  4141. in the previous downloads and chooses fastest server in the URI list.
  4142. Currently at most 10 URIs are considered to introduce randomeness for
  4143. finding better servers. The speed is average download speed in the
  4144. downloads.
  4145. On the other hand, if --uri-selector=inorder is given, which is default,
  4146. URI is tried in order in URI list.
  4147. The usage text for the new option has not been written yet.
  4148. * src/AbstractCommand.cc
  4149. * src/DownloadCommand.cc
  4150. * src/DownloadEngine.cc
  4151. * src/DownloadEngineFactory.cc
  4152. * src/InOrderURISelector.cc
  4153. * src/InOrderURISelector.h
  4154. * src/OptionHandlerFactory.cc
  4155. * src/PeerStat.h
  4156. * src/RequestGroup.cc
  4157. * src/RequestGroup.h
  4158. * src/RequestGroupMan.cc
  4159. * src/RequestGroupMan.h
  4160. * src/SegmentMan.cc
  4161. * src/SegmentMan.h
  4162. * src/ServerStat.cc
  4163. * src/ServerStat.h
  4164. * src/ServerStatMan.cc
  4165. * src/ServerStatMan.h
  4166. * src/ServerStatURISelector.cc
  4167. * src/ServerStatURISelector.h
  4168. * src/URISelector.h
  4169. * src/option_processing.cc
  4170. * src/prefs.cc
  4171. * src/prefs.h
  4172. * test/InOrderURISelectorTest.cc
  4173. * test/RequestGroupManTest.cc
  4174. * test/ServerStatManTest.cc
  4175. * test/ServerStatURISelectorTest.cc
  4176. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4177. * Release 0.15.1+2
  4178. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4179. Bump up version number to 0.15.1+2
  4180. * configure.ac
  4181. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4182. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  4183. * m4/aria2_arg.m4
  4184. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4185. * Release 0.15.1+1
  4186. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4187. Bump up version number to 0.15.1+1
  4188. * configure.ac
  4189. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4190. Fixed the bug that causes segmentaion fault when resuming download
  4191. using metalink without size tag. Reproducible only using HTTP URI.
  4192. * src/HttpResponseCommand.cc
  4193. * src/FtpNegotiationCommand.cc
  4194. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4195. * Release 0.15.1
  4196. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4197. Updated Bulgarian and French translations, thanks to all translators.
  4198. * po/bg.po
  4199. * po/fr.po
  4200. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4201. Bump up version number to 0.15.1
  4202. * configure.ac
  4203. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4204. Avoid repeated call of gettimeofday() when calculating speed.
  4205. * src/SpeedCalc.cc
  4206. * src/SpeedCalc.h
  4207. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4208. Removed writable check when socket's send buffer is full in BitTorrent
  4209. downloads to lower CPU usage.
  4210. * src/PeerInteractionCommand.cc
  4211. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4212. Fixed broken gzip inflation.
  4213. Turn off segmented downloading if gzip content is smaller than or equal
  4214. to 1MiB and inflate the data on the fly, because HTTP response header
  4215. doesn't contain the length of inflated file we can't determin where
  4216. the chunk of data should be written.
  4217. On the other hand, if gzip content is larger than 1MB, then turn off
  4218. on the fly inflation, because some servers returns "content-type: gzip"
  4219. for *.tgz, *.gz files.
  4220. * src/DownloadCommand.cc
  4221. * src/HttpResponseCommand.cc
  4222. * src/HttpResponseCommand.h
  4223. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4224. Applied tizianomueller's patch to fix compile error.
  4225. * test/BitfieldManTest.cc
  4226. * test/BtRequestMessageTest.cc
  4227. * test/DefaultBtContextTest.cc
  4228. * test/DefaultDiskWriterTest.cc
  4229. * test/DefaultPieceStorageTest.cc
  4230. * test/HttpHeaderProcessorTest.cc
  4231. * test/HttpResponseTest.cc
  4232. * test/Metalink2RequestGroupTest.cc
  4233. * test/MetalinkParserControllerTest.cc
  4234. * test/MetalinkProcessorTest.cc
  4235. * test/PeerSessionResourceTest.cc
  4236. * test/UtilTest.cc
  4237. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4238. * Release 0.15.0
  4239. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4240. Reordered src files in POTFILES.in so that usage text appears first.
  4241. * po/POTFILES.in
  4242. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4243. Bump up version number to 0.15.0
  4244. * configure.ac
  4245. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4246. Added Bulgarian translation.
  4247. Updated Catalan, Spanish, French and Japanese translations.
  4248. Thanks to all translators.
  4249. * po/LINGUAS
  4250. * po/bg.po
  4251. * po/ca.po
  4252. * po/es.po
  4253. * po/fr.po
  4254. * po/ja.po
  4255. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4256. Updated feature list. Added libz for dependency section.
  4257. Added a description about unit testing using CppUnit.
  4258. * README
  4259. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4260. Added a test for libz. Quoted where it is necessary.
  4261. * build_test.sh
  4262. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4263. Added GZip to `Enabled Features' list.
  4264. * src/FeatureConfig.cc
  4265. * src/FeatureConfig.h
  4266. * test/FeatureConfigTest.cc
  4267. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4268. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  4269. the transfer has not yet started.
  4270. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  4271. * src/SegmentMan.cc
  4272. * src/SegmentMan.h
  4273. * test/SegmentManTest.cc
  4274. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4275. Cache last calculated average download/upload speed.
  4276. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  4277. cached value.
  4278. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  4279. * src/PeerStat.h
  4280. * src/SpeedCalc.cc
  4281. * src/SpeedCalc.h
  4282. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4283. Call parseUrl directly.
  4284. * src/Request.cc (resetUrl)
  4285. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4286. Supported absolute/relative path in Location header field.
  4287. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  4288. * src/HttpHeader.cc
  4289. * src/HttpHeader.h
  4290. * src/HttpResponse.cc
  4291. * src/HttpSkipResponseCommand.cc
  4292. * src/Request.cc
  4293. * test/HttpHeaderTest.cc
  4294. * test/HttpResponseTest.cc
  4295. * test/RequestTest.cc
  4296. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4297. Changed help text for --load-cookie option.
  4298. * doc/aria2c.1.txt
  4299. * src/usage_text.h
  4300. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4301. Regenerated test/Makefile.in to remove stale ChangeLog.
  4302. * test/Makefile.in
  4303. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4304. Updated po files.
  4305. * po/aria2c.pot
  4306. * po/*.po
  4307. * po/*.gmo
  4308. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4309. Bump up version number to 0.15.0b
  4310. * configure.ac
  4311. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4312. Externalize messages.
  4313. * src/RequestGroupMan.cc
  4314. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  4315. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4316. Use File::exists() instead of File::isFile() to allow non-regular file
  4317. such as block special files.
  4318. * src/AbstractDiskWriter.cc
  4319. * src/MultiDiskWriter.cc
  4320. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4321. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  4322. * src/gai_strerror.h
  4323. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4324. Fixed compile error. Thanks gknauf for the patch.
  4325. * src/asctime_r.c
  4326. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4327. Included asctime_r.h from a2time.h.
  4328. * src/a2time.h
  4329. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4330. Added a message "aria2 doesn't verify signature" to log message when
  4331. signature file is saved.
  4332. * src/RequestGroupMan.cc
  4333. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4334. Added the ability to save signature when download is completed if
  4335. signature is available. The filename of signature file is the path to
  4336. download file followed by ".sig". If it already exists, then signature
  4337. will not be saved.
  4338. * src/RequestGroupMan.cc
  4339. * src/Signature.cc
  4340. * test/SignatureTest.cc
  4341. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4342. Updated the descriptions for --bt-seed-unverified.
  4343. * doc/aria2c.1
  4344. * doc/aria2c.1.html
  4345. * doc/aria2c.1.txt
  4346. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4347. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  4348. that this is not going to verify files using piece hashes.
  4349. * src/HelpItemFactory.cc
  4350. * src/OptionHandlerFactory.cc
  4351. * src/RequestGroup.cc
  4352. * src/option_processing.cc
  4353. * src/prefs.cc
  4354. * src/prefs.h
  4355. * src/usage_text.h
  4356. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4357. Added the ability to retrieve signature from Metalink file.
  4358. A retrieved signature is stored in Signature class and it is held by
  4359. DownloadContext class. Note that aria2 doesn't verify signature.
  4360. * src/DownloadContext.cc
  4361. * src/DownloadContext.h
  4362. * src/Makefile.am
  4363. * src/Makefile.in
  4364. * src/Metalink2RequestGroup.cc
  4365. * src/MetalinkEntry.cc
  4366. * src/MetalinkEntry.h
  4367. * src/MetalinkParserController.cc
  4368. * src/MetalinkParserController.h
  4369. * src/MetalinkParserStateMachine.cc
  4370. * src/MetalinkParserStateMachine.h
  4371. * src/Signature.cc
  4372. * src/Signature.h
  4373. * src/SignatureMetalinkParserState.cc
  4374. * src/SignatureMetalinkParserState.h
  4375. * src/VerificationMetalinkParserState.cc
  4376. * src/VerificationMetalinkParserState.h
  4377. * test/Metalink2RequestGroupTest.cc
  4378. * test/MetalinkParserControllerTest.cc
  4379. * test/MetalinkProcessorTest.cc
  4380. * test/test.xml
  4381. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4382. Close DiskAdaptor after renaming file.
  4383. * src/RequestGroup.cc
  4384. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4385. Corrected indentation
  4386. * src/DefaultBtProgressInfoFile.cc
  4387. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4388. Moved the calls of std::ios::exceptions() inside of try-catch block
  4389. because if an error occurred in constructor of std::fstream, then
  4390. exception is thrown immediately when std::ios::exceptions() is called
  4391. which results unhandled exception and aria2c aborts.
  4392. * src/DefaultBtProgressInfoFile.cc
  4393. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4394. Added the test for the previous change in DefaultBtContext.cc
  4395. * test/DefaultBtContextTest.cc
  4396. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4397. Fixed the bug that causes infinite loop when the number of pieces are
  4398. fewer than allowed fast set size which is 10 by default.
  4399. * src/DefaultBtContext.cc
  4400. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4401. Updated the descriptions for -j, -s. Added --bt-seed.
  4402. * doc/aria2c.1
  4403. * doc/aria2c.1.html
  4404. * doc/aria2c.1.txt
  4405. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4406. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  4407. aria2 seeds previously downloaded files without validating piece hashs.
  4408. * src/HelpItemFactory.cc
  4409. * src/OptionHandlerFactory.cc
  4410. * src/RequestGroup.cc
  4411. * src/option_processing.cc
  4412. * src/prefs.cc
  4413. * src/prefs.h
  4414. * src/usage_text.h
  4415. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4416. Updated DESCRIPTION of man page.
  4417. * doc/aria2c.1
  4418. * doc/aria2c.1.html
  4419. * doc/aria2c.1.txt
  4420. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4421. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  4422. Don't define `struct addrinfo' when __sun is defined.
  4423. * src/getaddrinfo.h
  4424. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4425. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  4426. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  4427. second argument is of type `struct _stati64'. Otherwise it is defined as
  4428. `struct stat'.
  4429. * src/AbstractDiskWriter.cc
  4430. * src/File.cc
  4431. * src/File.h
  4432. * src/a2io.h
  4433. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4434. Fixed the compile error in hurd-i386
  4435. See the original bug report:
  4436. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  4437. * src/a2io.h
  4438. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4439. Code cleanup.
  4440. * src/PeerAbstractCommand.cc
  4441. * src/PeerAbstractCommand.h
  4442. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4443. Removed TransferEncoding.
  4444. * src/DownloadCommand.cc
  4445. * src/DownloadCommand.h
  4446. * src/HttpResponseCommand.cc
  4447. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4448. Updated po files.
  4449. * po/aria2c.pot
  4450. * po/*.po
  4451. * po/*.gmo
  4452. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4453. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  4454. * src/A2STR.cc
  4455. * src/A2STR.h
  4456. * src/ChunkedDecoder.cc
  4457. * src/ChunkedDecoder.h
  4458. * src/ChunkedEncoding.cc: Removed
  4459. * src/ChunkedEncoding.h: Removed
  4460. * src/DownloadCommand.cc
  4461. * src/DownloadCommand.h
  4462. * src/HttpDownloadCommand.cc
  4463. * src/HttpResponse.cc
  4464. * src/HttpResponse.h
  4465. * src/HttpResponseCommand.cc
  4466. * src/HttpSkipResponseCommand.cc
  4467. * src/HttpSkipResponseCommand.h
  4468. * src/Makefile.am
  4469. * src/TransferEncoding.h: Removed
  4470. * test/ChunkedDecoderTest.cc
  4471. * test/ChunkedEncodingTest.cc: Removed
  4472. * test/HttpResponseTest.cc
  4473. * test/Makefile.am
  4474. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4475. Use append instead of insert.
  4476. * src/GZipDecoder.cc
  4477. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4478. Updated doc
  4479. * src/Decoder.h
  4480. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4481. Updated usage text for -s option.
  4482. * src/usage_text.h
  4483. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4484. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  4485. * src/Request.cc
  4486. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4487. Cleaned up configure.ac.
  4488. * configure.ac
  4489. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4490. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  4491. AC_ARG_ENABLE.
  4492. * configure.ac
  4493. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4494. Added gzip, deflate decoding support in HTTP using libz. If compiled
  4495. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  4496. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  4497. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  4498. fly and writes decoded data to a local disk.
  4499. * README
  4500. * README.html
  4501. * configure.ac
  4502. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  4503. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  4504. * m4/libz.m4
  4505. * src/Decoder.h
  4506. * src/DownloadCommand.cc
  4507. * src/DownloadCommand.h
  4508. * src/Exception.h
  4509. * src/GZipDecoder.cc
  4510. * src/GZipDecoder.h
  4511. * src/HttpHeader.cc
  4512. * src/HttpHeader.h
  4513. * src/HttpRequest.cc
  4514. * src/HttpRequest.h
  4515. * src/HttpResponse.cc
  4516. * src/HttpResponse.h
  4517. * src/HttpResponseCommand.cc
  4518. * src/Makefile.am
  4519. * test/GZipDecoderTest.cc
  4520. * test/HttpRequestTest.cc
  4521. * test/HttpResponseTest.cc
  4522. * test/Makefile.am
  4523. * test/Makefile.in
  4524. * test/gzip_decode_test.gz
  4525. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4526. Clarified usage of -j option.
  4527. * src/usage_text.h
  4528. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4529. Disabled getting size from the response of RETR.
  4530. If SIZE command failed, then disable resuming and segmented downloading.
  4531. * src/FtpConnection.cc
  4532. * src/FtpConnection.h
  4533. * src/FtpNegotiationCommand.cc
  4534. * src/FtpNegotiationCommand.h
  4535. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4536. Use digits to find first byte of file size, which makes the intention
  4537. of the code clearer.
  4538. * src/FtpConnection.cc
  4539. Don't call validateTotalLength() when size is 0.
  4540. * src/FtpNegotiationCommand.cc
  4541. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4542. Updated po files.
  4543. * po/aria2c.pot
  4544. * po/*.gmo
  4545. * po/*.po
  4546. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4547. Clarified usage text for --split option.
  4548. * src/usage_text.h
  4549. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4550. Bump up version number to 0.15.0dev. "dev" means "development"
  4551. version, which means I started the development of the next release!
  4552. * src/configure.ac
  4553. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4554. If FTP server returns negative response with REST raw command and
  4555. requested range is not 0, throw exception. If requested range is 0,
  4556. continue download a file from 0 byte.
  4557. * src/FtpNegotiationCommand.cc
  4558. * src/FtpNegotiationCommand.h
  4559. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4560. Supported FTP server which don't recognize SIZE raw command.
  4561. If SIZE raw command is failed, aria2 will try to get file size
  4562. from the response of RETR raw command. If both attempts are failed,
  4563. then resuming and segmented downloading are disabled.
  4564. * src/FtpConnection.cc
  4565. * src/FtpConnection.h
  4566. * src/FtpNegotiationCommand.cc
  4567. * src/FtpNegotiationCommand.h
  4568. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4569. * Release 0.14.0+1
  4570. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4571. Bump up version number to 0.14.0+1
  4572. * src/configure.ac
  4573. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4574. Fixed the code that refers static member variable from non-static
  4575. context.
  4576. * src/DefaultPeerStorage.cc
  4577. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4578. * Release 0.14.0
  4579. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4580. Added build test script
  4581. * build_test.sh
  4582. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4583. Updated ja.po
  4584. * src/ja.po
  4585. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4586. Bump up version number to 0.14.0
  4587. * src/configure.ac
  4588. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4589. Updated ja.po and fr.po. Great thanks for french translators and
  4590. Sebastien WILLEMIJNS.
  4591. * po/fr.po
  4592. * po/ja.po
  4593. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4594. Added configure option to enable/disable epoll support.
  4595. * configure.ac
  4596. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4597. Updated man page.
  4598. * doc/aria2c.1.txt
  4599. * doc/aria2c.1
  4600. * doc/aria2c.1.html
  4601. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4602. Added missing default value '5' to the usage of --split option.
  4603. * src/HelpItemFactory.cc
  4604. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4605. Filled up pieces based on the number of missing blocks, rather than
  4606. simplay the number of piece * block length.
  4607. * src/BtRequestFactory.h
  4608. * src/DefaultBtInteractive.cc
  4609. * src/DefaultBtInteractive.h
  4610. * src/DefaultBtRequestFactory.cc
  4611. * src/DefaultBtRequestFactory.h
  4612. * src/Piece.cc
  4613. * src/Piece.h
  4614. * test/BitfieldManTest.cc
  4615. * test/DefaultBtRequestFactoryTest.cc
  4616. * test/MockBtRequestFactory.h
  4617. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4618. Made _epEvents a member variable.
  4619. * src/DownloadEngine.cc
  4620. * src/DownloadEngine.h
  4621. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4622. Cancel download if http redirect is bounded more than 20 times.
  4623. * src/AbstractCommand.cc
  4624. * src/HttpSkipResponseCommand.cc
  4625. * src/Request.cc
  4626. * src/Request.h
  4627. * test/RequestTest.cc
  4628. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4629. Fixed unhandled exception(removed keyword `new').
  4630. * src/SocketCore.cc (initEPOLL)
  4631. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4632. Removed visit(const MetaEntry*)
  4633. * src/MetaEntryVisitor.h:
  4634. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  4635. and made them virtual.
  4636. * src/BencodeVisitor.h
  4637. * src/BencodeVisitor.cc
  4638. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4639. Updated po files.
  4640. * po/aria2c.pot
  4641. * po/*.po
  4642. * po/*.gmo
  4643. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4644. Moved the call setWriteCheckSocket inside the previous clause to reduce
  4645. the number of socket to watch out.
  4646. * src/PeerInteractionCommand.cc
  4647. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4648. When there is not enough space in disk when writing a chunk of data,
  4649. aria2 now prints the message to the console to warn user and aborts
  4650. its download. Not all downloads are canceled because some downloads
  4651. may use another disk or partition. BUG#1640332
  4652. * src/AbstractDiskWriter.cc
  4653. * src/PeerAbstractCommand.cc
  4654. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  4655. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  4656. setHaltRequested(true) to cancel download.
  4657. * src/PeerInteractionCommand.h
  4658. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4659. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  4660. socket from int to sock_t as sockets are unsigned in Windows.
  4661. For AsyncNameResolver, DownloadEngine, I did additional modification
  4662. for the portion of the code changed according to epoll support.
  4663. I defined sock_t in a2netcompat.h to use sock_t without including
  4664. SocketCore.h.
  4665. * src/AsyncNameResolver.cc
  4666. * src/AsyncNameResolver.h
  4667. * src/DownloadEngine.cc
  4668. * src/DownloadEngine.h
  4669. * src/SocketCore.cc
  4670. * src/SocketCore.h
  4671. * src/a2netcompat.h
  4672. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4673. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  4674. changes in the patch were applied.
  4675. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  4676. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  4677. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  4678. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4679. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  4680. a2io.h and common.h were modified.
  4681. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  4682. MinGW.
  4683. * src/common.h: Changed off_t to 64 bit in MinGW.
  4684. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4685. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4686. only a2netcompat.h is modified.
  4687. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  4688. directives.
  4689. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4690. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4691. only gai_strerror.h is modified.
  4692. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  4693. winsock errors in MinGW.
  4694. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4695. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  4696. follow sources are applied.
  4697. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  4698. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  4699. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  4700. I included locale.h from Platform.cc.
  4701. * src/main.cc: Moved common setup/teardown code to Platform class.
  4702. * test/AllTest.cc: Use Platform class.
  4703. Set locale to C in AllTest.cc to prevent the messages to be localized.
  4704. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4705. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  4706. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  4707. * test/HttpRequestTest.cc: Casted to off_t where it should.
  4708. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4709. Applied Ross's aria2-0.13.2+1-mingw.patch and
  4710. aria2-0.13.2+1-mingw-2.patch.
  4711. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  4712. systems which don't have termious.h. I moved the directive inside of
  4713. if(isTTY) { ... clause so that line is wiped out without termious.h.
  4714. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  4715. anyway.
  4716. * src/asctime_r.h
  4717. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  4718. I added 2nd argument to the prototype declaration.
  4719. * src/StringFormat.cc: Get rid of vasprintf.
  4720. * src/getaddrinfo.h: Fixed constants.
  4721. * configure.ac: Added the check for asctime_r function.
  4722. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  4723. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4724. Added writable test for Socket when the sending message is in progress.
  4725. Usually the sending message is piece message. Without wriable check,
  4726. upload latency is dropped to more than 1sec.
  4727. * src/PeerInteractionCommand.cc
  4728. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4729. Create only requested files and files which shares a piece with
  4730. requested file in multi-torrent downloads. Directory structures are
  4731. also created in the same rule.
  4732. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  4733. DiskWriterEntry as in the previous implementation.
  4734. * src/MultiDiskWriter.cc
  4735. * src/MultiFileAllocationIterator.cc
  4736. * src/MultiFileAllocationIterator.h
  4737. * test/MultiFileAllocationIteratorTest.cc
  4738. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4739. Commented out -lprofiler
  4740. * src/Makefile.am
  4741. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4742. Bump up version number to 0.14.0b.
  4743. * src/configure.ac
  4744. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4745. Actively establish connection to peers in seeding, when peer cache
  4746. is not full and max upload speed limit is not reached.
  4747. * src/ActivePeerConnectionCommand.cc
  4748. * src/ActivePeerConnectionCommand.h
  4749. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4750. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  4751. to make room more fleshy, recently found peers.
  4752. Peer::_badConditionStartTime is not used anymore. Consider to remove
  4753. it.
  4754. * src/DefaultPeerStorage.cc
  4755. * test/DefaultPeerStorageTest.cc
  4756. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4757. Returns cached data only when the previous receiveHandshake() is called
  4758. with peek = true.
  4759. * src/PeerConnection.cc (receiveHandshake)
  4760. * src/PeerConnection.h (receiveHandshake)
  4761. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4762. Changed default value of -s option from 1 to 5.
  4763. Also max value of -s option is changed from 5 to 16.
  4764. * src/HelpItemFactory.cc
  4765. * src/OptionHandlerFactory.cc
  4766. * src/option_processing.cc
  4767. * src/usage_text.h
  4768. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4769. Changed -s options behavior. Now it means the number of connections
  4770. made simultaneously in each http/ftp download.
  4771. If 1 URL is specified, the behavior is the same with old implementation.
  4772. If -s N is given and more than N URLs are specified, first N URLs are
  4773. used and remaining URLs are used for backup. If less than N URLs are
  4774. specified, some of URLs are used more than once so that totally N
  4775. connections are made simultaneously.
  4776. * src/main.cc
  4777. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4778. Included missing iosfwd or ostream header.
  4779. * src/RequestGroupMan.cc
  4780. * src/TaggedItem.cc
  4781. * src/TaggedItem.h
  4782. * src/Util.cc
  4783. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4784. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  4785. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  4786. * src/HttpConnection.cc: Included missing sstream.
  4787. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4788. Added --bt-max-open-files option.
  4789. * src/DefaultPieceStorage.cc
  4790. * src/HelpItemFactory.cc
  4791. * src/MultiDiskAdaptor.cc
  4792. * src/MultiDiskAdaptor.h
  4793. * src/OptionHandlerFactory.cc
  4794. * src/option_processing.cc
  4795. * src/prefs.cc
  4796. * src/prefs.h
  4797. * src/usage_text.h
  4798. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4799. Fixed the bug that aria2 aborts when a path to a directory is given
  4800. in command-line.
  4801. * src/ProtocolDetector.cc
  4802. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4803. Limited the number files opened in each BitTorrent download. The default
  4804. value is 100. The option to change this value will be added.
  4805. * src/MultiDiskAdaptor.cc
  4806. * src/MultiDiskAdaptor.h
  4807. * src/MultiFileAllocationIterator.cc
  4808. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4809. Fixed the bug that HTTP downloads don't start with old libraries.
  4810. * src/HttpHeaderProcessor.cc
  4811. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4812. Use empty() instead of size() > 0.
  4813. * src/HttpConnection.cc
  4814. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4815. Drop connection if the incoming peer ID is the same with localhost's
  4816. one. The previous implementation drops connection when incoming peer's
  4817. IP address is the same with localhost's one.
  4818. * src/PeerListenCommand.cc
  4819. * src/DefaultBtInteractive.cc
  4820. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4821. Returns cached data without checking whether socket is readable
  4822. if the cache is available.
  4823. * src/PeerConnection.cc (receiveHandshake)
  4824. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4825. Included stdint.h
  4826. * src/common.h
  4827. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4828. Removed duplicate HAVE_GETTIMEOFDAY
  4829. * src/Makefile.am
  4830. * src/Makefile.in
  4831. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4832. Use interval as a minInterval when minInterval is not supplied.
  4833. * src/DefaultBtAnnounce.cc
  4834. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4835. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  4836. attempt is failed, then 2nd attempt get kicked out more quickly.
  4837. And it is now static const member of DefaultBtAnnounce.
  4838. * src/DefaultBtAnnounce.h
  4839. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4840. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  4841. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  4842. * src/ActivePeerConnectionCommand.cc
  4843. * src/BtConstants.h
  4844. * src/BtRuntime.h
  4845. * src/DHTGetPeersCommand.cc
  4846. * src/DefaultBtAnnounce.cc
  4847. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  4848. BtRuntime::MAX_PEERS.
  4849. * src/DefaultPeerStorage.h
  4850. * src/InitiatorMSEHandshakeCommand.cc
  4851. * src/PeerInitiateConnectionCommand.cc
  4852. * src/PeerInteractionCommand.cc
  4853. * src/PeerReceiveHandshakeCommand.cc
  4854. * src/TrackerWatcherCommand.cc
  4855. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4856. Always Connect to _numNewConnection
  4857. * src/ActivePeerConnectionCommand.cc
  4858. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4859. Made `begin' unsigned int.
  4860. * src/GrowSegment.h
  4861. * src/Piece.cc
  4862. * src/Piece.h
  4863. * src/PiecedSegment.cc
  4864. * src/PiecedSegment.h
  4865. * src/Segment.h
  4866. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4867. Calculate piece hash when data is arrived if the data is arrived in
  4868. order. This removes additional read operation for hash calculation.
  4869. If the data is arrived in out of order, the hash is calucated when the
  4870. piece is completed. This is the same behavior as the old implementation.
  4871. * src/BtPieceMessage.cc
  4872. * src/DefaultBtProgressInfoFile.cc
  4873. * src/DefaultPieceStorage.cc
  4874. * src/DownloadCommand.cc
  4875. * src/DownloadCommand.h
  4876. * src/DownloadEngine.cc
  4877. * src/GrowSegment.cc
  4878. * src/GrowSegment.h
  4879. * src/Piece.cc
  4880. * src/Piece.h
  4881. * src/PiecedSegment.cc
  4882. * src/PiecedSegment.h
  4883. * src/Segment.h
  4884. * test/PieceTest.cc
  4885. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4886. Try to keep the ordering of outgoing piece message.
  4887. * src/DefaultBtMessageDispatcher.cc
  4888. (DefaultBtMessageDispatcher::sendMessages)
  4889. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4890. Fixed busy loop when error/hup epoll events occur.
  4891. * src/AbstractCommand.cc
  4892. * src/PeerAbstractCommand.cc
  4893. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4894. Added --bt-request-peer-speed-limit option, which was a constant
  4895. SLOW_SPEED_THRESHOLD.
  4896. * src/ActivePeerConnectionCommand.cc
  4897. * src/ActivePeerConnectionCommand.h
  4898. * src/BtConstants.h
  4899. * src/HelpItemFactory.cc
  4900. * src/OptionHandlerFactory.cc
  4901. * src/PeerReceiveHandshakeCommand.cc
  4902. * src/option_processing.cc
  4903. * src/prefs.cc
  4904. * src/prefs.h
  4905. * src/usage_text.h
  4906. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4907. Removed repeated call of getTopDirPath(). Instead, call it once and
  4908. cache the result.
  4909. * src/MultiDiskAdaptor.cc
  4910. * src/MultiDiskAdaptor.h
  4911. (mkdir, openFile, initAndOpenFile, openExistingFile)
  4912. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4913. Fixed compile error on debian etch.
  4914. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  4915. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  4916. it is undefined.
  4917. * src/Util.cc (ULLONG_MAX)
  4918. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4919. Added epoll support. Use epoll if it is available. If not, use select.
  4920. When async dns is enabled in compile time, epoll support is enabled
  4921. only when aria2 is built with c-ares. This condition statement is
  4922. defined in a2io.h.
  4923. Currently aria2 supports both c-ares and ares, but ares is maintained
  4924. for quite a while and debian already has c-ares package, ares support
  4925. will be dropped in the future version.
  4926. * configure.ac
  4927. * src/AbstractCommand.cc
  4928. * src/AsyncNameResolver.cc
  4929. * src/AsyncNameResolver.h
  4930. * src/Command.cc
  4931. * src/Command.h
  4932. * src/DownloadEngine.cc
  4933. * src/DownloadEngine.h
  4934. * src/PeerAbstractCommand.cc
  4935. * src/SocketCore.cc
  4936. * src/SocketCore.h
  4937. * src/a2io.h
  4938. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4939. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  4940. directive.
  4941. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4942. Do not do write operation to /dev/null file.
  4943. * src/LogFactory.cc
  4944. * src/SimpleLogger.cc
  4945. Replaced vasprintf with vsnprintf
  4946. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4947. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4948. * src/BtRequestMessage.cc
  4949. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  4950. for segmentation fault caused by previous commit.
  4951. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4952. Reduced the usage of gettimeofday().
  4953. * src/DefaultBtMessageDispatcher.cc
  4954. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  4955. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4956. * src/RequestSlot.cc
  4957. * src/RequestSlot.h
  4958. (RequestSlot::isTimeout)
  4959. Made RequestSlot have a reference to Piece object to avoid find
  4960. Piece repeatedly.
  4961. * src/DefaultBtMessageDispatcher.cc
  4962. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4963. * src/RequestSlot.cc
  4964. * src/RequestSlot.h
  4965. (RequestSlot::getPiece)
  4966. * test/DefaultBtMessageDispatcherTest.cc
  4967. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4968. * src/TimeA2.cc
  4969. * src/TimeA2.h
  4970. (Time::difference): New function.
  4971. (Time::elapsed): Done optimization.
  4972. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4973. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  4974. directive.
  4975. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4976. * src/option_processing.cc: Added missing `defined' keyword to #if
  4977. directive.
  4978. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4979. Bump up version number to 0.13.2+1
  4980. * src/configure.ac
  4981. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4982. Refactored broken outstanding piece handling.
  4983. * src/DefaultPieceStorage.cc
  4984. * src/DefaultPieceStorage.h
  4985. * src/Piece.cc
  4986. * src/Piece.h
  4987. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4988. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  4989. name collision of static variable and predefined macro.
  4990. * src/BtContext.cc
  4991. * src/BtContext.h
  4992. * src/CookieBoxFactory.cc
  4993. * src/CookieBoxFactory.h
  4994. * src/CookieParser.cc
  4995. * src/CookieParser.h
  4996. * src/DefaultBtContext.cc
  4997. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4998. * src/RequestGroup.cc
  4999. (RequestGroup::createInitialCommand): Use empty() instead of size().
  5000. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5001. * Release 0.13.2
  5002. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5003. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  5004. * po/fr.po
  5005. * po/ja.po
  5006. * po/aria2c.pot
  5007. * po/*.po
  5008. * po/*.gmo
  5009. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5010. Bump up version number to 0.13.2
  5011. * src/configure.ac
  5012. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5013. Refactord.
  5014. * src/RequestGroupMan.cc
  5015. (removeStoppedGroup)
  5016. (fillRequestGroupFromReserver)
  5017. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5018. Fixed compile error on Ubuntu.
  5019. * src/BtPieceMessage.cc
  5020. * src/MessageDigestHelper.cc
  5021. * src/Util.cc
  5022. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5023. Fixed compile error when configured with --disable-bittorrent
  5024. * test/DownloadHandlerFactoryTest.cc
  5025. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5026. Done make update-po
  5027. * po/aria2c.pot
  5028. * po/*.po
  5029. * po/*.gmo
  5030. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5031. Bump up version number to 0.13.2rc.
  5032. * src/configure.ac
  5033. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5034. Made option name bold. Updated SYNOPSIS to make it more readable.
  5035. * doc/aria2c.1.txt
  5036. * doc/aria2c.1
  5037. * doc/aria2c.1.html
  5038. * src/version_usage.cc
  5039. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5040. Refactored. Use std::string instead of size and char*.
  5041. * Data.cc
  5042. * Data.h
  5043. * test/Data.cc
  5044. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5045. Added trimSelf(). Rewritten trim() to use trimSelf().
  5046. * Util.cc
  5047. * Util.h
  5048. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5049. * src/ChunkChecksum.h (getChecksum): Return const reference.
  5050. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5051. Fixed compile error when configured with --disable-metalink.
  5052. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  5053. * test/FeatureConfigTest.cc
  5054. * test/DownloadHandlerFactoryTest.cc
  5055. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5056. Fixed compile error when configured with --without-gnutls
  5057. --without-openssl
  5058. * src/main.cc
  5059. * test/DefaultBtProgressInfoFileTest.cc
  5060. * test/SegmentManTest.cc
  5061. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5062. Fixed compile error with OpenSSL.
  5063. * src/IteratableChunkChecksumValidator.cc
  5064. * src/LibsslDHKeyExchange.h
  5065. * src/MessageDigestHelper.cc
  5066. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5067. Revert the default value of --max-concurrent-downloads to 5.
  5068. Revert the default value of --metalink-servers to 5.
  5069. Man pages was also updated.
  5070. * src/option_processing.cc
  5071. * doc/aria2c.1.txt
  5072. * doc/aria2c.1.html
  5073. * doc/aria2c.1
  5074. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5075. Returns const reference:
  5076. DownloadContext::getPieceHash, DownloadContext::getName,
  5077. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  5078. BtContext::getInfoHashAsString,
  5079. * src/BtContext.h
  5080. * src/DefaultBtContext.cc
  5081. * src/DefaultBtContext.h
  5082. * src/DownloadContext.h
  5083. * src/SingleFileDownloadContext.h
  5084. * test/MockBtContext.h
  5085. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5086. * src/RequestGroup.h (getDir): Removed.
  5087. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5088. Returns const reference. The internal urlencode function was optimized
  5089. a little bit.
  5090. * src/Request.cc
  5091. * src/Request.h
  5092. * src/HttpRequest.cc
  5093. * src/HttpRequest.h
  5094. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5095. Defined option name and possible values as std::string to reduce
  5096. temporary string object creation in runtime.
  5097. * src/HelpItemFactory.cc
  5098. * src/LogFactory.cc
  5099. * src/Option.cc
  5100. * src/OptionHandlerFactory.cc
  5101. * src/option_processing.cc
  5102. * src/prefs.cc
  5103. * src/prefs.h
  5104. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5105. Return const reference.
  5106. * src/DownloadHandlerConstants.cc
  5107. * src/DownloadHandlerConstants.h
  5108. (getMetalinkExtensions)
  5109. (getMetalinkContentTypes)
  5110. (getBtExtensions)
  5111. (getBtContentTypes)
  5112. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5113. * src/HttpHeader.cc (get): Rewritten.
  5114. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5115. Make HttpHeader::getFirst(...) return const reference.
  5116. * src/HttpHeader.cc
  5117. * src/HttpHeader.h
  5118. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5119. Use Option::getAsBool(...) instead of Option::get(...) and compare
  5120. it with V_TRUE.
  5121. * src/DefaultPieceStorage.cc
  5122. * src/DownloadCommand.cc
  5123. * src/FtpNegotiationCommand.cc
  5124. * src/HttpRequest.cc
  5125. * src/InitiateConnectionCommand.cc
  5126. * src/RequestGroup.cc
  5127. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5128. Made Option::get(...) return const reference of std::string.
  5129. * src/Option.cc
  5130. * src/Option.h
  5131. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5132. Replaced std:copy with insert.
  5133. * src/DefaultBtMessageDispatcher.cc
  5134. * src/DefaultPieceStorage.cc
  5135. * src/DownloadEngineFactory.cc
  5136. * src/RequestGroup.cc
  5137. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5138. Included SocketCore.h to fix compiler warning.
  5139. * src/InitiateConnectionCommand.cc
  5140. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5141. Put piece selection strategy algorithm to RarestPieceSelector class,
  5142. Added a switch to choose whether randomized selection so that unit
  5143. tests emit same results in, possibly, win32.
  5144. * src/DefaultPieceStorage.cc
  5145. * src/DefaultPieceStorage.h
  5146. * src/RarestPieceSelector.cc
  5147. * src/RarestPieceSelector.h
  5148. * test/DefaultPieceStorageTest.cc
  5149. * test/RarestPieceSelectorTest.cc
  5150. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5151. Don't pool connection if HTTP proxy is enabled.
  5152. * src/FtpFinishDownloadCommand.cc
  5153. * src/FtpNegotiationCommand.cc
  5154. * src/HttpSkipResponseCommand.cc
  5155. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5156. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  5157. * src/AbstractCommand.cc
  5158. * src/AbstractCommand.h
  5159. * src/ActivePeerConnectionCommand.cc
  5160. * src/FtpInitiateConnectionCommand.cc
  5161. * src/HttpInitiateConnectionCommand.cc
  5162. * src/InitiateConnectionCommandFactory.cc
  5163. * src/PeerAbstractCommand.cc
  5164. * src/PeerAbstractCommand.h
  5165. * src/PeerInitiateConnectionCommand.cc
  5166. * src/TrackerWatcherCommand.cc
  5167. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5168. Sort RequestSlot in ascending order and manipulate them using
  5169. lower_bound.
  5170. * src/DefaultBtMessageDispatcher.cc
  5171. * src/DefaultBtMessageDispatcher.h
  5172. (getMessageQueue): Added const qualifier.
  5173. (getRequestSlots): Added const qualifier.
  5174. (sendMessages): Use empty() instead of size().
  5175. (doCancelSendingPieceAction): Use HandleEvent object.
  5176. (doAbortOutstandingRequestAction): Rewritten.
  5177. (doChokedAction): Rewritten.
  5178. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  5179. (isOutstandingRequest): Rewritten.
  5180. (getOutstandingRequest): Rewritten.
  5181. (removeOutstandingRequest): Rewritten.
  5182. (addOutstandingRequest): Rewritten.
  5183. * src/RequestSlot.cc
  5184. * src/RequestSlot.h
  5185. (operator=): Rewritten.
  5186. (operator!=): New function.
  5187. (operator<): New function.
  5188. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5189. * src/DefaultBtRequestFactory.cc
  5190. (doChokedAction): Rewritten.
  5191. (removeCompletedPiece): Rewritten.
  5192. (removeTargetPiece): Rewritten.
  5193. (createRequestMessages): Added the debug log.
  5194. (createRequestMessagesOnEndGame: Added the debug log.
  5195. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5196. Added the debug log message.
  5197. * src/BtPieceMessage.cc (doReceivedAction)
  5198. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5199. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  5200. used lower_bound to process them rather than linear search.
  5201. * src/DHTPeerAnnounceStorage.cc
  5202. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5203. Call subtractPieceStats from ~PeerInteractionCommand only when the
  5204. peer has at least one completed piece.
  5205. * src/Peer.cc
  5206. * src/Peer.h
  5207. * src/PeerInteractionCommand.cc
  5208. * src/PeerSessionResource.cc
  5209. * src/PeerSessionResource.h
  5210. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5211. Removed unnecessary sorting
  5212. * src/DefaultPieceStorage (DefaultPieceStorage)
  5213. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5214. Rewritten the portion of the code that mangaes allowed fast indexes.
  5215. * src/PeerSessionResource.cc
  5216. * src/PeerSessionResource.h
  5217. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5218. Removed the invalid string including '\r' from ru.po and
  5219. did make update-po.
  5220. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5221. Added --log-level and --summary-interval to man page.
  5222. * doc/aria2c.1.txt
  5223. * doc/aria2c.1.html
  5224. * doc/aria2c.1
  5225. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5226. Added --log-level option to specify log level. Log messages under
  5227. the specified level are not output. Default value is `debug'.
  5228. * src/HelpItemFactory.cc
  5229. * src/LogFactory.cc
  5230. * src/LogFactory.h
  5231. * src/Logger.h
  5232. * src/OptionHandlerFactory.cc
  5233. * src/SimpleLogger.cc
  5234. * src/SimpleLogger.h
  5235. * src/main.cc
  5236. * src/option_processing.cc
  5237. * src/prefs.h
  5238. * src/usage_text.h
  5239. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5240. Print download progress summary of all parallel downloads in specified
  5241. interval, default 60 secs. While aria2 could download several files
  5242. in parallel (see -j option), it displayed just first download progress,
  5243. and the other downloads are hidden from the users. This new feature
  5244. prints all downloads currently in-progress to the console so that you
  5245. can check the status of all downloads. The interval can be adjusted
  5246. by --summary-interval option.
  5247. The progress readout is now cut so that all fits in the one line of
  5248. console.
  5249. * src/ConsoleStatCalc.cc
  5250. * src/ConsoleStatCalc.h
  5251. * src/HelpItemFactory.cc
  5252. * src/OptionHandlerFactory.cc
  5253. * src/RequestGroupMan.cc
  5254. * src/RequestGroupMan.h
  5255. * src/main.cc
  5256. * src/option_processing.cc
  5257. * src/prefs.h
  5258. * src/usage_text.h
  5259. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5260. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  5261. * src/DownloadEngine.cc (DownloadEngine)
  5262. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5263. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  5264. defined.
  5265. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  5266. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5267. Use erase+lower_bound+insert instead of sort.
  5268. * src/DefaultPieceStorage.cc (addPieceStats)
  5269. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5270. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  5271. * src/A2STR.cc
  5272. * src/A2STR.h
  5273. * src/OptionParser.cc (parse)
  5274. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5275. Defined fake filename `[tracker.announce]' as static const std::string.
  5276. * src/TrackerWatcherCommand.cc (createRequestGroup)
  5277. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5278. Defined default filename `index.html' as static const std::string
  5279. * src/SingleFileDownloadContext.cc
  5280. * src/SingleFileDownloadContext.h
  5281. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5282. Defined "[MEMORY]" as static const std::string.
  5283. * src/MemoryBufferPreDownloadHandler.cc (execute)
  5284. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5285. Defined control file's version number as static const std::string.
  5286. * src/DefaultBtProgressInfoFile.cc
  5287. * src/DefaultBtProgressInfoFile.h
  5288. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5289. Use Request::METHOD_GET
  5290. * src/RequestGroup.cc (createNextCommandWithAdj)
  5291. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5292. Defined "OK", "ERR", "INPR" as static const std::string
  5293. * src/RequestGroupMan.cc (showDownloadResults)
  5294. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5295. Defined default client used in extended handshake as static const
  5296. std::string
  5297. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  5298. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5299. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  5300. * src/HttpConnection.cc (eraseConfidentialInfo)
  5301. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5302. Defined default ftp user and password as static const std::string
  5303. * src/AuthConfigFactory.cc
  5304. * src/AuthConfigFactory.h
  5305. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5306. Defined strings used in netrc as static const std::string
  5307. * src/Netrc.cc
  5308. * src/Netrc.h
  5309. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5310. Defined HTTP status as static const std::string
  5311. * src/AbstractProxyResponseCommand.cc
  5312. * src/HttpHeader.cc
  5313. * src/HttpHeader.h
  5314. * src/HttpResponse.cc
  5315. * src/HttpResponseCommand.cc
  5316. * src/HttpSkipResponseCommand.cc
  5317. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5318. Defined "\r\n", "A", "I" as static const std::string
  5319. * src/A2STR.cc
  5320. * src/A2STR.h
  5321. * src/FtpConnection.cc
  5322. * src/FtpConnection.h
  5323. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5324. Added COLON_C(".") and used it in Request::parseUrl()
  5325. * src/A2STR.cc
  5326. * src/A2STR.h
  5327. * src/Request.cc (parseUrl)
  5328. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5329. Changed the type of padName from `const std::string&' to `const char*'.
  5330. * src/MSEHandshake.cc (verifyPadLength)
  5331. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5332. Defined "sha1" as static const std::string.
  5333. * src/MetalinkParserController.cc
  5334. * src/MetalinkParserController.h
  5335. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5336. Defined message digest algorithm name as static const std::string
  5337. * src/DHTTokenTracker.cc
  5338. * src/DHTUtil.cc
  5339. * src/DefaultBtContext.cc
  5340. * src/MSEHandshake.cc
  5341. * src/MessageDigestHelper.cc
  5342. * src/Peer.cc
  5343. * src/messageDigest.cc
  5344. * src/messageDigest.h
  5345. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5346. Made string literals used in SAX parser static const std::string.
  5347. * src/FileMetalinkParserState.cc
  5348. * src/FileMetalinkParserState.h
  5349. * src/FilesMetalinkParserState.cc
  5350. * src/FilesMetalinkParserState.h
  5351. * src/InitialMetalinkParserState.cc
  5352. * src/InitialMetalinkParserState.h
  5353. * src/MetalinkMetalinkParserState.cc
  5354. * src/MetalinkMetalinkParserState.h
  5355. * src/PiecesMetalinkParserState.cc
  5356. * src/PiecesMetalinkParserState.h
  5357. * src/ResourcesMetalinkParserState.cc
  5358. * src/ResourcesMetalinkParserState.h
  5359. * src/VerificationMetalinkParserState.cc
  5360. * src/VerificationMetalinkParserState.h
  5361. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5362. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  5363. * src/A2STR.cc
  5364. * src/A2STR.h
  5365. * src/File.cc
  5366. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5367. Defined static const std::string IP("ip"), PORT("port") and use them
  5368. instead of string literals.
  5369. * src/DefaultPeerListProcessor.cc
  5370. * src/DefaultPeerListProcessor.h
  5371. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5372. Made string literals for torrent file processing static const
  5373. std::string.
  5374. * src/BtContext.cc
  5375. * src/BtContext.h
  5376. * src/DefaultBtContext.cc
  5377. * src/DefaultBtContext.h
  5378. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5379. Made string literal for tracker response static const std::string
  5380. * src/BtAnnounce.cc
  5381. * src/BtAnnounce.h
  5382. * src/DefaultBtAnnounce.cc
  5383. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5384. Use DHTMessage::T instead of "t".
  5385. * src/DHTMessageTracker.cc (messageArrived)
  5386. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5387. Made keyName static const. Made trimmed charset static const
  5388. std::string.
  5389. * src/Util.cc (getContentDispositionFilename)
  5390. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5391. Made USER_AGENT const. Made "/" static const std::string.
  5392. * src/A2STR.cc
  5393. * src/A2STR.h
  5394. * src/HttpRequest.cc
  5395. * src/HttpRequest.h
  5396. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5397. Made string listeral to static const std::string:
  5398. "Content-Range", "Content-Length"
  5399. * src/HttpHeader.cc
  5400. * src/HttpHeader.h
  5401. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5402. Made string listeral to static const std::string.
  5403. * src/HttpConnection.cc
  5404. * src/HttpHeader.cc
  5405. * src/HttpHeader.h
  5406. * src/HttpResponse.cc
  5407. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5408. Made string listeral to static const std::string.
  5409. * src/A2STR.cc
  5410. * src/A2STR.h
  5411. * src/SimpleLogger.cc
  5412. * src/SimpleLogger.h
  5413. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5414. Made string literal to static const std::string.
  5415. Rewritten CookieParser::setField.
  5416. * src/A2STR.cc
  5417. * src/A2STR.h
  5418. * src/CookieBoxFactory.cc
  5419. * src/CookieBoxFactory.h
  5420. * src/CookieParser.cc
  5421. * src/CookieParser.h
  5422. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5423. Made string literal to static const std::string
  5424. * src/DHTAbstractMessage.cc
  5425. * src/DHTAnnouncePeerMessage.cc
  5426. * src/DHTAnnouncePeerMessage.h
  5427. * src/DHTAnnouncePeerReplyMessage.cc
  5428. * src/DHTAnnouncePeerReplyMessage.h
  5429. * src/DHTFindNodeMessage.cc
  5430. * src/DHTFindNodeMessage.h
  5431. * src/DHTFindNodeReplyMessage.cc
  5432. * src/DHTFindNodeReplyMessage.h
  5433. * src/DHTGetPeersMessage.cc
  5434. * src/DHTGetPeersMessage.h
  5435. * src/DHTGetPeersReplyMessage.cc
  5436. * src/DHTGetPeersReplyMessage.h
  5437. * src/DHTMessage.cc
  5438. * src/DHTMessage.h
  5439. * src/DHTMessageFactoryImpl.cc
  5440. * src/DHTMessageReceiver.cc
  5441. * src/DHTPingMessage.cc
  5442. * src/DHTPingMessage.h
  5443. * src/DHTPingReplyMessage.cc
  5444. * src/DHTPingReplyMessage.h
  5445. * src/DHTQueryMessage.cc
  5446. * src/DHTQueryMessage.h
  5447. * src/DHTResponseMessage.cc
  5448. * src/DHTResponseMessage.h
  5449. * src/DHTUnknownMessage.cc
  5450. * src/DHTUnknownMessage.h
  5451. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5452. Made string literal to static const std::string
  5453. * src/BtChokeMessage.cc (toString)
  5454. * src/BtHaveAllMessage.cc (toString)
  5455. * src/BtHaveNoneMessage.cc (toString)
  5456. * src/BtInterestedMessage.cc (toString)
  5457. * src/BtNotInterestedMessage.cc (toString)
  5458. * src/BtUnchokeMessage.cc (toString)
  5459. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5460. Replaced "" with static const variable A2STR::NIL.
  5461. Replaced string comparison against "" with std::string::empty().
  5462. Added PROTO_* to Request class and use them as a protocol string
  5463. constant.
  5464. Made "started", "stopped", "completed" static const variable in
  5465. AnnounceList class.
  5466. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5467. Updated translations. Great thanks to translators.
  5468. * po/ca.po
  5469. * po/de.po
  5470. * po/fr.po
  5471. * po/it.po
  5472. * po/ja.po
  5473. * po/ru.po
  5474. * po/zh_CN.po
  5475. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5476. Updated man page; categorized options and fixed typo.
  5477. * doc/aria2c.1.txt
  5478. * doc/aria2c.1.html
  5479. * doc/aria2c.1
  5480. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5481. Removed const ref
  5482. * src/MetalinkEntry.cc (AddProtocolPreference)
  5483. * src/RequestGroup.cc (FindServerHostByHostname)
  5484. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5485. Rewritten Accept-Features handling.
  5486. * src/HttpRequestCommand.cc (createHttpRequest)
  5487. * src/a2functional.h
  5488. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5489. Changed method signature:
  5490. DHTAbstractNodeLookupTask::toEntries
  5491. * src/DHTAbstractNodeLookupTask.cc
  5492. * src/DHTAbstractNodeLookupTask.h
  5493. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5494. Changed method signature:
  5495. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  5496. * src/BtContext.h
  5497. * src/DefaultBtContext.cc
  5498. * src/DefaultBtContext.h
  5499. * src/DefaultBtInteractive.cc
  5500. * test/DefaultBtContextTest.cc
  5501. * test/MockBtContext.h
  5502. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5503. Changed method signature:
  5504. MultiFileAllocationIterator::makeDiskWriterEntries
  5505. * src/MultiFileAllocationIterator.cc
  5506. * src/MultiFileAllocationIterator.h
  5507. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5508. Changed method sinature:
  5509. MetalinkEntry::toFileEntry,
  5510. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  5511. Metalinker::queryEntry
  5512. * src/Metalink2RequestGroup.cc
  5513. * src/MetalinkEntry.cc
  5514. * src/MetalinkEntry.h
  5515. * src/MetalinkHelper.cc
  5516. * src/MetalinkHelper.h
  5517. * src/Metalinker.cc
  5518. * src/Metalinker.h
  5519. * src/main.cc
  5520. * test/MetalinkHelperTest.cc
  5521. * test/MetalinkerTest.cc
  5522. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5523. Changed method sinature:
  5524. RequestGroup::getURIs
  5525. * src/RequestGroup.cc
  5526. * src/RequestGroup.h
  5527. * test/Metalink2RequestGroupTest.cc
  5528. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5529. Changed method signature:
  5530. PeerListProcessor::extractPeer
  5531. * src/CompactPeerListProcessor.cc
  5532. * src/CompactPeerListProcessor.h
  5533. * src/DefaultBtAnnounce.cc
  5534. * src/DefaultPeerListProcessor.cc
  5535. * src/DefaultPeerListProcessor.h
  5536. * src/DelegatingPeerListProcessor.cc
  5537. * src/DelegatingPeerListProcessor.h
  5538. * src/PeerListProcessor.h
  5539. * src/UTPexExtensionMessage.cc
  5540. * test/DefaultPeerListProcessorTest.cc
  5541. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5542. Changed method signature:
  5543. BtRequestFactory::createRequestMessages,
  5544. BtRequestFactory::createRequestMessagesOnEndGame
  5545. * src/BtRequestFactory.h
  5546. * src/DefaultBtInteractive.cc
  5547. * src/DefaultBtRequestFactory.cc
  5548. * src/DefaultBtRequestFactory.h
  5549. * test/DefaultBtRequestFactoryTest.cc
  5550. * test/MockBtRequestFactory.h
  5551. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5552. Changed method signature:
  5553. PieceStorage::getInFlightPieces
  5554. * src/DefaultBtProgressInfoFile.cc
  5555. * src/DefaultPieceStorage.cc
  5556. * src/DefaultPieceStorage.h
  5557. * src/PieceStorage.h
  5558. * src/UnknownLengthPieceStorage.cc
  5559. * src/UnknownLengthPieceStorage.h
  5560. * test/DefaultBtProgressInfoFileTest.cc
  5561. * test/MockPieceStorage.h
  5562. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5563. Changed method signature:
  5564. PostDownloadHandler::getNextRequestGroups
  5565. Metalink2RequestGroup::generate
  5566. RequestGroup::postDownloadProcessing
  5567. * src/BtPostDownloadHandler.cc
  5568. * src/BtPostDownloadHandler.h
  5569. * src/Metalink2RequestGroup.cc
  5570. * src/Metalink2RequestGroup.h
  5571. * src/MetalinkPostDownloadHandler.cc
  5572. * src/MetalinkPostDownloadHandler.h
  5573. * src/PostDownloadHandler.h
  5574. * src/RequestGroup.cc
  5575. * src/RequestGroup.h
  5576. * src/RequestGroupMan.cc
  5577. * src/main.cc
  5578. * test/BtPostDownloadHandlerTest.cc
  5579. * test/Metalink2RequestGroupTest.cc
  5580. * test/MetalinkPostDownloadHandlerTest.cc
  5581. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5582. Rewritten AccRequestGroup
  5583. * src/main.cc
  5584. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5585. Rewritten.
  5586. * src/TaggedItem.cc (toTagString)
  5587. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5588. Rewritten Accept-Features handling.
  5589. * src/HttpRequestCommand.cc (createHttpRequest)
  5590. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5591. Rewritten accept types handling.
  5592. * HttpRequest.cc (createRequest)
  5593. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5594. Rewritten
  5595. * src/FeatureConfig.cc (featureSummary)
  5596. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5597. Changed method signature:
  5598. PeerStorage::getActivePeers
  5599. * src/DHTPeerAnnounceEntry.cc
  5600. * src/DefaultPeerStorage.cc
  5601. * src/DefaultPeerStorage.h
  5602. * src/PeerStorage.h
  5603. * test/DefaultPeerStorageTest.cc
  5604. * test/MockPeerStorage.h
  5605. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5606. Changed method signature:
  5607. DHTPeerAnnounceStorage::getPeers,
  5608. DHTPeerAnnounceEntry::getPeers
  5609. * src/DHTGetPeersMessage.cc
  5610. * src/DHTPeerAnnounceEntry.cc
  5611. * src/DHTPeerAnnounceEntry.h
  5612. * src/DHTPeerAnnounceStorage.cc
  5613. * src/DHTPeerAnnounceStorage.h
  5614. * test/DHTAnnouncePeerMessageTest.cc
  5615. * test/DHTPeerAnnounceEntryTest.cc
  5616. * test/DHTPeerAnnounceStorageTest.cc
  5617. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5618. Changed method signature:
  5619. NameResolver::resolve
  5620. * src/DHTEntryPointNameResolveCommand.cc
  5621. * src/InitiateConnectionCommand.cc
  5622. * src/NameResolver.cc
  5623. * src/NameResolver.h
  5624. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5625. Changed method signature:
  5626. PieceStorage::getAdvertisedPieceIndexes
  5627. * src/DefaultBtInteractive.cc
  5628. * src/DefaultPieceStorage.cc
  5629. * src/DefaultPieceStorage.h
  5630. * src/PieceStorage.h
  5631. * src/UnknownLengthPieceStorage.h
  5632. * test/MockPieceStorage.h
  5633. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5634. Changed method signature:
  5635. SegmentMan::getInFlightSegment
  5636. * src/AbstractCommand.cc
  5637. * src/SegmentMan.cc
  5638. * src/SegmentMan.h
  5639. * test/SegmentManTest.cc
  5640. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5641. Changed method signature:
  5642. DHTAbstractNodeLookupTask::getNodesFromMessage
  5643. * src/DHTAbstractNodeLookupTask.cc
  5644. * src/DHTAbstractNodeLookupTask.h
  5645. * src/DHTNodeLookupTask.cc
  5646. * src/DHTNodeLookupTask.h
  5647. * src/DHTPeerLookupTask.cc
  5648. * src/DHTPeerLookupTask.h
  5649. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5650. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  5651. * src/AbstractCommand.cc
  5652. * src/BtCheckIntegrityEntry.cc
  5653. * src/BtCheckIntegrityEntry.h
  5654. * src/BtFileAllocationEntry.cc
  5655. * src/BtFileAllocationEntry.h
  5656. * src/BtSetup.cc
  5657. * src/BtSetup.h
  5658. * src/CheckIntegrityCommand.cc
  5659. * src/CheckIntegrityEntry.h
  5660. * src/ChecksumCheckIntegrityEntry.cc
  5661. * src/ChecksumCheckIntegrityEntry.h
  5662. * src/DHTSetup.cc
  5663. * src/DHTSetup.h
  5664. * src/DownloadEngine.cc
  5665. * src/FileAllocationCommand.cc
  5666. * src/FileAllocationEntry.h
  5667. * src/RequestGroup.cc
  5668. * src/RequestGroup.h
  5669. * src/RequestGroupMan.cc
  5670. * src/RequestGroupMan.h
  5671. * src/StreamCheckIntegrityEntry.cc
  5672. * src/StreamCheckIntegrityEntry.h
  5673. * src/StreamFileAllocationEntry.cc
  5674. * src/StreamFileAllocationEntry.h
  5675. * src/TrackerWatcherCommand.cc
  5676. * src/a2functional.h
  5677. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5678. Changed method signature:
  5679. BNode::findClosestKNodes, BNode:: enumerateBucket,
  5680. DHTBucket::getGoodNodes,
  5681. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  5682. * src/BNode.cc
  5683. * src/BNode.h
  5684. * src/DHTAbstractNodeLookupTask.cc
  5685. * src/DHTAutoSaveCommand.cc
  5686. * src/DHTBucket.cc
  5687. * src/DHTBucket.h
  5688. * src/DHTBucketRefreshTask.cc
  5689. * src/DHTFindNodeMessage.cc
  5690. * src/DHTGetPeersMessage.cc
  5691. * src/DHTRoutingTable.cc
  5692. * src/DHTRoutingTable.h
  5693. * test/BNodeTest.cc
  5694. * test/DHTBucketTest.cc
  5695. * test/DHTRoutingTableTest.cc
  5696. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5697. In piece selection functions, Pass std::deque<...> by reference rather
  5698. than returning it.
  5699. * src/BitfieldMan.cc
  5700. * src/BitfieldMan.h
  5701. * src/DefaultBtRequestFactory.cc
  5702. * src/DefaultPieceStorage.cc
  5703. * src/Piece.cc
  5704. * src/Piece.h
  5705. * test/BitfieldManTest.cc
  5706. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5707. Implemented rarest piece first piece selection strategy.
  5708. * src/AbstractBtMessage.cc
  5709. * src/AbstractBtMessage.h
  5710. * src/BitfieldMan.cc
  5711. * src/BitfieldMan.h
  5712. * src/BtBitfieldMessage.cc
  5713. * src/BtHaveAllMessage.cc
  5714. * src/BtHaveMessage.cc
  5715. * src/DefaultPieceStorage.cc
  5716. * src/DefaultPieceStorage.h
  5717. * src/PeerInteractionCommand.cc
  5718. * src/PieceStorage.h
  5719. * src/UnknownLengthPieceStorage.h
  5720. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5721. Rewritten readData and writeData.
  5722. * src/MultiDiskAdaptor.cc
  5723. * src/MultiDiskAdaptor.h
  5724. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5725. Move \n out of the message "Usage: ...".
  5726. * src/version_usage.cc
  5727. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5728. Bump up version number to 0.13.2b.
  5729. * configure.ac
  5730. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5731. Added const qualifier to argument Exception& e.
  5732. * src/Logger.h
  5733. * src/SimpleLogger.cc
  5734. * src/SimpleLogger.h
  5735. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5736. Pool connection when CWD, SIZE command fails.
  5737. * src/FtpNegotiationCommand.cc
  5738. * src/FtpNegotiationCommand.h
  5739. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5740. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  5741. * src/HttpResponseCommand.cc
  5742. * src/HttpSkipResponseCommand.cc
  5743. * src/HttpSkipResponseCommand.h
  5744. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5745. Pool connection when a server returns 4xx, 5xx responses.
  5746. * src/HttpNullDownloadCommand.cc
  5747. * src/HttpNullDownloadCommand.h
  5748. * src/HttpResponse.cc
  5749. * src/HttpResponse.h
  5750. * src/HttpResponseCommand.cc
  5751. * src/HttpResponseCommand.h
  5752. * test/HttpResponseTest.cc
  5753. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5754. Print usage when no URL is specifed or bad command-line option is
  5755. specified.
  5756. * src/HelpItemFactory.cc
  5757. * src/help_tags.h
  5758. * src/option_processing.cc
  5759. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5760. Removed duplicate log message.
  5761. * src/AbstractCommand.cc (asyncResolveHostname)
  5762. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5763. Updated man page: --async-dns and --ftp-reuse-connection were added.
  5764. Changed -j option's default value from 5 to 1.
  5765. Added new examples using protocol auto detection feature.
  5766. Removed -T, -M usage where it can be omitted.
  5767. * doc/aria2c.1.txt
  5768. * doc/aria2c.1.html
  5769. * doc/aria2c.1.txt
  5770. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5771. Updated command-line usage text, so that it tells users that they
  5772. can specify any number of torrent files and metalink files in
  5773. command-line.
  5774. * src/version_usage.cc
  5775. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5776. Changed the default value of -j option to 1.
  5777. * src/HelpItemFactory.cc
  5778. * src/option_processing.cc
  5779. * src/usage_text.h
  5780. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5781. Added the ability to reuse connection in FTP and it is enabled by
  5782. default. It can be disabled by --ftp-reuse-connection=false option.
  5783. * src/Command.cc
  5784. * src/DownloadCommand.cc
  5785. * src/FtpDownloadCommand.cc
  5786. * src/FtpDownloadCommand.h
  5787. * src/FtpFinishDownloadCommand.cc
  5788. * src/FtpFinishDownloadCommand.h
  5789. * src/FtpInitiateConnectionCommand.cc
  5790. * src/FtpNegotiationCommand.cc
  5791. * src/FtpNegotiationCommand.h
  5792. * src/HelpItemFactory.cc
  5793. * src/Makefile.am
  5794. * src/Makefile.in
  5795. * src/OptionHandlerFactory.cc
  5796. * src/option_processing.cc
  5797. * src/prefs.h
  5798. * src/usage_text.h
  5799. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5800. Call Command::transitStatus() before calling Command::execute(),
  5801. so that the status change made in execute() is not cleared.
  5802. * src/DownloadEngine.cc
  5803. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5804. Removed forward declaration of SocketCore class.
  5805. * src/HttpDownloadCommand.h
  5806. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5807. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  5808. in InitiateConnectionCommandFactory. They should be set only when
  5809. the protocol is HTTP or HTTPS.
  5810. * src/InitiateConnectionCommandFactory.cc
  5811. * src/RequestGroup.cc
  5812. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5813. Fixed infinite loop in checksum checking.
  5814. * src/IteratableChecksumValidator.cc
  5815. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5816. Set _supportsPersistentConnection to true by default.
  5817. * src/Request.cc
  5818. * src/RequestGroup.cc
  5819. * test/HttpRequestTest.cc
  5820. * test/RequestTest.cc
  5821. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5822. Added timeout to socket pool. The default timeout is 15 seconds,
  5823. which is the same value Apache uses.
  5824. * src/DownloadEngine.cc
  5825. * src/DownloadEngine.h
  5826. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5827. Fixed misuse of multimap::find()
  5828. * src/HttpHeader.cc
  5829. * test/HttpHeaderTest.cc
  5830. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5831. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  5832. option.
  5833. The asynchronous DNS is not capable of IPv6 yet.
  5834. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  5835. least for HTTP download.
  5836. * src/AbstractCommand.cc
  5837. * src/AbstractCommand.h
  5838. * src/AsyncNameResolver.cc
  5839. * src/AsyncNameResolver.h
  5840. * src/DHTEntryPointNameResolveCommand.cc
  5841. * src/DHTEntryPointNameResolveCommand.h
  5842. * src/DownloadEngine.cc
  5843. * src/DownloadEngine.h
  5844. * src/FtpInitiateConnectionCommand.cc
  5845. * src/FtpInitiateConnectionCommand.h
  5846. * src/HelpItemFactory.cc
  5847. * src/HttpInitiateConnectionCommand.cc
  5848. * src/HttpInitiateConnectionCommand.h
  5849. * src/InitiateConnectionCommand.cc
  5850. * src/InitiateConnectionCommand.h
  5851. * src/Makefile.am
  5852. * src/Makefile.in
  5853. * src/NameResolver.cc
  5854. * src/NameResolver.h
  5855. * src/OptionHandlerFactory.cc
  5856. * src/SocketCore.cc
  5857. * src/SocketCore.h
  5858. * src/Util.cc
  5859. * src/Util.h
  5860. * src/option_processing.cc
  5861. * src/prefs.h
  5862. * src/usage_text.h
  5863. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5864. Updated man page: --quiet, --header were added.
  5865. --metalink-servers and --enable-http-keep-alive option were updated.
  5866. * doc/aria2c.1
  5867. * doc/aria2c.1.html
  5868. * doc/aria2c.1.txt
  5869. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5870. Enable HTTP keep-alive by default.
  5871. * src/HelpItemFactory.cc
  5872. * src/option_processing.cc
  5873. * src/usage_text.h
  5874. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5875. Disable http keep-alive if the remote server is not HTTP/1.1.
  5876. * src/HttpConnection.cc
  5877. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5878. Receive content body of 302 response so that the connection can be
  5879. reused later when http keep-alive is enabled.
  5880. * src/HttpNullDownloadCommand.cc
  5881. * src/HttpNullDownloadCommand.h
  5882. * src/HttpResponseCommand.cc
  5883. * src/HttpResponseCommand.h
  5884. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5885. const SharedHandle<Request> -> const SharedHandle<Request>&
  5886. * src/FtpDowndloadCommand.cc
  5887. * src/FtpDowndloadCommand.h
  5888. * src/HttpDownloadCommand.cc
  5889. * src/HttpDownloadCommand.h
  5890. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5891. Fixed the bug that the control file(.aria2 file) is not renamed
  5892. according to tryAutoFileRenaming().
  5893. tryAutoFileRenaming() was rewritten so that if both renamed file and
  5894. its control file exist, use them and continue download.
  5895. The old implementation didn't take into account of control file's
  5896. existence, so basically you couldn't continue download of renamed file.
  5897. * src/BtProgressInfoFile.h
  5898. * src/DefaultBtProgressInfoFile.cc
  5899. * src/DefaultBtProgressInfoFile.h
  5900. * src/NullProgressInfoFile.h
  5901. * src/RequestGroup.cc
  5902. * test/DefaultBtProgressInfoFileTest.cc
  5903. * test/MockBtProgressInfoFile.h
  5904. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5905. Change the default value of --metalink-servers option from `5' to `1'.
  5906. * src/HelpItemFactory.cc
  5907. * src/option_processing.cc
  5908. * src/usage_text.h
  5909. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5910. Reimplemented transparent metalink using Accept request header.
  5911. * src/HttpRequest.cc
  5912. * src/HttpRequest.h
  5913. * src/HttpRequestCommand.cc
  5914. * src/Metalink2RequestGroup.cc
  5915. * src/RequestGroup.cc
  5916. * src/RequestGroup.h
  5917. * test/HttpRequestTest.cc
  5918. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5919. Bump up version number to 0.13.2a
  5920. * configure.ac
  5921. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5922. Updated configure.ac using the result of autoscan.
  5923. * configure.ac
  5924. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5925. Fixed compilation error without gcrypt/openssl.
  5926. * src/DownloadCommand.cc
  5927. * src/DownloadCommand.h
  5928. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5929. Reorganized version information so that it can be displayed in a
  5930. standard terminal screen without scrolling.
  5931. Removed http, ftp from Configuration section, because they are always
  5932. enabled.
  5933. * src/FeatureConfig.cc
  5934. * src/FeatureConfig.h
  5935. * src/main.cc
  5936. * src/messageDigest.cc
  5937. * src/messageDigest.h
  5938. * src/version_usage.cc
  5939. * test/FeatureConfigTest.cc
  5940. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5941. Masked user ID in log.
  5942. * src/FtpConnection.cc (sendUser)
  5943. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5944. Removed query part from filename in HTTP download. The query part means
  5945. the substring after "?" in URL. Firefox seems do the same thing.
  5946. A query part is sometimes very long and not suitable to filename,
  5947. so I think it is better to remove it from filename.
  5948. * src/HttpRequest.cc
  5949. * src/HttpRequest.h
  5950. * src/Request.cc
  5951. * src/Request.h
  5952. * test/HttpRequestTest.cc
  5953. * test/RequestTest.cc
  5954. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5955. Rewritten Exception class. Throw exception object, not its pointer and
  5956. catch by reference, so that remove problematic delete operator for
  5957. catched exception.
  5958. * src/Exception.cc
  5959. * src/Exception.h
  5960. * test/ExceptionTest.cc
  5961. * src/*: All files throwing/catching exception.
  5962. * test/*: All files throwing/catching exception.
  5963. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5964. Now auto protocol detection is enabled without -Z option.
  5965. But there is a important difference between with/without -Z optoin.
  5966. For example, if you type:
  5967. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  5968. then, aria2 interprets there are 3 request groups:
  5969. (1) http://host/file, http://mirror/file <-- multi-source download
  5970. (2) file1.torrent
  5971. (3) file2.metalink
  5972. On the other hand, if you invoke above command with -Z option, it is
  5973. interpreted as 4 request groups:
  5974. (1) http://host/file
  5975. (2) file1.torrent
  5976. (3) file2.metalink
  5977. (4) http://mirror/file
  5978. I think usually user don't mix multi-source URLs and torrent files, so
  5979. there is no big problem here.
  5980. * src/main.cc
  5981. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5982. Fixed the bug that causes segmentaion fault when reading XML containing
  5983. unescapsed character like '&'.
  5984. Also a modification was made which avoids adding unnecessary
  5985. characters stack and appending unused string.
  5986. * src/ExpatMetalinkProcessor.cc
  5987. * src/FileMetalinkParserState.h
  5988. * src/FilesMetalinkParserState.h
  5989. * src/FinMetalinkParserState.h
  5990. * src/HashMetalinkParserState.h
  5991. * src/InitialMetalinkParserState.h
  5992. * src/LanguageMetalinkParserState.h
  5993. * src/MetalinkMetalinkParserState.h
  5994. * src/MetalinkParserState.h
  5995. * src/MetalinkParserStateMachine.cc
  5996. * src/MetalinkParserStateMachine.h
  5997. * src/OSMetalinkParserState.h
  5998. * src/PieceHashMetalinkParserState.h
  5999. * src/PiecesMetalinkParserState.h
  6000. * src/ResourcesMetalinkParserState.h
  6001. * src/SizeMetalinkParserState.h
  6002. * src/SkipTagMetalinkParserState.h
  6003. * src/URLMetalinkParserState.h
  6004. * src/VerificationMetalinkParserState.h
  6005. * src/VersionMetalinkParserState.h
  6006. * src/XML2SAXMetalinkProcessor.cc
  6007. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6008. Added StringFormat class, which internally calls vasprintf.
  6009. operator<< is defined for this class, so it can be used with iostream
  6010. classes nicely. SimpleLogger and following functions are rewritten
  6011. using StringFormat class.
  6012. Besides, now Logger class's methods are non-const, many classes
  6013. that has a const Logger* as a member variable are modified to remove
  6014. const qualifier from the variable declaration.
  6015. * src/HelpItemFactory.cc
  6016. * src/Request.cc
  6017. * src/SimpleLogger.cc
  6018. * src/StringFormat.cc
  6019. * src/StringFormat.h
  6020. * src/Util.cc
  6021. * src/option_processing.cc
  6022. * src/version_usage.cc
  6023. * test/StringFormatTest.cc
  6024. * src/*.h: The classes that has const Logger* as a member variable.
  6025. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6026. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  6027. failed. Also fixed memory link when exception is thrown there.
  6028. * src/main.cc (AccRequestGroup)
  6029. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6030. Added build-in "Accept-Features" support. For now only "metalink" is
  6031. used in this header field.
  6032. This "metalink" value is removed from the list when connecting URLs
  6033. fed by metalink file to avoid loop in "transparent" metlaink.
  6034. * src/HttpRequest.cc
  6035. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  6036. header is also held in this variable. Also renamed setUserHeaders as
  6037. addHeader and it was rewritten to add header not just to clear the old
  6038. value.
  6039. * src/HttpRequestCommand.cc
  6040. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  6041. from "Accept-Features" list.
  6042. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  6043. default.
  6044. * src/RequestGroup.h
  6045. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  6046. * src/a2functional.h: Included <string> because Concat class depends on
  6047. it.
  6048. * test/HttpRequestTest.cc
  6049. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6050. Added comment
  6051. * src/RequestGroup.cc (createNextCommand)
  6052. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6053. Capitalized METHOD_GET and METHOD_HEAD
  6054. * src/Request.cc
  6055. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6056. Added getDownloadResults() method
  6057. * src/RequestGroupMan.cc
  6058. * src/RequestGroupMan.h
  6059. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6060. Fixed the bug that aria2 exits when commands is empty() but
  6061. _routineCommands are not.
  6062. * src/DownloadEngine.cc
  6063. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6064. Use the default value pulled from Option object in HelpItemFactory.
  6065. except options whose defualt value is embedded in a usage text.
  6066. * src/HelpItemFactory.cc
  6067. * src/HelpItemFactory.h
  6068. * src/option_processing.cc
  6069. * src/version_usage.cc
  6070. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6071. Added --quiet option to make aria2 quiet (no console output).
  6072. --quiet option is tagged with ADVANCED.
  6073. * src/HelpItemFactory.cc
  6074. * src/LogFactory.cc
  6075. * src/LogFactory.h
  6076. * src/MultiUrlRequestInfo.cc
  6077. * src/MultiUrlRequestInfo.h
  6078. * src/NullStatCalc.h: New class. This class prints nothing.
  6079. * src/OptionHandlerFactory.cc
  6080. * src/main.cc
  6081. * src/option_processing.cc
  6082. * src/prefs.h
  6083. * src/usage_text.h
  6084. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6085. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  6086. * src/HelpItemFactory.cc (createHelpItems):
  6087. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6088. Fixed compilation error in ExpatMetalinkProcessor.cc
  6089. * src/ExpatMetalinkProcessor.cc
  6090. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6091. Reuse socket if the origin server supports HTTP keep-alive and
  6092. --enable-http-keep-alive or --enable-http-pipelining is given.
  6093. The current implementation doesn't reuse the connections established
  6094. against proxy server.
  6095. * src/AbstractCommand.cc
  6096. * src/DownloadEngine.cc
  6097. * src/DownloadEngine.h
  6098. * src/HttpDownloadCommand.cc
  6099. * src/HttpInitiateConnectionCommand.cc
  6100. * src/HttpResponseCommand.cc
  6101. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6102. Rewritten HTTP keep-alive and pipelining routine.
  6103. * src/AbstractCommand.cc
  6104. * src/HttpConnection.cc
  6105. * src/HttpDownloadCommand.cc
  6106. * src/HttpRequest.cc
  6107. * src/HttpRequestCommand.cc
  6108. * src/HttpResponseCommand.cc
  6109. * src/Request.cc
  6110. * src/Request.h
  6111. * src/RequestGroup.cc
  6112. * test/HttpRequestTest.cc
  6113. * test/HttpResponseTest.cc
  6114. * test/RequestTest.cc
  6115. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6116. Added missing setUserHeaders call
  6117. * src/HttpRequestCommand.cc
  6118. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6119. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  6120. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  6121. waste of time because it is more likey false.
  6122. * src/FileAllocationDispatcherCommand.cc (execute)
  6123. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6124. Now HTTP status and version are a member variable of HttpHeader.
  6125. HTTP status is processed as a string, not integer.
  6126. * src/AbstractProxyResponseCommand.cc
  6127. * src/HttpConnection.cc
  6128. * src/HttpHeader.cc
  6129. * src/HttpHeader.h
  6130. * src/HttpHeaderProcessor.cc
  6131. * src/HttpHeaderProcessor.h
  6132. * src/HttpResponse.cc
  6133. * src/HttpResponse.h
  6134. * test/HttpHeaderProcessorTest.cc
  6135. * test/HttpResponseTest.cc
  6136. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6137. Added --header option. You can specify any number of additional HTTP headers
  6138. like:
  6139. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  6140. Unlike other commad-line option, you can use --header option multiple times.
  6141. * src/HelpItemFactory.cc
  6142. * src/HttpRequest.{cc, h}
  6143. * src/HttpRequestCommand.cc
  6144. * src/OptionHandlerFactory.cc
  6145. * src/OptionHandlerImpl.h
  6146. * src/option_processing.cc
  6147. * src/prefs.h
  6148. * src/usage_text.h
  6149. * test/HttpRequestTest.cc (testUserHeaders)
  6150. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6151. Eliminates the time lag between sequential downloads and commands in
  6152. the same RequestGroup.
  6153. In old implementation, aria2 occasionally waits 1 seconds before
  6154. executing next command or RequestGroup.
  6155. This is really a waste of time, and new implementation eliminates
  6156. this unnecessary time lag.
  6157. * src/AbstractCommand.cc
  6158. * src/AutoSaveCommand.cc
  6159. * src/CheckIntegrityCommand.cc
  6160. * src/Command.{cc, h}
  6161. * src/DownloadEngine.{cc, h}
  6162. * src/DownloadEngineFactory.cc
  6163. * src/FileAllocationCommand.cc
  6164. * src/FileAllocationDispatcherCommand.cc
  6165. * src/FillRequestGroupCommand.cc
  6166. * src/FtpInitiateConnectionCommand.cc
  6167. * src/HaveEraseCommand.cc
  6168. * src/HttpInitiateConnectionCommand.cc
  6169. * src/HttpResponseCommand.cc
  6170. * src/RealtimeCommand.cc
  6171. * src/RequestGroup.cc
  6172. * src/RequestGroupMan.cc
  6173. * src/StreamFileAllocationEntry.cc
  6174. * src/TimeBasedCommand.{cc, h}
  6175. * src/TimedHaltCommand.cc
  6176. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6177. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  6178. keyword explicit and SharedHandle's default constructor initializes
  6179. its internal obj to null, old implementation initializes it using
  6180. obj's default constructor.
  6181. To assign null, write SharedHandle<T> x(...); x.reset();
  6182. TODO: test/SharedHandleTest.cc needs more tests.
  6183. * src/SharedHandle.h
  6184. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6185. Fixed type in man page.
  6186. * doc/aria2c.1.txt
  6187. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6188. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  6189. * src/SimpleLogger.{cc, h}
  6190. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6191. Implemented auto protocol detection.
  6192. Now you can do:
  6193. aria2c -Z http://host/file file1.torrent file2.metalink
  6194. (Note: -Z option is required for auto protcol detection.)
  6195. Then aria2c downloads 3 files simultaneously:
  6196. 1. http://host/file
  6197. 2. file1.torrent <-- read local torrent file
  6198. 3. file2.metalink <-- read local Metalink file.
  6199. Same thing goes with -i option. Assume your uris.txt contans:
  6200. http://host/file
  6201. file1.torrent
  6202. file2.metalink
  6203. Then you can do: aria2c -i uris.txt
  6204. (Note: -Z option is not needed if -i option is given.)
  6205. * src/main.cc
  6206. * src/ProtocolDetector.{cc, h}
  6207. * test/ProtocolDetectorTest.cc
  6208. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6209. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  6210. installed
  6211. * src/ARC4Encryptor.h
  6212. * src/ARC4Decryptor.h
  6213. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6214. Renamed argument from 'errno' to 'err', since errno is confused with
  6215. errno defined in errno.h.
  6216. * src/LibgcryptARC4Decryptor.h
  6217. * src/LibgcryptARC4Context.h
  6218. * src/LibgcryptDHKeyExchange.h
  6219. * src/LibgcryptARC4Encryptor.h
  6220. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6221. Rewritten choking algorithm.
  6222. * src/PeerChokeCommand.{cc, h}
  6223. * src/BtInterestedMessage.cc
  6224. * src/PeerSessionResource.{cc, h}
  6225. * src/DefaultPeerStorage.{cc, h}
  6226. * src/BtNotInterestedMessage.cc
  6227. * src/DefaultBtMessageDispatcher.{cc, h}
  6228. * src/BtMessageDispatcher.h
  6229. * src/Peer.{cc, h}
  6230. * src/BtLeecherStateChoke.{cc, h}
  6231. * src/BtSetup.cc
  6232. * src/BtSeederStateChoke.{cc, h}
  6233. * src/PeerStorage.h
  6234. * test/MockPeerStorage.h
  6235. * test/MockBtMessageDispatcher.h
  6236. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6237. Fixed compilation error on x84-64 platform.
  6238. * src/AuthConfig.cc: Included ostream.
  6239. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6240. Rewritten getBasename() and getDirname(), without standard library
  6241. basename(), dirname().
  6242. * src/File.cc
  6243. * test/FileTest.cc
  6244. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6245. Added Simplified Chinese translation. Also updated the following
  6246. translations: Polish, Dutch, German. Great thanks to all translators.
  6247. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6248. Suppress content-range error when 'Content-Range' response header
  6249. doesn't contains bytes-unit specifier 'bytes'
  6250. * src/HttpHeader.cc (getRange)
  6251. * test/HttpHeaderTest.cc
  6252. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6253. Fixed compilation error with g++-4.3
  6254. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6255. Added missing include files for MinGW
  6256. * test/HttpHeaderProcessorTest.cc
  6257. * test/DHTRoutingTableSerializerTest.cc
  6258. * test/DHTRoutingTableDeserializerTest.cc
  6259. * test/UriListParserTest.cc
  6260. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6261. Now download line is printed nicely with no garbage at the end of
  6262. line. I use ioctl to get the columns of terminal.
  6263. If stdout is redirected to another device, instead of carriage return,
  6264. end of line '\n' character is used. This is feature request#1909659
  6265. * src/ConsoleStatCalc.cc (calculateStat)
  6266. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6267. Included a2time.h
  6268. * src/DHTMessageDispatcher.h
  6269. * src/DHTMessageEntry.h
  6270. * src/DHTReplaceNodeTask.h
  6271. * src/DHTMessageTracker.h
  6272. * src/Util.h
  6273. * src/CookieBox.h
  6274. * src/SocketCore.h
  6275. * src/DefaultBtMessageDispatcher.h
  6276. * src/SocketCore.cc
  6277. * src/Util.cc
  6278. * src/DHTPingTask.h
  6279. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6280. Fixed high memory footprint when DHT is enabled.
  6281. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  6282. queued than it is processed and the queue is getting longer. As a
  6283. consequence, momory usage is increased.
  6284. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  6285. replacement cache in DHTBucket which is described in Kademlia paper.
  6286. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  6287. DHTReplaceNodeTask.
  6288. * src/DHTBucket.{h, cc}
  6289. (cacheNode): New function.
  6290. (getCachedNodes): New function.
  6291. (dropNode): Push back cached node to _nodes.
  6292. * test/DHTBucketTest.cc
  6293. (testCacheNode): New test
  6294. (testDropNode): New test
  6295. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6296. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  6297. the unused 4KB memory when ssl is not used.
  6298. * src/SocketCore.cc
  6299. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6300. Added summary log for peer announce storage.
  6301. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  6302. Removed cast
  6303. * src/DefaultPeerStorage.cc (addPeer)
  6304. Log exception message
  6305. * src/DHTMessageTracker.cc (handleTimeout)
  6306. Fixed casting
  6307. * test/HttpRequestTest.cc
  6308. * test/MetalinkProcessorTest.cc
  6309. * test/PieceTest.cc
  6310. * test/MetalinkEntryTest.cc
  6311. * test/SequenceTest.cc
  6312. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6313. * src/ParameterizedStringParser.cc (createLoop):
  6314. Removed unused variable sstep.
  6315. * src/AlphaNumberDecorator.h (decode): Rewritten.
  6316. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6317. * src/Util.{h, cc}
  6318. (parseUInt): New function.
  6319. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  6320. The actual range is uint32_t.
  6321. * test/UtilTest.cc
  6322. * src/ParameterizedStringParser.cc:
  6323. Use Util::parseUInt() for loop variables.
  6324. * test/ParameterizedStringParserTest.cc
  6325. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  6326. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6327. Rewritten the functions for binding port.
  6328. * src/DHTConnectionImpl.{h, cc}
  6329. * src/PeerListenCommand.{h, cc}
  6330. * src/DHTSetup.cc
  6331. * src/BtSetup.cc
  6332. * test/DHTConnectionImplTest.cc
  6333. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6334. type cleanup for allmost all remaining files.
  6335. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6336. Type clarification
  6337. * src/PeerSessionResource.{h, cc}
  6338. * src/DefaultPieceStorage.{h, cc}
  6339. * src/Peer.{h, cc}
  6340. * test/PeerSessionResourceTest.cc
  6341. Use div function
  6342. * src/BtPieceMessage.cc (erasePieceOnDisk)
  6343. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6344. Type clarification
  6345. * src/DefaultPeerStorage.{h, cc}
  6346. * test/DefaultPeerStorageTest.cc
  6347. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6348. Type clarification: size_t for length or size, uint64_t for file
  6349. length, off_t for file offset.
  6350. * src/DefaultBtProgressInfoFile.cc
  6351. * src/DefaultBtContext.{h, cc}
  6352. * src/DefaultBtInteractive.cc
  6353. * src/DownloadCommand.{h, cc}
  6354. * src/IteratableChunkChecksumValidator.{h, cc}
  6355. * src/SegmentMan.{h, cc}
  6356. * src/SingleFileDownloadContext.{h, cc}
  6357. * src/IteratableChecksumValidator.{h, cc}
  6358. * src/BtContext.h
  6359. * src/IteratableValidator.h
  6360. * src/DownloadContext.h
  6361. * test/SingleFileDownloadContextTest.cc
  6362. * test/DefaultBtContextTest.cc
  6363. * test/MockBtContext.h
  6364. * test/Metalink2RequestGroupTest.cc
  6365. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6366. Type clarification: size_t for length or size, uint64_t for file
  6367. length, off_t for file offset.
  6368. * src/PiecedSegment.cc
  6369. * src/GrowSegment.h
  6370. * src/DefaultBtRequestFactory.h
  6371. * src/DefaultBtProgressInfoFile.cc
  6372. * src/UnknownLengthPieceStorage.h
  6373. * src/DefaultPieceStorage.cc
  6374. * src/UnknownLengthPieceStorage.cc
  6375. * src/DefaultBtInteractive.cc
  6376. * src/GrowSegment.cc
  6377. * src/BitfieldMan.h
  6378. * src/DownloadCommand.cc
  6379. * src/BtRequestFactory.h
  6380. * src/PiecedSegment.h
  6381. * src/DefaultPieceStorage.h
  6382. * src/Piece.cc
  6383. * src/DefaultBtRequestFactory.cc
  6384. * src/PieceStorage.h
  6385. * src/Segment.h
  6386. * src/Piece.h
  6387. * src/BitfieldMan.cc
  6388. * src/Util.cc
  6389. * test/DefaultBtProgressInfoFileTest.cc
  6390. * test/DefaultPieceStorageTest.cc
  6391. * test/MockPieceStorage.h
  6392. * test/BtRequestMessageTest.cc
  6393. * test/DefaultBtMessageDispatcherTest.cc
  6394. * test/BitfieldManTest.cc
  6395. * test/GrowSegmentTest.cc
  6396. * test/PieceTest.cc
  6397. * test/SegmentTest.cc
  6398. * test/SegmentManTest.cc
  6399. * test/DefaultBtRequestFactoryTest.cc
  6400. * test/MockBtRequestFactory.h
  6401. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6402. Fixed compilation error with --disable-nls
  6403. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  6404. in gettext.h causes the problem.
  6405. * src/common.h
  6406. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6407. Removed subPiece related functions.
  6408. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  6409. * src/DefaultPieceStorage.{h, cc}
  6410. * test/PieceTest.cc
  6411. * test/DefaultPieceStorageTest.cc
  6412. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6413. Use unsigned char for data store.
  6414. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6415. Bump up version number to 0.13.0+1
  6416. * configure.ac
  6417. * Release 0.13.0+1
  6418. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6419. Changed inactive connection timeout to 120.
  6420. To accept more mulually interested peers, disconnect peer when there
  6421. is no interest between us after certain time passed.
  6422. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  6423. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6424. Fixed the bug that aria2 only uses first dns server in resolv.conf
  6425. when compiled with async DNS support.
  6426. * src/DownloadEngine.cc
  6427. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  6428. value '10' will be a little bit short when some DNS servers are
  6429. offline and several DNS servers are tried. It should be configured
  6430. by command-line option.
  6431. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6432. Merged Ross's mingw patch.
  6433. * src/DHTRoutingTableDeserializer.cc
  6434. * src/DHTRoutingTableSerializer.cc
  6435. * src/Platform.{h, cc}
  6436. * src/timegm.h
  6437. * src/gettimeofday.h
  6438. * src/getaddrinfo.h
  6439. * src/SocketCore.h
  6440. * src/common.h
  6441. * src/inet_aton.h
  6442. * src/DownloadEngine.h
  6443. * src/gai_strerror.h
  6444. * src/a2netcompat.h
  6445. * configure.ac
  6446. * configure
  6447. * aclocal.m4
  6448. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6449. Included missing iostream.
  6450. * test/AllTest.cc
  6451. * test/BtDependencyTest.cc
  6452. * test/BtExtendedMessageTest.cc
  6453. * test/DHTConnectionImplTest.cc
  6454. * test/DHTMessageFactoryImplTest.cc
  6455. * test/DHTMessageTrackerEntryTest.cc
  6456. * test/DHTNodeTest.cc
  6457. * test/DHTRoutingTableSerializerTest.cc
  6458. * test/DefaultBtAnnounceTest.cc
  6459. * test/DefaultBtContextTest.cc
  6460. * test/DefaultBtMessageFactoryTest.cc
  6461. * test/DefaultExtensionMessageFactoryTest.cc
  6462. * test/HandshakeExtensionMessageTest.cc
  6463. * test/HttpResponseTest.cc
  6464. * test/MetalinkProcessorTest.cc
  6465. * test/MultiFileAllocationIteratorTest.cc
  6466. * test/SocketCoreTest.cc
  6467. * test/UTPexExtensionMessageTest.cc
  6468. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6469. Reorganized includes.
  6470. * src/NameResolver.cc
  6471. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6472. Fixed compilation error without ares/c-ares
  6473. * src/NameResolver.h:
  6474. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6475. Added a test for large file.
  6476. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  6477. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6478. Fixed the bug that file size is ignored if size > INT32_MAX
  6479. * src/SizeMetalinkParserState.cc (endElement):
  6480. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6481. Bump up version number to 0.13.0
  6482. * configure.ac
  6483. * Release 0.13.0
  6484. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6485. Updated Makfefile.am to make 'make dist' work.
  6486. Now packaged filename is aria2c-VERSION.tar.bz2.
  6487. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  6488. Added LICENSE.OpenSSL to dist_noinst_DATA.
  6489. Large file support is now configured by configure script.
  6490. * configure.ac
  6491. Removed unsused source files
  6492. * src/
  6493. * test/
  6494. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  6495. Peer.h and BtContext.h respectively.
  6496. * src/Peer.h
  6497. * src/BtContext.h
  6498. Updated translations.
  6499. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  6500. translations. Great thanks to all translators!;)
  6501. * po/*.{po, gmo}
  6502. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6503. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  6504. statically declared sha1 MessageDigestContext.
  6505. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  6506. initialization of short-lived MessageDigestContext.
  6507. * src/MessageDigestHelper.{h, cc}
  6508. * src/main.cc
  6509. Now DownloadCommand has a reference to MessageDigestContext to avoid
  6510. the initialization of MessageDigestContext every time in validating
  6511. chunk checksum.
  6512. * src/DownloadCommand.{h, cc}
  6513. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6514. Add a file descriptor which connected to fast peer(latency<1500) to
  6515. select(). This change reduced CPU load.
  6516. * src/PeerInteractionCommand.cc
  6517. * src/DefaultBtInteractive.{h, cc}
  6518. * src/BtInteractive.h
  6519. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6520. Fixed the previous insufficient fix for possible busy loop.
  6521. * src/MSEHandshake.cc (identifyHandshakeType)
  6522. Removed unused functions.
  6523. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  6524. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6525. Fixed possible busy loop if first 20 bytes are not received for a few
  6526. minutes.
  6527. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  6528. * src/ReceiverMSEHandshakeCommand.cc
  6529. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6530. Fixed compilation error
  6531. * src/ExpatMetalinkProcessor.cc
  6532. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6533. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  6534. * src/DHTBucket.cc
  6535. Removed unnecessary cast.
  6536. * src/HandshakeExtensionMessage.cc
  6537. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6538. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  6539. is missing.
  6540. * src/OptionHandlerFactory.cc
  6541. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6542. Fixed the bug that HAVE message is not sent for a piece they are
  6543. downloaded fom http/ftp server before any BitTorrent handshake is done
  6544. with peers.
  6545. * src/DefaultBtInteractive.cc
  6546. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6547. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  6548. * src/Makefile.am
  6549. * src/Makefile.in
  6550. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6551. Updated README. Added html version of README and man page.
  6552. * README
  6553. * README.html
  6554. * readme2html: Shell script to generate README.html from README using
  6555. asciidoc.
  6556. * doc/aria2c.1.html
  6557. * doc/makeman: Added the line to generate aria2c.1.html
  6558. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6559. Fixed offset calculation.
  6560. * src/LibgcryptDHKeyExchange.h (computeSecret)
  6561. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6562. Rewritten itos and uitos using template. llitos and ullitos are
  6563. replaced with itos and uitos respectively.
  6564. * src/Util.{h, cc}
  6565. * test/UtilTest.cc
  6566. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6567. Fixed the bug that DH key exchange sometimes fails due to bad handling
  6568. of the number of bytes required for storing public key and shared
  6569. secret.
  6570. * src/LibgcryptDHKeyExchange.h
  6571. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  6572. * src/MSEHandshake.cc
  6573. * test/DHKeyExchangeTest.cc
  6574. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6575. Removed since they are not used.
  6576. * src/Xml2MetalinkProcessor.{h, cc}
  6577. * src/Socket.cc
  6578. * src/SegmentSplitter.{h, cc}
  6579. * test/Xml2MetalinkProcessorTest.cc
  6580. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6581. Fixed the bug that prevents aria2 from stopping other than by pressing
  6582. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  6583. option. aria2 doesn't stop even after --seed-time is satisfied and
  6584. continues to output blank lines in the console.
  6585. * src/ReceiverMSEHandshakeCommand.cc
  6586. * src/PeerReceiveHandshakeCommand.cc
  6587. * src/PeerListenCommand.cc
  6588. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6589. Bump up version number to 0.13.0rc
  6590. * configure.ac
  6591. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6592. Updated man page and some usage text.
  6593. * doc/aria2c.1.txt
  6594. * src/usage_text.h
  6595. * po/*.{po, gmo}
  6596. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6597. Updated translations. Added Finnish and Hebrew translations.
  6598. Great thanks to all translators!
  6599. * po/*.{po, gmo}
  6600. * po/LINGUAS
  6601. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6602. Log more detailed information about each message.
  6603. * src/DHTQueryMessage.{h, cc}
  6604. * src/DHTGetPeersMessage.{h, cc}
  6605. * src/DHTFindNodeReplyMessage.{h, cc}
  6606. * src/DHTGetPeersReplyMessage.{h, cc}
  6607. * src/DHTAnnouncePeerMessage.{h, cc}
  6608. * src/DHTResponseMessage.{h, cc}
  6609. * src/DHTFindNodeMessage.{h, cc}
  6610. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6611. Use constants defined in prefs.h
  6612. * src/option_processing.cc
  6613. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6614. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  6615. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6616. Make room for future enchancements for IPv6 addresses.
  6617. Bump up version number of dht.dat file format to 2.
  6618. Not compatible with previous version.
  6619. * src/DHTRoutingTableSerializer.cc
  6620. * src/DHTRoutingTableDeserializer.cc
  6621. * test/DHTRoutingTableSerializerTest.cc
  6622. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6623. Added handling for the return values from
  6624. PeerMessageUtil::createcompact().
  6625. * src/DefaultBtContext.cc (computeFastSet):
  6626. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6627. Fixed abort when peer's ip address is IPv4-mapped address.
  6628. * src/DefaultBtContext.cc (computeFastSet)
  6629. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  6630. cannot handle IPv4-mapped addresses.
  6631. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  6632. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6633. Proper return value handling for OpenSSL functions.
  6634. * src/LibsslDHKeyExchange.h
  6635. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6636. Random bytes generation using libgcrypt and OpenSSL.
  6637. * src/DHTUtil.{h, cc}
  6638. * test/DHTUtilTest.cc
  6639. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6640. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  6641. received.
  6642. * src/DHTMessageReceiver.cc (receiveMessage)
  6643. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6644. Fixed the bug that a return code is always 0. BUG#1897704
  6645. If error occurred during the download or there exist unfinished
  6646. downloads, aria2 returns with code 1.
  6647. * src/RequestGroupMan.{h, cc}
  6648. * src/MultiUrlRequestInfo.{h, cc}
  6649. * src/main.cc
  6650. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6651. IPv6 support for SocketCore class.
  6652. TODO: In SocketCore::establishConnection(), this is insufficient to
  6653. determin the failure of connect() here because the socket is
  6654. non-blocking state. The next addresses should be tried after select().
  6655. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  6656. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  6657. instead which address family independent.
  6658. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  6659. information in a compact peer format which is for IPv4 only.
  6660. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  6661. this is a spec of BitTorrent protocol.
  6662. * src/SocketCore.{h, cc}
  6663. * src/PeerMessageUtil.cc
  6664. * test/SocketCoreTest.cc
  6665. * test/PeerMessageUtilTest.cc
  6666. * test/DHTConnectionImplTest.cc
  6667. Handle IPv4-mapped addresses.
  6668. * src/DHTNode.cc: Now identity is determined by node id.
  6669. * src/DHTMessageTrackerEntry.cc
  6670. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  6671. should handle it.
  6672. * src/DHTRoutingTableDeserializer.cc
  6673. * src/DHTMessageFactoryImpl.cc
  6674. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6675. Change the unit of --stop option from a minute to a second.
  6676. * src/usage_text.h
  6677. * src/DownloadEngineFactory.cc
  6678. * src/OptionHandlerFactory.cc
  6679. * src/message.h
  6680. * src/TimedHaltCommand.cc
  6681. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6682. Make listening socket non-block mode.
  6683. * src/FtpConnection.cc
  6684. * src/FtpNegotiationCommand.{h, cc}
  6685. * src/PeerListenCommand.cc
  6686. Fixed the bug that cause slow ftp negotiation.
  6687. * src/FtpNegotiationCommand.{h, cc}
  6688. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6689. Added basic tag to --enable-dht, --dht-listen-port option.
  6690. * src/HelpItemFactory.cc (createHelpItems)
  6691. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6692. Updated text.
  6693. * src/usage_text.h
  6694. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6695. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  6696. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6697. Determin _threadtholdSpeed in each constructor for
  6698. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  6699. * src/ActivePeerConnectionCommand.{h, cc}
  6700. * src/PeerReceiveHandshakeCommand.{h, cc}
  6701. * src/BtSetup.cc
  6702. * src/BtConstants.h
  6703. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6704. Added --bt-min-crypto-level and --bt-require-crypto options.
  6705. * src/OptionHandlerFactory.cc
  6706. * src/MSEHandshake.cc
  6707. * src/HelpItemFactory.cc
  6708. * src/option_processing.cc
  6709. * src/ReceiverMSEHandshakeCommand.cc
  6710. * src/prefs.h
  6711. * src/DefaultBtAnnounce.cc
  6712. * src/InitiatorMSEHandshakeCommand.cc
  6713. * src/usage_text.h
  6714. * test/MSEHandshakeTest.cc
  6715. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6716. Bump version number to 0.13.0b
  6717. * configure.ac
  6718. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6719. Updated doc.
  6720. * src/MessageDigestHelper.h:
  6721. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6722. Use raw message digest as a token instead of its hexadecimal
  6723. representation.
  6724. * src/DHTTokenTracker.cc (generateToken)
  6725. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6726. Added Message Stream Encryption(MSE) support.
  6727. Currently, aria2 accepts incoming connections with Obfuscation Header
  6728. and legacy BitTorrent Header and establishes connections with
  6729. Obfuscation Header first and if failed then retry with legacy
  6730. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  6731. choose ARC4. The new option to change the default behavior is planned.
  6732. For tracker extension, "supportcrypto=1" is added statically.
  6733. * src/PeerInitiateConnectionCommand.{h, cc}
  6734. * src/PeerConnection.{h, cc}
  6735. * src/HandleRegistry.h
  6736. * src/SocketCore.h
  6737. * src/PeerReceiveHandshakeCommand.{h, cc}
  6738. * src/BtRegistry.{h, cc}
  6739. * src/PeerListenCommand.cc
  6740. * src/InitiatorMSEHandshakeCommand.{h, cc}
  6741. * src/ReceiverMSEHandshakeCommand.{h, cc}
  6742. * src/MSEHandshake.{h, cc}
  6743. * src/ARC4Encryptor.h
  6744. * src/ARC4Decryptor.h
  6745. * src/LibgcryptARC4Encryptor.h
  6746. * src/LibgcryptARC4Decryptor.h
  6747. * src/LibgcryptARC4Context.h
  6748. * src/LibsslARC4Encryptor.h
  6749. * src/LibsslARC4Decryptor.h
  6750. * src/LibsslARC4Context.h
  6751. * src/DHKeyExchange.h
  6752. * src/LibgcryptDHKeyExchange.h
  6753. * src/LibsslDHKeyExchange.h
  6754. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  6755. * test/DefaultBtAnnounceTest.cc
  6756. * test/ARC4Test.cc
  6757. * test/DHKeyExchangeTest.cc
  6758. Removed prepareForRetry() because it is not used.
  6759. * src/PeerAbstractCommand.{h, cc}
  6760. * src/PeerInteractionCommand.{h, cc}
  6761. * src/PeerInitiateConnectionCommand.{h, cc}
  6762. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6763. Added the ability to load nodes from torrent file. These nodes are
  6764. added to the routing table when downloading that torrent.
  6765. * src/BtContext.h
  6766. * src/DefaultBtContext.{h, cc}
  6767. * src/DHTSetup.cc
  6768. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  6769. hostname and port pair, and resolves all of them.
  6770. * src/NameResolver.{h, cc}: Added reset().
  6771. * src/RequestGroup.cc
  6772. * test/DefaultBtContextTest.cc
  6773. * test/MockBtContext.h
  6774. Removed assert() from DefaultBtContext and throw exception instead.
  6775. * src/DefaultBtContext.cc
  6776. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6777. Fixed segmentation fault bug when exiting if dht is disabled.
  6778. * src/RequestGroup.cc
  6779. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6780. Fixed typo in log message and define the message in message.h
  6781. * src/TimedHaltCommand.cc
  6782. * src/message.h
  6783. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6784. Included RecoverableException.h to fix compilation error.
  6785. * test/DHTMessageFactoryImplTest.cc
  6786. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6787. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  6788. * test/DHTPingMessageTest.cc
  6789. * test/DHTGetPeersMessageTest.cc
  6790. * test/DHTFindNodeMessageTest.cc
  6791. * test/DHTAnnouncePeerMessageTest.cc
  6792. * test/MockDHTMessage.h
  6793. * test/MockDHTMessageFactory.h
  6794. * test/MockDHTMessageDispatcher.h: New class.
  6795. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6796. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  6797. virtual.
  6798. * src/DHTMessageDispatcher.h
  6799. * src/DHTMessageDispatcherImpl.{h, cc}
  6800. * src/DHTSetup.cc
  6801. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6802. Adding handling of DHT error message. Just log error message and
  6803. throw exception.
  6804. * src/DHTMessageFactoryImpl.cc
  6805. * test/DHTMessageFactoryImplTest.cc
  6806. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6807. Added handling of dynamic cast failure.
  6808. * src/DHTNodeLookupTask.cc
  6809. * src/DHTPeerLookupTask.cc
  6810. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6811. Added the ability to stop aria2 itself when given time has passed
  6812. from start. Use --stop option to specify time in minutes.
  6813. When 0 is given, this feature is disabled.
  6814. * src/OptionHandlerFactory.cc
  6815. * src/TimeBasedCommand.h: Make _interval protected scope.
  6816. * src/HelpItemFactory.cc
  6817. * src/option_processing.cc
  6818. * src/prefs.h
  6819. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  6820. before calling RequestGroupMan::fillRequestGroupFromReserver().
  6821. Without this modification, the result list shows "ERR" when aria2 is
  6822. stopped by --stop option. It should be "INPR".
  6823. * src/DownloadEngine.{h, cc}
  6824. * src/DownloadEngineFactory.cc
  6825. * src/usage_text.h
  6826. * src/TimedHaltCommand.{h, cc}: New class.
  6827. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6828. Bootstrap through node added by port message.
  6829. Currently bootstrap is executed if the number of buckets in routing
  6830. table is 1.
  6831. * src/BtPortMessage.{h, cc}
  6832. * src/DefaultBtMessageFactory.{h, cc}
  6833. * src/PeerInteractionCommand.cc
  6834. * test/BtPortMessageTest.cc
  6835. * test/MockDHTTask.h
  6836. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6837. Extract the Peer class's member variables, which are only needed after
  6838. PeerInteractionCommand, into PeerSessionResource class.
  6839. This class is instantiated in PeerInteractionCommand class's ctor and
  6840. released in its dtor.
  6841. This will make Peer class lightweight and uses less memory for peers
  6842. which are not connected and wait in the queue.
  6843. * src/PeerChokeCommand.cc
  6844. * src/PeerSessionResource.{h, cc}
  6845. * src/PeerInteractionCommand.cc
  6846. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  6847. * src/DefaultBtInteractive.cc
  6848. * src/BtPieceMessage.cc
  6849. * src/BtInterestedMessage.cc
  6850. * src/BtUnchokeMessage.cc
  6851. * src/DefaultPeerStorage.{h, cc}
  6852. * src/PeerInitiateConnectionCommand.cc
  6853. * src/ActivePeerConnectionCommand.cc
  6854. * src/BtNotInterestedMessage.cc
  6855. * src/DefaultBtMessageDispatcher.cc
  6856. * src/BtChokeMessage.cc
  6857. * src/BtRequestMessage.cc
  6858. * src/Peer.{h, cc}
  6859. * src/BtRegistry.h
  6860. * src/TrackerWatcherCommand.cc
  6861. * src/PeerReceiveHandshakeCommand.cc
  6862. * test/BtExtendedMessageTest.cc
  6863. * test/BtAllowedFastMessageTest.cc
  6864. * test/BtCancelMessageTest.cc
  6865. * test/DefaultPieceStorageTest.cc
  6866. * test/BtBitfieldMessageTest.cc
  6867. * test/BtHaveMessageTest.cc
  6868. * test/BtNotInterestedMessageTest.cc
  6869. * test/BtRequestMessageTest.cc
  6870. * test/PeerSessionResourceTest.cc
  6871. * test/DefaultBtMessageDispatcherTest.cc
  6872. * test/PeerTest.cc
  6873. * test/BtInterestedMessageTest.cc
  6874. * test/BtRejectMessageTest.cc
  6875. * test/BtChokeMessageTest.cc
  6876. * test/DefaultPeerStorageTest.cc
  6877. * test/BtHaveNoneMessageTest.cc
  6878. * test/BtHaveAllMessageTest.cc
  6879. * test/DefaultExtensionMessageFactoryTest.cc
  6880. * test/BtUnchokeMessageTest.cc
  6881. * test/DefaultBtMessageFactoryTest.cc
  6882. * test/HandshakeExtensionMessageTest.cc
  6883. * test/UTPexExtensionMessageTest.cc
  6884. * test/DefaultBtRequestFactoryTest.cc
  6885. * test/BtPieceMessageTest.cc
  6886. Removed typedef PeerStats.
  6887. * src/PeerStat.h
  6888. * src/SegmentMan.cc
  6889. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6890. Added std namespace to copy, remove_copy, back_inserter,
  6891. front_inserter.
  6892. * src/RequestGroupMan.cc
  6893. * src/DefaultPieceStorage.cc
  6894. * src/StreamFileAllocationEntry.cc
  6895. * src/BtFileAllocationEntry.cc
  6896. * src/RequestGroup.cc
  6897. * src/MetalinkEntry.cc
  6898. * src/DelegatingPeerListProcessor.cc
  6899. * src/DefaultBtRequestFactory.cc
  6900. * src/DefaultBtMessageDispatcher.cc
  6901. * src/version_usage.cc: Included <algorithm>
  6902. * src/main.cc
  6903. * src/MetalinkParserController.cc
  6904. * src/DefaultBtContext.cc
  6905. * src/DownloadEngineFactory.cc
  6906. * src/a2algo.h
  6907. Removed.
  6908. * test/StreamUriListParserTest.cc
  6909. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6910. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  6911. ActivePeerConnectionCommand when it is given and
  6912. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  6913. * src/ActivePeerConnectionCommand.{h, cc}
  6914. * src/BtSetup.cc
  6915. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6916. Only add socket to DownloadEngine's select routine when peer or
  6917. localhost is unchoked and interested. This lowers CPU usage a
  6918. little bit.
  6919. * src/PeerInteractionCommand.cc
  6920. * src/PeerAbstractCommand.{h, cc}
  6921. * src/BtInteractive.h
  6922. * src/DefaultBtInteractive.{h, cc}
  6923. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6924. Revert previous change because get_peers message is needed for
  6925. announce_peer anyway.
  6926. * src/DHTGetPeersCommand.cc
  6927. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6928. Request peers thought DHT only when download hasn't finished.
  6929. * src/DHTGetPeersCommand.cc
  6930. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6931. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  6932. * src/DHTBucketRefreshTask.{h, cc}
  6933. * src/DHTSetup.cc
  6934. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6935. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  6936. standard classes.
  6937. Included string.h where mem* function are used.
  6938. Added namespace aria2.
  6939. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6940. Create directory before saving DHT routing table.
  6941. Now ios::failure is now handled properly.
  6942. * src/DHTAutoSaveCommand.cc
  6943. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6944. Removed unnecessary cerr.
  6945. * src/DownloadEngine.cc
  6946. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6947. Catch exception inside DHTMessageReceiver::receiveMessage().
  6948. Log unknown message.
  6949. * src/DHTMessageReceiver.{h, cc}
  6950. * src/DHTMessageFactory.h
  6951. * src/DHTMessageFactoryImpl.{h, cc}
  6952. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  6953. * src/DHTInteractionCommand.cc
  6954. * src/DHTUnknownMessage.{h, cc}
  6955. * test/DHTUnknownMessageTest.cc
  6956. * test/MockDHTMessageFactory.h
  6957. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6958. Commented out ip address comparison because a host can have multiple
  6959. ip addresses and it is hard to predict the hostname is resolved into
  6960. which one.
  6961. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  6962. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6963. * po/Makefile.in: Removed since this is generated by configure.
  6964. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6965. Fixed compiler warning about redefinition of SIZE_MAX.
  6966. Use common.h instead of config.h directly here.
  6967. * src/Platform.{h, cc}
  6968. The check of ENABLE_NLS is made in gettext.h, so it is not required
  6969. here.
  6970. * common.h
  6971. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  6972. Updated gettext related files.
  6973. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  6974. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  6975. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6976. Added DHT functionality, compatible with mainline.
  6977. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  6978. You may need to specify entry point to DHT network using
  6979. --dht-entry-point. DHT uses UDP port to listen incoming message.
  6980. Use --dht-listen-port to specify port number. Make sure that your
  6981. firewall configuration can pass through UDP traffic to the port.
  6982. The routing table is saved in $HOME/.aria2/dht.dat.
  6983. * src/DHT*
  6984. * src/BNode.{h, cc}
  6985. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  6986. particular torrent.
  6987. * src/Data.cc: Rewritten ctor.
  6988. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  6989. --dht-entry-point.
  6990. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  6991. * src/RequestGroup.cc: Initialize DHT functionality. When download
  6992. ends, remove BtContext from DHTPeerAnnounceStorage.
  6993. * src/BtPortMessage.{h, cc}: Rewritten.
  6994. * src/message.h
  6995. * src/OptionHandlerImpl.cc
  6996. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  6997. --dht-entry-point.
  6998. * src/Dictionary.{h, cc} (remove): New function.
  6999. * src/prefs.h
  7000. * src/DefaultBtMessageFactory.h
  7001. * src/BtHandshakeMessage.cc
  7002. * src/ActivePeerConnectionCommand.cc
  7003. * src/SocketCore.{h, cc}: Added datagram socket support.
  7004. * src/DefaultBtMessageFactory.cc
  7005. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  7006. Create DHT commands.
  7007. * src/BtMessageFactory.h
  7008. * src/PeerMessageUtil.{h, cc}
  7009. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7010. Fixed the bug that log file is not written when configuration file doesn't exist.
  7011. This is caused by using Logger class before LogFactory is not configured.
  7012. BUG #1875079
  7013. * src/option_processing.cc
  7014. Warning message "configuration doesn't exist" is only printed when --conf is
  7015. given.
  7016. * src/option_processing.cc
  7017. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7018. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  7019. ShaVisitor is now deprecated and slated to be removed.
  7020. * src/DefaultBtContext.cc
  7021. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7022. Externalize message to message.h
  7023. * src/Platform.cc
  7024. * src/message.h
  7025. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7026. Set default domain and default path to cookie.
  7027. * src/HttpResponse.cc
  7028. * src/CookieBox.{h, cc}
  7029. * src/CookieParser.{h, cc}
  7030. * test/CookieParserTest.cc
  7031. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7032. Added --no-conf and --conf-path command-line option.
  7033. --no-conf option disables loading aria2.conf file.
  7034. --conf-path option changes the configuration file path. The default
  7035. file path is $HOME/.aria2/aria2.conf
  7036. Added a warning message when the configuration file is not found.
  7037. * src/HelpItemFactory.cc
  7038. * src/option_processing.cc
  7039. * src/prefs.h
  7040. * src/usage_text.h
  7041. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7042. Added the message to inform users that other help categories are
  7043. available in -h option.
  7044. * src/version_usage.cc
  7045. * src/TagContainer.{h, cc}
  7046. * test/TagContainerTest.cc
  7047. * src/TaggedItem.{h, cc}
  7048. * test/TaggedItemTest.cc
  7049. * src/HelpItem.h
  7050. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7051. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  7052. from PiecedSegment's ctor.
  7053. Previously Piece::getAllMissingBlockIndexes() is called from
  7054. PiecedSegment() but it is rather expensive since only first element is
  7055. used.
  7056. * src/PiecedSegment.cc
  7057. * src/Piece.{h, cc}
  7058. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7059. Rewritten get*Missing*Index functions. Now no need to allocate memory
  7060. each time these functions are called.
  7061. * src/BitfieldMan.{h, cc}
  7062. * test/BitfieldManTest.cc
  7063. * src/array_fun.h
  7064. * test/array_funTest.cc
  7065. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  7066. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  7067. filtered. Removed unnecessary cast to int32_t.
  7068. * src/BitfieldMan.{h, cc}
  7069. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7070. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  7071. payload length(4bytes) are received. This happens because lenbufLength
  7072. is not updated in this particular case and successive call of
  7073. receiveMessage() overwrites payload length with bytes recieved which
  7074. are payload body.
  7075. * src/PeerConnection.{h, cc}
  7076. * src/message.h
  7077. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7078. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  7079. peer if there are peers that have same ipaddr and port.
  7080. I've experiened segmentation fault and "pure virtual function was
  7081. called" error.
  7082. * src/Peer.h
  7083. * test/PeerTest.cc
  7084. * src/DefaultPeerStorage.cc
  7085. * test/DefaultPeerStorageTest.cc
  7086. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7087. Removed a call to isPowerOf() because it is no longer necessary here
  7088. and a request block is not always power of 2.
  7089. BUG#1866924
  7090. * src/PeerMessageUtil.cc (checkLength)
  7091. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7092. Fixed the bug that always first found Segment is removed from
  7093. usedSegmentEntries. Removed unused functions.
  7094. * src/SegmentMan.{h, cc}
  7095. * test/SegmentManTest.cc
  7096. Fixed the bug that ServerHost is not removed.
  7097. * src/RequestGroup.cc
  7098. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7099. Fixed the bug that SegmentMan::completeSegment() is not called
  7100. even if Segment is complete when --lowest-speed-limit is enabled.
  7101. BUG#1864525
  7102. * src/DownloadCommand.{h, cc}
  7103. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7104. Fixed: hash algorithm 'sha1' is always used.
  7105. * src/DownloadCommand.cc (validatePieceHash)
  7106. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7107. Added --enable-peer-exchange command-line option.
  7108. * src/OptionHandlerFactory.cc
  7109. * src/HelpItemFactory.cc
  7110. * src/option_processing.cc
  7111. * src/usage_text.h
  7112. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7113. Move extension from BtRuntime to ExtensionMessageFactory, because
  7114. extension can be specified per peer, not per torrent.
  7115. * src/DefaultBtInteractive.cc
  7116. * src/BtRuntime.h
  7117. * src/ExtendedMessagingAware.h
  7118. * src/ExtensionMessageFactory.h
  7119. * src/DefaultExtensionMessageFactory.cc
  7120. * test/DefaultExtensionMessageFactoryTest.cc
  7121. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7122. Added categorized option help. Specify category using --help option.
  7123. Also added the ability to search options in forward match.
  7124. * src/HelpItem.{h, cc}
  7125. * test/HelpItemTest.cc
  7126. * src/HelpItemFactory.{h, cc}
  7127. * src/TagContainer.{h, cc}
  7128. * test/TagContainerTest.cc
  7129. * src/option_processing.cc
  7130. * src/prefs.h
  7131. * src/TaggedItem.{h, cc}
  7132. * test/TaggedItemTest.cc
  7133. * src/version_usage.cc
  7134. * src/help_tags.h
  7135. * src/usage_text.h
  7136. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7137. Fixed segmentation fault when bad torrent metainfo is parsed.
  7138. Added dynamic_cast properly to detect the misconfiguration of metainfo
  7139. and then throw exception or skip it.
  7140. * src/DefaultBtContext.{h, cc}
  7141. * test/DefaultBtContextTest.cc
  7142. * src/AnnounceList.cc
  7143. * src/CompactPeerListProcessor.cc
  7144. * src/message.h
  7145. * src/DefaultBtAnnounce.{h, cc}
  7146. * test/DefaultBtAnnounceTest.cc
  7147. * src/BencodeVisitor.cc
  7148. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7149. Added missing "B"(=Byte). So now the message looks like this:
  7150. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  7151. * src/message.h (MSG_SHARE_RATIO_REPORT)
  7152. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7153. Show the seed ratio after torrent downloads.
  7154. For example, after torrent download completed and --seed-time and
  7155. --seed-ratio conditions are fulfilled, following message is printed
  7156. right after "Download complete: .....":
  7157. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  7158. * src/RequestGroupMan.cc
  7159. * src/RequestGroup.{h, cc}
  7160. * src/message.h
  7161. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7162. Remove a defunct control file. A defunct control file means that while
  7163. it exists, but the corresponding download file is missing.
  7164. After its removal, a download restarts from the beginning.
  7165. * src/RequestGroup.cc
  7166. * src/message.h
  7167. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7168. Allocate bitfield in Peer when it is really used. More specifically,
  7169. bitfield in Peer is allocated after the connection is established and
  7170. deallocated when the connection is dropped.
  7171. Since 2 parameters(piece length and total length) was removed from the
  7172. constructor of Peer class, many test classes were modified accordingly.
  7173. See svn log for more detailed information.
  7174. * src/PeerInteractionCommand.cc
  7175. * src/CompactPeerListProcessor.cc
  7176. * src/Peer.cc
  7177. * src/DefaultPeerListProcessor.cc
  7178. * src/PeerListenCommand.cc
  7179. * src/PeerReceiveHandshakeCommand.cc
  7180. Fixed memory leak
  7181. * src/Piece.cc
  7182. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7183. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  7184. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  7185. command-line options.
  7186. * src/option_processing.cc
  7187. * src/ActivePeerConnectionCommand.cc
  7188. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7189. Send have message to peer if it already has the piece.
  7190. * src/BtHaveMessage.{h, cc}
  7191. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7192. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  7193. port.
  7194. * src/DefaultPeerStorage.{h, cc}
  7195. * test/DefaultPeerStorageTest.cc
  7196. * src/HandshakeExtensionMessage.cc
  7197. * test/HandshakeExtensionMessageTest.cc
  7198. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  7199. * src/PeerStorage.h
  7200. * test/MockPeerStorage.h
  7201. * src/PeerListenCommand.cc
  7202. * src/PeerReceiveHandshakeCommand.cc
  7203. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7204. Added --metalink-enable-unique-protocol option.
  7205. * src/Metalink2RequestGroup.cc
  7206. * src/option_processing.cc
  7207. * src/prefs.h
  7208. * src/version_usage.cc
  7209. * doc/aria2c.1.txt
  7210. * doc/aria2c.1
  7211. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7212. Allow a peer in incomingPeer to be added peers.
  7213. * src/DefaultPeerStorage.cc
  7214. * test/DefaultPeerStorageTest.cc
  7215. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7216. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  7217. I could reproduce this bug in following procedure:
  7218. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  7219. 2. Restart aria2.
  7220. 3. You see the download stopped around 99%.
  7221. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  7222. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  7223. If timeout is reached, then _nextCommand is unused and it may contains
  7224. segments and they won't be canceled. Actually, timeout is not needed
  7225. here because if the server dropped connection, then retry is made.
  7226. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7227. Added uTorrent compatible Peer Exchange.
  7228. * src/BencodeVisitor.{h, cc}
  7229. * test/BencodeVisitorTest.cc
  7230. * src/BtConstants.h
  7231. * src/BtContext.h: Added 'private' flag.
  7232. * src/BtExtendedMessage.{h, cc}
  7233. * test/BtExtendedMessageTest.cc
  7234. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  7235. reserved field.
  7236. * test/BtHandshakeMessageTest.cc
  7237. * src/BtMessageFactory.h
  7238. * src/BtRegistry.h
  7239. * src/BtRuntime.h: This class holds default extension message IDs for
  7240. aria2. By default, aria2 uses ID 8 for ut_pex.
  7241. * src/DefaultBtContext.cc
  7242. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  7243. When it is true, aria2 enables ut_pex. This value is set by
  7244. PeerInteractionCommand.
  7245. * src/DefaultBtMessageFactory.{h, cc}
  7246. * test/DefaultBtMessageFactoryTest.cc
  7247. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  7248. handling to DefaultBtInteractive class.
  7249. * src/DefaultExtensionMessageFactory.{h, cc}
  7250. * test/DefaultExtensionMessageFactoryTest.cc
  7251. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  7252. the container(peers and incomingPeers. The equality is determined by
  7253. Peer::id).
  7254. * test/DefaultPeerStorageTest.cc
  7255. * src/ExtensionMessage.h
  7256. * test/MockExtensionMessage.h
  7257. * src/ExtensionMessageFactory.h
  7258. * test/MockExtensionMessageFactory.h
  7259. * src/HandshakeExtensionMessage.{h, cc}
  7260. * test/HandshakeExtensionMessageTest.cc
  7261. * src/MetaEntry.h
  7262. * src/Peer.{h, cc}
  7263. * src/PeerInteractionCommand.cc
  7264. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  7265. addIncomingPeer.
  7266. * src/PeerMessageUtil.{h, cc}
  7267. * src/PeerObject.h
  7268. * src/UTPexExtensionMessage.{h, cc}
  7269. * test/UTPexExtensionMessageTest.cc
  7270. * src/message.h
  7271. * src/prefs.h
  7272. Fixed the bug that returns incomplete data when it contains null
  7273. character. A convenient constructor was also added.
  7274. * src/Data.{h, cc}
  7275. Rewritten.
  7276. * src/CompactPeerListProcessor.cc
  7277. Fixed typos.
  7278. * src/message.h
  7279. * src/MetaFileUtil.cc
  7280. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7281. Added "Status Legend" label to the explanation text of 'stat' in
  7282. download result and moved it to the last. BUG#1848214
  7283. * src/RequestGroupMan.cc
  7284. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7285. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  7286. * src/Makefie.am
  7287. * test/Makefile.am
  7288. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7289. Fixed the bug that prevents aria2 from loading cookie file when expire
  7290. value is greater than 2^31-1. BUG#1851066
  7291. * src/CookieBoxFactory.cc
  7292. * test/CookieBoxFactoryTest.cc
  7293. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7294. Fixed possible memory leak when an exception is thrown.
  7295. * src/XML2SAXMetalinkProcessor.cc
  7296. Added Expat support. If both libxml2 and Expat are installed, then
  7297. libxml2 is used by default.
  7298. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  7299. ExpatMetalinkProcessor according to the configuration.
  7300. * src/ExpatMetalinkProcessor.{h, cc}
  7301. * src/main.cc: Removed libxml2 specific header and init/free function.
  7302. * src/MetalinkProcessorFactory.{h, cc}
  7303. * src/MetalinkHelper.cc
  7304. * src/Metalinker.h: Removed unnecessary libxml2 header.
  7305. * src/MetalinkProcessor.h
  7306. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  7307. MetalinkProcessorTest is used instead.
  7308. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  7309. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  7310. MetalinkProcessorFactory::newInstance().
  7311. * m4/libexpat.m4
  7312. * configure.ac: Added configuration options for libexpat.
  7313. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7314. Disabled -s option in metalink download.
  7315. * src/Metalink2RequestGroup.cc
  7316. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7317. If several protocols are available for a mirror in metalink file,
  7318. aria2 now use one of them. --metalink-preferred-protocol option was
  7319. added to specify the preference of protocol.
  7320. * src/AbstractCommand.cc
  7321. * src/OptionHandlerFactory.cc
  7322. * src/ServerHost.{h, cc}
  7323. * src/Metalink2RequestGroup.cc
  7324. * src/RequestGroup.{h, cc}
  7325. * test/RequestGroupTest.cc
  7326. * src/option_processing.cc
  7327. * src/prefs.h
  7328. * src/HttpResponseCommand.cc
  7329. * src/MetalinkResource.{h, cc}
  7330. * src/FtpNegotiationCommand.cc
  7331. * src/MetalinkEntry.{h, cc}
  7332. * src/MetalinkEntryTest.cc
  7333. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7334. Code cleanup and added debug log.
  7335. * src/PeerConnection.cc
  7336. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7337. Compiler error fix: applied the patch by Tiziano Mueller
  7338. * src/RequestGroup.cc
  7339. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7340. Fixed the bug: only first announce URL is tried in AnnounceTier,
  7341. in stopped and completed event.
  7342. * src/AnnounceList.{h, cc}
  7343. * test/AnnounceListTest.cc
  7344. * src/DefaultBtAnnounce.cc
  7345. * test/DefaultBtAnnounceTest.cc
  7346. Sorted URLs.
  7347. * test/Metalink2RequestGroupTest.cc
  7348. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7349. Removed unnecessary string copy. Updated doc and corrected indentation.
  7350. * src/Base64.cc
  7351. Fixed compilation warnings
  7352. * test/DataTest.cc
  7353. * test/HttpRequestTest.cc
  7354. * test/MetaFileUtilTest.cc
  7355. * test/RequestTest.cc
  7356. * Release 0.12.0
  7357. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7358. Updated translations
  7359. * po/{de,fr,ja,nl,ru}.po
  7360. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  7361. translations. Many thanks to translators.
  7362. * po/{ca,es,it,pt_BR,sv}.po
  7363. * po/LINGUAS
  7364. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7365. Added a notice about URL
  7366. * src/version_usage.cc
  7367. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  7368. Fixed the bug#1845750; CTRL+C does not stop torrent.
  7369. aria2 repeatedly sends stopped request when tracker returns error code.
  7370. * src/AnnounceList.cc
  7371. * test/AnnounceListTest.cc
  7372. * src/AnnounceTier.h
  7373. Added a message when ctrl-c is hit.
  7374. Now second ctrl-c is also handled in signal handler.
  7375. * src/RequestGroupMan.{h, cc}
  7376. * src/RequestGroup.{h, cc}
  7377. * src/MultiUrlRequestInfo.cc
  7378. * src/DownloadEngine.cc
  7379. * src/TrackerWatcherCommand.cc
  7380. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7381. Code cleanup
  7382. * src/Base64.cc (encode)
  7383. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7384. Changed Direct/IO enable/disable procesure in file allocation routine.
  7385. * src/SingleFileAllocationIterator.cc
  7386. (SingleFileAllocationIterator):
  7387. Disable directIO if offset is not multiple of 512.
  7388. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  7389. * src/MultiFileAllocationIterator.cc (allocateChunk):
  7390. Enable created SingleFileAllocationIterator's directIO.
  7391. * src/FileAllocationEntry.cc
  7392. (FileAllocationEntry): Enable directIO here.
  7393. (~FileAllocationEntry): Disable directIO here.
  7394. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7395. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  7396. * src/Peer.{h, cc}
  7397. * src/DefaultPieceStorage.cc
  7398. * test/DefaultPieceStorageTest.cc
  7399. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7400. Rewritten direct I/O support routine
  7401. * src/SingleFileAllocationIterator.cc
  7402. * src/MultiDiskAdaptor.{h, cc}
  7403. * src/ByteArrayDiskWriter.h
  7404. * src/AbstractSingleDiskAdaptor.h
  7405. * src/AbstractDiskWriter.cc
  7406. * src/DefaultPieceStorage.cc
  7407. * src/DiskWriter.h
  7408. * src/BinaryStream.h
  7409. * src/IteratableChunkChecksumValidator.cc
  7410. * src/IteratableChecksumValidator.cc
  7411. * src/CheckIntegrityEntry.cc
  7412. * src/FileAllocationEntry.cc
  7413. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7414. Fixed typo
  7415. * src/version_usage.cc
  7416. Updated doc
  7417. * doc/aria2c.1.txt
  7418. * doc/aria2c.1
  7419. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7420. Fixed compile error without message digest support.
  7421. * src/FileMetalinkParserState.cc
  7422. * src/MetalinkParserController.{h, cc}
  7423. * test/XML2SAXMetalinkProcessorTest.cc
  7424. * test/MetalinkParserControllerTest.cc
  7425. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7426. Enable direct I/O support in checksum checking.
  7427. * src/IteratableChunkChecksumValidator.{h, cc}
  7428. * test/IteratableChunkChecksumValidatorTest.cc
  7429. * src/CheckIntegrityEntry.cc
  7430. * src/PieceHashCheckIntegrityEntry.cc
  7431. * src/IteratableChecksumValidator.{h, cc}
  7432. * src/BtCheckIntegrityEntry.cc: Added doc.
  7433. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7434. Added --allow-piece-length-change option.
  7435. * src/DefaultBtProgressInfoFile.cc
  7436. * test/DefaultBtProgressInfoFileTest.cc
  7437. * src/OptionHandlerFactory.cc
  7438. * src/option_processing.cc
  7439. * src/prefs.h
  7440. * src/version_usage.cc
  7441. * doc/aria2c.1.txt
  7442. * doc/aria2c.1
  7443. Fixed: duplicated result entry appears when exception is thrown in
  7444. RequestGroup::createInitiateConnectionCommand().
  7445. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  7446. Add RequestGroup to _requestGroup after RequetGroup::
  7447. createInitiateConnectionCommand() succeeds.
  7448. Externalized message
  7449. * src/XML2SAXMetalinkProcessor.cc
  7450. * src/message.h
  7451. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7452. Forced download abort when received negative response from http/ftp
  7453. server.
  7454. * src/HttpResponseCommand.cc
  7455. * src/FtpNegotiationCommand.cc
  7456. * src/HttpResponse.cc
  7457. * src/FtpConnection.cc
  7458. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7459. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  7460. the predecessor, Xml2MetalinkParser class.
  7461. I tested them against 94KB metalink file with 1234 chunk checksums.
  7462. The new one parsed it in 22msec, while it took 6000msec with old one.
  7463. * src/XML2SAXMetalinkProcessor.{h, cc}
  7464. * test/XML2SAXMetalinkProcessorTest.cc
  7465. * src/MetalinkParserController.{h, cc}
  7466. * test/MetalinkParserControllerTest.cc
  7467. * src/MetalinkParserState.h: Also added 16 subclasses.
  7468. * src/main.cc
  7469. * src/Metalink2RequestGroup.cc
  7470. * src/MetalinkHelper.cc
  7471. * src/MetalinkEntry.cc
  7472. * src/ChunkChecksum.h
  7473. Rewritten Base64 class for better performance.
  7474. * src/Base64.{h, cc}
  7475. * test/Base64Test.cc
  7476. * src/HttpRequest.cc
  7477. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7478. Fixed the bug#1841757: aria2 will connect to server to only get
  7479. file size.
  7480. * src/StreamFileAllocationEntry.cc
  7481. * src/option_processing.cc
  7482. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  7483. downloads.
  7484. * src/FtpNegotiationCommand.cc
  7485. Suppressed wrong message when finding PreDownloadHandler
  7486. * src/RequestGroup.cc
  7487. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7488. Updated usage
  7489. * src/version_usage.cc
  7490. Updated man page
  7491. * doc/aria2c.1.txt
  7492. * doc/aria2c.1
  7493. Updated po files
  7494. * po/aria2c.pot
  7495. * po/*.po
  7496. * po/*.gmo
  7497. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7498. Eliminated g++-4.2 warning
  7499. * src/DownloadHandlerConstants.{h, cc}
  7500. * src/Util.cc
  7501. * test/MetaFileUtilTest.cc
  7502. * test/PStringBuildVisitorTest.cc
  7503. Fixed bug: --check-integrity doesn't work for multi file torrent.
  7504. * src/RequestGroup.cc
  7505. * src/BtCheckIntegrityEntry.cc
  7506. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7507. Fixed a2io.h
  7508. * src/a2io.h
  7509. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7510. Added direct I/O support. The current implementation uses O_DIRECT,
  7511. which is not posix standard and is tested on linux 2.6.21.
  7512. Currently only file allocation uses direct I/O.
  7513. * src/SingleFileAllocationIterator.{h, cc}
  7514. * test/SingleFileAllocationIteratorTest.cc
  7515. * src/MultiFileAllocationIterator.{h, cc}
  7516. * test/MultiFileAllocationIteratorTest.cc
  7517. * src/BinaryStream.h
  7518. * src/DiskWriter.h
  7519. * src/AbstractDiskWriter.{h, cc}
  7520. * src/ByteArrayDiskWriter.h
  7521. * src/DiskAdaptor.h
  7522. * src/AbstractSingleDiskAdaptor.{h, cc}
  7523. * src/MultiDiskAdaptor.{h, cc}
  7524. * src/FileAllocationEntry.cc
  7525. * src/Util.{h, cc}
  7526. * src/OptionHandlerFactory.cc
  7527. * src/prefs.h
  7528. * src/version_usage.cc
  7529. * src/option_processing.cc
  7530. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  7531. handleException.
  7532. * src/MultiFileAllocationIterator.cc
  7533. Added EINTR handling
  7534. * src/SocketCore.cc
  7535. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7536. Updated usage
  7537. * src/version_usage.cc
  7538. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7539. Applied Ross's patch for MinGW port.
  7540. * src/DownloadEngine.h
  7541. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7542. Set Content-Type to SingleFileDownloadContext when http response is
  7543. received.
  7544. * src/HttpResponseCommand.cc
  7545. * src/HttpResponse.{h, cc}
  7546. * test/HttpResponseTest.cc
  7547. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7548. Rewritten to add content-type support.
  7549. * src/DownloadHandler.{h, cc}
  7550. * src/BtPostDownloadHandler.{h, cc}
  7551. * test/BtPostDownloadHandlerTest.cc
  7552. * src/MetalinkPostDownloadHandler.{h, cc}
  7553. * test/MetalinkPostDownloadHandlerTest.cc
  7554. * src/PostDownloadHandler.{h, cc}
  7555. * src/DownloadHandlerConstants.{h, cc}
  7556. * src/RequestGroup.cc
  7557. * src/HttpResponseCommand.cc
  7558. * src/FtpNegotiationCommand.cc
  7559. * src/SingleFileDownloadContext.{h, cc}
  7560. * src/RequestGroup.h
  7561. * src/RequestGroupCriteria.h
  7562. * src/ContentTypeRequestGroupCriteria.h
  7563. Added 'mem' option value for --follow-metalink, --follow-torrent.
  7564. If it is give, metalink/torrent file is not written to the disk, but
  7565. just is kept in memory. Parsing is occurred on memory.
  7566. * src/MetalinkHelper.{h, cc}
  7567. * src/MetalinkProcessor.h
  7568. * src/Xml2MetalinkProcessor.{h, cc}
  7569. * test/Xml2MetalinkProcessorTest.cc
  7570. * src/DownloadHandlerFactory.{h, cc}
  7571. * test/DownloadHandlerFactoryTest.cc
  7572. * src/PreDownloadHandler.{h, cc}
  7573. * src/OptionHandlerFactory.cc
  7574. * src/DefaultBtContext.{h, cc}
  7575. * test/DefaultBtContextTest.cc
  7576. * src/version_usage.cc
  7577. * src/Metalink2RequestGroup.{h, cc}
  7578. * src/RequestGroup.{h, cc}
  7579. * src/a2functional.h
  7580. * test/a2functionalTest.cc
  7581. * src/MemoryBufferPreDownloadHandler.{h, cc}
  7582. * src/OptionHandlerImpl.h
  7583. * src/prefs.h
  7584. * src/Util.{h, cc}
  7585. * test/UtilTest.cc
  7586. Keep DownloadResult rather than RequestGroup after downloads to reduce
  7587. memory usage.
  7588. * src/RequestGroupMan.{h, cc}
  7589. * src/DownloadEngine.cc
  7590. * src/BtDependency.{h, cc}: Changed the type of dependee from
  7591. WeakHandle to SharedHandle because WeakHandle could be null.
  7592. * src/RequestGroup.{h, cc}
  7593. * src/DownloadEngineFactory.cc
  7594. * src/DownloadResult.h
  7595. Set totalLength after download finished
  7596. * src/UnknownLengthPieceStorage.{h, cc}
  7597. Keep torrent file specified in metalink in memory.
  7598. * src/Metalink2RequestGroup.cc
  7599. * src/BtDependency.cc
  7600. * src/TrueRequestGroupCriteria.h
  7601. Fixed the bug: seekg is used where seekp should be used.
  7602. * src/ByteArrayDiskWriter.cc
  7603. * test/ByteArraydiskWriterTest.cc
  7604. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7605. Fixed syntax error
  7606. * test/SequenceTest.cc
  7607. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7608. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7609. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  7610. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7611. * src/RequestGroup.cc (downloadFinishedByFileLength)
  7612. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7613. Added the check to see whether ares_host_callback accepts timeouts
  7614. with c-ares; only c-ares 1.5.0 or newer accepts it.
  7615. * src/NameResolver.{h, cc}
  7616. * m4/libcares.m4
  7617. * configure.ac: Set C++ for language choice.
  7618. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7619. Fixed: compilation fails without c-ares/ares
  7620. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  7621. Generate http/ftp commands only when download is incomplete.
  7622. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  7623. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7624. Corrected typo. Examples are removed since they are available in man
  7625. page.
  7626. * src/version_usage.cc
  7627. Updated man page.
  7628. * doc/aria2c.1
  7629. * doc/aria2c.1.txt
  7630. * doc/makeman: Commented out sed command.
  7631. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7632. Throw DlAbortEx when a remote file is not found.
  7633. * src/HttpResponse.cc
  7634. * src/FtpNegotiationCommand.cc
  7635. * src/message.h
  7636. Overwrite an existing file if --allow-overwrite=true is given.
  7637. * src/RequestGroup.cc
  7638. Removed unused functions
  7639. * src/AbstractCommand.h
  7640. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7641. Removed 'extern' from 'extern typedef ...' in src/*.h
  7642. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7643. Updated usage
  7644. * src/version_usage.cc
  7645. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7646. Trim announce URL
  7647. * src/DefaultBtContext.cc
  7648. * test/ShaVisitorTest.cc
  7649. Trim argument s. Give trimed s to exception constructor.
  7650. * src/Util.cc (parseInt)(parseLLInt)
  7651. * test/UtilTest.cc
  7652. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7653. Set precision back to 1.
  7654. * src/ConsoleStatCalc.cc (calculateStat)
  7655. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7656. Replaced strtol with Util::parseInt
  7657. * src/ChunkedEncoding.cc
  7658. * src/HttpConnection.cc
  7659. * src/CookieBoxFactory.cc
  7660. * src/ParameterizedStringParser.cc
  7661. * src/Util.cc
  7662. * test/UtilTest.cc
  7663. * test/OptionHandlerTest.cc
  7664. * src/Request.cc
  7665. Throw exception when empty string is given. The message for exception
  7666. changed.
  7667. * src/Util.cc (parseInt)(parseLLInt)
  7668. * src/message.h
  7669. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7670. Set precision to 2 because share ratio is rounded into 1.0 if precision
  7671. set to 1.
  7672. * src/ConsoleStatCalc.cc (calculateStat)
  7673. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7674. Preallocate non-requested file which is adjacent forward to requested
  7675. file('requested' files means the files given in --select-file option)
  7676. if they share a same piece.
  7677. This fixes long pause in the file system which doesn't support sparse
  7678. files like FAT32 while downloading.
  7679. * src/MultiFileAllocationIterator.{h, cc}
  7680. * test/MultiFileAllocationIteratorTest.cc
  7681. * src/FileEntry.{h, cc}
  7682. Removed unused _option.
  7683. * src/MultiDiskAdaptor.h
  7684. * test/MultiDiskAdaptorTest.cc
  7685. * src/DefaultPieceStorage.cc
  7686. Set the default value of --seed-ratio to 1.0.
  7687. If 0.0 is given, then seeding continues regardless of share ratio.
  7688. * src/version_usage.cc
  7689. * src/option_processing.cc
  7690. * src/BtSetup.cc
  7691. * doc/aria2c.1.txt
  7692. * doc/aria2c.1
  7693. Fixed: Selective download is not working in BitTorrent
  7694. * src/RequestGroup.cc
  7695. Introduced Sequence class. Use this instead of Util::unfoldRange()
  7696. * src/PieceStorage.h
  7697. * test/MockPieceStorage.h
  7698. * src/UnknownLengthPieceStorage.h
  7699. * src/DefaultPieceStorage.{h, cc}
  7700. * src/Metalink2RequestGroup.cc
  7701. * src/RequestGroup.cc
  7702. * src/Sequence.h
  7703. * test/SequenceTest.cc
  7704. * src/IntSequence.h
  7705. * src/message.h
  7706. * src/Util.{h, cc}
  7707. * test/UtilTest.cc
  7708. Added new function 'parse' to catch exception thrown by subclass's
  7709. parseArg
  7710. * src/OptionHandler.h
  7711. * src/OptionParser.cc
  7712. * src/NameMatchOptionHandler.h
  7713. * src/OptionHandlerImpl.h
  7714. * test/OptionHandlerTest.cc
  7715. Added IntegerRangeOptionHandler. Used for --listen-port and
  7716. --select-file. Now --listen-port accepts range of port.
  7717. * src/OptionHandlerFactory.cc
  7718. * src/version_usage.cc
  7719. * src/OptionHandlerImpl.h
  7720. * src/option_processing.cc
  7721. * src/BtSetup.cc
  7722. * src/PeerListenCommand.{h, cc}
  7723. * doc/aria2c.1.txt
  7724. * doc/aria2c.1
  7725. Implemented operator< for Exception class to provide easy way to print
  7726. exception stack trace.
  7727. * src/Exception.{h, cc}
  7728. * src/main.cc
  7729. * src/option_processing.cc
  7730. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7731. * src/version_usage.cc
  7732. (showVersion): Reworked.
  7733. (showUsage): Added examples.
  7734. Removed Hint for total length and file name.
  7735. * src/Metalink2RequestGroup.cc
  7736. * src/RequestGroup.{h, cc}
  7737. * src/HttpResponseCommand.cc
  7738. * src/FtpNegotiationCommand.cc
  7739. Now --follow-torrent and --follow-metalink option work properly.
  7740. * src/RequestGroup.cc
  7741. Updated man page
  7742. * doc/aria2c.1.txt
  7743. * doc/aria2c.1
  7744. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7745. Removed.
  7746. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  7747. Use Segment::operator==()
  7748. * src/HttpConnection.cc
  7749. * src/Segment.h
  7750. Updated usage
  7751. * src/version_usage.cc
  7752. Added EINTR treatment.
  7753. * src/SocketCore.cc
  7754. * src/AbstractDiskWriter.cc
  7755. Rewritten.
  7756. * src/Util.cc (rangedFileCopy)
  7757. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7758. Fixed typo.
  7759. * src/version_usage.cc
  7760. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7761. Implemented. Now -c option works fine.
  7762. * src/DefaultPieceStorage.cc (markPiecesDone)
  7763. * test/DefaultPieceStorageTest.cc
  7764. Removed.
  7765. * src/SegmentMan.{h, cc}
  7766. (markAllPiecesDone)
  7767. (markPieceDone)
  7768. Synchronized po files with
  7769. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  7770. * src/fr.po
  7771. * src/ru.po
  7772. * src/de.po
  7773. * src/ja.po
  7774. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7775. Added ifdef and some modifications to compile without BitTorrent,
  7776. Metalink, MessageDigest
  7777. support.
  7778. * src/PieceHashCheckIntegrityEntry.cc
  7779. * src/MetalinkEntry.h
  7780. * src/version_usage.cc
  7781. * src/main.cc
  7782. * src/DownloadEngine.{h, cc}
  7783. * src/Metalink2RequestGroup.cc
  7784. * src/Peer.cc
  7785. * src/RequestGroup.cc
  7786. * src/MetalinkHelper.cc
  7787. * test/DefaultPieceStorageTest.cc
  7788. * test/MetalinkPostDownloadHandlerTest.cc
  7789. * test/Metalink2RequestGroupTest.cc
  7790. Hide TOTAL SPD when all downloads complete.
  7791. * src/ConsoleStatCalc.cc
  7792. Log target system information.
  7793. * src/main.cc
  7794. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7795. Now --metalink-location accepts a comma-deliminated list of locations.
  7796. * src/MetalinkEntry.{h, cc}
  7797. * test/MetalinkEntryTest.cc
  7798. * src/version_usage.cc
  7799. * src/Metalink2RequestGroup.cc
  7800. * src/Xml2MetalinkProcessor.cc
  7801. * test/Xml2MetalinkProcessorTest.cc
  7802. * doc/aria2c.1.txt
  7803. * doc/aria2c.1
  7804. * src/Util.cc (toUpper)(toLower): Rewritten.
  7805. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7806. Added the ability to detect duplicate download entry which is about to
  7807. download the same file other RequestGroup is downloading.
  7808. * src/RequestGroup.cc
  7809. * src/HttpResponseCommand.cc
  7810. * src/FtpNegotiationCommand.cc
  7811. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7812. Recalculates download progress when loading a control file,
  7813. if the piece length of DownloadContext is different from the one saved
  7814. in the control file. Currently in-flight pieces are ignored.
  7815. * src/DefaultBtProgressInfoFile.cc
  7816. * test/DefaultBtProgressInfoFileTest.cc
  7817. * src/Util.{h, cc}
  7818. * test/UtilTest.cc
  7819. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7820. Do not rotate tiers in announce-list.
  7821. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  7822. AnnounceList::allTiersFailed() used instead to detect whether all
  7823. tiers are tried and failed.
  7824. * test/DefaultBtAnnounceTest.cc
  7825. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  7826. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  7827. * test/AnnounceListTest.cc
  7828. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  7829. clause. Catch RecoverableException instead of DlRetryEx instead.
  7830. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7831. Implemented checksum validation feature(1 checksum for each file)
  7832. The validation takes place after the download.
  7833. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  7834. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  7835. * src/CheckIntegrityCommand.cc: Changed log message.
  7836. * src/Metalink2RequestGroup.cc: Set checksum to
  7837. SingleFileDownloadContext.
  7838. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  7839. PieceHashCheckIntegrity class.
  7840. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  7841. PieceHashCheckIntegrity class.
  7842. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  7843. * src/IteratableValidator.h: New class.
  7844. * src/message.h
  7845. * src/CheckIntegrityEntry.{h, cc}
  7846. * src/IteratableChunkChecksumValidator.{h, cc}
  7847. * src/SingleFileDownloadContext.h
  7848. * src/DownloadCommand.cc
  7849. --allow-overwrite=true is no longer needed to check file integrity
  7850. before download in BitTorrent download.
  7851. * src/RequestGroup.cc (getInitialCommand)
  7852. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  7853. throws exception.
  7854. * src/RequestGroupMan.cc (getInitialCommands)
  7855. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7856. urlencode the given url inside Request::parseUrl(...)
  7857. * src/Request.{h, cc}
  7858. * src/Util.{h, cc}
  7859. * test/RequestTest.cc
  7860. Removed #!metalink3! notation support because it is deleted from
  7861. the metalink specification.
  7862. * src/Request.{h, cc}
  7863. * test/RequestTest.cc
  7864. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7865. Don't connect server before checking file integrity at startup, if
  7866. filesize and output file path are known.
  7867. * src/AbstractCommand.cc
  7868. * src/StreamFileAllocationEntry.cc
  7869. * src/Metalink2RequestGroup.cc
  7870. * src/RequestGroup.{h, cc}
  7871. * src/HttpResponseCommand.cc
  7872. * src/FtpNegotiationCommand.cc
  7873. Added DownloadFailureException. If it is thrown, RequestGroup should
  7874. halt.
  7875. * src/AbstractCommand.cc
  7876. * src/DownloadFailureException.h
  7877. * src/RequestGroup.cc
  7878. Catch RecoverableException, instead of DlAbortEx.
  7879. * src/RequestGroupMan.cc
  7880. * src/FillRequestGroupCommand.cc
  7881. * src/MetaFileUtil.cc
  7882. * src/IteratableChunkChecksumValidator.cc
  7883. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  7884. getGID())
  7885. * src/CheckIntegrityCommand.cc
  7886. * src/message.h
  7887. Print gid instead of idx.
  7888. * src/RequestGroupMan.cc
  7889. Removed exception throwers declaration.
  7890. * src/DirectDiskAdaptor.{h, cc}
  7891. * src/SocketCore.{h, cc}
  7892. * src/MultiDiskAdaptor.{h, cc}
  7893. * src/HttpConnection.{h, cc}
  7894. * src/HttpResponse.{h, cc}
  7895. * src/DiskAdaptor.{h, cc}
  7896. * src/CopyDiskAdaptor.{h, cc}
  7897. * src/MultiDiskAdaptor.{h, cc}
  7898. * src/HttpHeaderProcessor.{h, cc}
  7899. * src/AbstractSingleDiskAdaptor.{h, cc}
  7900. * src/Util.{h, cc}
  7901. * test/UtilTest.cc
  7902. * src/DefaultDiskWriter.{h, cc}
  7903. * src/FtpConnection.{h, cc}
  7904. * src/AbstractDiskWriter.{h, cc}
  7905. Removed duplicate code.
  7906. * src/StreamCheckIntegrityEntry.cc
  7907. Removed unnecessary include.
  7908. * src/DiskWriter.h
  7909. Included Exception.h
  7910. * src/option_processing.cc
  7911. Included 2 files and added doc
  7912. * src/TrackerWatcherCommand.cc
  7913. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  7914. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7915. Changed CheckIntegrityEntry interface so that it can define
  7916. the action when all the chunk checksums are valid.
  7917. * src/CheckIntegrityEntry.h
  7918. * src/StreamCheckIntegrityEntry.{h, cc}
  7919. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  7920. are valid, then aira2 goes to seeding mode. Sometimes it is better
  7921. to exit rather than doing seeding. So, it would be good to toggle this
  7922. behavior.
  7923. * src/CheckIntegrityCommand.cc
  7924. * src/AbstractCommand.cc
  7925. * src/RequestGroup.cc
  7926. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7927. Reflect the download length of in-flight pieces.
  7928. It makes the download length readout more precise.
  7929. * src/DefaultPieceStorage.{h, cc}
  7930. * test/DefaultPieceStorageTest.cc
  7931. * src/a2functional.h
  7932. * test/a2functionalTest.cc
  7933. Lower CPU load when --max-download-limit is used.
  7934. There is up and down in speed indicator when enabling
  7935. http-pipelining but a download goes well. I think the problem is that
  7936. because http-pipelining is enabled, DownloadCommand is created for
  7937. each segment and in its constructor, PeerStat::downloadStart() is
  7938. called. In PeerStat::downloadStart(), speed calculation object is
  7939. reseted, which makes download speed zero.
  7940. * src/DownloadCommand.cc
  7941. Rewritten using accumulate.
  7942. * src/RequestGroupMan.cc (calculateStat)
  7943. Code clearnup.
  7944. * src/FtpNegotiationCommand.cc
  7945. * src/HttpResponseCommand.cc
  7946. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7947. Fixed: Can not resume: aria2 reports download already finished.
  7948. * src/AbstractCommand.{h, cc}
  7949. * src/HttpResponseCommand.cc
  7950. * src/FtpNegotiateCommand.cc
  7951. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7952. Now a file is stored in the directory specified in .metalnk file
  7953. (file[@name]).
  7954. * src/Metalink2RequestGroup.cc
  7955. Create the directory structure when opening the file if it doesn't
  7956. exist.
  7957. * src/AbstractDiskWriter.cc
  7958. * src/Util.{h, cc}
  7959. * src/File.h
  7960. * test/UtilTest.cc
  7961. Removed file name comparison
  7962. * src/Metalink2RequestGroup.cc
  7963. * src/HttpResponseCommand.cc
  7964. Rewritten using Util::mkdirs()
  7965. * src/FileEntry.cc (setupDir)
  7966. * test/FileEntryTest.cc
  7967. Updated doc
  7968. * src/SingleFileDownloadContext.h
  7969. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7970. Now SleepCommand dispatches nextCommand when halt is requested.
  7971. It avoids a possible long wait after hitting CTRL-C.
  7972. * src/SleepCommand.{h, cc}
  7973. * src/RequestGroupAware.{h, cc}
  7974. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7975. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  7976. to open listen port, then remove the port number from the tracker
  7977. request.
  7978. * src/DefaultBtAnnounce.cc
  7979. * test/DefaultBtAnnounceTest.cc
  7980. * test/MockPieceStorage.h
  7981. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  7982. them more testable.
  7983. * src/DefaultBtAnnounce.{h, cc}
  7984. * src/DefaultBtContext.{h, cc}
  7985. * src/Util.{h, cc}
  7986. * test/DefaultBtAnnounceTest.cc
  7987. * test/DefaultBtContextTest.cc
  7988. * test/UtilTest.cc
  7989. Added 'B' to upload bytes readout.
  7990. * src/ConsoleStatCalc.cc
  7991. Now the listen port for BitTorrent download is opened when it is
  7992. needed.
  7993. * src/DownloadEngineFactory.cc
  7994. * src/BtSetup.{h, cc}
  7995. * src/PeerListenCommand.{h, cc}
  7996. Now an exception thrown while parsing tracker response is now logged.
  7997. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  7998. called, which means no retry is made in this case, assuming a tracker
  7999. has a problem.
  8000. * src/TrackerWatcherCommand.cc
  8001. Fixed: downloading a file whose length is unkown fails.
  8002. * src/DownloadCommand.cc
  8003. Simplified prepareForNextSegment()
  8004. * src/DownloadCommand.cc
  8005. Updated
  8006. * po/POTFILES.in
  8007. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8008. Re-implemented a file listing for Metalink, which was dropped while
  8009. http/ftp/torrent integration was being implemented.
  8010. * src/MetalinkHelper.{h, cc}: New class.
  8011. * test/MetalinkHelperTest.cc
  8012. * src/main.cc
  8013. * src/Metalink2RequestGroup.cc
  8014. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8015. Added the ability to display the detailed torrent file information.
  8016. Now -S option gives not only a file listing, but also total download
  8017. length, info hash, announce URI, piece length, the number of pieces,
  8018. and mode(single or multi-torrent).
  8019. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  8020. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  8021. KiB)
  8022. * test/UtilTest.cc
  8023. * src/main.cc
  8024. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8025. Added ftp://USER:PASSWD@Servername automatic parsing.
  8026. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  8027. _password. Recognize username and password in URI.
  8028. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  8029. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  8030. * src/RequestFactory.{h, cc}: Removed.
  8031. * src/AuthConfigFactory.{h, cc}: New class.
  8032. * src/FtpConnection.cc: Use AuthConfigFactory.
  8033. * src/HttpRequest.cc: Use AuthConfigFactory.
  8034. * test/HttpRequestTest.cc: Updated.
  8035. * test/RequestTest.cc: Updated.
  8036. * test/AuthConfigFactoryTest.cc: New class.
  8037. * test/RequestFactoryTest.cc: Removed.
  8038. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8039. Use RequestGroup::allDownloadFinished() to decide whether the control
  8040. file should be removed or saved.
  8041. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  8042. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  8043. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8044. Use File::renameTo()
  8045. * src/DefaultBtProgressInfoFile.cc
  8046. Added --no-file-allocation-limit command-line option.
  8047. * src/version_usage.cc
  8048. * src/option_processing.cc
  8049. * src/OptionHandlerFactory.cc
  8050. * src/RequestGroup.{h, cc}
  8051. * src/BtCheckIntegrityEntry.cc
  8052. * src/StreamCheckIntegrityEntry.cc
  8053. * src/prefs.h
  8054. * doc/aria2c.1.txt
  8055. * doc/aria2c.1
  8056. Now prealloc is the default value for --file-allocation option.
  8057. * src/version_usage.cc
  8058. * src/option_processing.cc
  8059. * doc/aria2c.1.txt
  8060. * doc/aria2c.1
  8061. Don't URL-encode user-agent.
  8062. * src/HttpRequest.cc
  8063. Updated translations
  8064. * po/LINGUAS: Added nl for Dutch translation.
  8065. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  8066. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  8067. * po/POTFILES.in: Updated.
  8068. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8069. Added the ability to recognize url-list in a torrent file.
  8070. The retrieved URLs are attached to the corresponding FileEntry.
  8071. * src/DefaultBtContext.{h, cc}
  8072. * src/FileEntry.{h, cc}
  8073. * test/DefaultBtContextTest.cc
  8074. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8075. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  8076. after the download finishes.
  8077. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8078. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  8079. the data smaller than block length.
  8080. A block length can be specified by constructor's argument.
  8081. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  8082. Get a missing piece in the range of given FileEntry. This function is
  8083. not used in the program yet.
  8084. * src/Util.h: Added some macros.
  8085. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8086. Added HTTP/1.1 keep alive and pipelining support.
  8087. See --enable-http-keep-alive and --enable-http-pipelining option.
  8088. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  8089. Segment.
  8090. * src/HttpDownloadCommand.{h, cc}
  8091. * src/OptionHandlerFactory.cc
  8092. * src/HttpConnection.{h, cc}
  8093. * src/version_usage.cc
  8094. * src/HttpInitiateConnectionCommand.cc
  8095. * src/FtpInitiateConnectionCommand.cc
  8096. * src/Segment.h
  8097. * src/HttpRequestCommand.{h, cc}
  8098. * src/option_processing.cc
  8099. * src/prefs.h
  8100. * src/HttpResponseCommand.cc
  8101. * src/SegmentMan.{h, cc}
  8102. * src/FtpNegotiateCommand.cc
  8103. * src/HttpProxyResponseCommand.cc
  8104. * src/Request.cc
  8105. * src/HttpRequest.cc
  8106. * src/DownloadCommand.cc
  8107. * test/HttpRequestTest.cc
  8108. * test/RequestTest.cc
  8109. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8110. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  8111. finished.
  8112. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8113. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  8114. catching it inside the method.
  8115. When no file entry is found in a metalink without querying user
  8116. preferences, throw the exception with the error message that suggests
  8117. metalink file is probably broken.
  8118. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  8119. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8120. Fixed the bug that prevents remote Metalink/Torrent file from begin
  8121. processed.
  8122. * src/RequestGroupMan.cc (removeStoppedGroup)
  8123. Added debug message.
  8124. * src/BtPostDownloadHandler.cc
  8125. * src/MetalinkPostDownloadHandler.cc
  8126. * src/PostDownloadHandler.{h, cc}
  8127. * src/RequestGroup.cc
  8128. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8129. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  8130. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8131. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  8132. stops and there are any unfinished or in-progress downloads.
  8133. Added the legend of "stat".
  8134. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8135. Throw exception when chunck checksum verification fails.
  8136. * src/DownloadCommand.cc (validatePieceHash): New function.
  8137. * src/PiecedSegment.{h, cc} (clear): New function.
  8138. * src/GrowSegment.{h, cc} (clear): New function.
  8139. * src/Segment.h (clear): New function.
  8140. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  8141. * test/SegmentTest.cc
  8142. * test/GrowSegmentTest.cc
  8143. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8144. Do not send referer when redirected.
  8145. * src/Request.cc (redirectUrl)
  8146. * test/RequestTest.cc
  8147. * test/HttpRequestTest.cc
  8148. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8149. Implemented BitTorrent/http/ftp integrated download.
  8150. I've rewritten lots of files and now some headers have forward
  8151. class declarations to reduce compile time.
  8152. The implementation is extremely alpha stage, I recommend to use this
  8153. for testing purpose only.
  8154. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8155. Fixed the compilation error on 64bit platform.
  8156. * test/HttpHeaderProcessorTest.cc
  8157. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8158. Merged Ross's patch that fixes compilation problem in MinGW
  8159. * test/DefaultBtProgressInfoFileTest.cc
  8160. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8161. Updated fr.po by sebone
  8162. * po/fr.po
  8163. Updated man page.
  8164. * doc/aria2c.1.txt
  8165. * Release 0.11.3
  8166. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8167. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  8168. failure in Metalink.
  8169. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8170. Automatically save *.aria2 control file of http/ftp download in every
  8171. 60 seconds.
  8172. * src/AutoSaveCommand.{h, cc}: New class.
  8173. * src/TimeBasedCommand.{h, cc}: New class.
  8174. * src/DownloadEngineFactory.cc (newConsoleEngine)
  8175. Disable parameterized URI support by default. Added -P option to
  8176. enable the feature.
  8177. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  8178. * src/OptionHandlerFactory.cc
  8179. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  8180. Updated Japanese translation.
  8181. * po/ja.po
  8182. Updated man page.
  8183. * doc/aria2c.1.txt
  8184. * Release 0.11.3-rc
  8185. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8186. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  8187. it is successful, then renamed to *.aria2.
  8188. This prevents *.aria2 file from being truncated or corrupted when
  8189. file system becomes out of space.
  8190. * src/DefaultBtProgressInfoFile.cc (save)
  8191. * src/SegmentMan.cc (save)
  8192. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  8193. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8194. Reduced the fragmentation of bitfield in http/ftp download.
  8195. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  8196. * test/BitfieldManTest.cc
  8197. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8198. Added the ability to disable segmented download in .metalink.
  8199. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  8200. 'url' tag.
  8201. * src/MetalinkEntry.{h, cc}
  8202. * src/RequestResource.{h, cc}
  8203. * src/MetalinkRequestInfo.cc
  8204. * src/Xml2MetalinkProcessor.cc
  8205. * test/Xml2MetalinkProcessorTest.cc
  8206. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8207. Added parameterized URI support.
  8208. * src/main.cc: -Z option added.
  8209. * src/OptionHandlerFactory.cc
  8210. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  8211. * src/PStringDatum.h: New class.
  8212. * src/PStringSegment.{h,cc}: New class.
  8213. * src/PStringNumLoop.h: New class.
  8214. * src/PStringSelect.h: New class.
  8215. * src/NumberDecorator.h: New class.
  8216. * src/FixedWidthNumberDecorator.h: New class.
  8217. * src/AlphaNumberDecorator.h: New class.
  8218. * src/PStringVisitor.h: New class.
  8219. * src/PStringBuildVisitor.{h,cc}: New class.
  8220. * src/ParameterizedStringParser.{h,cc}: New class.
  8221. * src/Util.{h,cc}
  8222. (isNumber): New function.
  8223. (isLowercase): New function.
  8224. (isUppercase): New function.
  8225. (alphaToNum): New function.
  8226. * test/ParameterizedStringParserTest.cc: New class.
  8227. * test/AlphaNumberDecoratorTest.cc: New class.
  8228. * test/PStringBuildVisitorTest.cc: New class.
  8229. * test/UtilTest.cc
  8230. (testIsNumber): New function.
  8231. (testIsLowercase): New function.
  8232. (testIsUppercase): New function.
  8233. (testAlphaToNum): New function.
  8234. Added '\n' after the error message
  8235. * src/RequestInfo.h (printDownloadAbortMessage)
  8236. Added auto file renaming feature in http(s)/ftp download.
  8237. * src/main.cc: Added --auto-file-renaming command-line option.
  8238. * src/OptionHandlerFactory.cc
  8239. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  8240. * src/RequestGroup.{h, cc}
  8241. (shouldCancelDownloadForSafety): Rewritten
  8242. (tryAutoFileRenaming): New function.
  8243. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  8244. * src/HttpResponseCommand.cc
  8245. (executeInternal): Removed the call to RequestGroupMan::
  8246. isSameFileBeingDownloaded()
  8247. * src/FtpNegotiateCommand.cc
  8248. (recvSize): Removed the call to RequestGroupMan::
  8249. isSameFileBeingDownloaded()
  8250. * test/RequestGroupTest.cc: New class.
  8251. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8252. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  8253. IO.
  8254. * src/DefaultBtProgressInfoFile.cc
  8255. * src/MetaFileUtil.cc
  8256. * src/SimpleLogger.cc
  8257. * src/SegmentMan.cc
  8258. * src/Util.cc
  8259. * src/Platform.cc
  8260. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8261. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  8262. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8263. Avoid sparse files if possible, because VFAT32 doesn't support it.
  8264. * src/DefaultDiskWriter.cc (initAndOpenFile)
  8265. Fixed the bug that prevents file allocation is not done when
  8266. dowloading multi-torrent file.
  8267. * src/AbstractDiskWriter.cc (openFile)
  8268. Increase the maximum number of -j option from 15 to 45.
  8269. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8270. Added fr.po, thanks to Charles Landemaine.
  8271. * po/fr.po
  8272. * po/LINGUAS
  8273. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8274. gcc 3.4.4 support:
  8275. * src/DefaultBtContext.cc: int32_t -> int
  8276. * src/main.cc: int -> int32_t, int32_t -> int
  8277. * src/messageDigest.h: uint32_t -> unsigned int
  8278. * src/NameResolver.h: int32_t -> int
  8279. * src/PeerConnection.cc: int -> int32_t
  8280. * src/SpeedCalc.cc: int32_t -> int
  8281. * src/TrackerUpdateCommand.h: int -> int32_t
  8282. * src/Util.cc: int32_t -> int
  8283. * src/Util.h: int32_t -> int
  8284. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  8285. * test/AnnounceListTest.cc: int -> int32_t
  8286. * test/ChunkedEncodingTest.cc: int -> int32_t
  8287. * test/DataTest.cc: int -> int32_t
  8288. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  8289. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  8290. * test/DefaultPieceStorageTest.cc: int -> int32_t
  8291. * test/FeatureConfigTest.cc: int -> int32_t
  8292. * test/MetalinkEntryTest.cc: int -> int32_t
  8293. * test/MockBtRequestFactory.h: int -> int32_t
  8294. * test/MockPieceStorage.h: int -> int32_t
  8295. * test/OptionTest.cc: int -> int32_t
  8296. * test/RequestTest.cc: int -> int32_t
  8297. * test/SegmentManTest.cc: int -> int32_t
  8298. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  8299. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8300. Move sleep functions to Util class:
  8301. * src/Util.cc
  8302. (sleep): New function.
  8303. (usleep): New function.
  8304. * src/DownloadCommand.cc: sleep -> Util::sleep
  8305. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  8306. MinGW build enhancements. The following files are added:
  8307. * src/timegm.{c,h}
  8308. Changes to support the above new files:
  8309. * configure.ac
  8310. * src/Makefile.am
  8311. * src/a2time.h
  8312. * src/Util.cc:
  8313. * src/strptime.c: Added support for %Z option.
  8314. Fixed MinGW non-blocking bug.
  8315. * src/SocketCore.cc
  8316. * src/HttpRequestCommand.cc
  8317. Miscellenous build fixes/enhancements.
  8318. * configure.ac: Added summary report.
  8319. * src/Platform.h: Tweaked #include's.
  8320. * src/a2netcompat.h: Tweaked #include's.
  8321. * src/strptime.h: Tweaked #include's.
  8322. * src/gai_strerror.c: Tweaked #include's.
  8323. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  8324. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  8325. * src/gettimeofday.h: Added HAVE_CONFIG_H
  8326. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8327. Increased the initial connection size in BitTorrent download to 40.
  8328. * src/BtRuntime.h
  8329. Added the usage message of --peer-id-prefix option.
  8330. * src/main.cc
  8331. * Release 0.11.2
  8332. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8333. MessageDigestHelper is introduced in order to simplify the use
  8334. of message digest. Removed repeated code.
  8335. The message digest algorithm is now specified by string, like "sha1",
  8336. "md5".
  8337. * src/messageDigest.{h, cc}
  8338. * src/MessageDigestHelper.{h, cc}: New class.
  8339. * src/DefaultPieceStorage.cc
  8340. * src/DefaultBtContext.{h, cc}
  8341. (computeFastSet): New function.
  8342. (setInfoHash): Added for unit testing.
  8343. (setNumPieces): Added for unit testing.
  8344. * src/DefaultBtInteractive.cc
  8345. * src/BtPieceMessage.cc
  8346. * src/Peer.cc
  8347. * src/Checksum.h
  8348. * src/message.h
  8349. * src/IteratableChecksumValidator.h
  8350. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  8351. inside it.
  8352. * src/SegmentMan.{h, cc}
  8353. (checkIntegrity): Removed.
  8354. * src/IteratableChunkChecksumValidator.{h, cc}
  8355. * src/Util.h
  8356. (sha1Sum): Removed.
  8357. (simpleMessageDigest): Removed.
  8358. (fileChecksum): Removed.
  8359. (computeFastSet): Removed.
  8360. * src/ShaVisitor.cc
  8361. * src/ChunkChecksum.h
  8362. * src/DownloadCommand.cc
  8363. Removed messageDigest virtual functions.
  8364. * src/MultiDiskAdaptor.{h, cc}
  8365. * src/DiskAdaptor.h
  8366. * src/ByteArrayDiskWriter.h
  8367. * src/DiskWriter.h
  8368. * src/DiskAdaptorWriter.h
  8369. * src/AbstractSingleDiskAdaptor.{h, cc}
  8370. * src/AbstractDiskWriter.{h, cc}
  8371. Fixed comilation error when message digest is disabled.
  8372. * src/MetalinkEntry.{h, cc}
  8373. * src/MetalinkRequestInfo.cc
  8374. Removed srandom and random.
  8375. * src/SimpleRandomizer.h
  8376. Added size() virtual function to DiskAdaptor
  8377. * src/MultiDiskAdaptor.h
  8378. Fixed the bug that causes that files are not opened correctly in
  8379. multi-file torrent.
  8380. * src/TorrentRequestInfo.cc
  8381. * src/MultiDiskAdaptor.cc
  8382. Added SHA256 support
  8383. * src/messageDigest.cc
  8384. * src/Xml2MetalinkProcessor.cc
  8385. Show supported message digest algorithms
  8386. * src/main.cc
  8387. Updated contact info.
  8388. * src/main.cc
  8389. Applied Ross's patch
  8390. * src/a2netcompat.h
  8391. * src/main.cc
  8392. Fixed the bug that prevents a remote metalink from not being processed
  8393. even if '-o foo.metalink' is specified.
  8394. * src/MetalinkRequestInfo.cc
  8395. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8396. Merged Dan's patch:
  8397. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  8398. Use va_copy to avoid core dump on amd64:
  8399. * src/SimpleLogger.cc
  8400. Updated contact info.
  8401. * src/main.cc
  8402. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  8403. digest is not available.
  8404. * src/MetalinkEntry.h
  8405. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8406. Make a2netcompat.h include a2io.h to fix compilation error:
  8407. * src/a2netcompat.h
  8408. * src/SocketCore.cc: Removed include of a2io.h
  8409. * src/Util.cc: Removed include of a2io.h
  8410. Gather time related functions to a2time.h:
  8411. * src/a2time.h: New file.
  8412. * src/DefaultPeerStorage.cc
  8413. * src/SimpleLogger.cc
  8414. * src/Util.{h, cc}
  8415. * src/SimpleRandomizer.h
  8416. * src/TimeA2.{h,cc}
  8417. * src/DownloadCommand.cc
  8418. * src/main.cc
  8419. Removed #ifdef __MINGW32__ since gai_strerror is included in
  8420. a2netcompat.h:
  8421. * src/NameResolver.cc
  8422. Fixed compilation error without openssl:
  8423. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  8424. Added default block to suppress compiler warnings:
  8425. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  8426. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  8427. MinGW build enhancements. The following files are added:
  8428. * src/gai_strerror.{c,h}
  8429. * src/gettimeofday.{c,h}
  8430. Changes to support the above new files:
  8431. * configure.ac
  8432. * src/Makefile.am
  8433. * src/a2netcompat.h
  8434. * src/TimeA2.cc
  8435. * src/DefaultPeerStorage.cc
  8436. * src/NameResolver.cc: removed mingw_strerror() function.
  8437. * src/SocketCore.cc: removed mingw_strerror() function.
  8438. Miscellaneous MinGW build fixes.
  8439. * src/a2io.h: Use _lseeki64() instead of lseek()
  8440. * src/common.h
  8441. * src/DefaultFileAllocator.cc
  8442. * src/GlowFileAllocator.cc
  8443. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  8444. * src/NameResolver.cc
  8445. (callback): Changed int32_t to int.
  8446. (resolve): Changed int32_t to int.
  8447. * src/Platform.cc
  8448. * src/Platform.h
  8449. * test/MultiDiskWriterTest.cc
  8450. * test/PeerMessageUtilTest.cc
  8451. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  8452. Other enhancements and fixes.
  8453. * src/HttpRequestCommand.cc
  8454. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  8455. * src/SocketCore.cc:
  8456. (error): New function to abstract errno/WSAGetLastError().
  8457. (errorMsg): New function to abstract errno/WSAGetLastError().
  8458. (initiateSecureConnection): Added more detailed error reporting.
  8459. * src/SocketCore.h: Added private variable blocking, to allow
  8460. proper handling of OpenSSL psuedo-errors.
  8461. * src/message.h
  8462. (EX_SSL_INIT_FAILURE)
  8463. (EX_SSL_IO_ERROR)
  8464. (EX_SSL_PROTOCOL_ERROR)
  8465. (EX_SSL_UNKNOWN_ERROR)
  8466. (EX_SSL_CONNECT_ERROR)
  8467. (EX_SOCKET_BLOCKING)
  8468. (EX_SOCKET_NONBLOCKING)
  8469. (EX_SOCKET_UNKNOWN_ERROR)
  8470. * src/Util.cc
  8471. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  8472. reserved name.
  8473. (httpGMT): Fixed typo.
  8474. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8475. Merged Ross's win32 patch(manually)
  8476. In the course of merging, following files are added.
  8477. * src/strptime.{h,c}
  8478. * src/libgen.{h,c}
  8479. * src/inet_aton.{h,c}
  8480. * src/Platform.{h,cc}
  8481. * src/localtime_r.{h,c}
  8482. * src/getaddrinfo.{h,c}
  8483. I've gethered network related things, and put them to following file:
  8484. * src/a2netcompat.h
  8485. Also io related things are put to following file:
  8486. * src/a2io.h
  8487. Changed %lld to %s because mingw32 doesn't recognize %lld.
  8488. * src/message.h
  8489. (MSG_ALLOCATION_COMPLETED)
  8490. (EX_TOO_LARGE_FILE)
  8491. (EX_SIZE_MISMATCH)
  8492. (EX_FILE_OFFSET_OUT_OF_RANGE)
  8493. (EX_INVALID_CHUNK_CHECKSUM)
  8494. (EX_INVALID_RANGE_HEADER)
  8495. * src/FileAllocationCommand.cc
  8496. * src/HttpResponse.cc
  8497. * src/RequestGroup.cc
  8498. * src/MultiDiskAdaptor.cc
  8499. * src/OptionHandlerImpl.h
  8500. * src/HttpResponseCommand.cc
  8501. * src/FtpNegotiateCommand.cc
  8502. * src/IteratableChecksumValidator.cc
  8503. * src/SegmentMan.cc
  8504. * src/ChunkChecksumValidator.cc
  8505. Added Randomizer::getRandomNumber(long int)
  8506. * src/Randomizer.h (getRandomNumber)
  8507. * src/SimpleRandomizer.h (getRandomNumber)
  8508. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  8509. * src/Util.cc (randomAlpha): Use this new function.
  8510. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8511. Converted int's to in32_t. long long int's are also converted to
  8512. int64_t
  8513. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8514. Fixed the bug that prevents cookies from being sent to the server
  8515. if the domain of cookie is FQDN and starts with ".".
  8516. * src/Cookie.cc (match)
  8517. To add the ability to change peer id.
  8518. * src/DefaultBtContext.h
  8519. (_peerIdPrefix): New variable
  8520. (setPeerIdPrefix): New function.
  8521. * src/torrentRequestInfo.cc
  8522. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  8523. DefaultBtContext.
  8524. * src/main.cc (main): Added peer-id-prefix command-line option.
  8525. The usage message is not added yet.
  8526. * src/DefaultBtContext.cc
  8527. (generatePeerId): Use _peerIdPrefix.
  8528. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  8529. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8530. Fixed the bug that prevents filename in content-disposition from
  8531. being retrieved when filename is not quoted.
  8532. * src/Util.cc (getContentDispositionFilename)
  8533. Fixed the bug that causes infinate loop and memory leak when file open
  8534. operation failed.
  8535. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8536. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8537. Fixed the bug that causes segfault when all URIs specified are
  8538. unsupported.
  8539. * src/RequestGroupMan.cc (getInitialCommands)
  8540. Check if RequestGroup::createNextCommand() returns empty list of
  8541. commands.
  8542. * src/RequestGroup.cc (createNextCommand)
  8543. Change log level from info to error so that users can notice that
  8544. an error occurred.
  8545. Fixed the bug that causes segfault when a zero-sized file is
  8546. downloaded.
  8547. * src/BitfieldMan.cc (isAllBitSet)
  8548. Return true if bitfieldLength is 0.
  8549. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8550. * src/main.cc
  8551. (showUsage): Added 3 usage examples for metalink download.
  8552. Replace MetalinkChunkChecksum with ChunkChecksum.
  8553. * src/MetalinkChunkChecksum.h: Removed.
  8554. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  8555. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  8556. * src/Xml2MetalinkProcessor.cc
  8557. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  8558. * src/MetalinkRequestInfo.cc (execute)
  8559. * Release 0.11.1
  8560. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8561. Reads URIs from stdin when "-i -" is specified.
  8562. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  8563. * src/UriListParser.h, src/UriListParser.cc: New class.
  8564. * src/StreamUriListParser.h: New class.
  8565. * src/FileUriListParser.h: New class.
  8566. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  8567. instead of UriFileListParser.
  8568. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8569. Made console readout more readable.
  8570. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8571. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8572. Fix the bug that causes -s option not to work.
  8573. * src/main.cc (main)
  8574. * src/a2algo.h: New file.
  8575. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8576. Create directory structure specified in metalink file.
  8577. * src/RequestGroup.h, src/RequestGroup.cc
  8578. (initAndOpenFile): Create a directory to store files if it does not
  8579. exist.
  8580. (getDir): New function.
  8581. Added ETA and download speed for an individual file to readout.
  8582. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8583. * src/RequestGroup.h
  8584. (calculateDownloadSpeed): New function.
  8585. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8586. Made -S option work with metalink file and provided selective download
  8587. to metalink.
  8588. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  8589. (filename): Removed.
  8590. (file): New variable.
  8591. (size): Removed.
  8592. (operator=): Updated.
  8593. (getPath): New function.
  8594. (getLength): New function.
  8595. (toFileEntry): New function.
  8596. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  8597. (execute): Use toStream.
  8598. (showFileEntry): Removed.
  8599. * src/MetalinkRequestInfo.h
  8600. (targetFiles): New variable.
  8601. (setTargetFiles): New variable.
  8602. * src/MetalinkRequestInfo.cc
  8603. (execute): Added the ability to print file information included in
  8604. a metalink file.
  8605. Added selective download mode to metalink.
  8606. * src/main.cc
  8607. (showUsage): Updated to denote that -S and --select-file options are
  8608. applicable to metalink.
  8609. * src/FileEntry.h
  8610. (operator=): New function.
  8611. (getBasename): New function.
  8612. (getDirname): New function.
  8613. * src/Util.h, src/Util.cc
  8614. (toStream): New function.
  8615. * src/Xml2MetalinkProcessor.cc: Updated.
  8616. Made aria2 work with metalink with directory structure.
  8617. * src/File.h, src/File.cc
  8618. (getBasename): New function.
  8619. (getDirname): New function.
  8620. * src/RequestGroup.h, src/RequestGroup.cc
  8621. (_topDir): New variable.
  8622. (setTopDir): New function.
  8623. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  8624. Rewrote HTTP header parsing with stringstream.
  8625. * src/HttpConnection.h, src/HttpConnection.cc
  8626. (HttpRequestEntry): New class.
  8627. (headerBuf): Removed.
  8628. (headerBufLength): Removed.
  8629. (outstandingHttpRequests): Now its element type is
  8630. HttpRequestEntryHandle.
  8631. (findEndOfHeader): Removed.
  8632. (receiveResponse): Rewritten.
  8633. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  8634. Updated doc for -j option to notice that it should be used with -i
  8635. option.
  8636. * src/main.cc (showUsage)
  8637. Removed unused classes.
  8638. * src/RequestInfo.h
  8639. (FileInfo): Removed.
  8640. (checksum): Removed.
  8641. (fileInfo): Removed.
  8642. (setChecksum): Removed.
  8643. (getChecksum): Removed.
  8644. (getFileInfo): Removed.
  8645. Use ISO units.
  8646. * src/ConsoleDownloadEngine.cc
  8647. * src/TorrentConsoleDownloadEngine.cc
  8648. * src/Util.cc (abbrevSize)
  8649. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8650. Added the default listening ports to the help message.
  8651. * src/main.cc (showUsage)
  8652. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8653. Reduce the number of calls to gettimeofday to lower CPU load.
  8654. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  8655. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  8656. * src/Peer.h (calculateUploadSpeed): New function.
  8657. (calculateDownloadSpeed): New function.
  8658. * src/DefaultPeerStorage.cc
  8659. (CalculateStat): Added _now variable.
  8660. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  8661. and Peer::calculateUploadSpeed(const struct timeval&)
  8662. Drop connection if no request or piece message is exchanged in
  8663. a certain interval.
  8664. * src/DefaultBtInteractive.h
  8665. (btRuntime): New variable.
  8666. (inactiveCheckPoint): New variable.
  8667. (checkActiveInteraction): New function.
  8668. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  8669. request or piece message is received.
  8670. (checkActiveInteraction): New function.
  8671. (doInteractionProcessing): Call checkActiveInteraction.
  8672. Fixed the bug that causes remote Metalink and Torrent files are not
  8673. processed.
  8674. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  8675. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8676. Changed format of log file.
  8677. * src/SimpleLogger.cc
  8678. * Release 0.11.0
  8679. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8680. * src/AbstractCommand.cc
  8681. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  8682. MSG_MAX_TRY from error to info.
  8683. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  8684. * src/message.h
  8685. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  8686. (MSG_DOWNLOAD_ABORTED): Added %s.
  8687. (MSG_RESTARTING_DOWNLOAD): Added %s.
  8688. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  8689. * src/PeerAbstractCommand.cc
  8690. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  8691. * src/Request.h
  8692. (cookieBox): Made ShardHandle.
  8693. * src/RequestGroup.h, src/RequestGroup.cc
  8694. (createNextCommandWithAdj): New function.
  8695. * src/FileAllocationCommand.cc
  8696. (executeInternal): Use createNextCommandWithAdj().
  8697. * src/CheckIntegrityCommand.cc
  8698. (executeInternal): Use createNextCommandWithAdj().
  8699. Added --load-cookies command-option.
  8700. * src/OptionHandlerFactory.cc
  8701. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  8702. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  8703. Now aria2 can handle cookie's expiration date.
  8704. * src/Cookie.h (expires): Changed its type to time_t.
  8705. * src/main.cc: Added --load-cookies command-line option.
  8706. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  8707. * src/Util.h, src/Util.cc (httpGMT): New function.
  8708. * src/Request.cc (Request): Initialize cookieBox using
  8709. CookieBoxFactory.
  8710. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  8711. * src/CookieParser.h, src/CookieParser.cc: New class.
  8712. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  8713. * src/HttpResponseCommand.cc
  8714. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  8715. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  8716. download.
  8717. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8718. Added -j command-line option.
  8719. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8720. * src/main.cc
  8721. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  8722. Rewritten using stringstream.
  8723. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  8724. Rewritten using stringstream.
  8725. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8726. Make download size shown in MB, KB.
  8727. * src/ConsoleDownloadEngine.h (sendStatistics)
  8728. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  8729. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8730. Accept incoming connections if download rate is low.
  8731. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  8732. (_lowestSpeedLimit): New variable.
  8733. (setLowestSpeedLimit): New function.
  8734. (execute): Accept incoming connections if download rate is low.
  8735. MAX_PEERS is ignored in this case.
  8736. Disable PREF_OUT in multiple concurrent download:
  8737. * src/RequestGroup.h, src/RequestGroup.cc
  8738. (setUserDefinedFilename): New function.
  8739. * src/DownloadEngineFactory.cc
  8740. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  8741. concurrent download.
  8742. * src/DefaultSegmentManFactory.cc
  8743. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  8744. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8745. RequestGroup::getNextCommand() was renamed to createNextCommand().
  8746. Added its overloaded method.
  8747. * src/RequestGroup.h
  8748. (_numConcurrentCommand): New variable.
  8749. (setNumConcurrentCommand): New function.
  8750. * src/RequestGroup.cc
  8751. Abort download if same file is being downloaded concurrently.
  8752. * src/RequestGroup.h, src/RequestGroupMan.cc
  8753. (isSameFileBeingDownloaded): New function.
  8754. * src/HttpResponseCommand.cc (executeInternal)
  8755. * src/FtpNegotiateCommand.cc (recvSize)
  8756. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  8757. * main.cc: Added help message for -i option.
  8758. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8759. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  8760. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  8761. * src/MetalinkEntry.h
  8762. (checksum): Changed to ChecksumHandle
  8763. * src/MetalinkRequestInfo.cc
  8764. (checksum): Changed to ChecksumHandle
  8765. * src/File.cc
  8766. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  8767. * src/common.h
  8768. (DIR_OPEN_MODE): New definition
  8769. * src/RequestGroup.cc
  8770. (prepareForNextAction): Added an argument.
  8771. * src/message.h
  8772. (MSG_GOOD_CHECKSUM): New definition
  8773. (MSG_BAD_CHECKSUM): New definition
  8774. * src/HttpResponseCommand.cc
  8775. (handleDefaultEncoding): Continue download sequence in new
  8776. non-segmented download.
  8777. * src/FileAllocationEntry.h
  8778. (_nextDownloadCommand): New variable.
  8779. * src/DownloadCommand.cc
  8780. (prepareForNextSegment): Create ChecksumCommand if checksum is
  8781. available.
  8782. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  8783. * src/IteratableChecksumValidator.h,
  8784. src/IteratableChecksumValidator.cc: New class.
  8785. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  8786. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8787. Change file mode to 666:
  8788. * src/common.h (OPEN_MODE): New definition.
  8789. * src/File.cc
  8790. * src/Util.cc
  8791. * src/Directry.cc
  8792. * src/AbstractDiskWriter.cc
  8793. Change the level of log message "download aborted" to debug:
  8794. * src/PeerAbstractCommand.cc (execute)
  8795. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  8796. * src/TrackerWatcherCommand.cc
  8797. (createCommand): Sleep some seconds after request failed.
  8798. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  8799. then abort tracker request.
  8800. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8801. * Added the simultaneous download feature.
  8802. * src/main.cc: Print "Exception caught: " when exception is caught.
  8803. Use CUIDCounter instead of BtRuntime::getNewCuid():
  8804. * src/ActivePeerConnectionCommand.cc
  8805. * src/PeerInteractionCommand.cc
  8806. * src/BtRuntime.h
  8807. (cuidCounter): Removed.
  8808. (getNewCuid): Removed.
  8809. * src/DownloadEngineFactory.cc
  8810. * src/PeerListenCommand.cc
  8811. * src/TrackerUpdateCommand.cc
  8812. * src/PeerInitiateConnectionCommand.cc
  8813. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8814. * src/PeerAbstractCommand.cc
  8815. (onAbort): Call PeerStorage::returnPeer()
  8816. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  8817. (incomingPeers): New variable.
  8818. (addIncomingPeer): New function.
  8819. (returnPeer): New function.
  8820. (onErasingPeer): New function.
  8821. (addPeer): push_back -> push_front
  8822. (getActivePeers): Rewritten.
  8823. (calculateStat): Rewritten.
  8824. * src/PeerStorage.h
  8825. (TransferStat::copy): New function.
  8826. (TransferStat::TransferStat): New function.
  8827. (TransferStat::operator=): New function.
  8828. (addIncomingPeer): New function.
  8829. (returnPeer): New function.
  8830. * src/PeerListenCommand.cc
  8831. (execute): Use PeerStorage::addIncomingPeer() instead of
  8832. Peer::addPeer().
  8833. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8834. Connect to a peer actively when download speed is lower than specified
  8835. speed in torrent download:
  8836. * src/ActivePeerConnectionCommand.h: New class.
  8837. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8838. * src/HttpRequest.cc (createRequest): url-encode user-agent
  8839. * src/main.cc: Fixed the bug that prevents download if .netrc
  8840. doesn't exist.
  8841. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8842. To cache resolved hostname:
  8843. * src/AbstractCommand.h, src/AbstractCommand.cc
  8844. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  8845. Added dns cache.
  8846. * src/FtpInitiateConnectionCommand.cc
  8847. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  8848. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  8849. NameResolver working without ares.
  8850. * src/TorrentRequestInfo.cc
  8851. (execute): Don't cache dns in torrent download.
  8852. * src/HttpInitiateConnectionCommand.cc
  8853. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  8854. * src/DNSCache.h: New class.
  8855. * src/UrlRequestInfo.cc
  8856. (execute): Use dns cache.
  8857. In http request, suppress port number in http request header if port
  8858. is 80 or 443:
  8859. * src/HttpRequest.cc (getHostText): Suppress port number in http
  8860. request header if port is 80 or 443.
  8861. (createProxyRequest): Allways send port number.
  8862. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8863. To add the command-line option which disables netrc support:
  8864. * src/OptionHandlerFactory.cc
  8865. (createOptionHandlers): Added PREF_NO_NETRC.
  8866. * src/main.cc: Added -n option.
  8867. * src/prefs.h (PREF_NO_NETRC): New definition.
  8868. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  8869. V_TRUE.
  8870. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  8871. is V_FALSE. This may get configurable in the future release.
  8872. To clear peer's error status by time basis:
  8873. * src/PeerAbstractCommand.cc
  8874. (onAbort): Call Peer::startBadCondition().
  8875. * src/Peer.h, src/Peer.cc
  8876. (error): Removed.
  8877. (_badConditionStartTime): New variable.
  8878. (_badConditionInterval): New variable. Initialized to 10 seconds.
  8879. (startBadCondition): New function.
  8880. (isGood): New function.
  8881. * src/DefaultPeerStorage.cc
  8882. (addPeer): Use Peer::isGood().
  8883. (FindFinePeer): Use Peer::isGood().
  8884. Always include port number in http request header:
  8885. * src/HttpRequest.cc (getHostText): Always include port number in
  8886. http request header.
  8887. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8888. To the ability to read options from a config file:
  8889. * src/main.cc: Command-line parameter validation is delegated to
  8890. OptionHandler class.
  8891. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  8892. * src/Option.h, src/Option.cc (clear): New function.
  8893. * src/OptionParser.h, src/OptionParser.cc: New class.
  8894. * src/OptionHandler.h: New class.
  8895. * src/NameMatchOptionHandler.h: New class.
  8896. * src/OptionHandlerImpl.h: New classes.
  8897. * src/prefs.h: '_' -> '-'
  8898. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  8899. (FTP_PASV): New definition.
  8900. * src/Util.h, src/Util.cc (getRealSize): New function.
  8901. To disable netrc support if .netrc file does not have correct
  8902. permissions:
  8903. * src/File.h, src/File.cc (mode): New function.
  8904. To prevent confidential information to be logged:
  8905. * src/HttpConnection.h, src/HttpConnection.cc
  8906. (eraseConfidentialInfo): New function.
  8907. (sendRequest): Call eraseConfidentialInfo().
  8908. (sendProxyRequest): Call eraseConfidentialInfo().
  8909. * src/main.cc: Validate permissions of .netrc file.
  8910. To add --user-agent command-line option:
  8911. * src/main.cc: Added new command line option: --user-agent
  8912. * src/prefs.h (PREF_USER_AGENT): New definition.
  8913. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  8914. parameter to HttpRequest object.
  8915. * src/AbstractProxyRequestCommand.cc
  8916. (executeInternal): Set user-agent option parameter to HttpRequest
  8917. object.
  8918. Marged the patches from Dan Fandrich.
  8919. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8920. Use filename and size from Metalink file instead of sending HEAD
  8921. request:
  8922. * src/UrlRequestInfo.h
  8923. (_filename): New variable.
  8924. (_totalLength): New variable.
  8925. (setTotalLength): New variable.
  8926. (setFilename): New variable.
  8927. * src/MetalinkRequestInfo.cc
  8928. (execute): Set filename and size to UrlRequestInfo
  8929. * src/UrlRequestInfo.cc
  8930. (execute): Use filename and size from Metalink instead of seding
  8931. HEAD request to servers.
  8932. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8933. To add the ability to resume downloading a partially downloaded file
  8934. which is downloaded from the beginning:
  8935. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  8936. takes this role.
  8937. * src/main.cc: Added -c option.
  8938. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  8939. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  8940. * src/prefs.h (PREF_CONTINUE): New definition.
  8941. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  8942. * src/DefaultDiskWriter.cc
  8943. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  8944. * src/AbstractDiskWriter.h
  8945. (glowFileAllocator): New variable.
  8946. * src/AbstractDiskWriter.cc
  8947. (openExistingFile): Now preallocate file space from the end of the
  8948. existing file if totalLength argument is specified and grater than 0.
  8949. * src/UrlRequestInfo.cc: If -c option is specified and the file
  8950. to download exists in local, continue the download of the file.
  8951. --allow-overwrite=true is assumed in this context.
  8952. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  8953. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  8954. Throw exception if --check-integrity=true is specified but chunk
  8955. checksums are not provided:
  8956. * src/UrlRequestInfo.cc
  8957. Do not print URLs to stdout:
  8958. * src/UrlRequestInfo.cc
  8959. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8960. * src/Request.h: Use AuthResolver to get authentication information.
  8961. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  8962. set to RequestFactory object.
  8963. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  8964. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  8965. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  8966. create Request object.
  8967. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  8968. To integrate Netrc into exsiting classes:
  8969. * src/Request.h
  8970. (_userDefinedAuthConfig): New variable.
  8971. (findNetrcAuthenticator): New function.
  8972. (segment): Removed.
  8973. (setUserDefinedAuthConfig): New function.
  8974. (resolveHttpAuthConfigItem): New function.
  8975. (resolveFtpAuthConfigItem): New function.
  8976. (resolveHttpProxyAuthConfigItem): New function.
  8977. * src/HttpRequest.h
  8978. (authConfig): Removed.
  8979. (proxyAuthConfig): Removed.
  8980. (setAuthConfig): Removed.
  8981. (setProxyAuthConfig): Removed.
  8982. * src/UrlRequest.h
  8983. (getHeadResult): Added a parameter: authConfigHandle
  8984. * src/common.h
  8985. (SingletonHolder.h): New include.
  8986. * src/main.cc
  8987. (Netrc.h): New include.
  8988. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  8989. Added initial value of PREF_NETRC_PATH.
  8990. Added the initialization of netrc.
  8991. * src/AuthConfig.h: New class.
  8992. * src/prefs.h
  8993. (PREF_NETRC_PATH): New definition.
  8994. * src/HttpAuthConfig.h: Removed.
  8995. * src/Netrc.cc
  8996. (getRequiredNextToken): New function.
  8997. (skipMacdef): New function.
  8998. (parse): Rewritten.
  8999. * src/Netrc.h
  9000. (getRequiredNextToken): New function.
  9001. (skipMacdef): New function.
  9002. * src/Util.h, src/Util.cc
  9003. (getHomeDir): New function.
  9004. * src/TrackerWatcherComand.cc
  9005. (createRequestCommand): Use AuthConfig.
  9006. * src/FtpConnection.cc
  9007. (sendUser): Use Request::resolveFtpAuthConfigItem().
  9008. (sendPass): Use Request::resolveFtpAuthConfigItem().
  9009. * src/Request.cc
  9010. (findNetrcAuthenticator): New function.
  9011. (resolveHttpAuthConfigItem): New function.
  9012. (resolveFtpAuthConfigItem): New function.
  9013. (resolveHttpProxyAuthConfigItem): New function.
  9014. * src/UrlRequestInfo.cc: Use AuthConfig.
  9015. * src/HttpRequest.cc
  9016. (createRequest): Use authConfig.
  9017. (getProxyAuthString): Use authConfig.
  9018. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  9019. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  9020. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9021. To reduce overhead to find commands whose socket is either
  9022. readable or writable in the download engine loop:
  9023. * src/Command.h, src/Command.cc
  9024. (STATUS): New enum.
  9025. (status): New variable.
  9026. (statusMatch): New function.
  9027. (setStatusActive): New function.
  9028. (setStatusInactive): New function.
  9029. * src/DownloadEngine.h, src/DownloadEngine.cc
  9030. (executeCommand): New function.
  9031. (run): Simplified.
  9032. (waitData): Call Command::setStatusActive() when command's socket is
  9033. readable or writable.
  9034. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9035. To handle Segment as SegmentHandle:
  9036. * src/AbstractCommand.cc (execute): Rewritten.
  9037. * src/SegmentMan.h: Segment -> SegmentHandle
  9038. Introducded HttpResponse class, HttpRequest class to improve code
  9039. extensiveness and make it clear:
  9040. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  9041. HttpResponse class.
  9042. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  9043. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  9044. * src/HttpConnection.cc: Contruction of http request were moved to
  9045. HttpRequest class.
  9046. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  9047. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  9048. * src/HttpAuthConfig.h: New class.
  9049. * src/Range.h: New class.
  9050. To make FtpTunnel{Request, Response}Command and
  9051. HttpProxy{Request, Response}Command derived from
  9052. AbstractProxy{Request, Response}Command:
  9053. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  9054. Derived from AbstractProxyRequestCommand class.
  9055. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  9056. Derived from AbstractProxyResponseCommand class.
  9057. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  9058. Derived from AbstractProxyRequestCommand class.
  9059. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  9060. Derived from AbstractProxyResponseCommand class.
  9061. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  9062. : New class.
  9063. * src/AbstractProxyResponseCommand.h,
  9064. src/AbstractProxyResponseCommand.cc: New class.
  9065. To add netrc support:
  9066. * src/Netrc.h, src/Netrc.cc: New class.
  9067. * src/Util.h, src/Util.cc (split): New function.
  9068. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  9069. "Content-Range" header instead of "Range" header.
  9070. * src/HttpHeader.h
  9071. (getStatus): Removed.
  9072. (setStatus): Removed.
  9073. * src/Segment.h
  9074. (getPositionToWrite): New function.
  9075. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9076. * src/HttpHeader.h
  9077. (Range.h): New include.
  9078. (status): New variable.
  9079. (HttpHeader): Initialized status with 0.
  9080. (getStatus): New function.
  9081. (setStatus): New function.
  9082. (getRange): New function.
  9083. (HttpHeaderHandle): New function.
  9084. * src/HttpHeader.cc
  9085. (getRange): New function.
  9086. * src/Request.h
  9087. (RequestWeakHandle): New definition.
  9088. * src/HttpConnection.h
  9089. (HttpConnectionHandle): New type definition.
  9090. * src/HttpConnection.cc
  9091. (receiveResponse): Set HTTP status to headers.
  9092. * src/main.cc
  9093. (showUsage): Fixed typo.
  9094. * src/Segment.h
  9095. (SegmentHandle): New type definition.
  9096. * src/BitfieldMan.h
  9097. (getMissingUnusedLength): New function.
  9098. * src/BitfieldMan.cc
  9099. (getMissingUnusedLength): New function.
  9100. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9101. To fix static initialization order problem:
  9102. * src/BitfieldManFactory.h
  9103. (defaultRandomizer): Removed.
  9104. (factory): New variable.
  9105. (getNewFactory): Removed.
  9106. (getFactoryInstance): New function.
  9107. (setDefaultRandomizer): Rewritten.
  9108. (getDefaultRandomizer): Rewritten.
  9109. * src/BitfieldManFactory.cc
  9110. (defaultRandomizer): Removed.
  9111. (factory): Initialized to 0.
  9112. (BitfieldManFactory): Initialized randomizer to 0.
  9113. * src/DefaultPieceStorage.cc
  9114. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  9115. * src/Peer.cc
  9116. (Peer): getNewFactory() -> getFactoryInstance()
  9117. * src/SegmentMan.cc
  9118. (initBitfield): getNewFactory() -> getFactoryInstance()
  9119. * src/Piece.cc
  9120. (Piece): getNewFactory() -> getFactoryInstance()
  9121. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9122. To fix the bug that causes crash on Max OS X:
  9123. * src/SimpleRandomizer.h
  9124. (getInstance): Create new instance if the static variable is null.
  9125. * src/SimpleRandomizer.cc
  9126. (randomizer): Initialized to 0.
  9127. * src/BitfieldManFactory.h
  9128. (getNewFactory): Removed the call to setRandomizer().
  9129. To fix the miscalculation of the range of checksum:
  9130. * src/BitfieldMan.h
  9131. (isBitSetOffsetRange): New function.
  9132. * src/BitfieldMan.cc
  9133. (isBitSetOffsetRange): New function.
  9134. * src/SegmentMan.cc
  9135. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  9136. Use bitfield->getBlockLength() instead of segment.segmentLength.
  9137. * Release 0.10.1
  9138. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9139. To lower CPU usage in BitTorrent download when --max-upload-limit
  9140. command-line option specified:
  9141. * src/DefaultBtMessageDispatcher.cc
  9142. (sendMessages): Calculate uploading speed only when current message
  9143. is uploading data and is not sent yet.
  9144. * src/DefaultPeerStorage.h
  9145. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  9146. * src/HttpResponseCommand.cc
  9147. (handleDefaultEncoding): Added the cast to int32_t to itos.
  9148. This fixes compile error in Soralis 10.
  9149. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9150. To fix segfault in Metalink download:
  9151. * src/UrlRequestInfo.h
  9152. (filename): Removed.
  9153. (totalLength): Removed.
  9154. (setTotalLength): Removed.
  9155. (setFilename): Removed.
  9156. * src/MetalinkRequestInfo.cc
  9157. (execute): Do not set filename and totalLength to reqInfo.
  9158. Set chunk checksum to reqInfo if it is not null.
  9159. * src/HttpResponseCommand.cc
  9160. (executeInternal): Fixed filename in log.
  9161. (handleDefaultEncoding): Removed the call to initBitfield() and
  9162. markAllPiecesDone().
  9163. (handleOtherEncoding): Added HEAD method handling.
  9164. * src/FtpNegotiateCommand.cc
  9165. (executeInternal): Added SEQ_HEAD_OK handling.
  9166. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  9167. return false.
  9168. * src/FtpNegotiateCommand.h
  9169. (SEQ_HEAD_OK): New definition.
  9170. * src/SegmentMan.cc
  9171. (initBitfield): Delete bitfield.
  9172. (isChunkChecksumValidationReady): Fixed the condition.
  9173. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  9174. works fine.
  9175. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9176. * src/Xml2MetalinkProcessor.h
  9177. (xpathExists): New function.
  9178. * src/Xml2MetalinkProcessor.cc
  9179. (xpathExists): New function.
  9180. Not to send HEAD request if filename and size are available in Metalink
  9181. file:
  9182. * src/UrlRequestInfo.h
  9183. (filename): New variable.
  9184. (totalLength): New variable.
  9185. (setTotalLength): New function.
  9186. (setFilename): New function.
  9187. * src/MetalinkRequestInfo.cc
  9188. (execute): Set filename and size to UrlRequestInfo.
  9189. * src/MetalinkEntry.cc
  9190. (MetalinkEntry): Initialize size with 0.
  9191. * src/UrlRequestInfo.cc
  9192. (execute): Set filename and size to SegmentMan.
  9193. Not to download rest of the files after selected files are downloaded
  9194. in BitTorrent:
  9195. * src/PieceStorage.h
  9196. (allDownloadFinished): New function.
  9197. * src/DefaultBtAnnounce.cc
  9198. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  9199. downloadFinished.
  9200. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  9201. * src/DefaultPieceStorage.cc
  9202. (completePiece): Use allDownloadFinished instead of downloadFinished.
  9203. Commented out the call to finishSelectiveDownloadingMode().
  9204. (downloadFinished): Call isFilteredAllBitSet() instead of
  9205. isAllBitSet().
  9206. (allDownloadFinished): New function.
  9207. * src/DefaultBtInteractive.cc
  9208. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  9209. downloadFinished().
  9210. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  9211. * src/TorrentDownloadEngine.cc
  9212. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  9213. * src/BitfieldMan.h
  9214. (isFilteredAllBitSet): New function.
  9215. * src/ShareRatioSeedCriteria.h
  9216. (PieceStorage.h): New include.
  9217. (pieceStorage): New variable.
  9218. (evaluate):
  9219. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  9220. * src/BitfieldMan.cc
  9221. (isFilteredAllBitSet): New function.
  9222. (isAllBitSet): Filter is not took into account.
  9223. Rename --force-truncate as --allow-overwrite:
  9224. * src/TorrentRequestInfo.cc
  9225. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  9226. * src/main.cc
  9227. (showUsage): --force-truncate -> --allow-overwrite
  9228. * src/message.h
  9229. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  9230. * src/prefs.h
  9231. (PREF_FORCE_TRUNCATE): Removed.
  9232. (PREF_ALLOW_OVERWRITE): New definition.
  9233. * src/SegmentMan.cc
  9234. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  9235. * src/MetalinkRequestInfo.cc
  9236. (execute): Queueing message are now logged in info level.
  9237. * src/common.h
  9238. (LONG_LONG_MAX): Removed.
  9239. (LONG_LONG_MIN): Removed.
  9240. * src/HttpResponseCommand.cc
  9241. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  9242. * src/FtpNegotiateCommand.cc
  9243. (recvSize): LONG_LONG_MAX -> INT64_MAX
  9244. * src/main.cc
  9245. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  9246. command-line option.
  9247. (main): Added --check-integriy and --realtime-chunk-checksum
  9248. command-line option.
  9249. --force-truncate -> --allow-overwrite
  9250. Set initial value of --check-integrity option to false.
  9251. Don't show usage when error occurs while persing command-line options.
  9252. Removed deprecated --upload-limit option.
  9253. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9254. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  9255. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  9256. * src/BtAllowedFastMessage.cc:
  9257. * src/BtBitfieldMessage.cc
  9258. * src/BtCancelMessage.cc
  9259. * src/BtChokeMessage.cc
  9260. * src/BtHaveAllMessage.cc
  9261. * src/BtHaveMessage.cc
  9262. * src/BtHaveNoneMessage.cc
  9263. * src/BtInterestedMessage.cc
  9264. * src/BtNotInterestedMessage.cc
  9265. * src/BtPieceMessage.cc
  9266. * src/BtPortMessage.cc
  9267. * src/BtRejectMessage.cc
  9268. * src/BtRequestMessage.cc
  9269. * src/BtSuggestPieceMessage.cc
  9270. * src/BtUnchokeMessage.cc
  9271. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  9272. files are affected.
  9273. * src/ChunkChecksumValidator.cc
  9274. * src/SegmentMan.cc
  9275. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9276. To add chunk checksum validation:
  9277. * src/MetalinkEntry.h
  9278. (MetalinkChunkChecksum.h): New include.
  9279. (chunkChecksum): New variable.
  9280. * src/Request.h
  9281. (method): New variable.
  9282. (setMethod): New function.
  9283. (getMethod): New function.
  9284. (METHOD_GET): New static constant.
  9285. (METHOD_HEAD): New static constant.
  9286. * src/Xml2MetalinkProcessor.h
  9287. (getPieceHash): New function.
  9288. * src/PieceStorage.h
  9289. (markAllPiecesDone): New function.
  9290. (checkIntegrity): New function.
  9291. * src/FileAllocator.h
  9292. (NullFileAllocationMonitor.h): New include.
  9293. (FileAllocator): Initialize fileAllocationMonitor with new
  9294. NullFileAllocationMonitor().
  9295. * src/MultiDiskAdaptor.h
  9296. (messageDigest.h): Remove include.
  9297. (ctx): Removed.
  9298. (hashUpdate): Added ctx.
  9299. (MultiDiskAdaptor): Removed ctx.
  9300. (sha1Sum): Renamed as messageDigest.
  9301. (messageDigest): New function.
  9302. * src/UrlRequestInfo.h
  9303. (HeadResult): New class.
  9304. (digestAlgo): New variable.
  9305. (chunkChecksumLength): New variable.
  9306. (chunkChecksums): New variable.
  9307. (getHeadResult): New function.
  9308. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  9309. (setDigestAlgo): New function.
  9310. (setChunkChecksumLength): New function.
  9311. (setChunkChecksums): New function.
  9312. * src/DefaultPieceStorage.cc
  9313. (DiskAdaptorWriter.h): New include.
  9314. (ChunkChecksumValidator.h): New include.
  9315. (markAllPiecesDone): New function.
  9316. (checkIntegrity): New function.
  9317. * src/DefaultBtContext.h
  9318. (getPieceHashes): New function.
  9319. * src/TorrentRequestInfo.cc
  9320. (execute): Try to validate chunk checksum if file already exists and
  9321. .aria2 file doesn't there and user allows aria2 to overwrite it.
  9322. * src/messageDigest.h
  9323. (~MessageDigestContext): Added digestFree().
  9324. * src/MetalinkRequestInfo.cc
  9325. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  9326. * src/DiskAdaptor.h
  9327. (messageDigest.h): New include.
  9328. (sha1Sum): Renamed as messageDigest.
  9329. (messageDigest): New function.
  9330. * src/DownloadCommand.h
  9331. (PeerStat.h): New include.
  9332. (maxDownloadSpeedLimit): New variable.
  9333. (startupIdleTime): New variable.
  9334. (lowestDownloadSpeedLimit): New variable.
  9335. (peerStat): New variable.
  9336. (setMaxDownloadSpeedLimit): New function.
  9337. (setStartupIdleTime): New function.
  9338. (setLowestDownloadSPeedLimit): New function.
  9339. * src/BtContext.h
  9340. (getPieceHashes): New function.
  9341. * src/main.cc
  9342. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  9343. option to true for testing purpose.
  9344. * src/BtPieceMessage.cc
  9345. (checkPieceHash): Use messageDigest
  9346. * src/DownloadEngine.cc
  9347. (SetDescriptor): Removed.
  9348. (AccumulateActiveCommand): Removed.
  9349. (waitData): Rewritten.
  9350. (updateFdSet): Rewritten.
  9351. * src/MultiDiskAdaptor.cc
  9352. (hashUpdate): Added ctx.
  9353. (sha1Sum): Renamed as messageDigest.
  9354. (messageDigest): New function.
  9355. * src/BitfieldMan.h
  9356. (isBitRangeSet): New function.
  9357. (unsetBitRange): New function.
  9358. * src/ByteArrayDiskWriter.h
  9359. (sha1Sum): Renamed as messageDigest.
  9360. (messageDigest): New function.
  9361. * src/ConsoleDownloadEngine.cc
  9362. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  9363. * src/DiskWriter.h
  9364. (messageDigest.h): New include.
  9365. (sha1Sum): Renamed as messageDigest.
  9366. (messageDigest): New function.
  9367. * src/ChunkChecksumValidator.h: New class.
  9368. * src/DiskAdaptorWriter.h: New class.
  9369. * src/prefs.h
  9370. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  9371. (PREF_CHECK_INTEGRITY): New definition.
  9372. * src/HttpResponseCommand.cc
  9373. (handleDefaultEncoding): Added method "HEAD" handling.
  9374. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9375. (handleOtherEncoding):
  9376. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  9377. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  9378. startupIdleTime, lowestDownloadSpeedLimit to command.
  9379. * src/SegmentMan.h
  9380. (getSegmentEntryByIndex): New function.
  9381. (getSegmentEntryByCuid): New function.
  9382. (getSegmentEntryIteratorByCuid): New function.
  9383. (diskWriter): DiskWriter -> DiskWriterHandle
  9384. (pieceHashes): New variable.
  9385. (chunkHashLength): New variable.
  9386. (digestAlgo): New variable.
  9387. (FindPeerStat): Removed.
  9388. (getPeerStat): Rewritten.
  9389. (markAllPiecesDone): New function.
  9390. (checkIntegrity): New function.
  9391. (tryChunkChecksumValidation): New function.
  9392. (isChunkChecksumValidationReady): New function.
  9393. * src/BitfieldMan.cc
  9394. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  9395. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  9396. blocks to 0.
  9397. (isBitRangeSet): New function.
  9398. (unsetBitRange): New function.
  9399. * src/FtpNegotiateCommand.cc
  9400. (executeInternal): Set maxDownloadSpeedLimit,
  9401. startupIdleTime, lowestDownloadSpeedLimit to command.
  9402. (recvSize): Added method "HEAD" handling.
  9403. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9404. * src/AbstractSingleDiskAdaptor.cc
  9405. (sha1Sum): Renamed as messageDigest.
  9406. (messageDigest): New function.
  9407. * src/AbstractSingleDiskAdaptor.h
  9408. (sha1Sum): Renamed as messageDigest.
  9409. (messageDigest): New function.
  9410. * src/Util.h
  9411. (indexRange): New function.
  9412. * src/MetalinkEntry.cc
  9413. (MetalinkEntry): Initialized chunkChecksum to 0.
  9414. * src/ShaVisitor.cc
  9415. (~ShaVisitor): Removed the call to ctx.digestFree().
  9416. * src/SegmentMan.cc
  9417. (ChunkChecksumValidator.h): New include.
  9418. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  9419. to DIGEST_ALGO_SHA1.
  9420. (~SegmentMan): Removed diskWriter.
  9421. (FindSegmentEntryByIndex): Removed.
  9422. (FindSegmentEntryByCuid): Removed.
  9423. (checkoutSegment): Rewritten.
  9424. (findSlowerSegmentEntry): Rewritten.
  9425. (getSegment): Rewritten.
  9426. (updateSegment): Rewritten.
  9427. (completeSegment): Rewritten.
  9428. (markAllPiecesDone): New function.
  9429. (checkIntegrity): New function.
  9430. (isChunkChecksumValidationReady): New function.
  9431. (tryChunkChecksumValidation): New function.
  9432. * src/Xml2MetalinkProcessor.cc
  9433. (getEntry): Get size and set it to entry.
  9434. Get chunk checksum and set it to entry.
  9435. (getPieceHash): New function.
  9436. * src/Util.cc
  9437. (sha1Sum): Removed ctx.digestFree()
  9438. (fileChecksum): Removed ctx.digestFree()
  9439. (indexRange): New function.
  9440. * src/Request.cc
  9441. (METHOD_GET): New variable.
  9442. (METHOD_HEAD): New variable.
  9443. (Request): Added method.
  9444. * src/UrlRequestInfo.cc
  9445. (FatalException.h): New include.
  9446. (message.h): New include.
  9447. (operator<<): Added operator<< for class HeadResult.
  9448. (getHeadResult): New function.
  9449. (execute): Get filename and size in separate download engine.
  9450. * src/ChunkChecksumValidator.cc: New class.
  9451. * src/DownloadCommand.cc:
  9452. (DownloadCommand): Added peerStat.
  9453. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  9454. the value from Option.
  9455. The buffer size is now 16KB.
  9456. Use peerStat member instead of getting it from SegmentMan.
  9457. Use startupIdleTime member instead of gettingit from Option.
  9458. Added chunk checksum validation.
  9459. * src/AbstractDiskWriter.cc
  9460. (AbstractDiskWriter): Removed ctx.
  9461. (~AbstractDiskWriter): Removed ctx.digestFree()
  9462. (writeDataInternal): Returns the return value of write.
  9463. (readDataInternal): Returns the return value of read.
  9464. (sha1Sum): Renamed as messageDigest
  9465. (messageDigest): New function.
  9466. * src/AbstractDiwkWriter.h
  9467. (messageDigest.h): Removed include.
  9468. (ctx): Removed.
  9469. (sha1Sum): Renamed as messageDigest
  9470. (messageDigest): New function.
  9471. * src/DefaultPieceStorage.h
  9472. (markAllPiecesDone): New function.
  9473. (checkIntegrity): New function.
  9474. * src/NullFileAllocationMonitor.h: New class.
  9475. * src/MetalinkChunkChecksum.h: New class.
  9476. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9477. To decrease CPU usage in bittorrent download, calculation results in
  9478. BitfieldMan were cached and realtime fetching PeerObject was removed
  9479. with WeakHandle introduced. Option values are set to the objects
  9480. by setter before download begins.
  9481. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  9482. * src/DefaultBtRequestFactory.h
  9483. (dispatcher): BtMessageDispatcherHandle ->
  9484. BtMessageDispatcherWeakHandle.
  9485. (messageFactory): New variable.
  9486. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  9487. BtMessageDispatcherWeakHandle.
  9488. (setBtMessageFactory): New function.
  9489. * src/DefaultBtMessageDispatcher.cc:
  9490. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  9491. from Option.
  9492. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  9493. feating the value from Option.
  9494. Use messageFactory member.
  9495. * src/PeerInteractionCommand.cc
  9496. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  9497. Add reverse dependencies to factory object.
  9498. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  9499. dispatcher.
  9500. Set messageFactory to receiver.
  9501. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  9502. btInteractive.
  9503. Set receiver to peerObject.
  9504. Set maxDownloadSpeedLimit to this.
  9505. (executeInternal): Use maxDownloadSpeedLimit member.
  9506. * src/BtChokeMessage.cc
  9507. (doReceivedAction): Use dispatcher, requestFactory member.
  9508. (onSendComplete): Use dispatcher member.
  9509. * src/PeerInteractionCommand.h
  9510. (maxDownloadSpeedLimit): New variable.
  9511. * src/DefaultBtMessageReceiver.h
  9512. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9513. (dispatcher):
  9514. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9515. (messageFactory): New variable.
  9516. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9517. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9518. (setDispatcher):
  9519. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9520. (setBtMessageFactory): New function.
  9521. * src/DefaultBtInteractive.cc
  9522. (initiateHandshake): Use messageFactory member.
  9523. (addBitfieldMessageToQueue): Use messageFactory member.
  9524. (addAllowedFastMessageToQueue): Use messageFactory member.
  9525. (decideChoking): Use messageFactory member.
  9526. (checkHave): Use messageFactory member.
  9527. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  9528. (receiveMessages): Use maxDownloadSpeedLimit member.
  9529. (decideInterest): Use messageFactory member.
  9530. * src/BtRequestMessage.cc
  9531. (doReceivedAction): Use messageFactory, dispatcher member.
  9532. (onQueued): Use dispatcher member.
  9533. * src/BtPieceMessage.cc
  9534. (doReceivedAction): Use dispatcher member.
  9535. (send): Use peerConnection member.
  9536. (onWrongPiece): Use requestFactory member.
  9537. (handleChokingEvent): Use messageFactory, dispatcher member.
  9538. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  9539. * src/BtMessageDispatcher.h
  9540. (BtMessageDispatcherWeakHandle): New type definition.
  9541. * src/SimpleBtMessage.cc
  9542. (send): Use peerConnection member.
  9543. * src/BtRejectMessage.cc
  9544. (doReceivedAction): Use dispatcher member.
  9545. * src/DefaultBtMessageDispatcher.h
  9546. (Option.h): Removed include.
  9547. (messageFactory): New variable.
  9548. (option): Removed.
  9549. (maxUploadSpeedLimit): New variable.
  9550. (requestTimeout): New variable.
  9551. (DefaultBtMessageDispatcher): Removed option.
  9552. Added maxUploadSpeedLimit, requestTimeout.
  9553. (setOption): Removed.
  9554. (getOption): Removed.
  9555. (setMaxUploadSpeedLimit): New function.
  9556. (setRequestTimeout): New function.
  9557. (setBtMessageFactory): New function.
  9558. * src/DefaultBtInteractive.h
  9559. (btMessageReceiver):
  9560. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9561. (dispatcher):
  9562. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9563. (btRequestFactory):
  9564. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9565. (peerConnection):
  9566. PeerConnectionHandle -> PeerConnectionWeakHandle
  9567. (messageFactory): New variable.
  9568. (option): Removed.
  9569. (keepAliveInterval): New variable.
  9570. (maxDownloadSpeedLimit): New variable.
  9571. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  9572. (setBtMessageReceiver):
  9573. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9574. (setDispatcher):
  9575. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9576. (setBtRequestFactory):
  9577. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9578. (setPeerConnection):
  9579. PeerConnectionHandle -> PeerConnectionWeakHandle
  9580. (setOption): Removed.
  9581. (setKeepAliveInterval): New function.
  9582. (setMaxDownloadSpeedLimit): New function.
  9583. (setBtMessageFactory): New function.
  9584. * src/BitfieldMan.h
  9585. (cachedNumMissingBlock): New variable.
  9586. (cachedNumFilteredBlock): New variable.
  9587. (cachedCompletedLength): New variable.
  9588. (cachedFilteredComletedLength): New variable.
  9589. (cachedFilteredTotalLength): New variable.
  9590. (countMissingBlockNow): New function.
  9591. (countFilteredBlockNow): New function.
  9592. (getFilteredTotalLengthNow): New function.
  9593. (getCompletedLengthNow): New function.
  9594. (getFilteredCompletedLengthNow): New function.
  9595. (updateCache): New function.
  9596. * src/AbstractBtMessage.h
  9597. (BtMessageDispatcher.h): New include.
  9598. (PeerConnection.h): New include.
  9599. (BtRequestFactory.h): New include
  9600. (BtMessageFactory.h): New include.
  9601. (dispatcher): New variable.
  9602. (messageFactory): New variable.
  9603. (peerConnection: New variable.
  9604. (setBtMessageDispatcher): New function.
  9605. (setPeerConnection): New function.
  9606. (setBtMessageFactory): New function.
  9607. (setBtRequestFactory): New function.
  9608. * src/DefaultBtMessageFactory.cc
  9609. (setCommonProperty): Set dispatcher, requestFactory, this,
  9610. peerConnection to msg.
  9611. * src/BtRegistry.h
  9612. (BT_MESSAGE_RECEIVER): New macro.
  9613. * src/PeerConnection.h
  9614. (PeerConnectionWeakHandle): New type definition.
  9615. * src/BtMessageFactory.h
  9616. (BtMessageFactoryWeakHandle): New type definition.
  9617. * src/BitfieldMan.cc
  9618. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  9619. cachedCompletedLength, cachedFilteredComletedLength,
  9620. cachedFilteredTotalLength.
  9621. Call updateCache().
  9622. (countMissingBlock): Return cachedNumMissingBlock.
  9623. (countMissingBlockNow): New function.
  9624. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  9625. (countFilteredBlockNow): New function.
  9626. (setBit): Call updateCache().
  9627. (unsetBit): Call updateCache().
  9628. (setBitfield): Call updateCache().
  9629. (clearAllBit): Call updateCache().
  9630. (setAllBit): Use setBitInternal instead of setBit.
  9631. Call updateCache().
  9632. (addFilter): Call updateCache().
  9633. (enableFilter): Call updateCache().
  9634. (disableFilter): Call updateCache().
  9635. (clearFilter): Call updateCache().
  9636. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  9637. (getFilteredTotalLengthNow): New function.
  9638. (getCompletedLength): Return cachedCompletedLength.
  9639. (getCompletedLengthNow): New function.
  9640. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  9641. (getFilteredCompletedLengthNow): New function.
  9642. (updateCache): New function.
  9643. * src/BtMessageReceiver.h
  9644. (BtMessageReceiverWeakHandle): New type definition.
  9645. * src/DefaultBtMessageReceiver.cc
  9646. (receiveHandshake): Use messageFactory member.
  9647. (sendHandshake): Use messageFactory member.
  9648. (receiveMessage): Use messageFactory member.
  9649. * src/DefaultBtMessageFactory.h
  9650. (dispatcher): New variable.
  9651. (requestFactory): New variable.
  9652. (peerConnection): New variablle.
  9653. (setBtMessageDispatcher): New function.
  9654. (setBtRequestFactory): New function.
  9655. (setPeerConnection): New function.
  9656. * src/SharedHandle.h
  9657. (RefCount): New class.
  9658. (WeakHandle): New class.
  9659. * src/PeerObject.h
  9660. (BtMessageReceiver.h): New include.
  9661. (PeerObject): Added btMessageReceiver.
  9662. (btMessageReceiver): New variable.
  9663. * src/Util.cc
  9664. (countBit): Simplified.
  9665. * src/BtCancelMessage.cc
  9666. (doReceivedAction): Use dispatcher member.
  9667. * src/BtRequestFactory.h
  9668. (BtRequestFactoryWeakHandle): New type definition.
  9669. * src/PeerStorage.h
  9670. (downloadSpeed): int -> uint32_t
  9671. (uploadSpeed): int -> uint32_t
  9672. (sessionDownloadLength): long long int -> uint64_t
  9673. (sessionUploadLength): long long int -> uint64_t
  9674. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9675. To add RecoverableException, FatalException:
  9676. * src/AbstractCommand.cc
  9677. (onAbort): Exception -> RecoverableException
  9678. * src/PeerAbstractCommand.h
  9679. (RecoverableException.h): New include.
  9680. (onAbort): Exception -> RecoverableException.
  9681. * src/PeerInteractionCommand.cc
  9682. (onAbort): Exception -> RecoverableException.
  9683. * src/PeerAbstractCommand.cc
  9684. (execute): Exception -> RecoverableException.
  9685. (onAbort): Exception -> RecoverableException.
  9686. * src/TorrentRequestInfo.cc
  9687. (execute): Exception -> RecoverableException.
  9688. * src/MetalinkRequestInfo.cc
  9689. (execute): Exception -> RecoverableException.
  9690. * src/MetaFileUtil.cc: RecoverableException.
  9691. * src/AbstractCommand.h
  9692. (onAbort): Exception -> RecoverableException.
  9693. * src/DlRetryEx.h: Exception -> RecoverableException.
  9694. * src/DlAbortEx.h: Exception -> RecoverableException.
  9695. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  9696. * src/Util.cc: Exception -> RecoverableException.
  9697. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  9698. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  9699. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  9700. To make ID static const int
  9701. * src/BtInterestedMessage.h
  9702. (ID_t): Removed.
  9703. (ID): New variable.
  9704. (getId): Made non-const.
  9705. * src/BtPieceMessage.h
  9706. (ID_t): Removed.
  9707. (ID): New variable.
  9708. (getId): Made non-const.
  9709. * src/BtChokeMessage.h
  9710. (ID_t): Removed.
  9711. (ID): New variable.
  9712. (getId): Made non-const.
  9713. * src/BtHaveAllMessage.h
  9714. (ID_t): Removed.
  9715. (ID): New variable.
  9716. (getId): Made non-const.
  9717. * src/BtKeepAliveMessage.h
  9718. (ID_t): Removed.
  9719. (ID): New variable.
  9720. (getId): Made non-const.
  9721. * src/BtHandshakeMessage.h
  9722. (ID): New variable.
  9723. (getId): Made non-const.
  9724. * src/BtSuggestPieceMessage.h
  9725. (ID_t): Removed.
  9726. (ID): New variable.
  9727. (getId): Made non-const.
  9728. * src/BtPortMessage.h
  9729. (ID_t): Removed.
  9730. (ID): New variable.
  9731. (getId): Made non-const.
  9732. * src/AbstractBtMessage.h
  9733. (id): Removed.
  9734. (AbstractBtMessage): Removed id.
  9735. (getId): Removed.
  9736. * src/BtHaveMessage.h
  9737. (ID_t): Removed.
  9738. (ID): New variable.
  9739. (getId): Made non-const.
  9740. * src/BtAllowedFastMessage.h
  9741. (ID_t): Removed.
  9742. (ID): New variable.
  9743. (getId): Made non-const.
  9744. * src/BtCancelMessage.h
  9745. (ID_t): Removed.
  9746. (ID): New variable.
  9747. (getId): Made non-const.
  9748. * src/BtNotInterestedMessage.h
  9749. (ID_t): Removed.
  9750. (ID): New variable.
  9751. (getId): Made non-const.
  9752. * src/BtChokeMessage.h
  9753. (ID_t): Removed.
  9754. (ID): New variable.
  9755. (getId): Made non-const.
  9756. * src/BtRejectMessage.h
  9757. (ID_t): Removed.
  9758. (ID): New variable.
  9759. (getId): Made non-const.
  9760. * src/BtBitfieldMessage.h
  9761. (ID_t): Removed.
  9762. (ID): New variable.
  9763. (getId): Made non-const.
  9764. * src/BtUnchokeMessage.h
  9765. (ID_t): Removed.
  9766. (ID): New variable.
  9767. (getId): Made non-const.
  9768. * src/BtRequestMessage.h
  9769. (ID_t): Removed.
  9770. (ID): New variable.
  9771. (getId): Made non-const.
  9772. * src/BtHaveMessage.h
  9773. (ID_t): Removed.
  9774. (ID): New variable.
  9775. (getId): Made non-const.
  9776. To add --force-truncate command-line option and a check whether
  9777. the file already exists:
  9778. * src/DirectDiskAdaptor.h
  9779. (getFilePath): Made virtual public.
  9780. * src/MultiDiskAdaptor.h
  9781. (File.h): New include.
  9782. (DiskWriterEntry::fileEntry): Made private.
  9783. (DiskWriterEntry::fileExists): New function.
  9784. (DiskWriterEntry::getFileEntry): New function.
  9785. (fileExists): New function.
  9786. (getFilePath): New function.
  9787. * src/TorrentRequestInfo.cc
  9788. (FatalException.h): New include.
  9789. (message.h): New include.
  9790. (RecoverableException.h): New include.
  9791. (execute): Added a check whether file is already exists or not.
  9792. * src/DiskAdaptor.h
  9793. (fileExists): New function.
  9794. (getFilePath): New function.
  9795. * src/main.cc
  9796. (showUsage): Added an explanation of --force-truncate command-line
  9797. option.
  9798. (main): Added --force-truncate command-line option.
  9799. * src/Exception.h
  9800. (setMsg): buf[256] -> buf[1024]
  9801. * src/CopyDiskWriter.h
  9802. (getFilePath): Made public virtual.
  9803. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  9804. (fileExists): New function.
  9805. * src/DownloadEngineFactory.cc
  9806. (newTorrentConsoleEngine): Don't open file here.
  9807. * src/message.h
  9808. (EX_FILE_ALREADY_EXISTS): New definition.
  9809. * src/prefs.h
  9810. (PREF_FOECE_TRUNCATE): New definition.
  9811. * src/HttpResponseCommand.cc
  9812. (handleDefaultEncoding): Added a check whether the file already exists.
  9813. * src/SegmentMan.h
  9814. (fileExists): New function.
  9815. (shouldCancelDownloadForSafety): New function.
  9816. * src/FtpNegotiateCommand.cc
  9817. (recvSize): Added a check whether the file already exists.
  9818. * src/AbstractSingleDiskAdaptor.cc
  9819. (File.h): New include.
  9820. (fileExists): New function.
  9821. * src/AbstractSingleDiskAdaptor.h
  9822. (getFilePath): Removed.
  9823. (fileExists): New function.
  9824. * src/SegmentMan.cc
  9825. (fileExists): New function.
  9826. (shouldCancelDownloadForSafety): New function.
  9827. To fix regression bug in torrent downloading:
  9828. * src/DefaultBtRequestFactory.cc
  9829. (doChokedAction): New function.
  9830. * src/DefaultBtRequestFactory.h
  9831. (doChokedAction): New function.
  9832. * src/DefaultBtMessageDispatcher.cc
  9833. (doChokedAction): Do not delete request if its target is in allowed
  9834. fast set.
  9835. * src/DefaultBtInteractive.cc
  9836. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  9837. (sendKeepAlive): Send keep alive message even if the outgoing message
  9838. queue is not empty.
  9839. (decideInterest): Simplified the code.
  9840. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  9841. it is already called when BtChokeMessage is received from a peer.
  9842. * src/BtRequestFactory.h
  9843. (doChokedAction): New function.
  9844. To clean up code:
  9845. * src/PeerInteractionCommand.h
  9846. (executeInternal): Added virtual keyword explicitly.
  9847. (prepareForRetry): Added virtual keyword explicitly.
  9848. (prepareForNextPeer): Added virtual keyword explicitly.
  9849. (onAbort): Added virtual keyword explicitly.
  9850. * src/RequestSlot.cc
  9851. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  9852. * src/BtPieceMessage.cc
  9853. (doReceivedAction): Added a debug log of piece's bitfield.
  9854. * src/Piece.h
  9855. (getBitfieldLength): New function.
  9856. * src/ByteArrayDiskWriter.cc
  9857. (clear): Added buf = 0 to avoid double free corruption.
  9858. * src/FileAllocator.cc
  9859. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  9860. Added cp.reset().
  9861. * src/BitfieldMan.h
  9862. (operator=): Rewritten.
  9863. * src/BitfieldMan.cc
  9864. (BitfieldMan): Initialized bitfield, useBitfield.
  9865. * src/PeerConnection.cc
  9866. (receiveMessage): Added a call to socket->readable() after getting
  9867. message length to avoid possible EOF.
  9868. * src/Util.cc
  9869. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  9870. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9871. To add an ability to pre-allocate file space:
  9872. * src/DirectDiskAdaptor.h: Rewritten.
  9873. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  9874. * src/MultiDiskAdaptor.h: Rewritten.
  9875. * src/DefaultPieceStorage.cc
  9876. (MultiDiskWriter.h): Removed include.
  9877. (PreAllocationDiskWriter.h): Removed include.
  9878. (FileAllocationMonitor.h): New include.
  9879. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  9880. (initStorage): Rewritten.
  9881. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9882. * src/FileAllocator.h: New class.
  9883. * src/FileAllocator.cc: New class.
  9884. * src/FileAllocationMonitor.h: New class.
  9885. * src/FileAllocationMonitor.cc: New class.
  9886. * src/ConsoleFileAllocationMonitor.h: New class.
  9887. * src/ConsoleFileAllocationMonitor.cc: New class.
  9888. * src/AbstractSingleDiskAdaptor.h: New class.
  9889. * src/AbstractSingleDiskAdaptor.cc: New class.
  9890. * src/DiskAdaptor.h
  9891. (Directory.h): Removed include.
  9892. (DiskWriter.h): Removed include.
  9893. (FileEntry.h): Removed include.
  9894. (diskWriter): Removed.
  9895. (DiskAdaptor): Removed diskWriter.
  9896. (openFile): Made pure virtual.
  9897. (closeFile): Made pure virtual.
  9898. (openExistingFile): Made pure virtual.
  9899. (initAndOpenFile): Made pure virtual.
  9900. (writeData): Made pure virtual.
  9901. (readData): Made pure virtual.
  9902. (sha1Sum): Made pure virtual.
  9903. (getStoreDir): Returns const reference of storeDir.
  9904. (DiskAdaptorHandle): New type definition.
  9905. * src/main.cc
  9906. (ConsoleFileAllocationMonitor.h): New include.
  9907. (showUsage): Added default value description of -s option.
  9908. Added the description of --file-allocation option.
  9909. (main): Set default value of --file-allocation option to 'none'.
  9910. Added --file-allocation command-line option.
  9911. Setup FileAllocationMonitorFactory.
  9912. * src/FtpInitiateConnectionCommand.cc
  9913. (executeInternal): Removed diskWriter related processing, which was
  9914. moved to FtpNegotiationCommand.cc.
  9915. * src/DirectDiskAdaptor.cc
  9916. (getFilePath): Made non-const.
  9917. * src/CopyDiskAdaptor.h
  9918. (DiskAdaptor.h): Removed include.
  9919. (DiskWriter.h): Removed include.
  9920. (AbstractSingleDiskAdaptor.h): New include.
  9921. (getFilePath): Made non-const. Added virtual keyword.
  9922. (CopyDiskAdaptor): Removed diskWriter.
  9923. (getTempFile): Returns const reference.
  9924. (CopyDiskAdaptorHandle): New type definition.
  9925. * src/ByteArrayDiskWriter.cc
  9926. (clear): Simplified.
  9927. (initAndOpenFile): Rewritten.
  9928. (openFile): Call initAndOpenFile()
  9929. * src/MultiDiskAdaptor.cc: Rewritten.
  9930. * src/DownloadEngineFactory.cc
  9931. (FileAllocator.h): New include.
  9932. (FileAllocationMonitor.h): New include.
  9933. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  9934. create DefaultDiskWriter with file allocator.
  9935. * src/DiskWriter.h
  9936. (initAndOpenFile): Added totalLength argument.
  9937. (openFile): Added totalLength argument.
  9938. * src/prefs.h
  9939. (PREF_FILE_ALLOCATION): New definition.
  9940. (V_PREALLOC): New definition.
  9941. (V_NONE): New definition.
  9942. * src/HttpResponseCommand.cc
  9943. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  9944. size.
  9945. * src/FtpNegotiateCommand.cc
  9946. (Util.h): New include.
  9947. (recvSize): Open file here.
  9948. * src/Util.h
  9949. (ullitos): New function.
  9950. * src/CopyDiskWriter.h
  9951. (getFilePath): Made non-const.
  9952. * src/DefaultDiskWriter.h
  9953. (Option.h): New include.
  9954. (totalLength): Removed.
  9955. (DefaultDiskWriter): Removed totalLength.
  9956. (initAndOpenFile): Added totalLength argument.
  9957. (DefaultDiskWriterHandle): New type definition.
  9958. (createNewDiskWriter): New function.
  9959. * src/Util.cc
  9960. (ullitos): New function.
  9961. * src/DefaultDiskWriter.cc
  9962. (message.h): New include.
  9963. (FileAllocator.h): New include.
  9964. (prefs.h): New include.
  9965. (Util.h): New include.
  9966. (DefaultDiskWriter): Removed totalLength.
  9967. (initAndOpenFile): Added file allocation.
  9968. (createNewDiskWriter): New function. Just for temporary solution.
  9969. It will be rewritten later.
  9970. * src/DiskAdaptor.cc
  9971. (DiskAdaptor): Removed diskWriter.
  9972. * src/AbstractDiskWriter.cc
  9973. (LogFactory.h): New include.
  9974. (AbstractDiskWriter): Added fileAllocator, logger.
  9975. (openFile): Added totalLength argument.
  9976. * src/AbstractDiskWriter.h
  9977. (FileAllocator.h): New include.
  9978. (Logger.h): New include.
  9979. (fileAllocator): New variable.
  9980. (logger): New variable.
  9981. (openFile): Added totalLength argument. Added virtual keyword
  9982. explicitly.
  9983. (openExistingFile): Added totalLength argument. Added virtual keyword
  9984. explicitly.
  9985. (closeFile): Added virtual keyword explicitly.
  9986. (sha1Sum): Added virtual keyword explicitly.
  9987. (writeData): Added virtual keyword explicitly.
  9988. (readData): Added virtual keyword explicitly.
  9989. (setFileAllocator): New function.
  9990. * src/DefaultPieceStorage.h
  9991. (FileAllocator.h): New include.
  9992. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9993. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9994. * src/FileProgressMonitor.h: New class.
  9995. To compile aria2 on PC-BSD:
  9996. * src/DefaultBtContext.cc
  9997. (libgen.h): New include.
  9998. To fix memory leak:
  9999. * src/Exception.h
  10000. (~Exception): Delete cause. Fixed memory leak.
  10001. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10002. Rewritten a portion of bittorrent implementation:
  10003. * src/BtMessageValidator.h: New class.
  10004. * src/BtBitfieldMessageValidator.h: New class.
  10005. * src/BtHandshakeMessageValidator.h: New class.
  10006. * src/BtRequestMessageValidator.h: New class.
  10007. * src/BtSuggestPieceMessageValidator.h: New class.
  10008. * src/BtAllowedFastMessageValidator.h: New class.
  10009. * src/BtRejectMessageValidator.h: New class.
  10010. * src/BtCancelMessageValidator.h: New class.
  10011. * src/BtPieceMessageValidator.h: New class.
  10012. * src/BtHaveMessageValidator.h: New class.
  10013. * src/BtEventListener.h: New class.
  10014. * src/AbstractBtEventListener.h: New class.
  10015. * src/BtEvent.h: New class.
  10016. * src/BtChokingEvent.h: New class.
  10017. * src/BtChokedEvent.h: New class.
  10018. * src/BtCancelSendingPieceEvent.h: New class.
  10019. * src/BtAbortOutstandingRequestEvent.h: New class.
  10020. * src/Randomizer.h: New class.
  10021. * src/SimpleRandomizer.h: New class.
  10022. * src/BtMessage.h: New class.
  10023. * src/AbstractBtMessage.h: New class.
  10024. * src/SimpleBtMessage.h: New class.
  10025. * src/BtHaveMessage.h: New class.
  10026. * src/BtInterestedMessage.h: New class.
  10027. * src/BtAllowedFastMessage.h: New class.
  10028. * src/BtUnchokeMessage.h: New class.
  10029. * src/BtCancelMessage.h: New class.
  10030. * src/BtNotInterestedMessage.h: New class.
  10031. * src/BtChokeMessage.h: New class.
  10032. * src/BtHaveNoneMessage.h: New class.
  10033. * src/BtHandshakeMessage.h: New class.
  10034. * src/BtSuggestPieceMessage.h: New class.
  10035. * src/BtHaveMessage.h: New class.
  10036. * src/BtPieceMessage.h: New class.
  10037. * src/BtHaveAllMessage.h: New class.
  10038. * src/BtKeepAliveMessage.h: New class.
  10039. * src/BtPortMessage.h: New class.
  10040. * src/BtRejectMessage.h: New class.
  10041. * src/BtBitfieldMessage.h: New class.
  10042. * src/BtRequestMessage.h: New class.
  10043. * src/DefaultBtRequestFactory.h: New class.
  10044. * src/DefaultBtMessageReceiver.h: New class.
  10045. * src/BtInteractive.h: New class.
  10046. * src/BtMessageDispatcher.h: New class.
  10047. * src/DefaultBtMessageDispatcher.h: New class.
  10048. * src/DefaultBtInteractive.h: New class.
  10049. * src/BitfieldManFactory.h: New class.
  10050. * src/HandleRegistry.h: New class.
  10051. * src/BtMessageFactory.h: New class.
  10052. * src/BtMessageReceiver.h: New class.
  10053. * src/DefaultBtMessageFactory.h: New class.
  10054. * src/PeerObject.h: New class.
  10055. * src/BtRequestFactory.h: New class.
  10056. * src/SuggestPieceMessage.h: Removed.
  10057. * src/PortMessage.h: Removed.
  10058. * src/SuggestPieceMessage.h: Removed.
  10059. * src/KeepAliveMessage.h: Removed.
  10060. * src/HandshakeMessage.h: Removed.
  10061. * src/PeerInteraction.h: Removed.
  10062. * src/UnchokeMessage.h: Removed.
  10063. * src/PieceMessage.h: Removed.
  10064. * src/RequestMessage.h: Removed.
  10065. * src/InterestedMessage.h: Removed.
  10066. * src/HaveMessage.h: Removed.
  10067. * src/CancelMessage.h: Removed.
  10068. * src/RejectMessage.h: Removed.
  10069. * src/AllowedFastMessage.h: Removed.
  10070. * src/HaveNoneMessage.h: Removed.
  10071. * src/SimplePeerMessage.h: Removed.
  10072. * src/HaveAllMessage.h: Removed.
  10073. * src/BitfieldMessage.h: Removed.
  10074. * src/PeerMessageFactory.h: Removed.
  10075. * src/NotInterestedMessage.h: Removed.
  10076. * src/ChokeMessage.h: Removed.
  10077. * src/PeerMessage.h: Removed.
  10078. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10079. To know root cause of exception:
  10080. * src/Exception.h
  10081. (cause): New variable.
  10082. (Exception): Added a parameter.
  10083. (getMsg): Return const reference to msg.
  10084. (getCause): New function.
  10085. * src/DlRetryEx.h
  10086. (DlRetryEx): Added a parameter 'cause'.
  10087. Added an overloaded constructor.
  10088. (DlAbortEx): Added a parameter 'cause'.
  10089. Added an overloaded constructor.
  10090. * src/SimpleLogger.cc
  10091. (writeLog): Log nested exception messages recursively.
  10092. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10093. * src/DefaultBtProgressInfoFile.cc
  10094. (load): Fixed memory leak when the infohash doesn't match.
  10095. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10096. * src/DefaultPeerStorage.cc
  10097. (calculateStat): Simplified the code by combining 2 loops into 1.
  10098. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10099. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  10100. for BitTorrent download:
  10101. * src/PeerAbstractCommand.cc
  10102. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  10103. * src/main.cc:
  10104. (timeoutSpecified): Removed.
  10105. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  10106. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  10107. * src/TorrentRequestInfo.cc
  10108. (timeoutSpecified): Removed.
  10109. (torrentHandler): Removed timeoutSpecified and the adjustment of
  10110. timeout value.
  10111. * src/prefs.h
  10112. (PREF_BT_TIMEOUT): New definition.
  10113. Delete unused variables:
  10114. * src/TorrentRequestInfo.cc
  10115. (requestInfo): Removed.
  10116. Move setSignalHander to Util::setGlobalSignalHandler:
  10117. * src/TorrentRequestInfo.cc:
  10118. setSignalHander -> Util::setGlobalSignalHandler
  10119. * src/main.cc
  10120. (setSignalHander): Removed.
  10121. (main): setSignalHander -> Util::setGlobalSignalHandler
  10122. * src/Util.h
  10123. (setGlobalSignalHandler): New function.
  10124. * src/Util.cc
  10125. (setGlobalSignalHandler): New function.
  10126. * src/UrlRequestInfo.cc:
  10127. setSignalHander -> Util::setGlobalSignalHandler
  10128. Reset peer status in order to exit gracefully:
  10129. * src/PeerAbstractCommand.cc
  10130. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  10131. To fix the bug that causes the number of bytes uploaded is not saved
  10132. to .aria2 file:
  10133. * src/DefaultPeerStorage.h
  10134. (removedPeerSessionDownloadLength): New variable.
  10135. (removedPeerSessionUploadLength): New variable.
  10136. * src/DefaultPeerStorage.cc
  10137. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  10138. removedPeerSessionUploadLength(0).
  10139. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  10140. through all peers, and then add removedPeerSessionDownloadLength(
  10141. removedPeerSessionUploadLength) to it.
  10142. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  10143. (to) the peer to removedPeerSessionDownloadLength
  10144. (removedPeerSessionUploadLength).
  10145. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10146. To add Metalink location option:
  10147. * src/MetalinkRequestInfo.cc
  10148. (execute): Call MetalinkEntry::setLocationPreference()
  10149. * src/main.cc
  10150. (showUsage): Added the help message for --metalink-location option.
  10151. (main): Added --metalink-location option.
  10152. * src/prefs.h
  10153. (PREF_METALINK_LOCATION): New definition.
  10154. * src/MetalinkEntry.cc
  10155. (AddLocationPreference): New function object.
  10156. (setLocationPreference): New function.
  10157. * src/Xml2MetalinkProcessor.cc
  10158. (getResource): Set location attribute to MetalinkResource
  10159. To show URLs to download
  10160. * src/UrlRequestInfo.h
  10161. (printUrls): New function.
  10162. To add multiple <file> Metalink support:
  10163. * src/MetalinkEntry.h
  10164. (MetalinkResources): Removed.
  10165. (setLocationPreference): New function.
  10166. (MetalinkEntryHandle): New type definition.
  10167. (MetalinkEntries): New type definition.
  10168. * src/Xml2MetalinkProcessor.h
  10169. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10170. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10171. (parseFile): Metalinker* -> MetalinkerHandle
  10172. * src/UrlRequestInfo.h
  10173. (execute): RequestInfo* -> RequestInfos
  10174. * src/MetalinkRequestInfo.cc
  10175. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  10176. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  10177. (execute): RequestInfo* -> RequestInfos
  10178. Added multiple <file> support. Print filename when it is queued.
  10179. * src/MetalinkRequestInfo.h
  10180. (execute): RequestInfo* -> RequestInfos
  10181. (getDownloadEngine): Removed.
  10182. * src/RequestInfo.h
  10183. (RequestInfoHandle): New type definition.
  10184. (RequestInfos): New type definition.
  10185. (execute): RequestInfo* -> RequestInfos
  10186. (getDownloadEngine): Removed.
  10187. * src/MetalinkResource.h
  10188. (MetalinkResourceHandle): New type definition.
  10189. (MetalinkResources): New type definition.
  10190. * src/MetalinkEntry.cc
  10191. (~MetalinkEntry): Removed the deletion of the elements of resources,
  10192. because the element is now of type MetalinkResourceHandle.
  10193. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  10194. (Supported): MetalinkResource* -> MetalinkResourceHandle
  10195. (dropUnsupportedResource): Removed the deletion of the elements of
  10196. resources because the element is now of type MetalinkResourceHandle.
  10197. * src/Xml2MetalinkProcessor.cc
  10198. (parseFile): Metalinker* -> MetalinkerHandle
  10199. MetalinkEntry* -> MetalinkEntryHandle
  10200. Removed try-catch block.
  10201. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10202. MetalinkResource* -> MetalinkResourceHandle
  10203. Removed try-catch block.
  10204. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10205. Free result by using xmlXPathFreeObject()
  10206. * src/Metalinker.cc
  10207. (~Metalinker): Removed the deletion of entries.
  10208. MetalinkEntry* -> MetalinkEntryHandle
  10209. (queryEntry): Add multiple <file> Metalink support.
  10210. * src/Metalinker.h
  10211. (MetalinkEntries): Removed.
  10212. (queryEntry): MetalinkEntry* -> MetalinkEntries
  10213. * src/MetalinkProcessor.h
  10214. (parseFile): Metalinker* -> MetalinkerHandle
  10215. Bug fixes:
  10216. * src/PeerChokeCommand.cc
  10217. (execute): cat01->cat02
  10218. * src/DefaultPieceStorage.cc
  10219. (DefaultPieceStorage): Added diskAdaptor(0)
  10220. * src/TrackerWatcherComand.cc:
  10221. (execute): Use btAnnounce->noMoreAnnounce()
  10222. to determin whether the function returns true or not.
  10223. * src/TrackerUpdateCommand.cc:
  10224. (execute): Use btAnnounce->noMoreAnnounce()
  10225. to determin whether the function returns true or not.
  10226. * src/FtpConnection.cc
  10227. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  10228. This is the fix of the busy loop bug.
  10229. * src/DownloadCommand.cc
  10230. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  10231. cached PeerStat.
  10232. The value of "name" entry in torrent file is now set by
  10233. *DiskAdaptor::setTopDir(...) methods.
  10234. * src/MultiDiskAdaptor.h
  10235. (topDir): New variable.
  10236. (setTopDir): New function.
  10237. (getTopDir): New function.
  10238. * src/MultiDiskAdaptor.cc
  10239. (getFilePath): Concat storDir, "/" and topDir.
  10240. (mkdir): Use getFilePath() to get the directory path for output.
  10241. * src/DefaultPieceStorage.cc
  10242. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  10243. CopyDiskAdaptor.
  10244. * src/CopyDiskAdaptor.h
  10245. (topDir): New variable.
  10246. (setTopDir): New function.
  10247. (getTopDir): New function.
  10248. * src/CopyDiskAdaptor.cc
  10249. (fixFilename): Updated.
  10250. Misc
  10251. * src/UrlRequestInfo.h
  10252. (e): Removed.
  10253. (UrlRequestInfo): Removed e.
  10254. (getDownloadEngine): Removed.
  10255. * src/UrlRequestInfo.cc
  10256. (handler): Rewritten.
  10257. (printUrls): New function.
  10258. (execute): Call printUrls().
  10259. * src/HandshakeMessage.cc
  10260. (check): peerinteraction->getBtContext() -> btContext
  10261. * src/PeerInteraction.h
  10262. (getBtContext): Removed.
  10263. * src/TorrentRequestInfo.h
  10264. (execute): RequestInfo* -> RequestInfos
  10265. (getDownloadEngine): Removed.
  10266. * src/TorrentRequestInfo.cc
  10267. (haltRequested): Removed.
  10268. (btHaltRequested): New variable.
  10269. (torrentHandler): haltRequested -> btHaltRequested
  10270. (execute): RequestInfo* -> RequestInfos
  10271. * src/TorrentConsoleDownloadEngine.cc
  10272. (afterEachIteration): haltRequested -> btHaltRequested.
  10273. * src/ConsoleDownloadEngine.h
  10274. (initStatistics): Added virtual.
  10275. (calculateStatistics): Added virtual.
  10276. (onEndOfRun): Added virtual.
  10277. (afterEachIteration): Added virtual.
  10278. * src/ConsoleDownloadEngine.cc
  10279. (haltRequested): New variable.
  10280. (afterEachIteration): New function.
  10281. * src/main.cc
  10282. (requestInfo): Removed.
  10283. * src/SegmentMan.cc
  10284. (findSlowerSegmentEntry): Refactored.
  10285. * Release 0.9.0
  10286. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10287. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  10288. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  10289. * src/TorrentMan.h: Removed.
  10290. * src/TorrentMan.cc: Removed.
  10291. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  10292. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  10293. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  10294. * src/PeerAbstractCommand.cc: Use btRuntime.
  10295. * src/BtContextAwareCommand.h: New class.
  10296. * src/FileEntry.h: Added accessor methods for following variables.
  10297. (path): Made private.
  10298. (length): Made private.
  10299. (offset): Made private.
  10300. (extracted): Made private.
  10301. (requested): Made private.
  10302. (FileEntries): New definition.
  10303. (FileEntryHandle): New definition.
  10304. * src/FileEntry.cc: New file.
  10305. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  10306. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  10307. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  10308. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  10309. * src/PieceStorage.h: New file.
  10310. * src/PeerInteractionCommand.h: Use btContext.
  10311. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  10312. btRuntime.
  10313. * src/DefaultBtProgressInfoFile.h: New file.
  10314. * src/DefaultBtProgressInfoFile.cc: New file.
  10315. * src/File.cc
  10316. (Util.h): New include.
  10317. (mkdirs): New function.
  10318. * src/MultiDiskAdaptor.h
  10319. (mkdir): New function.
  10320. * src/PeerListProcessor.h
  10321. (Peers): Removed.
  10322. * src/PeerInteraction.h
  10323. (torrentMan): Removed.
  10324. (btContext): New variable.
  10325. (peerStorage): New variable.
  10326. (pieceStorage): New variable.
  10327. (btAnnounce): New variable.
  10328. (getTorrentMan): Removed.
  10329. (getBtContext): New function.
  10330. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  10331. btAnnounce.
  10332. * src/HandshakeMessage.h
  10333. (TorrentMan.h): Removed.
  10334. * src/HandshakeMessage.cc: Use btContext.
  10335. * src/DefaultBtAnnounce.cc: New file.
  10336. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  10337. * src/DefaultPieceStorage.cc: New file.
  10338. * src/DefaultBtContext.h: New file.
  10339. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  10340. Use the accessor methods of FileEntry.
  10341. * src/CookieBox.cc: Updated to use Util::slice().
  10342. * src/PieceMessage.cc: Use btContext, pieceStorage.
  10343. * src/common.h (SharedHandle.h): New include.
  10344. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  10345. pieceStorage.
  10346. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  10347. * src/DiskAdaptor.h
  10348. (topDir): Removed.
  10349. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  10350. (setTopDir): Removed.
  10351. (getTopDir): Removed.
  10352. * src/BtContext.h: New file.
  10353. * src/DefaultPeerStorage.h: New file.
  10354. * src/PieceMessage.h (TorrentMan.h): Removed.
  10355. * src/RequestMessage.h (TorrentMan.h): Removed.
  10356. * src/TorrentDownloadEngine.h
  10357. (uploadLength): New variable.
  10358. (btContext): New variable.
  10359. (btRuntime): New variable.
  10360. (pieceStorage): New variable.
  10361. (peerStorage): New variable.
  10362. (btAnnounce): New variable.
  10363. (btProgressInfoFile): New variable.
  10364. (torrentMan): Removed.
  10365. (setBtContext): New function.
  10366. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  10367. peerStorage, btAnnounce, btProgressInfoFile.
  10368. * src/Piece.h
  10369. (toString): New function.
  10370. (Pieces): New type definition.
  10371. * src/Peer.h
  10372. (active): New variable.
  10373. (Peer): Added active.
  10374. (activate): Set active to true.
  10375. (deactivate): Set active to false.
  10376. (isActive): New function.
  10377. (Peers): New type definition.
  10378. * src/DirectDiskAdaptor.cc
  10379. (getFilePath): Use the accessor methods of FileEntry.
  10380. * src/TorrentConsoleDownloadEngine.h
  10381. (afterEachIteration): New function.
  10382. * src/TorrentConsoleDownloadEngine.cc
  10383. (haltRequested): New variable.
  10384. (sendStatistics): Use pieceStorage, btRuntime.
  10385. (afterEachIteration): New function.
  10386. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  10387. * src/Directry.h
  10388. (Directory): New function.
  10389. (DirectoryHandle): New type definition.
  10390. * src/BtProgressInfoFile.h: New file.
  10391. * src/RequestMessage.cc: Use pieceStorage.
  10392. * src/BtRuntime.h: New file.
  10393. * src/DefaultBtContext.cc: New file.
  10394. * src/BitfieldMan.h
  10395. (getCompletedLength): New function(private).
  10396. (getCompletedLength): New function.
  10397. (getFilteredCompletedLength): New function.
  10398. * src/BitfieldMan.h
  10399. (getCompletedLength): New function(private).
  10400. (getCompletedLength): New function.
  10401. (getFilteredCompletedLength): New function.
  10402. * src/MultiDiskAdaptor.cc
  10403. (mkdir): New function.
  10404. (openFile): Call mkdir().
  10405. (initAndOpenFile): Call mkdir().
  10406. * src/CancelMessage.h
  10407. (TorrentMan.h): Removed.
  10408. * src/RejectMessage.h
  10409. (TorrentMan.h): Removed.
  10410. * src/DownloadEngineFactory.cc
  10411. (DefaultPieceStorage.h): New include.
  10412. (DefaultPeerStorage.h): New include.
  10413. (DefaultBtAnnounce.h): New include.
  10414. (DefaultBtProgressInfoFile.h): New include.
  10415. (newTorrentConsoleEngine): Rewritten.
  10416. * src/ShareRatioSeedCriteria.h
  10417. (torrentMan): Removed.
  10418. (btContext): New variable.
  10419. (peerStorage): New variable.
  10420. (btRuntime): New variable.
  10421. (evaluate): Use btContext, btRuntime, peerStorage.
  10422. * src/AnnounceTier.h: New file.
  10423. * src/BtAnnounce.h: New file.
  10424. * src/BtRegistry.h: New file.
  10425. * src/PeerInitiateConnectionCommand.h: Added btContext.
  10426. * src/PeerConnection.h (TorrentMan.h): Removed.
  10427. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  10428. * src/Util.h
  10429. (slice): Added an argument.
  10430. * src/Util.cc
  10431. (slice): Added an argument to control whether trim is made or not.
  10432. * src/PeerStorage.h: New file.
  10433. * src/BtRegistry.cc: New file.
  10434. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  10435. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  10436. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  10437. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  10438. * src/TorrentRequestInfo.h
  10439. (e): Removed.
  10440. (showFileEntry): Added an argument.
  10441. (getDownloadEngine): Return 0.
  10442. * src/DefaultBtAnnounce.h: New file.
  10443. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  10444. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  10445. * src/PeerMessageFactory.h
  10446. (btContext): New variable.
  10447. (pieceStorage): New variable.
  10448. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  10449. btAnnounce.
  10450. * src/DiskAdaptor.cc
  10451. (DiskAdaptor): Removed topDir.
  10452. (~DiskAdaptor): Removed topDir.
  10453. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  10454. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  10455. * src/File.h (mkdirs): New function.
  10456. * src/DefaultPeerStorage): New file.
  10457. * src/DownloadEngineFactory.h
  10458. (newTorrentConsoleEngine): Use btContext.
  10459. * src/BtContextAwareCommand.cc: New file.
  10460. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  10461. * src/PeerMessage.h
  10462. (btContext): New variable.
  10463. (peerStorage): New variable.
  10464. (pieceStorage): New variable.
  10465. (setBtContext): New function.
  10466. * src/Directry.cc
  10467. (Directory): New function.
  10468. (createDir): Do nothing if name.size() == 0.
  10469. * src/AnnounceList.h
  10470. (AnnounceTier): Removed.
  10471. (AnnounceTiers): Removed.
  10472. * src/DefaultPieceStorage.h: New file.
  10473. * src/Piece.cc (toString): New function.
  10474. To fix typo:
  10475. * src/main.cc (showVersion): Fixed typo.
  10476. To fix compile warning:
  10477. * src/DelegatingPeerListProcessor.cc
  10478. (canHandle): Added "return false".
  10479. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10480. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  10481. make the process of announce request testable.
  10482. * src/TrackerWatcherCommand.h
  10483. (TimeA2.h): Removed.
  10484. (interval): Removed.
  10485. (checkPoint): Removed.
  10486. (createRequestCommand): Added an argument 'url'.
  10487. (TrackerWatherCommand): Removed interval.
  10488. (createCommand): New function.
  10489. * src/DownloadEngineFactory.cc
  10490. (newTorrentConsoleEngine): Updated according to the changes in
  10491. TrackerWatherCommand.
  10492. * src/TorrentMan.cc
  10493. (DelegatingPeerListProcessor.h): New includes.
  10494. (TorrentMan): Added the initialization of announceInterval.
  10495. (isStoppedAnnounceReady): New function.
  10496. (isCompletedAnnounceReady): New function.
  10497. (isDefaultAnnounceReady): New function.
  10498. (isAnnounceReady): New function.
  10499. (getAnnounceUrl): New function.
  10500. (announceStart): New function.
  10501. (announceFailure): New function.
  10502. (announceSuccess): New function.
  10503. (isAllAnnounceFailed): New function.
  10504. (resetAnnounce): New function.
  10505. (processAnnounceResponse): New function.
  10506. (needMorePeerConnection): New function.
  10507. (noMoreAnnounce): New function.
  10508. * src/TrackerUpdateCommand.h
  10509. (getTrackerResponse): int->size_t
  10510. * src/TorrentMan.h
  10511. (isStoppedAnnounceReady): New function.
  10512. (isCompletedAnnounceReady): New function.
  10513. (isDefaultAnnounceReady): New function.
  10514. (announceInterval): New variable.
  10515. (isAnnounceReady): New function.
  10516. (getAnnounceUrl): New function.
  10517. (announceStart): New function.
  10518. (announceFailure): New function.
  10519. (announceSuccess): New function.
  10520. (isAllAnnounceFailed): New function.
  10521. (resetAnnounce): New function.
  10522. (processAnnounceResponse): New function.
  10523. (needMorePeerConnection): New function.
  10524. (noMoreAnnounce): New function.
  10525. * src/TrackerWatcherCommand.cc
  10526. (TrackerWatherCommand): Removed interval and checkPoint.
  10527. (execute): Rewritten.
  10528. (createCommand): New function.
  10529. (createRequestCommand): Rewritten.
  10530. * src/TrackerUpdateCommand.cc
  10531. (MetaFileUtil.h): Removed.
  10532. (DelegatingPeerListProcessor.h): Removed.
  10533. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  10534. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10535. Request -> RequestHandle:
  10536. * src/HttpResponseCommand.h: Request->RequestHandle
  10537. * src/AbstractCommand.cc: Request->RequestHandle
  10538. * src/HttpDownloadCommand.cc: Request->RequestHandle
  10539. * src/HttpRequestCommand.cc: Request->RequestHandle
  10540. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  10541. * src/AbstractCommand.h: Request->RequestHandle
  10542. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  10543. * src/HttpResponseCommand.cc: Request->RequestHandle
  10544. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  10545. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  10546. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  10547. * src/HttpConnection.h: Request->RequestHandle
  10548. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  10549. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  10550. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10551. * src/DownloadCommand.h: Request->RequestHandle
  10552. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  10553. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  10554. * src/HttpRequestCommand.h: Request->RequestHandle
  10555. * src/FtpNegotiateCommand.h: Request->RequestHandle
  10556. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10557. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  10558. * src/HttpDownloadCommand.h: Request->RequestHandle
  10559. * src/FtpConnection.cc: Request->RequestHandle
  10560. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  10561. * src/UrlRequestInfo.cc: Request->RequestHandle
  10562. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  10563. * src/HttpConnection.h: Request->RequestHandle
  10564. * src/DownloadCommand.cc: Request->RequestHandle
  10565. * src/FtpConnection.h: Request->RequestHandle
  10566. * src/FtpDowndloadCommand.h: Request->RequestHandle
  10567. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  10568. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  10569. * src/Request.h
  10570. (SharedHandle.h): New include.
  10571. (RequestHandle): New type definition.
  10572. (Requests): Redefined.
  10573. To add MULTITRACKER support:
  10574. * src/TrackerWatcherCommand.h
  10575. (createRequestCommand): New function.
  10576. * src/DownloadEngineFactory.cc
  10577. (newTorrentConsoleEngine): Removed req.
  10578. * src/prefs.h
  10579. (PREF_TRACKER_MAX_TRIES): New definition.
  10580. * src/TorrentMan.cc
  10581. (TorrentMan): Removed req. Added trackerNumTry.
  10582. (~TorrentMan): Removed req.
  10583. (setupInternal1): Added announceList.
  10584. * src/TorrentRequestInfo.cc
  10585. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  10586. announces is now specified by PREF_TRACKER_MAX_TRIES.
  10587. * src/main.cc
  10588. (main): Added PREF_TRACKER_MAX_TRIES.
  10589. * src/TorrentMan.h
  10590. (Request.h): Removed.
  10591. (AnnounceList.h): New include.
  10592. (trackerNumTry): New variable.
  10593. (req): Removed.
  10594. (announceList): New variable.
  10595. * src/TrackerWatcherCommand.cc
  10596. (execute): Rewritten.
  10597. (createRequestCommand): New function.
  10598. * src/TrackerUpdateCommand.cc
  10599. (execute): Updated with the use of AnnounceList.
  10600. * src/AnnounceList.cc: New class.
  10601. * src/AnnounceList.h: New class.
  10602. To fix typo:
  10603. * src/prefs.h
  10604. (PREF_MAX_TRIES): max_try->max_tries
  10605. To not to decode "+" as space in URL decode:
  10606. * src/Util.cc
  10607. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  10608. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10609. To add timeout to async name resolution:
  10610. * src/AbstractCommand.h
  10611. (nameResolveFinished): New function. This is not elegant way. It needs
  10612. to be more refined.
  10613. (nameResolverCheck): New variable.
  10614. * src/AbstractCommand.cc
  10615. (AbstractCommand): Added nameResolverCheck.
  10616. (execute): Added the check whether the name resolution has finished.
  10617. (setNameResolverCheck): Set nameResolverCheck to true.
  10618. (disableNameResolverCheck): Set nameResolverCheck to false.
  10619. (nameResolverFinished): New function.
  10620. * src/FtpInitiateConnectionCommand.h
  10621. (nameResolverFinished): New function.
  10622. * src/FtpInitiateConnectionCommand.cc
  10623. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10624. * src/HttpInitiateConnectionCommand.h
  10625. (nameResolverFinished): New function.
  10626. * src/HttpInitiateConnectionCommand.cc
  10627. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10628. * src/prefs.h
  10629. (PREF_DNS_TIMEOUT): New definition.
  10630. * src/main.cc
  10631. (main): Added PREF_DNS_TIMEOUT.
  10632. To add the support for a non-compact response from a tracker:
  10633. * src/PeerListProcessor.h: New class.
  10634. * src/DefaultPeerListProcessor.h: New class.
  10635. * src/DefaultPeerListProcessor.cc: New class.
  10636. * src/CompactPeerListProcessor.h: New class.
  10637. * src/CompactPeerListProcessor.cc: New class.
  10638. * src/DelegatingPeerListProcessor.h: New class.
  10639. * src/DelegatingPeerListProcessor.cc: New class.
  10640. * src/TorrentMan.cc
  10641. (addPeer): New function(overload).
  10642. (addPeer): Delete unused peers only when new peer is added.
  10643. * src/TorrentMan.h
  10644. (PeerListProcessor.h): Included.
  10645. (Peers): Removed.
  10646. (addPeer): New function(overload).
  10647. * src/TrackerUpdateCommand.cc
  10648. (netinet/in.h): Removed.
  10649. (DelegatingPeerListProcessor.h): Included.
  10650. (execute): Updated to use DelegatingPeerListProcessor.
  10651. To fix the memory leak in TorrentMan::peers:
  10652. * src/PeerAbstractCommand.cc
  10653. (onAbort): Added peer->resetStatus().
  10654. * src/Peer.h
  10655. (resetStatus): Made public.
  10656. To improve the precision of the speed calculation:
  10657. * src/SpeedCalc.h
  10658. (nextInterval): New variable.
  10659. * src/SpeedCalc.cc
  10660. (reset): Added nextInterval.
  10661. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  10662. (changeSw): Set nextInterval to 15 seconds relative to the current
  10663. instant time.
  10664. * src/main.cc
  10665. (showVersion): Updated.
  10666. (showUsage): Updated.
  10667. * Release 0.8.1
  10668. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10669. * src/main.cc
  10670. (showUsage): Commented out --min-segment-size option.
  10671. (main): Commented out --min-segment-size option.
  10672. * Release 0.8.0
  10673. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10674. * src/*.{h,cc}:
  10675. Added an exception to the license which allows linking with OpenSSL.
  10676. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10677. * src/AbstractCommand.cc
  10678. (execute): Check whether the download has finished before checking
  10679. socket status.
  10680. Return true if peerStat->getStatus() == REQUEST_IDLE.
  10681. Do not exit even if no segment is available.
  10682. * src/prefs.h
  10683. (PREF_STARTUP_IDLE_TIME): New definition.
  10684. * src/PeerInteractionCommand.cc
  10685. (executeInternal): Removed max speed limit. Because it performs bad.
  10686. (receiveMessages): Added max speed limit. This was better than above,
  10687. but still a little bit to be desired. Sometimes the download speed
  10688. became much faster than I specified.
  10689. * src/SpeedCalc.h
  10690. (start): New variable.
  10691. (accumulatedLength): New variable.
  10692. (getAvgSpeed): New function.
  10693. * src/SpeedCalc.cc
  10694. (reset): Added start, accumulatedLength.
  10695. (update): Added calculation of an average speed.
  10696. (getAvgSpeed): New function.
  10697. * src/DownloadCommand.h
  10698. (sw): Removed.
  10699. * src/main.cc
  10700. (main): Added PREF_STARTUP_IDLE_TIME.
  10701. * src/PeerStat.h
  10702. (STATUS): Added REQUEST_IDLE.
  10703. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  10704. (getAvgDownloadSpeed): New function
  10705. (requestIdle): New function.
  10706. * src/SegmentMan.h
  10707. (SegmentEntryHandle): New type definition.
  10708. (SegmentEntries): Now holds SegmentEntryHandle.
  10709. (findSlowerSegmentEntry): New funtion.
  10710. * src/SegmentMan.cc
  10711. (save): Updated according to the changes in SegmentEntries.
  10712. (read): Updated according to the changes in SegmentEntries.
  10713. (FindSegmentEntryByIndex): Updated according to the changes in
  10714. SegmentEntries.
  10715. (FindSegmentEntryByCuid): Updated according to the changes in
  10716. SegmentEntries.
  10717. (checkoutSegment): Updated according to the changes in SegmentEntries.
  10718. (onNullBitfield): Updated according to the changes in SegmentEntries.
  10719. Renamed uitr as itr.
  10720. (findSlowerSegmentEntry): New function.
  10721. (getSegment): Updated according to the changes in SegmentEntries.
  10722. Added the feature that cancels the segment with slow server and fast
  10723. one takes it over.
  10724. (cancelSegment): Updated according to the changes in SegmentEntries.
  10725. (getDownloadLength): Updated according to the changes in
  10726. SegmentEntries.
  10727. (init): Assigned 0 to bitfield after deleting it.
  10728. * src/DownloadCommand.cc
  10729. (STARTUP_IDLE_TIME): Removed.
  10730. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  10731. * src/PeerChokeCommand.cc
  10732. (optUnchokingPeer): Updated according to the changes in Peer.
  10733. (ResetDelta): Removed.
  10734. (UploadFaster): Updated according to the changes in Peer.
  10735. (DownloadFaster): Updated according to the changes in Peer.
  10736. (execute): I clarify the meaning of "upload" and "download" here.
  10737. "upload" means the transfer from localhost to remote host.
  10738. "download" means the transfer from remote host to localhost.
  10739. Based on this rule, I swapped orderByUploadRate and
  10740. orderByDownloadRate.
  10741. * src/PeerInteractionCommand.cc
  10742. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  10743. (executeInternal): Removed the argument of
  10744. peerInteraction->sendMessages().
  10745. (receiveMessages): Rewritten download speed limit.
  10746. (sendKeepAlive): Removed peerInteraction->sendMessages().
  10747. * src/HttpResponseCommand.cc
  10748. (handleDefaultEncoding): If file size is unknown in torrent request,
  10749. do not call segmentMan->initBitfield() here.
  10750. Disabled persistent connection feature in torrent request.
  10751. * src/UrlRequestInfo.h
  10752. (UrlRequestInfo): Removed const qualifier from option.
  10753. * src/TorrentMan.h
  10754. (TransferStat): New class.
  10755. (deltaDownloadLength): Removed.
  10756. (deltaUploadLength): Removed.
  10757. (addDeltaDownloadLength): Removed.
  10758. (getDeltaDownloadLength): Removed.
  10759. (resetDeltaDownloadLength): Removed.
  10760. (addDeltaUploadLength): Removed.
  10761. (getDeltaUploadLength): Removed.
  10762. (resetDeltaUploadLength): Removed.
  10763. (addActivePeer): Added peer->activate().
  10764. (deleteActivePeer): Added peer->deactivate().
  10765. (calculateStat): New function.
  10766. * src/TorrentMan.cc
  10767. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  10768. (calculateStat): New function.
  10769. * src/PeerInteraction.h
  10770. (uploadLimit): Removed.
  10771. (option): New variable.
  10772. (setUploadLimit): Removed.
  10773. (getUploadSpeed): Removed.
  10774. (sendMessages): Removed the argument "currentUploadSpeed".
  10775. * src/PeerInteraction.cc
  10776. (prefs.h): Included.
  10777. (PeerInteraction): Removed uploadLimit. Added option.
  10778. (sendMessages): Rewritten upload speed limit.
  10779. (sendHandshake): Removed the argument from sendMessages().
  10780. (sendBitfield): Removed the argument from sendMessages().
  10781. * src/PeerAbstractCommand.cc
  10782. (execute): Commented out the portion of upload limit.
  10783. (onAbort): Removed peer->resetStatus().
  10784. * src/TorrentRequestInfo.cc
  10785. (timeoutSpecified): Declared extern.
  10786. (execute): Set timeout to 180 if timeout is not specified by.
  10787. command-line.
  10788. * src/PieceMessage.cc
  10789. (receivedAction): Added peer->updateDownloadLength().
  10790. Removed peer->addPeerUpload().
  10791. Removed torrentMan->addDeltaDownloadLength().
  10792. (send): Added peer->updateUploadLength().
  10793. Removed peer->addPeerDownload().
  10794. Removed torrentMan->addDeltaUploadLength().
  10795. * src/main.cc
  10796. (timeoutSpecified): New variable.
  10797. (main): Set timeoutSpecified to false.
  10798. If the command-line option "--upload-limit" is specified, then
  10799. timeoutSpecified is set to true. This option will remain in the next
  10800. release, but be deprecated in the future release.
  10801. * src/TorrentRequestInfo.h
  10802. (TorrentRequestInfo): Removed const qualifier from op.
  10803. * src/PeerStat.h
  10804. (uploadSpeed): New variable.
  10805. (PeerStat): Added default value to cuid.
  10806. (calculateUploadSpeed): New function.
  10807. (updateUploadLength): New function.
  10808. (getMaxUploadSpeed): New function.
  10809. (getAvgUploadSpeed): New function.
  10810. (reset): Added uploadSpeed. Set status to IDLE.
  10811. * src/TorrentDownloadEngine.h
  10812. (cp): Declared as Time.
  10813. (sessionDownloadLengthArray): Removed.
  10814. (sessionUploadLengthArray): Removed.
  10815. (currentCp): Removed.
  10816. (lastCalcStat): New variable
  10817. (lastElapsed): Removed.
  10818. (sessionDownloadLength): Removed.
  10819. (calculateStat): New function.
  10820. * src/TorrentDownloadEngine.cc
  10821. (initStatistics): Removed lastElapsed, cp[],
  10822. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  10823. currentCp, sessionDownloadLength.
  10824. Added cp.reset() and lastCalcStat.reset().
  10825. (calculateSpeed): Changed the name of the argument.
  10826. (calculateStatistics): Rewritten.
  10827. (calculateStat): New function.
  10828. * src/Peer.h
  10829. (PeerStat.h): Included.
  10830. (peerUpload): Removed.
  10831. (peerDownload): Removed.
  10832. (peerStat): New variable.
  10833. (sessionUploadLength): New variable.
  10834. (sessionDownloadLength): New variable.
  10835. (deltaUpload): Removed.
  10836. (deltaDownload): Removed.
  10837. (resetStatus): Made private.
  10838. (Peer): Added sessionUploadLength, sessionDownloadLength.
  10839. Removed peerUpload, peerDownload.
  10840. (updateUploadLength): New function.
  10841. (addDeltaUpload): Removed.
  10842. (updateDownloadLength): New function.
  10843. (resetDeltaUpload): Removed.
  10844. (getDeltaUpload): Removed.
  10845. (addDeltaDownload): Removed.
  10846. (calculateUploadSpeed): New function.
  10847. (resetDeltaDownload): Removed.
  10848. (getDeltaDownload): Removed.
  10849. (calculateDownloadSpeed): New function.
  10850. (getSessionUploadLength): New function.
  10851. (getSessionDownloadLength): New function.
  10852. (activate): New function.
  10853. (deactivate): New function.
  10854. (addPeerUpload): Removed.
  10855. (setPeerUpload): Removed.
  10856. (getPeerUpload): Removed.
  10857. (addPeerDownload): Removed.
  10858. (setPeerDownload): Removed.
  10859. (getPeerDownload): Removed.
  10860. * src/Peer.cc
  10861. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  10862. * src/MetalinkRequestInfo.h
  10863. (MetalinkRequestInfo): Removed const qualifier from op.
  10864. * src/RequestInfo.h
  10865. (op): Removed const qualifier.
  10866. (RequestInfo): Removed const qualifier from op.
  10867. * src/prefs.h
  10868. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  10869. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  10870. * src/PeerInteractionCommand.cc
  10871. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  10872. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  10873. * src/PeerInteraction.cc
  10874. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  10875. * src/main.cc
  10876. (showUsage): Updated the description of "--lowest-speed-limit" option.
  10877. Added the description of "--max-download-limit" option.
  10878. Removed the description of "--upload-limit" option.
  10879. Added the description of "--max-upload-limit" option.
  10880. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  10881. Added "--max-download-limit" option and "--max-upload-limit" option.
  10882. Added the warning message if "--upload-limit" option is used.
  10883. * src/DownloadCommand.cc
  10884. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  10885. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10886. To rewrite segment download mechanism for HTTP/FTP download.
  10887. Use BitfieldMan to manage segment download.
  10888. * src/HttpResponseCommand.h
  10889. (executeInternal): Pass the reference of segment.
  10890. * src/AbstractCommand.cc
  10891. (prepareForRetry): Call segmentMan->cancelSegment here.
  10892. (onAbort): Call segmentMan->cancelSegment here.
  10893. * src/HttpDownloadCommand.cc
  10894. (prepareForNextSegment): New function.
  10895. * src/DownloadEngineFactory.cc
  10896. (newConsoleEngine): Removed splitter.
  10897. (newTorrentConsoleEngine): Removed splitter.
  10898. * src/Request.h
  10899. (segment): Renamed from seg.
  10900. * src/FtpInitiateConnectionCommand.h
  10901. (executeInternal): Pass the reference of segment.
  10902. * src/AbstractCommand.h
  10903. (executeInternal): Pass the reference of segment.
  10904. * src/pref.h
  10905. (PREF_SEGMENT_SIZE): New definition.
  10906. * src/HttpProxyRequestCommand.h
  10907. (executeInternal): Pass the reference of segment.
  10908. * src/HttpResponseCommand.cc
  10909. (checkResponse): Allowed status 206 when a request range starts 0.
  10910. (handleDefaultEncoding): Rewritten the code related to Segment.
  10911. (handleOtherEncoding): Rewritten the code related to Segment.
  10912. * src/SegmentMan.h
  10913. (SegmentEntry): New class.
  10914. (SegmentEntries): New type definition.
  10915. (bitfield): New variable.
  10916. (usedSegmentEntries): New variable.
  10917. (onNullBitfield): New function.
  10918. (checkoutSegment): New function.
  10919. (segments): Removed.
  10920. (splitter): Removed.
  10921. (unregisterId): Removed.
  10922. (getSegment): New function(overload)
  10923. (getDownloadedSize): Removed.
  10924. (cancelSegment): New function.
  10925. (completeSegment): New function.
  10926. (initBitfield): New function.
  10927. (hasSegment): New function.
  10928. (getDownloadLength): New function.
  10929. * src/BitfieldMan.h
  10930. (getStartIndex): New function.
  10931. (getEndIndex): New function.
  10932. (getMissingUnusedIndex): New function(overload).
  10933. (getSparseMissingUnusedIndex): New function.
  10934. * src/BitfieldMan.cc
  10935. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  10936. (getMissingUnusedIndex): New function(overload).
  10937. (Range): New class.
  10938. (getStartIndex): New function.
  10939. (getEndIndex): New function.
  10940. (getSparseMissingUnusedIndex): New function.
  10941. (isBitSetInternal): Return false if the given index is less than 0.
  10942. * src/HttpInitiateConnectionCommand.h
  10943. (executeInternal): Pass the reference of segment.
  10944. * src/FtpNegotiateCommand.h
  10945. (executeInternal): Pass the reference of segment.
  10946. * src/FtpNegotiateCommand.cc
  10947. (recvSize): Initialize bitfield here.
  10948. * src/FtpTunnelResponseCommand.h
  10949. (executeInternal): Pass the reference of segment.
  10950. * src/HttpConnection.cc
  10951. (createRequest): Rewritten range header processing.
  10952. * src/DownloadCommand.h
  10953. (executeInternal): Pass the reference of segment.
  10954. (prepareForRetry): Removed.
  10955. (prepareForNextSegment): Added an argument segment. Made it a virtual
  10956. function.
  10957. * src/main.cc
  10958. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  10959. * src/SegmentMan.cc
  10960. (SegmentMan): Added bitfield. Removed splitter.
  10961. (~SegmentMan): Added bitfield. Removed splitter.
  10962. (unregisterId): Removed.
  10963. (getSegment): Rewritten.
  10964. (updateSegment): Rewritten.
  10965. (save): Rewritten.
  10966. (read): Rewritten.
  10967. (finished): Rewritten.
  10968. (getDownloadedSize): Removed.
  10969. (initBitfield): New function.
  10970. (FindSegmentEntryByIndex): New function object.
  10971. (FindSegmentEntryByCuid): New function object.
  10972. (checkoutSegment): New function.
  10973. (onNullBitfield): New function.
  10974. (getSegment): New function(overload).
  10975. (CancelSegment): New function object.
  10976. (cancelSegment): New function.
  10977. (completeSegment): New function.
  10978. (hasSegment): New function.
  10979. (getDownloadLength): New function.
  10980. * src/FtpInitiateConnectionCommand.cc
  10981. (executeInternal): Load .aria2 file after hostname resolution finishes.
  10982. * src/Segment.h: Rewritten.
  10983. * src/Segment.cc (operator<<): New function.
  10984. * src/HttpDownloadCommand.h
  10985. (prepareForNextSegment): New function.
  10986. * src/Request.cc
  10987. (resetUrl): Made segment null.
  10988. * src/DownloadEngine.cc
  10989. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  10990. * src/HttpProxyRequestCommand.h
  10991. (executeInternal): Pass the reference of segment.
  10992. * src/DownloadCommand.cc
  10993. (executeInternal): Rewritten the code related to Segment.
  10994. (prepareForRetry): Removed.
  10995. (prepareForNextSegment): Rewritten.
  10996. * src/FtpTunnelResponseCommand.h
  10997. (executeInternal): Pass the reference of segment.
  10998. To add HTTP 1.1 persistent connection support(experimental)
  10999. * src/HttpRequestCommand.cc
  11000. (executeInternal): Disable keep alive if it is disabled by
  11001. configuration.
  11002. * src/Request.h
  11003. (keepAlive): New variable.
  11004. (isKeepAlive): New function.
  11005. (setKeepAlive): New function.
  11006. * src/pref.h
  11007. (PREF_HTTP_KEEP_ALIVE): New definition.
  11008. * src/HttpResponseCommand.cc
  11009. (executeInternal): Check the remote server supports keep alive.
  11010. * src/HttpConnection.cc
  11011. (createRequest): Send "Connection: close" only if keep alive is
  11012. disabled.
  11013. * src/main.cc
  11014. (main):
  11015. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  11016. To add max download speed limit:
  11017. * src/pref.h
  11018. (PREF_MAX_SPEED_LIMIT): New definition.
  11019. * src/PeerInteractionCommand.cc
  11020. (executeInternal): Added max download speed limit. Not tested yet.
  11021. * src/SegmentMan.h
  11022. (PeerStats): New type definition.
  11023. (peerStats): New variable.
  11024. (registerPeerStat): New function.
  11025. (FindPeerStat): New function object.
  11026. (getPeerStat): New function.
  11027. (calculateDownloadSpeed): New function.
  11028. * src/SpeedCalc.h: New class.
  11029. * src/SpeedCalc.cc: New class.
  11030. * src/main.cc
  11031. (main):
  11032. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  11033. download speed is not restricted).
  11034. * src/PeerStat.h: New class.
  11035. * src/SegmentMan.cc
  11036. (registerPeerStat): New function.
  11037. (calculateDownloadSpeed): New function.
  11038. * src/DownloadCommand.cc
  11039. (STARTUP_IDLE_TIME): New definition.
  11040. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  11041. downloadStart.
  11042. (~DownloadCommand): Call peerStat->downloadStop.
  11043. (executeInternal): Added download speed limitter. Rewritten lowest
  11044. speed limitter.
  11045. * src/HttpConnection.cc
  11046. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  11047. * src/AbstractCommand.cc
  11048. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  11049. Added hostname to the error message.
  11050. * src/ConsoleDownloadEngine.cc
  11051. (calculateStatistics): Initialize psize with dlSize.
  11052. * src/PieceMessage.cc
  11053. (receivedAction): Do not call peerInteraction->abortPiece here.
  11054. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  11055. * src/BitfieldMan.h
  11056. (clearAllUseBit): New function.
  11057. (setAllUseBit): New function.
  11058. * src/BitfieldMan.cc
  11059. (clearAllBit): Do not clear useBitfield here.
  11060. (clearAllUseBit): New function.
  11061. (setAllUseBit): New function.
  11062. * src/Piece.cc
  11063. (clearAllBlock): Call bitfield->clearAllUseBit().
  11064. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11065. To make filename URL-decoded:
  11066. * src/HttpResponseCommand.h: Updated doc.
  11067. * src/HttpResponseCommand.cc
  11068. (determinFilename): Made filename URL-decoded.
  11069. * src/FtpInitiateConnectionCommand.cc
  11070. (executeInternal): Made filename URL-decoded.
  11071. * src/Util.h (urldecode): New function.
  11072. * src/Util.cc (urldecode): New function.
  11073. To fix a bug that caused assertion failure in ares_strerror:
  11074. * src/NameResolver.cc (callback): Fixed the bug.
  11075. * Release 0.7.3
  11076. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11077. To add --seed-time and --seed-ratio command-line option:
  11078. * src/Option.h (getAsDouble): New function.
  11079. * src/Option.cc (getAsDouble): New function.
  11080. * src/SeedCheckCommand.h: New class.
  11081. * src/SeedCheckCommand.cc: New class.
  11082. * src/DownloadEngineFactory.cc
  11083. (SeedCheckCommand.h): Included.
  11084. (UnionSeedCriteria.h): Included.
  11085. (TimeSeedCriteria.h): Included.
  11086. (ShareRatioSeedCriteria.h): Included.
  11087. (newTorrentConsoleEngine): Added the processing of seed option.
  11088. * src/SeedCriteria.h: New class.
  11089. * src/ShareRatioSeedCriteria.h: New class.
  11090. * src/TimeSeedCriteria.h: New class.
  11091. * src/UnionSeedCriteria.h: New class.
  11092. * src/prefs.h
  11093. (PREF_SEED_TIME): New definition.
  11094. (PREF_SEED_RATIO): New definition.
  11095. * src/main.cc
  11096. (showUsage): Added --seed-time and --seed-ratio option.
  11097. (main): Added --seed-time and --seed-ratio option.
  11098. Made default log file name "/dev/null".
  11099. * src/SharedHandle.h
  11100. (SharedHandle): Copy constructor. Made it assignable from the
  11101. SharedHandle of the subclasses.
  11102. (operator=): Made it assignable from the SharedHandle of the
  11103. subclasses.
  11104. (getRefCount): New function.
  11105. To add notice log level and the switch to write log to stdout. This
  11106. switch is configurable per log level.
  11107. * src/Logger.h
  11108. (notice): New function.
  11109. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  11110. constant.
  11111. * src/LogFactory.cc
  11112. (getInstance): The use of NullLogger was removed. A log message with
  11113. notice log level was made written to stdout along with log file.
  11114. * src/NullLogger.h
  11115. (notice): New function.
  11116. * src/SimpleLogger.h
  11117. (writeHeader): Added the 'file' argument.
  11118. (writeLog): Added the 'file' argument.
  11119. (writeFile): New function.
  11120. (stdoutField): New variable.
  11121. (SimpleLogger): Removed the default constructor.
  11122. (SimpleLogger): Made the default value of logfile 0.
  11123. (debug): Added 'virtual' keyword.
  11124. (info): Added 'virtual' keyword.
  11125. (warn): Added 'virtual' keyword.
  11126. (error): Added 'virtual' keyword.
  11127. (notice): New function.
  11128. (setStdout): New function.
  11129. * src/SimpleLogger.cc
  11130. (WRITE_LOG): Replaced writeLog with writeFile.
  11131. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  11132. (SimpleLogger): Removed the default constructor.
  11133. (setStdout): New function.
  11134. (writeLog): Added the handling of NOTICE log level.
  11135. (writeFile): New function.
  11136. (notice): New function.
  11137. * src/TorrentMan.h: Updated doc.
  11138. * src/BitfieldMan.h: Updated doc.
  11139. * src/TrackerWatcherCommand.cc
  11140. (execute): Return true if error occurred in the request to the tracker
  11141. and halt is requested.
  11142. * src/TrackerUpdateCommand.cc
  11143. (execute): Return true if error occurred in the request to the tracker
  11144. and halt is requested.
  11145. To call onDownloadComplete from TorrentMan::completePiece(), not from
  11146. DownloadEngine:
  11147. * src/TorrentConsoleDownloadEngine.h
  11148. (onSelectiveDownloadingCompletes): Removed.
  11149. * src/TorrentConsoleDownloadEngine.cc
  11150. (onSelectiveDownloadingCompletes): Removed.
  11151. * src/TorrentDownloadEngine.h
  11152. (onEndOfRun): Added 'virtual' keyword.
  11153. (afterEachIteration): Removed.
  11154. (onSelectiveDownloadingCompletes): Removed.
  11155. * src/TorrentDownloadEngine.cc
  11156. (onEndOfRun): Removed filenameFixed.
  11157. (afterEachIteration): Removed.
  11158. * src/TorrentMan.cc
  11159. (completePiece): Call onDownloadComplete here.
  11160. (onDownloadComplete): Added 2 log messages.
  11161. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11162. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  11163. * src/NameResolver.h: Added the prototype declaration of callback().
  11164. To support c-ares library:
  11165. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11166. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11167. * src/FtpInitiateConnectionCommand.h:
  11168. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11169. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11170. * src/HttpInitiateConnectionCommand.h:
  11171. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11172. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  11173. Added thes upport of c-ares's ares_strerror(the idea came from patch
  11174. #1542285 by tizianomueller)
  11175. * src/HttpInitiateConnectionCommand.cc:
  11176. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11177. * src/FtpInitiateConnectionCommand.cc:
  11178. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11179. * src/DownloadEngine.h:
  11180. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11181. * src/DownloadEngine.cc:
  11182. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11183. To fix the bug that causes compilation failure with metalink-support
  11184. disabled(bug#1543587):
  11185. * src/main.cc: Fixed with the patch by tizianomueller.
  11186. * Release 0.7.2
  11187. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11188. * src/main.cc
  11189. (main): Added a message to inform users that aria2 is starting to
  11190. verify checksum.
  11191. * src/RequestInfo.cc
  11192. (printDownloadAbortMessage): Added a message to inform users that
  11193. transfer can be resumed.
  11194. * src/FeatureConfig.cc
  11195. (FEATURE_ASYNC_DNS): New definition.
  11196. (FeatureConfig): Added aysnc DNS entry.
  11197. To replace CommandUuid with Command* in SocketEntry and
  11198. NameResolverEntry:
  11199. * src/DownloadEngine.h
  11200. (CommandUuids): Removed.
  11201. (SocketEntry::commandUuid): Removed.
  11202. (SocketEntry::command): New variable.
  11203. (SocketEntry::SocketEntry): Updated.
  11204. (SocketEntry::operator==): Updated.
  11205. (NameResolverEntry::commandUuid): Removed.
  11206. (NameResolverEntry::command): New variable.
  11207. (NameResolverEntry::NameResolverEntry): Updated.
  11208. (NameResolverEntry::operator==): Updated.
  11209. (waitData): Changed the argument type.
  11210. (addSocketForReadCheck): Changed the argument type.
  11211. (deleteSocketForReadCheck): Changed the argument type.
  11212. (addSocketForWriteCheck): Changed the argument type.
  11213. (deleteSocketForWriteCheck): Changed the argument type.
  11214. (addNameResolverCheck): Changed the argument type.
  11215. (deleteNameResolverCheck): Changed the argument type.
  11216. * src/DownloadEngine.cc
  11217. (FindCommand): Removed.
  11218. (run): Removed activeUuid. Added activeCommands instead.
  11219. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  11220. (AccumulateActiveCommand): New function object.
  11221. (waitData): Use AccumulateActiveCommand.
  11222. (addSocketForReadCheck): Use Command instead of CommandUuid.
  11223. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  11224. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  11225. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  11226. (addNameResolverCheck): Use Command instead of CommandUuid.
  11227. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  11228. * src/AbstractCommand.cc
  11229. (disableReadCheckSocket): Updated according to the changes in
  11230. DownloadEngine.
  11231. (setReadCheckSocket): Updated according to the changes in
  11232. DownloadEngine.
  11233. (disableWriteCheckSocket): Updated according to the changes in
  11234. DownloadEngine.
  11235. (setWriteCheckSocket): Updated according to the changes in
  11236. DownloadEngine.
  11237. (setNameResolverCheck): Updated according to the changes in
  11238. DownloadEngine.
  11239. (disableNameResolverCheck): Updated according to the changes in
  11240. DownloadEngine.
  11241. * src/AbstractCommand.cc
  11242. (disableReadCheckSocket): Updated according to the changes in
  11243. DownloadEngine.
  11244. (setReadCheckSocket): Updated according to the changes in
  11245. DownloadEngine.
  11246. (disableWriteCheckSocket): Updated according to the changes in
  11247. DownloadEngine.
  11248. (setWriteCheckSocket): Updated according to the changes in
  11249. DownloadEngine.
  11250. * release 0.7.1
  11251. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11252. To handle the case where some BitTorrent tracker requires all letters
  11253. except for [A-Za-z0-9] is URL encoded.
  11254. * src/Util.h
  11255. (torrentUrlencode): New function.
  11256. * src/Util.cc
  11257. (ctype.h): Included.
  11258. (torrentUrlencode): New function.
  11259. * src/TrackerWatcherCommand.cc
  11260. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  11261. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11262. To add asynchronous DNS support(libares):
  11263. * src/AbstractCommand.h
  11264. (setNameResolverCheck): New function.
  11265. (disableNameResolverCheck): New function
  11266. (resolveHostname): New function.
  11267. * src/AbstractCommand.cc
  11268. (setNameResolverCheck): New function.
  11269. (disableNameResolverCheck): New function
  11270. (resolveHostname): New function.
  11271. * src/FtpInitiateConnectionCommand.h
  11272. (nameResolver): New function.
  11273. * src/FtpInitiateConnectionCommand.cc
  11274. (Util.h): Included.
  11275. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  11276. disableWriteCheckSocket.
  11277. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  11278. (executeInternal): Added async DNS support.
  11279. * src/HttpInitiateConnectionCommand.h
  11280. (nameResolver): New function.
  11281. * src/HttpInitiateConnectionCommand.cc
  11282. (DlRetryEx.h): Included.
  11283. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  11284. disableWriteCheckSocket.
  11285. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  11286. (executeInternal): Added async DNS support.
  11287. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  11288. by extern "C" declaration.
  11289. * src/NameResolver.cc: New class.
  11290. * src/Util.h:
  11291. (isNumberAndDotsNotation): New function
  11292. * src/Util.cc
  11293. (isNumberAndDotsNotation): New function.
  11294. * src/DownloadEngine.h
  11295. (NameResolver.h): Included.
  11296. (NameResolverEntry): New class.
  11297. (NameResolverEntries): New type definition.
  11298. (addNameResolverCheck): New function.
  11299. (deleteNameResolverCheck): New function.
  11300. * src/DownloadEngine.cc
  11301. (run): Initialize cp with 0.
  11302. (SetDescriptor::operator()): Added for NameResolverEntry.
  11303. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  11304. (waitData): Check nameResolver entries.
  11305. (updateFdSet): Update fds in nameResolver entries.
  11306. (addNameResolverCheck): New function.
  11307. (deleteNameResolverCheck): new function.
  11308. * src/PeerInteractionCommand.cc
  11309. (executeInternal): Fixed wrong socket handling.
  11310. * src/main.cc
  11311. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  11312. * src/Util.cc
  11313. (fileChecksum): Removed the call to ctx.digestReset().
  11314. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11315. * po/ru.po: Azamat sent me Russian translation.
  11316. * src/FtpNegotiateCommand.cc
  11317. (recvGreeting): Call disableWriteCheckSocket just after
  11318. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  11319. (recvRetr): Recognized status code 125 as a acceptable response code.
  11320. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  11321. case-insesitive filesystem(BUG#1531057).
  11322. * src/Time.h: Renamed as TimeA2.h.
  11323. * src/Time.cc: Renamed as TimeA2.cc.
  11324. * src/TimeA2.h: New class.
  11325. * src/TimeA2.cc: New class.
  11326. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  11327. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  11328. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  11329. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  11330. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  11331. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11332. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  11333. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  11334. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  11335. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11336. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  11337. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  11338. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  11339. * release 0.7.0
  11340. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11341. * src/PeerChokeCommand.h
  11342. (PeerChokeCommand): Rearranged the arguments.
  11343. * src/PeerChokeCommand.cc
  11344. (PeerChokeCommand): Rearranged the arguments.
  11345. * src/MetalinkEntry.h
  11346. (Checksum.h): Included.
  11347. (md5): Removed.
  11348. (sha1): Removed.
  11349. (checksum): New variable.
  11350. (operator=): Updated.
  11351. (check): Removed.
  11352. * src/prefs.h
  11353. (PREF_LOWEST_SPEED_LIMIT): New definition.
  11354. (PREF_FOLLOW_TORRENT): New definition.
  11355. (PREF_SELECT_FILE): New definition.
  11356. (PREF_FOLLOW_METALINK): New definition.
  11357. * src/MetalinkResource.h
  11358. (TYPE_HTTPS): Added to enum TYPE.
  11359. * src/TorrentMan.cc
  11360. (~TorrentMan): Rewritten.
  11361. * src/MultiDiskWriter.cc
  11362. (MultiDiskAdaptor): Updated according to the changes in
  11363. MessageDigestContext.
  11364. (~MultiDiskAdaptor): Updated according to the changes in
  11365. MessageDigestContext.
  11366. (hashUpdate): Updated according to the changes in MessageDigestContext.
  11367. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11368. * src/Util.h
  11369. (fileChecksum): Updated according to the changes in
  11370. MessageDigestContext.
  11371. * src/Util.cc
  11372. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11373. (fileChecksum): Updated according to the changes in
  11374. MessageDigestContext.
  11375. * src/messageDigest.h: Rewritten.
  11376. * src/MetalinkEntry.cc
  11377. (check): Removed.
  11378. (Supported): Updated.
  11379. (dropUnsupportedResource): Fixed a memory leak.
  11380. * src/ShaVisitor.cc
  11381. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  11382. (~ShaVisitor): Updated according to the changes in
  11383. MessageDigestContext.
  11384. (visit): Updated according to the changes in MessageDigestContext.
  11385. * src/main.cc
  11386. (main): Rewritten the portion of download loop. --lowest-speed-limit
  11387. command-line option added.
  11388. * src/DownloadEngine.h
  11389. (SocketEntry): New class.
  11390. (SocketEntries): New definition.
  11391. (PairFind): Removed.
  11392. (SockCmdMap): Removed.
  11393. * src/DownloadEngine.cc
  11394. (DownloadEngine): Rewritten.
  11395. (~DownloadEngine): Rewritten.
  11396. (run): Renamed activeCommandUuids as activeUuids.
  11397. (SetDescriptor): Rewritten.
  11398. (AccumulateActiveCommandUuid): Removed.
  11399. (AccumulateActiveUuid): New function object.
  11400. (waitData): Rewritten.
  11401. (updateFdSet): Rewritten.
  11402. (addSocket): Rewritten.
  11403. (deleteSocket): Rewritten.
  11404. (addSocketForReadCheck): Rewritten.
  11405. (deleteSocketForReadCheck): Rewritten.
  11406. (addSocketForWriteCheck): Rewritten.
  11407. (deleteSocketForWriteCheck): Rewritten.
  11408. * src/Xml2MetalinkProcessor.cc
  11409. (getEntry): Rewritten the portion of MetalinkEntry creation.
  11410. * src/DownloadCommand.cc
  11411. (executeInternal): Added the check routine for lowest speed limit.
  11412. * src/AbstractDiskWriter.cc
  11413. (AbstractDiskWriter): Updated according to the changes in
  11414. MessageDigestContext.
  11415. (~AbstractDiskWriter): Updated according to the changes in
  11416. MessageDigestContext.
  11417. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11418. * src/RequestInfo.h: New class.
  11419. * src/UrlRequestInfo.h: New class.
  11420. * src/UrlRequestInfo.cc: New class.
  11421. * src/TorrentRequestInfo.h: New class.
  11422. * src/TorrentRequestInfo.cc: New class.
  11423. * src/MetalinkRequestInfo.h: New class.
  11424. * src/MetalinkRequestInfo.cc: New class.
  11425. * src/Checksum.h: New class.
  11426. * src/DownloadEngineFactory.h: New class.
  11427. * src/DownloadEngineFactory.cc: New class.
  11428. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11429. * src/Option.h
  11430. (getAsBool): New function.
  11431. * src/Option.cc
  11432. (prefs.h): Included.
  11433. (defined): 0-length value is now recognized as undefined.
  11434. (getAsInt): Rewritten.
  11435. (getAsLLInt): Rewritten.
  11436. (getAsBool): New function.
  11437. * src/FeatureConfig.h: Rewritten.
  11438. * src/FeatureConfig.cc: Rewritten.
  11439. * src/prefs.h
  11440. (PREF_STDOUT_LOG): New definition.
  11441. (PREF_LOG): New definition.
  11442. (PREF_DIR): New definition.
  11443. (PREF_OUT): New definition.
  11444. (PREF_SPLIT): New definition.
  11445. (PREF_DAEMON): New definition.
  11446. (PREF_REFERER): New definition.
  11447. (PREF_TORRENT_FILE): New definition.
  11448. (PREF_LISTEN_PORT): New definition.
  11449. (PREF_METALINK_FILE): New definition.
  11450. (PREF_METALINK_VERSION): New definition.
  11451. (PREF_METALINK_LANGUAGE): New definition.
  11452. (PREF_METALINK_OS): New definition.
  11453. (PREF_METALINK_SERVERS): New definition.
  11454. * src/main.cc
  11455. (main): Following command-line parameters are now put into Option
  11456. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  11457. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  11458. metalinkLanguage, metalinkOs, metalinkServers
  11459. To fix the bug that aria2 can not handle http response header properly.
  11460. * src/HttpHeader.cc
  11461. (put): Made name lowercased.
  11462. (defined): Made name lowercased.
  11463. (getFirst): Made name lowercased.
  11464. (get): Made name lowercased.
  11465. (getFirstAsInt): Rewritten.
  11466. (getFirstAsLLInt): Rewritten.
  11467. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11468. * src/TorrentMan.h:
  11469. (advertisePiece): Updated doc.
  11470. (getAdvertisedPieceIndexes): Updated doc.
  11471. (removeAdvertisedPiece); New function.
  11472. * src/TorrentMan.cc
  11473. (FindElapsedHave): New function object.
  11474. (removeAdvertisedPiece): New function.
  11475. * src/HaveEraseCommand.h: New class.
  11476. * src/HaveEraseCommand.cc: New class.
  11477. * src/FeatureConfig.h: New class.
  11478. * src/FeatureConfig.cc: New class.
  11479. * src/Request.h
  11480. (defaultPorts): Removed.
  11481. * src/Request.cc
  11482. (FeatureConfig.h): Included.
  11483. (Request): Removed the statements related to defaultPorts.
  11484. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  11485. A default port number is now retrieved from FeatureConfig.
  11486. * src/main.cc
  11487. (HaveEraseCommand.h): Included.
  11488. (showVersion): Added the output of feature list.
  11489. (main): Added HaveEraseCommand to command queue in BitTorrent
  11490. downloading.
  11491. * src/PeerInteractionCommand.h
  11492. (chokeCheckPoint): Commented out.
  11493. (periodicExecPoint): New variable.
  11494. * src/PeerInteractionCommand.cc
  11495. (executeInternal): Following methods are now called in at least every
  11496. 0.5 seconds to reduce CPU usage:
  11497. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  11498. checkHave(), sendKeepAlive().
  11499. (checkLongTimePeerChoking): Commented out.
  11500. * src/BitfieldMan.h
  11501. (getNthBitIndex): Changed the method signature.
  11502. (getMissingIndexRandomly): Changed the method signature.
  11503. * src/BitfieldMan.cc
  11504. (getNthBitIndex): Rewritten
  11505. (getMissingIndexRandomly): Rewritten.
  11506. (hasMissingPiece): Rewritten.
  11507. (getMissingIndex): Refactored.
  11508. (getMissingUnusedIndex); Refactored.
  11509. (getMissingIndex): Refactored.
  11510. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11511. * src/PeerMessage.h
  11512. (Piece.h): Included.
  11513. (SharedHandle.h): Included.
  11514. (invalidate): New variable.
  11515. (uploading): New variable.
  11516. (isInvalidate): New function.
  11517. (isUploading): New function.
  11518. (onPush): New function.
  11519. (onChoked): New function.
  11520. (onCanceled): New function.
  11521. (onAbortPiece): New function.
  11522. (PeerMessageHandle): New type definition.
  11523. * src/PeerMessage.cc
  11524. (PeerMessage): Added the initialization for invalidate and uploading.
  11525. * src/CancelMessage.h
  11526. (CancelMessage): Rewritten.
  11527. * src/RejectMessage.h
  11528. (RejectMessage): Rewritten.
  11529. * src/Metalinker.h
  11530. (operator=): Defined.
  11531. * src/MetaEntry.h
  11532. (operator=): Defined.
  11533. * src/MetalinkResource.h
  11534. (operator=): Defined.
  11535. * src/AllowedFastMessage.h
  11536. (AllowedFastMessage): Rewritten.
  11537. * src/HandshakeMessage.h
  11538. (HandshakeMessage): New function(overload).
  11539. * src/HandshakeMessage.cc
  11540. (HandshakeMessage): Rewritten.
  11541. (init): New function.
  11542. * src/HaveMessage.h
  11543. (HaveMessage): Rewritten.
  11544. * src/Time.h
  11545. (operator=): Defined the function body here.
  11546. * src/Time.cc
  11547. (operator=): Removed.
  11548. * src/SocketCore.h
  11549. (operator==): Defined here.
  11550. (operator!=): Defined here.
  11551. (operator<): Defined here.
  11552. * src/SocketCore.cc
  11553. (operator==): Removed.
  11554. (operator<): Removed.
  11555. * src/BitfieldMan.h
  11556. (operator=): Defined the function body here.
  11557. * src/BitfieldMan.cc
  11558. (operator=): Removed.
  11559. * src/TorrentMan.h
  11560. (deleteErrorPeer): Removed.
  11561. (deleteUnusedPeer); New function.
  11562. * src/TorrentMan.cc
  11563. (addPeer): Call deleteUnusedPeer.
  11564. (deleteErrorPeer): Removed.
  11565. (deleteUnusedPeer): New function.
  11566. * src/PeerAbstractCommand.h
  11567. (setNoCheck): New function.
  11568. (noCheck): New variable.
  11569. * src/PeerAbstractCommand.cc
  11570. (PeerAbstractCommand): Added the initialization of noCheck.
  11571. (execute): Added a check for noCheck.
  11572. (setNoCheck): New function.
  11573. * src/Util.h
  11574. (stdio.h): Included.
  11575. * src/Util.cc
  11576. (unistd.h): Included.
  11577. * src/DefaultDiskWriter.cc
  11578. (unistd.h): Included.
  11579. * src/Peer.h
  11580. (operator==): Defined the function body here.
  11581. (operator!=): Defined the function body here.
  11582. * src/Peer.cc
  11583. (operator==): Removed.
  11584. (operator!=): Removed.
  11585. * src/Piece.h
  11586. (Piece): Defined the function body here(copy constructor).
  11587. (operator=): Defined the function body here.
  11588. (operator==): Defined the function body here.
  11589. * src/Piece.cc
  11590. (Piece): Removed(copy constructor).
  11591. (operator=): Removed.
  11592. (operator==): Removed.
  11593. * src/PeerMessageUtil.h
  11594. (ChokeMessage.h): Removed.
  11595. (UnchokeMessage.h): Removed.
  11596. (InterestedMessage.h): Removed.
  11597. (NotInterestedMessage.h): Removed.
  11598. (HaveMessage.h): Removed.
  11599. (BitfieldMessage.h): Removed.
  11600. (RequestMessage.h): Removed.
  11601. (CancelMessage.h): Removed.
  11602. (PieceMessage.h): Removed.
  11603. (HandshakeMessage.h): Removed.
  11604. (KeepAliveMessage.h): Removed.
  11605. (PortMessage.h): Removed.
  11606. (HaveAllMessage.h): Removed.
  11607. (HaveNoneMessage.h): Removed.
  11608. (PeerConnection.h): Removed.
  11609. (HandshakeMessage.h): Included.
  11610. * src/BitfieldMessage.h
  11611. (init): New function.
  11612. (BitfieldMessage): Rewritten.
  11613. (BitfieldMessage): New function(overload).
  11614. * src/RequestSlot.h
  11615. (operator=): Defined the function body here.
  11616. (operator==): Defined the function body here.
  11617. * src/RequestSlot.cc
  11618. (operator=): Removed.
  11619. (operator==): Removed.
  11620. To remove the dependency on the PeerMessage subclass from
  11621. PeerInteraction:
  11622. * src/PeerMessageFactory.h: New class.
  11623. * src/PeerMessageFactory.cc: New class.
  11624. * src/SimplePeerMessage.cc
  11625. (send): If invalidate is true then do nothing.
  11626. * src/PeerInteractionCommand.cc
  11627. (HandshakeMessage.h): Included.
  11628. (KeepAliveMessage.h): Included.
  11629. (ChokeMessage.h): Included.
  11630. (UnchokeMessage.h): Included.
  11631. (HaveMessage.h): Included.
  11632. (executeInternal): Call setNoCheck().
  11633. Removed setWriteCheckSocket(socket).
  11634. * src/PeerInteraction.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. (RejectMessage.h): Removed.
  11650. (AllowedFastMessage.h): Removed.
  11651. (SuggestPieceMessage.h): Removed.
  11652. (PeerMessageFactory.h): Included.
  11653. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  11654. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  11655. (PeerMessageFactory): New variable.
  11656. (createPeerMessage): Removed.
  11657. (createHandshakeMessage): Removed.
  11658. (setPeerMessageCommonProperty): Removed.
  11659. (addRequestSlot): New function.
  11660. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11661. (getPeerMessageFactory): New function.
  11662. (createRequestMessage): Removed.
  11663. (createCancelMessage): Removed.
  11664. (createPieceMessage): Removed.
  11665. (createHaveMessage): Removed.
  11666. (createChokeMessage): Removed.
  11667. (createUnchokeMessage): Removed.
  11668. (createInterestedMessage): Removed.
  11669. (createNotInterestedMessage): Removed.
  11670. (createBitfieldMessage): Removed.
  11671. (createKeepAliveMessage): Removed.
  11672. (createHaveAllMessage): Removed.
  11673. (createHaveNoneMessage): Removed.
  11674. (createRejectMessage): Removed.
  11675. (createAllowedFastMessage): Removed.
  11676. * src/PeerInteraction.cc
  11677. (PeerInteraction): Allocate PeerMessageFactory here.
  11678. (~PeerInteraction): Deallocate PeerMessageFactory here.
  11679. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  11680. PieceMessage::ID.
  11681. (addMessage): Simplified by using PeerMessage::onPush().
  11682. (addRequestSlot): New function.
  11683. (rejectAllPieceMessageInQueue): Simplified by using
  11684. PeerMessage::onChoked().
  11685. (rejectPieceMessageInQueue): Simplified by using
  11686. PeerMessage::onCanceled().
  11687. (abortPiece): Simplified by using PeerMessage::abortPiece().
  11688. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11689. (createHandshakeMessage): Removed.
  11690. (createPeerMessage): Removed.
  11691. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  11692. (setPeerMessageCommonProperty): Removed.
  11693. (createRequestMessage): Removed.
  11694. (createCancelMessage): Removed.
  11695. (createPieceMessage): Removed.
  11696. (createHaveMessage): Removed.
  11697. (createChokeMessage): Removed.
  11698. (createUnchokeMessage): Removed.
  11699. (createInterestedMessage): Removed.
  11700. (createNotInterestedMessage): Removed.
  11701. (createBitfieldMessage): Removed.
  11702. (createKeepAliveMessage): Removed.
  11703. (createHaveAllMessage): Removed.
  11704. (createHaveNoneMessage): Removed.
  11705. (createRejectMessage): Removed.
  11706. (createAllowedFastMessage): Removed.
  11707. * src/PieceMessage.h
  11708. (createRejectMessage): New function.
  11709. (PieceMessage): Rewritten.
  11710. (onChoked): New function.
  11711. (onCanceled): New function.
  11712. * src/PieceMessage.cc
  11713. (send): If invalidate is true then do nothing, just return.
  11714. (createRejectMessage): New function.
  11715. (onChoked): New function.
  11716. (onCanceled): New function.
  11717. * src/RequestMessage.h
  11718. (RequestMessage): Rewritten.
  11719. (onPush): New function.
  11720. (onAbortPiece): New function.
  11721. * src/RequestMessage.cc
  11722. (onPush): New function.
  11723. (onAbortPiece): New function.
  11724. Update fd_set when a socket is added or deleted in order to improve
  11725. performance:
  11726. * src/DownloadEngine.h
  11727. (rfdset): New variable.
  11728. (wfdset): New variable.
  11729. (updateFdSet): New function.
  11730. * src/DownloadEngine.cc
  11731. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  11732. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  11733. (waitData): Copy rfdset and wfdset.
  11734. (updateFdSet): New function.
  11735. (addSocket): Call updateFdSet.
  11736. (deleteSocket): Call updateFdSet.
  11737. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11738. To add the support for Metalink3.0 backward compatible links:
  11739. * src/Request.h
  11740. (SAFE_CHARS): Added '#'.
  11741. (METALINK_MARK): New definition.
  11742. * src/Request.cc
  11743. (parseUrl): Added the support for Metalink3.0 backward compatible
  11744. links.
  11745. etc
  11746. * src/PeerInteraction.cc
  11747. (MsgPushBack): Removed.
  11748. (sendMessages): Use STL copy and back_inserter.
  11749. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  11750. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  11751. * src/TorrentMan.h
  11752. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  11753. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11754. * src/SharedHandle.h: New class.
  11755. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  11756. * src/HttpResponseCommand.h
  11757. (HttpResponseCommand): Wrapped Socket.
  11758. * src/SocketCore.h
  11759. (operator==): New function.
  11760. (operator!=): New function.
  11761. (operator<): New function.
  11762. (getSockfd): New function.
  11763. (isOpen): New function.
  11764. (writeData): New function.
  11765. * src/SocketCore.cc
  11766. (operator==): New function.
  11767. (operator!=): New function.
  11768. (operator<): New function.
  11769. * src/AbstractCommand.h
  11770. (socket): Changed its type to SocketHandle.
  11771. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11772. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11773. (disableReadCheckSocket): New function.
  11774. (disableWriteCheckSocket): New function.
  11775. (readCheckTarget): Changed its type to SocketHandle.
  11776. (writeCheckTarget): Changed its type to SocketHandle.
  11777. (AbstractCommand): Replaced Socket with SocketHandle.
  11778. * src/AbstractCommand.cc
  11779. (AbstractCommand): Replaced Socket with SocketHandle.
  11780. (~AbstractCommand): Removed the deallocation for Socket object.
  11781. (disableReadCheckSocket): New function.
  11782. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11783. (disableWriteCheckSocket): New function.
  11784. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11785. * src/HttpDownloadCommand.cc
  11786. (DownloadCommand): Replaced Socket with SocketHandle.
  11787. * src/PeerAbstractCommand.h
  11788. (socket): Changed its type to SocketHandle.
  11789. (peer): Changed its type to PeerHandle.
  11790. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11791. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11792. (disableReadCheckSocket): New function.
  11793. (disableWriteCheckSocket): New function.
  11794. (readCheckTarget): Changed its type to SocketHandle.
  11795. (writeCheckTarget): Changed its type to SocketHandle.
  11796. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11797. Replaced Peer with PeerHandle.
  11798. * src/HttpRequestCommand.cc
  11799. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11800. Use disableReadCheckSocket.
  11801. * src/PeerInitiateConnectionCommand.h
  11802. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11803. * src/PeerChokeCommand.cc
  11804. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  11805. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  11806. (execute): Use PeerHandle.
  11807. * src/PeerConnection.h
  11808. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  11809. (socket): Changed its type to SocketHandle.
  11810. (PeerConnection): Replaced Socket with SocketHandle.
  11811. * src/PeerConnection.cc
  11812. (PeerConnection): Replaced Socket with SocketHandle.
  11813. * src/PeerInteractionCommand.h
  11814. (PeerInteractionCommand): Replaced socket with SocketHandle.
  11815. Replaced Peer with PeerHandle.
  11816. * src/PeerInteractionCommand.cc
  11817. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  11818. Replaced Peer with PeerHandle.
  11819. (executeInternal): Use disableWriteCheckSocket.
  11820. Use HandshakeMessageHandle.
  11821. (receiveMessages): Use PeerMessageHandle.
  11822. (prepareForNextPeer): Use PeerHandle.
  11823. * src/HttpProxyRequestCommand.h
  11824. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11825. * src/HttpResponseCommand.cc
  11826. (HttpResponseCommand): Replaced Socket with SocketHandle.
  11827. * src/TorrentMan.cc
  11828. (nullPeer): Added external reference.
  11829. (~TorrentMan): Removed the deallocation of the elements of peers.
  11830. (addPeer): Rewritten.
  11831. (isPeerAvailable): Use nullPeer.
  11832. (deleteOldpeers): Replaced with deleteErrorPeer.
  11833. (deleteErrorPeer): New function.
  11834. (getPeer): Use PeerHandle and nullPeer.
  11835. (hasMissingPiece): Replaced Peer with PeerHandle.
  11836. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11837. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11838. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11839. (getMissingPiece): Replaced Peer with PeerHandle.
  11840. * src/FtpNegotiateCommand.cc
  11841. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  11842. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  11843. (recvGreeting): Use disableWriteCheckSocket.
  11844. (recvPasv): Removed the allocation of Socket.
  11845. Use disableReadCheckSocket.
  11846. (sendRestPasv): Use disableWriteCheckSocket.
  11847. (recvRetr): Changed assertion.
  11848. * src/PeerInteraction.h
  11849. (SharedHandle.h): Included SharedHandle.h.
  11850. (PeerMessageHandle): New type definition.
  11851. (HandshakeMessageHandle): New type definition.
  11852. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  11853. (peer): Changed its type to PeerHandle.
  11854. (createHandshakeMessage): Replaced HandshakeMessage with
  11855. HandshakeMessageHandle.
  11856. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  11857. (PeerInteraction): Replaced Peer with PeerHandle.
  11858. Replaced Socket with SocketHandle.
  11859. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11860. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11861. (receiveHandshake): Replaced HandshakeMessage with
  11862. HandshakeMessageHandle.
  11863. * src/PeerInteraction.cc
  11864. (PeerInteraction): Replaced Peer with PeerHandle.
  11865. Replaced Socket with SocketHandle.
  11866. (~PeerInteraction): Removed the deallocation of the elements of
  11867. messageQueue.
  11868. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  11869. (isSendingMessageInProgress): Replaced PeerMessage with
  11870. PeerMessageHandle.
  11871. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  11872. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11873. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  11874. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  11875. (abortPiece): Use PeerMessageHandle.
  11876. (receiveHandshake): Replaced HandshakeMessage with
  11877. HandshakeMessageHandle. Removed try-catch block.
  11878. (createHandshakeMessage): Replaced HandshakeMessage with
  11879. HandshakeMessageHandle.
  11880. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11881. Removed try-catch block.
  11882. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  11883. * src/HttpProxyResponseCommand.cc
  11884. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11885. * src/FtpTunnelResponseCommand.h
  11886. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11887. * src/HttpConnection.cc
  11888. (HttpConnection): Replaced Socket with SocketHandle.
  11889. * src/PeerAbstractCommand.cc
  11890. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11891. (~PeerAbstractCommand): Removed the deallocation of socket.
  11892. Use disableReadCheckSocket, disableWriteCheckSocket.
  11893. (disableReadCheckSocket): New function.
  11894. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11895. (disableWriteCheckSocket): New function.
  11896. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11897. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  11898. * src/FtpTunnelRequestCommand.cc
  11899. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11900. (~FtpTunnelRequestCommand): Corrected indentation.
  11901. * src/DownloadCommand.h
  11902. (DownloadCommand): Replaced Socket with SocketHandle.
  11903. * src/PeerListenCommand.cc
  11904. (PeerListenCommand): Removed the initialization of socket.
  11905. (~PeerListenCommand): Removed the deallocation of socket.
  11906. (bindPort): Use SocketHandle.
  11907. (execute): Use SocketHandle and PeerHandle.
  11908. * src/FtpDowndloadCommand.cc
  11909. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11910. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  11911. * src/main.cc
  11912. (main): Corrected indentation.
  11913. * src/HttpInitiateConnectionCommand.cc
  11914. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  11915. (executeInternal): Removed the allocation of socket.
  11916. * src/HttpRequestCommand.h
  11917. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11918. * src/FtpNegotiationCommand.h
  11919. (dataSocket): Changed its type to SocketHandle.
  11920. (serverSocket): Changed its type to SocketHandle.
  11921. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  11922. * src/TorrentMan.h
  11923. (MAX_PEER_UPDATE): Removed.
  11924. (MAX_PEERS): New definition.
  11925. (Peers): The element is now of type PeerHandle.
  11926. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  11927. (getPeer): Replaced Peer with PeerHandle.
  11928. (deleteOldErrorPeers): Removed.
  11929. (deleteErrorPeer): New function.
  11930. (hasMissingPiece): Replaced Peer with PeerHandle.
  11931. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11932. (getMissingPiece): Replaced Peer with PeerHandle.
  11933. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11934. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11935. (addActivePeer): Replaced Peer with PeerHandle.
  11936. (deleteActivePeer): Replaced Peer with PeerHandle.
  11937. Added a check for the return value of find.
  11938. * src/FtpTunnelResponseCommand.cc
  11939. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11940. * src/FtpInitiateConnectionCommand.cc
  11941. (executeInternal): Removed the allocation of socket.
  11942. * src/DownloadEngine.h
  11943. (Sockets): An element is now of type SocketHandle.
  11944. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  11945. (CommandUuids): New type definition.
  11946. (rsockets): Changed its type to SockCmdMap.
  11947. (wsockets): Changed its type to SockCmdMap.
  11948. (addSocket): Rewritten.
  11949. (deleteSocket): Rewritten.
  11950. (addSocketForReadCheck): Rewritten.
  11951. (deleteSocketForReadCheck): Rewritten.
  11952. (addSocketForWriteCheck): Rewritten.
  11953. (deleteSocketForWriteCheck): Rewritten.
  11954. (PairFind): New template class.
  11955. * src/HttpDownloadCommand.h
  11956. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  11957. * src/FtpConnection.cc
  11958. (FtpConnection): Replaced Socket with SocketHandle.
  11959. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  11960. block.
  11961. * src/InitiateConnectionCommandFactory.cc
  11962. (DlAbortEx.h): Included DlAbortEx.h.
  11963. (createInitiateConnectionCommand): Throw exception if the protocol of
  11964. requested URI is not supported.
  11965. * src/Peer.cc
  11966. (nullPeer): Changed its type to PeerHandle.
  11967. (operator==): New function.
  11968. (operator!=): New function.
  11969. * src/Peer.h
  11970. (SharedHandle.h): Included SharedHandle.h.
  11971. (operator==): New function.
  11972. (operator!=): New function.
  11973. (Peer): Added the default constructor.
  11974. Use resetStatus() to initialize member variables.
  11975. (nullPeer): Removed.
  11976. * src/TrackerUpdateCommand.cc
  11977. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  11978. with MIN_PEERS.
  11979. * src/PeerListenCommand.h
  11980. (socket): Changed its type to SocketHandle.
  11981. * src/Command.h
  11982. (CommandUuid): New type definition.
  11983. (uuid): New variable.
  11984. (uuidGen): New variable.
  11985. (Command): Added the initialization of uuid.
  11986. (getUuid): New function.
  11987. * src/Socket.h
  11988. (Socket): Removed.
  11989. (SocketHandle): New type definition.
  11990. * src/DownloadEngine.h
  11991. (FindCommand): New function object.
  11992. (run): The portion of socket check was rewritten.
  11993. (SetDescriptor): New function object.
  11994. (AccumulateActiveCommandUuid): New function object.
  11995. (waitData): Rewritten.
  11996. (addSocket): Rewritten.
  11997. (deleteSocket): Rewritten.
  11998. (addSocketForReadCheck): Rewritten.
  11999. (addSocketForWriteCheck): Rewritten.
  12000. (deleteSocketForReadCheck): Rewritten.
  12001. (deleteSocketForWriteCheck): Rewritten.
  12002. * src/HttpProxyResponseCommand.h
  12003. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  12004. * src/HttpConnection.h
  12005. (socket): Changed its type to SocketHandle.
  12006. (HttpConnection): Replaced Socket with SocketHandle.
  12007. * src/PeerInitiateConnectionCommand.cc
  12008. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  12009. (executeInternal): Removed the allocation of socket.
  12010. (prepareForNextPeer): Use PeerHandle.
  12011. * src/PeerMessage.h
  12012. (peer): Changed its type to PeerHandle.
  12013. (getPeer): Replaced Peer with PeerHandle.
  12014. (setPeer): Replaced Peer with PeerHandle.
  12015. * src/DownloadCommand.cc
  12016. (DownloadCommand): Replaced Socket with SocketHandle.
  12017. * src/FtpConnection.h
  12018. (socket): Changed its type to SocketHandle.
  12019. (FtpConnection): Replaced Socket with SocketHandle.
  12020. (sendPort); Replaced Socket with SocketHandle.
  12021. * src/FtpDowndloadCommand.h
  12022. (ctrlSocket): Changed its type to SocketHandle.
  12023. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  12024. * src/HttpProxyRequestCommand.cc
  12025. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12026. * src/FtpTunnelRequestCommand.h
  12027. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  12028. etc
  12029. * src/PeerChokeCommand.h
  12030. (setAllPeerChoked): Removed.
  12031. (setAllPeerResetDelta): Removed.
  12032. * src/PeerChokeCommand.cc
  12033. (setAllPeerChoked): Removed.
  12034. (ChokePeer): New function object.
  12035. (setAllPeerResetDelta): Removed.
  12036. (ResetDelta): New function object.
  12037. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  12038. (execute): Show download speed when the local node is a seeder.
  12039. setAllPeerChoked and setAllPeerResetDelta were rewritten
  12040. using STL.
  12041. * src/TrackerWatcherCommand.h
  12042. (MIN_PEERS): Removed.
  12043. * src/TorrentMan.cc
  12044. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  12045. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12046. To fix the bug that .aria2 file is not saved if downloading is stopped
  12047. by the errors:it results that aria2 can not resume downloading:
  12048. * src/main.cc
  12049. (normalDownload): Added the call to save().
  12050. (main): Added the deletion of the elements in 'reserved'.
  12051. To fix log:
  12052. * src/PeerInteraction.cc
  12053. (receiveHandshake): Fixed log.
  12054. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12055. To improve download performance in BitTorrent:
  12056. * src/TorrentMan.cc
  12057. (getPeer): Check the number of connections. Return nullPeer if
  12058. it is greater than MAX_PEER_UPDATE.
  12059. This code was originally here, but was removed in 0.5.1.
  12060. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12061. To improve the conditional compilation:
  12062. * src/MultiDiskWriter.h:
  12063. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12064. * src/MultiDiskWriter.cc:
  12065. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12066. * src/Util.h:
  12067. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12068. Added ENABLE_BITTORRENT around computeFastSet().
  12069. * src/Util.cc:
  12070. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12071. Added ENABLE_BITTORRENT around computeFastSet().
  12072. * src/messageDigest.h:
  12073. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  12074. * src/ShaVisitor.h:
  12075. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12076. * src/ShaVisitor.cc:
  12077. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12078. * src/main.cc:
  12079. Added ENABLE_BITTORRENT around includes and blocks related to
  12080. BitTorrent.
  12081. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  12082. digest support is not available.
  12083. * src/AbstractDiskWriter.h:
  12084. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12085. * src/AbstractDiskWriter.cc:
  12086. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12087. * src/MetalinkEntry.cc
  12088. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  12089. support is not available.
  12090. To add command-line options for Metalink:
  12091. * src/main.cc:
  12092. Added metalink-version, metalink-language, metalink-os,
  12093. follow-metalink.
  12094. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  12095. * src/main.cc: Use these definition.
  12096. * Release 0.6.0
  12097. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12098. To add Metalink support(http/ftp only):
  12099. * src/AbstractCommand.h
  12100. (tryReserved): New function.
  12101. * src/AbstractCommand.cc
  12102. (execute): Call tryReserved().
  12103. (tryReserved): New function.
  12104. * src/Request.h
  12105. (Requests): New type definition.
  12106. * src/SegmentMan.h
  12107. (reserved): New variable.
  12108. * src/Util.h
  12109. (fileChecksum): New function.
  12110. (toUpper): New function.
  12111. (toLower): New function.
  12112. * src/Util.cc
  12113. (messageDigest.h): Included.
  12114. (trim): Trim \r\n\t.
  12115. (fileChecksum): New function.
  12116. (toUpper): New function.
  12117. (toLower): New function.
  12118. * src/main.cc
  12119. (normalDownload): New function.
  12120. (main): Added 2 command-line options: metalink-file,
  12121. metalink-connection. Their usage has not been written yet.
  12122. * src/MetalinkProcessor.h: New class.
  12123. * src/Xml2MetalinkProcessor.h: New class.
  12124. * src/Xml2MetalinkProcessor.cc: New class.
  12125. * src/MetalinkEntry.h: New class.
  12126. * src/MetalinkEntry.cc: New class.
  12127. * src/MetalinkResource.h: New class.
  12128. * src/MetalinkResource.cc: New class.
  12129. To add md5 message digest checking:
  12130. * src/messageDigest.h: Rewritten.
  12131. * src/MultiDiskWriter.cc: Updated according to the changes in
  12132. messageDigest.h.
  12133. * src/ShaVisitor.cc: Updated according to the changes in
  12134. messageDigest.h.
  12135. * src/Util.cc: Updated according to the changes in messageDigest.h.
  12136. * src/AbstractDiskWriter.cc: Updated according to the changes in
  12137. messageDigest.h.
  12138. To fix a bug that causes segfault when the payload length in peer
  12139. message is less than 0:
  12140. * src/PeerConnection.cc:
  12141. (receiveMessage): Fixed the bug.
  12142. * src/PeerMessageUtil.cc
  12143. (checkLength): Throw an exception if length is less than or equals to
  12144. 0.
  12145. To add new interfaces to Base64 encoding/decoding:
  12146. * src/Base64.h
  12147. (part_encode): Changed the method signature.
  12148. (encode): New function(overload).
  12149. (decode): New function(overload).
  12150. * src/Base64.cc
  12151. (part_encode): Rewritten.
  12152. (encode): Rewritten.
  12153. (encode): New function(overload).
  12154. To prevent a peer to download same piece if there is an error in
  12155. checksum:
  12156. * src/PieceMessage.cc
  12157. (receivedAction): Call peerInteraction->abortPiece().
  12158. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12159. To fix the bug that causes same have message is sent many times to
  12160. a single peer.
  12161. * src/Time.cc
  12162. (isNewer): Use Util::difftv().
  12163. * src/Util.cc
  12164. (difftv): Added a cast to (long long int).
  12165. * src/TorrentMan.cc
  12166. (advertisePiece): Use push_front.
  12167. (getAdvertisedPieceIndexes): A performance improvement was made.
  12168. To fix the bug that sends tracker requests without a sleep interval
  12169. when the number of connections is less than 15.
  12170. * src/TrackerWatcherCommand.cc
  12171. (execute): Now the number of connections is not a factor to decide
  12172. whether or not a tracker request should be sent or not.
  12173. * src/Time.h
  12174. (setTimeInSec): New function.
  12175. * src/Time.cc
  12176. (setTimeInSec): New function.
  12177. etc.
  12178. * src/ChokeMessage.cc
  12179. (receivedAction): Removed peer->snubbing = false
  12180. * src/PeerConnection.h
  12181. (receiveHandshake): Updated doc.
  12182. * src/TorrentMan.h
  12183. (getAdvertisedPieceIndexes): Updated the method signature.
  12184. * src/TorrentMan.cc
  12185. (getAdvertisedPieceIndexes): Updated the method signature.
  12186. * src/Time.h
  12187. (getTimeInMicros): Added a cast to (long long int).
  12188. (getTimeInMillis): Added a cast to (long long int).
  12189. * Release 0.5.2
  12190. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12191. To make a listening socket non-block:
  12192. * src/SocketCore.h
  12193. (setNonBlockingMode): New function.
  12194. * src/SocketCore.cc
  12195. (setNonBlockingMode): New function.
  12196. (beginListen): Added a call to setNonBlockingMode().
  12197. (acceptConnection): Call setNonBlockingMode().
  12198. (setBlockingMode): Updated.
  12199. To handle tracker's NAT-checking:
  12200. * src/PeerConnection.cc
  12201. (receiveHandshake): 'msg' param is filled with received data and
  12202. its length is assigned to 'length' param, even if all handshake
  12203. message is not yet received.
  12204. * src/PeerInteractionCommand.cc
  12205. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  12206. a new peer connects to localhost.
  12207. A call to peerInteraction->sendHandshake() was removed because
  12208. it is called from peerInteraction->receiveHandshake(true).
  12209. * src/PeerInteraction.h
  12210. (quickReplied): New variable.
  12211. (receiveHandshake): Added an argument.
  12212. * src/PeerInteraction.cc
  12213. (PeerInteraction): Added the initialization of quickReplied.
  12214. (receiveHandshake): Send handshake message as soon as the info hash
  12215. in a handshake message from a peer is correct.
  12216. To change the random part of peer id and key parameter:
  12217. * src/TorrentMan.h
  12218. (key): New variable.
  12219. * src/TorrentMan.cc
  12220. (setupInternal1): Use Util::randomAlpha() to generate random part
  12221. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  12222. key is also generated by Util::randomAlpha() and it is now 8 character
  12223. long.
  12224. * src/Util.h
  12225. (randomAlpha): New function.
  12226. * src/Util.cc
  12227. (randomAlpha): New function.
  12228. * src/TrackerWatcherCommand.cc
  12229. (execute): In a tracker request: Use torrentMan->key as key parameter.
  12230. Added no_peer_id=1.
  12231. Set snubbing flag to false when a choke message is received from a
  12232. snubbed peer.
  12233. * src/ChokeMessage.cc
  12234. (receivedAction): Set snubbing flag to false.
  12235. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12236. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  12237. * src/SimpleLogger.h (writeHeader): New function.
  12238. * src/SimpleLogger.cc (writeHeader): New function.
  12239. (writeLog): Fixed the bug that causes segfaults if exception message
  12240. contains an unescaped "%" character.
  12241. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  12242. when a tracker request fails.
  12243. * src/Request.cc (parseUrl): Query string is now handled properly.
  12244. * Release 0.5.1
  12245. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12246. To add Time class which represents a specific instant in time and
  12247. its precision is microseconds. Time checking procedures were rewritten
  12248. using this object.
  12249. * src/Time.h: New class.
  12250. * src/Time.cc: New class.
  12251. * src/AbstractCommand.h
  12252. (updateCheckPoint): Removed.
  12253. (isTimeoutDetected): Removed.
  12254. (checkPoint): Changed the type to Time.
  12255. (timeout): New variable.
  12256. (setTimeout): New function.
  12257. * src/AbstractCommand.cc
  12258. (AbstractCommand): Removed the initialization of checkPoint.
  12259. Added the initialization of timeout.
  12260. (updateCheckPoint): Removed.
  12261. (isTimeoutDetected): Removed.
  12262. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12263. * src/PeerChokeCommand.h
  12264. (checkPoint): Changed the type to Time.
  12265. * src/PeerChokeCommand.cc
  12266. (PeerChokeCommand): Removed the initialization of checkPoint.
  12267. (execute): Rewritten using Time object.
  12268. * src/TrackerWatcherCommand.h
  12269. (checkPoint): Changed the type to Time.
  12270. * src/TrackerWatcherCommand.cc
  12271. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  12272. (execute): Rewritten.
  12273. * src/ConsoleDownloadEngine.h
  12274. (cp): Changed the type to Time.
  12275. (startup): Changed the type to Time.
  12276. * src/ConsoleDownloadEngine.cc
  12277. (initStatistics): Use cp.reset(), startup.reset().
  12278. (calculateStatistics): Rewritten using Time object.
  12279. * src/PeerAbstractCommand.h
  12280. (updateCheckPoint): Removed.
  12281. (isTimeoutDetected): Removed.
  12282. (checkPoint): Changed the type to Time.
  12283. * src/PeerAbstractCommand.cc
  12284. (PeerAbstractCommand): Removed the initialization of checkPoint.
  12285. (updateCheckPoint): Removed.
  12286. (isTimeoutDetected): Removed.
  12287. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12288. * src/PeerInteractionCommand.cc
  12289. (PeerInteractionCommand): Removed the initializations of struct
  12290. timeval variables.
  12291. * src/PeerInteractionCommand.h
  12292. (keepAliveCheckPoint): Changed the type to Time.
  12293. (chokeCheckPoint): Changed the type to Time.
  12294. (freqCheckPoint): Changed the type to Time.
  12295. (haveCheckTime): Changed the type to Time.
  12296. * src/PeerInteractionCommand.cc
  12297. (executeInternal): Rewritten using Time object.
  12298. (detectMessageFlooding): Rewritten using Time object.
  12299. (checkLongTimePeerChoking): Rewritten using Time object.
  12300. (sendKeepAlive): Rewritten using Time object.
  12301. (checkHave): Rewritten using Time object.
  12302. * src/SleepCommand.h
  12303. (checkPoint): Changed the type to Time.
  12304. * src/SleepCommand.cc
  12305. (SleepCommand): Removed the initialization of checkPoint.
  12306. (execute): Rewritten using Time object.
  12307. * src/TorrentAutoSaveCommand.h
  12308. (checkPoint): Changed the type to Time.
  12309. * src/TorrentAutoSaveCommand.cc
  12310. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  12311. (execute): Rewritten.
  12312. * src/DownloadCommand.h
  12313. (sw): Changed the type to Time.
  12314. * src/DownloadCommand.cc
  12315. (DownloadCommand): Removed the initialization of sw.
  12316. (executeInternal): Rewritten.
  12317. * src/RequestSlot.h
  12318. (dispatchedTime): Changed the type to Time.
  12319. * src/RequestSlot.cc
  12320. (RequestSlot): Removed the call to setDispatchedTime().
  12321. (setDispatchedTime): Rewirtten.
  12322. (isTimeout): Rewritten.
  12323. (getLatencyInMillis): Rewritten.
  12324. * src/TorrentDownloadEngine.h
  12325. (cp): Changed the type to Time[2].
  12326. (startup): Changed the type to Time.
  12327. * src/TorrentDownloadEngine.cc
  12328. (initStatistics): Rewritten.
  12329. (calculateStatistics): Rewritten.
  12330. * src/DownloadEngine.cc
  12331. (run): Rewritten.
  12332. To detect all attempts to connect to the tracker are failed:
  12333. * src/AbstractCommand.cc
  12334. (execute): Increment e->segmentMan->errors if a command aborted.
  12335. * src/SegmentMan.h
  12336. (errors): New variable.
  12337. * src/SegmentMan.cc
  12338. (SegmentMan): Added the initialization of errors.
  12339. (init): Added the initialization of errors.
  12340. * src/TrackerWatcherCommand.cc
  12341. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  12342. request was failed.
  12343. To handle snubbed peers:
  12344. * src/PeerChokeCommand.cc
  12345. (optUnchokingPeer): Snubbed peers don't get unchoked.
  12346. (execute): Snubbed peers don't get unchoked.
  12347. * src/PeerInteraction.h
  12348. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  12349. * src/PeerInteraction.cc
  12350. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  12351. back the requested 16k block in 60 seconds.
  12352. * src/PieceMessage.cc
  12353. (receivedAction): A peer's snubbed state is cleard if it sends
  12354. the requested 16k block in 60 seconds.
  12355. * src/Peer.h
  12356. (snubbing): New variable.
  12357. * src/Peer.cc
  12358. (resetStatus): Added snubbed = false.
  12359. To fix the bug that causes have message is not sent:
  12360. * src/PeerInteractionCommand.cc
  12361. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  12362. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  12363. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  12364. * src/TorrentMan.h
  12365. (HaveEntry): New class.
  12366. (advertisePiece): Rewritten.
  12367. (getAdvertisedPieceIndexes): Rewritten.
  12368. (Haves): Changed the type.
  12369. (getAdvertisedPieceIndexes): Added an argument.
  12370. Others:
  12371. * src/TorrentMan.h
  12372. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  12373. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  12374. * src/TorrentMan.cc
  12375. (getPeer): Don't check the number of connections here.
  12376. (setupInternal1): Changed peerId.
  12377. * src/PeerInteractionCommand.h
  12378. (KEEP_ALIVE_INTERVAL): New definition.
  12379. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  12380. * src/main.cc
  12381. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  12382. * src/DownloadEngine.h: Removed unnecessary header includes.
  12383. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12384. To fix the bug that causes segfaults if a tracker returns a zero-length
  12385. list as "peers":
  12386. * src/TrackerUpdateCommand.cc
  12387. (execute): Added a check to see wether the type of peers is Data*.
  12388. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12389. * Release 0.5.0
  12390. To fix compile issue with gcc3:
  12391. * src/CancelMessage.h
  12392. (ID): Renamed as ID_t
  12393. (ID_t): New enum.
  12394. * src/RejectMessage.h
  12395. (ID): Renamed as ID_t
  12396. (ID_t): New enum.
  12397. * src/SuggestPieceMessage.h
  12398. (ID): Renamed as ID_t
  12399. (ID_t): New enum.
  12400. * src/AllowedFastMessage.h
  12401. (ID): Renamed as ID_t
  12402. (ID_t): New enum.
  12403. * src/PortMessage.h
  12404. (ID): Renamed as ID_t
  12405. (ID_t): New enum.
  12406. * src/HaveNoneMessage.h
  12407. (ID): Renamed as ID_t
  12408. (ID_t): New enum.
  12409. * src/KeepAliveMessage.h
  12410. (ID): Renamed as ID_t
  12411. (ID_t): New enum.
  12412. * src/HaveAllMessage.h
  12413. (ID): Renamed as ID_t
  12414. (ID_t): New enum.
  12415. * src/UnchokeMessage.h
  12416. (ID): Renamed as ID_t
  12417. (ID_t): New enum.
  12418. * src/BitfieldMessage.h
  12419. (ID): Renamed as ID_t
  12420. (ID_t): New enum.
  12421. * src/PieceMessage.h
  12422. (ID): Renamed as ID_t
  12423. (ID_t): New enum.
  12424. * src/RequestMessage.h
  12425. (ID): Renamed as ID_t
  12426. (ID_t): New enum.
  12427. * src/NotInterestedMessage.h
  12428. (ID): Renamed as ID_t
  12429. (ID_t): New enum.
  12430. * src/ChokeMessage.h
  12431. (ID): Renamed as ID_t
  12432. (ID_t): New enum.
  12433. * src/InterestedMessage.h
  12434. (ID): Renamed as ID_t
  12435. (ID_t): New enum.
  12436. * src/HaveMessage.h
  12437. (ID): Renamed as ID_t
  12438. (ID_t): New enum.
  12439. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12440. * src/PeerAbstractCommand.h
  12441. (beforeSocketCheck): Removed.
  12442. * src/PeerAbstractCommand.cc
  12443. Modified in order to call executeInternal() even if socket check
  12444. and upload limit check fail.
  12445. * src/PeerInteractionCommand.h
  12446. (keepAlive): Removed.
  12447. (sendKeepAlive): New function.
  12448. (checkHave): New function.
  12449. (beforeSocketCheck): Removed.
  12450. * src/PeerInteractionCommand.cc
  12451. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  12452. calls to checkHave() and sendKeepAlive().
  12453. (keepAlive): Renamed to sendKeepAlive().
  12454. (sendKeepAlive): New function.
  12455. (beforeSocketCheck): Removed.
  12456. (checkHave): New function.
  12457. * src/BitfieldMan.cc
  12458. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  12459. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  12460. 0.
  12461. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  12462. * src/TorrentMan.h
  12463. (UsedPieces): Removed.
  12464. (Pieces): New type definition.
  12465. * src/Piece.h: Updated doc.
  12466. * src/Peer.h
  12467. (totalLength): Removed.
  12468. * src/Peer.cc
  12469. (updateLatency): Fixed the latency calculation.
  12470. * src/TorrentMan.cc
  12471. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  12472. than or equal to MAX_PEER_LIST_SIZE.
  12473. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  12474. then return false.
  12475. (deleteOldErrorPeers): Rewritten.
  12476. (deleteUsedPiece): Fixed the miss use of STL remove.
  12477. * src/PeerInteraction.h
  12478. (Pieces): Removed.
  12479. (deleteTimeoutRequestSlot): Removed.
  12480. (deleteCompletedRequestSlot): Removed.
  12481. (checkRequestSlot): New function.
  12482. * src/PeerInteraction.cc
  12483. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  12484. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  12485. (checkRequestSlot): New function.
  12486. * src/DownloadEngine.cc
  12487. (run): Clear activeSockets before calling waitData().
  12488. (waitData): Removed a call to activeSockets.clear().
  12489. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12490. To attempt to handle EINTR:
  12491. * src/SocketCore.cc
  12492. (isReadable): Added EINTR handling.
  12493. (isWritable): Added EINTR handling.
  12494. To improve the performance:
  12495. * src/AbstractCommand.cc
  12496. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12497. * src/PeerInteractionCommand.h
  12498. (receiveMessage): Renamed as receiveMessages().
  12499. (receiveMessages): New function.
  12500. * src/PeerInteractionCommand.cc
  12501. (executeInternal): receiveMessage loop is moved to new receiveMessages
  12502. () function. detectMessageFlooding() is moved here.
  12503. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  12504. (). The flooding detection for have message is comment out.
  12505. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  12506. Util::difftv().
  12507. (receiveMessage): Renamed as receiveMessages().
  12508. (receiveMessages): New function.
  12509. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  12510. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  12511. * src/SleepCommand.cc
  12512. (execute): Use Util::difftvsec() instead of Util::difftv().
  12513. * src/BitfieldMan.h
  12514. (getNthBitIndex): New function.
  12515. (hasMissingPiece): New function.
  12516. (getAllMissingIndexes): New function.
  12517. * src/BitfieldMan.cc
  12518. (countSetBit): Rewritten.
  12519. (getNthBitIndex): New function.
  12520. (getMissingIndexRandomly): Rewritten.
  12521. (hasMissingPiece): New function.
  12522. (getAllMissingIndexes): New function.
  12523. * src/TorrentMan.cc
  12524. (hasMissingPiece): New function.
  12525. (deleteUsedPiece): Rewritten using STL.
  12526. * src/PeerInteraction.cc
  12527. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  12528. is a little bit faster then TorrentMan::getMissingPieceIndex().
  12529. (addRequests): Updated the number of pending requests.
  12530. * src/PeerAbstractCommand.cc
  12531. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12532. (execute): Returns true if TorrentMan::isHalt() is true.
  12533. Corrected the condition of upload limit checking.
  12534. * src/Util.h
  12535. (countBit): New function.
  12536. * src/Util.cc
  12537. (nbits): New variable.
  12538. (countBit): New function.
  12539. * src/DownloadEngine.h
  12540. (SockCmdMap): New type definition.
  12541. (waitData): Added an argument.
  12542. (addSocket): Added an argument.
  12543. (addSocketForReadCheck): Added an argument.
  12544. (addSocketForWriteCheck): Added an argument.
  12545. * src/DownloadEngine.cc
  12546. (run): Executes only commands whose sockets are ready to read or write.
  12547. All commands are executed in every 1 second.
  12548. (waitData): Calls select() again if it returned
  12549. EINTR.
  12550. (addSocket): Saves socket and command object pair to the map.
  12551. (deleteSocket): Deletes socket and command object pair from the map.
  12552. (addSocketForReadCheck): Added an argument.
  12553. (addSocketForWriteCheck): Added an argument.
  12554. * src/DownloadCommand.cc
  12555. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  12556. To send "event=stopped" to the tracker when the application finishes:
  12557. * src/PeerChokeCommand.h
  12558. (checkPoint): New variable.
  12559. * src/PeerChokeCommand.cc
  12560. (PeerChokeCommand): Added the initialization of checkPoint.
  12561. (execute): The interval check is now done by checkPoint, not
  12562. SleepCommand. Return true if TorrentMan::isHalt() is true.
  12563. * src/TorrentMan.h
  12564. (halt): New function.
  12565. (hasMissingPiece): New function.
  12566. (isHalt): New function.
  12567. (setHalt): New function.
  12568. * src/TorrentMan.cc
  12569. (TorrentMan): Added the initialization of halt.
  12570. * src/TorrentAutoSaveCommand.h
  12571. (checkPoint): New variable.
  12572. * src/PeerListenCommand.cc
  12573. (execute): Returns true if TorrentMan::isHalt() is true.
  12574. * src/main.cc
  12575. (setSignalHander): Added flags argument.
  12576. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  12577. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  12578. Removed printDownloadAbortMessage() after torrent downloading loop.
  12579. * src/TorrentAutoSaveCommand.cc
  12580. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  12581. (execute): Returns true if TorrentMan::isHalt() is true.
  12582. The interval check is now done by checkPoint, not SleepCommand.
  12583. * src/TrackerWatcherCommand.cc
  12584. (execute): If TorrentMan::isHalt(), then create a tracker request with
  12585. event=stopped.
  12586. * src/TrackerUpdateCommand.cc
  12587. (prepareForRetry): Do not use SleepCommand here.
  12588. (execute): Returns true if TorrentMan::isHalt() is true.
  12589. Others:
  12590. * src/TorrentMan.cc
  12591. (getMissingPieceIndex): Updated log message.
  12592. * src/PeerInteraction.cc
  12593. (createPeerMessag): Updated log message.
  12594. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12595. To add the ability to download several pieces in mix in a command and
  12596. increase the number of request slots according to request-cancel
  12597. latency:
  12598. * src/PeerInteractionCommand.cc
  12599. (executeInternal): The number of messages to be received at a time
  12600. is increased from 10 to 50.
  12601. * src/LogFactory
  12602. (getInstance): Added NullLogger.
  12603. * src/NullLogger.h: New class.
  12604. * src/BitfieldMan.h
  12605. (getMissingIndex): New function.
  12606. * src/BitfieldMan.cc
  12607. (getMissingIndex): New function.
  12608. * src/TorrentMan.h
  12609. (checkOutPiece): New function.
  12610. (getMissingPieceIndex): New function.
  12611. (getMissingFastPieceIndex): New function.
  12612. (getMissingFastPiece): New function.
  12613. * src/TorrentMan.cc
  12614. (updatePiece): Rewritten using STL.
  12615. (syncPiece): Rewritten using STL.
  12616. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  12617. checkOutPiece().
  12618. (getMissingPieceIndex): New function.
  12619. (getMissingFastPieceIndex): New function.
  12620. (getMissingFastPiece): New function.
  12621. (checkOutPiece): New function.
  12622. * src/PeerInteraction.h
  12623. (Pieces): New type definition.
  12624. (piece): Removed.
  12625. (pieces): New variable.
  12626. (getNewPieceAndSendInterest): Added the "piece" argument.
  12627. (abortPiece): Added the "piece" argument.
  12628. (abortAllPieces): New function.
  12629. (isInRequestSlot): New function.
  12630. (hasDownloadPiece): Added the "index" argument.
  12631. (setDownloadPiece): Removed.
  12632. (getDownloadPiece): Added the "index" argument.
  12633. (updatePiece): New function.
  12634. (createRequestMessage): Added the "index" argument.
  12635. * src/PeerInteraction.cc
  12636. (onChoked): Rewritten.
  12637. (abortPiece): Rewirtten.
  12638. (abortAllPieces): New function.
  12639. (deleteTimeoutRequestSlot): Rewritten.
  12640. Clarified code a little bit.
  12641. (deleteCompletedRequestSlot): Rewritten.
  12642. (isInRequestSlot): New function.
  12643. (syncPiece): Rewritten.
  12644. (updatePiece): New function.
  12645. (getNewPieceAndSendInterest): Rewritten.
  12646. (addRequests): Rewritten.
  12647. (getDownloadPiece): Rewritten.
  12648. (hasDownloadPiece): Rewritten.
  12649. (createRequestMessage): Added the "index" argument.
  12650. * src/common.h
  12651. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  12652. (DIV_FLOOR): New definition.
  12653. * src/PieceMessage.cc
  12654. (receivedAction): Update request-piece latency here.
  12655. * src/RequestSlot.h
  12656. (getLatencyInMillis): New function.
  12657. * src/RequestSlot.cc
  12658. (isTimeout): Rewritten using getLatencyInMillis.
  12659. (getLatencyInMillis): New function.
  12660. * src/Piece.h
  12661. (operator==): New function.
  12662. (getMissingBlockIndex): New function.
  12663. * src/Piece.cc
  12664. (operator==): New function.
  12665. (getMissingBlockIndex): New function.
  12666. * src/Peer.h
  12667. (DEFAULT_LATENCY): New definition.
  12668. (latency): New variable.
  12669. (updateLatency): New function.
  12670. (getLatency): New function.
  12671. * src/Peer.cc
  12672. (resetStatus): Reset latecy.
  12673. (updateLatency): New function.
  12674. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12675. * src/SocketCore.cc
  12676. (isReadable): Added secure to the condition.
  12677. * src/HttpConnection.cc
  12678. (receiveResponse): Fixed a bug that causes no response header
  12679. exception.
  12680. * src/Peer.h
  12681. (getFastSet): Fixed the return value type.
  12682. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12683. To remove a wait from download loop:
  12684. * src/DownloadEngine.cc
  12685. (run): Comment out shortSleep.
  12686. To rewrite the message handling:
  12687. * src/SimplePeerMessage.h: New class.
  12688. * src/SimplePeerMessage.cc: New class.
  12689. * src/CancelMessage.h: Derived from SimplePeerMessage.
  12690. (msg): New variable.
  12691. (create): New function.
  12692. (send): Removed.
  12693. (getMessage): New function.
  12694. (getMessageLength): New function.
  12695. * src/CancelMessage.cc
  12696. (create): New function.
  12697. (receivedAction): Replaced deleteRequestMessageInQueue with
  12698. rejectPieceMessageInQueue.
  12699. (send): Removed.
  12700. (getMessage): New function.
  12701. (getMessageLength): New function.
  12702. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  12703. (msg): New variable.
  12704. (msgLength): New variable.
  12705. (~BitfieldMessage): Deleted msg.
  12706. (send): Removed.
  12707. (getMessage): New function.
  12708. (getMessageLength): New function.
  12709. * src/BitfieldMessage.cc
  12710. (create): New function.
  12711. (send): Removed.
  12712. (getMessage): New function.
  12713. (getMessageLength): New function.
  12714. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  12715. (msg): New variable.
  12716. (sendPredicate): New function.
  12717. (onSendComplete): New function.
  12718. (send): Removed.
  12719. (getMessage): New function.
  12720. (getMessageLength): New function.
  12721. (create): New function.
  12722. * src/ChokeMessage.cc
  12723. (create): New function.
  12724. (send): Removed.
  12725. (sendPredicate): New function.
  12726. (getMessage): New function.
  12727. (getMessageLength): New function.
  12728. (onSendComplete): New function.
  12729. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  12730. (msg): New variable.
  12731. (send): Removed.
  12732. (getMessage): New function.
  12733. (getMessageLength): New function.
  12734. * src/KeepAliveMessage.cc
  12735. (send): Removed.
  12736. (getMessage): New function.
  12737. (getMessageLength): New function.
  12738. * src/PortMessage.h
  12739. (create): New function.
  12740. (receivedAction): Updated log message.
  12741. * src/PortMessage.cc: New file.
  12742. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  12743. (msg): New variable.
  12744. (sendPredicate): New function.
  12745. (onSendComplete): New function.
  12746. (create): New function.
  12747. (send): Removed.
  12748. (getMessage): New function.
  12749. (getMessageLength): New function.
  12750. * src/UnchokeMessage.cc
  12751. (create): New function.
  12752. (send): Removed.
  12753. (sendPredicate): New function.
  12754. (getMessage): New function.
  12755. (getMessageLength): New function.
  12756. (onSendComplete): New function.
  12757. * src/PieceMessage.h
  12758. (leftPieceDataLength): Removed.
  12759. (leftDataLength): New variable.
  12760. (headerSend): New variable.
  12761. (pendingCount): New variable.
  12762. (msgHeader): New variable.
  12763. (sendPieceData): New function.
  12764. (incrementPendingCount): New function.
  12765. (isPendingCountMax): New function.
  12766. (create): New function.
  12767. (getMessageHeader): New function.
  12768. (getMessageHeaderLength): New function.
  12769. * src/PieceMessage.cc
  12770. (create): New function.
  12771. (getMessageHeader): New function.
  12772. (getMessageHeaderLength): New function.
  12773. (send): Rewritten.
  12774. (sendPieceData): New function.
  12775. * src/HaveMessage.h: Derived from SimplePeerMessage.
  12776. (msg): New variable.
  12777. (create): New function.
  12778. (getMessage): New function.
  12779. (getMessageLength): New function.
  12780. * src/HaveMessage.cc
  12781. (create): New function.
  12782. (send): Removed.
  12783. (sendPieceData): New function.
  12784. (getMessage): New function.
  12785. (getMessageLength): New function.
  12786. * src/RequestMessage.h: Derived from SimplePeerMessage.
  12787. (msg): New variable.
  12788. (create): New function.
  12789. (send): Removed.
  12790. (getMessage): New function.
  12791. (getMessageLength): New function.
  12792. * src/RequestMessage.cc
  12793. (create): New function.
  12794. (receivedAction): Added the handling of fast extension.
  12795. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  12796. (send): Removed.
  12797. (getMessage): New function.
  12798. (getMessageLength): New function.
  12799. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  12800. (msg): New variable.
  12801. (sendPredicate): New function.
  12802. (onSendComplete): New function.
  12803. (create): New function.
  12804. (getMessage): New function.
  12805. (getMessageLength): New function.
  12806. * src/InterestedMessage.cc
  12807. (create): New function.
  12808. (send): Removed.
  12809. (sendPieceData): New function.
  12810. (getMessage): New function.
  12811. (getMessageLength): New function.
  12812. (onSendComplete): New function.
  12813. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  12814. (msg): New variable.
  12815. (sendPieceData): New function.
  12816. (onSendComplete): New function.
  12817. (create): New function.
  12818. (send): Removed.
  12819. (getMessage): New function.
  12820. (getMessageLength): New function.
  12821. * src/NotInterestedMessage.cc
  12822. (create): New function.
  12823. (send): Removed.
  12824. (sendPredicate): New function.
  12825. (getMessage): New function.
  12826. (getMessageLength): New function.
  12827. (onSendComplete): New function.
  12828. * src/AllowedFastMessage.h: New class.
  12829. * src/AllowedFastMessage.cc: New class.
  12830. * src/RejectMessage.h: New class.
  12831. * src/RejectMessage.cc: New class.
  12832. * src/SuggestPieceMessage.h: New class.
  12833. * src/SuggestPieceMessage.cc: New class.
  12834. * src/HaveAllMessage.h: New class.
  12835. * src/HaveAllMessage.cc: New class.
  12836. * src/HaveNoneMessage.h: New class.
  12837. * src/HaveNoneMessage.cc: New class.
  12838. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  12839. (msg): New variable.
  12840. (reserved): New variable.
  12841. (create): New function.
  12842. (getId): New function.
  12843. (receivedAction): New function.
  12844. (getMessage): New function.
  12845. (getMessageLength): New function.
  12846. (isFastExtensionSupported): New function.
  12847. * src/HandshakeMessage.cc
  12848. (HandshakeMessage): Moved here from HandshakeMessage.h.
  12849. (create): New function.
  12850. (getMessage): New function.
  12851. (getMessageLength): New function.
  12852. (toString): Added the output of reserved field.
  12853. (check): Added const qualifier.
  12854. (isFastExtensionSupported): New function.
  12855. * src/PeerMessageUtil.h
  12856. (createChokeMessage): Removed.
  12857. (createUnchokeMessage): Removed.
  12858. (createInterestedMessage): Removed.
  12859. (createNotInterestedMessage): Removed.
  12860. (createHaveMessage): Removed.
  12861. (createBitfieldMessage): Removed.
  12862. (createRequestMessage): Removed.
  12863. (createCancelMessage): Removed.
  12864. (createPieceMessage): Removed.
  12865. (createPortMessage): Removed.
  12866. (createChokeMessage): Removed.
  12867. (createUnchokeMessage): Removed.
  12868. (createInterestedMessage): Removed.
  12869. (createNotInterestedMessage): Removed.
  12870. (createHaveMessage): Removed.
  12871. (createBitfieldMessage): Removed.
  12872. (createRequestMessage): Removed.
  12873. (createCancelMessage): Removed.
  12874. (createPieceMessage): Removed.
  12875. (createKeepAliveMessage): Removed.
  12876. (createHandshakeMessage): Removed.
  12877. (setIntParam): New function.
  12878. (createPeerMessageString): New function.
  12879. * src/PeerMessageUtil.cc
  12880. (createChokeMessage): Removed.
  12881. (createUnchokeMessage): Removed.
  12882. (createInterestedMessage): Removed.
  12883. (createNotInterestedMessage): Removed.
  12884. (createHaveMessage): Removed.
  12885. (createBitfieldMessage): Removed.
  12886. (createRequestMessage): Removed.
  12887. (createCancelMessage): Removed.
  12888. (createPieceMessage): Removed.
  12889. (createPortMessage): Removed.
  12890. (createRequestMessage): Removed.
  12891. (createCancelMessage): Removed.
  12892. (createPieceMessage): Removed.
  12893. (createHaveMessage): Removed.
  12894. (createChokeMessage): Removed.
  12895. (createUnchokeMessage): Removed.
  12896. (createInterestedMessage): Removed.
  12897. (createNotInterestedMessage): Removed.
  12898. (createBitfieldMessage): Removed.
  12899. (createKeepAliveMessage): Removed.
  12900. (createHandshakeMessage): Removed.
  12901. (setIntParam): New function.
  12902. (createPeerMessageString): New function.
  12903. * src/PeerConnection.h
  12904. (peer): Removed.
  12905. (torrentMan): Removed.
  12906. (createNLengthMessage): Removed.
  12907. (setIntParam): Removed.
  12908. (writeOutgoingMessageLog): Removed all overloaded functions.
  12909. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12910. (sendMessage): New function.
  12911. (sendHandshake): Removed.
  12912. (sendKeepAlive): Removed.
  12913. (sendChoke): Removed.
  12914. (sendUnchoke): Removed.
  12915. (sendInterested): Removed.
  12916. (sendNotInterested): Removed.
  12917. (sendHave): Removed.
  12918. (sendBitfield): Removed.
  12919. (sendRequest): Removed.
  12920. (sendPiece): Removed.
  12921. (sendPieceHeader): Removed.
  12922. (sendPieceData): Removed.
  12923. (sendCancel): Removed.
  12924. (getPeer): Removed.
  12925. * src/PeerConnection.cc
  12926. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12927. (sendHandshake): Removed.
  12928. (sendKeepAlive): Removed.
  12929. (createNLengthMessage): Removed.
  12930. (setIntParam): Removed.
  12931. (writeOutgoingMessageLog): Removed all overloaded functions.
  12932. (sendChoke): Removed.
  12933. (sendUnchoke): Removed.
  12934. (sendInterested): Removed.
  12935. (sendNotInterested): Removed.
  12936. (sendHave): Removed.
  12937. (sendBitfield): Removed.
  12938. (sendRequest): Removed.
  12939. (sendPiece): Removed.
  12940. (sendPieceHeader): Removed.
  12941. (sendPieceData): Removed.
  12942. (sendMessage): New function.
  12943. (sendCancel): Removed.
  12944. * src/PeerInteractionCommand.cc
  12945. (PeerInteractionCommand): Call setUploadLimit.
  12946. (executeInternal): Call setUploadLimit.
  12947. Added the handling of "inProgress" state of handshake message.
  12948. Call sendBitfield() or sendAllowdFast() instead of deprecated
  12949. sendNow().
  12950. (keepAlive): Call addMessage and sendMessage instead of deprecated
  12951. sendNow().
  12952. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  12953. * src/TorrentMan.h
  12954. (PEER_ID_LENGTH): New definition.
  12955. (hasAllPieces): New function.
  12956. * src/TorrentMan.cc
  12957. (getMissingPiece): Added the handling of fast extension.
  12958. (cancelPiece): Call updatePiece().
  12959. (hasAllPieces): New function.
  12960. * src/PeerInteraction.h
  12961. (fastSet): New variable.
  12962. (getNewPieceAndSendInterest): Changed the return type to void.
  12963. (send): Renamed as sendMessages.
  12964. (deleteAllRequestSlot): Removed.
  12965. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12966. (cancelAllRequest): Removed all overloaded functions.
  12967. (deleteAllRequestSlot): Removed.
  12968. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12969. (rejectPieceMessageInQueue): New function.
  12970. (rejectAllPieceMessageInQueue): New function.
  12971. (onChoked): New function.
  12972. (isSendingMessageInProgress): New function.
  12973. (getCorrespondingRequestSlot): Changed its arguments.
  12974. (isInFastSet): New function.
  12975. (addFastSetIndex): New function.
  12976. (addRequests): New function.
  12977. (sendNow): Removed.
  12978. (trySendNow): Removed.
  12979. (sendBitfield): New function.
  12980. (sendAllowdFast): New function.
  12981. (createHaveAllMessage): New function.
  12982. (createHaveNoneMessage): New function.
  12983. (createRejectMessage): New function.
  12984. (createAllowedFastMessage): New function.
  12985. * src/PeerInteraction.cc
  12986. (send): Renamed as sendMessages.
  12987. (sendMessages): New function.
  12988. (MsgPushBack): New class.
  12989. (isSendingMessageInProgress): New function.
  12990. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12991. (rejectAllPieceMessageInQueue): New function.
  12992. Added the handling of fast extension.
  12993. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12994. (rejectPieceMessageInQueue): New function.
  12995. Added the handling of fast extension.
  12996. (deleteRequestSlot): Replaced for loop with std::find.
  12997. (onChoked): New function.
  12998. (deleteAllRequestSlot): Removed.
  12999. (abortPiece): Rewirtten.
  13000. (deleteTimeoutRequestSlot): Updated log messages.
  13001. (getCorrespondingRequestSlot): Changed its arguments.
  13002. (cancelAllRequest): Removed all overloaded functions.
  13003. (receiveHandshake): Added the check to see whether an incoming peer
  13004. supports fast extension.
  13005. (createHandshakeMessage): Use HandshakeMessage::create instead of
  13006. PeerMessageUtil.
  13007. (createPeerMessage): Use create() of each message class instead of
  13008. PeerMessageUtil.
  13009. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  13010. AllowedFastMessage were added.
  13011. (getNewPieceAndSendInterest): Changed its return value type to void.
  13012. Added the handling of fast extension.
  13013. (addRequests): New function.
  13014. (sendNow): Removed.
  13015. (sendHandshake): Rewritten.
  13016. (trySendNow): Removed.
  13017. (sendBitfield): New function.
  13018. (sendAllowdFast): New function.
  13019. (isInFastSet): New function.
  13020. (addFastSetIndex): New function.
  13021. (createRequestMessage): Use RequestMessage::create instead of
  13022. PeerMessageUtil.
  13023. (createCancelMessage): Use CancelMessage::create instead of
  13024. PeerMessageUtil.
  13025. (createPieceMessage): Use PieceMessage::create instead of
  13026. PeerMessageUtil.
  13027. (createHaveMessage): Use HaveMessage::create instead of
  13028. PeerMessageUtil.
  13029. (createChokeMessage): Use ChokeMessage::create instead of
  13030. PeerMessageUtil.
  13031. (createUnchokeMessage): Use UnchokeMessage::create instead of
  13032. PeerMessageUtil.
  13033. (createInterestedMessage): Use InterestedMessage::create instead of
  13034. PeerMessageUtil.
  13035. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  13036. of PeerMessageUtil.
  13037. (createBitfieldMessage): Use BitfieldMessage::create instead of
  13038. PeerMessageUtil.
  13039. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  13040. PeerMessageUtil.
  13041. (createHaveAllMessage): New function.
  13042. (createHaveNoneMessage): New function.
  13043. (createRejectMessage): New function.
  13044. (createAllowedFastMessage: New function.
  13045. * src/Util.h
  13046. (sha1Sum): New function.
  13047. (computeFastSet): New function.
  13048. * src/Util.cc
  13049. (sha1Sum): New function.
  13050. (computeFastSet): New function.
  13051. * src/Peer.h
  13052. (fastExtensionEnabled): New variable.
  13053. (fastSet): New variable.
  13054. (setAllBitfield): New function.
  13055. (setFastExtensionEnabled): New function.
  13056. (isFastExtensionEnabled): New function.
  13057. (addFastSetIndex): New function.
  13058. (getFastSet): New function.
  13059. (isInFastSet): New function.
  13060. (countFastSet): New function.
  13061. * src/Peer.cc
  13062. (isInFastSet): New function.
  13063. (addFastSetIndex): New function.
  13064. (setAllBitfield): New function.
  13065. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  13066. sockets.
  13067. * src/PeerAbstractCommand.cc
  13068. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  13069. and uploadLimit.
  13070. (execute): Changed the procedure of checking sockets. The upload speed
  13071. checking were added.
  13072. (setUploadLimit): New function.
  13073. (setUploadLimitCheck): New function.
  13074. * src/PeerAbstractCommand.h
  13075. (setUploadLimit): New function.
  13076. (setUploadLimitCheck): New function.
  13077. (uploadLimit): New variable.
  13078. (uploadLimitCheck): New variable.
  13079. To contact a tracker regularly:
  13080. * src/TrackerWatcherCommand.h (interval): New variable.
  13081. (checkPoint): New variable.
  13082. (TrackerWatcherCommand): Added interval argument.
  13083. * src/TrackerWatcherCommand.cc
  13084. (TrackerWatcherCommand): Initialized checkPoint.
  13085. (execute): Now a tracker is contacted in every specified period.
  13086. If peer list is not needed, send request with numwant=0.
  13087. * src/TrackerUpdateCommand.cc
  13088. (execute): Updated log messages.
  13089. * src/DownloadEngine.cc
  13090. (~DownloadEngine): Removed two asserts.
  13091. (waitData): Uncommented wfds. May be a bug fix.
  13092. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13093. * src/PeerInteractionCommand.h
  13094. (checkInactiveConnection): Removed.
  13095. * src/PeerInteractionCommand.cc
  13096. (executeInternal): Removed following function calls:
  13097. detectMessageFlooding(), checkLongTimePeerChoking and
  13098. checkInactiveConnection().
  13099. (checkInactiveConnection): Removed.
  13100. (detectMessageFlooding): Removed function call to
  13101. checkInactiveConnection().
  13102. * src/PeerMessageUtil.h
  13103. (createChokeMessage): New function. Overload.
  13104. (createUnchokeMessage): New function. Overload.
  13105. (createInterestedMessage): New function. Overload.
  13106. (createNotInterestedMessage): New function. Overload.
  13107. (createHaveMessage): New function. Overload.
  13108. (createBitfieldMessage): New function. Overload.
  13109. (createRequestMessage): New function. Overload.
  13110. (createCancelMessage): New function. Overload.
  13111. (createPieceMessage): New function. Overload.
  13112. (createKeepAliveMessage): New function. Overload.
  13113. * src/PeerMessageUtil.cc
  13114. (createChokeMessage): New function. Overload.
  13115. (createUnchokeMessage): New function. Overload.
  13116. (createInterestedMessage): New function. Overload.
  13117. (createNotInterestedMessage): New function. Overload.
  13118. (createHaveMessage): New function. Overload.
  13119. (createBitfieldMessage): New function. Overload.
  13120. (createRequestMessage): New function. Overload.
  13121. (createCancelMessage): New function. Overload.
  13122. (createPieceMessage): New function. Overload.
  13123. (createKeepAliveMessage): New function. Overload.
  13124. * src/SendMessageQueue.cc
  13125. (createRequestMessage): Use PeerMessageUtil.
  13126. (createCancelMessage): Use PeerMessageUtil.
  13127. (createPieceMessage): Use PeerMessageUtil.
  13128. (createHaveMessage): Use PeerMessageUtil.
  13129. (createChokeMessage): Use PeerMessageUtil.
  13130. (createUnchokeMessage): Use PeerMessageUtil.
  13131. (createInterestedMessage): Use PeerMessageUtil.
  13132. (createNotInterestedMessage): Use PeerMessageUtil.
  13133. (createBitfieldMessage): Use PeerMessageUtil.
  13134. (createKeepAliveMessage): Use PeerMessageUtil.
  13135. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  13136. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  13137. * src/PeerInteraction.h: New class.
  13138. * src/PeerInteraction.cc: New class.
  13139. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13140. Each peer message has its own class.
  13141. * src/PendingMessages.h: Removed.
  13142. * src/PendingMessages.cc: Removed. The sending process was moved to
  13143. each message class.
  13144. * src/RequestSlotMan.h: Removed.
  13145. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  13146. SendMessageQueue.
  13147. * src/RequestMessage.h: New class.
  13148. * src/RequestMessage.cc: New class.
  13149. * src/CancelMessage.h: New class.
  13150. * src/CancelMessage.cc: New class.
  13151. * src/BitfieldMessage.h: New class.
  13152. * src/BitfieldMessage.cc: New class.
  13153. * src/ChokeMessage.h: New class.
  13154. * src/ChokeMessage.cc: New class.
  13155. * src/KeepAliveMessage.h: New class.
  13156. * src/KeepAliveMessage.cc: New class.
  13157. * src/PortMessage.h: New class.
  13158. * src/UnchokeMessage.h: New class.
  13159. * src/UnchokeMessage.cc: New class.
  13160. * src/PieceMessage.h: New class.
  13161. * src/PieceMessage.cc: New class.
  13162. * src/HaveMessage.h: New class.
  13163. * src/HaveMessage.cc: New class.
  13164. * src/BitfieldMessage.h: New class.
  13165. * src/BitfieldMessage.cc: New class.
  13166. * src/NotInterestedMessage.h: New class.
  13167. * src/NotInterestedMessage.cc: New class.
  13168. * src/InterestedMessage.h: New class.
  13169. * src/InterestedMessage.cc: New class.
  13170. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  13171. (getSendMessageQueue): New function.
  13172. (setSendMessageQueue): New function.
  13173. * src/HandshakeMessage.cc: New class.
  13174. * src/PeerConnection.h (receiveMessage): Changed return value and
  13175. arguments.
  13176. (receiveHandshake): Changed return value and arguments.
  13177. * src/PeerConnection.cc (receiveMessage): Do not create message class
  13178. here.
  13179. (receiveHandshake): Do not create handshake class here.
  13180. * src/PeerInteractionCommand.h (peerConnection): Removed.
  13181. (piece): Removed.
  13182. (syncPiece): Removed.
  13183. (sendInterest): Removed.
  13184. (sendMessages): Removed.
  13185. (createRequestPendingMessage): Removed.
  13186. (checkPieceHash): Removed.
  13187. (erasePieceOnDisk): Removed.
  13188. (getNewPieceAndSendInterest): Removed.
  13189. (onGotNewPice): Removed.
  13190. (onGotWrongPiece): Removed.
  13191. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13192. Removed peerConnection, piece.
  13193. (~PeerInteractionCommand): Removed peerConnection.
  13194. (executeInternal): Use sendMessageQueue instead of peerConnection.
  13195. (syncPiece): Moved to SendMessageQueue.
  13196. (decideChoking): Removed PendingMessage.
  13197. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  13198. The action after receiving peer message was moved to each message
  13199. class.
  13200. (onGotNewPice): Moved to SendMessageQueue.
  13201. (onGotWrongPiece): Moved to SendMessageQueue.
  13202. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  13203. (sendInterest): Moved to SendMessageQueue.
  13204. (createRequestPendingMessage): Removed.
  13205. (sendMessages): Moved to SendMessageQueue.
  13206. (onAbort): Use SendMessageQueue::abortPiece()
  13207. (keepAlive): Use sendMessageQueue instead of peerConnection.
  13208. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  13209. (checkPieceHash): Moved to SendMessageQueue.
  13210. (erasePieceOnDisk): Moved to SendMessageQueue.
  13211. * src/PeerMessageUtil.h
  13212. (createBitfieldMessage): Removed.
  13213. (createHaveMessage): Changed return value and arguments.
  13214. (createBitfieldMessage): Changed return value and arguments.
  13215. (createRequestCancelMessage): Removed.
  13216. (createPieceMessage): Changed return value and arguments.
  13217. (getShortIntParam): New function.
  13218. (checkIndex): Changed arguments.
  13219. (checkBegin): Changed arguments.
  13220. (checkLength): Changed arguments.
  13221. (checkPieceOffset): Removed.
  13222. (checkRange): New function.
  13223. (checkBitfield): Changed arguments.
  13224. (createPeerMessage): Removed.
  13225. (checkIntegrity): Removed.
  13226. (createHandshakeMessage): Changed arguments.
  13227. (createChokeMessage): New function.
  13228. (createUnchokeMessage): New function.
  13229. (createInterestedMessage): New function.
  13230. (createNotInterestedMessage): New function.
  13231. (createRequestMessage): New function.
  13232. (createCancelMessage): New function.
  13233. (createPortMessage): New function.
  13234. * src/PeerMessageUtil.cc
  13235. (createBitfieldMessage): Removed.
  13236. (createHaveMessage): Changed return value and arguments.
  13237. (createBitfieldMessage): Changed return value and arguments.
  13238. (createRequestCancelMessage): Removed.
  13239. (createPieceMessage): Changed return value and arguments.
  13240. (getShortIntParam): New function.
  13241. (checkIndex): Changed arguments.
  13242. (checkBegin): Changed arguments.
  13243. (checkLength): Changed arguments.
  13244. (checkPieceOffset): Removed.
  13245. (checkRange): New function.
  13246. (checkBitfield): Changed arguments.
  13247. (createPeerMessage): Removed.
  13248. (checkIntegrity): Removed.
  13249. (createHandshakeMessage): Changed arguments.
  13250. (createChokeMessage): New function.
  13251. (createUnchokeMessage): New function.
  13252. (createInterestedMessage): New function.
  13253. (createNotInterestedMessage): New function.
  13254. (createRequestMessage): New function.
  13255. (createCancelMessage): New function.
  13256. (createPortMessage): New function.
  13257. * src/PeerMessage.h
  13258. (id): Removed.
  13259. (index): Removed.
  13260. (begin): Removed.
  13261. (length): Removed.
  13262. (bitfield): Removed.
  13263. (bitfieldLength): Removed.
  13264. (block): Removed.
  13265. (blockLength): Removed.
  13266. (inProgress): New variable.
  13267. (cuid): New variable.
  13268. (peer): New variable.
  13269. (sendMessageQueue): New variable.
  13270. (logger): New variable.
  13271. (setBitfield): Removed.
  13272. (getBitfield): Removed.
  13273. (setBlock): Removed.
  13274. (getBlock): Removed.
  13275. (getBitfieldLength): Removed.
  13276. (getBlockLength): Removed.
  13277. (isInProgress): New function.
  13278. (toString): Made pure virtual.
  13279. (check): New function.
  13280. (send): New function.
  13281. (receivedAction): New function.
  13282. (getId): Made pure virtual.
  13283. (setId): Removed.
  13284. (getIndex): Removed.
  13285. (setIndex): Removed.
  13286. (getBegin): Removed.
  13287. (setBegin): Removed.
  13288. (getLength): Removed.
  13289. (setLength): Removed.
  13290. (getCuid): New function.
  13291. (setCuid): New function.
  13292. (getPeer): New function.
  13293. (setPeer): New function.
  13294. (getSendMessageQueue): New function.
  13295. (setSendMessageQueue): New function.
  13296. (ID): Removed.
  13297. * src/PeerMessage.cc
  13298. (setBitfield): Removed.
  13299. (setBlock): Removed.
  13300. (toString): Removed.
  13301. * src/TorrentMan.h
  13302. (getPieceLength): New function.
  13303. (getPieceLength): New function.
  13304. * src/SendMessageQueue.h
  13305. (REQUEST_TIME_OUT): New definition.
  13306. (RequestSlots): New definition.
  13307. (MessageQueue): New definition.
  13308. (requestSlotMan): Removed.
  13309. (pendingMessages): Removed.
  13310. (requestSlots): New variable.
  13311. (messageQueue): New variable.
  13312. (torrentMan): New variable.
  13313. (peerConnection): New variable.
  13314. (peer): New variable.
  13315. (piece): New variable.
  13316. (getNewPieceAndSendInterest): New function.
  13317. (createPeerMessage): New function.
  13318. (createHandshakeMessage): New function.
  13319. (send): Made private.
  13320. (setPeerMessageCommonProperty): New function.
  13321. (deleteAllRequestSlot): New function.
  13322. (deleteRequestMessageInQueue): New function.
  13323. (cancelAllRequest): Made private.
  13324. (cancelAllRequest): Made private.
  13325. (countRequestSlot): Made private.
  13326. (addPendingMessage): Removed.
  13327. (deletePendingPieceMessage): Removed.
  13328. (deletePendingRequestMessage): Removed.
  13329. (addMessage): New function.
  13330. (deletePieceMessageInQueue): New function.
  13331. (deleteTimeoutRequestSlot): Changed argument.
  13332. (deleteCompletedRequestSlot): Changed argument.
  13333. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  13334. (getCorrespondingRequestSlot): New function.
  13335. (countPendingMessage): Removed.
  13336. (countMessageInQueue): New function.
  13337. (getTorrentMan): New function.
  13338. (getPeerConnection): New function.
  13339. (hasDownloadPiece): New function.
  13340. (getDownloadPiece): New function.
  13341. (setDownloadPiece): New function.
  13342. (syncPiece): New function.
  13343. (sendMessages): New function.
  13344. (sendNow): New function.
  13345. (trySendNow): New function.
  13346. (abortPiece): New function.
  13347. (sendHandshake): New function.
  13348. (receiveMessage): New function.
  13349. (receiveHandshake): New function.
  13350. (createRequestMessage): New function.
  13351. (createCancelMessage): New function.
  13352. (createPieceMessage): New function.
  13353. (createHaveMessage): New function.
  13354. (createChokeMessage): New function.
  13355. (createUnchokeMessage): New function.
  13356. (createInterestedMessage): New function.
  13357. (createNotInterestedMessage): New function.
  13358. (createBitfieldMessage): New function.
  13359. (createKeepAliveMessage): New function.
  13360. * src/SendMessageQueue.cc
  13361. (SendMessageQueue): Removed requestSlotMan.
  13362. Instantiated peerConnection here.
  13363. (~SendMessageQueue): Removed requestSlotMan.
  13364. Added deletion of peerConnection and the contents of messageQueue.
  13365. (send): Updated according to the change of messageQueue.
  13366. (addPendingMessage): Renamed to addMessage.
  13367. (addMessage): New function.
  13368. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  13369. (deletePieceMessageInQueue): New function.
  13370. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  13371. (deleteRequestMessageInQueue): New function.
  13372. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  13373. here.
  13374. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  13375. (...) was moved here.
  13376. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  13377. moved here.
  13378. (deleteCompletedRequestSlot):
  13379. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  13380. (getCorrespondingRequestSlot):
  13381. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  13382. And renamed to getCorrespondingRequestSlot, correcting a typo.
  13383. (countPendingMessage): Renamed to countMessageInQueue.
  13384. (countMessageInQueue): New function.
  13385. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  13386. (receiveHandshake): New function.
  13387. (createHandshakeMessage): New function.
  13388. (receiveMessage): New function.
  13389. (createPeerMessage): New function.
  13390. (syncPiece): New function.
  13391. (getNewPieceAndSendInterest): New function.
  13392. (sendMessages): New function.
  13393. (sendNow): New function.
  13394. (trySendNow): New function.
  13395. (sendHandshake): New function.
  13396. (abortPiece): New function.
  13397. (getDownloadPiece): New function.
  13398. (getPeerMessageCommonProperty): New function.
  13399. (createRequestMessage): New function.
  13400. (createCancelMessage): New function.
  13401. (createPieceMessage): New function.
  13402. (createHaveMessage): New function.
  13403. (createChokeMessage): New function.
  13404. (createUnchokeMessage): New function.
  13405. (createInterestedMessage): New function.
  13406. (createNotInterestedMessage): New function.
  13407. (createBitfieldMessage): New function.
  13408. (createKeepAliveMessage): New function.
  13409. To add simple Content-Disposition support:
  13410. * src/HttpResponseCommand.h (determinFilename): New function.
  13411. * src/HttpResponseCommand.cc (executeInternal):
  13412. Use determinFilename(headers) instead of req->getFile() when comparing
  13413. filename.
  13414. (determinFilename): New function.
  13415. (handleDefaultEncoding): Use determinFilename(headers) instead of
  13416. req->getFile().
  13417. (handleOtherEncoding): Use determinFilename(headers) instead of
  13418. req->getFile().
  13419. * src/Util.h (getContentDispositionFilename): New function.
  13420. * src/Util.cc (getContentDispositionFilename): New function.
  13421. * src/LogFactory.h (release): New function.
  13422. * src/LogFactory.cc (release): New function.
  13423. To fix a bug that causes out-of-bound exception when HTTP status
  13424. line is wrong:
  13425. * src/HttpConnection.cc (receiveResponse): Added a check for header
  13426. size.
  13427. * src/common.h (Deleter): New class.
  13428. * src/SegmentMan.cc
  13429. (~SegmentMan): Added deletion of splitter and diskWriter.
  13430. * src/DownloadEngine.h
  13431. (Commands): Use deque.
  13432. (clearQueue): New function.
  13433. * src/DownloadEngine.cc
  13434. (~DownloadEngine): Added deletion of segmentMan.
  13435. (cleanQueue): New function.
  13436. * src/TorrentDownloadEngine.h
  13437. (TorrentDownloadEngine): The implementation was moved to
  13438. TorrentDownloadEngine.cc.
  13439. (~TorrentDownloadEngine): The implementation was moved to
  13440. TorrentDownloadEngine.cc.
  13441. * src/TorrentDownloadEngine.cc
  13442. (~TorrentDownloadEngine): Added deletion of torrentMan.
  13443. * src/main.cc
  13444. (clearRequest): Removed.
  13445. (handler): Added deletion of e.
  13446. (torrentHandler): Added deletion of te.
  13447. (main): Do not share splitter.
  13448. Use Deleter instead of clearRequest.
  13449. Deletion of classes were updated.
  13450. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13451. * src/main.cc (main): Fixed typo.
  13452. * src/message.h: Fixed typo.
  13453. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  13454. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13455. To add --select-file command-line option:
  13456. * src/Util.cc
  13457. (unfoldRange): New function.
  13458. (getNum): New function.
  13459. (unfoldSubRange): New function
  13460. * src/main.cc
  13461. (showUsage): Added help message.
  13462. (main): Added --select-file command-line option. Updated the layout of
  13463. file listing.
  13464. * src/common.h
  13465. (Integers): New definition.
  13466. * src/SocketCore.cc
  13467. (writeData): Removed timeout argument.
  13468. (readData): Removed timeout argument.
  13469. (peekData): Removed timeout argument.
  13470. * src/Socket.cc
  13471. (writeData): Removed timeout argument.
  13472. (readData): Removed timeout argument.
  13473. (peekData): Removed timeout argument.
  13474. * Release 0.4.1
  13475. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13476. To deploy upload rate based choking algorithm:
  13477. * src/PeerInteractionCommand.cc
  13478. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  13479. peer currently used.
  13480. (decideChoking): Deleted the choke/unchoke decision algorithm when
  13481. download completes. Simplified.
  13482. (receiveMessage): Updated.
  13483. * src/TorrentMan.h
  13484. (activePeers): New variable.
  13485. (addActivePeer): New function.
  13486. (getActivePeers): New function.
  13487. (deleteActivePeer): New function.
  13488. * src/TorrentMan.cc
  13489. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  13490. * src/PeerAbstractCommand.cc
  13491. (onAbort): Use peer->resetStatus().
  13492. * src/main.cc
  13493. (PeerChokeCommand.h): Included.
  13494. (main): Added the instance of ChokingCommand to the command queue.
  13495. * src/Peer.h
  13496. (amChoking): Renamed from amChocking
  13497. (chokingRequired): New variable.
  13498. (optUnchoking): New variable.
  13499. (deltaUpload): New variable.
  13500. (deltaDownload): New variable.
  13501. (addDeltaUpload): New function.
  13502. (resetDeltaUpload): New function.
  13503. (addDeltaDownload): New function.
  13504. (resetDeltaDownload): New function.
  13505. (addPeerUpload): Added a call to addDeltaUpload.
  13506. (addPeerDownload): Added a call to addDeltaDownload.
  13507. * src/Peer.cc
  13508. (shouldBeChoking): Renamed from shouldChoke.
  13509. (resetStatus): New function.
  13510. * src/PeerChokeCommand.h: New class.
  13511. * src/PeerChokeCommand.cc: New class.
  13512. To add lazy upload speed limiter:
  13513. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  13514. statistics calculation to TorrentDownloadEngine.
  13515. * src/TorrentConsoleDownloadEngine.cc
  13516. (sendStatistics): Renamed from printStatistics.
  13517. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  13518. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  13519. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  13520. * src/TorrentDownloadEngine.h: Added the variables for statistics
  13521. calculation.
  13522. (sendStatistics): New function as pure virtual function.
  13523. (getUploadSpeed): New function.
  13524. * src/TorrentDownloadEngine.cc
  13525. (initStatistics): New function.
  13526. (calculateSpeed): New function.
  13527. (calculateStatistics): New function.
  13528. * src/SendMessageQueue.h
  13529. (uploadLength): New variable.
  13530. (send): Added an argument.
  13531. (setUploadLimit): New function.
  13532. (getUploadLimit): New function.
  13533. * src/SendMessageQueue.cc
  13534. (send): Added upload speed limiter.
  13535. * src/prefs.h
  13536. (PREF_UPLOAD_LIMIT): New definition.
  13537. * src/PeerInteractionCommand.cc
  13538. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  13539. * src/main.cc
  13540. (main): Added --upload-limit option
  13541. For bug fixes:
  13542. * src/main.cc
  13543. (showUsage): Corrected --listen-port help
  13544. Other changes:
  13545. * src/TorrentMan.cc
  13546. (getPeer): Return nullPeer if connection is grather than
  13547. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  13548. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13549. To add some useful information to the exception message:
  13550. * src/SocketCore.cc : Updated messages.
  13551. * src/SegmentMan.cc :
  13552. * src/TorrentMan.cc : Updated messages.
  13553. * src/MultiDiskWriter.cc : Updated messages.
  13554. * src/Util.cc : Updated messages.
  13555. * src/AbstractDiskWriter.cc : Updated messages.
  13556. * src/PreAllocationDiskWriter.cc : Updated messages.
  13557. * src/message.cc : Added new messages. Updated some messages.
  13558. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  13559. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  13560. Updated threshold from 30 to 15.
  13561. * src/AbstractDiskWriter.h (filename): New variable.
  13562. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  13563. (createFile): Assigned filename.
  13564. * src/main.cc: Updated the help message for http-auth-scheme.
  13565. * Release 0.4.0
  13566. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13567. To add TrackerUpdateCommand with which replaces
  13568. CompactTrackerResponseProcessor:
  13569. * src/TrackerWatcherCommand.h (req): Removed.
  13570. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  13571. if the number of peer connections are less than 30.
  13572. * src/ByteArrayDiskWriter.h (readData): Implemented.
  13573. * src/SegmentMan.h (diskWriter): New function.
  13574. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  13575. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  13576. (main): Use TrackerUpdateCommand.
  13577. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  13578. (req): New variable.
  13579. (setTrackerResponseProcessor): Removed.
  13580. (getTrackerResponseProcessor): Removed.
  13581. (processTrackerResponse): Removed.
  13582. * src/DownloadEngine.h (diskWriter): Removed.
  13583. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  13584. to torrentMan->processTrackerResponse().
  13585. To add Util::expandBuffer:
  13586. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  13587. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  13588. * src/Util.h (expandBuffer): New function.
  13589. To fix the bug that causes segmentation fault when "-l ." is specified
  13590. in command-line option:
  13591. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  13592. (openFile): New function.
  13593. (closeFile): New function.
  13594. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  13595. (~SimpleLogger): Call closeFile();
  13596. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  13597. * src/main.cc (main): Added a check to see logger is configured
  13598. properly.
  13599. To enable HTTP authentication without specifying "--http-auth-scheme"
  13600. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  13601. * src/HttpConnection.cc (createRequest): Send Authorization header
  13602. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  13603. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  13604. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  13605. * src/Peer.cc (shouldChoke): Updated algorithm.
  13606. * src/message.h (EX_AUTH_FAILED): New definition.
  13607. (EX_FILE_OPEN): New definition.
  13608. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  13609. if status == 401.
  13610. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  13611. if req->isTorrent == true.
  13612. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  13613. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  13614. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  13615. (createFile): Updated message.
  13616. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13617. To add a readout of estimated remaining time to normal HTTP/FTP
  13618. downloads:
  13619. * src/ConsoleDownloadEngine.h (startup): New variable.
  13620. (startupLength): New variable.
  13621. (isStartupLengthSet): New variable.
  13622. (avgSpeed): New variable.
  13623. (eta): New variable.
  13624. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  13625. estimated remaining time.
  13626. (initStatistics): Initialized newly added variables.
  13627. (calculateStatistics): Calculate average speed and estimated remaining
  13628. time.
  13629. To decouple TorrentDownloadEngine from HttpResponseCommand:
  13630. * src/TrackerDownloadCommand.h: Removed.
  13631. * src/TrackerDownloadCommand.cc: Removed.
  13632. * src/TrackerInitCommand.h: Removed.
  13633. * src/TrackerInitCommand.cc: Removed.
  13634. * src/TrackerUpdateCommand.h: Removed.
  13635. * src/TrackerUpdateCommand.cc: Removed.
  13636. * src/TrackerWatcherCommand.cc (execute): The construction of request
  13637. url written in TrackerInitCommand was moved here. Do not create
  13638. tracker request command if torrentMan->trackers != 0.
  13639. * src/CompactTrackerResponseProcessor.h: New class.
  13640. * src/CompactTrackerResponseProcessor.cc: New class.
  13641. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  13642. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  13643. Decoupled TorrentDownloadEngine from this.
  13644. * src/SegmentMan.h (init): New function.
  13645. * src/SegmentMan.cc (init): New function.
  13646. * src/TorrentMan.h (responseProcessor): New variable.
  13647. (trackers): New variable.
  13648. (setTrackerResponseProcessor): New function.
  13649. (getTrackerResponseProcessor): New function.
  13650. (processTrackerResponse): New function.
  13651. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  13652. (processTrackerResponse): New function.
  13653. * src/main.cc (main): Use ByteArrayDiskWriter and
  13654. CompactTrackerResponseProcessor.
  13655. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  13656. processTrackerResponse().
  13657. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  13658. readout.
  13659. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  13660. which indicates download has completed.
  13661. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  13662. (closeFile): fd >= 0, not fd > 0
  13663. * src/main.cc (main): Added short cut for show-files.
  13664. Added short cut for torrent-file.
  13665. Added new command-line option listen-port.
  13666. Updated i18n messages.
  13667. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13668. To add LogFactory which creates singleton logger:
  13669. * src/LogFactory.h: New class.
  13670. * src/LogFactory.cc: New class.
  13671. * src/Command.h (logger): New variable.
  13672. (Constructor): Use LogFactory.
  13673. * src/AbstractCommand.cc: Use Command::logger
  13674. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  13675. Use LogFactory.
  13676. * src/SegmentSplitter.h : Made logger protected.
  13677. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  13678. * src/SegmentMan.cc (Constructor): Use LogFactory.
  13679. * src/DownloadEngine.h : Made logger protected.
  13680. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  13681. * src/PeerInteractionCommand.cc : Use Command::logger.
  13682. * src/HttpResponseCommand.cc : Use Command::logger.
  13683. * src/SegmentMan.h : Made logger private.
  13684. * src/TorrentMan.h : Made logger private.
  13685. * src/TorrentMan.cc : Use LogFactory.
  13686. * src/FtpNegotiateCommand.cc : Use Command::logger.
  13687. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  13688. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  13689. Use LogFactory.
  13690. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  13691. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  13692. Use LogFactory.
  13693. * src/DownloadCommand.cc : Use Command::logger.
  13694. * src/PeerAbstractCommand.cc : Use Command::logger.
  13695. * src/PeerListenCommand.cc : Use Command::logger.
  13696. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  13697. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  13698. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  13699. * src/TrackerWatcherCommand.cc : Use Command::logger.
  13700. * src/TrackerUpdateCommand.cc : Use Command::logger.
  13701. * src/TrackerDownloadCommand.cc : Use Command::logger.
  13702. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  13703. Use LogFactory.
  13704. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  13705. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  13706. Use LogFactory.
  13707. * src/main.cc (main): Use LogFactory.
  13708. * src/DiskAdaptor.h (logger): New variable.
  13709. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  13710. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  13711. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13712. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  13713. parameter to a tracker request.
  13714. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  13715. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  13716. * src/main.cc (setSignalHander): New function.
  13717. (main): Added a handler for SIGTERM.
  13718. (handler): Updated message.
  13719. (torrentHandler): Updated message.
  13720. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13721. * src/TorrentConsoleDownloadEngine.cc
  13722. (onPartialDownloadingCompletes): Renamed as
  13723. onSelectiveDownloadingCompletes.
  13724. (onSelectiveDownloadingCompletes): Updated message.
  13725. To add DiskAdaptor which abstract DiskWriter family:
  13726. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  13727. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  13728. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  13729. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  13730. MultiDiskAdaptor.h.
  13731. (readFileEntry): Changed its arguments.
  13732. (setup): setupDiskWriter is merged into this function.
  13733. (setupDiskWriter): Removed.
  13734. (setFileFilter): New function.
  13735. (readFileEntryFromMetaInfoFile): Updated according to the changes
  13736. made in readFileEntry.
  13737. (getFilePath): Removed.
  13738. (getTempFilePath): Removed.
  13739. (getSegmentFilePath): Updated due to the removal of getFilePath.
  13740. (fixFilename): Removed.
  13741. (copySingleFile): Removed.
  13742. (splitMultiFile): Removed.
  13743. (deleteTempFile): Removed.
  13744. (setFileEntriesToDownload): Removed.
  13745. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  13746. (isSelectiveDownloadingMode): New function.
  13747. (setAllMultiFileRequestedState): Removed.
  13748. (finishPartialDownloadingMode): Renamed as
  13749. finishSelectiveDownloadingMode.
  13750. (finishSelectiveDownloadingMode): New function.
  13751. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  13752. (getSelectedTotalLength): New function.
  13753. (onDownloadComplete): Use diskAdaptor.
  13754. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  13755. (Range): Removed.
  13756. (setMultiFileEntries): Renamed as setFileEntries.
  13757. (setFileEntries): New function.
  13758. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  13759. (pieceLength): New variable.
  13760. * src/main.cc (printDownloadCompeleteMessage): New function.
  13761. (torrentHandler): Use diskAdaptor instead of diskWriter.
  13762. (main): Renamed torrent-show-files to show-files.
  13763. Rewritten file contents listing.
  13764. * src/TorrentMan.h (FileEntry): Removed.
  13765. (multiFileTopDir): Removed.
  13766. (multiFileEntries): Removed.
  13767. (diskWriter): Removed.
  13768. (diskAdaptor): New variable.
  13769. * src/DefaultDiskWriter.h (totalLength): New variable.
  13770. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  13771. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  13772. diskWriter.
  13773. * src/TorrentConsoleDownloadEngine.h
  13774. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  13775. (partialTotalLength): Renamed as selectedTotalLength.
  13776. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  13777. openExistingFile, otherwise call initAndOpenFile.
  13778. (closeFile): fd > 0, not fd != 0.
  13779. * src/DirectDiskAdaptor.h: New class.
  13780. * src/DirectDiskAdaptor.cc: New class.
  13781. * src/MultiDiskAdaptor.h: New class.
  13782. * src/MultiDiskAdaptor.cc: New class.
  13783. * src/CopyDiskAdaptor.h: New class.
  13784. * src/CopyDiskAdaptor.cc: New class.
  13785. * src/DiskAdaptor.h: New class.
  13786. * src/DiskAdaptor.cc: New class.
  13787. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  13788. (PREF_SHOW_FILES): New definition.
  13789. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13790. To add the ability to download multi torrent into respective files
  13791. directly:
  13792. * src/DiskWriter.h (openFile): New function.
  13793. (seek): Removed.
  13794. * src/MultiDiskWriter.h: New class.
  13795. * src/MultiDiskWriter.cc: New class.
  13796. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  13797. protected.
  13798. (openFile): New function.
  13799. * src/AbstractDiskWriter.cc (openFile): New function.
  13800. * src/prefs.h (V_FALSE): New definition.
  13801. (PREF_DIRECT_FILE_MAPPING): New definition.
  13802. * src/TorrentMan.h (setupDiskWriter): New function.
  13803. (setAllMultiFileRequestedState): New function.
  13804. (onDownloadComplete): New function.
  13805. * src/TorrentMan.cc : Included MultiDiskWriter.h
  13806. (setupDiskWriter): New function.
  13807. (getFilePath): Updated.
  13808. (getTempFilePath): Updated.
  13809. (getSegmentFilePath): Updated.
  13810. (fixFilename): Updated.
  13811. (deleteTempFile): Updated.
  13812. (setAllMultiFileRequestedState): New function.
  13813. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  13814. (finishPartialDownloadingMode): Reset requested flags.
  13815. (onDownloadComplete): New function.
  13816. * src/main.cc: Added --direct-file-mapping option.
  13817. Use TorrentMan::setupDiskWriter().
  13818. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  13819. onDownloadComplete().
  13820. To fix ETA bug:
  13821. * src/Util.h (difftvsec): New function.
  13822. * src/Util.cc (difftvsec): New function.
  13823. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  13824. type of "elapsed" instead of long long int.
  13825. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  13826. The updates of statistics takes place every 1 seconds.
  13827. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  13828. (calculateSpeed): Changed its argument signature.
  13829. * src/PeerMessage.cc (toString): Fixed message.
  13830. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13831. To print ETA:
  13832. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  13833. completion handling when dealing with
  13834. TorrentMan::isPartialDownloadingMode() == true.
  13835. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  13836. New function.
  13837. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  13838. (sessionDownloadLength): New variable.
  13839. (avgSpeed): New variable.
  13840. (eta): New variable.
  13841. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  13842. new variables: eta, avgSpeed, startup.
  13843. (calculateSpeed): Calculate average speed and ETA.
  13844. (printStatistics): Added ETA.
  13845. * src/Util.h (secfmt): New function.
  13846. * src/Util.cc (secfmt): New function.
  13847. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13848. To detect "keep alive" flooding:
  13849. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  13850. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  13851. variable: keepAliveCount.
  13852. (detectMessageFlooding): Added "keep alive" flooding detection.
  13853. (receiveMessage): Increase keepAliveCount when "keep alive" message
  13854. received.
  13855. To add the ability to download only specified files in multi-file
  13856. torrent:
  13857. * src/BitfieldMan.h (filterBitfield): New variable.
  13858. (filterEnabled): New variable.
  13859. (setFilterBit): New function.
  13860. (enableFilter): New function.
  13861. (disableFilter): New function.
  13862. (isFilterEnabled): New function.
  13863. (getFilteredTotalLength): New function.
  13864. (getCompletedLength): New function.
  13865. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  13866. filterBitfield, filterEnabled.
  13867. (CopyConstructor): Added filterBitfield and filterEnabled.
  13868. (operator==): Added filterBitfield and filterEnabled.
  13869. (Destructor): Added filterBitfield.
  13870. (getMissingIndex): Use filterBitfield.
  13871. (getMissingUnusedIndex): Use filterBitfield.
  13872. (getFirstMissingUnusedIndex): Use filterBitfield.
  13873. (getFirstMissingUnusedIndex): Use filterBitfield.
  13874. (getAllMissingIndexes): Use filterBitfield.
  13875. (countMissingBlock): Use filterBitfield.
  13876. (countBlock): Use filterBitfield.
  13877. (setBitInternal): Added new argument on.
  13878. (setUseBit): Use setBitInternal.
  13879. (unsetUseBit): Use setBitInternal.
  13880. (setBit): Use setBitInternal.
  13881. (unsetBit): Use setBitInternal.
  13882. (isAllBitSet): Use filterBitfield.
  13883. (setFilterBit): New function.
  13884. (addFilter): New function.
  13885. (enableFilter): New function.
  13886. (disableFilter): New function.
  13887. (clearFilter): New function.
  13888. (isFilterEnabled): New function.
  13889. (getFilteredTotalLength): New function.
  13890. (getCompletedLength): New function.
  13891. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  13892. Initalized newly added variables.
  13893. [FileEntry](offset): New variable.
  13894. [FileEntry](extracted): New variable.
  13895. [FileEntry](requested): New variable.
  13896. (readFileEntry): New function.
  13897. (option): New variable.
  13898. (splitMultiFile): Removed const qualifier.
  13899. (fixFilename): Removed const qualifier.
  13900. (readFileEntryFromMetaInfoFile): New function.
  13901. (finishPartialDownloadingMode): New function.
  13902. (isPartialDownloadingMode): New function.
  13903. (setFileEntriesToDownload): New function.
  13904. (getCompletedLength): New function.
  13905. (getPartialTotalLength): New function.
  13906. * src/TorrentMan.cc (readFileEntry): New function.
  13907. (setup): Use readFileEntry. If no-preallocation option is specified,
  13908. use DefaultDiskWriter.
  13909. (readFileEntryFromMetaInfoFile): New function.
  13910. (fixFilename): Removed const qualifier.
  13911. (splitMultiFile): Removed const qualifier.
  13912. (setFileEntriesToDownload): New function.
  13913. (isPartialDownloadingMode): New function.
  13914. (finishPartialDownloadingMode): New function.
  13915. (getCompletedLength): New function.
  13916. (getPartialTotalLength): New function.
  13917. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  13918. New variable.
  13919. (partialTotalLength): New variable.
  13920. (downloadLength): New variable.
  13921. (totalLength): New variable.
  13922. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  13923. Added log.
  13924. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  13925. partialTotalLength, downloadLength, totalLength.
  13926. (calculate): Calculate downloadLength and totalLength.
  13927. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  13928. * src/main.cc (addCommand): Changed argument signature.
  13929. (main): Added new variable: args. Added new option "torrent-show-files"
  13930. "no-preallocation". Usage is not updated yet.
  13931. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13932. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  13933. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13934. Attempt to add the ability to listing file entries in a .torrent file.
  13935. This feature is not yet complete.
  13936. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  13937. * src/TorrentMan.cc (getMultiFileEntries): New function.
  13938. (getName): New function.
  13939. * src/TorrentMan.h (getMultiFileEntries): New function.
  13940. (getName): New function.
  13941. * src/main.cc (main): Use above 2 funtion.
  13942. * Release 0.3.2
  13943. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13944. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  13945. (detectMessageFlooding): Updated threshold value.
  13946. (checkLongTimePeerChoking): Updated timeout value.
  13947. (getNewPieceAndSendInterest): Added debug log.
  13948. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  13949. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  13950. (getPeer): Updated.
  13951. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  13952. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  13953. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  13954. is localhost.
  13955. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  13956. * src/PendingMessage.cc (processMessage): Not to send piece message
  13957. if peer is not interested in the pieces localhost has.
  13958. * src/Peer.cc (shouldChoke): Updated.
  13959. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  13960. * src/Util.cc (isPowerOf): New function.
  13961. * src/Util.h (isPowerOf): New function.
  13962. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  13963. whether or not it is power of 2.
  13964. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13965. Added new class SendMessageQueue that includes PendingMessages and
  13966. RequestSlotMan.
  13967. * src/SendMessageQueue.h: New class.
  13968. * src/SendMessageQueue.cc: New class.
  13969. * src/PendingMessage.h: Added new member variable blockIndex and its
  13970. accessors.
  13971. (createRequestMessage): Updated.
  13972. * src/PendingMessage.cc (createRequestMessage): Updated.
  13973. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  13974. SendMessageQueue.
  13975. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  13976. (receiveMessage): Updated with SendMessageQueue.
  13977. (deletePendingPieceMessage): Removed.
  13978. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  13979. (sendInterest): Updated with SendMessageQueue.
  13980. (createRequestPendingMessage): Updated with SendMessageQueue.
  13981. (sendMessages): Updated with SendMessageQueue.
  13982. (onAbort): Updated with SendMessageQueue.
  13983. (keepAlive): Updated with SendMessageQueue.
  13984. (beforeSocketCheck): Updated SendMessageQueue.
  13985. * src/PeerInteractionCommand (sendMessages): Shuffle
  13986. missingBLockIndexes before using it.
  13987. Added its own timeout for peer connection.
  13988. * src/PeerAbstractCommand.h: Added member variable timeout and its
  13989. setter.
  13990. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  13991. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13992. Added setTimeout() call.
  13993. (executeInternal): Added setTimeout() call.
  13994. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  13995. Added timeout.
  13996. (isTimeoutDetected): Updated.
  13997. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  13998. option.
  13999. Added *simple* message flooding checker.
  14000. * src/PeerInteractionCommand.cc (executeInternal):
  14001. Added detectMessageFlooding() call.
  14002. (detectMessageFlooding): New function.
  14003. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  14004. (beforeSocketCheck): Added detectMessageFlooding() call.
  14005. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  14006. chokeUnchokeCount, haveCount, detectMessageFlooding().
  14007. Removed deletePendingPieceMessage(), getRequestSlot(),
  14008. deleteRequestSlot(), deleteAllRequestSlot().
  14009. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  14010. Added checkLongTimePeerChoking() call.
  14011. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  14012. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  14013. if duplicate == false.
  14014. The parameter "uploaded" and "downloaded" in the tracker request are
  14015. the size since the client sent the "started" event to the tracker.
  14016. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  14017. uploaded size to preDownloadedSize, preUploadedSize respectively.
  14018. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  14019. getSessionDownloadedSize(), getSessionUploadedSize().
  14020. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  14021. getSessionUploadedSize() instead of getDownloadedSize(),
  14022. getUploadedSize().
  14023. * src/PendingMessage.cc (processMessage): Do not send request message
  14024. if the peer is choking the client.
  14025. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  14026. less than interval.
  14027. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14028. * configure.in: Added gnutls support. Added several CPP macros.
  14029. * m4/openssl.m4: Added.
  14030. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  14031. readData(), peekData(). Added gnutls support.
  14032. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  14033. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  14034. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  14035. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  14036. Instead, added a check for whether setup method has executed
  14037. successfully.
  14038. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  14039. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  14040. * src/Makefile.am: Updated.
  14041. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  14042. using whether OpenSSL or gcrypt, depending on the result of configure
  14043. script.
  14044. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  14045. messageDigest.h.
  14046. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  14047. * src/PeerListenCommand.cc: Added log about port binded successfully.
  14048. Fixed memory leak.
  14049. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  14050. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  14051. Removed instantiation of TrackerInitCommand. Instead,
  14052. TrackerWatcherCommand is instantiated and pushed to the command queue.
  14053. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  14054. ENABLE_SSL.
  14055. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  14056. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  14057. If a piece is already acquired by another command, delete the request
  14058. slots for the piece.
  14059. * src/TrackerUpdateCommand.cc (execute):
  14060. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  14061. Added a check whether peer list is null.
  14062. Fixed the bug that causes sending completed event to the tracker
  14063. several times.
  14064. * src/TrackerInitCommand.cc (execute):
  14065. Fixed the bug that causes sending completed event to the tracker
  14066. several times.
  14067. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  14068. by using messageDigest.h.
  14069. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14070. * PeerConnection.cc: Replaced log message "keep-alive" with
  14071. "keep alive".
  14072. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  14073. localhost long time.
  14074. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  14075. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  14076. at most 100 failure entry from the list. If with duplicate = false,
  14077. MAX_PEER_LIST is not checked.
  14078. * PeerListenCommand.cc: Fixed the argument order of log message.
  14079. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14080. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  14081. Added warn().
  14082. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  14083. Implemented warn().
  14084. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  14085. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14086. * Request.h: Added AFTER_COMPLETED event.
  14087. * TorrentDownloadEngine.cc: Prints "Download complete" message
  14088. instead of downloaded size and progress(%) after download completes.
  14089. * PeerInteractionCommand.cc: After download completes, sends unchoke
  14090. message to the peer if it is interested in what localhost has
  14091. downloaded.
  14092. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  14093. destination instead of just renaming it.
  14094. * TorrentMan.cc: Added deleteTempFile().
  14095. * PeerAbstractCommand.cc: do not stop execution after download
  14096. completes. This makes localhost a seeder.
  14097. * Util.{h,cc}: Added fileCopy().
  14098. * PeerListenCommand.cc: do not stop execution after download completes.
  14099. This makes localhost a seeder.
  14100. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  14101. Added TorrentMan::deleteTempFile() to torrentHandler.
  14102. Initialized the variable dir as ".".
  14103. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  14104. Deleted renameSingleFile().
  14105. Added copySingleFile(), deleteTempFile().
  14106. * DownloadEngine.h: Added virtual function afterEachIteration().
  14107. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  14108. in onEndOfRun() to afterEachIteration().
  14109. In onEndOfRun(), changed if condition to check whether filenameFixed is
  14110. true.
  14111. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  14112. In rangedFileCopy(), added try-catch block to properly close file
  14113. descriptors.
  14114. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  14115. Added afterEachIteration(), isFilenameFixed().
  14116. * Peer.cc: Changed choking strategy.
  14117. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  14118. * TrackerInitCommand.cc: Send completed event only once.
  14119. * DownloadEngine.cc: Added a call to afterEachIteration().
  14120. * TrackerUpdateCommand.cc: Do not stop execution after download
  14121. completes.
  14122. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  14123. connect the peers at most MAX_PEER_UPDATE when a peer list is
  14124. received from a tracker.
  14125. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  14126. Decreased the number of failure peers to delete to 0(just comment out
  14127. the line).
  14128. * Release 0.3.1
  14129. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14130. * PeerInteractionCommand.cc: added a call to
  14131. TorrentMan::unadvertisePiece in Destructor.
  14132. * PeerInteractionCommand.cc: make have message sent immediately
  14133. if the size of pending message queue is zero.
  14134. * TorrentMan.cc: set the maximum size of peer list to 250.
  14135. * TorrentMan.h: changed the container type of Peers and UsedPieces
  14136. to deque.
  14137. * Util.cc: fixed rangedFileCopy.
  14138. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  14139. to Constructor. Also, moved digest cleanup to Destructor.
  14140. * MetaFileUtil.cc: fixed memory leak
  14141. * replaced std::vector with std::deque.
  14142. * AbstractCommand.cc: casted timeout value to long long int.
  14143. * ChunkedEncoding.cc: fixed memory leak.
  14144. * PeerInteractionCommand.cc: casted timeout value to long long int.
  14145. * SleepCommand.cc: casted timeout value to long long int.
  14146. * Data.cc: fixed memory leak.
  14147. * Data.cc: fixed toLLInt().
  14148. * BitfieldMan.cc: fixed memory leak.
  14149. * TorrentMan.cc: initialized storeDir to ".".
  14150. * TorrentMan.cc: fixed memory leak.
  14151. * TorrentMan.cc: corrected file paths of splitted files.
  14152. * PeerAbstractCommand.cc: casted timeout to long long int.
  14153. * main.cc: added delete(req) and delete(te->diskWriter).
  14154. * RequestSlot.cc: casted timeout value to long long int.
  14155. * Request.cc: fixed memory leak.
  14156. * PendingMessage.cc: make HAVE messages sent only when peer does not
  14157. have the piece.
  14158. * Peer.{h,cc}: added hasPiece(int index).
  14159. * main.cc: corrected addCommand.
  14160. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14161. * BitTorrent protocol support added.
  14162. * Release 0.3.0
  14163. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14164. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  14165. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14166. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  14167. decoding did not work properly.
  14168. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14169. * DownloadEngine.h: included sys/time.h
  14170. * DownloadEngine.cc: remove sys/time.h
  14171. * Makefile.am (SUBDIRS): Add intl.
  14172. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  14173. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14174. * main.cc: correct help message for --http-auth-scheme.
  14175. * main.cc: changed e-mail address for bug reports.
  14176. * ja.po: added japanese translation.
  14177. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14178. * SimpleLogger.cc: flush log file instead of stdout.
  14179. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14180. * main.cc: Fixed command-line option: max-tries
  14181. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  14182. does not equal to seg.sp.
  14183. * DownloadCommand.cc: If EOF is got from the server and the total size
  14184. of file is not zero, then throw DlRetryEx.
  14185. * main.cc: Set the minium value of min-segment-size to 1024.
  14186. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  14187. fails because of a regression since 0.2.0 release.
  14188. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14189. * HttpConnection.cc:
  14190. * common.h: defined the user agent name as macro
  14191. * DownloadEngine.{h, cc}:
  14192. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  14193. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  14194. * main.cc: Download complete/abort message is now generated by main.
  14195. * Makefile.am (SUBDIRS): Add m4.
  14196. (ACLOCAL_AMFLAGS): New variable.
  14197. (EXTRA_DIST): New variable.
  14198. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  14199. * gettext: added gettext functionality
  14200. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14201. * AbstractCommand.cc:
  14202. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  14203. unregister its cuid from SegmentMan.
  14204. * DownloadEngine.cc: .aria2 file was written when a downloading
  14205. failed with errors.
  14206. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  14207. Added "User-Agent" header to CONNECT proxy request.
  14208. Fixed "Proxy-Authorization" header. Now proxy authorization works
  14209. properly.
  14210. * Logger.h:
  14211. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  14212. * ChunkedEncoding.cc: Added #include directive for strings.h
  14213. * Release 0.2.1
  14214. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14215. * Util.{h,cc}: added startsWith().
  14216. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  14217. Util::endsWith().
  14218. * SocketCore.cc: struct addrinfo is now zero-initialized.
  14219. * common.h: added #include directive of limit.h.
  14220. * DownloadEngine.cc: added #include directive of sys/time.h and
  14221. algorithm.
  14222. * Exception.h: added #include directive of stdio.h.
  14223. * AbstractCommand.h: added #include directive of sys/time.h.
  14224. * DownloadCommand.h: added #include directive of sys/time.h.
  14225. * *.h: added #include directive of common.h to all base classes.
  14226. subclasses' one was removed.
  14227. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  14228. does not define these macros.
  14229. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14230. * Release 0.2.0
  14231. * main.cc:
  14232. * HttpInitiateConnectionCommand.{h,cc}:
  14233. * prefs.h:
  14234. * HttpConnection.{h,cc}: added --http-proxy-method option.
  14235. We can now use GET command in http proxy.
  14236. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14237. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  14238. that splits slowest segment of SegmentMan::commands vector.
  14239. This is the default split algorithm of aria2.
  14240. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  14241. that splits first segment of SegmentMan::commands vector.
  14242. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  14243. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  14244. * Segment.h:
  14245. * SegmentMan.cc: Added speed field to Segment.h
  14246. * main.cc: -s option now affects all URLs in command-line arguemtns.
  14247. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  14248. * message.h: Change file size related %d to %lld.
  14249. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14250. * FtpInitiateConnectionCommand.{h,cc}:
  14251. * FtpNegotiationCommand.{h,cc}:
  14252. * FtpDownloadCommand.{h,cc}:
  14253. * FtpConnection.{h,cc}: Added FTP support
  14254. * SimpleLogger.cc: Log message now includes time information.
  14255. * main.cc: The value of --http-auth-scheme option is chagned from
  14256. 'BASIC' to 'basic'
  14257. * main.cc: Added --timeout command-line option.
  14258. * main.cc: Added --min-segment-size command-line option.
  14259. * main.cc: Added --max-retries command-line option.
  14260. * prefs.h: option string constants are now defined in prefs.h
  14261. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14262. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  14263. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  14264. with version 0.1.0's one.
  14265. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14266. * configure.in: Added --enable-ssl option to configure script.
  14267. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  14268. cannot permit absoluteURI as Request-URI.
  14269. * HttpConnection.cc: Added Referer support.
  14270. * main.cc: Added referer command-line option.
  14271. * main.cc: Added rety-wait command-line option.
  14272. * Exception.h: Fixed formating bug in Exception::setMsg()
  14273. * SocketCore.{h,cc}:
  14274. * Socket.{h, cc}:
  14275. * Request.cc:
  14276. * InitiateConnectionCommandFactory.cc:
  14277. * HttpRequestCommand.cc: Added HTTPS support.
  14278. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  14279. for SocketCore.
  14280. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  14281. size is wrong
  14282. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  14283. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  14284. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  14285. * Release 0.1.0