ChangeLog 519 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355
  1. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. BitfieldMan::getMissingIndexes family functions now takes unsigned
  3. char* bitfield instead of stl container for efficiency.
  4. PieceSelector::select now takes this
  5. bitfield. RarestPieceSelector::select now also performs
  6. efficiently for this change. bitfield namespace is introduced and
  7. it has several helper functions to handle basic bitfield
  8. operations such as test, count set bits, etc.
  9. * src/BitfieldMan.cc
  10. * src/BitfieldMan.h
  11. * src/DefaultBtRequestFactory.cc
  12. * src/DefaultPieceStorage.cc
  13. * src/DefaultPieceStorage.h
  14. * src/LongestSequencePieceSelector.cc
  15. * src/LongestSequencePieceSelector.h
  16. * src/Makefile.am
  17. * src/Piece.cc
  18. * src/Piece.h
  19. * src/PieceSelector.h
  20. * src/RarestPieceSelector.cc
  21. * src/RarestPieceSelector.h
  22. * src/Util.cc
  23. * src/Util.h
  24. * src/bitfield.h
  25. * test/BitfieldManTest.cc
  26. * test/LongestSequencePieceSelectorTest.cc
  27. * test/Makefile.am
  28. * test/RarestPieceSelectorTest.cc
  29. * test/UtilTest.cc
  30. * test/bitfieldTest.cc
  31. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  32. Made accepted socket non-block.
  33. * src/FtpNegotiationCommand.cc
  34. * src/HttpListenCommand.cc
  35. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  36. Guarded #ifdef HAVE_POSIX_FALLOCATE
  37. * src/AbstractSingleDiskAdaptor.cc
  38. * src/DefaultPieceStorage.cc
  39. * src/DiskAdaptor.h
  40. * src/DiskAdaptor.h
  41. * src/MultiFileAllocationIterator.cc
  42. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  43. Run
  44. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  45. in every 1 sec. The timeout of RequestSlot is 60s by default and
  46. it doesn't need to be called every time when
  47. DefaultBtInteractive::doInteractionProcessing() is called.
  48. * src/DefaultBtInteractive.cc
  49. * src/DefaultBtInteractive.h
  50. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  51. Documented 'falloc' in man page.
  52. * doc/aria2c.1.txt
  53. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  54. Updated doc
  55. * src/usage_text.h
  56. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  57. Added 'falloc' parameter for --file-allocation option. 'falloc'
  58. allocation mode uses posix_fallocate() system call to allocate
  59. file on disk. If you are using newer file systems such as ext4
  60. (with extents support), btrfs or xfs, 'falloc' is your best
  61. choice. It allocates large(few GiB) files almost instantly. Don't
  62. use 'falloc' with legacy file systems such as ext3 because it
  63. takes almost same time as 'prealloc' and it blocks aria2 entirely
  64. until allocation finishes. 'falloc' may not be available if your
  65. system doesn't have posix_fallocate() system call.
  66. * configure.ac
  67. * src/AbstractDiskWriter.cc
  68. * src/AbstractDiskWriter.h
  69. * src/AbstractSingleDiskAdaptor.cc
  70. * src/BinaryStream.h
  71. * src/BtCheckIntegrityEntry.cc
  72. * src/ByteArrayDiskWriter.h
  73. * src/CheckIntegrityEntry.cc
  74. * src/CheckIntegrityEntry.h
  75. * src/DefaultPieceStorage.cc
  76. * src/DiskAdaptor.cc
  77. * src/DiskAdaptor.h
  78. * src/DiskWriter.h
  79. * src/FallocFileAllocationIterator.cc
  80. * src/FallocFileAllocationIterator.h
  81. * src/FileAllocationEntry.cc
  82. * src/FileAllocationEntry.h
  83. * src/Makefile.am
  84. * src/MultiFileAllocationIterator.cc
  85. * src/MultiFileAllocationIterator.h
  86. * src/OptionHandlerFactory.cc
  87. * src/RequestGroup.cc
  88. * src/StreamCheckIntegrityEntry.cc
  89. * src/prefs.cc
  90. * src/prefs.h
  91. * src/usage_text.h
  92. * test/FallocFileAllocationIteratorTest.cc
  93. * test/Makefile.am
  94. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  95. Removed duplicate enableDirectIO() call.
  96. * src/MultiFileAllocationIterator.cc
  97. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  98. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  99. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  100. cost of std::rotate().
  101. * src/RarestPieceSelector.cc
  102. * src/RarestPieceSelector.h
  103. * test/RarestPieceSelectorTest.cc
  104. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  105. Updated usage doc for --bt-tracker-interval option.
  106. * src/usage_text.h
  107. * doc/aria2c.1.txt
  108. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  109. Documented --bt-tracker-interval option in man page.
  110. * doc/aria2c.1.txt
  111. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  112. Added an option to specify the interval between tracker requests.
  113. If non-zero value is specified, aria2 uses it and ignores the
  114. interval value in the response of tracker. If zero is specified,
  115. aria2 determines the inteval value based on the tarcker response
  116. and download progress.
  117. * src/DefaultBtAnnounce.cc
  118. * src/DefaultBtAnnounce.h
  119. * src/OptionHandlerFactory.cc
  120. * src/RequestGroup.cc
  121. * src/prefs.cc
  122. * src/prefs.h
  123. * src/usage_text.h
  124. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  125. Added operator+=, operator-=, operator-
  126. * src/TransferStat.cc
  127. * src/TransferStat.h
  128. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  129. Refactored RarestPieceSelector to reduce CPU load, especially for
  130. addPieceStats.
  131. * src/RarestPieceSelector.cc
  132. * src/RarestPieceSelector.h
  133. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  134. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  135. getAllMissingBlockIndexes to reduce a call to
  136. array_function_base::operator[].
  137. * src/BitfieldMan.cc
  138. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  139. Cached TransferStat/download speed to avoid to sum them up in each
  140. call.
  141. * src/DefaultPeerStorage.cc
  142. * src/DefaultPeerStorage.h
  143. * src/SegmentMan.cc
  144. * src/SegmentMan.h
  145. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  146. Typedefed cuid_t as int32_t in Command.h
  147. * src/CUIDCounter.h
  148. * src/Command.cc
  149. * src/Command.h
  150. * src/DownloadEngine.cc
  151. * src/DownloadEngine.h
  152. * src/PeerStat.h
  153. * src/SegmentMan.cc
  154. * src/SegmentMan.h
  155. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  156. Reduced the number of calls to PeerStorage::calculateStat() and
  157. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  158. transfer rate.
  159. * src/DefaultBtInteractive.cc
  160. * src/DefaultBtMessageDispatcher.cc
  161. * src/DefaultPeerStorage.cc
  162. * src/DefaultPeerStorage.h
  163. * src/DownloadCommand.cc
  164. * src/DownloadEngine.cc
  165. * src/PeerStorage.h
  166. * src/SegmentMan.cc
  167. * src/SegmentMan.h
  168. * test/MockPeerStorage.h
  169. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  170. Prepended _dir+"/" after joining path elements in torrent file.
  171. * src/DefaultBtContext.cc
  172. * test/DefaultBtContextTest.cc
  173. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  174. Added missing IndexBtMessageValidator.h
  175. * src/Makefile.am
  176. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  177. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  178. Chinese translations. Thank you for contributing our project.
  179. * po/id.po
  180. * po/it.po
  181. * po/ru.po
  182. * po/uk.po
  183. * po/zh_CN.po
  184. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  185. Updated README
  186. * README
  187. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  188. Bump up version number to 1.3.0
  189. * configure.ac
  190. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  191. Updated doc
  192. * src/DefaultBtContext.h
  193. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  194. Slice/joinPath for name of single torrent.
  195. * src/DefaultBtContext.cc
  196. * test/DefaultBtContextTest.cc
  197. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  198. Updated man page: Documented --dry-run and --index-out
  199. options. Changed the default value of --uri-selector and
  200. --http-auth-challenge options. Removed --direct-file-mapping
  201. option. Added example for --index-out
  202. * doc/aria2c.1.txt
  203. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  204. Updated TEXT_DRY_RUN
  205. * src/usage_text.h
  206. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  207. Changed the default value of --uri-selector option from 'inorder'
  208. to 'feedback'
  209. * src/OptionHandlerFactory.cc
  210. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  211. Included current URI in exception message.
  212. * src/AbstractCommand.cc
  213. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  214. Renamed ServerStatURISelector as FeedbackURISelector.
  215. * src/FeedbackURISelector.cc
  216. * src/FeedbackURISelector.h
  217. * src/Makefile.am
  218. * src/RequestGroupMan.cc
  219. * src/ServerStatURISelector.cc
  220. * src/ServerStatURISelector.h
  221. * test/FeedbackURISelectorTest.cc
  222. * test/Makefile.am
  223. * test/ServerStatURISelectorTest.cc
  224. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  225. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  226. all URIs are tested and their timeout is not reached.
  227. * src/AdaptiveURISelector.cc
  228. * src/AdaptiveURISelector.h
  229. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  230. Changed the default value of --http-auth-challenge option to false.
  231. * src/OptionHandlerFactory.cc
  232. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  233. Reuse URIs when all unused URIs run out.
  234. * src/OptionHandlerFactory.cc
  235. * src/RequestGroup.cc
  236. * src/prefs.cc
  237. * src/prefs.h
  238. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  239. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  240. and BtRejectMessage are derived from RangeBtMessage class.
  241. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  242. derived from IndexBtMessage class. BtChokeMessage,
  243. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  244. BtNotInterestedMessage and BtUnchokeMessage are derived from
  245. ZeroBtMessage class.
  246. * src/AbstractBtMessage.cc
  247. * src/AbstractBtMessage.h
  248. * src/BtAllowedFastMessage.cc
  249. * src/BtAllowedFastMessage.h
  250. * src/BtAllowedFastMessageValidator.h: Removed
  251. * src/BtBitfieldMessage.cc
  252. * src/BtBitfieldMessage.h
  253. * src/BtCancelMessage.cc
  254. * src/BtCancelMessage.h
  255. * src/BtCancelMessageValidator.h: Removed
  256. * src/BtChokeMessage.cc
  257. * src/BtChokeMessage.h
  258. * src/BtExtendedMessage.cc
  259. * src/BtExtendedMessage.h
  260. * src/BtHandshakeMessage.cc
  261. * src/BtHandshakeMessage.h
  262. * src/BtHaveAllMessage.cc
  263. * src/BtHaveAllMessage.h
  264. * src/BtHaveMessage.cc
  265. * src/BtHaveMessage.h
  266. * src/BtHaveMessageValidator.h: Removed
  267. * src/BtHaveNoneMessage.cc
  268. * src/BtHaveNoneMessage.h
  269. * src/BtInterestedMessage.cc
  270. * src/BtInterestedMessage.h
  271. * src/BtKeepAliveMessage.cc
  272. * src/BtKeepAliveMessage.h
  273. * src/BtNotInterestedMessage.cc
  274. * src/BtNotInterestedMessage.h
  275. * src/BtPieceMessage.cc
  276. * src/BtPieceMessage.h
  277. * src/BtPortMessage.cc
  278. * src/BtPortMessage.h
  279. * src/BtRejectMessage.cc
  280. * src/BtRejectMessage.h
  281. * src/BtRejectMessageValidator.h: Removed
  282. * src/BtRequestMessage.cc
  283. * src/BtRequestMessage.h
  284. * src/BtRequestMessageValidator.h: Removed
  285. * src/BtSuggestPieceMessage.cc
  286. * src/BtSuggestPieceMessage.h
  287. * src/BtSuggestPieceMessageValidator.h: Removed
  288. * src/BtUnchokeMessage.cc
  289. * src/BtUnchokeMessage.h
  290. * src/DefaultBtMessageFactory.cc
  291. * src/IndexBtMessage.cc
  292. * src/IndexBtMessage.h
  293. * src/IndexBtMessageValidator.h
  294. * src/Makefile.am
  295. * src/PeerMessageUtil.cc
  296. * src/PeerMessageUtil.h
  297. * src/RangeBtMessage.cc
  298. * src/RangeBtMessage.h
  299. * src/RangeBtMessageValidator.h
  300. * src/SimpleBtMessage.cc
  301. * src/SimpleBtMessage.h
  302. * src/ZeroBtMessage.cc
  303. * src/ZeroBtMessage.h
  304. * test/BtRequestMessageTest.cc
  305. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  306. Reverted usage_text.h to r1093 to avoid to lose translated
  307. messages.
  308. * src/usage_text.h
  309. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  310. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  311. declared as non-const previously is now const and defined in class
  312. definition.
  313. * src/AbstractBtMessage.cc
  314. * src/AbstractBtMessage.h
  315. * src/BtAllowedFastMessage.cc
  316. * src/BtAllowedFastMessage.h
  317. * src/BtBitfieldMessage.h
  318. * src/BtCancelMessage.cc
  319. * src/BtCancelMessage.h
  320. * src/BtChokeMessage.cc
  321. * src/BtChokeMessage.h
  322. * src/BtExtendedMessage.cc
  323. * src/BtExtendedMessage.h
  324. * src/BtHandshakeMessage.cc
  325. * src/BtHandshakeMessage.h
  326. * src/BtHaveAllMessage.cc
  327. * src/BtHaveAllMessage.h
  328. * src/BtHaveMessage.cc
  329. * src/BtHaveMessage.h
  330. * src/BtHaveNoneMessage.cc
  331. * src/BtHaveNoneMessage.h
  332. * src/BtInterestedMessage.cc
  333. * src/BtInterestedMessage.h
  334. * src/BtKeepAliveMessage.cc
  335. * src/BtKeepAliveMessage.h
  336. * src/BtMessage.h
  337. * src/BtNotInterestedMessage.cc
  338. * src/BtNotInterestedMessage.h
  339. * src/BtPieceMessage.h
  340. * src/BtPortMessage.cc
  341. * src/BtPortMessage.h
  342. * src/BtRejectMessage.cc
  343. * src/BtRejectMessage.h
  344. * src/BtRequestMessage.cc
  345. * src/BtRequestMessage.h
  346. * src/BtSuggestPieceMessage.cc
  347. * src/BtSuggestPieceMessage.h
  348. * src/BtUnchokeMessage.cc
  349. * src/BtUnchokeMessage.h
  350. * src/SimpleBtMessage.cc
  351. * src/SimpleBtMessage.h
  352. * test/MockBtMessage.h
  353. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  354. Use FileEntry::exists()
  355. * src/MultiDiskAdaptor.cc
  356. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  357. Added exists()
  358. * src/FileEntry.cc
  359. * src/FileEntry.h
  360. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  361. Added missing prefix dir.
  362. * src/download_helper.cc
  363. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  364. Removed --direct-file-mapping option and CopyDiskAdaptor.
  365. * src/CopyDiskAdaptor.cc: Removed
  366. * src/CopyDiskAdaptor.h: Removed
  367. * src/DefaultPieceStorage.cc
  368. * src/Makefile.am
  369. * src/OptionHandlerFactory.cc
  370. * src/prefs.cc
  371. * src/prefs.h
  372. * src/usage_text.h
  373. * test/CopyDiskAdaptorTest.cc: Removed
  374. * test/Makefile.am
  375. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  376. Rewritten isSameFileBeingDownloaded()
  377. * src/RequestGroupMan.cc
  378. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  379. Removed getName() from DownloadContext. getName() is declared in
  380. BtContext.
  381. * src/BtContext.h
  382. * src/DownloadContext.h
  383. * src/SingleFileDownloadContext.cc
  384. * src/SingleFileDownloadContext.h
  385. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  386. in AbstractSingleDiskAdaptor.
  387. * src/AbstractSingleDiskAdaptor.h
  388. * src/DiskAdaptor.h
  389. * src/MultiDiskAdaptor.h
  390. * src/RequestGroup.cc
  391. Removed setTopDir() and getTopDir() and getTopDirPath() from
  392. MultiDiskAdaptor.
  393. * src/DefaultPieceStorage.cc
  394. * src/MultiDiskAdaptor.cc
  395. * src/MultiDiskAdaptor.h
  396. * test/MultiDiskAdaptorTest.cc
  397. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  398. FileEntry::getPath() contains store(top level) directory to
  399. simplify path handling operation. In the previous implementation,
  400. store directory is concatenated to FileEntry::getPath() in
  401. DownloadContext.
  402. * src/BtDependency.cc
  403. * src/BtPostDownloadHandler.cc
  404. * src/CopyDiskAdaptor.cc
  405. * src/DefaultBtContext.cc
  406. * src/DirectDiskAdaptor.cc
  407. * src/FileEntry.cc
  408. * src/FileEntry.h
  409. * src/FtpNegotiationCommand.cc
  410. * src/HttpResponse.cc
  411. * src/HttpResponseCommand.cc
  412. * src/Metalink2RequestGroup.cc
  413. * src/MultiDiskAdaptor.cc
  414. * src/MultiDiskAdaptor.h
  415. * src/MultiFileAllocationIterator.cc
  416. * src/RequestGroup.cc
  417. * src/SingleFileDownloadContext.cc
  418. * src/SingleFileDownloadContext.h
  419. * src/download_helper.cc
  420. * test/BtDependencyTest.cc
  421. * test/CopyDiskAdaptorTest.cc
  422. * test/DefaultBtContextTest.cc
  423. * test/DefaultBtProgressInfoFileTest.cc
  424. * test/DirectDiskAdaptorTest.cc
  425. * test/DownloadHelperTest.cc
  426. * test/FileEntryTest.cc
  427. * test/MultiDiskAdaptorTest.cc
  428. * test/MultiFileAllocationIteratorTest.cc
  429. * test/RequestGroupTest.cc
  430. * test/SingleFileDownloadContextTest.cc
  431. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  432. Fixed compiler warning
  433. * src/download_helper.cc
  434. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  435. Throw exception if same infohash torrent is now downloading.
  436. * src/RequestGroup.cc
  437. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  438. Added --dry-run option. In this mode, aria2 just checks whether
  439. the remote file is available and doesn't download data. This
  440. option has effect on HTTP/FTP downloads and BitTorrent downloads
  441. are canceled in this mode.
  442. * src/FtpNegotiationCommand.cc
  443. * src/HttpResponseCommand.cc
  444. * src/HttpResponseCommand.h
  445. * src/OptionHandlerFactory.cc
  446. * src/RequestGroup.cc
  447. * src/RequestGroupMan.cc
  448. * src/prefs.cc
  449. * src/prefs.h
  450. * src/usage_text.h
  451. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  452. Fixed compiler waring
  453. * test/UriListParserTest.cc
  454. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  455. Parse options in -i list using OptionParser.
  456. * src/UriListParser.cc
  457. * src/UriListParser.h
  458. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  459. Don't reset URI in retry to avoid additional round trips because
  460. of redirects.
  461. * src/AbstractCommand.cc
  462. * src/OptionHandlerFactory.cc
  463. * src/prefs.cc
  464. * src/prefs.h
  465. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  466. Declared hide() in OptionHandler.
  467. * src/NameMatchOptionHandler.h
  468. * src/OptionHandler.h
  469. * src/OptionHandlerImpl.h
  470. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  471. Updated doc
  472. * src/Peer.h
  473. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  474. Added log message in setStatusInternal()
  475. * src/ServerStat.cc
  476. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  477. Call ServerStat::setError() in AbstractCommand::onAbort() to
  478. effectively exclude failed server.
  479. * src/AbstractCommand.cc
  480. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  481. Added --index-out option to specify each file path for torrent.
  482. Here index shown in --show-files option is used to specify which
  483. file path should be altered. For example, to change the file path
  484. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  485. option multiple times: --index-out=1=aria2.tar.bz2
  486. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  487. available. This option can be specified in -i list.
  488. * src/DefaultBtContext.cc
  489. * src/DefaultBtContext.h
  490. * src/MultiDiskAdaptor.cc
  491. * src/MultiDiskAdaptor.h
  492. * src/MultiFileAllocationIterator.cc
  493. * src/OptionHandlerFactory.cc
  494. * src/OptionHandlerImpl.h
  495. * src/Util.cc
  496. * src/Util.h
  497. * src/download_helper.cc
  498. * src/prefs.cc
  499. * src/prefs.h
  500. * src/usage_text.h
  501. * test/DefaultBtContextTest.cc
  502. * test/MultiDiskAdaptorTest.cc
  503. * test/MultiFileAllocationIteratorTest.cc
  504. * test/UtilTest.cc
  505. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  506. Use Util::pathJoin()
  507. * src/MetalinkParserController.cc
  508. * test/test.xml
  509. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  510. Use Util::pathJoin()
  511. * src/DefaultBtContext.cc
  512. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  513. Added Util::pathJoin()
  514. * src/Util.h
  515. * test/UtilTest.cc
  516. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  517. Applied basename function to remove directory element in
  518. content-disposition value.
  519. Return empty string if content-disposition value is ".." or ".".
  520. * src/Util.cc
  521. * test/UtilTest.cc
  522. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  523. Added --max-overall-download-limit in man page.
  524. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  525. * doc/aria2c.1.txt
  526. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  527. Added --max-overall-download-limit option. Now --max-upload-limit
  528. option is not ignored when --max-overall-upload-limit option has
  529. non-zero value. aria2 checks download(upload) speed in the order:
  530. first checks overall speed limit and if it is not exceeded, then
  531. checks speed limit per download. Thus you can specify both
  532. value. For example, set --max-overall-download-limit=1M and
  533. --max-download-limit=500K to prevent from one download from eating
  534. all overall speed limit.
  535. * src/DefaultBtInteractive.cc
  536. * src/DefaultBtInteractive.h
  537. * src/DefaultBtMessageDispatcher.cc
  538. * src/DefaultBtMessageDispatcher.h
  539. * src/DownloadCommand.cc
  540. * src/DownloadCommand.h
  541. * src/FtpNegotiationCommand.cc
  542. * src/HttpResponseCommand.cc
  543. * src/OptionHandlerFactory.cc
  544. * src/PeerInteractionCommand.cc
  545. * src/RequestGroup.cc
  546. * src/RequestGroup.h
  547. * src/RequestGroupMan.cc
  548. * src/RequestGroupMan.h
  549. * src/prefs.cc
  550. * src/prefs.h
  551. * src/usage_text.h
  552. * test/DefaultBtMessageDispatcherTest.cc
  553. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  554. Documented select-file option in Input File section.
  555. Documented --http-auth-challenge option.
  556. * doc/aria2c.1.txt
  557. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  558. Now select-file can be specified in the uri list(-i list).
  559. * src/BtContext.cc
  560. * src/BtContext.h
  561. * src/RequestGroup.cc
  562. * src/Sequence.h
  563. * src/download_helper.cc
  564. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  565. Made the upper value of --max-concurrent-downloads options unlimited.
  566. * src/OptionHandlerFactory.cc
  567. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  568. Fixed the bug that disk writer is not created even if it shares
  569. same piece with the preceding file if the length of previous file
  570. is 0.
  571. * src/MultiDiskAdaptor.cc
  572. * test/MultiDiskAdaptorTest.cc
  573. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  574. In BitTorrent, Open files in read-only mode for hash check. After
  575. that, re-open file in read/write mode only when the download is
  576. not finished.
  577. * src/AbstractDiskWriter.cc
  578. * src/AbstractDiskWriter.h
  579. * src/AbstractSingleDiskAdaptor.cc
  580. * src/AbstractSingleDiskAdaptor.h
  581. * src/BtCheckIntegrityEntry.cc
  582. * src/DiskAdaptor.h
  583. * src/DiskWriter.h
  584. * src/MultiDiskAdaptor.cc
  585. * src/MultiDiskAdaptor.h
  586. * src/RequestGroup.cc
  587. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  588. Added --http-auth-challenge option. If it is set to true(by
  589. default), aria2 sends HTTP authorization header only when it is
  590. requested by the server. If false is set, then authorization
  591. header is always sent to the server. This is useful for servers
  592. that don't respond 401 code when authentication is required.
  593. There is an exception: if username and password are embedded in
  594. URI, authorization header is always sent to the server regardless
  595. of this option.
  596. * src/AuthConfigFactory.cc
  597. * src/HttpSkipResponseCommand.cc
  598. * src/OptionHandlerFactory.cc
  599. * src/prefs.cc
  600. * src/prefs.h
  601. * src/usage_text.h
  602. * test/AuthConfigFactoryTest.cc
  603. * test/HttpRequestTest.cc
  604. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  605. * Release 1.2.0
  606. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  607. Updated Spanish, Ukrainian, Russian and Japanese translations.
  608. Thanks to all translators.
  609. * po/es.po
  610. * po/ja.po
  611. * po/ru.po
  612. * po/uk.po
  613. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  614. Call deleteSocketForReadCheck() before socket is closed.
  615. * src/HttpListenCommand.cc
  616. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  617. Defined virtual destructor for BObject.
  618. * src/bencode.h
  619. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  620. Rewritten BDE to make it efficient.
  621. * src/bencode.cc
  622. * src/bencode.h
  623. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  624. Removed function throw list.
  625. * src/bencode.cc
  626. * src/bencode.h
  627. * test/BencodeTest.cc
  628. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  629. Enclosed all URLs in double quotes in command-line examples.
  630. * doc/aria2c.1.txt
  631. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  632. Updated reference/see also section.
  633. * README
  634. * doc/aria2c.1.txt
  635. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  636. Reorganized man page based on man man-pages.
  637. * doc/aria2c.1.txt
  638. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  639. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  640. because same documents are available in man page. Added
  641. References section.
  642. * README
  643. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  644. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  645. PERFORMANCE PROFILE section.
  646. * doc/aria2c.1.txt
  647. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  648. Rewritten the section for configuration file.
  649. * README
  650. * doc/aria2c.1.txt
  651. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  652. Fixed the segmentation fault during execution of choking algorithm
  653. in leecher state because of broken compare operator
  654. implementation.
  655. * src/BtLeecherStateChoke.cc
  656. * src/BtLeecherStateChoke.h
  657. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  658. Open file in binary mode.
  659. * src/CookieStorage.cc
  660. * src/DHTSetup.cc
  661. * src/DHTUtil.cc
  662. * src/Netrc.cc
  663. * src/NsCookieParser.cc
  664. * src/ProtocolDetector.cc
  665. * src/RequestGroupMan.cc
  666. * src/Signature.cc
  667. * src/bencode.cc
  668. * src/download_helper.cc
  669. * src/option_processing.cc
  670. * test/CookieParserTest.cc
  671. * test/DefaultBtProgressInfoFileTest.cc
  672. * test/FileTest.cc
  673. * test/GZipDecoderTest.cc
  674. * test/RequestGroupManTest.cc
  675. * test/SignatureTest.cc
  676. * test/SingleFileAllocationIteratorTest.cc
  677. * test/UriListParserTest.cc
  678. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  679. Removed operator[] because it is ambiguous with built-in []
  680. operator.
  681. * src/array_fun.h
  682. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  683. Fixed compile error
  684. * src/OptionParser.cc
  685. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  686. Added missing call to arrayWrapperConst
  687. * test/array_funTest.cc
  688. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  689. Use array_wrapper instead of array_ptr.
  690. * src/DHTRoutingTableDeserializer.cc
  691. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  692. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  693. * src/array_fun.h
  694. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  695. Added array_wrapper template.
  696. * src/array_fun.h
  697. * test/array_funTest.cc
  698. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  699. Use operator T* of array_ptr.
  700. * src/OptionParser.cc
  701. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  702. Use localhost instead of 127.0.0.1
  703. * test/FtpConnectionTest.cc
  704. * test/MSEHandshakeTest.cc
  705. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  706. Added operator T*
  707. * src/array_fun.h
  708. * test/array_funTest.cc
  709. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  710. Use dynamically allocated char array to detect memory access
  711. violation.
  712. * src/DHTRoutingTableDeserializer.cc
  713. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  714. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  715. defined.
  716. * src/PeerMessageUtil.cc
  717. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  718. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  719. * configure.ac
  720. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  721. Added a check to see struct sockaddr_in has sin_len member.
  722. * configure.ac
  723. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  724. Fixed buffer overrun.
  725. * src/DHTRoutingTableDeserializer.cc
  726. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  727. Added LL for long long int constant.
  728. * test/FtpConnectionTest.cc
  729. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  730. Casted to unsigned int to suppress compiler warning on netbsd.
  731. * src/BtRuntime.h
  732. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  733. Assign the value of tv.tv_sec to time_t timesec instead of giving
  734. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  735. type time_t.
  736. * src/SimpleLogger.cc
  737. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  738. Added test for FtpConnection::receiveSizeResponse().
  739. * test/FtpConnectionTest.cc
  740. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  741. Fix epoll error on the old kernel 2.6.8 or ealier.
  742. * src/EpollEventPoll.cc
  743. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  744. Use Util::parseLLInt instead of sscanf for portability. The
  745. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  746. * src/FtpConnection.cc
  747. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  748. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  749. block. It should not filter anything.
  750. * src/BitfieldMan.cc
  751. * src/ConsoleStatCalc.cc
  752. * test/BitfieldManTest.cc
  753. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  754. Fixed the bug that the boolean options that don't take arguments
  755. don't work.
  756. * src/OptionHandlerImpl.h
  757. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  758. Fixed broken selected file BitTorrent download.
  759. * src/MultiDiskAdaptor.cc
  760. * test/MultiDiskAdaptorTest.cc
  761. * test/MultiFileAllocationIteratorTest.cc
  762. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  763. Fixed #define guard for EpollEventPoll
  764. * src/EpollEventPoll.h
  765. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  766. Wait 2 seconds. 1 second is sometimes not enough.
  767. * test/TimeSeedCriteriaTest.cc
  768. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  769. Use localhost instead of 127.0.0.1.
  770. * test/DHTConnectionImplTest.cc
  771. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  772. Suppressed compiler warning.
  773. * src/AdaptiveURISelector.cc
  774. * src/DefaultPieceStorage.cc
  775. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  776. Defined virtual destructor.
  777. * src/MetalinkParserState.h
  778. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  779. Give NULL for second argument of getaddrinfo instead of "0".
  780. * src/NameResolver.cc
  781. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  782. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  783. included strptime doesn't parse data for this format.
  784. * src/FtpConnection.cc
  785. * test/FtpConnectionTest.cc
  786. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  787. Removed tests giving -1 for unsigned argument.
  788. * test/SingleFileDownloadContextTest.cc
  789. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  790. Don't use sha256 in tests because it might not be supported by the
  791. SSL library.
  792. * test/MetalinkProcessorTest.cc
  793. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  794. Removed tests giving -1 for unsigned argument.
  795. * test/AlphaNumberDecoratorTest
  796. * test/BitfieldManTest.cc
  797. * test/DefaultBtContextTest.cc
  798. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  799. Fixed compile error without libcares when epoll is available.
  800. * src/EpollEventPoll.cc
  801. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  802. Included fstream instead of iostream.
  803. * test/SignatureTest.cc
  804. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  805. Removed #include <algorithm>
  806. * test/RequestGroupTest.cc
  807. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  808. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  809. using RequestGroup::extractURIResult().
  810. * src/AdaptiveURISelector.cc
  811. * src/RequestGroup.cc
  812. * src/RequestGroup.h
  813. * test/RequestGroupTest.cc
  814. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  815. Added tests for array_ptr.
  816. * test/array_funTest.cc
  817. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  818. Don't send ip parameter to a tracker if ip parameter is empty
  819. string.
  820. * src/DefaultBtAnnounce.cc
  821. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  822. Adjusted line feed.
  823. * src/version_usage.cc
  824. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  825. Print tags, possible values when OptionHandlerException is caught.
  826. * src/option_processing.cc
  827. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  828. Changed the message for FatalException.
  829. * src/OptionParser.cc
  830. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  831. Documented --bt-external-ip option in man page. Updated man pages
  832. for --proxy-method option.
  833. * doc/aria2c.1.txt
  834. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  835. Use GET method for FTP via HTTP proxy.
  836. * src/FtpInitiateConnectionCommand.cc
  837. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  838. Changed the default value of --proxy-method option from 'tunnel'
  839. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  840. option.
  841. * src/AbstractCommand.cc
  842. * src/AbstractCommand.h
  843. * src/FtpInitiateConnectionCommand.cc
  844. * src/HttpDownloadCommand.cc
  845. * src/HttpInitiateConnectionCommand.cc
  846. * src/HttpInitiateConnectionCommand.h
  847. * src/OptionHandlerFactory.cc
  848. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  849. Initialized _logger
  850. * src/SelectEventPoll.cc
  851. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  852. Defined a copy constructor for the same type.
  853. * src/SharedHandle.h
  854. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  855. Added OptionParser::parseArg() which internally uses getopt_long
  856. to parse command-line options. All command-line options are now
  857. configured by OptionHandler. No manual editing of struct option*
  858. is required any more.
  859. * src/NameMatchOptionHandler.h
  860. * src/OptionHandler.h
  861. * src/OptionHandlerFactory.cc
  862. * src/OptionHandlerImpl.h
  863. * src/OptionParser.cc
  864. * src/OptionParser.h
  865. * src/array_fun.h
  866. * src/main.cc
  867. * src/option_processing.cc
  868. * test/OptionHandlerTest.cc
  869. * test/OptionParserTest.cc
  870. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  871. Fixed configure error with --disable-epoll
  872. * configure.ac
  873. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  874. Fixed compile error when HAVE_EPOLL is not defined.
  875. Fixed linker error on bigendian systems.
  876. * src/SocketCore.cc
  877. * src/SocketCore.h
  878. * test/DefaultBtProgressInfoFileTest.cc
  879. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  880. Added --bt-external-ip option. You can specify the external IP
  881. address to report to a BitTorrent tracker. Although this function
  882. is named 'external', it can accept any kind of IP addresses.
  883. * src/DefaultBtAnnounce.cc
  884. * src/OptionHandlerFactory.cc
  885. * src/option_processing.cc
  886. * src/prefs.cc
  887. * src/prefs.h
  888. * src/usage_text.h
  889. * test/DefaultBtAnnounceTest.cc
  890. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  891. Extracted the algorithm to find the longest incremental sequence
  892. as max_sequence template.
  893. * src/LongestSequencePieceSelector.cc
  894. * src/a2algo.h
  895. * test/Makefile.am
  896. * test/a2algoTest.cc
  897. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  898. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  899. * src/usage_text.h
  900. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  901. Updated doc for --uri-selector, --http-server-listen-port and
  902. --enable-http-server option. Documented --event-poll option.
  903. * doc/aria2c.1.txt
  904. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  905. Updated doc for --enable-http-server.
  906. * src/usage_text.h
  907. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  908. Documented --http-server-listen-port and --enable-http-server in
  909. man page.
  910. * doc/aria2c.1.txt
  911. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  912. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  913. translations. Thanks to all translators.
  914. * po/es.po
  915. * po/id.po
  916. * po/it.po
  917. * po/ru.po
  918. * po/uk.po
  919. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  920. Bump up version number to 1.2.0
  921. * configure.ac
  922. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  923. BtContext::getAnnounceTiers() now returns const reference.
  924. * src/BtContext.h
  925. * src/DefaultBtContext.cc
  926. * src/DefaultBtContext.h
  927. * test/MockBtContext.h
  928. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  929. Change the number of retries for tracker request based on the
  930. number of available tracker in a torrent file.
  931. * src/TrackerWatcherCommand.cc
  932. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  933. Added _maxTries property to RequestGroup and assign the option
  934. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  935. RequestGroup::getMaxTries() instead of
  936. Option::getAsInt(PREF_MAX_TRIES).
  937. * src/AbstractCommand.cc
  938. * src/RequestGroup.cc
  939. * src/RequestGroup.h
  940. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  941. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  942. Mandriva. I modified the patch: make RequestGroup have the
  943. timeout value and AdaptiveURISelector directly modifies that
  944. value.
  945. * src/AbstractCommand.cc
  946. * src/AdaptiveURISelector.cc
  947. * src/AdaptiveURISelector.h
  948. * src/FtpNegotiationCommand.cc
  949. * src/RequestGroup.cc
  950. * src/RequestGroup.h
  951. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  952. Fixed compiler warning
  953. * test/IteratableChecksumValidatorTest.cc
  954. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  955. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  956. integrated downloads. This PieceSelector subclass finds the
  957. longest continuous sequence in the available missing pieces and
  958. selects the last index of such sequence. This makes HTTP/FTP
  959. connections less interrupted by the pieces obtained by BitTorrent
  960. peers.
  961. * src/DefaultPieceStorage.cc
  962. * src/DefaultPieceStorage.h
  963. * src/LongestSequencePieceSelector.cc
  964. * src/LongestSequencePieceSelector.h
  965. * src/Makefile.am
  966. * src/PieceSelector.h
  967. * src/RarestPieceSelector.h
  968. * src/RequestGroup.cc
  969. * test/BtDependencyTest.cc
  970. * test/DefaultPieceStorageTest.cc
  971. * test/IteratableChecksumValidatorTest.cc
  972. * test/LongestSequencePieceSelectorTest.cc
  973. * test/Makefile.am
  974. * test/SegmentManTest.cc
  975. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  976. Fixed the bug that the average speed is wrong in
  977. http/ftp/BitTorrent integrated download. Only the download bytes
  978. in BitTorrent were considered.
  979. * src/RequestGroup.cc
  980. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  981. Choose port for BitTorrent/DHT randomly from the specified range.
  982. * src/DHTConnectionImpl.cc
  983. * src/PeerListenCommand.cc
  984. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  985. Send HTTP Authorization header only if it is requested by the
  986. server(response 401). There are some exceptions. The authorization
  987. header for proxy is always sent if it is available without request
  988. by the server. If username/password is specified in the URI, it
  989. is immediately sent to the server without request by the server.
  990. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  991. SharedHandle<AuthConfig>().
  992. NetrcAuthResolver::resolveAuthConfig() returns
  993. SharedHandle<AuthConfig>() if no AuthConfig is available.
  994. * src/AbstractAuthResolver.cc
  995. * src/AbstractProxyRequestCommand.cc
  996. * src/AuthConfigFactory.cc
  997. * src/AuthConfigFactory.h
  998. * src/HttpConnection.cc
  999. * src/HttpRequest.cc
  1000. * src/HttpRequest.h
  1001. * src/HttpResponse.cc
  1002. * src/HttpResponseCommand.cc
  1003. * src/HttpSkipResponseCommand.cc
  1004. * test/AuthConfigFactoryTest.cc
  1005. * test/HttpRequestTest.cc
  1006. * test/HttpResponseTest.cc
  1007. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1008. Remove leading "--" from help keyword and a substring after "="
  1009. from help keyword, so that one can query options by '-h--max-' or
  1010. '-hmax-peers=10'.
  1011. * src/option_processing.cc
  1012. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1013. Rewritten PStringVisitor and its implementation.
  1014. * src/PStringBuildVisitor.cc
  1015. * src/PStringBuildVisitor.h
  1016. * src/PStringDatum.h
  1017. * src/PStringNumLoop.h
  1018. * src/PStringSegment.cc
  1019. * src/PStringSegment.h
  1020. * src/PStringSelect.h
  1021. * src/PStringVisitor.h
  1022. * src/download_helper.cc
  1023. * test/PStringBuildVisitorTest.cc
  1024. * test/ParameterizedStringParserTest.cc
  1025. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1026. Persist connection between the built-in HTTP server and a client
  1027. if a client supports keep-alive. Fixed the bug that aria2 exits
  1028. when the HTTP server receives EOF from a client.
  1029. * src/HttpServer.cc
  1030. * src/HttpServer.h
  1031. * src/HttpServerCommand.cc
  1032. * src/HttpServerCommand.h
  1033. * src/HttpServerResponseCommand.cc
  1034. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1035. Added experimental built-in HTTP server. Currently, when a client
  1036. accesses to the server, it responds with the current download
  1037. progress. By default, it is disabled. To enable the server, give
  1038. --enable-http-server option. To change the default port number
  1039. for the server to listen to, use --http-server-listen-port option.
  1040. The response HTML is very simple and refreshes it self each 1
  1041. second. Because of this refresh, you see flicker in normal web
  1042. browser such as Firefox. I recommend to use console-based browser
  1043. such as elinks, w3m. To connect to the server, run 'elinks
  1044. http://localhost:6800/' while running aria2. Please replace port
  1045. number '6800'(which is default) with your preference.
  1046. * src/DownloadEngineFactory.cc
  1047. * src/HttpHeader.cc
  1048. * src/HttpHeader.h
  1049. * src/HttpHeaderProcessor.cc
  1050. * src/HttpHeaderProcessor.h
  1051. * src/HttpListenCommand.cc
  1052. * src/HttpListenCommand.h
  1053. * src/HttpServer.cc
  1054. * src/HttpServer.h
  1055. * src/HttpServerCommand.cc
  1056. * src/HttpServerCommand.h
  1057. * src/HttpServerResponseCommand.cc
  1058. * src/HttpServerResponseCommand.h
  1059. * src/Makefile.am
  1060. * src/OptionHandlerFactory.cc
  1061. * src/Util.cc
  1062. * src/Util.h
  1063. * src/help_tags.h
  1064. * src/option_processing.cc
  1065. * src/prefs.cc
  1066. * src/prefs.h
  1067. * src/usage_text.h
  1068. * test/HttpHeaderProcessorTest.cc
  1069. * test/UtilTest.cc
  1070. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1071. Removed.
  1072. * src/CheckIntegrityMan.cc
  1073. * src/FileAllocationMan.cc
  1074. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1075. Made (piece) hash check sequential for each RequestGroup because
  1076. simultaneous hash check is slower than sequential execution.
  1077. * src/CheckIntegrityCommand.cc
  1078. * src/CheckIntegrityDispatcherCommand.cc
  1079. * src/CheckIntegrityDispatcherCommand.h
  1080. * src/CheckIntegrityMan.h
  1081. * src/ConsoleStatCalc.cc
  1082. * src/DownloadCommand.cc
  1083. * src/DownloadEngine.cc
  1084. * src/DownloadEngine.h
  1085. * src/DownloadEngineFactory.cc
  1086. * src/Makefile.am
  1087. * src/Makefile.in
  1088. * src/RequestGroup.cc
  1089. * src/StatCalc.h
  1090. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1091. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  1092. SequentialDispatcherCommand.
  1093. * src/FileAllocationDispatcherCommand.cc
  1094. * src/SequentialDispatcherCommand.h
  1095. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1096. Rewritten FileAllocationDispatcherCommand using brand new
  1097. SequentialDispatcherCommand.
  1098. * src/DownloadEngineFactory.cc
  1099. * src/FileAllocationCommand.cc
  1100. * src/FileAllocationDispatcherCommand.cc
  1101. * src/FileAllocationDispatcherCommand.h
  1102. * src/Makefile.am
  1103. * src/SequentialDispatcherCommand.h
  1104. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1105. Replaced FileAllocationMan with
  1106. SequentialPicker<FileAllocationEntry>.
  1107. * src/BtCheckIntegrityEntry.cc
  1108. * src/ConsoleStatCalc.cc
  1109. * src/DownloadEngine.cc
  1110. * src/DownloadEngine.h
  1111. * src/DownloadEngineFactory.cc
  1112. * src/FileAllocationCommand.cc
  1113. * src/FileAllocationDispatcherCommand.cc
  1114. * src/FileAllocationMan.h
  1115. * src/Makefile.am
  1116. * src/SequentialPicker.h
  1117. * src/StatCalc.h
  1118. * src/StreamCheckIntegrityEntry.cc
  1119. * test/Makefile.am
  1120. * test/SequentialPickerTest.cc
  1121. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1122. Added doc for adaptive URI selector.
  1123. * doc/aria2c.1.txt
  1124. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1125. Added doc for adaptive URI selector.
  1126. * src/usage_text.h
  1127. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1128. Added doc for --bt-max-peers option.
  1129. * doc/aria2c.1.txt
  1130. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1131. Added doc for --bt-hash-check-seed option.
  1132. * doc/aria2c.1.txt
  1133. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1134. Documented exit codes.
  1135. * doc/aria2c.1.txt
  1136. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1137. Added --bt-max-peers option to specify the maximum number of peers
  1138. per torrent. 0 means unlimited number of peers.
  1139. * src/ActivePeerConnectionCommand.cc
  1140. * src/BtRuntime.h
  1141. * src/DefaultPeerStorage.cc
  1142. * src/DefaultPeerStorage.h
  1143. * src/OptionHandlerFactory.cc
  1144. * src/RequestGroup.cc
  1145. * src/option_processing.cc
  1146. * src/prefs.cc
  1147. * src/prefs.h
  1148. * src/usage_text.h
  1149. * test/DefaultPeerStorageTest.cc
  1150. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1151. Added --bt-hash-check-seed option. If true is given to this
  1152. option, after hash check using --check-integrity option and file
  1153. is complete, continue to seed file. If you want to check file and
  1154. download it only when it is damaged or incomplete, set this option
  1155. to false. This option has effect only on BitTorrent download.
  1156. The default value is true(This is the same behavior with the
  1157. previous release).
  1158. * src/BtCheckIntegrityEntry.cc
  1159. * src/OptionHandlerFactory.cc
  1160. * src/option_processing.cc
  1161. * src/prefs.cc
  1162. * src/prefs.h
  1163. * src/usage_text.h
  1164. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1165. Updated copyright year.
  1166. * src/version_usage.cc
  1167. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1168. Rewritten the usage text for --bt-request-peer-speed-limit option.
  1169. * doc/aria2c.1.txt
  1170. * src/usage_text.h
  1171. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1172. Made the max value of split option unlimited.
  1173. * doc/aria2c.1.txt
  1174. * src/OptionHandlerFactory.cc
  1175. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1176. Fixed compile warning/error.
  1177. * src/DownloadResult.h
  1178. * src/HttpDownloadCommand.cc
  1179. * src/ServerStat.cc
  1180. * test/RequestGroupTest.cc
  1181. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1182. Added --event-poll option to select the method for polling events.
  1183. The available methods are "select" and "epoll". "epoll" is
  1184. available on Linux only. The earlier release has the compile
  1185. option to choose from these methods.
  1186. * configure.ac
  1187. * src/RequestGroupMan.cc
  1188. * src/OptionHandlerFactory.cc
  1189. * src/EpollEventPoll.h
  1190. * src/StreamFileAllocationEntry.cc
  1191. * src/a2io.h
  1192. * src/SelectEventPoll.h
  1193. * src/option_processing.cc
  1194. * src/prefs.h
  1195. * src/EpollEventPoll.cc
  1196. * src/EventPoll.h
  1197. * src/SocketCore.h
  1198. * src/Makefile.am
  1199. * src/main.cc
  1200. * src/DownloadEngine.h
  1201. * src/SelectEventPoll.cc
  1202. * src/DownloadEngine.cc
  1203. * src/SocketCore.cc
  1204. * src/DownloadEngineFactory.cc
  1205. * src/Makefile.in
  1206. * src/prefs.cc
  1207. * src/usage_text.h
  1208. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1209. Included RecoverableException.h from main.cc
  1210. * src/main.cc
  1211. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1212. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  1213. now returns last error encountered in the HTTP/FTP downloads as a
  1214. exit status value. If all downloads finished successfully, aria2
  1215. returns 0. The error code is defined in src/DownloadResult.h.
  1216. The error occurred in the download currently in progress is not
  1217. reported as a last error. If no error has encountered but there
  1218. are in progress or waiting downloads, aria2 returns 7.
  1219. * src/AbstractCommand.cc
  1220. * src/DlAbortEx.h
  1221. * src/DlRetryEx.h
  1222. * src/DownloadCommand.cc
  1223. * src/DownloadFailureException.h
  1224. * src/DownloadResult.h
  1225. * src/FtpNegotiationCommand.cc
  1226. * src/HttpSkipResponseCommand.cc
  1227. * src/Makefile.am
  1228. * src/MultiUrlRequestInfo.cc
  1229. * src/MultiUrlRequestInfo.h
  1230. * src/RecoverableException.h
  1231. * src/RequestGroup.cc
  1232. * src/RequestGroup.h
  1233. * src/RequestGroupMan.cc
  1234. * src/RequestGroupMan.h
  1235. * src/URIResult.cc
  1236. * src/URIResult.h
  1237. * src/main.cc
  1238. * src/option_processing.cc
  1239. * test/RequestGroupTest.cc
  1240. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1241. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  1242. patch adds AdaptiveURISelector, which selects one of the bests
  1243. mirrors for first and reserved connections. For supplementary
  1244. ones, it returns mirrors which has not been tested yet, and if
  1245. each of them already tested, returns mirrors which has to be
  1246. tested again. Otherwise, it doesn't return anymore mirrors.
  1247. * src/AdaptiveURISelector.cc
  1248. * src/AdaptiveURISelector.h
  1249. * src/FtpNegotiationCommand.cc
  1250. * src/HttpResponseCommand.cc
  1251. * src/Makefile.am
  1252. * src/Makefile.in
  1253. * src/OptionHandlerFactory.cc
  1254. * src/RequestGroup.cc
  1255. * src/RequestGroup.h
  1256. * src/RequestGroupMan.cc
  1257. * src/ServerStat.cc
  1258. * src/ServerStat.h
  1259. * src/ServerStatMan.cc
  1260. * src/SpeedCalc.cc
  1261. * src/URISelector.h
  1262. * src/prefs.cc
  1263. * src/prefs.h
  1264. * test/RequestGroupManTest.cc
  1265. * test/ServerStatManTest.cc
  1266. * test/ServerStatTest.cc
  1267. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1268. Fixed unit test error.
  1269. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  1270. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1271. * Release 1.1.2
  1272. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1273. Updated Russian translation. Thanks to the translators.
  1274. * po/ru.po
  1275. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1276. Added the description of --use-head option to man page.
  1277. * doc/aria2c.1.txt
  1278. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1279. Bump up version number to 1.1.2
  1280. * configure.ac
  1281. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1282. Added --use-head option to toggle whether HEAD method should be
  1283. used in the first HTTP request. By default aria2 uses HEAD method
  1284. as the first request. When the server doesn't recognize HEAD, then
  1285. give aria2 --use-head=false to force aria2 to use GET method
  1286. instead.
  1287. * src/OptionHandlerFactory.cc
  1288. * src/RequestGroupMan.cc
  1289. * src/option_processing.cc
  1290. * src/prefs.cc
  1291. * src/prefs.h
  1292. * src/usage_text.h
  1293. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1294. Fixed the bug that BitTorrent download doesn't finish when REJECT
  1295. message is received before CHOKE message. The old implementation
  1296. doen't clear the use-bit of the piece when recieved REJECT
  1297. message.
  1298. * src/DefaultBtMessageDispatcher.cc
  1299. * test/DefaultBtMessageDispatcherTest.cc
  1300. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1301. * Release 1.1.1
  1302. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1303. Bump up version number to 1.1.1.
  1304. * configure.ac
  1305. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1306. Fixed the bug that --summary-interval=0 doesn't work. The summary
  1307. is printed repeatedly.
  1308. * src/ConsoleStatCalc.cc
  1309. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1310. * Release 1.1.0
  1311. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1312. Added ifdef clause for conditional compilation.
  1313. * src/main.cc
  1314. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1315. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  1316. translations. Thanks to all translators.
  1317. * po/ja.po
  1318. * po/ru.po
  1319. * po/uk.po
  1320. * po/zh_CN.po
  1321. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1322. Added the preceding ">>> " before the message "Printing the
  1323. contents of file..." to make the output more readable.
  1324. * src/main.cc
  1325. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1326. Added try-catch block in the loop in showFiles() to continue the
  1327. operation even if the exception occurred in one file.
  1328. * src/main.cc (showFiles)
  1329. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1330. Made messages in showFiles() translatable.
  1331. * po/aria2.pot
  1332. * src/main.cc
  1333. * src/message.h
  1334. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1335. Print the contents of Torrent/Metalink files are printed without
  1336. -T/-M options.
  1337. * src/main.cc
  1338. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1339. Escaped '--' with '\--'
  1340. * README
  1341. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1342. Updated "How to build" section in README. Mentioned about
  1343. --with-ca-bundle compile option.
  1344. * README
  1345. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1346. Bump up version number to 1.1.0.
  1347. * configure.ac
  1348. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1349. Added a note for --dht-listen-port option.
  1350. * doc/aria2c.1.txt
  1351. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1352. Update doc for --realtime-chunk-checksum option.
  1353. * doc/aria2c.1.txt
  1354. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1355. Update doc for --realtime-chunk-checksum option.
  1356. * src/usage_text.h
  1357. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1358. Updated French, Japanese, Russian and Ukrainian translations.
  1359. Thanks to all translators.
  1360. * po/fr.po
  1361. * po/ja.po
  1362. * po/ru.po
  1363. * po/uk.po
  1364. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1365. Renamed aria2c.pot to aria2.pot
  1366. * po/aria2.pot
  1367. * po/aria2c.pot: Removed.
  1368. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1369. Removed MetaEntry.h
  1370. * src/Makefile.am
  1371. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1372. Rename file by appending digits if a local file exists and its
  1373. file size is larger than that of remote file with --continue
  1374. option. The old implementation just throws exception in such case.
  1375. * src/RequestGroup.cc
  1376. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1377. Fixed the bug that download progress summary is not printed in the
  1378. interval specified by the option.
  1379. * src/ConsoleStatCalc.cc
  1380. * src/ConsoleStatCalc.h
  1381. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1382. Fixed compiler warning
  1383. * src/Cookie.cc
  1384. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1385. Fixed the cookie implementation based on RFC2965.
  1386. Now if a value in domain field is not started with dot, then
  1387. prepend dot. That means a cookie with domain=sf.net is sent to
  1388. wiki.sf.net.
  1389. * src/Cookie.cc
  1390. * test/CookieParserTest.cc
  1391. * test/CookieStorageTest.cc
  1392. * test/CookieTest.cc
  1393. * test/NsCookieParserTest.cc
  1394. * test/Sqlite3MozCookieParserTest.cc
  1395. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1396. Fixed the bug that causes corrupted downloads if HTTP pipelining
  1397. is enabled and the server doesn't support keep-alive.
  1398. * src/AbstractCommand.cc
  1399. * src/DownloadCommand.cc
  1400. * src/HttpDownloadCommand.cc
  1401. * src/HttpDownloadCommand.h
  1402. * src/HttpResponseCommand.cc
  1403. * src/Request.cc
  1404. * src/Request.h
  1405. * test/RequestTest.cc
  1406. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1407. Removed Dictionary/List/Data and its related classes.
  1408. * src/BencodeVisitor.cc: Removed.
  1409. * src/BencodeVisitor.h: Removed.
  1410. * src/Data.cc: Removed.
  1411. * src/Data.h: Removed.
  1412. * src/Dictionary.cc: Removed.
  1413. * src/Dictionary.h: Removed.
  1414. * src/List.cc: Removed.
  1415. * src/List.h: Removed.
  1416. * src/Makefile.am
  1417. * src/MetaEntry.h: Removed.
  1418. * src/MetaEntryVisitor.h: Removed.
  1419. * src/MetaFileUtil.cc: Removed.
  1420. * src/MetaFileUtil.h: Removed.
  1421. * test/BencodeVisitorTest.cc: Removed.
  1422. * test/DataTest.cc: Removed.
  1423. * test/DictionaryTest.cc: Removed.
  1424. * test/ListTest.cc: Removed.
  1425. * test/Makefile.am
  1426. * test/MetaFileUtilTest.cc: Removed.
  1427. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1428. Removed include of MetaEntry.h
  1429. * test/DHTMessageTrackerEntryTest.cc
  1430. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1431. Use BDE instead of Dictionary/List/Data.
  1432. * src/AnnounceList.cc
  1433. * src/AnnounceList.h
  1434. * test/AnnounceListTest.cc
  1435. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1436. Use BDE instead of Dictionary/List/Data.
  1437. * src/DHTAbstractMessage.cc
  1438. * src/DHTAbstractMessage.h
  1439. * src/DHTAnnouncePeerMessage.cc
  1440. * src/DHTAnnouncePeerMessage.h
  1441. * src/DHTAnnouncePeerReplyMessage.cc
  1442. * src/DHTAnnouncePeerReplyMessage.h
  1443. * src/DHTFindNodeMessage.cc
  1444. * src/DHTFindNodeMessage.h
  1445. * src/DHTFindNodeReplyMessage.cc
  1446. * src/DHTFindNodeReplyMessage.h
  1447. * src/DHTGetPeersMessage.cc
  1448. * src/DHTGetPeersMessage.h
  1449. * src/DHTGetPeersReplyMessage.cc
  1450. * src/DHTGetPeersReplyMessage.h
  1451. * src/DHTMessageFactory.h
  1452. * src/DHTMessageFactoryImpl.cc
  1453. * src/DHTMessageFactoryImpl.h
  1454. * src/DHTMessageReceiver.cc
  1455. * src/DHTMessageTracker.cc
  1456. * src/DHTMessageTracker.h
  1457. * src/DHTPingMessage.cc
  1458. * src/DHTPingMessage.h
  1459. * src/DHTPingReplyMessage.cc
  1460. * src/DHTPingReplyMessage.h
  1461. * src/DHTQueryMessage.cc
  1462. * src/DHTQueryMessage.h
  1463. * src/DHTResponseMessage.cc
  1464. * src/DHTResponseMessage.h
  1465. * test/DHTAnnouncePeerMessageTest.cc
  1466. * test/DHTAnnouncePeerReplyMessageTest.cc
  1467. * test/DHTFindNodeMessageTest.cc
  1468. * test/DHTFindNodeReplyMessageTest.cc
  1469. * test/DHTGetPeersMessageTest.cc
  1470. * test/DHTGetPeersReplyMessageTest.cc
  1471. * test/DHTMessageFactoryImplTest.cc
  1472. * test/DHTMessageTrackerTest.cc
  1473. * test/DHTPingMessageTest.cc
  1474. * test/DHTPingReplyMessageTest.cc
  1475. * test/MockDHTMessageFactory.h
  1476. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1477. Added tests the case where length < 0 is specified.
  1478. * test/BencodeTest.cc
  1479. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1480. Fixed memory leak in decoderawstring()
  1481. * src/bencode.cc
  1482. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1483. Added missing #ifdef guard. Added uc() function for String and
  1484. removeKey() for Dict.
  1485. * src/bencode.cc
  1486. * src/bencode.h
  1487. * test/BencodeTest.cc
  1488. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1489. Use BDE instead of Dictionary/List/Data.
  1490. * src/HandshakeExtensionMessage.cc
  1491. * src/HandshakeExtensionMessage.h
  1492. * test/HandshakeExtensionMessageTest.cc
  1493. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1494. Added --max-overall-upload-limit option. This option limits the
  1495. overall upload speed. Stated in help message that the existing
  1496. --max-upload-limit option limits the upload speed per each
  1497. torrent. Man page is also updated.
  1498. * doc/aria2c.1.txt
  1499. * src/DefaultBtMessageDispatcher.cc
  1500. * src/DefaultBtMessageDispatcher.h
  1501. * src/OptionHandlerFactory.cc
  1502. * src/PeerInteractionCommand.cc
  1503. * src/option_processing.cc
  1504. * src/prefs.cc
  1505. * src/prefs.h
  1506. * src/usage_text.h
  1507. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1508. Use BDE instead of Dictionary/List/Data classes.
  1509. * src/CompactPeerListProcessor.cc
  1510. * src/CompactPeerListProcessor.h
  1511. * src/DefaultBtAnnounce.cc
  1512. * src/DefaultBtContext.cc
  1513. * src/DefaultBtContext.h
  1514. * src/DefaultPeerListProcessor.cc
  1515. * src/DefaultPeerListProcessor.h
  1516. * src/DelegatingPeerListProcessor.cc
  1517. * src/DelegatingPeerListProcessor.h
  1518. * src/PeerListProcessor.h
  1519. * src/UTPexExtensionMessage.cc
  1520. * src/Util.h
  1521. * src/message.h
  1522. * test/DefaultBtContextTest.cc
  1523. * test/DefaultPeerListProcessorTest.cc
  1524. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1525. Added bencode helper functions and BDE class.
  1526. They will replace MetaFileUtil and Dictionary/List/Data classes.
  1527. * src/Makefile.am
  1528. * src/bencode.cc
  1529. * src/bencode.h
  1530. * test/BencodeTest.cc
  1531. * test/Makefile.am
  1532. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1533. Fixed the bug that bad URI is sent to the tracker when the announe
  1534. URI in torrent file includes query.
  1535. * src/DefaultBtAnnounce.cc
  1536. * test/DefaultBtAnnounceTest.cc
  1537. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1538. Added Option::blank().
  1539. Use !Option::blank(name) instead of Option::defined(name) for
  1540. the options that take filename.
  1541. * src/MultiUrlRequestInfo.cc
  1542. * src/Option.cc
  1543. * src/Option.h
  1544. * src/main.cc
  1545. * src/option_processing.cc
  1546. * test/OptionTest.cc
  1547. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1548. Documented the default value of --check-certificate option in man
  1549. page.
  1550. * doc/aria2c.1.txt
  1551. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1552. Enabled --check-certificate by default. Added compile
  1553. time(configure) option --with-ca-bundle to specify CA bundle.
  1554. Warn if --check-certificate=true and --ca-certificate is not
  1555. specified or loading CA certificate is failed.
  1556. * configure.ac
  1557. * src/MultiUrlRequestInfo.cc
  1558. * src/OptionHandlerFactory.cc
  1559. * src/message.h
  1560. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1561. Mentioned https tag in help option.
  1562. * doc/aria2c.1.txt
  1563. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1564. Added `https' tag to help option category. Added https tag to
  1565. --ca-certificate, --certificate, --check-certificate and
  1566. --private-key option.
  1567. * src/OptionHandlerFactory.cc
  1568. * src/help_tags.h
  1569. * src/option_processing.cc
  1570. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1571. Changed the package name from `aria2c' to `aria2' in order to fix
  1572. the packaging issue in Debian and Fedora. The name of the
  1573. executable is not changed.
  1574. * configure.ac
  1575. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1576. Fixed typos
  1577. * src/usage_text.h
  1578. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1579. Fixed typos and updated doc.
  1580. * README
  1581. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1582. Fixed typos
  1583. * doc/aria2c.1.txt
  1584. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1585. Fixed typos
  1586. * src/usage_text.h
  1587. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1588. Print a message when no files to download.
  1589. * src/download_helper.cc
  1590. * src/main.cc
  1591. * src/message.h
  1592. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1593. RFC3986 complied Percent-Encoding(urlencode).
  1594. Use uppercase hexadecimal digits for encoded text instead of lowercase
  1595. ones.
  1596. * src/Request.cc
  1597. * src/Util.cc
  1598. * src/Util.h
  1599. * test/BtHandshakeMessageTest.cc
  1600. * test/DefaultBtAnnounceTest.cc
  1601. * test/DefaultBtContextTest.cc
  1602. * test/RequestTest.cc
  1603. * test/UtilTest.cc
  1604. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1605. Fixed the bug that prevents aria2 from downloading 0-length files
  1606. via HTTP/FTP.
  1607. * src/DefaultBtContext.cc
  1608. * src/DefaultBtContext.h
  1609. * src/DownloadContext.h
  1610. * src/FtpNegotiationCommand.cc
  1611. * src/HttpResponseCommand.cc
  1612. * src/HttpResponseCommand.h
  1613. * src/RequestGroup.cc
  1614. * src/SingleFileDownloadContext.cc
  1615. * src/SingleFileDownloadContext.h
  1616. * test/BtPostDownloadHandlerTest.cc
  1617. * test/MetalinkPostDownloadHandlerTest.cc
  1618. * test/MockBtContext.h
  1619. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1620. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  1621. * src/option_processing.cc
  1622. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1623. Applied aria2-1.0.1-mingw.patch.
  1624. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  1625. mingw.
  1626. Collected 4th and 5th argument types for getsockopt and setsockopt.
  1627. * src/SocketCore.cc
  1628. * src/a2netcompat.h
  1629. * test/SocketCoreTest.cc
  1630. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1631. * Release 1.0.1
  1632. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1633. Updated Ukrainian and Norwegian Nynorsk translations.
  1634. Thanks to all translators.
  1635. * po/nn.po
  1636. * po/uk.po
  1637. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1638. Don't show download result when -S option is used.
  1639. * src/main.cc
  1640. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1641. Bump up version number to 1.0.1
  1642. * configure.ac
  1643. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1644. Closed files after the test cases in MultiDiskWriterTest::
  1645. testResetDiskWriterEntries(). This will fix the unit test error
  1646. in mingw32 build.
  1647. * test/MultiDiskWriterTest.cc
  1648. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1649. Use HEAD method to get file size from HTTP server for segmented
  1650. downloading.
  1651. The request to the BitTorrent Tracker always uses GET method because
  1652. the response of the tracker is small and it doesn't need segmented
  1653. download.
  1654. * src/FtpNegotiationCommand.cc
  1655. * src/HttpRequest.cc
  1656. * src/HttpResponseCommand.cc
  1657. * src/HttpSkipResponseCommand.cc
  1658. * src/RequestGroup.cc
  1659. * src/RequestGroup.h
  1660. * src/TrackerWatcherCommand.cc
  1661. * test/HttpRequestTest.cc
  1662. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1663. Fixed the bug that causes floating exception when -T option is used and
  1664. no URIs are given.
  1665. * src/download_helper.cc
  1666. * test/DownloadHelperTest.cc
  1667. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  1668. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  1669. errors in MinGW:
  1670. Closed file after saving server stats (RequestGroupMan.cc)
  1671. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  1672. Ignored case & handled 2-digit years (strptime.c)
  1673. Added missing suseconds_t definition (a2time.h)
  1674. Fixed socket CLOSE() define (SocketCore.cc)
  1675. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  1676. Changed utime() test values from x000 to x00000 as MinGW failed on
  1677. values less than timezone offset from Unix epoch
  1678. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  1679. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  1680. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  1681. handle negative dates (CookieParserTest.cc)
  1682. * src/a2time.h
  1683. * src/FtpConnection.cc
  1684. * src/RequestGroupMan.cc
  1685. * src/SocketCore.cc
  1686. * src/strptime.c
  1687. * test/CookieParserTest.cc
  1688. * test/CopyDiskAdaptorTest.cc
  1689. * test/FileTest.cc
  1690. * test/FtpConnectionTest.cc
  1691. * test/MultiDiskAdaptorTest.cc
  1692. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1693. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  1694. * doc/aria2c.1.txt
  1695. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1696. * Release 1.0.0
  1697. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1698. Added '~' to reserved characters.
  1699. * src/Util.cc
  1700. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1701. Do not urlencode Request::url in setUrl() because we want unmodified
  1702. URL using Request::getUrl()
  1703. * src/Request.cc
  1704. * src/Request.h
  1705. * test/RequestTest.cc
  1706. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1707. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  1708. Thanks to all translators.
  1709. * po/bg.po
  1710. * po/fr.po
  1711. * po/ja.po
  1712. * po/ru.po
  1713. * po/uk.po
  1714. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1715. Bump up version number to 1.0.0
  1716. * configure.ac
  1717. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1718. Added nosqlite3 build to build_test.sh.
  1719. Renamed noxml as expat.
  1720. * build_test.sh
  1721. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1722. Updated INPUT FILE section.
  1723. * doc/aria2c.1.txt
  1724. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1725. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  1726. on big endian systems because test .aria2 files are made for little
  1727. endian systems.
  1728. * test/DefaultBtProgressInfoFileTest.cc
  1729. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1730. Dropped ares support.
  1731. * README
  1732. * configure.ac
  1733. * m4/libares.m4: Removed.
  1734. * src/AsyncNameResolver.cc
  1735. * src/Makefile.am
  1736. * test/Makefile.am
  1737. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1738. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  1739. Removed const qualifier from DiskWriter::size().
  1740. * src/AbstractDiskWriter.cc
  1741. * src/AbstractDiskWriter.h
  1742. * src/ByteArrayDiskWriter.cc
  1743. * src/ByteArrayDiskWriter.h
  1744. * src/DiskWriter.h
  1745. * test/ByteArrayDiskWriterTest.cc
  1746. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1747. Fixed the bug that causes segmentation fault/bus error during executing
  1748. choking algorithm while seeding. This is caused by improper
  1749. implementation of compare function which returns inconsistent results
  1750. depending on the timing of last unchoke.
  1751. * src/BtSeederStateChoke.cc
  1752. * src/BtSeederStateChoke.h
  1753. * src/DefaultPeerStorage.cc
  1754. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1755. Removed TODO
  1756. * TODO
  1757. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1758. Added a section that explains how to pass argument to options that
  1759. takes optional arguments with its short form.
  1760. * doc/aria2c.1.txt
  1761. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1762. Added -u for the short form of --max-upload-limit option.
  1763. * doc/aria2c.1.txt
  1764. * src/option_processing.cc
  1765. * src/usage_text.h
  1766. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1767. Added -V for the short form of --check-integrity option.
  1768. Now the argument of --check-integrity option is optional:
  1769. if it is omitted, it is evaluated as true.
  1770. * doc/aria2c.1.txt
  1771. * src/option_processing.cc
  1772. * src/usage_text.h
  1773. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1774. Made the default value of --ftp-pasv option set to true and it can take
  1775. true/false values.
  1776. * src/OptionHandlerFactory.cc
  1777. * src/option_processing.cc
  1778. * src/usage_text.h
  1779. * doc/aria2c.1.txt
  1780. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1781. Given custom random number generator to std::random_shuffle.
  1782. * src/AnnounceList.cc
  1783. * src/BtLeecherStateChoke.cc
  1784. * src/BtSeederStateChoke.cc
  1785. * src/DefaultBtRequestFactory.cc
  1786. * src/MetalinkEntry.cc
  1787. * src/RarestPieceSelector.cc
  1788. * src/SimpleRandomizer.cc
  1789. * src/SimpleRandomizer.h
  1790. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1791. Now the default value of --enable-direct-io is true.
  1792. * src/OptionHandlerFactory.cc
  1793. * doc/aria2c.1.txt
  1794. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1795. Erase peer before executing onReturningPeer and onErasingPeer
  1796. because choking algorithm called from onReturningPeer doesn't
  1797. like erasing peer in the active peer list.
  1798. * src/DefaultPeerStorage.cc
  1799. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1800. Instead of creating special filename in createDownloadResult() if
  1801. inMemoryDownload() is true, now it is done in getFilePath().
  1802. * src/RequestGroup.cc
  1803. * test/RequestGroupTest.cc
  1804. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1805. Print "[MEMORY]" and filename if a file is not saved in disk and just
  1806. processed in memory. This is the fix for previous comment out.
  1807. * src/MemoryBufferPreDownloadHandler.cc
  1808. * src/RequestGroup.cc
  1809. * src/RequestGroup.h
  1810. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1811. Commented out the code which sets virtual directory path "[MEMORY]"
  1812. propagate directory to store to following RequestGroup.
  1813. * src/MemoryBufferPreDownloadHandler.cc
  1814. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1815. Bump up version number to 1.0.0b
  1816. * configure.ac
  1817. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1818. Added input_uris.txt to EXTRA_DIST
  1819. * test/Makefile.am
  1820. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1821. Removed PeerObject.h from Makefile.am
  1822. * src/Makefile.am
  1823. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1824. Avoid slow seeding
  1825. * src/PeerInteractionCommand.cc
  1826. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1827. Updated usage for -i option.
  1828. * src/usage_text.h (TEXT_INPUT_FILE)
  1829. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1830. Added INPUT FILE section to man page.
  1831. Escaped fake URLs.
  1832. * doc/aria2c.1.txt
  1833. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1834. Fixed wrong note position for -o option.
  1835. * doc/aria2c.1.txt
  1836. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1837. Fixed compile error without SSL/XML library.
  1838. * src/DefaultBtProgressInfoFile.cc
  1839. * src/DefaultBtProgressInfoFile.h
  1840. * src/FileMetalinkParserState.cc
  1841. * src/RequestGroup.h
  1842. * src/SocketCore.cc
  1843. * src/SocketCore.h
  1844. * src/VerificationMetalinkParserState.cc
  1845. * src/download_helper.h
  1846. * src/main.cc
  1847. * test/DefaultBtProgressInfoFileTest.cc
  1848. * test/DownloadHelperTest.cc
  1849. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1850. Rewritten URI handling functions. They are now provided as a testable
  1851. functions.
  1852. * src/Makefile.am
  1853. * src/RequestGroup.cc
  1854. * src/RequestGroup.h
  1855. * src/download_helper.cc
  1856. * src/download_helper.h
  1857. * src/main.cc
  1858. * test/DownloadHelperTest.cc
  1859. * test/Makefile.am
  1860. * test/input_uris.txt
  1861. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1862. Quickly terminate commands when ctrl-c is pressed.
  1863. * src/DownloadEngine.cc
  1864. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1865. Quickly terminate idle commands when download finished.
  1866. * src/AbstractCommand.cc
  1867. * src/DownloadCommand.cc
  1868. * src/DownloadEngine.cc
  1869. * src/DownloadEngine.h
  1870. * src/SleepCommand.cc
  1871. * src/SleepCommand.h
  1872. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1873. Added the ability to specify output filename and directory in input
  1874. file.
  1875. Additional parameters are added in the following line of URIs
  1876. with proceeding white space(s), 1 parameter in 1 line.
  1877. The parameter names are the same with the command-line option name
  1878. without proceeding "--". Not all the options are available here:
  1879. at the moment, 'dir' and 'out' options are avialable.
  1880. Please note that out option has no effect against Metalink or BitTorrent
  1881. downloads.
  1882. Example input file:
  1883. http://host/foo-1.1.tar.bz2
  1884. out=foo.tar.bz2
  1885. dir=/tmp/downloads
  1886. http://host/thundermonkey-2.0.tar.bz2
  1887. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  1888. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  1889. thundermonkey-2.0.tar.bz2 is saved as
  1890. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  1891. * src/BtPostDownloadHandler.cc
  1892. * src/Metalink2RequestGroup.cc
  1893. * src/Metalink2RequestGroup.h
  1894. * src/MetalinkPostDownloadHandler.cc
  1895. * src/UriListParser.cc
  1896. * src/UriListParser.h
  1897. * src/main.cc
  1898. * test/Metalink2RequestGroupTest.cc
  1899. * test/UriListParserTest.cc
  1900. * test/filelist1.txt
  1901. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1902. Fixed error when SSL library is not found.
  1903. * configure.ac
  1904. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1905. Cross referenced among -s, -C and -j options.
  1906. Updated usage of -C and -s options.
  1907. * src/usage_text.h
  1908. * doc/aria2c.1.txt
  1909. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1910. Fixed bad cast in 32bit platforms.
  1911. * test/DefaultPieceStorageTest.cc
  1912. (DefaultPieceStorageTest::testGetCompletedLength)
  1913. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1914. Fixed unit test fails on 32bit platforms.
  1915. * test/CookieParserTest.cc
  1916. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1917. Show an average download speed in Download results.
  1918. * src/BtFileAllocationEntry.cc
  1919. * src/DefaultPieceStorage.cc
  1920. * src/DownloadContext.cc
  1921. * src/DownloadContext.h
  1922. * src/DownloadResult.h
  1923. * src/RequestGroup.cc
  1924. * src/RequestGroupMan.cc
  1925. * src/StreamFileAllocationEntry.cc
  1926. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1927. Fixed the bug that metalink file is not processed if Content-Type
  1928. field has a paramter.
  1929. * src/HttpResponse.cc
  1930. * src/HttpResponse.h
  1931. * test/HttpResponseTest.cc
  1932. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1933. Removed unused code.
  1934. * src/DefaultBtAnnounce.cc
  1935. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1936. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  1937. the value larger than DefaultPieceStorage::getTotalLength() when
  1938. in flight pieces are involved.
  1939. * src/DefaultPieceStorage.cc
  1940. * test/DefaultPieceStorageTest.cc
  1941. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1942. Bump up version number to 1.0.0a.
  1943. * configure.ac
  1944. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1945. Updated configure.ac
  1946. * configure.ac
  1947. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1948. Added usege for proxy.
  1949. * doc/aria2c.1.txt
  1950. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1951. Added usage for --ca-certificate, --certificate, --private-key and
  1952. --check-certificate options.
  1953. * doc/aria2c.1.txt
  1954. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1955. Updated man page
  1956. * doc/aria2c.1.txt
  1957. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1958. Added --no-proxy option. It receives comman separated hostname or
  1959. domains to which proxy should not be used.
  1960. aria2 honors the environment variable no_proxy to override no-proxy
  1961. value in configuration file. The user can override the environment
  1962. variable no_proxy with --no-proxy command-line option.
  1963. * src/AbstractCommand.cc
  1964. * src/OptionHandlerFactory.cc
  1965. * src/option_processing.cc
  1966. * src/prefs.cc
  1967. * src/prefs.h
  1968. * src/usage_text.h
  1969. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1970. Added the ability to verify peer in SSL/TLS using given CA certificates.
  1971. The CA certificates are specified in --ca-certificate option.
  1972. By default, the verification is disabled. Use --check-certificate
  1973. option to enable it.
  1974. * src/HttpRequestCommand.cc
  1975. * src/LibgnutlsTLSContext.cc
  1976. * src/LibgnutlsTLSContext.h
  1977. * src/LibsslTLSContext.cc
  1978. * src/LibsslTLSContext.h
  1979. * src/MultiUrlRequestInfo.cc
  1980. * src/OptionHandlerFactory.cc
  1981. * src/SocketCore.cc
  1982. * src/SocketCore.h
  1983. * src/a2functional.h
  1984. * src/message.h
  1985. * src/option_processing.cc
  1986. * src/prefs.cc
  1987. * src/prefs.h
  1988. * src/usage_text.h
  1989. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1990. Added client certificate authentication for SSL/TLS.
  1991. Currently a private key must be decrypted for use with aria2.
  1992. If a user accidentally gives encrypted file to aria2 then following
  1993. thing happens:
  1994. If encrypted private key is given to aria2, it behaves differently
  1995. depending on the ssl library it uses. If aria2 built with openssl then
  1996. openssl prompts the user for password. If aria2 build with gnutls then
  1997. aria2 exists with error at start up.
  1998. * src/DownloadEngineFactory.cc
  1999. * src/MultiUrlRequestInfo.cc
  2000. * src/OptionHandlerFactory.cc
  2001. * src/option_processing.cc
  2002. * src/prefs.cc
  2003. * src/prefs.h
  2004. * src/usage_text.h
  2005. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2006. Introduced TLSContext that holds TLS related data that can be shared
  2007. with multiple SSL connections.
  2008. * src/DownloadEngineFactory.cc
  2009. * src/LibgnutlsTLSContext.cc
  2010. * src/LibgnutlsTLSContext.h
  2011. * src/LibsslTLSContext.cc
  2012. * src/LibsslTLSContext.h
  2013. * src/Makefile.am
  2014. * src/SocketCore.cc
  2015. * src/SocketCore.h
  2016. * src/TLSContext.h
  2017. * src/message.h
  2018. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2019. Fixed the bug that the DiskWriter of the first FileEntry whose
  2020. `needsFileAllocation' property is false is not created
  2021. even if it shares a piece with next FileEntry which `requested' property
  2022. is true.
  2023. Fixed the bug that zero-length file is not created if pre file
  2024. allocation is not done.
  2025. * src/MultiDiskAdaptor.cc
  2026. * src/MultiDiskAdaptor.h
  2027. * test/MultiDiskAdaptorTest.cc
  2028. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2029. Added the ability to pool proxy connection.
  2030. The conneciton in FTP with proxy-method=GET is not pooled.
  2031. Proxy-Connection header will not be sent when sending CONNECT method.
  2032. * src/DownloadEngine.cc
  2033. * src/DownloadEngine.h
  2034. * src/FtpFinishDownloadCommand.cc
  2035. * src/FtpInitiateConnectionCommand.cc
  2036. * src/FtpNegotiationCommand.cc
  2037. * src/HttpDownloadCommand.cc
  2038. * src/HttpInitiateConnectionCommand.cc
  2039. * src/HttpRequest.cc
  2040. * src/HttpRequest.h
  2041. * src/HttpResponse.cc
  2042. * src/HttpSkipResponseCommand.cc
  2043. * test/HttpRequestTest.cc
  2044. * test/HttpResponseTest.cc
  2045. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2046. Handle date before epoch.
  2047. To create *bad* Time object, call Time::null().
  2048. * src/CookieParser.cc
  2049. * src/FtpConnection.cc
  2050. * src/FtpConnection.h
  2051. * src/FtpNegotiationCommand.cc
  2052. * src/RequestGroup.cc
  2053. * src/TimeA2.cc
  2054. * src/TimeA2.h
  2055. * test/CookieParserTest.cc
  2056. * test/FtpConnectionTest.cc
  2057. * test/TimeTest.cc
  2058. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2059. Added support for following envrionment variables: http_proxy,
  2060. https_proxy, ftp_proxy and all_proxy.
  2061. Each variable is equivalent to the aria2 option whose name is the
  2062. variable name with '_' replaced with '-'.
  2063. They overrides options specified in aria2.conf file.
  2064. The envrionment variables can be overrode using command-line option.
  2065. * src/option_processing.cc
  2066. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2067. Renamed --http-proxy-method as --proxy-method.
  2068. * src/AbstractCommand.cc
  2069. * src/FtpInitiateConnectionCommand.cc
  2070. * src/HttpInitiateConnectionCommand.cc
  2071. * src/OptionHandlerFactory.cc
  2072. * src/option_processing.cc
  2073. * src/prefs.cc
  2074. * src/prefs.h
  2075. * src/usage_text.h
  2076. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2077. Deprecated --http-proxy-user and --http-proxy-passwd options.
  2078. Added --https-proxy, --ftp-proxy and --all-proxy options.
  2079. Above 3 options and --http-proxy option can handle proxy in URL format
  2080. like: http://user:passwd@host:port.
  2081. If a proxy requires user/password, they must be specified in a URL.
  2082. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  2083. instead.
  2084. * src/AbstractCommand.cc
  2085. * src/AbstractCommand.h
  2086. * src/AbstractProxyRequestCommand.cc
  2087. * src/AbstractProxyRequestCommand.h
  2088. * src/AuthConfigFactory.cc
  2089. * src/AuthConfigFactory.h
  2090. * src/FtpFinishDownloadCommand.cc
  2091. * src/FtpInitiateConnectionCommand.cc
  2092. * src/FtpInitiateConnectionCommand.h
  2093. * src/FtpNegotiationCommand.cc
  2094. * src/FtpTunnelRequestCommand.cc
  2095. * src/FtpTunnelRequestCommand.h
  2096. * src/HttpDownloadCommand.cc
  2097. * src/HttpInitiateConnectionCommand.cc
  2098. * src/HttpInitiateConnectionCommand.h
  2099. * src/HttpProxyRequestCommand.cc
  2100. * src/HttpProxyRequestCommand.h
  2101. * src/HttpRequest.cc
  2102. * src/HttpRequest.h
  2103. * src/HttpRequestCommand.cc
  2104. * src/HttpRequestCommand.h
  2105. * src/HttpSkipResponseCommand.cc
  2106. * src/InitiateConnectionCommand.cc
  2107. * src/InitiateConnectionCommand.h
  2108. * src/OptionHandlerFactory.cc
  2109. * src/OptionHandlerImpl.h
  2110. * src/Request.cc
  2111. * src/option_processing.cc
  2112. * src/prefs.cc
  2113. * src/prefs.h
  2114. * src/usage_text.h
  2115. * test/AuthConfigFactoryTest.cc
  2116. * test/HttpRequestTest.cc
  2117. * test/OptionHandlerTest.cc
  2118. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2119. Execute choking algorithm when unchoked and interested peer is
  2120. disconected.
  2121. * src/DefaultPeerStorage.cc
  2122. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2123. Added testcase for BtNotInterestedMessage from unchoked peer.
  2124. * test/BtNotInterestedMessageTest.cc
  2125. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2126. Execute choking algorithm when BtInterestedMessage arrives from
  2127. unchoked peer.
  2128. * src/BtInterestedMessage.cc
  2129. * src/BtInterestedMessage.h
  2130. * src/DefaultBtMessageFactory.cc
  2131. * test/BtInterestedMessageTest.cc
  2132. * test/MockPeerStorage.h
  2133. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2134. AuthConfigFactory is now part of DownloadEngine.
  2135. * src/AbstractProxyRequestCommand.cc
  2136. * src/AuthConfigFactory.h
  2137. * src/DownloadEngine.cc
  2138. * src/DownloadEngine.h
  2139. * src/FtpConnection.cc
  2140. * src/FtpConnection.h
  2141. * src/FtpNegotiationCommand.cc
  2142. * src/HttpConnection.cc
  2143. * src/HttpRequest.cc
  2144. * src/HttpRequest.h
  2145. * src/HttpRequestCommand.cc
  2146. * src/HttpResponse.cc
  2147. * src/HttpResponseCommand.cc
  2148. * src/HttpSkipResponseCommand.cc
  2149. * src/MultiUrlRequestInfo.cc
  2150. * src/main.cc
  2151. * test/FtpConnectionTest.cc
  2152. * test/HttpRequestTest.cc
  2153. * test/HttpResponseTest.cc
  2154. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2155. Corrected catched exception type.
  2156. * src/ServerStatMan.cc
  2157. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2158. DNSCache is now part of DownloadEngine.
  2159. * src/DNSCache.h
  2160. * src/DownloadEngine.cc
  2161. * src/DownloadEngine.h
  2162. * src/InitiateConnectionCommand.cc
  2163. * src/MultiUrlRequestInfo.cc
  2164. * test/Makefile.am
  2165. * test/Makefile.in
  2166. * test/SimpleDNSCacheTest.cc
  2167. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2168. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  2169. DownloadEngine.
  2170. * src/ActivePeerConnectionCommand.cc
  2171. * src/BtSetup.cc
  2172. * src/CUIDCounter.h
  2173. * src/DHTSetup.cc
  2174. * src/DownloadCommand.cc
  2175. * src/DownloadEngine.cc
  2176. * src/DownloadEngine.h
  2177. * src/DownloadEngineFactory.cc
  2178. * src/FileAllocationDispatcherCommand.cc
  2179. * src/InitiatorMSEHandshakeCommand.cc
  2180. * src/PeerInitiateConnectionCommand.cc
  2181. * src/PeerInteractionCommand.cc
  2182. * src/PeerListenCommand.cc
  2183. * src/RequestGroup.cc
  2184. * src/StreamFileAllocationEntry.cc
  2185. * src/TrackerWatcherCommand.cc
  2186. * src/main.cc
  2187. * test/RequestGroupManTest.cc
  2188. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2189. Implemented commented code in BtSeederStateChoke
  2190. * src/BtSeederStateChoke.cc
  2191. * src/Peer.cc
  2192. * src/Peer.h
  2193. * src/PeerInteractionCommand.cc
  2194. * src/PeerSessionResource.cc
  2195. * src/PeerSessionResource.h
  2196. * test/MockBtMessageDispatcher.h
  2197. * test/PeerSessionResourceTest.cc
  2198. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2199. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  2200. its object.
  2201. * src/AbstractBtMessage.cc
  2202. * src/ActivePeerConnectionCommand.cc
  2203. * src/ActivePeerConnectionCommand.h
  2204. * src/BtContextAwareCommand.cc
  2205. * src/BtContextAwareCommand.h
  2206. * src/BtExtendedMessage.cc
  2207. * src/BtExtendedMessage.h
  2208. * src/BtInterestedMessage.cc
  2209. * src/BtInterestedMessage.h
  2210. * src/BtNotInterestedMessage.cc
  2211. * src/BtNotInterestedMessage.h
  2212. * src/BtRegistry.cc
  2213. * src/BtRegistry.h
  2214. * src/BtSeederStateChoke.cc
  2215. * src/BtSetup.cc
  2216. * src/DHTGetPeersCommand.cc
  2217. * src/DHTGetPeersCommand.h
  2218. * src/DHTPeerAnnounceEntry.cc
  2219. * src/DHTPeerAnnounceEntry.h
  2220. * src/DHTPeerAnnounceStorage.cc
  2221. * src/DHTPeerAnnounceStorage.h
  2222. * src/DHTPeerLookupTask.cc
  2223. * src/DHTPeerLookupTask.h
  2224. * src/DHTSetup.cc
  2225. * src/DHTSetup.h
  2226. * src/DHTTaskFactory.h
  2227. * src/DHTTaskFactoryImpl.cc
  2228. * src/DHTTaskFactoryImpl.h
  2229. * src/DefaultBtAnnounce.cc
  2230. * src/DefaultBtInteractive.cc
  2231. * src/DefaultBtInteractive.h
  2232. * src/DefaultBtMessageDispatcher.cc
  2233. * src/DefaultBtMessageDispatcher.h
  2234. * src/DefaultBtMessageFactory.cc
  2235. * src/DefaultBtMessageFactory.h
  2236. * src/DefaultBtMessageReceiver.cc
  2237. * src/DefaultBtProgressInfoFile.cc
  2238. * src/DefaultBtProgressInfoFile.h
  2239. * src/DefaultBtRequestFactory.cc
  2240. * src/DefaultBtRequestFactory.h
  2241. * src/DefaultExtensionMessageFactory.cc
  2242. * src/DefaultExtensionMessageFactory.h
  2243. * src/DefaultPeerStorage.cc
  2244. * src/DefaultPeerStorage.h
  2245. * src/DownloadEngine.cc
  2246. * src/DownloadEngine.h
  2247. * src/InitiatorMSEHandshakeCommand.cc
  2248. * src/InitiatorMSEHandshakeCommand.h
  2249. * src/MSEHandshake.cc
  2250. * src/MSEHandshake.h
  2251. * src/Makefile.am
  2252. * src/Makefile.in
  2253. * src/PeerChokeCommand.cc
  2254. * src/PeerChokeCommand.h
  2255. * src/PeerInitiateConnectionCommand.cc
  2256. * src/PeerInitiateConnectionCommand.h
  2257. * src/PeerInteractionCommand.cc
  2258. * src/PeerInteractionCommand.h
  2259. * src/PeerObject.h
  2260. * src/PeerReceiveHandshakeCommand.cc
  2261. * src/PeerReceiveHandshakeCommand.h
  2262. * src/ReceiverMSEHandshakeCommand.cc
  2263. * src/RequestGroup.cc
  2264. * src/RequestGroup.h
  2265. * src/RequestGroupMan.cc
  2266. * src/RequestGroupMan.h
  2267. * src/SeedCheckCommand.cc
  2268. * src/SeedCheckCommand.h
  2269. * src/ShareRatioSeedCriteria.h
  2270. * src/SimpleBtMessage.cc
  2271. * src/TrackerWatcherCommand.cc
  2272. * src/TrackerWatcherCommand.h
  2273. * src/UTPexExtensionMessage.cc
  2274. * src/UTPexExtensionMessage.h
  2275. * test/BtCancelMessageTest.cc
  2276. * test/BtChokeMessageTest.cc
  2277. * test/BtExtendedMessageTest.cc
  2278. * test/BtInterestedMessageTest.cc
  2279. * test/BtNotInterestedMessageTest.cc
  2280. * test/BtPieceMessageTest.cc
  2281. * test/BtPortMessageTest.cc
  2282. * test/BtRegistryTest.cc
  2283. * test/BtRejectMessageTest.cc
  2284. * test/BtRequestMessageTest.cc
  2285. * test/DHTPeerAnnounceEntryTest.cc
  2286. * test/DHTPeerAnnounceStorageTest.cc
  2287. * test/DefaultBtMessageDispatcherTest.cc
  2288. * test/DefaultBtMessageFactoryTest.cc
  2289. * test/DefaultBtProgressInfoFileTest.cc
  2290. * test/DefaultBtRequestFactoryTest.cc
  2291. * test/DefaultExtensionMessageFactoryTest.cc
  2292. * test/MSEHandshakeTest.cc
  2293. * test/MockDHTTaskFactory.h
  2294. * test/ShareRatioSeedCriteriaTest.cc
  2295. * test/UTPexExtensionMessageTest.cc
  2296. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2297. Fixed compiler warning.
  2298. * test/UtilTest.cc
  2299. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2300. Treat Cookie object as session cookie if expiry = 0 is given.
  2301. With this change, you can specify session scoped cookies in an external
  2302. file setting expiry value to 0.
  2303. * src/Cookie.cc
  2304. * src/Cookie.h
  2305. * test/CookieParserTest.cc
  2306. * test/CookieStorageTest.cc
  2307. * test/CookieTest.cc
  2308. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2309. Changed signature of DHTMessageFactory::createResponseMessage().
  2310. Removed unused validateIDMatch.
  2311. * src/DHTMessageFactory.h
  2312. * src/DHTMessageFactoryImpl.cc
  2313. * src/DHTMessageFactoryImpl.h
  2314. * src/DHTMessageTracker.cc
  2315. * test/DHTMessageFactoryImplTest.cc
  2316. * test/MockDHTMessageFactory.h
  2317. Dropped DHT message coming from same ID of localhost.
  2318. * src/DHTMessageReceiver.cc
  2319. Rejected adding node whose ID is the same as localhost's.
  2320. * src/DHTRoutingTable.cc
  2321. * test/BtPortMessageTest.cc
  2322. * test/DHTRoutingTableTest.cc
  2323. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2324. Pool connection when redirection occurs with Content-Length = 0.
  2325. * src/HttpSkipResponseCommand.cc
  2326. * src/HttpSkipResponseCommand.h
  2327. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2328. Fixed the bug that causes time out when redirection occurs with
  2329. content-length 0.
  2330. * src/HttpResponseCommand.cc
  2331. * src/HttpSkipResponseCommand.cc
  2332. * src/HttpSkipResponseCommand.h
  2333. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2334. Now each status legends is shown only when it appears in Download
  2335. Result. If Download Result has no item, then status legend will not
  2336. be printed.
  2337. * src/RequestGroupMan.cc
  2338. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2339. Removed duplicate creation of OptionHandlers.
  2340. * src/option_processing.cc
  2341. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2342. Fixed the bug that causes segmentation fault when accessing files which
  2343. don't exist or are not included in --select-file option while
  2344. validating chunk checksum.
  2345. * src/MultiDiskAdaptor.cc
  2346. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2347. Fixed compiler warning.
  2348. * test/UtilTest.cc
  2349. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2350. Included cstdlib. This fixed the compile error with g++-4.3.2.
  2351. * src/IteratableChecksumValidator.cc
  2352. * src/IteratableChunkChecksumValidator.cc
  2353. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2354. * Release 0.16.2
  2355. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2356. Added Serbian translation. Updated Ukrainian translation.
  2357. Thanks to all translators.
  2358. * po/sr.po
  2359. * po/uk.po
  2360. * po/LINGUAS
  2361. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2362. Bump up version number to 0.16.2
  2363. * configure.ac
  2364. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2365. Added length equality test to operator== to drop a piece message
  2366. whose length does not match to the requested one.
  2367. * src/RequestSlot.cc
  2368. * test/DefaultBtMessageDispatcherTest.cc
  2369. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2370. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  2371. recieved.
  2372. In this fix, if a request larger than 16KiB length is received, aria2
  2373. disconnects the peer.
  2374. * src/BtConstants.h
  2375. * src/PeerMessageUtil.cc
  2376. * src/PeerMessageUtil.h
  2377. * test/BtRequestMessageTest.cc
  2378. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2379. * Release 0.16.1
  2380. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2381. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  2382. * doc/aria2c.1.txt
  2383. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2384. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  2385. Updated French, Simplified Chinese and Japanese translations.
  2386. Thanks to all translators.
  2387. en@quot and en@boldquot are also added.
  2388. * po/LINGUAS
  2389. * po/fr.po
  2390. * po/ja.po
  2391. * po/uk.po
  2392. * po/vi.po
  2393. * po/zh_CN.po
  2394. * po/zh_TW.po
  2395. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2396. Bump up version number to 0.16.1.
  2397. * configure.ac
  2398. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2399. Updated README.
  2400. * README
  2401. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2402. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  2403. not to replace '--' with em dash character.
  2404. * doc/aria2c.1.txt
  2405. * doc/makeman
  2406. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2407. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  2408. every SEC seconds.
  2409. * src/DownloadEngineFactory.cc
  2410. * src/OptionHandlerFactory.cc
  2411. * src/option_processing.cc
  2412. * src/usage_text.h
  2413. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2414. Fixed compile warning on linux-amd64
  2415. * src/FtpConnection.cc
  2416. * src/IteratableChunkChecksumValidator.cc
  2417. * src/MultiDiskAdaptor.cc
  2418. Fixed the bug that unit test fails on linux-amd64
  2419. * test/UtilTest.cc
  2420. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2421. Added --dht-file-path option to change the path to dht.dat, which is a
  2422. serialized DHT routing table.
  2423. * src/OptionHandlerFactory.cc
  2424. * src/option_processing.cc
  2425. * src/usage_text.h
  2426. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2427. Fixed possible underflow.
  2428. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  2429. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2430. Fixed the bug that last character in URI is not encoded.
  2431. * src/Request.cc
  2432. * test/RequestTest.cc
  2433. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2434. Fixed the bug that referer header field contains fragment.
  2435. Now Request class removes fragment part of URI and encodes it
  2436. in Request::setUri() and setReferer().
  2437. * src/Request.h
  2438. * src/Request.cc
  2439. * test/RequestTest.cc
  2440. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2441. Added missing m4 macros.
  2442. * m4/cppunit.m4
  2443. * m4/libgcrypt.m4
  2444. * m4/libgnutls-extra.m4
  2445. * m4/libgnutls.m4
  2446. * m4/libxml2.m4
  2447. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2448. Fixed compile error with gcc-4.4(snapshot)
  2449. * src/File.cc
  2450. * src/FtpConnection.cc
  2451. * src/OptionHandlerImpl.h
  2452. * src/Util.cc
  2453. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2454. Removed assert()
  2455. * src/SocketBuffer.cc (SocketBuffer::send)
  2456. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2457. Changed the type of _numNewConnection to unsigned int.
  2458. * src/ActivePeerConnectionCommand.cc
  2459. * src/ActivePeerConnectionCommand.h
  2460. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2461. * Release 0.16.0
  2462. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2463. Updated doc
  2464. * README
  2465. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2466. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  2467. translations. Thanks to all translators.
  2468. * po/bg.po
  2469. * po/de.po
  2470. * po/fr.po
  2471. * po/ja.po
  2472. * po/zh_CN.po
  2473. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2474. Bump up version number to 0.16.0.
  2475. * configure.ac
  2476. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2477. Casted entry->maxConnections to int32_t for std::min<T> with T =
  2478. int32_t.
  2479. Changed the type of count to int32_t.
  2480. * src/Metalink2RequestGroup.cc
  2481. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2482. Added test for Time::elapsed(time_t).
  2483. * test/TimeTest.cc
  2484. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2485. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  2486. Util::difftv() should be used instead.
  2487. * src/TimeA2.cc
  2488. * src/TimeA2.h
  2489. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2490. Made socket for dht connections non-blocking
  2491. * src/DHTAbstractMessage.cc
  2492. * src/DHTAbstractMessage.h
  2493. * src/DHTConnection.h
  2494. * src/DHTConnectionImpl.cc
  2495. * src/DHTConnectionImpl.h
  2496. * src/DHTMessage.h
  2497. * src/DHTMessageDispatcherImpl.cc
  2498. * src/DHTMessageDispatcherImpl.h
  2499. * src/DHTUnknownMessage.cc
  2500. * src/DHTUnknownMessage.h
  2501. * src/SocketCore.cc
  2502. * src/SocketCore.h
  2503. * test/MockDHTMessage.h
  2504. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2505. Changed the type of offset to int.
  2506. * src/ParameterizedStringParser.cc
  2507. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2508. Made getAsInt() return int32_t
  2509. * src/Option.h
  2510. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2511. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  2512. build.
  2513. * configure.ac
  2514. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2515. Use sqlite3_open if sqlite3_open_v2 is not available.
  2516. * src/Sqlite3MozCookieParser.cc
  2517. * src/Sqlite3MozCookieParser.h
  2518. * m4/sqlite3.m4
  2519. * test/Sqlite3MozCookieParserTest.cc
  2520. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2521. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  2522. * src/BtPieceMessage.cc
  2523. * src/DHTPeerAnnounceStorage.cc
  2524. * src/DefaultPieceStorage.cc
  2525. * src/DownloadCommand.cc
  2526. * src/DownloadEngine.cc
  2527. * src/FtpConnection.cc
  2528. * src/PeerConnection.cc
  2529. * src/PeerMessageUtil.cc
  2530. * src/RequestGroup.cc
  2531. * src/RequestGroupMan.cc
  2532. * src/SimpleBtMessage.cc
  2533. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2534. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  2535. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  2536. * src/AbstractDiskWriter.cc
  2537. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2538. Don't set Request::supportsPersistentConnection() in HttpConnection
  2539. since this code is also used in AbstractProxyResponseCommand.
  2540. Moved those code to HttpResponse.
  2541. * src/HttpResponse.cc
  2542. * src/HttpResponse.h
  2543. * src/HttpConnection.cc
  2544. * src/HttpConnection.h
  2545. * src/HttpResponseCommand.cc
  2546. * test/HttpResponseTest.cc
  2547. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2548. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  2549. The configuration is minimum: no torrent, no metalink, so there may be
  2550. other compile error on their code.
  2551. * src/a2netcompat.h
  2552. * src/File.cc
  2553. * src/File.h
  2554. * src/SocketCore.cc
  2555. * src/SocketCore.h
  2556. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2557. Made a socket of incoming peer non-blocking.
  2558. * src/PeerListenCommand.cc
  2559. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2560. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  2561. whole message data is not sent in one send() call.
  2562. * src/BtPieceMessage.cc
  2563. * src/BtPieceMessage.h
  2564. * src/PeerConnection.cc
  2565. * src/PeerConnection.h
  2566. * src/SimpleBtMessage.cc
  2567. * src/SimpleBtMessage.h
  2568. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2569. Fixed the bug that aria2 downloads faster than max-download-limit when
  2570. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  2571. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  2572. , instead of sum of them.
  2573. * src/ActivePeerConnectionCommand.cc
  2574. * src/DefaultBtInteractive.cc
  2575. * src/DownloadCommand.cc
  2576. * src/PeerInteractionCommand.cc
  2577. * src/PeerReceiveHandshakeCommand.cc
  2578. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2579. Fixed the bug that HTTPS download fails.
  2580. * src/AbstractCommand.cc
  2581. * src/AbstractCommand.h
  2582. * src/DownloadCommand.cc
  2583. * src/FtpConnection.cc
  2584. * src/HttpConnection.cc
  2585. * src/HttpRequestCommand.cc
  2586. * src/HttpResponseCommand.cc
  2587. * src/HttpSkipResponseCommand.cc
  2588. * src/MSEHandshake.cc
  2589. * src/PeerConnection.cc
  2590. * src/SocketCore.cc
  2591. * src/SocketCore.h
  2592. Fixed the bug that aria2 doesn't download whole content body and cannot
  2593. reuse connection if chunked transfer encoding and gzip content encoding
  2594. are set.
  2595. * src/DownloadCommand.cc
  2596. * src/HttpSkipResponseCommand.cc
  2597. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2598. Updated man page.
  2599. * doc/aria2c.1.txt
  2600. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2601. When error occurred while aria2 was parsing an .aria2.conf file, print
  2602. the usage of the option that caused error.
  2603. * src/option_processing.cc
  2604. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2605. Fixed compile error on OptionHandlerException
  2606. * src/Makefile.am
  2607. * src/OptionHandlerException.cc
  2608. * src/OptionHandlerException.h
  2609. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2610. Moved message of the error to OptionHandlerException.h
  2611. * src/NameMatchOptionHandler.h
  2612. * src/OptionHandlerException.h
  2613. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2614. When error occurs while aria2 is parsing an command-line option, print
  2615. the usage of the option.
  2616. * src/Makefile.am
  2617. * src/NameMatchOptionHandler.h
  2618. * src/OptionHandlerException.h
  2619. * src/option_processing.cc
  2620. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2621. Reverted previous change.
  2622. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  2623. username is not in URI.
  2624. * src/HttpRequest.cc
  2625. * src/Request.cc
  2626. * test/HttpRequestTest.cc
  2627. * test/RequestTest.cc
  2628. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2629. Now colon is required for username and password in FTP URL, like:
  2630. ftp://username:password@host.
  2631. If colon is not there, aria2 don't parse it as a username. For example,
  2632. aria2 don't retrieve username from ftp://username@host.
  2633. This fix was made in order to login FTP server via non-transparent ftp
  2634. proxy.
  2635. * src/Request.cc
  2636. * test/RequestTest.cc
  2637. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2638. Use netrc for HTTP.
  2639. Now FTP user/password is sent in Authorization header when
  2640. --ftp-via-http-proxy=get is given.
  2641. * src/AuthConfigFactory.cc
  2642. * src/HttpRequest.cc
  2643. * src/HttpRequest.h
  2644. * src/NetrcAuthResolver.cc
  2645. * src/NetrcAuthResolver.h
  2646. * src/OptionHandlerFactory.cc
  2647. * src/option_processing.cc
  2648. * src/prefs.cc
  2649. * src/prefs.h
  2650. * test/AuthConfigFactoryTest.cc
  2651. * test/HttpRequestTest.cc
  2652. * test/NetrcAuthResolverTest.cc
  2653. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2654. Issue PWD command first and get working directory and use it as a prefix
  2655. for CWD command.
  2656. * src/DownloadEngine.cc
  2657. * src/DownloadEngine.h
  2658. * src/FtpConnection.cc
  2659. * src/FtpConnection.h
  2660. * src/FtpFinishDownloadCommand.cc
  2661. * src/FtpInitiateConnectionCommand.cc
  2662. * src/FtpNegotiationCommand.cc
  2663. * src/FtpNegotiationCommand.h
  2664. * test/FtpConnectionTest.cc
  2665. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2666. Removed default user/pass for FTP user/pass, since it should not have
  2667. precedence over netrc configuration by default.
  2668. * src/OptionHandlerFactory.cc
  2669. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2670. Added debug log for socket event.
  2671. * src/AbstractCommand.cc
  2672. * src/PeerAbstractCommand.cc
  2673. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2674. Log microseconds.
  2675. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  2676. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2677. Replaced HelpItem.cc with OptionHandler.cc.
  2678. * po/POTFILES.in
  2679. Updated po files with 'make update-po'
  2680. * po/aria2c.pot
  2681. * po/*.po
  2682. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2683. Removed possible values from the text.
  2684. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  2685. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2686. Removed unused preferences:
  2687. PREF_NO_PREALLOCATION
  2688. PREF_STDOUT_LOG
  2689. PREF_TRACKER_MAX_TRIES
  2690. PREF_DIRECT_DOWNLOAD_TIMEOUT
  2691. PREF_MIN_SEGMENT_SIZE
  2692. * src/option_processing.cc
  2693. * src/prefs.cc
  2694. * src/prefs.h
  2695. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2696. Integrated HelpItem into OptionParser to ease the workload for adding
  2697. new options. Removed default value from usage text.
  2698. * src/HelpItem.cc: Removed.
  2699. * src/HelpItem.h: Removed.
  2700. * src/HelpItemFactory.cc: Removed.
  2701. * src/HelpItemFactory.h: Removed.
  2702. * src/Makefile.am
  2703. * src/Makefile.in
  2704. * src/NameMatchOptionHandler.h
  2705. * src/OptionHandler.cc
  2706. * src/OptionHandler.h
  2707. * src/OptionHandlerFactory.cc
  2708. * src/OptionHandlerImpl.h
  2709. * src/OptionParser.cc
  2710. * src/OptionParser.h
  2711. * src/TagContainer.cc: Removed.
  2712. * src/TagContainer.h: Removed.
  2713. * src/TaggedItem.cc: Removed.
  2714. * src/TaggedItem.h: Removed.
  2715. * src/main.cc
  2716. * src/option_processing.cc
  2717. * src/usage_text.h
  2718. * src/version_usage.cc
  2719. * test/HelpItemTest.cc: Removed.
  2720. * test/Makefile.am
  2721. * test/Makefile.in
  2722. * test/OptionHandlerTest.cc
  2723. * test/OptionParserTest.cc
  2724. * test/TagContainerTest.cc: Removed.
  2725. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2726. Moved `TransferStat stat = ...' to inside the `if' clause.
  2727. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  2728. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2729. Fixed the bug that a block in a piece is requested when same block is
  2730. already requested to the same peer in end game mode.
  2731. * src/BtRequestFactory.h
  2732. * src/DefaultBtInteractive.cc
  2733. * src/DefaultBtRequestFactory.cc
  2734. * src/DefaultBtRequestFactory.h
  2735. * src/DefaultPieceStorage.cc
  2736. * src/DefaultPieceStorage.h
  2737. * src/PieceStorage.h
  2738. * src/UnknownLengthPieceStorage.cc
  2739. * src/UnknownLengthPieceStorage.h
  2740. * test/DefaultBtRequestFactoryTest.cc
  2741. * test/DefaultPieceStorageTest.cc
  2742. * test/MockBtRequestFactory.h
  2743. * test/MockPieceStorage.h
  2744. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2745. Removed _uploadLength and _downloadLength from PeerSessionResource
  2746. and use PeerStat::_sessionUploadLength and
  2747. PeerStat::_sessionDownloadLength.
  2748. * src/PeerSessionResource.cc
  2749. * src/PeerSessionResource.h
  2750. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2751. Fixed the bug that prefixLength of split bucket which doesn't include
  2752. local node ID is incremented.
  2753. * src/DHTBucket.cc
  2754. * src/DHTBucket.h
  2755. * test/DHTBucketTest.cc
  2756. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2757. Added cookies.sqlite to EXTRA_DIST
  2758. * test/Makefile.am
  2759. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2760. Added Turkish translation. Updated French, German, Russian and
  2761. Simplified Chinese translations. Thanks to all translators.
  2762. * po/LINGUAS
  2763. * po/de.po
  2764. * po/fr.po
  2765. * po/ru.po
  2766. * po/tr.po
  2767. * po/zh_CN.po
  2768. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2769. Added deliminating text to the beginning of the log so that one can find
  2770. where the log starts easily.
  2771. * src/main.cc
  2772. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2773. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  2774. to fix compile error when async DNS is not enabled by configuration.
  2775. * src/AbstractCommand.cc
  2776. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2777. If establishing conneciton to a server is failed, then mark error on
  2778. its ServerStat.
  2779. Added the cause of error to log when error event occurred.
  2780. Moved message string to message.h for translation.
  2781. * src/AbstractCommand.cc
  2782. * src/AbstractCommand.h
  2783. * src/FtpNegotiationCommand.cc
  2784. * src/HttpRequestCommand.cc
  2785. * src/PeerAbstractCommand.cc
  2786. * src/message.h
  2787. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2788. Added the function to get error message from socket.
  2789. * src/SocketCore.cc
  2790. * src/SocketCore.h
  2791. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2792. Added convenient method RequestGroupMan::getOrCreateServerStat()
  2793. * src/RequestGroupMan.cc
  2794. * src/RequestGroupMan.h
  2795. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2796. If error event is received in epoll, then abort download immediately.
  2797. * src/AbstractCommand.cc
  2798. * src/Command.cc
  2799. * src/Command.h
  2800. * src/DownloadEngine.cc
  2801. * src/PeerAbstractCommand.cc
  2802. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2803. Added usage message for --uri-selector, --server-stat-of,
  2804. --server-stat-in, --server-stat-timeout options.
  2805. * src/HelpItemFactory.cc
  2806. * src/usage_text.h
  2807. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2808. Added upper limit of FTP response buffer. The current implementation
  2809. uses 4096bytes as a limit.
  2810. * src/FtpConnection.cc
  2811. * src/FtpConnection.h
  2812. * test/FtpConnectionTest.cc
  2813. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2814. Use non-blocking socket for TCP communication to avoid possible
  2815. blocking due to buffer full.
  2816. * src/AbstractProxyRequestCommand.cc
  2817. * src/FtpConnection.cc
  2818. * src/FtpConnection.h
  2819. * src/FtpNegotiationCommand.cc
  2820. * src/FtpNegotiationCommand.h
  2821. * src/HttpConnection.cc
  2822. * src/HttpConnection.h
  2823. * src/HttpRequestCommand.cc
  2824. * src/InitiatorMSEHandshakeCommand.cc
  2825. * src/InitiatorMSEHandshakeCommand.h
  2826. * src/MSEHandshake.cc
  2827. * src/MSEHandshake.h
  2828. * src/Makefile.am
  2829. * src/PeerConnection.cc
  2830. * src/PeerConnection.h
  2831. * src/PeerInteractionCommand.cc
  2832. * src/PeerListenCommand.cc
  2833. * src/ReceiverMSEHandshakeCommand.cc
  2834. * src/ReceiverMSEHandshakeCommand.h
  2835. * src/SocketBuffer.cc
  2836. * src/SocketBuffer.h
  2837. * src/SocketCore.cc
  2838. * src/SocketCore.h
  2839. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2840. Call setStatusRealtime() in constructor.
  2841. * src/RealtimeCommand.cc
  2842. * src/RealtimeCommand.h
  2843. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2844. Call Download::setNoWait(true) to execute newly created command without
  2845. a pause.
  2846. * src/AbstractCommand.cc
  2847. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2848. Added --max-file-not-found=NUM option. If aria2 receives `file not
  2849. found' error from HTTP/FTP server NUM times without getting single
  2850. bytes of data, then force the download to fail.
  2851. Basically aria2 tris all URIs available. So if long list of URIs are
  2852. specified in Metalink, then aria2 will take a long time to fail
  2853. eventually if all URIs are outdated. This option eases this situation
  2854. to limit the number of servers to try.
  2855. * src/FtpNegotiationCommand.cc
  2856. * src/HelpItemFactory.cc
  2857. * src/HttpResponseCommand.cc
  2858. * src/OptionHandlerFactory.cc
  2859. * src/PeerStat.h
  2860. * src/RequestGroup.cc
  2861. * src/RequestGroup.h
  2862. * src/SegmentMan.cc
  2863. * src/SegmentMan.h
  2864. * src/option_processing.cc
  2865. * src/prefs.cc
  2866. * src/prefs.h
  2867. * src/usage_text.h
  2868. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2869. Fixed the bug that bulkReceiveResponse() reads all received data as a
  2870. response even if more than one response is in it.
  2871. * src/FtpConnection.cc
  2872. * src/FtpConnection.h
  2873. * test/FtpConnectionTest.cc
  2874. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2875. Merged from stable-0.15
  2876. * m4/libcares.m4
  2877. Use pkg-config
  2878. * m4/sqlite3.m4
  2879. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2880. Removed unnecessary if statement.
  2881. * src/DefaultPieceStorage.cc (initPieceStorage)
  2882. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2883. Added --connect-timeout option to specify connect timeout in seconds.
  2884. This option is in effect for HTTP/FTP/proxy server. The timeout for
  2885. connecting to BitTorrent peer is not controlled by this option.
  2886. * src/AbstractProxyRequestCommand.cc
  2887. * src/FtpNegotiationCommand.cc
  2888. * src/HelpItemFactory.cc
  2889. * src/HttpRequestCommand.cc
  2890. * src/OptionHandlerFactory.cc
  2891. * src/option_processing.cc
  2892. * src/prefs.cc
  2893. * src/prefs.h
  2894. * src/usage_text.h
  2895. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2896. Added help message for -R option.
  2897. * src/HelpItemFactory.cc
  2898. * src/usage_text.h
  2899. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2900. Added the message that the time is in local time zone.
  2901. * src/RequestGroup.cc
  2902. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2903. Implemented the ability to get timestamp from remote FTP server using
  2904. MDTM command described in RFC3659.
  2905. * src/FtpConnection.cc
  2906. * src/FtpConnection.h
  2907. * src/FtpNegotiationCommand.cc
  2908. * src/FtpNegotiationCommand.h
  2909. * test/FtpConnectionTest.cc
  2910. * test/Makefile.am
  2911. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2912. Implemented the ability to get timestamp from remote HTTP server and
  2913. apply it to local file. To enable this feature, --remote-time option
  2914. is added. No usage text has been written yet.
  2915. If several servers returns difference timestamp, then aria2 uses latest
  2916. one.
  2917. * src/CopyDiskAdaptor.cc
  2918. * src/CopyDiskAdaptor.h
  2919. * src/DirectDiskAdaptor.cc
  2920. * src/DirectDiskAdaptor.h
  2921. * src/DiskAdaptor.h
  2922. * src/File.cc
  2923. * src/File.h
  2924. * src/HttpHeader.cc
  2925. * src/HttpHeader.h
  2926. * src/HttpResponse.cc
  2927. * src/HttpResponse.h
  2928. * src/HttpResponseCommand.cc
  2929. * src/HttpResponseCommand.h
  2930. * src/MultiDiskAdaptor.cc
  2931. * src/MultiDiskAdaptor.h
  2932. * src/OptionHandlerFactory.cc
  2933. * src/RequestGroup.cc
  2934. * src/RequestGroup.h
  2935. * src/RequestGroupMan.cc
  2936. * src/option_processing.cc
  2937. * src/prefs.cc
  2938. * src/prefs.h
  2939. * test/CopyDiskAdaptorTest.cc
  2940. * test/FileTest.cc
  2941. * test/Makefile.am
  2942. * test/Makefile.in
  2943. * test/MultiDiskAdaptorTest.cc
  2944. * test/TestUtil.cc
  2945. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2946. Fixed the bug that DiskWriterEntry is not created when its
  2947. FileEntry.isRequested() is false and it doesn't share a piece with
  2948. other FileEntries that are requested. This bug causes segmentation fault
  2949. in the end.
  2950. * src/MultiDiskAdaptor.cc
  2951. * src/MultiDiskAdaptor.h
  2952. * src/MultiFileAllocationIterator.cc
  2953. * test/MultiDiskAdaptorTest.cc
  2954. * test/MultiFileAllocationIteratorTest.cc
  2955. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2956. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  2957. called if the number of file entries are greater than max open files.
  2958. * src/AbstractSingleDiskAdaptor.cc
  2959. * src/AbstractSingleDiskAdaptor.h
  2960. * src/DiskAdaptor.h
  2961. * src/MultiDiskAdaptor.cc
  2962. * src/MultiDiskAdaptor.h
  2963. * test/MultiDiskAdaptorTest.cc
  2964. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2965. Added a constuctor that receives struct timeval.
  2966. Added operator<.
  2967. * src/TimeA2.cc
  2968. * src/TimeA2.h
  2969. * test/TimeTest.cc
  2970. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2971. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  2972. * src/CookieParser.cc
  2973. * test/CookieParserTest.cc
  2974. * test/HttpResponseTest.cc
  2975. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2976. Implmented the functions to parse date.
  2977. * src/TimeA2.cc
  2978. * src/TimeA2.h
  2979. * test/TimeTest.cc
  2980. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2981. Added "Firefox3 Cookie" feature to FeatureConfig
  2982. * src/FeatureConfig.cc
  2983. * src/FeatureConfig.h
  2984. * test/FeatureConfigTest.cc
  2985. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2986. Bump up version number to 0.16.0b
  2987. * configure.ac
  2988. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2989. Use pkg-config if is is available.
  2990. * m4/openssl.m4
  2991. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2992. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  2993. * src/BtAnnounce.h
  2994. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2995. If an error occurred with a URI, remove identical URI from remaining
  2996. URI list because it is likely that same error occurred in the end and it
  2997. is waste of time.
  2998. * src/AbstractCommand.cc
  2999. * src/RequestGroup.cc
  3000. * src/RequestGroup.h
  3001. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3002. Removed wrong comment.
  3003. * src/DefaultPeerStorage.cc
  3004. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3005. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  3006. Added return value of getpid() to argument of srand() to achieve more
  3007. randomized value.
  3008. * src/SimpleRandomizer.cc
  3009. * src/SimpleRandomizer.h
  3010. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3011. Contact tracker frequently when the number of connections are 0 and
  3012. download is not finished yet.
  3013. * src/ActivePeerConnectionCommand.cc
  3014. * src/BtAnnounce.h
  3015. * src/DefaultBtAnnounce.cc
  3016. * src/DefaultBtAnnounce.h
  3017. * test/MockBtAnnounce.h
  3018. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3019. Moved threshold values to UTPexExtensionMessage.
  3020. * src/DefaultBtInteractive.cc
  3021. * src/Peer.cc
  3022. * src/Peer.h
  3023. * src/UTPexExtensionMessage.cc
  3024. * src/UTPexExtensionMessage.h
  3025. * test/UTPexExtensionMessageTest.cc
  3026. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3027. Added _incoming member to Peer class and made it true if the peer
  3028. initiated connection. Don't add those peer to UTPex message.
  3029. If extended handshake is received, assign _incoming to false.
  3030. * src/DefaultBtInteractive.cc
  3031. * src/HandshakeExtensionMessage.cc
  3032. * src/Peer.cc
  3033. * src/Peer.h
  3034. * src/PeerListenCommand.cc
  3035. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3036. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  3037. Encoding Decoder. Removed size threshold for turning off on the fly
  3038. inflation because resulting file may or may not be inflated depending
  3039. on the file size and I think it is not expected by users.
  3040. This change fixes segmentation fault when Metalink file contains gzipped
  3041. file and its filesize is provided.
  3042. * src/HttpResponseCommand.cc
  3043. * src/HttpResponseCommand.h
  3044. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3045. Made Cookie immutable.
  3046. * src/Cookie.cc
  3047. * src/Cookie.h
  3048. * src/CookieParser.cc
  3049. * src/CookieParser.h
  3050. * src/CookieStorage.cc
  3051. * test/CookieParserTest.cc
  3052. * test/CookieStorageTest.cc
  3053. * test/NsCookieParserTest.cc
  3054. * test/Sqlite3MozCookieParserTest.cc
  3055. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3056. Removed CookieBox, CookieBoxFactory.
  3057. * src/CookieBox.cc
  3058. * src/CookieBox.h
  3059. * src/CookieBoxFactory.cc
  3060. * src/CookieBoxFactory.h
  3061. * src/Makefile.am
  3062. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3063. Use CookieStorage class instead of CookieBox class.
  3064. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  3065. * src/AbstractProxyRequestCommand.cc
  3066. * src/CookieStorage.cc
  3067. * src/DownloadEngine.cc
  3068. * src/DownloadEngine.h
  3069. * src/HttpConnection.cc
  3070. * src/HttpConnection.h
  3071. * src/HttpRequest.cc
  3072. * src/HttpRequest.h
  3073. * src/HttpRequestCommand.cc
  3074. * src/HttpResponse.cc
  3075. * src/HttpResponseCommand.cc
  3076. * src/HttpSkipResponseCommand.cc
  3077. * src/Makefile.am
  3078. * src/MultiUrlRequestInfo.cc
  3079. * src/Request.cc
  3080. * src/Request.h
  3081. * src/main.cc
  3082. * test/AllTest.cc
  3083. * test/CookieStorageTest.cc
  3084. * test/CookieTest.cc
  3085. * test/HttpRequestTest.cc
  3086. * test/HttpResponseTest.cc
  3087. * test/Makefile.am
  3088. * test/NsCookieParserTest.cc
  3089. * test/Sqlite3MozCookieParserTest.cc
  3090. * test/nscookietest.txt
  3091. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3092. Updated
  3093. * test/Cookies.sqlite
  3094. * test/nscookietest.txt
  3095. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3096. Added tests for CookieStorage::load()
  3097. * test/CookieStorageTest.cc
  3098. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3099. Added CookieStorage class which is based on RFC2109 and manages cookies
  3100. more strictly than CookieBox and CookieBoxFactory class.
  3101. * src/CookieStorage.cc
  3102. * src/CookieStorage.h
  3103. * src/Cookie.cc
  3104. * src/Cookie.h
  3105. * test/CookieStorageTest.cc
  3106. * test/CookieTest.cc
  3107. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3108. Fixed the bug that commands are created more than the number of pieces.
  3109. * src/RequestGroup.cc
  3110. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3111. Fixed infinite loop bug in FTP when SIZE command failed.
  3112. * src/FtpNegotiationCommand.cc
  3113. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3114. Removed DirectDiskAdaptorTest.h
  3115. * test/Makefile.am
  3116. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3117. Fixed chunk checksum validation cannot detect trailing garbage data.
  3118. BUG#2074141
  3119. * src/AbstractSingleDiskAdaptor.cc
  3120. * src/AbstractSingleDiskAdaptor.h
  3121. * src/CheckIntegrityEntry.cc
  3122. * src/CheckIntegrityEntry.h
  3123. * src/DiskAdaptor.h
  3124. * src/MultiDiskAdaptor.cc
  3125. * src/MultiDiskAdaptor.h
  3126. * src/RequestGroup.cc
  3127. * test/DirectDiskAdaptorTest.cc
  3128. * test/MultiDiskAdaptorTest.cc
  3129. * test/TestUtil.cc
  3130. * test/TestUtil.h
  3131. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3132. Bump up version number of dht.dat file to 3. In version 3 format, time
  3133. is stored in 64bit, network byte order.
  3134. New build can load old format(version 2) but it saves the file in new
  3135. format. It means once you used new build, your dht.dat becomes
  3136. incompatible with older build.
  3137. * src/DHTRoutingTableDeserializer.cc
  3138. * src/DHTRoutingTableSerializer.cc
  3139. * test/DHTRoutingTableSerializerTest.cc
  3140. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3141. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  3142. * test/Makefile.am
  3143. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3144. Bump up version number of .aria2 control file to 0001.
  3145. New aria2 can still load version 0000 file but it saves the file in
  3146. version 0001 format. It means that new aria2 can resume download
  3147. started by old aria2 but the opposite is not true.
  3148. * src/DefaultBtProgressInfoFile.cc
  3149. * src/DefaultBtProgressInfoFile.h
  3150. * test/DefaultBtProgressInfoFileTest.cc
  3151. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3152. Added ntoh64 and hton64 as inline functions.
  3153. * src/Util.cc
  3154. * test/UtilTest.cc
  3155. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3156. Added sqlite3 depenency and Firefox3 cookie support.
  3157. * README
  3158. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3159. State that firefox3 cookie is supported explicitly in the usage.
  3160. * src/usage_text.h
  3161. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3162. Externalized message.
  3163. * src/RequestGroupMan.cc
  3164. * src/message.h
  3165. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3166. Save temporary file first and rename to the destination on success.
  3167. Added test cases.
  3168. * src/RequestGroupMan.cc
  3169. * test/RequestGroupManTest.cc
  3170. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3171. Fixed the bug that the number of connected peer is exceeding the limit
  3172. (55 by default) in seeding mode.
  3173. Multiplied 0.8 to _maxUploadSpeedLimit.
  3174. * src/ActivePeerConnectionCommand.cc
  3175. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3176. Clear table item.
  3177. * src/Dictionary.cc
  3178. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3179. Fixed error handling of lseek.
  3180. * src/AbstractDiskWriter.cc
  3181. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3182. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  3183. style cookie file.
  3184. * src/usage_text.h
  3185. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3186. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  3187. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  3188. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  3189. * src/Util.cc
  3190. * src/Util.h
  3191. * src/CookieParser.cc
  3192. * test/UtilTest.cc
  3193. * test/CookieParserTest.cc
  3194. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3195. Separate the implementation to load old mozilla format of cookie to
  3196. NsCookieParser class.
  3197. * src/CookieBoxFactory.cc
  3198. * src/CookieBoxFactory.h
  3199. * src/NsCookieParser.cc
  3200. * src/NsCookieParser.h
  3201. * test/NsCookieParserTest.cc
  3202. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3203. Made parse() const
  3204. * src/Sqlite3MozCookieParser.cc
  3205. * src/Sqlite3MozCookieParser.h
  3206. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3207. Added firefox3 cookie support based on the patch submitted by
  3208. tizianomueller.
  3209. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  3210. this functionality.
  3211. * configure.ac
  3212. * m4/sqlite3.m4
  3213. * src/CookieBoxFactory.cc
  3214. * src/CookieBoxFactory.h
  3215. * src/Makefile.am
  3216. * src/Makefile.in
  3217. * src/Sqlite3MozCookieParser.cc
  3218. * src/Sqlite3MozCookieParser.h
  3219. * src/main.cc
  3220. * test/CookieBoxFactoryTest.cc
  3221. * test/Makefile.am
  3222. * test/Makefile.in
  3223. * test/Sqlite3MozCookieParserTest.cc
  3224. * test/badcookies.sqlite
  3225. * test/cookies.sqlite
  3226. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3227. Added Danish and Greek translations.
  3228. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  3229. Great thanks to all translators.
  3230. * po/LINGUAS
  3231. * po/el.po
  3232. * po/da.po
  3233. * po/es.po
  3234. * po/ca.po
  3235. * po/nn.po
  3236. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3237. Fixed man page: --follow-bittorrent should be --follow-torrent
  3238. * doc/aria2c.1.txt
  3239. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3240. Fixed: numCommand is less than the value specified in -C option.
  3241. * src/RequestGroup.cc
  3242. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3243. Fixed occasional assertion failure in PieceSegment.
  3244. Calling PieceStorage::getMissingPiece(size_t) was missing after
  3245. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  3246. creation of duplicate segments and one of the segment was finished then
  3247. assertion failure was caused.
  3248. * src/SegmentMan.cc
  3249. * test/SegmentManTest.cc
  3250. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3251. Added options to load/save the server's performance/status to a file
  3252. and the timeout to drop their data.
  3253. --server-stat-of=FILE specifies the file to which performance data
  3254. is saved.
  3255. --server-stat-if=FILE specifies the file to read previously saved
  3256. by --server-stat-of option. Might be used with --uri-selector=feedback.
  3257. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  3258. TIMEOUT is specified in seconds and the default value is 24hours.
  3259. * src/MultiUrlRequestInfo.cc
  3260. * src/OptionHandlerFactory.cc
  3261. * src/RequestGroupMan.cc
  3262. * src/RequestGroupMan.h
  3263. * src/ServerStatMan.cc
  3264. * src/ServerStatMan.h
  3265. * src/option_processing.cc
  3266. * src/prefs.cc
  3267. * src/prefs.h
  3268. * test/ServerStatManTest.cc
  3269. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3270. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  3271. * src/ServerStatMan.cc
  3272. * src/ServerStatMan.h
  3273. * test/ServerStatManTest.cc
  3274. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3275. Implemented ServerStatMan::load(...) function and its test case.
  3276. * src/ServerStat.cc
  3277. * src/ServerStat.h
  3278. * src/ServerStatMan.cc
  3279. * test/ServerStatManTest.cc
  3280. * test/ServerStatTest.cc
  3281. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3282. Use time_t instead of int32_t. Use int64_t where milli second is
  3283. expected.
  3284. * src/TimeA2.cc
  3285. * src/TimeA2.h
  3286. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3287. Implemented ServerStatMan::save(...) function and its test case.
  3288. * src/ServerStat.cc
  3289. * src/ServerStat.h
  3290. * src/ServerStatMan.cc
  3291. * src/ServerStatMan.h
  3292. * test/ServerStatManTest.cc
  3293. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3294. Now aria2 uses name attribute in Metalink as local filename in
  3295. BitTorrent downloads. BUG#2033999
  3296. * src/BtContext.h
  3297. * src/BtDependency.cc
  3298. * src/DefaultBtContext.cc
  3299. * src/DefaultBtContext.h
  3300. * src/SingleFileDownloadContext.cc
  3301. * src/SingleFileDownloadContext.h
  3302. * test/BtDependencyTest.cc
  3303. * test/DefaultBtContextTest.cc
  3304. * test/MockBtContext.h
  3305. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3306. Added AC_C_BIGENDIAN
  3307. * src/configure.ac
  3308. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3309. Limited numCommand less than or equal to the number of piece.
  3310. * src/RequestGroup.cc
  3311. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3312. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  3313. directive.
  3314. * test/DefaultPieceStorageTest.cc
  3315. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3316. Fixed memory leak in test code
  3317. * test/AnnounceListTest.cc
  3318. * test/DefaultPeerListProcessorTest.cc
  3319. * test/DefaultPeerStorageTest.cc
  3320. * test/MetaFileUtilTest.cc
  3321. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3322. Fixed wrong argument passing to BitfieldMan::isBitSet()
  3323. * src/DefaultPieceStorage.cc
  3324. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3325. Initialized _directIOAllowed
  3326. * src/MultiDiskAdaptor.cc
  3327. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3328. Fixed memory leak
  3329. * src/GZipDecoder.cc
  3330. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3331. Fixed memory leak
  3332. * src/MetalinkParserStateMachine.cc
  3333. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3334. Fixed memory leak
  3335. * src/Dictionary.cc
  3336. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3337. Fixed memory leak
  3338. * src/IteratableChunkChecksumValidator.h
  3339. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3340. Fixed unmatched malloc/free.
  3341. * src/IteratableChunkChecksumValidator.cc
  3342. * src/IteratableChecksumValidator.cc
  3343. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3344. Removed max chunk size check. This change fixes BUG#2040169
  3345. * src/ChunkedDecoder.cc
  3346. * src/ChunkedDecoder.h
  3347. * test/ChunkedDecoderTest.cc
  3348. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3349. Implemented download speed based URI selection algorithm.
  3350. Introduced new option --uri-selector.
  3351. If --uri-selector=feedback is given, aria2 uses download speed observed
  3352. in the previous downloads and chooses fastest server in the URI list.
  3353. Currently at most 10 URIs are considered to introduce randomeness for
  3354. finding better servers. The speed is average download speed in the
  3355. downloads.
  3356. On the other hand, if --uri-selector=inorder is given, which is default,
  3357. URI is tried in order in URI list.
  3358. The usage text for the new option has not been written yet.
  3359. * src/AbstractCommand.cc
  3360. * src/DownloadCommand.cc
  3361. * src/DownloadEngine.cc
  3362. * src/DownloadEngineFactory.cc
  3363. * src/InOrderURISelector.cc
  3364. * src/InOrderURISelector.h
  3365. * src/OptionHandlerFactory.cc
  3366. * src/PeerStat.h
  3367. * src/RequestGroup.cc
  3368. * src/RequestGroup.h
  3369. * src/RequestGroupMan.cc
  3370. * src/RequestGroupMan.h
  3371. * src/SegmentMan.cc
  3372. * src/SegmentMan.h
  3373. * src/ServerStat.cc
  3374. * src/ServerStat.h
  3375. * src/ServerStatMan.cc
  3376. * src/ServerStatMan.h
  3377. * src/ServerStatURISelector.cc
  3378. * src/ServerStatURISelector.h
  3379. * src/URISelector.h
  3380. * src/option_processing.cc
  3381. * src/prefs.cc
  3382. * src/prefs.h
  3383. * test/InOrderURISelectorTest.cc
  3384. * test/RequestGroupManTest.cc
  3385. * test/ServerStatManTest.cc
  3386. * test/ServerStatURISelectorTest.cc
  3387. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3388. * Release 0.15.1+2
  3389. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3390. Bump up version number to 0.15.1+2
  3391. * configure.ac
  3392. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3393. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  3394. * m4/aria2_arg.m4
  3395. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3396. * Release 0.15.1+1
  3397. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3398. Bump up version number to 0.15.1+1
  3399. * configure.ac
  3400. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3401. Fixed the bug that causes segmentaion fault when resuming download
  3402. using metalink without size tag. Reproducible only using HTTP URI.
  3403. * src/HttpResponseCommand.cc
  3404. * src/FtpNegotiationCommand.cc
  3405. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3406. * Release 0.15.1
  3407. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3408. Updated Bulgarian and French translations, thanks to all translators.
  3409. * po/bg.po
  3410. * po/fr.po
  3411. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3412. Bump up version number to 0.15.1
  3413. * configure.ac
  3414. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3415. Avoid repeated call of gettimeofday() when calculating speed.
  3416. * src/SpeedCalc.cc
  3417. * src/SpeedCalc.h
  3418. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3419. Removed writable check when socket's send buffer is full in BitTorrent
  3420. downloads to lower CPU usage.
  3421. * src/PeerInteractionCommand.cc
  3422. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3423. Fixed broken gzip inflation.
  3424. Turn off segmented downloading if gzip content is smaller than or equal
  3425. to 1MiB and inflate the data on the fly, because HTTP response header
  3426. doesn't contain the length of inflated file we can't determin where
  3427. the chunk of data should be written.
  3428. On the other hand, if gzip content is larger than 1MB, then turn off
  3429. on the fly inflation, because some servers returns "content-type: gzip"
  3430. for *.tgz, *.gz files.
  3431. * src/DownloadCommand.cc
  3432. * src/HttpResponseCommand.cc
  3433. * src/HttpResponseCommand.h
  3434. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3435. Applied tizianomueller's patch to fix compile error.
  3436. * test/BitfieldManTest.cc
  3437. * test/BtRequestMessageTest.cc
  3438. * test/DefaultBtContextTest.cc
  3439. * test/DefaultDiskWriterTest.cc
  3440. * test/DefaultPieceStorageTest.cc
  3441. * test/HttpHeaderProcessorTest.cc
  3442. * test/HttpResponseTest.cc
  3443. * test/Metalink2RequestGroupTest.cc
  3444. * test/MetalinkParserControllerTest.cc
  3445. * test/MetalinkProcessorTest.cc
  3446. * test/PeerSessionResourceTest.cc
  3447. * test/UtilTest.cc
  3448. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3449. * Release 0.15.0
  3450. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3451. Reordered src files in POTFILES.in so that usage text appears first.
  3452. * po/POTFILES.in
  3453. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3454. Bump up version number to 0.15.0
  3455. * configure.ac
  3456. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3457. Added Bulgarian translation.
  3458. Updated Catalan, Spanish, French and Japanese translations.
  3459. Thanks to all translators.
  3460. * po/LINGUAS
  3461. * po/bg.po
  3462. * po/ca.po
  3463. * po/es.po
  3464. * po/fr.po
  3465. * po/ja.po
  3466. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3467. Updated feature list. Added libz for dependency section.
  3468. Added a description about unit testing using CppUnit.
  3469. * README
  3470. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3471. Added a test for libz. Quoted where it is necessary.
  3472. * build_test.sh
  3473. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3474. Added GZip to `Enabled Features' list.
  3475. * src/FeatureConfig.cc
  3476. * src/FeatureConfig.h
  3477. * test/FeatureConfigTest.cc
  3478. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3479. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  3480. the transfer has not yet started.
  3481. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  3482. * src/SegmentMan.cc
  3483. * src/SegmentMan.h
  3484. * test/SegmentManTest.cc
  3485. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3486. Cache last calculated average download/upload speed.
  3487. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  3488. cached value.
  3489. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  3490. * src/PeerStat.h
  3491. * src/SpeedCalc.cc
  3492. * src/SpeedCalc.h
  3493. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3494. Call parseUrl directly.
  3495. * src/Request.cc (resetUrl)
  3496. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3497. Supported absolute/relative path in Location header field.
  3498. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  3499. * src/HttpHeader.cc
  3500. * src/HttpHeader.h
  3501. * src/HttpResponse.cc
  3502. * src/HttpSkipResponseCommand.cc
  3503. * src/Request.cc
  3504. * test/HttpHeaderTest.cc
  3505. * test/HttpResponseTest.cc
  3506. * test/RequestTest.cc
  3507. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3508. Changed help text for --load-cookie option.
  3509. * doc/aria2c.1.txt
  3510. * src/usage_text.h
  3511. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3512. Regenerated test/Makefile.in to remove stale ChangeLog.
  3513. * test/Makefile.in
  3514. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3515. Updated po files.
  3516. * po/aria2c.pot
  3517. * po/*.po
  3518. * po/*.gmo
  3519. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3520. Bump up version number to 0.15.0b
  3521. * configure.ac
  3522. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3523. Externalize messages.
  3524. * src/RequestGroupMan.cc
  3525. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  3526. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3527. Use File::exists() instead of File::isFile() to allow non-regular file
  3528. such as block special files.
  3529. * src/AbstractDiskWriter.cc
  3530. * src/MultiDiskWriter.cc
  3531. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3532. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  3533. * src/gai_strerror.h
  3534. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3535. Fixed compile error. Thanks gknauf for the patch.
  3536. * src/asctime_r.c
  3537. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3538. Included asctime_r.h from a2time.h.
  3539. * src/a2time.h
  3540. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3541. Added a message "aria2 doesn't verify signature" to log message when
  3542. signature file is saved.
  3543. * src/RequestGroupMan.cc
  3544. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3545. Added the ability to save signature when download is completed if
  3546. signature is available. The filename of signature file is the path to
  3547. download file followed by ".sig". If it already exists, then signature
  3548. will not be saved.
  3549. * src/RequestGroupMan.cc
  3550. * src/Signature.cc
  3551. * test/SignatureTest.cc
  3552. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3553. Updated the descriptions for --bt-seed-unverified.
  3554. * doc/aria2c.1
  3555. * doc/aria2c.1.html
  3556. * doc/aria2c.1.txt
  3557. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3558. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  3559. that this is not going to verify files using piece hashes.
  3560. * src/HelpItemFactory.cc
  3561. * src/OptionHandlerFactory.cc
  3562. * src/RequestGroup.cc
  3563. * src/option_processing.cc
  3564. * src/prefs.cc
  3565. * src/prefs.h
  3566. * src/usage_text.h
  3567. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3568. Added the ability to retrieve signature from Metalink file.
  3569. A retrieved signature is stored in Signature class and it is held by
  3570. DownloadContext class. Note that aria2 doesn't verify signature.
  3571. * src/DownloadContext.cc
  3572. * src/DownloadContext.h
  3573. * src/Makefile.am
  3574. * src/Makefile.in
  3575. * src/Metalink2RequestGroup.cc
  3576. * src/MetalinkEntry.cc
  3577. * src/MetalinkEntry.h
  3578. * src/MetalinkParserController.cc
  3579. * src/MetalinkParserController.h
  3580. * src/MetalinkParserStateMachine.cc
  3581. * src/MetalinkParserStateMachine.h
  3582. * src/Signature.cc
  3583. * src/Signature.h
  3584. * src/SignatureMetalinkParserState.cc
  3585. * src/SignatureMetalinkParserState.h
  3586. * src/VerificationMetalinkParserState.cc
  3587. * src/VerificationMetalinkParserState.h
  3588. * test/Metalink2RequestGroupTest.cc
  3589. * test/MetalinkParserControllerTest.cc
  3590. * test/MetalinkProcessorTest.cc
  3591. * test/test.xml
  3592. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3593. Close DiskAdaptor after renaming file.
  3594. * src/RequestGroup.cc
  3595. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3596. Corrected indentation
  3597. * src/DefaultBtProgressInfoFile.cc
  3598. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3599. Moved the calls of std::ios::exceptions() inside of try-catch block
  3600. because if an error occurred in constructor of std::fstream, then
  3601. exception is thrown immediately when std::ios::exceptions() is called
  3602. which results unhandled exception and aria2c aborts.
  3603. * src/DefaultBtProgressInfoFile.cc
  3604. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3605. Added the test for the previous change in DefaultBtContext.cc
  3606. * test/DefaultBtContextTest.cc
  3607. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3608. Fixed the bug that causes infinite loop when the number of pieces are
  3609. fewer than allowed fast set size which is 10 by default.
  3610. * src/DefaultBtContext.cc
  3611. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3612. Updated the descriptions for -j, -s. Added --bt-seed.
  3613. * doc/aria2c.1
  3614. * doc/aria2c.1.html
  3615. * doc/aria2c.1.txt
  3616. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3617. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  3618. aria2 seeds previously downloaded files without validating piece hashs.
  3619. * src/HelpItemFactory.cc
  3620. * src/OptionHandlerFactory.cc
  3621. * src/RequestGroup.cc
  3622. * src/option_processing.cc
  3623. * src/prefs.cc
  3624. * src/prefs.h
  3625. * src/usage_text.h
  3626. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3627. Updated DESCRIPTION of man page.
  3628. * doc/aria2c.1
  3629. * doc/aria2c.1.html
  3630. * doc/aria2c.1.txt
  3631. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3632. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  3633. Don't define `struct addrinfo' when __sun is defined.
  3634. * src/getaddrinfo.h
  3635. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3636. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  3637. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  3638. second argument is of type `struct _stati64'. Otherwise it is defined as
  3639. `struct stat'.
  3640. * src/AbstractDiskWriter.cc
  3641. * src/File.cc
  3642. * src/File.h
  3643. * src/a2io.h
  3644. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3645. Fixed the compile error in hurd-i386
  3646. See the original bug report:
  3647. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  3648. * src/a2io.h
  3649. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3650. Code cleanup.
  3651. * src/PeerAbstractCommand.cc
  3652. * src/PeerAbstractCommand.h
  3653. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3654. Removed TransferEncoding.
  3655. * src/DownloadCommand.cc
  3656. * src/DownloadCommand.h
  3657. * src/HttpResponseCommand.cc
  3658. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3659. Updated po files.
  3660. * po/aria2c.pot
  3661. * po/*.po
  3662. * po/*.gmo
  3663. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3664. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  3665. * src/A2STR.cc
  3666. * src/A2STR.h
  3667. * src/ChunkedDecoder.cc
  3668. * src/ChunkedDecoder.h
  3669. * src/ChunkedEncoding.cc: Removed
  3670. * src/ChunkedEncoding.h: Removed
  3671. * src/DownloadCommand.cc
  3672. * src/DownloadCommand.h
  3673. * src/HttpDownloadCommand.cc
  3674. * src/HttpResponse.cc
  3675. * src/HttpResponse.h
  3676. * src/HttpResponseCommand.cc
  3677. * src/HttpSkipResponseCommand.cc
  3678. * src/HttpSkipResponseCommand.h
  3679. * src/Makefile.am
  3680. * src/TransferEncoding.h: Removed
  3681. * test/ChunkedDecoderTest.cc
  3682. * test/ChunkedEncodingTest.cc: Removed
  3683. * test/HttpResponseTest.cc
  3684. * test/Makefile.am
  3685. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3686. Use append instead of insert.
  3687. * src/GZipDecoder.cc
  3688. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3689. Updated doc
  3690. * src/Decoder.h
  3691. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3692. Updated usage text for -s option.
  3693. * src/usage_text.h
  3694. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3695. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  3696. * src/Request.cc
  3697. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3698. Cleaned up configure.ac.
  3699. * configure.ac
  3700. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3701. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  3702. AC_ARG_ENABLE.
  3703. * configure.ac
  3704. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3705. Added gzip, deflate decoding support in HTTP using libz. If compiled
  3706. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  3707. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  3708. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  3709. fly and writes decoded data to a local disk.
  3710. * README
  3711. * README.html
  3712. * configure.ac
  3713. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  3714. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  3715. * m4/libz.m4
  3716. * src/Decoder.h
  3717. * src/DownloadCommand.cc
  3718. * src/DownloadCommand.h
  3719. * src/Exception.h
  3720. * src/GZipDecoder.cc
  3721. * src/GZipDecoder.h
  3722. * src/HttpHeader.cc
  3723. * src/HttpHeader.h
  3724. * src/HttpRequest.cc
  3725. * src/HttpRequest.h
  3726. * src/HttpResponse.cc
  3727. * src/HttpResponse.h
  3728. * src/HttpResponseCommand.cc
  3729. * src/Makefile.am
  3730. * test/GZipDecoderTest.cc
  3731. * test/HttpRequestTest.cc
  3732. * test/HttpResponseTest.cc
  3733. * test/Makefile.am
  3734. * test/Makefile.in
  3735. * test/gzip_decode_test.gz
  3736. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3737. Clarified usage of -j option.
  3738. * src/usage_text.h
  3739. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3740. Disabled getting size from the response of RETR.
  3741. If SIZE command failed, then disable resuming and segmented downloading.
  3742. * src/FtpConnection.cc
  3743. * src/FtpConnection.h
  3744. * src/FtpNegotiationCommand.cc
  3745. * src/FtpNegotiationCommand.h
  3746. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3747. Use digits to find first byte of file size, which makes the intention
  3748. of the code clearer.
  3749. * src/FtpConnection.cc
  3750. Don't call validateTotalLength() when size is 0.
  3751. * src/FtpNegotiationCommand.cc
  3752. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3753. Updated po files.
  3754. * po/aria2c.pot
  3755. * po/*.gmo
  3756. * po/*.po
  3757. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3758. Clarified usage text for --split option.
  3759. * src/usage_text.h
  3760. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3761. Bump up version number to 0.15.0dev. "dev" means "development"
  3762. version, which means I started the development of the next release!
  3763. * src/configure.ac
  3764. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3765. If FTP server returns negative response with REST raw command and
  3766. requested range is not 0, throw exception. If requested range is 0,
  3767. continue download a file from 0 byte.
  3768. * src/FtpNegotiationCommand.cc
  3769. * src/FtpNegotiationCommand.h
  3770. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3771. Supported FTP server which don't recognize SIZE raw command.
  3772. If SIZE raw command is failed, aria2 will try to get file size
  3773. from the response of RETR raw command. If both attempts are failed,
  3774. then resuming and segmented downloading are disabled.
  3775. * src/FtpConnection.cc
  3776. * src/FtpConnection.h
  3777. * src/FtpNegotiationCommand.cc
  3778. * src/FtpNegotiationCommand.h
  3779. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3780. * Release 0.14.0+1
  3781. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3782. Bump up version number to 0.14.0+1
  3783. * src/configure.ac
  3784. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3785. Fixed the code that refers static member variable from non-static
  3786. context.
  3787. * src/DefaultPeerStorage.cc
  3788. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3789. * Release 0.14.0
  3790. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3791. Added build test script
  3792. * build_test.sh
  3793. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3794. Updated ja.po
  3795. * src/ja.po
  3796. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3797. Bump up version number to 0.14.0
  3798. * src/configure.ac
  3799. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3800. Updated ja.po and fr.po. Great thanks for french translators and
  3801. Sebastien WILLEMIJNS.
  3802. * po/fr.po
  3803. * po/ja.po
  3804. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3805. Added configure option to enable/disable epoll support.
  3806. * configure.ac
  3807. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3808. Updated man page.
  3809. * doc/aria2c.1.txt
  3810. * doc/aria2c.1
  3811. * doc/aria2c.1.html
  3812. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3813. Added missing default value '5' to the usage of --split option.
  3814. * src/HelpItemFactory.cc
  3815. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3816. Filled up pieces based on the number of missing blocks, rather than
  3817. simplay the number of piece * block length.
  3818. * src/BtRequestFactory.h
  3819. * src/DefaultBtInteractive.cc
  3820. * src/DefaultBtInteractive.h
  3821. * src/DefaultBtRequestFactory.cc
  3822. * src/DefaultBtRequestFactory.h
  3823. * src/Piece.cc
  3824. * src/Piece.h
  3825. * test/BitfieldManTest.cc
  3826. * test/DefaultBtRequestFactoryTest.cc
  3827. * test/MockBtRequestFactory.h
  3828. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3829. Made _epEvents a member variable.
  3830. * src/DownloadEngine.cc
  3831. * src/DownloadEngine.h
  3832. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3833. Cancel download if http redirect is bounded more than 20 times.
  3834. * src/AbstractCommand.cc
  3835. * src/HttpSkipResponseCommand.cc
  3836. * src/Request.cc
  3837. * src/Request.h
  3838. * test/RequestTest.cc
  3839. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3840. Fixed unhandled exception(removed keyword `new').
  3841. * src/SocketCore.cc (initEPOLL)
  3842. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3843. Removed visit(const MetaEntry*)
  3844. * src/MetaEntryVisitor.h:
  3845. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  3846. and made them virtual.
  3847. * src/BencodeVisitor.h
  3848. * src/BencodeVisitor.cc
  3849. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3850. Updated po files.
  3851. * po/aria2c.pot
  3852. * po/*.po
  3853. * po/*.gmo
  3854. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3855. Moved the call setWriteCheckSocket inside the previous clause to reduce
  3856. the number of socket to watch out.
  3857. * src/PeerInteractionCommand.cc
  3858. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3859. When there is not enough space in disk when writing a chunk of data,
  3860. aria2 now prints the message to the console to warn user and aborts
  3861. its download. Not all downloads are canceled because some downloads
  3862. may use another disk or partition. BUG#1640332
  3863. * src/AbstractDiskWriter.cc
  3864. * src/PeerAbstractCommand.cc
  3865. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  3866. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  3867. setHaltRequested(true) to cancel download.
  3868. * src/PeerInteractionCommand.h
  3869. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3870. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  3871. socket from int to sock_t as sockets are unsigned in Windows.
  3872. For AsyncNameResolver, DownloadEngine, I did additional modification
  3873. for the portion of the code changed according to epoll support.
  3874. I defined sock_t in a2netcompat.h to use sock_t without including
  3875. SocketCore.h.
  3876. * src/AsyncNameResolver.cc
  3877. * src/AsyncNameResolver.h
  3878. * src/DownloadEngine.cc
  3879. * src/DownloadEngine.h
  3880. * src/SocketCore.cc
  3881. * src/SocketCore.h
  3882. * src/a2netcompat.h
  3883. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3884. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  3885. changes in the patch were applied.
  3886. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  3887. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  3888. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  3889. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3890. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  3891. a2io.h and common.h were modified.
  3892. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  3893. MinGW.
  3894. * src/common.h: Changed off_t to 64 bit in MinGW.
  3895. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3896. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  3897. only a2netcompat.h is modified.
  3898. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  3899. directives.
  3900. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3901. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  3902. only gai_strerror.h is modified.
  3903. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  3904. winsock errors in MinGW.
  3905. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3906. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  3907. follow sources are applied.
  3908. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  3909. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  3910. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  3911. I included locale.h from Platform.cc.
  3912. * src/main.cc: Moved common setup/teardown code to Platform class.
  3913. * test/AllTest.cc: Use Platform class.
  3914. Set locale to C in AllTest.cc to prevent the messages to be localized.
  3915. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3916. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  3917. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  3918. * test/HttpRequestTest.cc: Casted to off_t where it should.
  3919. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3920. Applied Ross's aria2-0.13.2+1-mingw.patch and
  3921. aria2-0.13.2+1-mingw-2.patch.
  3922. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  3923. systems which don't have termious.h. I moved the directive inside of
  3924. if(isTTY) { ... clause so that line is wiped out without termious.h.
  3925. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  3926. anyway.
  3927. * src/asctime_r.h
  3928. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  3929. I added 2nd argument to the prototype declaration.
  3930. * src/StringFormat.cc: Get rid of vasprintf.
  3931. * src/getaddrinfo.h: Fixed constants.
  3932. * configure.ac: Added the check for asctime_r function.
  3933. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  3934. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3935. Added writable test for Socket when the sending message is in progress.
  3936. Usually the sending message is piece message. Without wriable check,
  3937. upload latency is dropped to more than 1sec.
  3938. * src/PeerInteractionCommand.cc
  3939. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3940. Create only requested files and files which shares a piece with
  3941. requested file in multi-torrent downloads. Directory structures are
  3942. also created in the same rule.
  3943. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  3944. DiskWriterEntry as in the previous implementation.
  3945. * src/MultiDiskWriter.cc
  3946. * src/MultiFileAllocationIterator.cc
  3947. * src/MultiFileAllocationIterator.h
  3948. * test/MultiFileAllocationIteratorTest.cc
  3949. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3950. Commented out -lprofiler
  3951. * src/Makefile.am
  3952. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3953. Bump up version number to 0.14.0b.
  3954. * src/configure.ac
  3955. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3956. Actively establish connection to peers in seeding, when peer cache
  3957. is not full and max upload speed limit is not reached.
  3958. * src/ActivePeerConnectionCommand.cc
  3959. * src/ActivePeerConnectionCommand.h
  3960. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3961. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  3962. to make room more fleshy, recently found peers.
  3963. Peer::_badConditionStartTime is not used anymore. Consider to remove
  3964. it.
  3965. * src/DefaultPeerStorage.cc
  3966. * test/DefaultPeerStorageTest.cc
  3967. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3968. Returns cached data only when the previous receiveHandshake() is called
  3969. with peek = true.
  3970. * src/PeerConnection.cc (receiveHandshake)
  3971. * src/PeerConnection.h (receiveHandshake)
  3972. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3973. Changed default value of -s option from 1 to 5.
  3974. Also max value of -s option is changed from 5 to 16.
  3975. * src/HelpItemFactory.cc
  3976. * src/OptionHandlerFactory.cc
  3977. * src/option_processing.cc
  3978. * src/usage_text.h
  3979. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3980. Changed -s options behavior. Now it means the number of connections
  3981. made simultaneously in each http/ftp download.
  3982. If 1 URL is specified, the behavior is the same with old implementation.
  3983. If -s N is given and more than N URLs are specified, first N URLs are
  3984. used and remaining URLs are used for backup. If less than N URLs are
  3985. specified, some of URLs are used more than once so that totally N
  3986. connections are made simultaneously.
  3987. * src/main.cc
  3988. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3989. Included missing iosfwd or ostream header.
  3990. * src/RequestGroupMan.cc
  3991. * src/TaggedItem.cc
  3992. * src/TaggedItem.h
  3993. * src/Util.cc
  3994. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3995. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  3996. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  3997. * src/HttpConnection.cc: Included missing sstream.
  3998. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3999. Added --bt-max-open-files option.
  4000. * src/DefaultPieceStorage.cc
  4001. * src/HelpItemFactory.cc
  4002. * src/MultiDiskAdaptor.cc
  4003. * src/MultiDiskAdaptor.h
  4004. * src/OptionHandlerFactory.cc
  4005. * src/option_processing.cc
  4006. * src/prefs.cc
  4007. * src/prefs.h
  4008. * src/usage_text.h
  4009. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4010. Fixed the bug that aria2 aborts when a path to a directory is given
  4011. in command-line.
  4012. * src/ProtocolDetector.cc
  4013. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4014. Limited the number files opened in each BitTorrent download. The default
  4015. value is 100. The option to change this value will be added.
  4016. * src/MultiDiskAdaptor.cc
  4017. * src/MultiDiskAdaptor.h
  4018. * src/MultiFileAllocationIterator.cc
  4019. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4020. Fixed the bug that HTTP downloads don't start with old libraries.
  4021. * src/HttpHeaderProcessor.cc
  4022. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4023. Use empty() instead of size() > 0.
  4024. * src/HttpConnection.cc
  4025. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4026. Drop connection if the incoming peer ID is the same with localhost's
  4027. one. The previous implementation drops connection when incoming peer's
  4028. IP address is the same with localhost's one.
  4029. * src/PeerListenCommand.cc
  4030. * src/DefaultBtInteractive.cc
  4031. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4032. Returns cached data without checking whether socket is readable
  4033. if the cache is available.
  4034. * src/PeerConnection.cc (receiveHandshake)
  4035. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4036. Included stdint.h
  4037. * src/common.h
  4038. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4039. Removed duplicate HAVE_GETTIMEOFDAY
  4040. * src/Makefile.am
  4041. * src/Makefile.in
  4042. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4043. Use interval as a minInterval when minInterval is not supplied.
  4044. * src/DefaultBtAnnounce.cc
  4045. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4046. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  4047. attempt is failed, then 2nd attempt get kicked out more quickly.
  4048. And it is now static const member of DefaultBtAnnounce.
  4049. * src/DefaultBtAnnounce.h
  4050. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4051. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  4052. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  4053. * src/ActivePeerConnectionCommand.cc
  4054. * src/BtConstants.h
  4055. * src/BtRuntime.h
  4056. * src/DHTGetPeersCommand.cc
  4057. * src/DefaultBtAnnounce.cc
  4058. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  4059. BtRuntime::MAX_PEERS.
  4060. * src/DefaultPeerStorage.h
  4061. * src/InitiatorMSEHandshakeCommand.cc
  4062. * src/PeerInitiateConnectionCommand.cc
  4063. * src/PeerInteractionCommand.cc
  4064. * src/PeerReceiveHandshakeCommand.cc
  4065. * src/TrackerWatcherCommand.cc
  4066. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4067. Always Connect to _numNewConnection
  4068. * src/ActivePeerConnectionCommand.cc
  4069. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4070. Made `begin' unsigned int.
  4071. * src/GrowSegment.h
  4072. * src/Piece.cc
  4073. * src/Piece.h
  4074. * src/PiecedSegment.cc
  4075. * src/PiecedSegment.h
  4076. * src/Segment.h
  4077. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4078. Calculate piece hash when data is arrived if the data is arrived in
  4079. order. This removes additional read operation for hash calculation.
  4080. If the data is arrived in out of order, the hash is calucated when the
  4081. piece is completed. This is the same behavior as the old implementation.
  4082. * src/BtPieceMessage.cc
  4083. * src/DefaultBtProgressInfoFile.cc
  4084. * src/DefaultPieceStorage.cc
  4085. * src/DownloadCommand.cc
  4086. * src/DownloadCommand.h
  4087. * src/DownloadEngine.cc
  4088. * src/GrowSegment.cc
  4089. * src/GrowSegment.h
  4090. * src/Piece.cc
  4091. * src/Piece.h
  4092. * src/PiecedSegment.cc
  4093. * src/PiecedSegment.h
  4094. * src/Segment.h
  4095. * test/PieceTest.cc
  4096. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4097. Try to keep the ordering of outgoing piece message.
  4098. * src/DefaultBtMessageDispatcher.cc
  4099. (DefaultBtMessageDispatcher::sendMessages)
  4100. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4101. Fixed busy loop when error/hup epoll events occur.
  4102. * src/AbstractCommand.cc
  4103. * src/PeerAbstractCommand.cc
  4104. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4105. Added --bt-request-peer-speed-limit option, which was a constant
  4106. SLOW_SPEED_THRESHOLD.
  4107. * src/ActivePeerConnectionCommand.cc
  4108. * src/ActivePeerConnectionCommand.h
  4109. * src/BtConstants.h
  4110. * src/HelpItemFactory.cc
  4111. * src/OptionHandlerFactory.cc
  4112. * src/PeerReceiveHandshakeCommand.cc
  4113. * src/option_processing.cc
  4114. * src/prefs.cc
  4115. * src/prefs.h
  4116. * src/usage_text.h
  4117. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4118. Removed repeated call of getTopDirPath(). Instead, call it once and
  4119. cache the result.
  4120. * src/MultiDiskAdaptor.cc
  4121. * src/MultiDiskAdaptor.h
  4122. (mkdir, openFile, initAndOpenFile, openExistingFile)
  4123. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4124. Fixed compile error on debian etch.
  4125. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  4126. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  4127. it is undefined.
  4128. * src/Util.cc (ULLONG_MAX)
  4129. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4130. Added epoll support. Use epoll if it is available. If not, use select.
  4131. When async dns is enabled in compile time, epoll support is enabled
  4132. only when aria2 is built with c-ares. This condition statement is
  4133. defined in a2io.h.
  4134. Currently aria2 supports both c-ares and ares, but ares is maintained
  4135. for quite a while and debian already has c-ares package, ares support
  4136. will be dropped in the future version.
  4137. * configure.ac
  4138. * src/AbstractCommand.cc
  4139. * src/AsyncNameResolver.cc
  4140. * src/AsyncNameResolver.h
  4141. * src/Command.cc
  4142. * src/Command.h
  4143. * src/DownloadEngine.cc
  4144. * src/DownloadEngine.h
  4145. * src/PeerAbstractCommand.cc
  4146. * src/SocketCore.cc
  4147. * src/SocketCore.h
  4148. * src/a2io.h
  4149. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4150. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  4151. directive.
  4152. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4153. Do not do write operation to /dev/null file.
  4154. * src/LogFactory.cc
  4155. * src/SimpleLogger.cc
  4156. Replaced vasprintf with vsnprintf
  4157. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4158. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4159. * src/BtRequestMessage.cc
  4160. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  4161. for segmentation fault caused by previous commit.
  4162. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4163. Reduced the usage of gettimeofday().
  4164. * src/DefaultBtMessageDispatcher.cc
  4165. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  4166. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4167. * src/RequestSlot.cc
  4168. * src/RequestSlot.h
  4169. (RequestSlot::isTimeout)
  4170. Made RequestSlot have a reference to Piece object to avoid find
  4171. Piece repeatedly.
  4172. * src/DefaultBtMessageDispatcher.cc
  4173. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4174. * src/RequestSlot.cc
  4175. * src/RequestSlot.h
  4176. (RequestSlot::getPiece)
  4177. * test/DefaultBtMessageDispatcherTest.cc
  4178. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4179. * src/TimeA2.cc
  4180. * src/TimeA2.h
  4181. (Time::difference): New function.
  4182. (Time::elapsed): Done optimization.
  4183. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4184. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  4185. directive.
  4186. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4187. * src/option_processing.cc: Added missing `defined' keyword to #if
  4188. directive.
  4189. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4190. Bump up version number to 0.13.2+1
  4191. * src/configure.ac
  4192. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4193. Refactored broken outstanding piece handling.
  4194. * src/DefaultPieceStorage.cc
  4195. * src/DefaultPieceStorage.h
  4196. * src/Piece.cc
  4197. * src/Piece.h
  4198. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4199. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  4200. name collision of static variable and predefined macro.
  4201. * src/BtContext.cc
  4202. * src/BtContext.h
  4203. * src/CookieBoxFactory.cc
  4204. * src/CookieBoxFactory.h
  4205. * src/CookieParser.cc
  4206. * src/CookieParser.h
  4207. * src/DefaultBtContext.cc
  4208. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4209. * src/RequestGroup.cc
  4210. (RequestGroup::createInitialCommand): Use empty() instead of size().
  4211. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4212. * Release 0.13.2
  4213. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4214. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  4215. * po/fr.po
  4216. * po/ja.po
  4217. * po/aria2c.pot
  4218. * po/*.po
  4219. * po/*.gmo
  4220. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4221. Bump up version number to 0.13.2
  4222. * src/configure.ac
  4223. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4224. Refactord.
  4225. * src/RequestGroupMan.cc
  4226. (removeStoppedGroup)
  4227. (fillRequestGroupFromReserver)
  4228. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4229. Fixed compile error on Ubuntu.
  4230. * src/BtPieceMessage.cc
  4231. * src/MessageDigestHelper.cc
  4232. * src/Util.cc
  4233. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4234. Fixed compile error when configured with --disable-bittorrent
  4235. * test/DownloadHandlerFactoryTest.cc
  4236. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4237. Done make update-po
  4238. * po/aria2c.pot
  4239. * po/*.po
  4240. * po/*.gmo
  4241. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4242. Bump up version number to 0.13.2rc.
  4243. * src/configure.ac
  4244. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4245. Made option name bold. Updated SYNOPSIS to make it more readable.
  4246. * doc/aria2c.1.txt
  4247. * doc/aria2c.1
  4248. * doc/aria2c.1.html
  4249. * src/version_usage.cc
  4250. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4251. Refactored. Use std::string instead of size and char*.
  4252. * Data.cc
  4253. * Data.h
  4254. * test/Data.cc
  4255. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4256. Added trimSelf(). Rewritten trim() to use trimSelf().
  4257. * Util.cc
  4258. * Util.h
  4259. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4260. * src/ChunkChecksum.h (getChecksum): Return const reference.
  4261. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4262. Fixed compile error when configured with --disable-metalink.
  4263. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  4264. * test/FeatureConfigTest.cc
  4265. * test/DownloadHandlerFactoryTest.cc
  4266. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4267. Fixed compile error when configured with --without-gnutls
  4268. --without-openssl
  4269. * src/main.cc
  4270. * test/DefaultBtProgressInfoFileTest.cc
  4271. * test/SegmentManTest.cc
  4272. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4273. Fixed compile error with OpenSSL.
  4274. * src/IteratableChunkChecksumValidator.cc
  4275. * src/LibsslDHKeyExchange.h
  4276. * src/MessageDigestHelper.cc
  4277. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4278. Revert the default value of --max-concurrent-downloads to 5.
  4279. Revert the default value of --metalink-servers to 5.
  4280. Man pages was also updated.
  4281. * src/option_processing.cc
  4282. * doc/aria2c.1.txt
  4283. * doc/aria2c.1.html
  4284. * doc/aria2c.1
  4285. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4286. Returns const reference:
  4287. DownloadContext::getPieceHash, DownloadContext::getName,
  4288. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  4289. BtContext::getInfoHashAsString,
  4290. * src/BtContext.h
  4291. * src/DefaultBtContext.cc
  4292. * src/DefaultBtContext.h
  4293. * src/DownloadContext.h
  4294. * src/SingleFileDownloadContext.h
  4295. * test/MockBtContext.h
  4296. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4297. * src/RequestGroup.h (getDir): Removed.
  4298. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4299. Returns const reference. The internal urlencode function was optimized
  4300. a little bit.
  4301. * src/Request.cc
  4302. * src/Request.h
  4303. * src/HttpRequest.cc
  4304. * src/HttpRequest.h
  4305. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4306. Defined option name and possible values as std::string to reduce
  4307. temporary string object creation in runtime.
  4308. * src/HelpItemFactory.cc
  4309. * src/LogFactory.cc
  4310. * src/Option.cc
  4311. * src/OptionHandlerFactory.cc
  4312. * src/option_processing.cc
  4313. * src/prefs.cc
  4314. * src/prefs.h
  4315. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4316. Return const reference.
  4317. * src/DownloadHandlerConstants.cc
  4318. * src/DownloadHandlerConstants.h
  4319. (getMetalinkExtensions)
  4320. (getMetalinkContentTypes)
  4321. (getBtExtensions)
  4322. (getBtContentTypes)
  4323. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4324. * src/HttpHeader.cc (get): Rewritten.
  4325. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4326. Make HttpHeader::getFirst(...) return const reference.
  4327. * src/HttpHeader.cc
  4328. * src/HttpHeader.h
  4329. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4330. Use Option::getAsBool(...) instead of Option::get(...) and compare
  4331. it with V_TRUE.
  4332. * src/DefaultPieceStorage.cc
  4333. * src/DownloadCommand.cc
  4334. * src/FtpNegotiationCommand.cc
  4335. * src/HttpRequest.cc
  4336. * src/InitiateConnectionCommand.cc
  4337. * src/RequestGroup.cc
  4338. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4339. Made Option::get(...) return const reference of std::string.
  4340. * src/Option.cc
  4341. * src/Option.h
  4342. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4343. Replaced std:copy with insert.
  4344. * src/DefaultBtMessageDispatcher.cc
  4345. * src/DefaultPieceStorage.cc
  4346. * src/DownloadEngineFactory.cc
  4347. * src/RequestGroup.cc
  4348. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4349. Included SocketCore.h to fix compiler warning.
  4350. * src/InitiateConnectionCommand.cc
  4351. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4352. Put piece selection strategy algorithm to RarestPieceSelector class,
  4353. Added a switch to choose whether randomized selection so that unit
  4354. tests emit same results in, possibly, win32.
  4355. * src/DefaultPieceStorage.cc
  4356. * src/DefaultPieceStorage.h
  4357. * src/RarestPieceSelector.cc
  4358. * src/RarestPieceSelector.h
  4359. * test/DefaultPieceStorageTest.cc
  4360. * test/RarestPieceSelectorTest.cc
  4361. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4362. Don't pool connection if HTTP proxy is enabled.
  4363. * src/FtpFinishDownloadCommand.cc
  4364. * src/FtpNegotiationCommand.cc
  4365. * src/HttpSkipResponseCommand.cc
  4366. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4367. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  4368. * src/AbstractCommand.cc
  4369. * src/AbstractCommand.h
  4370. * src/ActivePeerConnectionCommand.cc
  4371. * src/FtpInitiateConnectionCommand.cc
  4372. * src/HttpInitiateConnectionCommand.cc
  4373. * src/InitiateConnectionCommandFactory.cc
  4374. * src/PeerAbstractCommand.cc
  4375. * src/PeerAbstractCommand.h
  4376. * src/PeerInitiateConnectionCommand.cc
  4377. * src/TrackerWatcherCommand.cc
  4378. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4379. Sort RequestSlot in ascending order and manipulate them using
  4380. lower_bound.
  4381. * src/DefaultBtMessageDispatcher.cc
  4382. * src/DefaultBtMessageDispatcher.h
  4383. (getMessageQueue): Added const qualifier.
  4384. (getRequestSlots): Added const qualifier.
  4385. (sendMessages): Use empty() instead of size().
  4386. (doCancelSendingPieceAction): Use HandleEvent object.
  4387. (doAbortOutstandingRequestAction): Rewritten.
  4388. (doChokedAction): Rewritten.
  4389. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  4390. (isOutstandingRequest): Rewritten.
  4391. (getOutstandingRequest): Rewritten.
  4392. (removeOutstandingRequest): Rewritten.
  4393. (addOutstandingRequest): Rewritten.
  4394. * src/RequestSlot.cc
  4395. * src/RequestSlot.h
  4396. (operator=): Rewritten.
  4397. (operator!=): New function.
  4398. (operator<): New function.
  4399. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4400. * src/DefaultBtRequestFactory.cc
  4401. (doChokedAction): Rewritten.
  4402. (removeCompletedPiece): Rewritten.
  4403. (removeTargetPiece): Rewritten.
  4404. (createRequestMessages): Added the debug log.
  4405. (createRequestMessagesOnEndGame: Added the debug log.
  4406. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4407. Added the debug log message.
  4408. * src/BtPieceMessage.cc (doReceivedAction)
  4409. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4410. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  4411. used lower_bound to process them rather than linear search.
  4412. * src/DHTPeerAnnounceStorage.cc
  4413. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4414. Call subtractPieceStats from ~PeerInteractionCommand only when the
  4415. peer has at least one completed piece.
  4416. * src/Peer.cc
  4417. * src/Peer.h
  4418. * src/PeerInteractionCommand.cc
  4419. * src/PeerSessionResource.cc
  4420. * src/PeerSessionResource.h
  4421. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4422. Removed unnecessary sorting
  4423. * src/DefaultPieceStorage (DefaultPieceStorage)
  4424. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4425. Rewritten the portion of the code that mangaes allowed fast indexes.
  4426. * src/PeerSessionResource.cc
  4427. * src/PeerSessionResource.h
  4428. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4429. Removed the invalid string including '\r' from ru.po and
  4430. did make update-po.
  4431. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4432. Added --log-level and --summary-interval to man page.
  4433. * doc/aria2c.1.txt
  4434. * doc/aria2c.1.html
  4435. * doc/aria2c.1
  4436. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4437. Added --log-level option to specify log level. Log messages under
  4438. the specified level are not output. Default value is `debug'.
  4439. * src/HelpItemFactory.cc
  4440. * src/LogFactory.cc
  4441. * src/LogFactory.h
  4442. * src/Logger.h
  4443. * src/OptionHandlerFactory.cc
  4444. * src/SimpleLogger.cc
  4445. * src/SimpleLogger.h
  4446. * src/main.cc
  4447. * src/option_processing.cc
  4448. * src/prefs.h
  4449. * src/usage_text.h
  4450. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4451. Print download progress summary of all parallel downloads in specified
  4452. interval, default 60 secs. While aria2 could download several files
  4453. in parallel (see -j option), it displayed just first download progress,
  4454. and the other downloads are hidden from the users. This new feature
  4455. prints all downloads currently in-progress to the console so that you
  4456. can check the status of all downloads. The interval can be adjusted
  4457. by --summary-interval option.
  4458. The progress readout is now cut so that all fits in the one line of
  4459. console.
  4460. * src/ConsoleStatCalc.cc
  4461. * src/ConsoleStatCalc.h
  4462. * src/HelpItemFactory.cc
  4463. * src/OptionHandlerFactory.cc
  4464. * src/RequestGroupMan.cc
  4465. * src/RequestGroupMan.h
  4466. * src/main.cc
  4467. * src/option_processing.cc
  4468. * src/prefs.h
  4469. * src/usage_text.h
  4470. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4471. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  4472. * src/DownloadEngine.cc (DownloadEngine)
  4473. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4474. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  4475. defined.
  4476. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  4477. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4478. Use erase+lower_bound+insert instead of sort.
  4479. * src/DefaultPieceStorage.cc (addPieceStats)
  4480. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4481. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  4482. * src/A2STR.cc
  4483. * src/A2STR.h
  4484. * src/OptionParser.cc (parse)
  4485. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4486. Defined fake filename `[tracker.announce]' as static const std::string.
  4487. * src/TrackerWatcherCommand.cc (createRequestGroup)
  4488. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4489. Defined default filename `index.html' as static const std::string
  4490. * src/SingleFileDownloadContext.cc
  4491. * src/SingleFileDownloadContext.h
  4492. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4493. Defined "[MEMORY]" as static const std::string.
  4494. * src/MemoryBufferPreDownloadHandler.cc (execute)
  4495. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4496. Defined control file's version number as static const std::string.
  4497. * src/DefaultBtProgressInfoFile.cc
  4498. * src/DefaultBtProgressInfoFile.h
  4499. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4500. Use Request::METHOD_GET
  4501. * src/RequestGroup.cc (createNextCommandWithAdj)
  4502. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4503. Defined "OK", "ERR", "INPR" as static const std::string
  4504. * src/RequestGroupMan.cc (showDownloadResults)
  4505. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4506. Defined default client used in extended handshake as static const
  4507. std::string
  4508. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  4509. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4510. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  4511. * src/HttpConnection.cc (eraseConfidentialInfo)
  4512. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4513. Defined default ftp user and password as static const std::string
  4514. * src/AuthConfigFactory.cc
  4515. * src/AuthConfigFactory.h
  4516. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4517. Defined strings used in netrc as static const std::string
  4518. * src/Netrc.cc
  4519. * src/Netrc.h
  4520. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4521. Defined HTTP status as static const std::string
  4522. * src/AbstractProxyResponseCommand.cc
  4523. * src/HttpHeader.cc
  4524. * src/HttpHeader.h
  4525. * src/HttpResponse.cc
  4526. * src/HttpResponseCommand.cc
  4527. * src/HttpSkipResponseCommand.cc
  4528. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4529. Defined "\r\n", "A", "I" as static const std::string
  4530. * src/A2STR.cc
  4531. * src/A2STR.h
  4532. * src/FtpConnection.cc
  4533. * src/FtpConnection.h
  4534. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4535. Added COLON_C(".") and used it in Request::parseUrl()
  4536. * src/A2STR.cc
  4537. * src/A2STR.h
  4538. * src/Request.cc (parseUrl)
  4539. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4540. Changed the type of padName from `const std::string&' to `const char*'.
  4541. * src/MSEHandshake.cc (verifyPadLength)
  4542. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4543. Defined "sha1" as static const std::string.
  4544. * src/MetalinkParserController.cc
  4545. * src/MetalinkParserController.h
  4546. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4547. Defined message digest algorithm name as static const std::string
  4548. * src/DHTTokenTracker.cc
  4549. * src/DHTUtil.cc
  4550. * src/DefaultBtContext.cc
  4551. * src/MSEHandshake.cc
  4552. * src/MessageDigestHelper.cc
  4553. * src/Peer.cc
  4554. * src/messageDigest.cc
  4555. * src/messageDigest.h
  4556. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4557. Made string literals used in SAX parser static const std::string.
  4558. * src/FileMetalinkParserState.cc
  4559. * src/FileMetalinkParserState.h
  4560. * src/FilesMetalinkParserState.cc
  4561. * src/FilesMetalinkParserState.h
  4562. * src/InitialMetalinkParserState.cc
  4563. * src/InitialMetalinkParserState.h
  4564. * src/MetalinkMetalinkParserState.cc
  4565. * src/MetalinkMetalinkParserState.h
  4566. * src/PiecesMetalinkParserState.cc
  4567. * src/PiecesMetalinkParserState.h
  4568. * src/ResourcesMetalinkParserState.cc
  4569. * src/ResourcesMetalinkParserState.h
  4570. * src/VerificationMetalinkParserState.cc
  4571. * src/VerificationMetalinkParserState.h
  4572. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4573. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  4574. * src/A2STR.cc
  4575. * src/A2STR.h
  4576. * src/File.cc
  4577. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4578. Defined static const std::string IP("ip"), PORT("port") and use them
  4579. instead of string literals.
  4580. * src/DefaultPeerListProcessor.cc
  4581. * src/DefaultPeerListProcessor.h
  4582. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4583. Made string literals for torrent file processing static const
  4584. std::string.
  4585. * src/BtContext.cc
  4586. * src/BtContext.h
  4587. * src/DefaultBtContext.cc
  4588. * src/DefaultBtContext.h
  4589. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4590. Made string literal for tracker response static const std::string
  4591. * src/BtAnnounce.cc
  4592. * src/BtAnnounce.h
  4593. * src/DefaultBtAnnounce.cc
  4594. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4595. Use DHTMessage::T instead of "t".
  4596. * src/DHTMessageTracker.cc (messageArrived)
  4597. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4598. Made keyName static const. Made trimmed charset static const
  4599. std::string.
  4600. * src/Util.cc (getContentDispositionFilename)
  4601. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4602. Made USER_AGENT const. Made "/" static const std::string.
  4603. * src/A2STR.cc
  4604. * src/A2STR.h
  4605. * src/HttpRequest.cc
  4606. * src/HttpRequest.h
  4607. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4608. Made string listeral to static const std::string:
  4609. "Content-Range", "Content-Length"
  4610. * src/HttpHeader.cc
  4611. * src/HttpHeader.h
  4612. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4613. Made string listeral to static const std::string.
  4614. * src/HttpConnection.cc
  4615. * src/HttpHeader.cc
  4616. * src/HttpHeader.h
  4617. * src/HttpResponse.cc
  4618. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4619. Made string listeral to static const std::string.
  4620. * src/A2STR.cc
  4621. * src/A2STR.h
  4622. * src/SimpleLogger.cc
  4623. * src/SimpleLogger.h
  4624. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4625. Made string literal to static const std::string.
  4626. Rewritten CookieParser::setField.
  4627. * src/A2STR.cc
  4628. * src/A2STR.h
  4629. * src/CookieBoxFactory.cc
  4630. * src/CookieBoxFactory.h
  4631. * src/CookieParser.cc
  4632. * src/CookieParser.h
  4633. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4634. Made string literal to static const std::string
  4635. * src/DHTAbstractMessage.cc
  4636. * src/DHTAnnouncePeerMessage.cc
  4637. * src/DHTAnnouncePeerMessage.h
  4638. * src/DHTAnnouncePeerReplyMessage.cc
  4639. * src/DHTAnnouncePeerReplyMessage.h
  4640. * src/DHTFindNodeMessage.cc
  4641. * src/DHTFindNodeMessage.h
  4642. * src/DHTFindNodeReplyMessage.cc
  4643. * src/DHTFindNodeReplyMessage.h
  4644. * src/DHTGetPeersMessage.cc
  4645. * src/DHTGetPeersMessage.h
  4646. * src/DHTGetPeersReplyMessage.cc
  4647. * src/DHTGetPeersReplyMessage.h
  4648. * src/DHTMessage.cc
  4649. * src/DHTMessage.h
  4650. * src/DHTMessageFactoryImpl.cc
  4651. * src/DHTMessageReceiver.cc
  4652. * src/DHTPingMessage.cc
  4653. * src/DHTPingMessage.h
  4654. * src/DHTPingReplyMessage.cc
  4655. * src/DHTPingReplyMessage.h
  4656. * src/DHTQueryMessage.cc
  4657. * src/DHTQueryMessage.h
  4658. * src/DHTResponseMessage.cc
  4659. * src/DHTResponseMessage.h
  4660. * src/DHTUnknownMessage.cc
  4661. * src/DHTUnknownMessage.h
  4662. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4663. Made string literal to static const std::string
  4664. * src/BtChokeMessage.cc (toString)
  4665. * src/BtHaveAllMessage.cc (toString)
  4666. * src/BtHaveNoneMessage.cc (toString)
  4667. * src/BtInterestedMessage.cc (toString)
  4668. * src/BtNotInterestedMessage.cc (toString)
  4669. * src/BtUnchokeMessage.cc (toString)
  4670. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4671. Replaced "" with static const variable A2STR::NIL.
  4672. Replaced string comparison against "" with std::string::empty().
  4673. Added PROTO_* to Request class and use them as a protocol string
  4674. constant.
  4675. Made "started", "stopped", "completed" static const variable in
  4676. AnnounceList class.
  4677. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4678. Updated translations. Great thanks to translators.
  4679. * po/ca.po
  4680. * po/de.po
  4681. * po/fr.po
  4682. * po/it.po
  4683. * po/ja.po
  4684. * po/ru.po
  4685. * po/zh_CN.po
  4686. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4687. Updated man page; categorized options and fixed typo.
  4688. * doc/aria2c.1.txt
  4689. * doc/aria2c.1.html
  4690. * doc/aria2c.1
  4691. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4692. Removed const ref
  4693. * src/MetalinkEntry.cc (AddProtocolPreference)
  4694. * src/RequestGroup.cc (FindServerHostByHostname)
  4695. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4696. Rewritten Accept-Features handling.
  4697. * src/HttpRequestCommand.cc (createHttpRequest)
  4698. * src/a2functional.h
  4699. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4700. Changed method signature:
  4701. DHTAbstractNodeLookupTask::toEntries
  4702. * src/DHTAbstractNodeLookupTask.cc
  4703. * src/DHTAbstractNodeLookupTask.h
  4704. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4705. Changed method signature:
  4706. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  4707. * src/BtContext.h
  4708. * src/DefaultBtContext.cc
  4709. * src/DefaultBtContext.h
  4710. * src/DefaultBtInteractive.cc
  4711. * test/DefaultBtContextTest.cc
  4712. * test/MockBtContext.h
  4713. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4714. Changed method signature:
  4715. MultiFileAllocationIterator::makeDiskWriterEntries
  4716. * src/MultiFileAllocationIterator.cc
  4717. * src/MultiFileAllocationIterator.h
  4718. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4719. Changed method sinature:
  4720. MetalinkEntry::toFileEntry,
  4721. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  4722. Metalinker::queryEntry
  4723. * src/Metalink2RequestGroup.cc
  4724. * src/MetalinkEntry.cc
  4725. * src/MetalinkEntry.h
  4726. * src/MetalinkHelper.cc
  4727. * src/MetalinkHelper.h
  4728. * src/Metalinker.cc
  4729. * src/Metalinker.h
  4730. * src/main.cc
  4731. * test/MetalinkHelperTest.cc
  4732. * test/MetalinkerTest.cc
  4733. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4734. Changed method sinature:
  4735. RequestGroup::getURIs
  4736. * src/RequestGroup.cc
  4737. * src/RequestGroup.h
  4738. * test/Metalink2RequestGroupTest.cc
  4739. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4740. Changed method signature:
  4741. PeerListProcessor::extractPeer
  4742. * src/CompactPeerListProcessor.cc
  4743. * src/CompactPeerListProcessor.h
  4744. * src/DefaultBtAnnounce.cc
  4745. * src/DefaultPeerListProcessor.cc
  4746. * src/DefaultPeerListProcessor.h
  4747. * src/DelegatingPeerListProcessor.cc
  4748. * src/DelegatingPeerListProcessor.h
  4749. * src/PeerListProcessor.h
  4750. * src/UTPexExtensionMessage.cc
  4751. * test/DefaultPeerListProcessorTest.cc
  4752. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4753. Changed method signature:
  4754. BtRequestFactory::createRequestMessages,
  4755. BtRequestFactory::createRequestMessagesOnEndGame
  4756. * src/BtRequestFactory.h
  4757. * src/DefaultBtInteractive.cc
  4758. * src/DefaultBtRequestFactory.cc
  4759. * src/DefaultBtRequestFactory.h
  4760. * test/DefaultBtRequestFactoryTest.cc
  4761. * test/MockBtRequestFactory.h
  4762. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4763. Changed method signature:
  4764. PieceStorage::getInFlightPieces
  4765. * src/DefaultBtProgressInfoFile.cc
  4766. * src/DefaultPieceStorage.cc
  4767. * src/DefaultPieceStorage.h
  4768. * src/PieceStorage.h
  4769. * src/UnknownLengthPieceStorage.cc
  4770. * src/UnknownLengthPieceStorage.h
  4771. * test/DefaultBtProgressInfoFileTest.cc
  4772. * test/MockPieceStorage.h
  4773. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4774. Changed method signature:
  4775. PostDownloadHandler::getNextRequestGroups
  4776. Metalink2RequestGroup::generate
  4777. RequestGroup::postDownloadProcessing
  4778. * src/BtPostDownloadHandler.cc
  4779. * src/BtPostDownloadHandler.h
  4780. * src/Metalink2RequestGroup.cc
  4781. * src/Metalink2RequestGroup.h
  4782. * src/MetalinkPostDownloadHandler.cc
  4783. * src/MetalinkPostDownloadHandler.h
  4784. * src/PostDownloadHandler.h
  4785. * src/RequestGroup.cc
  4786. * src/RequestGroup.h
  4787. * src/RequestGroupMan.cc
  4788. * src/main.cc
  4789. * test/BtPostDownloadHandlerTest.cc
  4790. * test/Metalink2RequestGroupTest.cc
  4791. * test/MetalinkPostDownloadHandlerTest.cc
  4792. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4793. Rewritten AccRequestGroup
  4794. * src/main.cc
  4795. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4796. Rewritten.
  4797. * src/TaggedItem.cc (toTagString)
  4798. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4799. Rewritten Accept-Features handling.
  4800. * src/HttpRequestCommand.cc (createHttpRequest)
  4801. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4802. Rewritten accept types handling.
  4803. * HttpRequest.cc (createRequest)
  4804. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4805. Rewritten
  4806. * src/FeatureConfig.cc (featureSummary)
  4807. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4808. Changed method signature:
  4809. PeerStorage::getActivePeers
  4810. * src/DHTPeerAnnounceEntry.cc
  4811. * src/DefaultPeerStorage.cc
  4812. * src/DefaultPeerStorage.h
  4813. * src/PeerStorage.h
  4814. * test/DefaultPeerStorageTest.cc
  4815. * test/MockPeerStorage.h
  4816. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4817. Changed method signature:
  4818. DHTPeerAnnounceStorage::getPeers,
  4819. DHTPeerAnnounceEntry::getPeers
  4820. * src/DHTGetPeersMessage.cc
  4821. * src/DHTPeerAnnounceEntry.cc
  4822. * src/DHTPeerAnnounceEntry.h
  4823. * src/DHTPeerAnnounceStorage.cc
  4824. * src/DHTPeerAnnounceStorage.h
  4825. * test/DHTAnnouncePeerMessageTest.cc
  4826. * test/DHTPeerAnnounceEntryTest.cc
  4827. * test/DHTPeerAnnounceStorageTest.cc
  4828. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4829. Changed method signature:
  4830. NameResolver::resolve
  4831. * src/DHTEntryPointNameResolveCommand.cc
  4832. * src/InitiateConnectionCommand.cc
  4833. * src/NameResolver.cc
  4834. * src/NameResolver.h
  4835. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4836. Changed method signature:
  4837. PieceStorage::getAdvertisedPieceIndexes
  4838. * src/DefaultBtInteractive.cc
  4839. * src/DefaultPieceStorage.cc
  4840. * src/DefaultPieceStorage.h
  4841. * src/PieceStorage.h
  4842. * src/UnknownLengthPieceStorage.h
  4843. * test/MockPieceStorage.h
  4844. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4845. Changed method signature:
  4846. SegmentMan::getInFlightSegment
  4847. * src/AbstractCommand.cc
  4848. * src/SegmentMan.cc
  4849. * src/SegmentMan.h
  4850. * test/SegmentManTest.cc
  4851. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4852. Changed method signature:
  4853. DHTAbstractNodeLookupTask::getNodesFromMessage
  4854. * src/DHTAbstractNodeLookupTask.cc
  4855. * src/DHTAbstractNodeLookupTask.h
  4856. * src/DHTNodeLookupTask.cc
  4857. * src/DHTNodeLookupTask.h
  4858. * src/DHTPeerLookupTask.cc
  4859. * src/DHTPeerLookupTask.h
  4860. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4861. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  4862. * src/AbstractCommand.cc
  4863. * src/BtCheckIntegrityEntry.cc
  4864. * src/BtCheckIntegrityEntry.h
  4865. * src/BtFileAllocationEntry.cc
  4866. * src/BtFileAllocationEntry.h
  4867. * src/BtSetup.cc
  4868. * src/BtSetup.h
  4869. * src/CheckIntegrityCommand.cc
  4870. * src/CheckIntegrityEntry.h
  4871. * src/ChecksumCheckIntegrityEntry.cc
  4872. * src/ChecksumCheckIntegrityEntry.h
  4873. * src/DHTSetup.cc
  4874. * src/DHTSetup.h
  4875. * src/DownloadEngine.cc
  4876. * src/FileAllocationCommand.cc
  4877. * src/FileAllocationEntry.h
  4878. * src/RequestGroup.cc
  4879. * src/RequestGroup.h
  4880. * src/RequestGroupMan.cc
  4881. * src/RequestGroupMan.h
  4882. * src/StreamCheckIntegrityEntry.cc
  4883. * src/StreamCheckIntegrityEntry.h
  4884. * src/StreamFileAllocationEntry.cc
  4885. * src/StreamFileAllocationEntry.h
  4886. * src/TrackerWatcherCommand.cc
  4887. * src/a2functional.h
  4888. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4889. Changed method signature:
  4890. BNode::findClosestKNodes, BNode:: enumerateBucket,
  4891. DHTBucket::getGoodNodes,
  4892. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  4893. * src/BNode.cc
  4894. * src/BNode.h
  4895. * src/DHTAbstractNodeLookupTask.cc
  4896. * src/DHTAutoSaveCommand.cc
  4897. * src/DHTBucket.cc
  4898. * src/DHTBucket.h
  4899. * src/DHTBucketRefreshTask.cc
  4900. * src/DHTFindNodeMessage.cc
  4901. * src/DHTGetPeersMessage.cc
  4902. * src/DHTRoutingTable.cc
  4903. * src/DHTRoutingTable.h
  4904. * test/BNodeTest.cc
  4905. * test/DHTBucketTest.cc
  4906. * test/DHTRoutingTableTest.cc
  4907. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4908. In piece selection functions, Pass std::deque<...> by reference rather
  4909. than returning it.
  4910. * src/BitfieldMan.cc
  4911. * src/BitfieldMan.h
  4912. * src/DefaultBtRequestFactory.cc
  4913. * src/DefaultPieceStorage.cc
  4914. * src/Piece.cc
  4915. * src/Piece.h
  4916. * test/BitfieldManTest.cc
  4917. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4918. Implemented rarest piece first piece selection strategy.
  4919. * src/AbstractBtMessage.cc
  4920. * src/AbstractBtMessage.h
  4921. * src/BitfieldMan.cc
  4922. * src/BitfieldMan.h
  4923. * src/BtBitfieldMessage.cc
  4924. * src/BtHaveAllMessage.cc
  4925. * src/BtHaveMessage.cc
  4926. * src/DefaultPieceStorage.cc
  4927. * src/DefaultPieceStorage.h
  4928. * src/PeerInteractionCommand.cc
  4929. * src/PieceStorage.h
  4930. * src/UnknownLengthPieceStorage.h
  4931. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4932. Rewritten readData and writeData.
  4933. * src/MultiDiskAdaptor.cc
  4934. * src/MultiDiskAdaptor.h
  4935. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4936. Move \n out of the message "Usage: ...".
  4937. * src/version_usage.cc
  4938. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4939. Bump up version number to 0.13.2b.
  4940. * configure.ac
  4941. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4942. Added const qualifier to argument Exception& e.
  4943. * src/Logger.h
  4944. * src/SimpleLogger.cc
  4945. * src/SimpleLogger.h
  4946. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4947. Pool connection when CWD, SIZE command fails.
  4948. * src/FtpNegotiationCommand.cc
  4949. * src/FtpNegotiationCommand.h
  4950. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4951. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  4952. * src/HttpResponseCommand.cc
  4953. * src/HttpSkipResponseCommand.cc
  4954. * src/HttpSkipResponseCommand.h
  4955. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4956. Pool connection when a server returns 4xx, 5xx responses.
  4957. * src/HttpNullDownloadCommand.cc
  4958. * src/HttpNullDownloadCommand.h
  4959. * src/HttpResponse.cc
  4960. * src/HttpResponse.h
  4961. * src/HttpResponseCommand.cc
  4962. * src/HttpResponseCommand.h
  4963. * test/HttpResponseTest.cc
  4964. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4965. Print usage when no URL is specifed or bad command-line option is
  4966. specified.
  4967. * src/HelpItemFactory.cc
  4968. * src/help_tags.h
  4969. * src/option_processing.cc
  4970. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4971. Removed duplicate log message.
  4972. * src/AbstractCommand.cc (asyncResolveHostname)
  4973. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4974. Updated man page: --async-dns and --ftp-reuse-connection were added.
  4975. Changed -j option's default value from 5 to 1.
  4976. Added new examples using protocol auto detection feature.
  4977. Removed -T, -M usage where it can be omitted.
  4978. * doc/aria2c.1.txt
  4979. * doc/aria2c.1.html
  4980. * doc/aria2c.1.txt
  4981. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4982. Updated command-line usage text, so that it tells users that they
  4983. can specify any number of torrent files and metalink files in
  4984. command-line.
  4985. * src/version_usage.cc
  4986. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4987. Changed the default value of -j option to 1.
  4988. * src/HelpItemFactory.cc
  4989. * src/option_processing.cc
  4990. * src/usage_text.h
  4991. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4992. Added the ability to reuse connection in FTP and it is enabled by
  4993. default. It can be disabled by --ftp-reuse-connection=false option.
  4994. * src/Command.cc
  4995. * src/DownloadCommand.cc
  4996. * src/FtpDownloadCommand.cc
  4997. * src/FtpDownloadCommand.h
  4998. * src/FtpFinishDownloadCommand.cc
  4999. * src/FtpFinishDownloadCommand.h
  5000. * src/FtpInitiateConnectionCommand.cc
  5001. * src/FtpNegotiationCommand.cc
  5002. * src/FtpNegotiationCommand.h
  5003. * src/HelpItemFactory.cc
  5004. * src/Makefile.am
  5005. * src/Makefile.in
  5006. * src/OptionHandlerFactory.cc
  5007. * src/option_processing.cc
  5008. * src/prefs.h
  5009. * src/usage_text.h
  5010. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5011. Call Command::transitStatus() before calling Command::execute(),
  5012. so that the status change made in execute() is not cleared.
  5013. * src/DownloadEngine.cc
  5014. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5015. Removed forward declaration of SocketCore class.
  5016. * src/HttpDownloadCommand.h
  5017. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5018. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  5019. in InitiateConnectionCommandFactory. They should be set only when
  5020. the protocol is HTTP or HTTPS.
  5021. * src/InitiateConnectionCommandFactory.cc
  5022. * src/RequestGroup.cc
  5023. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5024. Fixed infinite loop in checksum checking.
  5025. * src/IteratableChecksumValidator.cc
  5026. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5027. Set _supportsPersistentConnection to true by default.
  5028. * src/Request.cc
  5029. * src/RequestGroup.cc
  5030. * test/HttpRequestTest.cc
  5031. * test/RequestTest.cc
  5032. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5033. Added timeout to socket pool. The default timeout is 15 seconds,
  5034. which is the same value Apache uses.
  5035. * src/DownloadEngine.cc
  5036. * src/DownloadEngine.h
  5037. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5038. Fixed misuse of multimap::find()
  5039. * src/HttpHeader.cc
  5040. * test/HttpHeaderTest.cc
  5041. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5042. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  5043. option.
  5044. The asynchronous DNS is not capable of IPv6 yet.
  5045. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  5046. least for HTTP download.
  5047. * src/AbstractCommand.cc
  5048. * src/AbstractCommand.h
  5049. * src/AsyncNameResolver.cc
  5050. * src/AsyncNameResolver.h
  5051. * src/DHTEntryPointNameResolveCommand.cc
  5052. * src/DHTEntryPointNameResolveCommand.h
  5053. * src/DownloadEngine.cc
  5054. * src/DownloadEngine.h
  5055. * src/FtpInitiateConnectionCommand.cc
  5056. * src/FtpInitiateConnectionCommand.h
  5057. * src/HelpItemFactory.cc
  5058. * src/HttpInitiateConnectionCommand.cc
  5059. * src/HttpInitiateConnectionCommand.h
  5060. * src/InitiateConnectionCommand.cc
  5061. * src/InitiateConnectionCommand.h
  5062. * src/Makefile.am
  5063. * src/Makefile.in
  5064. * src/NameResolver.cc
  5065. * src/NameResolver.h
  5066. * src/OptionHandlerFactory.cc
  5067. * src/SocketCore.cc
  5068. * src/SocketCore.h
  5069. * src/Util.cc
  5070. * src/Util.h
  5071. * src/option_processing.cc
  5072. * src/prefs.h
  5073. * src/usage_text.h
  5074. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5075. Updated man page: --quiet, --header were added.
  5076. --metalink-servers and --enable-http-keep-alive option were updated.
  5077. * doc/aria2c.1
  5078. * doc/aria2c.1.html
  5079. * doc/aria2c.1.txt
  5080. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5081. Enable HTTP keep-alive by default.
  5082. * src/HelpItemFactory.cc
  5083. * src/option_processing.cc
  5084. * src/usage_text.h
  5085. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5086. Disable http keep-alive if the remote server is not HTTP/1.1.
  5087. * src/HttpConnection.cc
  5088. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5089. Receive content body of 302 response so that the connection can be
  5090. reused later when http keep-alive is enabled.
  5091. * src/HttpNullDownloadCommand.cc
  5092. * src/HttpNullDownloadCommand.h
  5093. * src/HttpResponseCommand.cc
  5094. * src/HttpResponseCommand.h
  5095. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5096. const SharedHandle<Request> -> const SharedHandle<Request>&
  5097. * src/FtpDowndloadCommand.cc
  5098. * src/FtpDowndloadCommand.h
  5099. * src/HttpDownloadCommand.cc
  5100. * src/HttpDownloadCommand.h
  5101. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5102. Fixed the bug that the control file(.aria2 file) is not renamed
  5103. according to tryAutoFileRenaming().
  5104. tryAutoFileRenaming() was rewritten so that if both renamed file and
  5105. its control file exist, use them and continue download.
  5106. The old implementation didn't take into account of control file's
  5107. existence, so basically you couldn't continue download of renamed file.
  5108. * src/BtProgressInfoFile.h
  5109. * src/DefaultBtProgressInfoFile.cc
  5110. * src/DefaultBtProgressInfoFile.h
  5111. * src/NullProgressInfoFile.h
  5112. * src/RequestGroup.cc
  5113. * test/DefaultBtProgressInfoFileTest.cc
  5114. * test/MockBtProgressInfoFile.h
  5115. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5116. Change the default value of --metalink-servers option from `5' to `1'.
  5117. * src/HelpItemFactory.cc
  5118. * src/option_processing.cc
  5119. * src/usage_text.h
  5120. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5121. Reimplemented transparent metalink using Accept request header.
  5122. * src/HttpRequest.cc
  5123. * src/HttpRequest.h
  5124. * src/HttpRequestCommand.cc
  5125. * src/Metalink2RequestGroup.cc
  5126. * src/RequestGroup.cc
  5127. * src/RequestGroup.h
  5128. * test/HttpRequestTest.cc
  5129. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5130. Bump up version number to 0.13.2a
  5131. * configure.ac
  5132. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5133. Updated configure.ac using the result of autoscan.
  5134. * configure.ac
  5135. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5136. Fixed compilation error without gcrypt/openssl.
  5137. * src/DownloadCommand.cc
  5138. * src/DownloadCommand.h
  5139. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5140. Reorganized version information so that it can be displayed in a
  5141. standard terminal screen without scrolling.
  5142. Removed http, ftp from Configuration section, because they are always
  5143. enabled.
  5144. * src/FeatureConfig.cc
  5145. * src/FeatureConfig.h
  5146. * src/main.cc
  5147. * src/messageDigest.cc
  5148. * src/messageDigest.h
  5149. * src/version_usage.cc
  5150. * test/FeatureConfigTest.cc
  5151. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5152. Masked user ID in log.
  5153. * src/FtpConnection.cc (sendUser)
  5154. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5155. Removed query part from filename in HTTP download. The query part means
  5156. the substring after "?" in URL. Firefox seems do the same thing.
  5157. A query part is sometimes very long and not suitable to filename,
  5158. so I think it is better to remove it from filename.
  5159. * src/HttpRequest.cc
  5160. * src/HttpRequest.h
  5161. * src/Request.cc
  5162. * src/Request.h
  5163. * test/HttpRequestTest.cc
  5164. * test/RequestTest.cc
  5165. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5166. Rewritten Exception class. Throw exception object, not its pointer and
  5167. catch by reference, so that remove problematic delete operator for
  5168. catched exception.
  5169. * src/Exception.cc
  5170. * src/Exception.h
  5171. * test/ExceptionTest.cc
  5172. * src/*: All files throwing/catching exception.
  5173. * test/*: All files throwing/catching exception.
  5174. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5175. Now auto protocol detection is enabled without -Z option.
  5176. But there is a important difference between with/without -Z optoin.
  5177. For example, if you type:
  5178. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  5179. then, aria2 interprets there are 3 request groups:
  5180. (1) http://host/file, http://mirror/file <-- multi-source download
  5181. (2) file1.torrent
  5182. (3) file2.metalink
  5183. On the other hand, if you invoke above command with -Z option, it is
  5184. interpreted as 4 request groups:
  5185. (1) http://host/file
  5186. (2) file1.torrent
  5187. (3) file2.metalink
  5188. (4) http://mirror/file
  5189. I think usually user don't mix multi-source URLs and torrent files, so
  5190. there is no big problem here.
  5191. * src/main.cc
  5192. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5193. Fixed the bug that causes segmentaion fault when reading XML containing
  5194. unescapsed character like '&'.
  5195. Also a modification was made which avoids adding unnecessary
  5196. characters stack and appending unused string.
  5197. * src/ExpatMetalinkProcessor.cc
  5198. * src/FileMetalinkParserState.h
  5199. * src/FilesMetalinkParserState.h
  5200. * src/FinMetalinkParserState.h
  5201. * src/HashMetalinkParserState.h
  5202. * src/InitialMetalinkParserState.h
  5203. * src/LanguageMetalinkParserState.h
  5204. * src/MetalinkMetalinkParserState.h
  5205. * src/MetalinkParserState.h
  5206. * src/MetalinkParserStateMachine.cc
  5207. * src/MetalinkParserStateMachine.h
  5208. * src/OSMetalinkParserState.h
  5209. * src/PieceHashMetalinkParserState.h
  5210. * src/PiecesMetalinkParserState.h
  5211. * src/ResourcesMetalinkParserState.h
  5212. * src/SizeMetalinkParserState.h
  5213. * src/SkipTagMetalinkParserState.h
  5214. * src/URLMetalinkParserState.h
  5215. * src/VerificationMetalinkParserState.h
  5216. * src/VersionMetalinkParserState.h
  5217. * src/XML2SAXMetalinkProcessor.cc
  5218. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5219. Added StringFormat class, which internally calls vasprintf.
  5220. operator<< is defined for this class, so it can be used with iostream
  5221. classes nicely. SimpleLogger and following functions are rewritten
  5222. using StringFormat class.
  5223. Besides, now Logger class's methods are non-const, many classes
  5224. that has a const Logger* as a member variable are modified to remove
  5225. const qualifier from the variable declaration.
  5226. * src/HelpItemFactory.cc
  5227. * src/Request.cc
  5228. * src/SimpleLogger.cc
  5229. * src/StringFormat.cc
  5230. * src/StringFormat.h
  5231. * src/Util.cc
  5232. * src/option_processing.cc
  5233. * src/version_usage.cc
  5234. * test/StringFormatTest.cc
  5235. * src/*.h: The classes that has const Logger* as a member variable.
  5236. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5237. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  5238. failed. Also fixed memory link when exception is thrown there.
  5239. * src/main.cc (AccRequestGroup)
  5240. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5241. Added build-in "Accept-Features" support. For now only "metalink" is
  5242. used in this header field.
  5243. This "metalink" value is removed from the list when connecting URLs
  5244. fed by metalink file to avoid loop in "transparent" metlaink.
  5245. * src/HttpRequest.cc
  5246. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  5247. header is also held in this variable. Also renamed setUserHeaders as
  5248. addHeader and it was rewritten to add header not just to clear the old
  5249. value.
  5250. * src/HttpRequestCommand.cc
  5251. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  5252. from "Accept-Features" list.
  5253. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  5254. default.
  5255. * src/RequestGroup.h
  5256. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  5257. * src/a2functional.h: Included <string> because Concat class depends on
  5258. it.
  5259. * test/HttpRequestTest.cc
  5260. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5261. Added comment
  5262. * src/RequestGroup.cc (createNextCommand)
  5263. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5264. Capitalized METHOD_GET and METHOD_HEAD
  5265. * src/Request.cc
  5266. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5267. Added getDownloadResults() method
  5268. * src/RequestGroupMan.cc
  5269. * src/RequestGroupMan.h
  5270. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5271. Fixed the bug that aria2 exits when commands is empty() but
  5272. _routineCommands are not.
  5273. * src/DownloadEngine.cc
  5274. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5275. Use the default value pulled from Option object in HelpItemFactory.
  5276. except options whose defualt value is embedded in a usage text.
  5277. * src/HelpItemFactory.cc
  5278. * src/HelpItemFactory.h
  5279. * src/option_processing.cc
  5280. * src/version_usage.cc
  5281. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5282. Added --quiet option to make aria2 quiet (no console output).
  5283. --quiet option is tagged with ADVANCED.
  5284. * src/HelpItemFactory.cc
  5285. * src/LogFactory.cc
  5286. * src/LogFactory.h
  5287. * src/MultiUrlRequestInfo.cc
  5288. * src/MultiUrlRequestInfo.h
  5289. * src/NullStatCalc.h: New class. This class prints nothing.
  5290. * src/OptionHandlerFactory.cc
  5291. * src/main.cc
  5292. * src/option_processing.cc
  5293. * src/prefs.h
  5294. * src/usage_text.h
  5295. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5296. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  5297. * src/HelpItemFactory.cc (createHelpItems):
  5298. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5299. Fixed compilation error in ExpatMetalinkProcessor.cc
  5300. * src/ExpatMetalinkProcessor.cc
  5301. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5302. Reuse socket if the origin server supports HTTP keep-alive and
  5303. --enable-http-keep-alive or --enable-http-pipelining is given.
  5304. The current implementation doesn't reuse the connections established
  5305. against proxy server.
  5306. * src/AbstractCommand.cc
  5307. * src/DownloadEngine.cc
  5308. * src/DownloadEngine.h
  5309. * src/HttpDownloadCommand.cc
  5310. * src/HttpInitiateConnectionCommand.cc
  5311. * src/HttpResponseCommand.cc
  5312. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5313. Rewritten HTTP keep-alive and pipelining routine.
  5314. * src/AbstractCommand.cc
  5315. * src/HttpConnection.cc
  5316. * src/HttpDownloadCommand.cc
  5317. * src/HttpRequest.cc
  5318. * src/HttpRequestCommand.cc
  5319. * src/HttpResponseCommand.cc
  5320. * src/Request.cc
  5321. * src/Request.h
  5322. * src/RequestGroup.cc
  5323. * test/HttpRequestTest.cc
  5324. * test/HttpResponseTest.cc
  5325. * test/RequestTest.cc
  5326. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5327. Added missing setUserHeaders call
  5328. * src/HttpRequestCommand.cc
  5329. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5330. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  5331. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  5332. waste of time because it is more likey false.
  5333. * src/FileAllocationDispatcherCommand.cc (execute)
  5334. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5335. Now HTTP status and version are a member variable of HttpHeader.
  5336. HTTP status is processed as a string, not integer.
  5337. * src/AbstractProxyResponseCommand.cc
  5338. * src/HttpConnection.cc
  5339. * src/HttpHeader.cc
  5340. * src/HttpHeader.h
  5341. * src/HttpHeaderProcessor.cc
  5342. * src/HttpHeaderProcessor.h
  5343. * src/HttpResponse.cc
  5344. * src/HttpResponse.h
  5345. * test/HttpHeaderProcessorTest.cc
  5346. * test/HttpResponseTest.cc
  5347. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5348. Added --header option. You can specify any number of additional HTTP headers
  5349. like:
  5350. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  5351. Unlike other commad-line option, you can use --header option multiple times.
  5352. * src/HelpItemFactory.cc
  5353. * src/HttpRequest.{cc, h}
  5354. * src/HttpRequestCommand.cc
  5355. * src/OptionHandlerFactory.cc
  5356. * src/OptionHandlerImpl.h
  5357. * src/option_processing.cc
  5358. * src/prefs.h
  5359. * src/usage_text.h
  5360. * test/HttpRequestTest.cc (testUserHeaders)
  5361. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5362. Eliminates the time lag between sequential downloads and commands in
  5363. the same RequestGroup.
  5364. In old implementation, aria2 occasionally waits 1 seconds before
  5365. executing next command or RequestGroup.
  5366. This is really a waste of time, and new implementation eliminates
  5367. this unnecessary time lag.
  5368. * src/AbstractCommand.cc
  5369. * src/AutoSaveCommand.cc
  5370. * src/CheckIntegrityCommand.cc
  5371. * src/Command.{cc, h}
  5372. * src/DownloadEngine.{cc, h}
  5373. * src/DownloadEngineFactory.cc
  5374. * src/FileAllocationCommand.cc
  5375. * src/FileAllocationDispatcherCommand.cc
  5376. * src/FillRequestGroupCommand.cc
  5377. * src/FtpInitiateConnectionCommand.cc
  5378. * src/HaveEraseCommand.cc
  5379. * src/HttpInitiateConnectionCommand.cc
  5380. * src/HttpResponseCommand.cc
  5381. * src/RealtimeCommand.cc
  5382. * src/RequestGroup.cc
  5383. * src/RequestGroupMan.cc
  5384. * src/StreamFileAllocationEntry.cc
  5385. * src/TimeBasedCommand.{cc, h}
  5386. * src/TimedHaltCommand.cc
  5387. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5388. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  5389. keyword explicit and SharedHandle's default constructor initializes
  5390. its internal obj to null, old implementation initializes it using
  5391. obj's default constructor.
  5392. To assign null, write SharedHandle<T> x(...); x.reset();
  5393. TODO: test/SharedHandleTest.cc needs more tests.
  5394. * src/SharedHandle.h
  5395. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5396. Fixed type in man page.
  5397. * doc/aria2c.1.txt
  5398. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5399. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  5400. * src/SimpleLogger.{cc, h}
  5401. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5402. Implemented auto protocol detection.
  5403. Now you can do:
  5404. aria2c -Z http://host/file file1.torrent file2.metalink
  5405. (Note: -Z option is required for auto protcol detection.)
  5406. Then aria2c downloads 3 files simultaneously:
  5407. 1. http://host/file
  5408. 2. file1.torrent <-- read local torrent file
  5409. 3. file2.metalink <-- read local Metalink file.
  5410. Same thing goes with -i option. Assume your uris.txt contans:
  5411. http://host/file
  5412. file1.torrent
  5413. file2.metalink
  5414. Then you can do: aria2c -i uris.txt
  5415. (Note: -Z option is not needed if -i option is given.)
  5416. * src/main.cc
  5417. * src/ProtocolDetector.{cc, h}
  5418. * test/ProtocolDetectorTest.cc
  5419. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5420. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  5421. installed
  5422. * src/ARC4Encryptor.h
  5423. * src/ARC4Decryptor.h
  5424. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5425. Renamed argument from 'errno' to 'err', since errno is confused with
  5426. errno defined in errno.h.
  5427. * src/LibgcryptARC4Decryptor.h
  5428. * src/LibgcryptARC4Context.h
  5429. * src/LibgcryptDHKeyExchange.h
  5430. * src/LibgcryptARC4Encryptor.h
  5431. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5432. Rewritten choking algorithm.
  5433. * src/PeerChokeCommand.{cc, h}
  5434. * src/BtInterestedMessage.cc
  5435. * src/PeerSessionResource.{cc, h}
  5436. * src/DefaultPeerStorage.{cc, h}
  5437. * src/BtNotInterestedMessage.cc
  5438. * src/DefaultBtMessageDispatcher.{cc, h}
  5439. * src/BtMessageDispatcher.h
  5440. * src/Peer.{cc, h}
  5441. * src/BtLeecherStateChoke.{cc, h}
  5442. * src/BtSetup.cc
  5443. * src/BtSeederStateChoke.{cc, h}
  5444. * src/PeerStorage.h
  5445. * test/MockPeerStorage.h
  5446. * test/MockBtMessageDispatcher.h
  5447. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5448. Fixed compilation error on x84-64 platform.
  5449. * src/AuthConfig.cc: Included ostream.
  5450. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5451. Rewritten getBasename() and getDirname(), without standard library
  5452. basename(), dirname().
  5453. * src/File.cc
  5454. * test/FileTest.cc
  5455. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5456. Added Simplified Chinese translation. Also updated the following
  5457. translations: Polish, Dutch, German. Great thanks to all translators.
  5458. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5459. Suppress content-range error when 'Content-Range' response header
  5460. doesn't contains bytes-unit specifier 'bytes'
  5461. * src/HttpHeader.cc (getRange)
  5462. * test/HttpHeaderTest.cc
  5463. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5464. Fixed compilation error with g++-4.3
  5465. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5466. Added missing include files for MinGW
  5467. * test/HttpHeaderProcessorTest.cc
  5468. * test/DHTRoutingTableSerializerTest.cc
  5469. * test/DHTRoutingTableDeserializerTest.cc
  5470. * test/UriListParserTest.cc
  5471. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5472. Now download line is printed nicely with no garbage at the end of
  5473. line. I use ioctl to get the columns of terminal.
  5474. If stdout is redirected to another device, instead of carriage return,
  5475. end of line '\n' character is used. This is feature request#1909659
  5476. * src/ConsoleStatCalc.cc (calculateStat)
  5477. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5478. Included a2time.h
  5479. * src/DHTMessageDispatcher.h
  5480. * src/DHTMessageEntry.h
  5481. * src/DHTReplaceNodeTask.h
  5482. * src/DHTMessageTracker.h
  5483. * src/Util.h
  5484. * src/CookieBox.h
  5485. * src/SocketCore.h
  5486. * src/DefaultBtMessageDispatcher.h
  5487. * src/SocketCore.cc
  5488. * src/Util.cc
  5489. * src/DHTPingTask.h
  5490. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5491. Fixed high memory footprint when DHT is enabled.
  5492. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  5493. queued than it is processed and the queue is getting longer. As a
  5494. consequence, momory usage is increased.
  5495. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  5496. replacement cache in DHTBucket which is described in Kademlia paper.
  5497. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  5498. DHTReplaceNodeTask.
  5499. * src/DHTBucket.{h, cc}
  5500. (cacheNode): New function.
  5501. (getCachedNodes): New function.
  5502. (dropNode): Push back cached node to _nodes.
  5503. * test/DHTBucketTest.cc
  5504. (testCacheNode): New test
  5505. (testDropNode): New test
  5506. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5507. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  5508. the unused 4KB memory when ssl is not used.
  5509. * src/SocketCore.cc
  5510. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5511. Added summary log for peer announce storage.
  5512. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  5513. Removed cast
  5514. * src/DefaultPeerStorage.cc (addPeer)
  5515. Log exception message
  5516. * src/DHTMessageTracker.cc (handleTimeout)
  5517. Fixed casting
  5518. * test/HttpRequestTest.cc
  5519. * test/MetalinkProcessorTest.cc
  5520. * test/PieceTest.cc
  5521. * test/MetalinkEntryTest.cc
  5522. * test/SequenceTest.cc
  5523. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5524. * src/ParameterizedStringParser.cc (createLoop):
  5525. Removed unused variable sstep.
  5526. * src/AlphaNumberDecorator.h (decode): Rewritten.
  5527. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5528. * src/Util.{h, cc}
  5529. (parseUInt): New function.
  5530. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  5531. The actual range is uint32_t.
  5532. * test/UtilTest.cc
  5533. * src/ParameterizedStringParser.cc:
  5534. Use Util::parseUInt() for loop variables.
  5535. * test/ParameterizedStringParserTest.cc
  5536. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  5537. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5538. Rewritten the functions for binding port.
  5539. * src/DHTConnectionImpl.{h, cc}
  5540. * src/PeerListenCommand.{h, cc}
  5541. * src/DHTSetup.cc
  5542. * src/BtSetup.cc
  5543. * test/DHTConnectionImplTest.cc
  5544. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5545. type cleanup for allmost all remaining files.
  5546. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5547. Type clarification
  5548. * src/PeerSessionResource.{h, cc}
  5549. * src/DefaultPieceStorage.{h, cc}
  5550. * src/Peer.{h, cc}
  5551. * test/PeerSessionResourceTest.cc
  5552. Use div function
  5553. * src/BtPieceMessage.cc (erasePieceOnDisk)
  5554. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5555. Type clarification
  5556. * src/DefaultPeerStorage.{h, cc}
  5557. * test/DefaultPeerStorageTest.cc
  5558. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5559. Type clarification: size_t for length or size, uint64_t for file
  5560. length, off_t for file offset.
  5561. * src/DefaultBtProgressInfoFile.cc
  5562. * src/DefaultBtContext.{h, cc}
  5563. * src/DefaultBtInteractive.cc
  5564. * src/DownloadCommand.{h, cc}
  5565. * src/IteratableChunkChecksumValidator.{h, cc}
  5566. * src/SegmentMan.{h, cc}
  5567. * src/SingleFileDownloadContext.{h, cc}
  5568. * src/IteratableChecksumValidator.{h, cc}
  5569. * src/BtContext.h
  5570. * src/IteratableValidator.h
  5571. * src/DownloadContext.h
  5572. * test/SingleFileDownloadContextTest.cc
  5573. * test/DefaultBtContextTest.cc
  5574. * test/MockBtContext.h
  5575. * test/Metalink2RequestGroupTest.cc
  5576. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5577. Type clarification: size_t for length or size, uint64_t for file
  5578. length, off_t for file offset.
  5579. * src/PiecedSegment.cc
  5580. * src/GrowSegment.h
  5581. * src/DefaultBtRequestFactory.h
  5582. * src/DefaultBtProgressInfoFile.cc
  5583. * src/UnknownLengthPieceStorage.h
  5584. * src/DefaultPieceStorage.cc
  5585. * src/UnknownLengthPieceStorage.cc
  5586. * src/DefaultBtInteractive.cc
  5587. * src/GrowSegment.cc
  5588. * src/BitfieldMan.h
  5589. * src/DownloadCommand.cc
  5590. * src/BtRequestFactory.h
  5591. * src/PiecedSegment.h
  5592. * src/DefaultPieceStorage.h
  5593. * src/Piece.cc
  5594. * src/DefaultBtRequestFactory.cc
  5595. * src/PieceStorage.h
  5596. * src/Segment.h
  5597. * src/Piece.h
  5598. * src/BitfieldMan.cc
  5599. * src/Util.cc
  5600. * test/DefaultBtProgressInfoFileTest.cc
  5601. * test/DefaultPieceStorageTest.cc
  5602. * test/MockPieceStorage.h
  5603. * test/BtRequestMessageTest.cc
  5604. * test/DefaultBtMessageDispatcherTest.cc
  5605. * test/BitfieldManTest.cc
  5606. * test/GrowSegmentTest.cc
  5607. * test/PieceTest.cc
  5608. * test/SegmentTest.cc
  5609. * test/SegmentManTest.cc
  5610. * test/DefaultBtRequestFactoryTest.cc
  5611. * test/MockBtRequestFactory.h
  5612. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5613. Fixed compilation error with --disable-nls
  5614. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  5615. in gettext.h causes the problem.
  5616. * src/common.h
  5617. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5618. Removed subPiece related functions.
  5619. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  5620. * src/DefaultPieceStorage.{h, cc}
  5621. * test/PieceTest.cc
  5622. * test/DefaultPieceStorageTest.cc
  5623. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5624. Use unsigned char for data store.
  5625. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5626. Bump up version number to 0.13.0+1
  5627. * configure.ac
  5628. * Release 0.13.0+1
  5629. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5630. Changed inactive connection timeout to 120.
  5631. To accept more mulually interested peers, disconnect peer when there
  5632. is no interest between us after certain time passed.
  5633. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  5634. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5635. Fixed the bug that aria2 only uses first dns server in resolv.conf
  5636. when compiled with async DNS support.
  5637. * src/DownloadEngine.cc
  5638. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  5639. value '10' will be a little bit short when some DNS servers are
  5640. offline and several DNS servers are tried. It should be configured
  5641. by command-line option.
  5642. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5643. Merged Ross's mingw patch.
  5644. * src/DHTRoutingTableDeserializer.cc
  5645. * src/DHTRoutingTableSerializer.cc
  5646. * src/Platform.{h, cc}
  5647. * src/timegm.h
  5648. * src/gettimeofday.h
  5649. * src/getaddrinfo.h
  5650. * src/SocketCore.h
  5651. * src/common.h
  5652. * src/inet_aton.h
  5653. * src/DownloadEngine.h
  5654. * src/gai_strerror.h
  5655. * src/a2netcompat.h
  5656. * configure.ac
  5657. * configure
  5658. * aclocal.m4
  5659. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5660. Included missing iostream.
  5661. * test/AllTest.cc
  5662. * test/BtDependencyTest.cc
  5663. * test/BtExtendedMessageTest.cc
  5664. * test/DHTConnectionImplTest.cc
  5665. * test/DHTMessageFactoryImplTest.cc
  5666. * test/DHTMessageTrackerEntryTest.cc
  5667. * test/DHTNodeTest.cc
  5668. * test/DHTRoutingTableSerializerTest.cc
  5669. * test/DefaultBtAnnounceTest.cc
  5670. * test/DefaultBtContextTest.cc
  5671. * test/DefaultBtMessageFactoryTest.cc
  5672. * test/DefaultExtensionMessageFactoryTest.cc
  5673. * test/HandshakeExtensionMessageTest.cc
  5674. * test/HttpResponseTest.cc
  5675. * test/MetalinkProcessorTest.cc
  5676. * test/MultiFileAllocationIteratorTest.cc
  5677. * test/SocketCoreTest.cc
  5678. * test/UTPexExtensionMessageTest.cc
  5679. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5680. Reorganized includes.
  5681. * src/NameResolver.cc
  5682. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5683. Fixed compilation error without ares/c-ares
  5684. * src/NameResolver.h:
  5685. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5686. Added a test for large file.
  5687. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  5688. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5689. Fixed the bug that file size is ignored if size > INT32_MAX
  5690. * src/SizeMetalinkParserState.cc (endElement):
  5691. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5692. Bump up version number to 0.13.0
  5693. * configure.ac
  5694. * Release 0.13.0
  5695. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5696. Updated Makfefile.am to make 'make dist' work.
  5697. Now packaged filename is aria2c-VERSION.tar.bz2.
  5698. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  5699. Added LICENSE.OpenSSL to dist_noinst_DATA.
  5700. Large file support is now configured by configure script.
  5701. * configure.ac
  5702. Removed unsused source files
  5703. * src/
  5704. * test/
  5705. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  5706. Peer.h and BtContext.h respectively.
  5707. * src/Peer.h
  5708. * src/BtContext.h
  5709. Updated translations.
  5710. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  5711. translations. Great thanks to all translators!;)
  5712. * po/*.{po, gmo}
  5713. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5714. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  5715. statically declared sha1 MessageDigestContext.
  5716. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  5717. initialization of short-lived MessageDigestContext.
  5718. * src/MessageDigestHelper.{h, cc}
  5719. * src/main.cc
  5720. Now DownloadCommand has a reference to MessageDigestContext to avoid
  5721. the initialization of MessageDigestContext every time in validating
  5722. chunk checksum.
  5723. * src/DownloadCommand.{h, cc}
  5724. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5725. Add a file descriptor which connected to fast peer(latency<1500) to
  5726. select(). This change reduced CPU load.
  5727. * src/PeerInteractionCommand.cc
  5728. * src/DefaultBtInteractive.{h, cc}
  5729. * src/BtInteractive.h
  5730. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5731. Fixed the previous insufficient fix for possible busy loop.
  5732. * src/MSEHandshake.cc (identifyHandshakeType)
  5733. Removed unused functions.
  5734. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  5735. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5736. Fixed possible busy loop if first 20 bytes are not received for a few
  5737. minutes.
  5738. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  5739. * src/ReceiverMSEHandshakeCommand.cc
  5740. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5741. Fixed compilation error
  5742. * src/ExpatMetalinkProcessor.cc
  5743. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5744. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  5745. * src/DHTBucket.cc
  5746. Removed unnecessary cast.
  5747. * src/HandshakeExtensionMessage.cc
  5748. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5749. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  5750. is missing.
  5751. * src/OptionHandlerFactory.cc
  5752. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5753. Fixed the bug that HAVE message is not sent for a piece they are
  5754. downloaded fom http/ftp server before any BitTorrent handshake is done
  5755. with peers.
  5756. * src/DefaultBtInteractive.cc
  5757. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5758. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  5759. * src/Makefile.am
  5760. * src/Makefile.in
  5761. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5762. Updated README. Added html version of README and man page.
  5763. * README
  5764. * README.html
  5765. * readme2html: Shell script to generate README.html from README using
  5766. asciidoc.
  5767. * doc/aria2c.1.html
  5768. * doc/makeman: Added the line to generate aria2c.1.html
  5769. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5770. Fixed offset calculation.
  5771. * src/LibgcryptDHKeyExchange.h (computeSecret)
  5772. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5773. Rewritten itos and uitos using template. llitos and ullitos are
  5774. replaced with itos and uitos respectively.
  5775. * src/Util.{h, cc}
  5776. * test/UtilTest.cc
  5777. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5778. Fixed the bug that DH key exchange sometimes fails due to bad handling
  5779. of the number of bytes required for storing public key and shared
  5780. secret.
  5781. * src/LibgcryptDHKeyExchange.h
  5782. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  5783. * src/MSEHandshake.cc
  5784. * test/DHKeyExchangeTest.cc
  5785. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5786. Removed since they are not used.
  5787. * src/Xml2MetalinkProcessor.{h, cc}
  5788. * src/Socket.cc
  5789. * src/SegmentSplitter.{h, cc}
  5790. * test/Xml2MetalinkProcessorTest.cc
  5791. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5792. Fixed the bug that prevents aria2 from stopping other than by pressing
  5793. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  5794. option. aria2 doesn't stop even after --seed-time is satisfied and
  5795. continues to output blank lines in the console.
  5796. * src/ReceiverMSEHandshakeCommand.cc
  5797. * src/PeerReceiveHandshakeCommand.cc
  5798. * src/PeerListenCommand.cc
  5799. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5800. Bump up version number to 0.13.0rc
  5801. * configure.ac
  5802. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5803. Updated man page and some usage text.
  5804. * doc/aria2c.1.txt
  5805. * src/usage_text.h
  5806. * po/*.{po, gmo}
  5807. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5808. Updated translations. Added Finnish and Hebrew translations.
  5809. Great thanks to all translators!
  5810. * po/*.{po, gmo}
  5811. * po/LINGUAS
  5812. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5813. Log more detailed information about each message.
  5814. * src/DHTQueryMessage.{h, cc}
  5815. * src/DHTGetPeersMessage.{h, cc}
  5816. * src/DHTFindNodeReplyMessage.{h, cc}
  5817. * src/DHTGetPeersReplyMessage.{h, cc}
  5818. * src/DHTAnnouncePeerMessage.{h, cc}
  5819. * src/DHTResponseMessage.{h, cc}
  5820. * src/DHTFindNodeMessage.{h, cc}
  5821. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5822. Use constants defined in prefs.h
  5823. * src/option_processing.cc
  5824. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5825. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  5826. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5827. Make room for future enchancements for IPv6 addresses.
  5828. Bump up version number of dht.dat file format to 2.
  5829. Not compatible with previous version.
  5830. * src/DHTRoutingTableSerializer.cc
  5831. * src/DHTRoutingTableDeserializer.cc
  5832. * test/DHTRoutingTableSerializerTest.cc
  5833. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5834. Added handling for the return values from
  5835. PeerMessageUtil::createcompact().
  5836. * src/DefaultBtContext.cc (computeFastSet):
  5837. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5838. Fixed abort when peer's ip address is IPv4-mapped address.
  5839. * src/DefaultBtContext.cc (computeFastSet)
  5840. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  5841. cannot handle IPv4-mapped addresses.
  5842. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  5843. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5844. Proper return value handling for OpenSSL functions.
  5845. * src/LibsslDHKeyExchange.h
  5846. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5847. Random bytes generation using libgcrypt and OpenSSL.
  5848. * src/DHTUtil.{h, cc}
  5849. * test/DHTUtilTest.cc
  5850. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5851. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  5852. received.
  5853. * src/DHTMessageReceiver.cc (receiveMessage)
  5854. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5855. Fixed the bug that a return code is always 0. BUG#1897704
  5856. If error occurred during the download or there exist unfinished
  5857. downloads, aria2 returns with code 1.
  5858. * src/RequestGroupMan.{h, cc}
  5859. * src/MultiUrlRequestInfo.{h, cc}
  5860. * src/main.cc
  5861. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5862. IPv6 support for SocketCore class.
  5863. TODO: In SocketCore::establishConnection(), this is insufficient to
  5864. determin the failure of connect() here because the socket is
  5865. non-blocking state. The next addresses should be tried after select().
  5866. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  5867. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  5868. instead which address family independent.
  5869. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  5870. information in a compact peer format which is for IPv4 only.
  5871. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  5872. this is a spec of BitTorrent protocol.
  5873. * src/SocketCore.{h, cc}
  5874. * src/PeerMessageUtil.cc
  5875. * test/SocketCoreTest.cc
  5876. * test/PeerMessageUtilTest.cc
  5877. * test/DHTConnectionImplTest.cc
  5878. Handle IPv4-mapped addresses.
  5879. * src/DHTNode.cc: Now identity is determined by node id.
  5880. * src/DHTMessageTrackerEntry.cc
  5881. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  5882. should handle it.
  5883. * src/DHTRoutingTableDeserializer.cc
  5884. * src/DHTMessageFactoryImpl.cc
  5885. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5886. Change the unit of --stop option from a minute to a second.
  5887. * src/usage_text.h
  5888. * src/DownloadEngineFactory.cc
  5889. * src/OptionHandlerFactory.cc
  5890. * src/message.h
  5891. * src/TimedHaltCommand.cc
  5892. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5893. Make listening socket non-block mode.
  5894. * src/FtpConnection.cc
  5895. * src/FtpNegotiationCommand.{h, cc}
  5896. * src/PeerListenCommand.cc
  5897. Fixed the bug that cause slow ftp negotiation.
  5898. * src/FtpNegotiationCommand.{h, cc}
  5899. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5900. Added basic tag to --enable-dht, --dht-listen-port option.
  5901. * src/HelpItemFactory.cc (createHelpItems)
  5902. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5903. Updated text.
  5904. * src/usage_text.h
  5905. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5906. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  5907. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5908. Determin _threadtholdSpeed in each constructor for
  5909. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  5910. * src/ActivePeerConnectionCommand.{h, cc}
  5911. * src/PeerReceiveHandshakeCommand.{h, cc}
  5912. * src/BtSetup.cc
  5913. * src/BtConstants.h
  5914. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5915. Added --bt-min-crypto-level and --bt-require-crypto options.
  5916. * src/OptionHandlerFactory.cc
  5917. * src/MSEHandshake.cc
  5918. * src/HelpItemFactory.cc
  5919. * src/option_processing.cc
  5920. * src/ReceiverMSEHandshakeCommand.cc
  5921. * src/prefs.h
  5922. * src/DefaultBtAnnounce.cc
  5923. * src/InitiatorMSEHandshakeCommand.cc
  5924. * src/usage_text.h
  5925. * test/MSEHandshakeTest.cc
  5926. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5927. Bump version number to 0.13.0b
  5928. * configure.ac
  5929. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5930. Updated doc.
  5931. * src/MessageDigestHelper.h:
  5932. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5933. Use raw message digest as a token instead of its hexadecimal
  5934. representation.
  5935. * src/DHTTokenTracker.cc (generateToken)
  5936. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5937. Added Message Stream Encryption(MSE) support.
  5938. Currently, aria2 accepts incoming connections with Obfuscation Header
  5939. and legacy BitTorrent Header and establishes connections with
  5940. Obfuscation Header first and if failed then retry with legacy
  5941. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  5942. choose ARC4. The new option to change the default behavior is planned.
  5943. For tracker extension, "supportcrypto=1" is added statically.
  5944. * src/PeerInitiateConnectionCommand.{h, cc}
  5945. * src/PeerConnection.{h, cc}
  5946. * src/HandleRegistry.h
  5947. * src/SocketCore.h
  5948. * src/PeerReceiveHandshakeCommand.{h, cc}
  5949. * src/BtRegistry.{h, cc}
  5950. * src/PeerListenCommand.cc
  5951. * src/InitiatorMSEHandshakeCommand.{h, cc}
  5952. * src/ReceiverMSEHandshakeCommand.{h, cc}
  5953. * src/MSEHandshake.{h, cc}
  5954. * src/ARC4Encryptor.h
  5955. * src/ARC4Decryptor.h
  5956. * src/LibgcryptARC4Encryptor.h
  5957. * src/LibgcryptARC4Decryptor.h
  5958. * src/LibgcryptARC4Context.h
  5959. * src/LibsslARC4Encryptor.h
  5960. * src/LibsslARC4Decryptor.h
  5961. * src/LibsslARC4Context.h
  5962. * src/DHKeyExchange.h
  5963. * src/LibgcryptDHKeyExchange.h
  5964. * src/LibsslDHKeyExchange.h
  5965. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  5966. * test/DefaultBtAnnounceTest.cc
  5967. * test/ARC4Test.cc
  5968. * test/DHKeyExchangeTest.cc
  5969. Removed prepareForRetry() because it is not used.
  5970. * src/PeerAbstractCommand.{h, cc}
  5971. * src/PeerInteractionCommand.{h, cc}
  5972. * src/PeerInitiateConnectionCommand.{h, cc}
  5973. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5974. Added the ability to load nodes from torrent file. These nodes are
  5975. added to the routing table when downloading that torrent.
  5976. * src/BtContext.h
  5977. * src/DefaultBtContext.{h, cc}
  5978. * src/DHTSetup.cc
  5979. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  5980. hostname and port pair, and resolves all of them.
  5981. * src/NameResolver.{h, cc}: Added reset().
  5982. * src/RequestGroup.cc
  5983. * test/DefaultBtContextTest.cc
  5984. * test/MockBtContext.h
  5985. Removed assert() from DefaultBtContext and throw exception instead.
  5986. * src/DefaultBtContext.cc
  5987. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5988. Fixed segmentation fault bug when exiting if dht is disabled.
  5989. * src/RequestGroup.cc
  5990. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5991. Fixed typo in log message and define the message in message.h
  5992. * src/TimedHaltCommand.cc
  5993. * src/message.h
  5994. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5995. Included RecoverableException.h to fix compilation error.
  5996. * test/DHTMessageFactoryImplTest.cc
  5997. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5998. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  5999. * test/DHTPingMessageTest.cc
  6000. * test/DHTGetPeersMessageTest.cc
  6001. * test/DHTFindNodeMessageTest.cc
  6002. * test/DHTAnnouncePeerMessageTest.cc
  6003. * test/MockDHTMessage.h
  6004. * test/MockDHTMessageFactory.h
  6005. * test/MockDHTMessageDispatcher.h: New class.
  6006. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6007. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  6008. virtual.
  6009. * src/DHTMessageDispatcher.h
  6010. * src/DHTMessageDispatcherImpl.{h, cc}
  6011. * src/DHTSetup.cc
  6012. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6013. Adding handling of DHT error message. Just log error message and
  6014. throw exception.
  6015. * src/DHTMessageFactoryImpl.cc
  6016. * test/DHTMessageFactoryImplTest.cc
  6017. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6018. Added handling of dynamic cast failure.
  6019. * src/DHTNodeLookupTask.cc
  6020. * src/DHTPeerLookupTask.cc
  6021. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6022. Added the ability to stop aria2 itself when given time has passed
  6023. from start. Use --stop option to specify time in minutes.
  6024. When 0 is given, this feature is disabled.
  6025. * src/OptionHandlerFactory.cc
  6026. * src/TimeBasedCommand.h: Make _interval protected scope.
  6027. * src/HelpItemFactory.cc
  6028. * src/option_processing.cc
  6029. * src/prefs.h
  6030. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  6031. before calling RequestGroupMan::fillRequestGroupFromReserver().
  6032. Without this modification, the result list shows "ERR" when aria2 is
  6033. stopped by --stop option. It should be "INPR".
  6034. * src/DownloadEngine.{h, cc}
  6035. * src/DownloadEngineFactory.cc
  6036. * src/usage_text.h
  6037. * src/TimedHaltCommand.{h, cc}: New class.
  6038. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6039. Bootstrap through node added by port message.
  6040. Currently bootstrap is executed if the number of buckets in routing
  6041. table is 1.
  6042. * src/BtPortMessage.{h, cc}
  6043. * src/DefaultBtMessageFactory.{h, cc}
  6044. * src/PeerInteractionCommand.cc
  6045. * test/BtPortMessageTest.cc
  6046. * test/MockDHTTask.h
  6047. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6048. Extract the Peer class's member variables, which are only needed after
  6049. PeerInteractionCommand, into PeerSessionResource class.
  6050. This class is instantiated in PeerInteractionCommand class's ctor and
  6051. released in its dtor.
  6052. This will make Peer class lightweight and uses less memory for peers
  6053. which are not connected and wait in the queue.
  6054. * src/PeerChokeCommand.cc
  6055. * src/PeerSessionResource.{h, cc}
  6056. * src/PeerInteractionCommand.cc
  6057. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  6058. * src/DefaultBtInteractive.cc
  6059. * src/BtPieceMessage.cc
  6060. * src/BtInterestedMessage.cc
  6061. * src/BtUnchokeMessage.cc
  6062. * src/DefaultPeerStorage.{h, cc}
  6063. * src/PeerInitiateConnectionCommand.cc
  6064. * src/ActivePeerConnectionCommand.cc
  6065. * src/BtNotInterestedMessage.cc
  6066. * src/DefaultBtMessageDispatcher.cc
  6067. * src/BtChokeMessage.cc
  6068. * src/BtRequestMessage.cc
  6069. * src/Peer.{h, cc}
  6070. * src/BtRegistry.h
  6071. * src/TrackerWatcherCommand.cc
  6072. * src/PeerReceiveHandshakeCommand.cc
  6073. * test/BtExtendedMessageTest.cc
  6074. * test/BtAllowedFastMessageTest.cc
  6075. * test/BtCancelMessageTest.cc
  6076. * test/DefaultPieceStorageTest.cc
  6077. * test/BtBitfieldMessageTest.cc
  6078. * test/BtHaveMessageTest.cc
  6079. * test/BtNotInterestedMessageTest.cc
  6080. * test/BtRequestMessageTest.cc
  6081. * test/PeerSessionResourceTest.cc
  6082. * test/DefaultBtMessageDispatcherTest.cc
  6083. * test/PeerTest.cc
  6084. * test/BtInterestedMessageTest.cc
  6085. * test/BtRejectMessageTest.cc
  6086. * test/BtChokeMessageTest.cc
  6087. * test/DefaultPeerStorageTest.cc
  6088. * test/BtHaveNoneMessageTest.cc
  6089. * test/BtHaveAllMessageTest.cc
  6090. * test/DefaultExtensionMessageFactoryTest.cc
  6091. * test/BtUnchokeMessageTest.cc
  6092. * test/DefaultBtMessageFactoryTest.cc
  6093. * test/HandshakeExtensionMessageTest.cc
  6094. * test/UTPexExtensionMessageTest.cc
  6095. * test/DefaultBtRequestFactoryTest.cc
  6096. * test/BtPieceMessageTest.cc
  6097. Removed typedef PeerStats.
  6098. * src/PeerStat.h
  6099. * src/SegmentMan.cc
  6100. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6101. Added std namespace to copy, remove_copy, back_inserter,
  6102. front_inserter.
  6103. * src/RequestGroupMan.cc
  6104. * src/DefaultPieceStorage.cc
  6105. * src/StreamFileAllocationEntry.cc
  6106. * src/BtFileAllocationEntry.cc
  6107. * src/RequestGroup.cc
  6108. * src/MetalinkEntry.cc
  6109. * src/DelegatingPeerListProcessor.cc
  6110. * src/DefaultBtRequestFactory.cc
  6111. * src/DefaultBtMessageDispatcher.cc
  6112. * src/version_usage.cc: Included <algorithm>
  6113. * src/main.cc
  6114. * src/MetalinkParserController.cc
  6115. * src/DefaultBtContext.cc
  6116. * src/DownloadEngineFactory.cc
  6117. * src/a2algo.h
  6118. Removed.
  6119. * test/StreamUriListParserTest.cc
  6120. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6121. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  6122. ActivePeerConnectionCommand when it is given and
  6123. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  6124. * src/ActivePeerConnectionCommand.{h, cc}
  6125. * src/BtSetup.cc
  6126. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6127. Only add socket to DownloadEngine's select routine when peer or
  6128. localhost is unchoked and interested. This lowers CPU usage a
  6129. little bit.
  6130. * src/PeerInteractionCommand.cc
  6131. * src/PeerAbstractCommand.{h, cc}
  6132. * src/BtInteractive.h
  6133. * src/DefaultBtInteractive.{h, cc}
  6134. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6135. Revert previous change because get_peers message is needed for
  6136. announce_peer anyway.
  6137. * src/DHTGetPeersCommand.cc
  6138. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6139. Request peers thought DHT only when download hasn't finished.
  6140. * src/DHTGetPeersCommand.cc
  6141. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6142. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  6143. * src/DHTBucketRefreshTask.{h, cc}
  6144. * src/DHTSetup.cc
  6145. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6146. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  6147. standard classes.
  6148. Included string.h where mem* function are used.
  6149. Added namespace aria2.
  6150. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6151. Create directory before saving DHT routing table.
  6152. Now ios::failure is now handled properly.
  6153. * src/DHTAutoSaveCommand.cc
  6154. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6155. Removed unnecessary cerr.
  6156. * src/DownloadEngine.cc
  6157. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6158. Catch exception inside DHTMessageReceiver::receiveMessage().
  6159. Log unknown message.
  6160. * src/DHTMessageReceiver.{h, cc}
  6161. * src/DHTMessageFactory.h
  6162. * src/DHTMessageFactoryImpl.{h, cc}
  6163. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  6164. * src/DHTInteractionCommand.cc
  6165. * src/DHTUnknownMessage.{h, cc}
  6166. * test/DHTUnknownMessageTest.cc
  6167. * test/MockDHTMessageFactory.h
  6168. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6169. Commented out ip address comparison because a host can have multiple
  6170. ip addresses and it is hard to predict the hostname is resolved into
  6171. which one.
  6172. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  6173. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6174. * po/Makefile.in: Removed since this is generated by configure.
  6175. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6176. Fixed compiler warning about redefinition of SIZE_MAX.
  6177. Use common.h instead of config.h directly here.
  6178. * src/Platform.{h, cc}
  6179. The check of ENABLE_NLS is made in gettext.h, so it is not required
  6180. here.
  6181. * common.h
  6182. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  6183. Updated gettext related files.
  6184. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  6185. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  6186. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6187. Added DHT functionality, compatible with mainline.
  6188. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  6189. You may need to specify entry point to DHT network using
  6190. --dht-entry-point. DHT uses UDP port to listen incoming message.
  6191. Use --dht-listen-port to specify port number. Make sure that your
  6192. firewall configuration can pass through UDP traffic to the port.
  6193. The routing table is saved in $HOME/.aria2/dht.dat.
  6194. * src/DHT*
  6195. * src/BNode.{h, cc}
  6196. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  6197. particular torrent.
  6198. * src/Data.cc: Rewritten ctor.
  6199. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  6200. --dht-entry-point.
  6201. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  6202. * src/RequestGroup.cc: Initialize DHT functionality. When download
  6203. ends, remove BtContext from DHTPeerAnnounceStorage.
  6204. * src/BtPortMessage.{h, cc}: Rewritten.
  6205. * src/message.h
  6206. * src/OptionHandlerImpl.cc
  6207. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  6208. --dht-entry-point.
  6209. * src/Dictionary.{h, cc} (remove): New function.
  6210. * src/prefs.h
  6211. * src/DefaultBtMessageFactory.h
  6212. * src/BtHandshakeMessage.cc
  6213. * src/ActivePeerConnectionCommand.cc
  6214. * src/SocketCore.{h, cc}: Added datagram socket support.
  6215. * src/DefaultBtMessageFactory.cc
  6216. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  6217. Create DHT commands.
  6218. * src/BtMessageFactory.h
  6219. * src/PeerMessageUtil.{h, cc}
  6220. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6221. Fixed the bug that log file is not written when configuration file doesn't exist.
  6222. This is caused by using Logger class before LogFactory is not configured.
  6223. BUG #1875079
  6224. * src/option_processing.cc
  6225. Warning message "configuration doesn't exist" is only printed when --conf is
  6226. given.
  6227. * src/option_processing.cc
  6228. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6229. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  6230. ShaVisitor is now deprecated and slated to be removed.
  6231. * src/DefaultBtContext.cc
  6232. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6233. Externalize message to message.h
  6234. * src/Platform.cc
  6235. * src/message.h
  6236. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6237. Set default domain and default path to cookie.
  6238. * src/HttpResponse.cc
  6239. * src/CookieBox.{h, cc}
  6240. * src/CookieParser.{h, cc}
  6241. * test/CookieParserTest.cc
  6242. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6243. Added --no-conf and --conf-path command-line option.
  6244. --no-conf option disables loading aria2.conf file.
  6245. --conf-path option changes the configuration file path. The default
  6246. file path is $HOME/.aria2/aria2.conf
  6247. Added a warning message when the configuration file is not found.
  6248. * src/HelpItemFactory.cc
  6249. * src/option_processing.cc
  6250. * src/prefs.h
  6251. * src/usage_text.h
  6252. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6253. Added the message to inform users that other help categories are
  6254. available in -h option.
  6255. * src/version_usage.cc
  6256. * src/TagContainer.{h, cc}
  6257. * test/TagContainerTest.cc
  6258. * src/TaggedItem.{h, cc}
  6259. * test/TaggedItemTest.cc
  6260. * src/HelpItem.h
  6261. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6262. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  6263. from PiecedSegment's ctor.
  6264. Previously Piece::getAllMissingBlockIndexes() is called from
  6265. PiecedSegment() but it is rather expensive since only first element is
  6266. used.
  6267. * src/PiecedSegment.cc
  6268. * src/Piece.{h, cc}
  6269. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6270. Rewritten get*Missing*Index functions. Now no need to allocate memory
  6271. each time these functions are called.
  6272. * src/BitfieldMan.{h, cc}
  6273. * test/BitfieldManTest.cc
  6274. * src/array_fun.h
  6275. * test/array_funTest.cc
  6276. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  6277. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  6278. filtered. Removed unnecessary cast to int32_t.
  6279. * src/BitfieldMan.{h, cc}
  6280. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6281. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  6282. payload length(4bytes) are received. This happens because lenbufLength
  6283. is not updated in this particular case and successive call of
  6284. receiveMessage() overwrites payload length with bytes recieved which
  6285. are payload body.
  6286. * src/PeerConnection.{h, cc}
  6287. * src/message.h
  6288. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6289. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  6290. peer if there are peers that have same ipaddr and port.
  6291. I've experiened segmentation fault and "pure virtual function was
  6292. called" error.
  6293. * src/Peer.h
  6294. * test/PeerTest.cc
  6295. * src/DefaultPeerStorage.cc
  6296. * test/DefaultPeerStorageTest.cc
  6297. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6298. Removed a call to isPowerOf() because it is no longer necessary here
  6299. and a request block is not always power of 2.
  6300. BUG#1866924
  6301. * src/PeerMessageUtil.cc (checkLength)
  6302. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6303. Fixed the bug that always first found Segment is removed from
  6304. usedSegmentEntries. Removed unused functions.
  6305. * src/SegmentMan.{h, cc}
  6306. * test/SegmentManTest.cc
  6307. Fixed the bug that ServerHost is not removed.
  6308. * src/RequestGroup.cc
  6309. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6310. Fixed the bug that SegmentMan::completeSegment() is not called
  6311. even if Segment is complete when --lowest-speed-limit is enabled.
  6312. BUG#1864525
  6313. * src/DownloadCommand.{h, cc}
  6314. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6315. Fixed: hash algorithm 'sha1' is always used.
  6316. * src/DownloadCommand.cc (validatePieceHash)
  6317. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6318. Added --enable-peer-exchange command-line option.
  6319. * src/OptionHandlerFactory.cc
  6320. * src/HelpItemFactory.cc
  6321. * src/option_processing.cc
  6322. * src/usage_text.h
  6323. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6324. Move extension from BtRuntime to ExtensionMessageFactory, because
  6325. extension can be specified per peer, not per torrent.
  6326. * src/DefaultBtInteractive.cc
  6327. * src/BtRuntime.h
  6328. * src/ExtendedMessagingAware.h
  6329. * src/ExtensionMessageFactory.h
  6330. * src/DefaultExtensionMessageFactory.cc
  6331. * test/DefaultExtensionMessageFactoryTest.cc
  6332. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6333. Added categorized option help. Specify category using --help option.
  6334. Also added the ability to search options in forward match.
  6335. * src/HelpItem.{h, cc}
  6336. * test/HelpItemTest.cc
  6337. * src/HelpItemFactory.{h, cc}
  6338. * src/TagContainer.{h, cc}
  6339. * test/TagContainerTest.cc
  6340. * src/option_processing.cc
  6341. * src/prefs.h
  6342. * src/TaggedItem.{h, cc}
  6343. * test/TaggedItemTest.cc
  6344. * src/version_usage.cc
  6345. * src/help_tags.h
  6346. * src/usage_text.h
  6347. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6348. Fixed segmentation fault when bad torrent metainfo is parsed.
  6349. Added dynamic_cast properly to detect the misconfiguration of metainfo
  6350. and then throw exception or skip it.
  6351. * src/DefaultBtContext.{h, cc}
  6352. * test/DefaultBtContextTest.cc
  6353. * src/AnnounceList.cc
  6354. * src/CompactPeerListProcessor.cc
  6355. * src/message.h
  6356. * src/DefaultBtAnnounce.{h, cc}
  6357. * test/DefaultBtAnnounceTest.cc
  6358. * src/BencodeVisitor.cc
  6359. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6360. Added missing "B"(=Byte). So now the message looks like this:
  6361. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  6362. * src/message.h (MSG_SHARE_RATIO_REPORT)
  6363. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6364. Show the seed ratio after torrent downloads.
  6365. For example, after torrent download completed and --seed-time and
  6366. --seed-ratio conditions are fulfilled, following message is printed
  6367. right after "Download complete: .....":
  6368. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  6369. * src/RequestGroupMan.cc
  6370. * src/RequestGroup.{h, cc}
  6371. * src/message.h
  6372. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6373. Remove a defunct control file. A defunct control file means that while
  6374. it exists, but the corresponding download file is missing.
  6375. After its removal, a download restarts from the beginning.
  6376. * src/RequestGroup.cc
  6377. * src/message.h
  6378. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6379. Allocate bitfield in Peer when it is really used. More specifically,
  6380. bitfield in Peer is allocated after the connection is established and
  6381. deallocated when the connection is dropped.
  6382. Since 2 parameters(piece length and total length) was removed from the
  6383. constructor of Peer class, many test classes were modified accordingly.
  6384. See svn log for more detailed information.
  6385. * src/PeerInteractionCommand.cc
  6386. * src/CompactPeerListProcessor.cc
  6387. * src/Peer.cc
  6388. * src/DefaultPeerListProcessor.cc
  6389. * src/PeerListenCommand.cc
  6390. * src/PeerReceiveHandshakeCommand.cc
  6391. Fixed memory leak
  6392. * src/Piece.cc
  6393. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6394. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  6395. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  6396. command-line options.
  6397. * src/option_processing.cc
  6398. * src/ActivePeerConnectionCommand.cc
  6399. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6400. Send have message to peer if it already has the piece.
  6401. * src/BtHaveMessage.{h, cc}
  6402. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6403. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  6404. port.
  6405. * src/DefaultPeerStorage.{h, cc}
  6406. * test/DefaultPeerStorageTest.cc
  6407. * src/HandshakeExtensionMessage.cc
  6408. * test/HandshakeExtensionMessageTest.cc
  6409. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  6410. * src/PeerStorage.h
  6411. * test/MockPeerStorage.h
  6412. * src/PeerListenCommand.cc
  6413. * src/PeerReceiveHandshakeCommand.cc
  6414. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6415. Added --metalink-enable-unique-protocol option.
  6416. * src/Metalink2RequestGroup.cc
  6417. * src/option_processing.cc
  6418. * src/prefs.h
  6419. * src/version_usage.cc
  6420. * doc/aria2c.1.txt
  6421. * doc/aria2c.1
  6422. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6423. Allow a peer in incomingPeer to be added peers.
  6424. * src/DefaultPeerStorage.cc
  6425. * test/DefaultPeerStorageTest.cc
  6426. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6427. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  6428. I could reproduce this bug in following procedure:
  6429. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  6430. 2. Restart aria2.
  6431. 3. You see the download stopped around 99%.
  6432. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  6433. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  6434. If timeout is reached, then _nextCommand is unused and it may contains
  6435. segments and they won't be canceled. Actually, timeout is not needed
  6436. here because if the server dropped connection, then retry is made.
  6437. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6438. Added uTorrent compatible Peer Exchange.
  6439. * src/BencodeVisitor.{h, cc}
  6440. * test/BencodeVisitorTest.cc
  6441. * src/BtConstants.h
  6442. * src/BtContext.h: Added 'private' flag.
  6443. * src/BtExtendedMessage.{h, cc}
  6444. * test/BtExtendedMessageTest.cc
  6445. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  6446. reserved field.
  6447. * test/BtHandshakeMessageTest.cc
  6448. * src/BtMessageFactory.h
  6449. * src/BtRegistry.h
  6450. * src/BtRuntime.h: This class holds default extension message IDs for
  6451. aria2. By default, aria2 uses ID 8 for ut_pex.
  6452. * src/DefaultBtContext.cc
  6453. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  6454. When it is true, aria2 enables ut_pex. This value is set by
  6455. PeerInteractionCommand.
  6456. * src/DefaultBtMessageFactory.{h, cc}
  6457. * test/DefaultBtMessageFactoryTest.cc
  6458. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  6459. handling to DefaultBtInteractive class.
  6460. * src/DefaultExtensionMessageFactory.{h, cc}
  6461. * test/DefaultExtensionMessageFactoryTest.cc
  6462. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  6463. the container(peers and incomingPeers. The equality is determined by
  6464. Peer::id).
  6465. * test/DefaultPeerStorageTest.cc
  6466. * src/ExtensionMessage.h
  6467. * test/MockExtensionMessage.h
  6468. * src/ExtensionMessageFactory.h
  6469. * test/MockExtensionMessageFactory.h
  6470. * src/HandshakeExtensionMessage.{h, cc}
  6471. * test/HandshakeExtensionMessageTest.cc
  6472. * src/MetaEntry.h
  6473. * src/Peer.{h, cc}
  6474. * src/PeerInteractionCommand.cc
  6475. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  6476. addIncomingPeer.
  6477. * src/PeerMessageUtil.{h, cc}
  6478. * src/PeerObject.h
  6479. * src/UTPexExtensionMessage.{h, cc}
  6480. * test/UTPexExtensionMessageTest.cc
  6481. * src/message.h
  6482. * src/prefs.h
  6483. Fixed the bug that returns incomplete data when it contains null
  6484. character. A convenient constructor was also added.
  6485. * src/Data.{h, cc}
  6486. Rewritten.
  6487. * src/CompactPeerListProcessor.cc
  6488. Fixed typos.
  6489. * src/message.h
  6490. * src/MetaFileUtil.cc
  6491. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6492. Added "Status Legend" label to the explanation text of 'stat' in
  6493. download result and moved it to the last. BUG#1848214
  6494. * src/RequestGroupMan.cc
  6495. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6496. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  6497. * src/Makefie.am
  6498. * test/Makefile.am
  6499. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6500. Fixed the bug that prevents aria2 from loading cookie file when expire
  6501. value is greater than 2^31-1. BUG#1851066
  6502. * src/CookieBoxFactory.cc
  6503. * test/CookieBoxFactoryTest.cc
  6504. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6505. Fixed possible memory leak when an exception is thrown.
  6506. * src/XML2SAXMetalinkProcessor.cc
  6507. Added Expat support. If both libxml2 and Expat are installed, then
  6508. libxml2 is used by default.
  6509. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  6510. ExpatMetalinkProcessor according to the configuration.
  6511. * src/ExpatMetalinkProcessor.{h, cc}
  6512. * src/main.cc: Removed libxml2 specific header and init/free function.
  6513. * src/MetalinkProcessorFactory.{h, cc}
  6514. * src/MetalinkHelper.cc
  6515. * src/Metalinker.h: Removed unnecessary libxml2 header.
  6516. * src/MetalinkProcessor.h
  6517. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  6518. MetalinkProcessorTest is used instead.
  6519. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  6520. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  6521. MetalinkProcessorFactory::newInstance().
  6522. * m4/libexpat.m4
  6523. * configure.ac: Added configuration options for libexpat.
  6524. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6525. Disabled -s option in metalink download.
  6526. * src/Metalink2RequestGroup.cc
  6527. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6528. If several protocols are available for a mirror in metalink file,
  6529. aria2 now use one of them. --metalink-preferred-protocol option was
  6530. added to specify the preference of protocol.
  6531. * src/AbstractCommand.cc
  6532. * src/OptionHandlerFactory.cc
  6533. * src/ServerHost.{h, cc}
  6534. * src/Metalink2RequestGroup.cc
  6535. * src/RequestGroup.{h, cc}
  6536. * test/RequestGroupTest.cc
  6537. * src/option_processing.cc
  6538. * src/prefs.h
  6539. * src/HttpResponseCommand.cc
  6540. * src/MetalinkResource.{h, cc}
  6541. * src/FtpNegotiationCommand.cc
  6542. * src/MetalinkEntry.{h, cc}
  6543. * src/MetalinkEntryTest.cc
  6544. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6545. Code cleanup and added debug log.
  6546. * src/PeerConnection.cc
  6547. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6548. Compiler error fix: applied the patch by Tiziano Mueller
  6549. * src/RequestGroup.cc
  6550. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6551. Fixed the bug: only first announce URL is tried in AnnounceTier,
  6552. in stopped and completed event.
  6553. * src/AnnounceList.{h, cc}
  6554. * test/AnnounceListTest.cc
  6555. * src/DefaultBtAnnounce.cc
  6556. * test/DefaultBtAnnounceTest.cc
  6557. Sorted URLs.
  6558. * test/Metalink2RequestGroupTest.cc
  6559. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6560. Removed unnecessary string copy. Updated doc and corrected indentation.
  6561. * src/Base64.cc
  6562. Fixed compilation warnings
  6563. * test/DataTest.cc
  6564. * test/HttpRequestTest.cc
  6565. * test/MetaFileUtilTest.cc
  6566. * test/RequestTest.cc
  6567. * Release 0.12.0
  6568. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6569. Updated translations
  6570. * po/{de,fr,ja,nl,ru}.po
  6571. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  6572. translations. Many thanks to translators.
  6573. * po/{ca,es,it,pt_BR,sv}.po
  6574. * po/LINGUAS
  6575. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6576. Added a notice about URL
  6577. * src/version_usage.cc
  6578. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  6579. Fixed the bug#1845750; CTRL+C does not stop torrent.
  6580. aria2 repeatedly sends stopped request when tracker returns error code.
  6581. * src/AnnounceList.cc
  6582. * test/AnnounceListTest.cc
  6583. * src/AnnounceTier.h
  6584. Added a message when ctrl-c is hit.
  6585. Now second ctrl-c is also handled in signal handler.
  6586. * src/RequestGroupMan.{h, cc}
  6587. * src/RequestGroup.{h, cc}
  6588. * src/MultiUrlRequestInfo.cc
  6589. * src/DownloadEngine.cc
  6590. * src/TrackerWatcherCommand.cc
  6591. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6592. Code cleanup
  6593. * src/Base64.cc (encode)
  6594. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6595. Changed Direct/IO enable/disable procesure in file allocation routine.
  6596. * src/SingleFileAllocationIterator.cc
  6597. (SingleFileAllocationIterator):
  6598. Disable directIO if offset is not multiple of 512.
  6599. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  6600. * src/MultiFileAllocationIterator.cc (allocateChunk):
  6601. Enable created SingleFileAllocationIterator's directIO.
  6602. * src/FileAllocationEntry.cc
  6603. (FileAllocationEntry): Enable directIO here.
  6604. (~FileAllocationEntry): Disable directIO here.
  6605. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6606. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  6607. * src/Peer.{h, cc}
  6608. * src/DefaultPieceStorage.cc
  6609. * test/DefaultPieceStorageTest.cc
  6610. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6611. Rewritten direct I/O support routine
  6612. * src/SingleFileAllocationIterator.cc
  6613. * src/MultiDiskAdaptor.{h, cc}
  6614. * src/ByteArrayDiskWriter.h
  6615. * src/AbstractSingleDiskAdaptor.h
  6616. * src/AbstractDiskWriter.cc
  6617. * src/DefaultPieceStorage.cc
  6618. * src/DiskWriter.h
  6619. * src/BinaryStream.h
  6620. * src/IteratableChunkChecksumValidator.cc
  6621. * src/IteratableChecksumValidator.cc
  6622. * src/CheckIntegrityEntry.cc
  6623. * src/FileAllocationEntry.cc
  6624. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6625. Fixed typo
  6626. * src/version_usage.cc
  6627. Updated doc
  6628. * doc/aria2c.1.txt
  6629. * doc/aria2c.1
  6630. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6631. Fixed compile error without message digest support.
  6632. * src/FileMetalinkParserState.cc
  6633. * src/MetalinkParserController.{h, cc}
  6634. * test/XML2SAXMetalinkProcessorTest.cc
  6635. * test/MetalinkParserControllerTest.cc
  6636. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6637. Enable direct I/O support in checksum checking.
  6638. * src/IteratableChunkChecksumValidator.{h, cc}
  6639. * test/IteratableChunkChecksumValidatorTest.cc
  6640. * src/CheckIntegrityEntry.cc
  6641. * src/PieceHashCheckIntegrityEntry.cc
  6642. * src/IteratableChecksumValidator.{h, cc}
  6643. * src/BtCheckIntegrityEntry.cc: Added doc.
  6644. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6645. Added --allow-piece-length-change option.
  6646. * src/DefaultBtProgressInfoFile.cc
  6647. * test/DefaultBtProgressInfoFileTest.cc
  6648. * src/OptionHandlerFactory.cc
  6649. * src/option_processing.cc
  6650. * src/prefs.h
  6651. * src/version_usage.cc
  6652. * doc/aria2c.1.txt
  6653. * doc/aria2c.1
  6654. Fixed: duplicated result entry appears when exception is thrown in
  6655. RequestGroup::createInitiateConnectionCommand().
  6656. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  6657. Add RequestGroup to _requestGroup after RequetGroup::
  6658. createInitiateConnectionCommand() succeeds.
  6659. Externalized message
  6660. * src/XML2SAXMetalinkProcessor.cc
  6661. * src/message.h
  6662. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6663. Forced download abort when received negative response from http/ftp
  6664. server.
  6665. * src/HttpResponseCommand.cc
  6666. * src/FtpNegotiationCommand.cc
  6667. * src/HttpResponse.cc
  6668. * src/FtpConnection.cc
  6669. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6670. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  6671. the predecessor, Xml2MetalinkParser class.
  6672. I tested them against 94KB metalink file with 1234 chunk checksums.
  6673. The new one parsed it in 22msec, while it took 6000msec with old one.
  6674. * src/XML2SAXMetalinkProcessor.{h, cc}
  6675. * test/XML2SAXMetalinkProcessorTest.cc
  6676. * src/MetalinkParserController.{h, cc}
  6677. * test/MetalinkParserControllerTest.cc
  6678. * src/MetalinkParserState.h: Also added 16 subclasses.
  6679. * src/main.cc
  6680. * src/Metalink2RequestGroup.cc
  6681. * src/MetalinkHelper.cc
  6682. * src/MetalinkEntry.cc
  6683. * src/ChunkChecksum.h
  6684. Rewritten Base64 class for better performance.
  6685. * src/Base64.{h, cc}
  6686. * test/Base64Test.cc
  6687. * src/HttpRequest.cc
  6688. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6689. Fixed the bug#1841757: aria2 will connect to server to only get
  6690. file size.
  6691. * src/StreamFileAllocationEntry.cc
  6692. * src/option_processing.cc
  6693. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  6694. downloads.
  6695. * src/FtpNegotiationCommand.cc
  6696. Suppressed wrong message when finding PreDownloadHandler
  6697. * src/RequestGroup.cc
  6698. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6699. Updated usage
  6700. * src/version_usage.cc
  6701. Updated man page
  6702. * doc/aria2c.1.txt
  6703. * doc/aria2c.1
  6704. Updated po files
  6705. * po/aria2c.pot
  6706. * po/*.po
  6707. * po/*.gmo
  6708. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6709. Eliminated g++-4.2 warning
  6710. * src/DownloadHandlerConstants.{h, cc}
  6711. * src/Util.cc
  6712. * test/MetaFileUtilTest.cc
  6713. * test/PStringBuildVisitorTest.cc
  6714. Fixed bug: --check-integrity doesn't work for multi file torrent.
  6715. * src/RequestGroup.cc
  6716. * src/BtCheckIntegrityEntry.cc
  6717. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6718. Fixed a2io.h
  6719. * src/a2io.h
  6720. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6721. Added direct I/O support. The current implementation uses O_DIRECT,
  6722. which is not posix standard and is tested on linux 2.6.21.
  6723. Currently only file allocation uses direct I/O.
  6724. * src/SingleFileAllocationIterator.{h, cc}
  6725. * test/SingleFileAllocationIteratorTest.cc
  6726. * src/MultiFileAllocationIterator.{h, cc}
  6727. * test/MultiFileAllocationIteratorTest.cc
  6728. * src/BinaryStream.h
  6729. * src/DiskWriter.h
  6730. * src/AbstractDiskWriter.{h, cc}
  6731. * src/ByteArrayDiskWriter.h
  6732. * src/DiskAdaptor.h
  6733. * src/AbstractSingleDiskAdaptor.{h, cc}
  6734. * src/MultiDiskAdaptor.{h, cc}
  6735. * src/FileAllocationEntry.cc
  6736. * src/Util.{h, cc}
  6737. * src/OptionHandlerFactory.cc
  6738. * src/prefs.h
  6739. * src/version_usage.cc
  6740. * src/option_processing.cc
  6741. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  6742. handleException.
  6743. * src/MultiFileAllocationIterator.cc
  6744. Added EINTR handling
  6745. * src/SocketCore.cc
  6746. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6747. Updated usage
  6748. * src/version_usage.cc
  6749. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6750. Applied Ross's patch for MinGW port.
  6751. * src/DownloadEngine.h
  6752. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6753. Set Content-Type to SingleFileDownloadContext when http response is
  6754. received.
  6755. * src/HttpResponseCommand.cc
  6756. * src/HttpResponse.{h, cc}
  6757. * test/HttpResponseTest.cc
  6758. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6759. Rewritten to add content-type support.
  6760. * src/DownloadHandler.{h, cc}
  6761. * src/BtPostDownloadHandler.{h, cc}
  6762. * test/BtPostDownloadHandlerTest.cc
  6763. * src/MetalinkPostDownloadHandler.{h, cc}
  6764. * test/MetalinkPostDownloadHandlerTest.cc
  6765. * src/PostDownloadHandler.{h, cc}
  6766. * src/DownloadHandlerConstants.{h, cc}
  6767. * src/RequestGroup.cc
  6768. * src/HttpResponseCommand.cc
  6769. * src/FtpNegotiationCommand.cc
  6770. * src/SingleFileDownloadContext.{h, cc}
  6771. * src/RequestGroup.h
  6772. * src/RequestGroupCriteria.h
  6773. * src/ContentTypeRequestGroupCriteria.h
  6774. Added 'mem' option value for --follow-metalink, --follow-torrent.
  6775. If it is give, metalink/torrent file is not written to the disk, but
  6776. just is kept in memory. Parsing is occurred on memory.
  6777. * src/MetalinkHelper.{h, cc}
  6778. * src/MetalinkProcessor.h
  6779. * src/Xml2MetalinkProcessor.{h, cc}
  6780. * test/Xml2MetalinkProcessorTest.cc
  6781. * src/DownloadHandlerFactory.{h, cc}
  6782. * test/DownloadHandlerFactoryTest.cc
  6783. * src/PreDownloadHandler.{h, cc}
  6784. * src/OptionHandlerFactory.cc
  6785. * src/DefaultBtContext.{h, cc}
  6786. * test/DefaultBtContextTest.cc
  6787. * src/version_usage.cc
  6788. * src/Metalink2RequestGroup.{h, cc}
  6789. * src/RequestGroup.{h, cc}
  6790. * src/a2functional.h
  6791. * test/a2functionalTest.cc
  6792. * src/MemoryBufferPreDownloadHandler.{h, cc}
  6793. * src/OptionHandlerImpl.h
  6794. * src/prefs.h
  6795. * src/Util.{h, cc}
  6796. * test/UtilTest.cc
  6797. Keep DownloadResult rather than RequestGroup after downloads to reduce
  6798. memory usage.
  6799. * src/RequestGroupMan.{h, cc}
  6800. * src/DownloadEngine.cc
  6801. * src/BtDependency.{h, cc}: Changed the type of dependee from
  6802. WeakHandle to SharedHandle because WeakHandle could be null.
  6803. * src/RequestGroup.{h, cc}
  6804. * src/DownloadEngineFactory.cc
  6805. * src/DownloadResult.h
  6806. Set totalLength after download finished
  6807. * src/UnknownLengthPieceStorage.{h, cc}
  6808. Keep torrent file specified in metalink in memory.
  6809. * src/Metalink2RequestGroup.cc
  6810. * src/BtDependency.cc
  6811. * src/TrueRequestGroupCriteria.h
  6812. Fixed the bug: seekg is used where seekp should be used.
  6813. * src/ByteArrayDiskWriter.cc
  6814. * test/ByteArraydiskWriterTest.cc
  6815. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6816. Fixed syntax error
  6817. * test/SequenceTest.cc
  6818. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6819. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  6820. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  6821. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  6822. * src/RequestGroup.cc (downloadFinishedByFileLength)
  6823. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6824. Added the check to see whether ares_host_callback accepts timeouts
  6825. with c-ares; only c-ares 1.5.0 or newer accepts it.
  6826. * src/NameResolver.{h, cc}
  6827. * m4/libcares.m4
  6828. * configure.ac: Set C++ for language choice.
  6829. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6830. Fixed: compilation fails without c-ares/ares
  6831. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  6832. Generate http/ftp commands only when download is incomplete.
  6833. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  6834. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6835. Corrected typo. Examples are removed since they are available in man
  6836. page.
  6837. * src/version_usage.cc
  6838. Updated man page.
  6839. * doc/aria2c.1
  6840. * doc/aria2c.1.txt
  6841. * doc/makeman: Commented out sed command.
  6842. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6843. Throw DlAbortEx when a remote file is not found.
  6844. * src/HttpResponse.cc
  6845. * src/FtpNegotiationCommand.cc
  6846. * src/message.h
  6847. Overwrite an existing file if --allow-overwrite=true is given.
  6848. * src/RequestGroup.cc
  6849. Removed unused functions
  6850. * src/AbstractCommand.h
  6851. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6852. Removed 'extern' from 'extern typedef ...' in src/*.h
  6853. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6854. Updated usage
  6855. * src/version_usage.cc
  6856. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6857. Trim announce URL
  6858. * src/DefaultBtContext.cc
  6859. * test/ShaVisitorTest.cc
  6860. Trim argument s. Give trimed s to exception constructor.
  6861. * src/Util.cc (parseInt)(parseLLInt)
  6862. * test/UtilTest.cc
  6863. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6864. Set precision back to 1.
  6865. * src/ConsoleStatCalc.cc (calculateStat)
  6866. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6867. Replaced strtol with Util::parseInt
  6868. * src/ChunkedEncoding.cc
  6869. * src/HttpConnection.cc
  6870. * src/CookieBoxFactory.cc
  6871. * src/ParameterizedStringParser.cc
  6872. * src/Util.cc
  6873. * test/UtilTest.cc
  6874. * test/OptionHandlerTest.cc
  6875. * src/Request.cc
  6876. Throw exception when empty string is given. The message for exception
  6877. changed.
  6878. * src/Util.cc (parseInt)(parseLLInt)
  6879. * src/message.h
  6880. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6881. Set precision to 2 because share ratio is rounded into 1.0 if precision
  6882. set to 1.
  6883. * src/ConsoleStatCalc.cc (calculateStat)
  6884. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6885. Preallocate non-requested file which is adjacent forward to requested
  6886. file('requested' files means the files given in --select-file option)
  6887. if they share a same piece.
  6888. This fixes long pause in the file system which doesn't support sparse
  6889. files like FAT32 while downloading.
  6890. * src/MultiFileAllocationIterator.{h, cc}
  6891. * test/MultiFileAllocationIteratorTest.cc
  6892. * src/FileEntry.{h, cc}
  6893. Removed unused _option.
  6894. * src/MultiDiskAdaptor.h
  6895. * test/MultiDiskAdaptorTest.cc
  6896. * src/DefaultPieceStorage.cc
  6897. Set the default value of --seed-ratio to 1.0.
  6898. If 0.0 is given, then seeding continues regardless of share ratio.
  6899. * src/version_usage.cc
  6900. * src/option_processing.cc
  6901. * src/BtSetup.cc
  6902. * doc/aria2c.1.txt
  6903. * doc/aria2c.1
  6904. Fixed: Selective download is not working in BitTorrent
  6905. * src/RequestGroup.cc
  6906. Introduced Sequence class. Use this instead of Util::unfoldRange()
  6907. * src/PieceStorage.h
  6908. * test/MockPieceStorage.h
  6909. * src/UnknownLengthPieceStorage.h
  6910. * src/DefaultPieceStorage.{h, cc}
  6911. * src/Metalink2RequestGroup.cc
  6912. * src/RequestGroup.cc
  6913. * src/Sequence.h
  6914. * test/SequenceTest.cc
  6915. * src/IntSequence.h
  6916. * src/message.h
  6917. * src/Util.{h, cc}
  6918. * test/UtilTest.cc
  6919. Added new function 'parse' to catch exception thrown by subclass's
  6920. parseArg
  6921. * src/OptionHandler.h
  6922. * src/OptionParser.cc
  6923. * src/NameMatchOptionHandler.h
  6924. * src/OptionHandlerImpl.h
  6925. * test/OptionHandlerTest.cc
  6926. Added IntegerRangeOptionHandler. Used for --listen-port and
  6927. --select-file. Now --listen-port accepts range of port.
  6928. * src/OptionHandlerFactory.cc
  6929. * src/version_usage.cc
  6930. * src/OptionHandlerImpl.h
  6931. * src/option_processing.cc
  6932. * src/BtSetup.cc
  6933. * src/PeerListenCommand.{h, cc}
  6934. * doc/aria2c.1.txt
  6935. * doc/aria2c.1
  6936. Implemented operator< for Exception class to provide easy way to print
  6937. exception stack trace.
  6938. * src/Exception.{h, cc}
  6939. * src/main.cc
  6940. * src/option_processing.cc
  6941. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6942. * src/version_usage.cc
  6943. (showVersion): Reworked.
  6944. (showUsage): Added examples.
  6945. Removed Hint for total length and file name.
  6946. * src/Metalink2RequestGroup.cc
  6947. * src/RequestGroup.{h, cc}
  6948. * src/HttpResponseCommand.cc
  6949. * src/FtpNegotiationCommand.cc
  6950. Now --follow-torrent and --follow-metalink option work properly.
  6951. * src/RequestGroup.cc
  6952. Updated man page
  6953. * doc/aria2c.1.txt
  6954. * doc/aria2c.1
  6955. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6956. Removed.
  6957. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  6958. Use Segment::operator==()
  6959. * src/HttpConnection.cc
  6960. * src/Segment.h
  6961. Updated usage
  6962. * src/version_usage.cc
  6963. Added EINTR treatment.
  6964. * src/SocketCore.cc
  6965. * src/AbstractDiskWriter.cc
  6966. Rewritten.
  6967. * src/Util.cc (rangedFileCopy)
  6968. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6969. Fixed typo.
  6970. * src/version_usage.cc
  6971. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6972. Implemented. Now -c option works fine.
  6973. * src/DefaultPieceStorage.cc (markPiecesDone)
  6974. * test/DefaultPieceStorageTest.cc
  6975. Removed.
  6976. * src/SegmentMan.{h, cc}
  6977. (markAllPiecesDone)
  6978. (markPieceDone)
  6979. Synchronized po files with
  6980. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  6981. * src/fr.po
  6982. * src/ru.po
  6983. * src/de.po
  6984. * src/ja.po
  6985. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6986. Added ifdef and some modifications to compile without BitTorrent,
  6987. Metalink, MessageDigest
  6988. support.
  6989. * src/PieceHashCheckIntegrityEntry.cc
  6990. * src/MetalinkEntry.h
  6991. * src/version_usage.cc
  6992. * src/main.cc
  6993. * src/DownloadEngine.{h, cc}
  6994. * src/Metalink2RequestGroup.cc
  6995. * src/Peer.cc
  6996. * src/RequestGroup.cc
  6997. * src/MetalinkHelper.cc
  6998. * test/DefaultPieceStorageTest.cc
  6999. * test/MetalinkPostDownloadHandlerTest.cc
  7000. * test/Metalink2RequestGroupTest.cc
  7001. Hide TOTAL SPD when all downloads complete.
  7002. * src/ConsoleStatCalc.cc
  7003. Log target system information.
  7004. * src/main.cc
  7005. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7006. Now --metalink-location accepts a comma-deliminated list of locations.
  7007. * src/MetalinkEntry.{h, cc}
  7008. * test/MetalinkEntryTest.cc
  7009. * src/version_usage.cc
  7010. * src/Metalink2RequestGroup.cc
  7011. * src/Xml2MetalinkProcessor.cc
  7012. * test/Xml2MetalinkProcessorTest.cc
  7013. * doc/aria2c.1.txt
  7014. * doc/aria2c.1
  7015. * src/Util.cc (toUpper)(toLower): Rewritten.
  7016. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7017. Added the ability to detect duplicate download entry which is about to
  7018. download the same file other RequestGroup is downloading.
  7019. * src/RequestGroup.cc
  7020. * src/HttpResponseCommand.cc
  7021. * src/FtpNegotiationCommand.cc
  7022. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7023. Recalculates download progress when loading a control file,
  7024. if the piece length of DownloadContext is different from the one saved
  7025. in the control file. Currently in-flight pieces are ignored.
  7026. * src/DefaultBtProgressInfoFile.cc
  7027. * test/DefaultBtProgressInfoFileTest.cc
  7028. * src/Util.{h, cc}
  7029. * test/UtilTest.cc
  7030. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7031. Do not rotate tiers in announce-list.
  7032. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  7033. AnnounceList::allTiersFailed() used instead to detect whether all
  7034. tiers are tried and failed.
  7035. * test/DefaultBtAnnounceTest.cc
  7036. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  7037. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  7038. * test/AnnounceListTest.cc
  7039. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  7040. clause. Catch RecoverableException instead of DlRetryEx instead.
  7041. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7042. Implemented checksum validation feature(1 checksum for each file)
  7043. The validation takes place after the download.
  7044. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  7045. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  7046. * src/CheckIntegrityCommand.cc: Changed log message.
  7047. * src/Metalink2RequestGroup.cc: Set checksum to
  7048. SingleFileDownloadContext.
  7049. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  7050. PieceHashCheckIntegrity class.
  7051. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  7052. PieceHashCheckIntegrity class.
  7053. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  7054. * src/IteratableValidator.h: New class.
  7055. * src/message.h
  7056. * src/CheckIntegrityEntry.{h, cc}
  7057. * src/IteratableChunkChecksumValidator.{h, cc}
  7058. * src/SingleFileDownloadContext.h
  7059. * src/DownloadCommand.cc
  7060. --allow-overwrite=true is no longer needed to check file integrity
  7061. before download in BitTorrent download.
  7062. * src/RequestGroup.cc (getInitialCommand)
  7063. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  7064. throws exception.
  7065. * src/RequestGroupMan.cc (getInitialCommands)
  7066. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7067. urlencode the given url inside Request::parseUrl(...)
  7068. * src/Request.{h, cc}
  7069. * src/Util.{h, cc}
  7070. * test/RequestTest.cc
  7071. Removed #!metalink3! notation support because it is deleted from
  7072. the metalink specification.
  7073. * src/Request.{h, cc}
  7074. * test/RequestTest.cc
  7075. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7076. Don't connect server before checking file integrity at startup, if
  7077. filesize and output file path are known.
  7078. * src/AbstractCommand.cc
  7079. * src/StreamFileAllocationEntry.cc
  7080. * src/Metalink2RequestGroup.cc
  7081. * src/RequestGroup.{h, cc}
  7082. * src/HttpResponseCommand.cc
  7083. * src/FtpNegotiationCommand.cc
  7084. Added DownloadFailureException. If it is thrown, RequestGroup should
  7085. halt.
  7086. * src/AbstractCommand.cc
  7087. * src/DownloadFailureException.h
  7088. * src/RequestGroup.cc
  7089. Catch RecoverableException, instead of DlAbortEx.
  7090. * src/RequestGroupMan.cc
  7091. * src/FillRequestGroupCommand.cc
  7092. * src/MetaFileUtil.cc
  7093. * src/IteratableChunkChecksumValidator.cc
  7094. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  7095. getGID())
  7096. * src/CheckIntegrityCommand.cc
  7097. * src/message.h
  7098. Print gid instead of idx.
  7099. * src/RequestGroupMan.cc
  7100. Removed exception throwers declaration.
  7101. * src/DirectDiskAdaptor.{h, cc}
  7102. * src/SocketCore.{h, cc}
  7103. * src/MultiDiskAdaptor.{h, cc}
  7104. * src/HttpConnection.{h, cc}
  7105. * src/HttpResponse.{h, cc}
  7106. * src/DiskAdaptor.{h, cc}
  7107. * src/CopyDiskAdaptor.{h, cc}
  7108. * src/MultiDiskAdaptor.{h, cc}
  7109. * src/HttpHeaderProcessor.{h, cc}
  7110. * src/AbstractSingleDiskAdaptor.{h, cc}
  7111. * src/Util.{h, cc}
  7112. * test/UtilTest.cc
  7113. * src/DefaultDiskWriter.{h, cc}
  7114. * src/FtpConnection.{h, cc}
  7115. * src/AbstractDiskWriter.{h, cc}
  7116. Removed duplicate code.
  7117. * src/StreamCheckIntegrityEntry.cc
  7118. Removed unnecessary include.
  7119. * src/DiskWriter.h
  7120. Included Exception.h
  7121. * src/option_processing.cc
  7122. Included 2 files and added doc
  7123. * src/TrackerWatcherCommand.cc
  7124. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  7125. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7126. Changed CheckIntegrityEntry interface so that it can define
  7127. the action when all the chunk checksums are valid.
  7128. * src/CheckIntegrityEntry.h
  7129. * src/StreamCheckIntegrityEntry.{h, cc}
  7130. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  7131. are valid, then aira2 goes to seeding mode. Sometimes it is better
  7132. to exit rather than doing seeding. So, it would be good to toggle this
  7133. behavior.
  7134. * src/CheckIntegrityCommand.cc
  7135. * src/AbstractCommand.cc
  7136. * src/RequestGroup.cc
  7137. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7138. Reflect the download length of in-flight pieces.
  7139. It makes the download length readout more precise.
  7140. * src/DefaultPieceStorage.{h, cc}
  7141. * test/DefaultPieceStorageTest.cc
  7142. * src/a2functional.h
  7143. * test/a2functionalTest.cc
  7144. Lower CPU load when --max-download-limit is used.
  7145. There is up and down in speed indicator when enabling
  7146. http-pipelining but a download goes well. I think the problem is that
  7147. because http-pipelining is enabled, DownloadCommand is created for
  7148. each segment and in its constructor, PeerStat::downloadStart() is
  7149. called. In PeerStat::downloadStart(), speed calculation object is
  7150. reseted, which makes download speed zero.
  7151. * src/DownloadCommand.cc
  7152. Rewritten using accumulate.
  7153. * src/RequestGroupMan.cc (calculateStat)
  7154. Code clearnup.
  7155. * src/FtpNegotiationCommand.cc
  7156. * src/HttpResponseCommand.cc
  7157. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7158. Fixed: Can not resume: aria2 reports download already finished.
  7159. * src/AbstractCommand.{h, cc}
  7160. * src/HttpResponseCommand.cc
  7161. * src/FtpNegotiateCommand.cc
  7162. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7163. Now a file is stored in the directory specified in .metalnk file
  7164. (file[@name]).
  7165. * src/Metalink2RequestGroup.cc
  7166. Create the directory structure when opening the file if it doesn't
  7167. exist.
  7168. * src/AbstractDiskWriter.cc
  7169. * src/Util.{h, cc}
  7170. * src/File.h
  7171. * test/UtilTest.cc
  7172. Removed file name comparison
  7173. * src/Metalink2RequestGroup.cc
  7174. * src/HttpResponseCommand.cc
  7175. Rewritten using Util::mkdirs()
  7176. * src/FileEntry.cc (setupDir)
  7177. * test/FileEntryTest.cc
  7178. Updated doc
  7179. * src/SingleFileDownloadContext.h
  7180. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7181. Now SleepCommand dispatches nextCommand when halt is requested.
  7182. It avoids a possible long wait after hitting CTRL-C.
  7183. * src/SleepCommand.{h, cc}
  7184. * src/RequestGroupAware.{h, cc}
  7185. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7186. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  7187. to open listen port, then remove the port number from the tracker
  7188. request.
  7189. * src/DefaultBtAnnounce.cc
  7190. * test/DefaultBtAnnounceTest.cc
  7191. * test/MockPieceStorage.h
  7192. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  7193. them more testable.
  7194. * src/DefaultBtAnnounce.{h, cc}
  7195. * src/DefaultBtContext.{h, cc}
  7196. * src/Util.{h, cc}
  7197. * test/DefaultBtAnnounceTest.cc
  7198. * test/DefaultBtContextTest.cc
  7199. * test/UtilTest.cc
  7200. Added 'B' to upload bytes readout.
  7201. * src/ConsoleStatCalc.cc
  7202. Now the listen port for BitTorrent download is opened when it is
  7203. needed.
  7204. * src/DownloadEngineFactory.cc
  7205. * src/BtSetup.{h, cc}
  7206. * src/PeerListenCommand.{h, cc}
  7207. Now an exception thrown while parsing tracker response is now logged.
  7208. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  7209. called, which means no retry is made in this case, assuming a tracker
  7210. has a problem.
  7211. * src/TrackerWatcherCommand.cc
  7212. Fixed: downloading a file whose length is unkown fails.
  7213. * src/DownloadCommand.cc
  7214. Simplified prepareForNextSegment()
  7215. * src/DownloadCommand.cc
  7216. Updated
  7217. * po/POTFILES.in
  7218. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7219. Re-implemented a file listing for Metalink, which was dropped while
  7220. http/ftp/torrent integration was being implemented.
  7221. * src/MetalinkHelper.{h, cc}: New class.
  7222. * test/MetalinkHelperTest.cc
  7223. * src/main.cc
  7224. * src/Metalink2RequestGroup.cc
  7225. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7226. Added the ability to display the detailed torrent file information.
  7227. Now -S option gives not only a file listing, but also total download
  7228. length, info hash, announce URI, piece length, the number of pieces,
  7229. and mode(single or multi-torrent).
  7230. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  7231. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  7232. KiB)
  7233. * test/UtilTest.cc
  7234. * src/main.cc
  7235. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7236. Added ftp://USER:PASSWD@Servername automatic parsing.
  7237. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  7238. _password. Recognize username and password in URI.
  7239. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  7240. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  7241. * src/RequestFactory.{h, cc}: Removed.
  7242. * src/AuthConfigFactory.{h, cc}: New class.
  7243. * src/FtpConnection.cc: Use AuthConfigFactory.
  7244. * src/HttpRequest.cc: Use AuthConfigFactory.
  7245. * test/HttpRequestTest.cc: Updated.
  7246. * test/RequestTest.cc: Updated.
  7247. * test/AuthConfigFactoryTest.cc: New class.
  7248. * test/RequestFactoryTest.cc: Removed.
  7249. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7250. Use RequestGroup::allDownloadFinished() to decide whether the control
  7251. file should be removed or saved.
  7252. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  7253. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  7254. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7255. Use File::renameTo()
  7256. * src/DefaultBtProgressInfoFile.cc
  7257. Added --no-file-allocation-limit command-line option.
  7258. * src/version_usage.cc
  7259. * src/option_processing.cc
  7260. * src/OptionHandlerFactory.cc
  7261. * src/RequestGroup.{h, cc}
  7262. * src/BtCheckIntegrityEntry.cc
  7263. * src/StreamCheckIntegrityEntry.cc
  7264. * src/prefs.h
  7265. * doc/aria2c.1.txt
  7266. * doc/aria2c.1
  7267. Now prealloc is the default value for --file-allocation option.
  7268. * src/version_usage.cc
  7269. * src/option_processing.cc
  7270. * doc/aria2c.1.txt
  7271. * doc/aria2c.1
  7272. Don't URL-encode user-agent.
  7273. * src/HttpRequest.cc
  7274. Updated translations
  7275. * po/LINGUAS: Added nl for Dutch translation.
  7276. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  7277. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  7278. * po/POTFILES.in: Updated.
  7279. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7280. Added the ability to recognize url-list in a torrent file.
  7281. The retrieved URLs are attached to the corresponding FileEntry.
  7282. * src/DefaultBtContext.{h, cc}
  7283. * src/FileEntry.{h, cc}
  7284. * test/DefaultBtContextTest.cc
  7285. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7286. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  7287. after the download finishes.
  7288. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7289. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  7290. the data smaller than block length.
  7291. A block length can be specified by constructor's argument.
  7292. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  7293. Get a missing piece in the range of given FileEntry. This function is
  7294. not used in the program yet.
  7295. * src/Util.h: Added some macros.
  7296. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7297. Added HTTP/1.1 keep alive and pipelining support.
  7298. See --enable-http-keep-alive and --enable-http-pipelining option.
  7299. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  7300. Segment.
  7301. * src/HttpDownloadCommand.{h, cc}
  7302. * src/OptionHandlerFactory.cc
  7303. * src/HttpConnection.{h, cc}
  7304. * src/version_usage.cc
  7305. * src/HttpInitiateConnectionCommand.cc
  7306. * src/FtpInitiateConnectionCommand.cc
  7307. * src/Segment.h
  7308. * src/HttpRequestCommand.{h, cc}
  7309. * src/option_processing.cc
  7310. * src/prefs.h
  7311. * src/HttpResponseCommand.cc
  7312. * src/SegmentMan.{h, cc}
  7313. * src/FtpNegotiateCommand.cc
  7314. * src/HttpProxyResponseCommand.cc
  7315. * src/Request.cc
  7316. * src/HttpRequest.cc
  7317. * src/DownloadCommand.cc
  7318. * test/HttpRequestTest.cc
  7319. * test/RequestTest.cc
  7320. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7321. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  7322. finished.
  7323. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7324. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  7325. catching it inside the method.
  7326. When no file entry is found in a metalink without querying user
  7327. preferences, throw the exception with the error message that suggests
  7328. metalink file is probably broken.
  7329. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  7330. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7331. Fixed the bug that prevents remote Metalink/Torrent file from begin
  7332. processed.
  7333. * src/RequestGroupMan.cc (removeStoppedGroup)
  7334. Added debug message.
  7335. * src/BtPostDownloadHandler.cc
  7336. * src/MetalinkPostDownloadHandler.cc
  7337. * src/PostDownloadHandler.{h, cc}
  7338. * src/RequestGroup.cc
  7339. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7340. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  7341. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7342. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  7343. stops and there are any unfinished or in-progress downloads.
  7344. Added the legend of "stat".
  7345. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7346. Throw exception when chunck checksum verification fails.
  7347. * src/DownloadCommand.cc (validatePieceHash): New function.
  7348. * src/PiecedSegment.{h, cc} (clear): New function.
  7349. * src/GrowSegment.{h, cc} (clear): New function.
  7350. * src/Segment.h (clear): New function.
  7351. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  7352. * test/SegmentTest.cc
  7353. * test/GrowSegmentTest.cc
  7354. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7355. Do not send referer when redirected.
  7356. * src/Request.cc (redirectUrl)
  7357. * test/RequestTest.cc
  7358. * test/HttpRequestTest.cc
  7359. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7360. Implemented BitTorrent/http/ftp integrated download.
  7361. I've rewritten lots of files and now some headers have forward
  7362. class declarations to reduce compile time.
  7363. The implementation is extremely alpha stage, I recommend to use this
  7364. for testing purpose only.
  7365. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7366. Fixed the compilation error on 64bit platform.
  7367. * test/HttpHeaderProcessorTest.cc
  7368. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7369. Merged Ross's patch that fixes compilation problem in MinGW
  7370. * test/DefaultBtProgressInfoFileTest.cc
  7371. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7372. Updated fr.po by sebone
  7373. * po/fr.po
  7374. Updated man page.
  7375. * doc/aria2c.1.txt
  7376. * Release 0.11.3
  7377. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7378. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  7379. failure in Metalink.
  7380. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7381. Automatically save *.aria2 control file of http/ftp download in every
  7382. 60 seconds.
  7383. * src/AutoSaveCommand.{h, cc}: New class.
  7384. * src/TimeBasedCommand.{h, cc}: New class.
  7385. * src/DownloadEngineFactory.cc (newConsoleEngine)
  7386. Disable parameterized URI support by default. Added -P option to
  7387. enable the feature.
  7388. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  7389. * src/OptionHandlerFactory.cc
  7390. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  7391. Updated Japanese translation.
  7392. * po/ja.po
  7393. Updated man page.
  7394. * doc/aria2c.1.txt
  7395. * Release 0.11.3-rc
  7396. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7397. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  7398. it is successful, then renamed to *.aria2.
  7399. This prevents *.aria2 file from being truncated or corrupted when
  7400. file system becomes out of space.
  7401. * src/DefaultBtProgressInfoFile.cc (save)
  7402. * src/SegmentMan.cc (save)
  7403. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  7404. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7405. Reduced the fragmentation of bitfield in http/ftp download.
  7406. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  7407. * test/BitfieldManTest.cc
  7408. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7409. Added the ability to disable segmented download in .metalink.
  7410. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  7411. 'url' tag.
  7412. * src/MetalinkEntry.{h, cc}
  7413. * src/RequestResource.{h, cc}
  7414. * src/MetalinkRequestInfo.cc
  7415. * src/Xml2MetalinkProcessor.cc
  7416. * test/Xml2MetalinkProcessorTest.cc
  7417. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7418. Added parameterized URI support.
  7419. * src/main.cc: -Z option added.
  7420. * src/OptionHandlerFactory.cc
  7421. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  7422. * src/PStringDatum.h: New class.
  7423. * src/PStringSegment.{h,cc}: New class.
  7424. * src/PStringNumLoop.h: New class.
  7425. * src/PStringSelect.h: New class.
  7426. * src/NumberDecorator.h: New class.
  7427. * src/FixedWidthNumberDecorator.h: New class.
  7428. * src/AlphaNumberDecorator.h: New class.
  7429. * src/PStringVisitor.h: New class.
  7430. * src/PStringBuildVisitor.{h,cc}: New class.
  7431. * src/ParameterizedStringParser.{h,cc}: New class.
  7432. * src/Util.{h,cc}
  7433. (isNumber): New function.
  7434. (isLowercase): New function.
  7435. (isUppercase): New function.
  7436. (alphaToNum): New function.
  7437. * test/ParameterizedStringParserTest.cc: New class.
  7438. * test/AlphaNumberDecoratorTest.cc: New class.
  7439. * test/PStringBuildVisitorTest.cc: New class.
  7440. * test/UtilTest.cc
  7441. (testIsNumber): New function.
  7442. (testIsLowercase): New function.
  7443. (testIsUppercase): New function.
  7444. (testAlphaToNum): New function.
  7445. Added '\n' after the error message
  7446. * src/RequestInfo.h (printDownloadAbortMessage)
  7447. Added auto file renaming feature in http(s)/ftp download.
  7448. * src/main.cc: Added --auto-file-renaming command-line option.
  7449. * src/OptionHandlerFactory.cc
  7450. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  7451. * src/RequestGroup.{h, cc}
  7452. (shouldCancelDownloadForSafety): Rewritten
  7453. (tryAutoFileRenaming): New function.
  7454. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  7455. * src/HttpResponseCommand.cc
  7456. (executeInternal): Removed the call to RequestGroupMan::
  7457. isSameFileBeingDownloaded()
  7458. * src/FtpNegotiateCommand.cc
  7459. (recvSize): Removed the call to RequestGroupMan::
  7460. isSameFileBeingDownloaded()
  7461. * test/RequestGroupTest.cc: New class.
  7462. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7463. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  7464. IO.
  7465. * src/DefaultBtProgressInfoFile.cc
  7466. * src/MetaFileUtil.cc
  7467. * src/SimpleLogger.cc
  7468. * src/SegmentMan.cc
  7469. * src/Util.cc
  7470. * src/Platform.cc
  7471. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7472. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  7473. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7474. Avoid sparse files if possible, because VFAT32 doesn't support it.
  7475. * src/DefaultDiskWriter.cc (initAndOpenFile)
  7476. Fixed the bug that prevents file allocation is not done when
  7477. dowloading multi-torrent file.
  7478. * src/AbstractDiskWriter.cc (openFile)
  7479. Increase the maximum number of -j option from 15 to 45.
  7480. * src/OptionHandlerFactory.cc (createOptionHandlers)
  7481. Added fr.po, thanks to Charles Landemaine.
  7482. * po/fr.po
  7483. * po/LINGUAS
  7484. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  7485. gcc 3.4.4 support:
  7486. * src/DefaultBtContext.cc: int32_t -> int
  7487. * src/main.cc: int -> int32_t, int32_t -> int
  7488. * src/messageDigest.h: uint32_t -> unsigned int
  7489. * src/NameResolver.h: int32_t -> int
  7490. * src/PeerConnection.cc: int -> int32_t
  7491. * src/SpeedCalc.cc: int32_t -> int
  7492. * src/TrackerUpdateCommand.h: int -> int32_t
  7493. * src/Util.cc: int32_t -> int
  7494. * src/Util.h: int32_t -> int
  7495. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  7496. * test/AnnounceListTest.cc: int -> int32_t
  7497. * test/ChunkedEncodingTest.cc: int -> int32_t
  7498. * test/DataTest.cc: int -> int32_t
  7499. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  7500. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  7501. * test/DefaultPieceStorageTest.cc: int -> int32_t
  7502. * test/FeatureConfigTest.cc: int -> int32_t
  7503. * test/MetalinkEntryTest.cc: int -> int32_t
  7504. * test/MockBtRequestFactory.h: int -> int32_t
  7505. * test/MockPieceStorage.h: int -> int32_t
  7506. * test/OptionTest.cc: int -> int32_t
  7507. * test/RequestTest.cc: int -> int32_t
  7508. * test/SegmentManTest.cc: int -> int32_t
  7509. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  7510. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  7511. Move sleep functions to Util class:
  7512. * src/Util.cc
  7513. (sleep): New function.
  7514. (usleep): New function.
  7515. * src/DownloadCommand.cc: sleep -> Util::sleep
  7516. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  7517. MinGW build enhancements. The following files are added:
  7518. * src/timegm.{c,h}
  7519. Changes to support the above new files:
  7520. * configure.ac
  7521. * src/Makefile.am
  7522. * src/a2time.h
  7523. * src/Util.cc:
  7524. * src/strptime.c: Added support for %Z option.
  7525. Fixed MinGW non-blocking bug.
  7526. * src/SocketCore.cc
  7527. * src/HttpRequestCommand.cc
  7528. Miscellenous build fixes/enhancements.
  7529. * configure.ac: Added summary report.
  7530. * src/Platform.h: Tweaked #include's.
  7531. * src/a2netcompat.h: Tweaked #include's.
  7532. * src/strptime.h: Tweaked #include's.
  7533. * src/gai_strerror.c: Tweaked #include's.
  7534. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  7535. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  7536. * src/gettimeofday.h: Added HAVE_CONFIG_H
  7537. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7538. Increased the initial connection size in BitTorrent download to 40.
  7539. * src/BtRuntime.h
  7540. Added the usage message of --peer-id-prefix option.
  7541. * src/main.cc
  7542. * Release 0.11.2
  7543. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7544. MessageDigestHelper is introduced in order to simplify the use
  7545. of message digest. Removed repeated code.
  7546. The message digest algorithm is now specified by string, like "sha1",
  7547. "md5".
  7548. * src/messageDigest.{h, cc}
  7549. * src/MessageDigestHelper.{h, cc}: New class.
  7550. * src/DefaultPieceStorage.cc
  7551. * src/DefaultBtContext.{h, cc}
  7552. (computeFastSet): New function.
  7553. (setInfoHash): Added for unit testing.
  7554. (setNumPieces): Added for unit testing.
  7555. * src/DefaultBtInteractive.cc
  7556. * src/BtPieceMessage.cc
  7557. * src/Peer.cc
  7558. * src/Checksum.h
  7559. * src/message.h
  7560. * src/IteratableChecksumValidator.h
  7561. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  7562. inside it.
  7563. * src/SegmentMan.{h, cc}
  7564. (checkIntegrity): Removed.
  7565. * src/IteratableChunkChecksumValidator.{h, cc}
  7566. * src/Util.h
  7567. (sha1Sum): Removed.
  7568. (simpleMessageDigest): Removed.
  7569. (fileChecksum): Removed.
  7570. (computeFastSet): Removed.
  7571. * src/ShaVisitor.cc
  7572. * src/ChunkChecksum.h
  7573. * src/DownloadCommand.cc
  7574. Removed messageDigest virtual functions.
  7575. * src/MultiDiskAdaptor.{h, cc}
  7576. * src/DiskAdaptor.h
  7577. * src/ByteArrayDiskWriter.h
  7578. * src/DiskWriter.h
  7579. * src/DiskAdaptorWriter.h
  7580. * src/AbstractSingleDiskAdaptor.{h, cc}
  7581. * src/AbstractDiskWriter.{h, cc}
  7582. Fixed comilation error when message digest is disabled.
  7583. * src/MetalinkEntry.{h, cc}
  7584. * src/MetalinkRequestInfo.cc
  7585. Removed srandom and random.
  7586. * src/SimpleRandomizer.h
  7587. Added size() virtual function to DiskAdaptor
  7588. * src/MultiDiskAdaptor.h
  7589. Fixed the bug that causes that files are not opened correctly in
  7590. multi-file torrent.
  7591. * src/TorrentRequestInfo.cc
  7592. * src/MultiDiskAdaptor.cc
  7593. Added SHA256 support
  7594. * src/messageDigest.cc
  7595. * src/Xml2MetalinkProcessor.cc
  7596. Show supported message digest algorithms
  7597. * src/main.cc
  7598. Updated contact info.
  7599. * src/main.cc
  7600. Applied Ross's patch
  7601. * src/a2netcompat.h
  7602. * src/main.cc
  7603. Fixed the bug that prevents a remote metalink from not being processed
  7604. even if '-o foo.metalink' is specified.
  7605. * src/MetalinkRequestInfo.cc
  7606. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7607. Merged Dan's patch:
  7608. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  7609. Use va_copy to avoid core dump on amd64:
  7610. * src/SimpleLogger.cc
  7611. Updated contact info.
  7612. * src/main.cc
  7613. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  7614. digest is not available.
  7615. * src/MetalinkEntry.h
  7616. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7617. Make a2netcompat.h include a2io.h to fix compilation error:
  7618. * src/a2netcompat.h
  7619. * src/SocketCore.cc: Removed include of a2io.h
  7620. * src/Util.cc: Removed include of a2io.h
  7621. Gather time related functions to a2time.h:
  7622. * src/a2time.h: New file.
  7623. * src/DefaultPeerStorage.cc
  7624. * src/SimpleLogger.cc
  7625. * src/Util.{h, cc}
  7626. * src/SimpleRandomizer.h
  7627. * src/TimeA2.{h,cc}
  7628. * src/DownloadCommand.cc
  7629. * src/main.cc
  7630. Removed #ifdef __MINGW32__ since gai_strerror is included in
  7631. a2netcompat.h:
  7632. * src/NameResolver.cc
  7633. Fixed compilation error without openssl:
  7634. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  7635. Added default block to suppress compiler warnings:
  7636. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  7637. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  7638. MinGW build enhancements. The following files are added:
  7639. * src/gai_strerror.{c,h}
  7640. * src/gettimeofday.{c,h}
  7641. Changes to support the above new files:
  7642. * configure.ac
  7643. * src/Makefile.am
  7644. * src/a2netcompat.h
  7645. * src/TimeA2.cc
  7646. * src/DefaultPeerStorage.cc
  7647. * src/NameResolver.cc: removed mingw_strerror() function.
  7648. * src/SocketCore.cc: removed mingw_strerror() function.
  7649. Miscellaneous MinGW build fixes.
  7650. * src/a2io.h: Use _lseeki64() instead of lseek()
  7651. * src/common.h
  7652. * src/DefaultFileAllocator.cc
  7653. * src/GlowFileAllocator.cc
  7654. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  7655. * src/NameResolver.cc
  7656. (callback): Changed int32_t to int.
  7657. (resolve): Changed int32_t to int.
  7658. * src/Platform.cc
  7659. * src/Platform.h
  7660. * test/MultiDiskWriterTest.cc
  7661. * test/PeerMessageUtilTest.cc
  7662. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  7663. Other enhancements and fixes.
  7664. * src/HttpRequestCommand.cc
  7665. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  7666. * src/SocketCore.cc:
  7667. (error): New function to abstract errno/WSAGetLastError().
  7668. (errorMsg): New function to abstract errno/WSAGetLastError().
  7669. (initiateSecureConnection): Added more detailed error reporting.
  7670. * src/SocketCore.h: Added private variable blocking, to allow
  7671. proper handling of OpenSSL psuedo-errors.
  7672. * src/message.h
  7673. (EX_SSL_INIT_FAILURE)
  7674. (EX_SSL_IO_ERROR)
  7675. (EX_SSL_PROTOCOL_ERROR)
  7676. (EX_SSL_UNKNOWN_ERROR)
  7677. (EX_SSL_CONNECT_ERROR)
  7678. (EX_SOCKET_BLOCKING)
  7679. (EX_SOCKET_NONBLOCKING)
  7680. (EX_SOCKET_UNKNOWN_ERROR)
  7681. * src/Util.cc
  7682. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  7683. reserved name.
  7684. (httpGMT): Fixed typo.
  7685. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7686. Merged Ross's win32 patch(manually)
  7687. In the course of merging, following files are added.
  7688. * src/strptime.{h,c}
  7689. * src/libgen.{h,c}
  7690. * src/inet_aton.{h,c}
  7691. * src/Platform.{h,cc}
  7692. * src/localtime_r.{h,c}
  7693. * src/getaddrinfo.{h,c}
  7694. I've gethered network related things, and put them to following file:
  7695. * src/a2netcompat.h
  7696. Also io related things are put to following file:
  7697. * src/a2io.h
  7698. Changed %lld to %s because mingw32 doesn't recognize %lld.
  7699. * src/message.h
  7700. (MSG_ALLOCATION_COMPLETED)
  7701. (EX_TOO_LARGE_FILE)
  7702. (EX_SIZE_MISMATCH)
  7703. (EX_FILE_OFFSET_OUT_OF_RANGE)
  7704. (EX_INVALID_CHUNK_CHECKSUM)
  7705. (EX_INVALID_RANGE_HEADER)
  7706. * src/FileAllocationCommand.cc
  7707. * src/HttpResponse.cc
  7708. * src/RequestGroup.cc
  7709. * src/MultiDiskAdaptor.cc
  7710. * src/OptionHandlerImpl.h
  7711. * src/HttpResponseCommand.cc
  7712. * src/FtpNegotiateCommand.cc
  7713. * src/IteratableChecksumValidator.cc
  7714. * src/SegmentMan.cc
  7715. * src/ChunkChecksumValidator.cc
  7716. Added Randomizer::getRandomNumber(long int)
  7717. * src/Randomizer.h (getRandomNumber)
  7718. * src/SimpleRandomizer.h (getRandomNumber)
  7719. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  7720. * src/Util.cc (randomAlpha): Use this new function.
  7721. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7722. Converted int's to in32_t. long long int's are also converted to
  7723. int64_t
  7724. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7725. Fixed the bug that prevents cookies from being sent to the server
  7726. if the domain of cookie is FQDN and starts with ".".
  7727. * src/Cookie.cc (match)
  7728. To add the ability to change peer id.
  7729. * src/DefaultBtContext.h
  7730. (_peerIdPrefix): New variable
  7731. (setPeerIdPrefix): New function.
  7732. * src/torrentRequestInfo.cc
  7733. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  7734. DefaultBtContext.
  7735. * src/main.cc (main): Added peer-id-prefix command-line option.
  7736. The usage message is not added yet.
  7737. * src/DefaultBtContext.cc
  7738. (generatePeerId): Use _peerIdPrefix.
  7739. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  7740. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7741. Fixed the bug that prevents filename in content-disposition from
  7742. being retrieved when filename is not quoted.
  7743. * src/Util.cc (getContentDispositionFilename)
  7744. Fixed the bug that causes infinate loop and memory leak when file open
  7745. operation failed.
  7746. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  7747. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7748. Fixed the bug that causes segfault when all URIs specified are
  7749. unsupported.
  7750. * src/RequestGroupMan.cc (getInitialCommands)
  7751. Check if RequestGroup::createNextCommand() returns empty list of
  7752. commands.
  7753. * src/RequestGroup.cc (createNextCommand)
  7754. Change log level from info to error so that users can notice that
  7755. an error occurred.
  7756. Fixed the bug that causes segfault when a zero-sized file is
  7757. downloaded.
  7758. * src/BitfieldMan.cc (isAllBitSet)
  7759. Return true if bitfieldLength is 0.
  7760. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7761. * src/main.cc
  7762. (showUsage): Added 3 usage examples for metalink download.
  7763. Replace MetalinkChunkChecksum with ChunkChecksum.
  7764. * src/MetalinkChunkChecksum.h: Removed.
  7765. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  7766. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  7767. * src/Xml2MetalinkProcessor.cc
  7768. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  7769. * src/MetalinkRequestInfo.cc (execute)
  7770. * Release 0.11.1
  7771. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7772. Reads URIs from stdin when "-i -" is specified.
  7773. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  7774. * src/UriListParser.h, src/UriListParser.cc: New class.
  7775. * src/StreamUriListParser.h: New class.
  7776. * src/FileUriListParser.h: New class.
  7777. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  7778. instead of UriFileListParser.
  7779. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7780. Made console readout more readable.
  7781. * src/ConsoleDownloadEngine.cc (sendStatistics)
  7782. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7783. Fix the bug that causes -s option not to work.
  7784. * src/main.cc (main)
  7785. * src/a2algo.h: New file.
  7786. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7787. Create directory structure specified in metalink file.
  7788. * src/RequestGroup.h, src/RequestGroup.cc
  7789. (initAndOpenFile): Create a directory to store files if it does not
  7790. exist.
  7791. (getDir): New function.
  7792. Added ETA and download speed for an individual file to readout.
  7793. * src/ConsoleDownloadEngine.cc (sendStatistics)
  7794. * src/RequestGroup.h
  7795. (calculateDownloadSpeed): New function.
  7796. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7797. Made -S option work with metalink file and provided selective download
  7798. to metalink.
  7799. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  7800. (filename): Removed.
  7801. (file): New variable.
  7802. (size): Removed.
  7803. (operator=): Updated.
  7804. (getPath): New function.
  7805. (getLength): New function.
  7806. (toFileEntry): New function.
  7807. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  7808. (execute): Use toStream.
  7809. (showFileEntry): Removed.
  7810. * src/MetalinkRequestInfo.h
  7811. (targetFiles): New variable.
  7812. (setTargetFiles): New variable.
  7813. * src/MetalinkRequestInfo.cc
  7814. (execute): Added the ability to print file information included in
  7815. a metalink file.
  7816. Added selective download mode to metalink.
  7817. * src/main.cc
  7818. (showUsage): Updated to denote that -S and --select-file options are
  7819. applicable to metalink.
  7820. * src/FileEntry.h
  7821. (operator=): New function.
  7822. (getBasename): New function.
  7823. (getDirname): New function.
  7824. * src/Util.h, src/Util.cc
  7825. (toStream): New function.
  7826. * src/Xml2MetalinkProcessor.cc: Updated.
  7827. Made aria2 work with metalink with directory structure.
  7828. * src/File.h, src/File.cc
  7829. (getBasename): New function.
  7830. (getDirname): New function.
  7831. * src/RequestGroup.h, src/RequestGroup.cc
  7832. (_topDir): New variable.
  7833. (setTopDir): New function.
  7834. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  7835. Rewrote HTTP header parsing with stringstream.
  7836. * src/HttpConnection.h, src/HttpConnection.cc
  7837. (HttpRequestEntry): New class.
  7838. (headerBuf): Removed.
  7839. (headerBufLength): Removed.
  7840. (outstandingHttpRequests): Now its element type is
  7841. HttpRequestEntryHandle.
  7842. (findEndOfHeader): Removed.
  7843. (receiveResponse): Rewritten.
  7844. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  7845. Updated doc for -j option to notice that it should be used with -i
  7846. option.
  7847. * src/main.cc (showUsage)
  7848. Removed unused classes.
  7849. * src/RequestInfo.h
  7850. (FileInfo): Removed.
  7851. (checksum): Removed.
  7852. (fileInfo): Removed.
  7853. (setChecksum): Removed.
  7854. (getChecksum): Removed.
  7855. (getFileInfo): Removed.
  7856. Use ISO units.
  7857. * src/ConsoleDownloadEngine.cc
  7858. * src/TorrentConsoleDownloadEngine.cc
  7859. * src/Util.cc (abbrevSize)
  7860. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7861. Added the default listening ports to the help message.
  7862. * src/main.cc (showUsage)
  7863. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7864. Reduce the number of calls to gettimeofday to lower CPU load.
  7865. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  7866. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  7867. * src/Peer.h (calculateUploadSpeed): New function.
  7868. (calculateDownloadSpeed): New function.
  7869. * src/DefaultPeerStorage.cc
  7870. (CalculateStat): Added _now variable.
  7871. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  7872. and Peer::calculateUploadSpeed(const struct timeval&)
  7873. Drop connection if no request or piece message is exchanged in
  7874. a certain interval.
  7875. * src/DefaultBtInteractive.h
  7876. (btRuntime): New variable.
  7877. (inactiveCheckPoint): New variable.
  7878. (checkActiveInteraction): New function.
  7879. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  7880. request or piece message is received.
  7881. (checkActiveInteraction): New function.
  7882. (doInteractionProcessing): Call checkActiveInteraction.
  7883. Fixed the bug that causes remote Metalink and Torrent files are not
  7884. processed.
  7885. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  7886. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7887. Changed format of log file.
  7888. * src/SimpleLogger.cc
  7889. * Release 0.11.0
  7890. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7891. * src/AbstractCommand.cc
  7892. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  7893. MSG_MAX_TRY from error to info.
  7894. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  7895. * src/message.h
  7896. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  7897. (MSG_DOWNLOAD_ABORTED): Added %s.
  7898. (MSG_RESTARTING_DOWNLOAD): Added %s.
  7899. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  7900. * src/PeerAbstractCommand.cc
  7901. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  7902. * src/Request.h
  7903. (cookieBox): Made ShardHandle.
  7904. * src/RequestGroup.h, src/RequestGroup.cc
  7905. (createNextCommandWithAdj): New function.
  7906. * src/FileAllocationCommand.cc
  7907. (executeInternal): Use createNextCommandWithAdj().
  7908. * src/CheckIntegrityCommand.cc
  7909. (executeInternal): Use createNextCommandWithAdj().
  7910. Added --load-cookies command-option.
  7911. * src/OptionHandlerFactory.cc
  7912. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  7913. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  7914. Now aria2 can handle cookie's expiration date.
  7915. * src/Cookie.h (expires): Changed its type to time_t.
  7916. * src/main.cc: Added --load-cookies command-line option.
  7917. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  7918. * src/Util.h, src/Util.cc (httpGMT): New function.
  7919. * src/Request.cc (Request): Initialize cookieBox using
  7920. CookieBoxFactory.
  7921. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  7922. * src/CookieParser.h, src/CookieParser.cc: New class.
  7923. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  7924. * src/HttpResponseCommand.cc
  7925. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  7926. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  7927. download.
  7928. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7929. Added -j command-line option.
  7930. * src/OptionHandlerFactory.cc (createOptionHandlers)
  7931. * src/main.cc
  7932. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  7933. Rewritten using stringstream.
  7934. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  7935. Rewritten using stringstream.
  7936. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7937. Make download size shown in MB, KB.
  7938. * src/ConsoleDownloadEngine.h (sendStatistics)
  7939. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  7940. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7941. Accept incoming connections if download rate is low.
  7942. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  7943. (_lowestSpeedLimit): New variable.
  7944. (setLowestSpeedLimit): New function.
  7945. (execute): Accept incoming connections if download rate is low.
  7946. MAX_PEERS is ignored in this case.
  7947. Disable PREF_OUT in multiple concurrent download:
  7948. * src/RequestGroup.h, src/RequestGroup.cc
  7949. (setUserDefinedFilename): New function.
  7950. * src/DownloadEngineFactory.cc
  7951. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  7952. concurrent download.
  7953. * src/DefaultSegmentManFactory.cc
  7954. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  7955. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7956. RequestGroup::getNextCommand() was renamed to createNextCommand().
  7957. Added its overloaded method.
  7958. * src/RequestGroup.h
  7959. (_numConcurrentCommand): New variable.
  7960. (setNumConcurrentCommand): New function.
  7961. * src/RequestGroup.cc
  7962. Abort download if same file is being downloaded concurrently.
  7963. * src/RequestGroup.h, src/RequestGroupMan.cc
  7964. (isSameFileBeingDownloaded): New function.
  7965. * src/HttpResponseCommand.cc (executeInternal)
  7966. * src/FtpNegotiateCommand.cc (recvSize)
  7967. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  7968. * main.cc: Added help message for -i option.
  7969. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7970. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  7971. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  7972. * src/MetalinkEntry.h
  7973. (checksum): Changed to ChecksumHandle
  7974. * src/MetalinkRequestInfo.cc
  7975. (checksum): Changed to ChecksumHandle
  7976. * src/File.cc
  7977. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  7978. * src/common.h
  7979. (DIR_OPEN_MODE): New definition
  7980. * src/RequestGroup.cc
  7981. (prepareForNextAction): Added an argument.
  7982. * src/message.h
  7983. (MSG_GOOD_CHECKSUM): New definition
  7984. (MSG_BAD_CHECKSUM): New definition
  7985. * src/HttpResponseCommand.cc
  7986. (handleDefaultEncoding): Continue download sequence in new
  7987. non-segmented download.
  7988. * src/FileAllocationEntry.h
  7989. (_nextDownloadCommand): New variable.
  7990. * src/DownloadCommand.cc
  7991. (prepareForNextSegment): Create ChecksumCommand if checksum is
  7992. available.
  7993. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  7994. * src/IteratableChecksumValidator.h,
  7995. src/IteratableChecksumValidator.cc: New class.
  7996. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  7997. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7998. Change file mode to 666:
  7999. * src/common.h (OPEN_MODE): New definition.
  8000. * src/File.cc
  8001. * src/Util.cc
  8002. * src/Directry.cc
  8003. * src/AbstractDiskWriter.cc
  8004. Change the level of log message "download aborted" to debug:
  8005. * src/PeerAbstractCommand.cc (execute)
  8006. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  8007. * src/TrackerWatcherCommand.cc
  8008. (createCommand): Sleep some seconds after request failed.
  8009. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  8010. then abort tracker request.
  8011. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8012. * Added the simultaneous download feature.
  8013. * src/main.cc: Print "Exception caught: " when exception is caught.
  8014. Use CUIDCounter instead of BtRuntime::getNewCuid():
  8015. * src/ActivePeerConnectionCommand.cc
  8016. * src/PeerInteractionCommand.cc
  8017. * src/BtRuntime.h
  8018. (cuidCounter): Removed.
  8019. (getNewCuid): Removed.
  8020. * src/DownloadEngineFactory.cc
  8021. * src/PeerListenCommand.cc
  8022. * src/TrackerUpdateCommand.cc
  8023. * src/PeerInitiateConnectionCommand.cc
  8024. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8025. * src/PeerAbstractCommand.cc
  8026. (onAbort): Call PeerStorage::returnPeer()
  8027. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  8028. (incomingPeers): New variable.
  8029. (addIncomingPeer): New function.
  8030. (returnPeer): New function.
  8031. (onErasingPeer): New function.
  8032. (addPeer): push_back -> push_front
  8033. (getActivePeers): Rewritten.
  8034. (calculateStat): Rewritten.
  8035. * src/PeerStorage.h
  8036. (TransferStat::copy): New function.
  8037. (TransferStat::TransferStat): New function.
  8038. (TransferStat::operator=): New function.
  8039. (addIncomingPeer): New function.
  8040. (returnPeer): New function.
  8041. * src/PeerListenCommand.cc
  8042. (execute): Use PeerStorage::addIncomingPeer() instead of
  8043. Peer::addPeer().
  8044. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8045. Connect to a peer actively when download speed is lower than specified
  8046. speed in torrent download:
  8047. * src/ActivePeerConnectionCommand.h: New class.
  8048. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8049. * src/HttpRequest.cc (createRequest): url-encode user-agent
  8050. * src/main.cc: Fixed the bug that prevents download if .netrc
  8051. doesn't exist.
  8052. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8053. To cache resolved hostname:
  8054. * src/AbstractCommand.h, src/AbstractCommand.cc
  8055. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  8056. Added dns cache.
  8057. * src/FtpInitiateConnectionCommand.cc
  8058. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  8059. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  8060. NameResolver working without ares.
  8061. * src/TorrentRequestInfo.cc
  8062. (execute): Don't cache dns in torrent download.
  8063. * src/HttpInitiateConnectionCommand.cc
  8064. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  8065. * src/DNSCache.h: New class.
  8066. * src/UrlRequestInfo.cc
  8067. (execute): Use dns cache.
  8068. In http request, suppress port number in http request header if port
  8069. is 80 or 443:
  8070. * src/HttpRequest.cc (getHostText): Suppress port number in http
  8071. request header if port is 80 or 443.
  8072. (createProxyRequest): Allways send port number.
  8073. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8074. To add the command-line option which disables netrc support:
  8075. * src/OptionHandlerFactory.cc
  8076. (createOptionHandlers): Added PREF_NO_NETRC.
  8077. * src/main.cc: Added -n option.
  8078. * src/prefs.h (PREF_NO_NETRC): New definition.
  8079. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  8080. V_TRUE.
  8081. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  8082. is V_FALSE. This may get configurable in the future release.
  8083. To clear peer's error status by time basis:
  8084. * src/PeerAbstractCommand.cc
  8085. (onAbort): Call Peer::startBadCondition().
  8086. * src/Peer.h, src/Peer.cc
  8087. (error): Removed.
  8088. (_badConditionStartTime): New variable.
  8089. (_badConditionInterval): New variable. Initialized to 10 seconds.
  8090. (startBadCondition): New function.
  8091. (isGood): New function.
  8092. * src/DefaultPeerStorage.cc
  8093. (addPeer): Use Peer::isGood().
  8094. (FindFinePeer): Use Peer::isGood().
  8095. Always include port number in http request header:
  8096. * src/HttpRequest.cc (getHostText): Always include port number in
  8097. http request header.
  8098. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8099. To the ability to read options from a config file:
  8100. * src/main.cc: Command-line parameter validation is delegated to
  8101. OptionHandler class.
  8102. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  8103. * src/Option.h, src/Option.cc (clear): New function.
  8104. * src/OptionParser.h, src/OptionParser.cc: New class.
  8105. * src/OptionHandler.h: New class.
  8106. * src/NameMatchOptionHandler.h: New class.
  8107. * src/OptionHandlerImpl.h: New classes.
  8108. * src/prefs.h: '_' -> '-'
  8109. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  8110. (FTP_PASV): New definition.
  8111. * src/Util.h, src/Util.cc (getRealSize): New function.
  8112. To disable netrc support if .netrc file does not have correct
  8113. permissions:
  8114. * src/File.h, src/File.cc (mode): New function.
  8115. To prevent confidential information to be logged:
  8116. * src/HttpConnection.h, src/HttpConnection.cc
  8117. (eraseConfidentialInfo): New function.
  8118. (sendRequest): Call eraseConfidentialInfo().
  8119. (sendProxyRequest): Call eraseConfidentialInfo().
  8120. * src/main.cc: Validate permissions of .netrc file.
  8121. To add --user-agent command-line option:
  8122. * src/main.cc: Added new command line option: --user-agent
  8123. * src/prefs.h (PREF_USER_AGENT): New definition.
  8124. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  8125. parameter to HttpRequest object.
  8126. * src/AbstractProxyRequestCommand.cc
  8127. (executeInternal): Set user-agent option parameter to HttpRequest
  8128. object.
  8129. Marged the patches from Dan Fandrich.
  8130. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8131. Use filename and size from Metalink file instead of sending HEAD
  8132. request:
  8133. * src/UrlRequestInfo.h
  8134. (_filename): New variable.
  8135. (_totalLength): New variable.
  8136. (setTotalLength): New variable.
  8137. (setFilename): New variable.
  8138. * src/MetalinkRequestInfo.cc
  8139. (execute): Set filename and size to UrlRequestInfo
  8140. * src/UrlRequestInfo.cc
  8141. (execute): Use filename and size from Metalink instead of seding
  8142. HEAD request to servers.
  8143. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8144. To add the ability to resume downloading a partially downloaded file
  8145. which is downloaded from the beginning:
  8146. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  8147. takes this role.
  8148. * src/main.cc: Added -c option.
  8149. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  8150. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  8151. * src/prefs.h (PREF_CONTINUE): New definition.
  8152. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  8153. * src/DefaultDiskWriter.cc
  8154. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  8155. * src/AbstractDiskWriter.h
  8156. (glowFileAllocator): New variable.
  8157. * src/AbstractDiskWriter.cc
  8158. (openExistingFile): Now preallocate file space from the end of the
  8159. existing file if totalLength argument is specified and grater than 0.
  8160. * src/UrlRequestInfo.cc: If -c option is specified and the file
  8161. to download exists in local, continue the download of the file.
  8162. --allow-overwrite=true is assumed in this context.
  8163. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  8164. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  8165. Throw exception if --check-integrity=true is specified but chunk
  8166. checksums are not provided:
  8167. * src/UrlRequestInfo.cc
  8168. Do not print URLs to stdout:
  8169. * src/UrlRequestInfo.cc
  8170. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8171. * src/Request.h: Use AuthResolver to get authentication information.
  8172. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  8173. set to RequestFactory object.
  8174. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  8175. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  8176. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  8177. create Request object.
  8178. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  8179. To integrate Netrc into exsiting classes:
  8180. * src/Request.h
  8181. (_userDefinedAuthConfig): New variable.
  8182. (findNetrcAuthenticator): New function.
  8183. (segment): Removed.
  8184. (setUserDefinedAuthConfig): New function.
  8185. (resolveHttpAuthConfigItem): New function.
  8186. (resolveFtpAuthConfigItem): New function.
  8187. (resolveHttpProxyAuthConfigItem): New function.
  8188. * src/HttpRequest.h
  8189. (authConfig): Removed.
  8190. (proxyAuthConfig): Removed.
  8191. (setAuthConfig): Removed.
  8192. (setProxyAuthConfig): Removed.
  8193. * src/UrlRequest.h
  8194. (getHeadResult): Added a parameter: authConfigHandle
  8195. * src/common.h
  8196. (SingletonHolder.h): New include.
  8197. * src/main.cc
  8198. (Netrc.h): New include.
  8199. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  8200. Added initial value of PREF_NETRC_PATH.
  8201. Added the initialization of netrc.
  8202. * src/AuthConfig.h: New class.
  8203. * src/prefs.h
  8204. (PREF_NETRC_PATH): New definition.
  8205. * src/HttpAuthConfig.h: Removed.
  8206. * src/Netrc.cc
  8207. (getRequiredNextToken): New function.
  8208. (skipMacdef): New function.
  8209. (parse): Rewritten.
  8210. * src/Netrc.h
  8211. (getRequiredNextToken): New function.
  8212. (skipMacdef): New function.
  8213. * src/Util.h, src/Util.cc
  8214. (getHomeDir): New function.
  8215. * src/TrackerWatcherComand.cc
  8216. (createRequestCommand): Use AuthConfig.
  8217. * src/FtpConnection.cc
  8218. (sendUser): Use Request::resolveFtpAuthConfigItem().
  8219. (sendPass): Use Request::resolveFtpAuthConfigItem().
  8220. * src/Request.cc
  8221. (findNetrcAuthenticator): New function.
  8222. (resolveHttpAuthConfigItem): New function.
  8223. (resolveFtpAuthConfigItem): New function.
  8224. (resolveHttpProxyAuthConfigItem): New function.
  8225. * src/UrlRequestInfo.cc: Use AuthConfig.
  8226. * src/HttpRequest.cc
  8227. (createRequest): Use authConfig.
  8228. (getProxyAuthString): Use authConfig.
  8229. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  8230. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  8231. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8232. To reduce overhead to find commands whose socket is either
  8233. readable or writable in the download engine loop:
  8234. * src/Command.h, src/Command.cc
  8235. (STATUS): New enum.
  8236. (status): New variable.
  8237. (statusMatch): New function.
  8238. (setStatusActive): New function.
  8239. (setStatusInactive): New function.
  8240. * src/DownloadEngine.h, src/DownloadEngine.cc
  8241. (executeCommand): New function.
  8242. (run): Simplified.
  8243. (waitData): Call Command::setStatusActive() when command's socket is
  8244. readable or writable.
  8245. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8246. To handle Segment as SegmentHandle:
  8247. * src/AbstractCommand.cc (execute): Rewritten.
  8248. * src/SegmentMan.h: Segment -> SegmentHandle
  8249. Introducded HttpResponse class, HttpRequest class to improve code
  8250. extensiveness and make it clear:
  8251. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  8252. HttpResponse class.
  8253. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  8254. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  8255. * src/HttpConnection.cc: Contruction of http request were moved to
  8256. HttpRequest class.
  8257. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  8258. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  8259. * src/HttpAuthConfig.h: New class.
  8260. * src/Range.h: New class.
  8261. To make FtpTunnel{Request, Response}Command and
  8262. HttpProxy{Request, Response}Command derived from
  8263. AbstractProxy{Request, Response}Command:
  8264. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  8265. Derived from AbstractProxyRequestCommand class.
  8266. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  8267. Derived from AbstractProxyResponseCommand class.
  8268. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  8269. Derived from AbstractProxyRequestCommand class.
  8270. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  8271. Derived from AbstractProxyResponseCommand class.
  8272. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  8273. : New class.
  8274. * src/AbstractProxyResponseCommand.h,
  8275. src/AbstractProxyResponseCommand.cc: New class.
  8276. To add netrc support:
  8277. * src/Netrc.h, src/Netrc.cc: New class.
  8278. * src/Util.h, src/Util.cc (split): New function.
  8279. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  8280. "Content-Range" header instead of "Range" header.
  8281. * src/HttpHeader.h
  8282. (getStatus): Removed.
  8283. (setStatus): Removed.
  8284. * src/Segment.h
  8285. (getPositionToWrite): New function.
  8286. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8287. * src/HttpHeader.h
  8288. (Range.h): New include.
  8289. (status): New variable.
  8290. (HttpHeader): Initialized status with 0.
  8291. (getStatus): New function.
  8292. (setStatus): New function.
  8293. (getRange): New function.
  8294. (HttpHeaderHandle): New function.
  8295. * src/HttpHeader.cc
  8296. (getRange): New function.
  8297. * src/Request.h
  8298. (RequestWeakHandle): New definition.
  8299. * src/HttpConnection.h
  8300. (HttpConnectionHandle): New type definition.
  8301. * src/HttpConnection.cc
  8302. (receiveResponse): Set HTTP status to headers.
  8303. * src/main.cc
  8304. (showUsage): Fixed typo.
  8305. * src/Segment.h
  8306. (SegmentHandle): New type definition.
  8307. * src/BitfieldMan.h
  8308. (getMissingUnusedLength): New function.
  8309. * src/BitfieldMan.cc
  8310. (getMissingUnusedLength): New function.
  8311. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8312. To fix static initialization order problem:
  8313. * src/BitfieldManFactory.h
  8314. (defaultRandomizer): Removed.
  8315. (factory): New variable.
  8316. (getNewFactory): Removed.
  8317. (getFactoryInstance): New function.
  8318. (setDefaultRandomizer): Rewritten.
  8319. (getDefaultRandomizer): Rewritten.
  8320. * src/BitfieldManFactory.cc
  8321. (defaultRandomizer): Removed.
  8322. (factory): Initialized to 0.
  8323. (BitfieldManFactory): Initialized randomizer to 0.
  8324. * src/DefaultPieceStorage.cc
  8325. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  8326. * src/Peer.cc
  8327. (Peer): getNewFactory() -> getFactoryInstance()
  8328. * src/SegmentMan.cc
  8329. (initBitfield): getNewFactory() -> getFactoryInstance()
  8330. * src/Piece.cc
  8331. (Piece): getNewFactory() -> getFactoryInstance()
  8332. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8333. To fix the bug that causes crash on Max OS X:
  8334. * src/SimpleRandomizer.h
  8335. (getInstance): Create new instance if the static variable is null.
  8336. * src/SimpleRandomizer.cc
  8337. (randomizer): Initialized to 0.
  8338. * src/BitfieldManFactory.h
  8339. (getNewFactory): Removed the call to setRandomizer().
  8340. To fix the miscalculation of the range of checksum:
  8341. * src/BitfieldMan.h
  8342. (isBitSetOffsetRange): New function.
  8343. * src/BitfieldMan.cc
  8344. (isBitSetOffsetRange): New function.
  8345. * src/SegmentMan.cc
  8346. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  8347. Use bitfield->getBlockLength() instead of segment.segmentLength.
  8348. * Release 0.10.1
  8349. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8350. To lower CPU usage in BitTorrent download when --max-upload-limit
  8351. command-line option specified:
  8352. * src/DefaultBtMessageDispatcher.cc
  8353. (sendMessages): Calculate uploading speed only when current message
  8354. is uploading data and is not sent yet.
  8355. * src/DefaultPeerStorage.h
  8356. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  8357. * src/HttpResponseCommand.cc
  8358. (handleDefaultEncoding): Added the cast to int32_t to itos.
  8359. This fixes compile error in Soralis 10.
  8360. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8361. To fix segfault in Metalink download:
  8362. * src/UrlRequestInfo.h
  8363. (filename): Removed.
  8364. (totalLength): Removed.
  8365. (setTotalLength): Removed.
  8366. (setFilename): Removed.
  8367. * src/MetalinkRequestInfo.cc
  8368. (execute): Do not set filename and totalLength to reqInfo.
  8369. Set chunk checksum to reqInfo if it is not null.
  8370. * src/HttpResponseCommand.cc
  8371. (executeInternal): Fixed filename in log.
  8372. (handleDefaultEncoding): Removed the call to initBitfield() and
  8373. markAllPiecesDone().
  8374. (handleOtherEncoding): Added HEAD method handling.
  8375. * src/FtpNegotiateCommand.cc
  8376. (executeInternal): Added SEQ_HEAD_OK handling.
  8377. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  8378. return false.
  8379. * src/FtpNegotiateCommand.h
  8380. (SEQ_HEAD_OK): New definition.
  8381. * src/SegmentMan.cc
  8382. (initBitfield): Delete bitfield.
  8383. (isChunkChecksumValidationReady): Fixed the condition.
  8384. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  8385. works fine.
  8386. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8387. * src/Xml2MetalinkProcessor.h
  8388. (xpathExists): New function.
  8389. * src/Xml2MetalinkProcessor.cc
  8390. (xpathExists): New function.
  8391. Not to send HEAD request if filename and size are available in Metalink
  8392. file:
  8393. * src/UrlRequestInfo.h
  8394. (filename): New variable.
  8395. (totalLength): New variable.
  8396. (setTotalLength): New function.
  8397. (setFilename): New function.
  8398. * src/MetalinkRequestInfo.cc
  8399. (execute): Set filename and size to UrlRequestInfo.
  8400. * src/MetalinkEntry.cc
  8401. (MetalinkEntry): Initialize size with 0.
  8402. * src/UrlRequestInfo.cc
  8403. (execute): Set filename and size to SegmentMan.
  8404. Not to download rest of the files after selected files are downloaded
  8405. in BitTorrent:
  8406. * src/PieceStorage.h
  8407. (allDownloadFinished): New function.
  8408. * src/DefaultBtAnnounce.cc
  8409. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  8410. downloadFinished.
  8411. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  8412. * src/DefaultPieceStorage.cc
  8413. (completePiece): Use allDownloadFinished instead of downloadFinished.
  8414. Commented out the call to finishSelectiveDownloadingMode().
  8415. (downloadFinished): Call isFilteredAllBitSet() instead of
  8416. isAllBitSet().
  8417. (allDownloadFinished): New function.
  8418. * src/DefaultBtInteractive.cc
  8419. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  8420. downloadFinished().
  8421. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  8422. * src/TorrentDownloadEngine.cc
  8423. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  8424. * src/BitfieldMan.h
  8425. (isFilteredAllBitSet): New function.
  8426. * src/ShareRatioSeedCriteria.h
  8427. (PieceStorage.h): New include.
  8428. (pieceStorage): New variable.
  8429. (evaluate):
  8430. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  8431. * src/BitfieldMan.cc
  8432. (isFilteredAllBitSet): New function.
  8433. (isAllBitSet): Filter is not took into account.
  8434. Rename --force-truncate as --allow-overwrite:
  8435. * src/TorrentRequestInfo.cc
  8436. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  8437. * src/main.cc
  8438. (showUsage): --force-truncate -> --allow-overwrite
  8439. * src/message.h
  8440. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  8441. * src/prefs.h
  8442. (PREF_FORCE_TRUNCATE): Removed.
  8443. (PREF_ALLOW_OVERWRITE): New definition.
  8444. * src/SegmentMan.cc
  8445. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  8446. * src/MetalinkRequestInfo.cc
  8447. (execute): Queueing message are now logged in info level.
  8448. * src/common.h
  8449. (LONG_LONG_MAX): Removed.
  8450. (LONG_LONG_MIN): Removed.
  8451. * src/HttpResponseCommand.cc
  8452. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  8453. * src/FtpNegotiateCommand.cc
  8454. (recvSize): LONG_LONG_MAX -> INT64_MAX
  8455. * src/main.cc
  8456. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  8457. command-line option.
  8458. (main): Added --check-integriy and --realtime-chunk-checksum
  8459. command-line option.
  8460. --force-truncate -> --allow-overwrite
  8461. Set initial value of --check-integrity option to false.
  8462. Don't show usage when error occurs while persing command-line options.
  8463. Removed deprecated --upload-limit option.
  8464. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8465. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  8466. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  8467. * src/BtAllowedFastMessage.cc:
  8468. * src/BtBitfieldMessage.cc
  8469. * src/BtCancelMessage.cc
  8470. * src/BtChokeMessage.cc
  8471. * src/BtHaveAllMessage.cc
  8472. * src/BtHaveMessage.cc
  8473. * src/BtHaveNoneMessage.cc
  8474. * src/BtInterestedMessage.cc
  8475. * src/BtNotInterestedMessage.cc
  8476. * src/BtPieceMessage.cc
  8477. * src/BtPortMessage.cc
  8478. * src/BtRejectMessage.cc
  8479. * src/BtRequestMessage.cc
  8480. * src/BtSuggestPieceMessage.cc
  8481. * src/BtUnchokeMessage.cc
  8482. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  8483. files are affected.
  8484. * src/ChunkChecksumValidator.cc
  8485. * src/SegmentMan.cc
  8486. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8487. To add chunk checksum validation:
  8488. * src/MetalinkEntry.h
  8489. (MetalinkChunkChecksum.h): New include.
  8490. (chunkChecksum): New variable.
  8491. * src/Request.h
  8492. (method): New variable.
  8493. (setMethod): New function.
  8494. (getMethod): New function.
  8495. (METHOD_GET): New static constant.
  8496. (METHOD_HEAD): New static constant.
  8497. * src/Xml2MetalinkProcessor.h
  8498. (getPieceHash): New function.
  8499. * src/PieceStorage.h
  8500. (markAllPiecesDone): New function.
  8501. (checkIntegrity): New function.
  8502. * src/FileAllocator.h
  8503. (NullFileAllocationMonitor.h): New include.
  8504. (FileAllocator): Initialize fileAllocationMonitor with new
  8505. NullFileAllocationMonitor().
  8506. * src/MultiDiskAdaptor.h
  8507. (messageDigest.h): Remove include.
  8508. (ctx): Removed.
  8509. (hashUpdate): Added ctx.
  8510. (MultiDiskAdaptor): Removed ctx.
  8511. (sha1Sum): Renamed as messageDigest.
  8512. (messageDigest): New function.
  8513. * src/UrlRequestInfo.h
  8514. (HeadResult): New class.
  8515. (digestAlgo): New variable.
  8516. (chunkChecksumLength): New variable.
  8517. (chunkChecksums): New variable.
  8518. (getHeadResult): New function.
  8519. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  8520. (setDigestAlgo): New function.
  8521. (setChunkChecksumLength): New function.
  8522. (setChunkChecksums): New function.
  8523. * src/DefaultPieceStorage.cc
  8524. (DiskAdaptorWriter.h): New include.
  8525. (ChunkChecksumValidator.h): New include.
  8526. (markAllPiecesDone): New function.
  8527. (checkIntegrity): New function.
  8528. * src/DefaultBtContext.h
  8529. (getPieceHashes): New function.
  8530. * src/TorrentRequestInfo.cc
  8531. (execute): Try to validate chunk checksum if file already exists and
  8532. .aria2 file doesn't there and user allows aria2 to overwrite it.
  8533. * src/messageDigest.h
  8534. (~MessageDigestContext): Added digestFree().
  8535. * src/MetalinkRequestInfo.cc
  8536. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  8537. * src/DiskAdaptor.h
  8538. (messageDigest.h): New include.
  8539. (sha1Sum): Renamed as messageDigest.
  8540. (messageDigest): New function.
  8541. * src/DownloadCommand.h
  8542. (PeerStat.h): New include.
  8543. (maxDownloadSpeedLimit): New variable.
  8544. (startupIdleTime): New variable.
  8545. (lowestDownloadSpeedLimit): New variable.
  8546. (peerStat): New variable.
  8547. (setMaxDownloadSpeedLimit): New function.
  8548. (setStartupIdleTime): New function.
  8549. (setLowestDownloadSPeedLimit): New function.
  8550. * src/BtContext.h
  8551. (getPieceHashes): New function.
  8552. * src/main.cc
  8553. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  8554. option to true for testing purpose.
  8555. * src/BtPieceMessage.cc
  8556. (checkPieceHash): Use messageDigest
  8557. * src/DownloadEngine.cc
  8558. (SetDescriptor): Removed.
  8559. (AccumulateActiveCommand): Removed.
  8560. (waitData): Rewritten.
  8561. (updateFdSet): Rewritten.
  8562. * src/MultiDiskAdaptor.cc
  8563. (hashUpdate): Added ctx.
  8564. (sha1Sum): Renamed as messageDigest.
  8565. (messageDigest): New function.
  8566. * src/BitfieldMan.h
  8567. (isBitRangeSet): New function.
  8568. (unsetBitRange): New function.
  8569. * src/ByteArrayDiskWriter.h
  8570. (sha1Sum): Renamed as messageDigest.
  8571. (messageDigest): New function.
  8572. * src/ConsoleDownloadEngine.cc
  8573. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  8574. * src/DiskWriter.h
  8575. (messageDigest.h): New include.
  8576. (sha1Sum): Renamed as messageDigest.
  8577. (messageDigest): New function.
  8578. * src/ChunkChecksumValidator.h: New class.
  8579. * src/DiskAdaptorWriter.h: New class.
  8580. * src/prefs.h
  8581. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  8582. (PREF_CHECK_INTEGRITY): New definition.
  8583. * src/HttpResponseCommand.cc
  8584. (handleDefaultEncoding): Added method "HEAD" handling.
  8585. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8586. (handleOtherEncoding):
  8587. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  8588. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  8589. startupIdleTime, lowestDownloadSpeedLimit to command.
  8590. * src/SegmentMan.h
  8591. (getSegmentEntryByIndex): New function.
  8592. (getSegmentEntryByCuid): New function.
  8593. (getSegmentEntryIteratorByCuid): New function.
  8594. (diskWriter): DiskWriter -> DiskWriterHandle
  8595. (pieceHashes): New variable.
  8596. (chunkHashLength): New variable.
  8597. (digestAlgo): New variable.
  8598. (FindPeerStat): Removed.
  8599. (getPeerStat): Rewritten.
  8600. (markAllPiecesDone): New function.
  8601. (checkIntegrity): New function.
  8602. (tryChunkChecksumValidation): New function.
  8603. (isChunkChecksumValidationReady): New function.
  8604. * src/BitfieldMan.cc
  8605. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  8606. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  8607. blocks to 0.
  8608. (isBitRangeSet): New function.
  8609. (unsetBitRange): New function.
  8610. * src/FtpNegotiateCommand.cc
  8611. (executeInternal): Set maxDownloadSpeedLimit,
  8612. startupIdleTime, lowestDownloadSpeedLimit to command.
  8613. (recvSize): Added method "HEAD" handling.
  8614. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8615. * src/AbstractSingleDiskAdaptor.cc
  8616. (sha1Sum): Renamed as messageDigest.
  8617. (messageDigest): New function.
  8618. * src/AbstractSingleDiskAdaptor.h
  8619. (sha1Sum): Renamed as messageDigest.
  8620. (messageDigest): New function.
  8621. * src/Util.h
  8622. (indexRange): New function.
  8623. * src/MetalinkEntry.cc
  8624. (MetalinkEntry): Initialized chunkChecksum to 0.
  8625. * src/ShaVisitor.cc
  8626. (~ShaVisitor): Removed the call to ctx.digestFree().
  8627. * src/SegmentMan.cc
  8628. (ChunkChecksumValidator.h): New include.
  8629. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  8630. to DIGEST_ALGO_SHA1.
  8631. (~SegmentMan): Removed diskWriter.
  8632. (FindSegmentEntryByIndex): Removed.
  8633. (FindSegmentEntryByCuid): Removed.
  8634. (checkoutSegment): Rewritten.
  8635. (findSlowerSegmentEntry): Rewritten.
  8636. (getSegment): Rewritten.
  8637. (updateSegment): Rewritten.
  8638. (completeSegment): Rewritten.
  8639. (markAllPiecesDone): New function.
  8640. (checkIntegrity): New function.
  8641. (isChunkChecksumValidationReady): New function.
  8642. (tryChunkChecksumValidation): New function.
  8643. * src/Xml2MetalinkProcessor.cc
  8644. (getEntry): Get size and set it to entry.
  8645. Get chunk checksum and set it to entry.
  8646. (getPieceHash): New function.
  8647. * src/Util.cc
  8648. (sha1Sum): Removed ctx.digestFree()
  8649. (fileChecksum): Removed ctx.digestFree()
  8650. (indexRange): New function.
  8651. * src/Request.cc
  8652. (METHOD_GET): New variable.
  8653. (METHOD_HEAD): New variable.
  8654. (Request): Added method.
  8655. * src/UrlRequestInfo.cc
  8656. (FatalException.h): New include.
  8657. (message.h): New include.
  8658. (operator<<): Added operator<< for class HeadResult.
  8659. (getHeadResult): New function.
  8660. (execute): Get filename and size in separate download engine.
  8661. * src/ChunkChecksumValidator.cc: New class.
  8662. * src/DownloadCommand.cc:
  8663. (DownloadCommand): Added peerStat.
  8664. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  8665. the value from Option.
  8666. The buffer size is now 16KB.
  8667. Use peerStat member instead of getting it from SegmentMan.
  8668. Use startupIdleTime member instead of gettingit from Option.
  8669. Added chunk checksum validation.
  8670. * src/AbstractDiskWriter.cc
  8671. (AbstractDiskWriter): Removed ctx.
  8672. (~AbstractDiskWriter): Removed ctx.digestFree()
  8673. (writeDataInternal): Returns the return value of write.
  8674. (readDataInternal): Returns the return value of read.
  8675. (sha1Sum): Renamed as messageDigest
  8676. (messageDigest): New function.
  8677. * src/AbstractDiwkWriter.h
  8678. (messageDigest.h): Removed include.
  8679. (ctx): Removed.
  8680. (sha1Sum): Renamed as messageDigest
  8681. (messageDigest): New function.
  8682. * src/DefaultPieceStorage.h
  8683. (markAllPiecesDone): New function.
  8684. (checkIntegrity): New function.
  8685. * src/NullFileAllocationMonitor.h: New class.
  8686. * src/MetalinkChunkChecksum.h: New class.
  8687. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8688. To decrease CPU usage in bittorrent download, calculation results in
  8689. BitfieldMan were cached and realtime fetching PeerObject was removed
  8690. with WeakHandle introduced. Option values are set to the objects
  8691. by setter before download begins.
  8692. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  8693. * src/DefaultBtRequestFactory.h
  8694. (dispatcher): BtMessageDispatcherHandle ->
  8695. BtMessageDispatcherWeakHandle.
  8696. (messageFactory): New variable.
  8697. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  8698. BtMessageDispatcherWeakHandle.
  8699. (setBtMessageFactory): New function.
  8700. * src/DefaultBtMessageDispatcher.cc:
  8701. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  8702. from Option.
  8703. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  8704. feating the value from Option.
  8705. Use messageFactory member.
  8706. * src/PeerInteractionCommand.cc
  8707. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  8708. Add reverse dependencies to factory object.
  8709. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  8710. dispatcher.
  8711. Set messageFactory to receiver.
  8712. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  8713. btInteractive.
  8714. Set receiver to peerObject.
  8715. Set maxDownloadSpeedLimit to this.
  8716. (executeInternal): Use maxDownloadSpeedLimit member.
  8717. * src/BtChokeMessage.cc
  8718. (doReceivedAction): Use dispatcher, requestFactory member.
  8719. (onSendComplete): Use dispatcher member.
  8720. * src/PeerInteractionCommand.h
  8721. (maxDownloadSpeedLimit): New variable.
  8722. * src/DefaultBtMessageReceiver.h
  8723. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8724. (dispatcher):
  8725. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  8726. (messageFactory): New variable.
  8727. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8728. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8729. (setDispatcher):
  8730. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  8731. (setBtMessageFactory): New function.
  8732. * src/DefaultBtInteractive.cc
  8733. (initiateHandshake): Use messageFactory member.
  8734. (addBitfieldMessageToQueue): Use messageFactory member.
  8735. (addAllowedFastMessageToQueue): Use messageFactory member.
  8736. (decideChoking): Use messageFactory member.
  8737. (checkHave): Use messageFactory member.
  8738. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  8739. (receiveMessages): Use maxDownloadSpeedLimit member.
  8740. (decideInterest): Use messageFactory member.
  8741. * src/BtRequestMessage.cc
  8742. (doReceivedAction): Use messageFactory, dispatcher member.
  8743. (onQueued): Use dispatcher member.
  8744. * src/BtPieceMessage.cc
  8745. (doReceivedAction): Use dispatcher member.
  8746. (send): Use peerConnection member.
  8747. (onWrongPiece): Use requestFactory member.
  8748. (handleChokingEvent): Use messageFactory, dispatcher member.
  8749. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  8750. * src/BtMessageDispatcher.h
  8751. (BtMessageDispatcherWeakHandle): New type definition.
  8752. * src/SimpleBtMessage.cc
  8753. (send): Use peerConnection member.
  8754. * src/BtRejectMessage.cc
  8755. (doReceivedAction): Use dispatcher member.
  8756. * src/DefaultBtMessageDispatcher.h
  8757. (Option.h): Removed include.
  8758. (messageFactory): New variable.
  8759. (option): Removed.
  8760. (maxUploadSpeedLimit): New variable.
  8761. (requestTimeout): New variable.
  8762. (DefaultBtMessageDispatcher): Removed option.
  8763. Added maxUploadSpeedLimit, requestTimeout.
  8764. (setOption): Removed.
  8765. (getOption): Removed.
  8766. (setMaxUploadSpeedLimit): New function.
  8767. (setRequestTimeout): New function.
  8768. (setBtMessageFactory): New function.
  8769. * src/DefaultBtInteractive.h
  8770. (btMessageReceiver):
  8771. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  8772. (dispatcher):
  8773. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  8774. (btRequestFactory):
  8775. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  8776. (peerConnection):
  8777. PeerConnectionHandle -> PeerConnectionWeakHandle
  8778. (messageFactory): New variable.
  8779. (option): Removed.
  8780. (keepAliveInterval): New variable.
  8781. (maxDownloadSpeedLimit): New variable.
  8782. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  8783. (setBtMessageReceiver):
  8784. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  8785. (setDispatcher):
  8786. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  8787. (setBtRequestFactory):
  8788. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  8789. (setPeerConnection):
  8790. PeerConnectionHandle -> PeerConnectionWeakHandle
  8791. (setOption): Removed.
  8792. (setKeepAliveInterval): New function.
  8793. (setMaxDownloadSpeedLimit): New function.
  8794. (setBtMessageFactory): New function.
  8795. * src/BitfieldMan.h
  8796. (cachedNumMissingBlock): New variable.
  8797. (cachedNumFilteredBlock): New variable.
  8798. (cachedCompletedLength): New variable.
  8799. (cachedFilteredComletedLength): New variable.
  8800. (cachedFilteredTotalLength): New variable.
  8801. (countMissingBlockNow): New function.
  8802. (countFilteredBlockNow): New function.
  8803. (getFilteredTotalLengthNow): New function.
  8804. (getCompletedLengthNow): New function.
  8805. (getFilteredCompletedLengthNow): New function.
  8806. (updateCache): New function.
  8807. * src/AbstractBtMessage.h
  8808. (BtMessageDispatcher.h): New include.
  8809. (PeerConnection.h): New include.
  8810. (BtRequestFactory.h): New include
  8811. (BtMessageFactory.h): New include.
  8812. (dispatcher): New variable.
  8813. (messageFactory): New variable.
  8814. (peerConnection: New variable.
  8815. (setBtMessageDispatcher): New function.
  8816. (setPeerConnection): New function.
  8817. (setBtMessageFactory): New function.
  8818. (setBtRequestFactory): New function.
  8819. * src/DefaultBtMessageFactory.cc
  8820. (setCommonProperty): Set dispatcher, requestFactory, this,
  8821. peerConnection to msg.
  8822. * src/BtRegistry.h
  8823. (BT_MESSAGE_RECEIVER): New macro.
  8824. * src/PeerConnection.h
  8825. (PeerConnectionWeakHandle): New type definition.
  8826. * src/BtMessageFactory.h
  8827. (BtMessageFactoryWeakHandle): New type definition.
  8828. * src/BitfieldMan.cc
  8829. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  8830. cachedCompletedLength, cachedFilteredComletedLength,
  8831. cachedFilteredTotalLength.
  8832. Call updateCache().
  8833. (countMissingBlock): Return cachedNumMissingBlock.
  8834. (countMissingBlockNow): New function.
  8835. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  8836. (countFilteredBlockNow): New function.
  8837. (setBit): Call updateCache().
  8838. (unsetBit): Call updateCache().
  8839. (setBitfield): Call updateCache().
  8840. (clearAllBit): Call updateCache().
  8841. (setAllBit): Use setBitInternal instead of setBit.
  8842. Call updateCache().
  8843. (addFilter): Call updateCache().
  8844. (enableFilter): Call updateCache().
  8845. (disableFilter): Call updateCache().
  8846. (clearFilter): Call updateCache().
  8847. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  8848. (getFilteredTotalLengthNow): New function.
  8849. (getCompletedLength): Return cachedCompletedLength.
  8850. (getCompletedLengthNow): New function.
  8851. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  8852. (getFilteredCompletedLengthNow): New function.
  8853. (updateCache): New function.
  8854. * src/BtMessageReceiver.h
  8855. (BtMessageReceiverWeakHandle): New type definition.
  8856. * src/DefaultBtMessageReceiver.cc
  8857. (receiveHandshake): Use messageFactory member.
  8858. (sendHandshake): Use messageFactory member.
  8859. (receiveMessage): Use messageFactory member.
  8860. * src/DefaultBtMessageFactory.h
  8861. (dispatcher): New variable.
  8862. (requestFactory): New variable.
  8863. (peerConnection): New variablle.
  8864. (setBtMessageDispatcher): New function.
  8865. (setBtRequestFactory): New function.
  8866. (setPeerConnection): New function.
  8867. * src/SharedHandle.h
  8868. (RefCount): New class.
  8869. (WeakHandle): New class.
  8870. * src/PeerObject.h
  8871. (BtMessageReceiver.h): New include.
  8872. (PeerObject): Added btMessageReceiver.
  8873. (btMessageReceiver): New variable.
  8874. * src/Util.cc
  8875. (countBit): Simplified.
  8876. * src/BtCancelMessage.cc
  8877. (doReceivedAction): Use dispatcher member.
  8878. * src/BtRequestFactory.h
  8879. (BtRequestFactoryWeakHandle): New type definition.
  8880. * src/PeerStorage.h
  8881. (downloadSpeed): int -> uint32_t
  8882. (uploadSpeed): int -> uint32_t
  8883. (sessionDownloadLength): long long int -> uint64_t
  8884. (sessionUploadLength): long long int -> uint64_t
  8885. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8886. To add RecoverableException, FatalException:
  8887. * src/AbstractCommand.cc
  8888. (onAbort): Exception -> RecoverableException
  8889. * src/PeerAbstractCommand.h
  8890. (RecoverableException.h): New include.
  8891. (onAbort): Exception -> RecoverableException.
  8892. * src/PeerInteractionCommand.cc
  8893. (onAbort): Exception -> RecoverableException.
  8894. * src/PeerAbstractCommand.cc
  8895. (execute): Exception -> RecoverableException.
  8896. (onAbort): Exception -> RecoverableException.
  8897. * src/TorrentRequestInfo.cc
  8898. (execute): Exception -> RecoverableException.
  8899. * src/MetalinkRequestInfo.cc
  8900. (execute): Exception -> RecoverableException.
  8901. * src/MetaFileUtil.cc: RecoverableException.
  8902. * src/AbstractCommand.h
  8903. (onAbort): Exception -> RecoverableException.
  8904. * src/DlRetryEx.h: Exception -> RecoverableException.
  8905. * src/DlAbortEx.h: Exception -> RecoverableException.
  8906. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  8907. * src/Util.cc: Exception -> RecoverableException.
  8908. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  8909. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  8910. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  8911. To make ID static const int
  8912. * src/BtInterestedMessage.h
  8913. (ID_t): Removed.
  8914. (ID): New variable.
  8915. (getId): Made non-const.
  8916. * src/BtPieceMessage.h
  8917. (ID_t): Removed.
  8918. (ID): New variable.
  8919. (getId): Made non-const.
  8920. * src/BtChokeMessage.h
  8921. (ID_t): Removed.
  8922. (ID): New variable.
  8923. (getId): Made non-const.
  8924. * src/BtHaveAllMessage.h
  8925. (ID_t): Removed.
  8926. (ID): New variable.
  8927. (getId): Made non-const.
  8928. * src/BtKeepAliveMessage.h
  8929. (ID_t): Removed.
  8930. (ID): New variable.
  8931. (getId): Made non-const.
  8932. * src/BtHandshakeMessage.h
  8933. (ID): New variable.
  8934. (getId): Made non-const.
  8935. * src/BtSuggestPieceMessage.h
  8936. (ID_t): Removed.
  8937. (ID): New variable.
  8938. (getId): Made non-const.
  8939. * src/BtPortMessage.h
  8940. (ID_t): Removed.
  8941. (ID): New variable.
  8942. (getId): Made non-const.
  8943. * src/AbstractBtMessage.h
  8944. (id): Removed.
  8945. (AbstractBtMessage): Removed id.
  8946. (getId): Removed.
  8947. * src/BtHaveMessage.h
  8948. (ID_t): Removed.
  8949. (ID): New variable.
  8950. (getId): Made non-const.
  8951. * src/BtAllowedFastMessage.h
  8952. (ID_t): Removed.
  8953. (ID): New variable.
  8954. (getId): Made non-const.
  8955. * src/BtCancelMessage.h
  8956. (ID_t): Removed.
  8957. (ID): New variable.
  8958. (getId): Made non-const.
  8959. * src/BtNotInterestedMessage.h
  8960. (ID_t): Removed.
  8961. (ID): New variable.
  8962. (getId): Made non-const.
  8963. * src/BtChokeMessage.h
  8964. (ID_t): Removed.
  8965. (ID): New variable.
  8966. (getId): Made non-const.
  8967. * src/BtRejectMessage.h
  8968. (ID_t): Removed.
  8969. (ID): New variable.
  8970. (getId): Made non-const.
  8971. * src/BtBitfieldMessage.h
  8972. (ID_t): Removed.
  8973. (ID): New variable.
  8974. (getId): Made non-const.
  8975. * src/BtUnchokeMessage.h
  8976. (ID_t): Removed.
  8977. (ID): New variable.
  8978. (getId): Made non-const.
  8979. * src/BtRequestMessage.h
  8980. (ID_t): Removed.
  8981. (ID): New variable.
  8982. (getId): Made non-const.
  8983. * src/BtHaveMessage.h
  8984. (ID_t): Removed.
  8985. (ID): New variable.
  8986. (getId): Made non-const.
  8987. To add --force-truncate command-line option and a check whether
  8988. the file already exists:
  8989. * src/DirectDiskAdaptor.h
  8990. (getFilePath): Made virtual public.
  8991. * src/MultiDiskAdaptor.h
  8992. (File.h): New include.
  8993. (DiskWriterEntry::fileEntry): Made private.
  8994. (DiskWriterEntry::fileExists): New function.
  8995. (DiskWriterEntry::getFileEntry): New function.
  8996. (fileExists): New function.
  8997. (getFilePath): New function.
  8998. * src/TorrentRequestInfo.cc
  8999. (FatalException.h): New include.
  9000. (message.h): New include.
  9001. (RecoverableException.h): New include.
  9002. (execute): Added a check whether file is already exists or not.
  9003. * src/DiskAdaptor.h
  9004. (fileExists): New function.
  9005. (getFilePath): New function.
  9006. * src/main.cc
  9007. (showUsage): Added an explanation of --force-truncate command-line
  9008. option.
  9009. (main): Added --force-truncate command-line option.
  9010. * src/Exception.h
  9011. (setMsg): buf[256] -> buf[1024]
  9012. * src/CopyDiskWriter.h
  9013. (getFilePath): Made public virtual.
  9014. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  9015. (fileExists): New function.
  9016. * src/DownloadEngineFactory.cc
  9017. (newTorrentConsoleEngine): Don't open file here.
  9018. * src/message.h
  9019. (EX_FILE_ALREADY_EXISTS): New definition.
  9020. * src/prefs.h
  9021. (PREF_FOECE_TRUNCATE): New definition.
  9022. * src/HttpResponseCommand.cc
  9023. (handleDefaultEncoding): Added a check whether the file already exists.
  9024. * src/SegmentMan.h
  9025. (fileExists): New function.
  9026. (shouldCancelDownloadForSafety): New function.
  9027. * src/FtpNegotiateCommand.cc
  9028. (recvSize): Added a check whether the file already exists.
  9029. * src/AbstractSingleDiskAdaptor.cc
  9030. (File.h): New include.
  9031. (fileExists): New function.
  9032. * src/AbstractSingleDiskAdaptor.h
  9033. (getFilePath): Removed.
  9034. (fileExists): New function.
  9035. * src/SegmentMan.cc
  9036. (fileExists): New function.
  9037. (shouldCancelDownloadForSafety): New function.
  9038. To fix regression bug in torrent downloading:
  9039. * src/DefaultBtRequestFactory.cc
  9040. (doChokedAction): New function.
  9041. * src/DefaultBtRequestFactory.h
  9042. (doChokedAction): New function.
  9043. * src/DefaultBtMessageDispatcher.cc
  9044. (doChokedAction): Do not delete request if its target is in allowed
  9045. fast set.
  9046. * src/DefaultBtInteractive.cc
  9047. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  9048. (sendKeepAlive): Send keep alive message even if the outgoing message
  9049. queue is not empty.
  9050. (decideInterest): Simplified the code.
  9051. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  9052. it is already called when BtChokeMessage is received from a peer.
  9053. * src/BtRequestFactory.h
  9054. (doChokedAction): New function.
  9055. To clean up code:
  9056. * src/PeerInteractionCommand.h
  9057. (executeInternal): Added virtual keyword explicitly.
  9058. (prepareForRetry): Added virtual keyword explicitly.
  9059. (prepareForNextPeer): Added virtual keyword explicitly.
  9060. (onAbort): Added virtual keyword explicitly.
  9061. * src/RequestSlot.cc
  9062. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  9063. * src/BtPieceMessage.cc
  9064. (doReceivedAction): Added a debug log of piece's bitfield.
  9065. * src/Piece.h
  9066. (getBitfieldLength): New function.
  9067. * src/ByteArrayDiskWriter.cc
  9068. (clear): Added buf = 0 to avoid double free corruption.
  9069. * src/FileAllocator.cc
  9070. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  9071. Added cp.reset().
  9072. * src/BitfieldMan.h
  9073. (operator=): Rewritten.
  9074. * src/BitfieldMan.cc
  9075. (BitfieldMan): Initialized bitfield, useBitfield.
  9076. * src/PeerConnection.cc
  9077. (receiveMessage): Added a call to socket->readable() after getting
  9078. message length to avoid possible EOF.
  9079. * src/Util.cc
  9080. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  9081. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9082. To add an ability to pre-allocate file space:
  9083. * src/DirectDiskAdaptor.h: Rewritten.
  9084. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  9085. * src/MultiDiskAdaptor.h: Rewritten.
  9086. * src/DefaultPieceStorage.cc
  9087. (MultiDiskWriter.h): Removed include.
  9088. (PreAllocationDiskWriter.h): Removed include.
  9089. (FileAllocationMonitor.h): New include.
  9090. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  9091. (initStorage): Rewritten.
  9092. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9093. * src/FileAllocator.h: New class.
  9094. * src/FileAllocator.cc: New class.
  9095. * src/FileAllocationMonitor.h: New class.
  9096. * src/FileAllocationMonitor.cc: New class.
  9097. * src/ConsoleFileAllocationMonitor.h: New class.
  9098. * src/ConsoleFileAllocationMonitor.cc: New class.
  9099. * src/AbstractSingleDiskAdaptor.h: New class.
  9100. * src/AbstractSingleDiskAdaptor.cc: New class.
  9101. * src/DiskAdaptor.h
  9102. (Directory.h): Removed include.
  9103. (DiskWriter.h): Removed include.
  9104. (FileEntry.h): Removed include.
  9105. (diskWriter): Removed.
  9106. (DiskAdaptor): Removed diskWriter.
  9107. (openFile): Made pure virtual.
  9108. (closeFile): Made pure virtual.
  9109. (openExistingFile): Made pure virtual.
  9110. (initAndOpenFile): Made pure virtual.
  9111. (writeData): Made pure virtual.
  9112. (readData): Made pure virtual.
  9113. (sha1Sum): Made pure virtual.
  9114. (getStoreDir): Returns const reference of storeDir.
  9115. (DiskAdaptorHandle): New type definition.
  9116. * src/main.cc
  9117. (ConsoleFileAllocationMonitor.h): New include.
  9118. (showUsage): Added default value description of -s option.
  9119. Added the description of --file-allocation option.
  9120. (main): Set default value of --file-allocation option to 'none'.
  9121. Added --file-allocation command-line option.
  9122. Setup FileAllocationMonitorFactory.
  9123. * src/FtpInitiateConnectionCommand.cc
  9124. (executeInternal): Removed diskWriter related processing, which was
  9125. moved to FtpNegotiationCommand.cc.
  9126. * src/DirectDiskAdaptor.cc
  9127. (getFilePath): Made non-const.
  9128. * src/CopyDiskAdaptor.h
  9129. (DiskAdaptor.h): Removed include.
  9130. (DiskWriter.h): Removed include.
  9131. (AbstractSingleDiskAdaptor.h): New include.
  9132. (getFilePath): Made non-const. Added virtual keyword.
  9133. (CopyDiskAdaptor): Removed diskWriter.
  9134. (getTempFile): Returns const reference.
  9135. (CopyDiskAdaptorHandle): New type definition.
  9136. * src/ByteArrayDiskWriter.cc
  9137. (clear): Simplified.
  9138. (initAndOpenFile): Rewritten.
  9139. (openFile): Call initAndOpenFile()
  9140. * src/MultiDiskAdaptor.cc: Rewritten.
  9141. * src/DownloadEngineFactory.cc
  9142. (FileAllocator.h): New include.
  9143. (FileAllocationMonitor.h): New include.
  9144. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  9145. create DefaultDiskWriter with file allocator.
  9146. * src/DiskWriter.h
  9147. (initAndOpenFile): Added totalLength argument.
  9148. (openFile): Added totalLength argument.
  9149. * src/prefs.h
  9150. (PREF_FILE_ALLOCATION): New definition.
  9151. (V_PREALLOC): New definition.
  9152. (V_NONE): New definition.
  9153. * src/HttpResponseCommand.cc
  9154. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  9155. size.
  9156. * src/FtpNegotiateCommand.cc
  9157. (Util.h): New include.
  9158. (recvSize): Open file here.
  9159. * src/Util.h
  9160. (ullitos): New function.
  9161. * src/CopyDiskWriter.h
  9162. (getFilePath): Made non-const.
  9163. * src/DefaultDiskWriter.h
  9164. (Option.h): New include.
  9165. (totalLength): Removed.
  9166. (DefaultDiskWriter): Removed totalLength.
  9167. (initAndOpenFile): Added totalLength argument.
  9168. (DefaultDiskWriterHandle): New type definition.
  9169. (createNewDiskWriter): New function.
  9170. * src/Util.cc
  9171. (ullitos): New function.
  9172. * src/DefaultDiskWriter.cc
  9173. (message.h): New include.
  9174. (FileAllocator.h): New include.
  9175. (prefs.h): New include.
  9176. (Util.h): New include.
  9177. (DefaultDiskWriter): Removed totalLength.
  9178. (initAndOpenFile): Added file allocation.
  9179. (createNewDiskWriter): New function. Just for temporary solution.
  9180. It will be rewritten later.
  9181. * src/DiskAdaptor.cc
  9182. (DiskAdaptor): Removed diskWriter.
  9183. * src/AbstractDiskWriter.cc
  9184. (LogFactory.h): New include.
  9185. (AbstractDiskWriter): Added fileAllocator, logger.
  9186. (openFile): Added totalLength argument.
  9187. * src/AbstractDiskWriter.h
  9188. (FileAllocator.h): New include.
  9189. (Logger.h): New include.
  9190. (fileAllocator): New variable.
  9191. (logger): New variable.
  9192. (openFile): Added totalLength argument. Added virtual keyword
  9193. explicitly.
  9194. (openExistingFile): Added totalLength argument. Added virtual keyword
  9195. explicitly.
  9196. (closeFile): Added virtual keyword explicitly.
  9197. (sha1Sum): Added virtual keyword explicitly.
  9198. (writeData): Added virtual keyword explicitly.
  9199. (readData): Added virtual keyword explicitly.
  9200. (setFileAllocator): New function.
  9201. * src/DefaultPieceStorage.h
  9202. (FileAllocator.h): New include.
  9203. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9204. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9205. * src/FileProgressMonitor.h: New class.
  9206. To compile aria2 on PC-BSD:
  9207. * src/DefaultBtContext.cc
  9208. (libgen.h): New include.
  9209. To fix memory leak:
  9210. * src/Exception.h
  9211. (~Exception): Delete cause. Fixed memory leak.
  9212. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9213. Rewritten a portion of bittorrent implementation:
  9214. * src/BtMessageValidator.h: New class.
  9215. * src/BtBitfieldMessageValidator.h: New class.
  9216. * src/BtHandshakeMessageValidator.h: New class.
  9217. * src/BtRequestMessageValidator.h: New class.
  9218. * src/BtSuggestPieceMessageValidator.h: New class.
  9219. * src/BtAllowedFastMessageValidator.h: New class.
  9220. * src/BtRejectMessageValidator.h: New class.
  9221. * src/BtCancelMessageValidator.h: New class.
  9222. * src/BtPieceMessageValidator.h: New class.
  9223. * src/BtHaveMessageValidator.h: New class.
  9224. * src/BtEventListener.h: New class.
  9225. * src/AbstractBtEventListener.h: New class.
  9226. * src/BtEvent.h: New class.
  9227. * src/BtChokingEvent.h: New class.
  9228. * src/BtChokedEvent.h: New class.
  9229. * src/BtCancelSendingPieceEvent.h: New class.
  9230. * src/BtAbortOutstandingRequestEvent.h: New class.
  9231. * src/Randomizer.h: New class.
  9232. * src/SimpleRandomizer.h: New class.
  9233. * src/BtMessage.h: New class.
  9234. * src/AbstractBtMessage.h: New class.
  9235. * src/SimpleBtMessage.h: New class.
  9236. * src/BtHaveMessage.h: New class.
  9237. * src/BtInterestedMessage.h: New class.
  9238. * src/BtAllowedFastMessage.h: New class.
  9239. * src/BtUnchokeMessage.h: New class.
  9240. * src/BtCancelMessage.h: New class.
  9241. * src/BtNotInterestedMessage.h: New class.
  9242. * src/BtChokeMessage.h: New class.
  9243. * src/BtHaveNoneMessage.h: New class.
  9244. * src/BtHandshakeMessage.h: New class.
  9245. * src/BtSuggestPieceMessage.h: New class.
  9246. * src/BtHaveMessage.h: New class.
  9247. * src/BtPieceMessage.h: New class.
  9248. * src/BtHaveAllMessage.h: New class.
  9249. * src/BtKeepAliveMessage.h: New class.
  9250. * src/BtPortMessage.h: New class.
  9251. * src/BtRejectMessage.h: New class.
  9252. * src/BtBitfieldMessage.h: New class.
  9253. * src/BtRequestMessage.h: New class.
  9254. * src/DefaultBtRequestFactory.h: New class.
  9255. * src/DefaultBtMessageReceiver.h: New class.
  9256. * src/BtInteractive.h: New class.
  9257. * src/BtMessageDispatcher.h: New class.
  9258. * src/DefaultBtMessageDispatcher.h: New class.
  9259. * src/DefaultBtInteractive.h: New class.
  9260. * src/BitfieldManFactory.h: New class.
  9261. * src/HandleRegistry.h: New class.
  9262. * src/BtMessageFactory.h: New class.
  9263. * src/BtMessageReceiver.h: New class.
  9264. * src/DefaultBtMessageFactory.h: New class.
  9265. * src/PeerObject.h: New class.
  9266. * src/BtRequestFactory.h: New class.
  9267. * src/SuggestPieceMessage.h: Removed.
  9268. * src/PortMessage.h: Removed.
  9269. * src/SuggestPieceMessage.h: Removed.
  9270. * src/KeepAliveMessage.h: Removed.
  9271. * src/HandshakeMessage.h: Removed.
  9272. * src/PeerInteraction.h: Removed.
  9273. * src/UnchokeMessage.h: Removed.
  9274. * src/PieceMessage.h: Removed.
  9275. * src/RequestMessage.h: Removed.
  9276. * src/InterestedMessage.h: Removed.
  9277. * src/HaveMessage.h: Removed.
  9278. * src/CancelMessage.h: Removed.
  9279. * src/RejectMessage.h: Removed.
  9280. * src/AllowedFastMessage.h: Removed.
  9281. * src/HaveNoneMessage.h: Removed.
  9282. * src/SimplePeerMessage.h: Removed.
  9283. * src/HaveAllMessage.h: Removed.
  9284. * src/BitfieldMessage.h: Removed.
  9285. * src/PeerMessageFactory.h: Removed.
  9286. * src/NotInterestedMessage.h: Removed.
  9287. * src/ChokeMessage.h: Removed.
  9288. * src/PeerMessage.h: Removed.
  9289. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9290. To know root cause of exception:
  9291. * src/Exception.h
  9292. (cause): New variable.
  9293. (Exception): Added a parameter.
  9294. (getMsg): Return const reference to msg.
  9295. (getCause): New function.
  9296. * src/DlRetryEx.h
  9297. (DlRetryEx): Added a parameter 'cause'.
  9298. Added an overloaded constructor.
  9299. (DlAbortEx): Added a parameter 'cause'.
  9300. Added an overloaded constructor.
  9301. * src/SimpleLogger.cc
  9302. (writeLog): Log nested exception messages recursively.
  9303. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9304. * src/DefaultBtProgressInfoFile.cc
  9305. (load): Fixed memory leak when the infohash doesn't match.
  9306. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9307. * src/DefaultPeerStorage.cc
  9308. (calculateStat): Simplified the code by combining 2 loops into 1.
  9309. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9310. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  9311. for BitTorrent download:
  9312. * src/PeerAbstractCommand.cc
  9313. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  9314. * src/main.cc:
  9315. (timeoutSpecified): Removed.
  9316. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  9317. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  9318. * src/TorrentRequestInfo.cc
  9319. (timeoutSpecified): Removed.
  9320. (torrentHandler): Removed timeoutSpecified and the adjustment of
  9321. timeout value.
  9322. * src/prefs.h
  9323. (PREF_BT_TIMEOUT): New definition.
  9324. Delete unused variables:
  9325. * src/TorrentRequestInfo.cc
  9326. (requestInfo): Removed.
  9327. Move setSignalHander to Util::setGlobalSignalHandler:
  9328. * src/TorrentRequestInfo.cc:
  9329. setSignalHander -> Util::setGlobalSignalHandler
  9330. * src/main.cc
  9331. (setSignalHander): Removed.
  9332. (main): setSignalHander -> Util::setGlobalSignalHandler
  9333. * src/Util.h
  9334. (setGlobalSignalHandler): New function.
  9335. * src/Util.cc
  9336. (setGlobalSignalHandler): New function.
  9337. * src/UrlRequestInfo.cc:
  9338. setSignalHander -> Util::setGlobalSignalHandler
  9339. Reset peer status in order to exit gracefully:
  9340. * src/PeerAbstractCommand.cc
  9341. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  9342. To fix the bug that causes the number of bytes uploaded is not saved
  9343. to .aria2 file:
  9344. * src/DefaultPeerStorage.h
  9345. (removedPeerSessionDownloadLength): New variable.
  9346. (removedPeerSessionUploadLength): New variable.
  9347. * src/DefaultPeerStorage.cc
  9348. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  9349. removedPeerSessionUploadLength(0).
  9350. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  9351. through all peers, and then add removedPeerSessionDownloadLength(
  9352. removedPeerSessionUploadLength) to it.
  9353. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  9354. (to) the peer to removedPeerSessionDownloadLength
  9355. (removedPeerSessionUploadLength).
  9356. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9357. To add Metalink location option:
  9358. * src/MetalinkRequestInfo.cc
  9359. (execute): Call MetalinkEntry::setLocationPreference()
  9360. * src/main.cc
  9361. (showUsage): Added the help message for --metalink-location option.
  9362. (main): Added --metalink-location option.
  9363. * src/prefs.h
  9364. (PREF_METALINK_LOCATION): New definition.
  9365. * src/MetalinkEntry.cc
  9366. (AddLocationPreference): New function object.
  9367. (setLocationPreference): New function.
  9368. * src/Xml2MetalinkProcessor.cc
  9369. (getResource): Set location attribute to MetalinkResource
  9370. To show URLs to download
  9371. * src/UrlRequestInfo.h
  9372. (printUrls): New function.
  9373. To add multiple <file> Metalink support:
  9374. * src/MetalinkEntry.h
  9375. (MetalinkResources): Removed.
  9376. (setLocationPreference): New function.
  9377. (MetalinkEntryHandle): New type definition.
  9378. (MetalinkEntries): New type definition.
  9379. * src/Xml2MetalinkProcessor.h
  9380. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  9381. (getResource): MetalinkResource* -> MetalinkResourceHandle
  9382. (parseFile): Metalinker* -> MetalinkerHandle
  9383. * src/UrlRequestInfo.h
  9384. (execute): RequestInfo* -> RequestInfos
  9385. * src/MetalinkRequestInfo.cc
  9386. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  9387. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  9388. (execute): RequestInfo* -> RequestInfos
  9389. Added multiple <file> support. Print filename when it is queued.
  9390. * src/MetalinkRequestInfo.h
  9391. (execute): RequestInfo* -> RequestInfos
  9392. (getDownloadEngine): Removed.
  9393. * src/RequestInfo.h
  9394. (RequestInfoHandle): New type definition.
  9395. (RequestInfos): New type definition.
  9396. (execute): RequestInfo* -> RequestInfos
  9397. (getDownloadEngine): Removed.
  9398. * src/MetalinkResource.h
  9399. (MetalinkResourceHandle): New type definition.
  9400. (MetalinkResources): New type definition.
  9401. * src/MetalinkEntry.cc
  9402. (~MetalinkEntry): Removed the deletion of the elements of resources,
  9403. because the element is now of type MetalinkResourceHandle.
  9404. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  9405. (Supported): MetalinkResource* -> MetalinkResourceHandle
  9406. (dropUnsupportedResource): Removed the deletion of the elements of
  9407. resources because the element is now of type MetalinkResourceHandle.
  9408. * src/Xml2MetalinkProcessor.cc
  9409. (parseFile): Metalinker* -> MetalinkerHandle
  9410. MetalinkEntry* -> MetalinkEntryHandle
  9411. Removed try-catch block.
  9412. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  9413. MetalinkResource* -> MetalinkResourceHandle
  9414. Removed try-catch block.
  9415. (getResource): MetalinkResource* -> MetalinkResourceHandle
  9416. Free result by using xmlXPathFreeObject()
  9417. * src/Metalinker.cc
  9418. (~Metalinker): Removed the deletion of entries.
  9419. MetalinkEntry* -> MetalinkEntryHandle
  9420. (queryEntry): Add multiple <file> Metalink support.
  9421. * src/Metalinker.h
  9422. (MetalinkEntries): Removed.
  9423. (queryEntry): MetalinkEntry* -> MetalinkEntries
  9424. * src/MetalinkProcessor.h
  9425. (parseFile): Metalinker* -> MetalinkerHandle
  9426. Bug fixes:
  9427. * src/PeerChokeCommand.cc
  9428. (execute): cat01->cat02
  9429. * src/DefaultPieceStorage.cc
  9430. (DefaultPieceStorage): Added diskAdaptor(0)
  9431. * src/TrackerWatcherComand.cc:
  9432. (execute): Use btAnnounce->noMoreAnnounce()
  9433. to determin whether the function returns true or not.
  9434. * src/TrackerUpdateCommand.cc:
  9435. (execute): Use btAnnounce->noMoreAnnounce()
  9436. to determin whether the function returns true or not.
  9437. * src/FtpConnection.cc
  9438. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  9439. This is the fix of the busy loop bug.
  9440. * src/DownloadCommand.cc
  9441. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  9442. cached PeerStat.
  9443. The value of "name" entry in torrent file is now set by
  9444. *DiskAdaptor::setTopDir(...) methods.
  9445. * src/MultiDiskAdaptor.h
  9446. (topDir): New variable.
  9447. (setTopDir): New function.
  9448. (getTopDir): New function.
  9449. * src/MultiDiskAdaptor.cc
  9450. (getFilePath): Concat storDir, "/" and topDir.
  9451. (mkdir): Use getFilePath() to get the directory path for output.
  9452. * src/DefaultPieceStorage.cc
  9453. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  9454. CopyDiskAdaptor.
  9455. * src/CopyDiskAdaptor.h
  9456. (topDir): New variable.
  9457. (setTopDir): New function.
  9458. (getTopDir): New function.
  9459. * src/CopyDiskAdaptor.cc
  9460. (fixFilename): Updated.
  9461. Misc
  9462. * src/UrlRequestInfo.h
  9463. (e): Removed.
  9464. (UrlRequestInfo): Removed e.
  9465. (getDownloadEngine): Removed.
  9466. * src/UrlRequestInfo.cc
  9467. (handler): Rewritten.
  9468. (printUrls): New function.
  9469. (execute): Call printUrls().
  9470. * src/HandshakeMessage.cc
  9471. (check): peerinteraction->getBtContext() -> btContext
  9472. * src/PeerInteraction.h
  9473. (getBtContext): Removed.
  9474. * src/TorrentRequestInfo.h
  9475. (execute): RequestInfo* -> RequestInfos
  9476. (getDownloadEngine): Removed.
  9477. * src/TorrentRequestInfo.cc
  9478. (haltRequested): Removed.
  9479. (btHaltRequested): New variable.
  9480. (torrentHandler): haltRequested -> btHaltRequested
  9481. (execute): RequestInfo* -> RequestInfos
  9482. * src/TorrentConsoleDownloadEngine.cc
  9483. (afterEachIteration): haltRequested -> btHaltRequested.
  9484. * src/ConsoleDownloadEngine.h
  9485. (initStatistics): Added virtual.
  9486. (calculateStatistics): Added virtual.
  9487. (onEndOfRun): Added virtual.
  9488. (afterEachIteration): Added virtual.
  9489. * src/ConsoleDownloadEngine.cc
  9490. (haltRequested): New variable.
  9491. (afterEachIteration): New function.
  9492. * src/main.cc
  9493. (requestInfo): Removed.
  9494. * src/SegmentMan.cc
  9495. (findSlowerSegmentEntry): Refactored.
  9496. * Release 0.9.0
  9497. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9498. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  9499. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  9500. * src/TorrentMan.h: Removed.
  9501. * src/TorrentMan.cc: Removed.
  9502. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  9503. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  9504. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  9505. * src/PeerAbstractCommand.cc: Use btRuntime.
  9506. * src/BtContextAwareCommand.h: New class.
  9507. * src/FileEntry.h: Added accessor methods for following variables.
  9508. (path): Made private.
  9509. (length): Made private.
  9510. (offset): Made private.
  9511. (extracted): Made private.
  9512. (requested): Made private.
  9513. (FileEntries): New definition.
  9514. (FileEntryHandle): New definition.
  9515. * src/FileEntry.cc: New file.
  9516. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  9517. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  9518. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  9519. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  9520. * src/PieceStorage.h: New file.
  9521. * src/PeerInteractionCommand.h: Use btContext.
  9522. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  9523. btRuntime.
  9524. * src/DefaultBtProgressInfoFile.h: New file.
  9525. * src/DefaultBtProgressInfoFile.cc: New file.
  9526. * src/File.cc
  9527. (Util.h): New include.
  9528. (mkdirs): New function.
  9529. * src/MultiDiskAdaptor.h
  9530. (mkdir): New function.
  9531. * src/PeerListProcessor.h
  9532. (Peers): Removed.
  9533. * src/PeerInteraction.h
  9534. (torrentMan): Removed.
  9535. (btContext): New variable.
  9536. (peerStorage): New variable.
  9537. (pieceStorage): New variable.
  9538. (btAnnounce): New variable.
  9539. (getTorrentMan): Removed.
  9540. (getBtContext): New function.
  9541. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  9542. btAnnounce.
  9543. * src/HandshakeMessage.h
  9544. (TorrentMan.h): Removed.
  9545. * src/HandshakeMessage.cc: Use btContext.
  9546. * src/DefaultBtAnnounce.cc: New file.
  9547. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  9548. * src/DefaultPieceStorage.cc: New file.
  9549. * src/DefaultBtContext.h: New file.
  9550. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  9551. Use the accessor methods of FileEntry.
  9552. * src/CookieBox.cc: Updated to use Util::slice().
  9553. * src/PieceMessage.cc: Use btContext, pieceStorage.
  9554. * src/common.h (SharedHandle.h): New include.
  9555. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  9556. pieceStorage.
  9557. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  9558. * src/DiskAdaptor.h
  9559. (topDir): Removed.
  9560. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  9561. (setTopDir): Removed.
  9562. (getTopDir): Removed.
  9563. * src/BtContext.h: New file.
  9564. * src/DefaultPeerStorage.h: New file.
  9565. * src/PieceMessage.h (TorrentMan.h): Removed.
  9566. * src/RequestMessage.h (TorrentMan.h): Removed.
  9567. * src/TorrentDownloadEngine.h
  9568. (uploadLength): New variable.
  9569. (btContext): New variable.
  9570. (btRuntime): New variable.
  9571. (pieceStorage): New variable.
  9572. (peerStorage): New variable.
  9573. (btAnnounce): New variable.
  9574. (btProgressInfoFile): New variable.
  9575. (torrentMan): Removed.
  9576. (setBtContext): New function.
  9577. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  9578. peerStorage, btAnnounce, btProgressInfoFile.
  9579. * src/Piece.h
  9580. (toString): New function.
  9581. (Pieces): New type definition.
  9582. * src/Peer.h
  9583. (active): New variable.
  9584. (Peer): Added active.
  9585. (activate): Set active to true.
  9586. (deactivate): Set active to false.
  9587. (isActive): New function.
  9588. (Peers): New type definition.
  9589. * src/DirectDiskAdaptor.cc
  9590. (getFilePath): Use the accessor methods of FileEntry.
  9591. * src/TorrentConsoleDownloadEngine.h
  9592. (afterEachIteration): New function.
  9593. * src/TorrentConsoleDownloadEngine.cc
  9594. (haltRequested): New variable.
  9595. (sendStatistics): Use pieceStorage, btRuntime.
  9596. (afterEachIteration): New function.
  9597. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  9598. * src/Directry.h
  9599. (Directory): New function.
  9600. (DirectoryHandle): New type definition.
  9601. * src/BtProgressInfoFile.h: New file.
  9602. * src/RequestMessage.cc: Use pieceStorage.
  9603. * src/BtRuntime.h: New file.
  9604. * src/DefaultBtContext.cc: New file.
  9605. * src/BitfieldMan.h
  9606. (getCompletedLength): New function(private).
  9607. (getCompletedLength): New function.
  9608. (getFilteredCompletedLength): New function.
  9609. * src/BitfieldMan.h
  9610. (getCompletedLength): New function(private).
  9611. (getCompletedLength): New function.
  9612. (getFilteredCompletedLength): New function.
  9613. * src/MultiDiskAdaptor.cc
  9614. (mkdir): New function.
  9615. (openFile): Call mkdir().
  9616. (initAndOpenFile): Call mkdir().
  9617. * src/CancelMessage.h
  9618. (TorrentMan.h): Removed.
  9619. * src/RejectMessage.h
  9620. (TorrentMan.h): Removed.
  9621. * src/DownloadEngineFactory.cc
  9622. (DefaultPieceStorage.h): New include.
  9623. (DefaultPeerStorage.h): New include.
  9624. (DefaultBtAnnounce.h): New include.
  9625. (DefaultBtProgressInfoFile.h): New include.
  9626. (newTorrentConsoleEngine): Rewritten.
  9627. * src/ShareRatioSeedCriteria.h
  9628. (torrentMan): Removed.
  9629. (btContext): New variable.
  9630. (peerStorage): New variable.
  9631. (btRuntime): New variable.
  9632. (evaluate): Use btContext, btRuntime, peerStorage.
  9633. * src/AnnounceTier.h: New file.
  9634. * src/BtAnnounce.h: New file.
  9635. * src/BtRegistry.h: New file.
  9636. * src/PeerInitiateConnectionCommand.h: Added btContext.
  9637. * src/PeerConnection.h (TorrentMan.h): Removed.
  9638. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  9639. * src/Util.h
  9640. (slice): Added an argument.
  9641. * src/Util.cc
  9642. (slice): Added an argument to control whether trim is made or not.
  9643. * src/PeerStorage.h: New file.
  9644. * src/BtRegistry.cc: New file.
  9645. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  9646. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  9647. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  9648. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  9649. * src/TorrentRequestInfo.h
  9650. (e): Removed.
  9651. (showFileEntry): Added an argument.
  9652. (getDownloadEngine): Return 0.
  9653. * src/DefaultBtAnnounce.h: New file.
  9654. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  9655. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  9656. * src/PeerMessageFactory.h
  9657. (btContext): New variable.
  9658. (pieceStorage): New variable.
  9659. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  9660. btAnnounce.
  9661. * src/DiskAdaptor.cc
  9662. (DiskAdaptor): Removed topDir.
  9663. (~DiskAdaptor): Removed topDir.
  9664. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  9665. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  9666. * src/File.h (mkdirs): New function.
  9667. * src/DefaultPeerStorage): New file.
  9668. * src/DownloadEngineFactory.h
  9669. (newTorrentConsoleEngine): Use btContext.
  9670. * src/BtContextAwareCommand.cc: New file.
  9671. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  9672. * src/PeerMessage.h
  9673. (btContext): New variable.
  9674. (peerStorage): New variable.
  9675. (pieceStorage): New variable.
  9676. (setBtContext): New function.
  9677. * src/Directry.cc
  9678. (Directory): New function.
  9679. (createDir): Do nothing if name.size() == 0.
  9680. * src/AnnounceList.h
  9681. (AnnounceTier): Removed.
  9682. (AnnounceTiers): Removed.
  9683. * src/DefaultPieceStorage.h: New file.
  9684. * src/Piece.cc (toString): New function.
  9685. To fix typo:
  9686. * src/main.cc (showVersion): Fixed typo.
  9687. To fix compile warning:
  9688. * src/DelegatingPeerListProcessor.cc
  9689. (canHandle): Added "return false".
  9690. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9691. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  9692. make the process of announce request testable.
  9693. * src/TrackerWatcherCommand.h
  9694. (TimeA2.h): Removed.
  9695. (interval): Removed.
  9696. (checkPoint): Removed.
  9697. (createRequestCommand): Added an argument 'url'.
  9698. (TrackerWatherCommand): Removed interval.
  9699. (createCommand): New function.
  9700. * src/DownloadEngineFactory.cc
  9701. (newTorrentConsoleEngine): Updated according to the changes in
  9702. TrackerWatherCommand.
  9703. * src/TorrentMan.cc
  9704. (DelegatingPeerListProcessor.h): New includes.
  9705. (TorrentMan): Added the initialization of announceInterval.
  9706. (isStoppedAnnounceReady): New function.
  9707. (isCompletedAnnounceReady): New function.
  9708. (isDefaultAnnounceReady): New function.
  9709. (isAnnounceReady): New function.
  9710. (getAnnounceUrl): New function.
  9711. (announceStart): New function.
  9712. (announceFailure): New function.
  9713. (announceSuccess): New function.
  9714. (isAllAnnounceFailed): New function.
  9715. (resetAnnounce): New function.
  9716. (processAnnounceResponse): New function.
  9717. (needMorePeerConnection): New function.
  9718. (noMoreAnnounce): New function.
  9719. * src/TrackerUpdateCommand.h
  9720. (getTrackerResponse): int->size_t
  9721. * src/TorrentMan.h
  9722. (isStoppedAnnounceReady): New function.
  9723. (isCompletedAnnounceReady): New function.
  9724. (isDefaultAnnounceReady): New function.
  9725. (announceInterval): New variable.
  9726. (isAnnounceReady): New function.
  9727. (getAnnounceUrl): New function.
  9728. (announceStart): New function.
  9729. (announceFailure): New function.
  9730. (announceSuccess): New function.
  9731. (isAllAnnounceFailed): New function.
  9732. (resetAnnounce): New function.
  9733. (processAnnounceResponse): New function.
  9734. (needMorePeerConnection): New function.
  9735. (noMoreAnnounce): New function.
  9736. * src/TrackerWatcherCommand.cc
  9737. (TrackerWatherCommand): Removed interval and checkPoint.
  9738. (execute): Rewritten.
  9739. (createCommand): New function.
  9740. (createRequestCommand): Rewritten.
  9741. * src/TrackerUpdateCommand.cc
  9742. (MetaFileUtil.h): Removed.
  9743. (DelegatingPeerListProcessor.h): Removed.
  9744. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  9745. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9746. Request -> RequestHandle:
  9747. * src/HttpResponseCommand.h: Request->RequestHandle
  9748. * src/AbstractCommand.cc: Request->RequestHandle
  9749. * src/HttpDownloadCommand.cc: Request->RequestHandle
  9750. * src/HttpRequestCommand.cc: Request->RequestHandle
  9751. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  9752. * src/AbstractCommand.h: Request->RequestHandle
  9753. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  9754. * src/HttpResponseCommand.cc: Request->RequestHandle
  9755. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  9756. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  9757. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  9758. * src/HttpConnection.h: Request->RequestHandle
  9759. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  9760. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  9761. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  9762. * src/DownloadCommand.h: Request->RequestHandle
  9763. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  9764. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  9765. * src/HttpRequestCommand.h: Request->RequestHandle
  9766. * src/FtpNegotiateCommand.h: Request->RequestHandle
  9767. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  9768. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  9769. * src/HttpDownloadCommand.h: Request->RequestHandle
  9770. * src/FtpConnection.cc: Request->RequestHandle
  9771. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  9772. * src/UrlRequestInfo.cc: Request->RequestHandle
  9773. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  9774. * src/HttpConnection.h: Request->RequestHandle
  9775. * src/DownloadCommand.cc: Request->RequestHandle
  9776. * src/FtpConnection.h: Request->RequestHandle
  9777. * src/FtpDowndloadCommand.h: Request->RequestHandle
  9778. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  9779. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  9780. * src/Request.h
  9781. (SharedHandle.h): New include.
  9782. (RequestHandle): New type definition.
  9783. (Requests): Redefined.
  9784. To add MULTITRACKER support:
  9785. * src/TrackerWatcherCommand.h
  9786. (createRequestCommand): New function.
  9787. * src/DownloadEngineFactory.cc
  9788. (newTorrentConsoleEngine): Removed req.
  9789. * src/prefs.h
  9790. (PREF_TRACKER_MAX_TRIES): New definition.
  9791. * src/TorrentMan.cc
  9792. (TorrentMan): Removed req. Added trackerNumTry.
  9793. (~TorrentMan): Removed req.
  9794. (setupInternal1): Added announceList.
  9795. * src/TorrentRequestInfo.cc
  9796. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  9797. announces is now specified by PREF_TRACKER_MAX_TRIES.
  9798. * src/main.cc
  9799. (main): Added PREF_TRACKER_MAX_TRIES.
  9800. * src/TorrentMan.h
  9801. (Request.h): Removed.
  9802. (AnnounceList.h): New include.
  9803. (trackerNumTry): New variable.
  9804. (req): Removed.
  9805. (announceList): New variable.
  9806. * src/TrackerWatcherCommand.cc
  9807. (execute): Rewritten.
  9808. (createRequestCommand): New function.
  9809. * src/TrackerUpdateCommand.cc
  9810. (execute): Updated with the use of AnnounceList.
  9811. * src/AnnounceList.cc: New class.
  9812. * src/AnnounceList.h: New class.
  9813. To fix typo:
  9814. * src/prefs.h
  9815. (PREF_MAX_TRIES): max_try->max_tries
  9816. To not to decode "+" as space in URL decode:
  9817. * src/Util.cc
  9818. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  9819. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9820. To add timeout to async name resolution:
  9821. * src/AbstractCommand.h
  9822. (nameResolveFinished): New function. This is not elegant way. It needs
  9823. to be more refined.
  9824. (nameResolverCheck): New variable.
  9825. * src/AbstractCommand.cc
  9826. (AbstractCommand): Added nameResolverCheck.
  9827. (execute): Added the check whether the name resolution has finished.
  9828. (setNameResolverCheck): Set nameResolverCheck to true.
  9829. (disableNameResolverCheck): Set nameResolverCheck to false.
  9830. (nameResolverFinished): New function.
  9831. * src/FtpInitiateConnectionCommand.h
  9832. (nameResolverFinished): New function.
  9833. * src/FtpInitiateConnectionCommand.cc
  9834. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  9835. * src/HttpInitiateConnectionCommand.h
  9836. (nameResolverFinished): New function.
  9837. * src/HttpInitiateConnectionCommand.cc
  9838. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  9839. * src/prefs.h
  9840. (PREF_DNS_TIMEOUT): New definition.
  9841. * src/main.cc
  9842. (main): Added PREF_DNS_TIMEOUT.
  9843. To add the support for a non-compact response from a tracker:
  9844. * src/PeerListProcessor.h: New class.
  9845. * src/DefaultPeerListProcessor.h: New class.
  9846. * src/DefaultPeerListProcessor.cc: New class.
  9847. * src/CompactPeerListProcessor.h: New class.
  9848. * src/CompactPeerListProcessor.cc: New class.
  9849. * src/DelegatingPeerListProcessor.h: New class.
  9850. * src/DelegatingPeerListProcessor.cc: New class.
  9851. * src/TorrentMan.cc
  9852. (addPeer): New function(overload).
  9853. (addPeer): Delete unused peers only when new peer is added.
  9854. * src/TorrentMan.h
  9855. (PeerListProcessor.h): Included.
  9856. (Peers): Removed.
  9857. (addPeer): New function(overload).
  9858. * src/TrackerUpdateCommand.cc
  9859. (netinet/in.h): Removed.
  9860. (DelegatingPeerListProcessor.h): Included.
  9861. (execute): Updated to use DelegatingPeerListProcessor.
  9862. To fix the memory leak in TorrentMan::peers:
  9863. * src/PeerAbstractCommand.cc
  9864. (onAbort): Added peer->resetStatus().
  9865. * src/Peer.h
  9866. (resetStatus): Made public.
  9867. To improve the precision of the speed calculation:
  9868. * src/SpeedCalc.h
  9869. (nextInterval): New variable.
  9870. * src/SpeedCalc.cc
  9871. (reset): Added nextInterval.
  9872. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  9873. (changeSw): Set nextInterval to 15 seconds relative to the current
  9874. instant time.
  9875. * src/main.cc
  9876. (showVersion): Updated.
  9877. (showUsage): Updated.
  9878. * Release 0.8.1
  9879. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9880. * src/main.cc
  9881. (showUsage): Commented out --min-segment-size option.
  9882. (main): Commented out --min-segment-size option.
  9883. * Release 0.8.0
  9884. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9885. * src/*.{h,cc}:
  9886. Added an exception to the license which allows linking with OpenSSL.
  9887. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9888. * src/AbstractCommand.cc
  9889. (execute): Check whether the download has finished before checking
  9890. socket status.
  9891. Return true if peerStat->getStatus() == REQUEST_IDLE.
  9892. Do not exit even if no segment is available.
  9893. * src/prefs.h
  9894. (PREF_STARTUP_IDLE_TIME): New definition.
  9895. * src/PeerInteractionCommand.cc
  9896. (executeInternal): Removed max speed limit. Because it performs bad.
  9897. (receiveMessages): Added max speed limit. This was better than above,
  9898. but still a little bit to be desired. Sometimes the download speed
  9899. became much faster than I specified.
  9900. * src/SpeedCalc.h
  9901. (start): New variable.
  9902. (accumulatedLength): New variable.
  9903. (getAvgSpeed): New function.
  9904. * src/SpeedCalc.cc
  9905. (reset): Added start, accumulatedLength.
  9906. (update): Added calculation of an average speed.
  9907. (getAvgSpeed): New function.
  9908. * src/DownloadCommand.h
  9909. (sw): Removed.
  9910. * src/main.cc
  9911. (main): Added PREF_STARTUP_IDLE_TIME.
  9912. * src/PeerStat.h
  9913. (STATUS): Added REQUEST_IDLE.
  9914. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  9915. (getAvgDownloadSpeed): New function
  9916. (requestIdle): New function.
  9917. * src/SegmentMan.h
  9918. (SegmentEntryHandle): New type definition.
  9919. (SegmentEntries): Now holds SegmentEntryHandle.
  9920. (findSlowerSegmentEntry): New funtion.
  9921. * src/SegmentMan.cc
  9922. (save): Updated according to the changes in SegmentEntries.
  9923. (read): Updated according to the changes in SegmentEntries.
  9924. (FindSegmentEntryByIndex): Updated according to the changes in
  9925. SegmentEntries.
  9926. (FindSegmentEntryByCuid): Updated according to the changes in
  9927. SegmentEntries.
  9928. (checkoutSegment): Updated according to the changes in SegmentEntries.
  9929. (onNullBitfield): Updated according to the changes in SegmentEntries.
  9930. Renamed uitr as itr.
  9931. (findSlowerSegmentEntry): New function.
  9932. (getSegment): Updated according to the changes in SegmentEntries.
  9933. Added the feature that cancels the segment with slow server and fast
  9934. one takes it over.
  9935. (cancelSegment): Updated according to the changes in SegmentEntries.
  9936. (getDownloadLength): Updated according to the changes in
  9937. SegmentEntries.
  9938. (init): Assigned 0 to bitfield after deleting it.
  9939. * src/DownloadCommand.cc
  9940. (STARTUP_IDLE_TIME): Removed.
  9941. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  9942. * src/PeerChokeCommand.cc
  9943. (optUnchokingPeer): Updated according to the changes in Peer.
  9944. (ResetDelta): Removed.
  9945. (UploadFaster): Updated according to the changes in Peer.
  9946. (DownloadFaster): Updated according to the changes in Peer.
  9947. (execute): I clarify the meaning of "upload" and "download" here.
  9948. "upload" means the transfer from localhost to remote host.
  9949. "download" means the transfer from remote host to localhost.
  9950. Based on this rule, I swapped orderByUploadRate and
  9951. orderByDownloadRate.
  9952. * src/PeerInteractionCommand.cc
  9953. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  9954. (executeInternal): Removed the argument of
  9955. peerInteraction->sendMessages().
  9956. (receiveMessages): Rewritten download speed limit.
  9957. (sendKeepAlive): Removed peerInteraction->sendMessages().
  9958. * src/HttpResponseCommand.cc
  9959. (handleDefaultEncoding): If file size is unknown in torrent request,
  9960. do not call segmentMan->initBitfield() here.
  9961. Disabled persistent connection feature in torrent request.
  9962. * src/UrlRequestInfo.h
  9963. (UrlRequestInfo): Removed const qualifier from option.
  9964. * src/TorrentMan.h
  9965. (TransferStat): New class.
  9966. (deltaDownloadLength): Removed.
  9967. (deltaUploadLength): Removed.
  9968. (addDeltaDownloadLength): Removed.
  9969. (getDeltaDownloadLength): Removed.
  9970. (resetDeltaDownloadLength): Removed.
  9971. (addDeltaUploadLength): Removed.
  9972. (getDeltaUploadLength): Removed.
  9973. (resetDeltaUploadLength): Removed.
  9974. (addActivePeer): Added peer->activate().
  9975. (deleteActivePeer): Added peer->deactivate().
  9976. (calculateStat): New function.
  9977. * src/TorrentMan.cc
  9978. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  9979. (calculateStat): New function.
  9980. * src/PeerInteraction.h
  9981. (uploadLimit): Removed.
  9982. (option): New variable.
  9983. (setUploadLimit): Removed.
  9984. (getUploadSpeed): Removed.
  9985. (sendMessages): Removed the argument "currentUploadSpeed".
  9986. * src/PeerInteraction.cc
  9987. (prefs.h): Included.
  9988. (PeerInteraction): Removed uploadLimit. Added option.
  9989. (sendMessages): Rewritten upload speed limit.
  9990. (sendHandshake): Removed the argument from sendMessages().
  9991. (sendBitfield): Removed the argument from sendMessages().
  9992. * src/PeerAbstractCommand.cc
  9993. (execute): Commented out the portion of upload limit.
  9994. (onAbort): Removed peer->resetStatus().
  9995. * src/TorrentRequestInfo.cc
  9996. (timeoutSpecified): Declared extern.
  9997. (execute): Set timeout to 180 if timeout is not specified by.
  9998. command-line.
  9999. * src/PieceMessage.cc
  10000. (receivedAction): Added peer->updateDownloadLength().
  10001. Removed peer->addPeerUpload().
  10002. Removed torrentMan->addDeltaDownloadLength().
  10003. (send): Added peer->updateUploadLength().
  10004. Removed peer->addPeerDownload().
  10005. Removed torrentMan->addDeltaUploadLength().
  10006. * src/main.cc
  10007. (timeoutSpecified): New variable.
  10008. (main): Set timeoutSpecified to false.
  10009. If the command-line option "--upload-limit" is specified, then
  10010. timeoutSpecified is set to true. This option will remain in the next
  10011. release, but be deprecated in the future release.
  10012. * src/TorrentRequestInfo.h
  10013. (TorrentRequestInfo): Removed const qualifier from op.
  10014. * src/PeerStat.h
  10015. (uploadSpeed): New variable.
  10016. (PeerStat): Added default value to cuid.
  10017. (calculateUploadSpeed): New function.
  10018. (updateUploadLength): New function.
  10019. (getMaxUploadSpeed): New function.
  10020. (getAvgUploadSpeed): New function.
  10021. (reset): Added uploadSpeed. Set status to IDLE.
  10022. * src/TorrentDownloadEngine.h
  10023. (cp): Declared as Time.
  10024. (sessionDownloadLengthArray): Removed.
  10025. (sessionUploadLengthArray): Removed.
  10026. (currentCp): Removed.
  10027. (lastCalcStat): New variable
  10028. (lastElapsed): Removed.
  10029. (sessionDownloadLength): Removed.
  10030. (calculateStat): New function.
  10031. * src/TorrentDownloadEngine.cc
  10032. (initStatistics): Removed lastElapsed, cp[],
  10033. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  10034. currentCp, sessionDownloadLength.
  10035. Added cp.reset() and lastCalcStat.reset().
  10036. (calculateSpeed): Changed the name of the argument.
  10037. (calculateStatistics): Rewritten.
  10038. (calculateStat): New function.
  10039. * src/Peer.h
  10040. (PeerStat.h): Included.
  10041. (peerUpload): Removed.
  10042. (peerDownload): Removed.
  10043. (peerStat): New variable.
  10044. (sessionUploadLength): New variable.
  10045. (sessionDownloadLength): New variable.
  10046. (deltaUpload): Removed.
  10047. (deltaDownload): Removed.
  10048. (resetStatus): Made private.
  10049. (Peer): Added sessionUploadLength, sessionDownloadLength.
  10050. Removed peerUpload, peerDownload.
  10051. (updateUploadLength): New function.
  10052. (addDeltaUpload): Removed.
  10053. (updateDownloadLength): New function.
  10054. (resetDeltaUpload): Removed.
  10055. (getDeltaUpload): Removed.
  10056. (addDeltaDownload): Removed.
  10057. (calculateUploadSpeed): New function.
  10058. (resetDeltaDownload): Removed.
  10059. (getDeltaDownload): Removed.
  10060. (calculateDownloadSpeed): New function.
  10061. (getSessionUploadLength): New function.
  10062. (getSessionDownloadLength): New function.
  10063. (activate): New function.
  10064. (deactivate): New function.
  10065. (addPeerUpload): Removed.
  10066. (setPeerUpload): Removed.
  10067. (getPeerUpload): Removed.
  10068. (addPeerDownload): Removed.
  10069. (setPeerDownload): Removed.
  10070. (getPeerDownload): Removed.
  10071. * src/Peer.cc
  10072. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  10073. * src/MetalinkRequestInfo.h
  10074. (MetalinkRequestInfo): Removed const qualifier from op.
  10075. * src/RequestInfo.h
  10076. (op): Removed const qualifier.
  10077. (RequestInfo): Removed const qualifier from op.
  10078. * src/prefs.h
  10079. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  10080. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  10081. * src/PeerInteractionCommand.cc
  10082. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  10083. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  10084. * src/PeerInteraction.cc
  10085. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  10086. * src/main.cc
  10087. (showUsage): Updated the description of "--lowest-speed-limit" option.
  10088. Added the description of "--max-download-limit" option.
  10089. Removed the description of "--upload-limit" option.
  10090. Added the description of "--max-upload-limit" option.
  10091. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  10092. Added "--max-download-limit" option and "--max-upload-limit" option.
  10093. Added the warning message if "--upload-limit" option is used.
  10094. * src/DownloadCommand.cc
  10095. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  10096. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10097. To rewrite segment download mechanism for HTTP/FTP download.
  10098. Use BitfieldMan to manage segment download.
  10099. * src/HttpResponseCommand.h
  10100. (executeInternal): Pass the reference of segment.
  10101. * src/AbstractCommand.cc
  10102. (prepareForRetry): Call segmentMan->cancelSegment here.
  10103. (onAbort): Call segmentMan->cancelSegment here.
  10104. * src/HttpDownloadCommand.cc
  10105. (prepareForNextSegment): New function.
  10106. * src/DownloadEngineFactory.cc
  10107. (newConsoleEngine): Removed splitter.
  10108. (newTorrentConsoleEngine): Removed splitter.
  10109. * src/Request.h
  10110. (segment): Renamed from seg.
  10111. * src/FtpInitiateConnectionCommand.h
  10112. (executeInternal): Pass the reference of segment.
  10113. * src/AbstractCommand.h
  10114. (executeInternal): Pass the reference of segment.
  10115. * src/pref.h
  10116. (PREF_SEGMENT_SIZE): New definition.
  10117. * src/HttpProxyRequestCommand.h
  10118. (executeInternal): Pass the reference of segment.
  10119. * src/HttpResponseCommand.cc
  10120. (checkResponse): Allowed status 206 when a request range starts 0.
  10121. (handleDefaultEncoding): Rewritten the code related to Segment.
  10122. (handleOtherEncoding): Rewritten the code related to Segment.
  10123. * src/SegmentMan.h
  10124. (SegmentEntry): New class.
  10125. (SegmentEntries): New type definition.
  10126. (bitfield): New variable.
  10127. (usedSegmentEntries): New variable.
  10128. (onNullBitfield): New function.
  10129. (checkoutSegment): New function.
  10130. (segments): Removed.
  10131. (splitter): Removed.
  10132. (unregisterId): Removed.
  10133. (getSegment): New function(overload)
  10134. (getDownloadedSize): Removed.
  10135. (cancelSegment): New function.
  10136. (completeSegment): New function.
  10137. (initBitfield): New function.
  10138. (hasSegment): New function.
  10139. (getDownloadLength): New function.
  10140. * src/BitfieldMan.h
  10141. (getStartIndex): New function.
  10142. (getEndIndex): New function.
  10143. (getMissingUnusedIndex): New function(overload).
  10144. (getSparseMissingUnusedIndex): New function.
  10145. * src/BitfieldMan.cc
  10146. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  10147. (getMissingUnusedIndex): New function(overload).
  10148. (Range): New class.
  10149. (getStartIndex): New function.
  10150. (getEndIndex): New function.
  10151. (getSparseMissingUnusedIndex): New function.
  10152. (isBitSetInternal): Return false if the given index is less than 0.
  10153. * src/HttpInitiateConnectionCommand.h
  10154. (executeInternal): Pass the reference of segment.
  10155. * src/FtpNegotiateCommand.h
  10156. (executeInternal): Pass the reference of segment.
  10157. * src/FtpNegotiateCommand.cc
  10158. (recvSize): Initialize bitfield here.
  10159. * src/FtpTunnelResponseCommand.h
  10160. (executeInternal): Pass the reference of segment.
  10161. * src/HttpConnection.cc
  10162. (createRequest): Rewritten range header processing.
  10163. * src/DownloadCommand.h
  10164. (executeInternal): Pass the reference of segment.
  10165. (prepareForRetry): Removed.
  10166. (prepareForNextSegment): Added an argument segment. Made it a virtual
  10167. function.
  10168. * src/main.cc
  10169. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  10170. * src/SegmentMan.cc
  10171. (SegmentMan): Added bitfield. Removed splitter.
  10172. (~SegmentMan): Added bitfield. Removed splitter.
  10173. (unregisterId): Removed.
  10174. (getSegment): Rewritten.
  10175. (updateSegment): Rewritten.
  10176. (save): Rewritten.
  10177. (read): Rewritten.
  10178. (finished): Rewritten.
  10179. (getDownloadedSize): Removed.
  10180. (initBitfield): New function.
  10181. (FindSegmentEntryByIndex): New function object.
  10182. (FindSegmentEntryByCuid): New function object.
  10183. (checkoutSegment): New function.
  10184. (onNullBitfield): New function.
  10185. (getSegment): New function(overload).
  10186. (CancelSegment): New function object.
  10187. (cancelSegment): New function.
  10188. (completeSegment): New function.
  10189. (hasSegment): New function.
  10190. (getDownloadLength): New function.
  10191. * src/FtpInitiateConnectionCommand.cc
  10192. (executeInternal): Load .aria2 file after hostname resolution finishes.
  10193. * src/Segment.h: Rewritten.
  10194. * src/Segment.cc (operator<<): New function.
  10195. * src/HttpDownloadCommand.h
  10196. (prepareForNextSegment): New function.
  10197. * src/Request.cc
  10198. (resetUrl): Made segment null.
  10199. * src/DownloadEngine.cc
  10200. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  10201. * src/HttpProxyRequestCommand.h
  10202. (executeInternal): Pass the reference of segment.
  10203. * src/DownloadCommand.cc
  10204. (executeInternal): Rewritten the code related to Segment.
  10205. (prepareForRetry): Removed.
  10206. (prepareForNextSegment): Rewritten.
  10207. * src/FtpTunnelResponseCommand.h
  10208. (executeInternal): Pass the reference of segment.
  10209. To add HTTP 1.1 persistent connection support(experimental)
  10210. * src/HttpRequestCommand.cc
  10211. (executeInternal): Disable keep alive if it is disabled by
  10212. configuration.
  10213. * src/Request.h
  10214. (keepAlive): New variable.
  10215. (isKeepAlive): New function.
  10216. (setKeepAlive): New function.
  10217. * src/pref.h
  10218. (PREF_HTTP_KEEP_ALIVE): New definition.
  10219. * src/HttpResponseCommand.cc
  10220. (executeInternal): Check the remote server supports keep alive.
  10221. * src/HttpConnection.cc
  10222. (createRequest): Send "Connection: close" only if keep alive is
  10223. disabled.
  10224. * src/main.cc
  10225. (main):
  10226. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  10227. To add max download speed limit:
  10228. * src/pref.h
  10229. (PREF_MAX_SPEED_LIMIT): New definition.
  10230. * src/PeerInteractionCommand.cc
  10231. (executeInternal): Added max download speed limit. Not tested yet.
  10232. * src/SegmentMan.h
  10233. (PeerStats): New type definition.
  10234. (peerStats): New variable.
  10235. (registerPeerStat): New function.
  10236. (FindPeerStat): New function object.
  10237. (getPeerStat): New function.
  10238. (calculateDownloadSpeed): New function.
  10239. * src/SpeedCalc.h: New class.
  10240. * src/SpeedCalc.cc: New class.
  10241. * src/main.cc
  10242. (main):
  10243. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  10244. download speed is not restricted).
  10245. * src/PeerStat.h: New class.
  10246. * src/SegmentMan.cc
  10247. (registerPeerStat): New function.
  10248. (calculateDownloadSpeed): New function.
  10249. * src/DownloadCommand.cc
  10250. (STARTUP_IDLE_TIME): New definition.
  10251. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  10252. downloadStart.
  10253. (~DownloadCommand): Call peerStat->downloadStop.
  10254. (executeInternal): Added download speed limitter. Rewritten lowest
  10255. speed limitter.
  10256. * src/HttpConnection.cc
  10257. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  10258. * src/AbstractCommand.cc
  10259. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  10260. Added hostname to the error message.
  10261. * src/ConsoleDownloadEngine.cc
  10262. (calculateStatistics): Initialize psize with dlSize.
  10263. * src/PieceMessage.cc
  10264. (receivedAction): Do not call peerInteraction->abortPiece here.
  10265. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  10266. * src/BitfieldMan.h
  10267. (clearAllUseBit): New function.
  10268. (setAllUseBit): New function.
  10269. * src/BitfieldMan.cc
  10270. (clearAllBit): Do not clear useBitfield here.
  10271. (clearAllUseBit): New function.
  10272. (setAllUseBit): New function.
  10273. * src/Piece.cc
  10274. (clearAllBlock): Call bitfield->clearAllUseBit().
  10275. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10276. To make filename URL-decoded:
  10277. * src/HttpResponseCommand.h: Updated doc.
  10278. * src/HttpResponseCommand.cc
  10279. (determinFilename): Made filename URL-decoded.
  10280. * src/FtpInitiateConnectionCommand.cc
  10281. (executeInternal): Made filename URL-decoded.
  10282. * src/Util.h (urldecode): New function.
  10283. * src/Util.cc (urldecode): New function.
  10284. To fix a bug that caused assertion failure in ares_strerror:
  10285. * src/NameResolver.cc (callback): Fixed the bug.
  10286. * Release 0.7.3
  10287. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10288. To add --seed-time and --seed-ratio command-line option:
  10289. * src/Option.h (getAsDouble): New function.
  10290. * src/Option.cc (getAsDouble): New function.
  10291. * src/SeedCheckCommand.h: New class.
  10292. * src/SeedCheckCommand.cc: New class.
  10293. * src/DownloadEngineFactory.cc
  10294. (SeedCheckCommand.h): Included.
  10295. (UnionSeedCriteria.h): Included.
  10296. (TimeSeedCriteria.h): Included.
  10297. (ShareRatioSeedCriteria.h): Included.
  10298. (newTorrentConsoleEngine): Added the processing of seed option.
  10299. * src/SeedCriteria.h: New class.
  10300. * src/ShareRatioSeedCriteria.h: New class.
  10301. * src/TimeSeedCriteria.h: New class.
  10302. * src/UnionSeedCriteria.h: New class.
  10303. * src/prefs.h
  10304. (PREF_SEED_TIME): New definition.
  10305. (PREF_SEED_RATIO): New definition.
  10306. * src/main.cc
  10307. (showUsage): Added --seed-time and --seed-ratio option.
  10308. (main): Added --seed-time and --seed-ratio option.
  10309. Made default log file name "/dev/null".
  10310. * src/SharedHandle.h
  10311. (SharedHandle): Copy constructor. Made it assignable from the
  10312. SharedHandle of the subclasses.
  10313. (operator=): Made it assignable from the SharedHandle of the
  10314. subclasses.
  10315. (getRefCount): New function.
  10316. To add notice log level and the switch to write log to stdout. This
  10317. switch is configurable per log level.
  10318. * src/Logger.h
  10319. (notice): New function.
  10320. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  10321. constant.
  10322. * src/LogFactory.cc
  10323. (getInstance): The use of NullLogger was removed. A log message with
  10324. notice log level was made written to stdout along with log file.
  10325. * src/NullLogger.h
  10326. (notice): New function.
  10327. * src/SimpleLogger.h
  10328. (writeHeader): Added the 'file' argument.
  10329. (writeLog): Added the 'file' argument.
  10330. (writeFile): New function.
  10331. (stdoutField): New variable.
  10332. (SimpleLogger): Removed the default constructor.
  10333. (SimpleLogger): Made the default value of logfile 0.
  10334. (debug): Added 'virtual' keyword.
  10335. (info): Added 'virtual' keyword.
  10336. (warn): Added 'virtual' keyword.
  10337. (error): Added 'virtual' keyword.
  10338. (notice): New function.
  10339. (setStdout): New function.
  10340. * src/SimpleLogger.cc
  10341. (WRITE_LOG): Replaced writeLog with writeFile.
  10342. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  10343. (SimpleLogger): Removed the default constructor.
  10344. (setStdout): New function.
  10345. (writeLog): Added the handling of NOTICE log level.
  10346. (writeFile): New function.
  10347. (notice): New function.
  10348. * src/TorrentMan.h: Updated doc.
  10349. * src/BitfieldMan.h: Updated doc.
  10350. * src/TrackerWatcherCommand.cc
  10351. (execute): Return true if error occurred in the request to the tracker
  10352. and halt is requested.
  10353. * src/TrackerUpdateCommand.cc
  10354. (execute): Return true if error occurred in the request to the tracker
  10355. and halt is requested.
  10356. To call onDownloadComplete from TorrentMan::completePiece(), not from
  10357. DownloadEngine:
  10358. * src/TorrentConsoleDownloadEngine.h
  10359. (onSelectiveDownloadingCompletes): Removed.
  10360. * src/TorrentConsoleDownloadEngine.cc
  10361. (onSelectiveDownloadingCompletes): Removed.
  10362. * src/TorrentDownloadEngine.h
  10363. (onEndOfRun): Added 'virtual' keyword.
  10364. (afterEachIteration): Removed.
  10365. (onSelectiveDownloadingCompletes): Removed.
  10366. * src/TorrentDownloadEngine.cc
  10367. (onEndOfRun): Removed filenameFixed.
  10368. (afterEachIteration): Removed.
  10369. * src/TorrentMan.cc
  10370. (completePiece): Call onDownloadComplete here.
  10371. (onDownloadComplete): Added 2 log messages.
  10372. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10373. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  10374. * src/NameResolver.h: Added the prototype declaration of callback().
  10375. To support c-ares library:
  10376. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10377. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10378. * src/FtpInitiateConnectionCommand.h:
  10379. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10380. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10381. * src/HttpInitiateConnectionCommand.h:
  10382. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10383. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  10384. Added thes upport of c-ares's ares_strerror(the idea came from patch
  10385. #1542285 by tizianomueller)
  10386. * src/HttpInitiateConnectionCommand.cc:
  10387. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10388. * src/FtpInitiateConnectionCommand.cc:
  10389. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10390. * src/DownloadEngine.h:
  10391. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10392. * src/DownloadEngine.cc:
  10393. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10394. To fix the bug that causes compilation failure with metalink-support
  10395. disabled(bug#1543587):
  10396. * src/main.cc: Fixed with the patch by tizianomueller.
  10397. * Release 0.7.2
  10398. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10399. * src/main.cc
  10400. (main): Added a message to inform users that aria2 is starting to
  10401. verify checksum.
  10402. * src/RequestInfo.cc
  10403. (printDownloadAbortMessage): Added a message to inform users that
  10404. transfer can be resumed.
  10405. * src/FeatureConfig.cc
  10406. (FEATURE_ASYNC_DNS): New definition.
  10407. (FeatureConfig): Added aysnc DNS entry.
  10408. To replace CommandUuid with Command* in SocketEntry and
  10409. NameResolverEntry:
  10410. * src/DownloadEngine.h
  10411. (CommandUuids): Removed.
  10412. (SocketEntry::commandUuid): Removed.
  10413. (SocketEntry::command): New variable.
  10414. (SocketEntry::SocketEntry): Updated.
  10415. (SocketEntry::operator==): Updated.
  10416. (NameResolverEntry::commandUuid): Removed.
  10417. (NameResolverEntry::command): New variable.
  10418. (NameResolverEntry::NameResolverEntry): Updated.
  10419. (NameResolverEntry::operator==): Updated.
  10420. (waitData): Changed the argument type.
  10421. (addSocketForReadCheck): Changed the argument type.
  10422. (deleteSocketForReadCheck): Changed the argument type.
  10423. (addSocketForWriteCheck): Changed the argument type.
  10424. (deleteSocketForWriteCheck): Changed the argument type.
  10425. (addNameResolverCheck): Changed the argument type.
  10426. (deleteNameResolverCheck): Changed the argument type.
  10427. * src/DownloadEngine.cc
  10428. (FindCommand): Removed.
  10429. (run): Removed activeUuid. Added activeCommands instead.
  10430. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  10431. (AccumulateActiveCommand): New function object.
  10432. (waitData): Use AccumulateActiveCommand.
  10433. (addSocketForReadCheck): Use Command instead of CommandUuid.
  10434. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  10435. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  10436. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  10437. (addNameResolverCheck): Use Command instead of CommandUuid.
  10438. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  10439. * src/AbstractCommand.cc
  10440. (disableReadCheckSocket): Updated according to the changes in
  10441. DownloadEngine.
  10442. (setReadCheckSocket): Updated according to the changes in
  10443. DownloadEngine.
  10444. (disableWriteCheckSocket): Updated according to the changes in
  10445. DownloadEngine.
  10446. (setWriteCheckSocket): Updated according to the changes in
  10447. DownloadEngine.
  10448. (setNameResolverCheck): Updated according to the changes in
  10449. DownloadEngine.
  10450. (disableNameResolverCheck): Updated according to the changes in
  10451. DownloadEngine.
  10452. * src/AbstractCommand.cc
  10453. (disableReadCheckSocket): Updated according to the changes in
  10454. DownloadEngine.
  10455. (setReadCheckSocket): Updated according to the changes in
  10456. DownloadEngine.
  10457. (disableWriteCheckSocket): Updated according to the changes in
  10458. DownloadEngine.
  10459. (setWriteCheckSocket): Updated according to the changes in
  10460. DownloadEngine.
  10461. * release 0.7.1
  10462. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10463. To handle the case where some BitTorrent tracker requires all letters
  10464. except for [A-Za-z0-9] is URL encoded.
  10465. * src/Util.h
  10466. (torrentUrlencode): New function.
  10467. * src/Util.cc
  10468. (ctype.h): Included.
  10469. (torrentUrlencode): New function.
  10470. * src/TrackerWatcherCommand.cc
  10471. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  10472. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10473. To add asynchronous DNS support(libares):
  10474. * src/AbstractCommand.h
  10475. (setNameResolverCheck): New function.
  10476. (disableNameResolverCheck): New function
  10477. (resolveHostname): New function.
  10478. * src/AbstractCommand.cc
  10479. (setNameResolverCheck): New function.
  10480. (disableNameResolverCheck): New function
  10481. (resolveHostname): New function.
  10482. * src/FtpInitiateConnectionCommand.h
  10483. (nameResolver): New function.
  10484. * src/FtpInitiateConnectionCommand.cc
  10485. (Util.h): Included.
  10486. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  10487. disableWriteCheckSocket.
  10488. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  10489. (executeInternal): Added async DNS support.
  10490. * src/HttpInitiateConnectionCommand.h
  10491. (nameResolver): New function.
  10492. * src/HttpInitiateConnectionCommand.cc
  10493. (DlRetryEx.h): Included.
  10494. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  10495. disableWriteCheckSocket.
  10496. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  10497. (executeInternal): Added async DNS support.
  10498. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  10499. by extern "C" declaration.
  10500. * src/NameResolver.cc: New class.
  10501. * src/Util.h:
  10502. (isNumberAndDotsNotation): New function
  10503. * src/Util.cc
  10504. (isNumberAndDotsNotation): New function.
  10505. * src/DownloadEngine.h
  10506. (NameResolver.h): Included.
  10507. (NameResolverEntry): New class.
  10508. (NameResolverEntries): New type definition.
  10509. (addNameResolverCheck): New function.
  10510. (deleteNameResolverCheck): New function.
  10511. * src/DownloadEngine.cc
  10512. (run): Initialize cp with 0.
  10513. (SetDescriptor::operator()): Added for NameResolverEntry.
  10514. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  10515. (waitData): Check nameResolver entries.
  10516. (updateFdSet): Update fds in nameResolver entries.
  10517. (addNameResolverCheck): New function.
  10518. (deleteNameResolverCheck): new function.
  10519. * src/PeerInteractionCommand.cc
  10520. (executeInternal): Fixed wrong socket handling.
  10521. * src/main.cc
  10522. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  10523. * src/Util.cc
  10524. (fileChecksum): Removed the call to ctx.digestReset().
  10525. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10526. * po/ru.po: Azamat sent me Russian translation.
  10527. * src/FtpNegotiateCommand.cc
  10528. (recvGreeting): Call disableWriteCheckSocket just after
  10529. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  10530. (recvRetr): Recognized status code 125 as a acceptable response code.
  10531. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  10532. case-insesitive filesystem(BUG#1531057).
  10533. * src/Time.h: Renamed as TimeA2.h.
  10534. * src/Time.cc: Renamed as TimeA2.cc.
  10535. * src/TimeA2.h: New class.
  10536. * src/TimeA2.cc: New class.
  10537. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  10538. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  10539. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  10540. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  10541. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  10542. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  10543. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  10544. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  10545. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  10546. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  10547. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  10548. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  10549. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  10550. * release 0.7.0
  10551. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10552. * src/PeerChokeCommand.h
  10553. (PeerChokeCommand): Rearranged the arguments.
  10554. * src/PeerChokeCommand.cc
  10555. (PeerChokeCommand): Rearranged the arguments.
  10556. * src/MetalinkEntry.h
  10557. (Checksum.h): Included.
  10558. (md5): Removed.
  10559. (sha1): Removed.
  10560. (checksum): New variable.
  10561. (operator=): Updated.
  10562. (check): Removed.
  10563. * src/prefs.h
  10564. (PREF_LOWEST_SPEED_LIMIT): New definition.
  10565. (PREF_FOLLOW_TORRENT): New definition.
  10566. (PREF_SELECT_FILE): New definition.
  10567. (PREF_FOLLOW_METALINK): New definition.
  10568. * src/MetalinkResource.h
  10569. (TYPE_HTTPS): Added to enum TYPE.
  10570. * src/TorrentMan.cc
  10571. (~TorrentMan): Rewritten.
  10572. * src/MultiDiskWriter.cc
  10573. (MultiDiskAdaptor): Updated according to the changes in
  10574. MessageDigestContext.
  10575. (~MultiDiskAdaptor): Updated according to the changes in
  10576. MessageDigestContext.
  10577. (hashUpdate): Updated according to the changes in MessageDigestContext.
  10578. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10579. * src/Util.h
  10580. (fileChecksum): Updated according to the changes in
  10581. MessageDigestContext.
  10582. * src/Util.cc
  10583. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10584. (fileChecksum): Updated according to the changes in
  10585. MessageDigestContext.
  10586. * src/messageDigest.h: Rewritten.
  10587. * src/MetalinkEntry.cc
  10588. (check): Removed.
  10589. (Supported): Updated.
  10590. (dropUnsupportedResource): Fixed a memory leak.
  10591. * src/ShaVisitor.cc
  10592. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  10593. (~ShaVisitor): Updated according to the changes in
  10594. MessageDigestContext.
  10595. (visit): Updated according to the changes in MessageDigestContext.
  10596. * src/main.cc
  10597. (main): Rewritten the portion of download loop. --lowest-speed-limit
  10598. command-line option added.
  10599. * src/DownloadEngine.h
  10600. (SocketEntry): New class.
  10601. (SocketEntries): New definition.
  10602. (PairFind): Removed.
  10603. (SockCmdMap): Removed.
  10604. * src/DownloadEngine.cc
  10605. (DownloadEngine): Rewritten.
  10606. (~DownloadEngine): Rewritten.
  10607. (run): Renamed activeCommandUuids as activeUuids.
  10608. (SetDescriptor): Rewritten.
  10609. (AccumulateActiveCommandUuid): Removed.
  10610. (AccumulateActiveUuid): New function object.
  10611. (waitData): Rewritten.
  10612. (updateFdSet): Rewritten.
  10613. (addSocket): Rewritten.
  10614. (deleteSocket): Rewritten.
  10615. (addSocketForReadCheck): Rewritten.
  10616. (deleteSocketForReadCheck): Rewritten.
  10617. (addSocketForWriteCheck): Rewritten.
  10618. (deleteSocketForWriteCheck): Rewritten.
  10619. * src/Xml2MetalinkProcessor.cc
  10620. (getEntry): Rewritten the portion of MetalinkEntry creation.
  10621. * src/DownloadCommand.cc
  10622. (executeInternal): Added the check routine for lowest speed limit.
  10623. * src/AbstractDiskWriter.cc
  10624. (AbstractDiskWriter): Updated according to the changes in
  10625. MessageDigestContext.
  10626. (~AbstractDiskWriter): Updated according to the changes in
  10627. MessageDigestContext.
  10628. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10629. * src/RequestInfo.h: New class.
  10630. * src/UrlRequestInfo.h: New class.
  10631. * src/UrlRequestInfo.cc: New class.
  10632. * src/TorrentRequestInfo.h: New class.
  10633. * src/TorrentRequestInfo.cc: New class.
  10634. * src/MetalinkRequestInfo.h: New class.
  10635. * src/MetalinkRequestInfo.cc: New class.
  10636. * src/Checksum.h: New class.
  10637. * src/DownloadEngineFactory.h: New class.
  10638. * src/DownloadEngineFactory.cc: New class.
  10639. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10640. * src/Option.h
  10641. (getAsBool): New function.
  10642. * src/Option.cc
  10643. (prefs.h): Included.
  10644. (defined): 0-length value is now recognized as undefined.
  10645. (getAsInt): Rewritten.
  10646. (getAsLLInt): Rewritten.
  10647. (getAsBool): New function.
  10648. * src/FeatureConfig.h: Rewritten.
  10649. * src/FeatureConfig.cc: Rewritten.
  10650. * src/prefs.h
  10651. (PREF_STDOUT_LOG): New definition.
  10652. (PREF_LOG): New definition.
  10653. (PREF_DIR): New definition.
  10654. (PREF_OUT): New definition.
  10655. (PREF_SPLIT): New definition.
  10656. (PREF_DAEMON): New definition.
  10657. (PREF_REFERER): New definition.
  10658. (PREF_TORRENT_FILE): New definition.
  10659. (PREF_LISTEN_PORT): New definition.
  10660. (PREF_METALINK_FILE): New definition.
  10661. (PREF_METALINK_VERSION): New definition.
  10662. (PREF_METALINK_LANGUAGE): New definition.
  10663. (PREF_METALINK_OS): New definition.
  10664. (PREF_METALINK_SERVERS): New definition.
  10665. * src/main.cc
  10666. (main): Following command-line parameters are now put into Option
  10667. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  10668. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  10669. metalinkLanguage, metalinkOs, metalinkServers
  10670. To fix the bug that aria2 can not handle http response header properly.
  10671. * src/HttpHeader.cc
  10672. (put): Made name lowercased.
  10673. (defined): Made name lowercased.
  10674. (getFirst): Made name lowercased.
  10675. (get): Made name lowercased.
  10676. (getFirstAsInt): Rewritten.
  10677. (getFirstAsLLInt): Rewritten.
  10678. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10679. * src/TorrentMan.h:
  10680. (advertisePiece): Updated doc.
  10681. (getAdvertisedPieceIndexes): Updated doc.
  10682. (removeAdvertisedPiece); New function.
  10683. * src/TorrentMan.cc
  10684. (FindElapsedHave): New function object.
  10685. (removeAdvertisedPiece): New function.
  10686. * src/HaveEraseCommand.h: New class.
  10687. * src/HaveEraseCommand.cc: New class.
  10688. * src/FeatureConfig.h: New class.
  10689. * src/FeatureConfig.cc: New class.
  10690. * src/Request.h
  10691. (defaultPorts): Removed.
  10692. * src/Request.cc
  10693. (FeatureConfig.h): Included.
  10694. (Request): Removed the statements related to defaultPorts.
  10695. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  10696. A default port number is now retrieved from FeatureConfig.
  10697. * src/main.cc
  10698. (HaveEraseCommand.h): Included.
  10699. (showVersion): Added the output of feature list.
  10700. (main): Added HaveEraseCommand to command queue in BitTorrent
  10701. downloading.
  10702. * src/PeerInteractionCommand.h
  10703. (chokeCheckPoint): Commented out.
  10704. (periodicExecPoint): New variable.
  10705. * src/PeerInteractionCommand.cc
  10706. (executeInternal): Following methods are now called in at least every
  10707. 0.5 seconds to reduce CPU usage:
  10708. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  10709. checkHave(), sendKeepAlive().
  10710. (checkLongTimePeerChoking): Commented out.
  10711. * src/BitfieldMan.h
  10712. (getNthBitIndex): Changed the method signature.
  10713. (getMissingIndexRandomly): Changed the method signature.
  10714. * src/BitfieldMan.cc
  10715. (getNthBitIndex): Rewritten
  10716. (getMissingIndexRandomly): Rewritten.
  10717. (hasMissingPiece): Rewritten.
  10718. (getMissingIndex): Refactored.
  10719. (getMissingUnusedIndex); Refactored.
  10720. (getMissingIndex): Refactored.
  10721. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10722. * src/PeerMessage.h
  10723. (Piece.h): Included.
  10724. (SharedHandle.h): Included.
  10725. (invalidate): New variable.
  10726. (uploading): New variable.
  10727. (isInvalidate): New function.
  10728. (isUploading): New function.
  10729. (onPush): New function.
  10730. (onChoked): New function.
  10731. (onCanceled): New function.
  10732. (onAbortPiece): New function.
  10733. (PeerMessageHandle): New type definition.
  10734. * src/PeerMessage.cc
  10735. (PeerMessage): Added the initialization for invalidate and uploading.
  10736. * src/CancelMessage.h
  10737. (CancelMessage): Rewritten.
  10738. * src/RejectMessage.h
  10739. (RejectMessage): Rewritten.
  10740. * src/Metalinker.h
  10741. (operator=): Defined.
  10742. * src/MetaEntry.h
  10743. (operator=): Defined.
  10744. * src/MetalinkResource.h
  10745. (operator=): Defined.
  10746. * src/AllowedFastMessage.h
  10747. (AllowedFastMessage): Rewritten.
  10748. * src/HandshakeMessage.h
  10749. (HandshakeMessage): New function(overload).
  10750. * src/HandshakeMessage.cc
  10751. (HandshakeMessage): Rewritten.
  10752. (init): New function.
  10753. * src/HaveMessage.h
  10754. (HaveMessage): Rewritten.
  10755. * src/Time.h
  10756. (operator=): Defined the function body here.
  10757. * src/Time.cc
  10758. (operator=): Removed.
  10759. * src/SocketCore.h
  10760. (operator==): Defined here.
  10761. (operator!=): Defined here.
  10762. (operator<): Defined here.
  10763. * src/SocketCore.cc
  10764. (operator==): Removed.
  10765. (operator<): Removed.
  10766. * src/BitfieldMan.h
  10767. (operator=): Defined the function body here.
  10768. * src/BitfieldMan.cc
  10769. (operator=): Removed.
  10770. * src/TorrentMan.h
  10771. (deleteErrorPeer): Removed.
  10772. (deleteUnusedPeer); New function.
  10773. * src/TorrentMan.cc
  10774. (addPeer): Call deleteUnusedPeer.
  10775. (deleteErrorPeer): Removed.
  10776. (deleteUnusedPeer): New function.
  10777. * src/PeerAbstractCommand.h
  10778. (setNoCheck): New function.
  10779. (noCheck): New variable.
  10780. * src/PeerAbstractCommand.cc
  10781. (PeerAbstractCommand): Added the initialization of noCheck.
  10782. (execute): Added a check for noCheck.
  10783. (setNoCheck): New function.
  10784. * src/Util.h
  10785. (stdio.h): Included.
  10786. * src/Util.cc
  10787. (unistd.h): Included.
  10788. * src/DefaultDiskWriter.cc
  10789. (unistd.h): Included.
  10790. * src/Peer.h
  10791. (operator==): Defined the function body here.
  10792. (operator!=): Defined the function body here.
  10793. * src/Peer.cc
  10794. (operator==): Removed.
  10795. (operator!=): Removed.
  10796. * src/Piece.h
  10797. (Piece): Defined the function body here(copy constructor).
  10798. (operator=): Defined the function body here.
  10799. (operator==): Defined the function body here.
  10800. * src/Piece.cc
  10801. (Piece): Removed(copy constructor).
  10802. (operator=): Removed.
  10803. (operator==): Removed.
  10804. * src/PeerMessageUtil.h
  10805. (ChokeMessage.h): Removed.
  10806. (UnchokeMessage.h): Removed.
  10807. (InterestedMessage.h): Removed.
  10808. (NotInterestedMessage.h): Removed.
  10809. (HaveMessage.h): Removed.
  10810. (BitfieldMessage.h): Removed.
  10811. (RequestMessage.h): Removed.
  10812. (CancelMessage.h): Removed.
  10813. (PieceMessage.h): Removed.
  10814. (HandshakeMessage.h): Removed.
  10815. (KeepAliveMessage.h): Removed.
  10816. (PortMessage.h): Removed.
  10817. (HaveAllMessage.h): Removed.
  10818. (HaveNoneMessage.h): Removed.
  10819. (PeerConnection.h): Removed.
  10820. (HandshakeMessage.h): Included.
  10821. * src/BitfieldMessage.h
  10822. (init): New function.
  10823. (BitfieldMessage): Rewritten.
  10824. (BitfieldMessage): New function(overload).
  10825. * src/RequestSlot.h
  10826. (operator=): Defined the function body here.
  10827. (operator==): Defined the function body here.
  10828. * src/RequestSlot.cc
  10829. (operator=): Removed.
  10830. (operator==): Removed.
  10831. To remove the dependency on the PeerMessage subclass from
  10832. PeerInteraction:
  10833. * src/PeerMessageFactory.h: New class.
  10834. * src/PeerMessageFactory.cc: New class.
  10835. * src/SimplePeerMessage.cc
  10836. (send): If invalidate is true then do nothing.
  10837. * src/PeerInteractionCommand.cc
  10838. (HandshakeMessage.h): Included.
  10839. (KeepAliveMessage.h): Included.
  10840. (ChokeMessage.h): Included.
  10841. (UnchokeMessage.h): Included.
  10842. (HaveMessage.h): Included.
  10843. (executeInternal): Call setNoCheck().
  10844. Removed setWriteCheckSocket(socket).
  10845. * src/PeerInteraction.h
  10846. (ChokeMessage.h): Removed.
  10847. (UnchokeMessage.h): Removed.
  10848. (InterestedMessage.h): Removed.
  10849. (NotInterestedMessage.h): Removed.
  10850. (HaveMessage.h): Removed.
  10851. (BitfieldMessage.h): Removed.
  10852. (RequestMessage.h): Removed.
  10853. (CancelMessage.h): Removed.
  10854. (PieceMessage.h): Removed.
  10855. (HandshakeMessage.h): Removed.
  10856. (KeepAliveMessage.h): Removed.
  10857. (PortMessage.h): Removed.
  10858. (HaveAllMessage.h): Removed.
  10859. (HaveNoneMessage.h): Removed.
  10860. (RejectMessage.h): Removed.
  10861. (AllowedFastMessage.h): Removed.
  10862. (SuggestPieceMessage.h): Removed.
  10863. (PeerMessageFactory.h): Included.
  10864. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  10865. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  10866. (PeerMessageFactory): New variable.
  10867. (createPeerMessage): Removed.
  10868. (createHandshakeMessage): Removed.
  10869. (setPeerMessageCommonProperty): Removed.
  10870. (addRequestSlot): New function.
  10871. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  10872. (getPeerMessageFactory): New function.
  10873. (createRequestMessage): Removed.
  10874. (createCancelMessage): Removed.
  10875. (createPieceMessage): Removed.
  10876. (createHaveMessage): Removed.
  10877. (createChokeMessage): Removed.
  10878. (createUnchokeMessage): Removed.
  10879. (createInterestedMessage): Removed.
  10880. (createNotInterestedMessage): Removed.
  10881. (createBitfieldMessage): Removed.
  10882. (createKeepAliveMessage): Removed.
  10883. (createHaveAllMessage): Removed.
  10884. (createHaveNoneMessage): Removed.
  10885. (createRejectMessage): Removed.
  10886. (createAllowedFastMessage): Removed.
  10887. * src/PeerInteraction.cc
  10888. (PeerInteraction): Allocate PeerMessageFactory here.
  10889. (~PeerInteraction): Deallocate PeerMessageFactory here.
  10890. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  10891. PieceMessage::ID.
  10892. (addMessage): Simplified by using PeerMessage::onPush().
  10893. (addRequestSlot): New function.
  10894. (rejectAllPieceMessageInQueue): Simplified by using
  10895. PeerMessage::onChoked().
  10896. (rejectPieceMessageInQueue): Simplified by using
  10897. PeerMessage::onCanceled().
  10898. (abortPiece): Simplified by using PeerMessage::abortPiece().
  10899. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  10900. (createHandshakeMessage): Removed.
  10901. (createPeerMessage): Removed.
  10902. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  10903. (setPeerMessageCommonProperty): Removed.
  10904. (createRequestMessage): Removed.
  10905. (createCancelMessage): Removed.
  10906. (createPieceMessage): Removed.
  10907. (createHaveMessage): Removed.
  10908. (createChokeMessage): Removed.
  10909. (createUnchokeMessage): Removed.
  10910. (createInterestedMessage): Removed.
  10911. (createNotInterestedMessage): Removed.
  10912. (createBitfieldMessage): Removed.
  10913. (createKeepAliveMessage): Removed.
  10914. (createHaveAllMessage): Removed.
  10915. (createHaveNoneMessage): Removed.
  10916. (createRejectMessage): Removed.
  10917. (createAllowedFastMessage): Removed.
  10918. * src/PieceMessage.h
  10919. (createRejectMessage): New function.
  10920. (PieceMessage): Rewritten.
  10921. (onChoked): New function.
  10922. (onCanceled): New function.
  10923. * src/PieceMessage.cc
  10924. (send): If invalidate is true then do nothing, just return.
  10925. (createRejectMessage): New function.
  10926. (onChoked): New function.
  10927. (onCanceled): New function.
  10928. * src/RequestMessage.h
  10929. (RequestMessage): Rewritten.
  10930. (onPush): New function.
  10931. (onAbortPiece): New function.
  10932. * src/RequestMessage.cc
  10933. (onPush): New function.
  10934. (onAbortPiece): New function.
  10935. Update fd_set when a socket is added or deleted in order to improve
  10936. performance:
  10937. * src/DownloadEngine.h
  10938. (rfdset): New variable.
  10939. (wfdset): New variable.
  10940. (updateFdSet): New function.
  10941. * src/DownloadEngine.cc
  10942. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  10943. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  10944. (waitData): Copy rfdset and wfdset.
  10945. (updateFdSet): New function.
  10946. (addSocket): Call updateFdSet.
  10947. (deleteSocket): Call updateFdSet.
  10948. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10949. To add the support for Metalink3.0 backward compatible links:
  10950. * src/Request.h
  10951. (SAFE_CHARS): Added '#'.
  10952. (METALINK_MARK): New definition.
  10953. * src/Request.cc
  10954. (parseUrl): Added the support for Metalink3.0 backward compatible
  10955. links.
  10956. etc
  10957. * src/PeerInteraction.cc
  10958. (MsgPushBack): Removed.
  10959. (sendMessages): Use STL copy and back_inserter.
  10960. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  10961. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  10962. * src/TorrentMan.h
  10963. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  10964. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10965. * src/SharedHandle.h: New class.
  10966. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  10967. * src/HttpResponseCommand.h
  10968. (HttpResponseCommand): Wrapped Socket.
  10969. * src/SocketCore.h
  10970. (operator==): New function.
  10971. (operator!=): New function.
  10972. (operator<): New function.
  10973. (getSockfd): New function.
  10974. (isOpen): New function.
  10975. (writeData): New function.
  10976. * src/SocketCore.cc
  10977. (operator==): New function.
  10978. (operator!=): New function.
  10979. (operator<): New function.
  10980. * src/AbstractCommand.h
  10981. (socket): Changed its type to SocketHandle.
  10982. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10983. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10984. (disableReadCheckSocket): New function.
  10985. (disableWriteCheckSocket): New function.
  10986. (readCheckTarget): Changed its type to SocketHandle.
  10987. (writeCheckTarget): Changed its type to SocketHandle.
  10988. (AbstractCommand): Replaced Socket with SocketHandle.
  10989. * src/AbstractCommand.cc
  10990. (AbstractCommand): Replaced Socket with SocketHandle.
  10991. (~AbstractCommand): Removed the deallocation for Socket object.
  10992. (disableReadCheckSocket): New function.
  10993. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10994. (disableWriteCheckSocket): New function.
  10995. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10996. * src/HttpDownloadCommand.cc
  10997. (DownloadCommand): Replaced Socket with SocketHandle.
  10998. * src/PeerAbstractCommand.h
  10999. (socket): Changed its type to SocketHandle.
  11000. (peer): Changed its type to PeerHandle.
  11001. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11002. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11003. (disableReadCheckSocket): New function.
  11004. (disableWriteCheckSocket): New function.
  11005. (readCheckTarget): Changed its type to SocketHandle.
  11006. (writeCheckTarget): Changed its type to SocketHandle.
  11007. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11008. Replaced Peer with PeerHandle.
  11009. * src/HttpRequestCommand.cc
  11010. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11011. Use disableReadCheckSocket.
  11012. * src/PeerInitiateConnectionCommand.h
  11013. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11014. * src/PeerChokeCommand.cc
  11015. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  11016. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  11017. (execute): Use PeerHandle.
  11018. * src/PeerConnection.h
  11019. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  11020. (socket): Changed its type to SocketHandle.
  11021. (PeerConnection): Replaced Socket with SocketHandle.
  11022. * src/PeerConnection.cc
  11023. (PeerConnection): Replaced Socket with SocketHandle.
  11024. * src/PeerInteractionCommand.h
  11025. (PeerInteractionCommand): Replaced socket with SocketHandle.
  11026. Replaced Peer with PeerHandle.
  11027. * src/PeerInteractionCommand.cc
  11028. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  11029. Replaced Peer with PeerHandle.
  11030. (executeInternal): Use disableWriteCheckSocket.
  11031. Use HandshakeMessageHandle.
  11032. (receiveMessages): Use PeerMessageHandle.
  11033. (prepareForNextPeer): Use PeerHandle.
  11034. * src/HttpProxyRequestCommand.h
  11035. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11036. * src/HttpResponseCommand.cc
  11037. (HttpResponseCommand): Replaced Socket with SocketHandle.
  11038. * src/TorrentMan.cc
  11039. (nullPeer): Added external reference.
  11040. (~TorrentMan): Removed the deallocation of the elements of peers.
  11041. (addPeer): Rewritten.
  11042. (isPeerAvailable): Use nullPeer.
  11043. (deleteOldpeers): Replaced with deleteErrorPeer.
  11044. (deleteErrorPeer): New function.
  11045. (getPeer): Use PeerHandle and nullPeer.
  11046. (hasMissingPiece): Replaced Peer with PeerHandle.
  11047. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11048. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11049. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11050. (getMissingPiece): Replaced Peer with PeerHandle.
  11051. * src/FtpNegotiateCommand.cc
  11052. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  11053. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  11054. (recvGreeting): Use disableWriteCheckSocket.
  11055. (recvPasv): Removed the allocation of Socket.
  11056. Use disableReadCheckSocket.
  11057. (sendRestPasv): Use disableWriteCheckSocket.
  11058. (recvRetr): Changed assertion.
  11059. * src/PeerInteraction.h
  11060. (SharedHandle.h): Included SharedHandle.h.
  11061. (PeerMessageHandle): New type definition.
  11062. (HandshakeMessageHandle): New type definition.
  11063. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  11064. (peer): Changed its type to PeerHandle.
  11065. (createHandshakeMessage): Replaced HandshakeMessage with
  11066. HandshakeMessageHandle.
  11067. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  11068. (PeerInteraction): Replaced Peer with PeerHandle.
  11069. Replaced Socket with SocketHandle.
  11070. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11071. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11072. (receiveHandshake): Replaced HandshakeMessage with
  11073. HandshakeMessageHandle.
  11074. * src/PeerInteraction.cc
  11075. (PeerInteraction): Replaced Peer with PeerHandle.
  11076. Replaced Socket with SocketHandle.
  11077. (~PeerInteraction): Removed the deallocation of the elements of
  11078. messageQueue.
  11079. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  11080. (isSendingMessageInProgress): Replaced PeerMessage with
  11081. PeerMessageHandle.
  11082. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  11083. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11084. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  11085. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  11086. (abortPiece): Use PeerMessageHandle.
  11087. (receiveHandshake): Replaced HandshakeMessage with
  11088. HandshakeMessageHandle. Removed try-catch block.
  11089. (createHandshakeMessage): Replaced HandshakeMessage with
  11090. HandshakeMessageHandle.
  11091. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11092. Removed try-catch block.
  11093. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  11094. * src/HttpProxyResponseCommand.cc
  11095. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11096. * src/FtpTunnelResponseCommand.h
  11097. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11098. * src/HttpConnection.cc
  11099. (HttpConnection): Replaced Socket with SocketHandle.
  11100. * src/PeerAbstractCommand.cc
  11101. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11102. (~PeerAbstractCommand): Removed the deallocation of socket.
  11103. Use disableReadCheckSocket, disableWriteCheckSocket.
  11104. (disableReadCheckSocket): New function.
  11105. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11106. (disableWriteCheckSocket): New function.
  11107. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11108. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  11109. * src/FtpTunnelRequestCommand.cc
  11110. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11111. (~FtpTunnelRequestCommand): Corrected indentation.
  11112. * src/DownloadCommand.h
  11113. (DownloadCommand): Replaced Socket with SocketHandle.
  11114. * src/PeerListenCommand.cc
  11115. (PeerListenCommand): Removed the initialization of socket.
  11116. (~PeerListenCommand): Removed the deallocation of socket.
  11117. (bindPort): Use SocketHandle.
  11118. (execute): Use SocketHandle and PeerHandle.
  11119. * src/FtpDowndloadCommand.cc
  11120. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11121. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  11122. * src/main.cc
  11123. (main): Corrected indentation.
  11124. * src/HttpInitiateConnectionCommand.cc
  11125. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  11126. (executeInternal): Removed the allocation of socket.
  11127. * src/HttpRequestCommand.h
  11128. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11129. * src/FtpNegotiationCommand.h
  11130. (dataSocket): Changed its type to SocketHandle.
  11131. (serverSocket): Changed its type to SocketHandle.
  11132. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  11133. * src/TorrentMan.h
  11134. (MAX_PEER_UPDATE): Removed.
  11135. (MAX_PEERS): New definition.
  11136. (Peers): The element is now of type PeerHandle.
  11137. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  11138. (getPeer): Replaced Peer with PeerHandle.
  11139. (deleteOldErrorPeers): Removed.
  11140. (deleteErrorPeer): New function.
  11141. (hasMissingPiece): Replaced Peer with PeerHandle.
  11142. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11143. (getMissingPiece): Replaced Peer with PeerHandle.
  11144. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11145. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11146. (addActivePeer): Replaced Peer with PeerHandle.
  11147. (deleteActivePeer): Replaced Peer with PeerHandle.
  11148. Added a check for the return value of find.
  11149. * src/FtpTunnelResponseCommand.cc
  11150. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11151. * src/FtpInitiateConnectionCommand.cc
  11152. (executeInternal): Removed the allocation of socket.
  11153. * src/DownloadEngine.h
  11154. (Sockets): An element is now of type SocketHandle.
  11155. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  11156. (CommandUuids): New type definition.
  11157. (rsockets): Changed its type to SockCmdMap.
  11158. (wsockets): Changed its type to SockCmdMap.
  11159. (addSocket): Rewritten.
  11160. (deleteSocket): Rewritten.
  11161. (addSocketForReadCheck): Rewritten.
  11162. (deleteSocketForReadCheck): Rewritten.
  11163. (addSocketForWriteCheck): Rewritten.
  11164. (deleteSocketForWriteCheck): Rewritten.
  11165. (PairFind): New template class.
  11166. * src/HttpDownloadCommand.h
  11167. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  11168. * src/FtpConnection.cc
  11169. (FtpConnection): Replaced Socket with SocketHandle.
  11170. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  11171. block.
  11172. * src/InitiateConnectionCommandFactory.cc
  11173. (DlAbortEx.h): Included DlAbortEx.h.
  11174. (createInitiateConnectionCommand): Throw exception if the protocol of
  11175. requested URI is not supported.
  11176. * src/Peer.cc
  11177. (nullPeer): Changed its type to PeerHandle.
  11178. (operator==): New function.
  11179. (operator!=): New function.
  11180. * src/Peer.h
  11181. (SharedHandle.h): Included SharedHandle.h.
  11182. (operator==): New function.
  11183. (operator!=): New function.
  11184. (Peer): Added the default constructor.
  11185. Use resetStatus() to initialize member variables.
  11186. (nullPeer): Removed.
  11187. * src/TrackerUpdateCommand.cc
  11188. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  11189. with MIN_PEERS.
  11190. * src/PeerListenCommand.h
  11191. (socket): Changed its type to SocketHandle.
  11192. * src/Command.h
  11193. (CommandUuid): New type definition.
  11194. (uuid): New variable.
  11195. (uuidGen): New variable.
  11196. (Command): Added the initialization of uuid.
  11197. (getUuid): New function.
  11198. * src/Socket.h
  11199. (Socket): Removed.
  11200. (SocketHandle): New type definition.
  11201. * src/DownloadEngine.h
  11202. (FindCommand): New function object.
  11203. (run): The portion of socket check was rewritten.
  11204. (SetDescriptor): New function object.
  11205. (AccumulateActiveCommandUuid): New function object.
  11206. (waitData): Rewritten.
  11207. (addSocket): Rewritten.
  11208. (deleteSocket): Rewritten.
  11209. (addSocketForReadCheck): Rewritten.
  11210. (addSocketForWriteCheck): Rewritten.
  11211. (deleteSocketForReadCheck): Rewritten.
  11212. (deleteSocketForWriteCheck): Rewritten.
  11213. * src/HttpProxyResponseCommand.h
  11214. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  11215. * src/HttpConnection.h
  11216. (socket): Changed its type to SocketHandle.
  11217. (HttpConnection): Replaced Socket with SocketHandle.
  11218. * src/PeerInitiateConnectionCommand.cc
  11219. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11220. (executeInternal): Removed the allocation of socket.
  11221. (prepareForNextPeer): Use PeerHandle.
  11222. * src/PeerMessage.h
  11223. (peer): Changed its type to PeerHandle.
  11224. (getPeer): Replaced Peer with PeerHandle.
  11225. (setPeer): Replaced Peer with PeerHandle.
  11226. * src/DownloadCommand.cc
  11227. (DownloadCommand): Replaced Socket with SocketHandle.
  11228. * src/FtpConnection.h
  11229. (socket): Changed its type to SocketHandle.
  11230. (FtpConnection): Replaced Socket with SocketHandle.
  11231. (sendPort); Replaced Socket with SocketHandle.
  11232. * src/FtpDowndloadCommand.h
  11233. (ctrlSocket): Changed its type to SocketHandle.
  11234. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11235. * src/HttpProxyRequestCommand.cc
  11236. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11237. * src/FtpTunnelRequestCommand.h
  11238. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11239. etc
  11240. * src/PeerChokeCommand.h
  11241. (setAllPeerChoked): Removed.
  11242. (setAllPeerResetDelta): Removed.
  11243. * src/PeerChokeCommand.cc
  11244. (setAllPeerChoked): Removed.
  11245. (ChokePeer): New function object.
  11246. (setAllPeerResetDelta): Removed.
  11247. (ResetDelta): New function object.
  11248. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  11249. (execute): Show download speed when the local node is a seeder.
  11250. setAllPeerChoked and setAllPeerResetDelta were rewritten
  11251. using STL.
  11252. * src/TrackerWatcherCommand.h
  11253. (MIN_PEERS): Removed.
  11254. * src/TorrentMan.cc
  11255. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  11256. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11257. To fix the bug that .aria2 file is not saved if downloading is stopped
  11258. by the errors:it results that aria2 can not resume downloading:
  11259. * src/main.cc
  11260. (normalDownload): Added the call to save().
  11261. (main): Added the deletion of the elements in 'reserved'.
  11262. To fix log:
  11263. * src/PeerInteraction.cc
  11264. (receiveHandshake): Fixed log.
  11265. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11266. To improve download performance in BitTorrent:
  11267. * src/TorrentMan.cc
  11268. (getPeer): Check the number of connections. Return nullPeer if
  11269. it is greater than MAX_PEER_UPDATE.
  11270. This code was originally here, but was removed in 0.5.1.
  11271. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11272. To improve the conditional compilation:
  11273. * src/MultiDiskWriter.h:
  11274. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11275. * src/MultiDiskWriter.cc:
  11276. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11277. * src/Util.h:
  11278. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11279. Added ENABLE_BITTORRENT around computeFastSet().
  11280. * src/Util.cc:
  11281. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11282. Added ENABLE_BITTORRENT around computeFastSet().
  11283. * src/messageDigest.h:
  11284. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  11285. * src/ShaVisitor.h:
  11286. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11287. * src/ShaVisitor.cc:
  11288. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11289. * src/main.cc:
  11290. Added ENABLE_BITTORRENT around includes and blocks related to
  11291. BitTorrent.
  11292. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  11293. digest support is not available.
  11294. * src/AbstractDiskWriter.h:
  11295. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11296. * src/AbstractDiskWriter.cc:
  11297. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11298. * src/MetalinkEntry.cc
  11299. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  11300. support is not available.
  11301. To add command-line options for Metalink:
  11302. * src/main.cc:
  11303. Added metalink-version, metalink-language, metalink-os,
  11304. follow-metalink.
  11305. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  11306. * src/main.cc: Use these definition.
  11307. * Release 0.6.0
  11308. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11309. To add Metalink support(http/ftp only):
  11310. * src/AbstractCommand.h
  11311. (tryReserved): New function.
  11312. * src/AbstractCommand.cc
  11313. (execute): Call tryReserved().
  11314. (tryReserved): New function.
  11315. * src/Request.h
  11316. (Requests): New type definition.
  11317. * src/SegmentMan.h
  11318. (reserved): New variable.
  11319. * src/Util.h
  11320. (fileChecksum): New function.
  11321. (toUpper): New function.
  11322. (toLower): New function.
  11323. * src/Util.cc
  11324. (messageDigest.h): Included.
  11325. (trim): Trim \r\n\t.
  11326. (fileChecksum): New function.
  11327. (toUpper): New function.
  11328. (toLower): New function.
  11329. * src/main.cc
  11330. (normalDownload): New function.
  11331. (main): Added 2 command-line options: metalink-file,
  11332. metalink-connection. Their usage has not been written yet.
  11333. * src/MetalinkProcessor.h: New class.
  11334. * src/Xml2MetalinkProcessor.h: New class.
  11335. * src/Xml2MetalinkProcessor.cc: New class.
  11336. * src/MetalinkEntry.h: New class.
  11337. * src/MetalinkEntry.cc: New class.
  11338. * src/MetalinkResource.h: New class.
  11339. * src/MetalinkResource.cc: New class.
  11340. To add md5 message digest checking:
  11341. * src/messageDigest.h: Rewritten.
  11342. * src/MultiDiskWriter.cc: Updated according to the changes in
  11343. messageDigest.h.
  11344. * src/ShaVisitor.cc: Updated according to the changes in
  11345. messageDigest.h.
  11346. * src/Util.cc: Updated according to the changes in messageDigest.h.
  11347. * src/AbstractDiskWriter.cc: Updated according to the changes in
  11348. messageDigest.h.
  11349. To fix a bug that causes segfault when the payload length in peer
  11350. message is less than 0:
  11351. * src/PeerConnection.cc:
  11352. (receiveMessage): Fixed the bug.
  11353. * src/PeerMessageUtil.cc
  11354. (checkLength): Throw an exception if length is less than or equals to
  11355. 0.
  11356. To add new interfaces to Base64 encoding/decoding:
  11357. * src/Base64.h
  11358. (part_encode): Changed the method signature.
  11359. (encode): New function(overload).
  11360. (decode): New function(overload).
  11361. * src/Base64.cc
  11362. (part_encode): Rewritten.
  11363. (encode): Rewritten.
  11364. (encode): New function(overload).
  11365. To prevent a peer to download same piece if there is an error in
  11366. checksum:
  11367. * src/PieceMessage.cc
  11368. (receivedAction): Call peerInteraction->abortPiece().
  11369. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11370. To fix the bug that causes same have message is sent many times to
  11371. a single peer.
  11372. * src/Time.cc
  11373. (isNewer): Use Util::difftv().
  11374. * src/Util.cc
  11375. (difftv): Added a cast to (long long int).
  11376. * src/TorrentMan.cc
  11377. (advertisePiece): Use push_front.
  11378. (getAdvertisedPieceIndexes): A performance improvement was made.
  11379. To fix the bug that sends tracker requests without a sleep interval
  11380. when the number of connections is less than 15.
  11381. * src/TrackerWatcherCommand.cc
  11382. (execute): Now the number of connections is not a factor to decide
  11383. whether or not a tracker request should be sent or not.
  11384. * src/Time.h
  11385. (setTimeInSec): New function.
  11386. * src/Time.cc
  11387. (setTimeInSec): New function.
  11388. etc.
  11389. * src/ChokeMessage.cc
  11390. (receivedAction): Removed peer->snubbing = false
  11391. * src/PeerConnection.h
  11392. (receiveHandshake): Updated doc.
  11393. * src/TorrentMan.h
  11394. (getAdvertisedPieceIndexes): Updated the method signature.
  11395. * src/TorrentMan.cc
  11396. (getAdvertisedPieceIndexes): Updated the method signature.
  11397. * src/Time.h
  11398. (getTimeInMicros): Added a cast to (long long int).
  11399. (getTimeInMillis): Added a cast to (long long int).
  11400. * Release 0.5.2
  11401. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11402. To make a listening socket non-block:
  11403. * src/SocketCore.h
  11404. (setNonBlockingMode): New function.
  11405. * src/SocketCore.cc
  11406. (setNonBlockingMode): New function.
  11407. (beginListen): Added a call to setNonBlockingMode().
  11408. (acceptConnection): Call setNonBlockingMode().
  11409. (setBlockingMode): Updated.
  11410. To handle tracker's NAT-checking:
  11411. * src/PeerConnection.cc
  11412. (receiveHandshake): 'msg' param is filled with received data and
  11413. its length is assigned to 'length' param, even if all handshake
  11414. message is not yet received.
  11415. * src/PeerInteractionCommand.cc
  11416. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  11417. a new peer connects to localhost.
  11418. A call to peerInteraction->sendHandshake() was removed because
  11419. it is called from peerInteraction->receiveHandshake(true).
  11420. * src/PeerInteraction.h
  11421. (quickReplied): New variable.
  11422. (receiveHandshake): Added an argument.
  11423. * src/PeerInteraction.cc
  11424. (PeerInteraction): Added the initialization of quickReplied.
  11425. (receiveHandshake): Send handshake message as soon as the info hash
  11426. in a handshake message from a peer is correct.
  11427. To change the random part of peer id and key parameter:
  11428. * src/TorrentMan.h
  11429. (key): New variable.
  11430. * src/TorrentMan.cc
  11431. (setupInternal1): Use Util::randomAlpha() to generate random part
  11432. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  11433. key is also generated by Util::randomAlpha() and it is now 8 character
  11434. long.
  11435. * src/Util.h
  11436. (randomAlpha): New function.
  11437. * src/Util.cc
  11438. (randomAlpha): New function.
  11439. * src/TrackerWatcherCommand.cc
  11440. (execute): In a tracker request: Use torrentMan->key as key parameter.
  11441. Added no_peer_id=1.
  11442. Set snubbing flag to false when a choke message is received from a
  11443. snubbed peer.
  11444. * src/ChokeMessage.cc
  11445. (receivedAction): Set snubbing flag to false.
  11446. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11447. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  11448. * src/SimpleLogger.h (writeHeader): New function.
  11449. * src/SimpleLogger.cc (writeHeader): New function.
  11450. (writeLog): Fixed the bug that causes segfaults if exception message
  11451. contains an unescaped "%" character.
  11452. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  11453. when a tracker request fails.
  11454. * src/Request.cc (parseUrl): Query string is now handled properly.
  11455. * Release 0.5.1
  11456. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11457. To add Time class which represents a specific instant in time and
  11458. its precision is microseconds. Time checking procedures were rewritten
  11459. using this object.
  11460. * src/Time.h: New class.
  11461. * src/Time.cc: New class.
  11462. * src/AbstractCommand.h
  11463. (updateCheckPoint): Removed.
  11464. (isTimeoutDetected): Removed.
  11465. (checkPoint): Changed the type to Time.
  11466. (timeout): New variable.
  11467. (setTimeout): New function.
  11468. * src/AbstractCommand.cc
  11469. (AbstractCommand): Removed the initialization of checkPoint.
  11470. Added the initialization of timeout.
  11471. (updateCheckPoint): Removed.
  11472. (isTimeoutDetected): Removed.
  11473. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  11474. * src/PeerChokeCommand.h
  11475. (checkPoint): Changed the type to Time.
  11476. * src/PeerChokeCommand.cc
  11477. (PeerChokeCommand): Removed the initialization of checkPoint.
  11478. (execute): Rewritten using Time object.
  11479. * src/TrackerWatcherCommand.h
  11480. (checkPoint): Changed the type to Time.
  11481. * src/TrackerWatcherCommand.cc
  11482. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  11483. (execute): Rewritten.
  11484. * src/ConsoleDownloadEngine.h
  11485. (cp): Changed the type to Time.
  11486. (startup): Changed the type to Time.
  11487. * src/ConsoleDownloadEngine.cc
  11488. (initStatistics): Use cp.reset(), startup.reset().
  11489. (calculateStatistics): Rewritten using Time object.
  11490. * src/PeerAbstractCommand.h
  11491. (updateCheckPoint): Removed.
  11492. (isTimeoutDetected): Removed.
  11493. (checkPoint): Changed the type to Time.
  11494. * src/PeerAbstractCommand.cc
  11495. (PeerAbstractCommand): Removed the initialization of checkPoint.
  11496. (updateCheckPoint): Removed.
  11497. (isTimeoutDetected): Removed.
  11498. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  11499. * src/PeerInteractionCommand.cc
  11500. (PeerInteractionCommand): Removed the initializations of struct
  11501. timeval variables.
  11502. * src/PeerInteractionCommand.h
  11503. (keepAliveCheckPoint): Changed the type to Time.
  11504. (chokeCheckPoint): Changed the type to Time.
  11505. (freqCheckPoint): Changed the type to Time.
  11506. (haveCheckTime): Changed the type to Time.
  11507. * src/PeerInteractionCommand.cc
  11508. (executeInternal): Rewritten using Time object.
  11509. (detectMessageFlooding): Rewritten using Time object.
  11510. (checkLongTimePeerChoking): Rewritten using Time object.
  11511. (sendKeepAlive): Rewritten using Time object.
  11512. (checkHave): Rewritten using Time object.
  11513. * src/SleepCommand.h
  11514. (checkPoint): Changed the type to Time.
  11515. * src/SleepCommand.cc
  11516. (SleepCommand): Removed the initialization of checkPoint.
  11517. (execute): Rewritten using Time object.
  11518. * src/TorrentAutoSaveCommand.h
  11519. (checkPoint): Changed the type to Time.
  11520. * src/TorrentAutoSaveCommand.cc
  11521. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  11522. (execute): Rewritten.
  11523. * src/DownloadCommand.h
  11524. (sw): Changed the type to Time.
  11525. * src/DownloadCommand.cc
  11526. (DownloadCommand): Removed the initialization of sw.
  11527. (executeInternal): Rewritten.
  11528. * src/RequestSlot.h
  11529. (dispatchedTime): Changed the type to Time.
  11530. * src/RequestSlot.cc
  11531. (RequestSlot): Removed the call to setDispatchedTime().
  11532. (setDispatchedTime): Rewirtten.
  11533. (isTimeout): Rewritten.
  11534. (getLatencyInMillis): Rewritten.
  11535. * src/TorrentDownloadEngine.h
  11536. (cp): Changed the type to Time[2].
  11537. (startup): Changed the type to Time.
  11538. * src/TorrentDownloadEngine.cc
  11539. (initStatistics): Rewritten.
  11540. (calculateStatistics): Rewritten.
  11541. * src/DownloadEngine.cc
  11542. (run): Rewritten.
  11543. To detect all attempts to connect to the tracker are failed:
  11544. * src/AbstractCommand.cc
  11545. (execute): Increment e->segmentMan->errors if a command aborted.
  11546. * src/SegmentMan.h
  11547. (errors): New variable.
  11548. * src/SegmentMan.cc
  11549. (SegmentMan): Added the initialization of errors.
  11550. (init): Added the initialization of errors.
  11551. * src/TrackerWatcherCommand.cc
  11552. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  11553. request was failed.
  11554. To handle snubbed peers:
  11555. * src/PeerChokeCommand.cc
  11556. (optUnchokingPeer): Snubbed peers don't get unchoked.
  11557. (execute): Snubbed peers don't get unchoked.
  11558. * src/PeerInteraction.h
  11559. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  11560. * src/PeerInteraction.cc
  11561. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  11562. back the requested 16k block in 60 seconds.
  11563. * src/PieceMessage.cc
  11564. (receivedAction): A peer's snubbed state is cleard if it sends
  11565. the requested 16k block in 60 seconds.
  11566. * src/Peer.h
  11567. (snubbing): New variable.
  11568. * src/Peer.cc
  11569. (resetStatus): Added snubbed = false.
  11570. To fix the bug that causes have message is not sent:
  11571. * src/PeerInteractionCommand.cc
  11572. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  11573. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  11574. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  11575. * src/TorrentMan.h
  11576. (HaveEntry): New class.
  11577. (advertisePiece): Rewritten.
  11578. (getAdvertisedPieceIndexes): Rewritten.
  11579. (Haves): Changed the type.
  11580. (getAdvertisedPieceIndexes): Added an argument.
  11581. Others:
  11582. * src/TorrentMan.h
  11583. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  11584. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  11585. * src/TorrentMan.cc
  11586. (getPeer): Don't check the number of connections here.
  11587. (setupInternal1): Changed peerId.
  11588. * src/PeerInteractionCommand.h
  11589. (KEEP_ALIVE_INTERVAL): New definition.
  11590. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  11591. * src/main.cc
  11592. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  11593. * src/DownloadEngine.h: Removed unnecessary header includes.
  11594. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11595. To fix the bug that causes segfaults if a tracker returns a zero-length
  11596. list as "peers":
  11597. * src/TrackerUpdateCommand.cc
  11598. (execute): Added a check to see wether the type of peers is Data*.
  11599. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11600. * Release 0.5.0
  11601. To fix compile issue with gcc3:
  11602. * src/CancelMessage.h
  11603. (ID): Renamed as ID_t
  11604. (ID_t): New enum.
  11605. * src/RejectMessage.h
  11606. (ID): Renamed as ID_t
  11607. (ID_t): New enum.
  11608. * src/SuggestPieceMessage.h
  11609. (ID): Renamed as ID_t
  11610. (ID_t): New enum.
  11611. * src/AllowedFastMessage.h
  11612. (ID): Renamed as ID_t
  11613. (ID_t): New enum.
  11614. * src/PortMessage.h
  11615. (ID): Renamed as ID_t
  11616. (ID_t): New enum.
  11617. * src/HaveNoneMessage.h
  11618. (ID): Renamed as ID_t
  11619. (ID_t): New enum.
  11620. * src/KeepAliveMessage.h
  11621. (ID): Renamed as ID_t
  11622. (ID_t): New enum.
  11623. * src/HaveAllMessage.h
  11624. (ID): Renamed as ID_t
  11625. (ID_t): New enum.
  11626. * src/UnchokeMessage.h
  11627. (ID): Renamed as ID_t
  11628. (ID_t): New enum.
  11629. * src/BitfieldMessage.h
  11630. (ID): Renamed as ID_t
  11631. (ID_t): New enum.
  11632. * src/PieceMessage.h
  11633. (ID): Renamed as ID_t
  11634. (ID_t): New enum.
  11635. * src/RequestMessage.h
  11636. (ID): Renamed as ID_t
  11637. (ID_t): New enum.
  11638. * src/NotInterestedMessage.h
  11639. (ID): Renamed as ID_t
  11640. (ID_t): New enum.
  11641. * src/ChokeMessage.h
  11642. (ID): Renamed as ID_t
  11643. (ID_t): New enum.
  11644. * src/InterestedMessage.h
  11645. (ID): Renamed as ID_t
  11646. (ID_t): New enum.
  11647. * src/HaveMessage.h
  11648. (ID): Renamed as ID_t
  11649. (ID_t): New enum.
  11650. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11651. * src/PeerAbstractCommand.h
  11652. (beforeSocketCheck): Removed.
  11653. * src/PeerAbstractCommand.cc
  11654. Modified in order to call executeInternal() even if socket check
  11655. and upload limit check fail.
  11656. * src/PeerInteractionCommand.h
  11657. (keepAlive): Removed.
  11658. (sendKeepAlive): New function.
  11659. (checkHave): New function.
  11660. (beforeSocketCheck): Removed.
  11661. * src/PeerInteractionCommand.cc
  11662. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  11663. calls to checkHave() and sendKeepAlive().
  11664. (keepAlive): Renamed to sendKeepAlive().
  11665. (sendKeepAlive): New function.
  11666. (beforeSocketCheck): Removed.
  11667. (checkHave): New function.
  11668. * src/BitfieldMan.cc
  11669. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  11670. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  11671. 0.
  11672. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  11673. * src/TorrentMan.h
  11674. (UsedPieces): Removed.
  11675. (Pieces): New type definition.
  11676. * src/Piece.h: Updated doc.
  11677. * src/Peer.h
  11678. (totalLength): Removed.
  11679. * src/Peer.cc
  11680. (updateLatency): Fixed the latency calculation.
  11681. * src/TorrentMan.cc
  11682. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  11683. than or equal to MAX_PEER_LIST_SIZE.
  11684. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  11685. then return false.
  11686. (deleteOldErrorPeers): Rewritten.
  11687. (deleteUsedPiece): Fixed the miss use of STL remove.
  11688. * src/PeerInteraction.h
  11689. (Pieces): Removed.
  11690. (deleteTimeoutRequestSlot): Removed.
  11691. (deleteCompletedRequestSlot): Removed.
  11692. (checkRequestSlot): New function.
  11693. * src/PeerInteraction.cc
  11694. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  11695. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  11696. (checkRequestSlot): New function.
  11697. * src/DownloadEngine.cc
  11698. (run): Clear activeSockets before calling waitData().
  11699. (waitData): Removed a call to activeSockets.clear().
  11700. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11701. To attempt to handle EINTR:
  11702. * src/SocketCore.cc
  11703. (isReadable): Added EINTR handling.
  11704. (isWritable): Added EINTR handling.
  11705. To improve the performance:
  11706. * src/AbstractCommand.cc
  11707. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  11708. * src/PeerInteractionCommand.h
  11709. (receiveMessage): Renamed as receiveMessages().
  11710. (receiveMessages): New function.
  11711. * src/PeerInteractionCommand.cc
  11712. (executeInternal): receiveMessage loop is moved to new receiveMessages
  11713. () function. detectMessageFlooding() is moved here.
  11714. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  11715. (). The flooding detection for have message is comment out.
  11716. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  11717. Util::difftv().
  11718. (receiveMessage): Renamed as receiveMessages().
  11719. (receiveMessages): New function.
  11720. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  11721. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  11722. * src/SleepCommand.cc
  11723. (execute): Use Util::difftvsec() instead of Util::difftv().
  11724. * src/BitfieldMan.h
  11725. (getNthBitIndex): New function.
  11726. (hasMissingPiece): New function.
  11727. (getAllMissingIndexes): New function.
  11728. * src/BitfieldMan.cc
  11729. (countSetBit): Rewritten.
  11730. (getNthBitIndex): New function.
  11731. (getMissingIndexRandomly): Rewritten.
  11732. (hasMissingPiece): New function.
  11733. (getAllMissingIndexes): New function.
  11734. * src/TorrentMan.cc
  11735. (hasMissingPiece): New function.
  11736. (deleteUsedPiece): Rewritten using STL.
  11737. * src/PeerInteraction.cc
  11738. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  11739. is a little bit faster then TorrentMan::getMissingPieceIndex().
  11740. (addRequests): Updated the number of pending requests.
  11741. * src/PeerAbstractCommand.cc
  11742. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  11743. (execute): Returns true if TorrentMan::isHalt() is true.
  11744. Corrected the condition of upload limit checking.
  11745. * src/Util.h
  11746. (countBit): New function.
  11747. * src/Util.cc
  11748. (nbits): New variable.
  11749. (countBit): New function.
  11750. * src/DownloadEngine.h
  11751. (SockCmdMap): New type definition.
  11752. (waitData): Added an argument.
  11753. (addSocket): Added an argument.
  11754. (addSocketForReadCheck): Added an argument.
  11755. (addSocketForWriteCheck): Added an argument.
  11756. * src/DownloadEngine.cc
  11757. (run): Executes only commands whose sockets are ready to read or write.
  11758. All commands are executed in every 1 second.
  11759. (waitData): Calls select() again if it returned
  11760. EINTR.
  11761. (addSocket): Saves socket and command object pair to the map.
  11762. (deleteSocket): Deletes socket and command object pair from the map.
  11763. (addSocketForReadCheck): Added an argument.
  11764. (addSocketForWriteCheck): Added an argument.
  11765. * src/DownloadCommand.cc
  11766. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  11767. To send "event=stopped" to the tracker when the application finishes:
  11768. * src/PeerChokeCommand.h
  11769. (checkPoint): New variable.
  11770. * src/PeerChokeCommand.cc
  11771. (PeerChokeCommand): Added the initialization of checkPoint.
  11772. (execute): The interval check is now done by checkPoint, not
  11773. SleepCommand. Return true if TorrentMan::isHalt() is true.
  11774. * src/TorrentMan.h
  11775. (halt): New function.
  11776. (hasMissingPiece): New function.
  11777. (isHalt): New function.
  11778. (setHalt): New function.
  11779. * src/TorrentMan.cc
  11780. (TorrentMan): Added the initialization of halt.
  11781. * src/TorrentAutoSaveCommand.h
  11782. (checkPoint): New variable.
  11783. * src/PeerListenCommand.cc
  11784. (execute): Returns true if TorrentMan::isHalt() is true.
  11785. * src/main.cc
  11786. (setSignalHander): Added flags argument.
  11787. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  11788. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  11789. Removed printDownloadAbortMessage() after torrent downloading loop.
  11790. * src/TorrentAutoSaveCommand.cc
  11791. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  11792. (execute): Returns true if TorrentMan::isHalt() is true.
  11793. The interval check is now done by checkPoint, not SleepCommand.
  11794. * src/TrackerWatcherCommand.cc
  11795. (execute): If TorrentMan::isHalt(), then create a tracker request with
  11796. event=stopped.
  11797. * src/TrackerUpdateCommand.cc
  11798. (prepareForRetry): Do not use SleepCommand here.
  11799. (execute): Returns true if TorrentMan::isHalt() is true.
  11800. Others:
  11801. * src/TorrentMan.cc
  11802. (getMissingPieceIndex): Updated log message.
  11803. * src/PeerInteraction.cc
  11804. (createPeerMessag): Updated log message.
  11805. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11806. To add the ability to download several pieces in mix in a command and
  11807. increase the number of request slots according to request-cancel
  11808. latency:
  11809. * src/PeerInteractionCommand.cc
  11810. (executeInternal): The number of messages to be received at a time
  11811. is increased from 10 to 50.
  11812. * src/LogFactory
  11813. (getInstance): Added NullLogger.
  11814. * src/NullLogger.h: New class.
  11815. * src/BitfieldMan.h
  11816. (getMissingIndex): New function.
  11817. * src/BitfieldMan.cc
  11818. (getMissingIndex): New function.
  11819. * src/TorrentMan.h
  11820. (checkOutPiece): New function.
  11821. (getMissingPieceIndex): New function.
  11822. (getMissingFastPieceIndex): New function.
  11823. (getMissingFastPiece): New function.
  11824. * src/TorrentMan.cc
  11825. (updatePiece): Rewritten using STL.
  11826. (syncPiece): Rewritten using STL.
  11827. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  11828. checkOutPiece().
  11829. (getMissingPieceIndex): New function.
  11830. (getMissingFastPieceIndex): New function.
  11831. (getMissingFastPiece): New function.
  11832. (checkOutPiece): New function.
  11833. * src/PeerInteraction.h
  11834. (Pieces): New type definition.
  11835. (piece): Removed.
  11836. (pieces): New variable.
  11837. (getNewPieceAndSendInterest): Added the "piece" argument.
  11838. (abortPiece): Added the "piece" argument.
  11839. (abortAllPieces): New function.
  11840. (isInRequestSlot): New function.
  11841. (hasDownloadPiece): Added the "index" argument.
  11842. (setDownloadPiece): Removed.
  11843. (getDownloadPiece): Added the "index" argument.
  11844. (updatePiece): New function.
  11845. (createRequestMessage): Added the "index" argument.
  11846. * src/PeerInteraction.cc
  11847. (onChoked): Rewritten.
  11848. (abortPiece): Rewirtten.
  11849. (abortAllPieces): New function.
  11850. (deleteTimeoutRequestSlot): Rewritten.
  11851. Clarified code a little bit.
  11852. (deleteCompletedRequestSlot): Rewritten.
  11853. (isInRequestSlot): New function.
  11854. (syncPiece): Rewritten.
  11855. (updatePiece): New function.
  11856. (getNewPieceAndSendInterest): Rewritten.
  11857. (addRequests): Rewritten.
  11858. (getDownloadPiece): Rewritten.
  11859. (hasDownloadPiece): Rewritten.
  11860. (createRequestMessage): Added the "index" argument.
  11861. * src/common.h
  11862. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  11863. (DIV_FLOOR): New definition.
  11864. * src/PieceMessage.cc
  11865. (receivedAction): Update request-piece latency here.
  11866. * src/RequestSlot.h
  11867. (getLatencyInMillis): New function.
  11868. * src/RequestSlot.cc
  11869. (isTimeout): Rewritten using getLatencyInMillis.
  11870. (getLatencyInMillis): New function.
  11871. * src/Piece.h
  11872. (operator==): New function.
  11873. (getMissingBlockIndex): New function.
  11874. * src/Piece.cc
  11875. (operator==): New function.
  11876. (getMissingBlockIndex): New function.
  11877. * src/Peer.h
  11878. (DEFAULT_LATENCY): New definition.
  11879. (latency): New variable.
  11880. (updateLatency): New function.
  11881. (getLatency): New function.
  11882. * src/Peer.cc
  11883. (resetStatus): Reset latecy.
  11884. (updateLatency): New function.
  11885. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11886. * src/SocketCore.cc
  11887. (isReadable): Added secure to the condition.
  11888. * src/HttpConnection.cc
  11889. (receiveResponse): Fixed a bug that causes no response header
  11890. exception.
  11891. * src/Peer.h
  11892. (getFastSet): Fixed the return value type.
  11893. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11894. To remove a wait from download loop:
  11895. * src/DownloadEngine.cc
  11896. (run): Comment out shortSleep.
  11897. To rewrite the message handling:
  11898. * src/SimplePeerMessage.h: New class.
  11899. * src/SimplePeerMessage.cc: New class.
  11900. * src/CancelMessage.h: Derived from SimplePeerMessage.
  11901. (msg): New variable.
  11902. (create): New function.
  11903. (send): Removed.
  11904. (getMessage): New function.
  11905. (getMessageLength): New function.
  11906. * src/CancelMessage.cc
  11907. (create): New function.
  11908. (receivedAction): Replaced deleteRequestMessageInQueue with
  11909. rejectPieceMessageInQueue.
  11910. (send): Removed.
  11911. (getMessage): New function.
  11912. (getMessageLength): New function.
  11913. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  11914. (msg): New variable.
  11915. (msgLength): New variable.
  11916. (~BitfieldMessage): Deleted msg.
  11917. (send): Removed.
  11918. (getMessage): New function.
  11919. (getMessageLength): New function.
  11920. * src/BitfieldMessage.cc
  11921. (create): New function.
  11922. (send): Removed.
  11923. (getMessage): New function.
  11924. (getMessageLength): New function.
  11925. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  11926. (msg): New variable.
  11927. (sendPredicate): New function.
  11928. (onSendComplete): New function.
  11929. (send): Removed.
  11930. (getMessage): New function.
  11931. (getMessageLength): New function.
  11932. (create): New function.
  11933. * src/ChokeMessage.cc
  11934. (create): New function.
  11935. (send): Removed.
  11936. (sendPredicate): New function.
  11937. (getMessage): New function.
  11938. (getMessageLength): New function.
  11939. (onSendComplete): New function.
  11940. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  11941. (msg): New variable.
  11942. (send): Removed.
  11943. (getMessage): New function.
  11944. (getMessageLength): New function.
  11945. * src/KeepAliveMessage.cc
  11946. (send): Removed.
  11947. (getMessage): New function.
  11948. (getMessageLength): New function.
  11949. * src/PortMessage.h
  11950. (create): New function.
  11951. (receivedAction): Updated log message.
  11952. * src/PortMessage.cc: New file.
  11953. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  11954. (msg): New variable.
  11955. (sendPredicate): New function.
  11956. (onSendComplete): New function.
  11957. (create): New function.
  11958. (send): Removed.
  11959. (getMessage): New function.
  11960. (getMessageLength): New function.
  11961. * src/UnchokeMessage.cc
  11962. (create): New function.
  11963. (send): Removed.
  11964. (sendPredicate): New function.
  11965. (getMessage): New function.
  11966. (getMessageLength): New function.
  11967. (onSendComplete): New function.
  11968. * src/PieceMessage.h
  11969. (leftPieceDataLength): Removed.
  11970. (leftDataLength): New variable.
  11971. (headerSend): New variable.
  11972. (pendingCount): New variable.
  11973. (msgHeader): New variable.
  11974. (sendPieceData): New function.
  11975. (incrementPendingCount): New function.
  11976. (isPendingCountMax): New function.
  11977. (create): New function.
  11978. (getMessageHeader): New function.
  11979. (getMessageHeaderLength): New function.
  11980. * src/PieceMessage.cc
  11981. (create): New function.
  11982. (getMessageHeader): New function.
  11983. (getMessageHeaderLength): New function.
  11984. (send): Rewritten.
  11985. (sendPieceData): New function.
  11986. * src/HaveMessage.h: Derived from SimplePeerMessage.
  11987. (msg): New variable.
  11988. (create): New function.
  11989. (getMessage): New function.
  11990. (getMessageLength): New function.
  11991. * src/HaveMessage.cc
  11992. (create): New function.
  11993. (send): Removed.
  11994. (sendPieceData): New function.
  11995. (getMessage): New function.
  11996. (getMessageLength): New function.
  11997. * src/RequestMessage.h: Derived from SimplePeerMessage.
  11998. (msg): New variable.
  11999. (create): New function.
  12000. (send): Removed.
  12001. (getMessage): New function.
  12002. (getMessageLength): New function.
  12003. * src/RequestMessage.cc
  12004. (create): New function.
  12005. (receivedAction): Added the handling of fast extension.
  12006. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  12007. (send): Removed.
  12008. (getMessage): New function.
  12009. (getMessageLength): New function.
  12010. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  12011. (msg): New variable.
  12012. (sendPredicate): New function.
  12013. (onSendComplete): New function.
  12014. (create): New function.
  12015. (getMessage): New function.
  12016. (getMessageLength): New function.
  12017. * src/InterestedMessage.cc
  12018. (create): New function.
  12019. (send): Removed.
  12020. (sendPieceData): New function.
  12021. (getMessage): New function.
  12022. (getMessageLength): New function.
  12023. (onSendComplete): New function.
  12024. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  12025. (msg): New variable.
  12026. (sendPieceData): New function.
  12027. (onSendComplete): New function.
  12028. (create): New function.
  12029. (send): Removed.
  12030. (getMessage): New function.
  12031. (getMessageLength): New function.
  12032. * src/NotInterestedMessage.cc
  12033. (create): New function.
  12034. (send): Removed.
  12035. (sendPredicate): New function.
  12036. (getMessage): New function.
  12037. (getMessageLength): New function.
  12038. (onSendComplete): New function.
  12039. * src/AllowedFastMessage.h: New class.
  12040. * src/AllowedFastMessage.cc: New class.
  12041. * src/RejectMessage.h: New class.
  12042. * src/RejectMessage.cc: New class.
  12043. * src/SuggestPieceMessage.h: New class.
  12044. * src/SuggestPieceMessage.cc: New class.
  12045. * src/HaveAllMessage.h: New class.
  12046. * src/HaveAllMessage.cc: New class.
  12047. * src/HaveNoneMessage.h: New class.
  12048. * src/HaveNoneMessage.cc: New class.
  12049. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  12050. (msg): New variable.
  12051. (reserved): New variable.
  12052. (create): New function.
  12053. (getId): New function.
  12054. (receivedAction): New function.
  12055. (getMessage): New function.
  12056. (getMessageLength): New function.
  12057. (isFastExtensionSupported): New function.
  12058. * src/HandshakeMessage.cc
  12059. (HandshakeMessage): Moved here from HandshakeMessage.h.
  12060. (create): New function.
  12061. (getMessage): New function.
  12062. (getMessageLength): New function.
  12063. (toString): Added the output of reserved field.
  12064. (check): Added const qualifier.
  12065. (isFastExtensionSupported): New function.
  12066. * src/PeerMessageUtil.h
  12067. (createChokeMessage): Removed.
  12068. (createUnchokeMessage): Removed.
  12069. (createInterestedMessage): Removed.
  12070. (createNotInterestedMessage): Removed.
  12071. (createHaveMessage): Removed.
  12072. (createBitfieldMessage): Removed.
  12073. (createRequestMessage): Removed.
  12074. (createCancelMessage): Removed.
  12075. (createPieceMessage): Removed.
  12076. (createPortMessage): Removed.
  12077. (createChokeMessage): Removed.
  12078. (createUnchokeMessage): Removed.
  12079. (createInterestedMessage): Removed.
  12080. (createNotInterestedMessage): Removed.
  12081. (createHaveMessage): Removed.
  12082. (createBitfieldMessage): Removed.
  12083. (createRequestMessage): Removed.
  12084. (createCancelMessage): Removed.
  12085. (createPieceMessage): Removed.
  12086. (createKeepAliveMessage): Removed.
  12087. (createHandshakeMessage): Removed.
  12088. (setIntParam): New function.
  12089. (createPeerMessageString): New function.
  12090. * src/PeerMessageUtil.cc
  12091. (createChokeMessage): Removed.
  12092. (createUnchokeMessage): Removed.
  12093. (createInterestedMessage): Removed.
  12094. (createNotInterestedMessage): Removed.
  12095. (createHaveMessage): Removed.
  12096. (createBitfieldMessage): Removed.
  12097. (createRequestMessage): Removed.
  12098. (createCancelMessage): Removed.
  12099. (createPieceMessage): Removed.
  12100. (createPortMessage): Removed.
  12101. (createRequestMessage): Removed.
  12102. (createCancelMessage): Removed.
  12103. (createPieceMessage): Removed.
  12104. (createHaveMessage): Removed.
  12105. (createChokeMessage): Removed.
  12106. (createUnchokeMessage): Removed.
  12107. (createInterestedMessage): Removed.
  12108. (createNotInterestedMessage): Removed.
  12109. (createBitfieldMessage): Removed.
  12110. (createKeepAliveMessage): Removed.
  12111. (createHandshakeMessage): Removed.
  12112. (setIntParam): New function.
  12113. (createPeerMessageString): New function.
  12114. * src/PeerConnection.h
  12115. (peer): Removed.
  12116. (torrentMan): Removed.
  12117. (createNLengthMessage): Removed.
  12118. (setIntParam): Removed.
  12119. (writeOutgoingMessageLog): Removed all overloaded functions.
  12120. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12121. (sendMessage): New function.
  12122. (sendHandshake): Removed.
  12123. (sendKeepAlive): Removed.
  12124. (sendChoke): Removed.
  12125. (sendUnchoke): Removed.
  12126. (sendInterested): Removed.
  12127. (sendNotInterested): Removed.
  12128. (sendHave): Removed.
  12129. (sendBitfield): Removed.
  12130. (sendRequest): Removed.
  12131. (sendPiece): Removed.
  12132. (sendPieceHeader): Removed.
  12133. (sendPieceData): Removed.
  12134. (sendCancel): Removed.
  12135. (getPeer): Removed.
  12136. * src/PeerConnection.cc
  12137. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12138. (sendHandshake): Removed.
  12139. (sendKeepAlive): Removed.
  12140. (createNLengthMessage): Removed.
  12141. (setIntParam): Removed.
  12142. (writeOutgoingMessageLog): Removed all overloaded functions.
  12143. (sendChoke): Removed.
  12144. (sendUnchoke): Removed.
  12145. (sendInterested): Removed.
  12146. (sendNotInterested): Removed.
  12147. (sendHave): Removed.
  12148. (sendBitfield): Removed.
  12149. (sendRequest): Removed.
  12150. (sendPiece): Removed.
  12151. (sendPieceHeader): Removed.
  12152. (sendPieceData): Removed.
  12153. (sendMessage): New function.
  12154. (sendCancel): Removed.
  12155. * src/PeerInteractionCommand.cc
  12156. (PeerInteractionCommand): Call setUploadLimit.
  12157. (executeInternal): Call setUploadLimit.
  12158. Added the handling of "inProgress" state of handshake message.
  12159. Call sendBitfield() or sendAllowdFast() instead of deprecated
  12160. sendNow().
  12161. (keepAlive): Call addMessage and sendMessage instead of deprecated
  12162. sendNow().
  12163. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  12164. * src/TorrentMan.h
  12165. (PEER_ID_LENGTH): New definition.
  12166. (hasAllPieces): New function.
  12167. * src/TorrentMan.cc
  12168. (getMissingPiece): Added the handling of fast extension.
  12169. (cancelPiece): Call updatePiece().
  12170. (hasAllPieces): New function.
  12171. * src/PeerInteraction.h
  12172. (fastSet): New variable.
  12173. (getNewPieceAndSendInterest): Changed the return type to void.
  12174. (send): Renamed as sendMessages.
  12175. (deleteAllRequestSlot): Removed.
  12176. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12177. (cancelAllRequest): Removed all overloaded functions.
  12178. (deleteAllRequestSlot): Removed.
  12179. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12180. (rejectPieceMessageInQueue): New function.
  12181. (rejectAllPieceMessageInQueue): New function.
  12182. (onChoked): New function.
  12183. (isSendingMessageInProgress): New function.
  12184. (getCorrespondingRequestSlot): Changed its arguments.
  12185. (isInFastSet): New function.
  12186. (addFastSetIndex): New function.
  12187. (addRequests): New function.
  12188. (sendNow): Removed.
  12189. (trySendNow): Removed.
  12190. (sendBitfield): New function.
  12191. (sendAllowdFast): New function.
  12192. (createHaveAllMessage): New function.
  12193. (createHaveNoneMessage): New function.
  12194. (createRejectMessage): New function.
  12195. (createAllowedFastMessage): New function.
  12196. * src/PeerInteraction.cc
  12197. (send): Renamed as sendMessages.
  12198. (sendMessages): New function.
  12199. (MsgPushBack): New class.
  12200. (isSendingMessageInProgress): New function.
  12201. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12202. (rejectAllPieceMessageInQueue): New function.
  12203. Added the handling of fast extension.
  12204. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12205. (rejectPieceMessageInQueue): New function.
  12206. Added the handling of fast extension.
  12207. (deleteRequestSlot): Replaced for loop with std::find.
  12208. (onChoked): New function.
  12209. (deleteAllRequestSlot): Removed.
  12210. (abortPiece): Rewirtten.
  12211. (deleteTimeoutRequestSlot): Updated log messages.
  12212. (getCorrespondingRequestSlot): Changed its arguments.
  12213. (cancelAllRequest): Removed all overloaded functions.
  12214. (receiveHandshake): Added the check to see whether an incoming peer
  12215. supports fast extension.
  12216. (createHandshakeMessage): Use HandshakeMessage::create instead of
  12217. PeerMessageUtil.
  12218. (createPeerMessage): Use create() of each message class instead of
  12219. PeerMessageUtil.
  12220. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  12221. AllowedFastMessage were added.
  12222. (getNewPieceAndSendInterest): Changed its return value type to void.
  12223. Added the handling of fast extension.
  12224. (addRequests): New function.
  12225. (sendNow): Removed.
  12226. (sendHandshake): Rewritten.
  12227. (trySendNow): Removed.
  12228. (sendBitfield): New function.
  12229. (sendAllowdFast): New function.
  12230. (isInFastSet): New function.
  12231. (addFastSetIndex): New function.
  12232. (createRequestMessage): Use RequestMessage::create instead of
  12233. PeerMessageUtil.
  12234. (createCancelMessage): Use CancelMessage::create instead of
  12235. PeerMessageUtil.
  12236. (createPieceMessage): Use PieceMessage::create instead of
  12237. PeerMessageUtil.
  12238. (createHaveMessage): Use HaveMessage::create instead of
  12239. PeerMessageUtil.
  12240. (createChokeMessage): Use ChokeMessage::create instead of
  12241. PeerMessageUtil.
  12242. (createUnchokeMessage): Use UnchokeMessage::create instead of
  12243. PeerMessageUtil.
  12244. (createInterestedMessage): Use InterestedMessage::create instead of
  12245. PeerMessageUtil.
  12246. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  12247. of PeerMessageUtil.
  12248. (createBitfieldMessage): Use BitfieldMessage::create instead of
  12249. PeerMessageUtil.
  12250. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  12251. PeerMessageUtil.
  12252. (createHaveAllMessage): New function.
  12253. (createHaveNoneMessage): New function.
  12254. (createRejectMessage): New function.
  12255. (createAllowedFastMessage: New function.
  12256. * src/Util.h
  12257. (sha1Sum): New function.
  12258. (computeFastSet): New function.
  12259. * src/Util.cc
  12260. (sha1Sum): New function.
  12261. (computeFastSet): New function.
  12262. * src/Peer.h
  12263. (fastExtensionEnabled): New variable.
  12264. (fastSet): New variable.
  12265. (setAllBitfield): New function.
  12266. (setFastExtensionEnabled): New function.
  12267. (isFastExtensionEnabled): New function.
  12268. (addFastSetIndex): New function.
  12269. (getFastSet): New function.
  12270. (isInFastSet): New function.
  12271. (countFastSet): New function.
  12272. * src/Peer.cc
  12273. (isInFastSet): New function.
  12274. (addFastSetIndex): New function.
  12275. (setAllBitfield): New function.
  12276. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  12277. sockets.
  12278. * src/PeerAbstractCommand.cc
  12279. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  12280. and uploadLimit.
  12281. (execute): Changed the procedure of checking sockets. The upload speed
  12282. checking were added.
  12283. (setUploadLimit): New function.
  12284. (setUploadLimitCheck): New function.
  12285. * src/PeerAbstractCommand.h
  12286. (setUploadLimit): New function.
  12287. (setUploadLimitCheck): New function.
  12288. (uploadLimit): New variable.
  12289. (uploadLimitCheck): New variable.
  12290. To contact a tracker regularly:
  12291. * src/TrackerWatcherCommand.h (interval): New variable.
  12292. (checkPoint): New variable.
  12293. (TrackerWatcherCommand): Added interval argument.
  12294. * src/TrackerWatcherCommand.cc
  12295. (TrackerWatcherCommand): Initialized checkPoint.
  12296. (execute): Now a tracker is contacted in every specified period.
  12297. If peer list is not needed, send request with numwant=0.
  12298. * src/TrackerUpdateCommand.cc
  12299. (execute): Updated log messages.
  12300. * src/DownloadEngine.cc
  12301. (~DownloadEngine): Removed two asserts.
  12302. (waitData): Uncommented wfds. May be a bug fix.
  12303. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12304. * src/PeerInteractionCommand.h
  12305. (checkInactiveConnection): Removed.
  12306. * src/PeerInteractionCommand.cc
  12307. (executeInternal): Removed following function calls:
  12308. detectMessageFlooding(), checkLongTimePeerChoking and
  12309. checkInactiveConnection().
  12310. (checkInactiveConnection): Removed.
  12311. (detectMessageFlooding): Removed function call to
  12312. checkInactiveConnection().
  12313. * src/PeerMessageUtil.h
  12314. (createChokeMessage): New function. Overload.
  12315. (createUnchokeMessage): New function. Overload.
  12316. (createInterestedMessage): New function. Overload.
  12317. (createNotInterestedMessage): New function. Overload.
  12318. (createHaveMessage): New function. Overload.
  12319. (createBitfieldMessage): New function. Overload.
  12320. (createRequestMessage): New function. Overload.
  12321. (createCancelMessage): New function. Overload.
  12322. (createPieceMessage): New function. Overload.
  12323. (createKeepAliveMessage): New function. Overload.
  12324. * src/PeerMessageUtil.cc
  12325. (createChokeMessage): New function. Overload.
  12326. (createUnchokeMessage): New function. Overload.
  12327. (createInterestedMessage): New function. Overload.
  12328. (createNotInterestedMessage): New function. Overload.
  12329. (createHaveMessage): New function. Overload.
  12330. (createBitfieldMessage): New function. Overload.
  12331. (createRequestMessage): New function. Overload.
  12332. (createCancelMessage): New function. Overload.
  12333. (createPieceMessage): New function. Overload.
  12334. (createKeepAliveMessage): New function. Overload.
  12335. * src/SendMessageQueue.cc
  12336. (createRequestMessage): Use PeerMessageUtil.
  12337. (createCancelMessage): Use PeerMessageUtil.
  12338. (createPieceMessage): Use PeerMessageUtil.
  12339. (createHaveMessage): Use PeerMessageUtil.
  12340. (createChokeMessage): Use PeerMessageUtil.
  12341. (createUnchokeMessage): Use PeerMessageUtil.
  12342. (createInterestedMessage): Use PeerMessageUtil.
  12343. (createNotInterestedMessage): Use PeerMessageUtil.
  12344. (createBitfieldMessage): Use PeerMessageUtil.
  12345. (createKeepAliveMessage): Use PeerMessageUtil.
  12346. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  12347. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  12348. * src/PeerInteraction.h: New class.
  12349. * src/PeerInteraction.cc: New class.
  12350. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12351. Each peer message has its own class.
  12352. * src/PendingMessages.h: Removed.
  12353. * src/PendingMessages.cc: Removed. The sending process was moved to
  12354. each message class.
  12355. * src/RequestSlotMan.h: Removed.
  12356. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  12357. SendMessageQueue.
  12358. * src/RequestMessage.h: New class.
  12359. * src/RequestMessage.cc: New class.
  12360. * src/CancelMessage.h: New class.
  12361. * src/CancelMessage.cc: New class.
  12362. * src/BitfieldMessage.h: New class.
  12363. * src/BitfieldMessage.cc: New class.
  12364. * src/ChokeMessage.h: New class.
  12365. * src/ChokeMessage.cc: New class.
  12366. * src/KeepAliveMessage.h: New class.
  12367. * src/KeepAliveMessage.cc: New class.
  12368. * src/PortMessage.h: New class.
  12369. * src/UnchokeMessage.h: New class.
  12370. * src/UnchokeMessage.cc: New class.
  12371. * src/PieceMessage.h: New class.
  12372. * src/PieceMessage.cc: New class.
  12373. * src/HaveMessage.h: New class.
  12374. * src/HaveMessage.cc: New class.
  12375. * src/BitfieldMessage.h: New class.
  12376. * src/BitfieldMessage.cc: New class.
  12377. * src/NotInterestedMessage.h: New class.
  12378. * src/NotInterestedMessage.cc: New class.
  12379. * src/InterestedMessage.h: New class.
  12380. * src/InterestedMessage.cc: New class.
  12381. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  12382. (getSendMessageQueue): New function.
  12383. (setSendMessageQueue): New function.
  12384. * src/HandshakeMessage.cc: New class.
  12385. * src/PeerConnection.h (receiveMessage): Changed return value and
  12386. arguments.
  12387. (receiveHandshake): Changed return value and arguments.
  12388. * src/PeerConnection.cc (receiveMessage): Do not create message class
  12389. here.
  12390. (receiveHandshake): Do not create handshake class here.
  12391. * src/PeerInteractionCommand.h (peerConnection): Removed.
  12392. (piece): Removed.
  12393. (syncPiece): Removed.
  12394. (sendInterest): Removed.
  12395. (sendMessages): Removed.
  12396. (createRequestPendingMessage): Removed.
  12397. (checkPieceHash): Removed.
  12398. (erasePieceOnDisk): Removed.
  12399. (getNewPieceAndSendInterest): Removed.
  12400. (onGotNewPice): Removed.
  12401. (onGotWrongPiece): Removed.
  12402. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  12403. Removed peerConnection, piece.
  12404. (~PeerInteractionCommand): Removed peerConnection.
  12405. (executeInternal): Use sendMessageQueue instead of peerConnection.
  12406. (syncPiece): Moved to SendMessageQueue.
  12407. (decideChoking): Removed PendingMessage.
  12408. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  12409. The action after receiving peer message was moved to each message
  12410. class.
  12411. (onGotNewPice): Moved to SendMessageQueue.
  12412. (onGotWrongPiece): Moved to SendMessageQueue.
  12413. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  12414. (sendInterest): Moved to SendMessageQueue.
  12415. (createRequestPendingMessage): Removed.
  12416. (sendMessages): Moved to SendMessageQueue.
  12417. (onAbort): Use SendMessageQueue::abortPiece()
  12418. (keepAlive): Use sendMessageQueue instead of peerConnection.
  12419. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  12420. (checkPieceHash): Moved to SendMessageQueue.
  12421. (erasePieceOnDisk): Moved to SendMessageQueue.
  12422. * src/PeerMessageUtil.h
  12423. (createBitfieldMessage): Removed.
  12424. (createHaveMessage): Changed return value and arguments.
  12425. (createBitfieldMessage): Changed return value and arguments.
  12426. (createRequestCancelMessage): Removed.
  12427. (createPieceMessage): Changed return value and arguments.
  12428. (getShortIntParam): New function.
  12429. (checkIndex): Changed arguments.
  12430. (checkBegin): Changed arguments.
  12431. (checkLength): Changed arguments.
  12432. (checkPieceOffset): Removed.
  12433. (checkRange): New function.
  12434. (checkBitfield): Changed arguments.
  12435. (createPeerMessage): Removed.
  12436. (checkIntegrity): Removed.
  12437. (createHandshakeMessage): Changed arguments.
  12438. (createChokeMessage): New function.
  12439. (createUnchokeMessage): New function.
  12440. (createInterestedMessage): New function.
  12441. (createNotInterestedMessage): New function.
  12442. (createRequestMessage): New function.
  12443. (createCancelMessage): New function.
  12444. (createPortMessage): New function.
  12445. * src/PeerMessageUtil.cc
  12446. (createBitfieldMessage): Removed.
  12447. (createHaveMessage): Changed return value and arguments.
  12448. (createBitfieldMessage): Changed return value and arguments.
  12449. (createRequestCancelMessage): Removed.
  12450. (createPieceMessage): Changed return value and arguments.
  12451. (getShortIntParam): New function.
  12452. (checkIndex): Changed arguments.
  12453. (checkBegin): Changed arguments.
  12454. (checkLength): Changed arguments.
  12455. (checkPieceOffset): Removed.
  12456. (checkRange): New function.
  12457. (checkBitfield): Changed arguments.
  12458. (createPeerMessage): Removed.
  12459. (checkIntegrity): Removed.
  12460. (createHandshakeMessage): Changed arguments.
  12461. (createChokeMessage): New function.
  12462. (createUnchokeMessage): New function.
  12463. (createInterestedMessage): New function.
  12464. (createNotInterestedMessage): New function.
  12465. (createRequestMessage): New function.
  12466. (createCancelMessage): New function.
  12467. (createPortMessage): New function.
  12468. * src/PeerMessage.h
  12469. (id): Removed.
  12470. (index): Removed.
  12471. (begin): Removed.
  12472. (length): Removed.
  12473. (bitfield): Removed.
  12474. (bitfieldLength): Removed.
  12475. (block): Removed.
  12476. (blockLength): Removed.
  12477. (inProgress): New variable.
  12478. (cuid): New variable.
  12479. (peer): New variable.
  12480. (sendMessageQueue): New variable.
  12481. (logger): New variable.
  12482. (setBitfield): Removed.
  12483. (getBitfield): Removed.
  12484. (setBlock): Removed.
  12485. (getBlock): Removed.
  12486. (getBitfieldLength): Removed.
  12487. (getBlockLength): Removed.
  12488. (isInProgress): New function.
  12489. (toString): Made pure virtual.
  12490. (check): New function.
  12491. (send): New function.
  12492. (receivedAction): New function.
  12493. (getId): Made pure virtual.
  12494. (setId): Removed.
  12495. (getIndex): Removed.
  12496. (setIndex): Removed.
  12497. (getBegin): Removed.
  12498. (setBegin): Removed.
  12499. (getLength): Removed.
  12500. (setLength): Removed.
  12501. (getCuid): New function.
  12502. (setCuid): New function.
  12503. (getPeer): New function.
  12504. (setPeer): New function.
  12505. (getSendMessageQueue): New function.
  12506. (setSendMessageQueue): New function.
  12507. (ID): Removed.
  12508. * src/PeerMessage.cc
  12509. (setBitfield): Removed.
  12510. (setBlock): Removed.
  12511. (toString): Removed.
  12512. * src/TorrentMan.h
  12513. (getPieceLength): New function.
  12514. (getPieceLength): New function.
  12515. * src/SendMessageQueue.h
  12516. (REQUEST_TIME_OUT): New definition.
  12517. (RequestSlots): New definition.
  12518. (MessageQueue): New definition.
  12519. (requestSlotMan): Removed.
  12520. (pendingMessages): Removed.
  12521. (requestSlots): New variable.
  12522. (messageQueue): New variable.
  12523. (torrentMan): New variable.
  12524. (peerConnection): New variable.
  12525. (peer): New variable.
  12526. (piece): New variable.
  12527. (getNewPieceAndSendInterest): New function.
  12528. (createPeerMessage): New function.
  12529. (createHandshakeMessage): New function.
  12530. (send): Made private.
  12531. (setPeerMessageCommonProperty): New function.
  12532. (deleteAllRequestSlot): New function.
  12533. (deleteRequestMessageInQueue): New function.
  12534. (cancelAllRequest): Made private.
  12535. (cancelAllRequest): Made private.
  12536. (countRequestSlot): Made private.
  12537. (addPendingMessage): Removed.
  12538. (deletePendingPieceMessage): Removed.
  12539. (deletePendingRequestMessage): Removed.
  12540. (addMessage): New function.
  12541. (deletePieceMessageInQueue): New function.
  12542. (deleteTimeoutRequestSlot): Changed argument.
  12543. (deleteCompletedRequestSlot): Changed argument.
  12544. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  12545. (getCorrespondingRequestSlot): New function.
  12546. (countPendingMessage): Removed.
  12547. (countMessageInQueue): New function.
  12548. (getTorrentMan): New function.
  12549. (getPeerConnection): New function.
  12550. (hasDownloadPiece): New function.
  12551. (getDownloadPiece): New function.
  12552. (setDownloadPiece): New function.
  12553. (syncPiece): New function.
  12554. (sendMessages): New function.
  12555. (sendNow): New function.
  12556. (trySendNow): New function.
  12557. (abortPiece): New function.
  12558. (sendHandshake): New function.
  12559. (receiveMessage): New function.
  12560. (receiveHandshake): New function.
  12561. (createRequestMessage): New function.
  12562. (createCancelMessage): New function.
  12563. (createPieceMessage): New function.
  12564. (createHaveMessage): New function.
  12565. (createChokeMessage): New function.
  12566. (createUnchokeMessage): New function.
  12567. (createInterestedMessage): New function.
  12568. (createNotInterestedMessage): New function.
  12569. (createBitfieldMessage): New function.
  12570. (createKeepAliveMessage): New function.
  12571. * src/SendMessageQueue.cc
  12572. (SendMessageQueue): Removed requestSlotMan.
  12573. Instantiated peerConnection here.
  12574. (~SendMessageQueue): Removed requestSlotMan.
  12575. Added deletion of peerConnection and the contents of messageQueue.
  12576. (send): Updated according to the change of messageQueue.
  12577. (addPendingMessage): Renamed to addMessage.
  12578. (addMessage): New function.
  12579. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  12580. (deletePieceMessageInQueue): New function.
  12581. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  12582. (deleteRequestMessageInQueue): New function.
  12583. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  12584. here.
  12585. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  12586. (...) was moved here.
  12587. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  12588. moved here.
  12589. (deleteCompletedRequestSlot):
  12590. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  12591. (getCorrespondingRequestSlot):
  12592. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  12593. And renamed to getCorrespondingRequestSlot, correcting a typo.
  12594. (countPendingMessage): Renamed to countMessageInQueue.
  12595. (countMessageInQueue): New function.
  12596. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  12597. (receiveHandshake): New function.
  12598. (createHandshakeMessage): New function.
  12599. (receiveMessage): New function.
  12600. (createPeerMessage): New function.
  12601. (syncPiece): New function.
  12602. (getNewPieceAndSendInterest): New function.
  12603. (sendMessages): New function.
  12604. (sendNow): New function.
  12605. (trySendNow): New function.
  12606. (sendHandshake): New function.
  12607. (abortPiece): New function.
  12608. (getDownloadPiece): New function.
  12609. (getPeerMessageCommonProperty): New function.
  12610. (createRequestMessage): New function.
  12611. (createCancelMessage): New function.
  12612. (createPieceMessage): New function.
  12613. (createHaveMessage): New function.
  12614. (createChokeMessage): New function.
  12615. (createUnchokeMessage): New function.
  12616. (createInterestedMessage): New function.
  12617. (createNotInterestedMessage): New function.
  12618. (createBitfieldMessage): New function.
  12619. (createKeepAliveMessage): New function.
  12620. To add simple Content-Disposition support:
  12621. * src/HttpResponseCommand.h (determinFilename): New function.
  12622. * src/HttpResponseCommand.cc (executeInternal):
  12623. Use determinFilename(headers) instead of req->getFile() when comparing
  12624. filename.
  12625. (determinFilename): New function.
  12626. (handleDefaultEncoding): Use determinFilename(headers) instead of
  12627. req->getFile().
  12628. (handleOtherEncoding): Use determinFilename(headers) instead of
  12629. req->getFile().
  12630. * src/Util.h (getContentDispositionFilename): New function.
  12631. * src/Util.cc (getContentDispositionFilename): New function.
  12632. * src/LogFactory.h (release): New function.
  12633. * src/LogFactory.cc (release): New function.
  12634. To fix a bug that causes out-of-bound exception when HTTP status
  12635. line is wrong:
  12636. * src/HttpConnection.cc (receiveResponse): Added a check for header
  12637. size.
  12638. * src/common.h (Deleter): New class.
  12639. * src/SegmentMan.cc
  12640. (~SegmentMan): Added deletion of splitter and diskWriter.
  12641. * src/DownloadEngine.h
  12642. (Commands): Use deque.
  12643. (clearQueue): New function.
  12644. * src/DownloadEngine.cc
  12645. (~DownloadEngine): Added deletion of segmentMan.
  12646. (cleanQueue): New function.
  12647. * src/TorrentDownloadEngine.h
  12648. (TorrentDownloadEngine): The implementation was moved to
  12649. TorrentDownloadEngine.cc.
  12650. (~TorrentDownloadEngine): The implementation was moved to
  12651. TorrentDownloadEngine.cc.
  12652. * src/TorrentDownloadEngine.cc
  12653. (~TorrentDownloadEngine): Added deletion of torrentMan.
  12654. * src/main.cc
  12655. (clearRequest): Removed.
  12656. (handler): Added deletion of e.
  12657. (torrentHandler): Added deletion of te.
  12658. (main): Do not share splitter.
  12659. Use Deleter instead of clearRequest.
  12660. Deletion of classes were updated.
  12661. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12662. * src/main.cc (main): Fixed typo.
  12663. * src/message.h: Fixed typo.
  12664. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  12665. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12666. To add --select-file command-line option:
  12667. * src/Util.cc
  12668. (unfoldRange): New function.
  12669. (getNum): New function.
  12670. (unfoldSubRange): New function
  12671. * src/main.cc
  12672. (showUsage): Added help message.
  12673. (main): Added --select-file command-line option. Updated the layout of
  12674. file listing.
  12675. * src/common.h
  12676. (Integers): New definition.
  12677. * src/SocketCore.cc
  12678. (writeData): Removed timeout argument.
  12679. (readData): Removed timeout argument.
  12680. (peekData): Removed timeout argument.
  12681. * src/Socket.cc
  12682. (writeData): Removed timeout argument.
  12683. (readData): Removed timeout argument.
  12684. (peekData): Removed timeout argument.
  12685. * Release 0.4.1
  12686. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12687. To deploy upload rate based choking algorithm:
  12688. * src/PeerInteractionCommand.cc
  12689. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  12690. peer currently used.
  12691. (decideChoking): Deleted the choke/unchoke decision algorithm when
  12692. download completes. Simplified.
  12693. (receiveMessage): Updated.
  12694. * src/TorrentMan.h
  12695. (activePeers): New variable.
  12696. (addActivePeer): New function.
  12697. (getActivePeers): New function.
  12698. (deleteActivePeer): New function.
  12699. * src/TorrentMan.cc
  12700. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  12701. * src/PeerAbstractCommand.cc
  12702. (onAbort): Use peer->resetStatus().
  12703. * src/main.cc
  12704. (PeerChokeCommand.h): Included.
  12705. (main): Added the instance of ChokingCommand to the command queue.
  12706. * src/Peer.h
  12707. (amChoking): Renamed from amChocking
  12708. (chokingRequired): New variable.
  12709. (optUnchoking): New variable.
  12710. (deltaUpload): New variable.
  12711. (deltaDownload): New variable.
  12712. (addDeltaUpload): New function.
  12713. (resetDeltaUpload): New function.
  12714. (addDeltaDownload): New function.
  12715. (resetDeltaDownload): New function.
  12716. (addPeerUpload): Added a call to addDeltaUpload.
  12717. (addPeerDownload): Added a call to addDeltaDownload.
  12718. * src/Peer.cc
  12719. (shouldBeChoking): Renamed from shouldChoke.
  12720. (resetStatus): New function.
  12721. * src/PeerChokeCommand.h: New class.
  12722. * src/PeerChokeCommand.cc: New class.
  12723. To add lazy upload speed limiter:
  12724. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  12725. statistics calculation to TorrentDownloadEngine.
  12726. * src/TorrentConsoleDownloadEngine.cc
  12727. (sendStatistics): Renamed from printStatistics.
  12728. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  12729. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  12730. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  12731. * src/TorrentDownloadEngine.h: Added the variables for statistics
  12732. calculation.
  12733. (sendStatistics): New function as pure virtual function.
  12734. (getUploadSpeed): New function.
  12735. * src/TorrentDownloadEngine.cc
  12736. (initStatistics): New function.
  12737. (calculateSpeed): New function.
  12738. (calculateStatistics): New function.
  12739. * src/SendMessageQueue.h
  12740. (uploadLength): New variable.
  12741. (send): Added an argument.
  12742. (setUploadLimit): New function.
  12743. (getUploadLimit): New function.
  12744. * src/SendMessageQueue.cc
  12745. (send): Added upload speed limiter.
  12746. * src/prefs.h
  12747. (PREF_UPLOAD_LIMIT): New definition.
  12748. * src/PeerInteractionCommand.cc
  12749. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  12750. * src/main.cc
  12751. (main): Added --upload-limit option
  12752. For bug fixes:
  12753. * src/main.cc
  12754. (showUsage): Corrected --listen-port help
  12755. Other changes:
  12756. * src/TorrentMan.cc
  12757. (getPeer): Return nullPeer if connection is grather than
  12758. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  12759. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12760. To add some useful information to the exception message:
  12761. * src/SocketCore.cc : Updated messages.
  12762. * src/SegmentMan.cc :
  12763. * src/TorrentMan.cc : Updated messages.
  12764. * src/MultiDiskWriter.cc : Updated messages.
  12765. * src/Util.cc : Updated messages.
  12766. * src/AbstractDiskWriter.cc : Updated messages.
  12767. * src/PreAllocationDiskWriter.cc : Updated messages.
  12768. * src/message.cc : Added new messages. Updated some messages.
  12769. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  12770. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  12771. Updated threshold from 30 to 15.
  12772. * src/AbstractDiskWriter.h (filename): New variable.
  12773. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  12774. (createFile): Assigned filename.
  12775. * src/main.cc: Updated the help message for http-auth-scheme.
  12776. * Release 0.4.0
  12777. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12778. To add TrackerUpdateCommand with which replaces
  12779. CompactTrackerResponseProcessor:
  12780. * src/TrackerWatcherCommand.h (req): Removed.
  12781. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  12782. if the number of peer connections are less than 30.
  12783. * src/ByteArrayDiskWriter.h (readData): Implemented.
  12784. * src/SegmentMan.h (diskWriter): New function.
  12785. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  12786. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  12787. (main): Use TrackerUpdateCommand.
  12788. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  12789. (req): New variable.
  12790. (setTrackerResponseProcessor): Removed.
  12791. (getTrackerResponseProcessor): Removed.
  12792. (processTrackerResponse): Removed.
  12793. * src/DownloadEngine.h (diskWriter): Removed.
  12794. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  12795. to torrentMan->processTrackerResponse().
  12796. To add Util::expandBuffer:
  12797. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  12798. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  12799. * src/Util.h (expandBuffer): New function.
  12800. To fix the bug that causes segmentation fault when "-l ." is specified
  12801. in command-line option:
  12802. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  12803. (openFile): New function.
  12804. (closeFile): New function.
  12805. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  12806. (~SimpleLogger): Call closeFile();
  12807. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  12808. * src/main.cc (main): Added a check to see logger is configured
  12809. properly.
  12810. To enable HTTP authentication without specifying "--http-auth-scheme"
  12811. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  12812. * src/HttpConnection.cc (createRequest): Send Authorization header
  12813. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  12814. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  12815. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  12816. * src/Peer.cc (shouldChoke): Updated algorithm.
  12817. * src/message.h (EX_AUTH_FAILED): New definition.
  12818. (EX_FILE_OPEN): New definition.
  12819. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  12820. if status == 401.
  12821. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  12822. if req->isTorrent == true.
  12823. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  12824. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  12825. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  12826. (createFile): Updated message.
  12827. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12828. To add a readout of estimated remaining time to normal HTTP/FTP
  12829. downloads:
  12830. * src/ConsoleDownloadEngine.h (startup): New variable.
  12831. (startupLength): New variable.
  12832. (isStartupLengthSet): New variable.
  12833. (avgSpeed): New variable.
  12834. (eta): New variable.
  12835. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  12836. estimated remaining time.
  12837. (initStatistics): Initialized newly added variables.
  12838. (calculateStatistics): Calculate average speed and estimated remaining
  12839. time.
  12840. To decouple TorrentDownloadEngine from HttpResponseCommand:
  12841. * src/TrackerDownloadCommand.h: Removed.
  12842. * src/TrackerDownloadCommand.cc: Removed.
  12843. * src/TrackerInitCommand.h: Removed.
  12844. * src/TrackerInitCommand.cc: Removed.
  12845. * src/TrackerUpdateCommand.h: Removed.
  12846. * src/TrackerUpdateCommand.cc: Removed.
  12847. * src/TrackerWatcherCommand.cc (execute): The construction of request
  12848. url written in TrackerInitCommand was moved here. Do not create
  12849. tracker request command if torrentMan->trackers != 0.
  12850. * src/CompactTrackerResponseProcessor.h: New class.
  12851. * src/CompactTrackerResponseProcessor.cc: New class.
  12852. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  12853. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  12854. Decoupled TorrentDownloadEngine from this.
  12855. * src/SegmentMan.h (init): New function.
  12856. * src/SegmentMan.cc (init): New function.
  12857. * src/TorrentMan.h (responseProcessor): New variable.
  12858. (trackers): New variable.
  12859. (setTrackerResponseProcessor): New function.
  12860. (getTrackerResponseProcessor): New function.
  12861. (processTrackerResponse): New function.
  12862. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  12863. (processTrackerResponse): New function.
  12864. * src/main.cc (main): Use ByteArrayDiskWriter and
  12865. CompactTrackerResponseProcessor.
  12866. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  12867. processTrackerResponse().
  12868. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  12869. readout.
  12870. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  12871. which indicates download has completed.
  12872. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  12873. (closeFile): fd >= 0, not fd > 0
  12874. * src/main.cc (main): Added short cut for show-files.
  12875. Added short cut for torrent-file.
  12876. Added new command-line option listen-port.
  12877. Updated i18n messages.
  12878. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12879. To add LogFactory which creates singleton logger:
  12880. * src/LogFactory.h: New class.
  12881. * src/LogFactory.cc: New class.
  12882. * src/Command.h (logger): New variable.
  12883. (Constructor): Use LogFactory.
  12884. * src/AbstractCommand.cc: Use Command::logger
  12885. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  12886. Use LogFactory.
  12887. * src/SegmentSplitter.h : Made logger protected.
  12888. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  12889. * src/SegmentMan.cc (Constructor): Use LogFactory.
  12890. * src/DownloadEngine.h : Made logger protected.
  12891. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  12892. * src/PeerInteractionCommand.cc : Use Command::logger.
  12893. * src/HttpResponseCommand.cc : Use Command::logger.
  12894. * src/SegmentMan.h : Made logger private.
  12895. * src/TorrentMan.h : Made logger private.
  12896. * src/TorrentMan.cc : Use LogFactory.
  12897. * src/FtpNegotiateCommand.cc : Use Command::logger.
  12898. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  12899. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  12900. Use LogFactory.
  12901. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  12902. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  12903. Use LogFactory.
  12904. * src/DownloadCommand.cc : Use Command::logger.
  12905. * src/PeerAbstractCommand.cc : Use Command::logger.
  12906. * src/PeerListenCommand.cc : Use Command::logger.
  12907. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  12908. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  12909. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  12910. * src/TrackerWatcherCommand.cc : Use Command::logger.
  12911. * src/TrackerUpdateCommand.cc : Use Command::logger.
  12912. * src/TrackerDownloadCommand.cc : Use Command::logger.
  12913. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  12914. Use LogFactory.
  12915. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  12916. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  12917. Use LogFactory.
  12918. * src/main.cc (main): Use LogFactory.
  12919. * src/DiskAdaptor.h (logger): New variable.
  12920. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  12921. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  12922. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12923. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  12924. parameter to a tracker request.
  12925. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  12926. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  12927. * src/main.cc (setSignalHander): New function.
  12928. (main): Added a handler for SIGTERM.
  12929. (handler): Updated message.
  12930. (torrentHandler): Updated message.
  12931. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12932. * src/TorrentConsoleDownloadEngine.cc
  12933. (onPartialDownloadingCompletes): Renamed as
  12934. onSelectiveDownloadingCompletes.
  12935. (onSelectiveDownloadingCompletes): Updated message.
  12936. To add DiskAdaptor which abstract DiskWriter family:
  12937. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  12938. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  12939. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  12940. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  12941. MultiDiskAdaptor.h.
  12942. (readFileEntry): Changed its arguments.
  12943. (setup): setupDiskWriter is merged into this function.
  12944. (setupDiskWriter): Removed.
  12945. (setFileFilter): New function.
  12946. (readFileEntryFromMetaInfoFile): Updated according to the changes
  12947. made in readFileEntry.
  12948. (getFilePath): Removed.
  12949. (getTempFilePath): Removed.
  12950. (getSegmentFilePath): Updated due to the removal of getFilePath.
  12951. (fixFilename): Removed.
  12952. (copySingleFile): Removed.
  12953. (splitMultiFile): Removed.
  12954. (deleteTempFile): Removed.
  12955. (setFileEntriesToDownload): Removed.
  12956. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  12957. (isSelectiveDownloadingMode): New function.
  12958. (setAllMultiFileRequestedState): Removed.
  12959. (finishPartialDownloadingMode): Renamed as
  12960. finishSelectiveDownloadingMode.
  12961. (finishSelectiveDownloadingMode): New function.
  12962. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  12963. (getSelectedTotalLength): New function.
  12964. (onDownloadComplete): Use diskAdaptor.
  12965. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  12966. (Range): Removed.
  12967. (setMultiFileEntries): Renamed as setFileEntries.
  12968. (setFileEntries): New function.
  12969. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  12970. (pieceLength): New variable.
  12971. * src/main.cc (printDownloadCompeleteMessage): New function.
  12972. (torrentHandler): Use diskAdaptor instead of diskWriter.
  12973. (main): Renamed torrent-show-files to show-files.
  12974. Rewritten file contents listing.
  12975. * src/TorrentMan.h (FileEntry): Removed.
  12976. (multiFileTopDir): Removed.
  12977. (multiFileEntries): Removed.
  12978. (diskWriter): Removed.
  12979. (diskAdaptor): New variable.
  12980. * src/DefaultDiskWriter.h (totalLength): New variable.
  12981. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  12982. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  12983. diskWriter.
  12984. * src/TorrentConsoleDownloadEngine.h
  12985. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  12986. (partialTotalLength): Renamed as selectedTotalLength.
  12987. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  12988. openExistingFile, otherwise call initAndOpenFile.
  12989. (closeFile): fd > 0, not fd != 0.
  12990. * src/DirectDiskAdaptor.h: New class.
  12991. * src/DirectDiskAdaptor.cc: New class.
  12992. * src/MultiDiskAdaptor.h: New class.
  12993. * src/MultiDiskAdaptor.cc: New class.
  12994. * src/CopyDiskAdaptor.h: New class.
  12995. * src/CopyDiskAdaptor.cc: New class.
  12996. * src/DiskAdaptor.h: New class.
  12997. * src/DiskAdaptor.cc: New class.
  12998. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  12999. (PREF_SHOW_FILES): New definition.
  13000. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13001. To add the ability to download multi torrent into respective files
  13002. directly:
  13003. * src/DiskWriter.h (openFile): New function.
  13004. (seek): Removed.
  13005. * src/MultiDiskWriter.h: New class.
  13006. * src/MultiDiskWriter.cc: New class.
  13007. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  13008. protected.
  13009. (openFile): New function.
  13010. * src/AbstractDiskWriter.cc (openFile): New function.
  13011. * src/prefs.h (V_FALSE): New definition.
  13012. (PREF_DIRECT_FILE_MAPPING): New definition.
  13013. * src/TorrentMan.h (setupDiskWriter): New function.
  13014. (setAllMultiFileRequestedState): New function.
  13015. (onDownloadComplete): New function.
  13016. * src/TorrentMan.cc : Included MultiDiskWriter.h
  13017. (setupDiskWriter): New function.
  13018. (getFilePath): Updated.
  13019. (getTempFilePath): Updated.
  13020. (getSegmentFilePath): Updated.
  13021. (fixFilename): Updated.
  13022. (deleteTempFile): Updated.
  13023. (setAllMultiFileRequestedState): New function.
  13024. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  13025. (finishPartialDownloadingMode): Reset requested flags.
  13026. (onDownloadComplete): New function.
  13027. * src/main.cc: Added --direct-file-mapping option.
  13028. Use TorrentMan::setupDiskWriter().
  13029. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  13030. onDownloadComplete().
  13031. To fix ETA bug:
  13032. * src/Util.h (difftvsec): New function.
  13033. * src/Util.cc (difftvsec): New function.
  13034. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  13035. type of "elapsed" instead of long long int.
  13036. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  13037. The updates of statistics takes place every 1 seconds.
  13038. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  13039. (calculateSpeed): Changed its argument signature.
  13040. * src/PeerMessage.cc (toString): Fixed message.
  13041. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13042. To print ETA:
  13043. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  13044. completion handling when dealing with
  13045. TorrentMan::isPartialDownloadingMode() == true.
  13046. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  13047. New function.
  13048. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  13049. (sessionDownloadLength): New variable.
  13050. (avgSpeed): New variable.
  13051. (eta): New variable.
  13052. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  13053. new variables: eta, avgSpeed, startup.
  13054. (calculateSpeed): Calculate average speed and ETA.
  13055. (printStatistics): Added ETA.
  13056. * src/Util.h (secfmt): New function.
  13057. * src/Util.cc (secfmt): New function.
  13058. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13059. To detect "keep alive" flooding:
  13060. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  13061. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  13062. variable: keepAliveCount.
  13063. (detectMessageFlooding): Added "keep alive" flooding detection.
  13064. (receiveMessage): Increase keepAliveCount when "keep alive" message
  13065. received.
  13066. To add the ability to download only specified files in multi-file
  13067. torrent:
  13068. * src/BitfieldMan.h (filterBitfield): New variable.
  13069. (filterEnabled): New variable.
  13070. (setFilterBit): New function.
  13071. (enableFilter): New function.
  13072. (disableFilter): New function.
  13073. (isFilterEnabled): New function.
  13074. (getFilteredTotalLength): New function.
  13075. (getCompletedLength): New function.
  13076. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  13077. filterBitfield, filterEnabled.
  13078. (CopyConstructor): Added filterBitfield and filterEnabled.
  13079. (operator==): Added filterBitfield and filterEnabled.
  13080. (Destructor): Added filterBitfield.
  13081. (getMissingIndex): Use filterBitfield.
  13082. (getMissingUnusedIndex): Use filterBitfield.
  13083. (getFirstMissingUnusedIndex): Use filterBitfield.
  13084. (getFirstMissingUnusedIndex): Use filterBitfield.
  13085. (getAllMissingIndexes): Use filterBitfield.
  13086. (countMissingBlock): Use filterBitfield.
  13087. (countBlock): Use filterBitfield.
  13088. (setBitInternal): Added new argument on.
  13089. (setUseBit): Use setBitInternal.
  13090. (unsetUseBit): Use setBitInternal.
  13091. (setBit): Use setBitInternal.
  13092. (unsetBit): Use setBitInternal.
  13093. (isAllBitSet): Use filterBitfield.
  13094. (setFilterBit): New function.
  13095. (addFilter): New function.
  13096. (enableFilter): New function.
  13097. (disableFilter): New function.
  13098. (clearFilter): New function.
  13099. (isFilterEnabled): New function.
  13100. (getFilteredTotalLength): New function.
  13101. (getCompletedLength): New function.
  13102. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  13103. Initalized newly added variables.
  13104. [FileEntry](offset): New variable.
  13105. [FileEntry](extracted): New variable.
  13106. [FileEntry](requested): New variable.
  13107. (readFileEntry): New function.
  13108. (option): New variable.
  13109. (splitMultiFile): Removed const qualifier.
  13110. (fixFilename): Removed const qualifier.
  13111. (readFileEntryFromMetaInfoFile): New function.
  13112. (finishPartialDownloadingMode): New function.
  13113. (isPartialDownloadingMode): New function.
  13114. (setFileEntriesToDownload): New function.
  13115. (getCompletedLength): New function.
  13116. (getPartialTotalLength): New function.
  13117. * src/TorrentMan.cc (readFileEntry): New function.
  13118. (setup): Use readFileEntry. If no-preallocation option is specified,
  13119. use DefaultDiskWriter.
  13120. (readFileEntryFromMetaInfoFile): New function.
  13121. (fixFilename): Removed const qualifier.
  13122. (splitMultiFile): Removed const qualifier.
  13123. (setFileEntriesToDownload): New function.
  13124. (isPartialDownloadingMode): New function.
  13125. (finishPartialDownloadingMode): New function.
  13126. (getCompletedLength): New function.
  13127. (getPartialTotalLength): New function.
  13128. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  13129. New variable.
  13130. (partialTotalLength): New variable.
  13131. (downloadLength): New variable.
  13132. (totalLength): New variable.
  13133. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  13134. Added log.
  13135. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  13136. partialTotalLength, downloadLength, totalLength.
  13137. (calculate): Calculate downloadLength and totalLength.
  13138. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  13139. * src/main.cc (addCommand): Changed argument signature.
  13140. (main): Added new variable: args. Added new option "torrent-show-files"
  13141. "no-preallocation". Usage is not updated yet.
  13142. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13143. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  13144. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13145. Attempt to add the ability to listing file entries in a .torrent file.
  13146. This feature is not yet complete.
  13147. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  13148. * src/TorrentMan.cc (getMultiFileEntries): New function.
  13149. (getName): New function.
  13150. * src/TorrentMan.h (getMultiFileEntries): New function.
  13151. (getName): New function.
  13152. * src/main.cc (main): Use above 2 funtion.
  13153. * Release 0.3.2
  13154. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13155. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  13156. (detectMessageFlooding): Updated threshold value.
  13157. (checkLongTimePeerChoking): Updated timeout value.
  13158. (getNewPieceAndSendInterest): Added debug log.
  13159. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  13160. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  13161. (getPeer): Updated.
  13162. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  13163. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  13164. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  13165. is localhost.
  13166. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  13167. * src/PendingMessage.cc (processMessage): Not to send piece message
  13168. if peer is not interested in the pieces localhost has.
  13169. * src/Peer.cc (shouldChoke): Updated.
  13170. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  13171. * src/Util.cc (isPowerOf): New function.
  13172. * src/Util.h (isPowerOf): New function.
  13173. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  13174. whether or not it is power of 2.
  13175. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13176. Added new class SendMessageQueue that includes PendingMessages and
  13177. RequestSlotMan.
  13178. * src/SendMessageQueue.h: New class.
  13179. * src/SendMessageQueue.cc: New class.
  13180. * src/PendingMessage.h: Added new member variable blockIndex and its
  13181. accessors.
  13182. (createRequestMessage): Updated.
  13183. * src/PendingMessage.cc (createRequestMessage): Updated.
  13184. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  13185. SendMessageQueue.
  13186. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  13187. (receiveMessage): Updated with SendMessageQueue.
  13188. (deletePendingPieceMessage): Removed.
  13189. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  13190. (sendInterest): Updated with SendMessageQueue.
  13191. (createRequestPendingMessage): Updated with SendMessageQueue.
  13192. (sendMessages): Updated with SendMessageQueue.
  13193. (onAbort): Updated with SendMessageQueue.
  13194. (keepAlive): Updated with SendMessageQueue.
  13195. (beforeSocketCheck): Updated SendMessageQueue.
  13196. * src/PeerInteractionCommand (sendMessages): Shuffle
  13197. missingBLockIndexes before using it.
  13198. Added its own timeout for peer connection.
  13199. * src/PeerAbstractCommand.h: Added member variable timeout and its
  13200. setter.
  13201. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  13202. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13203. Added setTimeout() call.
  13204. (executeInternal): Added setTimeout() call.
  13205. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  13206. Added timeout.
  13207. (isTimeoutDetected): Updated.
  13208. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  13209. option.
  13210. Added *simple* message flooding checker.
  13211. * src/PeerInteractionCommand.cc (executeInternal):
  13212. Added detectMessageFlooding() call.
  13213. (detectMessageFlooding): New function.
  13214. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  13215. (beforeSocketCheck): Added detectMessageFlooding() call.
  13216. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  13217. chokeUnchokeCount, haveCount, detectMessageFlooding().
  13218. Removed deletePendingPieceMessage(), getRequestSlot(),
  13219. deleteRequestSlot(), deleteAllRequestSlot().
  13220. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  13221. Added checkLongTimePeerChoking() call.
  13222. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  13223. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  13224. if duplicate == false.
  13225. The parameter "uploaded" and "downloaded" in the tracker request are
  13226. the size since the client sent the "started" event to the tracker.
  13227. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  13228. uploaded size to preDownloadedSize, preUploadedSize respectively.
  13229. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  13230. getSessionDownloadedSize(), getSessionUploadedSize().
  13231. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  13232. getSessionUploadedSize() instead of getDownloadedSize(),
  13233. getUploadedSize().
  13234. * src/PendingMessage.cc (processMessage): Do not send request message
  13235. if the peer is choking the client.
  13236. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  13237. less than interval.
  13238. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13239. * configure.in: Added gnutls support. Added several CPP macros.
  13240. * m4/openssl.m4: Added.
  13241. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  13242. readData(), peekData(). Added gnutls support.
  13243. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  13244. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  13245. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  13246. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  13247. Instead, added a check for whether setup method has executed
  13248. successfully.
  13249. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  13250. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  13251. * src/Makefile.am: Updated.
  13252. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  13253. using whether OpenSSL or gcrypt, depending on the result of configure
  13254. script.
  13255. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  13256. messageDigest.h.
  13257. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  13258. * src/PeerListenCommand.cc: Added log about port binded successfully.
  13259. Fixed memory leak.
  13260. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  13261. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  13262. Removed instantiation of TrackerInitCommand. Instead,
  13263. TrackerWatcherCommand is instantiated and pushed to the command queue.
  13264. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  13265. ENABLE_SSL.
  13266. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  13267. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  13268. If a piece is already acquired by another command, delete the request
  13269. slots for the piece.
  13270. * src/TrackerUpdateCommand.cc (execute):
  13271. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  13272. Added a check whether peer list is null.
  13273. Fixed the bug that causes sending completed event to the tracker
  13274. several times.
  13275. * src/TrackerInitCommand.cc (execute):
  13276. Fixed the bug that causes sending completed event to the tracker
  13277. several times.
  13278. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  13279. by using messageDigest.h.
  13280. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13281. * PeerConnection.cc: Replaced log message "keep-alive" with
  13282. "keep alive".
  13283. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  13284. localhost long time.
  13285. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  13286. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  13287. at most 100 failure entry from the list. If with duplicate = false,
  13288. MAX_PEER_LIST is not checked.
  13289. * PeerListenCommand.cc: Fixed the argument order of log message.
  13290. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13291. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  13292. Added warn().
  13293. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  13294. Implemented warn().
  13295. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  13296. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13297. * Request.h: Added AFTER_COMPLETED event.
  13298. * TorrentDownloadEngine.cc: Prints "Download complete" message
  13299. instead of downloaded size and progress(%) after download completes.
  13300. * PeerInteractionCommand.cc: After download completes, sends unchoke
  13301. message to the peer if it is interested in what localhost has
  13302. downloaded.
  13303. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  13304. destination instead of just renaming it.
  13305. * TorrentMan.cc: Added deleteTempFile().
  13306. * PeerAbstractCommand.cc: do not stop execution after download
  13307. completes. This makes localhost a seeder.
  13308. * Util.{h,cc}: Added fileCopy().
  13309. * PeerListenCommand.cc: do not stop execution after download completes.
  13310. This makes localhost a seeder.
  13311. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  13312. Added TorrentMan::deleteTempFile() to torrentHandler.
  13313. Initialized the variable dir as ".".
  13314. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  13315. Deleted renameSingleFile().
  13316. Added copySingleFile(), deleteTempFile().
  13317. * DownloadEngine.h: Added virtual function afterEachIteration().
  13318. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  13319. in onEndOfRun() to afterEachIteration().
  13320. In onEndOfRun(), changed if condition to check whether filenameFixed is
  13321. true.
  13322. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  13323. In rangedFileCopy(), added try-catch block to properly close file
  13324. descriptors.
  13325. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  13326. Added afterEachIteration(), isFilenameFixed().
  13327. * Peer.cc: Changed choking strategy.
  13328. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  13329. * TrackerInitCommand.cc: Send completed event only once.
  13330. * DownloadEngine.cc: Added a call to afterEachIteration().
  13331. * TrackerUpdateCommand.cc: Do not stop execution after download
  13332. completes.
  13333. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  13334. connect the peers at most MAX_PEER_UPDATE when a peer list is
  13335. received from a tracker.
  13336. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  13337. Decreased the number of failure peers to delete to 0(just comment out
  13338. the line).
  13339. * Release 0.3.1
  13340. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13341. * PeerInteractionCommand.cc: added a call to
  13342. TorrentMan::unadvertisePiece in Destructor.
  13343. * PeerInteractionCommand.cc: make have message sent immediately
  13344. if the size of pending message queue is zero.
  13345. * TorrentMan.cc: set the maximum size of peer list to 250.
  13346. * TorrentMan.h: changed the container type of Peers and UsedPieces
  13347. to deque.
  13348. * Util.cc: fixed rangedFileCopy.
  13349. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  13350. to Constructor. Also, moved digest cleanup to Destructor.
  13351. * MetaFileUtil.cc: fixed memory leak
  13352. * replaced std::vector with std::deque.
  13353. * AbstractCommand.cc: casted timeout value to long long int.
  13354. * ChunkedEncoding.cc: fixed memory leak.
  13355. * PeerInteractionCommand.cc: casted timeout value to long long int.
  13356. * SleepCommand.cc: casted timeout value to long long int.
  13357. * Data.cc: fixed memory leak.
  13358. * Data.cc: fixed toLLInt().
  13359. * BitfieldMan.cc: fixed memory leak.
  13360. * TorrentMan.cc: initialized storeDir to ".".
  13361. * TorrentMan.cc: fixed memory leak.
  13362. * TorrentMan.cc: corrected file paths of splitted files.
  13363. * PeerAbstractCommand.cc: casted timeout to long long int.
  13364. * main.cc: added delete(req) and delete(te->diskWriter).
  13365. * RequestSlot.cc: casted timeout value to long long int.
  13366. * Request.cc: fixed memory leak.
  13367. * PendingMessage.cc: make HAVE messages sent only when peer does not
  13368. have the piece.
  13369. * Peer.{h,cc}: added hasPiece(int index).
  13370. * main.cc: corrected addCommand.
  13371. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13372. * BitTorrent protocol support added.
  13373. * Release 0.3.0
  13374. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13375. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  13376. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13377. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  13378. decoding did not work properly.
  13379. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13380. * DownloadEngine.h: included sys/time.h
  13381. * DownloadEngine.cc: remove sys/time.h
  13382. * Makefile.am (SUBDIRS): Add intl.
  13383. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  13384. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13385. * main.cc: correct help message for --http-auth-scheme.
  13386. * main.cc: changed e-mail address for bug reports.
  13387. * ja.po: added japanese translation.
  13388. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13389. * SimpleLogger.cc: flush log file instead of stdout.
  13390. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13391. * main.cc: Fixed command-line option: max-tries
  13392. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  13393. does not equal to seg.sp.
  13394. * DownloadCommand.cc: If EOF is got from the server and the total size
  13395. of file is not zero, then throw DlRetryEx.
  13396. * main.cc: Set the minium value of min-segment-size to 1024.
  13397. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  13398. fails because of a regression since 0.2.0 release.
  13399. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13400. * HttpConnection.cc:
  13401. * common.h: defined the user agent name as macro
  13402. * DownloadEngine.{h, cc}:
  13403. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  13404. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  13405. * main.cc: Download complete/abort message is now generated by main.
  13406. * Makefile.am (SUBDIRS): Add m4.
  13407. (ACLOCAL_AMFLAGS): New variable.
  13408. (EXTRA_DIST): New variable.
  13409. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  13410. * gettext: added gettext functionality
  13411. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13412. * AbstractCommand.cc:
  13413. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  13414. unregister its cuid from SegmentMan.
  13415. * DownloadEngine.cc: .aria2 file was written when a downloading
  13416. failed with errors.
  13417. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  13418. Added "User-Agent" header to CONNECT proxy request.
  13419. Fixed "Proxy-Authorization" header. Now proxy authorization works
  13420. properly.
  13421. * Logger.h:
  13422. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  13423. * ChunkedEncoding.cc: Added #include directive for strings.h
  13424. * Release 0.2.1
  13425. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13426. * Util.{h,cc}: added startsWith().
  13427. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  13428. Util::endsWith().
  13429. * SocketCore.cc: struct addrinfo is now zero-initialized.
  13430. * common.h: added #include directive of limit.h.
  13431. * DownloadEngine.cc: added #include directive of sys/time.h and
  13432. algorithm.
  13433. * Exception.h: added #include directive of stdio.h.
  13434. * AbstractCommand.h: added #include directive of sys/time.h.
  13435. * DownloadCommand.h: added #include directive of sys/time.h.
  13436. * *.h: added #include directive of common.h to all base classes.
  13437. subclasses' one was removed.
  13438. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  13439. does not define these macros.
  13440. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13441. * Release 0.2.0
  13442. * main.cc:
  13443. * HttpInitiateConnectionCommand.{h,cc}:
  13444. * prefs.h:
  13445. * HttpConnection.{h,cc}: added --http-proxy-method option.
  13446. We can now use GET command in http proxy.
  13447. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13448. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  13449. that splits slowest segment of SegmentMan::commands vector.
  13450. This is the default split algorithm of aria2.
  13451. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  13452. that splits first segment of SegmentMan::commands vector.
  13453. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  13454. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  13455. * Segment.h:
  13456. * SegmentMan.cc: Added speed field to Segment.h
  13457. * main.cc: -s option now affects all URLs in command-line arguemtns.
  13458. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  13459. * message.h: Change file size related %d to %lld.
  13460. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13461. * FtpInitiateConnectionCommand.{h,cc}:
  13462. * FtpNegotiationCommand.{h,cc}:
  13463. * FtpDownloadCommand.{h,cc}:
  13464. * FtpConnection.{h,cc}: Added FTP support
  13465. * SimpleLogger.cc: Log message now includes time information.
  13466. * main.cc: The value of --http-auth-scheme option is chagned from
  13467. 'BASIC' to 'basic'
  13468. * main.cc: Added --timeout command-line option.
  13469. * main.cc: Added --min-segment-size command-line option.
  13470. * main.cc: Added --max-retries command-line option.
  13471. * prefs.h: option string constants are now defined in prefs.h
  13472. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13473. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  13474. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  13475. with version 0.1.0's one.
  13476. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13477. * configure.in: Added --enable-ssl option to configure script.
  13478. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  13479. cannot permit absoluteURI as Request-URI.
  13480. * HttpConnection.cc: Added Referer support.
  13481. * main.cc: Added referer command-line option.
  13482. * main.cc: Added rety-wait command-line option.
  13483. * Exception.h: Fixed formating bug in Exception::setMsg()
  13484. * SocketCore.{h,cc}:
  13485. * Socket.{h, cc}:
  13486. * Request.cc:
  13487. * InitiateConnectionCommandFactory.cc:
  13488. * HttpRequestCommand.cc: Added HTTPS support.
  13489. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  13490. for SocketCore.
  13491. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  13492. size is wrong
  13493. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  13494. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  13495. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  13496. * Release 0.1.0