ChangeLog 562 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837
  1. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Rewritten the help message for --allow-overwrite option.
  3. * doc/aria2c.1.txt
  4. * src/usage_text.h
  5. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6. Fixed typo
  7. * doc/aria2c.1.txt
  8. * src/usage_text.h
  9. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  10. Updated README for 1.4.0 release. Use new table syntax of
  11. asciidoc.
  12. * README
  13. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  14. Documented --xml-rpc-max-request-size option in man page.
  15. * doc/aria2c.1.txt
  16. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  17. Moved C_* constants from BtContext to DefaultBtContext.
  18. * src/BtContext.cc: Removed.
  19. * src/BtContext.h
  20. * src/DefaultBtContext.cc
  21. * src/DefaultBtContext.h
  22. * src/Makefile.am
  23. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  24. Use name.utf-8 and path.utf-8 key in higher priority than name and
  25. path key respectively when persing .torrent file.
  26. * src/BtContext.cc
  27. * src/BtContext.h
  28. * src/DefaultBtContext.cc
  29. * test/DefaultBtContextTest.cc
  30. * test/utf8.torrent
  31. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  32. Added --xml-rpc-max-request-size option to limit the size of
  33. XML-RPC request.
  34. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  35. Documented XML-RPC API in man page.
  36. * doc/aria2c.1.txt
  37. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  38. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  39. will break strict-aliasing rules
  40. * src/PeerConnection.cc
  41. * test/DHTRoutingTableSerializerTest.cc
  42. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  43. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  44. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  45. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  46. PKG_CHECK_MODULES macro uses latter name.
  47. * m4/sqlite3.m4
  48. * src/Makefile.am
  49. * test/Makefile.am
  50. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  51. Fixed typo
  52. * configure.ac
  53. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  54. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  55. presence of libgnutls using pkg-config first. If it fails, fall
  56. back to old macro libgnutls.m4.
  57. * configure.ac
  58. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  59. Use s itself instead of !s.bad()
  60. * src/CookieStorage.cc
  61. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  62. Documented --on-download-* option and --save-cookies option in man
  63. page.
  64. * doc/aria2c.1.txt
  65. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  66. Set possible values for --load-cookie option to "/path/to/file".
  67. * src/OptionHandlerFactory.cc
  68. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  69. Added --save-cookies option.
  70. * src/Cookie.cc
  71. * src/Cookie.h
  72. * src/CookieStorage.cc
  73. * src/CookieStorage.h
  74. * src/MultiUrlRequestInfo.cc
  75. * src/OptionHandlerFactory.cc
  76. * src/prefs.cc
  77. * src/prefs.h
  78. * src/usage_text.h
  79. * test/CookieStorageTest.cc
  80. * test/CookieTest.cc
  81. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  82. Removed tellAll XML-RPC command because its reponse tends to be
  83. big if stopped/waiting downloads pile up.
  84. * src/XmlRpcMethodFactory.cc
  85. * src/XmlRpcMethodImpl.cc
  86. * src/XmlRpcMethodImpl.h
  87. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  88. Added the ability to execute command when download starts and
  89. stops. You can also specify command for particular cases such as
  90. complete/error download. Added --on-download-start,
  91. --on-download-stop, --on-download-complete and --on-download-error
  92. option.
  93. * src/OptionHandlerFactory.cc
  94. * src/RequestGroupMan.cc
  95. * src/prefs.cc
  96. * src/prefs.h
  97. * src/usage_text.h
  98. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  99. Fixed test error
  100. * test/BencodeTest.cc
  101. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  102. Added unit tests.
  103. * test/XmlRpcMethodTest.cc
  104. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  105. Made exception message more verbose.
  106. * src/bencode.cc
  107. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  108. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  109. space in console readout. Also they are now shown in MiB/s if
  110. speed > 1024KiB/s.
  111. * src/ConsoleStatCalc.cc
  112. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  113. Added SEED to console output, which represents the number of
  114. seeders currently the client is connecting to.
  115. * src/ConsoleStatCalc.cc
  116. * src/ConsoleStatCalc.h
  117. * src/DownloadEngine.cc
  118. * src/NullStatCalc.h
  119. * src/StatCalc.h
  120. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  121. Added source filename(__FILE__) and line number(__LINE__) to
  122. exception message.
  123. * src/AbstractCommand.cc
  124. * src/AbstractDiskWriter.cc
  125. * src/AbstractProxyResponseCommand.cc
  126. * src/BDE.h
  127. * src/BtAllowedFastMessage.cc
  128. * src/BtHandshakeMessageValidator.h
  129. * src/BtHaveAllMessage.cc
  130. * src/BtHaveNoneMessage.cc
  131. * src/BtPieceMessage.cc
  132. * src/BtRejectMessage.cc
  133. * src/ChunkedDecoder.cc
  134. * src/CookieStorage.cc
  135. * src/DHTAnnouncePeerMessage.cc
  136. * src/DHTEntryPointNameResolveCommand.cc
  137. * src/DHTMessageFactoryImpl.cc
  138. * src/DHTMessageTracker.cc
  139. * src/DHTRoutingTableDeserializer.cc
  140. * src/DHTRoutingTableSerializer.cc
  141. * src/DHTSetup.cc
  142. * src/DHTTokenTracker.cc
  143. * src/DefaultBtAnnounce.cc
  144. * src/DefaultBtContext.cc
  145. * src/DefaultBtInteractive.cc
  146. * src/DefaultBtMessageFactory.cc
  147. * src/DefaultBtProgressInfoFile.cc
  148. * src/DefaultExtensionMessageFactory.cc
  149. * src/DlAbortEx.h
  150. * src/DlRetryEx.h
  151. * src/DownloadCommand.cc
  152. * src/DownloadEngineFactory.cc
  153. * src/DownloadFailureException.h
  154. * src/Exception.cc
  155. * src/Exception.h
  156. * src/ExpatMetalinkProcessor.cc
  157. * src/ExpatXmlRpcRequestProcessor.cc
  158. * src/FallocFileAllocationIterator.cc
  159. * src/FatalException.h
  160. * src/FtpConnection.cc
  161. * src/FtpFinishDownloadCommand.cc
  162. * src/FtpInitiateConnectionCommand.cc
  163. * src/FtpNegotiationCommand.cc
  164. * src/GZipDecoder.cc
  165. * src/HandshakeExtensionMessage.cc
  166. * src/HttpConnection.cc
  167. * src/HttpHeaderProcessor.cc
  168. * src/HttpInitiateConnectionCommand.cc
  169. * src/HttpResponse.cc
  170. * src/HttpResponseCommand.cc
  171. * src/HttpServer.cc
  172. * src/HttpSkipResponseCommand.cc
  173. * src/InitiateConnectionCommandFactory.cc
  174. * src/IteratableChunkChecksumValidator.cc
  175. * src/LibgcryptARC4Context.h
  176. * src/LibgcryptARC4Decryptor.h
  177. * src/LibgcryptARC4Encryptor.h
  178. * src/LibgcryptDHKeyExchange.h
  179. * src/LibgnutlsTLSContext.cc
  180. * src/LibsslARC4Context.h
  181. * src/LibsslARC4Decryptor.h
  182. * src/LibsslARC4Encryptor.h
  183. * src/LibsslDHKeyExchange.h
  184. * src/LibsslTLSContext.cc
  185. * src/MSEHandshake.cc
  186. * src/MessageDigestHelper.cc
  187. * src/MetalinkHelper.cc
  188. * src/MultiDiskAdaptor.cc
  189. * src/NameMatchOptionHandler.h
  190. * src/NameResolver.cc
  191. * src/Netrc.cc
  192. * src/NsCookieParser.cc
  193. * src/OptionHandlerException.cc
  194. * src/OptionHandlerException.h
  195. * src/OptionHandlerImpl.h
  196. * src/OptionParser.cc
  197. * src/ParameterizedStringParser.cc
  198. * src/PeerAbstractCommand.cc
  199. * src/PeerConnection.cc
  200. * src/PeerMessageUtil.cc
  201. * src/PeerReceiveHandshakeCommand.cc
  202. * src/Platform.cc
  203. * src/ReceiverMSEHandshakeCommand.cc
  204. * src/RecoverableException.h
  205. * src/RequestGroup.cc
  206. * src/SimpleLogger.cc
  207. * src/SocketCore.cc
  208. * src/Sqlite3MozCookieParser.cc
  209. * src/UTPexExtensionMessage.cc
  210. * src/Util.cc
  211. * src/XML2SAXMetalinkProcessor.cc
  212. * src/Xml2XmlRpcRequestProcessor.cc
  213. * src/XmlRpcMethodImpl.cc
  214. * src/bencode.cc
  215. * src/download_helper.cc
  216. * src/messageDigest.h
  217. * test/ExceptionTest.cc
  218. * test/TestUtil.cc
  219. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  220. Bump up version number to 1.4.0
  221. * configure.ac
  222. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  223. Added 2files.metalink to EXTRA_DIST
  224. * test/Makefile.am
  225. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  226. Added missing 2files.metalink
  227. * test/2files.metalink
  228. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  229. Show "[MEMORY]" prefix before filename in download summary if it
  230. is downloaded into memory.
  231. * src/DownloadResult.h
  232. * src/RequestGroup.cc
  233. * src/RequestGroupMan.cc
  234. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  235. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  236. * src/ExpatXmlRpcRequestProcessor.cc
  237. * src/Xml2XmlRpcRequestProcessor.cc
  238. * src/message.h
  239. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  240. Defined const BDEs to avoid duplicate instantiation.
  241. Defined MSG_GID_NOT_PROVIDED.
  242. * src/XmlRpcMethodImpl.cc
  243. * src/message.h
  244. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  245. Code cleanup
  246. * src/Xml2XmlRpcRequestProcessor.cc
  247. * src/Xml2XmlRpcRequestProcessor.h
  248. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  249. Defined ENABLE_XML_RPC
  250. * configure.ac
  251. * configure
  252. * config.h.in
  253. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  254. Added ExpatXmlRpcRequestProcessor
  255. * src/ExpatXmlRpcRequestProcessor.cc
  256. * src/ExpatXmlRpcRequestProcessor.h
  257. * src/Makefile.am
  258. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  259. Added tests for addTorrent and addMetalink command.
  260. * test/TestUtil.cc
  261. * test/TestUtil.h
  262. * test/XmlRpcMethodTest.cc
  263. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  264. Corrected the description of --file-allocation option.
  265. * doc/aria2c.1.txt
  266. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  267. Added tellAll command.
  268. * src/XmlRpcMethodFactory.cc
  269. * src/XmlRpcMethodImpl.cc
  270. * src/XmlRpcMethodImpl.h
  271. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  272. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  273. * src/XmlRpcMethodImpl.cc
  274. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  275. Added changeGlobalOption command. Currently,
  276. max-overall-download-limit and max-overall-upload-limit option are
  277. available.
  278. * src/RequestGroupMan.h
  279. * src/XmlRpcMethod.cc
  280. * src/XmlRpcMethod.h
  281. * src/XmlRpcMethodFactory.cc
  282. * src/XmlRpcMethodImpl.cc
  283. * src/XmlRpcMethodImpl.h
  284. * test/XmlRpcMethodTest.cc
  285. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  286. Added changeOption command. Currently, max-download-limit,
  287. max-upload-limit option are available in this command.
  288. * src/RequestGroup.h
  289. * src/XmlRpcMethod.cc
  290. * src/XmlRpcMethod.h
  291. * src/XmlRpcMethodFactory.cc
  292. * src/XmlRpcMethodImpl.cc
  293. * src/XmlRpcMethodImpl.h
  294. * test/XmlRpcMethodTest.cc
  295. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  296. Added purgeDownloadResult command.
  297. * src/RequestGroupMan.cc
  298. * src/RequestGroupMan.h
  299. * src/XmlRpcMethodFactory.cc
  300. * src/XmlRpcMethodImpl.cc
  301. * src/XmlRpcMethodImpl.h
  302. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  303. Refactored.
  304. * src/XmlRpcMethod.cc
  305. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  306. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  307. XmlRpcResponse.
  308. * src/HttpServerBodyCommand.cc
  309. * src/Makefile.am
  310. * src/XmlRpcMethod.cc
  311. * src/XmlRpcMethod.h
  312. * src/XmlRpcMethodImpl.cc
  313. * src/XmlRpcResponse.cc
  314. * src/XmlRpcResponse.h
  315. * test/XmlRpcMethodTest.cc
  316. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  317. In XML-RPC option struct, header and index-out option can take
  318. array as value.
  319. * src/XmlRpcMethod.cc
  320. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  321. Removed unused option member from PeerConnection.
  322. * src/InitiatorMSEHandshakeCommand.cc
  323. * src/PeerConnection.cc
  324. * src/PeerConnection.h
  325. * src/PeerInteractionCommand.cc
  326. * src/PeerReceiveHandshakeCommand.cc
  327. * src/ReceiverMSEHandshakeCommand.cc
  328. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  329. Added "seeder" key to getPeers response.
  330. * src/XmlRpcMethodImpl.cc
  331. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  332. Added addMetalink XML-RPC command.
  333. * src/XmlRpcMethodFactory.cc
  334. * src/XmlRpcMethodImpl.cc
  335. * src/XmlRpcMethodImpl.h
  336. * src/download_helper.cc
  337. * src/download_helper.h
  338. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  339. Fixed the bug that POU peers are never choked in seeding.
  340. * src/BtSeederStateChoke.cc
  341. * src/BtSeederStateChoke.h
  342. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  343. Added web-seeding URI handling in addTorrent command.
  344. * src/XmlRpcMethodImpl.cc
  345. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  346. Added "length" key to getFiles response.
  347. * src/XmlRpcMethodImpl.cc
  348. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  349. Moved --no-netrc option from ftp option section to http/ftp option
  350. section.
  351. * doc/aria2c.1.txt
  352. * src/OptionHandlerFactory.cc
  353. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  354. Removed garbage "\" character before '
  355. * doc/aria2c.1.txt
  356. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  357. Removed garbage "\" character before http.
  358. * doc/aria2c.1.txt
  359. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  360. Documented additional options that can be specified in -i list.
  361. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  362. and --xml-rpc-passwd. Removed --enable-http-server and
  363. --http-server-listen-port.
  364. * doc/aria2c.1.txt
  365. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  366. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  367. * src/DefaultPeerStorage.cc
  368. * src/DefaultPeerStorage.h
  369. * src/PeerStorage.h
  370. * src/XmlRpcMethodImpl.cc
  371. * test/MockPeerStorage.h
  372. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  373. Put a call to Socket::isReadable() in try block.
  374. * src/HttpServerBodyCommand.cc
  375. * src/HttpServerCommand.cc
  376. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  377. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  378. exception , so it is now in try block.
  379. * src/HttpServerResponseCommand.cc
  380. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  381. Added "amChoking" and "peerChoking" key in getPeers response.
  382. * src/XmlRpcMethodImpl.cc
  383. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  384. Added test case for zero-length filter.
  385. * test/BitfieldManTest.cc
  386. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  387. getFiles command now returns file data for finished/stopped
  388. downloads.
  389. * src/XmlRpcMethodImpl.cc
  390. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  391. DownloadResult now has the list of FileEntry. The download
  392. summary displays the path of first selected file and the number of
  393. remaining files for multi-file torrent.
  394. * src/DownloadResult.h
  395. * src/RequestGroup.cc
  396. * src/RequestGroupMan.cc
  397. * test/RequestGroupTest.cc
  398. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  399. Fixed segmentation fault error when no file is selected in
  400. multi-file torrent.
  401. * src/BitfieldMan.cc
  402. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  403. Escaped <,>,& character in XML-RPC response.
  404. * src/XmlRpcMethod.cc
  405. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  406. Throw DlAbortEx instead of FatalException during parsing options
  407. because we don't want for aria2 to quit when bad option is passed
  408. via XML-RPC.
  409. * src/OptionHandlerException.cc
  410. * src/OptionHandlerException.h
  411. * src/OptionHandlerImpl.h
  412. * src/OptionParser.cc
  413. * src/OptionParser.h
  414. * src/PStringSegment.cc
  415. * src/ParameterizedStringParser.cc
  416. * src/download_helper.cc
  417. * test/ParameterizedStringParserTest.cc
  418. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  419. Selecting files are now done in
  420. DefaultBtContext::setFileFileter().
  421. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  422. functions are removed because they are no longer used. Creating
  423. filter in BitfieldMan is done in new funtion
  424. PieceStorage::setupFileFilter()
  425. * src/BtContext.cc
  426. * src/BtContext.h
  427. * src/DefaultBtContext.cc
  428. * src/DefaultBtContext.h
  429. * src/DefaultPieceStorage.cc
  430. * src/DefaultPieceStorage.h
  431. * src/DiskAdaptor.cc
  432. * src/DiskAdaptor.h
  433. * src/PieceStorage.h
  434. * src/RequestGroup.cc
  435. * src/UnknownLengthPieceStorage.h
  436. * src/XmlRpcMethodImpl.cc
  437. * test/DefaultBtContextTest.cc
  438. * test/MockBtContext.h
  439. * test/MockPieceStorage.h
  440. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  441. Fixed compile error on Mac OS X
  442. * src/HttpServer.cc
  443. * src/XmlRpcMethod.h
  444. * src/XmlRpcMethodImpl.cc
  445. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  446. Use std::binary_search instead of std::find
  447. * src/DefaultPieceStorage.cc
  448. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  449. Removed unnecessary BDE() call; leave them to implicit conversion.
  450. * src/XmlRpcMethodImpl.cc
  451. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  452. Return connections and gid in string
  453. * src/XmlRpcMethodImpl.cc
  454. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  455. Renamed addURI as addUri
  456. * src/XmlRpcMethodFactory.cc
  457. * src/XmlRpcMethodImpl.cc
  458. * src/XmlRpcMethodImpl.h
  459. * test/XmlRpcMethodTest.cc
  460. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  461. Renamed addTorrentFile as addTorrent
  462. * src/XmlRpcMethodFactory.cc
  463. * src/XmlRpcMethodImpl.cc
  464. * src/XmlRpcMethodImpl.h
  465. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  466. The information for files, URIs, peers are removed from the
  467. reponse of TellaActive, TellStatus command because they tend to be
  468. large. Instead they can be retrieved by the dedicated commands:
  469. getFiles, getUris and getPeers respectively.
  470. * src/XmlRpcMethodFactory.cc
  471. * src/XmlRpcMethodImpl.cc
  472. * src/XmlRpcMethodImpl.h
  473. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  474. Removed --max-overall-upload-limit and
  475. --max-overall-download-limit option from listRequestOptions.
  476. * src/download_helper.cc
  477. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  478. Log incoming host in HttpListenCommand.
  479. * src/HttpListenCommand.cc
  480. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  481. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  482. --xml-rpc-passwd option.
  483. * src/HttpServer.cc
  484. * src/HttpServer.h
  485. * src/HttpServerCommand.cc
  486. * src/OptionHandlerFactory.cc
  487. * src/prefs.cc
  488. * src/prefs.h
  489. * src/usage_text.h
  490. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  491. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  492. processing 0 length request.
  493. * src/HttpServerBodyCommand.cc
  494. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  495. Removed --enable-http-server and --http-server-listen-port
  496. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  497. instead. The original feature for --enable-http-server that
  498. reports download progress in HTML was officially removed. Persist
  499. XML-RPC connection if client supports keep-alive.
  500. * src/DownloadEngineFactory.cc
  501. * src/HttpServerCommand.cc
  502. * src/HttpServerResponseCommand.cc
  503. * src/Makefile.am
  504. * src/Makefile.in
  505. * src/OptionHandlerFactory.cc
  506. * src/RequestGroupMan.cc
  507. * src/main.cc
  508. * src/option_processing.cc
  509. * src/prefs.cc
  510. * src/prefs.h
  511. * src/usage_text.h
  512. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  513. Added "uris" key to the response of tellStatus command. Added
  514. "connections" key to the response of tellStatus and tellActive
  515. command.
  516. * src/XmlRpcMethodImpl.cc
  517. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  518. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  519. Added TellStatusXmlRpcMethod. Remove command can now remove
  520. waiting RequestGroup.
  521. * src/RequestGroupMan.cc
  522. * src/RequestGroupMan.h
  523. * src/XmlRpcMethodFactory.cc
  524. * src/XmlRpcMethodImpl.cc
  525. * src/XmlRpcMethodImpl.h
  526. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  527. Initialized _peerId
  528. * src/Peer.cc
  529. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  530. Return fault structure for error. FailXmlRpcMethod is renamed as
  531. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  532. in non-torrent download. Return single param value.
  533. * src/XmlRpcMethod.cc
  534. * src/XmlRpcMethodFactory.cc
  535. * src/XmlRpcMethodImpl.cc
  536. * src/XmlRpcMethodImpl.h
  537. * test/XmlRpcMethodTest.cc
  538. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  539. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  540. command.
  541. * src/RequestGroup.cc
  542. * src/RequestGroup.h
  543. * src/RequestGroupMan.cc
  544. * src/XmlRpcMethodImpl.cc
  545. * test/RequestGroupTest.cc
  546. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  547. Added more options that can be specified in -i list and xml-rpc
  548. add* command.
  549. * src/download_helper.h
  550. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  551. The available options in -i list should be listed in
  552. listRequestOptions().
  553. * src/download_helper.cc
  554. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  555. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  556. command.
  557. * src/XmlRpcMethodImpl.cc
  558. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  559. Now RequestGroup has its own copy of Option object. This will help
  560. to give custom option for each RequestGroup.
  561. addTorrentFile command now takes options.
  562. * src/AbstractCommand.cc
  563. * src/AbstractCommand.h
  564. * src/AbstractProxyRequestCommand.cc
  565. * src/ActivePeerConnectionCommand.cc
  566. * src/ActivePeerConnectionCommand.h
  567. * src/AdaptiveURISelector.cc
  568. * src/BtCheckIntegrityEntry.cc
  569. * src/BtDependency.cc
  570. * src/BtDependency.h
  571. * src/BtFileAllocationEntry.cc
  572. * src/BtPostDownloadHandler.cc
  573. * src/CheckIntegrityEntry.cc
  574. * src/DownloadCommand.cc
  575. * src/FtpDownloadCommand.cc
  576. * src/FtpFinishDownloadCommand.cc
  577. * src/FtpInitiateConnectionCommand.cc
  578. * src/FtpNegotiationCommand.cc
  579. * src/HttpInitiateConnectionCommand.cc
  580. * src/HttpRequestCommand.cc
  581. * src/HttpResponseCommand.cc
  582. * src/HttpSkipResponseCommand.cc
  583. * src/InitiateConnectionCommand.cc
  584. * src/InitiateConnectionCommandFactory.cc
  585. * src/InitiatorMSEHandshakeCommand.cc
  586. * src/InitiatorMSEHandshakeCommand.h
  587. * src/Metalink2RequestGroup.cc
  588. * src/Metalink2RequestGroup.h
  589. * src/MetalinkPostDownloadHandler.cc
  590. * src/MultiUrlRequestInfo.cc
  591. * src/MultiUrlRequestInfo.h
  592. * src/PeerAbstractCommand.cc
  593. * src/PeerInteractionCommand.cc
  594. * src/PeerInteractionCommand.h
  595. * src/PeerReceiveHandshakeCommand.cc
  596. * src/PeerReceiveHandshakeCommand.h
  597. * src/RequestGroup.cc
  598. * src/RequestGroup.h
  599. * src/TrackerWatcherCommand.cc
  600. * src/TrackerWatcherCommand.h
  601. * src/XmlRpcMethod.cc
  602. * src/XmlRpcMethod.h
  603. * src/XmlRpcMethodImpl.cc
  604. * src/download_helper.cc
  605. * src/download_helper.h
  606. * src/main.cc
  607. * test/BtDependencyTest.cc
  608. * test/BtPostDownloadHandlerTest.cc
  609. * test/DefaultBtMessageDispatcherTest.cc
  610. * test/DownloadHandlerFactoryTest.cc
  611. * test/DownloadHelperTest.cc
  612. * test/Metalink2RequestGroupTest.cc
  613. * test/MetalinkPostDownloadHandlerTest.cc
  614. * test/RequestGroupManTest.cc
  615. * test/RequestGroupTest.cc
  616. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  617. Added tellActiveStatus xml-rpc command which reports download
  618. status of active downloads.
  619. * src/XmlRpcMethodFactory.cc
  620. * src/XmlRpcMethodImpl.cc
  621. * src/XmlRpcMethodImpl.h
  622. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  623. Added addTorrentFile xml-rpc command which receives uploaded
  624. torrent file and add download for it.
  625. * src/RequestGroupMan.cc
  626. * src/XmlRpcMethodFactory.cc
  627. * src/XmlRpcMethodImpl.cc
  628. * src/XmlRpcMethodImpl.h
  629. * src/download_helper.cc
  630. * src/download_helper.h
  631. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  632. Added remove xml-rpc command which removes specified download.
  633. There is a known issue: the removed unfinished downloads are
  634. reported ERR when aria2 exits. They should be reported as INPR.
  635. * src/RequestGroupMan.cc
  636. * src/RequestGroupMan.h
  637. * src/XmlRpcMethodFactory.cc
  638. * src/XmlRpcMethodImpl.cc
  639. * src/XmlRpcMethodImpl.h
  640. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  641. If --enable-http-server is enabled, don't stop aria2 when all
  642. download finished and don't quit when no files to download at
  643. start up.
  644. * src/RequestGroupMan.cc
  645. * src/main.cc
  646. * src/option_processing.cc
  647. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  648. Added missing AM_CONDITIONAL
  649. * configure.ac
  650. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  651. Added xml-rpc functionality. Currently only addURI commad is
  652. supported. To enable xml-rpc, run aria2 with
  653. --enable-http-server. This option name is temporal and will be
  654. changed. The feature that reports download progress in html format
  655. is temporarily disabled.
  656. * src/HttpServer.cc
  657. * src/HttpServer.h
  658. * src/HttpServerBodyCommand.cc
  659. * src/HttpServerBodyCommand.h
  660. * src/HttpServerCommand.cc
  661. * src/HttpServerResponseCommand.cc
  662. * src/Makefile.am
  663. * src/OptionParser.cc
  664. * src/OptionParser.h
  665. * src/RequestGroupMan.cc
  666. * src/RequestGroupMan.h
  667. * src/XmlRpcMethod.cc
  668. * src/XmlRpcMethod.h
  669. * src/XmlRpcMethodFactory.cc
  670. * src/XmlRpcMethodFactory.h
  671. * src/XmlRpcMethodImpl.cc
  672. * src/XmlRpcMethodImpl.h
  673. * src/download_helper.cc
  674. * src/download_helper.h
  675. * test/Makefile.am
  676. * test/XmlRpcMethodTest.cc
  677. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  678. Added xml-rpc request parser. The supported value types are:
  679. i4/int, string, double, struct, array, base64. Currently only
  680. libxml2 version is provided.
  681. * src/Xml2XmlRpcRequestProcessor.cc
  682. * src/Xml2XmlRpcRequestProcessor.h
  683. * src/XmlRpcElements.cc
  684. * src/XmlRpcElements.h
  685. * src/XmlRpcRequest.h
  686. * src/XmlRpcRequestParserController.cc
  687. * src/XmlRpcRequestParserController.h
  688. * src/XmlRpcRequestParserState.h
  689. * src/XmlRpcRequestParserStateImpl.cc
  690. * src/XmlRpcRequestParserStateImpl.h
  691. * src/XmlRpcRequestParserStateMachine.cc
  692. * src/XmlRpcRequestParserStateMachine.h
  693. * src/XmlRpcRequestProcessor.h
  694. * test/XmlRpcRequestParserControllerTest.cc
  695. * test/XmlRpcRequestProcessorTest.cc
  696. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  697. * Release 1.3.3
  698. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  699. Fixed compile error since r1202.
  700. * src/ExpatMetalinkProcessor.cc
  701. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  702. Updated Ukrainian, Russian and Simplified Chinese
  703. translations. Thanks to all translators.
  704. * po/ru.po
  705. * po/uk.po
  706. * po/zh_CN.po
  707. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  708. Pass reference of Option object instead of pointer.
  709. * src/download_helper.cc
  710. * src/download_helper.h
  711. * src/main.cc
  712. * test/DownloadHelperTest.cc
  713. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  714. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  715. from option directly. Instead, get them from RequestGroup.
  716. * src/ActivePeerConnectionCommand.cc
  717. * src/ActivePeerConnectionCommand.h
  718. * src/PeerReceiveHandshakeCommand.cc
  719. * src/RequestGroup.h
  720. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  721. Removed unused uploadLimitCheck and uploadLimit from
  722. PeerAbstractCommand. Removed unused maxDownloadLimit from
  723. PeerInteractionCommand.
  724. * src/PeerAbstractCommand.cc
  725. * src/PeerAbstractCommand.h
  726. * src/PeerInteractionCommand.cc
  727. * src/PeerInteractionCommand.h
  728. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  729. Fixed broken file renaming feature since r1202.
  730. * src/FtpNegotiationCommand.cc
  731. * src/FtpNegotiationCommand.h
  732. * src/HttpResponseCommand.cc
  733. * src/RequestGroup.cc
  734. * src/RequestGroup.h
  735. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  736. Removed unused debug log
  737. * src/SocketCore.cc
  738. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  739. Generated configure and Makefile.in using autoconf 2.63 and
  740. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  741. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  742. * configure.ac
  743. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  744. Moved piece statistics stuff to new PieceStatMan class.
  745. Refactored PieceSelector interface.
  746. * src/DefaultPieceStorage.cc
  747. * src/DefaultPieceStorage.h
  748. * src/LongestSequencePieceSelector.cc
  749. * src/LongestSequencePieceSelector.h
  750. * src/Makefile.am
  751. * src/PieceSelector.h
  752. * src/PieceStatMan.cc
  753. * src/PieceStatMan.h
  754. * src/RarestPieceSelector.cc
  755. * src/RarestPieceSelector.h
  756. * src/RequestGroup.cc
  757. * test/DefaultPieceStorageTest.cc
  758. * test/InOrderPieceSelector.h
  759. * test/Makefile.am
  760. * test/PieceStatManTest.cc
  761. * test/RarestPieceSelectorTest.cc
  762. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  763. Added static member _protocolFamily to SocketCore. By default,
  764. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  765. address. Sometime SocketCore::bind() and
  766. SocketCore::establishConnection() use difference protocl family
  767. and latter cannot connect to former. To avoid this situation, we
  768. limit protocol family to AF_INET for unit tests.
  769. * src/SocketCore.cc
  770. * src/SocketCore.h
  771. * test/AllTest.cc
  772. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  773. Avoid std::bad_alloc for negative bencode string length.
  774. * src/bencode.cc
  775. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  776. Supported segmented downloading with chunked transfer encoding and
  777. content-length.
  778. * src/DownloadCommand.cc
  779. * src/HttpResponseCommand.cc
  780. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  781. Bump up version number to 1.3.3
  782. * configure.ac
  783. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  784. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  785. from 4096 to 65536 (for insanely large ftp login banners)
  786. * src/FtpConnection.h
  787. * test/FtpConnectionTest.cc
  788. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  789. In DefaultBtContext::getActualBasePath(), return first
  790. FileEntry::getPath() for single file torrent.
  791. * src/DefaultBtContext.cc
  792. * test/DefaultBtContextTest.cc
  793. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  794. Removed directIOAllowed() from BinaryStream, DiskWriter,
  795. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  796. Removed _directIOAllowed member from DiskWriter.
  797. * src/AbstractDiskWriter.cc
  798. * src/AbstractDiskWriter.h
  799. * src/AbstractSingleDiskAdaptor.cc
  800. * src/AbstractSingleDiskAdaptor.h
  801. * src/BinaryStream.h
  802. * src/ByteArrayDiskWriter.h
  803. * src/DefaultPieceStorage.cc
  804. * src/DiskWriter.h
  805. * src/MultiDiskAdaptor.cc
  806. * src/MultiDiskAdaptor.h
  807. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  808. Now the constructor of AbstractDiskWriter takes filename as an
  809. argument and filename argument is removed from openFile(),
  810. initAndOpenFile(), openExistingFile() interface. storeDir member
  811. and its accessor functions are removed from DiskAdaptor because it
  812. is not used anymore. size() member function of DefaultDiskWriter,
  813. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  814. opening file.
  815. * src/AbstractDiskWriter.cc
  816. * src/AbstractDiskWriter.h
  817. * src/AbstractSingleDiskAdaptor.cc
  818. * src/AbstractSingleDiskAdaptor.h
  819. * src/ByteArrayDiskWriter.cc
  820. * src/ByteArrayDiskWriter.h
  821. * src/ByteArrayDiskWriterFactory.cc
  822. * src/ByteArrayDiskWriterFactory.h
  823. * src/DefaultDiskWriter.cc
  824. * src/DefaultDiskWriter.h
  825. * src/DefaultDiskWriterFactory.cc
  826. * src/DefaultDiskWriterFactory.h
  827. * src/DefaultPieceStorage.cc
  828. * src/DirectDiskAdaptor.cc
  829. * src/DirectDiskAdaptor.h
  830. * src/DiskAdaptor.h
  831. * src/DiskWriter.h
  832. * src/DiskWriterFactory.h
  833. * src/MessageDigestHelper.cc
  834. * src/MultiDiskAdaptor.cc
  835. * src/RequestGroup.cc
  836. * src/UnknownLengthPieceStorage.cc
  837. * src/Util.cc
  838. * test/DefaultDiskWriterTest.cc
  839. * test/DirectDiskAdaptorTest.cc
  840. * test/FallocFileAllocationIteratorTest.cc
  841. * test/MessageDigestHelperTest.cc
  842. * test/MetalinkProcessorTest.cc
  843. * test/MultiDiskAdaptorTest.cc
  844. * test/MultiFileAllocationIteratorTest.cc
  845. * test/SingleFileAllocationIteratorTest.cc
  846. * test/UtilTest.cc
  847. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  848. Fixed the bug that aria2 aborts when --select-file is used. This
  849. bug was introduced in r1199.
  850. * src/MultiDiskAdaptor.cc
  851. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  852. Code cleanup
  853. * test/MockPieceStorage.cc
  854. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  855. Fixed the bug that read-only file with wrong file size will cause
  856. error because it cannot be truncated to the correct size. Now if
  857. file size is different than the expected one, re-open file in
  858. writable mode.
  859. * src/AbstractSingleDiskAdaptor.cc
  860. * src/AbstractSingleDiskAdaptor.h
  861. * src/BtCheckIntegrityEntry.cc
  862. * src/DiskAdaptor.h
  863. * src/MultiDiskAdaptor.h
  864. * src/RequestGroup.cc
  865. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  866. Fixed the bug that with --check-integrity option aria2 reports
  867. downloaded file size is 0 even if some parts of file is correctly
  868. downloaded. This bug is reproducible for the download that a file
  869. includes last piece is missing. This bug doesn't reveal for
  870. single-torrent with file allocation on.
  871. * src/IteratableChecksumValidator.cc
  872. * test/IteratableChecksumValidatorTest.cc
  873. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  874. Avoid circular reference between RequestGroup and AdaptiveURISelector
  875. * src/RequestGroupMan.cc
  876. * src/AdaptiveURISelector.cc
  877. * src/AdaptiveURISelector.h
  878. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  879. * Release 1.3.2
  880. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  881. Updated README
  882. * README
  883. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  884. Updated Ukrainian translations. Thanks to Alexander10.
  885. * po/uk.po
  886. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  887. Code cleanup
  888. * src/MetalinkParserStateMachine.cc
  889. * src/MetalinkParserStateMachine.h
  890. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  891. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  892. and expat simultaneously, MetalinkProcessor is now not base class
  893. and it is directly implemented in XML2SAXMetalinkProcessor and
  894. ExpatMetalinkProcessor.
  895. * src/ExpatMetalinkProcessor.cc
  896. * src/ExpatMetalinkProcessor.h
  897. * src/Makefile.am
  898. * src/MetalinkHelper.cc
  899. * src/MetalinkProcessor.h
  900. * src/MetalinkProcessorFactory.cc: Removed.
  901. * src/MetalinkProcessorFactory.h: Removed
  902. * src/XML2SAXMetalinkProcessor.cc
  903. * src/XML2SAXMetalinkProcessor.h
  904. * test/MetalinkProcessorTest.cc
  905. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  906. Bump up version number to 1.3.2
  907. * configure.ac
  908. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  909. Added missing file.
  910. * test/Makefile.am
  911. * test/url-list-singleFileEndsWithSlash.torrent
  912. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  913. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  914. request.
  915. * src/AnnounceList.cc
  916. * src/AnnounceList.h
  917. * src/BDE.cc: Added
  918. * src/BDE.h: Added
  919. * src/DHTAbstractMessage.cc
  920. * src/DHTAbstractMessage.h
  921. * src/DHTAnnouncePeerMessage.cc
  922. * src/DHTAnnouncePeerMessage.h
  923. * src/DHTAnnouncePeerReplyMessage.cc
  924. * src/DHTAnnouncePeerReplyMessage.h
  925. * src/DHTFindNodeMessage.cc
  926. * src/DHTFindNodeMessage.h
  927. * src/DHTFindNodeReplyMessage.cc
  928. * src/DHTFindNodeReplyMessage.h
  929. * src/DHTGetPeersMessage.cc
  930. * src/DHTGetPeersMessage.h
  931. * src/DHTGetPeersReplyMessage.cc
  932. * src/DHTGetPeersReplyMessage.h
  933. * src/DHTMessageFactory.h
  934. * src/DHTMessageFactoryImpl.cc
  935. * src/DHTMessageFactoryImpl.h
  936. * src/DHTMessageReceiver.cc
  937. * src/DHTMessageTracker.cc
  938. * src/DHTMessageTracker.h
  939. * src/DHTPingMessage.cc
  940. * src/DHTPingMessage.h
  941. * src/DHTPingReplyMessage.cc
  942. * src/DHTPingReplyMessage.h
  943. * src/DHTQueryMessage.cc
  944. * src/DHTQueryMessage.h
  945. * src/DHTResponseMessage.cc
  946. * src/DHTResponseMessage.h
  947. * src/DefaultBtAnnounce.cc
  948. * src/DefaultBtContext.cc
  949. * src/DefaultBtContext.h
  950. * src/HandshakeExtensionMessage.cc
  951. * src/Makefile.am
  952. * src/PeerListProcessor.h
  953. * src/UTPexExtensionMessage.cc
  954. * src/bencode.cc
  955. * src/bencode.h
  956. * test/AnnounceListTest.cc
  957. * test/BDETest.cc: Added
  958. * test/BencodeTest.cc
  959. * test/DHTAnnouncePeerMessageTest.cc
  960. * test/DHTAnnouncePeerReplyMessageTest.cc
  961. * test/DHTFindNodeMessageTest.cc
  962. * test/DHTFindNodeReplyMessageTest.cc
  963. * test/DHTGetPeersMessageTest.cc
  964. * test/DHTGetPeersReplyMessageTest.cc
  965. * test/DHTMessageFactoryImplTest.cc
  966. * test/DHTMessageTrackerTest.cc
  967. * test/DHTPingMessageTest.cc
  968. * test/DHTPingReplyMessageTest.cc
  969. * test/Makefile.am
  970. * test/MockDHTMessageFactory.h
  971. * test/PeerListProcessorTest.cc
  972. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  973. Use url-list (web-seeding) only for single-file torrent. This is
  974. basically the same behavior with Metalink file with torrent and
  975. URIs.
  976. * src/RequestGroup.cc
  977. * src/DefaultBtContext.cc
  978. * test/DefaultBtContextTest.cc
  979. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  980. Rewritten expr
  981. * src/array_fun.h
  982. * test/array_funTest.cc
  983. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  984. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  985. * src/DefaultBtMessageDispatcher.cc
  986. * src/a2algo.h
  987. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  988. Removed ExtendedMessagingAware. Instead of using inheritance,
  989. added ExtensionMessageRegistry and it is passed to
  990. DefaultExtensionMessageFactory.
  991. * src/DefaultBtInteractive.cc
  992. * src/DefaultBtInteractive.h
  993. * src/DefaultExtensionMessageFactory.cc
  994. * src/DefaultExtensionMessageFactory.h
  995. * src/ExtendedMessagingAware.h: Removed.
  996. * src/ExtensionMessageFactory.h
  997. * src/ExtensionMessageRegistry.h: Added.
  998. * src/Makefile.am
  999. * src/PeerInteractionCommand.cc
  1000. * test/DefaultExtensionMessageFactoryTest.cc
  1001. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1002. Fixed typo in log messages
  1003. * src/MSEHandshake.cc
  1004. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1005. Fixed the bug that prevents torrent download from finishing. The
  1006. bug doesn't reveal for all torrents. The torrents affected this
  1007. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  1008. of pieces.
  1009. * src/bitfield.h
  1010. * test/bitfieldTest.cc
  1011. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1012. Code cleanup
  1013. * src/PeerListProcessor.h
  1014. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1015. Removed RequestGroupAware
  1016. * src/AbstractCommand.cc
  1017. * src/AbstractCommand.h
  1018. * src/ActivePeerConnectionCommand.cc
  1019. * src/ActivePeerConnectionCommand.h
  1020. * src/DHTGetPeersCommand.cc
  1021. * src/DHTGetPeersCommand.h
  1022. * src/InitiatorMSEHandshakeCommand.cc
  1023. * src/InitiatorMSEHandshakeCommand.h
  1024. * src/Makefile.am
  1025. * src/PeerInitiateConnectionCommand.cc
  1026. * src/PeerInitiateConnectionCommand.h
  1027. * src/PeerInteractionCommand.cc
  1028. * src/PeerInteractionCommand.h
  1029. * src/RealtimeCommand.cc
  1030. * src/RealtimeCommand.h
  1031. * src/RequestGroupAware.cc: Removed
  1032. * src/RequestGroupAware.h: Removed
  1033. * src/SeedCheckCommand.cc
  1034. * src/SeedCheckCommand.h
  1035. * src/SleepCommand.cc
  1036. * src/TrackerWatcherCommand.cc
  1037. * src/TrackerWatcherCommand.h
  1038. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1039. Rewritten PeerListProcessor
  1040. * src/PeerListProcessor.h
  1041. * src/CompactPeerListProcessor.h: Removed
  1042. * src/CompactPeerListProcessor.cc: Removed
  1043. * src/DelegatingPeerListProcessor.cc: Removed.
  1044. * src/DefaultBtAnnounce.cc
  1045. * src/Makefile.am
  1046. * src/UTPexExtensionMessage.cc
  1047. * src/DefaultPeerListProcessor.h: Removed.
  1048. * src/DefaultPeerListProcessor.cc: Removed.
  1049. * src/DelegatingPeerListProcessor.h: Removed.
  1050. * test/Makefile.am
  1051. * test/PeerListProcessorTest.cc
  1052. * test/DefaultPeerListProcessorTest.cc: Removed.
  1053. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1054. Rewritten RequestGroupMan::calculateStat()
  1055. * src/RequestGroupMan.cc
  1056. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1057. Removed unnecessary virtual destructor for Request class.
  1058. * src/Request.cc
  1059. * src/Request.h
  1060. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1061. Avoid dynamic_pointer_cast.
  1062. * src/DHTGetPeersCommand.cc
  1063. * src/DHTGetPeersCommand.h
  1064. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1065. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  1066. BtEvent.
  1067. * src/AbstractBtEventListener.h: Removed.
  1068. * src/AbstractBtMessage.cc
  1069. * src/AbstractBtMessage.h
  1070. * src/BtAbortOutstandingRequestEvent.h
  1071. * src/BtCancelSendingPieceEvent.h
  1072. * src/BtChokedEvent.h: Removed.
  1073. * src/BtChokingEvent.h
  1074. * src/BtEvent.h: Removed
  1075. * src/BtEventListener.h: Removed.
  1076. * src/BtMessage.h
  1077. * src/BtPieceMessage.cc
  1078. * src/BtPieceMessage.h
  1079. * src/BtRequestMessage.cc
  1080. * src/BtRequestMessage.h
  1081. * src/DefaultBtMessageDispatcher.cc
  1082. * src/Makefile.am
  1083. * src/a2functional.h
  1084. * test/BtPieceMessageTest.cc
  1085. * test/BtRequestMessageTest.cc
  1086. * test/DefaultBtMessageDispatcherTest.cc
  1087. * test/MockBtMessage.h
  1088. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1089. Code cleanup
  1090. * src/RequestGroupMan.cc
  1091. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1092. Code cleanup
  1093. * src/DownloadCommand.cc
  1094. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1095. Fixed segmentation fault when GZipDecoder::decode() returns 0
  1096. byte.
  1097. * src/DownloadCommand.cc
  1098. * src/bitfield.h
  1099. * test/bitfieldTest.cc
  1100. Fixed the bug that causes infinite loop if broken web server
  1101. returns chunked response without last "0" chunk-size marker and
  1102. closes connection.
  1103. * src/DownloadCommand.cc
  1104. Instantiate properly configured HttpDownloadCommand for
  1105. non-resumable downlaods.
  1106. * src/HttpResponseCommand.cc
  1107. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1108. Rewritten array operation functions.
  1109. * src/BitfieldMan.cc
  1110. * src/array_fun.h
  1111. * test/array_funTest.cc
  1112. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1113. Removed unused variable 'query'
  1114. * src/Request.cc
  1115. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1116. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  1117. accidentally set to false in r1162.
  1118. * configure.ac
  1119. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1120. Code cleanup
  1121. * src/BNode.cc
  1122. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1123. Increase prefixLength for the bucket which doesn't own local node
  1124. ID when splitting bucket.
  1125. * src/DHTBucket.cc
  1126. * test/DHTBucketTest.cc
  1127. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1128. * Release 1.3.1
  1129. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1130. Bump up version number to 1.3.1
  1131. * configure.ac
  1132. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1133. Removed unused variable checkPoint. Also removed include directive
  1134. for TimeA2.h.
  1135. * src/SeedCheckCommand.h
  1136. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1137. Fixed the bug that upload limit exceeds the value specified in
  1138. --seed-ratio option depending on the timing of the execution of
  1139. SeedCheckCommand.
  1140. * src/SeedCheckCommand.cc
  1141. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1142. Fixed the bug that removed peer's session upload/download length
  1143. are counted twice in _cachedTransferStat before it is
  1144. re-calculated. This affected the calculation of shara ratio,
  1145. resulting aria2 wrongly determines that specified share ratio is
  1146. reached. Also fixed the typo in calculateStatFor function name.
  1147. * src/BtSetup.cc
  1148. * src/DefaultPeerStorage.cc
  1149. * src/ShareRatioSeedCriteria.h
  1150. * test/ShareRatioSeedCriteriaTest.cc
  1151. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1152. * Release 1.3.0
  1153. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1154. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  1155. Nynorsk translations. Thanks to all translators.
  1156. * po/es.po
  1157. * po/ja.po
  1158. * po/nn.po
  1159. * po/ru.po
  1160. * po/uk.po
  1161. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1162. Rewritten isInRange()
  1163. * src/DHTBucket.cc
  1164. * test/DHTBucketTest.cc
  1165. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1166. Fixed typo
  1167. * doc/aria2c.1.txt
  1168. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1169. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  1170. malloc/realloc is not used.
  1171. * src/configure.ac
  1172. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1173. BitfieldMan::getMissingIndexes family functions now takes unsigned
  1174. char* bitfield instead of stl container for efficiency.
  1175. PieceSelector::select now takes this
  1176. bitfield. RarestPieceSelector::select now also performs
  1177. efficiently for this change. bitfield namespace is introduced and
  1178. it has several helper functions to handle basic bitfield
  1179. operations such as test, count set bits, etc.
  1180. * src/BitfieldMan.cc
  1181. * src/BitfieldMan.h
  1182. * src/DefaultBtRequestFactory.cc
  1183. * src/DefaultPieceStorage.cc
  1184. * src/DefaultPieceStorage.h
  1185. * src/LongestSequencePieceSelector.cc
  1186. * src/LongestSequencePieceSelector.h
  1187. * src/Makefile.am
  1188. * src/Piece.cc
  1189. * src/Piece.h
  1190. * src/PieceSelector.h
  1191. * src/RarestPieceSelector.cc
  1192. * src/RarestPieceSelector.h
  1193. * src/Util.cc
  1194. * src/Util.h
  1195. * src/bitfield.h
  1196. * test/BitfieldManTest.cc
  1197. * test/LongestSequencePieceSelectorTest.cc
  1198. * test/Makefile.am
  1199. * test/RarestPieceSelectorTest.cc
  1200. * test/UtilTest.cc
  1201. * test/bitfieldTest.cc
  1202. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1203. Made accepted socket non-block.
  1204. * src/FtpNegotiationCommand.cc
  1205. * src/HttpListenCommand.cc
  1206. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1207. Guarded #ifdef HAVE_POSIX_FALLOCATE
  1208. * src/AbstractSingleDiskAdaptor.cc
  1209. * src/DefaultPieceStorage.cc
  1210. * src/DiskAdaptor.h
  1211. * src/DiskAdaptor.h
  1212. * src/MultiFileAllocationIterator.cc
  1213. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1214. Run
  1215. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  1216. in every 1 sec. The timeout of RequestSlot is 60s by default and
  1217. it doesn't need to be called every time when
  1218. DefaultBtInteractive::doInteractionProcessing() is called.
  1219. * src/DefaultBtInteractive.cc
  1220. * src/DefaultBtInteractive.h
  1221. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1222. Documented 'falloc' in man page.
  1223. * doc/aria2c.1.txt
  1224. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1225. Updated doc
  1226. * src/usage_text.h
  1227. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1228. Added 'falloc' parameter for --file-allocation option. 'falloc'
  1229. allocation mode uses posix_fallocate() system call to allocate
  1230. file on disk. If you are using newer file systems such as ext4
  1231. (with extents support), btrfs or xfs, 'falloc' is your best
  1232. choice. It allocates large(few GiB) files almost instantly. Don't
  1233. use 'falloc' with legacy file systems such as ext3 because it
  1234. takes almost same time as 'prealloc' and it blocks aria2 entirely
  1235. until allocation finishes. 'falloc' may not be available if your
  1236. system doesn't have posix_fallocate() system call.
  1237. * configure.ac
  1238. * src/AbstractDiskWriter.cc
  1239. * src/AbstractDiskWriter.h
  1240. * src/AbstractSingleDiskAdaptor.cc
  1241. * src/BinaryStream.h
  1242. * src/BtCheckIntegrityEntry.cc
  1243. * src/ByteArrayDiskWriter.h
  1244. * src/CheckIntegrityEntry.cc
  1245. * src/CheckIntegrityEntry.h
  1246. * src/DefaultPieceStorage.cc
  1247. * src/DiskAdaptor.cc
  1248. * src/DiskAdaptor.h
  1249. * src/DiskWriter.h
  1250. * src/FallocFileAllocationIterator.cc
  1251. * src/FallocFileAllocationIterator.h
  1252. * src/FileAllocationEntry.cc
  1253. * src/FileAllocationEntry.h
  1254. * src/Makefile.am
  1255. * src/MultiFileAllocationIterator.cc
  1256. * src/MultiFileAllocationIterator.h
  1257. * src/OptionHandlerFactory.cc
  1258. * src/RequestGroup.cc
  1259. * src/StreamCheckIntegrityEntry.cc
  1260. * src/prefs.cc
  1261. * src/prefs.h
  1262. * src/usage_text.h
  1263. * test/FallocFileAllocationIteratorTest.cc
  1264. * test/Makefile.am
  1265. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1266. Removed duplicate enableDirectIO() call.
  1267. * src/MultiFileAllocationIterator.cc
  1268. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1269. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  1270. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  1271. cost of std::rotate().
  1272. * src/RarestPieceSelector.cc
  1273. * src/RarestPieceSelector.h
  1274. * test/RarestPieceSelectorTest.cc
  1275. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1276. Updated usage doc for --bt-tracker-interval option.
  1277. * src/usage_text.h
  1278. * doc/aria2c.1.txt
  1279. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1280. Documented --bt-tracker-interval option in man page.
  1281. * doc/aria2c.1.txt
  1282. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1283. Added an option to specify the interval between tracker requests.
  1284. If non-zero value is specified, aria2 uses it and ignores the
  1285. interval value in the response of tracker. If zero is specified,
  1286. aria2 determines the inteval value based on the tarcker response
  1287. and download progress.
  1288. * src/DefaultBtAnnounce.cc
  1289. * src/DefaultBtAnnounce.h
  1290. * src/OptionHandlerFactory.cc
  1291. * src/RequestGroup.cc
  1292. * src/prefs.cc
  1293. * src/prefs.h
  1294. * src/usage_text.h
  1295. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1296. Added operator+=, operator-=, operator-
  1297. * src/TransferStat.cc
  1298. * src/TransferStat.h
  1299. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1300. Refactored RarestPieceSelector to reduce CPU load, especially for
  1301. addPieceStats.
  1302. * src/RarestPieceSelector.cc
  1303. * src/RarestPieceSelector.h
  1304. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1305. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  1306. getAllMissingBlockIndexes to reduce a call to
  1307. array_function_base::operator[].
  1308. * src/BitfieldMan.cc
  1309. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1310. Cached TransferStat/download speed to avoid to sum them up in each
  1311. call.
  1312. * src/DefaultPeerStorage.cc
  1313. * src/DefaultPeerStorage.h
  1314. * src/SegmentMan.cc
  1315. * src/SegmentMan.h
  1316. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1317. Typedefed cuid_t as int32_t in Command.h
  1318. * src/CUIDCounter.h
  1319. * src/Command.cc
  1320. * src/Command.h
  1321. * src/DownloadEngine.cc
  1322. * src/DownloadEngine.h
  1323. * src/PeerStat.h
  1324. * src/SegmentMan.cc
  1325. * src/SegmentMan.h
  1326. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1327. Reduced the number of calls to PeerStorage::calculateStat() and
  1328. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  1329. transfer rate.
  1330. * src/DefaultBtInteractive.cc
  1331. * src/DefaultBtMessageDispatcher.cc
  1332. * src/DefaultPeerStorage.cc
  1333. * src/DefaultPeerStorage.h
  1334. * src/DownloadCommand.cc
  1335. * src/DownloadEngine.cc
  1336. * src/PeerStorage.h
  1337. * src/SegmentMan.cc
  1338. * src/SegmentMan.h
  1339. * test/MockPeerStorage.h
  1340. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1341. Prepended _dir+"/" after joining path elements in torrent file.
  1342. * src/DefaultBtContext.cc
  1343. * test/DefaultBtContextTest.cc
  1344. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1345. Added missing IndexBtMessageValidator.h
  1346. * src/Makefile.am
  1347. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1348. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  1349. Chinese translations. Thank you for contributing our project.
  1350. * po/id.po
  1351. * po/it.po
  1352. * po/ru.po
  1353. * po/uk.po
  1354. * po/zh_CN.po
  1355. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1356. Updated README
  1357. * README
  1358. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1359. Bump up version number to 1.3.0
  1360. * configure.ac
  1361. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1362. Updated doc
  1363. * src/DefaultBtContext.h
  1364. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1365. Slice/joinPath for name of single torrent.
  1366. * src/DefaultBtContext.cc
  1367. * test/DefaultBtContextTest.cc
  1368. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1369. Updated man page: Documented --dry-run and --index-out
  1370. options. Changed the default value of --uri-selector and
  1371. --http-auth-challenge options. Removed --direct-file-mapping
  1372. option. Added example for --index-out
  1373. * doc/aria2c.1.txt
  1374. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1375. Updated TEXT_DRY_RUN
  1376. * src/usage_text.h
  1377. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1378. Changed the default value of --uri-selector option from 'inorder'
  1379. to 'feedback'
  1380. * src/OptionHandlerFactory.cc
  1381. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1382. Included current URI in exception message.
  1383. * src/AbstractCommand.cc
  1384. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1385. Renamed ServerStatURISelector as FeedbackURISelector.
  1386. * src/FeedbackURISelector.cc
  1387. * src/FeedbackURISelector.h
  1388. * src/Makefile.am
  1389. * src/RequestGroupMan.cc
  1390. * src/ServerStatURISelector.cc
  1391. * src/ServerStatURISelector.h
  1392. * test/FeedbackURISelectorTest.cc
  1393. * test/Makefile.am
  1394. * test/ServerStatURISelectorTest.cc
  1395. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1396. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  1397. all URIs are tested and their timeout is not reached.
  1398. * src/AdaptiveURISelector.cc
  1399. * src/AdaptiveURISelector.h
  1400. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1401. Changed the default value of --http-auth-challenge option to false.
  1402. * src/OptionHandlerFactory.cc
  1403. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1404. Reuse URIs when all unused URIs run out.
  1405. * src/OptionHandlerFactory.cc
  1406. * src/RequestGroup.cc
  1407. * src/prefs.cc
  1408. * src/prefs.h
  1409. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1410. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  1411. and BtRejectMessage are derived from RangeBtMessage class.
  1412. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  1413. derived from IndexBtMessage class. BtChokeMessage,
  1414. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  1415. BtNotInterestedMessage and BtUnchokeMessage are derived from
  1416. ZeroBtMessage class.
  1417. * src/AbstractBtMessage.cc
  1418. * src/AbstractBtMessage.h
  1419. * src/BtAllowedFastMessage.cc
  1420. * src/BtAllowedFastMessage.h
  1421. * src/BtAllowedFastMessageValidator.h: Removed
  1422. * src/BtBitfieldMessage.cc
  1423. * src/BtBitfieldMessage.h
  1424. * src/BtCancelMessage.cc
  1425. * src/BtCancelMessage.h
  1426. * src/BtCancelMessageValidator.h: Removed
  1427. * src/BtChokeMessage.cc
  1428. * src/BtChokeMessage.h
  1429. * src/BtExtendedMessage.cc
  1430. * src/BtExtendedMessage.h
  1431. * src/BtHandshakeMessage.cc
  1432. * src/BtHandshakeMessage.h
  1433. * src/BtHaveAllMessage.cc
  1434. * src/BtHaveAllMessage.h
  1435. * src/BtHaveMessage.cc
  1436. * src/BtHaveMessage.h
  1437. * src/BtHaveMessageValidator.h: Removed
  1438. * src/BtHaveNoneMessage.cc
  1439. * src/BtHaveNoneMessage.h
  1440. * src/BtInterestedMessage.cc
  1441. * src/BtInterestedMessage.h
  1442. * src/BtKeepAliveMessage.cc
  1443. * src/BtKeepAliveMessage.h
  1444. * src/BtNotInterestedMessage.cc
  1445. * src/BtNotInterestedMessage.h
  1446. * src/BtPieceMessage.cc
  1447. * src/BtPieceMessage.h
  1448. * src/BtPortMessage.cc
  1449. * src/BtPortMessage.h
  1450. * src/BtRejectMessage.cc
  1451. * src/BtRejectMessage.h
  1452. * src/BtRejectMessageValidator.h: Removed
  1453. * src/BtRequestMessage.cc
  1454. * src/BtRequestMessage.h
  1455. * src/BtRequestMessageValidator.h: Removed
  1456. * src/BtSuggestPieceMessage.cc
  1457. * src/BtSuggestPieceMessage.h
  1458. * src/BtSuggestPieceMessageValidator.h: Removed
  1459. * src/BtUnchokeMessage.cc
  1460. * src/BtUnchokeMessage.h
  1461. * src/DefaultBtMessageFactory.cc
  1462. * src/IndexBtMessage.cc
  1463. * src/IndexBtMessage.h
  1464. * src/IndexBtMessageValidator.h
  1465. * src/Makefile.am
  1466. * src/PeerMessageUtil.cc
  1467. * src/PeerMessageUtil.h
  1468. * src/RangeBtMessage.cc
  1469. * src/RangeBtMessage.h
  1470. * src/RangeBtMessageValidator.h
  1471. * src/SimpleBtMessage.cc
  1472. * src/SimpleBtMessage.h
  1473. * src/ZeroBtMessage.cc
  1474. * src/ZeroBtMessage.h
  1475. * test/BtRequestMessageTest.cc
  1476. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1477. Reverted usage_text.h to r1093 to avoid to lose translated
  1478. messages.
  1479. * src/usage_text.h
  1480. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1481. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  1482. declared as non-const previously is now const and defined in class
  1483. definition.
  1484. * src/AbstractBtMessage.cc
  1485. * src/AbstractBtMessage.h
  1486. * src/BtAllowedFastMessage.cc
  1487. * src/BtAllowedFastMessage.h
  1488. * src/BtBitfieldMessage.h
  1489. * src/BtCancelMessage.cc
  1490. * src/BtCancelMessage.h
  1491. * src/BtChokeMessage.cc
  1492. * src/BtChokeMessage.h
  1493. * src/BtExtendedMessage.cc
  1494. * src/BtExtendedMessage.h
  1495. * src/BtHandshakeMessage.cc
  1496. * src/BtHandshakeMessage.h
  1497. * src/BtHaveAllMessage.cc
  1498. * src/BtHaveAllMessage.h
  1499. * src/BtHaveMessage.cc
  1500. * src/BtHaveMessage.h
  1501. * src/BtHaveNoneMessage.cc
  1502. * src/BtHaveNoneMessage.h
  1503. * src/BtInterestedMessage.cc
  1504. * src/BtInterestedMessage.h
  1505. * src/BtKeepAliveMessage.cc
  1506. * src/BtKeepAliveMessage.h
  1507. * src/BtMessage.h
  1508. * src/BtNotInterestedMessage.cc
  1509. * src/BtNotInterestedMessage.h
  1510. * src/BtPieceMessage.h
  1511. * src/BtPortMessage.cc
  1512. * src/BtPortMessage.h
  1513. * src/BtRejectMessage.cc
  1514. * src/BtRejectMessage.h
  1515. * src/BtRequestMessage.cc
  1516. * src/BtRequestMessage.h
  1517. * src/BtSuggestPieceMessage.cc
  1518. * src/BtSuggestPieceMessage.h
  1519. * src/BtUnchokeMessage.cc
  1520. * src/BtUnchokeMessage.h
  1521. * src/SimpleBtMessage.cc
  1522. * src/SimpleBtMessage.h
  1523. * test/MockBtMessage.h
  1524. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1525. Use FileEntry::exists()
  1526. * src/MultiDiskAdaptor.cc
  1527. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1528. Added exists()
  1529. * src/FileEntry.cc
  1530. * src/FileEntry.h
  1531. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1532. Added missing prefix dir.
  1533. * src/download_helper.cc
  1534. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1535. Removed --direct-file-mapping option and CopyDiskAdaptor.
  1536. * src/CopyDiskAdaptor.cc: Removed
  1537. * src/CopyDiskAdaptor.h: Removed
  1538. * src/DefaultPieceStorage.cc
  1539. * src/Makefile.am
  1540. * src/OptionHandlerFactory.cc
  1541. * src/prefs.cc
  1542. * src/prefs.h
  1543. * src/usage_text.h
  1544. * test/CopyDiskAdaptorTest.cc: Removed
  1545. * test/Makefile.am
  1546. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1547. Rewritten isSameFileBeingDownloaded()
  1548. * src/RequestGroupMan.cc
  1549. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1550. Removed getName() from DownloadContext. getName() is declared in
  1551. BtContext.
  1552. * src/BtContext.h
  1553. * src/DownloadContext.h
  1554. * src/SingleFileDownloadContext.cc
  1555. * src/SingleFileDownloadContext.h
  1556. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  1557. in AbstractSingleDiskAdaptor.
  1558. * src/AbstractSingleDiskAdaptor.h
  1559. * src/DiskAdaptor.h
  1560. * src/MultiDiskAdaptor.h
  1561. * src/RequestGroup.cc
  1562. Removed setTopDir() and getTopDir() and getTopDirPath() from
  1563. MultiDiskAdaptor.
  1564. * src/DefaultPieceStorage.cc
  1565. * src/MultiDiskAdaptor.cc
  1566. * src/MultiDiskAdaptor.h
  1567. * test/MultiDiskAdaptorTest.cc
  1568. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1569. FileEntry::getPath() contains store(top level) directory to
  1570. simplify path handling operation. In the previous implementation,
  1571. store directory is concatenated to FileEntry::getPath() in
  1572. DownloadContext.
  1573. * src/BtDependency.cc
  1574. * src/BtPostDownloadHandler.cc
  1575. * src/CopyDiskAdaptor.cc
  1576. * src/DefaultBtContext.cc
  1577. * src/DirectDiskAdaptor.cc
  1578. * src/FileEntry.cc
  1579. * src/FileEntry.h
  1580. * src/FtpNegotiationCommand.cc
  1581. * src/HttpResponse.cc
  1582. * src/HttpResponseCommand.cc
  1583. * src/Metalink2RequestGroup.cc
  1584. * src/MultiDiskAdaptor.cc
  1585. * src/MultiDiskAdaptor.h
  1586. * src/MultiFileAllocationIterator.cc
  1587. * src/RequestGroup.cc
  1588. * src/SingleFileDownloadContext.cc
  1589. * src/SingleFileDownloadContext.h
  1590. * src/download_helper.cc
  1591. * test/BtDependencyTest.cc
  1592. * test/CopyDiskAdaptorTest.cc
  1593. * test/DefaultBtContextTest.cc
  1594. * test/DefaultBtProgressInfoFileTest.cc
  1595. * test/DirectDiskAdaptorTest.cc
  1596. * test/DownloadHelperTest.cc
  1597. * test/FileEntryTest.cc
  1598. * test/MultiDiskAdaptorTest.cc
  1599. * test/MultiFileAllocationIteratorTest.cc
  1600. * test/RequestGroupTest.cc
  1601. * test/SingleFileDownloadContextTest.cc
  1602. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1603. Fixed compiler warning
  1604. * src/download_helper.cc
  1605. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1606. Throw exception if same infohash torrent is now downloading.
  1607. * src/RequestGroup.cc
  1608. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1609. Added --dry-run option. In this mode, aria2 just checks whether
  1610. the remote file is available and doesn't download data. This
  1611. option has effect on HTTP/FTP downloads and BitTorrent downloads
  1612. are canceled in this mode.
  1613. * src/FtpNegotiationCommand.cc
  1614. * src/HttpResponseCommand.cc
  1615. * src/HttpResponseCommand.h
  1616. * src/OptionHandlerFactory.cc
  1617. * src/RequestGroup.cc
  1618. * src/RequestGroupMan.cc
  1619. * src/prefs.cc
  1620. * src/prefs.h
  1621. * src/usage_text.h
  1622. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1623. Fixed compiler waring
  1624. * test/UriListParserTest.cc
  1625. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1626. Parse options in -i list using OptionParser.
  1627. * src/UriListParser.cc
  1628. * src/UriListParser.h
  1629. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1630. Don't reset URI in retry to avoid additional round trips because
  1631. of redirects.
  1632. * src/AbstractCommand.cc
  1633. * src/OptionHandlerFactory.cc
  1634. * src/prefs.cc
  1635. * src/prefs.h
  1636. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1637. Declared hide() in OptionHandler.
  1638. * src/NameMatchOptionHandler.h
  1639. * src/OptionHandler.h
  1640. * src/OptionHandlerImpl.h
  1641. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1642. Updated doc
  1643. * src/Peer.h
  1644. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1645. Added log message in setStatusInternal()
  1646. * src/ServerStat.cc
  1647. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1648. Call ServerStat::setError() in AbstractCommand::onAbort() to
  1649. effectively exclude failed server.
  1650. * src/AbstractCommand.cc
  1651. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1652. Added --index-out option to specify each file path for torrent.
  1653. Here index shown in --show-files option is used to specify which
  1654. file path should be altered. For example, to change the file path
  1655. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  1656. option multiple times: --index-out=1=aria2.tar.bz2
  1657. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  1658. available. This option can be specified in -i list.
  1659. * src/DefaultBtContext.cc
  1660. * src/DefaultBtContext.h
  1661. * src/MultiDiskAdaptor.cc
  1662. * src/MultiDiskAdaptor.h
  1663. * src/MultiFileAllocationIterator.cc
  1664. * src/OptionHandlerFactory.cc
  1665. * src/OptionHandlerImpl.h
  1666. * src/Util.cc
  1667. * src/Util.h
  1668. * src/download_helper.cc
  1669. * src/prefs.cc
  1670. * src/prefs.h
  1671. * src/usage_text.h
  1672. * test/DefaultBtContextTest.cc
  1673. * test/MultiDiskAdaptorTest.cc
  1674. * test/MultiFileAllocationIteratorTest.cc
  1675. * test/UtilTest.cc
  1676. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1677. Use Util::pathJoin()
  1678. * src/MetalinkParserController.cc
  1679. * test/test.xml
  1680. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1681. Use Util::pathJoin()
  1682. * src/DefaultBtContext.cc
  1683. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1684. Added Util::pathJoin()
  1685. * src/Util.h
  1686. * test/UtilTest.cc
  1687. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1688. Applied basename function to remove directory element in
  1689. content-disposition value.
  1690. Return empty string if content-disposition value is ".." or ".".
  1691. * src/Util.cc
  1692. * test/UtilTest.cc
  1693. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1694. Added --max-overall-download-limit in man page.
  1695. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  1696. * doc/aria2c.1.txt
  1697. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1698. Added --max-overall-download-limit option. Now --max-upload-limit
  1699. option is not ignored when --max-overall-upload-limit option has
  1700. non-zero value. aria2 checks download(upload) speed in the order:
  1701. first checks overall speed limit and if it is not exceeded, then
  1702. checks speed limit per download. Thus you can specify both
  1703. value. For example, set --max-overall-download-limit=1M and
  1704. --max-download-limit=500K to prevent from one download from eating
  1705. all overall speed limit.
  1706. * src/DefaultBtInteractive.cc
  1707. * src/DefaultBtInteractive.h
  1708. * src/DefaultBtMessageDispatcher.cc
  1709. * src/DefaultBtMessageDispatcher.h
  1710. * src/DownloadCommand.cc
  1711. * src/DownloadCommand.h
  1712. * src/FtpNegotiationCommand.cc
  1713. * src/HttpResponseCommand.cc
  1714. * src/OptionHandlerFactory.cc
  1715. * src/PeerInteractionCommand.cc
  1716. * src/RequestGroup.cc
  1717. * src/RequestGroup.h
  1718. * src/RequestGroupMan.cc
  1719. * src/RequestGroupMan.h
  1720. * src/prefs.cc
  1721. * src/prefs.h
  1722. * src/usage_text.h
  1723. * test/DefaultBtMessageDispatcherTest.cc
  1724. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1725. Documented select-file option in Input File section.
  1726. Documented --http-auth-challenge option.
  1727. * doc/aria2c.1.txt
  1728. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1729. Now select-file can be specified in the uri list(-i list).
  1730. * src/BtContext.cc
  1731. * src/BtContext.h
  1732. * src/RequestGroup.cc
  1733. * src/Sequence.h
  1734. * src/download_helper.cc
  1735. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1736. Made the upper value of --max-concurrent-downloads options unlimited.
  1737. * src/OptionHandlerFactory.cc
  1738. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1739. Fixed the bug that disk writer is not created even if it shares
  1740. same piece with the preceding file if the length of previous file
  1741. is 0.
  1742. * src/MultiDiskAdaptor.cc
  1743. * test/MultiDiskAdaptorTest.cc
  1744. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1745. In BitTorrent, Open files in read-only mode for hash check. After
  1746. that, re-open file in read/write mode only when the download is
  1747. not finished.
  1748. * src/AbstractDiskWriter.cc
  1749. * src/AbstractDiskWriter.h
  1750. * src/AbstractSingleDiskAdaptor.cc
  1751. * src/AbstractSingleDiskAdaptor.h
  1752. * src/BtCheckIntegrityEntry.cc
  1753. * src/DiskAdaptor.h
  1754. * src/DiskWriter.h
  1755. * src/MultiDiskAdaptor.cc
  1756. * src/MultiDiskAdaptor.h
  1757. * src/RequestGroup.cc
  1758. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1759. Added --http-auth-challenge option. If it is set to true(by
  1760. default), aria2 sends HTTP authorization header only when it is
  1761. requested by the server. If false is set, then authorization
  1762. header is always sent to the server. This is useful for servers
  1763. that don't respond 401 code when authentication is required.
  1764. There is an exception: if username and password are embedded in
  1765. URI, authorization header is always sent to the server regardless
  1766. of this option.
  1767. * src/AuthConfigFactory.cc
  1768. * src/HttpSkipResponseCommand.cc
  1769. * src/OptionHandlerFactory.cc
  1770. * src/prefs.cc
  1771. * src/prefs.h
  1772. * src/usage_text.h
  1773. * test/AuthConfigFactoryTest.cc
  1774. * test/HttpRequestTest.cc
  1775. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1776. * Release 1.2.0
  1777. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1778. Updated Spanish, Ukrainian, Russian and Japanese translations.
  1779. Thanks to all translators.
  1780. * po/es.po
  1781. * po/ja.po
  1782. * po/ru.po
  1783. * po/uk.po
  1784. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1785. Call deleteSocketForReadCheck() before socket is closed.
  1786. * src/HttpListenCommand.cc
  1787. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1788. Defined virtual destructor for BObject.
  1789. * src/bencode.h
  1790. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1791. Rewritten BDE to make it efficient.
  1792. * src/bencode.cc
  1793. * src/bencode.h
  1794. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1795. Removed function throw list.
  1796. * src/bencode.cc
  1797. * src/bencode.h
  1798. * test/BencodeTest.cc
  1799. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1800. Enclosed all URLs in double quotes in command-line examples.
  1801. * doc/aria2c.1.txt
  1802. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1803. Updated reference/see also section.
  1804. * README
  1805. * doc/aria2c.1.txt
  1806. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1807. Reorganized man page based on man man-pages.
  1808. * doc/aria2c.1.txt
  1809. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1810. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  1811. because same documents are available in man page. Added
  1812. References section.
  1813. * README
  1814. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1815. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  1816. PERFORMANCE PROFILE section.
  1817. * doc/aria2c.1.txt
  1818. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1819. Rewritten the section for configuration file.
  1820. * README
  1821. * doc/aria2c.1.txt
  1822. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1823. Fixed the segmentation fault during execution of choking algorithm
  1824. in leecher state because of broken compare operator
  1825. implementation.
  1826. * src/BtLeecherStateChoke.cc
  1827. * src/BtLeecherStateChoke.h
  1828. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1829. Open file in binary mode.
  1830. * src/CookieStorage.cc
  1831. * src/DHTSetup.cc
  1832. * src/DHTUtil.cc
  1833. * src/Netrc.cc
  1834. * src/NsCookieParser.cc
  1835. * src/ProtocolDetector.cc
  1836. * src/RequestGroupMan.cc
  1837. * src/Signature.cc
  1838. * src/bencode.cc
  1839. * src/download_helper.cc
  1840. * src/option_processing.cc
  1841. * test/CookieParserTest.cc
  1842. * test/DefaultBtProgressInfoFileTest.cc
  1843. * test/FileTest.cc
  1844. * test/GZipDecoderTest.cc
  1845. * test/RequestGroupManTest.cc
  1846. * test/SignatureTest.cc
  1847. * test/SingleFileAllocationIteratorTest.cc
  1848. * test/UriListParserTest.cc
  1849. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1850. Removed operator[] because it is ambiguous with built-in []
  1851. operator.
  1852. * src/array_fun.h
  1853. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1854. Fixed compile error
  1855. * src/OptionParser.cc
  1856. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1857. Added missing call to arrayWrapperConst
  1858. * test/array_funTest.cc
  1859. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1860. Use array_wrapper instead of array_ptr.
  1861. * src/DHTRoutingTableDeserializer.cc
  1862. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1863. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  1864. * src/array_fun.h
  1865. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1866. Added array_wrapper template.
  1867. * src/array_fun.h
  1868. * test/array_funTest.cc
  1869. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1870. Use operator T* of array_ptr.
  1871. * src/OptionParser.cc
  1872. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1873. Use localhost instead of 127.0.0.1
  1874. * test/FtpConnectionTest.cc
  1875. * test/MSEHandshakeTest.cc
  1876. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1877. Added operator T*
  1878. * src/array_fun.h
  1879. * test/array_funTest.cc
  1880. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1881. Use dynamically allocated char array to detect memory access
  1882. violation.
  1883. * src/DHTRoutingTableDeserializer.cc
  1884. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1885. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  1886. defined.
  1887. * src/PeerMessageUtil.cc
  1888. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1889. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  1890. * configure.ac
  1891. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1892. Added a check to see struct sockaddr_in has sin_len member.
  1893. * configure.ac
  1894. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1895. Fixed buffer overrun.
  1896. * src/DHTRoutingTableDeserializer.cc
  1897. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1898. Added LL for long long int constant.
  1899. * test/FtpConnectionTest.cc
  1900. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1901. Casted to unsigned int to suppress compiler warning on netbsd.
  1902. * src/BtRuntime.h
  1903. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1904. Assign the value of tv.tv_sec to time_t timesec instead of giving
  1905. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  1906. type time_t.
  1907. * src/SimpleLogger.cc
  1908. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1909. Added test for FtpConnection::receiveSizeResponse().
  1910. * test/FtpConnectionTest.cc
  1911. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1912. Fix epoll error on the old kernel 2.6.8 or ealier.
  1913. * src/EpollEventPoll.cc
  1914. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1915. Use Util::parseLLInt instead of sscanf for portability. The
  1916. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  1917. * src/FtpConnection.cc
  1918. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1919. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  1920. block. It should not filter anything.
  1921. * src/BitfieldMan.cc
  1922. * src/ConsoleStatCalc.cc
  1923. * test/BitfieldManTest.cc
  1924. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1925. Fixed the bug that the boolean options that don't take arguments
  1926. don't work.
  1927. * src/OptionHandlerImpl.h
  1928. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1929. Fixed broken selected file BitTorrent download.
  1930. * src/MultiDiskAdaptor.cc
  1931. * test/MultiDiskAdaptorTest.cc
  1932. * test/MultiFileAllocationIteratorTest.cc
  1933. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1934. Fixed #define guard for EpollEventPoll
  1935. * src/EpollEventPoll.h
  1936. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1937. Wait 2 seconds. 1 second is sometimes not enough.
  1938. * test/TimeSeedCriteriaTest.cc
  1939. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1940. Use localhost instead of 127.0.0.1.
  1941. * test/DHTConnectionImplTest.cc
  1942. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1943. Suppressed compiler warning.
  1944. * src/AdaptiveURISelector.cc
  1945. * src/DefaultPieceStorage.cc
  1946. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1947. Defined virtual destructor.
  1948. * src/MetalinkParserState.h
  1949. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1950. Give NULL for second argument of getaddrinfo instead of "0".
  1951. * src/NameResolver.cc
  1952. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1953. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  1954. included strptime doesn't parse data for this format.
  1955. * src/FtpConnection.cc
  1956. * test/FtpConnectionTest.cc
  1957. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1958. Removed tests giving -1 for unsigned argument.
  1959. * test/SingleFileDownloadContextTest.cc
  1960. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1961. Don't use sha256 in tests because it might not be supported by the
  1962. SSL library.
  1963. * test/MetalinkProcessorTest.cc
  1964. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1965. Removed tests giving -1 for unsigned argument.
  1966. * test/AlphaNumberDecoratorTest
  1967. * test/BitfieldManTest.cc
  1968. * test/DefaultBtContextTest.cc
  1969. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1970. Fixed compile error without libcares when epoll is available.
  1971. * src/EpollEventPoll.cc
  1972. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1973. Included fstream instead of iostream.
  1974. * test/SignatureTest.cc
  1975. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1976. Removed #include <algorithm>
  1977. * test/RequestGroupTest.cc
  1978. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1979. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  1980. using RequestGroup::extractURIResult().
  1981. * src/AdaptiveURISelector.cc
  1982. * src/RequestGroup.cc
  1983. * src/RequestGroup.h
  1984. * test/RequestGroupTest.cc
  1985. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1986. Added tests for array_ptr.
  1987. * test/array_funTest.cc
  1988. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1989. Don't send ip parameter to a tracker if ip parameter is empty
  1990. string.
  1991. * src/DefaultBtAnnounce.cc
  1992. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1993. Adjusted line feed.
  1994. * src/version_usage.cc
  1995. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1996. Print tags, possible values when OptionHandlerException is caught.
  1997. * src/option_processing.cc
  1998. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1999. Changed the message for FatalException.
  2000. * src/OptionParser.cc
  2001. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2002. Documented --bt-external-ip option in man page. Updated man pages
  2003. for --proxy-method option.
  2004. * doc/aria2c.1.txt
  2005. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2006. Use GET method for FTP via HTTP proxy.
  2007. * src/FtpInitiateConnectionCommand.cc
  2008. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2009. Changed the default value of --proxy-method option from 'tunnel'
  2010. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  2011. option.
  2012. * src/AbstractCommand.cc
  2013. * src/AbstractCommand.h
  2014. * src/FtpInitiateConnectionCommand.cc
  2015. * src/HttpDownloadCommand.cc
  2016. * src/HttpInitiateConnectionCommand.cc
  2017. * src/HttpInitiateConnectionCommand.h
  2018. * src/OptionHandlerFactory.cc
  2019. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2020. Initialized _logger
  2021. * src/SelectEventPoll.cc
  2022. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2023. Defined a copy constructor for the same type.
  2024. * src/SharedHandle.h
  2025. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2026. Added OptionParser::parseArg() which internally uses getopt_long
  2027. to parse command-line options. All command-line options are now
  2028. configured by OptionHandler. No manual editing of struct option*
  2029. is required any more.
  2030. * src/NameMatchOptionHandler.h
  2031. * src/OptionHandler.h
  2032. * src/OptionHandlerFactory.cc
  2033. * src/OptionHandlerImpl.h
  2034. * src/OptionParser.cc
  2035. * src/OptionParser.h
  2036. * src/array_fun.h
  2037. * src/main.cc
  2038. * src/option_processing.cc
  2039. * test/OptionHandlerTest.cc
  2040. * test/OptionParserTest.cc
  2041. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2042. Fixed configure error with --disable-epoll
  2043. * configure.ac
  2044. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2045. Fixed compile error when HAVE_EPOLL is not defined.
  2046. Fixed linker error on bigendian systems.
  2047. * src/SocketCore.cc
  2048. * src/SocketCore.h
  2049. * test/DefaultBtProgressInfoFileTest.cc
  2050. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2051. Added --bt-external-ip option. You can specify the external IP
  2052. address to report to a BitTorrent tracker. Although this function
  2053. is named 'external', it can accept any kind of IP addresses.
  2054. * src/DefaultBtAnnounce.cc
  2055. * src/OptionHandlerFactory.cc
  2056. * src/option_processing.cc
  2057. * src/prefs.cc
  2058. * src/prefs.h
  2059. * src/usage_text.h
  2060. * test/DefaultBtAnnounceTest.cc
  2061. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2062. Extracted the algorithm to find the longest incremental sequence
  2063. as max_sequence template.
  2064. * src/LongestSequencePieceSelector.cc
  2065. * src/a2algo.h
  2066. * test/Makefile.am
  2067. * test/a2algoTest.cc
  2068. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2069. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  2070. * src/usage_text.h
  2071. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2072. Updated doc for --uri-selector, --http-server-listen-port and
  2073. --enable-http-server option. Documented --event-poll option.
  2074. * doc/aria2c.1.txt
  2075. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2076. Updated doc for --enable-http-server.
  2077. * src/usage_text.h
  2078. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2079. Documented --http-server-listen-port and --enable-http-server in
  2080. man page.
  2081. * doc/aria2c.1.txt
  2082. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2083. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  2084. translations. Thanks to all translators.
  2085. * po/es.po
  2086. * po/id.po
  2087. * po/it.po
  2088. * po/ru.po
  2089. * po/uk.po
  2090. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2091. Bump up version number to 1.2.0
  2092. * configure.ac
  2093. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2094. BtContext::getAnnounceTiers() now returns const reference.
  2095. * src/BtContext.h
  2096. * src/DefaultBtContext.cc
  2097. * src/DefaultBtContext.h
  2098. * test/MockBtContext.h
  2099. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2100. Change the number of retries for tracker request based on the
  2101. number of available tracker in a torrent file.
  2102. * src/TrackerWatcherCommand.cc
  2103. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2104. Added _maxTries property to RequestGroup and assign the option
  2105. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  2106. RequestGroup::getMaxTries() instead of
  2107. Option::getAsInt(PREF_MAX_TRIES).
  2108. * src/AbstractCommand.cc
  2109. * src/RequestGroup.cc
  2110. * src/RequestGroup.h
  2111. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2112. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  2113. Mandriva. I modified the patch: make RequestGroup have the
  2114. timeout value and AdaptiveURISelector directly modifies that
  2115. value.
  2116. * src/AbstractCommand.cc
  2117. * src/AdaptiveURISelector.cc
  2118. * src/AdaptiveURISelector.h
  2119. * src/FtpNegotiationCommand.cc
  2120. * src/RequestGroup.cc
  2121. * src/RequestGroup.h
  2122. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2123. Fixed compiler warning
  2124. * test/IteratableChecksumValidatorTest.cc
  2125. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2126. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  2127. integrated downloads. This PieceSelector subclass finds the
  2128. longest continuous sequence in the available missing pieces and
  2129. selects the last index of such sequence. This makes HTTP/FTP
  2130. connections less interrupted by the pieces obtained by BitTorrent
  2131. peers.
  2132. * src/DefaultPieceStorage.cc
  2133. * src/DefaultPieceStorage.h
  2134. * src/LongestSequencePieceSelector.cc
  2135. * src/LongestSequencePieceSelector.h
  2136. * src/Makefile.am
  2137. * src/PieceSelector.h
  2138. * src/RarestPieceSelector.h
  2139. * src/RequestGroup.cc
  2140. * test/BtDependencyTest.cc
  2141. * test/DefaultPieceStorageTest.cc
  2142. * test/IteratableChecksumValidatorTest.cc
  2143. * test/LongestSequencePieceSelectorTest.cc
  2144. * test/Makefile.am
  2145. * test/SegmentManTest.cc
  2146. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2147. Fixed the bug that the average speed is wrong in
  2148. http/ftp/BitTorrent integrated download. Only the download bytes
  2149. in BitTorrent were considered.
  2150. * src/RequestGroup.cc
  2151. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2152. Choose port for BitTorrent/DHT randomly from the specified range.
  2153. * src/DHTConnectionImpl.cc
  2154. * src/PeerListenCommand.cc
  2155. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2156. Send HTTP Authorization header only if it is requested by the
  2157. server(response 401). There are some exceptions. The authorization
  2158. header for proxy is always sent if it is available without request
  2159. by the server. If username/password is specified in the URI, it
  2160. is immediately sent to the server without request by the server.
  2161. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  2162. SharedHandle<AuthConfig>().
  2163. NetrcAuthResolver::resolveAuthConfig() returns
  2164. SharedHandle<AuthConfig>() if no AuthConfig is available.
  2165. * src/AbstractAuthResolver.cc
  2166. * src/AbstractProxyRequestCommand.cc
  2167. * src/AuthConfigFactory.cc
  2168. * src/AuthConfigFactory.h
  2169. * src/HttpConnection.cc
  2170. * src/HttpRequest.cc
  2171. * src/HttpRequest.h
  2172. * src/HttpResponse.cc
  2173. * src/HttpResponseCommand.cc
  2174. * src/HttpSkipResponseCommand.cc
  2175. * test/AuthConfigFactoryTest.cc
  2176. * test/HttpRequestTest.cc
  2177. * test/HttpResponseTest.cc
  2178. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2179. Remove leading "--" from help keyword and a substring after "="
  2180. from help keyword, so that one can query options by '-h--max-' or
  2181. '-hmax-peers=10'.
  2182. * src/option_processing.cc
  2183. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2184. Rewritten PStringVisitor and its implementation.
  2185. * src/PStringBuildVisitor.cc
  2186. * src/PStringBuildVisitor.h
  2187. * src/PStringDatum.h
  2188. * src/PStringNumLoop.h
  2189. * src/PStringSegment.cc
  2190. * src/PStringSegment.h
  2191. * src/PStringSelect.h
  2192. * src/PStringVisitor.h
  2193. * src/download_helper.cc
  2194. * test/PStringBuildVisitorTest.cc
  2195. * test/ParameterizedStringParserTest.cc
  2196. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2197. Persist connection between the built-in HTTP server and a client
  2198. if a client supports keep-alive. Fixed the bug that aria2 exits
  2199. when the HTTP server receives EOF from a client.
  2200. * src/HttpServer.cc
  2201. * src/HttpServer.h
  2202. * src/HttpServerCommand.cc
  2203. * src/HttpServerCommand.h
  2204. * src/HttpServerResponseCommand.cc
  2205. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2206. Added experimental built-in HTTP server. Currently, when a client
  2207. accesses to the server, it responds with the current download
  2208. progress. By default, it is disabled. To enable the server, give
  2209. --enable-http-server option. To change the default port number
  2210. for the server to listen to, use --http-server-listen-port option.
  2211. The response HTML is very simple and refreshes it self each 1
  2212. second. Because of this refresh, you see flicker in normal web
  2213. browser such as Firefox. I recommend to use console-based browser
  2214. such as elinks, w3m. To connect to the server, run 'elinks
  2215. http://localhost:6800/' while running aria2. Please replace port
  2216. number '6800'(which is default) with your preference.
  2217. * src/DownloadEngineFactory.cc
  2218. * src/HttpHeader.cc
  2219. * src/HttpHeader.h
  2220. * src/HttpHeaderProcessor.cc
  2221. * src/HttpHeaderProcessor.h
  2222. * src/HttpListenCommand.cc
  2223. * src/HttpListenCommand.h
  2224. * src/HttpServer.cc
  2225. * src/HttpServer.h
  2226. * src/HttpServerCommand.cc
  2227. * src/HttpServerCommand.h
  2228. * src/HttpServerResponseCommand.cc
  2229. * src/HttpServerResponseCommand.h
  2230. * src/Makefile.am
  2231. * src/OptionHandlerFactory.cc
  2232. * src/Util.cc
  2233. * src/Util.h
  2234. * src/help_tags.h
  2235. * src/option_processing.cc
  2236. * src/prefs.cc
  2237. * src/prefs.h
  2238. * src/usage_text.h
  2239. * test/HttpHeaderProcessorTest.cc
  2240. * test/UtilTest.cc
  2241. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2242. Removed.
  2243. * src/CheckIntegrityMan.cc
  2244. * src/FileAllocationMan.cc
  2245. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2246. Made (piece) hash check sequential for each RequestGroup because
  2247. simultaneous hash check is slower than sequential execution.
  2248. * src/CheckIntegrityCommand.cc
  2249. * src/CheckIntegrityDispatcherCommand.cc
  2250. * src/CheckIntegrityDispatcherCommand.h
  2251. * src/CheckIntegrityMan.h
  2252. * src/ConsoleStatCalc.cc
  2253. * src/DownloadCommand.cc
  2254. * src/DownloadEngine.cc
  2255. * src/DownloadEngine.h
  2256. * src/DownloadEngineFactory.cc
  2257. * src/Makefile.am
  2258. * src/Makefile.in
  2259. * src/RequestGroup.cc
  2260. * src/StatCalc.h
  2261. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2262. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  2263. SequentialDispatcherCommand.
  2264. * src/FileAllocationDispatcherCommand.cc
  2265. * src/SequentialDispatcherCommand.h
  2266. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2267. Rewritten FileAllocationDispatcherCommand using brand new
  2268. SequentialDispatcherCommand.
  2269. * src/DownloadEngineFactory.cc
  2270. * src/FileAllocationCommand.cc
  2271. * src/FileAllocationDispatcherCommand.cc
  2272. * src/FileAllocationDispatcherCommand.h
  2273. * src/Makefile.am
  2274. * src/SequentialDispatcherCommand.h
  2275. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2276. Replaced FileAllocationMan with
  2277. SequentialPicker<FileAllocationEntry>.
  2278. * src/BtCheckIntegrityEntry.cc
  2279. * src/ConsoleStatCalc.cc
  2280. * src/DownloadEngine.cc
  2281. * src/DownloadEngine.h
  2282. * src/DownloadEngineFactory.cc
  2283. * src/FileAllocationCommand.cc
  2284. * src/FileAllocationDispatcherCommand.cc
  2285. * src/FileAllocationMan.h
  2286. * src/Makefile.am
  2287. * src/SequentialPicker.h
  2288. * src/StatCalc.h
  2289. * src/StreamCheckIntegrityEntry.cc
  2290. * test/Makefile.am
  2291. * test/SequentialPickerTest.cc
  2292. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2293. Added doc for adaptive URI selector.
  2294. * doc/aria2c.1.txt
  2295. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2296. Added doc for adaptive URI selector.
  2297. * src/usage_text.h
  2298. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2299. Added doc for --bt-max-peers option.
  2300. * doc/aria2c.1.txt
  2301. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2302. Added doc for --bt-hash-check-seed option.
  2303. * doc/aria2c.1.txt
  2304. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2305. Documented exit codes.
  2306. * doc/aria2c.1.txt
  2307. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2308. Added --bt-max-peers option to specify the maximum number of peers
  2309. per torrent. 0 means unlimited number of peers.
  2310. * src/ActivePeerConnectionCommand.cc
  2311. * src/BtRuntime.h
  2312. * src/DefaultPeerStorage.cc
  2313. * src/DefaultPeerStorage.h
  2314. * src/OptionHandlerFactory.cc
  2315. * src/RequestGroup.cc
  2316. * src/option_processing.cc
  2317. * src/prefs.cc
  2318. * src/prefs.h
  2319. * src/usage_text.h
  2320. * test/DefaultPeerStorageTest.cc
  2321. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2322. Added --bt-hash-check-seed option. If true is given to this
  2323. option, after hash check using --check-integrity option and file
  2324. is complete, continue to seed file. If you want to check file and
  2325. download it only when it is damaged or incomplete, set this option
  2326. to false. This option has effect only on BitTorrent download.
  2327. The default value is true(This is the same behavior with the
  2328. previous release).
  2329. * src/BtCheckIntegrityEntry.cc
  2330. * src/OptionHandlerFactory.cc
  2331. * src/option_processing.cc
  2332. * src/prefs.cc
  2333. * src/prefs.h
  2334. * src/usage_text.h
  2335. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2336. Updated copyright year.
  2337. * src/version_usage.cc
  2338. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2339. Rewritten the usage text for --bt-request-peer-speed-limit option.
  2340. * doc/aria2c.1.txt
  2341. * src/usage_text.h
  2342. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2343. Made the max value of split option unlimited.
  2344. * doc/aria2c.1.txt
  2345. * src/OptionHandlerFactory.cc
  2346. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2347. Fixed compile warning/error.
  2348. * src/DownloadResult.h
  2349. * src/HttpDownloadCommand.cc
  2350. * src/ServerStat.cc
  2351. * test/RequestGroupTest.cc
  2352. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2353. Added --event-poll option to select the method for polling events.
  2354. The available methods are "select" and "epoll". "epoll" is
  2355. available on Linux only. The earlier release has the compile
  2356. option to choose from these methods.
  2357. * configure.ac
  2358. * src/RequestGroupMan.cc
  2359. * src/OptionHandlerFactory.cc
  2360. * src/EpollEventPoll.h
  2361. * src/StreamFileAllocationEntry.cc
  2362. * src/a2io.h
  2363. * src/SelectEventPoll.h
  2364. * src/option_processing.cc
  2365. * src/prefs.h
  2366. * src/EpollEventPoll.cc
  2367. * src/EventPoll.h
  2368. * src/SocketCore.h
  2369. * src/Makefile.am
  2370. * src/main.cc
  2371. * src/DownloadEngine.h
  2372. * src/SelectEventPoll.cc
  2373. * src/DownloadEngine.cc
  2374. * src/SocketCore.cc
  2375. * src/DownloadEngineFactory.cc
  2376. * src/Makefile.in
  2377. * src/prefs.cc
  2378. * src/usage_text.h
  2379. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2380. Included RecoverableException.h from main.cc
  2381. * src/main.cc
  2382. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2383. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  2384. now returns last error encountered in the HTTP/FTP downloads as a
  2385. exit status value. If all downloads finished successfully, aria2
  2386. returns 0. The error code is defined in src/DownloadResult.h.
  2387. The error occurred in the download currently in progress is not
  2388. reported as a last error. If no error has encountered but there
  2389. are in progress or waiting downloads, aria2 returns 7.
  2390. * src/AbstractCommand.cc
  2391. * src/DlAbortEx.h
  2392. * src/DlRetryEx.h
  2393. * src/DownloadCommand.cc
  2394. * src/DownloadFailureException.h
  2395. * src/DownloadResult.h
  2396. * src/FtpNegotiationCommand.cc
  2397. * src/HttpSkipResponseCommand.cc
  2398. * src/Makefile.am
  2399. * src/MultiUrlRequestInfo.cc
  2400. * src/MultiUrlRequestInfo.h
  2401. * src/RecoverableException.h
  2402. * src/RequestGroup.cc
  2403. * src/RequestGroup.h
  2404. * src/RequestGroupMan.cc
  2405. * src/RequestGroupMan.h
  2406. * src/URIResult.cc
  2407. * src/URIResult.h
  2408. * src/main.cc
  2409. * src/option_processing.cc
  2410. * test/RequestGroupTest.cc
  2411. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2412. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  2413. patch adds AdaptiveURISelector, which selects one of the bests
  2414. mirrors for first and reserved connections. For supplementary
  2415. ones, it returns mirrors which has not been tested yet, and if
  2416. each of them already tested, returns mirrors which has to be
  2417. tested again. Otherwise, it doesn't return anymore mirrors.
  2418. * src/AdaptiveURISelector.cc
  2419. * src/AdaptiveURISelector.h
  2420. * src/FtpNegotiationCommand.cc
  2421. * src/HttpResponseCommand.cc
  2422. * src/Makefile.am
  2423. * src/Makefile.in
  2424. * src/OptionHandlerFactory.cc
  2425. * src/RequestGroup.cc
  2426. * src/RequestGroup.h
  2427. * src/RequestGroupMan.cc
  2428. * src/ServerStat.cc
  2429. * src/ServerStat.h
  2430. * src/ServerStatMan.cc
  2431. * src/SpeedCalc.cc
  2432. * src/URISelector.h
  2433. * src/prefs.cc
  2434. * src/prefs.h
  2435. * test/RequestGroupManTest.cc
  2436. * test/ServerStatManTest.cc
  2437. * test/ServerStatTest.cc
  2438. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2439. Fixed unit test error.
  2440. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  2441. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2442. * Release 1.1.2
  2443. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2444. Updated Russian translation. Thanks to the translators.
  2445. * po/ru.po
  2446. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2447. Added the description of --use-head option to man page.
  2448. * doc/aria2c.1.txt
  2449. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2450. Bump up version number to 1.1.2
  2451. * configure.ac
  2452. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2453. Added --use-head option to toggle whether HEAD method should be
  2454. used in the first HTTP request. By default aria2 uses HEAD method
  2455. as the first request. When the server doesn't recognize HEAD, then
  2456. give aria2 --use-head=false to force aria2 to use GET method
  2457. instead.
  2458. * src/OptionHandlerFactory.cc
  2459. * src/RequestGroupMan.cc
  2460. * src/option_processing.cc
  2461. * src/prefs.cc
  2462. * src/prefs.h
  2463. * src/usage_text.h
  2464. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2465. Fixed the bug that BitTorrent download doesn't finish when REJECT
  2466. message is received before CHOKE message. The old implementation
  2467. doen't clear the use-bit of the piece when recieved REJECT
  2468. message.
  2469. * src/DefaultBtMessageDispatcher.cc
  2470. * test/DefaultBtMessageDispatcherTest.cc
  2471. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2472. * Release 1.1.1
  2473. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2474. Bump up version number to 1.1.1.
  2475. * configure.ac
  2476. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2477. Fixed the bug that --summary-interval=0 doesn't work. The summary
  2478. is printed repeatedly.
  2479. * src/ConsoleStatCalc.cc
  2480. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2481. * Release 1.1.0
  2482. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2483. Added ifdef clause for conditional compilation.
  2484. * src/main.cc
  2485. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2486. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  2487. translations. Thanks to all translators.
  2488. * po/ja.po
  2489. * po/ru.po
  2490. * po/uk.po
  2491. * po/zh_CN.po
  2492. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2493. Added the preceding ">>> " before the message "Printing the
  2494. contents of file..." to make the output more readable.
  2495. * src/main.cc
  2496. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2497. Added try-catch block in the loop in showFiles() to continue the
  2498. operation even if the exception occurred in one file.
  2499. * src/main.cc (showFiles)
  2500. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2501. Made messages in showFiles() translatable.
  2502. * po/aria2.pot
  2503. * src/main.cc
  2504. * src/message.h
  2505. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2506. Print the contents of Torrent/Metalink files are printed without
  2507. -T/-M options.
  2508. * src/main.cc
  2509. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2510. Escaped '--' with '\--'
  2511. * README
  2512. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2513. Updated "How to build" section in README. Mentioned about
  2514. --with-ca-bundle compile option.
  2515. * README
  2516. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2517. Bump up version number to 1.1.0.
  2518. * configure.ac
  2519. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2520. Added a note for --dht-listen-port option.
  2521. * doc/aria2c.1.txt
  2522. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2523. Update doc for --realtime-chunk-checksum option.
  2524. * doc/aria2c.1.txt
  2525. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2526. Update doc for --realtime-chunk-checksum option.
  2527. * src/usage_text.h
  2528. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2529. Updated French, Japanese, Russian and Ukrainian translations.
  2530. Thanks to all translators.
  2531. * po/fr.po
  2532. * po/ja.po
  2533. * po/ru.po
  2534. * po/uk.po
  2535. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2536. Renamed aria2c.pot to aria2.pot
  2537. * po/aria2.pot
  2538. * po/aria2c.pot: Removed.
  2539. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2540. Removed MetaEntry.h
  2541. * src/Makefile.am
  2542. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2543. Rename file by appending digits if a local file exists and its
  2544. file size is larger than that of remote file with --continue
  2545. option. The old implementation just throws exception in such case.
  2546. * src/RequestGroup.cc
  2547. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2548. Fixed the bug that download progress summary is not printed in the
  2549. interval specified by the option.
  2550. * src/ConsoleStatCalc.cc
  2551. * src/ConsoleStatCalc.h
  2552. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2553. Fixed compiler warning
  2554. * src/Cookie.cc
  2555. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2556. Fixed the cookie implementation based on RFC2965.
  2557. Now if a value in domain field is not started with dot, then
  2558. prepend dot. That means a cookie with domain=sf.net is sent to
  2559. wiki.sf.net.
  2560. * src/Cookie.cc
  2561. * test/CookieParserTest.cc
  2562. * test/CookieStorageTest.cc
  2563. * test/CookieTest.cc
  2564. * test/NsCookieParserTest.cc
  2565. * test/Sqlite3MozCookieParserTest.cc
  2566. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2567. Fixed the bug that causes corrupted downloads if HTTP pipelining
  2568. is enabled and the server doesn't support keep-alive.
  2569. * src/AbstractCommand.cc
  2570. * src/DownloadCommand.cc
  2571. * src/HttpDownloadCommand.cc
  2572. * src/HttpDownloadCommand.h
  2573. * src/HttpResponseCommand.cc
  2574. * src/Request.cc
  2575. * src/Request.h
  2576. * test/RequestTest.cc
  2577. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2578. Removed Dictionary/List/Data and its related classes.
  2579. * src/BencodeVisitor.cc: Removed.
  2580. * src/BencodeVisitor.h: Removed.
  2581. * src/Data.cc: Removed.
  2582. * src/Data.h: Removed.
  2583. * src/Dictionary.cc: Removed.
  2584. * src/Dictionary.h: Removed.
  2585. * src/List.cc: Removed.
  2586. * src/List.h: Removed.
  2587. * src/Makefile.am
  2588. * src/MetaEntry.h: Removed.
  2589. * src/MetaEntryVisitor.h: Removed.
  2590. * src/MetaFileUtil.cc: Removed.
  2591. * src/MetaFileUtil.h: Removed.
  2592. * test/BencodeVisitorTest.cc: Removed.
  2593. * test/DataTest.cc: Removed.
  2594. * test/DictionaryTest.cc: Removed.
  2595. * test/ListTest.cc: Removed.
  2596. * test/Makefile.am
  2597. * test/MetaFileUtilTest.cc: Removed.
  2598. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2599. Removed include of MetaEntry.h
  2600. * test/DHTMessageTrackerEntryTest.cc
  2601. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2602. Use BDE instead of Dictionary/List/Data.
  2603. * src/AnnounceList.cc
  2604. * src/AnnounceList.h
  2605. * test/AnnounceListTest.cc
  2606. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2607. Use BDE instead of Dictionary/List/Data.
  2608. * src/DHTAbstractMessage.cc
  2609. * src/DHTAbstractMessage.h
  2610. * src/DHTAnnouncePeerMessage.cc
  2611. * src/DHTAnnouncePeerMessage.h
  2612. * src/DHTAnnouncePeerReplyMessage.cc
  2613. * src/DHTAnnouncePeerReplyMessage.h
  2614. * src/DHTFindNodeMessage.cc
  2615. * src/DHTFindNodeMessage.h
  2616. * src/DHTFindNodeReplyMessage.cc
  2617. * src/DHTFindNodeReplyMessage.h
  2618. * src/DHTGetPeersMessage.cc
  2619. * src/DHTGetPeersMessage.h
  2620. * src/DHTGetPeersReplyMessage.cc
  2621. * src/DHTGetPeersReplyMessage.h
  2622. * src/DHTMessageFactory.h
  2623. * src/DHTMessageFactoryImpl.cc
  2624. * src/DHTMessageFactoryImpl.h
  2625. * src/DHTMessageReceiver.cc
  2626. * src/DHTMessageTracker.cc
  2627. * src/DHTMessageTracker.h
  2628. * src/DHTPingMessage.cc
  2629. * src/DHTPingMessage.h
  2630. * src/DHTPingReplyMessage.cc
  2631. * src/DHTPingReplyMessage.h
  2632. * src/DHTQueryMessage.cc
  2633. * src/DHTQueryMessage.h
  2634. * src/DHTResponseMessage.cc
  2635. * src/DHTResponseMessage.h
  2636. * test/DHTAnnouncePeerMessageTest.cc
  2637. * test/DHTAnnouncePeerReplyMessageTest.cc
  2638. * test/DHTFindNodeMessageTest.cc
  2639. * test/DHTFindNodeReplyMessageTest.cc
  2640. * test/DHTGetPeersMessageTest.cc
  2641. * test/DHTGetPeersReplyMessageTest.cc
  2642. * test/DHTMessageFactoryImplTest.cc
  2643. * test/DHTMessageTrackerTest.cc
  2644. * test/DHTPingMessageTest.cc
  2645. * test/DHTPingReplyMessageTest.cc
  2646. * test/MockDHTMessageFactory.h
  2647. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2648. Added tests the case where length < 0 is specified.
  2649. * test/BencodeTest.cc
  2650. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2651. Fixed memory leak in decoderawstring()
  2652. * src/bencode.cc
  2653. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2654. Added missing #ifdef guard. Added uc() function for String and
  2655. removeKey() for Dict.
  2656. * src/bencode.cc
  2657. * src/bencode.h
  2658. * test/BencodeTest.cc
  2659. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2660. Use BDE instead of Dictionary/List/Data.
  2661. * src/HandshakeExtensionMessage.cc
  2662. * src/HandshakeExtensionMessage.h
  2663. * test/HandshakeExtensionMessageTest.cc
  2664. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2665. Added --max-overall-upload-limit option. This option limits the
  2666. overall upload speed. Stated in help message that the existing
  2667. --max-upload-limit option limits the upload speed per each
  2668. torrent. Man page is also updated.
  2669. * doc/aria2c.1.txt
  2670. * src/DefaultBtMessageDispatcher.cc
  2671. * src/DefaultBtMessageDispatcher.h
  2672. * src/OptionHandlerFactory.cc
  2673. * src/PeerInteractionCommand.cc
  2674. * src/option_processing.cc
  2675. * src/prefs.cc
  2676. * src/prefs.h
  2677. * src/usage_text.h
  2678. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2679. Use BDE instead of Dictionary/List/Data classes.
  2680. * src/CompactPeerListProcessor.cc
  2681. * src/CompactPeerListProcessor.h
  2682. * src/DefaultBtAnnounce.cc
  2683. * src/DefaultBtContext.cc
  2684. * src/DefaultBtContext.h
  2685. * src/DefaultPeerListProcessor.cc
  2686. * src/DefaultPeerListProcessor.h
  2687. * src/DelegatingPeerListProcessor.cc
  2688. * src/DelegatingPeerListProcessor.h
  2689. * src/PeerListProcessor.h
  2690. * src/UTPexExtensionMessage.cc
  2691. * src/Util.h
  2692. * src/message.h
  2693. * test/DefaultBtContextTest.cc
  2694. * test/DefaultPeerListProcessorTest.cc
  2695. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2696. Added bencode helper functions and BDE class.
  2697. They will replace MetaFileUtil and Dictionary/List/Data classes.
  2698. * src/Makefile.am
  2699. * src/bencode.cc
  2700. * src/bencode.h
  2701. * test/BencodeTest.cc
  2702. * test/Makefile.am
  2703. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2704. Fixed the bug that bad URI is sent to the tracker when the announe
  2705. URI in torrent file includes query.
  2706. * src/DefaultBtAnnounce.cc
  2707. * test/DefaultBtAnnounceTest.cc
  2708. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2709. Added Option::blank().
  2710. Use !Option::blank(name) instead of Option::defined(name) for
  2711. the options that take filename.
  2712. * src/MultiUrlRequestInfo.cc
  2713. * src/Option.cc
  2714. * src/Option.h
  2715. * src/main.cc
  2716. * src/option_processing.cc
  2717. * test/OptionTest.cc
  2718. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2719. Documented the default value of --check-certificate option in man
  2720. page.
  2721. * doc/aria2c.1.txt
  2722. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2723. Enabled --check-certificate by default. Added compile
  2724. time(configure) option --with-ca-bundle to specify CA bundle.
  2725. Warn if --check-certificate=true and --ca-certificate is not
  2726. specified or loading CA certificate is failed.
  2727. * configure.ac
  2728. * src/MultiUrlRequestInfo.cc
  2729. * src/OptionHandlerFactory.cc
  2730. * src/message.h
  2731. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2732. Mentioned https tag in help option.
  2733. * doc/aria2c.1.txt
  2734. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2735. Added `https' tag to help option category. Added https tag to
  2736. --ca-certificate, --certificate, --check-certificate and
  2737. --private-key option.
  2738. * src/OptionHandlerFactory.cc
  2739. * src/help_tags.h
  2740. * src/option_processing.cc
  2741. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2742. Changed the package name from `aria2c' to `aria2' in order to fix
  2743. the packaging issue in Debian and Fedora. The name of the
  2744. executable is not changed.
  2745. * configure.ac
  2746. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2747. Fixed typos
  2748. * src/usage_text.h
  2749. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2750. Fixed typos and updated doc.
  2751. * README
  2752. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2753. Fixed typos
  2754. * doc/aria2c.1.txt
  2755. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2756. Fixed typos
  2757. * src/usage_text.h
  2758. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2759. Print a message when no files to download.
  2760. * src/download_helper.cc
  2761. * src/main.cc
  2762. * src/message.h
  2763. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2764. RFC3986 complied Percent-Encoding(urlencode).
  2765. Use uppercase hexadecimal digits for encoded text instead of lowercase
  2766. ones.
  2767. * src/Request.cc
  2768. * src/Util.cc
  2769. * src/Util.h
  2770. * test/BtHandshakeMessageTest.cc
  2771. * test/DefaultBtAnnounceTest.cc
  2772. * test/DefaultBtContextTest.cc
  2773. * test/RequestTest.cc
  2774. * test/UtilTest.cc
  2775. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2776. Fixed the bug that prevents aria2 from downloading 0-length files
  2777. via HTTP/FTP.
  2778. * src/DefaultBtContext.cc
  2779. * src/DefaultBtContext.h
  2780. * src/DownloadContext.h
  2781. * src/FtpNegotiationCommand.cc
  2782. * src/HttpResponseCommand.cc
  2783. * src/HttpResponseCommand.h
  2784. * src/RequestGroup.cc
  2785. * src/SingleFileDownloadContext.cc
  2786. * src/SingleFileDownloadContext.h
  2787. * test/BtPostDownloadHandlerTest.cc
  2788. * test/MetalinkPostDownloadHandlerTest.cc
  2789. * test/MockBtContext.h
  2790. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2791. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  2792. * src/option_processing.cc
  2793. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2794. Applied aria2-1.0.1-mingw.patch.
  2795. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  2796. mingw.
  2797. Collected 4th and 5th argument types for getsockopt and setsockopt.
  2798. * src/SocketCore.cc
  2799. * src/a2netcompat.h
  2800. * test/SocketCoreTest.cc
  2801. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2802. * Release 1.0.1
  2803. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2804. Updated Ukrainian and Norwegian Nynorsk translations.
  2805. Thanks to all translators.
  2806. * po/nn.po
  2807. * po/uk.po
  2808. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2809. Don't show download result when -S option is used.
  2810. * src/main.cc
  2811. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2812. Bump up version number to 1.0.1
  2813. * configure.ac
  2814. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2815. Closed files after the test cases in MultiDiskWriterTest::
  2816. testResetDiskWriterEntries(). This will fix the unit test error
  2817. in mingw32 build.
  2818. * test/MultiDiskWriterTest.cc
  2819. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2820. Use HEAD method to get file size from HTTP server for segmented
  2821. downloading.
  2822. The request to the BitTorrent Tracker always uses GET method because
  2823. the response of the tracker is small and it doesn't need segmented
  2824. download.
  2825. * src/FtpNegotiationCommand.cc
  2826. * src/HttpRequest.cc
  2827. * src/HttpResponseCommand.cc
  2828. * src/HttpSkipResponseCommand.cc
  2829. * src/RequestGroup.cc
  2830. * src/RequestGroup.h
  2831. * src/TrackerWatcherCommand.cc
  2832. * test/HttpRequestTest.cc
  2833. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2834. Fixed the bug that causes floating exception when -T option is used and
  2835. no URIs are given.
  2836. * src/download_helper.cc
  2837. * test/DownloadHelperTest.cc
  2838. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  2839. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  2840. errors in MinGW:
  2841. Closed file after saving server stats (RequestGroupMan.cc)
  2842. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  2843. Ignored case & handled 2-digit years (strptime.c)
  2844. Added missing suseconds_t definition (a2time.h)
  2845. Fixed socket CLOSE() define (SocketCore.cc)
  2846. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  2847. Changed utime() test values from x000 to x00000 as MinGW failed on
  2848. values less than timezone offset from Unix epoch
  2849. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  2850. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  2851. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  2852. handle negative dates (CookieParserTest.cc)
  2853. * src/a2time.h
  2854. * src/FtpConnection.cc
  2855. * src/RequestGroupMan.cc
  2856. * src/SocketCore.cc
  2857. * src/strptime.c
  2858. * test/CookieParserTest.cc
  2859. * test/CopyDiskAdaptorTest.cc
  2860. * test/FileTest.cc
  2861. * test/FtpConnectionTest.cc
  2862. * test/MultiDiskAdaptorTest.cc
  2863. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2864. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  2865. * doc/aria2c.1.txt
  2866. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2867. * Release 1.0.0
  2868. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2869. Added '~' to reserved characters.
  2870. * src/Util.cc
  2871. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2872. Do not urlencode Request::url in setUrl() because we want unmodified
  2873. URL using Request::getUrl()
  2874. * src/Request.cc
  2875. * src/Request.h
  2876. * test/RequestTest.cc
  2877. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2878. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  2879. Thanks to all translators.
  2880. * po/bg.po
  2881. * po/fr.po
  2882. * po/ja.po
  2883. * po/ru.po
  2884. * po/uk.po
  2885. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2886. Bump up version number to 1.0.0
  2887. * configure.ac
  2888. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2889. Added nosqlite3 build to build_test.sh.
  2890. Renamed noxml as expat.
  2891. * build_test.sh
  2892. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2893. Updated INPUT FILE section.
  2894. * doc/aria2c.1.txt
  2895. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2896. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  2897. on big endian systems because test .aria2 files are made for little
  2898. endian systems.
  2899. * test/DefaultBtProgressInfoFileTest.cc
  2900. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2901. Dropped ares support.
  2902. * README
  2903. * configure.ac
  2904. * m4/libares.m4: Removed.
  2905. * src/AsyncNameResolver.cc
  2906. * src/Makefile.am
  2907. * test/Makefile.am
  2908. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2909. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  2910. Removed const qualifier from DiskWriter::size().
  2911. * src/AbstractDiskWriter.cc
  2912. * src/AbstractDiskWriter.h
  2913. * src/ByteArrayDiskWriter.cc
  2914. * src/ByteArrayDiskWriter.h
  2915. * src/DiskWriter.h
  2916. * test/ByteArrayDiskWriterTest.cc
  2917. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2918. Fixed the bug that causes segmentation fault/bus error during executing
  2919. choking algorithm while seeding. This is caused by improper
  2920. implementation of compare function which returns inconsistent results
  2921. depending on the timing of last unchoke.
  2922. * src/BtSeederStateChoke.cc
  2923. * src/BtSeederStateChoke.h
  2924. * src/DefaultPeerStorage.cc
  2925. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2926. Removed TODO
  2927. * TODO
  2928. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2929. Added a section that explains how to pass argument to options that
  2930. takes optional arguments with its short form.
  2931. * doc/aria2c.1.txt
  2932. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2933. Added -u for the short form of --max-upload-limit option.
  2934. * doc/aria2c.1.txt
  2935. * src/option_processing.cc
  2936. * src/usage_text.h
  2937. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2938. Added -V for the short form of --check-integrity option.
  2939. Now the argument of --check-integrity option is optional:
  2940. if it is omitted, it is evaluated as true.
  2941. * doc/aria2c.1.txt
  2942. * src/option_processing.cc
  2943. * src/usage_text.h
  2944. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2945. Made the default value of --ftp-pasv option set to true and it can take
  2946. true/false values.
  2947. * src/OptionHandlerFactory.cc
  2948. * src/option_processing.cc
  2949. * src/usage_text.h
  2950. * doc/aria2c.1.txt
  2951. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2952. Given custom random number generator to std::random_shuffle.
  2953. * src/AnnounceList.cc
  2954. * src/BtLeecherStateChoke.cc
  2955. * src/BtSeederStateChoke.cc
  2956. * src/DefaultBtRequestFactory.cc
  2957. * src/MetalinkEntry.cc
  2958. * src/RarestPieceSelector.cc
  2959. * src/SimpleRandomizer.cc
  2960. * src/SimpleRandomizer.h
  2961. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2962. Now the default value of --enable-direct-io is true.
  2963. * src/OptionHandlerFactory.cc
  2964. * doc/aria2c.1.txt
  2965. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2966. Erase peer before executing onReturningPeer and onErasingPeer
  2967. because choking algorithm called from onReturningPeer doesn't
  2968. like erasing peer in the active peer list.
  2969. * src/DefaultPeerStorage.cc
  2970. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2971. Instead of creating special filename in createDownloadResult() if
  2972. inMemoryDownload() is true, now it is done in getFilePath().
  2973. * src/RequestGroup.cc
  2974. * test/RequestGroupTest.cc
  2975. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2976. Print "[MEMORY]" and filename if a file is not saved in disk and just
  2977. processed in memory. This is the fix for previous comment out.
  2978. * src/MemoryBufferPreDownloadHandler.cc
  2979. * src/RequestGroup.cc
  2980. * src/RequestGroup.h
  2981. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2982. Commented out the code which sets virtual directory path "[MEMORY]"
  2983. propagate directory to store to following RequestGroup.
  2984. * src/MemoryBufferPreDownloadHandler.cc
  2985. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2986. Bump up version number to 1.0.0b
  2987. * configure.ac
  2988. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2989. Added input_uris.txt to EXTRA_DIST
  2990. * test/Makefile.am
  2991. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2992. Removed PeerObject.h from Makefile.am
  2993. * src/Makefile.am
  2994. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2995. Avoid slow seeding
  2996. * src/PeerInteractionCommand.cc
  2997. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2998. Updated usage for -i option.
  2999. * src/usage_text.h (TEXT_INPUT_FILE)
  3000. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3001. Added INPUT FILE section to man page.
  3002. Escaped fake URLs.
  3003. * doc/aria2c.1.txt
  3004. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3005. Fixed wrong note position for -o option.
  3006. * doc/aria2c.1.txt
  3007. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3008. Fixed compile error without SSL/XML library.
  3009. * src/DefaultBtProgressInfoFile.cc
  3010. * src/DefaultBtProgressInfoFile.h
  3011. * src/FileMetalinkParserState.cc
  3012. * src/RequestGroup.h
  3013. * src/SocketCore.cc
  3014. * src/SocketCore.h
  3015. * src/VerificationMetalinkParserState.cc
  3016. * src/download_helper.h
  3017. * src/main.cc
  3018. * test/DefaultBtProgressInfoFileTest.cc
  3019. * test/DownloadHelperTest.cc
  3020. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3021. Rewritten URI handling functions. They are now provided as a testable
  3022. functions.
  3023. * src/Makefile.am
  3024. * src/RequestGroup.cc
  3025. * src/RequestGroup.h
  3026. * src/download_helper.cc
  3027. * src/download_helper.h
  3028. * src/main.cc
  3029. * test/DownloadHelperTest.cc
  3030. * test/Makefile.am
  3031. * test/input_uris.txt
  3032. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3033. Quickly terminate commands when ctrl-c is pressed.
  3034. * src/DownloadEngine.cc
  3035. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3036. Quickly terminate idle commands when download finished.
  3037. * src/AbstractCommand.cc
  3038. * src/DownloadCommand.cc
  3039. * src/DownloadEngine.cc
  3040. * src/DownloadEngine.h
  3041. * src/SleepCommand.cc
  3042. * src/SleepCommand.h
  3043. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3044. Added the ability to specify output filename and directory in input
  3045. file.
  3046. Additional parameters are added in the following line of URIs
  3047. with proceeding white space(s), 1 parameter in 1 line.
  3048. The parameter names are the same with the command-line option name
  3049. without proceeding "--". Not all the options are available here:
  3050. at the moment, 'dir' and 'out' options are avialable.
  3051. Please note that out option has no effect against Metalink or BitTorrent
  3052. downloads.
  3053. Example input file:
  3054. http://host/foo-1.1.tar.bz2
  3055. out=foo.tar.bz2
  3056. dir=/tmp/downloads
  3057. http://host/thundermonkey-2.0.tar.bz2
  3058. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  3059. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  3060. thundermonkey-2.0.tar.bz2 is saved as
  3061. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  3062. * src/BtPostDownloadHandler.cc
  3063. * src/Metalink2RequestGroup.cc
  3064. * src/Metalink2RequestGroup.h
  3065. * src/MetalinkPostDownloadHandler.cc
  3066. * src/UriListParser.cc
  3067. * src/UriListParser.h
  3068. * src/main.cc
  3069. * test/Metalink2RequestGroupTest.cc
  3070. * test/UriListParserTest.cc
  3071. * test/filelist1.txt
  3072. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3073. Fixed error when SSL library is not found.
  3074. * configure.ac
  3075. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3076. Cross referenced among -s, -C and -j options.
  3077. Updated usage of -C and -s options.
  3078. * src/usage_text.h
  3079. * doc/aria2c.1.txt
  3080. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3081. Fixed bad cast in 32bit platforms.
  3082. * test/DefaultPieceStorageTest.cc
  3083. (DefaultPieceStorageTest::testGetCompletedLength)
  3084. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3085. Fixed unit test fails on 32bit platforms.
  3086. * test/CookieParserTest.cc
  3087. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3088. Show an average download speed in Download results.
  3089. * src/BtFileAllocationEntry.cc
  3090. * src/DefaultPieceStorage.cc
  3091. * src/DownloadContext.cc
  3092. * src/DownloadContext.h
  3093. * src/DownloadResult.h
  3094. * src/RequestGroup.cc
  3095. * src/RequestGroupMan.cc
  3096. * src/StreamFileAllocationEntry.cc
  3097. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3098. Fixed the bug that metalink file is not processed if Content-Type
  3099. field has a paramter.
  3100. * src/HttpResponse.cc
  3101. * src/HttpResponse.h
  3102. * test/HttpResponseTest.cc
  3103. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3104. Removed unused code.
  3105. * src/DefaultBtAnnounce.cc
  3106. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3107. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  3108. the value larger than DefaultPieceStorage::getTotalLength() when
  3109. in flight pieces are involved.
  3110. * src/DefaultPieceStorage.cc
  3111. * test/DefaultPieceStorageTest.cc
  3112. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3113. Bump up version number to 1.0.0a.
  3114. * configure.ac
  3115. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3116. Updated configure.ac
  3117. * configure.ac
  3118. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3119. Added usege for proxy.
  3120. * doc/aria2c.1.txt
  3121. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3122. Added usage for --ca-certificate, --certificate, --private-key and
  3123. --check-certificate options.
  3124. * doc/aria2c.1.txt
  3125. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3126. Updated man page
  3127. * doc/aria2c.1.txt
  3128. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3129. Added --no-proxy option. It receives comman separated hostname or
  3130. domains to which proxy should not be used.
  3131. aria2 honors the environment variable no_proxy to override no-proxy
  3132. value in configuration file. The user can override the environment
  3133. variable no_proxy with --no-proxy command-line option.
  3134. * src/AbstractCommand.cc
  3135. * src/OptionHandlerFactory.cc
  3136. * src/option_processing.cc
  3137. * src/prefs.cc
  3138. * src/prefs.h
  3139. * src/usage_text.h
  3140. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3141. Added the ability to verify peer in SSL/TLS using given CA certificates.
  3142. The CA certificates are specified in --ca-certificate option.
  3143. By default, the verification is disabled. Use --check-certificate
  3144. option to enable it.
  3145. * src/HttpRequestCommand.cc
  3146. * src/LibgnutlsTLSContext.cc
  3147. * src/LibgnutlsTLSContext.h
  3148. * src/LibsslTLSContext.cc
  3149. * src/LibsslTLSContext.h
  3150. * src/MultiUrlRequestInfo.cc
  3151. * src/OptionHandlerFactory.cc
  3152. * src/SocketCore.cc
  3153. * src/SocketCore.h
  3154. * src/a2functional.h
  3155. * src/message.h
  3156. * src/option_processing.cc
  3157. * src/prefs.cc
  3158. * src/prefs.h
  3159. * src/usage_text.h
  3160. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3161. Added client certificate authentication for SSL/TLS.
  3162. Currently a private key must be decrypted for use with aria2.
  3163. If a user accidentally gives encrypted file to aria2 then following
  3164. thing happens:
  3165. If encrypted private key is given to aria2, it behaves differently
  3166. depending on the ssl library it uses. If aria2 built with openssl then
  3167. openssl prompts the user for password. If aria2 build with gnutls then
  3168. aria2 exists with error at start up.
  3169. * src/DownloadEngineFactory.cc
  3170. * src/MultiUrlRequestInfo.cc
  3171. * src/OptionHandlerFactory.cc
  3172. * src/option_processing.cc
  3173. * src/prefs.cc
  3174. * src/prefs.h
  3175. * src/usage_text.h
  3176. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3177. Introduced TLSContext that holds TLS related data that can be shared
  3178. with multiple SSL connections.
  3179. * src/DownloadEngineFactory.cc
  3180. * src/LibgnutlsTLSContext.cc
  3181. * src/LibgnutlsTLSContext.h
  3182. * src/LibsslTLSContext.cc
  3183. * src/LibsslTLSContext.h
  3184. * src/Makefile.am
  3185. * src/SocketCore.cc
  3186. * src/SocketCore.h
  3187. * src/TLSContext.h
  3188. * src/message.h
  3189. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3190. Fixed the bug that the DiskWriter of the first FileEntry whose
  3191. `needsFileAllocation' property is false is not created
  3192. even if it shares a piece with next FileEntry which `requested' property
  3193. is true.
  3194. Fixed the bug that zero-length file is not created if pre file
  3195. allocation is not done.
  3196. * src/MultiDiskAdaptor.cc
  3197. * src/MultiDiskAdaptor.h
  3198. * test/MultiDiskAdaptorTest.cc
  3199. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3200. Added the ability to pool proxy connection.
  3201. The conneciton in FTP with proxy-method=GET is not pooled.
  3202. Proxy-Connection header will not be sent when sending CONNECT method.
  3203. * src/DownloadEngine.cc
  3204. * src/DownloadEngine.h
  3205. * src/FtpFinishDownloadCommand.cc
  3206. * src/FtpInitiateConnectionCommand.cc
  3207. * src/FtpNegotiationCommand.cc
  3208. * src/HttpDownloadCommand.cc
  3209. * src/HttpInitiateConnectionCommand.cc
  3210. * src/HttpRequest.cc
  3211. * src/HttpRequest.h
  3212. * src/HttpResponse.cc
  3213. * src/HttpSkipResponseCommand.cc
  3214. * test/HttpRequestTest.cc
  3215. * test/HttpResponseTest.cc
  3216. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3217. Handle date before epoch.
  3218. To create *bad* Time object, call Time::null().
  3219. * src/CookieParser.cc
  3220. * src/FtpConnection.cc
  3221. * src/FtpConnection.h
  3222. * src/FtpNegotiationCommand.cc
  3223. * src/RequestGroup.cc
  3224. * src/TimeA2.cc
  3225. * src/TimeA2.h
  3226. * test/CookieParserTest.cc
  3227. * test/FtpConnectionTest.cc
  3228. * test/TimeTest.cc
  3229. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3230. Added support for following envrionment variables: http_proxy,
  3231. https_proxy, ftp_proxy and all_proxy.
  3232. Each variable is equivalent to the aria2 option whose name is the
  3233. variable name with '_' replaced with '-'.
  3234. They overrides options specified in aria2.conf file.
  3235. The envrionment variables can be overrode using command-line option.
  3236. * src/option_processing.cc
  3237. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3238. Renamed --http-proxy-method as --proxy-method.
  3239. * src/AbstractCommand.cc
  3240. * src/FtpInitiateConnectionCommand.cc
  3241. * src/HttpInitiateConnectionCommand.cc
  3242. * src/OptionHandlerFactory.cc
  3243. * src/option_processing.cc
  3244. * src/prefs.cc
  3245. * src/prefs.h
  3246. * src/usage_text.h
  3247. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3248. Deprecated --http-proxy-user and --http-proxy-passwd options.
  3249. Added --https-proxy, --ftp-proxy and --all-proxy options.
  3250. Above 3 options and --http-proxy option can handle proxy in URL format
  3251. like: http://user:passwd@host:port.
  3252. If a proxy requires user/password, they must be specified in a URL.
  3253. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  3254. instead.
  3255. * src/AbstractCommand.cc
  3256. * src/AbstractCommand.h
  3257. * src/AbstractProxyRequestCommand.cc
  3258. * src/AbstractProxyRequestCommand.h
  3259. * src/AuthConfigFactory.cc
  3260. * src/AuthConfigFactory.h
  3261. * src/FtpFinishDownloadCommand.cc
  3262. * src/FtpInitiateConnectionCommand.cc
  3263. * src/FtpInitiateConnectionCommand.h
  3264. * src/FtpNegotiationCommand.cc
  3265. * src/FtpTunnelRequestCommand.cc
  3266. * src/FtpTunnelRequestCommand.h
  3267. * src/HttpDownloadCommand.cc
  3268. * src/HttpInitiateConnectionCommand.cc
  3269. * src/HttpInitiateConnectionCommand.h
  3270. * src/HttpProxyRequestCommand.cc
  3271. * src/HttpProxyRequestCommand.h
  3272. * src/HttpRequest.cc
  3273. * src/HttpRequest.h
  3274. * src/HttpRequestCommand.cc
  3275. * src/HttpRequestCommand.h
  3276. * src/HttpSkipResponseCommand.cc
  3277. * src/InitiateConnectionCommand.cc
  3278. * src/InitiateConnectionCommand.h
  3279. * src/OptionHandlerFactory.cc
  3280. * src/OptionHandlerImpl.h
  3281. * src/Request.cc
  3282. * src/option_processing.cc
  3283. * src/prefs.cc
  3284. * src/prefs.h
  3285. * src/usage_text.h
  3286. * test/AuthConfigFactoryTest.cc
  3287. * test/HttpRequestTest.cc
  3288. * test/OptionHandlerTest.cc
  3289. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3290. Execute choking algorithm when unchoked and interested peer is
  3291. disconected.
  3292. * src/DefaultPeerStorage.cc
  3293. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3294. Added testcase for BtNotInterestedMessage from unchoked peer.
  3295. * test/BtNotInterestedMessageTest.cc
  3296. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3297. Execute choking algorithm when BtInterestedMessage arrives from
  3298. unchoked peer.
  3299. * src/BtInterestedMessage.cc
  3300. * src/BtInterestedMessage.h
  3301. * src/DefaultBtMessageFactory.cc
  3302. * test/BtInterestedMessageTest.cc
  3303. * test/MockPeerStorage.h
  3304. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3305. AuthConfigFactory is now part of DownloadEngine.
  3306. * src/AbstractProxyRequestCommand.cc
  3307. * src/AuthConfigFactory.h
  3308. * src/DownloadEngine.cc
  3309. * src/DownloadEngine.h
  3310. * src/FtpConnection.cc
  3311. * src/FtpConnection.h
  3312. * src/FtpNegotiationCommand.cc
  3313. * src/HttpConnection.cc
  3314. * src/HttpRequest.cc
  3315. * src/HttpRequest.h
  3316. * src/HttpRequestCommand.cc
  3317. * src/HttpResponse.cc
  3318. * src/HttpResponseCommand.cc
  3319. * src/HttpSkipResponseCommand.cc
  3320. * src/MultiUrlRequestInfo.cc
  3321. * src/main.cc
  3322. * test/FtpConnectionTest.cc
  3323. * test/HttpRequestTest.cc
  3324. * test/HttpResponseTest.cc
  3325. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3326. Corrected catched exception type.
  3327. * src/ServerStatMan.cc
  3328. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3329. DNSCache is now part of DownloadEngine.
  3330. * src/DNSCache.h
  3331. * src/DownloadEngine.cc
  3332. * src/DownloadEngine.h
  3333. * src/InitiateConnectionCommand.cc
  3334. * src/MultiUrlRequestInfo.cc
  3335. * test/Makefile.am
  3336. * test/Makefile.in
  3337. * test/SimpleDNSCacheTest.cc
  3338. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3339. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  3340. DownloadEngine.
  3341. * src/ActivePeerConnectionCommand.cc
  3342. * src/BtSetup.cc
  3343. * src/CUIDCounter.h
  3344. * src/DHTSetup.cc
  3345. * src/DownloadCommand.cc
  3346. * src/DownloadEngine.cc
  3347. * src/DownloadEngine.h
  3348. * src/DownloadEngineFactory.cc
  3349. * src/FileAllocationDispatcherCommand.cc
  3350. * src/InitiatorMSEHandshakeCommand.cc
  3351. * src/PeerInitiateConnectionCommand.cc
  3352. * src/PeerInteractionCommand.cc
  3353. * src/PeerListenCommand.cc
  3354. * src/RequestGroup.cc
  3355. * src/StreamFileAllocationEntry.cc
  3356. * src/TrackerWatcherCommand.cc
  3357. * src/main.cc
  3358. * test/RequestGroupManTest.cc
  3359. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3360. Implemented commented code in BtSeederStateChoke
  3361. * src/BtSeederStateChoke.cc
  3362. * src/Peer.cc
  3363. * src/Peer.h
  3364. * src/PeerInteractionCommand.cc
  3365. * src/PeerSessionResource.cc
  3366. * src/PeerSessionResource.h
  3367. * test/MockBtMessageDispatcher.h
  3368. * test/PeerSessionResourceTest.cc
  3369. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3370. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  3371. its object.
  3372. * src/AbstractBtMessage.cc
  3373. * src/ActivePeerConnectionCommand.cc
  3374. * src/ActivePeerConnectionCommand.h
  3375. * src/BtContextAwareCommand.cc
  3376. * src/BtContextAwareCommand.h
  3377. * src/BtExtendedMessage.cc
  3378. * src/BtExtendedMessage.h
  3379. * src/BtInterestedMessage.cc
  3380. * src/BtInterestedMessage.h
  3381. * src/BtNotInterestedMessage.cc
  3382. * src/BtNotInterestedMessage.h
  3383. * src/BtRegistry.cc
  3384. * src/BtRegistry.h
  3385. * src/BtSeederStateChoke.cc
  3386. * src/BtSetup.cc
  3387. * src/DHTGetPeersCommand.cc
  3388. * src/DHTGetPeersCommand.h
  3389. * src/DHTPeerAnnounceEntry.cc
  3390. * src/DHTPeerAnnounceEntry.h
  3391. * src/DHTPeerAnnounceStorage.cc
  3392. * src/DHTPeerAnnounceStorage.h
  3393. * src/DHTPeerLookupTask.cc
  3394. * src/DHTPeerLookupTask.h
  3395. * src/DHTSetup.cc
  3396. * src/DHTSetup.h
  3397. * src/DHTTaskFactory.h
  3398. * src/DHTTaskFactoryImpl.cc
  3399. * src/DHTTaskFactoryImpl.h
  3400. * src/DefaultBtAnnounce.cc
  3401. * src/DefaultBtInteractive.cc
  3402. * src/DefaultBtInteractive.h
  3403. * src/DefaultBtMessageDispatcher.cc
  3404. * src/DefaultBtMessageDispatcher.h
  3405. * src/DefaultBtMessageFactory.cc
  3406. * src/DefaultBtMessageFactory.h
  3407. * src/DefaultBtMessageReceiver.cc
  3408. * src/DefaultBtProgressInfoFile.cc
  3409. * src/DefaultBtProgressInfoFile.h
  3410. * src/DefaultBtRequestFactory.cc
  3411. * src/DefaultBtRequestFactory.h
  3412. * src/DefaultExtensionMessageFactory.cc
  3413. * src/DefaultExtensionMessageFactory.h
  3414. * src/DefaultPeerStorage.cc
  3415. * src/DefaultPeerStorage.h
  3416. * src/DownloadEngine.cc
  3417. * src/DownloadEngine.h
  3418. * src/InitiatorMSEHandshakeCommand.cc
  3419. * src/InitiatorMSEHandshakeCommand.h
  3420. * src/MSEHandshake.cc
  3421. * src/MSEHandshake.h
  3422. * src/Makefile.am
  3423. * src/Makefile.in
  3424. * src/PeerChokeCommand.cc
  3425. * src/PeerChokeCommand.h
  3426. * src/PeerInitiateConnectionCommand.cc
  3427. * src/PeerInitiateConnectionCommand.h
  3428. * src/PeerInteractionCommand.cc
  3429. * src/PeerInteractionCommand.h
  3430. * src/PeerObject.h
  3431. * src/PeerReceiveHandshakeCommand.cc
  3432. * src/PeerReceiveHandshakeCommand.h
  3433. * src/ReceiverMSEHandshakeCommand.cc
  3434. * src/RequestGroup.cc
  3435. * src/RequestGroup.h
  3436. * src/RequestGroupMan.cc
  3437. * src/RequestGroupMan.h
  3438. * src/SeedCheckCommand.cc
  3439. * src/SeedCheckCommand.h
  3440. * src/ShareRatioSeedCriteria.h
  3441. * src/SimpleBtMessage.cc
  3442. * src/TrackerWatcherCommand.cc
  3443. * src/TrackerWatcherCommand.h
  3444. * src/UTPexExtensionMessage.cc
  3445. * src/UTPexExtensionMessage.h
  3446. * test/BtCancelMessageTest.cc
  3447. * test/BtChokeMessageTest.cc
  3448. * test/BtExtendedMessageTest.cc
  3449. * test/BtInterestedMessageTest.cc
  3450. * test/BtNotInterestedMessageTest.cc
  3451. * test/BtPieceMessageTest.cc
  3452. * test/BtPortMessageTest.cc
  3453. * test/BtRegistryTest.cc
  3454. * test/BtRejectMessageTest.cc
  3455. * test/BtRequestMessageTest.cc
  3456. * test/DHTPeerAnnounceEntryTest.cc
  3457. * test/DHTPeerAnnounceStorageTest.cc
  3458. * test/DefaultBtMessageDispatcherTest.cc
  3459. * test/DefaultBtMessageFactoryTest.cc
  3460. * test/DefaultBtProgressInfoFileTest.cc
  3461. * test/DefaultBtRequestFactoryTest.cc
  3462. * test/DefaultExtensionMessageFactoryTest.cc
  3463. * test/MSEHandshakeTest.cc
  3464. * test/MockDHTTaskFactory.h
  3465. * test/ShareRatioSeedCriteriaTest.cc
  3466. * test/UTPexExtensionMessageTest.cc
  3467. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3468. Fixed compiler warning.
  3469. * test/UtilTest.cc
  3470. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3471. Treat Cookie object as session cookie if expiry = 0 is given.
  3472. With this change, you can specify session scoped cookies in an external
  3473. file setting expiry value to 0.
  3474. * src/Cookie.cc
  3475. * src/Cookie.h
  3476. * test/CookieParserTest.cc
  3477. * test/CookieStorageTest.cc
  3478. * test/CookieTest.cc
  3479. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3480. Changed signature of DHTMessageFactory::createResponseMessage().
  3481. Removed unused validateIDMatch.
  3482. * src/DHTMessageFactory.h
  3483. * src/DHTMessageFactoryImpl.cc
  3484. * src/DHTMessageFactoryImpl.h
  3485. * src/DHTMessageTracker.cc
  3486. * test/DHTMessageFactoryImplTest.cc
  3487. * test/MockDHTMessageFactory.h
  3488. Dropped DHT message coming from same ID of localhost.
  3489. * src/DHTMessageReceiver.cc
  3490. Rejected adding node whose ID is the same as localhost's.
  3491. * src/DHTRoutingTable.cc
  3492. * test/BtPortMessageTest.cc
  3493. * test/DHTRoutingTableTest.cc
  3494. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3495. Pool connection when redirection occurs with Content-Length = 0.
  3496. * src/HttpSkipResponseCommand.cc
  3497. * src/HttpSkipResponseCommand.h
  3498. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3499. Fixed the bug that causes time out when redirection occurs with
  3500. content-length 0.
  3501. * src/HttpResponseCommand.cc
  3502. * src/HttpSkipResponseCommand.cc
  3503. * src/HttpSkipResponseCommand.h
  3504. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3505. Now each status legends is shown only when it appears in Download
  3506. Result. If Download Result has no item, then status legend will not
  3507. be printed.
  3508. * src/RequestGroupMan.cc
  3509. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3510. Removed duplicate creation of OptionHandlers.
  3511. * src/option_processing.cc
  3512. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3513. Fixed the bug that causes segmentation fault when accessing files which
  3514. don't exist or are not included in --select-file option while
  3515. validating chunk checksum.
  3516. * src/MultiDiskAdaptor.cc
  3517. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3518. Fixed compiler warning.
  3519. * test/UtilTest.cc
  3520. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3521. Included cstdlib. This fixed the compile error with g++-4.3.2.
  3522. * src/IteratableChecksumValidator.cc
  3523. * src/IteratableChunkChecksumValidator.cc
  3524. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3525. * Release 0.16.2
  3526. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3527. Added Serbian translation. Updated Ukrainian translation.
  3528. Thanks to all translators.
  3529. * po/sr.po
  3530. * po/uk.po
  3531. * po/LINGUAS
  3532. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3533. Bump up version number to 0.16.2
  3534. * configure.ac
  3535. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3536. Added length equality test to operator== to drop a piece message
  3537. whose length does not match to the requested one.
  3538. * src/RequestSlot.cc
  3539. * test/DefaultBtMessageDispatcherTest.cc
  3540. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3541. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  3542. recieved.
  3543. In this fix, if a request larger than 16KiB length is received, aria2
  3544. disconnects the peer.
  3545. * src/BtConstants.h
  3546. * src/PeerMessageUtil.cc
  3547. * src/PeerMessageUtil.h
  3548. * test/BtRequestMessageTest.cc
  3549. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3550. * Release 0.16.1
  3551. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3552. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  3553. * doc/aria2c.1.txt
  3554. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3555. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  3556. Updated French, Simplified Chinese and Japanese translations.
  3557. Thanks to all translators.
  3558. en@quot and en@boldquot are also added.
  3559. * po/LINGUAS
  3560. * po/fr.po
  3561. * po/ja.po
  3562. * po/uk.po
  3563. * po/vi.po
  3564. * po/zh_CN.po
  3565. * po/zh_TW.po
  3566. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3567. Bump up version number to 0.16.1.
  3568. * configure.ac
  3569. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3570. Updated README.
  3571. * README
  3572. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3573. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  3574. not to replace '--' with em dash character.
  3575. * doc/aria2c.1.txt
  3576. * doc/makeman
  3577. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3578. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  3579. every SEC seconds.
  3580. * src/DownloadEngineFactory.cc
  3581. * src/OptionHandlerFactory.cc
  3582. * src/option_processing.cc
  3583. * src/usage_text.h
  3584. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3585. Fixed compile warning on linux-amd64
  3586. * src/FtpConnection.cc
  3587. * src/IteratableChunkChecksumValidator.cc
  3588. * src/MultiDiskAdaptor.cc
  3589. Fixed the bug that unit test fails on linux-amd64
  3590. * test/UtilTest.cc
  3591. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3592. Added --dht-file-path option to change the path to dht.dat, which is a
  3593. serialized DHT routing table.
  3594. * src/OptionHandlerFactory.cc
  3595. * src/option_processing.cc
  3596. * src/usage_text.h
  3597. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3598. Fixed possible underflow.
  3599. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  3600. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3601. Fixed the bug that last character in URI is not encoded.
  3602. * src/Request.cc
  3603. * test/RequestTest.cc
  3604. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3605. Fixed the bug that referer header field contains fragment.
  3606. Now Request class removes fragment part of URI and encodes it
  3607. in Request::setUri() and setReferer().
  3608. * src/Request.h
  3609. * src/Request.cc
  3610. * test/RequestTest.cc
  3611. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3612. Added missing m4 macros.
  3613. * m4/cppunit.m4
  3614. * m4/libgcrypt.m4
  3615. * m4/libgnutls-extra.m4
  3616. * m4/libgnutls.m4
  3617. * m4/libxml2.m4
  3618. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3619. Fixed compile error with gcc-4.4(snapshot)
  3620. * src/File.cc
  3621. * src/FtpConnection.cc
  3622. * src/OptionHandlerImpl.h
  3623. * src/Util.cc
  3624. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3625. Removed assert()
  3626. * src/SocketBuffer.cc (SocketBuffer::send)
  3627. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3628. Changed the type of _numNewConnection to unsigned int.
  3629. * src/ActivePeerConnectionCommand.cc
  3630. * src/ActivePeerConnectionCommand.h
  3631. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3632. * Release 0.16.0
  3633. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3634. Updated doc
  3635. * README
  3636. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3637. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  3638. translations. Thanks to all translators.
  3639. * po/bg.po
  3640. * po/de.po
  3641. * po/fr.po
  3642. * po/ja.po
  3643. * po/zh_CN.po
  3644. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3645. Bump up version number to 0.16.0.
  3646. * configure.ac
  3647. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3648. Casted entry->maxConnections to int32_t for std::min<T> with T =
  3649. int32_t.
  3650. Changed the type of count to int32_t.
  3651. * src/Metalink2RequestGroup.cc
  3652. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3653. Added test for Time::elapsed(time_t).
  3654. * test/TimeTest.cc
  3655. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3656. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  3657. Util::difftv() should be used instead.
  3658. * src/TimeA2.cc
  3659. * src/TimeA2.h
  3660. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3661. Made socket for dht connections non-blocking
  3662. * src/DHTAbstractMessage.cc
  3663. * src/DHTAbstractMessage.h
  3664. * src/DHTConnection.h
  3665. * src/DHTConnectionImpl.cc
  3666. * src/DHTConnectionImpl.h
  3667. * src/DHTMessage.h
  3668. * src/DHTMessageDispatcherImpl.cc
  3669. * src/DHTMessageDispatcherImpl.h
  3670. * src/DHTUnknownMessage.cc
  3671. * src/DHTUnknownMessage.h
  3672. * src/SocketCore.cc
  3673. * src/SocketCore.h
  3674. * test/MockDHTMessage.h
  3675. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3676. Changed the type of offset to int.
  3677. * src/ParameterizedStringParser.cc
  3678. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3679. Made getAsInt() return int32_t
  3680. * src/Option.h
  3681. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3682. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  3683. build.
  3684. * configure.ac
  3685. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3686. Use sqlite3_open if sqlite3_open_v2 is not available.
  3687. * src/Sqlite3MozCookieParser.cc
  3688. * src/Sqlite3MozCookieParser.h
  3689. * m4/sqlite3.m4
  3690. * test/Sqlite3MozCookieParserTest.cc
  3691. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3692. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  3693. * src/BtPieceMessage.cc
  3694. * src/DHTPeerAnnounceStorage.cc
  3695. * src/DefaultPieceStorage.cc
  3696. * src/DownloadCommand.cc
  3697. * src/DownloadEngine.cc
  3698. * src/FtpConnection.cc
  3699. * src/PeerConnection.cc
  3700. * src/PeerMessageUtil.cc
  3701. * src/RequestGroup.cc
  3702. * src/RequestGroupMan.cc
  3703. * src/SimpleBtMessage.cc
  3704. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3705. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  3706. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  3707. * src/AbstractDiskWriter.cc
  3708. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3709. Don't set Request::supportsPersistentConnection() in HttpConnection
  3710. since this code is also used in AbstractProxyResponseCommand.
  3711. Moved those code to HttpResponse.
  3712. * src/HttpResponse.cc
  3713. * src/HttpResponse.h
  3714. * src/HttpConnection.cc
  3715. * src/HttpConnection.h
  3716. * src/HttpResponseCommand.cc
  3717. * test/HttpResponseTest.cc
  3718. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3719. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  3720. The configuration is minimum: no torrent, no metalink, so there may be
  3721. other compile error on their code.
  3722. * src/a2netcompat.h
  3723. * src/File.cc
  3724. * src/File.h
  3725. * src/SocketCore.cc
  3726. * src/SocketCore.h
  3727. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3728. Made a socket of incoming peer non-blocking.
  3729. * src/PeerListenCommand.cc
  3730. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3731. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  3732. whole message data is not sent in one send() call.
  3733. * src/BtPieceMessage.cc
  3734. * src/BtPieceMessage.h
  3735. * src/PeerConnection.cc
  3736. * src/PeerConnection.h
  3737. * src/SimpleBtMessage.cc
  3738. * src/SimpleBtMessage.h
  3739. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3740. Fixed the bug that aria2 downloads faster than max-download-limit when
  3741. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  3742. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  3743. , instead of sum of them.
  3744. * src/ActivePeerConnectionCommand.cc
  3745. * src/DefaultBtInteractive.cc
  3746. * src/DownloadCommand.cc
  3747. * src/PeerInteractionCommand.cc
  3748. * src/PeerReceiveHandshakeCommand.cc
  3749. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3750. Fixed the bug that HTTPS download fails.
  3751. * src/AbstractCommand.cc
  3752. * src/AbstractCommand.h
  3753. * src/DownloadCommand.cc
  3754. * src/FtpConnection.cc
  3755. * src/HttpConnection.cc
  3756. * src/HttpRequestCommand.cc
  3757. * src/HttpResponseCommand.cc
  3758. * src/HttpSkipResponseCommand.cc
  3759. * src/MSEHandshake.cc
  3760. * src/PeerConnection.cc
  3761. * src/SocketCore.cc
  3762. * src/SocketCore.h
  3763. Fixed the bug that aria2 doesn't download whole content body and cannot
  3764. reuse connection if chunked transfer encoding and gzip content encoding
  3765. are set.
  3766. * src/DownloadCommand.cc
  3767. * src/HttpSkipResponseCommand.cc
  3768. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3769. Updated man page.
  3770. * doc/aria2c.1.txt
  3771. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3772. When error occurred while aria2 was parsing an .aria2.conf file, print
  3773. the usage of the option that caused error.
  3774. * src/option_processing.cc
  3775. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3776. Fixed compile error on OptionHandlerException
  3777. * src/Makefile.am
  3778. * src/OptionHandlerException.cc
  3779. * src/OptionHandlerException.h
  3780. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3781. Moved message of the error to OptionHandlerException.h
  3782. * src/NameMatchOptionHandler.h
  3783. * src/OptionHandlerException.h
  3784. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3785. When error occurs while aria2 is parsing an command-line option, print
  3786. the usage of the option.
  3787. * src/Makefile.am
  3788. * src/NameMatchOptionHandler.h
  3789. * src/OptionHandlerException.h
  3790. * src/option_processing.cc
  3791. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3792. Reverted previous change.
  3793. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  3794. username is not in URI.
  3795. * src/HttpRequest.cc
  3796. * src/Request.cc
  3797. * test/HttpRequestTest.cc
  3798. * test/RequestTest.cc
  3799. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3800. Now colon is required for username and password in FTP URL, like:
  3801. ftp://username:password@host.
  3802. If colon is not there, aria2 don't parse it as a username. For example,
  3803. aria2 don't retrieve username from ftp://username@host.
  3804. This fix was made in order to login FTP server via non-transparent ftp
  3805. proxy.
  3806. * src/Request.cc
  3807. * test/RequestTest.cc
  3808. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3809. Use netrc for HTTP.
  3810. Now FTP user/password is sent in Authorization header when
  3811. --ftp-via-http-proxy=get is given.
  3812. * src/AuthConfigFactory.cc
  3813. * src/HttpRequest.cc
  3814. * src/HttpRequest.h
  3815. * src/NetrcAuthResolver.cc
  3816. * src/NetrcAuthResolver.h
  3817. * src/OptionHandlerFactory.cc
  3818. * src/option_processing.cc
  3819. * src/prefs.cc
  3820. * src/prefs.h
  3821. * test/AuthConfigFactoryTest.cc
  3822. * test/HttpRequestTest.cc
  3823. * test/NetrcAuthResolverTest.cc
  3824. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3825. Issue PWD command first and get working directory and use it as a prefix
  3826. for CWD command.
  3827. * src/DownloadEngine.cc
  3828. * src/DownloadEngine.h
  3829. * src/FtpConnection.cc
  3830. * src/FtpConnection.h
  3831. * src/FtpFinishDownloadCommand.cc
  3832. * src/FtpInitiateConnectionCommand.cc
  3833. * src/FtpNegotiationCommand.cc
  3834. * src/FtpNegotiationCommand.h
  3835. * test/FtpConnectionTest.cc
  3836. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3837. Removed default user/pass for FTP user/pass, since it should not have
  3838. precedence over netrc configuration by default.
  3839. * src/OptionHandlerFactory.cc
  3840. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3841. Added debug log for socket event.
  3842. * src/AbstractCommand.cc
  3843. * src/PeerAbstractCommand.cc
  3844. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3845. Log microseconds.
  3846. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  3847. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3848. Replaced HelpItem.cc with OptionHandler.cc.
  3849. * po/POTFILES.in
  3850. Updated po files with 'make update-po'
  3851. * po/aria2c.pot
  3852. * po/*.po
  3853. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3854. Removed possible values from the text.
  3855. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  3856. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3857. Removed unused preferences:
  3858. PREF_NO_PREALLOCATION
  3859. PREF_STDOUT_LOG
  3860. PREF_TRACKER_MAX_TRIES
  3861. PREF_DIRECT_DOWNLOAD_TIMEOUT
  3862. PREF_MIN_SEGMENT_SIZE
  3863. * src/option_processing.cc
  3864. * src/prefs.cc
  3865. * src/prefs.h
  3866. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3867. Integrated HelpItem into OptionParser to ease the workload for adding
  3868. new options. Removed default value from usage text.
  3869. * src/HelpItem.cc: Removed.
  3870. * src/HelpItem.h: Removed.
  3871. * src/HelpItemFactory.cc: Removed.
  3872. * src/HelpItemFactory.h: Removed.
  3873. * src/Makefile.am
  3874. * src/Makefile.in
  3875. * src/NameMatchOptionHandler.h
  3876. * src/OptionHandler.cc
  3877. * src/OptionHandler.h
  3878. * src/OptionHandlerFactory.cc
  3879. * src/OptionHandlerImpl.h
  3880. * src/OptionParser.cc
  3881. * src/OptionParser.h
  3882. * src/TagContainer.cc: Removed.
  3883. * src/TagContainer.h: Removed.
  3884. * src/TaggedItem.cc: Removed.
  3885. * src/TaggedItem.h: Removed.
  3886. * src/main.cc
  3887. * src/option_processing.cc
  3888. * src/usage_text.h
  3889. * src/version_usage.cc
  3890. * test/HelpItemTest.cc: Removed.
  3891. * test/Makefile.am
  3892. * test/Makefile.in
  3893. * test/OptionHandlerTest.cc
  3894. * test/OptionParserTest.cc
  3895. * test/TagContainerTest.cc: Removed.
  3896. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3897. Moved `TransferStat stat = ...' to inside the `if' clause.
  3898. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  3899. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3900. Fixed the bug that a block in a piece is requested when same block is
  3901. already requested to the same peer in end game mode.
  3902. * src/BtRequestFactory.h
  3903. * src/DefaultBtInteractive.cc
  3904. * src/DefaultBtRequestFactory.cc
  3905. * src/DefaultBtRequestFactory.h
  3906. * src/DefaultPieceStorage.cc
  3907. * src/DefaultPieceStorage.h
  3908. * src/PieceStorage.h
  3909. * src/UnknownLengthPieceStorage.cc
  3910. * src/UnknownLengthPieceStorage.h
  3911. * test/DefaultBtRequestFactoryTest.cc
  3912. * test/DefaultPieceStorageTest.cc
  3913. * test/MockBtRequestFactory.h
  3914. * test/MockPieceStorage.h
  3915. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3916. Removed _uploadLength and _downloadLength from PeerSessionResource
  3917. and use PeerStat::_sessionUploadLength and
  3918. PeerStat::_sessionDownloadLength.
  3919. * src/PeerSessionResource.cc
  3920. * src/PeerSessionResource.h
  3921. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3922. Fixed the bug that prefixLength of split bucket which doesn't include
  3923. local node ID is incremented.
  3924. * src/DHTBucket.cc
  3925. * src/DHTBucket.h
  3926. * test/DHTBucketTest.cc
  3927. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3928. Added cookies.sqlite to EXTRA_DIST
  3929. * test/Makefile.am
  3930. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3931. Added Turkish translation. Updated French, German, Russian and
  3932. Simplified Chinese translations. Thanks to all translators.
  3933. * po/LINGUAS
  3934. * po/de.po
  3935. * po/fr.po
  3936. * po/ru.po
  3937. * po/tr.po
  3938. * po/zh_CN.po
  3939. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3940. Added deliminating text to the beginning of the log so that one can find
  3941. where the log starts easily.
  3942. * src/main.cc
  3943. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3944. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  3945. to fix compile error when async DNS is not enabled by configuration.
  3946. * src/AbstractCommand.cc
  3947. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3948. If establishing conneciton to a server is failed, then mark error on
  3949. its ServerStat.
  3950. Added the cause of error to log when error event occurred.
  3951. Moved message string to message.h for translation.
  3952. * src/AbstractCommand.cc
  3953. * src/AbstractCommand.h
  3954. * src/FtpNegotiationCommand.cc
  3955. * src/HttpRequestCommand.cc
  3956. * src/PeerAbstractCommand.cc
  3957. * src/message.h
  3958. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3959. Added the function to get error message from socket.
  3960. * src/SocketCore.cc
  3961. * src/SocketCore.h
  3962. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3963. Added convenient method RequestGroupMan::getOrCreateServerStat()
  3964. * src/RequestGroupMan.cc
  3965. * src/RequestGroupMan.h
  3966. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3967. If error event is received in epoll, then abort download immediately.
  3968. * src/AbstractCommand.cc
  3969. * src/Command.cc
  3970. * src/Command.h
  3971. * src/DownloadEngine.cc
  3972. * src/PeerAbstractCommand.cc
  3973. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3974. Added usage message for --uri-selector, --server-stat-of,
  3975. --server-stat-in, --server-stat-timeout options.
  3976. * src/HelpItemFactory.cc
  3977. * src/usage_text.h
  3978. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3979. Added upper limit of FTP response buffer. The current implementation
  3980. uses 4096bytes as a limit.
  3981. * src/FtpConnection.cc
  3982. * src/FtpConnection.h
  3983. * test/FtpConnectionTest.cc
  3984. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3985. Use non-blocking socket for TCP communication to avoid possible
  3986. blocking due to buffer full.
  3987. * src/AbstractProxyRequestCommand.cc
  3988. * src/FtpConnection.cc
  3989. * src/FtpConnection.h
  3990. * src/FtpNegotiationCommand.cc
  3991. * src/FtpNegotiationCommand.h
  3992. * src/HttpConnection.cc
  3993. * src/HttpConnection.h
  3994. * src/HttpRequestCommand.cc
  3995. * src/InitiatorMSEHandshakeCommand.cc
  3996. * src/InitiatorMSEHandshakeCommand.h
  3997. * src/MSEHandshake.cc
  3998. * src/MSEHandshake.h
  3999. * src/Makefile.am
  4000. * src/PeerConnection.cc
  4001. * src/PeerConnection.h
  4002. * src/PeerInteractionCommand.cc
  4003. * src/PeerListenCommand.cc
  4004. * src/ReceiverMSEHandshakeCommand.cc
  4005. * src/ReceiverMSEHandshakeCommand.h
  4006. * src/SocketBuffer.cc
  4007. * src/SocketBuffer.h
  4008. * src/SocketCore.cc
  4009. * src/SocketCore.h
  4010. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4011. Call setStatusRealtime() in constructor.
  4012. * src/RealtimeCommand.cc
  4013. * src/RealtimeCommand.h
  4014. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4015. Call Download::setNoWait(true) to execute newly created command without
  4016. a pause.
  4017. * src/AbstractCommand.cc
  4018. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4019. Added --max-file-not-found=NUM option. If aria2 receives `file not
  4020. found' error from HTTP/FTP server NUM times without getting single
  4021. bytes of data, then force the download to fail.
  4022. Basically aria2 tris all URIs available. So if long list of URIs are
  4023. specified in Metalink, then aria2 will take a long time to fail
  4024. eventually if all URIs are outdated. This option eases this situation
  4025. to limit the number of servers to try.
  4026. * src/FtpNegotiationCommand.cc
  4027. * src/HelpItemFactory.cc
  4028. * src/HttpResponseCommand.cc
  4029. * src/OptionHandlerFactory.cc
  4030. * src/PeerStat.h
  4031. * src/RequestGroup.cc
  4032. * src/RequestGroup.h
  4033. * src/SegmentMan.cc
  4034. * src/SegmentMan.h
  4035. * src/option_processing.cc
  4036. * src/prefs.cc
  4037. * src/prefs.h
  4038. * src/usage_text.h
  4039. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4040. Fixed the bug that bulkReceiveResponse() reads all received data as a
  4041. response even if more than one response is in it.
  4042. * src/FtpConnection.cc
  4043. * src/FtpConnection.h
  4044. * test/FtpConnectionTest.cc
  4045. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4046. Merged from stable-0.15
  4047. * m4/libcares.m4
  4048. Use pkg-config
  4049. * m4/sqlite3.m4
  4050. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4051. Removed unnecessary if statement.
  4052. * src/DefaultPieceStorage.cc (initPieceStorage)
  4053. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4054. Added --connect-timeout option to specify connect timeout in seconds.
  4055. This option is in effect for HTTP/FTP/proxy server. The timeout for
  4056. connecting to BitTorrent peer is not controlled by this option.
  4057. * src/AbstractProxyRequestCommand.cc
  4058. * src/FtpNegotiationCommand.cc
  4059. * src/HelpItemFactory.cc
  4060. * src/HttpRequestCommand.cc
  4061. * src/OptionHandlerFactory.cc
  4062. * src/option_processing.cc
  4063. * src/prefs.cc
  4064. * src/prefs.h
  4065. * src/usage_text.h
  4066. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4067. Added help message for -R option.
  4068. * src/HelpItemFactory.cc
  4069. * src/usage_text.h
  4070. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4071. Added the message that the time is in local time zone.
  4072. * src/RequestGroup.cc
  4073. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4074. Implemented the ability to get timestamp from remote FTP server using
  4075. MDTM command described in RFC3659.
  4076. * src/FtpConnection.cc
  4077. * src/FtpConnection.h
  4078. * src/FtpNegotiationCommand.cc
  4079. * src/FtpNegotiationCommand.h
  4080. * test/FtpConnectionTest.cc
  4081. * test/Makefile.am
  4082. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4083. Implemented the ability to get timestamp from remote HTTP server and
  4084. apply it to local file. To enable this feature, --remote-time option
  4085. is added. No usage text has been written yet.
  4086. If several servers returns difference timestamp, then aria2 uses latest
  4087. one.
  4088. * src/CopyDiskAdaptor.cc
  4089. * src/CopyDiskAdaptor.h
  4090. * src/DirectDiskAdaptor.cc
  4091. * src/DirectDiskAdaptor.h
  4092. * src/DiskAdaptor.h
  4093. * src/File.cc
  4094. * src/File.h
  4095. * src/HttpHeader.cc
  4096. * src/HttpHeader.h
  4097. * src/HttpResponse.cc
  4098. * src/HttpResponse.h
  4099. * src/HttpResponseCommand.cc
  4100. * src/HttpResponseCommand.h
  4101. * src/MultiDiskAdaptor.cc
  4102. * src/MultiDiskAdaptor.h
  4103. * src/OptionHandlerFactory.cc
  4104. * src/RequestGroup.cc
  4105. * src/RequestGroup.h
  4106. * src/RequestGroupMan.cc
  4107. * src/option_processing.cc
  4108. * src/prefs.cc
  4109. * src/prefs.h
  4110. * test/CopyDiskAdaptorTest.cc
  4111. * test/FileTest.cc
  4112. * test/Makefile.am
  4113. * test/Makefile.in
  4114. * test/MultiDiskAdaptorTest.cc
  4115. * test/TestUtil.cc
  4116. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4117. Fixed the bug that DiskWriterEntry is not created when its
  4118. FileEntry.isRequested() is false and it doesn't share a piece with
  4119. other FileEntries that are requested. This bug causes segmentation fault
  4120. in the end.
  4121. * src/MultiDiskAdaptor.cc
  4122. * src/MultiDiskAdaptor.h
  4123. * src/MultiFileAllocationIterator.cc
  4124. * test/MultiDiskAdaptorTest.cc
  4125. * test/MultiFileAllocationIteratorTest.cc
  4126. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4127. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  4128. called if the number of file entries are greater than max open files.
  4129. * src/AbstractSingleDiskAdaptor.cc
  4130. * src/AbstractSingleDiskAdaptor.h
  4131. * src/DiskAdaptor.h
  4132. * src/MultiDiskAdaptor.cc
  4133. * src/MultiDiskAdaptor.h
  4134. * test/MultiDiskAdaptorTest.cc
  4135. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4136. Added a constuctor that receives struct timeval.
  4137. Added operator<.
  4138. * src/TimeA2.cc
  4139. * src/TimeA2.h
  4140. * test/TimeTest.cc
  4141. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4142. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  4143. * src/CookieParser.cc
  4144. * test/CookieParserTest.cc
  4145. * test/HttpResponseTest.cc
  4146. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4147. Implmented the functions to parse date.
  4148. * src/TimeA2.cc
  4149. * src/TimeA2.h
  4150. * test/TimeTest.cc
  4151. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4152. Added "Firefox3 Cookie" feature to FeatureConfig
  4153. * src/FeatureConfig.cc
  4154. * src/FeatureConfig.h
  4155. * test/FeatureConfigTest.cc
  4156. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4157. Bump up version number to 0.16.0b
  4158. * configure.ac
  4159. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4160. Use pkg-config if is is available.
  4161. * m4/openssl.m4
  4162. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4163. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  4164. * src/BtAnnounce.h
  4165. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4166. If an error occurred with a URI, remove identical URI from remaining
  4167. URI list because it is likely that same error occurred in the end and it
  4168. is waste of time.
  4169. * src/AbstractCommand.cc
  4170. * src/RequestGroup.cc
  4171. * src/RequestGroup.h
  4172. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4173. Removed wrong comment.
  4174. * src/DefaultPeerStorage.cc
  4175. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4176. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  4177. Added return value of getpid() to argument of srand() to achieve more
  4178. randomized value.
  4179. * src/SimpleRandomizer.cc
  4180. * src/SimpleRandomizer.h
  4181. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4182. Contact tracker frequently when the number of connections are 0 and
  4183. download is not finished yet.
  4184. * src/ActivePeerConnectionCommand.cc
  4185. * src/BtAnnounce.h
  4186. * src/DefaultBtAnnounce.cc
  4187. * src/DefaultBtAnnounce.h
  4188. * test/MockBtAnnounce.h
  4189. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4190. Moved threshold values to UTPexExtensionMessage.
  4191. * src/DefaultBtInteractive.cc
  4192. * src/Peer.cc
  4193. * src/Peer.h
  4194. * src/UTPexExtensionMessage.cc
  4195. * src/UTPexExtensionMessage.h
  4196. * test/UTPexExtensionMessageTest.cc
  4197. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4198. Added _incoming member to Peer class and made it true if the peer
  4199. initiated connection. Don't add those peer to UTPex message.
  4200. If extended handshake is received, assign _incoming to false.
  4201. * src/DefaultBtInteractive.cc
  4202. * src/HandshakeExtensionMessage.cc
  4203. * src/Peer.cc
  4204. * src/Peer.h
  4205. * src/PeerListenCommand.cc
  4206. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4207. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  4208. Encoding Decoder. Removed size threshold for turning off on the fly
  4209. inflation because resulting file may or may not be inflated depending
  4210. on the file size and I think it is not expected by users.
  4211. This change fixes segmentation fault when Metalink file contains gzipped
  4212. file and its filesize is provided.
  4213. * src/HttpResponseCommand.cc
  4214. * src/HttpResponseCommand.h
  4215. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4216. Made Cookie immutable.
  4217. * src/Cookie.cc
  4218. * src/Cookie.h
  4219. * src/CookieParser.cc
  4220. * src/CookieParser.h
  4221. * src/CookieStorage.cc
  4222. * test/CookieParserTest.cc
  4223. * test/CookieStorageTest.cc
  4224. * test/NsCookieParserTest.cc
  4225. * test/Sqlite3MozCookieParserTest.cc
  4226. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4227. Removed CookieBox, CookieBoxFactory.
  4228. * src/CookieBox.cc
  4229. * src/CookieBox.h
  4230. * src/CookieBoxFactory.cc
  4231. * src/CookieBoxFactory.h
  4232. * src/Makefile.am
  4233. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4234. Use CookieStorage class instead of CookieBox class.
  4235. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  4236. * src/AbstractProxyRequestCommand.cc
  4237. * src/CookieStorage.cc
  4238. * src/DownloadEngine.cc
  4239. * src/DownloadEngine.h
  4240. * src/HttpConnection.cc
  4241. * src/HttpConnection.h
  4242. * src/HttpRequest.cc
  4243. * src/HttpRequest.h
  4244. * src/HttpRequestCommand.cc
  4245. * src/HttpResponse.cc
  4246. * src/HttpResponseCommand.cc
  4247. * src/HttpSkipResponseCommand.cc
  4248. * src/Makefile.am
  4249. * src/MultiUrlRequestInfo.cc
  4250. * src/Request.cc
  4251. * src/Request.h
  4252. * src/main.cc
  4253. * test/AllTest.cc
  4254. * test/CookieStorageTest.cc
  4255. * test/CookieTest.cc
  4256. * test/HttpRequestTest.cc
  4257. * test/HttpResponseTest.cc
  4258. * test/Makefile.am
  4259. * test/NsCookieParserTest.cc
  4260. * test/Sqlite3MozCookieParserTest.cc
  4261. * test/nscookietest.txt
  4262. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4263. Updated
  4264. * test/Cookies.sqlite
  4265. * test/nscookietest.txt
  4266. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4267. Added tests for CookieStorage::load()
  4268. * test/CookieStorageTest.cc
  4269. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4270. Added CookieStorage class which is based on RFC2109 and manages cookies
  4271. more strictly than CookieBox and CookieBoxFactory class.
  4272. * src/CookieStorage.cc
  4273. * src/CookieStorage.h
  4274. * src/Cookie.cc
  4275. * src/Cookie.h
  4276. * test/CookieStorageTest.cc
  4277. * test/CookieTest.cc
  4278. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4279. Fixed the bug that commands are created more than the number of pieces.
  4280. * src/RequestGroup.cc
  4281. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4282. Fixed infinite loop bug in FTP when SIZE command failed.
  4283. * src/FtpNegotiationCommand.cc
  4284. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4285. Removed DirectDiskAdaptorTest.h
  4286. * test/Makefile.am
  4287. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4288. Fixed chunk checksum validation cannot detect trailing garbage data.
  4289. BUG#2074141
  4290. * src/AbstractSingleDiskAdaptor.cc
  4291. * src/AbstractSingleDiskAdaptor.h
  4292. * src/CheckIntegrityEntry.cc
  4293. * src/CheckIntegrityEntry.h
  4294. * src/DiskAdaptor.h
  4295. * src/MultiDiskAdaptor.cc
  4296. * src/MultiDiskAdaptor.h
  4297. * src/RequestGroup.cc
  4298. * test/DirectDiskAdaptorTest.cc
  4299. * test/MultiDiskAdaptorTest.cc
  4300. * test/TestUtil.cc
  4301. * test/TestUtil.h
  4302. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4303. Bump up version number of dht.dat file to 3. In version 3 format, time
  4304. is stored in 64bit, network byte order.
  4305. New build can load old format(version 2) but it saves the file in new
  4306. format. It means once you used new build, your dht.dat becomes
  4307. incompatible with older build.
  4308. * src/DHTRoutingTableDeserializer.cc
  4309. * src/DHTRoutingTableSerializer.cc
  4310. * test/DHTRoutingTableSerializerTest.cc
  4311. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4312. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  4313. * test/Makefile.am
  4314. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4315. Bump up version number of .aria2 control file to 0001.
  4316. New aria2 can still load version 0000 file but it saves the file in
  4317. version 0001 format. It means that new aria2 can resume download
  4318. started by old aria2 but the opposite is not true.
  4319. * src/DefaultBtProgressInfoFile.cc
  4320. * src/DefaultBtProgressInfoFile.h
  4321. * test/DefaultBtProgressInfoFileTest.cc
  4322. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4323. Added ntoh64 and hton64 as inline functions.
  4324. * src/Util.cc
  4325. * test/UtilTest.cc
  4326. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4327. Added sqlite3 depenency and Firefox3 cookie support.
  4328. * README
  4329. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4330. State that firefox3 cookie is supported explicitly in the usage.
  4331. * src/usage_text.h
  4332. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4333. Externalized message.
  4334. * src/RequestGroupMan.cc
  4335. * src/message.h
  4336. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4337. Save temporary file first and rename to the destination on success.
  4338. Added test cases.
  4339. * src/RequestGroupMan.cc
  4340. * test/RequestGroupManTest.cc
  4341. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4342. Fixed the bug that the number of connected peer is exceeding the limit
  4343. (55 by default) in seeding mode.
  4344. Multiplied 0.8 to _maxUploadSpeedLimit.
  4345. * src/ActivePeerConnectionCommand.cc
  4346. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4347. Clear table item.
  4348. * src/Dictionary.cc
  4349. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4350. Fixed error handling of lseek.
  4351. * src/AbstractDiskWriter.cc
  4352. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4353. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  4354. style cookie file.
  4355. * src/usage_text.h
  4356. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4357. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  4358. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  4359. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  4360. * src/Util.cc
  4361. * src/Util.h
  4362. * src/CookieParser.cc
  4363. * test/UtilTest.cc
  4364. * test/CookieParserTest.cc
  4365. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4366. Separate the implementation to load old mozilla format of cookie to
  4367. NsCookieParser class.
  4368. * src/CookieBoxFactory.cc
  4369. * src/CookieBoxFactory.h
  4370. * src/NsCookieParser.cc
  4371. * src/NsCookieParser.h
  4372. * test/NsCookieParserTest.cc
  4373. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4374. Made parse() const
  4375. * src/Sqlite3MozCookieParser.cc
  4376. * src/Sqlite3MozCookieParser.h
  4377. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4378. Added firefox3 cookie support based on the patch submitted by
  4379. tizianomueller.
  4380. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  4381. this functionality.
  4382. * configure.ac
  4383. * m4/sqlite3.m4
  4384. * src/CookieBoxFactory.cc
  4385. * src/CookieBoxFactory.h
  4386. * src/Makefile.am
  4387. * src/Makefile.in
  4388. * src/Sqlite3MozCookieParser.cc
  4389. * src/Sqlite3MozCookieParser.h
  4390. * src/main.cc
  4391. * test/CookieBoxFactoryTest.cc
  4392. * test/Makefile.am
  4393. * test/Makefile.in
  4394. * test/Sqlite3MozCookieParserTest.cc
  4395. * test/badcookies.sqlite
  4396. * test/cookies.sqlite
  4397. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4398. Added Danish and Greek translations.
  4399. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  4400. Great thanks to all translators.
  4401. * po/LINGUAS
  4402. * po/el.po
  4403. * po/da.po
  4404. * po/es.po
  4405. * po/ca.po
  4406. * po/nn.po
  4407. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4408. Fixed man page: --follow-bittorrent should be --follow-torrent
  4409. * doc/aria2c.1.txt
  4410. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4411. Fixed: numCommand is less than the value specified in -C option.
  4412. * src/RequestGroup.cc
  4413. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4414. Fixed occasional assertion failure in PieceSegment.
  4415. Calling PieceStorage::getMissingPiece(size_t) was missing after
  4416. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  4417. creation of duplicate segments and one of the segment was finished then
  4418. assertion failure was caused.
  4419. * src/SegmentMan.cc
  4420. * test/SegmentManTest.cc
  4421. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4422. Added options to load/save the server's performance/status to a file
  4423. and the timeout to drop their data.
  4424. --server-stat-of=FILE specifies the file to which performance data
  4425. is saved.
  4426. --server-stat-if=FILE specifies the file to read previously saved
  4427. by --server-stat-of option. Might be used with --uri-selector=feedback.
  4428. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  4429. TIMEOUT is specified in seconds and the default value is 24hours.
  4430. * src/MultiUrlRequestInfo.cc
  4431. * src/OptionHandlerFactory.cc
  4432. * src/RequestGroupMan.cc
  4433. * src/RequestGroupMan.h
  4434. * src/ServerStatMan.cc
  4435. * src/ServerStatMan.h
  4436. * src/option_processing.cc
  4437. * src/prefs.cc
  4438. * src/prefs.h
  4439. * test/ServerStatManTest.cc
  4440. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4441. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  4442. * src/ServerStatMan.cc
  4443. * src/ServerStatMan.h
  4444. * test/ServerStatManTest.cc
  4445. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4446. Implemented ServerStatMan::load(...) function and its test case.
  4447. * src/ServerStat.cc
  4448. * src/ServerStat.h
  4449. * src/ServerStatMan.cc
  4450. * test/ServerStatManTest.cc
  4451. * test/ServerStatTest.cc
  4452. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4453. Use time_t instead of int32_t. Use int64_t where milli second is
  4454. expected.
  4455. * src/TimeA2.cc
  4456. * src/TimeA2.h
  4457. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4458. Implemented ServerStatMan::save(...) function and its test case.
  4459. * src/ServerStat.cc
  4460. * src/ServerStat.h
  4461. * src/ServerStatMan.cc
  4462. * src/ServerStatMan.h
  4463. * test/ServerStatManTest.cc
  4464. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4465. Now aria2 uses name attribute in Metalink as local filename in
  4466. BitTorrent downloads. BUG#2033999
  4467. * src/BtContext.h
  4468. * src/BtDependency.cc
  4469. * src/DefaultBtContext.cc
  4470. * src/DefaultBtContext.h
  4471. * src/SingleFileDownloadContext.cc
  4472. * src/SingleFileDownloadContext.h
  4473. * test/BtDependencyTest.cc
  4474. * test/DefaultBtContextTest.cc
  4475. * test/MockBtContext.h
  4476. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4477. Added AC_C_BIGENDIAN
  4478. * src/configure.ac
  4479. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4480. Limited numCommand less than or equal to the number of piece.
  4481. * src/RequestGroup.cc
  4482. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4483. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  4484. directive.
  4485. * test/DefaultPieceStorageTest.cc
  4486. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4487. Fixed memory leak in test code
  4488. * test/AnnounceListTest.cc
  4489. * test/DefaultPeerListProcessorTest.cc
  4490. * test/DefaultPeerStorageTest.cc
  4491. * test/MetaFileUtilTest.cc
  4492. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4493. Fixed wrong argument passing to BitfieldMan::isBitSet()
  4494. * src/DefaultPieceStorage.cc
  4495. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4496. Initialized _directIOAllowed
  4497. * src/MultiDiskAdaptor.cc
  4498. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4499. Fixed memory leak
  4500. * src/GZipDecoder.cc
  4501. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4502. Fixed memory leak
  4503. * src/MetalinkParserStateMachine.cc
  4504. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4505. Fixed memory leak
  4506. * src/Dictionary.cc
  4507. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4508. Fixed memory leak
  4509. * src/IteratableChunkChecksumValidator.h
  4510. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4511. Fixed unmatched malloc/free.
  4512. * src/IteratableChunkChecksumValidator.cc
  4513. * src/IteratableChecksumValidator.cc
  4514. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4515. Removed max chunk size check. This change fixes BUG#2040169
  4516. * src/ChunkedDecoder.cc
  4517. * src/ChunkedDecoder.h
  4518. * test/ChunkedDecoderTest.cc
  4519. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4520. Implemented download speed based URI selection algorithm.
  4521. Introduced new option --uri-selector.
  4522. If --uri-selector=feedback is given, aria2 uses download speed observed
  4523. in the previous downloads and chooses fastest server in the URI list.
  4524. Currently at most 10 URIs are considered to introduce randomeness for
  4525. finding better servers. The speed is average download speed in the
  4526. downloads.
  4527. On the other hand, if --uri-selector=inorder is given, which is default,
  4528. URI is tried in order in URI list.
  4529. The usage text for the new option has not been written yet.
  4530. * src/AbstractCommand.cc
  4531. * src/DownloadCommand.cc
  4532. * src/DownloadEngine.cc
  4533. * src/DownloadEngineFactory.cc
  4534. * src/InOrderURISelector.cc
  4535. * src/InOrderURISelector.h
  4536. * src/OptionHandlerFactory.cc
  4537. * src/PeerStat.h
  4538. * src/RequestGroup.cc
  4539. * src/RequestGroup.h
  4540. * src/RequestGroupMan.cc
  4541. * src/RequestGroupMan.h
  4542. * src/SegmentMan.cc
  4543. * src/SegmentMan.h
  4544. * src/ServerStat.cc
  4545. * src/ServerStat.h
  4546. * src/ServerStatMan.cc
  4547. * src/ServerStatMan.h
  4548. * src/ServerStatURISelector.cc
  4549. * src/ServerStatURISelector.h
  4550. * src/URISelector.h
  4551. * src/option_processing.cc
  4552. * src/prefs.cc
  4553. * src/prefs.h
  4554. * test/InOrderURISelectorTest.cc
  4555. * test/RequestGroupManTest.cc
  4556. * test/ServerStatManTest.cc
  4557. * test/ServerStatURISelectorTest.cc
  4558. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4559. * Release 0.15.1+2
  4560. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4561. Bump up version number to 0.15.1+2
  4562. * configure.ac
  4563. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4564. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  4565. * m4/aria2_arg.m4
  4566. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4567. * Release 0.15.1+1
  4568. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4569. Bump up version number to 0.15.1+1
  4570. * configure.ac
  4571. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4572. Fixed the bug that causes segmentaion fault when resuming download
  4573. using metalink without size tag. Reproducible only using HTTP URI.
  4574. * src/HttpResponseCommand.cc
  4575. * src/FtpNegotiationCommand.cc
  4576. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4577. * Release 0.15.1
  4578. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4579. Updated Bulgarian and French translations, thanks to all translators.
  4580. * po/bg.po
  4581. * po/fr.po
  4582. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4583. Bump up version number to 0.15.1
  4584. * configure.ac
  4585. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4586. Avoid repeated call of gettimeofday() when calculating speed.
  4587. * src/SpeedCalc.cc
  4588. * src/SpeedCalc.h
  4589. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4590. Removed writable check when socket's send buffer is full in BitTorrent
  4591. downloads to lower CPU usage.
  4592. * src/PeerInteractionCommand.cc
  4593. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4594. Fixed broken gzip inflation.
  4595. Turn off segmented downloading if gzip content is smaller than or equal
  4596. to 1MiB and inflate the data on the fly, because HTTP response header
  4597. doesn't contain the length of inflated file we can't determin where
  4598. the chunk of data should be written.
  4599. On the other hand, if gzip content is larger than 1MB, then turn off
  4600. on the fly inflation, because some servers returns "content-type: gzip"
  4601. for *.tgz, *.gz files.
  4602. * src/DownloadCommand.cc
  4603. * src/HttpResponseCommand.cc
  4604. * src/HttpResponseCommand.h
  4605. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4606. Applied tizianomueller's patch to fix compile error.
  4607. * test/BitfieldManTest.cc
  4608. * test/BtRequestMessageTest.cc
  4609. * test/DefaultBtContextTest.cc
  4610. * test/DefaultDiskWriterTest.cc
  4611. * test/DefaultPieceStorageTest.cc
  4612. * test/HttpHeaderProcessorTest.cc
  4613. * test/HttpResponseTest.cc
  4614. * test/Metalink2RequestGroupTest.cc
  4615. * test/MetalinkParserControllerTest.cc
  4616. * test/MetalinkProcessorTest.cc
  4617. * test/PeerSessionResourceTest.cc
  4618. * test/UtilTest.cc
  4619. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4620. * Release 0.15.0
  4621. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4622. Reordered src files in POTFILES.in so that usage text appears first.
  4623. * po/POTFILES.in
  4624. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4625. Bump up version number to 0.15.0
  4626. * configure.ac
  4627. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4628. Added Bulgarian translation.
  4629. Updated Catalan, Spanish, French and Japanese translations.
  4630. Thanks to all translators.
  4631. * po/LINGUAS
  4632. * po/bg.po
  4633. * po/ca.po
  4634. * po/es.po
  4635. * po/fr.po
  4636. * po/ja.po
  4637. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4638. Updated feature list. Added libz for dependency section.
  4639. Added a description about unit testing using CppUnit.
  4640. * README
  4641. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4642. Added a test for libz. Quoted where it is necessary.
  4643. * build_test.sh
  4644. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4645. Added GZip to `Enabled Features' list.
  4646. * src/FeatureConfig.cc
  4647. * src/FeatureConfig.h
  4648. * test/FeatureConfigTest.cc
  4649. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4650. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  4651. the transfer has not yet started.
  4652. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  4653. * src/SegmentMan.cc
  4654. * src/SegmentMan.h
  4655. * test/SegmentManTest.cc
  4656. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4657. Cache last calculated average download/upload speed.
  4658. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  4659. cached value.
  4660. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  4661. * src/PeerStat.h
  4662. * src/SpeedCalc.cc
  4663. * src/SpeedCalc.h
  4664. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4665. Call parseUrl directly.
  4666. * src/Request.cc (resetUrl)
  4667. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4668. Supported absolute/relative path in Location header field.
  4669. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  4670. * src/HttpHeader.cc
  4671. * src/HttpHeader.h
  4672. * src/HttpResponse.cc
  4673. * src/HttpSkipResponseCommand.cc
  4674. * src/Request.cc
  4675. * test/HttpHeaderTest.cc
  4676. * test/HttpResponseTest.cc
  4677. * test/RequestTest.cc
  4678. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4679. Changed help text for --load-cookie option.
  4680. * doc/aria2c.1.txt
  4681. * src/usage_text.h
  4682. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4683. Regenerated test/Makefile.in to remove stale ChangeLog.
  4684. * test/Makefile.in
  4685. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4686. Updated po files.
  4687. * po/aria2c.pot
  4688. * po/*.po
  4689. * po/*.gmo
  4690. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4691. Bump up version number to 0.15.0b
  4692. * configure.ac
  4693. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4694. Externalize messages.
  4695. * src/RequestGroupMan.cc
  4696. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  4697. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4698. Use File::exists() instead of File::isFile() to allow non-regular file
  4699. such as block special files.
  4700. * src/AbstractDiskWriter.cc
  4701. * src/MultiDiskWriter.cc
  4702. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4703. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  4704. * src/gai_strerror.h
  4705. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4706. Fixed compile error. Thanks gknauf for the patch.
  4707. * src/asctime_r.c
  4708. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4709. Included asctime_r.h from a2time.h.
  4710. * src/a2time.h
  4711. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4712. Added a message "aria2 doesn't verify signature" to log message when
  4713. signature file is saved.
  4714. * src/RequestGroupMan.cc
  4715. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4716. Added the ability to save signature when download is completed if
  4717. signature is available. The filename of signature file is the path to
  4718. download file followed by ".sig". If it already exists, then signature
  4719. will not be saved.
  4720. * src/RequestGroupMan.cc
  4721. * src/Signature.cc
  4722. * test/SignatureTest.cc
  4723. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4724. Updated the descriptions for --bt-seed-unverified.
  4725. * doc/aria2c.1
  4726. * doc/aria2c.1.html
  4727. * doc/aria2c.1.txt
  4728. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4729. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  4730. that this is not going to verify files using piece hashes.
  4731. * src/HelpItemFactory.cc
  4732. * src/OptionHandlerFactory.cc
  4733. * src/RequestGroup.cc
  4734. * src/option_processing.cc
  4735. * src/prefs.cc
  4736. * src/prefs.h
  4737. * src/usage_text.h
  4738. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4739. Added the ability to retrieve signature from Metalink file.
  4740. A retrieved signature is stored in Signature class and it is held by
  4741. DownloadContext class. Note that aria2 doesn't verify signature.
  4742. * src/DownloadContext.cc
  4743. * src/DownloadContext.h
  4744. * src/Makefile.am
  4745. * src/Makefile.in
  4746. * src/Metalink2RequestGroup.cc
  4747. * src/MetalinkEntry.cc
  4748. * src/MetalinkEntry.h
  4749. * src/MetalinkParserController.cc
  4750. * src/MetalinkParserController.h
  4751. * src/MetalinkParserStateMachine.cc
  4752. * src/MetalinkParserStateMachine.h
  4753. * src/Signature.cc
  4754. * src/Signature.h
  4755. * src/SignatureMetalinkParserState.cc
  4756. * src/SignatureMetalinkParserState.h
  4757. * src/VerificationMetalinkParserState.cc
  4758. * src/VerificationMetalinkParserState.h
  4759. * test/Metalink2RequestGroupTest.cc
  4760. * test/MetalinkParserControllerTest.cc
  4761. * test/MetalinkProcessorTest.cc
  4762. * test/test.xml
  4763. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4764. Close DiskAdaptor after renaming file.
  4765. * src/RequestGroup.cc
  4766. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4767. Corrected indentation
  4768. * src/DefaultBtProgressInfoFile.cc
  4769. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4770. Moved the calls of std::ios::exceptions() inside of try-catch block
  4771. because if an error occurred in constructor of std::fstream, then
  4772. exception is thrown immediately when std::ios::exceptions() is called
  4773. which results unhandled exception and aria2c aborts.
  4774. * src/DefaultBtProgressInfoFile.cc
  4775. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4776. Added the test for the previous change in DefaultBtContext.cc
  4777. * test/DefaultBtContextTest.cc
  4778. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4779. Fixed the bug that causes infinite loop when the number of pieces are
  4780. fewer than allowed fast set size which is 10 by default.
  4781. * src/DefaultBtContext.cc
  4782. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4783. Updated the descriptions for -j, -s. Added --bt-seed.
  4784. * doc/aria2c.1
  4785. * doc/aria2c.1.html
  4786. * doc/aria2c.1.txt
  4787. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4788. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  4789. aria2 seeds previously downloaded files without validating piece hashs.
  4790. * src/HelpItemFactory.cc
  4791. * src/OptionHandlerFactory.cc
  4792. * src/RequestGroup.cc
  4793. * src/option_processing.cc
  4794. * src/prefs.cc
  4795. * src/prefs.h
  4796. * src/usage_text.h
  4797. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4798. Updated DESCRIPTION of man page.
  4799. * doc/aria2c.1
  4800. * doc/aria2c.1.html
  4801. * doc/aria2c.1.txt
  4802. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4803. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  4804. Don't define `struct addrinfo' when __sun is defined.
  4805. * src/getaddrinfo.h
  4806. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4807. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  4808. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  4809. second argument is of type `struct _stati64'. Otherwise it is defined as
  4810. `struct stat'.
  4811. * src/AbstractDiskWriter.cc
  4812. * src/File.cc
  4813. * src/File.h
  4814. * src/a2io.h
  4815. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4816. Fixed the compile error in hurd-i386
  4817. See the original bug report:
  4818. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  4819. * src/a2io.h
  4820. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4821. Code cleanup.
  4822. * src/PeerAbstractCommand.cc
  4823. * src/PeerAbstractCommand.h
  4824. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4825. Removed TransferEncoding.
  4826. * src/DownloadCommand.cc
  4827. * src/DownloadCommand.h
  4828. * src/HttpResponseCommand.cc
  4829. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4830. Updated po files.
  4831. * po/aria2c.pot
  4832. * po/*.po
  4833. * po/*.gmo
  4834. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4835. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  4836. * src/A2STR.cc
  4837. * src/A2STR.h
  4838. * src/ChunkedDecoder.cc
  4839. * src/ChunkedDecoder.h
  4840. * src/ChunkedEncoding.cc: Removed
  4841. * src/ChunkedEncoding.h: Removed
  4842. * src/DownloadCommand.cc
  4843. * src/DownloadCommand.h
  4844. * src/HttpDownloadCommand.cc
  4845. * src/HttpResponse.cc
  4846. * src/HttpResponse.h
  4847. * src/HttpResponseCommand.cc
  4848. * src/HttpSkipResponseCommand.cc
  4849. * src/HttpSkipResponseCommand.h
  4850. * src/Makefile.am
  4851. * src/TransferEncoding.h: Removed
  4852. * test/ChunkedDecoderTest.cc
  4853. * test/ChunkedEncodingTest.cc: Removed
  4854. * test/HttpResponseTest.cc
  4855. * test/Makefile.am
  4856. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4857. Use append instead of insert.
  4858. * src/GZipDecoder.cc
  4859. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4860. Updated doc
  4861. * src/Decoder.h
  4862. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4863. Updated usage text for -s option.
  4864. * src/usage_text.h
  4865. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4866. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  4867. * src/Request.cc
  4868. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4869. Cleaned up configure.ac.
  4870. * configure.ac
  4871. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4872. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  4873. AC_ARG_ENABLE.
  4874. * configure.ac
  4875. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4876. Added gzip, deflate decoding support in HTTP using libz. If compiled
  4877. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  4878. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  4879. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  4880. fly and writes decoded data to a local disk.
  4881. * README
  4882. * README.html
  4883. * configure.ac
  4884. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  4885. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  4886. * m4/libz.m4
  4887. * src/Decoder.h
  4888. * src/DownloadCommand.cc
  4889. * src/DownloadCommand.h
  4890. * src/Exception.h
  4891. * src/GZipDecoder.cc
  4892. * src/GZipDecoder.h
  4893. * src/HttpHeader.cc
  4894. * src/HttpHeader.h
  4895. * src/HttpRequest.cc
  4896. * src/HttpRequest.h
  4897. * src/HttpResponse.cc
  4898. * src/HttpResponse.h
  4899. * src/HttpResponseCommand.cc
  4900. * src/Makefile.am
  4901. * test/GZipDecoderTest.cc
  4902. * test/HttpRequestTest.cc
  4903. * test/HttpResponseTest.cc
  4904. * test/Makefile.am
  4905. * test/Makefile.in
  4906. * test/gzip_decode_test.gz
  4907. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4908. Clarified usage of -j option.
  4909. * src/usage_text.h
  4910. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4911. Disabled getting size from the response of RETR.
  4912. If SIZE command failed, then disable resuming and segmented downloading.
  4913. * src/FtpConnection.cc
  4914. * src/FtpConnection.h
  4915. * src/FtpNegotiationCommand.cc
  4916. * src/FtpNegotiationCommand.h
  4917. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4918. Use digits to find first byte of file size, which makes the intention
  4919. of the code clearer.
  4920. * src/FtpConnection.cc
  4921. Don't call validateTotalLength() when size is 0.
  4922. * src/FtpNegotiationCommand.cc
  4923. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4924. Updated po files.
  4925. * po/aria2c.pot
  4926. * po/*.gmo
  4927. * po/*.po
  4928. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4929. Clarified usage text for --split option.
  4930. * src/usage_text.h
  4931. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4932. Bump up version number to 0.15.0dev. "dev" means "development"
  4933. version, which means I started the development of the next release!
  4934. * src/configure.ac
  4935. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4936. If FTP server returns negative response with REST raw command and
  4937. requested range is not 0, throw exception. If requested range is 0,
  4938. continue download a file from 0 byte.
  4939. * src/FtpNegotiationCommand.cc
  4940. * src/FtpNegotiationCommand.h
  4941. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4942. Supported FTP server which don't recognize SIZE raw command.
  4943. If SIZE raw command is failed, aria2 will try to get file size
  4944. from the response of RETR raw command. If both attempts are failed,
  4945. then resuming and segmented downloading are disabled.
  4946. * src/FtpConnection.cc
  4947. * src/FtpConnection.h
  4948. * src/FtpNegotiationCommand.cc
  4949. * src/FtpNegotiationCommand.h
  4950. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4951. * Release 0.14.0+1
  4952. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4953. Bump up version number to 0.14.0+1
  4954. * src/configure.ac
  4955. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4956. Fixed the code that refers static member variable from non-static
  4957. context.
  4958. * src/DefaultPeerStorage.cc
  4959. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4960. * Release 0.14.0
  4961. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4962. Added build test script
  4963. * build_test.sh
  4964. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4965. Updated ja.po
  4966. * src/ja.po
  4967. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4968. Bump up version number to 0.14.0
  4969. * src/configure.ac
  4970. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4971. Updated ja.po and fr.po. Great thanks for french translators and
  4972. Sebastien WILLEMIJNS.
  4973. * po/fr.po
  4974. * po/ja.po
  4975. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4976. Added configure option to enable/disable epoll support.
  4977. * configure.ac
  4978. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4979. Updated man page.
  4980. * doc/aria2c.1.txt
  4981. * doc/aria2c.1
  4982. * doc/aria2c.1.html
  4983. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4984. Added missing default value '5' to the usage of --split option.
  4985. * src/HelpItemFactory.cc
  4986. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4987. Filled up pieces based on the number of missing blocks, rather than
  4988. simplay the number of piece * block length.
  4989. * src/BtRequestFactory.h
  4990. * src/DefaultBtInteractive.cc
  4991. * src/DefaultBtInteractive.h
  4992. * src/DefaultBtRequestFactory.cc
  4993. * src/DefaultBtRequestFactory.h
  4994. * src/Piece.cc
  4995. * src/Piece.h
  4996. * test/BitfieldManTest.cc
  4997. * test/DefaultBtRequestFactoryTest.cc
  4998. * test/MockBtRequestFactory.h
  4999. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5000. Made _epEvents a member variable.
  5001. * src/DownloadEngine.cc
  5002. * src/DownloadEngine.h
  5003. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5004. Cancel download if http redirect is bounded more than 20 times.
  5005. * src/AbstractCommand.cc
  5006. * src/HttpSkipResponseCommand.cc
  5007. * src/Request.cc
  5008. * src/Request.h
  5009. * test/RequestTest.cc
  5010. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5011. Fixed unhandled exception(removed keyword `new').
  5012. * src/SocketCore.cc (initEPOLL)
  5013. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5014. Removed visit(const MetaEntry*)
  5015. * src/MetaEntryVisitor.h:
  5016. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  5017. and made them virtual.
  5018. * src/BencodeVisitor.h
  5019. * src/BencodeVisitor.cc
  5020. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5021. Updated po files.
  5022. * po/aria2c.pot
  5023. * po/*.po
  5024. * po/*.gmo
  5025. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5026. Moved the call setWriteCheckSocket inside the previous clause to reduce
  5027. the number of socket to watch out.
  5028. * src/PeerInteractionCommand.cc
  5029. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5030. When there is not enough space in disk when writing a chunk of data,
  5031. aria2 now prints the message to the console to warn user and aborts
  5032. its download. Not all downloads are canceled because some downloads
  5033. may use another disk or partition. BUG#1640332
  5034. * src/AbstractDiskWriter.cc
  5035. * src/PeerAbstractCommand.cc
  5036. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  5037. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  5038. setHaltRequested(true) to cancel download.
  5039. * src/PeerInteractionCommand.h
  5040. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5041. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  5042. socket from int to sock_t as sockets are unsigned in Windows.
  5043. For AsyncNameResolver, DownloadEngine, I did additional modification
  5044. for the portion of the code changed according to epoll support.
  5045. I defined sock_t in a2netcompat.h to use sock_t without including
  5046. SocketCore.h.
  5047. * src/AsyncNameResolver.cc
  5048. * src/AsyncNameResolver.h
  5049. * src/DownloadEngine.cc
  5050. * src/DownloadEngine.h
  5051. * src/SocketCore.cc
  5052. * src/SocketCore.h
  5053. * src/a2netcompat.h
  5054. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5055. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  5056. changes in the patch were applied.
  5057. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  5058. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  5059. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  5060. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5061. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  5062. a2io.h and common.h were modified.
  5063. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  5064. MinGW.
  5065. * src/common.h: Changed off_t to 64 bit in MinGW.
  5066. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5067. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  5068. only a2netcompat.h is modified.
  5069. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  5070. directives.
  5071. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5072. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  5073. only gai_strerror.h is modified.
  5074. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  5075. winsock errors in MinGW.
  5076. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5077. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  5078. follow sources are applied.
  5079. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  5080. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  5081. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  5082. I included locale.h from Platform.cc.
  5083. * src/main.cc: Moved common setup/teardown code to Platform class.
  5084. * test/AllTest.cc: Use Platform class.
  5085. Set locale to C in AllTest.cc to prevent the messages to be localized.
  5086. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5087. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  5088. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  5089. * test/HttpRequestTest.cc: Casted to off_t where it should.
  5090. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5091. Applied Ross's aria2-0.13.2+1-mingw.patch and
  5092. aria2-0.13.2+1-mingw-2.patch.
  5093. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  5094. systems which don't have termious.h. I moved the directive inside of
  5095. if(isTTY) { ... clause so that line is wiped out without termious.h.
  5096. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  5097. anyway.
  5098. * src/asctime_r.h
  5099. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  5100. I added 2nd argument to the prototype declaration.
  5101. * src/StringFormat.cc: Get rid of vasprintf.
  5102. * src/getaddrinfo.h: Fixed constants.
  5103. * configure.ac: Added the check for asctime_r function.
  5104. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  5105. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5106. Added writable test for Socket when the sending message is in progress.
  5107. Usually the sending message is piece message. Without wriable check,
  5108. upload latency is dropped to more than 1sec.
  5109. * src/PeerInteractionCommand.cc
  5110. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5111. Create only requested files and files which shares a piece with
  5112. requested file in multi-torrent downloads. Directory structures are
  5113. also created in the same rule.
  5114. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  5115. DiskWriterEntry as in the previous implementation.
  5116. * src/MultiDiskWriter.cc
  5117. * src/MultiFileAllocationIterator.cc
  5118. * src/MultiFileAllocationIterator.h
  5119. * test/MultiFileAllocationIteratorTest.cc
  5120. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5121. Commented out -lprofiler
  5122. * src/Makefile.am
  5123. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5124. Bump up version number to 0.14.0b.
  5125. * src/configure.ac
  5126. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5127. Actively establish connection to peers in seeding, when peer cache
  5128. is not full and max upload speed limit is not reached.
  5129. * src/ActivePeerConnectionCommand.cc
  5130. * src/ActivePeerConnectionCommand.h
  5131. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5132. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  5133. to make room more fleshy, recently found peers.
  5134. Peer::_badConditionStartTime is not used anymore. Consider to remove
  5135. it.
  5136. * src/DefaultPeerStorage.cc
  5137. * test/DefaultPeerStorageTest.cc
  5138. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5139. Returns cached data only when the previous receiveHandshake() is called
  5140. with peek = true.
  5141. * src/PeerConnection.cc (receiveHandshake)
  5142. * src/PeerConnection.h (receiveHandshake)
  5143. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5144. Changed default value of -s option from 1 to 5.
  5145. Also max value of -s option is changed from 5 to 16.
  5146. * src/HelpItemFactory.cc
  5147. * src/OptionHandlerFactory.cc
  5148. * src/option_processing.cc
  5149. * src/usage_text.h
  5150. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5151. Changed -s options behavior. Now it means the number of connections
  5152. made simultaneously in each http/ftp download.
  5153. If 1 URL is specified, the behavior is the same with old implementation.
  5154. If -s N is given and more than N URLs are specified, first N URLs are
  5155. used and remaining URLs are used for backup. If less than N URLs are
  5156. specified, some of URLs are used more than once so that totally N
  5157. connections are made simultaneously.
  5158. * src/main.cc
  5159. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5160. Included missing iosfwd or ostream header.
  5161. * src/RequestGroupMan.cc
  5162. * src/TaggedItem.cc
  5163. * src/TaggedItem.h
  5164. * src/Util.cc
  5165. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5166. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  5167. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  5168. * src/HttpConnection.cc: Included missing sstream.
  5169. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5170. Added --bt-max-open-files option.
  5171. * src/DefaultPieceStorage.cc
  5172. * src/HelpItemFactory.cc
  5173. * src/MultiDiskAdaptor.cc
  5174. * src/MultiDiskAdaptor.h
  5175. * src/OptionHandlerFactory.cc
  5176. * src/option_processing.cc
  5177. * src/prefs.cc
  5178. * src/prefs.h
  5179. * src/usage_text.h
  5180. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5181. Fixed the bug that aria2 aborts when a path to a directory is given
  5182. in command-line.
  5183. * src/ProtocolDetector.cc
  5184. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5185. Limited the number files opened in each BitTorrent download. The default
  5186. value is 100. The option to change this value will be added.
  5187. * src/MultiDiskAdaptor.cc
  5188. * src/MultiDiskAdaptor.h
  5189. * src/MultiFileAllocationIterator.cc
  5190. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5191. Fixed the bug that HTTP downloads don't start with old libraries.
  5192. * src/HttpHeaderProcessor.cc
  5193. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5194. Use empty() instead of size() > 0.
  5195. * src/HttpConnection.cc
  5196. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5197. Drop connection if the incoming peer ID is the same with localhost's
  5198. one. The previous implementation drops connection when incoming peer's
  5199. IP address is the same with localhost's one.
  5200. * src/PeerListenCommand.cc
  5201. * src/DefaultBtInteractive.cc
  5202. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5203. Returns cached data without checking whether socket is readable
  5204. if the cache is available.
  5205. * src/PeerConnection.cc (receiveHandshake)
  5206. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5207. Included stdint.h
  5208. * src/common.h
  5209. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5210. Removed duplicate HAVE_GETTIMEOFDAY
  5211. * src/Makefile.am
  5212. * src/Makefile.in
  5213. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5214. Use interval as a minInterval when minInterval is not supplied.
  5215. * src/DefaultBtAnnounce.cc
  5216. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5217. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  5218. attempt is failed, then 2nd attempt get kicked out more quickly.
  5219. And it is now static const member of DefaultBtAnnounce.
  5220. * src/DefaultBtAnnounce.h
  5221. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5222. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  5223. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  5224. * src/ActivePeerConnectionCommand.cc
  5225. * src/BtConstants.h
  5226. * src/BtRuntime.h
  5227. * src/DHTGetPeersCommand.cc
  5228. * src/DefaultBtAnnounce.cc
  5229. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  5230. BtRuntime::MAX_PEERS.
  5231. * src/DefaultPeerStorage.h
  5232. * src/InitiatorMSEHandshakeCommand.cc
  5233. * src/PeerInitiateConnectionCommand.cc
  5234. * src/PeerInteractionCommand.cc
  5235. * src/PeerReceiveHandshakeCommand.cc
  5236. * src/TrackerWatcherCommand.cc
  5237. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5238. Always Connect to _numNewConnection
  5239. * src/ActivePeerConnectionCommand.cc
  5240. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5241. Made `begin' unsigned int.
  5242. * src/GrowSegment.h
  5243. * src/Piece.cc
  5244. * src/Piece.h
  5245. * src/PiecedSegment.cc
  5246. * src/PiecedSegment.h
  5247. * src/Segment.h
  5248. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5249. Calculate piece hash when data is arrived if the data is arrived in
  5250. order. This removes additional read operation for hash calculation.
  5251. If the data is arrived in out of order, the hash is calucated when the
  5252. piece is completed. This is the same behavior as the old implementation.
  5253. * src/BtPieceMessage.cc
  5254. * src/DefaultBtProgressInfoFile.cc
  5255. * src/DefaultPieceStorage.cc
  5256. * src/DownloadCommand.cc
  5257. * src/DownloadCommand.h
  5258. * src/DownloadEngine.cc
  5259. * src/GrowSegment.cc
  5260. * src/GrowSegment.h
  5261. * src/Piece.cc
  5262. * src/Piece.h
  5263. * src/PiecedSegment.cc
  5264. * src/PiecedSegment.h
  5265. * src/Segment.h
  5266. * test/PieceTest.cc
  5267. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5268. Try to keep the ordering of outgoing piece message.
  5269. * src/DefaultBtMessageDispatcher.cc
  5270. (DefaultBtMessageDispatcher::sendMessages)
  5271. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5272. Fixed busy loop when error/hup epoll events occur.
  5273. * src/AbstractCommand.cc
  5274. * src/PeerAbstractCommand.cc
  5275. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5276. Added --bt-request-peer-speed-limit option, which was a constant
  5277. SLOW_SPEED_THRESHOLD.
  5278. * src/ActivePeerConnectionCommand.cc
  5279. * src/ActivePeerConnectionCommand.h
  5280. * src/BtConstants.h
  5281. * src/HelpItemFactory.cc
  5282. * src/OptionHandlerFactory.cc
  5283. * src/PeerReceiveHandshakeCommand.cc
  5284. * src/option_processing.cc
  5285. * src/prefs.cc
  5286. * src/prefs.h
  5287. * src/usage_text.h
  5288. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5289. Removed repeated call of getTopDirPath(). Instead, call it once and
  5290. cache the result.
  5291. * src/MultiDiskAdaptor.cc
  5292. * src/MultiDiskAdaptor.h
  5293. (mkdir, openFile, initAndOpenFile, openExistingFile)
  5294. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5295. Fixed compile error on debian etch.
  5296. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  5297. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  5298. it is undefined.
  5299. * src/Util.cc (ULLONG_MAX)
  5300. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5301. Added epoll support. Use epoll if it is available. If not, use select.
  5302. When async dns is enabled in compile time, epoll support is enabled
  5303. only when aria2 is built with c-ares. This condition statement is
  5304. defined in a2io.h.
  5305. Currently aria2 supports both c-ares and ares, but ares is maintained
  5306. for quite a while and debian already has c-ares package, ares support
  5307. will be dropped in the future version.
  5308. * configure.ac
  5309. * src/AbstractCommand.cc
  5310. * src/AsyncNameResolver.cc
  5311. * src/AsyncNameResolver.h
  5312. * src/Command.cc
  5313. * src/Command.h
  5314. * src/DownloadEngine.cc
  5315. * src/DownloadEngine.h
  5316. * src/PeerAbstractCommand.cc
  5317. * src/SocketCore.cc
  5318. * src/SocketCore.h
  5319. * src/a2io.h
  5320. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5321. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  5322. directive.
  5323. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5324. Do not do write operation to /dev/null file.
  5325. * src/LogFactory.cc
  5326. * src/SimpleLogger.cc
  5327. Replaced vasprintf with vsnprintf
  5328. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  5329. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5330. * src/BtRequestMessage.cc
  5331. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  5332. for segmentation fault caused by previous commit.
  5333. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5334. Reduced the usage of gettimeofday().
  5335. * src/DefaultBtMessageDispatcher.cc
  5336. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  5337. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  5338. * src/RequestSlot.cc
  5339. * src/RequestSlot.h
  5340. (RequestSlot::isTimeout)
  5341. Made RequestSlot have a reference to Piece object to avoid find
  5342. Piece repeatedly.
  5343. * src/DefaultBtMessageDispatcher.cc
  5344. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  5345. * src/RequestSlot.cc
  5346. * src/RequestSlot.h
  5347. (RequestSlot::getPiece)
  5348. * test/DefaultBtMessageDispatcherTest.cc
  5349. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5350. * src/TimeA2.cc
  5351. * src/TimeA2.h
  5352. (Time::difference): New function.
  5353. (Time::elapsed): Done optimization.
  5354. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5355. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  5356. directive.
  5357. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5358. * src/option_processing.cc: Added missing `defined' keyword to #if
  5359. directive.
  5360. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5361. Bump up version number to 0.13.2+1
  5362. * src/configure.ac
  5363. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5364. Refactored broken outstanding piece handling.
  5365. * src/DefaultPieceStorage.cc
  5366. * src/DefaultPieceStorage.h
  5367. * src/Piece.cc
  5368. * src/Piece.h
  5369. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5370. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  5371. name collision of static variable and predefined macro.
  5372. * src/BtContext.cc
  5373. * src/BtContext.h
  5374. * src/CookieBoxFactory.cc
  5375. * src/CookieBoxFactory.h
  5376. * src/CookieParser.cc
  5377. * src/CookieParser.h
  5378. * src/DefaultBtContext.cc
  5379. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5380. * src/RequestGroup.cc
  5381. (RequestGroup::createInitialCommand): Use empty() instead of size().
  5382. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5383. * Release 0.13.2
  5384. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5385. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  5386. * po/fr.po
  5387. * po/ja.po
  5388. * po/aria2c.pot
  5389. * po/*.po
  5390. * po/*.gmo
  5391. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5392. Bump up version number to 0.13.2
  5393. * src/configure.ac
  5394. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5395. Refactord.
  5396. * src/RequestGroupMan.cc
  5397. (removeStoppedGroup)
  5398. (fillRequestGroupFromReserver)
  5399. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5400. Fixed compile error on Ubuntu.
  5401. * src/BtPieceMessage.cc
  5402. * src/MessageDigestHelper.cc
  5403. * src/Util.cc
  5404. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5405. Fixed compile error when configured with --disable-bittorrent
  5406. * test/DownloadHandlerFactoryTest.cc
  5407. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5408. Done make update-po
  5409. * po/aria2c.pot
  5410. * po/*.po
  5411. * po/*.gmo
  5412. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5413. Bump up version number to 0.13.2rc.
  5414. * src/configure.ac
  5415. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5416. Made option name bold. Updated SYNOPSIS to make it more readable.
  5417. * doc/aria2c.1.txt
  5418. * doc/aria2c.1
  5419. * doc/aria2c.1.html
  5420. * src/version_usage.cc
  5421. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5422. Refactored. Use std::string instead of size and char*.
  5423. * Data.cc
  5424. * Data.h
  5425. * test/Data.cc
  5426. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5427. Added trimSelf(). Rewritten trim() to use trimSelf().
  5428. * Util.cc
  5429. * Util.h
  5430. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5431. * src/ChunkChecksum.h (getChecksum): Return const reference.
  5432. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5433. Fixed compile error when configured with --disable-metalink.
  5434. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  5435. * test/FeatureConfigTest.cc
  5436. * test/DownloadHandlerFactoryTest.cc
  5437. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5438. Fixed compile error when configured with --without-gnutls
  5439. --without-openssl
  5440. * src/main.cc
  5441. * test/DefaultBtProgressInfoFileTest.cc
  5442. * test/SegmentManTest.cc
  5443. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5444. Fixed compile error with OpenSSL.
  5445. * src/IteratableChunkChecksumValidator.cc
  5446. * src/LibsslDHKeyExchange.h
  5447. * src/MessageDigestHelper.cc
  5448. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5449. Revert the default value of --max-concurrent-downloads to 5.
  5450. Revert the default value of --metalink-servers to 5.
  5451. Man pages was also updated.
  5452. * src/option_processing.cc
  5453. * doc/aria2c.1.txt
  5454. * doc/aria2c.1.html
  5455. * doc/aria2c.1
  5456. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5457. Returns const reference:
  5458. DownloadContext::getPieceHash, DownloadContext::getName,
  5459. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  5460. BtContext::getInfoHashAsString,
  5461. * src/BtContext.h
  5462. * src/DefaultBtContext.cc
  5463. * src/DefaultBtContext.h
  5464. * src/DownloadContext.h
  5465. * src/SingleFileDownloadContext.h
  5466. * test/MockBtContext.h
  5467. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5468. * src/RequestGroup.h (getDir): Removed.
  5469. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5470. Returns const reference. The internal urlencode function was optimized
  5471. a little bit.
  5472. * src/Request.cc
  5473. * src/Request.h
  5474. * src/HttpRequest.cc
  5475. * src/HttpRequest.h
  5476. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5477. Defined option name and possible values as std::string to reduce
  5478. temporary string object creation in runtime.
  5479. * src/HelpItemFactory.cc
  5480. * src/LogFactory.cc
  5481. * src/Option.cc
  5482. * src/OptionHandlerFactory.cc
  5483. * src/option_processing.cc
  5484. * src/prefs.cc
  5485. * src/prefs.h
  5486. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5487. Return const reference.
  5488. * src/DownloadHandlerConstants.cc
  5489. * src/DownloadHandlerConstants.h
  5490. (getMetalinkExtensions)
  5491. (getMetalinkContentTypes)
  5492. (getBtExtensions)
  5493. (getBtContentTypes)
  5494. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5495. * src/HttpHeader.cc (get): Rewritten.
  5496. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5497. Make HttpHeader::getFirst(...) return const reference.
  5498. * src/HttpHeader.cc
  5499. * src/HttpHeader.h
  5500. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5501. Use Option::getAsBool(...) instead of Option::get(...) and compare
  5502. it with V_TRUE.
  5503. * src/DefaultPieceStorage.cc
  5504. * src/DownloadCommand.cc
  5505. * src/FtpNegotiationCommand.cc
  5506. * src/HttpRequest.cc
  5507. * src/InitiateConnectionCommand.cc
  5508. * src/RequestGroup.cc
  5509. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5510. Made Option::get(...) return const reference of std::string.
  5511. * src/Option.cc
  5512. * src/Option.h
  5513. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5514. Replaced std:copy with insert.
  5515. * src/DefaultBtMessageDispatcher.cc
  5516. * src/DefaultPieceStorage.cc
  5517. * src/DownloadEngineFactory.cc
  5518. * src/RequestGroup.cc
  5519. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5520. Included SocketCore.h to fix compiler warning.
  5521. * src/InitiateConnectionCommand.cc
  5522. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5523. Put piece selection strategy algorithm to RarestPieceSelector class,
  5524. Added a switch to choose whether randomized selection so that unit
  5525. tests emit same results in, possibly, win32.
  5526. * src/DefaultPieceStorage.cc
  5527. * src/DefaultPieceStorage.h
  5528. * src/RarestPieceSelector.cc
  5529. * src/RarestPieceSelector.h
  5530. * test/DefaultPieceStorageTest.cc
  5531. * test/RarestPieceSelectorTest.cc
  5532. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5533. Don't pool connection if HTTP proxy is enabled.
  5534. * src/FtpFinishDownloadCommand.cc
  5535. * src/FtpNegotiationCommand.cc
  5536. * src/HttpSkipResponseCommand.cc
  5537. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5538. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  5539. * src/AbstractCommand.cc
  5540. * src/AbstractCommand.h
  5541. * src/ActivePeerConnectionCommand.cc
  5542. * src/FtpInitiateConnectionCommand.cc
  5543. * src/HttpInitiateConnectionCommand.cc
  5544. * src/InitiateConnectionCommandFactory.cc
  5545. * src/PeerAbstractCommand.cc
  5546. * src/PeerAbstractCommand.h
  5547. * src/PeerInitiateConnectionCommand.cc
  5548. * src/TrackerWatcherCommand.cc
  5549. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5550. Sort RequestSlot in ascending order and manipulate them using
  5551. lower_bound.
  5552. * src/DefaultBtMessageDispatcher.cc
  5553. * src/DefaultBtMessageDispatcher.h
  5554. (getMessageQueue): Added const qualifier.
  5555. (getRequestSlots): Added const qualifier.
  5556. (sendMessages): Use empty() instead of size().
  5557. (doCancelSendingPieceAction): Use HandleEvent object.
  5558. (doAbortOutstandingRequestAction): Rewritten.
  5559. (doChokedAction): Rewritten.
  5560. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  5561. (isOutstandingRequest): Rewritten.
  5562. (getOutstandingRequest): Rewritten.
  5563. (removeOutstandingRequest): Rewritten.
  5564. (addOutstandingRequest): Rewritten.
  5565. * src/RequestSlot.cc
  5566. * src/RequestSlot.h
  5567. (operator=): Rewritten.
  5568. (operator!=): New function.
  5569. (operator<): New function.
  5570. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5571. * src/DefaultBtRequestFactory.cc
  5572. (doChokedAction): Rewritten.
  5573. (removeCompletedPiece): Rewritten.
  5574. (removeTargetPiece): Rewritten.
  5575. (createRequestMessages): Added the debug log.
  5576. (createRequestMessagesOnEndGame: Added the debug log.
  5577. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5578. Added the debug log message.
  5579. * src/BtPieceMessage.cc (doReceivedAction)
  5580. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5581. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  5582. used lower_bound to process them rather than linear search.
  5583. * src/DHTPeerAnnounceStorage.cc
  5584. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5585. Call subtractPieceStats from ~PeerInteractionCommand only when the
  5586. peer has at least one completed piece.
  5587. * src/Peer.cc
  5588. * src/Peer.h
  5589. * src/PeerInteractionCommand.cc
  5590. * src/PeerSessionResource.cc
  5591. * src/PeerSessionResource.h
  5592. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5593. Removed unnecessary sorting
  5594. * src/DefaultPieceStorage (DefaultPieceStorage)
  5595. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5596. Rewritten the portion of the code that mangaes allowed fast indexes.
  5597. * src/PeerSessionResource.cc
  5598. * src/PeerSessionResource.h
  5599. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5600. Removed the invalid string including '\r' from ru.po and
  5601. did make update-po.
  5602. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5603. Added --log-level and --summary-interval to man page.
  5604. * doc/aria2c.1.txt
  5605. * doc/aria2c.1.html
  5606. * doc/aria2c.1
  5607. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5608. Added --log-level option to specify log level. Log messages under
  5609. the specified level are not output. Default value is `debug'.
  5610. * src/HelpItemFactory.cc
  5611. * src/LogFactory.cc
  5612. * src/LogFactory.h
  5613. * src/Logger.h
  5614. * src/OptionHandlerFactory.cc
  5615. * src/SimpleLogger.cc
  5616. * src/SimpleLogger.h
  5617. * src/main.cc
  5618. * src/option_processing.cc
  5619. * src/prefs.h
  5620. * src/usage_text.h
  5621. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5622. Print download progress summary of all parallel downloads in specified
  5623. interval, default 60 secs. While aria2 could download several files
  5624. in parallel (see -j option), it displayed just first download progress,
  5625. and the other downloads are hidden from the users. This new feature
  5626. prints all downloads currently in-progress to the console so that you
  5627. can check the status of all downloads. The interval can be adjusted
  5628. by --summary-interval option.
  5629. The progress readout is now cut so that all fits in the one line of
  5630. console.
  5631. * src/ConsoleStatCalc.cc
  5632. * src/ConsoleStatCalc.h
  5633. * src/HelpItemFactory.cc
  5634. * src/OptionHandlerFactory.cc
  5635. * src/RequestGroupMan.cc
  5636. * src/RequestGroupMan.h
  5637. * src/main.cc
  5638. * src/option_processing.cc
  5639. * src/prefs.h
  5640. * src/usage_text.h
  5641. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5642. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  5643. * src/DownloadEngine.cc (DownloadEngine)
  5644. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5645. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  5646. defined.
  5647. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  5648. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5649. Use erase+lower_bound+insert instead of sort.
  5650. * src/DefaultPieceStorage.cc (addPieceStats)
  5651. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5652. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  5653. * src/A2STR.cc
  5654. * src/A2STR.h
  5655. * src/OptionParser.cc (parse)
  5656. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5657. Defined fake filename `[tracker.announce]' as static const std::string.
  5658. * src/TrackerWatcherCommand.cc (createRequestGroup)
  5659. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5660. Defined default filename `index.html' as static const std::string
  5661. * src/SingleFileDownloadContext.cc
  5662. * src/SingleFileDownloadContext.h
  5663. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5664. Defined "[MEMORY]" as static const std::string.
  5665. * src/MemoryBufferPreDownloadHandler.cc (execute)
  5666. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5667. Defined control file's version number as static const std::string.
  5668. * src/DefaultBtProgressInfoFile.cc
  5669. * src/DefaultBtProgressInfoFile.h
  5670. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5671. Use Request::METHOD_GET
  5672. * src/RequestGroup.cc (createNextCommandWithAdj)
  5673. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5674. Defined "OK", "ERR", "INPR" as static const std::string
  5675. * src/RequestGroupMan.cc (showDownloadResults)
  5676. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5677. Defined default client used in extended handshake as static const
  5678. std::string
  5679. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  5680. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5681. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  5682. * src/HttpConnection.cc (eraseConfidentialInfo)
  5683. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5684. Defined default ftp user and password as static const std::string
  5685. * src/AuthConfigFactory.cc
  5686. * src/AuthConfigFactory.h
  5687. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5688. Defined strings used in netrc as static const std::string
  5689. * src/Netrc.cc
  5690. * src/Netrc.h
  5691. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5692. Defined HTTP status as static const std::string
  5693. * src/AbstractProxyResponseCommand.cc
  5694. * src/HttpHeader.cc
  5695. * src/HttpHeader.h
  5696. * src/HttpResponse.cc
  5697. * src/HttpResponseCommand.cc
  5698. * src/HttpSkipResponseCommand.cc
  5699. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5700. Defined "\r\n", "A", "I" as static const std::string
  5701. * src/A2STR.cc
  5702. * src/A2STR.h
  5703. * src/FtpConnection.cc
  5704. * src/FtpConnection.h
  5705. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5706. Added COLON_C(".") and used it in Request::parseUrl()
  5707. * src/A2STR.cc
  5708. * src/A2STR.h
  5709. * src/Request.cc (parseUrl)
  5710. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5711. Changed the type of padName from `const std::string&' to `const char*'.
  5712. * src/MSEHandshake.cc (verifyPadLength)
  5713. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5714. Defined "sha1" as static const std::string.
  5715. * src/MetalinkParserController.cc
  5716. * src/MetalinkParserController.h
  5717. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5718. Defined message digest algorithm name as static const std::string
  5719. * src/DHTTokenTracker.cc
  5720. * src/DHTUtil.cc
  5721. * src/DefaultBtContext.cc
  5722. * src/MSEHandshake.cc
  5723. * src/MessageDigestHelper.cc
  5724. * src/Peer.cc
  5725. * src/messageDigest.cc
  5726. * src/messageDigest.h
  5727. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5728. Made string literals used in SAX parser static const std::string.
  5729. * src/FileMetalinkParserState.cc
  5730. * src/FileMetalinkParserState.h
  5731. * src/FilesMetalinkParserState.cc
  5732. * src/FilesMetalinkParserState.h
  5733. * src/InitialMetalinkParserState.cc
  5734. * src/InitialMetalinkParserState.h
  5735. * src/MetalinkMetalinkParserState.cc
  5736. * src/MetalinkMetalinkParserState.h
  5737. * src/PiecesMetalinkParserState.cc
  5738. * src/PiecesMetalinkParserState.h
  5739. * src/ResourcesMetalinkParserState.cc
  5740. * src/ResourcesMetalinkParserState.h
  5741. * src/VerificationMetalinkParserState.cc
  5742. * src/VerificationMetalinkParserState.h
  5743. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5744. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  5745. * src/A2STR.cc
  5746. * src/A2STR.h
  5747. * src/File.cc
  5748. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5749. Defined static const std::string IP("ip"), PORT("port") and use them
  5750. instead of string literals.
  5751. * src/DefaultPeerListProcessor.cc
  5752. * src/DefaultPeerListProcessor.h
  5753. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5754. Made string literals for torrent file processing static const
  5755. std::string.
  5756. * src/BtContext.cc
  5757. * src/BtContext.h
  5758. * src/DefaultBtContext.cc
  5759. * src/DefaultBtContext.h
  5760. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5761. Made string literal for tracker response static const std::string
  5762. * src/BtAnnounce.cc
  5763. * src/BtAnnounce.h
  5764. * src/DefaultBtAnnounce.cc
  5765. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5766. Use DHTMessage::T instead of "t".
  5767. * src/DHTMessageTracker.cc (messageArrived)
  5768. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5769. Made keyName static const. Made trimmed charset static const
  5770. std::string.
  5771. * src/Util.cc (getContentDispositionFilename)
  5772. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5773. Made USER_AGENT const. Made "/" static const std::string.
  5774. * src/A2STR.cc
  5775. * src/A2STR.h
  5776. * src/HttpRequest.cc
  5777. * src/HttpRequest.h
  5778. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5779. Made string listeral to static const std::string:
  5780. "Content-Range", "Content-Length"
  5781. * src/HttpHeader.cc
  5782. * src/HttpHeader.h
  5783. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5784. Made string listeral to static const std::string.
  5785. * src/HttpConnection.cc
  5786. * src/HttpHeader.cc
  5787. * src/HttpHeader.h
  5788. * src/HttpResponse.cc
  5789. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5790. Made string listeral to static const std::string.
  5791. * src/A2STR.cc
  5792. * src/A2STR.h
  5793. * src/SimpleLogger.cc
  5794. * src/SimpleLogger.h
  5795. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5796. Made string literal to static const std::string.
  5797. Rewritten CookieParser::setField.
  5798. * src/A2STR.cc
  5799. * src/A2STR.h
  5800. * src/CookieBoxFactory.cc
  5801. * src/CookieBoxFactory.h
  5802. * src/CookieParser.cc
  5803. * src/CookieParser.h
  5804. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5805. Made string literal to static const std::string
  5806. * src/DHTAbstractMessage.cc
  5807. * src/DHTAnnouncePeerMessage.cc
  5808. * src/DHTAnnouncePeerMessage.h
  5809. * src/DHTAnnouncePeerReplyMessage.cc
  5810. * src/DHTAnnouncePeerReplyMessage.h
  5811. * src/DHTFindNodeMessage.cc
  5812. * src/DHTFindNodeMessage.h
  5813. * src/DHTFindNodeReplyMessage.cc
  5814. * src/DHTFindNodeReplyMessage.h
  5815. * src/DHTGetPeersMessage.cc
  5816. * src/DHTGetPeersMessage.h
  5817. * src/DHTGetPeersReplyMessage.cc
  5818. * src/DHTGetPeersReplyMessage.h
  5819. * src/DHTMessage.cc
  5820. * src/DHTMessage.h
  5821. * src/DHTMessageFactoryImpl.cc
  5822. * src/DHTMessageReceiver.cc
  5823. * src/DHTPingMessage.cc
  5824. * src/DHTPingMessage.h
  5825. * src/DHTPingReplyMessage.cc
  5826. * src/DHTPingReplyMessage.h
  5827. * src/DHTQueryMessage.cc
  5828. * src/DHTQueryMessage.h
  5829. * src/DHTResponseMessage.cc
  5830. * src/DHTResponseMessage.h
  5831. * src/DHTUnknownMessage.cc
  5832. * src/DHTUnknownMessage.h
  5833. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5834. Made string literal to static const std::string
  5835. * src/BtChokeMessage.cc (toString)
  5836. * src/BtHaveAllMessage.cc (toString)
  5837. * src/BtHaveNoneMessage.cc (toString)
  5838. * src/BtInterestedMessage.cc (toString)
  5839. * src/BtNotInterestedMessage.cc (toString)
  5840. * src/BtUnchokeMessage.cc (toString)
  5841. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5842. Replaced "" with static const variable A2STR::NIL.
  5843. Replaced string comparison against "" with std::string::empty().
  5844. Added PROTO_* to Request class and use them as a protocol string
  5845. constant.
  5846. Made "started", "stopped", "completed" static const variable in
  5847. AnnounceList class.
  5848. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5849. Updated translations. Great thanks to translators.
  5850. * po/ca.po
  5851. * po/de.po
  5852. * po/fr.po
  5853. * po/it.po
  5854. * po/ja.po
  5855. * po/ru.po
  5856. * po/zh_CN.po
  5857. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5858. Updated man page; categorized options and fixed typo.
  5859. * doc/aria2c.1.txt
  5860. * doc/aria2c.1.html
  5861. * doc/aria2c.1
  5862. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5863. Removed const ref
  5864. * src/MetalinkEntry.cc (AddProtocolPreference)
  5865. * src/RequestGroup.cc (FindServerHostByHostname)
  5866. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5867. Rewritten Accept-Features handling.
  5868. * src/HttpRequestCommand.cc (createHttpRequest)
  5869. * src/a2functional.h
  5870. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5871. Changed method signature:
  5872. DHTAbstractNodeLookupTask::toEntries
  5873. * src/DHTAbstractNodeLookupTask.cc
  5874. * src/DHTAbstractNodeLookupTask.h
  5875. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5876. Changed method signature:
  5877. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  5878. * src/BtContext.h
  5879. * src/DefaultBtContext.cc
  5880. * src/DefaultBtContext.h
  5881. * src/DefaultBtInteractive.cc
  5882. * test/DefaultBtContextTest.cc
  5883. * test/MockBtContext.h
  5884. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5885. Changed method signature:
  5886. MultiFileAllocationIterator::makeDiskWriterEntries
  5887. * src/MultiFileAllocationIterator.cc
  5888. * src/MultiFileAllocationIterator.h
  5889. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5890. Changed method sinature:
  5891. MetalinkEntry::toFileEntry,
  5892. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  5893. Metalinker::queryEntry
  5894. * src/Metalink2RequestGroup.cc
  5895. * src/MetalinkEntry.cc
  5896. * src/MetalinkEntry.h
  5897. * src/MetalinkHelper.cc
  5898. * src/MetalinkHelper.h
  5899. * src/Metalinker.cc
  5900. * src/Metalinker.h
  5901. * src/main.cc
  5902. * test/MetalinkHelperTest.cc
  5903. * test/MetalinkerTest.cc
  5904. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5905. Changed method sinature:
  5906. RequestGroup::getURIs
  5907. * src/RequestGroup.cc
  5908. * src/RequestGroup.h
  5909. * test/Metalink2RequestGroupTest.cc
  5910. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5911. Changed method signature:
  5912. PeerListProcessor::extractPeer
  5913. * src/CompactPeerListProcessor.cc
  5914. * src/CompactPeerListProcessor.h
  5915. * src/DefaultBtAnnounce.cc
  5916. * src/DefaultPeerListProcessor.cc
  5917. * src/DefaultPeerListProcessor.h
  5918. * src/DelegatingPeerListProcessor.cc
  5919. * src/DelegatingPeerListProcessor.h
  5920. * src/PeerListProcessor.h
  5921. * src/UTPexExtensionMessage.cc
  5922. * test/DefaultPeerListProcessorTest.cc
  5923. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5924. Changed method signature:
  5925. BtRequestFactory::createRequestMessages,
  5926. BtRequestFactory::createRequestMessagesOnEndGame
  5927. * src/BtRequestFactory.h
  5928. * src/DefaultBtInteractive.cc
  5929. * src/DefaultBtRequestFactory.cc
  5930. * src/DefaultBtRequestFactory.h
  5931. * test/DefaultBtRequestFactoryTest.cc
  5932. * test/MockBtRequestFactory.h
  5933. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5934. Changed method signature:
  5935. PieceStorage::getInFlightPieces
  5936. * src/DefaultBtProgressInfoFile.cc
  5937. * src/DefaultPieceStorage.cc
  5938. * src/DefaultPieceStorage.h
  5939. * src/PieceStorage.h
  5940. * src/UnknownLengthPieceStorage.cc
  5941. * src/UnknownLengthPieceStorage.h
  5942. * test/DefaultBtProgressInfoFileTest.cc
  5943. * test/MockPieceStorage.h
  5944. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5945. Changed method signature:
  5946. PostDownloadHandler::getNextRequestGroups
  5947. Metalink2RequestGroup::generate
  5948. RequestGroup::postDownloadProcessing
  5949. * src/BtPostDownloadHandler.cc
  5950. * src/BtPostDownloadHandler.h
  5951. * src/Metalink2RequestGroup.cc
  5952. * src/Metalink2RequestGroup.h
  5953. * src/MetalinkPostDownloadHandler.cc
  5954. * src/MetalinkPostDownloadHandler.h
  5955. * src/PostDownloadHandler.h
  5956. * src/RequestGroup.cc
  5957. * src/RequestGroup.h
  5958. * src/RequestGroupMan.cc
  5959. * src/main.cc
  5960. * test/BtPostDownloadHandlerTest.cc
  5961. * test/Metalink2RequestGroupTest.cc
  5962. * test/MetalinkPostDownloadHandlerTest.cc
  5963. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5964. Rewritten AccRequestGroup
  5965. * src/main.cc
  5966. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5967. Rewritten.
  5968. * src/TaggedItem.cc (toTagString)
  5969. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5970. Rewritten Accept-Features handling.
  5971. * src/HttpRequestCommand.cc (createHttpRequest)
  5972. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5973. Rewritten accept types handling.
  5974. * HttpRequest.cc (createRequest)
  5975. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5976. Rewritten
  5977. * src/FeatureConfig.cc (featureSummary)
  5978. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5979. Changed method signature:
  5980. PeerStorage::getActivePeers
  5981. * src/DHTPeerAnnounceEntry.cc
  5982. * src/DefaultPeerStorage.cc
  5983. * src/DefaultPeerStorage.h
  5984. * src/PeerStorage.h
  5985. * test/DefaultPeerStorageTest.cc
  5986. * test/MockPeerStorage.h
  5987. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5988. Changed method signature:
  5989. DHTPeerAnnounceStorage::getPeers,
  5990. DHTPeerAnnounceEntry::getPeers
  5991. * src/DHTGetPeersMessage.cc
  5992. * src/DHTPeerAnnounceEntry.cc
  5993. * src/DHTPeerAnnounceEntry.h
  5994. * src/DHTPeerAnnounceStorage.cc
  5995. * src/DHTPeerAnnounceStorage.h
  5996. * test/DHTAnnouncePeerMessageTest.cc
  5997. * test/DHTPeerAnnounceEntryTest.cc
  5998. * test/DHTPeerAnnounceStorageTest.cc
  5999. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6000. Changed method signature:
  6001. NameResolver::resolve
  6002. * src/DHTEntryPointNameResolveCommand.cc
  6003. * src/InitiateConnectionCommand.cc
  6004. * src/NameResolver.cc
  6005. * src/NameResolver.h
  6006. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6007. Changed method signature:
  6008. PieceStorage::getAdvertisedPieceIndexes
  6009. * src/DefaultBtInteractive.cc
  6010. * src/DefaultPieceStorage.cc
  6011. * src/DefaultPieceStorage.h
  6012. * src/PieceStorage.h
  6013. * src/UnknownLengthPieceStorage.h
  6014. * test/MockPieceStorage.h
  6015. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6016. Changed method signature:
  6017. SegmentMan::getInFlightSegment
  6018. * src/AbstractCommand.cc
  6019. * src/SegmentMan.cc
  6020. * src/SegmentMan.h
  6021. * test/SegmentManTest.cc
  6022. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6023. Changed method signature:
  6024. DHTAbstractNodeLookupTask::getNodesFromMessage
  6025. * src/DHTAbstractNodeLookupTask.cc
  6026. * src/DHTAbstractNodeLookupTask.h
  6027. * src/DHTNodeLookupTask.cc
  6028. * src/DHTNodeLookupTask.h
  6029. * src/DHTPeerLookupTask.cc
  6030. * src/DHTPeerLookupTask.h
  6031. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6032. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  6033. * src/AbstractCommand.cc
  6034. * src/BtCheckIntegrityEntry.cc
  6035. * src/BtCheckIntegrityEntry.h
  6036. * src/BtFileAllocationEntry.cc
  6037. * src/BtFileAllocationEntry.h
  6038. * src/BtSetup.cc
  6039. * src/BtSetup.h
  6040. * src/CheckIntegrityCommand.cc
  6041. * src/CheckIntegrityEntry.h
  6042. * src/ChecksumCheckIntegrityEntry.cc
  6043. * src/ChecksumCheckIntegrityEntry.h
  6044. * src/DHTSetup.cc
  6045. * src/DHTSetup.h
  6046. * src/DownloadEngine.cc
  6047. * src/FileAllocationCommand.cc
  6048. * src/FileAllocationEntry.h
  6049. * src/RequestGroup.cc
  6050. * src/RequestGroup.h
  6051. * src/RequestGroupMan.cc
  6052. * src/RequestGroupMan.h
  6053. * src/StreamCheckIntegrityEntry.cc
  6054. * src/StreamCheckIntegrityEntry.h
  6055. * src/StreamFileAllocationEntry.cc
  6056. * src/StreamFileAllocationEntry.h
  6057. * src/TrackerWatcherCommand.cc
  6058. * src/a2functional.h
  6059. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6060. Changed method signature:
  6061. BNode::findClosestKNodes, BNode:: enumerateBucket,
  6062. DHTBucket::getGoodNodes,
  6063. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  6064. * src/BNode.cc
  6065. * src/BNode.h
  6066. * src/DHTAbstractNodeLookupTask.cc
  6067. * src/DHTAutoSaveCommand.cc
  6068. * src/DHTBucket.cc
  6069. * src/DHTBucket.h
  6070. * src/DHTBucketRefreshTask.cc
  6071. * src/DHTFindNodeMessage.cc
  6072. * src/DHTGetPeersMessage.cc
  6073. * src/DHTRoutingTable.cc
  6074. * src/DHTRoutingTable.h
  6075. * test/BNodeTest.cc
  6076. * test/DHTBucketTest.cc
  6077. * test/DHTRoutingTableTest.cc
  6078. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6079. In piece selection functions, Pass std::deque<...> by reference rather
  6080. than returning it.
  6081. * src/BitfieldMan.cc
  6082. * src/BitfieldMan.h
  6083. * src/DefaultBtRequestFactory.cc
  6084. * src/DefaultPieceStorage.cc
  6085. * src/Piece.cc
  6086. * src/Piece.h
  6087. * test/BitfieldManTest.cc
  6088. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6089. Implemented rarest piece first piece selection strategy.
  6090. * src/AbstractBtMessage.cc
  6091. * src/AbstractBtMessage.h
  6092. * src/BitfieldMan.cc
  6093. * src/BitfieldMan.h
  6094. * src/BtBitfieldMessage.cc
  6095. * src/BtHaveAllMessage.cc
  6096. * src/BtHaveMessage.cc
  6097. * src/DefaultPieceStorage.cc
  6098. * src/DefaultPieceStorage.h
  6099. * src/PeerInteractionCommand.cc
  6100. * src/PieceStorage.h
  6101. * src/UnknownLengthPieceStorage.h
  6102. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6103. Rewritten readData and writeData.
  6104. * src/MultiDiskAdaptor.cc
  6105. * src/MultiDiskAdaptor.h
  6106. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6107. Move \n out of the message "Usage: ...".
  6108. * src/version_usage.cc
  6109. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6110. Bump up version number to 0.13.2b.
  6111. * configure.ac
  6112. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6113. Added const qualifier to argument Exception& e.
  6114. * src/Logger.h
  6115. * src/SimpleLogger.cc
  6116. * src/SimpleLogger.h
  6117. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6118. Pool connection when CWD, SIZE command fails.
  6119. * src/FtpNegotiationCommand.cc
  6120. * src/FtpNegotiationCommand.h
  6121. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6122. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  6123. * src/HttpResponseCommand.cc
  6124. * src/HttpSkipResponseCommand.cc
  6125. * src/HttpSkipResponseCommand.h
  6126. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6127. Pool connection when a server returns 4xx, 5xx responses.
  6128. * src/HttpNullDownloadCommand.cc
  6129. * src/HttpNullDownloadCommand.h
  6130. * src/HttpResponse.cc
  6131. * src/HttpResponse.h
  6132. * src/HttpResponseCommand.cc
  6133. * src/HttpResponseCommand.h
  6134. * test/HttpResponseTest.cc
  6135. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6136. Print usage when no URL is specifed or bad command-line option is
  6137. specified.
  6138. * src/HelpItemFactory.cc
  6139. * src/help_tags.h
  6140. * src/option_processing.cc
  6141. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6142. Removed duplicate log message.
  6143. * src/AbstractCommand.cc (asyncResolveHostname)
  6144. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6145. Updated man page: --async-dns and --ftp-reuse-connection were added.
  6146. Changed -j option's default value from 5 to 1.
  6147. Added new examples using protocol auto detection feature.
  6148. Removed -T, -M usage where it can be omitted.
  6149. * doc/aria2c.1.txt
  6150. * doc/aria2c.1.html
  6151. * doc/aria2c.1.txt
  6152. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6153. Updated command-line usage text, so that it tells users that they
  6154. can specify any number of torrent files and metalink files in
  6155. command-line.
  6156. * src/version_usage.cc
  6157. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6158. Changed the default value of -j option to 1.
  6159. * src/HelpItemFactory.cc
  6160. * src/option_processing.cc
  6161. * src/usage_text.h
  6162. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6163. Added the ability to reuse connection in FTP and it is enabled by
  6164. default. It can be disabled by --ftp-reuse-connection=false option.
  6165. * src/Command.cc
  6166. * src/DownloadCommand.cc
  6167. * src/FtpDownloadCommand.cc
  6168. * src/FtpDownloadCommand.h
  6169. * src/FtpFinishDownloadCommand.cc
  6170. * src/FtpFinishDownloadCommand.h
  6171. * src/FtpInitiateConnectionCommand.cc
  6172. * src/FtpNegotiationCommand.cc
  6173. * src/FtpNegotiationCommand.h
  6174. * src/HelpItemFactory.cc
  6175. * src/Makefile.am
  6176. * src/Makefile.in
  6177. * src/OptionHandlerFactory.cc
  6178. * src/option_processing.cc
  6179. * src/prefs.h
  6180. * src/usage_text.h
  6181. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6182. Call Command::transitStatus() before calling Command::execute(),
  6183. so that the status change made in execute() is not cleared.
  6184. * src/DownloadEngine.cc
  6185. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6186. Removed forward declaration of SocketCore class.
  6187. * src/HttpDownloadCommand.h
  6188. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6189. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  6190. in InitiateConnectionCommandFactory. They should be set only when
  6191. the protocol is HTTP or HTTPS.
  6192. * src/InitiateConnectionCommandFactory.cc
  6193. * src/RequestGroup.cc
  6194. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6195. Fixed infinite loop in checksum checking.
  6196. * src/IteratableChecksumValidator.cc
  6197. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6198. Set _supportsPersistentConnection to true by default.
  6199. * src/Request.cc
  6200. * src/RequestGroup.cc
  6201. * test/HttpRequestTest.cc
  6202. * test/RequestTest.cc
  6203. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6204. Added timeout to socket pool. The default timeout is 15 seconds,
  6205. which is the same value Apache uses.
  6206. * src/DownloadEngine.cc
  6207. * src/DownloadEngine.h
  6208. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6209. Fixed misuse of multimap::find()
  6210. * src/HttpHeader.cc
  6211. * test/HttpHeaderTest.cc
  6212. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6213. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  6214. option.
  6215. The asynchronous DNS is not capable of IPv6 yet.
  6216. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  6217. least for HTTP download.
  6218. * src/AbstractCommand.cc
  6219. * src/AbstractCommand.h
  6220. * src/AsyncNameResolver.cc
  6221. * src/AsyncNameResolver.h
  6222. * src/DHTEntryPointNameResolveCommand.cc
  6223. * src/DHTEntryPointNameResolveCommand.h
  6224. * src/DownloadEngine.cc
  6225. * src/DownloadEngine.h
  6226. * src/FtpInitiateConnectionCommand.cc
  6227. * src/FtpInitiateConnectionCommand.h
  6228. * src/HelpItemFactory.cc
  6229. * src/HttpInitiateConnectionCommand.cc
  6230. * src/HttpInitiateConnectionCommand.h
  6231. * src/InitiateConnectionCommand.cc
  6232. * src/InitiateConnectionCommand.h
  6233. * src/Makefile.am
  6234. * src/Makefile.in
  6235. * src/NameResolver.cc
  6236. * src/NameResolver.h
  6237. * src/OptionHandlerFactory.cc
  6238. * src/SocketCore.cc
  6239. * src/SocketCore.h
  6240. * src/Util.cc
  6241. * src/Util.h
  6242. * src/option_processing.cc
  6243. * src/prefs.h
  6244. * src/usage_text.h
  6245. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6246. Updated man page: --quiet, --header were added.
  6247. --metalink-servers and --enable-http-keep-alive option were updated.
  6248. * doc/aria2c.1
  6249. * doc/aria2c.1.html
  6250. * doc/aria2c.1.txt
  6251. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6252. Enable HTTP keep-alive by default.
  6253. * src/HelpItemFactory.cc
  6254. * src/option_processing.cc
  6255. * src/usage_text.h
  6256. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6257. Disable http keep-alive if the remote server is not HTTP/1.1.
  6258. * src/HttpConnection.cc
  6259. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6260. Receive content body of 302 response so that the connection can be
  6261. reused later when http keep-alive is enabled.
  6262. * src/HttpNullDownloadCommand.cc
  6263. * src/HttpNullDownloadCommand.h
  6264. * src/HttpResponseCommand.cc
  6265. * src/HttpResponseCommand.h
  6266. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6267. const SharedHandle<Request> -> const SharedHandle<Request>&
  6268. * src/FtpDowndloadCommand.cc
  6269. * src/FtpDowndloadCommand.h
  6270. * src/HttpDownloadCommand.cc
  6271. * src/HttpDownloadCommand.h
  6272. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6273. Fixed the bug that the control file(.aria2 file) is not renamed
  6274. according to tryAutoFileRenaming().
  6275. tryAutoFileRenaming() was rewritten so that if both renamed file and
  6276. its control file exist, use them and continue download.
  6277. The old implementation didn't take into account of control file's
  6278. existence, so basically you couldn't continue download of renamed file.
  6279. * src/BtProgressInfoFile.h
  6280. * src/DefaultBtProgressInfoFile.cc
  6281. * src/DefaultBtProgressInfoFile.h
  6282. * src/NullProgressInfoFile.h
  6283. * src/RequestGroup.cc
  6284. * test/DefaultBtProgressInfoFileTest.cc
  6285. * test/MockBtProgressInfoFile.h
  6286. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6287. Change the default value of --metalink-servers option from `5' to `1'.
  6288. * src/HelpItemFactory.cc
  6289. * src/option_processing.cc
  6290. * src/usage_text.h
  6291. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6292. Reimplemented transparent metalink using Accept request header.
  6293. * src/HttpRequest.cc
  6294. * src/HttpRequest.h
  6295. * src/HttpRequestCommand.cc
  6296. * src/Metalink2RequestGroup.cc
  6297. * src/RequestGroup.cc
  6298. * src/RequestGroup.h
  6299. * test/HttpRequestTest.cc
  6300. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6301. Bump up version number to 0.13.2a
  6302. * configure.ac
  6303. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6304. Updated configure.ac using the result of autoscan.
  6305. * configure.ac
  6306. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6307. Fixed compilation error without gcrypt/openssl.
  6308. * src/DownloadCommand.cc
  6309. * src/DownloadCommand.h
  6310. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6311. Reorganized version information so that it can be displayed in a
  6312. standard terminal screen without scrolling.
  6313. Removed http, ftp from Configuration section, because they are always
  6314. enabled.
  6315. * src/FeatureConfig.cc
  6316. * src/FeatureConfig.h
  6317. * src/main.cc
  6318. * src/messageDigest.cc
  6319. * src/messageDigest.h
  6320. * src/version_usage.cc
  6321. * test/FeatureConfigTest.cc
  6322. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6323. Masked user ID in log.
  6324. * src/FtpConnection.cc (sendUser)
  6325. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6326. Removed query part from filename in HTTP download. The query part means
  6327. the substring after "?" in URL. Firefox seems do the same thing.
  6328. A query part is sometimes very long and not suitable to filename,
  6329. so I think it is better to remove it from filename.
  6330. * src/HttpRequest.cc
  6331. * src/HttpRequest.h
  6332. * src/Request.cc
  6333. * src/Request.h
  6334. * test/HttpRequestTest.cc
  6335. * test/RequestTest.cc
  6336. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6337. Rewritten Exception class. Throw exception object, not its pointer and
  6338. catch by reference, so that remove problematic delete operator for
  6339. catched exception.
  6340. * src/Exception.cc
  6341. * src/Exception.h
  6342. * test/ExceptionTest.cc
  6343. * src/*: All files throwing/catching exception.
  6344. * test/*: All files throwing/catching exception.
  6345. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6346. Now auto protocol detection is enabled without -Z option.
  6347. But there is a important difference between with/without -Z optoin.
  6348. For example, if you type:
  6349. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  6350. then, aria2 interprets there are 3 request groups:
  6351. (1) http://host/file, http://mirror/file <-- multi-source download
  6352. (2) file1.torrent
  6353. (3) file2.metalink
  6354. On the other hand, if you invoke above command with -Z option, it is
  6355. interpreted as 4 request groups:
  6356. (1) http://host/file
  6357. (2) file1.torrent
  6358. (3) file2.metalink
  6359. (4) http://mirror/file
  6360. I think usually user don't mix multi-source URLs and torrent files, so
  6361. there is no big problem here.
  6362. * src/main.cc
  6363. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6364. Fixed the bug that causes segmentaion fault when reading XML containing
  6365. unescapsed character like '&'.
  6366. Also a modification was made which avoids adding unnecessary
  6367. characters stack and appending unused string.
  6368. * src/ExpatMetalinkProcessor.cc
  6369. * src/FileMetalinkParserState.h
  6370. * src/FilesMetalinkParserState.h
  6371. * src/FinMetalinkParserState.h
  6372. * src/HashMetalinkParserState.h
  6373. * src/InitialMetalinkParserState.h
  6374. * src/LanguageMetalinkParserState.h
  6375. * src/MetalinkMetalinkParserState.h
  6376. * src/MetalinkParserState.h
  6377. * src/MetalinkParserStateMachine.cc
  6378. * src/MetalinkParserStateMachine.h
  6379. * src/OSMetalinkParserState.h
  6380. * src/PieceHashMetalinkParserState.h
  6381. * src/PiecesMetalinkParserState.h
  6382. * src/ResourcesMetalinkParserState.h
  6383. * src/SizeMetalinkParserState.h
  6384. * src/SkipTagMetalinkParserState.h
  6385. * src/URLMetalinkParserState.h
  6386. * src/VerificationMetalinkParserState.h
  6387. * src/VersionMetalinkParserState.h
  6388. * src/XML2SAXMetalinkProcessor.cc
  6389. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6390. Added StringFormat class, which internally calls vasprintf.
  6391. operator<< is defined for this class, so it can be used with iostream
  6392. classes nicely. SimpleLogger and following functions are rewritten
  6393. using StringFormat class.
  6394. Besides, now Logger class's methods are non-const, many classes
  6395. that has a const Logger* as a member variable are modified to remove
  6396. const qualifier from the variable declaration.
  6397. * src/HelpItemFactory.cc
  6398. * src/Request.cc
  6399. * src/SimpleLogger.cc
  6400. * src/StringFormat.cc
  6401. * src/StringFormat.h
  6402. * src/Util.cc
  6403. * src/option_processing.cc
  6404. * src/version_usage.cc
  6405. * test/StringFormatTest.cc
  6406. * src/*.h: The classes that has const Logger* as a member variable.
  6407. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6408. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  6409. failed. Also fixed memory link when exception is thrown there.
  6410. * src/main.cc (AccRequestGroup)
  6411. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6412. Added build-in "Accept-Features" support. For now only "metalink" is
  6413. used in this header field.
  6414. This "metalink" value is removed from the list when connecting URLs
  6415. fed by metalink file to avoid loop in "transparent" metlaink.
  6416. * src/HttpRequest.cc
  6417. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  6418. header is also held in this variable. Also renamed setUserHeaders as
  6419. addHeader and it was rewritten to add header not just to clear the old
  6420. value.
  6421. * src/HttpRequestCommand.cc
  6422. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  6423. from "Accept-Features" list.
  6424. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  6425. default.
  6426. * src/RequestGroup.h
  6427. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  6428. * src/a2functional.h: Included <string> because Concat class depends on
  6429. it.
  6430. * test/HttpRequestTest.cc
  6431. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6432. Added comment
  6433. * src/RequestGroup.cc (createNextCommand)
  6434. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6435. Capitalized METHOD_GET and METHOD_HEAD
  6436. * src/Request.cc
  6437. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6438. Added getDownloadResults() method
  6439. * src/RequestGroupMan.cc
  6440. * src/RequestGroupMan.h
  6441. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6442. Fixed the bug that aria2 exits when commands is empty() but
  6443. _routineCommands are not.
  6444. * src/DownloadEngine.cc
  6445. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6446. Use the default value pulled from Option object in HelpItemFactory.
  6447. except options whose defualt value is embedded in a usage text.
  6448. * src/HelpItemFactory.cc
  6449. * src/HelpItemFactory.h
  6450. * src/option_processing.cc
  6451. * src/version_usage.cc
  6452. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6453. Added --quiet option to make aria2 quiet (no console output).
  6454. --quiet option is tagged with ADVANCED.
  6455. * src/HelpItemFactory.cc
  6456. * src/LogFactory.cc
  6457. * src/LogFactory.h
  6458. * src/MultiUrlRequestInfo.cc
  6459. * src/MultiUrlRequestInfo.h
  6460. * src/NullStatCalc.h: New class. This class prints nothing.
  6461. * src/OptionHandlerFactory.cc
  6462. * src/main.cc
  6463. * src/option_processing.cc
  6464. * src/prefs.h
  6465. * src/usage_text.h
  6466. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6467. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  6468. * src/HelpItemFactory.cc (createHelpItems):
  6469. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6470. Fixed compilation error in ExpatMetalinkProcessor.cc
  6471. * src/ExpatMetalinkProcessor.cc
  6472. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6473. Reuse socket if the origin server supports HTTP keep-alive and
  6474. --enable-http-keep-alive or --enable-http-pipelining is given.
  6475. The current implementation doesn't reuse the connections established
  6476. against proxy server.
  6477. * src/AbstractCommand.cc
  6478. * src/DownloadEngine.cc
  6479. * src/DownloadEngine.h
  6480. * src/HttpDownloadCommand.cc
  6481. * src/HttpInitiateConnectionCommand.cc
  6482. * src/HttpResponseCommand.cc
  6483. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6484. Rewritten HTTP keep-alive and pipelining routine.
  6485. * src/AbstractCommand.cc
  6486. * src/HttpConnection.cc
  6487. * src/HttpDownloadCommand.cc
  6488. * src/HttpRequest.cc
  6489. * src/HttpRequestCommand.cc
  6490. * src/HttpResponseCommand.cc
  6491. * src/Request.cc
  6492. * src/Request.h
  6493. * src/RequestGroup.cc
  6494. * test/HttpRequestTest.cc
  6495. * test/HttpResponseTest.cc
  6496. * test/RequestTest.cc
  6497. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6498. Added missing setUserHeaders call
  6499. * src/HttpRequestCommand.cc
  6500. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6501. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  6502. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  6503. waste of time because it is more likey false.
  6504. * src/FileAllocationDispatcherCommand.cc (execute)
  6505. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6506. Now HTTP status and version are a member variable of HttpHeader.
  6507. HTTP status is processed as a string, not integer.
  6508. * src/AbstractProxyResponseCommand.cc
  6509. * src/HttpConnection.cc
  6510. * src/HttpHeader.cc
  6511. * src/HttpHeader.h
  6512. * src/HttpHeaderProcessor.cc
  6513. * src/HttpHeaderProcessor.h
  6514. * src/HttpResponse.cc
  6515. * src/HttpResponse.h
  6516. * test/HttpHeaderProcessorTest.cc
  6517. * test/HttpResponseTest.cc
  6518. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6519. Added --header option. You can specify any number of additional HTTP headers
  6520. like:
  6521. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  6522. Unlike other commad-line option, you can use --header option multiple times.
  6523. * src/HelpItemFactory.cc
  6524. * src/HttpRequest.{cc, h}
  6525. * src/HttpRequestCommand.cc
  6526. * src/OptionHandlerFactory.cc
  6527. * src/OptionHandlerImpl.h
  6528. * src/option_processing.cc
  6529. * src/prefs.h
  6530. * src/usage_text.h
  6531. * test/HttpRequestTest.cc (testUserHeaders)
  6532. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6533. Eliminates the time lag between sequential downloads and commands in
  6534. the same RequestGroup.
  6535. In old implementation, aria2 occasionally waits 1 seconds before
  6536. executing next command or RequestGroup.
  6537. This is really a waste of time, and new implementation eliminates
  6538. this unnecessary time lag.
  6539. * src/AbstractCommand.cc
  6540. * src/AutoSaveCommand.cc
  6541. * src/CheckIntegrityCommand.cc
  6542. * src/Command.{cc, h}
  6543. * src/DownloadEngine.{cc, h}
  6544. * src/DownloadEngineFactory.cc
  6545. * src/FileAllocationCommand.cc
  6546. * src/FileAllocationDispatcherCommand.cc
  6547. * src/FillRequestGroupCommand.cc
  6548. * src/FtpInitiateConnectionCommand.cc
  6549. * src/HaveEraseCommand.cc
  6550. * src/HttpInitiateConnectionCommand.cc
  6551. * src/HttpResponseCommand.cc
  6552. * src/RealtimeCommand.cc
  6553. * src/RequestGroup.cc
  6554. * src/RequestGroupMan.cc
  6555. * src/StreamFileAllocationEntry.cc
  6556. * src/TimeBasedCommand.{cc, h}
  6557. * src/TimedHaltCommand.cc
  6558. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6559. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  6560. keyword explicit and SharedHandle's default constructor initializes
  6561. its internal obj to null, old implementation initializes it using
  6562. obj's default constructor.
  6563. To assign null, write SharedHandle<T> x(...); x.reset();
  6564. TODO: test/SharedHandleTest.cc needs more tests.
  6565. * src/SharedHandle.h
  6566. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6567. Fixed type in man page.
  6568. * doc/aria2c.1.txt
  6569. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6570. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  6571. * src/SimpleLogger.{cc, h}
  6572. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6573. Implemented auto protocol detection.
  6574. Now you can do:
  6575. aria2c -Z http://host/file file1.torrent file2.metalink
  6576. (Note: -Z option is required for auto protcol detection.)
  6577. Then aria2c downloads 3 files simultaneously:
  6578. 1. http://host/file
  6579. 2. file1.torrent <-- read local torrent file
  6580. 3. file2.metalink <-- read local Metalink file.
  6581. Same thing goes with -i option. Assume your uris.txt contans:
  6582. http://host/file
  6583. file1.torrent
  6584. file2.metalink
  6585. Then you can do: aria2c -i uris.txt
  6586. (Note: -Z option is not needed if -i option is given.)
  6587. * src/main.cc
  6588. * src/ProtocolDetector.{cc, h}
  6589. * test/ProtocolDetectorTest.cc
  6590. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6591. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  6592. installed
  6593. * src/ARC4Encryptor.h
  6594. * src/ARC4Decryptor.h
  6595. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6596. Renamed argument from 'errno' to 'err', since errno is confused with
  6597. errno defined in errno.h.
  6598. * src/LibgcryptARC4Decryptor.h
  6599. * src/LibgcryptARC4Context.h
  6600. * src/LibgcryptDHKeyExchange.h
  6601. * src/LibgcryptARC4Encryptor.h
  6602. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6603. Rewritten choking algorithm.
  6604. * src/PeerChokeCommand.{cc, h}
  6605. * src/BtInterestedMessage.cc
  6606. * src/PeerSessionResource.{cc, h}
  6607. * src/DefaultPeerStorage.{cc, h}
  6608. * src/BtNotInterestedMessage.cc
  6609. * src/DefaultBtMessageDispatcher.{cc, h}
  6610. * src/BtMessageDispatcher.h
  6611. * src/Peer.{cc, h}
  6612. * src/BtLeecherStateChoke.{cc, h}
  6613. * src/BtSetup.cc
  6614. * src/BtSeederStateChoke.{cc, h}
  6615. * src/PeerStorage.h
  6616. * test/MockPeerStorage.h
  6617. * test/MockBtMessageDispatcher.h
  6618. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6619. Fixed compilation error on x84-64 platform.
  6620. * src/AuthConfig.cc: Included ostream.
  6621. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6622. Rewritten getBasename() and getDirname(), without standard library
  6623. basename(), dirname().
  6624. * src/File.cc
  6625. * test/FileTest.cc
  6626. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6627. Added Simplified Chinese translation. Also updated the following
  6628. translations: Polish, Dutch, German. Great thanks to all translators.
  6629. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6630. Suppress content-range error when 'Content-Range' response header
  6631. doesn't contains bytes-unit specifier 'bytes'
  6632. * src/HttpHeader.cc (getRange)
  6633. * test/HttpHeaderTest.cc
  6634. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6635. Fixed compilation error with g++-4.3
  6636. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6637. Added missing include files for MinGW
  6638. * test/HttpHeaderProcessorTest.cc
  6639. * test/DHTRoutingTableSerializerTest.cc
  6640. * test/DHTRoutingTableDeserializerTest.cc
  6641. * test/UriListParserTest.cc
  6642. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6643. Now download line is printed nicely with no garbage at the end of
  6644. line. I use ioctl to get the columns of terminal.
  6645. If stdout is redirected to another device, instead of carriage return,
  6646. end of line '\n' character is used. This is feature request#1909659
  6647. * src/ConsoleStatCalc.cc (calculateStat)
  6648. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6649. Included a2time.h
  6650. * src/DHTMessageDispatcher.h
  6651. * src/DHTMessageEntry.h
  6652. * src/DHTReplaceNodeTask.h
  6653. * src/DHTMessageTracker.h
  6654. * src/Util.h
  6655. * src/CookieBox.h
  6656. * src/SocketCore.h
  6657. * src/DefaultBtMessageDispatcher.h
  6658. * src/SocketCore.cc
  6659. * src/Util.cc
  6660. * src/DHTPingTask.h
  6661. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6662. Fixed high memory footprint when DHT is enabled.
  6663. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  6664. queued than it is processed and the queue is getting longer. As a
  6665. consequence, momory usage is increased.
  6666. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  6667. replacement cache in DHTBucket which is described in Kademlia paper.
  6668. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  6669. DHTReplaceNodeTask.
  6670. * src/DHTBucket.{h, cc}
  6671. (cacheNode): New function.
  6672. (getCachedNodes): New function.
  6673. (dropNode): Push back cached node to _nodes.
  6674. * test/DHTBucketTest.cc
  6675. (testCacheNode): New test
  6676. (testDropNode): New test
  6677. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6678. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  6679. the unused 4KB memory when ssl is not used.
  6680. * src/SocketCore.cc
  6681. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6682. Added summary log for peer announce storage.
  6683. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  6684. Removed cast
  6685. * src/DefaultPeerStorage.cc (addPeer)
  6686. Log exception message
  6687. * src/DHTMessageTracker.cc (handleTimeout)
  6688. Fixed casting
  6689. * test/HttpRequestTest.cc
  6690. * test/MetalinkProcessorTest.cc
  6691. * test/PieceTest.cc
  6692. * test/MetalinkEntryTest.cc
  6693. * test/SequenceTest.cc
  6694. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6695. * src/ParameterizedStringParser.cc (createLoop):
  6696. Removed unused variable sstep.
  6697. * src/AlphaNumberDecorator.h (decode): Rewritten.
  6698. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6699. * src/Util.{h, cc}
  6700. (parseUInt): New function.
  6701. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  6702. The actual range is uint32_t.
  6703. * test/UtilTest.cc
  6704. * src/ParameterizedStringParser.cc:
  6705. Use Util::parseUInt() for loop variables.
  6706. * test/ParameterizedStringParserTest.cc
  6707. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  6708. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6709. Rewritten the functions for binding port.
  6710. * src/DHTConnectionImpl.{h, cc}
  6711. * src/PeerListenCommand.{h, cc}
  6712. * src/DHTSetup.cc
  6713. * src/BtSetup.cc
  6714. * test/DHTConnectionImplTest.cc
  6715. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6716. type cleanup for allmost all remaining files.
  6717. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6718. Type clarification
  6719. * src/PeerSessionResource.{h, cc}
  6720. * src/DefaultPieceStorage.{h, cc}
  6721. * src/Peer.{h, cc}
  6722. * test/PeerSessionResourceTest.cc
  6723. Use div function
  6724. * src/BtPieceMessage.cc (erasePieceOnDisk)
  6725. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6726. Type clarification
  6727. * src/DefaultPeerStorage.{h, cc}
  6728. * test/DefaultPeerStorageTest.cc
  6729. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6730. Type clarification: size_t for length or size, uint64_t for file
  6731. length, off_t for file offset.
  6732. * src/DefaultBtProgressInfoFile.cc
  6733. * src/DefaultBtContext.{h, cc}
  6734. * src/DefaultBtInteractive.cc
  6735. * src/DownloadCommand.{h, cc}
  6736. * src/IteratableChunkChecksumValidator.{h, cc}
  6737. * src/SegmentMan.{h, cc}
  6738. * src/SingleFileDownloadContext.{h, cc}
  6739. * src/IteratableChecksumValidator.{h, cc}
  6740. * src/BtContext.h
  6741. * src/IteratableValidator.h
  6742. * src/DownloadContext.h
  6743. * test/SingleFileDownloadContextTest.cc
  6744. * test/DefaultBtContextTest.cc
  6745. * test/MockBtContext.h
  6746. * test/Metalink2RequestGroupTest.cc
  6747. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6748. Type clarification: size_t for length or size, uint64_t for file
  6749. length, off_t for file offset.
  6750. * src/PiecedSegment.cc
  6751. * src/GrowSegment.h
  6752. * src/DefaultBtRequestFactory.h
  6753. * src/DefaultBtProgressInfoFile.cc
  6754. * src/UnknownLengthPieceStorage.h
  6755. * src/DefaultPieceStorage.cc
  6756. * src/UnknownLengthPieceStorage.cc
  6757. * src/DefaultBtInteractive.cc
  6758. * src/GrowSegment.cc
  6759. * src/BitfieldMan.h
  6760. * src/DownloadCommand.cc
  6761. * src/BtRequestFactory.h
  6762. * src/PiecedSegment.h
  6763. * src/DefaultPieceStorage.h
  6764. * src/Piece.cc
  6765. * src/DefaultBtRequestFactory.cc
  6766. * src/PieceStorage.h
  6767. * src/Segment.h
  6768. * src/Piece.h
  6769. * src/BitfieldMan.cc
  6770. * src/Util.cc
  6771. * test/DefaultBtProgressInfoFileTest.cc
  6772. * test/DefaultPieceStorageTest.cc
  6773. * test/MockPieceStorage.h
  6774. * test/BtRequestMessageTest.cc
  6775. * test/DefaultBtMessageDispatcherTest.cc
  6776. * test/BitfieldManTest.cc
  6777. * test/GrowSegmentTest.cc
  6778. * test/PieceTest.cc
  6779. * test/SegmentTest.cc
  6780. * test/SegmentManTest.cc
  6781. * test/DefaultBtRequestFactoryTest.cc
  6782. * test/MockBtRequestFactory.h
  6783. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6784. Fixed compilation error with --disable-nls
  6785. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  6786. in gettext.h causes the problem.
  6787. * src/common.h
  6788. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6789. Removed subPiece related functions.
  6790. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  6791. * src/DefaultPieceStorage.{h, cc}
  6792. * test/PieceTest.cc
  6793. * test/DefaultPieceStorageTest.cc
  6794. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6795. Use unsigned char for data store.
  6796. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6797. Bump up version number to 0.13.0+1
  6798. * configure.ac
  6799. * Release 0.13.0+1
  6800. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6801. Changed inactive connection timeout to 120.
  6802. To accept more mulually interested peers, disconnect peer when there
  6803. is no interest between us after certain time passed.
  6804. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  6805. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6806. Fixed the bug that aria2 only uses first dns server in resolv.conf
  6807. when compiled with async DNS support.
  6808. * src/DownloadEngine.cc
  6809. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  6810. value '10' will be a little bit short when some DNS servers are
  6811. offline and several DNS servers are tried. It should be configured
  6812. by command-line option.
  6813. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6814. Merged Ross's mingw patch.
  6815. * src/DHTRoutingTableDeserializer.cc
  6816. * src/DHTRoutingTableSerializer.cc
  6817. * src/Platform.{h, cc}
  6818. * src/timegm.h
  6819. * src/gettimeofday.h
  6820. * src/getaddrinfo.h
  6821. * src/SocketCore.h
  6822. * src/common.h
  6823. * src/inet_aton.h
  6824. * src/DownloadEngine.h
  6825. * src/gai_strerror.h
  6826. * src/a2netcompat.h
  6827. * configure.ac
  6828. * configure
  6829. * aclocal.m4
  6830. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6831. Included missing iostream.
  6832. * test/AllTest.cc
  6833. * test/BtDependencyTest.cc
  6834. * test/BtExtendedMessageTest.cc
  6835. * test/DHTConnectionImplTest.cc
  6836. * test/DHTMessageFactoryImplTest.cc
  6837. * test/DHTMessageTrackerEntryTest.cc
  6838. * test/DHTNodeTest.cc
  6839. * test/DHTRoutingTableSerializerTest.cc
  6840. * test/DefaultBtAnnounceTest.cc
  6841. * test/DefaultBtContextTest.cc
  6842. * test/DefaultBtMessageFactoryTest.cc
  6843. * test/DefaultExtensionMessageFactoryTest.cc
  6844. * test/HandshakeExtensionMessageTest.cc
  6845. * test/HttpResponseTest.cc
  6846. * test/MetalinkProcessorTest.cc
  6847. * test/MultiFileAllocationIteratorTest.cc
  6848. * test/SocketCoreTest.cc
  6849. * test/UTPexExtensionMessageTest.cc
  6850. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6851. Reorganized includes.
  6852. * src/NameResolver.cc
  6853. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6854. Fixed compilation error without ares/c-ares
  6855. * src/NameResolver.h:
  6856. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6857. Added a test for large file.
  6858. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  6859. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6860. Fixed the bug that file size is ignored if size > INT32_MAX
  6861. * src/SizeMetalinkParserState.cc (endElement):
  6862. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6863. Bump up version number to 0.13.0
  6864. * configure.ac
  6865. * Release 0.13.0
  6866. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6867. Updated Makfefile.am to make 'make dist' work.
  6868. Now packaged filename is aria2c-VERSION.tar.bz2.
  6869. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  6870. Added LICENSE.OpenSSL to dist_noinst_DATA.
  6871. Large file support is now configured by configure script.
  6872. * configure.ac
  6873. Removed unsused source files
  6874. * src/
  6875. * test/
  6876. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  6877. Peer.h and BtContext.h respectively.
  6878. * src/Peer.h
  6879. * src/BtContext.h
  6880. Updated translations.
  6881. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  6882. translations. Great thanks to all translators!;)
  6883. * po/*.{po, gmo}
  6884. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6885. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  6886. statically declared sha1 MessageDigestContext.
  6887. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  6888. initialization of short-lived MessageDigestContext.
  6889. * src/MessageDigestHelper.{h, cc}
  6890. * src/main.cc
  6891. Now DownloadCommand has a reference to MessageDigestContext to avoid
  6892. the initialization of MessageDigestContext every time in validating
  6893. chunk checksum.
  6894. * src/DownloadCommand.{h, cc}
  6895. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6896. Add a file descriptor which connected to fast peer(latency<1500) to
  6897. select(). This change reduced CPU load.
  6898. * src/PeerInteractionCommand.cc
  6899. * src/DefaultBtInteractive.{h, cc}
  6900. * src/BtInteractive.h
  6901. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6902. Fixed the previous insufficient fix for possible busy loop.
  6903. * src/MSEHandshake.cc (identifyHandshakeType)
  6904. Removed unused functions.
  6905. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  6906. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6907. Fixed possible busy loop if first 20 bytes are not received for a few
  6908. minutes.
  6909. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  6910. * src/ReceiverMSEHandshakeCommand.cc
  6911. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6912. Fixed compilation error
  6913. * src/ExpatMetalinkProcessor.cc
  6914. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6915. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  6916. * src/DHTBucket.cc
  6917. Removed unnecessary cast.
  6918. * src/HandshakeExtensionMessage.cc
  6919. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6920. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  6921. is missing.
  6922. * src/OptionHandlerFactory.cc
  6923. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6924. Fixed the bug that HAVE message is not sent for a piece they are
  6925. downloaded fom http/ftp server before any BitTorrent handshake is done
  6926. with peers.
  6927. * src/DefaultBtInteractive.cc
  6928. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6929. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  6930. * src/Makefile.am
  6931. * src/Makefile.in
  6932. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6933. Updated README. Added html version of README and man page.
  6934. * README
  6935. * README.html
  6936. * readme2html: Shell script to generate README.html from README using
  6937. asciidoc.
  6938. * doc/aria2c.1.html
  6939. * doc/makeman: Added the line to generate aria2c.1.html
  6940. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6941. Fixed offset calculation.
  6942. * src/LibgcryptDHKeyExchange.h (computeSecret)
  6943. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6944. Rewritten itos and uitos using template. llitos and ullitos are
  6945. replaced with itos and uitos respectively.
  6946. * src/Util.{h, cc}
  6947. * test/UtilTest.cc
  6948. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6949. Fixed the bug that DH key exchange sometimes fails due to bad handling
  6950. of the number of bytes required for storing public key and shared
  6951. secret.
  6952. * src/LibgcryptDHKeyExchange.h
  6953. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  6954. * src/MSEHandshake.cc
  6955. * test/DHKeyExchangeTest.cc
  6956. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6957. Removed since they are not used.
  6958. * src/Xml2MetalinkProcessor.{h, cc}
  6959. * src/Socket.cc
  6960. * src/SegmentSplitter.{h, cc}
  6961. * test/Xml2MetalinkProcessorTest.cc
  6962. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6963. Fixed the bug that prevents aria2 from stopping other than by pressing
  6964. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  6965. option. aria2 doesn't stop even after --seed-time is satisfied and
  6966. continues to output blank lines in the console.
  6967. * src/ReceiverMSEHandshakeCommand.cc
  6968. * src/PeerReceiveHandshakeCommand.cc
  6969. * src/PeerListenCommand.cc
  6970. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6971. Bump up version number to 0.13.0rc
  6972. * configure.ac
  6973. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6974. Updated man page and some usage text.
  6975. * doc/aria2c.1.txt
  6976. * src/usage_text.h
  6977. * po/*.{po, gmo}
  6978. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6979. Updated translations. Added Finnish and Hebrew translations.
  6980. Great thanks to all translators!
  6981. * po/*.{po, gmo}
  6982. * po/LINGUAS
  6983. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6984. Log more detailed information about each message.
  6985. * src/DHTQueryMessage.{h, cc}
  6986. * src/DHTGetPeersMessage.{h, cc}
  6987. * src/DHTFindNodeReplyMessage.{h, cc}
  6988. * src/DHTGetPeersReplyMessage.{h, cc}
  6989. * src/DHTAnnouncePeerMessage.{h, cc}
  6990. * src/DHTResponseMessage.{h, cc}
  6991. * src/DHTFindNodeMessage.{h, cc}
  6992. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6993. Use constants defined in prefs.h
  6994. * src/option_processing.cc
  6995. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6996. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  6997. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6998. Make room for future enchancements for IPv6 addresses.
  6999. Bump up version number of dht.dat file format to 2.
  7000. Not compatible with previous version.
  7001. * src/DHTRoutingTableSerializer.cc
  7002. * src/DHTRoutingTableDeserializer.cc
  7003. * test/DHTRoutingTableSerializerTest.cc
  7004. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7005. Added handling for the return values from
  7006. PeerMessageUtil::createcompact().
  7007. * src/DefaultBtContext.cc (computeFastSet):
  7008. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7009. Fixed abort when peer's ip address is IPv4-mapped address.
  7010. * src/DefaultBtContext.cc (computeFastSet)
  7011. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  7012. cannot handle IPv4-mapped addresses.
  7013. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  7014. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7015. Proper return value handling for OpenSSL functions.
  7016. * src/LibsslDHKeyExchange.h
  7017. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7018. Random bytes generation using libgcrypt and OpenSSL.
  7019. * src/DHTUtil.{h, cc}
  7020. * test/DHTUtilTest.cc
  7021. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7022. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  7023. received.
  7024. * src/DHTMessageReceiver.cc (receiveMessage)
  7025. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7026. Fixed the bug that a return code is always 0. BUG#1897704
  7027. If error occurred during the download or there exist unfinished
  7028. downloads, aria2 returns with code 1.
  7029. * src/RequestGroupMan.{h, cc}
  7030. * src/MultiUrlRequestInfo.{h, cc}
  7031. * src/main.cc
  7032. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7033. IPv6 support for SocketCore class.
  7034. TODO: In SocketCore::establishConnection(), this is insufficient to
  7035. determin the failure of connect() here because the socket is
  7036. non-blocking state. The next addresses should be tried after select().
  7037. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  7038. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  7039. instead which address family independent.
  7040. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  7041. information in a compact peer format which is for IPv4 only.
  7042. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  7043. this is a spec of BitTorrent protocol.
  7044. * src/SocketCore.{h, cc}
  7045. * src/PeerMessageUtil.cc
  7046. * test/SocketCoreTest.cc
  7047. * test/PeerMessageUtilTest.cc
  7048. * test/DHTConnectionImplTest.cc
  7049. Handle IPv4-mapped addresses.
  7050. * src/DHTNode.cc: Now identity is determined by node id.
  7051. * src/DHTMessageTrackerEntry.cc
  7052. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  7053. should handle it.
  7054. * src/DHTRoutingTableDeserializer.cc
  7055. * src/DHTMessageFactoryImpl.cc
  7056. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7057. Change the unit of --stop option from a minute to a second.
  7058. * src/usage_text.h
  7059. * src/DownloadEngineFactory.cc
  7060. * src/OptionHandlerFactory.cc
  7061. * src/message.h
  7062. * src/TimedHaltCommand.cc
  7063. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7064. Make listening socket non-block mode.
  7065. * src/FtpConnection.cc
  7066. * src/FtpNegotiationCommand.{h, cc}
  7067. * src/PeerListenCommand.cc
  7068. Fixed the bug that cause slow ftp negotiation.
  7069. * src/FtpNegotiationCommand.{h, cc}
  7070. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7071. Added basic tag to --enable-dht, --dht-listen-port option.
  7072. * src/HelpItemFactory.cc (createHelpItems)
  7073. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7074. Updated text.
  7075. * src/usage_text.h
  7076. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7077. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  7078. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7079. Determin _threadtholdSpeed in each constructor for
  7080. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  7081. * src/ActivePeerConnectionCommand.{h, cc}
  7082. * src/PeerReceiveHandshakeCommand.{h, cc}
  7083. * src/BtSetup.cc
  7084. * src/BtConstants.h
  7085. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7086. Added --bt-min-crypto-level and --bt-require-crypto options.
  7087. * src/OptionHandlerFactory.cc
  7088. * src/MSEHandshake.cc
  7089. * src/HelpItemFactory.cc
  7090. * src/option_processing.cc
  7091. * src/ReceiverMSEHandshakeCommand.cc
  7092. * src/prefs.h
  7093. * src/DefaultBtAnnounce.cc
  7094. * src/InitiatorMSEHandshakeCommand.cc
  7095. * src/usage_text.h
  7096. * test/MSEHandshakeTest.cc
  7097. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7098. Bump version number to 0.13.0b
  7099. * configure.ac
  7100. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7101. Updated doc.
  7102. * src/MessageDigestHelper.h:
  7103. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7104. Use raw message digest as a token instead of its hexadecimal
  7105. representation.
  7106. * src/DHTTokenTracker.cc (generateToken)
  7107. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7108. Added Message Stream Encryption(MSE) support.
  7109. Currently, aria2 accepts incoming connections with Obfuscation Header
  7110. and legacy BitTorrent Header and establishes connections with
  7111. Obfuscation Header first and if failed then retry with legacy
  7112. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  7113. choose ARC4. The new option to change the default behavior is planned.
  7114. For tracker extension, "supportcrypto=1" is added statically.
  7115. * src/PeerInitiateConnectionCommand.{h, cc}
  7116. * src/PeerConnection.{h, cc}
  7117. * src/HandleRegistry.h
  7118. * src/SocketCore.h
  7119. * src/PeerReceiveHandshakeCommand.{h, cc}
  7120. * src/BtRegistry.{h, cc}
  7121. * src/PeerListenCommand.cc
  7122. * src/InitiatorMSEHandshakeCommand.{h, cc}
  7123. * src/ReceiverMSEHandshakeCommand.{h, cc}
  7124. * src/MSEHandshake.{h, cc}
  7125. * src/ARC4Encryptor.h
  7126. * src/ARC4Decryptor.h
  7127. * src/LibgcryptARC4Encryptor.h
  7128. * src/LibgcryptARC4Decryptor.h
  7129. * src/LibgcryptARC4Context.h
  7130. * src/LibsslARC4Encryptor.h
  7131. * src/LibsslARC4Decryptor.h
  7132. * src/LibsslARC4Context.h
  7133. * src/DHKeyExchange.h
  7134. * src/LibgcryptDHKeyExchange.h
  7135. * src/LibsslDHKeyExchange.h
  7136. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  7137. * test/DefaultBtAnnounceTest.cc
  7138. * test/ARC4Test.cc
  7139. * test/DHKeyExchangeTest.cc
  7140. Removed prepareForRetry() because it is not used.
  7141. * src/PeerAbstractCommand.{h, cc}
  7142. * src/PeerInteractionCommand.{h, cc}
  7143. * src/PeerInitiateConnectionCommand.{h, cc}
  7144. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7145. Added the ability to load nodes from torrent file. These nodes are
  7146. added to the routing table when downloading that torrent.
  7147. * src/BtContext.h
  7148. * src/DefaultBtContext.{h, cc}
  7149. * src/DHTSetup.cc
  7150. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  7151. hostname and port pair, and resolves all of them.
  7152. * src/NameResolver.{h, cc}: Added reset().
  7153. * src/RequestGroup.cc
  7154. * test/DefaultBtContextTest.cc
  7155. * test/MockBtContext.h
  7156. Removed assert() from DefaultBtContext and throw exception instead.
  7157. * src/DefaultBtContext.cc
  7158. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7159. Fixed segmentation fault bug when exiting if dht is disabled.
  7160. * src/RequestGroup.cc
  7161. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7162. Fixed typo in log message and define the message in message.h
  7163. * src/TimedHaltCommand.cc
  7164. * src/message.h
  7165. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7166. Included RecoverableException.h to fix compilation error.
  7167. * test/DHTMessageFactoryImplTest.cc
  7168. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7169. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  7170. * test/DHTPingMessageTest.cc
  7171. * test/DHTGetPeersMessageTest.cc
  7172. * test/DHTFindNodeMessageTest.cc
  7173. * test/DHTAnnouncePeerMessageTest.cc
  7174. * test/MockDHTMessage.h
  7175. * test/MockDHTMessageFactory.h
  7176. * test/MockDHTMessageDispatcher.h: New class.
  7177. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7178. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  7179. virtual.
  7180. * src/DHTMessageDispatcher.h
  7181. * src/DHTMessageDispatcherImpl.{h, cc}
  7182. * src/DHTSetup.cc
  7183. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7184. Adding handling of DHT error message. Just log error message and
  7185. throw exception.
  7186. * src/DHTMessageFactoryImpl.cc
  7187. * test/DHTMessageFactoryImplTest.cc
  7188. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7189. Added handling of dynamic cast failure.
  7190. * src/DHTNodeLookupTask.cc
  7191. * src/DHTPeerLookupTask.cc
  7192. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7193. Added the ability to stop aria2 itself when given time has passed
  7194. from start. Use --stop option to specify time in minutes.
  7195. When 0 is given, this feature is disabled.
  7196. * src/OptionHandlerFactory.cc
  7197. * src/TimeBasedCommand.h: Make _interval protected scope.
  7198. * src/HelpItemFactory.cc
  7199. * src/option_processing.cc
  7200. * src/prefs.h
  7201. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  7202. before calling RequestGroupMan::fillRequestGroupFromReserver().
  7203. Without this modification, the result list shows "ERR" when aria2 is
  7204. stopped by --stop option. It should be "INPR".
  7205. * src/DownloadEngine.{h, cc}
  7206. * src/DownloadEngineFactory.cc
  7207. * src/usage_text.h
  7208. * src/TimedHaltCommand.{h, cc}: New class.
  7209. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7210. Bootstrap through node added by port message.
  7211. Currently bootstrap is executed if the number of buckets in routing
  7212. table is 1.
  7213. * src/BtPortMessage.{h, cc}
  7214. * src/DefaultBtMessageFactory.{h, cc}
  7215. * src/PeerInteractionCommand.cc
  7216. * test/BtPortMessageTest.cc
  7217. * test/MockDHTTask.h
  7218. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7219. Extract the Peer class's member variables, which are only needed after
  7220. PeerInteractionCommand, into PeerSessionResource class.
  7221. This class is instantiated in PeerInteractionCommand class's ctor and
  7222. released in its dtor.
  7223. This will make Peer class lightweight and uses less memory for peers
  7224. which are not connected and wait in the queue.
  7225. * src/PeerChokeCommand.cc
  7226. * src/PeerSessionResource.{h, cc}
  7227. * src/PeerInteractionCommand.cc
  7228. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  7229. * src/DefaultBtInteractive.cc
  7230. * src/BtPieceMessage.cc
  7231. * src/BtInterestedMessage.cc
  7232. * src/BtUnchokeMessage.cc
  7233. * src/DefaultPeerStorage.{h, cc}
  7234. * src/PeerInitiateConnectionCommand.cc
  7235. * src/ActivePeerConnectionCommand.cc
  7236. * src/BtNotInterestedMessage.cc
  7237. * src/DefaultBtMessageDispatcher.cc
  7238. * src/BtChokeMessage.cc
  7239. * src/BtRequestMessage.cc
  7240. * src/Peer.{h, cc}
  7241. * src/BtRegistry.h
  7242. * src/TrackerWatcherCommand.cc
  7243. * src/PeerReceiveHandshakeCommand.cc
  7244. * test/BtExtendedMessageTest.cc
  7245. * test/BtAllowedFastMessageTest.cc
  7246. * test/BtCancelMessageTest.cc
  7247. * test/DefaultPieceStorageTest.cc
  7248. * test/BtBitfieldMessageTest.cc
  7249. * test/BtHaveMessageTest.cc
  7250. * test/BtNotInterestedMessageTest.cc
  7251. * test/BtRequestMessageTest.cc
  7252. * test/PeerSessionResourceTest.cc
  7253. * test/DefaultBtMessageDispatcherTest.cc
  7254. * test/PeerTest.cc
  7255. * test/BtInterestedMessageTest.cc
  7256. * test/BtRejectMessageTest.cc
  7257. * test/BtChokeMessageTest.cc
  7258. * test/DefaultPeerStorageTest.cc
  7259. * test/BtHaveNoneMessageTest.cc
  7260. * test/BtHaveAllMessageTest.cc
  7261. * test/DefaultExtensionMessageFactoryTest.cc
  7262. * test/BtUnchokeMessageTest.cc
  7263. * test/DefaultBtMessageFactoryTest.cc
  7264. * test/HandshakeExtensionMessageTest.cc
  7265. * test/UTPexExtensionMessageTest.cc
  7266. * test/DefaultBtRequestFactoryTest.cc
  7267. * test/BtPieceMessageTest.cc
  7268. Removed typedef PeerStats.
  7269. * src/PeerStat.h
  7270. * src/SegmentMan.cc
  7271. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7272. Added std namespace to copy, remove_copy, back_inserter,
  7273. front_inserter.
  7274. * src/RequestGroupMan.cc
  7275. * src/DefaultPieceStorage.cc
  7276. * src/StreamFileAllocationEntry.cc
  7277. * src/BtFileAllocationEntry.cc
  7278. * src/RequestGroup.cc
  7279. * src/MetalinkEntry.cc
  7280. * src/DelegatingPeerListProcessor.cc
  7281. * src/DefaultBtRequestFactory.cc
  7282. * src/DefaultBtMessageDispatcher.cc
  7283. * src/version_usage.cc: Included <algorithm>
  7284. * src/main.cc
  7285. * src/MetalinkParserController.cc
  7286. * src/DefaultBtContext.cc
  7287. * src/DownloadEngineFactory.cc
  7288. * src/a2algo.h
  7289. Removed.
  7290. * test/StreamUriListParserTest.cc
  7291. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7292. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  7293. ActivePeerConnectionCommand when it is given and
  7294. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  7295. * src/ActivePeerConnectionCommand.{h, cc}
  7296. * src/BtSetup.cc
  7297. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7298. Only add socket to DownloadEngine's select routine when peer or
  7299. localhost is unchoked and interested. This lowers CPU usage a
  7300. little bit.
  7301. * src/PeerInteractionCommand.cc
  7302. * src/PeerAbstractCommand.{h, cc}
  7303. * src/BtInteractive.h
  7304. * src/DefaultBtInteractive.{h, cc}
  7305. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7306. Revert previous change because get_peers message is needed for
  7307. announce_peer anyway.
  7308. * src/DHTGetPeersCommand.cc
  7309. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7310. Request peers thought DHT only when download hasn't finished.
  7311. * src/DHTGetPeersCommand.cc
  7312. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7313. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  7314. * src/DHTBucketRefreshTask.{h, cc}
  7315. * src/DHTSetup.cc
  7316. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7317. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  7318. standard classes.
  7319. Included string.h where mem* function are used.
  7320. Added namespace aria2.
  7321. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7322. Create directory before saving DHT routing table.
  7323. Now ios::failure is now handled properly.
  7324. * src/DHTAutoSaveCommand.cc
  7325. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7326. Removed unnecessary cerr.
  7327. * src/DownloadEngine.cc
  7328. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7329. Catch exception inside DHTMessageReceiver::receiveMessage().
  7330. Log unknown message.
  7331. * src/DHTMessageReceiver.{h, cc}
  7332. * src/DHTMessageFactory.h
  7333. * src/DHTMessageFactoryImpl.{h, cc}
  7334. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  7335. * src/DHTInteractionCommand.cc
  7336. * src/DHTUnknownMessage.{h, cc}
  7337. * test/DHTUnknownMessageTest.cc
  7338. * test/MockDHTMessageFactory.h
  7339. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7340. Commented out ip address comparison because a host can have multiple
  7341. ip addresses and it is hard to predict the hostname is resolved into
  7342. which one.
  7343. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  7344. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7345. * po/Makefile.in: Removed since this is generated by configure.
  7346. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7347. Fixed compiler warning about redefinition of SIZE_MAX.
  7348. Use common.h instead of config.h directly here.
  7349. * src/Platform.{h, cc}
  7350. The check of ENABLE_NLS is made in gettext.h, so it is not required
  7351. here.
  7352. * common.h
  7353. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  7354. Updated gettext related files.
  7355. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  7356. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  7357. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7358. Added DHT functionality, compatible with mainline.
  7359. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  7360. You may need to specify entry point to DHT network using
  7361. --dht-entry-point. DHT uses UDP port to listen incoming message.
  7362. Use --dht-listen-port to specify port number. Make sure that your
  7363. firewall configuration can pass through UDP traffic to the port.
  7364. The routing table is saved in $HOME/.aria2/dht.dat.
  7365. * src/DHT*
  7366. * src/BNode.{h, cc}
  7367. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  7368. particular torrent.
  7369. * src/Data.cc: Rewritten ctor.
  7370. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  7371. --dht-entry-point.
  7372. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  7373. * src/RequestGroup.cc: Initialize DHT functionality. When download
  7374. ends, remove BtContext from DHTPeerAnnounceStorage.
  7375. * src/BtPortMessage.{h, cc}: Rewritten.
  7376. * src/message.h
  7377. * src/OptionHandlerImpl.cc
  7378. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  7379. --dht-entry-point.
  7380. * src/Dictionary.{h, cc} (remove): New function.
  7381. * src/prefs.h
  7382. * src/DefaultBtMessageFactory.h
  7383. * src/BtHandshakeMessage.cc
  7384. * src/ActivePeerConnectionCommand.cc
  7385. * src/SocketCore.{h, cc}: Added datagram socket support.
  7386. * src/DefaultBtMessageFactory.cc
  7387. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  7388. Create DHT commands.
  7389. * src/BtMessageFactory.h
  7390. * src/PeerMessageUtil.{h, cc}
  7391. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7392. Fixed the bug that log file is not written when configuration file doesn't exist.
  7393. This is caused by using Logger class before LogFactory is not configured.
  7394. BUG #1875079
  7395. * src/option_processing.cc
  7396. Warning message "configuration doesn't exist" is only printed when --conf is
  7397. given.
  7398. * src/option_processing.cc
  7399. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7400. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  7401. ShaVisitor is now deprecated and slated to be removed.
  7402. * src/DefaultBtContext.cc
  7403. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7404. Externalize message to message.h
  7405. * src/Platform.cc
  7406. * src/message.h
  7407. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7408. Set default domain and default path to cookie.
  7409. * src/HttpResponse.cc
  7410. * src/CookieBox.{h, cc}
  7411. * src/CookieParser.{h, cc}
  7412. * test/CookieParserTest.cc
  7413. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7414. Added --no-conf and --conf-path command-line option.
  7415. --no-conf option disables loading aria2.conf file.
  7416. --conf-path option changes the configuration file path. The default
  7417. file path is $HOME/.aria2/aria2.conf
  7418. Added a warning message when the configuration file is not found.
  7419. * src/HelpItemFactory.cc
  7420. * src/option_processing.cc
  7421. * src/prefs.h
  7422. * src/usage_text.h
  7423. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7424. Added the message to inform users that other help categories are
  7425. available in -h option.
  7426. * src/version_usage.cc
  7427. * src/TagContainer.{h, cc}
  7428. * test/TagContainerTest.cc
  7429. * src/TaggedItem.{h, cc}
  7430. * test/TaggedItemTest.cc
  7431. * src/HelpItem.h
  7432. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7433. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  7434. from PiecedSegment's ctor.
  7435. Previously Piece::getAllMissingBlockIndexes() is called from
  7436. PiecedSegment() but it is rather expensive since only first element is
  7437. used.
  7438. * src/PiecedSegment.cc
  7439. * src/Piece.{h, cc}
  7440. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7441. Rewritten get*Missing*Index functions. Now no need to allocate memory
  7442. each time these functions are called.
  7443. * src/BitfieldMan.{h, cc}
  7444. * test/BitfieldManTest.cc
  7445. * src/array_fun.h
  7446. * test/array_funTest.cc
  7447. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  7448. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  7449. filtered. Removed unnecessary cast to int32_t.
  7450. * src/BitfieldMan.{h, cc}
  7451. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7452. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  7453. payload length(4bytes) are received. This happens because lenbufLength
  7454. is not updated in this particular case and successive call of
  7455. receiveMessage() overwrites payload length with bytes recieved which
  7456. are payload body.
  7457. * src/PeerConnection.{h, cc}
  7458. * src/message.h
  7459. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7460. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  7461. peer if there are peers that have same ipaddr and port.
  7462. I've experiened segmentation fault and "pure virtual function was
  7463. called" error.
  7464. * src/Peer.h
  7465. * test/PeerTest.cc
  7466. * src/DefaultPeerStorage.cc
  7467. * test/DefaultPeerStorageTest.cc
  7468. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7469. Removed a call to isPowerOf() because it is no longer necessary here
  7470. and a request block is not always power of 2.
  7471. BUG#1866924
  7472. * src/PeerMessageUtil.cc (checkLength)
  7473. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7474. Fixed the bug that always first found Segment is removed from
  7475. usedSegmentEntries. Removed unused functions.
  7476. * src/SegmentMan.{h, cc}
  7477. * test/SegmentManTest.cc
  7478. Fixed the bug that ServerHost is not removed.
  7479. * src/RequestGroup.cc
  7480. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7481. Fixed the bug that SegmentMan::completeSegment() is not called
  7482. even if Segment is complete when --lowest-speed-limit is enabled.
  7483. BUG#1864525
  7484. * src/DownloadCommand.{h, cc}
  7485. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7486. Fixed: hash algorithm 'sha1' is always used.
  7487. * src/DownloadCommand.cc (validatePieceHash)
  7488. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7489. Added --enable-peer-exchange command-line option.
  7490. * src/OptionHandlerFactory.cc
  7491. * src/HelpItemFactory.cc
  7492. * src/option_processing.cc
  7493. * src/usage_text.h
  7494. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7495. Move extension from BtRuntime to ExtensionMessageFactory, because
  7496. extension can be specified per peer, not per torrent.
  7497. * src/DefaultBtInteractive.cc
  7498. * src/BtRuntime.h
  7499. * src/ExtendedMessagingAware.h
  7500. * src/ExtensionMessageFactory.h
  7501. * src/DefaultExtensionMessageFactory.cc
  7502. * test/DefaultExtensionMessageFactoryTest.cc
  7503. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7504. Added categorized option help. Specify category using --help option.
  7505. Also added the ability to search options in forward match.
  7506. * src/HelpItem.{h, cc}
  7507. * test/HelpItemTest.cc
  7508. * src/HelpItemFactory.{h, cc}
  7509. * src/TagContainer.{h, cc}
  7510. * test/TagContainerTest.cc
  7511. * src/option_processing.cc
  7512. * src/prefs.h
  7513. * src/TaggedItem.{h, cc}
  7514. * test/TaggedItemTest.cc
  7515. * src/version_usage.cc
  7516. * src/help_tags.h
  7517. * src/usage_text.h
  7518. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7519. Fixed segmentation fault when bad torrent metainfo is parsed.
  7520. Added dynamic_cast properly to detect the misconfiguration of metainfo
  7521. and then throw exception or skip it.
  7522. * src/DefaultBtContext.{h, cc}
  7523. * test/DefaultBtContextTest.cc
  7524. * src/AnnounceList.cc
  7525. * src/CompactPeerListProcessor.cc
  7526. * src/message.h
  7527. * src/DefaultBtAnnounce.{h, cc}
  7528. * test/DefaultBtAnnounceTest.cc
  7529. * src/BencodeVisitor.cc
  7530. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7531. Added missing "B"(=Byte). So now the message looks like this:
  7532. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  7533. * src/message.h (MSG_SHARE_RATIO_REPORT)
  7534. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7535. Show the seed ratio after torrent downloads.
  7536. For example, after torrent download completed and --seed-time and
  7537. --seed-ratio conditions are fulfilled, following message is printed
  7538. right after "Download complete: .....":
  7539. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  7540. * src/RequestGroupMan.cc
  7541. * src/RequestGroup.{h, cc}
  7542. * src/message.h
  7543. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7544. Remove a defunct control file. A defunct control file means that while
  7545. it exists, but the corresponding download file is missing.
  7546. After its removal, a download restarts from the beginning.
  7547. * src/RequestGroup.cc
  7548. * src/message.h
  7549. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7550. Allocate bitfield in Peer when it is really used. More specifically,
  7551. bitfield in Peer is allocated after the connection is established and
  7552. deallocated when the connection is dropped.
  7553. Since 2 parameters(piece length and total length) was removed from the
  7554. constructor of Peer class, many test classes were modified accordingly.
  7555. See svn log for more detailed information.
  7556. * src/PeerInteractionCommand.cc
  7557. * src/CompactPeerListProcessor.cc
  7558. * src/Peer.cc
  7559. * src/DefaultPeerListProcessor.cc
  7560. * src/PeerListenCommand.cc
  7561. * src/PeerReceiveHandshakeCommand.cc
  7562. Fixed memory leak
  7563. * src/Piece.cc
  7564. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7565. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  7566. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  7567. command-line options.
  7568. * src/option_processing.cc
  7569. * src/ActivePeerConnectionCommand.cc
  7570. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7571. Send have message to peer if it already has the piece.
  7572. * src/BtHaveMessage.{h, cc}
  7573. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7574. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  7575. port.
  7576. * src/DefaultPeerStorage.{h, cc}
  7577. * test/DefaultPeerStorageTest.cc
  7578. * src/HandshakeExtensionMessage.cc
  7579. * test/HandshakeExtensionMessageTest.cc
  7580. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  7581. * src/PeerStorage.h
  7582. * test/MockPeerStorage.h
  7583. * src/PeerListenCommand.cc
  7584. * src/PeerReceiveHandshakeCommand.cc
  7585. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7586. Added --metalink-enable-unique-protocol option.
  7587. * src/Metalink2RequestGroup.cc
  7588. * src/option_processing.cc
  7589. * src/prefs.h
  7590. * src/version_usage.cc
  7591. * doc/aria2c.1.txt
  7592. * doc/aria2c.1
  7593. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7594. Allow a peer in incomingPeer to be added peers.
  7595. * src/DefaultPeerStorage.cc
  7596. * test/DefaultPeerStorageTest.cc
  7597. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7598. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  7599. I could reproduce this bug in following procedure:
  7600. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  7601. 2. Restart aria2.
  7602. 3. You see the download stopped around 99%.
  7603. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  7604. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  7605. If timeout is reached, then _nextCommand is unused and it may contains
  7606. segments and they won't be canceled. Actually, timeout is not needed
  7607. here because if the server dropped connection, then retry is made.
  7608. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7609. Added uTorrent compatible Peer Exchange.
  7610. * src/BencodeVisitor.{h, cc}
  7611. * test/BencodeVisitorTest.cc
  7612. * src/BtConstants.h
  7613. * src/BtContext.h: Added 'private' flag.
  7614. * src/BtExtendedMessage.{h, cc}
  7615. * test/BtExtendedMessageTest.cc
  7616. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  7617. reserved field.
  7618. * test/BtHandshakeMessageTest.cc
  7619. * src/BtMessageFactory.h
  7620. * src/BtRegistry.h
  7621. * src/BtRuntime.h: This class holds default extension message IDs for
  7622. aria2. By default, aria2 uses ID 8 for ut_pex.
  7623. * src/DefaultBtContext.cc
  7624. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  7625. When it is true, aria2 enables ut_pex. This value is set by
  7626. PeerInteractionCommand.
  7627. * src/DefaultBtMessageFactory.{h, cc}
  7628. * test/DefaultBtMessageFactoryTest.cc
  7629. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  7630. handling to DefaultBtInteractive class.
  7631. * src/DefaultExtensionMessageFactory.{h, cc}
  7632. * test/DefaultExtensionMessageFactoryTest.cc
  7633. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  7634. the container(peers and incomingPeers. The equality is determined by
  7635. Peer::id).
  7636. * test/DefaultPeerStorageTest.cc
  7637. * src/ExtensionMessage.h
  7638. * test/MockExtensionMessage.h
  7639. * src/ExtensionMessageFactory.h
  7640. * test/MockExtensionMessageFactory.h
  7641. * src/HandshakeExtensionMessage.{h, cc}
  7642. * test/HandshakeExtensionMessageTest.cc
  7643. * src/MetaEntry.h
  7644. * src/Peer.{h, cc}
  7645. * src/PeerInteractionCommand.cc
  7646. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  7647. addIncomingPeer.
  7648. * src/PeerMessageUtil.{h, cc}
  7649. * src/PeerObject.h
  7650. * src/UTPexExtensionMessage.{h, cc}
  7651. * test/UTPexExtensionMessageTest.cc
  7652. * src/message.h
  7653. * src/prefs.h
  7654. Fixed the bug that returns incomplete data when it contains null
  7655. character. A convenient constructor was also added.
  7656. * src/Data.{h, cc}
  7657. Rewritten.
  7658. * src/CompactPeerListProcessor.cc
  7659. Fixed typos.
  7660. * src/message.h
  7661. * src/MetaFileUtil.cc
  7662. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7663. Added "Status Legend" label to the explanation text of 'stat' in
  7664. download result and moved it to the last. BUG#1848214
  7665. * src/RequestGroupMan.cc
  7666. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7667. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  7668. * src/Makefie.am
  7669. * test/Makefile.am
  7670. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7671. Fixed the bug that prevents aria2 from loading cookie file when expire
  7672. value is greater than 2^31-1. BUG#1851066
  7673. * src/CookieBoxFactory.cc
  7674. * test/CookieBoxFactoryTest.cc
  7675. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7676. Fixed possible memory leak when an exception is thrown.
  7677. * src/XML2SAXMetalinkProcessor.cc
  7678. Added Expat support. If both libxml2 and Expat are installed, then
  7679. libxml2 is used by default.
  7680. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  7681. ExpatMetalinkProcessor according to the configuration.
  7682. * src/ExpatMetalinkProcessor.{h, cc}
  7683. * src/main.cc: Removed libxml2 specific header and init/free function.
  7684. * src/MetalinkProcessorFactory.{h, cc}
  7685. * src/MetalinkHelper.cc
  7686. * src/Metalinker.h: Removed unnecessary libxml2 header.
  7687. * src/MetalinkProcessor.h
  7688. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  7689. MetalinkProcessorTest is used instead.
  7690. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  7691. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  7692. MetalinkProcessorFactory::newInstance().
  7693. * m4/libexpat.m4
  7694. * configure.ac: Added configuration options for libexpat.
  7695. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7696. Disabled -s option in metalink download.
  7697. * src/Metalink2RequestGroup.cc
  7698. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7699. If several protocols are available for a mirror in metalink file,
  7700. aria2 now use one of them. --metalink-preferred-protocol option was
  7701. added to specify the preference of protocol.
  7702. * src/AbstractCommand.cc
  7703. * src/OptionHandlerFactory.cc
  7704. * src/ServerHost.{h, cc}
  7705. * src/Metalink2RequestGroup.cc
  7706. * src/RequestGroup.{h, cc}
  7707. * test/RequestGroupTest.cc
  7708. * src/option_processing.cc
  7709. * src/prefs.h
  7710. * src/HttpResponseCommand.cc
  7711. * src/MetalinkResource.{h, cc}
  7712. * src/FtpNegotiationCommand.cc
  7713. * src/MetalinkEntry.{h, cc}
  7714. * src/MetalinkEntryTest.cc
  7715. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7716. Code cleanup and added debug log.
  7717. * src/PeerConnection.cc
  7718. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7719. Compiler error fix: applied the patch by Tiziano Mueller
  7720. * src/RequestGroup.cc
  7721. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7722. Fixed the bug: only first announce URL is tried in AnnounceTier,
  7723. in stopped and completed event.
  7724. * src/AnnounceList.{h, cc}
  7725. * test/AnnounceListTest.cc
  7726. * src/DefaultBtAnnounce.cc
  7727. * test/DefaultBtAnnounceTest.cc
  7728. Sorted URLs.
  7729. * test/Metalink2RequestGroupTest.cc
  7730. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7731. Removed unnecessary string copy. Updated doc and corrected indentation.
  7732. * src/Base64.cc
  7733. Fixed compilation warnings
  7734. * test/DataTest.cc
  7735. * test/HttpRequestTest.cc
  7736. * test/MetaFileUtilTest.cc
  7737. * test/RequestTest.cc
  7738. * Release 0.12.0
  7739. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7740. Updated translations
  7741. * po/{de,fr,ja,nl,ru}.po
  7742. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  7743. translations. Many thanks to translators.
  7744. * po/{ca,es,it,pt_BR,sv}.po
  7745. * po/LINGUAS
  7746. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7747. Added a notice about URL
  7748. * src/version_usage.cc
  7749. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  7750. Fixed the bug#1845750; CTRL+C does not stop torrent.
  7751. aria2 repeatedly sends stopped request when tracker returns error code.
  7752. * src/AnnounceList.cc
  7753. * test/AnnounceListTest.cc
  7754. * src/AnnounceTier.h
  7755. Added a message when ctrl-c is hit.
  7756. Now second ctrl-c is also handled in signal handler.
  7757. * src/RequestGroupMan.{h, cc}
  7758. * src/RequestGroup.{h, cc}
  7759. * src/MultiUrlRequestInfo.cc
  7760. * src/DownloadEngine.cc
  7761. * src/TrackerWatcherCommand.cc
  7762. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7763. Code cleanup
  7764. * src/Base64.cc (encode)
  7765. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7766. Changed Direct/IO enable/disable procesure in file allocation routine.
  7767. * src/SingleFileAllocationIterator.cc
  7768. (SingleFileAllocationIterator):
  7769. Disable directIO if offset is not multiple of 512.
  7770. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  7771. * src/MultiFileAllocationIterator.cc (allocateChunk):
  7772. Enable created SingleFileAllocationIterator's directIO.
  7773. * src/FileAllocationEntry.cc
  7774. (FileAllocationEntry): Enable directIO here.
  7775. (~FileAllocationEntry): Disable directIO here.
  7776. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7777. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  7778. * src/Peer.{h, cc}
  7779. * src/DefaultPieceStorage.cc
  7780. * test/DefaultPieceStorageTest.cc
  7781. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7782. Rewritten direct I/O support routine
  7783. * src/SingleFileAllocationIterator.cc
  7784. * src/MultiDiskAdaptor.{h, cc}
  7785. * src/ByteArrayDiskWriter.h
  7786. * src/AbstractSingleDiskAdaptor.h
  7787. * src/AbstractDiskWriter.cc
  7788. * src/DefaultPieceStorage.cc
  7789. * src/DiskWriter.h
  7790. * src/BinaryStream.h
  7791. * src/IteratableChunkChecksumValidator.cc
  7792. * src/IteratableChecksumValidator.cc
  7793. * src/CheckIntegrityEntry.cc
  7794. * src/FileAllocationEntry.cc
  7795. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7796. Fixed typo
  7797. * src/version_usage.cc
  7798. Updated doc
  7799. * doc/aria2c.1.txt
  7800. * doc/aria2c.1
  7801. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7802. Fixed compile error without message digest support.
  7803. * src/FileMetalinkParserState.cc
  7804. * src/MetalinkParserController.{h, cc}
  7805. * test/XML2SAXMetalinkProcessorTest.cc
  7806. * test/MetalinkParserControllerTest.cc
  7807. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7808. Enable direct I/O support in checksum checking.
  7809. * src/IteratableChunkChecksumValidator.{h, cc}
  7810. * test/IteratableChunkChecksumValidatorTest.cc
  7811. * src/CheckIntegrityEntry.cc
  7812. * src/PieceHashCheckIntegrityEntry.cc
  7813. * src/IteratableChecksumValidator.{h, cc}
  7814. * src/BtCheckIntegrityEntry.cc: Added doc.
  7815. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7816. Added --allow-piece-length-change option.
  7817. * src/DefaultBtProgressInfoFile.cc
  7818. * test/DefaultBtProgressInfoFileTest.cc
  7819. * src/OptionHandlerFactory.cc
  7820. * src/option_processing.cc
  7821. * src/prefs.h
  7822. * src/version_usage.cc
  7823. * doc/aria2c.1.txt
  7824. * doc/aria2c.1
  7825. Fixed: duplicated result entry appears when exception is thrown in
  7826. RequestGroup::createInitiateConnectionCommand().
  7827. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  7828. Add RequestGroup to _requestGroup after RequetGroup::
  7829. createInitiateConnectionCommand() succeeds.
  7830. Externalized message
  7831. * src/XML2SAXMetalinkProcessor.cc
  7832. * src/message.h
  7833. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7834. Forced download abort when received negative response from http/ftp
  7835. server.
  7836. * src/HttpResponseCommand.cc
  7837. * src/FtpNegotiationCommand.cc
  7838. * src/HttpResponse.cc
  7839. * src/FtpConnection.cc
  7840. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7841. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  7842. the predecessor, Xml2MetalinkParser class.
  7843. I tested them against 94KB metalink file with 1234 chunk checksums.
  7844. The new one parsed it in 22msec, while it took 6000msec with old one.
  7845. * src/XML2SAXMetalinkProcessor.{h, cc}
  7846. * test/XML2SAXMetalinkProcessorTest.cc
  7847. * src/MetalinkParserController.{h, cc}
  7848. * test/MetalinkParserControllerTest.cc
  7849. * src/MetalinkParserState.h: Also added 16 subclasses.
  7850. * src/main.cc
  7851. * src/Metalink2RequestGroup.cc
  7852. * src/MetalinkHelper.cc
  7853. * src/MetalinkEntry.cc
  7854. * src/ChunkChecksum.h
  7855. Rewritten Base64 class for better performance.
  7856. * src/Base64.{h, cc}
  7857. * test/Base64Test.cc
  7858. * src/HttpRequest.cc
  7859. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7860. Fixed the bug#1841757: aria2 will connect to server to only get
  7861. file size.
  7862. * src/StreamFileAllocationEntry.cc
  7863. * src/option_processing.cc
  7864. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  7865. downloads.
  7866. * src/FtpNegotiationCommand.cc
  7867. Suppressed wrong message when finding PreDownloadHandler
  7868. * src/RequestGroup.cc
  7869. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7870. Updated usage
  7871. * src/version_usage.cc
  7872. Updated man page
  7873. * doc/aria2c.1.txt
  7874. * doc/aria2c.1
  7875. Updated po files
  7876. * po/aria2c.pot
  7877. * po/*.po
  7878. * po/*.gmo
  7879. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7880. Eliminated g++-4.2 warning
  7881. * src/DownloadHandlerConstants.{h, cc}
  7882. * src/Util.cc
  7883. * test/MetaFileUtilTest.cc
  7884. * test/PStringBuildVisitorTest.cc
  7885. Fixed bug: --check-integrity doesn't work for multi file torrent.
  7886. * src/RequestGroup.cc
  7887. * src/BtCheckIntegrityEntry.cc
  7888. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7889. Fixed a2io.h
  7890. * src/a2io.h
  7891. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7892. Added direct I/O support. The current implementation uses O_DIRECT,
  7893. which is not posix standard and is tested on linux 2.6.21.
  7894. Currently only file allocation uses direct I/O.
  7895. * src/SingleFileAllocationIterator.{h, cc}
  7896. * test/SingleFileAllocationIteratorTest.cc
  7897. * src/MultiFileAllocationIterator.{h, cc}
  7898. * test/MultiFileAllocationIteratorTest.cc
  7899. * src/BinaryStream.h
  7900. * src/DiskWriter.h
  7901. * src/AbstractDiskWriter.{h, cc}
  7902. * src/ByteArrayDiskWriter.h
  7903. * src/DiskAdaptor.h
  7904. * src/AbstractSingleDiskAdaptor.{h, cc}
  7905. * src/MultiDiskAdaptor.{h, cc}
  7906. * src/FileAllocationEntry.cc
  7907. * src/Util.{h, cc}
  7908. * src/OptionHandlerFactory.cc
  7909. * src/prefs.h
  7910. * src/version_usage.cc
  7911. * src/option_processing.cc
  7912. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  7913. handleException.
  7914. * src/MultiFileAllocationIterator.cc
  7915. Added EINTR handling
  7916. * src/SocketCore.cc
  7917. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7918. Updated usage
  7919. * src/version_usage.cc
  7920. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7921. Applied Ross's patch for MinGW port.
  7922. * src/DownloadEngine.h
  7923. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7924. Set Content-Type to SingleFileDownloadContext when http response is
  7925. received.
  7926. * src/HttpResponseCommand.cc
  7927. * src/HttpResponse.{h, cc}
  7928. * test/HttpResponseTest.cc
  7929. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7930. Rewritten to add content-type support.
  7931. * src/DownloadHandler.{h, cc}
  7932. * src/BtPostDownloadHandler.{h, cc}
  7933. * test/BtPostDownloadHandlerTest.cc
  7934. * src/MetalinkPostDownloadHandler.{h, cc}
  7935. * test/MetalinkPostDownloadHandlerTest.cc
  7936. * src/PostDownloadHandler.{h, cc}
  7937. * src/DownloadHandlerConstants.{h, cc}
  7938. * src/RequestGroup.cc
  7939. * src/HttpResponseCommand.cc
  7940. * src/FtpNegotiationCommand.cc
  7941. * src/SingleFileDownloadContext.{h, cc}
  7942. * src/RequestGroup.h
  7943. * src/RequestGroupCriteria.h
  7944. * src/ContentTypeRequestGroupCriteria.h
  7945. Added 'mem' option value for --follow-metalink, --follow-torrent.
  7946. If it is give, metalink/torrent file is not written to the disk, but
  7947. just is kept in memory. Parsing is occurred on memory.
  7948. * src/MetalinkHelper.{h, cc}
  7949. * src/MetalinkProcessor.h
  7950. * src/Xml2MetalinkProcessor.{h, cc}
  7951. * test/Xml2MetalinkProcessorTest.cc
  7952. * src/DownloadHandlerFactory.{h, cc}
  7953. * test/DownloadHandlerFactoryTest.cc
  7954. * src/PreDownloadHandler.{h, cc}
  7955. * src/OptionHandlerFactory.cc
  7956. * src/DefaultBtContext.{h, cc}
  7957. * test/DefaultBtContextTest.cc
  7958. * src/version_usage.cc
  7959. * src/Metalink2RequestGroup.{h, cc}
  7960. * src/RequestGroup.{h, cc}
  7961. * src/a2functional.h
  7962. * test/a2functionalTest.cc
  7963. * src/MemoryBufferPreDownloadHandler.{h, cc}
  7964. * src/OptionHandlerImpl.h
  7965. * src/prefs.h
  7966. * src/Util.{h, cc}
  7967. * test/UtilTest.cc
  7968. Keep DownloadResult rather than RequestGroup after downloads to reduce
  7969. memory usage.
  7970. * src/RequestGroupMan.{h, cc}
  7971. * src/DownloadEngine.cc
  7972. * src/BtDependency.{h, cc}: Changed the type of dependee from
  7973. WeakHandle to SharedHandle because WeakHandle could be null.
  7974. * src/RequestGroup.{h, cc}
  7975. * src/DownloadEngineFactory.cc
  7976. * src/DownloadResult.h
  7977. Set totalLength after download finished
  7978. * src/UnknownLengthPieceStorage.{h, cc}
  7979. Keep torrent file specified in metalink in memory.
  7980. * src/Metalink2RequestGroup.cc
  7981. * src/BtDependency.cc
  7982. * src/TrueRequestGroupCriteria.h
  7983. Fixed the bug: seekg is used where seekp should be used.
  7984. * src/ByteArrayDiskWriter.cc
  7985. * test/ByteArraydiskWriterTest.cc
  7986. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7987. Fixed syntax error
  7988. * test/SequenceTest.cc
  7989. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7990. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7991. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  7992. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7993. * src/RequestGroup.cc (downloadFinishedByFileLength)
  7994. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7995. Added the check to see whether ares_host_callback accepts timeouts
  7996. with c-ares; only c-ares 1.5.0 or newer accepts it.
  7997. * src/NameResolver.{h, cc}
  7998. * m4/libcares.m4
  7999. * configure.ac: Set C++ for language choice.
  8000. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8001. Fixed: compilation fails without c-ares/ares
  8002. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  8003. Generate http/ftp commands only when download is incomplete.
  8004. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  8005. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8006. Corrected typo. Examples are removed since they are available in man
  8007. page.
  8008. * src/version_usage.cc
  8009. Updated man page.
  8010. * doc/aria2c.1
  8011. * doc/aria2c.1.txt
  8012. * doc/makeman: Commented out sed command.
  8013. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8014. Throw DlAbortEx when a remote file is not found.
  8015. * src/HttpResponse.cc
  8016. * src/FtpNegotiationCommand.cc
  8017. * src/message.h
  8018. Overwrite an existing file if --allow-overwrite=true is given.
  8019. * src/RequestGroup.cc
  8020. Removed unused functions
  8021. * src/AbstractCommand.h
  8022. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8023. Removed 'extern' from 'extern typedef ...' in src/*.h
  8024. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8025. Updated usage
  8026. * src/version_usage.cc
  8027. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8028. Trim announce URL
  8029. * src/DefaultBtContext.cc
  8030. * test/ShaVisitorTest.cc
  8031. Trim argument s. Give trimed s to exception constructor.
  8032. * src/Util.cc (parseInt)(parseLLInt)
  8033. * test/UtilTest.cc
  8034. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8035. Set precision back to 1.
  8036. * src/ConsoleStatCalc.cc (calculateStat)
  8037. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8038. Replaced strtol with Util::parseInt
  8039. * src/ChunkedEncoding.cc
  8040. * src/HttpConnection.cc
  8041. * src/CookieBoxFactory.cc
  8042. * src/ParameterizedStringParser.cc
  8043. * src/Util.cc
  8044. * test/UtilTest.cc
  8045. * test/OptionHandlerTest.cc
  8046. * src/Request.cc
  8047. Throw exception when empty string is given. The message for exception
  8048. changed.
  8049. * src/Util.cc (parseInt)(parseLLInt)
  8050. * src/message.h
  8051. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8052. Set precision to 2 because share ratio is rounded into 1.0 if precision
  8053. set to 1.
  8054. * src/ConsoleStatCalc.cc (calculateStat)
  8055. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8056. Preallocate non-requested file which is adjacent forward to requested
  8057. file('requested' files means the files given in --select-file option)
  8058. if they share a same piece.
  8059. This fixes long pause in the file system which doesn't support sparse
  8060. files like FAT32 while downloading.
  8061. * src/MultiFileAllocationIterator.{h, cc}
  8062. * test/MultiFileAllocationIteratorTest.cc
  8063. * src/FileEntry.{h, cc}
  8064. Removed unused _option.
  8065. * src/MultiDiskAdaptor.h
  8066. * test/MultiDiskAdaptorTest.cc
  8067. * src/DefaultPieceStorage.cc
  8068. Set the default value of --seed-ratio to 1.0.
  8069. If 0.0 is given, then seeding continues regardless of share ratio.
  8070. * src/version_usage.cc
  8071. * src/option_processing.cc
  8072. * src/BtSetup.cc
  8073. * doc/aria2c.1.txt
  8074. * doc/aria2c.1
  8075. Fixed: Selective download is not working in BitTorrent
  8076. * src/RequestGroup.cc
  8077. Introduced Sequence class. Use this instead of Util::unfoldRange()
  8078. * src/PieceStorage.h
  8079. * test/MockPieceStorage.h
  8080. * src/UnknownLengthPieceStorage.h
  8081. * src/DefaultPieceStorage.{h, cc}
  8082. * src/Metalink2RequestGroup.cc
  8083. * src/RequestGroup.cc
  8084. * src/Sequence.h
  8085. * test/SequenceTest.cc
  8086. * src/IntSequence.h
  8087. * src/message.h
  8088. * src/Util.{h, cc}
  8089. * test/UtilTest.cc
  8090. Added new function 'parse' to catch exception thrown by subclass's
  8091. parseArg
  8092. * src/OptionHandler.h
  8093. * src/OptionParser.cc
  8094. * src/NameMatchOptionHandler.h
  8095. * src/OptionHandlerImpl.h
  8096. * test/OptionHandlerTest.cc
  8097. Added IntegerRangeOptionHandler. Used for --listen-port and
  8098. --select-file. Now --listen-port accepts range of port.
  8099. * src/OptionHandlerFactory.cc
  8100. * src/version_usage.cc
  8101. * src/OptionHandlerImpl.h
  8102. * src/option_processing.cc
  8103. * src/BtSetup.cc
  8104. * src/PeerListenCommand.{h, cc}
  8105. * doc/aria2c.1.txt
  8106. * doc/aria2c.1
  8107. Implemented operator< for Exception class to provide easy way to print
  8108. exception stack trace.
  8109. * src/Exception.{h, cc}
  8110. * src/main.cc
  8111. * src/option_processing.cc
  8112. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8113. * src/version_usage.cc
  8114. (showVersion): Reworked.
  8115. (showUsage): Added examples.
  8116. Removed Hint for total length and file name.
  8117. * src/Metalink2RequestGroup.cc
  8118. * src/RequestGroup.{h, cc}
  8119. * src/HttpResponseCommand.cc
  8120. * src/FtpNegotiationCommand.cc
  8121. Now --follow-torrent and --follow-metalink option work properly.
  8122. * src/RequestGroup.cc
  8123. Updated man page
  8124. * doc/aria2c.1.txt
  8125. * doc/aria2c.1
  8126. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8127. Removed.
  8128. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  8129. Use Segment::operator==()
  8130. * src/HttpConnection.cc
  8131. * src/Segment.h
  8132. Updated usage
  8133. * src/version_usage.cc
  8134. Added EINTR treatment.
  8135. * src/SocketCore.cc
  8136. * src/AbstractDiskWriter.cc
  8137. Rewritten.
  8138. * src/Util.cc (rangedFileCopy)
  8139. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8140. Fixed typo.
  8141. * src/version_usage.cc
  8142. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8143. Implemented. Now -c option works fine.
  8144. * src/DefaultPieceStorage.cc (markPiecesDone)
  8145. * test/DefaultPieceStorageTest.cc
  8146. Removed.
  8147. * src/SegmentMan.{h, cc}
  8148. (markAllPiecesDone)
  8149. (markPieceDone)
  8150. Synchronized po files with
  8151. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  8152. * src/fr.po
  8153. * src/ru.po
  8154. * src/de.po
  8155. * src/ja.po
  8156. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8157. Added ifdef and some modifications to compile without BitTorrent,
  8158. Metalink, MessageDigest
  8159. support.
  8160. * src/PieceHashCheckIntegrityEntry.cc
  8161. * src/MetalinkEntry.h
  8162. * src/version_usage.cc
  8163. * src/main.cc
  8164. * src/DownloadEngine.{h, cc}
  8165. * src/Metalink2RequestGroup.cc
  8166. * src/Peer.cc
  8167. * src/RequestGroup.cc
  8168. * src/MetalinkHelper.cc
  8169. * test/DefaultPieceStorageTest.cc
  8170. * test/MetalinkPostDownloadHandlerTest.cc
  8171. * test/Metalink2RequestGroupTest.cc
  8172. Hide TOTAL SPD when all downloads complete.
  8173. * src/ConsoleStatCalc.cc
  8174. Log target system information.
  8175. * src/main.cc
  8176. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8177. Now --metalink-location accepts a comma-deliminated list of locations.
  8178. * src/MetalinkEntry.{h, cc}
  8179. * test/MetalinkEntryTest.cc
  8180. * src/version_usage.cc
  8181. * src/Metalink2RequestGroup.cc
  8182. * src/Xml2MetalinkProcessor.cc
  8183. * test/Xml2MetalinkProcessorTest.cc
  8184. * doc/aria2c.1.txt
  8185. * doc/aria2c.1
  8186. * src/Util.cc (toUpper)(toLower): Rewritten.
  8187. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8188. Added the ability to detect duplicate download entry which is about to
  8189. download the same file other RequestGroup is downloading.
  8190. * src/RequestGroup.cc
  8191. * src/HttpResponseCommand.cc
  8192. * src/FtpNegotiationCommand.cc
  8193. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8194. Recalculates download progress when loading a control file,
  8195. if the piece length of DownloadContext is different from the one saved
  8196. in the control file. Currently in-flight pieces are ignored.
  8197. * src/DefaultBtProgressInfoFile.cc
  8198. * test/DefaultBtProgressInfoFileTest.cc
  8199. * src/Util.{h, cc}
  8200. * test/UtilTest.cc
  8201. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8202. Do not rotate tiers in announce-list.
  8203. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  8204. AnnounceList::allTiersFailed() used instead to detect whether all
  8205. tiers are tried and failed.
  8206. * test/DefaultBtAnnounceTest.cc
  8207. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  8208. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  8209. * test/AnnounceListTest.cc
  8210. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  8211. clause. Catch RecoverableException instead of DlRetryEx instead.
  8212. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8213. Implemented checksum validation feature(1 checksum for each file)
  8214. The validation takes place after the download.
  8215. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  8216. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  8217. * src/CheckIntegrityCommand.cc: Changed log message.
  8218. * src/Metalink2RequestGroup.cc: Set checksum to
  8219. SingleFileDownloadContext.
  8220. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  8221. PieceHashCheckIntegrity class.
  8222. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  8223. PieceHashCheckIntegrity class.
  8224. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  8225. * src/IteratableValidator.h: New class.
  8226. * src/message.h
  8227. * src/CheckIntegrityEntry.{h, cc}
  8228. * src/IteratableChunkChecksumValidator.{h, cc}
  8229. * src/SingleFileDownloadContext.h
  8230. * src/DownloadCommand.cc
  8231. --allow-overwrite=true is no longer needed to check file integrity
  8232. before download in BitTorrent download.
  8233. * src/RequestGroup.cc (getInitialCommand)
  8234. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  8235. throws exception.
  8236. * src/RequestGroupMan.cc (getInitialCommands)
  8237. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8238. urlencode the given url inside Request::parseUrl(...)
  8239. * src/Request.{h, cc}
  8240. * src/Util.{h, cc}
  8241. * test/RequestTest.cc
  8242. Removed #!metalink3! notation support because it is deleted from
  8243. the metalink specification.
  8244. * src/Request.{h, cc}
  8245. * test/RequestTest.cc
  8246. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8247. Don't connect server before checking file integrity at startup, if
  8248. filesize and output file path are known.
  8249. * src/AbstractCommand.cc
  8250. * src/StreamFileAllocationEntry.cc
  8251. * src/Metalink2RequestGroup.cc
  8252. * src/RequestGroup.{h, cc}
  8253. * src/HttpResponseCommand.cc
  8254. * src/FtpNegotiationCommand.cc
  8255. Added DownloadFailureException. If it is thrown, RequestGroup should
  8256. halt.
  8257. * src/AbstractCommand.cc
  8258. * src/DownloadFailureException.h
  8259. * src/RequestGroup.cc
  8260. Catch RecoverableException, instead of DlAbortEx.
  8261. * src/RequestGroupMan.cc
  8262. * src/FillRequestGroupCommand.cc
  8263. * src/MetaFileUtil.cc
  8264. * src/IteratableChunkChecksumValidator.cc
  8265. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  8266. getGID())
  8267. * src/CheckIntegrityCommand.cc
  8268. * src/message.h
  8269. Print gid instead of idx.
  8270. * src/RequestGroupMan.cc
  8271. Removed exception throwers declaration.
  8272. * src/DirectDiskAdaptor.{h, cc}
  8273. * src/SocketCore.{h, cc}
  8274. * src/MultiDiskAdaptor.{h, cc}
  8275. * src/HttpConnection.{h, cc}
  8276. * src/HttpResponse.{h, cc}
  8277. * src/DiskAdaptor.{h, cc}
  8278. * src/CopyDiskAdaptor.{h, cc}
  8279. * src/MultiDiskAdaptor.{h, cc}
  8280. * src/HttpHeaderProcessor.{h, cc}
  8281. * src/AbstractSingleDiskAdaptor.{h, cc}
  8282. * src/Util.{h, cc}
  8283. * test/UtilTest.cc
  8284. * src/DefaultDiskWriter.{h, cc}
  8285. * src/FtpConnection.{h, cc}
  8286. * src/AbstractDiskWriter.{h, cc}
  8287. Removed duplicate code.
  8288. * src/StreamCheckIntegrityEntry.cc
  8289. Removed unnecessary include.
  8290. * src/DiskWriter.h
  8291. Included Exception.h
  8292. * src/option_processing.cc
  8293. Included 2 files and added doc
  8294. * src/TrackerWatcherCommand.cc
  8295. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  8296. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8297. Changed CheckIntegrityEntry interface so that it can define
  8298. the action when all the chunk checksums are valid.
  8299. * src/CheckIntegrityEntry.h
  8300. * src/StreamCheckIntegrityEntry.{h, cc}
  8301. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  8302. are valid, then aira2 goes to seeding mode. Sometimes it is better
  8303. to exit rather than doing seeding. So, it would be good to toggle this
  8304. behavior.
  8305. * src/CheckIntegrityCommand.cc
  8306. * src/AbstractCommand.cc
  8307. * src/RequestGroup.cc
  8308. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8309. Reflect the download length of in-flight pieces.
  8310. It makes the download length readout more precise.
  8311. * src/DefaultPieceStorage.{h, cc}
  8312. * test/DefaultPieceStorageTest.cc
  8313. * src/a2functional.h
  8314. * test/a2functionalTest.cc
  8315. Lower CPU load when --max-download-limit is used.
  8316. There is up and down in speed indicator when enabling
  8317. http-pipelining but a download goes well. I think the problem is that
  8318. because http-pipelining is enabled, DownloadCommand is created for
  8319. each segment and in its constructor, PeerStat::downloadStart() is
  8320. called. In PeerStat::downloadStart(), speed calculation object is
  8321. reseted, which makes download speed zero.
  8322. * src/DownloadCommand.cc
  8323. Rewritten using accumulate.
  8324. * src/RequestGroupMan.cc (calculateStat)
  8325. Code clearnup.
  8326. * src/FtpNegotiationCommand.cc
  8327. * src/HttpResponseCommand.cc
  8328. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8329. Fixed: Can not resume: aria2 reports download already finished.
  8330. * src/AbstractCommand.{h, cc}
  8331. * src/HttpResponseCommand.cc
  8332. * src/FtpNegotiateCommand.cc
  8333. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8334. Now a file is stored in the directory specified in .metalnk file
  8335. (file[@name]).
  8336. * src/Metalink2RequestGroup.cc
  8337. Create the directory structure when opening the file if it doesn't
  8338. exist.
  8339. * src/AbstractDiskWriter.cc
  8340. * src/Util.{h, cc}
  8341. * src/File.h
  8342. * test/UtilTest.cc
  8343. Removed file name comparison
  8344. * src/Metalink2RequestGroup.cc
  8345. * src/HttpResponseCommand.cc
  8346. Rewritten using Util::mkdirs()
  8347. * src/FileEntry.cc (setupDir)
  8348. * test/FileEntryTest.cc
  8349. Updated doc
  8350. * src/SingleFileDownloadContext.h
  8351. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8352. Now SleepCommand dispatches nextCommand when halt is requested.
  8353. It avoids a possible long wait after hitting CTRL-C.
  8354. * src/SleepCommand.{h, cc}
  8355. * src/RequestGroupAware.{h, cc}
  8356. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8357. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  8358. to open listen port, then remove the port number from the tracker
  8359. request.
  8360. * src/DefaultBtAnnounce.cc
  8361. * test/DefaultBtAnnounceTest.cc
  8362. * test/MockPieceStorage.h
  8363. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  8364. them more testable.
  8365. * src/DefaultBtAnnounce.{h, cc}
  8366. * src/DefaultBtContext.{h, cc}
  8367. * src/Util.{h, cc}
  8368. * test/DefaultBtAnnounceTest.cc
  8369. * test/DefaultBtContextTest.cc
  8370. * test/UtilTest.cc
  8371. Added 'B' to upload bytes readout.
  8372. * src/ConsoleStatCalc.cc
  8373. Now the listen port for BitTorrent download is opened when it is
  8374. needed.
  8375. * src/DownloadEngineFactory.cc
  8376. * src/BtSetup.{h, cc}
  8377. * src/PeerListenCommand.{h, cc}
  8378. Now an exception thrown while parsing tracker response is now logged.
  8379. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  8380. called, which means no retry is made in this case, assuming a tracker
  8381. has a problem.
  8382. * src/TrackerWatcherCommand.cc
  8383. Fixed: downloading a file whose length is unkown fails.
  8384. * src/DownloadCommand.cc
  8385. Simplified prepareForNextSegment()
  8386. * src/DownloadCommand.cc
  8387. Updated
  8388. * po/POTFILES.in
  8389. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8390. Re-implemented a file listing for Metalink, which was dropped while
  8391. http/ftp/torrent integration was being implemented.
  8392. * src/MetalinkHelper.{h, cc}: New class.
  8393. * test/MetalinkHelperTest.cc
  8394. * src/main.cc
  8395. * src/Metalink2RequestGroup.cc
  8396. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8397. Added the ability to display the detailed torrent file information.
  8398. Now -S option gives not only a file listing, but also total download
  8399. length, info hash, announce URI, piece length, the number of pieces,
  8400. and mode(single or multi-torrent).
  8401. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  8402. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  8403. KiB)
  8404. * test/UtilTest.cc
  8405. * src/main.cc
  8406. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8407. Added ftp://USER:PASSWD@Servername automatic parsing.
  8408. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  8409. _password. Recognize username and password in URI.
  8410. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  8411. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  8412. * src/RequestFactory.{h, cc}: Removed.
  8413. * src/AuthConfigFactory.{h, cc}: New class.
  8414. * src/FtpConnection.cc: Use AuthConfigFactory.
  8415. * src/HttpRequest.cc: Use AuthConfigFactory.
  8416. * test/HttpRequestTest.cc: Updated.
  8417. * test/RequestTest.cc: Updated.
  8418. * test/AuthConfigFactoryTest.cc: New class.
  8419. * test/RequestFactoryTest.cc: Removed.
  8420. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8421. Use RequestGroup::allDownloadFinished() to decide whether the control
  8422. file should be removed or saved.
  8423. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  8424. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  8425. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8426. Use File::renameTo()
  8427. * src/DefaultBtProgressInfoFile.cc
  8428. Added --no-file-allocation-limit command-line option.
  8429. * src/version_usage.cc
  8430. * src/option_processing.cc
  8431. * src/OptionHandlerFactory.cc
  8432. * src/RequestGroup.{h, cc}
  8433. * src/BtCheckIntegrityEntry.cc
  8434. * src/StreamCheckIntegrityEntry.cc
  8435. * src/prefs.h
  8436. * doc/aria2c.1.txt
  8437. * doc/aria2c.1
  8438. Now prealloc is the default value for --file-allocation option.
  8439. * src/version_usage.cc
  8440. * src/option_processing.cc
  8441. * doc/aria2c.1.txt
  8442. * doc/aria2c.1
  8443. Don't URL-encode user-agent.
  8444. * src/HttpRequest.cc
  8445. Updated translations
  8446. * po/LINGUAS: Added nl for Dutch translation.
  8447. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  8448. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  8449. * po/POTFILES.in: Updated.
  8450. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8451. Added the ability to recognize url-list in a torrent file.
  8452. The retrieved URLs are attached to the corresponding FileEntry.
  8453. * src/DefaultBtContext.{h, cc}
  8454. * src/FileEntry.{h, cc}
  8455. * test/DefaultBtContextTest.cc
  8456. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8457. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  8458. after the download finishes.
  8459. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8460. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  8461. the data smaller than block length.
  8462. A block length can be specified by constructor's argument.
  8463. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  8464. Get a missing piece in the range of given FileEntry. This function is
  8465. not used in the program yet.
  8466. * src/Util.h: Added some macros.
  8467. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8468. Added HTTP/1.1 keep alive and pipelining support.
  8469. See --enable-http-keep-alive and --enable-http-pipelining option.
  8470. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  8471. Segment.
  8472. * src/HttpDownloadCommand.{h, cc}
  8473. * src/OptionHandlerFactory.cc
  8474. * src/HttpConnection.{h, cc}
  8475. * src/version_usage.cc
  8476. * src/HttpInitiateConnectionCommand.cc
  8477. * src/FtpInitiateConnectionCommand.cc
  8478. * src/Segment.h
  8479. * src/HttpRequestCommand.{h, cc}
  8480. * src/option_processing.cc
  8481. * src/prefs.h
  8482. * src/HttpResponseCommand.cc
  8483. * src/SegmentMan.{h, cc}
  8484. * src/FtpNegotiateCommand.cc
  8485. * src/HttpProxyResponseCommand.cc
  8486. * src/Request.cc
  8487. * src/HttpRequest.cc
  8488. * src/DownloadCommand.cc
  8489. * test/HttpRequestTest.cc
  8490. * test/RequestTest.cc
  8491. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8492. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  8493. finished.
  8494. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8495. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  8496. catching it inside the method.
  8497. When no file entry is found in a metalink without querying user
  8498. preferences, throw the exception with the error message that suggests
  8499. metalink file is probably broken.
  8500. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  8501. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8502. Fixed the bug that prevents remote Metalink/Torrent file from begin
  8503. processed.
  8504. * src/RequestGroupMan.cc (removeStoppedGroup)
  8505. Added debug message.
  8506. * src/BtPostDownloadHandler.cc
  8507. * src/MetalinkPostDownloadHandler.cc
  8508. * src/PostDownloadHandler.{h, cc}
  8509. * src/RequestGroup.cc
  8510. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8511. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  8512. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8513. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  8514. stops and there are any unfinished or in-progress downloads.
  8515. Added the legend of "stat".
  8516. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8517. Throw exception when chunck checksum verification fails.
  8518. * src/DownloadCommand.cc (validatePieceHash): New function.
  8519. * src/PiecedSegment.{h, cc} (clear): New function.
  8520. * src/GrowSegment.{h, cc} (clear): New function.
  8521. * src/Segment.h (clear): New function.
  8522. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  8523. * test/SegmentTest.cc
  8524. * test/GrowSegmentTest.cc
  8525. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8526. Do not send referer when redirected.
  8527. * src/Request.cc (redirectUrl)
  8528. * test/RequestTest.cc
  8529. * test/HttpRequestTest.cc
  8530. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8531. Implemented BitTorrent/http/ftp integrated download.
  8532. I've rewritten lots of files and now some headers have forward
  8533. class declarations to reduce compile time.
  8534. The implementation is extremely alpha stage, I recommend to use this
  8535. for testing purpose only.
  8536. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8537. Fixed the compilation error on 64bit platform.
  8538. * test/HttpHeaderProcessorTest.cc
  8539. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8540. Merged Ross's patch that fixes compilation problem in MinGW
  8541. * test/DefaultBtProgressInfoFileTest.cc
  8542. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8543. Updated fr.po by sebone
  8544. * po/fr.po
  8545. Updated man page.
  8546. * doc/aria2c.1.txt
  8547. * Release 0.11.3
  8548. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8549. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  8550. failure in Metalink.
  8551. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8552. Automatically save *.aria2 control file of http/ftp download in every
  8553. 60 seconds.
  8554. * src/AutoSaveCommand.{h, cc}: New class.
  8555. * src/TimeBasedCommand.{h, cc}: New class.
  8556. * src/DownloadEngineFactory.cc (newConsoleEngine)
  8557. Disable parameterized URI support by default. Added -P option to
  8558. enable the feature.
  8559. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  8560. * src/OptionHandlerFactory.cc
  8561. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  8562. Updated Japanese translation.
  8563. * po/ja.po
  8564. Updated man page.
  8565. * doc/aria2c.1.txt
  8566. * Release 0.11.3-rc
  8567. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8568. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  8569. it is successful, then renamed to *.aria2.
  8570. This prevents *.aria2 file from being truncated or corrupted when
  8571. file system becomes out of space.
  8572. * src/DefaultBtProgressInfoFile.cc (save)
  8573. * src/SegmentMan.cc (save)
  8574. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  8575. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8576. Reduced the fragmentation of bitfield in http/ftp download.
  8577. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  8578. * test/BitfieldManTest.cc
  8579. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8580. Added the ability to disable segmented download in .metalink.
  8581. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  8582. 'url' tag.
  8583. * src/MetalinkEntry.{h, cc}
  8584. * src/RequestResource.{h, cc}
  8585. * src/MetalinkRequestInfo.cc
  8586. * src/Xml2MetalinkProcessor.cc
  8587. * test/Xml2MetalinkProcessorTest.cc
  8588. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8589. Added parameterized URI support.
  8590. * src/main.cc: -Z option added.
  8591. * src/OptionHandlerFactory.cc
  8592. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  8593. * src/PStringDatum.h: New class.
  8594. * src/PStringSegment.{h,cc}: New class.
  8595. * src/PStringNumLoop.h: New class.
  8596. * src/PStringSelect.h: New class.
  8597. * src/NumberDecorator.h: New class.
  8598. * src/FixedWidthNumberDecorator.h: New class.
  8599. * src/AlphaNumberDecorator.h: New class.
  8600. * src/PStringVisitor.h: New class.
  8601. * src/PStringBuildVisitor.{h,cc}: New class.
  8602. * src/ParameterizedStringParser.{h,cc}: New class.
  8603. * src/Util.{h,cc}
  8604. (isNumber): New function.
  8605. (isLowercase): New function.
  8606. (isUppercase): New function.
  8607. (alphaToNum): New function.
  8608. * test/ParameterizedStringParserTest.cc: New class.
  8609. * test/AlphaNumberDecoratorTest.cc: New class.
  8610. * test/PStringBuildVisitorTest.cc: New class.
  8611. * test/UtilTest.cc
  8612. (testIsNumber): New function.
  8613. (testIsLowercase): New function.
  8614. (testIsUppercase): New function.
  8615. (testAlphaToNum): New function.
  8616. Added '\n' after the error message
  8617. * src/RequestInfo.h (printDownloadAbortMessage)
  8618. Added auto file renaming feature in http(s)/ftp download.
  8619. * src/main.cc: Added --auto-file-renaming command-line option.
  8620. * src/OptionHandlerFactory.cc
  8621. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  8622. * src/RequestGroup.{h, cc}
  8623. (shouldCancelDownloadForSafety): Rewritten
  8624. (tryAutoFileRenaming): New function.
  8625. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  8626. * src/HttpResponseCommand.cc
  8627. (executeInternal): Removed the call to RequestGroupMan::
  8628. isSameFileBeingDownloaded()
  8629. * src/FtpNegotiateCommand.cc
  8630. (recvSize): Removed the call to RequestGroupMan::
  8631. isSameFileBeingDownloaded()
  8632. * test/RequestGroupTest.cc: New class.
  8633. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8634. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  8635. IO.
  8636. * src/DefaultBtProgressInfoFile.cc
  8637. * src/MetaFileUtil.cc
  8638. * src/SimpleLogger.cc
  8639. * src/SegmentMan.cc
  8640. * src/Util.cc
  8641. * src/Platform.cc
  8642. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8643. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  8644. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8645. Avoid sparse files if possible, because VFAT32 doesn't support it.
  8646. * src/DefaultDiskWriter.cc (initAndOpenFile)
  8647. Fixed the bug that prevents file allocation is not done when
  8648. dowloading multi-torrent file.
  8649. * src/AbstractDiskWriter.cc (openFile)
  8650. Increase the maximum number of -j option from 15 to 45.
  8651. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8652. Added fr.po, thanks to Charles Landemaine.
  8653. * po/fr.po
  8654. * po/LINGUAS
  8655. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8656. gcc 3.4.4 support:
  8657. * src/DefaultBtContext.cc: int32_t -> int
  8658. * src/main.cc: int -> int32_t, int32_t -> int
  8659. * src/messageDigest.h: uint32_t -> unsigned int
  8660. * src/NameResolver.h: int32_t -> int
  8661. * src/PeerConnection.cc: int -> int32_t
  8662. * src/SpeedCalc.cc: int32_t -> int
  8663. * src/TrackerUpdateCommand.h: int -> int32_t
  8664. * src/Util.cc: int32_t -> int
  8665. * src/Util.h: int32_t -> int
  8666. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  8667. * test/AnnounceListTest.cc: int -> int32_t
  8668. * test/ChunkedEncodingTest.cc: int -> int32_t
  8669. * test/DataTest.cc: int -> int32_t
  8670. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  8671. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  8672. * test/DefaultPieceStorageTest.cc: int -> int32_t
  8673. * test/FeatureConfigTest.cc: int -> int32_t
  8674. * test/MetalinkEntryTest.cc: int -> int32_t
  8675. * test/MockBtRequestFactory.h: int -> int32_t
  8676. * test/MockPieceStorage.h: int -> int32_t
  8677. * test/OptionTest.cc: int -> int32_t
  8678. * test/RequestTest.cc: int -> int32_t
  8679. * test/SegmentManTest.cc: int -> int32_t
  8680. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  8681. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8682. Move sleep functions to Util class:
  8683. * src/Util.cc
  8684. (sleep): New function.
  8685. (usleep): New function.
  8686. * src/DownloadCommand.cc: sleep -> Util::sleep
  8687. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  8688. MinGW build enhancements. The following files are added:
  8689. * src/timegm.{c,h}
  8690. Changes to support the above new files:
  8691. * configure.ac
  8692. * src/Makefile.am
  8693. * src/a2time.h
  8694. * src/Util.cc:
  8695. * src/strptime.c: Added support for %Z option.
  8696. Fixed MinGW non-blocking bug.
  8697. * src/SocketCore.cc
  8698. * src/HttpRequestCommand.cc
  8699. Miscellenous build fixes/enhancements.
  8700. * configure.ac: Added summary report.
  8701. * src/Platform.h: Tweaked #include's.
  8702. * src/a2netcompat.h: Tweaked #include's.
  8703. * src/strptime.h: Tweaked #include's.
  8704. * src/gai_strerror.c: Tweaked #include's.
  8705. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  8706. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  8707. * src/gettimeofday.h: Added HAVE_CONFIG_H
  8708. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8709. Increased the initial connection size in BitTorrent download to 40.
  8710. * src/BtRuntime.h
  8711. Added the usage message of --peer-id-prefix option.
  8712. * src/main.cc
  8713. * Release 0.11.2
  8714. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8715. MessageDigestHelper is introduced in order to simplify the use
  8716. of message digest. Removed repeated code.
  8717. The message digest algorithm is now specified by string, like "sha1",
  8718. "md5".
  8719. * src/messageDigest.{h, cc}
  8720. * src/MessageDigestHelper.{h, cc}: New class.
  8721. * src/DefaultPieceStorage.cc
  8722. * src/DefaultBtContext.{h, cc}
  8723. (computeFastSet): New function.
  8724. (setInfoHash): Added for unit testing.
  8725. (setNumPieces): Added for unit testing.
  8726. * src/DefaultBtInteractive.cc
  8727. * src/BtPieceMessage.cc
  8728. * src/Peer.cc
  8729. * src/Checksum.h
  8730. * src/message.h
  8731. * src/IteratableChecksumValidator.h
  8732. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  8733. inside it.
  8734. * src/SegmentMan.{h, cc}
  8735. (checkIntegrity): Removed.
  8736. * src/IteratableChunkChecksumValidator.{h, cc}
  8737. * src/Util.h
  8738. (sha1Sum): Removed.
  8739. (simpleMessageDigest): Removed.
  8740. (fileChecksum): Removed.
  8741. (computeFastSet): Removed.
  8742. * src/ShaVisitor.cc
  8743. * src/ChunkChecksum.h
  8744. * src/DownloadCommand.cc
  8745. Removed messageDigest virtual functions.
  8746. * src/MultiDiskAdaptor.{h, cc}
  8747. * src/DiskAdaptor.h
  8748. * src/ByteArrayDiskWriter.h
  8749. * src/DiskWriter.h
  8750. * src/DiskAdaptorWriter.h
  8751. * src/AbstractSingleDiskAdaptor.{h, cc}
  8752. * src/AbstractDiskWriter.{h, cc}
  8753. Fixed comilation error when message digest is disabled.
  8754. * src/MetalinkEntry.{h, cc}
  8755. * src/MetalinkRequestInfo.cc
  8756. Removed srandom and random.
  8757. * src/SimpleRandomizer.h
  8758. Added size() virtual function to DiskAdaptor
  8759. * src/MultiDiskAdaptor.h
  8760. Fixed the bug that causes that files are not opened correctly in
  8761. multi-file torrent.
  8762. * src/TorrentRequestInfo.cc
  8763. * src/MultiDiskAdaptor.cc
  8764. Added SHA256 support
  8765. * src/messageDigest.cc
  8766. * src/Xml2MetalinkProcessor.cc
  8767. Show supported message digest algorithms
  8768. * src/main.cc
  8769. Updated contact info.
  8770. * src/main.cc
  8771. Applied Ross's patch
  8772. * src/a2netcompat.h
  8773. * src/main.cc
  8774. Fixed the bug that prevents a remote metalink from not being processed
  8775. even if '-o foo.metalink' is specified.
  8776. * src/MetalinkRequestInfo.cc
  8777. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8778. Merged Dan's patch:
  8779. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  8780. Use va_copy to avoid core dump on amd64:
  8781. * src/SimpleLogger.cc
  8782. Updated contact info.
  8783. * src/main.cc
  8784. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  8785. digest is not available.
  8786. * src/MetalinkEntry.h
  8787. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8788. Make a2netcompat.h include a2io.h to fix compilation error:
  8789. * src/a2netcompat.h
  8790. * src/SocketCore.cc: Removed include of a2io.h
  8791. * src/Util.cc: Removed include of a2io.h
  8792. Gather time related functions to a2time.h:
  8793. * src/a2time.h: New file.
  8794. * src/DefaultPeerStorage.cc
  8795. * src/SimpleLogger.cc
  8796. * src/Util.{h, cc}
  8797. * src/SimpleRandomizer.h
  8798. * src/TimeA2.{h,cc}
  8799. * src/DownloadCommand.cc
  8800. * src/main.cc
  8801. Removed #ifdef __MINGW32__ since gai_strerror is included in
  8802. a2netcompat.h:
  8803. * src/NameResolver.cc
  8804. Fixed compilation error without openssl:
  8805. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  8806. Added default block to suppress compiler warnings:
  8807. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  8808. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  8809. MinGW build enhancements. The following files are added:
  8810. * src/gai_strerror.{c,h}
  8811. * src/gettimeofday.{c,h}
  8812. Changes to support the above new files:
  8813. * configure.ac
  8814. * src/Makefile.am
  8815. * src/a2netcompat.h
  8816. * src/TimeA2.cc
  8817. * src/DefaultPeerStorage.cc
  8818. * src/NameResolver.cc: removed mingw_strerror() function.
  8819. * src/SocketCore.cc: removed mingw_strerror() function.
  8820. Miscellaneous MinGW build fixes.
  8821. * src/a2io.h: Use _lseeki64() instead of lseek()
  8822. * src/common.h
  8823. * src/DefaultFileAllocator.cc
  8824. * src/GlowFileAllocator.cc
  8825. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  8826. * src/NameResolver.cc
  8827. (callback): Changed int32_t to int.
  8828. (resolve): Changed int32_t to int.
  8829. * src/Platform.cc
  8830. * src/Platform.h
  8831. * test/MultiDiskWriterTest.cc
  8832. * test/PeerMessageUtilTest.cc
  8833. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  8834. Other enhancements and fixes.
  8835. * src/HttpRequestCommand.cc
  8836. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  8837. * src/SocketCore.cc:
  8838. (error): New function to abstract errno/WSAGetLastError().
  8839. (errorMsg): New function to abstract errno/WSAGetLastError().
  8840. (initiateSecureConnection): Added more detailed error reporting.
  8841. * src/SocketCore.h: Added private variable blocking, to allow
  8842. proper handling of OpenSSL psuedo-errors.
  8843. * src/message.h
  8844. (EX_SSL_INIT_FAILURE)
  8845. (EX_SSL_IO_ERROR)
  8846. (EX_SSL_PROTOCOL_ERROR)
  8847. (EX_SSL_UNKNOWN_ERROR)
  8848. (EX_SSL_CONNECT_ERROR)
  8849. (EX_SOCKET_BLOCKING)
  8850. (EX_SOCKET_NONBLOCKING)
  8851. (EX_SOCKET_UNKNOWN_ERROR)
  8852. * src/Util.cc
  8853. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  8854. reserved name.
  8855. (httpGMT): Fixed typo.
  8856. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8857. Merged Ross's win32 patch(manually)
  8858. In the course of merging, following files are added.
  8859. * src/strptime.{h,c}
  8860. * src/libgen.{h,c}
  8861. * src/inet_aton.{h,c}
  8862. * src/Platform.{h,cc}
  8863. * src/localtime_r.{h,c}
  8864. * src/getaddrinfo.{h,c}
  8865. I've gethered network related things, and put them to following file:
  8866. * src/a2netcompat.h
  8867. Also io related things are put to following file:
  8868. * src/a2io.h
  8869. Changed %lld to %s because mingw32 doesn't recognize %lld.
  8870. * src/message.h
  8871. (MSG_ALLOCATION_COMPLETED)
  8872. (EX_TOO_LARGE_FILE)
  8873. (EX_SIZE_MISMATCH)
  8874. (EX_FILE_OFFSET_OUT_OF_RANGE)
  8875. (EX_INVALID_CHUNK_CHECKSUM)
  8876. (EX_INVALID_RANGE_HEADER)
  8877. * src/FileAllocationCommand.cc
  8878. * src/HttpResponse.cc
  8879. * src/RequestGroup.cc
  8880. * src/MultiDiskAdaptor.cc
  8881. * src/OptionHandlerImpl.h
  8882. * src/HttpResponseCommand.cc
  8883. * src/FtpNegotiateCommand.cc
  8884. * src/IteratableChecksumValidator.cc
  8885. * src/SegmentMan.cc
  8886. * src/ChunkChecksumValidator.cc
  8887. Added Randomizer::getRandomNumber(long int)
  8888. * src/Randomizer.h (getRandomNumber)
  8889. * src/SimpleRandomizer.h (getRandomNumber)
  8890. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  8891. * src/Util.cc (randomAlpha): Use this new function.
  8892. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8893. Converted int's to in32_t. long long int's are also converted to
  8894. int64_t
  8895. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8896. Fixed the bug that prevents cookies from being sent to the server
  8897. if the domain of cookie is FQDN and starts with ".".
  8898. * src/Cookie.cc (match)
  8899. To add the ability to change peer id.
  8900. * src/DefaultBtContext.h
  8901. (_peerIdPrefix): New variable
  8902. (setPeerIdPrefix): New function.
  8903. * src/torrentRequestInfo.cc
  8904. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  8905. DefaultBtContext.
  8906. * src/main.cc (main): Added peer-id-prefix command-line option.
  8907. The usage message is not added yet.
  8908. * src/DefaultBtContext.cc
  8909. (generatePeerId): Use _peerIdPrefix.
  8910. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  8911. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8912. Fixed the bug that prevents filename in content-disposition from
  8913. being retrieved when filename is not quoted.
  8914. * src/Util.cc (getContentDispositionFilename)
  8915. Fixed the bug that causes infinate loop and memory leak when file open
  8916. operation failed.
  8917. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8918. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8919. Fixed the bug that causes segfault when all URIs specified are
  8920. unsupported.
  8921. * src/RequestGroupMan.cc (getInitialCommands)
  8922. Check if RequestGroup::createNextCommand() returns empty list of
  8923. commands.
  8924. * src/RequestGroup.cc (createNextCommand)
  8925. Change log level from info to error so that users can notice that
  8926. an error occurred.
  8927. Fixed the bug that causes segfault when a zero-sized file is
  8928. downloaded.
  8929. * src/BitfieldMan.cc (isAllBitSet)
  8930. Return true if bitfieldLength is 0.
  8931. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8932. * src/main.cc
  8933. (showUsage): Added 3 usage examples for metalink download.
  8934. Replace MetalinkChunkChecksum with ChunkChecksum.
  8935. * src/MetalinkChunkChecksum.h: Removed.
  8936. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  8937. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  8938. * src/Xml2MetalinkProcessor.cc
  8939. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  8940. * src/MetalinkRequestInfo.cc (execute)
  8941. * Release 0.11.1
  8942. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8943. Reads URIs from stdin when "-i -" is specified.
  8944. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  8945. * src/UriListParser.h, src/UriListParser.cc: New class.
  8946. * src/StreamUriListParser.h: New class.
  8947. * src/FileUriListParser.h: New class.
  8948. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  8949. instead of UriFileListParser.
  8950. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8951. Made console readout more readable.
  8952. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8953. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8954. Fix the bug that causes -s option not to work.
  8955. * src/main.cc (main)
  8956. * src/a2algo.h: New file.
  8957. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8958. Create directory structure specified in metalink file.
  8959. * src/RequestGroup.h, src/RequestGroup.cc
  8960. (initAndOpenFile): Create a directory to store files if it does not
  8961. exist.
  8962. (getDir): New function.
  8963. Added ETA and download speed for an individual file to readout.
  8964. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8965. * src/RequestGroup.h
  8966. (calculateDownloadSpeed): New function.
  8967. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8968. Made -S option work with metalink file and provided selective download
  8969. to metalink.
  8970. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  8971. (filename): Removed.
  8972. (file): New variable.
  8973. (size): Removed.
  8974. (operator=): Updated.
  8975. (getPath): New function.
  8976. (getLength): New function.
  8977. (toFileEntry): New function.
  8978. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  8979. (execute): Use toStream.
  8980. (showFileEntry): Removed.
  8981. * src/MetalinkRequestInfo.h
  8982. (targetFiles): New variable.
  8983. (setTargetFiles): New variable.
  8984. * src/MetalinkRequestInfo.cc
  8985. (execute): Added the ability to print file information included in
  8986. a metalink file.
  8987. Added selective download mode to metalink.
  8988. * src/main.cc
  8989. (showUsage): Updated to denote that -S and --select-file options are
  8990. applicable to metalink.
  8991. * src/FileEntry.h
  8992. (operator=): New function.
  8993. (getBasename): New function.
  8994. (getDirname): New function.
  8995. * src/Util.h, src/Util.cc
  8996. (toStream): New function.
  8997. * src/Xml2MetalinkProcessor.cc: Updated.
  8998. Made aria2 work with metalink with directory structure.
  8999. * src/File.h, src/File.cc
  9000. (getBasename): New function.
  9001. (getDirname): New function.
  9002. * src/RequestGroup.h, src/RequestGroup.cc
  9003. (_topDir): New variable.
  9004. (setTopDir): New function.
  9005. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  9006. Rewrote HTTP header parsing with stringstream.
  9007. * src/HttpConnection.h, src/HttpConnection.cc
  9008. (HttpRequestEntry): New class.
  9009. (headerBuf): Removed.
  9010. (headerBufLength): Removed.
  9011. (outstandingHttpRequests): Now its element type is
  9012. HttpRequestEntryHandle.
  9013. (findEndOfHeader): Removed.
  9014. (receiveResponse): Rewritten.
  9015. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  9016. Updated doc for -j option to notice that it should be used with -i
  9017. option.
  9018. * src/main.cc (showUsage)
  9019. Removed unused classes.
  9020. * src/RequestInfo.h
  9021. (FileInfo): Removed.
  9022. (checksum): Removed.
  9023. (fileInfo): Removed.
  9024. (setChecksum): Removed.
  9025. (getChecksum): Removed.
  9026. (getFileInfo): Removed.
  9027. Use ISO units.
  9028. * src/ConsoleDownloadEngine.cc
  9029. * src/TorrentConsoleDownloadEngine.cc
  9030. * src/Util.cc (abbrevSize)
  9031. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9032. Added the default listening ports to the help message.
  9033. * src/main.cc (showUsage)
  9034. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9035. Reduce the number of calls to gettimeofday to lower CPU load.
  9036. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  9037. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  9038. * src/Peer.h (calculateUploadSpeed): New function.
  9039. (calculateDownloadSpeed): New function.
  9040. * src/DefaultPeerStorage.cc
  9041. (CalculateStat): Added _now variable.
  9042. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  9043. and Peer::calculateUploadSpeed(const struct timeval&)
  9044. Drop connection if no request or piece message is exchanged in
  9045. a certain interval.
  9046. * src/DefaultBtInteractive.h
  9047. (btRuntime): New variable.
  9048. (inactiveCheckPoint): New variable.
  9049. (checkActiveInteraction): New function.
  9050. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  9051. request or piece message is received.
  9052. (checkActiveInteraction): New function.
  9053. (doInteractionProcessing): Call checkActiveInteraction.
  9054. Fixed the bug that causes remote Metalink and Torrent files are not
  9055. processed.
  9056. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  9057. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9058. Changed format of log file.
  9059. * src/SimpleLogger.cc
  9060. * Release 0.11.0
  9061. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9062. * src/AbstractCommand.cc
  9063. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  9064. MSG_MAX_TRY from error to info.
  9065. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  9066. * src/message.h
  9067. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  9068. (MSG_DOWNLOAD_ABORTED): Added %s.
  9069. (MSG_RESTARTING_DOWNLOAD): Added %s.
  9070. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  9071. * src/PeerAbstractCommand.cc
  9072. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  9073. * src/Request.h
  9074. (cookieBox): Made ShardHandle.
  9075. * src/RequestGroup.h, src/RequestGroup.cc
  9076. (createNextCommandWithAdj): New function.
  9077. * src/FileAllocationCommand.cc
  9078. (executeInternal): Use createNextCommandWithAdj().
  9079. * src/CheckIntegrityCommand.cc
  9080. (executeInternal): Use createNextCommandWithAdj().
  9081. Added --load-cookies command-option.
  9082. * src/OptionHandlerFactory.cc
  9083. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  9084. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  9085. Now aria2 can handle cookie's expiration date.
  9086. * src/Cookie.h (expires): Changed its type to time_t.
  9087. * src/main.cc: Added --load-cookies command-line option.
  9088. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  9089. * src/Util.h, src/Util.cc (httpGMT): New function.
  9090. * src/Request.cc (Request): Initialize cookieBox using
  9091. CookieBoxFactory.
  9092. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  9093. * src/CookieParser.h, src/CookieParser.cc: New class.
  9094. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  9095. * src/HttpResponseCommand.cc
  9096. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  9097. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  9098. download.
  9099. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9100. Added -j command-line option.
  9101. * src/OptionHandlerFactory.cc (createOptionHandlers)
  9102. * src/main.cc
  9103. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  9104. Rewritten using stringstream.
  9105. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  9106. Rewritten using stringstream.
  9107. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9108. Make download size shown in MB, KB.
  9109. * src/ConsoleDownloadEngine.h (sendStatistics)
  9110. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  9111. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9112. Accept incoming connections if download rate is low.
  9113. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  9114. (_lowestSpeedLimit): New variable.
  9115. (setLowestSpeedLimit): New function.
  9116. (execute): Accept incoming connections if download rate is low.
  9117. MAX_PEERS is ignored in this case.
  9118. Disable PREF_OUT in multiple concurrent download:
  9119. * src/RequestGroup.h, src/RequestGroup.cc
  9120. (setUserDefinedFilename): New function.
  9121. * src/DownloadEngineFactory.cc
  9122. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  9123. concurrent download.
  9124. * src/DefaultSegmentManFactory.cc
  9125. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  9126. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9127. RequestGroup::getNextCommand() was renamed to createNextCommand().
  9128. Added its overloaded method.
  9129. * src/RequestGroup.h
  9130. (_numConcurrentCommand): New variable.
  9131. (setNumConcurrentCommand): New function.
  9132. * src/RequestGroup.cc
  9133. Abort download if same file is being downloaded concurrently.
  9134. * src/RequestGroup.h, src/RequestGroupMan.cc
  9135. (isSameFileBeingDownloaded): New function.
  9136. * src/HttpResponseCommand.cc (executeInternal)
  9137. * src/FtpNegotiateCommand.cc (recvSize)
  9138. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  9139. * main.cc: Added help message for -i option.
  9140. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9141. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  9142. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  9143. * src/MetalinkEntry.h
  9144. (checksum): Changed to ChecksumHandle
  9145. * src/MetalinkRequestInfo.cc
  9146. (checksum): Changed to ChecksumHandle
  9147. * src/File.cc
  9148. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  9149. * src/common.h
  9150. (DIR_OPEN_MODE): New definition
  9151. * src/RequestGroup.cc
  9152. (prepareForNextAction): Added an argument.
  9153. * src/message.h
  9154. (MSG_GOOD_CHECKSUM): New definition
  9155. (MSG_BAD_CHECKSUM): New definition
  9156. * src/HttpResponseCommand.cc
  9157. (handleDefaultEncoding): Continue download sequence in new
  9158. non-segmented download.
  9159. * src/FileAllocationEntry.h
  9160. (_nextDownloadCommand): New variable.
  9161. * src/DownloadCommand.cc
  9162. (prepareForNextSegment): Create ChecksumCommand if checksum is
  9163. available.
  9164. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  9165. * src/IteratableChecksumValidator.h,
  9166. src/IteratableChecksumValidator.cc: New class.
  9167. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  9168. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9169. Change file mode to 666:
  9170. * src/common.h (OPEN_MODE): New definition.
  9171. * src/File.cc
  9172. * src/Util.cc
  9173. * src/Directry.cc
  9174. * src/AbstractDiskWriter.cc
  9175. Change the level of log message "download aborted" to debug:
  9176. * src/PeerAbstractCommand.cc (execute)
  9177. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  9178. * src/TrackerWatcherCommand.cc
  9179. (createCommand): Sleep some seconds after request failed.
  9180. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  9181. then abort tracker request.
  9182. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9183. * Added the simultaneous download feature.
  9184. * src/main.cc: Print "Exception caught: " when exception is caught.
  9185. Use CUIDCounter instead of BtRuntime::getNewCuid():
  9186. * src/ActivePeerConnectionCommand.cc
  9187. * src/PeerInteractionCommand.cc
  9188. * src/BtRuntime.h
  9189. (cuidCounter): Removed.
  9190. (getNewCuid): Removed.
  9191. * src/DownloadEngineFactory.cc
  9192. * src/PeerListenCommand.cc
  9193. * src/TrackerUpdateCommand.cc
  9194. * src/PeerInitiateConnectionCommand.cc
  9195. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9196. * src/PeerAbstractCommand.cc
  9197. (onAbort): Call PeerStorage::returnPeer()
  9198. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  9199. (incomingPeers): New variable.
  9200. (addIncomingPeer): New function.
  9201. (returnPeer): New function.
  9202. (onErasingPeer): New function.
  9203. (addPeer): push_back -> push_front
  9204. (getActivePeers): Rewritten.
  9205. (calculateStat): Rewritten.
  9206. * src/PeerStorage.h
  9207. (TransferStat::copy): New function.
  9208. (TransferStat::TransferStat): New function.
  9209. (TransferStat::operator=): New function.
  9210. (addIncomingPeer): New function.
  9211. (returnPeer): New function.
  9212. * src/PeerListenCommand.cc
  9213. (execute): Use PeerStorage::addIncomingPeer() instead of
  9214. Peer::addPeer().
  9215. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9216. Connect to a peer actively when download speed is lower than specified
  9217. speed in torrent download:
  9218. * src/ActivePeerConnectionCommand.h: New class.
  9219. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9220. * src/HttpRequest.cc (createRequest): url-encode user-agent
  9221. * src/main.cc: Fixed the bug that prevents download if .netrc
  9222. doesn't exist.
  9223. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9224. To cache resolved hostname:
  9225. * src/AbstractCommand.h, src/AbstractCommand.cc
  9226. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  9227. Added dns cache.
  9228. * src/FtpInitiateConnectionCommand.cc
  9229. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  9230. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  9231. NameResolver working without ares.
  9232. * src/TorrentRequestInfo.cc
  9233. (execute): Don't cache dns in torrent download.
  9234. * src/HttpInitiateConnectionCommand.cc
  9235. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  9236. * src/DNSCache.h: New class.
  9237. * src/UrlRequestInfo.cc
  9238. (execute): Use dns cache.
  9239. In http request, suppress port number in http request header if port
  9240. is 80 or 443:
  9241. * src/HttpRequest.cc (getHostText): Suppress port number in http
  9242. request header if port is 80 or 443.
  9243. (createProxyRequest): Allways send port number.
  9244. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9245. To add the command-line option which disables netrc support:
  9246. * src/OptionHandlerFactory.cc
  9247. (createOptionHandlers): Added PREF_NO_NETRC.
  9248. * src/main.cc: Added -n option.
  9249. * src/prefs.h (PREF_NO_NETRC): New definition.
  9250. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  9251. V_TRUE.
  9252. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  9253. is V_FALSE. This may get configurable in the future release.
  9254. To clear peer's error status by time basis:
  9255. * src/PeerAbstractCommand.cc
  9256. (onAbort): Call Peer::startBadCondition().
  9257. * src/Peer.h, src/Peer.cc
  9258. (error): Removed.
  9259. (_badConditionStartTime): New variable.
  9260. (_badConditionInterval): New variable. Initialized to 10 seconds.
  9261. (startBadCondition): New function.
  9262. (isGood): New function.
  9263. * src/DefaultPeerStorage.cc
  9264. (addPeer): Use Peer::isGood().
  9265. (FindFinePeer): Use Peer::isGood().
  9266. Always include port number in http request header:
  9267. * src/HttpRequest.cc (getHostText): Always include port number in
  9268. http request header.
  9269. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9270. To the ability to read options from a config file:
  9271. * src/main.cc: Command-line parameter validation is delegated to
  9272. OptionHandler class.
  9273. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  9274. * src/Option.h, src/Option.cc (clear): New function.
  9275. * src/OptionParser.h, src/OptionParser.cc: New class.
  9276. * src/OptionHandler.h: New class.
  9277. * src/NameMatchOptionHandler.h: New class.
  9278. * src/OptionHandlerImpl.h: New classes.
  9279. * src/prefs.h: '_' -> '-'
  9280. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  9281. (FTP_PASV): New definition.
  9282. * src/Util.h, src/Util.cc (getRealSize): New function.
  9283. To disable netrc support if .netrc file does not have correct
  9284. permissions:
  9285. * src/File.h, src/File.cc (mode): New function.
  9286. To prevent confidential information to be logged:
  9287. * src/HttpConnection.h, src/HttpConnection.cc
  9288. (eraseConfidentialInfo): New function.
  9289. (sendRequest): Call eraseConfidentialInfo().
  9290. (sendProxyRequest): Call eraseConfidentialInfo().
  9291. * src/main.cc: Validate permissions of .netrc file.
  9292. To add --user-agent command-line option:
  9293. * src/main.cc: Added new command line option: --user-agent
  9294. * src/prefs.h (PREF_USER_AGENT): New definition.
  9295. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  9296. parameter to HttpRequest object.
  9297. * src/AbstractProxyRequestCommand.cc
  9298. (executeInternal): Set user-agent option parameter to HttpRequest
  9299. object.
  9300. Marged the patches from Dan Fandrich.
  9301. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9302. Use filename and size from Metalink file instead of sending HEAD
  9303. request:
  9304. * src/UrlRequestInfo.h
  9305. (_filename): New variable.
  9306. (_totalLength): New variable.
  9307. (setTotalLength): New variable.
  9308. (setFilename): New variable.
  9309. * src/MetalinkRequestInfo.cc
  9310. (execute): Set filename and size to UrlRequestInfo
  9311. * src/UrlRequestInfo.cc
  9312. (execute): Use filename and size from Metalink instead of seding
  9313. HEAD request to servers.
  9314. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9315. To add the ability to resume downloading a partially downloaded file
  9316. which is downloaded from the beginning:
  9317. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  9318. takes this role.
  9319. * src/main.cc: Added -c option.
  9320. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  9321. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  9322. * src/prefs.h (PREF_CONTINUE): New definition.
  9323. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  9324. * src/DefaultDiskWriter.cc
  9325. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  9326. * src/AbstractDiskWriter.h
  9327. (glowFileAllocator): New variable.
  9328. * src/AbstractDiskWriter.cc
  9329. (openExistingFile): Now preallocate file space from the end of the
  9330. existing file if totalLength argument is specified and grater than 0.
  9331. * src/UrlRequestInfo.cc: If -c option is specified and the file
  9332. to download exists in local, continue the download of the file.
  9333. --allow-overwrite=true is assumed in this context.
  9334. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  9335. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  9336. Throw exception if --check-integrity=true is specified but chunk
  9337. checksums are not provided:
  9338. * src/UrlRequestInfo.cc
  9339. Do not print URLs to stdout:
  9340. * src/UrlRequestInfo.cc
  9341. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9342. * src/Request.h: Use AuthResolver to get authentication information.
  9343. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  9344. set to RequestFactory object.
  9345. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  9346. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  9347. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  9348. create Request object.
  9349. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  9350. To integrate Netrc into exsiting classes:
  9351. * src/Request.h
  9352. (_userDefinedAuthConfig): New variable.
  9353. (findNetrcAuthenticator): New function.
  9354. (segment): Removed.
  9355. (setUserDefinedAuthConfig): New function.
  9356. (resolveHttpAuthConfigItem): New function.
  9357. (resolveFtpAuthConfigItem): New function.
  9358. (resolveHttpProxyAuthConfigItem): New function.
  9359. * src/HttpRequest.h
  9360. (authConfig): Removed.
  9361. (proxyAuthConfig): Removed.
  9362. (setAuthConfig): Removed.
  9363. (setProxyAuthConfig): Removed.
  9364. * src/UrlRequest.h
  9365. (getHeadResult): Added a parameter: authConfigHandle
  9366. * src/common.h
  9367. (SingletonHolder.h): New include.
  9368. * src/main.cc
  9369. (Netrc.h): New include.
  9370. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  9371. Added initial value of PREF_NETRC_PATH.
  9372. Added the initialization of netrc.
  9373. * src/AuthConfig.h: New class.
  9374. * src/prefs.h
  9375. (PREF_NETRC_PATH): New definition.
  9376. * src/HttpAuthConfig.h: Removed.
  9377. * src/Netrc.cc
  9378. (getRequiredNextToken): New function.
  9379. (skipMacdef): New function.
  9380. (parse): Rewritten.
  9381. * src/Netrc.h
  9382. (getRequiredNextToken): New function.
  9383. (skipMacdef): New function.
  9384. * src/Util.h, src/Util.cc
  9385. (getHomeDir): New function.
  9386. * src/TrackerWatcherComand.cc
  9387. (createRequestCommand): Use AuthConfig.
  9388. * src/FtpConnection.cc
  9389. (sendUser): Use Request::resolveFtpAuthConfigItem().
  9390. (sendPass): Use Request::resolveFtpAuthConfigItem().
  9391. * src/Request.cc
  9392. (findNetrcAuthenticator): New function.
  9393. (resolveHttpAuthConfigItem): New function.
  9394. (resolveFtpAuthConfigItem): New function.
  9395. (resolveHttpProxyAuthConfigItem): New function.
  9396. * src/UrlRequestInfo.cc: Use AuthConfig.
  9397. * src/HttpRequest.cc
  9398. (createRequest): Use authConfig.
  9399. (getProxyAuthString): Use authConfig.
  9400. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  9401. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  9402. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9403. To reduce overhead to find commands whose socket is either
  9404. readable or writable in the download engine loop:
  9405. * src/Command.h, src/Command.cc
  9406. (STATUS): New enum.
  9407. (status): New variable.
  9408. (statusMatch): New function.
  9409. (setStatusActive): New function.
  9410. (setStatusInactive): New function.
  9411. * src/DownloadEngine.h, src/DownloadEngine.cc
  9412. (executeCommand): New function.
  9413. (run): Simplified.
  9414. (waitData): Call Command::setStatusActive() when command's socket is
  9415. readable or writable.
  9416. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9417. To handle Segment as SegmentHandle:
  9418. * src/AbstractCommand.cc (execute): Rewritten.
  9419. * src/SegmentMan.h: Segment -> SegmentHandle
  9420. Introducded HttpResponse class, HttpRequest class to improve code
  9421. extensiveness and make it clear:
  9422. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  9423. HttpResponse class.
  9424. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  9425. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  9426. * src/HttpConnection.cc: Contruction of http request were moved to
  9427. HttpRequest class.
  9428. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  9429. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  9430. * src/HttpAuthConfig.h: New class.
  9431. * src/Range.h: New class.
  9432. To make FtpTunnel{Request, Response}Command and
  9433. HttpProxy{Request, Response}Command derived from
  9434. AbstractProxy{Request, Response}Command:
  9435. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  9436. Derived from AbstractProxyRequestCommand class.
  9437. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  9438. Derived from AbstractProxyResponseCommand class.
  9439. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  9440. Derived from AbstractProxyRequestCommand class.
  9441. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  9442. Derived from AbstractProxyResponseCommand class.
  9443. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  9444. : New class.
  9445. * src/AbstractProxyResponseCommand.h,
  9446. src/AbstractProxyResponseCommand.cc: New class.
  9447. To add netrc support:
  9448. * src/Netrc.h, src/Netrc.cc: New class.
  9449. * src/Util.h, src/Util.cc (split): New function.
  9450. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  9451. "Content-Range" header instead of "Range" header.
  9452. * src/HttpHeader.h
  9453. (getStatus): Removed.
  9454. (setStatus): Removed.
  9455. * src/Segment.h
  9456. (getPositionToWrite): New function.
  9457. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9458. * src/HttpHeader.h
  9459. (Range.h): New include.
  9460. (status): New variable.
  9461. (HttpHeader): Initialized status with 0.
  9462. (getStatus): New function.
  9463. (setStatus): New function.
  9464. (getRange): New function.
  9465. (HttpHeaderHandle): New function.
  9466. * src/HttpHeader.cc
  9467. (getRange): New function.
  9468. * src/Request.h
  9469. (RequestWeakHandle): New definition.
  9470. * src/HttpConnection.h
  9471. (HttpConnectionHandle): New type definition.
  9472. * src/HttpConnection.cc
  9473. (receiveResponse): Set HTTP status to headers.
  9474. * src/main.cc
  9475. (showUsage): Fixed typo.
  9476. * src/Segment.h
  9477. (SegmentHandle): New type definition.
  9478. * src/BitfieldMan.h
  9479. (getMissingUnusedLength): New function.
  9480. * src/BitfieldMan.cc
  9481. (getMissingUnusedLength): New function.
  9482. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9483. To fix static initialization order problem:
  9484. * src/BitfieldManFactory.h
  9485. (defaultRandomizer): Removed.
  9486. (factory): New variable.
  9487. (getNewFactory): Removed.
  9488. (getFactoryInstance): New function.
  9489. (setDefaultRandomizer): Rewritten.
  9490. (getDefaultRandomizer): Rewritten.
  9491. * src/BitfieldManFactory.cc
  9492. (defaultRandomizer): Removed.
  9493. (factory): Initialized to 0.
  9494. (BitfieldManFactory): Initialized randomizer to 0.
  9495. * src/DefaultPieceStorage.cc
  9496. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  9497. * src/Peer.cc
  9498. (Peer): getNewFactory() -> getFactoryInstance()
  9499. * src/SegmentMan.cc
  9500. (initBitfield): getNewFactory() -> getFactoryInstance()
  9501. * src/Piece.cc
  9502. (Piece): getNewFactory() -> getFactoryInstance()
  9503. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9504. To fix the bug that causes crash on Max OS X:
  9505. * src/SimpleRandomizer.h
  9506. (getInstance): Create new instance if the static variable is null.
  9507. * src/SimpleRandomizer.cc
  9508. (randomizer): Initialized to 0.
  9509. * src/BitfieldManFactory.h
  9510. (getNewFactory): Removed the call to setRandomizer().
  9511. To fix the miscalculation of the range of checksum:
  9512. * src/BitfieldMan.h
  9513. (isBitSetOffsetRange): New function.
  9514. * src/BitfieldMan.cc
  9515. (isBitSetOffsetRange): New function.
  9516. * src/SegmentMan.cc
  9517. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  9518. Use bitfield->getBlockLength() instead of segment.segmentLength.
  9519. * Release 0.10.1
  9520. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9521. To lower CPU usage in BitTorrent download when --max-upload-limit
  9522. command-line option specified:
  9523. * src/DefaultBtMessageDispatcher.cc
  9524. (sendMessages): Calculate uploading speed only when current message
  9525. is uploading data and is not sent yet.
  9526. * src/DefaultPeerStorage.h
  9527. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  9528. * src/HttpResponseCommand.cc
  9529. (handleDefaultEncoding): Added the cast to int32_t to itos.
  9530. This fixes compile error in Soralis 10.
  9531. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9532. To fix segfault in Metalink download:
  9533. * src/UrlRequestInfo.h
  9534. (filename): Removed.
  9535. (totalLength): Removed.
  9536. (setTotalLength): Removed.
  9537. (setFilename): Removed.
  9538. * src/MetalinkRequestInfo.cc
  9539. (execute): Do not set filename and totalLength to reqInfo.
  9540. Set chunk checksum to reqInfo if it is not null.
  9541. * src/HttpResponseCommand.cc
  9542. (executeInternal): Fixed filename in log.
  9543. (handleDefaultEncoding): Removed the call to initBitfield() and
  9544. markAllPiecesDone().
  9545. (handleOtherEncoding): Added HEAD method handling.
  9546. * src/FtpNegotiateCommand.cc
  9547. (executeInternal): Added SEQ_HEAD_OK handling.
  9548. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  9549. return false.
  9550. * src/FtpNegotiateCommand.h
  9551. (SEQ_HEAD_OK): New definition.
  9552. * src/SegmentMan.cc
  9553. (initBitfield): Delete bitfield.
  9554. (isChunkChecksumValidationReady): Fixed the condition.
  9555. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  9556. works fine.
  9557. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9558. * src/Xml2MetalinkProcessor.h
  9559. (xpathExists): New function.
  9560. * src/Xml2MetalinkProcessor.cc
  9561. (xpathExists): New function.
  9562. Not to send HEAD request if filename and size are available in Metalink
  9563. file:
  9564. * src/UrlRequestInfo.h
  9565. (filename): New variable.
  9566. (totalLength): New variable.
  9567. (setTotalLength): New function.
  9568. (setFilename): New function.
  9569. * src/MetalinkRequestInfo.cc
  9570. (execute): Set filename and size to UrlRequestInfo.
  9571. * src/MetalinkEntry.cc
  9572. (MetalinkEntry): Initialize size with 0.
  9573. * src/UrlRequestInfo.cc
  9574. (execute): Set filename and size to SegmentMan.
  9575. Not to download rest of the files after selected files are downloaded
  9576. in BitTorrent:
  9577. * src/PieceStorage.h
  9578. (allDownloadFinished): New function.
  9579. * src/DefaultBtAnnounce.cc
  9580. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  9581. downloadFinished.
  9582. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  9583. * src/DefaultPieceStorage.cc
  9584. (completePiece): Use allDownloadFinished instead of downloadFinished.
  9585. Commented out the call to finishSelectiveDownloadingMode().
  9586. (downloadFinished): Call isFilteredAllBitSet() instead of
  9587. isAllBitSet().
  9588. (allDownloadFinished): New function.
  9589. * src/DefaultBtInteractive.cc
  9590. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  9591. downloadFinished().
  9592. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  9593. * src/TorrentDownloadEngine.cc
  9594. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  9595. * src/BitfieldMan.h
  9596. (isFilteredAllBitSet): New function.
  9597. * src/ShareRatioSeedCriteria.h
  9598. (PieceStorage.h): New include.
  9599. (pieceStorage): New variable.
  9600. (evaluate):
  9601. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  9602. * src/BitfieldMan.cc
  9603. (isFilteredAllBitSet): New function.
  9604. (isAllBitSet): Filter is not took into account.
  9605. Rename --force-truncate as --allow-overwrite:
  9606. * src/TorrentRequestInfo.cc
  9607. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  9608. * src/main.cc
  9609. (showUsage): --force-truncate -> --allow-overwrite
  9610. * src/message.h
  9611. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  9612. * src/prefs.h
  9613. (PREF_FORCE_TRUNCATE): Removed.
  9614. (PREF_ALLOW_OVERWRITE): New definition.
  9615. * src/SegmentMan.cc
  9616. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  9617. * src/MetalinkRequestInfo.cc
  9618. (execute): Queueing message are now logged in info level.
  9619. * src/common.h
  9620. (LONG_LONG_MAX): Removed.
  9621. (LONG_LONG_MIN): Removed.
  9622. * src/HttpResponseCommand.cc
  9623. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  9624. * src/FtpNegotiateCommand.cc
  9625. (recvSize): LONG_LONG_MAX -> INT64_MAX
  9626. * src/main.cc
  9627. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  9628. command-line option.
  9629. (main): Added --check-integriy and --realtime-chunk-checksum
  9630. command-line option.
  9631. --force-truncate -> --allow-overwrite
  9632. Set initial value of --check-integrity option to false.
  9633. Don't show usage when error occurs while persing command-line options.
  9634. Removed deprecated --upload-limit option.
  9635. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9636. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  9637. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  9638. * src/BtAllowedFastMessage.cc:
  9639. * src/BtBitfieldMessage.cc
  9640. * src/BtCancelMessage.cc
  9641. * src/BtChokeMessage.cc
  9642. * src/BtHaveAllMessage.cc
  9643. * src/BtHaveMessage.cc
  9644. * src/BtHaveNoneMessage.cc
  9645. * src/BtInterestedMessage.cc
  9646. * src/BtNotInterestedMessage.cc
  9647. * src/BtPieceMessage.cc
  9648. * src/BtPortMessage.cc
  9649. * src/BtRejectMessage.cc
  9650. * src/BtRequestMessage.cc
  9651. * src/BtSuggestPieceMessage.cc
  9652. * src/BtUnchokeMessage.cc
  9653. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  9654. files are affected.
  9655. * src/ChunkChecksumValidator.cc
  9656. * src/SegmentMan.cc
  9657. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9658. To add chunk checksum validation:
  9659. * src/MetalinkEntry.h
  9660. (MetalinkChunkChecksum.h): New include.
  9661. (chunkChecksum): New variable.
  9662. * src/Request.h
  9663. (method): New variable.
  9664. (setMethod): New function.
  9665. (getMethod): New function.
  9666. (METHOD_GET): New static constant.
  9667. (METHOD_HEAD): New static constant.
  9668. * src/Xml2MetalinkProcessor.h
  9669. (getPieceHash): New function.
  9670. * src/PieceStorage.h
  9671. (markAllPiecesDone): New function.
  9672. (checkIntegrity): New function.
  9673. * src/FileAllocator.h
  9674. (NullFileAllocationMonitor.h): New include.
  9675. (FileAllocator): Initialize fileAllocationMonitor with new
  9676. NullFileAllocationMonitor().
  9677. * src/MultiDiskAdaptor.h
  9678. (messageDigest.h): Remove include.
  9679. (ctx): Removed.
  9680. (hashUpdate): Added ctx.
  9681. (MultiDiskAdaptor): Removed ctx.
  9682. (sha1Sum): Renamed as messageDigest.
  9683. (messageDigest): New function.
  9684. * src/UrlRequestInfo.h
  9685. (HeadResult): New class.
  9686. (digestAlgo): New variable.
  9687. (chunkChecksumLength): New variable.
  9688. (chunkChecksums): New variable.
  9689. (getHeadResult): New function.
  9690. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  9691. (setDigestAlgo): New function.
  9692. (setChunkChecksumLength): New function.
  9693. (setChunkChecksums): New function.
  9694. * src/DefaultPieceStorage.cc
  9695. (DiskAdaptorWriter.h): New include.
  9696. (ChunkChecksumValidator.h): New include.
  9697. (markAllPiecesDone): New function.
  9698. (checkIntegrity): New function.
  9699. * src/DefaultBtContext.h
  9700. (getPieceHashes): New function.
  9701. * src/TorrentRequestInfo.cc
  9702. (execute): Try to validate chunk checksum if file already exists and
  9703. .aria2 file doesn't there and user allows aria2 to overwrite it.
  9704. * src/messageDigest.h
  9705. (~MessageDigestContext): Added digestFree().
  9706. * src/MetalinkRequestInfo.cc
  9707. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  9708. * src/DiskAdaptor.h
  9709. (messageDigest.h): New include.
  9710. (sha1Sum): Renamed as messageDigest.
  9711. (messageDigest): New function.
  9712. * src/DownloadCommand.h
  9713. (PeerStat.h): New include.
  9714. (maxDownloadSpeedLimit): New variable.
  9715. (startupIdleTime): New variable.
  9716. (lowestDownloadSpeedLimit): New variable.
  9717. (peerStat): New variable.
  9718. (setMaxDownloadSpeedLimit): New function.
  9719. (setStartupIdleTime): New function.
  9720. (setLowestDownloadSPeedLimit): New function.
  9721. * src/BtContext.h
  9722. (getPieceHashes): New function.
  9723. * src/main.cc
  9724. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  9725. option to true for testing purpose.
  9726. * src/BtPieceMessage.cc
  9727. (checkPieceHash): Use messageDigest
  9728. * src/DownloadEngine.cc
  9729. (SetDescriptor): Removed.
  9730. (AccumulateActiveCommand): Removed.
  9731. (waitData): Rewritten.
  9732. (updateFdSet): Rewritten.
  9733. * src/MultiDiskAdaptor.cc
  9734. (hashUpdate): Added ctx.
  9735. (sha1Sum): Renamed as messageDigest.
  9736. (messageDigest): New function.
  9737. * src/BitfieldMan.h
  9738. (isBitRangeSet): New function.
  9739. (unsetBitRange): New function.
  9740. * src/ByteArrayDiskWriter.h
  9741. (sha1Sum): Renamed as messageDigest.
  9742. (messageDigest): New function.
  9743. * src/ConsoleDownloadEngine.cc
  9744. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  9745. * src/DiskWriter.h
  9746. (messageDigest.h): New include.
  9747. (sha1Sum): Renamed as messageDigest.
  9748. (messageDigest): New function.
  9749. * src/ChunkChecksumValidator.h: New class.
  9750. * src/DiskAdaptorWriter.h: New class.
  9751. * src/prefs.h
  9752. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  9753. (PREF_CHECK_INTEGRITY): New definition.
  9754. * src/HttpResponseCommand.cc
  9755. (handleDefaultEncoding): Added method "HEAD" handling.
  9756. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9757. (handleOtherEncoding):
  9758. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  9759. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  9760. startupIdleTime, lowestDownloadSpeedLimit to command.
  9761. * src/SegmentMan.h
  9762. (getSegmentEntryByIndex): New function.
  9763. (getSegmentEntryByCuid): New function.
  9764. (getSegmentEntryIteratorByCuid): New function.
  9765. (diskWriter): DiskWriter -> DiskWriterHandle
  9766. (pieceHashes): New variable.
  9767. (chunkHashLength): New variable.
  9768. (digestAlgo): New variable.
  9769. (FindPeerStat): Removed.
  9770. (getPeerStat): Rewritten.
  9771. (markAllPiecesDone): New function.
  9772. (checkIntegrity): New function.
  9773. (tryChunkChecksumValidation): New function.
  9774. (isChunkChecksumValidationReady): New function.
  9775. * src/BitfieldMan.cc
  9776. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  9777. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  9778. blocks to 0.
  9779. (isBitRangeSet): New function.
  9780. (unsetBitRange): New function.
  9781. * src/FtpNegotiateCommand.cc
  9782. (executeInternal): Set maxDownloadSpeedLimit,
  9783. startupIdleTime, lowestDownloadSpeedLimit to command.
  9784. (recvSize): Added method "HEAD" handling.
  9785. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9786. * src/AbstractSingleDiskAdaptor.cc
  9787. (sha1Sum): Renamed as messageDigest.
  9788. (messageDigest): New function.
  9789. * src/AbstractSingleDiskAdaptor.h
  9790. (sha1Sum): Renamed as messageDigest.
  9791. (messageDigest): New function.
  9792. * src/Util.h
  9793. (indexRange): New function.
  9794. * src/MetalinkEntry.cc
  9795. (MetalinkEntry): Initialized chunkChecksum to 0.
  9796. * src/ShaVisitor.cc
  9797. (~ShaVisitor): Removed the call to ctx.digestFree().
  9798. * src/SegmentMan.cc
  9799. (ChunkChecksumValidator.h): New include.
  9800. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  9801. to DIGEST_ALGO_SHA1.
  9802. (~SegmentMan): Removed diskWriter.
  9803. (FindSegmentEntryByIndex): Removed.
  9804. (FindSegmentEntryByCuid): Removed.
  9805. (checkoutSegment): Rewritten.
  9806. (findSlowerSegmentEntry): Rewritten.
  9807. (getSegment): Rewritten.
  9808. (updateSegment): Rewritten.
  9809. (completeSegment): Rewritten.
  9810. (markAllPiecesDone): New function.
  9811. (checkIntegrity): New function.
  9812. (isChunkChecksumValidationReady): New function.
  9813. (tryChunkChecksumValidation): New function.
  9814. * src/Xml2MetalinkProcessor.cc
  9815. (getEntry): Get size and set it to entry.
  9816. Get chunk checksum and set it to entry.
  9817. (getPieceHash): New function.
  9818. * src/Util.cc
  9819. (sha1Sum): Removed ctx.digestFree()
  9820. (fileChecksum): Removed ctx.digestFree()
  9821. (indexRange): New function.
  9822. * src/Request.cc
  9823. (METHOD_GET): New variable.
  9824. (METHOD_HEAD): New variable.
  9825. (Request): Added method.
  9826. * src/UrlRequestInfo.cc
  9827. (FatalException.h): New include.
  9828. (message.h): New include.
  9829. (operator<<): Added operator<< for class HeadResult.
  9830. (getHeadResult): New function.
  9831. (execute): Get filename and size in separate download engine.
  9832. * src/ChunkChecksumValidator.cc: New class.
  9833. * src/DownloadCommand.cc:
  9834. (DownloadCommand): Added peerStat.
  9835. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  9836. the value from Option.
  9837. The buffer size is now 16KB.
  9838. Use peerStat member instead of getting it from SegmentMan.
  9839. Use startupIdleTime member instead of gettingit from Option.
  9840. Added chunk checksum validation.
  9841. * src/AbstractDiskWriter.cc
  9842. (AbstractDiskWriter): Removed ctx.
  9843. (~AbstractDiskWriter): Removed ctx.digestFree()
  9844. (writeDataInternal): Returns the return value of write.
  9845. (readDataInternal): Returns the return value of read.
  9846. (sha1Sum): Renamed as messageDigest
  9847. (messageDigest): New function.
  9848. * src/AbstractDiwkWriter.h
  9849. (messageDigest.h): Removed include.
  9850. (ctx): Removed.
  9851. (sha1Sum): Renamed as messageDigest
  9852. (messageDigest): New function.
  9853. * src/DefaultPieceStorage.h
  9854. (markAllPiecesDone): New function.
  9855. (checkIntegrity): New function.
  9856. * src/NullFileAllocationMonitor.h: New class.
  9857. * src/MetalinkChunkChecksum.h: New class.
  9858. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9859. To decrease CPU usage in bittorrent download, calculation results in
  9860. BitfieldMan were cached and realtime fetching PeerObject was removed
  9861. with WeakHandle introduced. Option values are set to the objects
  9862. by setter before download begins.
  9863. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  9864. * src/DefaultBtRequestFactory.h
  9865. (dispatcher): BtMessageDispatcherHandle ->
  9866. BtMessageDispatcherWeakHandle.
  9867. (messageFactory): New variable.
  9868. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  9869. BtMessageDispatcherWeakHandle.
  9870. (setBtMessageFactory): New function.
  9871. * src/DefaultBtMessageDispatcher.cc:
  9872. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  9873. from Option.
  9874. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  9875. feating the value from Option.
  9876. Use messageFactory member.
  9877. * src/PeerInteractionCommand.cc
  9878. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  9879. Add reverse dependencies to factory object.
  9880. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  9881. dispatcher.
  9882. Set messageFactory to receiver.
  9883. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  9884. btInteractive.
  9885. Set receiver to peerObject.
  9886. Set maxDownloadSpeedLimit to this.
  9887. (executeInternal): Use maxDownloadSpeedLimit member.
  9888. * src/BtChokeMessage.cc
  9889. (doReceivedAction): Use dispatcher, requestFactory member.
  9890. (onSendComplete): Use dispatcher member.
  9891. * src/PeerInteractionCommand.h
  9892. (maxDownloadSpeedLimit): New variable.
  9893. * src/DefaultBtMessageReceiver.h
  9894. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9895. (dispatcher):
  9896. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9897. (messageFactory): New variable.
  9898. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9899. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9900. (setDispatcher):
  9901. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9902. (setBtMessageFactory): New function.
  9903. * src/DefaultBtInteractive.cc
  9904. (initiateHandshake): Use messageFactory member.
  9905. (addBitfieldMessageToQueue): Use messageFactory member.
  9906. (addAllowedFastMessageToQueue): Use messageFactory member.
  9907. (decideChoking): Use messageFactory member.
  9908. (checkHave): Use messageFactory member.
  9909. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  9910. (receiveMessages): Use maxDownloadSpeedLimit member.
  9911. (decideInterest): Use messageFactory member.
  9912. * src/BtRequestMessage.cc
  9913. (doReceivedAction): Use messageFactory, dispatcher member.
  9914. (onQueued): Use dispatcher member.
  9915. * src/BtPieceMessage.cc
  9916. (doReceivedAction): Use dispatcher member.
  9917. (send): Use peerConnection member.
  9918. (onWrongPiece): Use requestFactory member.
  9919. (handleChokingEvent): Use messageFactory, dispatcher member.
  9920. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  9921. * src/BtMessageDispatcher.h
  9922. (BtMessageDispatcherWeakHandle): New type definition.
  9923. * src/SimpleBtMessage.cc
  9924. (send): Use peerConnection member.
  9925. * src/BtRejectMessage.cc
  9926. (doReceivedAction): Use dispatcher member.
  9927. * src/DefaultBtMessageDispatcher.h
  9928. (Option.h): Removed include.
  9929. (messageFactory): New variable.
  9930. (option): Removed.
  9931. (maxUploadSpeedLimit): New variable.
  9932. (requestTimeout): New variable.
  9933. (DefaultBtMessageDispatcher): Removed option.
  9934. Added maxUploadSpeedLimit, requestTimeout.
  9935. (setOption): Removed.
  9936. (getOption): Removed.
  9937. (setMaxUploadSpeedLimit): New function.
  9938. (setRequestTimeout): New function.
  9939. (setBtMessageFactory): New function.
  9940. * src/DefaultBtInteractive.h
  9941. (btMessageReceiver):
  9942. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9943. (dispatcher):
  9944. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9945. (btRequestFactory):
  9946. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9947. (peerConnection):
  9948. PeerConnectionHandle -> PeerConnectionWeakHandle
  9949. (messageFactory): New variable.
  9950. (option): Removed.
  9951. (keepAliveInterval): New variable.
  9952. (maxDownloadSpeedLimit): New variable.
  9953. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  9954. (setBtMessageReceiver):
  9955. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9956. (setDispatcher):
  9957. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9958. (setBtRequestFactory):
  9959. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9960. (setPeerConnection):
  9961. PeerConnectionHandle -> PeerConnectionWeakHandle
  9962. (setOption): Removed.
  9963. (setKeepAliveInterval): New function.
  9964. (setMaxDownloadSpeedLimit): New function.
  9965. (setBtMessageFactory): New function.
  9966. * src/BitfieldMan.h
  9967. (cachedNumMissingBlock): New variable.
  9968. (cachedNumFilteredBlock): New variable.
  9969. (cachedCompletedLength): New variable.
  9970. (cachedFilteredComletedLength): New variable.
  9971. (cachedFilteredTotalLength): New variable.
  9972. (countMissingBlockNow): New function.
  9973. (countFilteredBlockNow): New function.
  9974. (getFilteredTotalLengthNow): New function.
  9975. (getCompletedLengthNow): New function.
  9976. (getFilteredCompletedLengthNow): New function.
  9977. (updateCache): New function.
  9978. * src/AbstractBtMessage.h
  9979. (BtMessageDispatcher.h): New include.
  9980. (PeerConnection.h): New include.
  9981. (BtRequestFactory.h): New include
  9982. (BtMessageFactory.h): New include.
  9983. (dispatcher): New variable.
  9984. (messageFactory): New variable.
  9985. (peerConnection: New variable.
  9986. (setBtMessageDispatcher): New function.
  9987. (setPeerConnection): New function.
  9988. (setBtMessageFactory): New function.
  9989. (setBtRequestFactory): New function.
  9990. * src/DefaultBtMessageFactory.cc
  9991. (setCommonProperty): Set dispatcher, requestFactory, this,
  9992. peerConnection to msg.
  9993. * src/BtRegistry.h
  9994. (BT_MESSAGE_RECEIVER): New macro.
  9995. * src/PeerConnection.h
  9996. (PeerConnectionWeakHandle): New type definition.
  9997. * src/BtMessageFactory.h
  9998. (BtMessageFactoryWeakHandle): New type definition.
  9999. * src/BitfieldMan.cc
  10000. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  10001. cachedCompletedLength, cachedFilteredComletedLength,
  10002. cachedFilteredTotalLength.
  10003. Call updateCache().
  10004. (countMissingBlock): Return cachedNumMissingBlock.
  10005. (countMissingBlockNow): New function.
  10006. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  10007. (countFilteredBlockNow): New function.
  10008. (setBit): Call updateCache().
  10009. (unsetBit): Call updateCache().
  10010. (setBitfield): Call updateCache().
  10011. (clearAllBit): Call updateCache().
  10012. (setAllBit): Use setBitInternal instead of setBit.
  10013. Call updateCache().
  10014. (addFilter): Call updateCache().
  10015. (enableFilter): Call updateCache().
  10016. (disableFilter): Call updateCache().
  10017. (clearFilter): Call updateCache().
  10018. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  10019. (getFilteredTotalLengthNow): New function.
  10020. (getCompletedLength): Return cachedCompletedLength.
  10021. (getCompletedLengthNow): New function.
  10022. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  10023. (getFilteredCompletedLengthNow): New function.
  10024. (updateCache): New function.
  10025. * src/BtMessageReceiver.h
  10026. (BtMessageReceiverWeakHandle): New type definition.
  10027. * src/DefaultBtMessageReceiver.cc
  10028. (receiveHandshake): Use messageFactory member.
  10029. (sendHandshake): Use messageFactory member.
  10030. (receiveMessage): Use messageFactory member.
  10031. * src/DefaultBtMessageFactory.h
  10032. (dispatcher): New variable.
  10033. (requestFactory): New variable.
  10034. (peerConnection): New variablle.
  10035. (setBtMessageDispatcher): New function.
  10036. (setBtRequestFactory): New function.
  10037. (setPeerConnection): New function.
  10038. * src/SharedHandle.h
  10039. (RefCount): New class.
  10040. (WeakHandle): New class.
  10041. * src/PeerObject.h
  10042. (BtMessageReceiver.h): New include.
  10043. (PeerObject): Added btMessageReceiver.
  10044. (btMessageReceiver): New variable.
  10045. * src/Util.cc
  10046. (countBit): Simplified.
  10047. * src/BtCancelMessage.cc
  10048. (doReceivedAction): Use dispatcher member.
  10049. * src/BtRequestFactory.h
  10050. (BtRequestFactoryWeakHandle): New type definition.
  10051. * src/PeerStorage.h
  10052. (downloadSpeed): int -> uint32_t
  10053. (uploadSpeed): int -> uint32_t
  10054. (sessionDownloadLength): long long int -> uint64_t
  10055. (sessionUploadLength): long long int -> uint64_t
  10056. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10057. To add RecoverableException, FatalException:
  10058. * src/AbstractCommand.cc
  10059. (onAbort): Exception -> RecoverableException
  10060. * src/PeerAbstractCommand.h
  10061. (RecoverableException.h): New include.
  10062. (onAbort): Exception -> RecoverableException.
  10063. * src/PeerInteractionCommand.cc
  10064. (onAbort): Exception -> RecoverableException.
  10065. * src/PeerAbstractCommand.cc
  10066. (execute): Exception -> RecoverableException.
  10067. (onAbort): Exception -> RecoverableException.
  10068. * src/TorrentRequestInfo.cc
  10069. (execute): Exception -> RecoverableException.
  10070. * src/MetalinkRequestInfo.cc
  10071. (execute): Exception -> RecoverableException.
  10072. * src/MetaFileUtil.cc: RecoverableException.
  10073. * src/AbstractCommand.h
  10074. (onAbort): Exception -> RecoverableException.
  10075. * src/DlRetryEx.h: Exception -> RecoverableException.
  10076. * src/DlAbortEx.h: Exception -> RecoverableException.
  10077. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  10078. * src/Util.cc: Exception -> RecoverableException.
  10079. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  10080. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  10081. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  10082. To make ID static const int
  10083. * src/BtInterestedMessage.h
  10084. (ID_t): Removed.
  10085. (ID): New variable.
  10086. (getId): Made non-const.
  10087. * src/BtPieceMessage.h
  10088. (ID_t): Removed.
  10089. (ID): New variable.
  10090. (getId): Made non-const.
  10091. * src/BtChokeMessage.h
  10092. (ID_t): Removed.
  10093. (ID): New variable.
  10094. (getId): Made non-const.
  10095. * src/BtHaveAllMessage.h
  10096. (ID_t): Removed.
  10097. (ID): New variable.
  10098. (getId): Made non-const.
  10099. * src/BtKeepAliveMessage.h
  10100. (ID_t): Removed.
  10101. (ID): New variable.
  10102. (getId): Made non-const.
  10103. * src/BtHandshakeMessage.h
  10104. (ID): New variable.
  10105. (getId): Made non-const.
  10106. * src/BtSuggestPieceMessage.h
  10107. (ID_t): Removed.
  10108. (ID): New variable.
  10109. (getId): Made non-const.
  10110. * src/BtPortMessage.h
  10111. (ID_t): Removed.
  10112. (ID): New variable.
  10113. (getId): Made non-const.
  10114. * src/AbstractBtMessage.h
  10115. (id): Removed.
  10116. (AbstractBtMessage): Removed id.
  10117. (getId): Removed.
  10118. * src/BtHaveMessage.h
  10119. (ID_t): Removed.
  10120. (ID): New variable.
  10121. (getId): Made non-const.
  10122. * src/BtAllowedFastMessage.h
  10123. (ID_t): Removed.
  10124. (ID): New variable.
  10125. (getId): Made non-const.
  10126. * src/BtCancelMessage.h
  10127. (ID_t): Removed.
  10128. (ID): New variable.
  10129. (getId): Made non-const.
  10130. * src/BtNotInterestedMessage.h
  10131. (ID_t): Removed.
  10132. (ID): New variable.
  10133. (getId): Made non-const.
  10134. * src/BtChokeMessage.h
  10135. (ID_t): Removed.
  10136. (ID): New variable.
  10137. (getId): Made non-const.
  10138. * src/BtRejectMessage.h
  10139. (ID_t): Removed.
  10140. (ID): New variable.
  10141. (getId): Made non-const.
  10142. * src/BtBitfieldMessage.h
  10143. (ID_t): Removed.
  10144. (ID): New variable.
  10145. (getId): Made non-const.
  10146. * src/BtUnchokeMessage.h
  10147. (ID_t): Removed.
  10148. (ID): New variable.
  10149. (getId): Made non-const.
  10150. * src/BtRequestMessage.h
  10151. (ID_t): Removed.
  10152. (ID): New variable.
  10153. (getId): Made non-const.
  10154. * src/BtHaveMessage.h
  10155. (ID_t): Removed.
  10156. (ID): New variable.
  10157. (getId): Made non-const.
  10158. To add --force-truncate command-line option and a check whether
  10159. the file already exists:
  10160. * src/DirectDiskAdaptor.h
  10161. (getFilePath): Made virtual public.
  10162. * src/MultiDiskAdaptor.h
  10163. (File.h): New include.
  10164. (DiskWriterEntry::fileEntry): Made private.
  10165. (DiskWriterEntry::fileExists): New function.
  10166. (DiskWriterEntry::getFileEntry): New function.
  10167. (fileExists): New function.
  10168. (getFilePath): New function.
  10169. * src/TorrentRequestInfo.cc
  10170. (FatalException.h): New include.
  10171. (message.h): New include.
  10172. (RecoverableException.h): New include.
  10173. (execute): Added a check whether file is already exists or not.
  10174. * src/DiskAdaptor.h
  10175. (fileExists): New function.
  10176. (getFilePath): New function.
  10177. * src/main.cc
  10178. (showUsage): Added an explanation of --force-truncate command-line
  10179. option.
  10180. (main): Added --force-truncate command-line option.
  10181. * src/Exception.h
  10182. (setMsg): buf[256] -> buf[1024]
  10183. * src/CopyDiskWriter.h
  10184. (getFilePath): Made public virtual.
  10185. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  10186. (fileExists): New function.
  10187. * src/DownloadEngineFactory.cc
  10188. (newTorrentConsoleEngine): Don't open file here.
  10189. * src/message.h
  10190. (EX_FILE_ALREADY_EXISTS): New definition.
  10191. * src/prefs.h
  10192. (PREF_FOECE_TRUNCATE): New definition.
  10193. * src/HttpResponseCommand.cc
  10194. (handleDefaultEncoding): Added a check whether the file already exists.
  10195. * src/SegmentMan.h
  10196. (fileExists): New function.
  10197. (shouldCancelDownloadForSafety): New function.
  10198. * src/FtpNegotiateCommand.cc
  10199. (recvSize): Added a check whether the file already exists.
  10200. * src/AbstractSingleDiskAdaptor.cc
  10201. (File.h): New include.
  10202. (fileExists): New function.
  10203. * src/AbstractSingleDiskAdaptor.h
  10204. (getFilePath): Removed.
  10205. (fileExists): New function.
  10206. * src/SegmentMan.cc
  10207. (fileExists): New function.
  10208. (shouldCancelDownloadForSafety): New function.
  10209. To fix regression bug in torrent downloading:
  10210. * src/DefaultBtRequestFactory.cc
  10211. (doChokedAction): New function.
  10212. * src/DefaultBtRequestFactory.h
  10213. (doChokedAction): New function.
  10214. * src/DefaultBtMessageDispatcher.cc
  10215. (doChokedAction): Do not delete request if its target is in allowed
  10216. fast set.
  10217. * src/DefaultBtInteractive.cc
  10218. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  10219. (sendKeepAlive): Send keep alive message even if the outgoing message
  10220. queue is not empty.
  10221. (decideInterest): Simplified the code.
  10222. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  10223. it is already called when BtChokeMessage is received from a peer.
  10224. * src/BtRequestFactory.h
  10225. (doChokedAction): New function.
  10226. To clean up code:
  10227. * src/PeerInteractionCommand.h
  10228. (executeInternal): Added virtual keyword explicitly.
  10229. (prepareForRetry): Added virtual keyword explicitly.
  10230. (prepareForNextPeer): Added virtual keyword explicitly.
  10231. (onAbort): Added virtual keyword explicitly.
  10232. * src/RequestSlot.cc
  10233. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  10234. * src/BtPieceMessage.cc
  10235. (doReceivedAction): Added a debug log of piece's bitfield.
  10236. * src/Piece.h
  10237. (getBitfieldLength): New function.
  10238. * src/ByteArrayDiskWriter.cc
  10239. (clear): Added buf = 0 to avoid double free corruption.
  10240. * src/FileAllocator.cc
  10241. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  10242. Added cp.reset().
  10243. * src/BitfieldMan.h
  10244. (operator=): Rewritten.
  10245. * src/BitfieldMan.cc
  10246. (BitfieldMan): Initialized bitfield, useBitfield.
  10247. * src/PeerConnection.cc
  10248. (receiveMessage): Added a call to socket->readable() after getting
  10249. message length to avoid possible EOF.
  10250. * src/Util.cc
  10251. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  10252. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10253. To add an ability to pre-allocate file space:
  10254. * src/DirectDiskAdaptor.h: Rewritten.
  10255. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  10256. * src/MultiDiskAdaptor.h: Rewritten.
  10257. * src/DefaultPieceStorage.cc
  10258. (MultiDiskWriter.h): Removed include.
  10259. (PreAllocationDiskWriter.h): Removed include.
  10260. (FileAllocationMonitor.h): New include.
  10261. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  10262. (initStorage): Rewritten.
  10263. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10264. * src/FileAllocator.h: New class.
  10265. * src/FileAllocator.cc: New class.
  10266. * src/FileAllocationMonitor.h: New class.
  10267. * src/FileAllocationMonitor.cc: New class.
  10268. * src/ConsoleFileAllocationMonitor.h: New class.
  10269. * src/ConsoleFileAllocationMonitor.cc: New class.
  10270. * src/AbstractSingleDiskAdaptor.h: New class.
  10271. * src/AbstractSingleDiskAdaptor.cc: New class.
  10272. * src/DiskAdaptor.h
  10273. (Directory.h): Removed include.
  10274. (DiskWriter.h): Removed include.
  10275. (FileEntry.h): Removed include.
  10276. (diskWriter): Removed.
  10277. (DiskAdaptor): Removed diskWriter.
  10278. (openFile): Made pure virtual.
  10279. (closeFile): Made pure virtual.
  10280. (openExistingFile): Made pure virtual.
  10281. (initAndOpenFile): Made pure virtual.
  10282. (writeData): Made pure virtual.
  10283. (readData): Made pure virtual.
  10284. (sha1Sum): Made pure virtual.
  10285. (getStoreDir): Returns const reference of storeDir.
  10286. (DiskAdaptorHandle): New type definition.
  10287. * src/main.cc
  10288. (ConsoleFileAllocationMonitor.h): New include.
  10289. (showUsage): Added default value description of -s option.
  10290. Added the description of --file-allocation option.
  10291. (main): Set default value of --file-allocation option to 'none'.
  10292. Added --file-allocation command-line option.
  10293. Setup FileAllocationMonitorFactory.
  10294. * src/FtpInitiateConnectionCommand.cc
  10295. (executeInternal): Removed diskWriter related processing, which was
  10296. moved to FtpNegotiationCommand.cc.
  10297. * src/DirectDiskAdaptor.cc
  10298. (getFilePath): Made non-const.
  10299. * src/CopyDiskAdaptor.h
  10300. (DiskAdaptor.h): Removed include.
  10301. (DiskWriter.h): Removed include.
  10302. (AbstractSingleDiskAdaptor.h): New include.
  10303. (getFilePath): Made non-const. Added virtual keyword.
  10304. (CopyDiskAdaptor): Removed diskWriter.
  10305. (getTempFile): Returns const reference.
  10306. (CopyDiskAdaptorHandle): New type definition.
  10307. * src/ByteArrayDiskWriter.cc
  10308. (clear): Simplified.
  10309. (initAndOpenFile): Rewritten.
  10310. (openFile): Call initAndOpenFile()
  10311. * src/MultiDiskAdaptor.cc: Rewritten.
  10312. * src/DownloadEngineFactory.cc
  10313. (FileAllocator.h): New include.
  10314. (FileAllocationMonitor.h): New include.
  10315. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  10316. create DefaultDiskWriter with file allocator.
  10317. * src/DiskWriter.h
  10318. (initAndOpenFile): Added totalLength argument.
  10319. (openFile): Added totalLength argument.
  10320. * src/prefs.h
  10321. (PREF_FILE_ALLOCATION): New definition.
  10322. (V_PREALLOC): New definition.
  10323. (V_NONE): New definition.
  10324. * src/HttpResponseCommand.cc
  10325. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  10326. size.
  10327. * src/FtpNegotiateCommand.cc
  10328. (Util.h): New include.
  10329. (recvSize): Open file here.
  10330. * src/Util.h
  10331. (ullitos): New function.
  10332. * src/CopyDiskWriter.h
  10333. (getFilePath): Made non-const.
  10334. * src/DefaultDiskWriter.h
  10335. (Option.h): New include.
  10336. (totalLength): Removed.
  10337. (DefaultDiskWriter): Removed totalLength.
  10338. (initAndOpenFile): Added totalLength argument.
  10339. (DefaultDiskWriterHandle): New type definition.
  10340. (createNewDiskWriter): New function.
  10341. * src/Util.cc
  10342. (ullitos): New function.
  10343. * src/DefaultDiskWriter.cc
  10344. (message.h): New include.
  10345. (FileAllocator.h): New include.
  10346. (prefs.h): New include.
  10347. (Util.h): New include.
  10348. (DefaultDiskWriter): Removed totalLength.
  10349. (initAndOpenFile): Added file allocation.
  10350. (createNewDiskWriter): New function. Just for temporary solution.
  10351. It will be rewritten later.
  10352. * src/DiskAdaptor.cc
  10353. (DiskAdaptor): Removed diskWriter.
  10354. * src/AbstractDiskWriter.cc
  10355. (LogFactory.h): New include.
  10356. (AbstractDiskWriter): Added fileAllocator, logger.
  10357. (openFile): Added totalLength argument.
  10358. * src/AbstractDiskWriter.h
  10359. (FileAllocator.h): New include.
  10360. (Logger.h): New include.
  10361. (fileAllocator): New variable.
  10362. (logger): New variable.
  10363. (openFile): Added totalLength argument. Added virtual keyword
  10364. explicitly.
  10365. (openExistingFile): Added totalLength argument. Added virtual keyword
  10366. explicitly.
  10367. (closeFile): Added virtual keyword explicitly.
  10368. (sha1Sum): Added virtual keyword explicitly.
  10369. (writeData): Added virtual keyword explicitly.
  10370. (readData): Added virtual keyword explicitly.
  10371. (setFileAllocator): New function.
  10372. * src/DefaultPieceStorage.h
  10373. (FileAllocator.h): New include.
  10374. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10375. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10376. * src/FileProgressMonitor.h: New class.
  10377. To compile aria2 on PC-BSD:
  10378. * src/DefaultBtContext.cc
  10379. (libgen.h): New include.
  10380. To fix memory leak:
  10381. * src/Exception.h
  10382. (~Exception): Delete cause. Fixed memory leak.
  10383. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10384. Rewritten a portion of bittorrent implementation:
  10385. * src/BtMessageValidator.h: New class.
  10386. * src/BtBitfieldMessageValidator.h: New class.
  10387. * src/BtHandshakeMessageValidator.h: New class.
  10388. * src/BtRequestMessageValidator.h: New class.
  10389. * src/BtSuggestPieceMessageValidator.h: New class.
  10390. * src/BtAllowedFastMessageValidator.h: New class.
  10391. * src/BtRejectMessageValidator.h: New class.
  10392. * src/BtCancelMessageValidator.h: New class.
  10393. * src/BtPieceMessageValidator.h: New class.
  10394. * src/BtHaveMessageValidator.h: New class.
  10395. * src/BtEventListener.h: New class.
  10396. * src/AbstractBtEventListener.h: New class.
  10397. * src/BtEvent.h: New class.
  10398. * src/BtChokingEvent.h: New class.
  10399. * src/BtChokedEvent.h: New class.
  10400. * src/BtCancelSendingPieceEvent.h: New class.
  10401. * src/BtAbortOutstandingRequestEvent.h: New class.
  10402. * src/Randomizer.h: New class.
  10403. * src/SimpleRandomizer.h: New class.
  10404. * src/BtMessage.h: New class.
  10405. * src/AbstractBtMessage.h: New class.
  10406. * src/SimpleBtMessage.h: New class.
  10407. * src/BtHaveMessage.h: New class.
  10408. * src/BtInterestedMessage.h: New class.
  10409. * src/BtAllowedFastMessage.h: New class.
  10410. * src/BtUnchokeMessage.h: New class.
  10411. * src/BtCancelMessage.h: New class.
  10412. * src/BtNotInterestedMessage.h: New class.
  10413. * src/BtChokeMessage.h: New class.
  10414. * src/BtHaveNoneMessage.h: New class.
  10415. * src/BtHandshakeMessage.h: New class.
  10416. * src/BtSuggestPieceMessage.h: New class.
  10417. * src/BtHaveMessage.h: New class.
  10418. * src/BtPieceMessage.h: New class.
  10419. * src/BtHaveAllMessage.h: New class.
  10420. * src/BtKeepAliveMessage.h: New class.
  10421. * src/BtPortMessage.h: New class.
  10422. * src/BtRejectMessage.h: New class.
  10423. * src/BtBitfieldMessage.h: New class.
  10424. * src/BtRequestMessage.h: New class.
  10425. * src/DefaultBtRequestFactory.h: New class.
  10426. * src/DefaultBtMessageReceiver.h: New class.
  10427. * src/BtInteractive.h: New class.
  10428. * src/BtMessageDispatcher.h: New class.
  10429. * src/DefaultBtMessageDispatcher.h: New class.
  10430. * src/DefaultBtInteractive.h: New class.
  10431. * src/BitfieldManFactory.h: New class.
  10432. * src/HandleRegistry.h: New class.
  10433. * src/BtMessageFactory.h: New class.
  10434. * src/BtMessageReceiver.h: New class.
  10435. * src/DefaultBtMessageFactory.h: New class.
  10436. * src/PeerObject.h: New class.
  10437. * src/BtRequestFactory.h: New class.
  10438. * src/SuggestPieceMessage.h: Removed.
  10439. * src/PortMessage.h: Removed.
  10440. * src/SuggestPieceMessage.h: Removed.
  10441. * src/KeepAliveMessage.h: Removed.
  10442. * src/HandshakeMessage.h: Removed.
  10443. * src/PeerInteraction.h: Removed.
  10444. * src/UnchokeMessage.h: Removed.
  10445. * src/PieceMessage.h: Removed.
  10446. * src/RequestMessage.h: Removed.
  10447. * src/InterestedMessage.h: Removed.
  10448. * src/HaveMessage.h: Removed.
  10449. * src/CancelMessage.h: Removed.
  10450. * src/RejectMessage.h: Removed.
  10451. * src/AllowedFastMessage.h: Removed.
  10452. * src/HaveNoneMessage.h: Removed.
  10453. * src/SimplePeerMessage.h: Removed.
  10454. * src/HaveAllMessage.h: Removed.
  10455. * src/BitfieldMessage.h: Removed.
  10456. * src/PeerMessageFactory.h: Removed.
  10457. * src/NotInterestedMessage.h: Removed.
  10458. * src/ChokeMessage.h: Removed.
  10459. * src/PeerMessage.h: Removed.
  10460. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10461. To know root cause of exception:
  10462. * src/Exception.h
  10463. (cause): New variable.
  10464. (Exception): Added a parameter.
  10465. (getMsg): Return const reference to msg.
  10466. (getCause): New function.
  10467. * src/DlRetryEx.h
  10468. (DlRetryEx): Added a parameter 'cause'.
  10469. Added an overloaded constructor.
  10470. (DlAbortEx): Added a parameter 'cause'.
  10471. Added an overloaded constructor.
  10472. * src/SimpleLogger.cc
  10473. (writeLog): Log nested exception messages recursively.
  10474. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10475. * src/DefaultBtProgressInfoFile.cc
  10476. (load): Fixed memory leak when the infohash doesn't match.
  10477. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10478. * src/DefaultPeerStorage.cc
  10479. (calculateStat): Simplified the code by combining 2 loops into 1.
  10480. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10481. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  10482. for BitTorrent download:
  10483. * src/PeerAbstractCommand.cc
  10484. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  10485. * src/main.cc:
  10486. (timeoutSpecified): Removed.
  10487. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  10488. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  10489. * src/TorrentRequestInfo.cc
  10490. (timeoutSpecified): Removed.
  10491. (torrentHandler): Removed timeoutSpecified and the adjustment of
  10492. timeout value.
  10493. * src/prefs.h
  10494. (PREF_BT_TIMEOUT): New definition.
  10495. Delete unused variables:
  10496. * src/TorrentRequestInfo.cc
  10497. (requestInfo): Removed.
  10498. Move setSignalHander to Util::setGlobalSignalHandler:
  10499. * src/TorrentRequestInfo.cc:
  10500. setSignalHander -> Util::setGlobalSignalHandler
  10501. * src/main.cc
  10502. (setSignalHander): Removed.
  10503. (main): setSignalHander -> Util::setGlobalSignalHandler
  10504. * src/Util.h
  10505. (setGlobalSignalHandler): New function.
  10506. * src/Util.cc
  10507. (setGlobalSignalHandler): New function.
  10508. * src/UrlRequestInfo.cc:
  10509. setSignalHander -> Util::setGlobalSignalHandler
  10510. Reset peer status in order to exit gracefully:
  10511. * src/PeerAbstractCommand.cc
  10512. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  10513. To fix the bug that causes the number of bytes uploaded is not saved
  10514. to .aria2 file:
  10515. * src/DefaultPeerStorage.h
  10516. (removedPeerSessionDownloadLength): New variable.
  10517. (removedPeerSessionUploadLength): New variable.
  10518. * src/DefaultPeerStorage.cc
  10519. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  10520. removedPeerSessionUploadLength(0).
  10521. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  10522. through all peers, and then add removedPeerSessionDownloadLength(
  10523. removedPeerSessionUploadLength) to it.
  10524. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  10525. (to) the peer to removedPeerSessionDownloadLength
  10526. (removedPeerSessionUploadLength).
  10527. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10528. To add Metalink location option:
  10529. * src/MetalinkRequestInfo.cc
  10530. (execute): Call MetalinkEntry::setLocationPreference()
  10531. * src/main.cc
  10532. (showUsage): Added the help message for --metalink-location option.
  10533. (main): Added --metalink-location option.
  10534. * src/prefs.h
  10535. (PREF_METALINK_LOCATION): New definition.
  10536. * src/MetalinkEntry.cc
  10537. (AddLocationPreference): New function object.
  10538. (setLocationPreference): New function.
  10539. * src/Xml2MetalinkProcessor.cc
  10540. (getResource): Set location attribute to MetalinkResource
  10541. To show URLs to download
  10542. * src/UrlRequestInfo.h
  10543. (printUrls): New function.
  10544. To add multiple <file> Metalink support:
  10545. * src/MetalinkEntry.h
  10546. (MetalinkResources): Removed.
  10547. (setLocationPreference): New function.
  10548. (MetalinkEntryHandle): New type definition.
  10549. (MetalinkEntries): New type definition.
  10550. * src/Xml2MetalinkProcessor.h
  10551. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10552. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10553. (parseFile): Metalinker* -> MetalinkerHandle
  10554. * src/UrlRequestInfo.h
  10555. (execute): RequestInfo* -> RequestInfos
  10556. * src/MetalinkRequestInfo.cc
  10557. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  10558. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  10559. (execute): RequestInfo* -> RequestInfos
  10560. Added multiple <file> support. Print filename when it is queued.
  10561. * src/MetalinkRequestInfo.h
  10562. (execute): RequestInfo* -> RequestInfos
  10563. (getDownloadEngine): Removed.
  10564. * src/RequestInfo.h
  10565. (RequestInfoHandle): New type definition.
  10566. (RequestInfos): New type definition.
  10567. (execute): RequestInfo* -> RequestInfos
  10568. (getDownloadEngine): Removed.
  10569. * src/MetalinkResource.h
  10570. (MetalinkResourceHandle): New type definition.
  10571. (MetalinkResources): New type definition.
  10572. * src/MetalinkEntry.cc
  10573. (~MetalinkEntry): Removed the deletion of the elements of resources,
  10574. because the element is now of type MetalinkResourceHandle.
  10575. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  10576. (Supported): MetalinkResource* -> MetalinkResourceHandle
  10577. (dropUnsupportedResource): Removed the deletion of the elements of
  10578. resources because the element is now of type MetalinkResourceHandle.
  10579. * src/Xml2MetalinkProcessor.cc
  10580. (parseFile): Metalinker* -> MetalinkerHandle
  10581. MetalinkEntry* -> MetalinkEntryHandle
  10582. Removed try-catch block.
  10583. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10584. MetalinkResource* -> MetalinkResourceHandle
  10585. Removed try-catch block.
  10586. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10587. Free result by using xmlXPathFreeObject()
  10588. * src/Metalinker.cc
  10589. (~Metalinker): Removed the deletion of entries.
  10590. MetalinkEntry* -> MetalinkEntryHandle
  10591. (queryEntry): Add multiple <file> Metalink support.
  10592. * src/Metalinker.h
  10593. (MetalinkEntries): Removed.
  10594. (queryEntry): MetalinkEntry* -> MetalinkEntries
  10595. * src/MetalinkProcessor.h
  10596. (parseFile): Metalinker* -> MetalinkerHandle
  10597. Bug fixes:
  10598. * src/PeerChokeCommand.cc
  10599. (execute): cat01->cat02
  10600. * src/DefaultPieceStorage.cc
  10601. (DefaultPieceStorage): Added diskAdaptor(0)
  10602. * src/TrackerWatcherComand.cc:
  10603. (execute): Use btAnnounce->noMoreAnnounce()
  10604. to determin whether the function returns true or not.
  10605. * src/TrackerUpdateCommand.cc:
  10606. (execute): Use btAnnounce->noMoreAnnounce()
  10607. to determin whether the function returns true or not.
  10608. * src/FtpConnection.cc
  10609. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  10610. This is the fix of the busy loop bug.
  10611. * src/DownloadCommand.cc
  10612. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  10613. cached PeerStat.
  10614. The value of "name" entry in torrent file is now set by
  10615. *DiskAdaptor::setTopDir(...) methods.
  10616. * src/MultiDiskAdaptor.h
  10617. (topDir): New variable.
  10618. (setTopDir): New function.
  10619. (getTopDir): New function.
  10620. * src/MultiDiskAdaptor.cc
  10621. (getFilePath): Concat storDir, "/" and topDir.
  10622. (mkdir): Use getFilePath() to get the directory path for output.
  10623. * src/DefaultPieceStorage.cc
  10624. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  10625. CopyDiskAdaptor.
  10626. * src/CopyDiskAdaptor.h
  10627. (topDir): New variable.
  10628. (setTopDir): New function.
  10629. (getTopDir): New function.
  10630. * src/CopyDiskAdaptor.cc
  10631. (fixFilename): Updated.
  10632. Misc
  10633. * src/UrlRequestInfo.h
  10634. (e): Removed.
  10635. (UrlRequestInfo): Removed e.
  10636. (getDownloadEngine): Removed.
  10637. * src/UrlRequestInfo.cc
  10638. (handler): Rewritten.
  10639. (printUrls): New function.
  10640. (execute): Call printUrls().
  10641. * src/HandshakeMessage.cc
  10642. (check): peerinteraction->getBtContext() -> btContext
  10643. * src/PeerInteraction.h
  10644. (getBtContext): Removed.
  10645. * src/TorrentRequestInfo.h
  10646. (execute): RequestInfo* -> RequestInfos
  10647. (getDownloadEngine): Removed.
  10648. * src/TorrentRequestInfo.cc
  10649. (haltRequested): Removed.
  10650. (btHaltRequested): New variable.
  10651. (torrentHandler): haltRequested -> btHaltRequested
  10652. (execute): RequestInfo* -> RequestInfos
  10653. * src/TorrentConsoleDownloadEngine.cc
  10654. (afterEachIteration): haltRequested -> btHaltRequested.
  10655. * src/ConsoleDownloadEngine.h
  10656. (initStatistics): Added virtual.
  10657. (calculateStatistics): Added virtual.
  10658. (onEndOfRun): Added virtual.
  10659. (afterEachIteration): Added virtual.
  10660. * src/ConsoleDownloadEngine.cc
  10661. (haltRequested): New variable.
  10662. (afterEachIteration): New function.
  10663. * src/main.cc
  10664. (requestInfo): Removed.
  10665. * src/SegmentMan.cc
  10666. (findSlowerSegmentEntry): Refactored.
  10667. * Release 0.9.0
  10668. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10669. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  10670. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  10671. * src/TorrentMan.h: Removed.
  10672. * src/TorrentMan.cc: Removed.
  10673. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  10674. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  10675. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  10676. * src/PeerAbstractCommand.cc: Use btRuntime.
  10677. * src/BtContextAwareCommand.h: New class.
  10678. * src/FileEntry.h: Added accessor methods for following variables.
  10679. (path): Made private.
  10680. (length): Made private.
  10681. (offset): Made private.
  10682. (extracted): Made private.
  10683. (requested): Made private.
  10684. (FileEntries): New definition.
  10685. (FileEntryHandle): New definition.
  10686. * src/FileEntry.cc: New file.
  10687. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  10688. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  10689. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  10690. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  10691. * src/PieceStorage.h: New file.
  10692. * src/PeerInteractionCommand.h: Use btContext.
  10693. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  10694. btRuntime.
  10695. * src/DefaultBtProgressInfoFile.h: New file.
  10696. * src/DefaultBtProgressInfoFile.cc: New file.
  10697. * src/File.cc
  10698. (Util.h): New include.
  10699. (mkdirs): New function.
  10700. * src/MultiDiskAdaptor.h
  10701. (mkdir): New function.
  10702. * src/PeerListProcessor.h
  10703. (Peers): Removed.
  10704. * src/PeerInteraction.h
  10705. (torrentMan): Removed.
  10706. (btContext): New variable.
  10707. (peerStorage): New variable.
  10708. (pieceStorage): New variable.
  10709. (btAnnounce): New variable.
  10710. (getTorrentMan): Removed.
  10711. (getBtContext): New function.
  10712. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  10713. btAnnounce.
  10714. * src/HandshakeMessage.h
  10715. (TorrentMan.h): Removed.
  10716. * src/HandshakeMessage.cc: Use btContext.
  10717. * src/DefaultBtAnnounce.cc: New file.
  10718. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  10719. * src/DefaultPieceStorage.cc: New file.
  10720. * src/DefaultBtContext.h: New file.
  10721. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  10722. Use the accessor methods of FileEntry.
  10723. * src/CookieBox.cc: Updated to use Util::slice().
  10724. * src/PieceMessage.cc: Use btContext, pieceStorage.
  10725. * src/common.h (SharedHandle.h): New include.
  10726. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  10727. pieceStorage.
  10728. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  10729. * src/DiskAdaptor.h
  10730. (topDir): Removed.
  10731. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  10732. (setTopDir): Removed.
  10733. (getTopDir): Removed.
  10734. * src/BtContext.h: New file.
  10735. * src/DefaultPeerStorage.h: New file.
  10736. * src/PieceMessage.h (TorrentMan.h): Removed.
  10737. * src/RequestMessage.h (TorrentMan.h): Removed.
  10738. * src/TorrentDownloadEngine.h
  10739. (uploadLength): New variable.
  10740. (btContext): New variable.
  10741. (btRuntime): New variable.
  10742. (pieceStorage): New variable.
  10743. (peerStorage): New variable.
  10744. (btAnnounce): New variable.
  10745. (btProgressInfoFile): New variable.
  10746. (torrentMan): Removed.
  10747. (setBtContext): New function.
  10748. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  10749. peerStorage, btAnnounce, btProgressInfoFile.
  10750. * src/Piece.h
  10751. (toString): New function.
  10752. (Pieces): New type definition.
  10753. * src/Peer.h
  10754. (active): New variable.
  10755. (Peer): Added active.
  10756. (activate): Set active to true.
  10757. (deactivate): Set active to false.
  10758. (isActive): New function.
  10759. (Peers): New type definition.
  10760. * src/DirectDiskAdaptor.cc
  10761. (getFilePath): Use the accessor methods of FileEntry.
  10762. * src/TorrentConsoleDownloadEngine.h
  10763. (afterEachIteration): New function.
  10764. * src/TorrentConsoleDownloadEngine.cc
  10765. (haltRequested): New variable.
  10766. (sendStatistics): Use pieceStorage, btRuntime.
  10767. (afterEachIteration): New function.
  10768. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  10769. * src/Directry.h
  10770. (Directory): New function.
  10771. (DirectoryHandle): New type definition.
  10772. * src/BtProgressInfoFile.h: New file.
  10773. * src/RequestMessage.cc: Use pieceStorage.
  10774. * src/BtRuntime.h: New file.
  10775. * src/DefaultBtContext.cc: New file.
  10776. * src/BitfieldMan.h
  10777. (getCompletedLength): New function(private).
  10778. (getCompletedLength): New function.
  10779. (getFilteredCompletedLength): New function.
  10780. * src/BitfieldMan.h
  10781. (getCompletedLength): New function(private).
  10782. (getCompletedLength): New function.
  10783. (getFilteredCompletedLength): New function.
  10784. * src/MultiDiskAdaptor.cc
  10785. (mkdir): New function.
  10786. (openFile): Call mkdir().
  10787. (initAndOpenFile): Call mkdir().
  10788. * src/CancelMessage.h
  10789. (TorrentMan.h): Removed.
  10790. * src/RejectMessage.h
  10791. (TorrentMan.h): Removed.
  10792. * src/DownloadEngineFactory.cc
  10793. (DefaultPieceStorage.h): New include.
  10794. (DefaultPeerStorage.h): New include.
  10795. (DefaultBtAnnounce.h): New include.
  10796. (DefaultBtProgressInfoFile.h): New include.
  10797. (newTorrentConsoleEngine): Rewritten.
  10798. * src/ShareRatioSeedCriteria.h
  10799. (torrentMan): Removed.
  10800. (btContext): New variable.
  10801. (peerStorage): New variable.
  10802. (btRuntime): New variable.
  10803. (evaluate): Use btContext, btRuntime, peerStorage.
  10804. * src/AnnounceTier.h: New file.
  10805. * src/BtAnnounce.h: New file.
  10806. * src/BtRegistry.h: New file.
  10807. * src/PeerInitiateConnectionCommand.h: Added btContext.
  10808. * src/PeerConnection.h (TorrentMan.h): Removed.
  10809. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  10810. * src/Util.h
  10811. (slice): Added an argument.
  10812. * src/Util.cc
  10813. (slice): Added an argument to control whether trim is made or not.
  10814. * src/PeerStorage.h: New file.
  10815. * src/BtRegistry.cc: New file.
  10816. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  10817. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  10818. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  10819. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  10820. * src/TorrentRequestInfo.h
  10821. (e): Removed.
  10822. (showFileEntry): Added an argument.
  10823. (getDownloadEngine): Return 0.
  10824. * src/DefaultBtAnnounce.h: New file.
  10825. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  10826. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  10827. * src/PeerMessageFactory.h
  10828. (btContext): New variable.
  10829. (pieceStorage): New variable.
  10830. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  10831. btAnnounce.
  10832. * src/DiskAdaptor.cc
  10833. (DiskAdaptor): Removed topDir.
  10834. (~DiskAdaptor): Removed topDir.
  10835. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  10836. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  10837. * src/File.h (mkdirs): New function.
  10838. * src/DefaultPeerStorage): New file.
  10839. * src/DownloadEngineFactory.h
  10840. (newTorrentConsoleEngine): Use btContext.
  10841. * src/BtContextAwareCommand.cc: New file.
  10842. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  10843. * src/PeerMessage.h
  10844. (btContext): New variable.
  10845. (peerStorage): New variable.
  10846. (pieceStorage): New variable.
  10847. (setBtContext): New function.
  10848. * src/Directry.cc
  10849. (Directory): New function.
  10850. (createDir): Do nothing if name.size() == 0.
  10851. * src/AnnounceList.h
  10852. (AnnounceTier): Removed.
  10853. (AnnounceTiers): Removed.
  10854. * src/DefaultPieceStorage.h: New file.
  10855. * src/Piece.cc (toString): New function.
  10856. To fix typo:
  10857. * src/main.cc (showVersion): Fixed typo.
  10858. To fix compile warning:
  10859. * src/DelegatingPeerListProcessor.cc
  10860. (canHandle): Added "return false".
  10861. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10862. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  10863. make the process of announce request testable.
  10864. * src/TrackerWatcherCommand.h
  10865. (TimeA2.h): Removed.
  10866. (interval): Removed.
  10867. (checkPoint): Removed.
  10868. (createRequestCommand): Added an argument 'url'.
  10869. (TrackerWatherCommand): Removed interval.
  10870. (createCommand): New function.
  10871. * src/DownloadEngineFactory.cc
  10872. (newTorrentConsoleEngine): Updated according to the changes in
  10873. TrackerWatherCommand.
  10874. * src/TorrentMan.cc
  10875. (DelegatingPeerListProcessor.h): New includes.
  10876. (TorrentMan): Added the initialization of announceInterval.
  10877. (isStoppedAnnounceReady): New function.
  10878. (isCompletedAnnounceReady): New function.
  10879. (isDefaultAnnounceReady): New function.
  10880. (isAnnounceReady): New function.
  10881. (getAnnounceUrl): New function.
  10882. (announceStart): New function.
  10883. (announceFailure): New function.
  10884. (announceSuccess): New function.
  10885. (isAllAnnounceFailed): New function.
  10886. (resetAnnounce): New function.
  10887. (processAnnounceResponse): New function.
  10888. (needMorePeerConnection): New function.
  10889. (noMoreAnnounce): New function.
  10890. * src/TrackerUpdateCommand.h
  10891. (getTrackerResponse): int->size_t
  10892. * src/TorrentMan.h
  10893. (isStoppedAnnounceReady): New function.
  10894. (isCompletedAnnounceReady): New function.
  10895. (isDefaultAnnounceReady): New function.
  10896. (announceInterval): New variable.
  10897. (isAnnounceReady): New function.
  10898. (getAnnounceUrl): New function.
  10899. (announceStart): New function.
  10900. (announceFailure): New function.
  10901. (announceSuccess): New function.
  10902. (isAllAnnounceFailed): New function.
  10903. (resetAnnounce): New function.
  10904. (processAnnounceResponse): New function.
  10905. (needMorePeerConnection): New function.
  10906. (noMoreAnnounce): New function.
  10907. * src/TrackerWatcherCommand.cc
  10908. (TrackerWatherCommand): Removed interval and checkPoint.
  10909. (execute): Rewritten.
  10910. (createCommand): New function.
  10911. (createRequestCommand): Rewritten.
  10912. * src/TrackerUpdateCommand.cc
  10913. (MetaFileUtil.h): Removed.
  10914. (DelegatingPeerListProcessor.h): Removed.
  10915. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  10916. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10917. Request -> RequestHandle:
  10918. * src/HttpResponseCommand.h: Request->RequestHandle
  10919. * src/AbstractCommand.cc: Request->RequestHandle
  10920. * src/HttpDownloadCommand.cc: Request->RequestHandle
  10921. * src/HttpRequestCommand.cc: Request->RequestHandle
  10922. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  10923. * src/AbstractCommand.h: Request->RequestHandle
  10924. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  10925. * src/HttpResponseCommand.cc: Request->RequestHandle
  10926. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  10927. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  10928. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  10929. * src/HttpConnection.h: Request->RequestHandle
  10930. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  10931. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  10932. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10933. * src/DownloadCommand.h: Request->RequestHandle
  10934. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  10935. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  10936. * src/HttpRequestCommand.h: Request->RequestHandle
  10937. * src/FtpNegotiateCommand.h: Request->RequestHandle
  10938. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10939. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  10940. * src/HttpDownloadCommand.h: Request->RequestHandle
  10941. * src/FtpConnection.cc: Request->RequestHandle
  10942. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  10943. * src/UrlRequestInfo.cc: Request->RequestHandle
  10944. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  10945. * src/HttpConnection.h: Request->RequestHandle
  10946. * src/DownloadCommand.cc: Request->RequestHandle
  10947. * src/FtpConnection.h: Request->RequestHandle
  10948. * src/FtpDowndloadCommand.h: Request->RequestHandle
  10949. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  10950. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  10951. * src/Request.h
  10952. (SharedHandle.h): New include.
  10953. (RequestHandle): New type definition.
  10954. (Requests): Redefined.
  10955. To add MULTITRACKER support:
  10956. * src/TrackerWatcherCommand.h
  10957. (createRequestCommand): New function.
  10958. * src/DownloadEngineFactory.cc
  10959. (newTorrentConsoleEngine): Removed req.
  10960. * src/prefs.h
  10961. (PREF_TRACKER_MAX_TRIES): New definition.
  10962. * src/TorrentMan.cc
  10963. (TorrentMan): Removed req. Added trackerNumTry.
  10964. (~TorrentMan): Removed req.
  10965. (setupInternal1): Added announceList.
  10966. * src/TorrentRequestInfo.cc
  10967. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  10968. announces is now specified by PREF_TRACKER_MAX_TRIES.
  10969. * src/main.cc
  10970. (main): Added PREF_TRACKER_MAX_TRIES.
  10971. * src/TorrentMan.h
  10972. (Request.h): Removed.
  10973. (AnnounceList.h): New include.
  10974. (trackerNumTry): New variable.
  10975. (req): Removed.
  10976. (announceList): New variable.
  10977. * src/TrackerWatcherCommand.cc
  10978. (execute): Rewritten.
  10979. (createRequestCommand): New function.
  10980. * src/TrackerUpdateCommand.cc
  10981. (execute): Updated with the use of AnnounceList.
  10982. * src/AnnounceList.cc: New class.
  10983. * src/AnnounceList.h: New class.
  10984. To fix typo:
  10985. * src/prefs.h
  10986. (PREF_MAX_TRIES): max_try->max_tries
  10987. To not to decode "+" as space in URL decode:
  10988. * src/Util.cc
  10989. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  10990. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10991. To add timeout to async name resolution:
  10992. * src/AbstractCommand.h
  10993. (nameResolveFinished): New function. This is not elegant way. It needs
  10994. to be more refined.
  10995. (nameResolverCheck): New variable.
  10996. * src/AbstractCommand.cc
  10997. (AbstractCommand): Added nameResolverCheck.
  10998. (execute): Added the check whether the name resolution has finished.
  10999. (setNameResolverCheck): Set nameResolverCheck to true.
  11000. (disableNameResolverCheck): Set nameResolverCheck to false.
  11001. (nameResolverFinished): New function.
  11002. * src/FtpInitiateConnectionCommand.h
  11003. (nameResolverFinished): New function.
  11004. * src/FtpInitiateConnectionCommand.cc
  11005. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  11006. * src/HttpInitiateConnectionCommand.h
  11007. (nameResolverFinished): New function.
  11008. * src/HttpInitiateConnectionCommand.cc
  11009. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  11010. * src/prefs.h
  11011. (PREF_DNS_TIMEOUT): New definition.
  11012. * src/main.cc
  11013. (main): Added PREF_DNS_TIMEOUT.
  11014. To add the support for a non-compact response from a tracker:
  11015. * src/PeerListProcessor.h: New class.
  11016. * src/DefaultPeerListProcessor.h: New class.
  11017. * src/DefaultPeerListProcessor.cc: New class.
  11018. * src/CompactPeerListProcessor.h: New class.
  11019. * src/CompactPeerListProcessor.cc: New class.
  11020. * src/DelegatingPeerListProcessor.h: New class.
  11021. * src/DelegatingPeerListProcessor.cc: New class.
  11022. * src/TorrentMan.cc
  11023. (addPeer): New function(overload).
  11024. (addPeer): Delete unused peers only when new peer is added.
  11025. * src/TorrentMan.h
  11026. (PeerListProcessor.h): Included.
  11027. (Peers): Removed.
  11028. (addPeer): New function(overload).
  11029. * src/TrackerUpdateCommand.cc
  11030. (netinet/in.h): Removed.
  11031. (DelegatingPeerListProcessor.h): Included.
  11032. (execute): Updated to use DelegatingPeerListProcessor.
  11033. To fix the memory leak in TorrentMan::peers:
  11034. * src/PeerAbstractCommand.cc
  11035. (onAbort): Added peer->resetStatus().
  11036. * src/Peer.h
  11037. (resetStatus): Made public.
  11038. To improve the precision of the speed calculation:
  11039. * src/SpeedCalc.h
  11040. (nextInterval): New variable.
  11041. * src/SpeedCalc.cc
  11042. (reset): Added nextInterval.
  11043. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  11044. (changeSw): Set nextInterval to 15 seconds relative to the current
  11045. instant time.
  11046. * src/main.cc
  11047. (showVersion): Updated.
  11048. (showUsage): Updated.
  11049. * Release 0.8.1
  11050. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11051. * src/main.cc
  11052. (showUsage): Commented out --min-segment-size option.
  11053. (main): Commented out --min-segment-size option.
  11054. * Release 0.8.0
  11055. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11056. * src/*.{h,cc}:
  11057. Added an exception to the license which allows linking with OpenSSL.
  11058. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11059. * src/AbstractCommand.cc
  11060. (execute): Check whether the download has finished before checking
  11061. socket status.
  11062. Return true if peerStat->getStatus() == REQUEST_IDLE.
  11063. Do not exit even if no segment is available.
  11064. * src/prefs.h
  11065. (PREF_STARTUP_IDLE_TIME): New definition.
  11066. * src/PeerInteractionCommand.cc
  11067. (executeInternal): Removed max speed limit. Because it performs bad.
  11068. (receiveMessages): Added max speed limit. This was better than above,
  11069. but still a little bit to be desired. Sometimes the download speed
  11070. became much faster than I specified.
  11071. * src/SpeedCalc.h
  11072. (start): New variable.
  11073. (accumulatedLength): New variable.
  11074. (getAvgSpeed): New function.
  11075. * src/SpeedCalc.cc
  11076. (reset): Added start, accumulatedLength.
  11077. (update): Added calculation of an average speed.
  11078. (getAvgSpeed): New function.
  11079. * src/DownloadCommand.h
  11080. (sw): Removed.
  11081. * src/main.cc
  11082. (main): Added PREF_STARTUP_IDLE_TIME.
  11083. * src/PeerStat.h
  11084. (STATUS): Added REQUEST_IDLE.
  11085. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  11086. (getAvgDownloadSpeed): New function
  11087. (requestIdle): New function.
  11088. * src/SegmentMan.h
  11089. (SegmentEntryHandle): New type definition.
  11090. (SegmentEntries): Now holds SegmentEntryHandle.
  11091. (findSlowerSegmentEntry): New funtion.
  11092. * src/SegmentMan.cc
  11093. (save): Updated according to the changes in SegmentEntries.
  11094. (read): Updated according to the changes in SegmentEntries.
  11095. (FindSegmentEntryByIndex): Updated according to the changes in
  11096. SegmentEntries.
  11097. (FindSegmentEntryByCuid): Updated according to the changes in
  11098. SegmentEntries.
  11099. (checkoutSegment): Updated according to the changes in SegmentEntries.
  11100. (onNullBitfield): Updated according to the changes in SegmentEntries.
  11101. Renamed uitr as itr.
  11102. (findSlowerSegmentEntry): New function.
  11103. (getSegment): Updated according to the changes in SegmentEntries.
  11104. Added the feature that cancels the segment with slow server and fast
  11105. one takes it over.
  11106. (cancelSegment): Updated according to the changes in SegmentEntries.
  11107. (getDownloadLength): Updated according to the changes in
  11108. SegmentEntries.
  11109. (init): Assigned 0 to bitfield after deleting it.
  11110. * src/DownloadCommand.cc
  11111. (STARTUP_IDLE_TIME): Removed.
  11112. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  11113. * src/PeerChokeCommand.cc
  11114. (optUnchokingPeer): Updated according to the changes in Peer.
  11115. (ResetDelta): Removed.
  11116. (UploadFaster): Updated according to the changes in Peer.
  11117. (DownloadFaster): Updated according to the changes in Peer.
  11118. (execute): I clarify the meaning of "upload" and "download" here.
  11119. "upload" means the transfer from localhost to remote host.
  11120. "download" means the transfer from remote host to localhost.
  11121. Based on this rule, I swapped orderByUploadRate and
  11122. orderByDownloadRate.
  11123. * src/PeerInteractionCommand.cc
  11124. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  11125. (executeInternal): Removed the argument of
  11126. peerInteraction->sendMessages().
  11127. (receiveMessages): Rewritten download speed limit.
  11128. (sendKeepAlive): Removed peerInteraction->sendMessages().
  11129. * src/HttpResponseCommand.cc
  11130. (handleDefaultEncoding): If file size is unknown in torrent request,
  11131. do not call segmentMan->initBitfield() here.
  11132. Disabled persistent connection feature in torrent request.
  11133. * src/UrlRequestInfo.h
  11134. (UrlRequestInfo): Removed const qualifier from option.
  11135. * src/TorrentMan.h
  11136. (TransferStat): New class.
  11137. (deltaDownloadLength): Removed.
  11138. (deltaUploadLength): Removed.
  11139. (addDeltaDownloadLength): Removed.
  11140. (getDeltaDownloadLength): Removed.
  11141. (resetDeltaDownloadLength): Removed.
  11142. (addDeltaUploadLength): Removed.
  11143. (getDeltaUploadLength): Removed.
  11144. (resetDeltaUploadLength): Removed.
  11145. (addActivePeer): Added peer->activate().
  11146. (deleteActivePeer): Added peer->deactivate().
  11147. (calculateStat): New function.
  11148. * src/TorrentMan.cc
  11149. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  11150. (calculateStat): New function.
  11151. * src/PeerInteraction.h
  11152. (uploadLimit): Removed.
  11153. (option): New variable.
  11154. (setUploadLimit): Removed.
  11155. (getUploadSpeed): Removed.
  11156. (sendMessages): Removed the argument "currentUploadSpeed".
  11157. * src/PeerInteraction.cc
  11158. (prefs.h): Included.
  11159. (PeerInteraction): Removed uploadLimit. Added option.
  11160. (sendMessages): Rewritten upload speed limit.
  11161. (sendHandshake): Removed the argument from sendMessages().
  11162. (sendBitfield): Removed the argument from sendMessages().
  11163. * src/PeerAbstractCommand.cc
  11164. (execute): Commented out the portion of upload limit.
  11165. (onAbort): Removed peer->resetStatus().
  11166. * src/TorrentRequestInfo.cc
  11167. (timeoutSpecified): Declared extern.
  11168. (execute): Set timeout to 180 if timeout is not specified by.
  11169. command-line.
  11170. * src/PieceMessage.cc
  11171. (receivedAction): Added peer->updateDownloadLength().
  11172. Removed peer->addPeerUpload().
  11173. Removed torrentMan->addDeltaDownloadLength().
  11174. (send): Added peer->updateUploadLength().
  11175. Removed peer->addPeerDownload().
  11176. Removed torrentMan->addDeltaUploadLength().
  11177. * src/main.cc
  11178. (timeoutSpecified): New variable.
  11179. (main): Set timeoutSpecified to false.
  11180. If the command-line option "--upload-limit" is specified, then
  11181. timeoutSpecified is set to true. This option will remain in the next
  11182. release, but be deprecated in the future release.
  11183. * src/TorrentRequestInfo.h
  11184. (TorrentRequestInfo): Removed const qualifier from op.
  11185. * src/PeerStat.h
  11186. (uploadSpeed): New variable.
  11187. (PeerStat): Added default value to cuid.
  11188. (calculateUploadSpeed): New function.
  11189. (updateUploadLength): New function.
  11190. (getMaxUploadSpeed): New function.
  11191. (getAvgUploadSpeed): New function.
  11192. (reset): Added uploadSpeed. Set status to IDLE.
  11193. * src/TorrentDownloadEngine.h
  11194. (cp): Declared as Time.
  11195. (sessionDownloadLengthArray): Removed.
  11196. (sessionUploadLengthArray): Removed.
  11197. (currentCp): Removed.
  11198. (lastCalcStat): New variable
  11199. (lastElapsed): Removed.
  11200. (sessionDownloadLength): Removed.
  11201. (calculateStat): New function.
  11202. * src/TorrentDownloadEngine.cc
  11203. (initStatistics): Removed lastElapsed, cp[],
  11204. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  11205. currentCp, sessionDownloadLength.
  11206. Added cp.reset() and lastCalcStat.reset().
  11207. (calculateSpeed): Changed the name of the argument.
  11208. (calculateStatistics): Rewritten.
  11209. (calculateStat): New function.
  11210. * src/Peer.h
  11211. (PeerStat.h): Included.
  11212. (peerUpload): Removed.
  11213. (peerDownload): Removed.
  11214. (peerStat): New variable.
  11215. (sessionUploadLength): New variable.
  11216. (sessionDownloadLength): New variable.
  11217. (deltaUpload): Removed.
  11218. (deltaDownload): Removed.
  11219. (resetStatus): Made private.
  11220. (Peer): Added sessionUploadLength, sessionDownloadLength.
  11221. Removed peerUpload, peerDownload.
  11222. (updateUploadLength): New function.
  11223. (addDeltaUpload): Removed.
  11224. (updateDownloadLength): New function.
  11225. (resetDeltaUpload): Removed.
  11226. (getDeltaUpload): Removed.
  11227. (addDeltaDownload): Removed.
  11228. (calculateUploadSpeed): New function.
  11229. (resetDeltaDownload): Removed.
  11230. (getDeltaDownload): Removed.
  11231. (calculateDownloadSpeed): New function.
  11232. (getSessionUploadLength): New function.
  11233. (getSessionDownloadLength): New function.
  11234. (activate): New function.
  11235. (deactivate): New function.
  11236. (addPeerUpload): Removed.
  11237. (setPeerUpload): Removed.
  11238. (getPeerUpload): Removed.
  11239. (addPeerDownload): Removed.
  11240. (setPeerDownload): Removed.
  11241. (getPeerDownload): Removed.
  11242. * src/Peer.cc
  11243. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  11244. * src/MetalinkRequestInfo.h
  11245. (MetalinkRequestInfo): Removed const qualifier from op.
  11246. * src/RequestInfo.h
  11247. (op): Removed const qualifier.
  11248. (RequestInfo): Removed const qualifier from op.
  11249. * src/prefs.h
  11250. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  11251. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  11252. * src/PeerInteractionCommand.cc
  11253. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  11254. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  11255. * src/PeerInteraction.cc
  11256. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  11257. * src/main.cc
  11258. (showUsage): Updated the description of "--lowest-speed-limit" option.
  11259. Added the description of "--max-download-limit" option.
  11260. Removed the description of "--upload-limit" option.
  11261. Added the description of "--max-upload-limit" option.
  11262. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  11263. Added "--max-download-limit" option and "--max-upload-limit" option.
  11264. Added the warning message if "--upload-limit" option is used.
  11265. * src/DownloadCommand.cc
  11266. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  11267. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11268. To rewrite segment download mechanism for HTTP/FTP download.
  11269. Use BitfieldMan to manage segment download.
  11270. * src/HttpResponseCommand.h
  11271. (executeInternal): Pass the reference of segment.
  11272. * src/AbstractCommand.cc
  11273. (prepareForRetry): Call segmentMan->cancelSegment here.
  11274. (onAbort): Call segmentMan->cancelSegment here.
  11275. * src/HttpDownloadCommand.cc
  11276. (prepareForNextSegment): New function.
  11277. * src/DownloadEngineFactory.cc
  11278. (newConsoleEngine): Removed splitter.
  11279. (newTorrentConsoleEngine): Removed splitter.
  11280. * src/Request.h
  11281. (segment): Renamed from seg.
  11282. * src/FtpInitiateConnectionCommand.h
  11283. (executeInternal): Pass the reference of segment.
  11284. * src/AbstractCommand.h
  11285. (executeInternal): Pass the reference of segment.
  11286. * src/pref.h
  11287. (PREF_SEGMENT_SIZE): New definition.
  11288. * src/HttpProxyRequestCommand.h
  11289. (executeInternal): Pass the reference of segment.
  11290. * src/HttpResponseCommand.cc
  11291. (checkResponse): Allowed status 206 when a request range starts 0.
  11292. (handleDefaultEncoding): Rewritten the code related to Segment.
  11293. (handleOtherEncoding): Rewritten the code related to Segment.
  11294. * src/SegmentMan.h
  11295. (SegmentEntry): New class.
  11296. (SegmentEntries): New type definition.
  11297. (bitfield): New variable.
  11298. (usedSegmentEntries): New variable.
  11299. (onNullBitfield): New function.
  11300. (checkoutSegment): New function.
  11301. (segments): Removed.
  11302. (splitter): Removed.
  11303. (unregisterId): Removed.
  11304. (getSegment): New function(overload)
  11305. (getDownloadedSize): Removed.
  11306. (cancelSegment): New function.
  11307. (completeSegment): New function.
  11308. (initBitfield): New function.
  11309. (hasSegment): New function.
  11310. (getDownloadLength): New function.
  11311. * src/BitfieldMan.h
  11312. (getStartIndex): New function.
  11313. (getEndIndex): New function.
  11314. (getMissingUnusedIndex): New function(overload).
  11315. (getSparseMissingUnusedIndex): New function.
  11316. * src/BitfieldMan.cc
  11317. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  11318. (getMissingUnusedIndex): New function(overload).
  11319. (Range): New class.
  11320. (getStartIndex): New function.
  11321. (getEndIndex): New function.
  11322. (getSparseMissingUnusedIndex): New function.
  11323. (isBitSetInternal): Return false if the given index is less than 0.
  11324. * src/HttpInitiateConnectionCommand.h
  11325. (executeInternal): Pass the reference of segment.
  11326. * src/FtpNegotiateCommand.h
  11327. (executeInternal): Pass the reference of segment.
  11328. * src/FtpNegotiateCommand.cc
  11329. (recvSize): Initialize bitfield here.
  11330. * src/FtpTunnelResponseCommand.h
  11331. (executeInternal): Pass the reference of segment.
  11332. * src/HttpConnection.cc
  11333. (createRequest): Rewritten range header processing.
  11334. * src/DownloadCommand.h
  11335. (executeInternal): Pass the reference of segment.
  11336. (prepareForRetry): Removed.
  11337. (prepareForNextSegment): Added an argument segment. Made it a virtual
  11338. function.
  11339. * src/main.cc
  11340. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  11341. * src/SegmentMan.cc
  11342. (SegmentMan): Added bitfield. Removed splitter.
  11343. (~SegmentMan): Added bitfield. Removed splitter.
  11344. (unregisterId): Removed.
  11345. (getSegment): Rewritten.
  11346. (updateSegment): Rewritten.
  11347. (save): Rewritten.
  11348. (read): Rewritten.
  11349. (finished): Rewritten.
  11350. (getDownloadedSize): Removed.
  11351. (initBitfield): New function.
  11352. (FindSegmentEntryByIndex): New function object.
  11353. (FindSegmentEntryByCuid): New function object.
  11354. (checkoutSegment): New function.
  11355. (onNullBitfield): New function.
  11356. (getSegment): New function(overload).
  11357. (CancelSegment): New function object.
  11358. (cancelSegment): New function.
  11359. (completeSegment): New function.
  11360. (hasSegment): New function.
  11361. (getDownloadLength): New function.
  11362. * src/FtpInitiateConnectionCommand.cc
  11363. (executeInternal): Load .aria2 file after hostname resolution finishes.
  11364. * src/Segment.h: Rewritten.
  11365. * src/Segment.cc (operator<<): New function.
  11366. * src/HttpDownloadCommand.h
  11367. (prepareForNextSegment): New function.
  11368. * src/Request.cc
  11369. (resetUrl): Made segment null.
  11370. * src/DownloadEngine.cc
  11371. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  11372. * src/HttpProxyRequestCommand.h
  11373. (executeInternal): Pass the reference of segment.
  11374. * src/DownloadCommand.cc
  11375. (executeInternal): Rewritten the code related to Segment.
  11376. (prepareForRetry): Removed.
  11377. (prepareForNextSegment): Rewritten.
  11378. * src/FtpTunnelResponseCommand.h
  11379. (executeInternal): Pass the reference of segment.
  11380. To add HTTP 1.1 persistent connection support(experimental)
  11381. * src/HttpRequestCommand.cc
  11382. (executeInternal): Disable keep alive if it is disabled by
  11383. configuration.
  11384. * src/Request.h
  11385. (keepAlive): New variable.
  11386. (isKeepAlive): New function.
  11387. (setKeepAlive): New function.
  11388. * src/pref.h
  11389. (PREF_HTTP_KEEP_ALIVE): New definition.
  11390. * src/HttpResponseCommand.cc
  11391. (executeInternal): Check the remote server supports keep alive.
  11392. * src/HttpConnection.cc
  11393. (createRequest): Send "Connection: close" only if keep alive is
  11394. disabled.
  11395. * src/main.cc
  11396. (main):
  11397. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  11398. To add max download speed limit:
  11399. * src/pref.h
  11400. (PREF_MAX_SPEED_LIMIT): New definition.
  11401. * src/PeerInteractionCommand.cc
  11402. (executeInternal): Added max download speed limit. Not tested yet.
  11403. * src/SegmentMan.h
  11404. (PeerStats): New type definition.
  11405. (peerStats): New variable.
  11406. (registerPeerStat): New function.
  11407. (FindPeerStat): New function object.
  11408. (getPeerStat): New function.
  11409. (calculateDownloadSpeed): New function.
  11410. * src/SpeedCalc.h: New class.
  11411. * src/SpeedCalc.cc: New class.
  11412. * src/main.cc
  11413. (main):
  11414. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  11415. download speed is not restricted).
  11416. * src/PeerStat.h: New class.
  11417. * src/SegmentMan.cc
  11418. (registerPeerStat): New function.
  11419. (calculateDownloadSpeed): New function.
  11420. * src/DownloadCommand.cc
  11421. (STARTUP_IDLE_TIME): New definition.
  11422. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  11423. downloadStart.
  11424. (~DownloadCommand): Call peerStat->downloadStop.
  11425. (executeInternal): Added download speed limitter. Rewritten lowest
  11426. speed limitter.
  11427. * src/HttpConnection.cc
  11428. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  11429. * src/AbstractCommand.cc
  11430. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  11431. Added hostname to the error message.
  11432. * src/ConsoleDownloadEngine.cc
  11433. (calculateStatistics): Initialize psize with dlSize.
  11434. * src/PieceMessage.cc
  11435. (receivedAction): Do not call peerInteraction->abortPiece here.
  11436. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  11437. * src/BitfieldMan.h
  11438. (clearAllUseBit): New function.
  11439. (setAllUseBit): New function.
  11440. * src/BitfieldMan.cc
  11441. (clearAllBit): Do not clear useBitfield here.
  11442. (clearAllUseBit): New function.
  11443. (setAllUseBit): New function.
  11444. * src/Piece.cc
  11445. (clearAllBlock): Call bitfield->clearAllUseBit().
  11446. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11447. To make filename URL-decoded:
  11448. * src/HttpResponseCommand.h: Updated doc.
  11449. * src/HttpResponseCommand.cc
  11450. (determinFilename): Made filename URL-decoded.
  11451. * src/FtpInitiateConnectionCommand.cc
  11452. (executeInternal): Made filename URL-decoded.
  11453. * src/Util.h (urldecode): New function.
  11454. * src/Util.cc (urldecode): New function.
  11455. To fix a bug that caused assertion failure in ares_strerror:
  11456. * src/NameResolver.cc (callback): Fixed the bug.
  11457. * Release 0.7.3
  11458. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11459. To add --seed-time and --seed-ratio command-line option:
  11460. * src/Option.h (getAsDouble): New function.
  11461. * src/Option.cc (getAsDouble): New function.
  11462. * src/SeedCheckCommand.h: New class.
  11463. * src/SeedCheckCommand.cc: New class.
  11464. * src/DownloadEngineFactory.cc
  11465. (SeedCheckCommand.h): Included.
  11466. (UnionSeedCriteria.h): Included.
  11467. (TimeSeedCriteria.h): Included.
  11468. (ShareRatioSeedCriteria.h): Included.
  11469. (newTorrentConsoleEngine): Added the processing of seed option.
  11470. * src/SeedCriteria.h: New class.
  11471. * src/ShareRatioSeedCriteria.h: New class.
  11472. * src/TimeSeedCriteria.h: New class.
  11473. * src/UnionSeedCriteria.h: New class.
  11474. * src/prefs.h
  11475. (PREF_SEED_TIME): New definition.
  11476. (PREF_SEED_RATIO): New definition.
  11477. * src/main.cc
  11478. (showUsage): Added --seed-time and --seed-ratio option.
  11479. (main): Added --seed-time and --seed-ratio option.
  11480. Made default log file name "/dev/null".
  11481. * src/SharedHandle.h
  11482. (SharedHandle): Copy constructor. Made it assignable from the
  11483. SharedHandle of the subclasses.
  11484. (operator=): Made it assignable from the SharedHandle of the
  11485. subclasses.
  11486. (getRefCount): New function.
  11487. To add notice log level and the switch to write log to stdout. This
  11488. switch is configurable per log level.
  11489. * src/Logger.h
  11490. (notice): New function.
  11491. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  11492. constant.
  11493. * src/LogFactory.cc
  11494. (getInstance): The use of NullLogger was removed. A log message with
  11495. notice log level was made written to stdout along with log file.
  11496. * src/NullLogger.h
  11497. (notice): New function.
  11498. * src/SimpleLogger.h
  11499. (writeHeader): Added the 'file' argument.
  11500. (writeLog): Added the 'file' argument.
  11501. (writeFile): New function.
  11502. (stdoutField): New variable.
  11503. (SimpleLogger): Removed the default constructor.
  11504. (SimpleLogger): Made the default value of logfile 0.
  11505. (debug): Added 'virtual' keyword.
  11506. (info): Added 'virtual' keyword.
  11507. (warn): Added 'virtual' keyword.
  11508. (error): Added 'virtual' keyword.
  11509. (notice): New function.
  11510. (setStdout): New function.
  11511. * src/SimpleLogger.cc
  11512. (WRITE_LOG): Replaced writeLog with writeFile.
  11513. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  11514. (SimpleLogger): Removed the default constructor.
  11515. (setStdout): New function.
  11516. (writeLog): Added the handling of NOTICE log level.
  11517. (writeFile): New function.
  11518. (notice): New function.
  11519. * src/TorrentMan.h: Updated doc.
  11520. * src/BitfieldMan.h: Updated doc.
  11521. * src/TrackerWatcherCommand.cc
  11522. (execute): Return true if error occurred in the request to the tracker
  11523. and halt is requested.
  11524. * src/TrackerUpdateCommand.cc
  11525. (execute): Return true if error occurred in the request to the tracker
  11526. and halt is requested.
  11527. To call onDownloadComplete from TorrentMan::completePiece(), not from
  11528. DownloadEngine:
  11529. * src/TorrentConsoleDownloadEngine.h
  11530. (onSelectiveDownloadingCompletes): Removed.
  11531. * src/TorrentConsoleDownloadEngine.cc
  11532. (onSelectiveDownloadingCompletes): Removed.
  11533. * src/TorrentDownloadEngine.h
  11534. (onEndOfRun): Added 'virtual' keyword.
  11535. (afterEachIteration): Removed.
  11536. (onSelectiveDownloadingCompletes): Removed.
  11537. * src/TorrentDownloadEngine.cc
  11538. (onEndOfRun): Removed filenameFixed.
  11539. (afterEachIteration): Removed.
  11540. * src/TorrentMan.cc
  11541. (completePiece): Call onDownloadComplete here.
  11542. (onDownloadComplete): Added 2 log messages.
  11543. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11544. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  11545. * src/NameResolver.h: Added the prototype declaration of callback().
  11546. To support c-ares library:
  11547. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11548. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11549. * src/FtpInitiateConnectionCommand.h:
  11550. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11551. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11552. * src/HttpInitiateConnectionCommand.h:
  11553. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11554. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  11555. Added thes upport of c-ares's ares_strerror(the idea came from patch
  11556. #1542285 by tizianomueller)
  11557. * src/HttpInitiateConnectionCommand.cc:
  11558. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11559. * src/FtpInitiateConnectionCommand.cc:
  11560. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11561. * src/DownloadEngine.h:
  11562. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11563. * src/DownloadEngine.cc:
  11564. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11565. To fix the bug that causes compilation failure with metalink-support
  11566. disabled(bug#1543587):
  11567. * src/main.cc: Fixed with the patch by tizianomueller.
  11568. * Release 0.7.2
  11569. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11570. * src/main.cc
  11571. (main): Added a message to inform users that aria2 is starting to
  11572. verify checksum.
  11573. * src/RequestInfo.cc
  11574. (printDownloadAbortMessage): Added a message to inform users that
  11575. transfer can be resumed.
  11576. * src/FeatureConfig.cc
  11577. (FEATURE_ASYNC_DNS): New definition.
  11578. (FeatureConfig): Added aysnc DNS entry.
  11579. To replace CommandUuid with Command* in SocketEntry and
  11580. NameResolverEntry:
  11581. * src/DownloadEngine.h
  11582. (CommandUuids): Removed.
  11583. (SocketEntry::commandUuid): Removed.
  11584. (SocketEntry::command): New variable.
  11585. (SocketEntry::SocketEntry): Updated.
  11586. (SocketEntry::operator==): Updated.
  11587. (NameResolverEntry::commandUuid): Removed.
  11588. (NameResolverEntry::command): New variable.
  11589. (NameResolverEntry::NameResolverEntry): Updated.
  11590. (NameResolverEntry::operator==): Updated.
  11591. (waitData): Changed the argument type.
  11592. (addSocketForReadCheck): Changed the argument type.
  11593. (deleteSocketForReadCheck): Changed the argument type.
  11594. (addSocketForWriteCheck): Changed the argument type.
  11595. (deleteSocketForWriteCheck): Changed the argument type.
  11596. (addNameResolverCheck): Changed the argument type.
  11597. (deleteNameResolverCheck): Changed the argument type.
  11598. * src/DownloadEngine.cc
  11599. (FindCommand): Removed.
  11600. (run): Removed activeUuid. Added activeCommands instead.
  11601. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  11602. (AccumulateActiveCommand): New function object.
  11603. (waitData): Use AccumulateActiveCommand.
  11604. (addSocketForReadCheck): Use Command instead of CommandUuid.
  11605. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  11606. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  11607. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  11608. (addNameResolverCheck): Use Command instead of CommandUuid.
  11609. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  11610. * src/AbstractCommand.cc
  11611. (disableReadCheckSocket): Updated according to the changes in
  11612. DownloadEngine.
  11613. (setReadCheckSocket): Updated according to the changes in
  11614. DownloadEngine.
  11615. (disableWriteCheckSocket): Updated according to the changes in
  11616. DownloadEngine.
  11617. (setWriteCheckSocket): Updated according to the changes in
  11618. DownloadEngine.
  11619. (setNameResolverCheck): Updated according to the changes in
  11620. DownloadEngine.
  11621. (disableNameResolverCheck): Updated according to the changes in
  11622. DownloadEngine.
  11623. * src/AbstractCommand.cc
  11624. (disableReadCheckSocket): Updated according to the changes in
  11625. DownloadEngine.
  11626. (setReadCheckSocket): Updated according to the changes in
  11627. DownloadEngine.
  11628. (disableWriteCheckSocket): Updated according to the changes in
  11629. DownloadEngine.
  11630. (setWriteCheckSocket): Updated according to the changes in
  11631. DownloadEngine.
  11632. * release 0.7.1
  11633. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11634. To handle the case where some BitTorrent tracker requires all letters
  11635. except for [A-Za-z0-9] is URL encoded.
  11636. * src/Util.h
  11637. (torrentUrlencode): New function.
  11638. * src/Util.cc
  11639. (ctype.h): Included.
  11640. (torrentUrlencode): New function.
  11641. * src/TrackerWatcherCommand.cc
  11642. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  11643. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11644. To add asynchronous DNS support(libares):
  11645. * src/AbstractCommand.h
  11646. (setNameResolverCheck): New function.
  11647. (disableNameResolverCheck): New function
  11648. (resolveHostname): New function.
  11649. * src/AbstractCommand.cc
  11650. (setNameResolverCheck): New function.
  11651. (disableNameResolverCheck): New function
  11652. (resolveHostname): New function.
  11653. * src/FtpInitiateConnectionCommand.h
  11654. (nameResolver): New function.
  11655. * src/FtpInitiateConnectionCommand.cc
  11656. (Util.h): Included.
  11657. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  11658. disableWriteCheckSocket.
  11659. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  11660. (executeInternal): Added async DNS support.
  11661. * src/HttpInitiateConnectionCommand.h
  11662. (nameResolver): New function.
  11663. * src/HttpInitiateConnectionCommand.cc
  11664. (DlRetryEx.h): Included.
  11665. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  11666. disableWriteCheckSocket.
  11667. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  11668. (executeInternal): Added async DNS support.
  11669. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  11670. by extern "C" declaration.
  11671. * src/NameResolver.cc: New class.
  11672. * src/Util.h:
  11673. (isNumberAndDotsNotation): New function
  11674. * src/Util.cc
  11675. (isNumberAndDotsNotation): New function.
  11676. * src/DownloadEngine.h
  11677. (NameResolver.h): Included.
  11678. (NameResolverEntry): New class.
  11679. (NameResolverEntries): New type definition.
  11680. (addNameResolverCheck): New function.
  11681. (deleteNameResolverCheck): New function.
  11682. * src/DownloadEngine.cc
  11683. (run): Initialize cp with 0.
  11684. (SetDescriptor::operator()): Added for NameResolverEntry.
  11685. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  11686. (waitData): Check nameResolver entries.
  11687. (updateFdSet): Update fds in nameResolver entries.
  11688. (addNameResolverCheck): New function.
  11689. (deleteNameResolverCheck): new function.
  11690. * src/PeerInteractionCommand.cc
  11691. (executeInternal): Fixed wrong socket handling.
  11692. * src/main.cc
  11693. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  11694. * src/Util.cc
  11695. (fileChecksum): Removed the call to ctx.digestReset().
  11696. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11697. * po/ru.po: Azamat sent me Russian translation.
  11698. * src/FtpNegotiateCommand.cc
  11699. (recvGreeting): Call disableWriteCheckSocket just after
  11700. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  11701. (recvRetr): Recognized status code 125 as a acceptable response code.
  11702. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  11703. case-insesitive filesystem(BUG#1531057).
  11704. * src/Time.h: Renamed as TimeA2.h.
  11705. * src/Time.cc: Renamed as TimeA2.cc.
  11706. * src/TimeA2.h: New class.
  11707. * src/TimeA2.cc: New class.
  11708. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  11709. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  11710. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  11711. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  11712. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  11713. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11714. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  11715. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  11716. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  11717. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11718. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  11719. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  11720. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  11721. * release 0.7.0
  11722. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11723. * src/PeerChokeCommand.h
  11724. (PeerChokeCommand): Rearranged the arguments.
  11725. * src/PeerChokeCommand.cc
  11726. (PeerChokeCommand): Rearranged the arguments.
  11727. * src/MetalinkEntry.h
  11728. (Checksum.h): Included.
  11729. (md5): Removed.
  11730. (sha1): Removed.
  11731. (checksum): New variable.
  11732. (operator=): Updated.
  11733. (check): Removed.
  11734. * src/prefs.h
  11735. (PREF_LOWEST_SPEED_LIMIT): New definition.
  11736. (PREF_FOLLOW_TORRENT): New definition.
  11737. (PREF_SELECT_FILE): New definition.
  11738. (PREF_FOLLOW_METALINK): New definition.
  11739. * src/MetalinkResource.h
  11740. (TYPE_HTTPS): Added to enum TYPE.
  11741. * src/TorrentMan.cc
  11742. (~TorrentMan): Rewritten.
  11743. * src/MultiDiskWriter.cc
  11744. (MultiDiskAdaptor): Updated according to the changes in
  11745. MessageDigestContext.
  11746. (~MultiDiskAdaptor): Updated according to the changes in
  11747. MessageDigestContext.
  11748. (hashUpdate): Updated according to the changes in MessageDigestContext.
  11749. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11750. * src/Util.h
  11751. (fileChecksum): Updated according to the changes in
  11752. MessageDigestContext.
  11753. * src/Util.cc
  11754. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11755. (fileChecksum): Updated according to the changes in
  11756. MessageDigestContext.
  11757. * src/messageDigest.h: Rewritten.
  11758. * src/MetalinkEntry.cc
  11759. (check): Removed.
  11760. (Supported): Updated.
  11761. (dropUnsupportedResource): Fixed a memory leak.
  11762. * src/ShaVisitor.cc
  11763. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  11764. (~ShaVisitor): Updated according to the changes in
  11765. MessageDigestContext.
  11766. (visit): Updated according to the changes in MessageDigestContext.
  11767. * src/main.cc
  11768. (main): Rewritten the portion of download loop. --lowest-speed-limit
  11769. command-line option added.
  11770. * src/DownloadEngine.h
  11771. (SocketEntry): New class.
  11772. (SocketEntries): New definition.
  11773. (PairFind): Removed.
  11774. (SockCmdMap): Removed.
  11775. * src/DownloadEngine.cc
  11776. (DownloadEngine): Rewritten.
  11777. (~DownloadEngine): Rewritten.
  11778. (run): Renamed activeCommandUuids as activeUuids.
  11779. (SetDescriptor): Rewritten.
  11780. (AccumulateActiveCommandUuid): Removed.
  11781. (AccumulateActiveUuid): New function object.
  11782. (waitData): Rewritten.
  11783. (updateFdSet): Rewritten.
  11784. (addSocket): Rewritten.
  11785. (deleteSocket): Rewritten.
  11786. (addSocketForReadCheck): Rewritten.
  11787. (deleteSocketForReadCheck): Rewritten.
  11788. (addSocketForWriteCheck): Rewritten.
  11789. (deleteSocketForWriteCheck): Rewritten.
  11790. * src/Xml2MetalinkProcessor.cc
  11791. (getEntry): Rewritten the portion of MetalinkEntry creation.
  11792. * src/DownloadCommand.cc
  11793. (executeInternal): Added the check routine for lowest speed limit.
  11794. * src/AbstractDiskWriter.cc
  11795. (AbstractDiskWriter): Updated according to the changes in
  11796. MessageDigestContext.
  11797. (~AbstractDiskWriter): Updated according to the changes in
  11798. MessageDigestContext.
  11799. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11800. * src/RequestInfo.h: New class.
  11801. * src/UrlRequestInfo.h: New class.
  11802. * src/UrlRequestInfo.cc: New class.
  11803. * src/TorrentRequestInfo.h: New class.
  11804. * src/TorrentRequestInfo.cc: New class.
  11805. * src/MetalinkRequestInfo.h: New class.
  11806. * src/MetalinkRequestInfo.cc: New class.
  11807. * src/Checksum.h: New class.
  11808. * src/DownloadEngineFactory.h: New class.
  11809. * src/DownloadEngineFactory.cc: New class.
  11810. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11811. * src/Option.h
  11812. (getAsBool): New function.
  11813. * src/Option.cc
  11814. (prefs.h): Included.
  11815. (defined): 0-length value is now recognized as undefined.
  11816. (getAsInt): Rewritten.
  11817. (getAsLLInt): Rewritten.
  11818. (getAsBool): New function.
  11819. * src/FeatureConfig.h: Rewritten.
  11820. * src/FeatureConfig.cc: Rewritten.
  11821. * src/prefs.h
  11822. (PREF_STDOUT_LOG): New definition.
  11823. (PREF_LOG): New definition.
  11824. (PREF_DIR): New definition.
  11825. (PREF_OUT): New definition.
  11826. (PREF_SPLIT): New definition.
  11827. (PREF_DAEMON): New definition.
  11828. (PREF_REFERER): New definition.
  11829. (PREF_TORRENT_FILE): New definition.
  11830. (PREF_LISTEN_PORT): New definition.
  11831. (PREF_METALINK_FILE): New definition.
  11832. (PREF_METALINK_VERSION): New definition.
  11833. (PREF_METALINK_LANGUAGE): New definition.
  11834. (PREF_METALINK_OS): New definition.
  11835. (PREF_METALINK_SERVERS): New definition.
  11836. * src/main.cc
  11837. (main): Following command-line parameters are now put into Option
  11838. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  11839. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  11840. metalinkLanguage, metalinkOs, metalinkServers
  11841. To fix the bug that aria2 can not handle http response header properly.
  11842. * src/HttpHeader.cc
  11843. (put): Made name lowercased.
  11844. (defined): Made name lowercased.
  11845. (getFirst): Made name lowercased.
  11846. (get): Made name lowercased.
  11847. (getFirstAsInt): Rewritten.
  11848. (getFirstAsLLInt): Rewritten.
  11849. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11850. * src/TorrentMan.h:
  11851. (advertisePiece): Updated doc.
  11852. (getAdvertisedPieceIndexes): Updated doc.
  11853. (removeAdvertisedPiece); New function.
  11854. * src/TorrentMan.cc
  11855. (FindElapsedHave): New function object.
  11856. (removeAdvertisedPiece): New function.
  11857. * src/HaveEraseCommand.h: New class.
  11858. * src/HaveEraseCommand.cc: New class.
  11859. * src/FeatureConfig.h: New class.
  11860. * src/FeatureConfig.cc: New class.
  11861. * src/Request.h
  11862. (defaultPorts): Removed.
  11863. * src/Request.cc
  11864. (FeatureConfig.h): Included.
  11865. (Request): Removed the statements related to defaultPorts.
  11866. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  11867. A default port number is now retrieved from FeatureConfig.
  11868. * src/main.cc
  11869. (HaveEraseCommand.h): Included.
  11870. (showVersion): Added the output of feature list.
  11871. (main): Added HaveEraseCommand to command queue in BitTorrent
  11872. downloading.
  11873. * src/PeerInteractionCommand.h
  11874. (chokeCheckPoint): Commented out.
  11875. (periodicExecPoint): New variable.
  11876. * src/PeerInteractionCommand.cc
  11877. (executeInternal): Following methods are now called in at least every
  11878. 0.5 seconds to reduce CPU usage:
  11879. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  11880. checkHave(), sendKeepAlive().
  11881. (checkLongTimePeerChoking): Commented out.
  11882. * src/BitfieldMan.h
  11883. (getNthBitIndex): Changed the method signature.
  11884. (getMissingIndexRandomly): Changed the method signature.
  11885. * src/BitfieldMan.cc
  11886. (getNthBitIndex): Rewritten
  11887. (getMissingIndexRandomly): Rewritten.
  11888. (hasMissingPiece): Rewritten.
  11889. (getMissingIndex): Refactored.
  11890. (getMissingUnusedIndex); Refactored.
  11891. (getMissingIndex): Refactored.
  11892. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11893. * src/PeerMessage.h
  11894. (Piece.h): Included.
  11895. (SharedHandle.h): Included.
  11896. (invalidate): New variable.
  11897. (uploading): New variable.
  11898. (isInvalidate): New function.
  11899. (isUploading): New function.
  11900. (onPush): New function.
  11901. (onChoked): New function.
  11902. (onCanceled): New function.
  11903. (onAbortPiece): New function.
  11904. (PeerMessageHandle): New type definition.
  11905. * src/PeerMessage.cc
  11906. (PeerMessage): Added the initialization for invalidate and uploading.
  11907. * src/CancelMessage.h
  11908. (CancelMessage): Rewritten.
  11909. * src/RejectMessage.h
  11910. (RejectMessage): Rewritten.
  11911. * src/Metalinker.h
  11912. (operator=): Defined.
  11913. * src/MetaEntry.h
  11914. (operator=): Defined.
  11915. * src/MetalinkResource.h
  11916. (operator=): Defined.
  11917. * src/AllowedFastMessage.h
  11918. (AllowedFastMessage): Rewritten.
  11919. * src/HandshakeMessage.h
  11920. (HandshakeMessage): New function(overload).
  11921. * src/HandshakeMessage.cc
  11922. (HandshakeMessage): Rewritten.
  11923. (init): New function.
  11924. * src/HaveMessage.h
  11925. (HaveMessage): Rewritten.
  11926. * src/Time.h
  11927. (operator=): Defined the function body here.
  11928. * src/Time.cc
  11929. (operator=): Removed.
  11930. * src/SocketCore.h
  11931. (operator==): Defined here.
  11932. (operator!=): Defined here.
  11933. (operator<): Defined here.
  11934. * src/SocketCore.cc
  11935. (operator==): Removed.
  11936. (operator<): Removed.
  11937. * src/BitfieldMan.h
  11938. (operator=): Defined the function body here.
  11939. * src/BitfieldMan.cc
  11940. (operator=): Removed.
  11941. * src/TorrentMan.h
  11942. (deleteErrorPeer): Removed.
  11943. (deleteUnusedPeer); New function.
  11944. * src/TorrentMan.cc
  11945. (addPeer): Call deleteUnusedPeer.
  11946. (deleteErrorPeer): Removed.
  11947. (deleteUnusedPeer): New function.
  11948. * src/PeerAbstractCommand.h
  11949. (setNoCheck): New function.
  11950. (noCheck): New variable.
  11951. * src/PeerAbstractCommand.cc
  11952. (PeerAbstractCommand): Added the initialization of noCheck.
  11953. (execute): Added a check for noCheck.
  11954. (setNoCheck): New function.
  11955. * src/Util.h
  11956. (stdio.h): Included.
  11957. * src/Util.cc
  11958. (unistd.h): Included.
  11959. * src/DefaultDiskWriter.cc
  11960. (unistd.h): Included.
  11961. * src/Peer.h
  11962. (operator==): Defined the function body here.
  11963. (operator!=): Defined the function body here.
  11964. * src/Peer.cc
  11965. (operator==): Removed.
  11966. (operator!=): Removed.
  11967. * src/Piece.h
  11968. (Piece): Defined the function body here(copy constructor).
  11969. (operator=): Defined the function body here.
  11970. (operator==): Defined the function body here.
  11971. * src/Piece.cc
  11972. (Piece): Removed(copy constructor).
  11973. (operator=): Removed.
  11974. (operator==): Removed.
  11975. * src/PeerMessageUtil.h
  11976. (ChokeMessage.h): Removed.
  11977. (UnchokeMessage.h): Removed.
  11978. (InterestedMessage.h): Removed.
  11979. (NotInterestedMessage.h): Removed.
  11980. (HaveMessage.h): Removed.
  11981. (BitfieldMessage.h): Removed.
  11982. (RequestMessage.h): Removed.
  11983. (CancelMessage.h): Removed.
  11984. (PieceMessage.h): Removed.
  11985. (HandshakeMessage.h): Removed.
  11986. (KeepAliveMessage.h): Removed.
  11987. (PortMessage.h): Removed.
  11988. (HaveAllMessage.h): Removed.
  11989. (HaveNoneMessage.h): Removed.
  11990. (PeerConnection.h): Removed.
  11991. (HandshakeMessage.h): Included.
  11992. * src/BitfieldMessage.h
  11993. (init): New function.
  11994. (BitfieldMessage): Rewritten.
  11995. (BitfieldMessage): New function(overload).
  11996. * src/RequestSlot.h
  11997. (operator=): Defined the function body here.
  11998. (operator==): Defined the function body here.
  11999. * src/RequestSlot.cc
  12000. (operator=): Removed.
  12001. (operator==): Removed.
  12002. To remove the dependency on the PeerMessage subclass from
  12003. PeerInteraction:
  12004. * src/PeerMessageFactory.h: New class.
  12005. * src/PeerMessageFactory.cc: New class.
  12006. * src/SimplePeerMessage.cc
  12007. (send): If invalidate is true then do nothing.
  12008. * src/PeerInteractionCommand.cc
  12009. (HandshakeMessage.h): Included.
  12010. (KeepAliveMessage.h): Included.
  12011. (ChokeMessage.h): Included.
  12012. (UnchokeMessage.h): Included.
  12013. (HaveMessage.h): Included.
  12014. (executeInternal): Call setNoCheck().
  12015. Removed setWriteCheckSocket(socket).
  12016. * src/PeerInteraction.h
  12017. (ChokeMessage.h): Removed.
  12018. (UnchokeMessage.h): Removed.
  12019. (InterestedMessage.h): Removed.
  12020. (NotInterestedMessage.h): Removed.
  12021. (HaveMessage.h): Removed.
  12022. (BitfieldMessage.h): Removed.
  12023. (RequestMessage.h): Removed.
  12024. (CancelMessage.h): Removed.
  12025. (PieceMessage.h): Removed.
  12026. (HandshakeMessage.h): Removed.
  12027. (KeepAliveMessage.h): Removed.
  12028. (PortMessage.h): Removed.
  12029. (HaveAllMessage.h): Removed.
  12030. (HaveNoneMessage.h): Removed.
  12031. (RejectMessage.h): Removed.
  12032. (AllowedFastMessage.h): Removed.
  12033. (SuggestPieceMessage.h): Removed.
  12034. (PeerMessageFactory.h): Included.
  12035. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  12036. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  12037. (PeerMessageFactory): New variable.
  12038. (createPeerMessage): Removed.
  12039. (createHandshakeMessage): Removed.
  12040. (setPeerMessageCommonProperty): Removed.
  12041. (addRequestSlot): New function.
  12042. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  12043. (getPeerMessageFactory): New function.
  12044. (createRequestMessage): Removed.
  12045. (createCancelMessage): Removed.
  12046. (createPieceMessage): Removed.
  12047. (createHaveMessage): Removed.
  12048. (createChokeMessage): Removed.
  12049. (createUnchokeMessage): Removed.
  12050. (createInterestedMessage): Removed.
  12051. (createNotInterestedMessage): Removed.
  12052. (createBitfieldMessage): Removed.
  12053. (createKeepAliveMessage): Removed.
  12054. (createHaveAllMessage): Removed.
  12055. (createHaveNoneMessage): Removed.
  12056. (createRejectMessage): Removed.
  12057. (createAllowedFastMessage): Removed.
  12058. * src/PeerInteraction.cc
  12059. (PeerInteraction): Allocate PeerMessageFactory here.
  12060. (~PeerInteraction): Deallocate PeerMessageFactory here.
  12061. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  12062. PieceMessage::ID.
  12063. (addMessage): Simplified by using PeerMessage::onPush().
  12064. (addRequestSlot): New function.
  12065. (rejectAllPieceMessageInQueue): Simplified by using
  12066. PeerMessage::onChoked().
  12067. (rejectPieceMessageInQueue): Simplified by using
  12068. PeerMessage::onCanceled().
  12069. (abortPiece): Simplified by using PeerMessage::abortPiece().
  12070. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  12071. (createHandshakeMessage): Removed.
  12072. (createPeerMessage): Removed.
  12073. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  12074. (setPeerMessageCommonProperty): Removed.
  12075. (createRequestMessage): Removed.
  12076. (createCancelMessage): Removed.
  12077. (createPieceMessage): Removed.
  12078. (createHaveMessage): Removed.
  12079. (createChokeMessage): Removed.
  12080. (createUnchokeMessage): Removed.
  12081. (createInterestedMessage): Removed.
  12082. (createNotInterestedMessage): Removed.
  12083. (createBitfieldMessage): Removed.
  12084. (createKeepAliveMessage): Removed.
  12085. (createHaveAllMessage): Removed.
  12086. (createHaveNoneMessage): Removed.
  12087. (createRejectMessage): Removed.
  12088. (createAllowedFastMessage): Removed.
  12089. * src/PieceMessage.h
  12090. (createRejectMessage): New function.
  12091. (PieceMessage): Rewritten.
  12092. (onChoked): New function.
  12093. (onCanceled): New function.
  12094. * src/PieceMessage.cc
  12095. (send): If invalidate is true then do nothing, just return.
  12096. (createRejectMessage): New function.
  12097. (onChoked): New function.
  12098. (onCanceled): New function.
  12099. * src/RequestMessage.h
  12100. (RequestMessage): Rewritten.
  12101. (onPush): New function.
  12102. (onAbortPiece): New function.
  12103. * src/RequestMessage.cc
  12104. (onPush): New function.
  12105. (onAbortPiece): New function.
  12106. Update fd_set when a socket is added or deleted in order to improve
  12107. performance:
  12108. * src/DownloadEngine.h
  12109. (rfdset): New variable.
  12110. (wfdset): New variable.
  12111. (updateFdSet): New function.
  12112. * src/DownloadEngine.cc
  12113. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  12114. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  12115. (waitData): Copy rfdset and wfdset.
  12116. (updateFdSet): New function.
  12117. (addSocket): Call updateFdSet.
  12118. (deleteSocket): Call updateFdSet.
  12119. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12120. To add the support for Metalink3.0 backward compatible links:
  12121. * src/Request.h
  12122. (SAFE_CHARS): Added '#'.
  12123. (METALINK_MARK): New definition.
  12124. * src/Request.cc
  12125. (parseUrl): Added the support for Metalink3.0 backward compatible
  12126. links.
  12127. etc
  12128. * src/PeerInteraction.cc
  12129. (MsgPushBack): Removed.
  12130. (sendMessages): Use STL copy and back_inserter.
  12131. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  12132. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  12133. * src/TorrentMan.h
  12134. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  12135. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12136. * src/SharedHandle.h: New class.
  12137. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  12138. * src/HttpResponseCommand.h
  12139. (HttpResponseCommand): Wrapped Socket.
  12140. * src/SocketCore.h
  12141. (operator==): New function.
  12142. (operator!=): New function.
  12143. (operator<): New function.
  12144. (getSockfd): New function.
  12145. (isOpen): New function.
  12146. (writeData): New function.
  12147. * src/SocketCore.cc
  12148. (operator==): New function.
  12149. (operator!=): New function.
  12150. (operator<): New function.
  12151. * src/AbstractCommand.h
  12152. (socket): Changed its type to SocketHandle.
  12153. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12154. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12155. (disableReadCheckSocket): New function.
  12156. (disableWriteCheckSocket): New function.
  12157. (readCheckTarget): Changed its type to SocketHandle.
  12158. (writeCheckTarget): Changed its type to SocketHandle.
  12159. (AbstractCommand): Replaced Socket with SocketHandle.
  12160. * src/AbstractCommand.cc
  12161. (AbstractCommand): Replaced Socket with SocketHandle.
  12162. (~AbstractCommand): Removed the deallocation for Socket object.
  12163. (disableReadCheckSocket): New function.
  12164. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12165. (disableWriteCheckSocket): New function.
  12166. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12167. * src/HttpDownloadCommand.cc
  12168. (DownloadCommand): Replaced Socket with SocketHandle.
  12169. * src/PeerAbstractCommand.h
  12170. (socket): Changed its type to SocketHandle.
  12171. (peer): Changed its type to PeerHandle.
  12172. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12173. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12174. (disableReadCheckSocket): New function.
  12175. (disableWriteCheckSocket): New function.
  12176. (readCheckTarget): Changed its type to SocketHandle.
  12177. (writeCheckTarget): Changed its type to SocketHandle.
  12178. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  12179. Replaced Peer with PeerHandle.
  12180. * src/HttpRequestCommand.cc
  12181. (HttpRequestCommand): Replaced Socket with SocketHandle.
  12182. Use disableReadCheckSocket.
  12183. * src/PeerInitiateConnectionCommand.h
  12184. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  12185. * src/PeerChokeCommand.cc
  12186. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  12187. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  12188. (execute): Use PeerHandle.
  12189. * src/PeerConnection.h
  12190. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  12191. (socket): Changed its type to SocketHandle.
  12192. (PeerConnection): Replaced Socket with SocketHandle.
  12193. * src/PeerConnection.cc
  12194. (PeerConnection): Replaced Socket with SocketHandle.
  12195. * src/PeerInteractionCommand.h
  12196. (PeerInteractionCommand): Replaced socket with SocketHandle.
  12197. Replaced Peer with PeerHandle.
  12198. * src/PeerInteractionCommand.cc
  12199. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  12200. Replaced Peer with PeerHandle.
  12201. (executeInternal): Use disableWriteCheckSocket.
  12202. Use HandshakeMessageHandle.
  12203. (receiveMessages): Use PeerMessageHandle.
  12204. (prepareForNextPeer): Use PeerHandle.
  12205. * src/HttpProxyRequestCommand.h
  12206. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12207. * src/HttpResponseCommand.cc
  12208. (HttpResponseCommand): Replaced Socket with SocketHandle.
  12209. * src/TorrentMan.cc
  12210. (nullPeer): Added external reference.
  12211. (~TorrentMan): Removed the deallocation of the elements of peers.
  12212. (addPeer): Rewritten.
  12213. (isPeerAvailable): Use nullPeer.
  12214. (deleteOldpeers): Replaced with deleteErrorPeer.
  12215. (deleteErrorPeer): New function.
  12216. (getPeer): Use PeerHandle and nullPeer.
  12217. (hasMissingPiece): Replaced Peer with PeerHandle.
  12218. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  12219. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  12220. (getMissingFastPiece): Replaced Peer with PeerHandle.
  12221. (getMissingPiece): Replaced Peer with PeerHandle.
  12222. * src/FtpNegotiateCommand.cc
  12223. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  12224. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  12225. (recvGreeting): Use disableWriteCheckSocket.
  12226. (recvPasv): Removed the allocation of Socket.
  12227. Use disableReadCheckSocket.
  12228. (sendRestPasv): Use disableWriteCheckSocket.
  12229. (recvRetr): Changed assertion.
  12230. * src/PeerInteraction.h
  12231. (SharedHandle.h): Included SharedHandle.h.
  12232. (PeerMessageHandle): New type definition.
  12233. (HandshakeMessageHandle): New type definition.
  12234. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  12235. (peer): Changed its type to PeerHandle.
  12236. (createHandshakeMessage): Replaced HandshakeMessage with
  12237. HandshakeMessageHandle.
  12238. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  12239. (PeerInteraction): Replaced Peer with PeerHandle.
  12240. Replaced Socket with SocketHandle.
  12241. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  12242. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  12243. (receiveHandshake): Replaced HandshakeMessage with
  12244. HandshakeMessageHandle.
  12245. * src/PeerInteraction.cc
  12246. (PeerInteraction): Replaced Peer with PeerHandle.
  12247. Replaced Socket with SocketHandle.
  12248. (~PeerInteraction): Removed the deallocation of the elements of
  12249. messageQueue.
  12250. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  12251. (isSendingMessageInProgress): Replaced PeerMessage with
  12252. PeerMessageHandle.
  12253. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  12254. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  12255. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  12256. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  12257. (abortPiece): Use PeerMessageHandle.
  12258. (receiveHandshake): Replaced HandshakeMessage with
  12259. HandshakeMessageHandle. Removed try-catch block.
  12260. (createHandshakeMessage): Replaced HandshakeMessage with
  12261. HandshakeMessageHandle.
  12262. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  12263. Removed try-catch block.
  12264. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  12265. * src/HttpProxyResponseCommand.cc
  12266. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12267. * src/FtpTunnelResponseCommand.h
  12268. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  12269. * src/HttpConnection.cc
  12270. (HttpConnection): Replaced Socket with SocketHandle.
  12271. * src/PeerAbstractCommand.cc
  12272. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  12273. (~PeerAbstractCommand): Removed the deallocation of socket.
  12274. Use disableReadCheckSocket, disableWriteCheckSocket.
  12275. (disableReadCheckSocket): New function.
  12276. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12277. (disableWriteCheckSocket): New function.
  12278. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12279. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  12280. * src/FtpTunnelRequestCommand.cc
  12281. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  12282. (~FtpTunnelRequestCommand): Corrected indentation.
  12283. * src/DownloadCommand.h
  12284. (DownloadCommand): Replaced Socket with SocketHandle.
  12285. * src/PeerListenCommand.cc
  12286. (PeerListenCommand): Removed the initialization of socket.
  12287. (~PeerListenCommand): Removed the deallocation of socket.
  12288. (bindPort): Use SocketHandle.
  12289. (execute): Use SocketHandle and PeerHandle.
  12290. * src/FtpDowndloadCommand.cc
  12291. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  12292. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  12293. * src/main.cc
  12294. (main): Corrected indentation.
  12295. * src/HttpInitiateConnectionCommand.cc
  12296. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  12297. (executeInternal): Removed the allocation of socket.
  12298. * src/HttpRequestCommand.h
  12299. (HttpRequestCommand): Replaced Socket with SocketHandle.
  12300. * src/FtpNegotiationCommand.h
  12301. (dataSocket): Changed its type to SocketHandle.
  12302. (serverSocket): Changed its type to SocketHandle.
  12303. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  12304. * src/TorrentMan.h
  12305. (MAX_PEER_UPDATE): Removed.
  12306. (MAX_PEERS): New definition.
  12307. (Peers): The element is now of type PeerHandle.
  12308. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  12309. (getPeer): Replaced Peer with PeerHandle.
  12310. (deleteOldErrorPeers): Removed.
  12311. (deleteErrorPeer): New function.
  12312. (hasMissingPiece): Replaced Peer with PeerHandle.
  12313. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  12314. (getMissingPiece): Replaced Peer with PeerHandle.
  12315. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  12316. (getMissingFastPiece): Replaced Peer with PeerHandle.
  12317. (addActivePeer): Replaced Peer with PeerHandle.
  12318. (deleteActivePeer): Replaced Peer with PeerHandle.
  12319. Added a check for the return value of find.
  12320. * src/FtpTunnelResponseCommand.cc
  12321. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  12322. * src/FtpInitiateConnectionCommand.cc
  12323. (executeInternal): Removed the allocation of socket.
  12324. * src/DownloadEngine.h
  12325. (Sockets): An element is now of type SocketHandle.
  12326. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  12327. (CommandUuids): New type definition.
  12328. (rsockets): Changed its type to SockCmdMap.
  12329. (wsockets): Changed its type to SockCmdMap.
  12330. (addSocket): Rewritten.
  12331. (deleteSocket): Rewritten.
  12332. (addSocketForReadCheck): Rewritten.
  12333. (deleteSocketForReadCheck): Rewritten.
  12334. (addSocketForWriteCheck): Rewritten.
  12335. (deleteSocketForWriteCheck): Rewritten.
  12336. (PairFind): New template class.
  12337. * src/HttpDownloadCommand.h
  12338. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  12339. * src/FtpConnection.cc
  12340. (FtpConnection): Replaced Socket with SocketHandle.
  12341. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  12342. block.
  12343. * src/InitiateConnectionCommandFactory.cc
  12344. (DlAbortEx.h): Included DlAbortEx.h.
  12345. (createInitiateConnectionCommand): Throw exception if the protocol of
  12346. requested URI is not supported.
  12347. * src/Peer.cc
  12348. (nullPeer): Changed its type to PeerHandle.
  12349. (operator==): New function.
  12350. (operator!=): New function.
  12351. * src/Peer.h
  12352. (SharedHandle.h): Included SharedHandle.h.
  12353. (operator==): New function.
  12354. (operator!=): New function.
  12355. (Peer): Added the default constructor.
  12356. Use resetStatus() to initialize member variables.
  12357. (nullPeer): Removed.
  12358. * src/TrackerUpdateCommand.cc
  12359. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  12360. with MIN_PEERS.
  12361. * src/PeerListenCommand.h
  12362. (socket): Changed its type to SocketHandle.
  12363. * src/Command.h
  12364. (CommandUuid): New type definition.
  12365. (uuid): New variable.
  12366. (uuidGen): New variable.
  12367. (Command): Added the initialization of uuid.
  12368. (getUuid): New function.
  12369. * src/Socket.h
  12370. (Socket): Removed.
  12371. (SocketHandle): New type definition.
  12372. * src/DownloadEngine.h
  12373. (FindCommand): New function object.
  12374. (run): The portion of socket check was rewritten.
  12375. (SetDescriptor): New function object.
  12376. (AccumulateActiveCommandUuid): New function object.
  12377. (waitData): Rewritten.
  12378. (addSocket): Rewritten.
  12379. (deleteSocket): Rewritten.
  12380. (addSocketForReadCheck): Rewritten.
  12381. (addSocketForWriteCheck): Rewritten.
  12382. (deleteSocketForReadCheck): Rewritten.
  12383. (deleteSocketForWriteCheck): Rewritten.
  12384. * src/HttpProxyResponseCommand.h
  12385. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  12386. * src/HttpConnection.h
  12387. (socket): Changed its type to SocketHandle.
  12388. (HttpConnection): Replaced Socket with SocketHandle.
  12389. * src/PeerInitiateConnectionCommand.cc
  12390. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  12391. (executeInternal): Removed the allocation of socket.
  12392. (prepareForNextPeer): Use PeerHandle.
  12393. * src/PeerMessage.h
  12394. (peer): Changed its type to PeerHandle.
  12395. (getPeer): Replaced Peer with PeerHandle.
  12396. (setPeer): Replaced Peer with PeerHandle.
  12397. * src/DownloadCommand.cc
  12398. (DownloadCommand): Replaced Socket with SocketHandle.
  12399. * src/FtpConnection.h
  12400. (socket): Changed its type to SocketHandle.
  12401. (FtpConnection): Replaced Socket with SocketHandle.
  12402. (sendPort); Replaced Socket with SocketHandle.
  12403. * src/FtpDowndloadCommand.h
  12404. (ctrlSocket): Changed its type to SocketHandle.
  12405. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  12406. * src/HttpProxyRequestCommand.cc
  12407. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12408. * src/FtpTunnelRequestCommand.h
  12409. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  12410. etc
  12411. * src/PeerChokeCommand.h
  12412. (setAllPeerChoked): Removed.
  12413. (setAllPeerResetDelta): Removed.
  12414. * src/PeerChokeCommand.cc
  12415. (setAllPeerChoked): Removed.
  12416. (ChokePeer): New function object.
  12417. (setAllPeerResetDelta): Removed.
  12418. (ResetDelta): New function object.
  12419. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  12420. (execute): Show download speed when the local node is a seeder.
  12421. setAllPeerChoked and setAllPeerResetDelta were rewritten
  12422. using STL.
  12423. * src/TrackerWatcherCommand.h
  12424. (MIN_PEERS): Removed.
  12425. * src/TorrentMan.cc
  12426. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  12427. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12428. To fix the bug that .aria2 file is not saved if downloading is stopped
  12429. by the errors:it results that aria2 can not resume downloading:
  12430. * src/main.cc
  12431. (normalDownload): Added the call to save().
  12432. (main): Added the deletion of the elements in 'reserved'.
  12433. To fix log:
  12434. * src/PeerInteraction.cc
  12435. (receiveHandshake): Fixed log.
  12436. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12437. To improve download performance in BitTorrent:
  12438. * src/TorrentMan.cc
  12439. (getPeer): Check the number of connections. Return nullPeer if
  12440. it is greater than MAX_PEER_UPDATE.
  12441. This code was originally here, but was removed in 0.5.1.
  12442. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12443. To improve the conditional compilation:
  12444. * src/MultiDiskWriter.h:
  12445. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12446. * src/MultiDiskWriter.cc:
  12447. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12448. * src/Util.h:
  12449. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12450. Added ENABLE_BITTORRENT around computeFastSet().
  12451. * src/Util.cc:
  12452. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12453. Added ENABLE_BITTORRENT around computeFastSet().
  12454. * src/messageDigest.h:
  12455. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  12456. * src/ShaVisitor.h:
  12457. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12458. * src/ShaVisitor.cc:
  12459. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12460. * src/main.cc:
  12461. Added ENABLE_BITTORRENT around includes and blocks related to
  12462. BitTorrent.
  12463. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  12464. digest support is not available.
  12465. * src/AbstractDiskWriter.h:
  12466. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12467. * src/AbstractDiskWriter.cc:
  12468. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12469. * src/MetalinkEntry.cc
  12470. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  12471. support is not available.
  12472. To add command-line options for Metalink:
  12473. * src/main.cc:
  12474. Added metalink-version, metalink-language, metalink-os,
  12475. follow-metalink.
  12476. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  12477. * src/main.cc: Use these definition.
  12478. * Release 0.6.0
  12479. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12480. To add Metalink support(http/ftp only):
  12481. * src/AbstractCommand.h
  12482. (tryReserved): New function.
  12483. * src/AbstractCommand.cc
  12484. (execute): Call tryReserved().
  12485. (tryReserved): New function.
  12486. * src/Request.h
  12487. (Requests): New type definition.
  12488. * src/SegmentMan.h
  12489. (reserved): New variable.
  12490. * src/Util.h
  12491. (fileChecksum): New function.
  12492. (toUpper): New function.
  12493. (toLower): New function.
  12494. * src/Util.cc
  12495. (messageDigest.h): Included.
  12496. (trim): Trim \r\n\t.
  12497. (fileChecksum): New function.
  12498. (toUpper): New function.
  12499. (toLower): New function.
  12500. * src/main.cc
  12501. (normalDownload): New function.
  12502. (main): Added 2 command-line options: metalink-file,
  12503. metalink-connection. Their usage has not been written yet.
  12504. * src/MetalinkProcessor.h: New class.
  12505. * src/Xml2MetalinkProcessor.h: New class.
  12506. * src/Xml2MetalinkProcessor.cc: New class.
  12507. * src/MetalinkEntry.h: New class.
  12508. * src/MetalinkEntry.cc: New class.
  12509. * src/MetalinkResource.h: New class.
  12510. * src/MetalinkResource.cc: New class.
  12511. To add md5 message digest checking:
  12512. * src/messageDigest.h: Rewritten.
  12513. * src/MultiDiskWriter.cc: Updated according to the changes in
  12514. messageDigest.h.
  12515. * src/ShaVisitor.cc: Updated according to the changes in
  12516. messageDigest.h.
  12517. * src/Util.cc: Updated according to the changes in messageDigest.h.
  12518. * src/AbstractDiskWriter.cc: Updated according to the changes in
  12519. messageDigest.h.
  12520. To fix a bug that causes segfault when the payload length in peer
  12521. message is less than 0:
  12522. * src/PeerConnection.cc:
  12523. (receiveMessage): Fixed the bug.
  12524. * src/PeerMessageUtil.cc
  12525. (checkLength): Throw an exception if length is less than or equals to
  12526. 0.
  12527. To add new interfaces to Base64 encoding/decoding:
  12528. * src/Base64.h
  12529. (part_encode): Changed the method signature.
  12530. (encode): New function(overload).
  12531. (decode): New function(overload).
  12532. * src/Base64.cc
  12533. (part_encode): Rewritten.
  12534. (encode): Rewritten.
  12535. (encode): New function(overload).
  12536. To prevent a peer to download same piece if there is an error in
  12537. checksum:
  12538. * src/PieceMessage.cc
  12539. (receivedAction): Call peerInteraction->abortPiece().
  12540. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12541. To fix the bug that causes same have message is sent many times to
  12542. a single peer.
  12543. * src/Time.cc
  12544. (isNewer): Use Util::difftv().
  12545. * src/Util.cc
  12546. (difftv): Added a cast to (long long int).
  12547. * src/TorrentMan.cc
  12548. (advertisePiece): Use push_front.
  12549. (getAdvertisedPieceIndexes): A performance improvement was made.
  12550. To fix the bug that sends tracker requests without a sleep interval
  12551. when the number of connections is less than 15.
  12552. * src/TrackerWatcherCommand.cc
  12553. (execute): Now the number of connections is not a factor to decide
  12554. whether or not a tracker request should be sent or not.
  12555. * src/Time.h
  12556. (setTimeInSec): New function.
  12557. * src/Time.cc
  12558. (setTimeInSec): New function.
  12559. etc.
  12560. * src/ChokeMessage.cc
  12561. (receivedAction): Removed peer->snubbing = false
  12562. * src/PeerConnection.h
  12563. (receiveHandshake): Updated doc.
  12564. * src/TorrentMan.h
  12565. (getAdvertisedPieceIndexes): Updated the method signature.
  12566. * src/TorrentMan.cc
  12567. (getAdvertisedPieceIndexes): Updated the method signature.
  12568. * src/Time.h
  12569. (getTimeInMicros): Added a cast to (long long int).
  12570. (getTimeInMillis): Added a cast to (long long int).
  12571. * Release 0.5.2
  12572. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12573. To make a listening socket non-block:
  12574. * src/SocketCore.h
  12575. (setNonBlockingMode): New function.
  12576. * src/SocketCore.cc
  12577. (setNonBlockingMode): New function.
  12578. (beginListen): Added a call to setNonBlockingMode().
  12579. (acceptConnection): Call setNonBlockingMode().
  12580. (setBlockingMode): Updated.
  12581. To handle tracker's NAT-checking:
  12582. * src/PeerConnection.cc
  12583. (receiveHandshake): 'msg' param is filled with received data and
  12584. its length is assigned to 'length' param, even if all handshake
  12585. message is not yet received.
  12586. * src/PeerInteractionCommand.cc
  12587. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  12588. a new peer connects to localhost.
  12589. A call to peerInteraction->sendHandshake() was removed because
  12590. it is called from peerInteraction->receiveHandshake(true).
  12591. * src/PeerInteraction.h
  12592. (quickReplied): New variable.
  12593. (receiveHandshake): Added an argument.
  12594. * src/PeerInteraction.cc
  12595. (PeerInteraction): Added the initialization of quickReplied.
  12596. (receiveHandshake): Send handshake message as soon as the info hash
  12597. in a handshake message from a peer is correct.
  12598. To change the random part of peer id and key parameter:
  12599. * src/TorrentMan.h
  12600. (key): New variable.
  12601. * src/TorrentMan.cc
  12602. (setupInternal1): Use Util::randomAlpha() to generate random part
  12603. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  12604. key is also generated by Util::randomAlpha() and it is now 8 character
  12605. long.
  12606. * src/Util.h
  12607. (randomAlpha): New function.
  12608. * src/Util.cc
  12609. (randomAlpha): New function.
  12610. * src/TrackerWatcherCommand.cc
  12611. (execute): In a tracker request: Use torrentMan->key as key parameter.
  12612. Added no_peer_id=1.
  12613. Set snubbing flag to false when a choke message is received from a
  12614. snubbed peer.
  12615. * src/ChokeMessage.cc
  12616. (receivedAction): Set snubbing flag to false.
  12617. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12618. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  12619. * src/SimpleLogger.h (writeHeader): New function.
  12620. * src/SimpleLogger.cc (writeHeader): New function.
  12621. (writeLog): Fixed the bug that causes segfaults if exception message
  12622. contains an unescaped "%" character.
  12623. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  12624. when a tracker request fails.
  12625. * src/Request.cc (parseUrl): Query string is now handled properly.
  12626. * Release 0.5.1
  12627. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12628. To add Time class which represents a specific instant in time and
  12629. its precision is microseconds. Time checking procedures were rewritten
  12630. using this object.
  12631. * src/Time.h: New class.
  12632. * src/Time.cc: New class.
  12633. * src/AbstractCommand.h
  12634. (updateCheckPoint): Removed.
  12635. (isTimeoutDetected): Removed.
  12636. (checkPoint): Changed the type to Time.
  12637. (timeout): New variable.
  12638. (setTimeout): New function.
  12639. * src/AbstractCommand.cc
  12640. (AbstractCommand): Removed the initialization of checkPoint.
  12641. Added the initialization of timeout.
  12642. (updateCheckPoint): Removed.
  12643. (isTimeoutDetected): Removed.
  12644. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12645. * src/PeerChokeCommand.h
  12646. (checkPoint): Changed the type to Time.
  12647. * src/PeerChokeCommand.cc
  12648. (PeerChokeCommand): Removed the initialization of checkPoint.
  12649. (execute): Rewritten using Time object.
  12650. * src/TrackerWatcherCommand.h
  12651. (checkPoint): Changed the type to Time.
  12652. * src/TrackerWatcherCommand.cc
  12653. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  12654. (execute): Rewritten.
  12655. * src/ConsoleDownloadEngine.h
  12656. (cp): Changed the type to Time.
  12657. (startup): Changed the type to Time.
  12658. * src/ConsoleDownloadEngine.cc
  12659. (initStatistics): Use cp.reset(), startup.reset().
  12660. (calculateStatistics): Rewritten using Time object.
  12661. * src/PeerAbstractCommand.h
  12662. (updateCheckPoint): Removed.
  12663. (isTimeoutDetected): Removed.
  12664. (checkPoint): Changed the type to Time.
  12665. * src/PeerAbstractCommand.cc
  12666. (PeerAbstractCommand): Removed the initialization of checkPoint.
  12667. (updateCheckPoint): Removed.
  12668. (isTimeoutDetected): Removed.
  12669. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12670. * src/PeerInteractionCommand.cc
  12671. (PeerInteractionCommand): Removed the initializations of struct
  12672. timeval variables.
  12673. * src/PeerInteractionCommand.h
  12674. (keepAliveCheckPoint): Changed the type to Time.
  12675. (chokeCheckPoint): Changed the type to Time.
  12676. (freqCheckPoint): Changed the type to Time.
  12677. (haveCheckTime): Changed the type to Time.
  12678. * src/PeerInteractionCommand.cc
  12679. (executeInternal): Rewritten using Time object.
  12680. (detectMessageFlooding): Rewritten using Time object.
  12681. (checkLongTimePeerChoking): Rewritten using Time object.
  12682. (sendKeepAlive): Rewritten using Time object.
  12683. (checkHave): Rewritten using Time object.
  12684. * src/SleepCommand.h
  12685. (checkPoint): Changed the type to Time.
  12686. * src/SleepCommand.cc
  12687. (SleepCommand): Removed the initialization of checkPoint.
  12688. (execute): Rewritten using Time object.
  12689. * src/TorrentAutoSaveCommand.h
  12690. (checkPoint): Changed the type to Time.
  12691. * src/TorrentAutoSaveCommand.cc
  12692. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  12693. (execute): Rewritten.
  12694. * src/DownloadCommand.h
  12695. (sw): Changed the type to Time.
  12696. * src/DownloadCommand.cc
  12697. (DownloadCommand): Removed the initialization of sw.
  12698. (executeInternal): Rewritten.
  12699. * src/RequestSlot.h
  12700. (dispatchedTime): Changed the type to Time.
  12701. * src/RequestSlot.cc
  12702. (RequestSlot): Removed the call to setDispatchedTime().
  12703. (setDispatchedTime): Rewirtten.
  12704. (isTimeout): Rewritten.
  12705. (getLatencyInMillis): Rewritten.
  12706. * src/TorrentDownloadEngine.h
  12707. (cp): Changed the type to Time[2].
  12708. (startup): Changed the type to Time.
  12709. * src/TorrentDownloadEngine.cc
  12710. (initStatistics): Rewritten.
  12711. (calculateStatistics): Rewritten.
  12712. * src/DownloadEngine.cc
  12713. (run): Rewritten.
  12714. To detect all attempts to connect to the tracker are failed:
  12715. * src/AbstractCommand.cc
  12716. (execute): Increment e->segmentMan->errors if a command aborted.
  12717. * src/SegmentMan.h
  12718. (errors): New variable.
  12719. * src/SegmentMan.cc
  12720. (SegmentMan): Added the initialization of errors.
  12721. (init): Added the initialization of errors.
  12722. * src/TrackerWatcherCommand.cc
  12723. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  12724. request was failed.
  12725. To handle snubbed peers:
  12726. * src/PeerChokeCommand.cc
  12727. (optUnchokingPeer): Snubbed peers don't get unchoked.
  12728. (execute): Snubbed peers don't get unchoked.
  12729. * src/PeerInteraction.h
  12730. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  12731. * src/PeerInteraction.cc
  12732. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  12733. back the requested 16k block in 60 seconds.
  12734. * src/PieceMessage.cc
  12735. (receivedAction): A peer's snubbed state is cleard if it sends
  12736. the requested 16k block in 60 seconds.
  12737. * src/Peer.h
  12738. (snubbing): New variable.
  12739. * src/Peer.cc
  12740. (resetStatus): Added snubbed = false.
  12741. To fix the bug that causes have message is not sent:
  12742. * src/PeerInteractionCommand.cc
  12743. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  12744. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  12745. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  12746. * src/TorrentMan.h
  12747. (HaveEntry): New class.
  12748. (advertisePiece): Rewritten.
  12749. (getAdvertisedPieceIndexes): Rewritten.
  12750. (Haves): Changed the type.
  12751. (getAdvertisedPieceIndexes): Added an argument.
  12752. Others:
  12753. * src/TorrentMan.h
  12754. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  12755. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  12756. * src/TorrentMan.cc
  12757. (getPeer): Don't check the number of connections here.
  12758. (setupInternal1): Changed peerId.
  12759. * src/PeerInteractionCommand.h
  12760. (KEEP_ALIVE_INTERVAL): New definition.
  12761. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  12762. * src/main.cc
  12763. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  12764. * src/DownloadEngine.h: Removed unnecessary header includes.
  12765. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12766. To fix the bug that causes segfaults if a tracker returns a zero-length
  12767. list as "peers":
  12768. * src/TrackerUpdateCommand.cc
  12769. (execute): Added a check to see wether the type of peers is Data*.
  12770. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12771. * Release 0.5.0
  12772. To fix compile issue with gcc3:
  12773. * src/CancelMessage.h
  12774. (ID): Renamed as ID_t
  12775. (ID_t): New enum.
  12776. * src/RejectMessage.h
  12777. (ID): Renamed as ID_t
  12778. (ID_t): New enum.
  12779. * src/SuggestPieceMessage.h
  12780. (ID): Renamed as ID_t
  12781. (ID_t): New enum.
  12782. * src/AllowedFastMessage.h
  12783. (ID): Renamed as ID_t
  12784. (ID_t): New enum.
  12785. * src/PortMessage.h
  12786. (ID): Renamed as ID_t
  12787. (ID_t): New enum.
  12788. * src/HaveNoneMessage.h
  12789. (ID): Renamed as ID_t
  12790. (ID_t): New enum.
  12791. * src/KeepAliveMessage.h
  12792. (ID): Renamed as ID_t
  12793. (ID_t): New enum.
  12794. * src/HaveAllMessage.h
  12795. (ID): Renamed as ID_t
  12796. (ID_t): New enum.
  12797. * src/UnchokeMessage.h
  12798. (ID): Renamed as ID_t
  12799. (ID_t): New enum.
  12800. * src/BitfieldMessage.h
  12801. (ID): Renamed as ID_t
  12802. (ID_t): New enum.
  12803. * src/PieceMessage.h
  12804. (ID): Renamed as ID_t
  12805. (ID_t): New enum.
  12806. * src/RequestMessage.h
  12807. (ID): Renamed as ID_t
  12808. (ID_t): New enum.
  12809. * src/NotInterestedMessage.h
  12810. (ID): Renamed as ID_t
  12811. (ID_t): New enum.
  12812. * src/ChokeMessage.h
  12813. (ID): Renamed as ID_t
  12814. (ID_t): New enum.
  12815. * src/InterestedMessage.h
  12816. (ID): Renamed as ID_t
  12817. (ID_t): New enum.
  12818. * src/HaveMessage.h
  12819. (ID): Renamed as ID_t
  12820. (ID_t): New enum.
  12821. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12822. * src/PeerAbstractCommand.h
  12823. (beforeSocketCheck): Removed.
  12824. * src/PeerAbstractCommand.cc
  12825. Modified in order to call executeInternal() even if socket check
  12826. and upload limit check fail.
  12827. * src/PeerInteractionCommand.h
  12828. (keepAlive): Removed.
  12829. (sendKeepAlive): New function.
  12830. (checkHave): New function.
  12831. (beforeSocketCheck): Removed.
  12832. * src/PeerInteractionCommand.cc
  12833. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  12834. calls to checkHave() and sendKeepAlive().
  12835. (keepAlive): Renamed to sendKeepAlive().
  12836. (sendKeepAlive): New function.
  12837. (beforeSocketCheck): Removed.
  12838. (checkHave): New function.
  12839. * src/BitfieldMan.cc
  12840. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  12841. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  12842. 0.
  12843. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  12844. * src/TorrentMan.h
  12845. (UsedPieces): Removed.
  12846. (Pieces): New type definition.
  12847. * src/Piece.h: Updated doc.
  12848. * src/Peer.h
  12849. (totalLength): Removed.
  12850. * src/Peer.cc
  12851. (updateLatency): Fixed the latency calculation.
  12852. * src/TorrentMan.cc
  12853. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  12854. than or equal to MAX_PEER_LIST_SIZE.
  12855. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  12856. then return false.
  12857. (deleteOldErrorPeers): Rewritten.
  12858. (deleteUsedPiece): Fixed the miss use of STL remove.
  12859. * src/PeerInteraction.h
  12860. (Pieces): Removed.
  12861. (deleteTimeoutRequestSlot): Removed.
  12862. (deleteCompletedRequestSlot): Removed.
  12863. (checkRequestSlot): New function.
  12864. * src/PeerInteraction.cc
  12865. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  12866. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  12867. (checkRequestSlot): New function.
  12868. * src/DownloadEngine.cc
  12869. (run): Clear activeSockets before calling waitData().
  12870. (waitData): Removed a call to activeSockets.clear().
  12871. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12872. To attempt to handle EINTR:
  12873. * src/SocketCore.cc
  12874. (isReadable): Added EINTR handling.
  12875. (isWritable): Added EINTR handling.
  12876. To improve the performance:
  12877. * src/AbstractCommand.cc
  12878. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12879. * src/PeerInteractionCommand.h
  12880. (receiveMessage): Renamed as receiveMessages().
  12881. (receiveMessages): New function.
  12882. * src/PeerInteractionCommand.cc
  12883. (executeInternal): receiveMessage loop is moved to new receiveMessages
  12884. () function. detectMessageFlooding() is moved here.
  12885. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  12886. (). The flooding detection for have message is comment out.
  12887. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  12888. Util::difftv().
  12889. (receiveMessage): Renamed as receiveMessages().
  12890. (receiveMessages): New function.
  12891. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  12892. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  12893. * src/SleepCommand.cc
  12894. (execute): Use Util::difftvsec() instead of Util::difftv().
  12895. * src/BitfieldMan.h
  12896. (getNthBitIndex): New function.
  12897. (hasMissingPiece): New function.
  12898. (getAllMissingIndexes): New function.
  12899. * src/BitfieldMan.cc
  12900. (countSetBit): Rewritten.
  12901. (getNthBitIndex): New function.
  12902. (getMissingIndexRandomly): Rewritten.
  12903. (hasMissingPiece): New function.
  12904. (getAllMissingIndexes): New function.
  12905. * src/TorrentMan.cc
  12906. (hasMissingPiece): New function.
  12907. (deleteUsedPiece): Rewritten using STL.
  12908. * src/PeerInteraction.cc
  12909. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  12910. is a little bit faster then TorrentMan::getMissingPieceIndex().
  12911. (addRequests): Updated the number of pending requests.
  12912. * src/PeerAbstractCommand.cc
  12913. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12914. (execute): Returns true if TorrentMan::isHalt() is true.
  12915. Corrected the condition of upload limit checking.
  12916. * src/Util.h
  12917. (countBit): New function.
  12918. * src/Util.cc
  12919. (nbits): New variable.
  12920. (countBit): New function.
  12921. * src/DownloadEngine.h
  12922. (SockCmdMap): New type definition.
  12923. (waitData): Added an argument.
  12924. (addSocket): Added an argument.
  12925. (addSocketForReadCheck): Added an argument.
  12926. (addSocketForWriteCheck): Added an argument.
  12927. * src/DownloadEngine.cc
  12928. (run): Executes only commands whose sockets are ready to read or write.
  12929. All commands are executed in every 1 second.
  12930. (waitData): Calls select() again if it returned
  12931. EINTR.
  12932. (addSocket): Saves socket and command object pair to the map.
  12933. (deleteSocket): Deletes socket and command object pair from the map.
  12934. (addSocketForReadCheck): Added an argument.
  12935. (addSocketForWriteCheck): Added an argument.
  12936. * src/DownloadCommand.cc
  12937. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  12938. To send "event=stopped" to the tracker when the application finishes:
  12939. * src/PeerChokeCommand.h
  12940. (checkPoint): New variable.
  12941. * src/PeerChokeCommand.cc
  12942. (PeerChokeCommand): Added the initialization of checkPoint.
  12943. (execute): The interval check is now done by checkPoint, not
  12944. SleepCommand. Return true if TorrentMan::isHalt() is true.
  12945. * src/TorrentMan.h
  12946. (halt): New function.
  12947. (hasMissingPiece): New function.
  12948. (isHalt): New function.
  12949. (setHalt): New function.
  12950. * src/TorrentMan.cc
  12951. (TorrentMan): Added the initialization of halt.
  12952. * src/TorrentAutoSaveCommand.h
  12953. (checkPoint): New variable.
  12954. * src/PeerListenCommand.cc
  12955. (execute): Returns true if TorrentMan::isHalt() is true.
  12956. * src/main.cc
  12957. (setSignalHander): Added flags argument.
  12958. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  12959. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  12960. Removed printDownloadAbortMessage() after torrent downloading loop.
  12961. * src/TorrentAutoSaveCommand.cc
  12962. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  12963. (execute): Returns true if TorrentMan::isHalt() is true.
  12964. The interval check is now done by checkPoint, not SleepCommand.
  12965. * src/TrackerWatcherCommand.cc
  12966. (execute): If TorrentMan::isHalt(), then create a tracker request with
  12967. event=stopped.
  12968. * src/TrackerUpdateCommand.cc
  12969. (prepareForRetry): Do not use SleepCommand here.
  12970. (execute): Returns true if TorrentMan::isHalt() is true.
  12971. Others:
  12972. * src/TorrentMan.cc
  12973. (getMissingPieceIndex): Updated log message.
  12974. * src/PeerInteraction.cc
  12975. (createPeerMessag): Updated log message.
  12976. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12977. To add the ability to download several pieces in mix in a command and
  12978. increase the number of request slots according to request-cancel
  12979. latency:
  12980. * src/PeerInteractionCommand.cc
  12981. (executeInternal): The number of messages to be received at a time
  12982. is increased from 10 to 50.
  12983. * src/LogFactory
  12984. (getInstance): Added NullLogger.
  12985. * src/NullLogger.h: New class.
  12986. * src/BitfieldMan.h
  12987. (getMissingIndex): New function.
  12988. * src/BitfieldMan.cc
  12989. (getMissingIndex): New function.
  12990. * src/TorrentMan.h
  12991. (checkOutPiece): New function.
  12992. (getMissingPieceIndex): New function.
  12993. (getMissingFastPieceIndex): New function.
  12994. (getMissingFastPiece): New function.
  12995. * src/TorrentMan.cc
  12996. (updatePiece): Rewritten using STL.
  12997. (syncPiece): Rewritten using STL.
  12998. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  12999. checkOutPiece().
  13000. (getMissingPieceIndex): New function.
  13001. (getMissingFastPieceIndex): New function.
  13002. (getMissingFastPiece): New function.
  13003. (checkOutPiece): New function.
  13004. * src/PeerInteraction.h
  13005. (Pieces): New type definition.
  13006. (piece): Removed.
  13007. (pieces): New variable.
  13008. (getNewPieceAndSendInterest): Added the "piece" argument.
  13009. (abortPiece): Added the "piece" argument.
  13010. (abortAllPieces): New function.
  13011. (isInRequestSlot): New function.
  13012. (hasDownloadPiece): Added the "index" argument.
  13013. (setDownloadPiece): Removed.
  13014. (getDownloadPiece): Added the "index" argument.
  13015. (updatePiece): New function.
  13016. (createRequestMessage): Added the "index" argument.
  13017. * src/PeerInteraction.cc
  13018. (onChoked): Rewritten.
  13019. (abortPiece): Rewirtten.
  13020. (abortAllPieces): New function.
  13021. (deleteTimeoutRequestSlot): Rewritten.
  13022. Clarified code a little bit.
  13023. (deleteCompletedRequestSlot): Rewritten.
  13024. (isInRequestSlot): New function.
  13025. (syncPiece): Rewritten.
  13026. (updatePiece): New function.
  13027. (getNewPieceAndSendInterest): Rewritten.
  13028. (addRequests): Rewritten.
  13029. (getDownloadPiece): Rewritten.
  13030. (hasDownloadPiece): Rewritten.
  13031. (createRequestMessage): Added the "index" argument.
  13032. * src/common.h
  13033. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  13034. (DIV_FLOOR): New definition.
  13035. * src/PieceMessage.cc
  13036. (receivedAction): Update request-piece latency here.
  13037. * src/RequestSlot.h
  13038. (getLatencyInMillis): New function.
  13039. * src/RequestSlot.cc
  13040. (isTimeout): Rewritten using getLatencyInMillis.
  13041. (getLatencyInMillis): New function.
  13042. * src/Piece.h
  13043. (operator==): New function.
  13044. (getMissingBlockIndex): New function.
  13045. * src/Piece.cc
  13046. (operator==): New function.
  13047. (getMissingBlockIndex): New function.
  13048. * src/Peer.h
  13049. (DEFAULT_LATENCY): New definition.
  13050. (latency): New variable.
  13051. (updateLatency): New function.
  13052. (getLatency): New function.
  13053. * src/Peer.cc
  13054. (resetStatus): Reset latecy.
  13055. (updateLatency): New function.
  13056. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13057. * src/SocketCore.cc
  13058. (isReadable): Added secure to the condition.
  13059. * src/HttpConnection.cc
  13060. (receiveResponse): Fixed a bug that causes no response header
  13061. exception.
  13062. * src/Peer.h
  13063. (getFastSet): Fixed the return value type.
  13064. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13065. To remove a wait from download loop:
  13066. * src/DownloadEngine.cc
  13067. (run): Comment out shortSleep.
  13068. To rewrite the message handling:
  13069. * src/SimplePeerMessage.h: New class.
  13070. * src/SimplePeerMessage.cc: New class.
  13071. * src/CancelMessage.h: Derived from SimplePeerMessage.
  13072. (msg): New variable.
  13073. (create): New function.
  13074. (send): Removed.
  13075. (getMessage): New function.
  13076. (getMessageLength): New function.
  13077. * src/CancelMessage.cc
  13078. (create): New function.
  13079. (receivedAction): Replaced deleteRequestMessageInQueue with
  13080. rejectPieceMessageInQueue.
  13081. (send): Removed.
  13082. (getMessage): New function.
  13083. (getMessageLength): New function.
  13084. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  13085. (msg): New variable.
  13086. (msgLength): New variable.
  13087. (~BitfieldMessage): Deleted msg.
  13088. (send): Removed.
  13089. (getMessage): New function.
  13090. (getMessageLength): New function.
  13091. * src/BitfieldMessage.cc
  13092. (create): New function.
  13093. (send): Removed.
  13094. (getMessage): New function.
  13095. (getMessageLength): New function.
  13096. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  13097. (msg): New variable.
  13098. (sendPredicate): New function.
  13099. (onSendComplete): New function.
  13100. (send): Removed.
  13101. (getMessage): New function.
  13102. (getMessageLength): New function.
  13103. (create): New function.
  13104. * src/ChokeMessage.cc
  13105. (create): New function.
  13106. (send): Removed.
  13107. (sendPredicate): New function.
  13108. (getMessage): New function.
  13109. (getMessageLength): New function.
  13110. (onSendComplete): New function.
  13111. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  13112. (msg): New variable.
  13113. (send): Removed.
  13114. (getMessage): New function.
  13115. (getMessageLength): New function.
  13116. * src/KeepAliveMessage.cc
  13117. (send): Removed.
  13118. (getMessage): New function.
  13119. (getMessageLength): New function.
  13120. * src/PortMessage.h
  13121. (create): New function.
  13122. (receivedAction): Updated log message.
  13123. * src/PortMessage.cc: New file.
  13124. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  13125. (msg): New variable.
  13126. (sendPredicate): New function.
  13127. (onSendComplete): New function.
  13128. (create): New function.
  13129. (send): Removed.
  13130. (getMessage): New function.
  13131. (getMessageLength): New function.
  13132. * src/UnchokeMessage.cc
  13133. (create): New function.
  13134. (send): Removed.
  13135. (sendPredicate): New function.
  13136. (getMessage): New function.
  13137. (getMessageLength): New function.
  13138. (onSendComplete): New function.
  13139. * src/PieceMessage.h
  13140. (leftPieceDataLength): Removed.
  13141. (leftDataLength): New variable.
  13142. (headerSend): New variable.
  13143. (pendingCount): New variable.
  13144. (msgHeader): New variable.
  13145. (sendPieceData): New function.
  13146. (incrementPendingCount): New function.
  13147. (isPendingCountMax): New function.
  13148. (create): New function.
  13149. (getMessageHeader): New function.
  13150. (getMessageHeaderLength): New function.
  13151. * src/PieceMessage.cc
  13152. (create): New function.
  13153. (getMessageHeader): New function.
  13154. (getMessageHeaderLength): New function.
  13155. (send): Rewritten.
  13156. (sendPieceData): New function.
  13157. * src/HaveMessage.h: Derived from SimplePeerMessage.
  13158. (msg): New variable.
  13159. (create): New function.
  13160. (getMessage): New function.
  13161. (getMessageLength): New function.
  13162. * src/HaveMessage.cc
  13163. (create): New function.
  13164. (send): Removed.
  13165. (sendPieceData): New function.
  13166. (getMessage): New function.
  13167. (getMessageLength): New function.
  13168. * src/RequestMessage.h: Derived from SimplePeerMessage.
  13169. (msg): New variable.
  13170. (create): New function.
  13171. (send): Removed.
  13172. (getMessage): New function.
  13173. (getMessageLength): New function.
  13174. * src/RequestMessage.cc
  13175. (create): New function.
  13176. (receivedAction): Added the handling of fast extension.
  13177. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  13178. (send): Removed.
  13179. (getMessage): New function.
  13180. (getMessageLength): New function.
  13181. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  13182. (msg): New variable.
  13183. (sendPredicate): New function.
  13184. (onSendComplete): New function.
  13185. (create): New function.
  13186. (getMessage): New function.
  13187. (getMessageLength): New function.
  13188. * src/InterestedMessage.cc
  13189. (create): New function.
  13190. (send): Removed.
  13191. (sendPieceData): New function.
  13192. (getMessage): New function.
  13193. (getMessageLength): New function.
  13194. (onSendComplete): New function.
  13195. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  13196. (msg): New variable.
  13197. (sendPieceData): New function.
  13198. (onSendComplete): New function.
  13199. (create): New function.
  13200. (send): Removed.
  13201. (getMessage): New function.
  13202. (getMessageLength): New function.
  13203. * src/NotInterestedMessage.cc
  13204. (create): New function.
  13205. (send): Removed.
  13206. (sendPredicate): New function.
  13207. (getMessage): New function.
  13208. (getMessageLength): New function.
  13209. (onSendComplete): New function.
  13210. * src/AllowedFastMessage.h: New class.
  13211. * src/AllowedFastMessage.cc: New class.
  13212. * src/RejectMessage.h: New class.
  13213. * src/RejectMessage.cc: New class.
  13214. * src/SuggestPieceMessage.h: New class.
  13215. * src/SuggestPieceMessage.cc: New class.
  13216. * src/HaveAllMessage.h: New class.
  13217. * src/HaveAllMessage.cc: New class.
  13218. * src/HaveNoneMessage.h: New class.
  13219. * src/HaveNoneMessage.cc: New class.
  13220. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  13221. (msg): New variable.
  13222. (reserved): New variable.
  13223. (create): New function.
  13224. (getId): New function.
  13225. (receivedAction): New function.
  13226. (getMessage): New function.
  13227. (getMessageLength): New function.
  13228. (isFastExtensionSupported): New function.
  13229. * src/HandshakeMessage.cc
  13230. (HandshakeMessage): Moved here from HandshakeMessage.h.
  13231. (create): New function.
  13232. (getMessage): New function.
  13233. (getMessageLength): New function.
  13234. (toString): Added the output of reserved field.
  13235. (check): Added const qualifier.
  13236. (isFastExtensionSupported): New function.
  13237. * src/PeerMessageUtil.h
  13238. (createChokeMessage): Removed.
  13239. (createUnchokeMessage): Removed.
  13240. (createInterestedMessage): Removed.
  13241. (createNotInterestedMessage): Removed.
  13242. (createHaveMessage): Removed.
  13243. (createBitfieldMessage): Removed.
  13244. (createRequestMessage): Removed.
  13245. (createCancelMessage): Removed.
  13246. (createPieceMessage): Removed.
  13247. (createPortMessage): Removed.
  13248. (createChokeMessage): Removed.
  13249. (createUnchokeMessage): Removed.
  13250. (createInterestedMessage): Removed.
  13251. (createNotInterestedMessage): Removed.
  13252. (createHaveMessage): Removed.
  13253. (createBitfieldMessage): Removed.
  13254. (createRequestMessage): Removed.
  13255. (createCancelMessage): Removed.
  13256. (createPieceMessage): Removed.
  13257. (createKeepAliveMessage): Removed.
  13258. (createHandshakeMessage): Removed.
  13259. (setIntParam): New function.
  13260. (createPeerMessageString): New function.
  13261. * src/PeerMessageUtil.cc
  13262. (createChokeMessage): Removed.
  13263. (createUnchokeMessage): Removed.
  13264. (createInterestedMessage): Removed.
  13265. (createNotInterestedMessage): Removed.
  13266. (createHaveMessage): Removed.
  13267. (createBitfieldMessage): Removed.
  13268. (createRequestMessage): Removed.
  13269. (createCancelMessage): Removed.
  13270. (createPieceMessage): Removed.
  13271. (createPortMessage): Removed.
  13272. (createRequestMessage): Removed.
  13273. (createCancelMessage): Removed.
  13274. (createPieceMessage): Removed.
  13275. (createHaveMessage): Removed.
  13276. (createChokeMessage): Removed.
  13277. (createUnchokeMessage): Removed.
  13278. (createInterestedMessage): Removed.
  13279. (createNotInterestedMessage): Removed.
  13280. (createBitfieldMessage): Removed.
  13281. (createKeepAliveMessage): Removed.
  13282. (createHandshakeMessage): Removed.
  13283. (setIntParam): New function.
  13284. (createPeerMessageString): New function.
  13285. * src/PeerConnection.h
  13286. (peer): Removed.
  13287. (torrentMan): Removed.
  13288. (createNLengthMessage): Removed.
  13289. (setIntParam): Removed.
  13290. (writeOutgoingMessageLog): Removed all overloaded functions.
  13291. (PeerConnection): Deleted peer and torrentMan from its arguments.
  13292. (sendMessage): New function.
  13293. (sendHandshake): Removed.
  13294. (sendKeepAlive): Removed.
  13295. (sendChoke): Removed.
  13296. (sendUnchoke): Removed.
  13297. (sendInterested): Removed.
  13298. (sendNotInterested): Removed.
  13299. (sendHave): Removed.
  13300. (sendBitfield): Removed.
  13301. (sendRequest): Removed.
  13302. (sendPiece): Removed.
  13303. (sendPieceHeader): Removed.
  13304. (sendPieceData): Removed.
  13305. (sendCancel): Removed.
  13306. (getPeer): Removed.
  13307. * src/PeerConnection.cc
  13308. (PeerConnection): Deleted peer and torrentMan from its arguments.
  13309. (sendHandshake): Removed.
  13310. (sendKeepAlive): Removed.
  13311. (createNLengthMessage): Removed.
  13312. (setIntParam): Removed.
  13313. (writeOutgoingMessageLog): Removed all overloaded functions.
  13314. (sendChoke): Removed.
  13315. (sendUnchoke): Removed.
  13316. (sendInterested): Removed.
  13317. (sendNotInterested): Removed.
  13318. (sendHave): Removed.
  13319. (sendBitfield): Removed.
  13320. (sendRequest): Removed.
  13321. (sendPiece): Removed.
  13322. (sendPieceHeader): Removed.
  13323. (sendPieceData): Removed.
  13324. (sendMessage): New function.
  13325. (sendCancel): Removed.
  13326. * src/PeerInteractionCommand.cc
  13327. (PeerInteractionCommand): Call setUploadLimit.
  13328. (executeInternal): Call setUploadLimit.
  13329. Added the handling of "inProgress" state of handshake message.
  13330. Call sendBitfield() or sendAllowdFast() instead of deprecated
  13331. sendNow().
  13332. (keepAlive): Call addMessage and sendMessage instead of deprecated
  13333. sendNow().
  13334. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  13335. * src/TorrentMan.h
  13336. (PEER_ID_LENGTH): New definition.
  13337. (hasAllPieces): New function.
  13338. * src/TorrentMan.cc
  13339. (getMissingPiece): Added the handling of fast extension.
  13340. (cancelPiece): Call updatePiece().
  13341. (hasAllPieces): New function.
  13342. * src/PeerInteraction.h
  13343. (fastSet): New variable.
  13344. (getNewPieceAndSendInterest): Changed the return type to void.
  13345. (send): Renamed as sendMessages.
  13346. (deleteAllRequestSlot): Removed.
  13347. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  13348. (cancelAllRequest): Removed all overloaded functions.
  13349. (deleteAllRequestSlot): Removed.
  13350. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  13351. (rejectPieceMessageInQueue): New function.
  13352. (rejectAllPieceMessageInQueue): New function.
  13353. (onChoked): New function.
  13354. (isSendingMessageInProgress): New function.
  13355. (getCorrespondingRequestSlot): Changed its arguments.
  13356. (isInFastSet): New function.
  13357. (addFastSetIndex): New function.
  13358. (addRequests): New function.
  13359. (sendNow): Removed.
  13360. (trySendNow): Removed.
  13361. (sendBitfield): New function.
  13362. (sendAllowdFast): New function.
  13363. (createHaveAllMessage): New function.
  13364. (createHaveNoneMessage): New function.
  13365. (createRejectMessage): New function.
  13366. (createAllowedFastMessage): New function.
  13367. * src/PeerInteraction.cc
  13368. (send): Renamed as sendMessages.
  13369. (sendMessages): New function.
  13370. (MsgPushBack): New class.
  13371. (isSendingMessageInProgress): New function.
  13372. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  13373. (rejectAllPieceMessageInQueue): New function.
  13374. Added the handling of fast extension.
  13375. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  13376. (rejectPieceMessageInQueue): New function.
  13377. Added the handling of fast extension.
  13378. (deleteRequestSlot): Replaced for loop with std::find.
  13379. (onChoked): New function.
  13380. (deleteAllRequestSlot): Removed.
  13381. (abortPiece): Rewirtten.
  13382. (deleteTimeoutRequestSlot): Updated log messages.
  13383. (getCorrespondingRequestSlot): Changed its arguments.
  13384. (cancelAllRequest): Removed all overloaded functions.
  13385. (receiveHandshake): Added the check to see whether an incoming peer
  13386. supports fast extension.
  13387. (createHandshakeMessage): Use HandshakeMessage::create instead of
  13388. PeerMessageUtil.
  13389. (createPeerMessage): Use create() of each message class instead of
  13390. PeerMessageUtil.
  13391. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  13392. AllowedFastMessage were added.
  13393. (getNewPieceAndSendInterest): Changed its return value type to void.
  13394. Added the handling of fast extension.
  13395. (addRequests): New function.
  13396. (sendNow): Removed.
  13397. (sendHandshake): Rewritten.
  13398. (trySendNow): Removed.
  13399. (sendBitfield): New function.
  13400. (sendAllowdFast): New function.
  13401. (isInFastSet): New function.
  13402. (addFastSetIndex): New function.
  13403. (createRequestMessage): Use RequestMessage::create instead of
  13404. PeerMessageUtil.
  13405. (createCancelMessage): Use CancelMessage::create instead of
  13406. PeerMessageUtil.
  13407. (createPieceMessage): Use PieceMessage::create instead of
  13408. PeerMessageUtil.
  13409. (createHaveMessage): Use HaveMessage::create instead of
  13410. PeerMessageUtil.
  13411. (createChokeMessage): Use ChokeMessage::create instead of
  13412. PeerMessageUtil.
  13413. (createUnchokeMessage): Use UnchokeMessage::create instead of
  13414. PeerMessageUtil.
  13415. (createInterestedMessage): Use InterestedMessage::create instead of
  13416. PeerMessageUtil.
  13417. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  13418. of PeerMessageUtil.
  13419. (createBitfieldMessage): Use BitfieldMessage::create instead of
  13420. PeerMessageUtil.
  13421. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  13422. PeerMessageUtil.
  13423. (createHaveAllMessage): New function.
  13424. (createHaveNoneMessage): New function.
  13425. (createRejectMessage): New function.
  13426. (createAllowedFastMessage: New function.
  13427. * src/Util.h
  13428. (sha1Sum): New function.
  13429. (computeFastSet): New function.
  13430. * src/Util.cc
  13431. (sha1Sum): New function.
  13432. (computeFastSet): New function.
  13433. * src/Peer.h
  13434. (fastExtensionEnabled): New variable.
  13435. (fastSet): New variable.
  13436. (setAllBitfield): New function.
  13437. (setFastExtensionEnabled): New function.
  13438. (isFastExtensionEnabled): New function.
  13439. (addFastSetIndex): New function.
  13440. (getFastSet): New function.
  13441. (isInFastSet): New function.
  13442. (countFastSet): New function.
  13443. * src/Peer.cc
  13444. (isInFastSet): New function.
  13445. (addFastSetIndex): New function.
  13446. (setAllBitfield): New function.
  13447. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  13448. sockets.
  13449. * src/PeerAbstractCommand.cc
  13450. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  13451. and uploadLimit.
  13452. (execute): Changed the procedure of checking sockets. The upload speed
  13453. checking were added.
  13454. (setUploadLimit): New function.
  13455. (setUploadLimitCheck): New function.
  13456. * src/PeerAbstractCommand.h
  13457. (setUploadLimit): New function.
  13458. (setUploadLimitCheck): New function.
  13459. (uploadLimit): New variable.
  13460. (uploadLimitCheck): New variable.
  13461. To contact a tracker regularly:
  13462. * src/TrackerWatcherCommand.h (interval): New variable.
  13463. (checkPoint): New variable.
  13464. (TrackerWatcherCommand): Added interval argument.
  13465. * src/TrackerWatcherCommand.cc
  13466. (TrackerWatcherCommand): Initialized checkPoint.
  13467. (execute): Now a tracker is contacted in every specified period.
  13468. If peer list is not needed, send request with numwant=0.
  13469. * src/TrackerUpdateCommand.cc
  13470. (execute): Updated log messages.
  13471. * src/DownloadEngine.cc
  13472. (~DownloadEngine): Removed two asserts.
  13473. (waitData): Uncommented wfds. May be a bug fix.
  13474. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13475. * src/PeerInteractionCommand.h
  13476. (checkInactiveConnection): Removed.
  13477. * src/PeerInteractionCommand.cc
  13478. (executeInternal): Removed following function calls:
  13479. detectMessageFlooding(), checkLongTimePeerChoking and
  13480. checkInactiveConnection().
  13481. (checkInactiveConnection): Removed.
  13482. (detectMessageFlooding): Removed function call to
  13483. checkInactiveConnection().
  13484. * src/PeerMessageUtil.h
  13485. (createChokeMessage): New function. Overload.
  13486. (createUnchokeMessage): New function. Overload.
  13487. (createInterestedMessage): New function. Overload.
  13488. (createNotInterestedMessage): New function. Overload.
  13489. (createHaveMessage): New function. Overload.
  13490. (createBitfieldMessage): New function. Overload.
  13491. (createRequestMessage): New function. Overload.
  13492. (createCancelMessage): New function. Overload.
  13493. (createPieceMessage): New function. Overload.
  13494. (createKeepAliveMessage): New function. Overload.
  13495. * src/PeerMessageUtil.cc
  13496. (createChokeMessage): New function. Overload.
  13497. (createUnchokeMessage): New function. Overload.
  13498. (createInterestedMessage): New function. Overload.
  13499. (createNotInterestedMessage): New function. Overload.
  13500. (createHaveMessage): New function. Overload.
  13501. (createBitfieldMessage): New function. Overload.
  13502. (createRequestMessage): New function. Overload.
  13503. (createCancelMessage): New function. Overload.
  13504. (createPieceMessage): New function. Overload.
  13505. (createKeepAliveMessage): New function. Overload.
  13506. * src/SendMessageQueue.cc
  13507. (createRequestMessage): Use PeerMessageUtil.
  13508. (createCancelMessage): Use PeerMessageUtil.
  13509. (createPieceMessage): Use PeerMessageUtil.
  13510. (createHaveMessage): Use PeerMessageUtil.
  13511. (createChokeMessage): Use PeerMessageUtil.
  13512. (createUnchokeMessage): Use PeerMessageUtil.
  13513. (createInterestedMessage): Use PeerMessageUtil.
  13514. (createNotInterestedMessage): Use PeerMessageUtil.
  13515. (createBitfieldMessage): Use PeerMessageUtil.
  13516. (createKeepAliveMessage): Use PeerMessageUtil.
  13517. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  13518. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  13519. * src/PeerInteraction.h: New class.
  13520. * src/PeerInteraction.cc: New class.
  13521. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13522. Each peer message has its own class.
  13523. * src/PendingMessages.h: Removed.
  13524. * src/PendingMessages.cc: Removed. The sending process was moved to
  13525. each message class.
  13526. * src/RequestSlotMan.h: Removed.
  13527. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  13528. SendMessageQueue.
  13529. * src/RequestMessage.h: New class.
  13530. * src/RequestMessage.cc: New class.
  13531. * src/CancelMessage.h: New class.
  13532. * src/CancelMessage.cc: New class.
  13533. * src/BitfieldMessage.h: New class.
  13534. * src/BitfieldMessage.cc: New class.
  13535. * src/ChokeMessage.h: New class.
  13536. * src/ChokeMessage.cc: New class.
  13537. * src/KeepAliveMessage.h: New class.
  13538. * src/KeepAliveMessage.cc: New class.
  13539. * src/PortMessage.h: New class.
  13540. * src/UnchokeMessage.h: New class.
  13541. * src/UnchokeMessage.cc: New class.
  13542. * src/PieceMessage.h: New class.
  13543. * src/PieceMessage.cc: New class.
  13544. * src/HaveMessage.h: New class.
  13545. * src/HaveMessage.cc: New class.
  13546. * src/BitfieldMessage.h: New class.
  13547. * src/BitfieldMessage.cc: New class.
  13548. * src/NotInterestedMessage.h: New class.
  13549. * src/NotInterestedMessage.cc: New class.
  13550. * src/InterestedMessage.h: New class.
  13551. * src/InterestedMessage.cc: New class.
  13552. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  13553. (getSendMessageQueue): New function.
  13554. (setSendMessageQueue): New function.
  13555. * src/HandshakeMessage.cc: New class.
  13556. * src/PeerConnection.h (receiveMessage): Changed return value and
  13557. arguments.
  13558. (receiveHandshake): Changed return value and arguments.
  13559. * src/PeerConnection.cc (receiveMessage): Do not create message class
  13560. here.
  13561. (receiveHandshake): Do not create handshake class here.
  13562. * src/PeerInteractionCommand.h (peerConnection): Removed.
  13563. (piece): Removed.
  13564. (syncPiece): Removed.
  13565. (sendInterest): Removed.
  13566. (sendMessages): Removed.
  13567. (createRequestPendingMessage): Removed.
  13568. (checkPieceHash): Removed.
  13569. (erasePieceOnDisk): Removed.
  13570. (getNewPieceAndSendInterest): Removed.
  13571. (onGotNewPice): Removed.
  13572. (onGotWrongPiece): Removed.
  13573. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13574. Removed peerConnection, piece.
  13575. (~PeerInteractionCommand): Removed peerConnection.
  13576. (executeInternal): Use sendMessageQueue instead of peerConnection.
  13577. (syncPiece): Moved to SendMessageQueue.
  13578. (decideChoking): Removed PendingMessage.
  13579. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  13580. The action after receiving peer message was moved to each message
  13581. class.
  13582. (onGotNewPice): Moved to SendMessageQueue.
  13583. (onGotWrongPiece): Moved to SendMessageQueue.
  13584. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  13585. (sendInterest): Moved to SendMessageQueue.
  13586. (createRequestPendingMessage): Removed.
  13587. (sendMessages): Moved to SendMessageQueue.
  13588. (onAbort): Use SendMessageQueue::abortPiece()
  13589. (keepAlive): Use sendMessageQueue instead of peerConnection.
  13590. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  13591. (checkPieceHash): Moved to SendMessageQueue.
  13592. (erasePieceOnDisk): Moved to SendMessageQueue.
  13593. * src/PeerMessageUtil.h
  13594. (createBitfieldMessage): Removed.
  13595. (createHaveMessage): Changed return value and arguments.
  13596. (createBitfieldMessage): Changed return value and arguments.
  13597. (createRequestCancelMessage): Removed.
  13598. (createPieceMessage): Changed return value and arguments.
  13599. (getShortIntParam): New function.
  13600. (checkIndex): Changed arguments.
  13601. (checkBegin): Changed arguments.
  13602. (checkLength): Changed arguments.
  13603. (checkPieceOffset): Removed.
  13604. (checkRange): New function.
  13605. (checkBitfield): Changed arguments.
  13606. (createPeerMessage): Removed.
  13607. (checkIntegrity): Removed.
  13608. (createHandshakeMessage): Changed arguments.
  13609. (createChokeMessage): New function.
  13610. (createUnchokeMessage): New function.
  13611. (createInterestedMessage): New function.
  13612. (createNotInterestedMessage): New function.
  13613. (createRequestMessage): New function.
  13614. (createCancelMessage): New function.
  13615. (createPortMessage): New function.
  13616. * src/PeerMessageUtil.cc
  13617. (createBitfieldMessage): Removed.
  13618. (createHaveMessage): Changed return value and arguments.
  13619. (createBitfieldMessage): Changed return value and arguments.
  13620. (createRequestCancelMessage): Removed.
  13621. (createPieceMessage): Changed return value and arguments.
  13622. (getShortIntParam): New function.
  13623. (checkIndex): Changed arguments.
  13624. (checkBegin): Changed arguments.
  13625. (checkLength): Changed arguments.
  13626. (checkPieceOffset): Removed.
  13627. (checkRange): New function.
  13628. (checkBitfield): Changed arguments.
  13629. (createPeerMessage): Removed.
  13630. (checkIntegrity): Removed.
  13631. (createHandshakeMessage): Changed arguments.
  13632. (createChokeMessage): New function.
  13633. (createUnchokeMessage): New function.
  13634. (createInterestedMessage): New function.
  13635. (createNotInterestedMessage): New function.
  13636. (createRequestMessage): New function.
  13637. (createCancelMessage): New function.
  13638. (createPortMessage): New function.
  13639. * src/PeerMessage.h
  13640. (id): Removed.
  13641. (index): Removed.
  13642. (begin): Removed.
  13643. (length): Removed.
  13644. (bitfield): Removed.
  13645. (bitfieldLength): Removed.
  13646. (block): Removed.
  13647. (blockLength): Removed.
  13648. (inProgress): New variable.
  13649. (cuid): New variable.
  13650. (peer): New variable.
  13651. (sendMessageQueue): New variable.
  13652. (logger): New variable.
  13653. (setBitfield): Removed.
  13654. (getBitfield): Removed.
  13655. (setBlock): Removed.
  13656. (getBlock): Removed.
  13657. (getBitfieldLength): Removed.
  13658. (getBlockLength): Removed.
  13659. (isInProgress): New function.
  13660. (toString): Made pure virtual.
  13661. (check): New function.
  13662. (send): New function.
  13663. (receivedAction): New function.
  13664. (getId): Made pure virtual.
  13665. (setId): Removed.
  13666. (getIndex): Removed.
  13667. (setIndex): Removed.
  13668. (getBegin): Removed.
  13669. (setBegin): Removed.
  13670. (getLength): Removed.
  13671. (setLength): Removed.
  13672. (getCuid): New function.
  13673. (setCuid): New function.
  13674. (getPeer): New function.
  13675. (setPeer): New function.
  13676. (getSendMessageQueue): New function.
  13677. (setSendMessageQueue): New function.
  13678. (ID): Removed.
  13679. * src/PeerMessage.cc
  13680. (setBitfield): Removed.
  13681. (setBlock): Removed.
  13682. (toString): Removed.
  13683. * src/TorrentMan.h
  13684. (getPieceLength): New function.
  13685. (getPieceLength): New function.
  13686. * src/SendMessageQueue.h
  13687. (REQUEST_TIME_OUT): New definition.
  13688. (RequestSlots): New definition.
  13689. (MessageQueue): New definition.
  13690. (requestSlotMan): Removed.
  13691. (pendingMessages): Removed.
  13692. (requestSlots): New variable.
  13693. (messageQueue): New variable.
  13694. (torrentMan): New variable.
  13695. (peerConnection): New variable.
  13696. (peer): New variable.
  13697. (piece): New variable.
  13698. (getNewPieceAndSendInterest): New function.
  13699. (createPeerMessage): New function.
  13700. (createHandshakeMessage): New function.
  13701. (send): Made private.
  13702. (setPeerMessageCommonProperty): New function.
  13703. (deleteAllRequestSlot): New function.
  13704. (deleteRequestMessageInQueue): New function.
  13705. (cancelAllRequest): Made private.
  13706. (cancelAllRequest): Made private.
  13707. (countRequestSlot): Made private.
  13708. (addPendingMessage): Removed.
  13709. (deletePendingPieceMessage): Removed.
  13710. (deletePendingRequestMessage): Removed.
  13711. (addMessage): New function.
  13712. (deletePieceMessageInQueue): New function.
  13713. (deleteTimeoutRequestSlot): Changed argument.
  13714. (deleteCompletedRequestSlot): Changed argument.
  13715. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  13716. (getCorrespondingRequestSlot): New function.
  13717. (countPendingMessage): Removed.
  13718. (countMessageInQueue): New function.
  13719. (getTorrentMan): New function.
  13720. (getPeerConnection): New function.
  13721. (hasDownloadPiece): New function.
  13722. (getDownloadPiece): New function.
  13723. (setDownloadPiece): New function.
  13724. (syncPiece): New function.
  13725. (sendMessages): New function.
  13726. (sendNow): New function.
  13727. (trySendNow): New function.
  13728. (abortPiece): New function.
  13729. (sendHandshake): New function.
  13730. (receiveMessage): New function.
  13731. (receiveHandshake): New function.
  13732. (createRequestMessage): New function.
  13733. (createCancelMessage): New function.
  13734. (createPieceMessage): New function.
  13735. (createHaveMessage): New function.
  13736. (createChokeMessage): New function.
  13737. (createUnchokeMessage): New function.
  13738. (createInterestedMessage): New function.
  13739. (createNotInterestedMessage): New function.
  13740. (createBitfieldMessage): New function.
  13741. (createKeepAliveMessage): New function.
  13742. * src/SendMessageQueue.cc
  13743. (SendMessageQueue): Removed requestSlotMan.
  13744. Instantiated peerConnection here.
  13745. (~SendMessageQueue): Removed requestSlotMan.
  13746. Added deletion of peerConnection and the contents of messageQueue.
  13747. (send): Updated according to the change of messageQueue.
  13748. (addPendingMessage): Renamed to addMessage.
  13749. (addMessage): New function.
  13750. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  13751. (deletePieceMessageInQueue): New function.
  13752. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  13753. (deleteRequestMessageInQueue): New function.
  13754. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  13755. here.
  13756. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  13757. (...) was moved here.
  13758. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  13759. moved here.
  13760. (deleteCompletedRequestSlot):
  13761. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  13762. (getCorrespondingRequestSlot):
  13763. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  13764. And renamed to getCorrespondingRequestSlot, correcting a typo.
  13765. (countPendingMessage): Renamed to countMessageInQueue.
  13766. (countMessageInQueue): New function.
  13767. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  13768. (receiveHandshake): New function.
  13769. (createHandshakeMessage): New function.
  13770. (receiveMessage): New function.
  13771. (createPeerMessage): New function.
  13772. (syncPiece): New function.
  13773. (getNewPieceAndSendInterest): New function.
  13774. (sendMessages): New function.
  13775. (sendNow): New function.
  13776. (trySendNow): New function.
  13777. (sendHandshake): New function.
  13778. (abortPiece): New function.
  13779. (getDownloadPiece): New function.
  13780. (getPeerMessageCommonProperty): New function.
  13781. (createRequestMessage): New function.
  13782. (createCancelMessage): New function.
  13783. (createPieceMessage): New function.
  13784. (createHaveMessage): New function.
  13785. (createChokeMessage): New function.
  13786. (createUnchokeMessage): New function.
  13787. (createInterestedMessage): New function.
  13788. (createNotInterestedMessage): New function.
  13789. (createBitfieldMessage): New function.
  13790. (createKeepAliveMessage): New function.
  13791. To add simple Content-Disposition support:
  13792. * src/HttpResponseCommand.h (determinFilename): New function.
  13793. * src/HttpResponseCommand.cc (executeInternal):
  13794. Use determinFilename(headers) instead of req->getFile() when comparing
  13795. filename.
  13796. (determinFilename): New function.
  13797. (handleDefaultEncoding): Use determinFilename(headers) instead of
  13798. req->getFile().
  13799. (handleOtherEncoding): Use determinFilename(headers) instead of
  13800. req->getFile().
  13801. * src/Util.h (getContentDispositionFilename): New function.
  13802. * src/Util.cc (getContentDispositionFilename): New function.
  13803. * src/LogFactory.h (release): New function.
  13804. * src/LogFactory.cc (release): New function.
  13805. To fix a bug that causes out-of-bound exception when HTTP status
  13806. line is wrong:
  13807. * src/HttpConnection.cc (receiveResponse): Added a check for header
  13808. size.
  13809. * src/common.h (Deleter): New class.
  13810. * src/SegmentMan.cc
  13811. (~SegmentMan): Added deletion of splitter and diskWriter.
  13812. * src/DownloadEngine.h
  13813. (Commands): Use deque.
  13814. (clearQueue): New function.
  13815. * src/DownloadEngine.cc
  13816. (~DownloadEngine): Added deletion of segmentMan.
  13817. (cleanQueue): New function.
  13818. * src/TorrentDownloadEngine.h
  13819. (TorrentDownloadEngine): The implementation was moved to
  13820. TorrentDownloadEngine.cc.
  13821. (~TorrentDownloadEngine): The implementation was moved to
  13822. TorrentDownloadEngine.cc.
  13823. * src/TorrentDownloadEngine.cc
  13824. (~TorrentDownloadEngine): Added deletion of torrentMan.
  13825. * src/main.cc
  13826. (clearRequest): Removed.
  13827. (handler): Added deletion of e.
  13828. (torrentHandler): Added deletion of te.
  13829. (main): Do not share splitter.
  13830. Use Deleter instead of clearRequest.
  13831. Deletion of classes were updated.
  13832. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13833. * src/main.cc (main): Fixed typo.
  13834. * src/message.h: Fixed typo.
  13835. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  13836. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13837. To add --select-file command-line option:
  13838. * src/Util.cc
  13839. (unfoldRange): New function.
  13840. (getNum): New function.
  13841. (unfoldSubRange): New function
  13842. * src/main.cc
  13843. (showUsage): Added help message.
  13844. (main): Added --select-file command-line option. Updated the layout of
  13845. file listing.
  13846. * src/common.h
  13847. (Integers): New definition.
  13848. * src/SocketCore.cc
  13849. (writeData): Removed timeout argument.
  13850. (readData): Removed timeout argument.
  13851. (peekData): Removed timeout argument.
  13852. * src/Socket.cc
  13853. (writeData): Removed timeout argument.
  13854. (readData): Removed timeout argument.
  13855. (peekData): Removed timeout argument.
  13856. * Release 0.4.1
  13857. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13858. To deploy upload rate based choking algorithm:
  13859. * src/PeerInteractionCommand.cc
  13860. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  13861. peer currently used.
  13862. (decideChoking): Deleted the choke/unchoke decision algorithm when
  13863. download completes. Simplified.
  13864. (receiveMessage): Updated.
  13865. * src/TorrentMan.h
  13866. (activePeers): New variable.
  13867. (addActivePeer): New function.
  13868. (getActivePeers): New function.
  13869. (deleteActivePeer): New function.
  13870. * src/TorrentMan.cc
  13871. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  13872. * src/PeerAbstractCommand.cc
  13873. (onAbort): Use peer->resetStatus().
  13874. * src/main.cc
  13875. (PeerChokeCommand.h): Included.
  13876. (main): Added the instance of ChokingCommand to the command queue.
  13877. * src/Peer.h
  13878. (amChoking): Renamed from amChocking
  13879. (chokingRequired): New variable.
  13880. (optUnchoking): New variable.
  13881. (deltaUpload): New variable.
  13882. (deltaDownload): New variable.
  13883. (addDeltaUpload): New function.
  13884. (resetDeltaUpload): New function.
  13885. (addDeltaDownload): New function.
  13886. (resetDeltaDownload): New function.
  13887. (addPeerUpload): Added a call to addDeltaUpload.
  13888. (addPeerDownload): Added a call to addDeltaDownload.
  13889. * src/Peer.cc
  13890. (shouldBeChoking): Renamed from shouldChoke.
  13891. (resetStatus): New function.
  13892. * src/PeerChokeCommand.h: New class.
  13893. * src/PeerChokeCommand.cc: New class.
  13894. To add lazy upload speed limiter:
  13895. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  13896. statistics calculation to TorrentDownloadEngine.
  13897. * src/TorrentConsoleDownloadEngine.cc
  13898. (sendStatistics): Renamed from printStatistics.
  13899. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  13900. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  13901. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  13902. * src/TorrentDownloadEngine.h: Added the variables for statistics
  13903. calculation.
  13904. (sendStatistics): New function as pure virtual function.
  13905. (getUploadSpeed): New function.
  13906. * src/TorrentDownloadEngine.cc
  13907. (initStatistics): New function.
  13908. (calculateSpeed): New function.
  13909. (calculateStatistics): New function.
  13910. * src/SendMessageQueue.h
  13911. (uploadLength): New variable.
  13912. (send): Added an argument.
  13913. (setUploadLimit): New function.
  13914. (getUploadLimit): New function.
  13915. * src/SendMessageQueue.cc
  13916. (send): Added upload speed limiter.
  13917. * src/prefs.h
  13918. (PREF_UPLOAD_LIMIT): New definition.
  13919. * src/PeerInteractionCommand.cc
  13920. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  13921. * src/main.cc
  13922. (main): Added --upload-limit option
  13923. For bug fixes:
  13924. * src/main.cc
  13925. (showUsage): Corrected --listen-port help
  13926. Other changes:
  13927. * src/TorrentMan.cc
  13928. (getPeer): Return nullPeer if connection is grather than
  13929. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  13930. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13931. To add some useful information to the exception message:
  13932. * src/SocketCore.cc : Updated messages.
  13933. * src/SegmentMan.cc :
  13934. * src/TorrentMan.cc : Updated messages.
  13935. * src/MultiDiskWriter.cc : Updated messages.
  13936. * src/Util.cc : Updated messages.
  13937. * src/AbstractDiskWriter.cc : Updated messages.
  13938. * src/PreAllocationDiskWriter.cc : Updated messages.
  13939. * src/message.cc : Added new messages. Updated some messages.
  13940. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  13941. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  13942. Updated threshold from 30 to 15.
  13943. * src/AbstractDiskWriter.h (filename): New variable.
  13944. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  13945. (createFile): Assigned filename.
  13946. * src/main.cc: Updated the help message for http-auth-scheme.
  13947. * Release 0.4.0
  13948. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13949. To add TrackerUpdateCommand with which replaces
  13950. CompactTrackerResponseProcessor:
  13951. * src/TrackerWatcherCommand.h (req): Removed.
  13952. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  13953. if the number of peer connections are less than 30.
  13954. * src/ByteArrayDiskWriter.h (readData): Implemented.
  13955. * src/SegmentMan.h (diskWriter): New function.
  13956. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  13957. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  13958. (main): Use TrackerUpdateCommand.
  13959. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  13960. (req): New variable.
  13961. (setTrackerResponseProcessor): Removed.
  13962. (getTrackerResponseProcessor): Removed.
  13963. (processTrackerResponse): Removed.
  13964. * src/DownloadEngine.h (diskWriter): Removed.
  13965. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  13966. to torrentMan->processTrackerResponse().
  13967. To add Util::expandBuffer:
  13968. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  13969. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  13970. * src/Util.h (expandBuffer): New function.
  13971. To fix the bug that causes segmentation fault when "-l ." is specified
  13972. in command-line option:
  13973. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  13974. (openFile): New function.
  13975. (closeFile): New function.
  13976. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  13977. (~SimpleLogger): Call closeFile();
  13978. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  13979. * src/main.cc (main): Added a check to see logger is configured
  13980. properly.
  13981. To enable HTTP authentication without specifying "--http-auth-scheme"
  13982. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  13983. * src/HttpConnection.cc (createRequest): Send Authorization header
  13984. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  13985. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  13986. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  13987. * src/Peer.cc (shouldChoke): Updated algorithm.
  13988. * src/message.h (EX_AUTH_FAILED): New definition.
  13989. (EX_FILE_OPEN): New definition.
  13990. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  13991. if status == 401.
  13992. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  13993. if req->isTorrent == true.
  13994. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  13995. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  13996. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  13997. (createFile): Updated message.
  13998. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13999. To add a readout of estimated remaining time to normal HTTP/FTP
  14000. downloads:
  14001. * src/ConsoleDownloadEngine.h (startup): New variable.
  14002. (startupLength): New variable.
  14003. (isStartupLengthSet): New variable.
  14004. (avgSpeed): New variable.
  14005. (eta): New variable.
  14006. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  14007. estimated remaining time.
  14008. (initStatistics): Initialized newly added variables.
  14009. (calculateStatistics): Calculate average speed and estimated remaining
  14010. time.
  14011. To decouple TorrentDownloadEngine from HttpResponseCommand:
  14012. * src/TrackerDownloadCommand.h: Removed.
  14013. * src/TrackerDownloadCommand.cc: Removed.
  14014. * src/TrackerInitCommand.h: Removed.
  14015. * src/TrackerInitCommand.cc: Removed.
  14016. * src/TrackerUpdateCommand.h: Removed.
  14017. * src/TrackerUpdateCommand.cc: Removed.
  14018. * src/TrackerWatcherCommand.cc (execute): The construction of request
  14019. url written in TrackerInitCommand was moved here. Do not create
  14020. tracker request command if torrentMan->trackers != 0.
  14021. * src/CompactTrackerResponseProcessor.h: New class.
  14022. * src/CompactTrackerResponseProcessor.cc: New class.
  14023. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  14024. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  14025. Decoupled TorrentDownloadEngine from this.
  14026. * src/SegmentMan.h (init): New function.
  14027. * src/SegmentMan.cc (init): New function.
  14028. * src/TorrentMan.h (responseProcessor): New variable.
  14029. (trackers): New variable.
  14030. (setTrackerResponseProcessor): New function.
  14031. (getTrackerResponseProcessor): New function.
  14032. (processTrackerResponse): New function.
  14033. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  14034. (processTrackerResponse): New function.
  14035. * src/main.cc (main): Use ByteArrayDiskWriter and
  14036. CompactTrackerResponseProcessor.
  14037. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  14038. processTrackerResponse().
  14039. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  14040. readout.
  14041. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  14042. which indicates download has completed.
  14043. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  14044. (closeFile): fd >= 0, not fd > 0
  14045. * src/main.cc (main): Added short cut for show-files.
  14046. Added short cut for torrent-file.
  14047. Added new command-line option listen-port.
  14048. Updated i18n messages.
  14049. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14050. To add LogFactory which creates singleton logger:
  14051. * src/LogFactory.h: New class.
  14052. * src/LogFactory.cc: New class.
  14053. * src/Command.h (logger): New variable.
  14054. (Constructor): Use LogFactory.
  14055. * src/AbstractCommand.cc: Use Command::logger
  14056. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  14057. Use LogFactory.
  14058. * src/SegmentSplitter.h : Made logger protected.
  14059. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  14060. * src/SegmentMan.cc (Constructor): Use LogFactory.
  14061. * src/DownloadEngine.h : Made logger protected.
  14062. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  14063. * src/PeerInteractionCommand.cc : Use Command::logger.
  14064. * src/HttpResponseCommand.cc : Use Command::logger.
  14065. * src/SegmentMan.h : Made logger private.
  14066. * src/TorrentMan.h : Made logger private.
  14067. * src/TorrentMan.cc : Use LogFactory.
  14068. * src/FtpNegotiateCommand.cc : Use Command::logger.
  14069. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  14070. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  14071. Use LogFactory.
  14072. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  14073. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  14074. Use LogFactory.
  14075. * src/DownloadCommand.cc : Use Command::logger.
  14076. * src/PeerAbstractCommand.cc : Use Command::logger.
  14077. * src/PeerListenCommand.cc : Use Command::logger.
  14078. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  14079. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  14080. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  14081. * src/TrackerWatcherCommand.cc : Use Command::logger.
  14082. * src/TrackerUpdateCommand.cc : Use Command::logger.
  14083. * src/TrackerDownloadCommand.cc : Use Command::logger.
  14084. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  14085. Use LogFactory.
  14086. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  14087. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  14088. Use LogFactory.
  14089. * src/main.cc (main): Use LogFactory.
  14090. * src/DiskAdaptor.h (logger): New variable.
  14091. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  14092. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  14093. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14094. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  14095. parameter to a tracker request.
  14096. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  14097. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  14098. * src/main.cc (setSignalHander): New function.
  14099. (main): Added a handler for SIGTERM.
  14100. (handler): Updated message.
  14101. (torrentHandler): Updated message.
  14102. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14103. * src/TorrentConsoleDownloadEngine.cc
  14104. (onPartialDownloadingCompletes): Renamed as
  14105. onSelectiveDownloadingCompletes.
  14106. (onSelectiveDownloadingCompletes): Updated message.
  14107. To add DiskAdaptor which abstract DiskWriter family:
  14108. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  14109. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  14110. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  14111. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  14112. MultiDiskAdaptor.h.
  14113. (readFileEntry): Changed its arguments.
  14114. (setup): setupDiskWriter is merged into this function.
  14115. (setupDiskWriter): Removed.
  14116. (setFileFilter): New function.
  14117. (readFileEntryFromMetaInfoFile): Updated according to the changes
  14118. made in readFileEntry.
  14119. (getFilePath): Removed.
  14120. (getTempFilePath): Removed.
  14121. (getSegmentFilePath): Updated due to the removal of getFilePath.
  14122. (fixFilename): Removed.
  14123. (copySingleFile): Removed.
  14124. (splitMultiFile): Removed.
  14125. (deleteTempFile): Removed.
  14126. (setFileEntriesToDownload): Removed.
  14127. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  14128. (isSelectiveDownloadingMode): New function.
  14129. (setAllMultiFileRequestedState): Removed.
  14130. (finishPartialDownloadingMode): Renamed as
  14131. finishSelectiveDownloadingMode.
  14132. (finishSelectiveDownloadingMode): New function.
  14133. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  14134. (getSelectedTotalLength): New function.
  14135. (onDownloadComplete): Use diskAdaptor.
  14136. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  14137. (Range): Removed.
  14138. (setMultiFileEntries): Renamed as setFileEntries.
  14139. (setFileEntries): New function.
  14140. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  14141. (pieceLength): New variable.
  14142. * src/main.cc (printDownloadCompeleteMessage): New function.
  14143. (torrentHandler): Use diskAdaptor instead of diskWriter.
  14144. (main): Renamed torrent-show-files to show-files.
  14145. Rewritten file contents listing.
  14146. * src/TorrentMan.h (FileEntry): Removed.
  14147. (multiFileTopDir): Removed.
  14148. (multiFileEntries): Removed.
  14149. (diskWriter): Removed.
  14150. (diskAdaptor): New variable.
  14151. * src/DefaultDiskWriter.h (totalLength): New variable.
  14152. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  14153. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  14154. diskWriter.
  14155. * src/TorrentConsoleDownloadEngine.h
  14156. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  14157. (partialTotalLength): Renamed as selectedTotalLength.
  14158. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  14159. openExistingFile, otherwise call initAndOpenFile.
  14160. (closeFile): fd > 0, not fd != 0.
  14161. * src/DirectDiskAdaptor.h: New class.
  14162. * src/DirectDiskAdaptor.cc: New class.
  14163. * src/MultiDiskAdaptor.h: New class.
  14164. * src/MultiDiskAdaptor.cc: New class.
  14165. * src/CopyDiskAdaptor.h: New class.
  14166. * src/CopyDiskAdaptor.cc: New class.
  14167. * src/DiskAdaptor.h: New class.
  14168. * src/DiskAdaptor.cc: New class.
  14169. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  14170. (PREF_SHOW_FILES): New definition.
  14171. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14172. To add the ability to download multi torrent into respective files
  14173. directly:
  14174. * src/DiskWriter.h (openFile): New function.
  14175. (seek): Removed.
  14176. * src/MultiDiskWriter.h: New class.
  14177. * src/MultiDiskWriter.cc: New class.
  14178. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  14179. protected.
  14180. (openFile): New function.
  14181. * src/AbstractDiskWriter.cc (openFile): New function.
  14182. * src/prefs.h (V_FALSE): New definition.
  14183. (PREF_DIRECT_FILE_MAPPING): New definition.
  14184. * src/TorrentMan.h (setupDiskWriter): New function.
  14185. (setAllMultiFileRequestedState): New function.
  14186. (onDownloadComplete): New function.
  14187. * src/TorrentMan.cc : Included MultiDiskWriter.h
  14188. (setupDiskWriter): New function.
  14189. (getFilePath): Updated.
  14190. (getTempFilePath): Updated.
  14191. (getSegmentFilePath): Updated.
  14192. (fixFilename): Updated.
  14193. (deleteTempFile): Updated.
  14194. (setAllMultiFileRequestedState): New function.
  14195. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  14196. (finishPartialDownloadingMode): Reset requested flags.
  14197. (onDownloadComplete): New function.
  14198. * src/main.cc: Added --direct-file-mapping option.
  14199. Use TorrentMan::setupDiskWriter().
  14200. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  14201. onDownloadComplete().
  14202. To fix ETA bug:
  14203. * src/Util.h (difftvsec): New function.
  14204. * src/Util.cc (difftvsec): New function.
  14205. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  14206. type of "elapsed" instead of long long int.
  14207. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  14208. The updates of statistics takes place every 1 seconds.
  14209. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  14210. (calculateSpeed): Changed its argument signature.
  14211. * src/PeerMessage.cc (toString): Fixed message.
  14212. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14213. To print ETA:
  14214. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  14215. completion handling when dealing with
  14216. TorrentMan::isPartialDownloadingMode() == true.
  14217. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  14218. New function.
  14219. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  14220. (sessionDownloadLength): New variable.
  14221. (avgSpeed): New variable.
  14222. (eta): New variable.
  14223. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  14224. new variables: eta, avgSpeed, startup.
  14225. (calculateSpeed): Calculate average speed and ETA.
  14226. (printStatistics): Added ETA.
  14227. * src/Util.h (secfmt): New function.
  14228. * src/Util.cc (secfmt): New function.
  14229. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14230. To detect "keep alive" flooding:
  14231. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  14232. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  14233. variable: keepAliveCount.
  14234. (detectMessageFlooding): Added "keep alive" flooding detection.
  14235. (receiveMessage): Increase keepAliveCount when "keep alive" message
  14236. received.
  14237. To add the ability to download only specified files in multi-file
  14238. torrent:
  14239. * src/BitfieldMan.h (filterBitfield): New variable.
  14240. (filterEnabled): New variable.
  14241. (setFilterBit): New function.
  14242. (enableFilter): New function.
  14243. (disableFilter): New function.
  14244. (isFilterEnabled): New function.
  14245. (getFilteredTotalLength): New function.
  14246. (getCompletedLength): New function.
  14247. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  14248. filterBitfield, filterEnabled.
  14249. (CopyConstructor): Added filterBitfield and filterEnabled.
  14250. (operator==): Added filterBitfield and filterEnabled.
  14251. (Destructor): Added filterBitfield.
  14252. (getMissingIndex): Use filterBitfield.
  14253. (getMissingUnusedIndex): Use filterBitfield.
  14254. (getFirstMissingUnusedIndex): Use filterBitfield.
  14255. (getFirstMissingUnusedIndex): Use filterBitfield.
  14256. (getAllMissingIndexes): Use filterBitfield.
  14257. (countMissingBlock): Use filterBitfield.
  14258. (countBlock): Use filterBitfield.
  14259. (setBitInternal): Added new argument on.
  14260. (setUseBit): Use setBitInternal.
  14261. (unsetUseBit): Use setBitInternal.
  14262. (setBit): Use setBitInternal.
  14263. (unsetBit): Use setBitInternal.
  14264. (isAllBitSet): Use filterBitfield.
  14265. (setFilterBit): New function.
  14266. (addFilter): New function.
  14267. (enableFilter): New function.
  14268. (disableFilter): New function.
  14269. (clearFilter): New function.
  14270. (isFilterEnabled): New function.
  14271. (getFilteredTotalLength): New function.
  14272. (getCompletedLength): New function.
  14273. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  14274. Initalized newly added variables.
  14275. [FileEntry](offset): New variable.
  14276. [FileEntry](extracted): New variable.
  14277. [FileEntry](requested): New variable.
  14278. (readFileEntry): New function.
  14279. (option): New variable.
  14280. (splitMultiFile): Removed const qualifier.
  14281. (fixFilename): Removed const qualifier.
  14282. (readFileEntryFromMetaInfoFile): New function.
  14283. (finishPartialDownloadingMode): New function.
  14284. (isPartialDownloadingMode): New function.
  14285. (setFileEntriesToDownload): New function.
  14286. (getCompletedLength): New function.
  14287. (getPartialTotalLength): New function.
  14288. * src/TorrentMan.cc (readFileEntry): New function.
  14289. (setup): Use readFileEntry. If no-preallocation option is specified,
  14290. use DefaultDiskWriter.
  14291. (readFileEntryFromMetaInfoFile): New function.
  14292. (fixFilename): Removed const qualifier.
  14293. (splitMultiFile): Removed const qualifier.
  14294. (setFileEntriesToDownload): New function.
  14295. (isPartialDownloadingMode): New function.
  14296. (finishPartialDownloadingMode): New function.
  14297. (getCompletedLength): New function.
  14298. (getPartialTotalLength): New function.
  14299. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  14300. New variable.
  14301. (partialTotalLength): New variable.
  14302. (downloadLength): New variable.
  14303. (totalLength): New variable.
  14304. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  14305. Added log.
  14306. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  14307. partialTotalLength, downloadLength, totalLength.
  14308. (calculate): Calculate downloadLength and totalLength.
  14309. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  14310. * src/main.cc (addCommand): Changed argument signature.
  14311. (main): Added new variable: args. Added new option "torrent-show-files"
  14312. "no-preallocation". Usage is not updated yet.
  14313. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14314. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  14315. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14316. Attempt to add the ability to listing file entries in a .torrent file.
  14317. This feature is not yet complete.
  14318. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  14319. * src/TorrentMan.cc (getMultiFileEntries): New function.
  14320. (getName): New function.
  14321. * src/TorrentMan.h (getMultiFileEntries): New function.
  14322. (getName): New function.
  14323. * src/main.cc (main): Use above 2 funtion.
  14324. * Release 0.3.2
  14325. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14326. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  14327. (detectMessageFlooding): Updated threshold value.
  14328. (checkLongTimePeerChoking): Updated timeout value.
  14329. (getNewPieceAndSendInterest): Added debug log.
  14330. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  14331. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  14332. (getPeer): Updated.
  14333. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  14334. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  14335. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  14336. is localhost.
  14337. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  14338. * src/PendingMessage.cc (processMessage): Not to send piece message
  14339. if peer is not interested in the pieces localhost has.
  14340. * src/Peer.cc (shouldChoke): Updated.
  14341. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  14342. * src/Util.cc (isPowerOf): New function.
  14343. * src/Util.h (isPowerOf): New function.
  14344. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  14345. whether or not it is power of 2.
  14346. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14347. Added new class SendMessageQueue that includes PendingMessages and
  14348. RequestSlotMan.
  14349. * src/SendMessageQueue.h: New class.
  14350. * src/SendMessageQueue.cc: New class.
  14351. * src/PendingMessage.h: Added new member variable blockIndex and its
  14352. accessors.
  14353. (createRequestMessage): Updated.
  14354. * src/PendingMessage.cc (createRequestMessage): Updated.
  14355. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  14356. SendMessageQueue.
  14357. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  14358. (receiveMessage): Updated with SendMessageQueue.
  14359. (deletePendingPieceMessage): Removed.
  14360. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  14361. (sendInterest): Updated with SendMessageQueue.
  14362. (createRequestPendingMessage): Updated with SendMessageQueue.
  14363. (sendMessages): Updated with SendMessageQueue.
  14364. (onAbort): Updated with SendMessageQueue.
  14365. (keepAlive): Updated with SendMessageQueue.
  14366. (beforeSocketCheck): Updated SendMessageQueue.
  14367. * src/PeerInteractionCommand (sendMessages): Shuffle
  14368. missingBLockIndexes before using it.
  14369. Added its own timeout for peer connection.
  14370. * src/PeerAbstractCommand.h: Added member variable timeout and its
  14371. setter.
  14372. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  14373. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  14374. Added setTimeout() call.
  14375. (executeInternal): Added setTimeout() call.
  14376. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  14377. Added timeout.
  14378. (isTimeoutDetected): Updated.
  14379. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  14380. option.
  14381. Added *simple* message flooding checker.
  14382. * src/PeerInteractionCommand.cc (executeInternal):
  14383. Added detectMessageFlooding() call.
  14384. (detectMessageFlooding): New function.
  14385. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  14386. (beforeSocketCheck): Added detectMessageFlooding() call.
  14387. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  14388. chokeUnchokeCount, haveCount, detectMessageFlooding().
  14389. Removed deletePendingPieceMessage(), getRequestSlot(),
  14390. deleteRequestSlot(), deleteAllRequestSlot().
  14391. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  14392. Added checkLongTimePeerChoking() call.
  14393. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  14394. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  14395. if duplicate == false.
  14396. The parameter "uploaded" and "downloaded" in the tracker request are
  14397. the size since the client sent the "started" event to the tracker.
  14398. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  14399. uploaded size to preDownloadedSize, preUploadedSize respectively.
  14400. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  14401. getSessionDownloadedSize(), getSessionUploadedSize().
  14402. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  14403. getSessionUploadedSize() instead of getDownloadedSize(),
  14404. getUploadedSize().
  14405. * src/PendingMessage.cc (processMessage): Do not send request message
  14406. if the peer is choking the client.
  14407. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  14408. less than interval.
  14409. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14410. * configure.in: Added gnutls support. Added several CPP macros.
  14411. * m4/openssl.m4: Added.
  14412. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  14413. readData(), peekData(). Added gnutls support.
  14414. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  14415. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  14416. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  14417. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  14418. Instead, added a check for whether setup method has executed
  14419. successfully.
  14420. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  14421. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  14422. * src/Makefile.am: Updated.
  14423. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  14424. using whether OpenSSL or gcrypt, depending on the result of configure
  14425. script.
  14426. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  14427. messageDigest.h.
  14428. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  14429. * src/PeerListenCommand.cc: Added log about port binded successfully.
  14430. Fixed memory leak.
  14431. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  14432. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  14433. Removed instantiation of TrackerInitCommand. Instead,
  14434. TrackerWatcherCommand is instantiated and pushed to the command queue.
  14435. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  14436. ENABLE_SSL.
  14437. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  14438. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  14439. If a piece is already acquired by another command, delete the request
  14440. slots for the piece.
  14441. * src/TrackerUpdateCommand.cc (execute):
  14442. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  14443. Added a check whether peer list is null.
  14444. Fixed the bug that causes sending completed event to the tracker
  14445. several times.
  14446. * src/TrackerInitCommand.cc (execute):
  14447. Fixed the bug that causes sending completed event to the tracker
  14448. several times.
  14449. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  14450. by using messageDigest.h.
  14451. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14452. * PeerConnection.cc: Replaced log message "keep-alive" with
  14453. "keep alive".
  14454. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  14455. localhost long time.
  14456. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  14457. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  14458. at most 100 failure entry from the list. If with duplicate = false,
  14459. MAX_PEER_LIST is not checked.
  14460. * PeerListenCommand.cc: Fixed the argument order of log message.
  14461. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14462. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  14463. Added warn().
  14464. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  14465. Implemented warn().
  14466. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  14467. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14468. * Request.h: Added AFTER_COMPLETED event.
  14469. * TorrentDownloadEngine.cc: Prints "Download complete" message
  14470. instead of downloaded size and progress(%) after download completes.
  14471. * PeerInteractionCommand.cc: After download completes, sends unchoke
  14472. message to the peer if it is interested in what localhost has
  14473. downloaded.
  14474. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  14475. destination instead of just renaming it.
  14476. * TorrentMan.cc: Added deleteTempFile().
  14477. * PeerAbstractCommand.cc: do not stop execution after download
  14478. completes. This makes localhost a seeder.
  14479. * Util.{h,cc}: Added fileCopy().
  14480. * PeerListenCommand.cc: do not stop execution after download completes.
  14481. This makes localhost a seeder.
  14482. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  14483. Added TorrentMan::deleteTempFile() to torrentHandler.
  14484. Initialized the variable dir as ".".
  14485. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  14486. Deleted renameSingleFile().
  14487. Added copySingleFile(), deleteTempFile().
  14488. * DownloadEngine.h: Added virtual function afterEachIteration().
  14489. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  14490. in onEndOfRun() to afterEachIteration().
  14491. In onEndOfRun(), changed if condition to check whether filenameFixed is
  14492. true.
  14493. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  14494. In rangedFileCopy(), added try-catch block to properly close file
  14495. descriptors.
  14496. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  14497. Added afterEachIteration(), isFilenameFixed().
  14498. * Peer.cc: Changed choking strategy.
  14499. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  14500. * TrackerInitCommand.cc: Send completed event only once.
  14501. * DownloadEngine.cc: Added a call to afterEachIteration().
  14502. * TrackerUpdateCommand.cc: Do not stop execution after download
  14503. completes.
  14504. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  14505. connect the peers at most MAX_PEER_UPDATE when a peer list is
  14506. received from a tracker.
  14507. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  14508. Decreased the number of failure peers to delete to 0(just comment out
  14509. the line).
  14510. * Release 0.3.1
  14511. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14512. * PeerInteractionCommand.cc: added a call to
  14513. TorrentMan::unadvertisePiece in Destructor.
  14514. * PeerInteractionCommand.cc: make have message sent immediately
  14515. if the size of pending message queue is zero.
  14516. * TorrentMan.cc: set the maximum size of peer list to 250.
  14517. * TorrentMan.h: changed the container type of Peers and UsedPieces
  14518. to deque.
  14519. * Util.cc: fixed rangedFileCopy.
  14520. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  14521. to Constructor. Also, moved digest cleanup to Destructor.
  14522. * MetaFileUtil.cc: fixed memory leak
  14523. * replaced std::vector with std::deque.
  14524. * AbstractCommand.cc: casted timeout value to long long int.
  14525. * ChunkedEncoding.cc: fixed memory leak.
  14526. * PeerInteractionCommand.cc: casted timeout value to long long int.
  14527. * SleepCommand.cc: casted timeout value to long long int.
  14528. * Data.cc: fixed memory leak.
  14529. * Data.cc: fixed toLLInt().
  14530. * BitfieldMan.cc: fixed memory leak.
  14531. * TorrentMan.cc: initialized storeDir to ".".
  14532. * TorrentMan.cc: fixed memory leak.
  14533. * TorrentMan.cc: corrected file paths of splitted files.
  14534. * PeerAbstractCommand.cc: casted timeout to long long int.
  14535. * main.cc: added delete(req) and delete(te->diskWriter).
  14536. * RequestSlot.cc: casted timeout value to long long int.
  14537. * Request.cc: fixed memory leak.
  14538. * PendingMessage.cc: make HAVE messages sent only when peer does not
  14539. have the piece.
  14540. * Peer.{h,cc}: added hasPiece(int index).
  14541. * main.cc: corrected addCommand.
  14542. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14543. * BitTorrent protocol support added.
  14544. * Release 0.3.0
  14545. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14546. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  14547. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14548. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  14549. decoding did not work properly.
  14550. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14551. * DownloadEngine.h: included sys/time.h
  14552. * DownloadEngine.cc: remove sys/time.h
  14553. * Makefile.am (SUBDIRS): Add intl.
  14554. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  14555. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14556. * main.cc: correct help message for --http-auth-scheme.
  14557. * main.cc: changed e-mail address for bug reports.
  14558. * ja.po: added japanese translation.
  14559. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14560. * SimpleLogger.cc: flush log file instead of stdout.
  14561. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14562. * main.cc: Fixed command-line option: max-tries
  14563. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  14564. does not equal to seg.sp.
  14565. * DownloadCommand.cc: If EOF is got from the server and the total size
  14566. of file is not zero, then throw DlRetryEx.
  14567. * main.cc: Set the minium value of min-segment-size to 1024.
  14568. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  14569. fails because of a regression since 0.2.0 release.
  14570. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14571. * HttpConnection.cc:
  14572. * common.h: defined the user agent name as macro
  14573. * DownloadEngine.{h, cc}:
  14574. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  14575. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  14576. * main.cc: Download complete/abort message is now generated by main.
  14577. * Makefile.am (SUBDIRS): Add m4.
  14578. (ACLOCAL_AMFLAGS): New variable.
  14579. (EXTRA_DIST): New variable.
  14580. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  14581. * gettext: added gettext functionality
  14582. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14583. * AbstractCommand.cc:
  14584. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  14585. unregister its cuid from SegmentMan.
  14586. * DownloadEngine.cc: .aria2 file was written when a downloading
  14587. failed with errors.
  14588. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  14589. Added "User-Agent" header to CONNECT proxy request.
  14590. Fixed "Proxy-Authorization" header. Now proxy authorization works
  14591. properly.
  14592. * Logger.h:
  14593. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  14594. * ChunkedEncoding.cc: Added #include directive for strings.h
  14595. * Release 0.2.1
  14596. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14597. * Util.{h,cc}: added startsWith().
  14598. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  14599. Util::endsWith().
  14600. * SocketCore.cc: struct addrinfo is now zero-initialized.
  14601. * common.h: added #include directive of limit.h.
  14602. * DownloadEngine.cc: added #include directive of sys/time.h and
  14603. algorithm.
  14604. * Exception.h: added #include directive of stdio.h.
  14605. * AbstractCommand.h: added #include directive of sys/time.h.
  14606. * DownloadCommand.h: added #include directive of sys/time.h.
  14607. * *.h: added #include directive of common.h to all base classes.
  14608. subclasses' one was removed.
  14609. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  14610. does not define these macros.
  14611. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14612. * Release 0.2.0
  14613. * main.cc:
  14614. * HttpInitiateConnectionCommand.{h,cc}:
  14615. * prefs.h:
  14616. * HttpConnection.{h,cc}: added --http-proxy-method option.
  14617. We can now use GET command in http proxy.
  14618. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14619. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  14620. that splits slowest segment of SegmentMan::commands vector.
  14621. This is the default split algorithm of aria2.
  14622. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  14623. that splits first segment of SegmentMan::commands vector.
  14624. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  14625. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  14626. * Segment.h:
  14627. * SegmentMan.cc: Added speed field to Segment.h
  14628. * main.cc: -s option now affects all URLs in command-line arguemtns.
  14629. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  14630. * message.h: Change file size related %d to %lld.
  14631. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14632. * FtpInitiateConnectionCommand.{h,cc}:
  14633. * FtpNegotiationCommand.{h,cc}:
  14634. * FtpDownloadCommand.{h,cc}:
  14635. * FtpConnection.{h,cc}: Added FTP support
  14636. * SimpleLogger.cc: Log message now includes time information.
  14637. * main.cc: The value of --http-auth-scheme option is chagned from
  14638. 'BASIC' to 'basic'
  14639. * main.cc: Added --timeout command-line option.
  14640. * main.cc: Added --min-segment-size command-line option.
  14641. * main.cc: Added --max-retries command-line option.
  14642. * prefs.h: option string constants are now defined in prefs.h
  14643. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14644. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  14645. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  14646. with version 0.1.0's one.
  14647. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14648. * configure.in: Added --enable-ssl option to configure script.
  14649. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  14650. cannot permit absoluteURI as Request-URI.
  14651. * HttpConnection.cc: Added Referer support.
  14652. * main.cc: Added referer command-line option.
  14653. * main.cc: Added rety-wait command-line option.
  14654. * Exception.h: Fixed formating bug in Exception::setMsg()
  14655. * SocketCore.{h,cc}:
  14656. * Socket.{h, cc}:
  14657. * Request.cc:
  14658. * InitiateConnectionCommandFactory.cc:
  14659. * HttpRequestCommand.cc: Added HTTPS support.
  14660. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  14661. for SocketCore.
  14662. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  14663. size is wrong
  14664. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  14665. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  14666. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  14667. * Release 0.1.0