ChangeLog 636 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437
  1. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Moved frequently called methods to header file so they get
  3. inlined.
  4. * src/RequestSlot.cc
  5. * src/RequestSlot.h
  6. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7. Copied in_addr instead of just casting from char* which might
  8. violate strict aliasing rules.
  9. * src/AsyncNameResolver.cc
  10. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  11. Use dynamic_pointer_cast
  12. * test/BtPieceMessageTest.cc
  13. * test/BtRequestMessageTest.cc
  14. * test/DefaultBtRequestFactoryTest.cc
  15. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  16. Added testSetUrl20()
  17. * test/RequestTest.cc
  18. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  19. Code cleanup
  20. * src/bittorrent_helper.cc
  21. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  22. Use C++ style cast
  23. * src/AsyncNameResolver.cc
  24. * src/Base64.h
  25. * src/BtBitfieldMessage.cc
  26. * src/BtHandshakeMessage.cc
  27. * src/DefaultBtMessageFactory.cc
  28. * src/DefaultBtProgressInfoFile.cc
  29. * src/EpollEventPoll.cc
  30. * src/ExpatMetalinkProcessor.cc
  31. * src/IteratableChecksumValidator.cc
  32. * src/IteratableChunkChecksumValidator.cc
  33. * src/MessageDigestHelper.cc
  34. * src/Platform.cc
  35. * src/RequestGroupMan.cc
  36. * src/SingleFileAllocationIterator.cc
  37. * src/Sqlite3MozCookieParser.cc
  38. * src/XML2SAXMetalinkProcessor.cc
  39. * src/Xml2XmlRpcRequestProcessor.cc
  40. * src/util.cc
  41. * src/util.h
  42. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  43. Fixed integer potential alignment problem.
  44. * src/bitfield.h
  45. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  46. Applied a patch from tizianomueller to fix sigbus errors on Linux
  47. sparc. I modified the patch to eliminate a cast to uint32_t* and
  48. include file ordering.
  49. * src/PeerListProcessor.h
  50. * src/bittorrent_helper.cc
  51. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  52. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  53. * src/Request.cc
  54. * src/util.cc
  55. * src/util.h
  56. * test/RequestTest.cc
  57. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  58. Rewritten util::uitos()
  59. * src/util.h
  60. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  61. Code cleanup
  62. * src/Request.cc
  63. * src/Request.h
  64. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  65. Rewritten Request::parseUrl()
  66. * src/Request.cc
  67. * test/RequestTest.cc
  68. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  69. Removed unused macro SAFE_CHARS
  70. * src/Request.cc
  71. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  72. Updated doc
  73. * src/DHTRoutingTableDeserializer.cc
  74. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  75. Release 1.6.3
  76. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  77. Removed unused function.
  78. * test/DHTPeerAnnounceStorageTest.cc
  79. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  80. Only decrement cols if cols > 0
  81. * src/ConsoleStatCalc.cc
  82. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  83. Updated Polish, Catalan, French, Italian, Russian and Japanese
  84. translations. Thanks to all translators.
  85. * po/ca.po
  86. * po/fr.po
  87. * po/it.po
  88. * po/ja.po
  89. * po/pl.po
  90. * po/ru.po
  91. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  92. Updated translation template
  93. * po
  94. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  95. Fixed compile error without ssl library.
  96. * src/util.cc
  97. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  98. Logged received nodes in get_peers reply message.
  99. * src/DHTAbstractNodeLookupTask.cc
  100. * src/DHTAbstractNodeLookupTask.h
  101. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  102. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  103. error occurred in DHTMessageDispatcherImpl::sendMessage().
  104. * src/DHTMessageDispatcherImpl.cc
  105. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  106. Don't reuse URI if Request pool is not empty.
  107. * src/CreateRequestCommand.cc
  108. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  109. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  110. receive get_peers request for torrent which the client is now
  111. downloading.
  112. * src/BtSetup.cc
  113. * src/DHTPeerAnnounceEntry.cc
  114. * src/DHTPeerAnnounceEntry.h
  115. * src/DHTPeerAnnounceStorage.cc
  116. * src/DHTPeerAnnounceStorage.h
  117. * src/RequestGroup.cc
  118. * test/DHTPeerAnnounceEntryTest.cc
  119. * test/DHTPeerAnnounceStorageTest.cc
  120. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  121. Fixed the bug that in Windows environment new blank line is
  122. inserted when console readout is updated.
  123. * src/ConsoleStatCalc.cc
  124. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  125. Throw exception if binding listening port is failed. Removed
  126. RequestGroupMan::getInitialCommand(). Use
  127. fillRequestGroupFromReserver() instead. Delete commands for
  128. RequestGroup which has errors when it is being added.
  129. * src/BtSetup.cc
  130. * src/DownloadEngine.cc
  131. * src/DownloadEngine.h
  132. * src/DownloadEngineFactory.cc
  133. * src/MultiUrlRequestInfo.cc
  134. * src/RequestGroupMan.cc
  135. * src/RequestGroupMan.h
  136. * test/RequestGroupManTest.cc
  137. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  138. Fixed the bug that when downloading more than one torrent,
  139. listening port is not reported properly to tracker for 2nd or
  140. later torrents.
  141. * src/BtSetup.cc
  142. * src/PeerListenCommand.cc
  143. * src/PeerListenCommand.h
  144. * src/RequestGroup.cc
  145. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  146. Bump up version number to 1.6.3
  147. * configure.ac
  148. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  149. Removed Util.cc from POTFILES.in
  150. * po/POTFILES.in
  151. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  152. Updated man page for previous change.
  153. * doc/aria2c.1.txt
  154. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  155. If user name is embedded but password is missing in URI, first
  156. resolve password using .netrc. If password is found in .netrc,
  157. then use it as password. If not, use the password specified in
  158. --ftp-passwd.
  159. * src/AuthConfigFactory.cc
  160. * src/Request.cc
  161. * src/Request.h
  162. * test/AuthConfigFactoryTest.cc
  163. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  164. Fixed typo
  165. * doc/aria2c.1.txt
  166. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  167. Fixed typo
  168. * src/usage_text.h
  169. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  170. Added missing bitfield.cc
  171. * src/bitfield.cc
  172. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  173. Renamed Util.{cc,h} as util.{cc,h}
  174. * src/Util.cc
  175. * src/Util.h
  176. * src/util.cc
  177. * src/util.h
  178. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  179. Moved static functions in Util class to namespace util.
  180. * src
  181. * test
  182. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  183. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  184. Moved generateRandomKey to bittorrent_helper.cc.
  185. * src/DHTBucket.cc
  186. * src/DHTGetPeersMessage.cc
  187. * src/DHTGetPeersReplyMessage.cc
  188. * src/DHTMessage.cc
  189. * src/DHTNode.cc
  190. * src/DHTTokenTracker.cc
  191. * src/DHTUtil.cc: Removed.
  192. * src/DHTUtil.h: Removed.
  193. * src/Makefile.am
  194. * src/Util.cc
  195. * src/Util.h
  196. * src/bitfield.h
  197. * src/bittorrent_helper.cc
  198. * src/bittorrent_helper.h
  199. * test/ARC4Test.cc
  200. * test/BNodeTest.cc
  201. * test/DHTAnnouncePeerMessageTest.cc
  202. * test/DHTAnnouncePeerReplyMessageTest.cc
  203. * test/DHTFindNodeMessageTest.cc
  204. * test/DHTFindNodeReplyMessageTest.cc
  205. * test/DHTGetPeersMessageTest.cc
  206. * test/DHTGetPeersReplyMessageTest.cc
  207. * test/DHTPingMessageTest.cc
  208. * test/DHTPingReplyMessageTest.cc
  209. * test/DHTTokenTrackerTest.cc
  210. * test/DHTUtilTest.cc: Removed.
  211. * test/Makefile.am
  212. * test/UtilTest.cc
  213. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  214. Removed the call to trim() because trim() is called for each
  215. element in split().
  216. * src/CookieParser.cc
  217. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  218. Replaced Util::slice() with split()
  219. * src/AbstractCommand.cc
  220. * src/CookieParser.cc
  221. * src/File.cc
  222. * src/HttpHeaderProcessor.cc
  223. * src/HttpRequest.cc
  224. * src/Metalink2RequestGroup.cc
  225. * src/MetalinkParserController.cc
  226. * src/Netrc.cc
  227. * src/NsCookieParser.cc
  228. * src/ParameterizedStringParser.cc
  229. * src/ServerStatMan.cc
  230. * src/UriListParser.cc
  231. * src/Util.cc
  232. * src/Util.h
  233. * src/bittorrent_helper.cc
  234. * test/UtilTest.cc
  235. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  236. Use request->getDir() instead of "/" for embedded user/pass in
  237. URI.
  238. * src/AuthConfigFactory.cc
  239. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  240. Fixed wrong insertion point for BasicCred.
  241. * src/AuthConfigFactory.cc
  242. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  243. Allowed non-regular file in LocalFilePathOptionHandler
  244. * src/OptionHandlerImpl.h
  245. * src/message.h
  246. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  247. Fixed the bug that Netrc::parse() cannot recognize comment line.
  248. * src/Netrc.cc
  249. * src/Util.h
  250. * test/NetrcTest.cc
  251. * test/sample.netrc
  252. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  253. Fixed typo
  254. * src/BtDependency.cc
  255. * src/BtRejectMessage.cc
  256. * src/FtpConnection.cc
  257. * src/HttpHeaderProcessor.h
  258. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  259. Fixed lintian report in man page
  260. * doc/aria2c.1.txt
  261. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  262. Release 1.6.2
  263. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  264. Updated Ukrainian translation. Thanks to all translators.
  265. * po/uk.po
  266. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  267. Updated translation template
  268. * po
  269. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  270. Bump up version number to 1.6.2
  271. * configure.ac
  272. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  273. Updated licence message in -v output.
  274. * src/version_usage.cc
  275. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  276. Replaced aria2 with aria2c in help message.
  277. * src/version_usage.cc
  278. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  279. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  280. * src/version_usage.cc
  281. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  282. Quoted localedir
  283. * src/Makefile.am
  284. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  285. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  286. utime. Check header for utime.h.
  287. * configure.ac
  288. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  289. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  290. * configure.ac
  291. * src/daemon.cc
  292. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  293. Don't set localedir manually. Leave it to autoconf.
  294. * configure.ac
  295. * src/Makefile.am
  296. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  297. Added --install to ACLOCAL_AMFLAGS.
  298. Removed m4 from SUBDIRS.
  299. Updated automake 1.11 and autoconf 2.64.
  300. Replaced some obsolute macros with new one.
  301. * Makefile.am
  302. * configure.ac
  303. * m4/aria2_arg.m4
  304. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  305. Removed Makefile.am in m4 directory.
  306. * configure.ac
  307. * m4/ChangeLog
  308. * m4/Makefile.am
  309. * m4/Makefile.in
  310. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  311. Removed unused m4 macros.
  312. * m4/intldir.m4
  313. * m4/inttypes.m4
  314. * m4/isc-posix.m4
  315. * m4/libgnutls-extra.m4
  316. * m4/ulonglong.m4
  317. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  318. Fixed the bug that causes segmentation fault if
  319. req->getCurrentUrl() contains printf formatting characters such as
  320. %d. The statement that causes this bug is useless and removed.
  321. * src/AbstractCommand.cc
  322. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  323. * Release 1.6.1
  324. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  325. Updated Simplified Chinese translation. Thanks to translators.
  326. * po/zh_CN.po
  327. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  328. Updated translation template
  329. * po
  330. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  331. Bump up version number to 1.6.1
  332. * configure.ac
  333. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  334. Changed interval from 120 to 60 for dropping inactive peer.
  335. * src/DefaultBtInteractive.cc
  336. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  337. Updated man page for --user-agent and --peer-id-prefix option.
  338. * doc/aria2c.1.txt
  339. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  340. Code clean up
  341. * src/BtPostDownloadHandler.cc
  342. * src/ContentTypeRequestGroupCriteria.cc
  343. * src/ContentTypeRequestGroupCriteria.h
  344. * src/DownloadHandlerConstants.cc
  345. * src/DownloadHandlerConstants.h
  346. * src/DownloadHandlerFactory.cc
  347. * src/MetalinkPostDownloadHandler.cc
  348. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  349. Don't save control file when aria2 exists while checking piece
  350. hash(behavior of -V option). If control file doesn't exist when
  351. aria2 launched, the completed length in saved control file will be
  352. 0 byte and this confuses user. disableSaveControlFile() is called
  353. in RequestGroup::processCheckIntegrityEntry().
  354. enableSaveControlFile() will be called after hash checking is
  355. done. See CheckIntegrityCommand.
  356. * src/CheckIntegrityCommand.cc
  357. * src/RequestGroup.cc
  358. * src/RequestGroup.h
  359. * src/RequestGroupMan.cc
  360. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  361. Included version number in Peer ID and client version. Peer ID
  362. now starts with "aria2/VERSION-", where VERSION is
  363. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  364. * src/DefaultBtInteractive.cc
  365. * src/OptionHandlerFactory.cc
  366. * src/bittorrent_helper.cc
  367. * src/bittorrent_helper.h
  368. * src/main.cc
  369. * src/usage_text.h
  370. * test/BittorrentHelperTest.cc
  371. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  372. Fixed memory leak.
  373. * src/DownloadCommand.cc
  374. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  375. Removed server, port, user and passwd key from options before
  376. XMLRPC::Client.call since they are not options of aria2.
  377. * doc/xmlrpc/aria2mon
  378. * doc/xmlrpc/aria2rpc
  379. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  380. Included version number in user-agent string.
  381. * src/OptionHandlerFactory.cc
  382. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  383. Fixed the bug that the option values changed by XML-RPC
  384. method(changeOption and changeGlobalOption) are overwritten to the
  385. previous value by the next these request which doesn't contain
  386. that option value. Supporse max-download-limit is initially 0. You
  387. changed this value to 100K by changeOption. Then you issue
  388. changeOption request to change max-upload-limit to 50K. This
  389. second request doesn't contain xml-download-limit, so it is back
  390. to initial value, 0. Another improvement is that exception is
  391. thrown when changeOption and changeGlobalOption request contains
  392. option name which doesn't allowed in each request.
  393. * src/DownloadEngine.h
  394. * src/XmlRpcMethod.cc
  395. * src/XmlRpcMethod.h
  396. * src/XmlRpcMethodImpl.cc
  397. * src/download_helper.cc
  398. * src/download_helper.h
  399. * test/XmlRpcMethodTest.cc
  400. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  401. Added missing MetalinkParserStateImpl.{cc,h}
  402. * src/MetalinkParserStateImpl.cc
  403. * src/MetalinkParserStateImpl.h
  404. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  405. Put all MetalinkParserState subclasses into
  406. MetalinkParserStateImpl.cc. Use stack to track element structure.
  407. * src/FileMetalinkParserState.cc: Removed
  408. * src/FileMetalinkParserState.h: Removed
  409. * src/FilesMetalinkParserState.cc: Removed
  410. * src/FilesMetalinkParserState.h: Removed
  411. * src/FinMetalinkParserState.cc: Removed
  412. * src/FinMetalinkParserState.h: Removed
  413. * src/HashMetalinkParserState.cc: Removed
  414. * src/HashMetalinkParserState.h: Removed
  415. * src/InitialMetalinkParserState.cc: Removed
  416. * src/InitialMetalinkParserState.h: Removed
  417. * src/LanguageMetalinkParserState.cc: Removed
  418. * src/LanguageMetalinkParserState.h: Removed
  419. * src/Makefile.am
  420. * src/MetalinkMetalinkParserState.cc: Removed
  421. * src/MetalinkMetalinkParserState.h: Removed
  422. * src/MetalinkParserState.h
  423. * src/MetalinkParserStateMachine.cc
  424. * src/MetalinkParserStateMachine.h
  425. * src/OSMetalinkParserState.cc: Removed
  426. * src/OSMetalinkParserState.h: Removed
  427. * src/PieceHashMetalinkParserState.cc: Removed
  428. * src/PieceHashMetalinkParserState.h: Removed
  429. * src/PiecesMetalinkParserState.cc: Removed
  430. * src/PiecesMetalinkParserState.h: Removed
  431. * src/ResourcesMetalinkParserState.cc: Removed
  432. * src/ResourcesMetalinkParserState.h: Removed
  433. * src/SignatureMetalinkParserState.cc: Removed
  434. * src/SignatureMetalinkParserState.h: Removed
  435. * src/SizeMetalinkParserState.cc: Removed
  436. * src/SizeMetalinkParserState.h: Removed
  437. * src/SkipTagMetalinkParserState.cc: Removed
  438. * src/SkipTagMetalinkParserState.h: Removed
  439. * src/URLMetalinkParserState.cc: Removed
  440. * src/URLMetalinkParserState.h: Removed
  441. * src/VerificationMetalinkParserState.cc: Removed
  442. * src/VerificationMetalinkParserState.h: Removed
  443. * src/VersionMetalinkParserState.cc: Removed
  444. * src/VersionMetalinkParserState.h: Removed
  445. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  446. Move all functions in PeerMessageUtil to bittorrent_helper.
  447. * src/BtBitfieldMessage.cc
  448. * src/BtBitfieldMessageValidator.h
  449. * src/BtExtendedMessage.cc
  450. * src/BtHandshakeMessage.cc
  451. * src/BtHandshakeMessageValidator.h
  452. * src/BtPieceMessage.cc
  453. * src/BtPieceMessageValidator.h
  454. * src/BtPortMessage.cc
  455. * src/DHTFindNodeReplyMessage.cc
  456. * src/DHTGetPeersReplyMessage.cc
  457. * src/DHTMessageFactoryImpl.cc
  458. * src/DHTRoutingTableDeserializer.cc
  459. * src/DHTRoutingTableSerializer.cc
  460. * src/DHTTokenTracker.cc
  461. * src/DefaultBtMessageFactory.cc
  462. * src/IndexBtMessage.cc
  463. * src/IndexBtMessage.h
  464. * src/IndexBtMessageValidator.h
  465. * src/Makefile.am
  466. * src/PeerMessageUtil.cc: Removed.
  467. * src/PeerMessageUtil.h: Removed.
  468. * src/RangeBtMessage.cc
  469. * src/RangeBtMessage.h
  470. * src/RangeBtMessageValidator.h
  471. * src/UTPexExtensionMessage.cc
  472. * src/ZeroBtMessage.cc
  473. * src/ZeroBtMessage.h
  474. * src/bittorrent_helper.cc
  475. * src/bittorrent_helper.h
  476. * test/BittorrentHelperTest.cc
  477. * test/BtAllowedFastMessageTest.cc
  478. * test/BtBitfieldMessageTest.cc
  479. * test/BtCancelMessageTest.cc
  480. * test/BtChokeMessageTest.cc
  481. * test/BtExtendedMessageTest.cc
  482. * test/BtHandshakeMessageTest.cc
  483. * test/BtHaveAllMessageTest.cc
  484. * test/BtHaveMessageTest.cc
  485. * test/BtHaveNoneMessageTest.cc
  486. * test/BtInterestedMessageTest.cc
  487. * test/BtNotInterestedMessageTest.cc
  488. * test/BtPieceMessageTest.cc
  489. * test/BtPortMessageTest.cc
  490. * test/BtRejectMessageTest.cc
  491. * test/BtRequestMessageTest.cc
  492. * test/BtSuggestPieceMessageTest.cc
  493. * test/BtUnchokeMessageTest.cc
  494. * test/DHTFindNodeReplyMessageTest.cc
  495. * test/DHTGetPeersReplyMessageTest.cc
  496. * test/DHTMessageFactoryImplTest.cc
  497. * test/DHTRoutingTableDeserializerTest.cc
  498. * test/DHTRoutingTableSerializerTest.cc
  499. * test/DefaultBtMessageFactoryTest.cc
  500. * test/DefaultExtensionMessageFactoryTest.cc
  501. * test/Makefile.am
  502. * test/PeerListProcessorTest.cc
  503. * test/PeerMessageUtilTest.cc: Removed.
  504. * test/UTPexExtensionMessageTest.cc
  505. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  506. Limit the size of values list when sending get_peers reply.
  507. * src/DHTGetPeersReplyMessage.cc
  508. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  509. Updated banner
  510. * doc/xmlrpc/aria2rpc
  511. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  512. Added missing help message for remove command.
  513. * doc/xmlrpc/aria2rpc
  514. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  515. Generated configure and config.h.in
  516. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  517. Add check for fork(), which is missing on MinGW
  518. * src/daemon.cc
  519. * configure.ac
  520. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  521. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  522. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  523. Util::httpGMT().
  524. * src/Util.cc
  525. * src/Util.h
  526. * test/UtilTest.cc
  527. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  528. * Release 1.6.0
  529. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  530. Fixed a path to xmlrpc/README.txt
  531. * doc/Makefile.am
  532. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  533. Added XML-RPC in -v Configuration output.
  534. * src/FeatureConfig.cc
  535. * src/FeatureConfig.h
  536. * test/FeatureConfigTest.cc
  537. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  538. Updated Bulgarian, Russian, Slovak and Japanese
  539. translations. Thanks to all translators.
  540. * po/bg.po
  541. * po/ja.po
  542. * po/ru.po
  543. * po/sk.po
  544. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  545. Removed --retry-wait option from aria2rpc
  546. * doc/xmlrpc/aria2rpc
  547. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  548. Removed --retry-wait option from man page.
  549. * doc/aria2c.1.txt
  550. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  551. Removed --retry-wait option since the current architecture doesn't
  552. allow sleep for particular URI.
  553. * src/AbstractCommand.cc
  554. * src/OptionHandlerFactory.cc
  555. * src/download_helper.cc
  556. * src/prefs.cc
  557. * src/prefs.h
  558. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  559. Removed Retry-After header support. Since the current architecture
  560. doesn't allow sleep for particular URI.
  561. * src/HttpSkipResponseCommand.cc
  562. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  563. Updated the help message for --daemon option.
  564. * doc/aria2c.1.txt
  565. * src/usage_text.h
  566. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  567. Added our own daemon() function for systems which desn't have
  568. daemon(3).
  569. * configure.ac
  570. * src/Makefile.am
  571. * src/daemon.cc
  572. * src/daemon.h
  573. * src/option_processing.cc
  574. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  575. Simplified File::getCurrentDir()
  576. * src/File.cc
  577. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  578. Use exit() instead of _exit
  579. * src/RequestGroupMan.cc
  580. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  581. Replaced "CATEGORY" with "TAGS".
  582. * src/usage_text.h
  583. * doc/aria2c.1.txt
  584. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  585. Updated the help message for --help option.
  586. * src/usage_text.h
  587. * doc/aria2c.1.txt
  588. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  589. Updated man page for added help tags.
  590. * doc/aria2c.1.txt
  591. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  592. Added help category #file. Added #file tag to the options related
  593. to downloaded file.
  594. * src/OptionHandlerFactory.cc
  595. * src/help_tags.h
  596. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  597. Added help categories: #cookie and #hook. Added #https tag to
  598. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  599. * src/OptionHandlerFactory.cc
  600. * src/help_tags.h
  601. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  602. Made MSG_NOT_FILE translatable.
  603. * src/message.h
  604. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  605. Updated man page for --help option.
  606. * doc/aria2c.1.txt
  607. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  608. Updated doc.
  609. * src/XmlRpcMethod.h
  610. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  611. Help category now starts with "#" to distinguish a category from
  612. keyword search. For example, "http" categroy is now "#http". You
  613. can type "--help=#http" to get explanation of options related to
  614. http. If '#' is omitted, then the argument is treated as a keyword
  615. and aria2 searches options whose name includes the keyword and
  616. print matched ones. For example, "--help=http" will show options
  617. whose name includes "http".
  618. * src/OptionHandlerFactory.cc
  619. * src/help_tags.h
  620. * src/usage_text.h
  621. * src/version_usage.cc
  622. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  623. Documented missing experimental tag and newly added xml-rpc tag in
  624. man page.
  625. * doc/aria2c.1.txt
  626. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  627. Added xml-rpc help tag. Tagged xml-rpc related options with
  628. xml-rpc tag.
  629. * src/OptionHandlerFactory.cc
  630. * src/help_tags.h
  631. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  632. Updated message when a path is not a file. Updated common message
  633. for wrong option.
  634. * src/OptionHandlerException.cc
  635. * src/message.h
  636. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  637. Use File::isFile() instead of File::exists(). Updated message when
  638. a path is not a file.
  639. * src/OptionHandlerImpl.cc
  640. * src/message.h
  641. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  642. Fixed the bug that server performence profile is not updated when
  643. aria2c was terminated by emergency shutdown.
  644. * src/TrackerWatcherCommand.cc
  645. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  646. Use LocalFilePathOptionHandler for -T and -M option.
  647. Updated message of MSG_FILE_NOT_EXIST.
  648. * src/OptionHandlerFactory.cc
  649. * src/message.h
  650. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  651. Added LocalFilePathOptionHandler which check whether the specified
  652. file path does exist or not.
  653. * src/OptionHandlerImpl.cc
  654. * src/message.h
  655. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  656. Updated wiki page URI.
  657. * README
  658. * doc/aria2c.1.txt
  659. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  660. Added README.txt for xmlrpc directory.
  661. * doc/Makefile.am
  662. * doc/xmlrpc/README.txt
  663. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  664. Bump up version number to 1.6.0.
  665. * configure.ac
  666. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  667. Added XML-RPC client scripts written in ruby.
  668. * doc/Makefile.am
  669. * doc/xmlrpc/aria2mon
  670. * doc/xmlrpc/aria2rpc
  671. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  672. Added support for IPv6 literal address in URI. Now aria2 can
  673. handle URI such as http://[::1]/
  674. * src/HttpRequest.cc
  675. * src/HttpRequest.h
  676. * src/Request.cc
  677. * src/Request.h
  678. * test/HttpRequestTest.cc
  679. * test/OptionHandlerTest.cc
  680. * test/RequestTest.cc
  681. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  682. Fixed the bug that HTTP request header for XML-RPC request is not
  683. parsed properly.
  684. * src/HttpHeader.cc
  685. * src/HttpHeaderProcessor.cc
  686. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  687. Fixed the bug that XML-RPC authorization might be done before HTTP
  688. request header is fully received.
  689. * src/HttpServerCommand.cc
  690. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  691. Documented --xml-rpc-listen-all option in man page.
  692. * doc/aria2c.1.txt
  693. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  694. Added --xml-rpc-listen-all option. If true is given to this
  695. option, aria2 listens incoming XML-RPC requests on all network
  696. interfaces. If false is given, listens only on local loopback
  697. interface. The default value is false.
  698. * src/HttpListenCommand.cc
  699. * src/OptionHandlerFactory.cc
  700. * src/SocketCore.cc
  701. * src/SocketCore.h
  702. * src/prefs.cc
  703. * src/prefs.h
  704. * src/usage_text.h
  705. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  706. * Release 1.5.2
  707. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  708. Updated Ukrainian and Russian translations. Thanks to all
  709. translators.
  710. * po/ru.po
  711. * po/uk.po
  712. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  713. Bump up version number to 1.5.2
  714. * configure.ac
  715. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  716. Get comment, comment.utf-8, created by and creation date from
  717. .torrent file and print them in -S output.
  718. * src/bittorrent_helper.cc
  719. * src/bittorrent_helper.h
  720. * test/BittorrentHelperTest.cc
  721. * test/test.torrent
  722. * test/utf8.torrent
  723. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  724. Show exact file size along in -S option output.
  725. * src/Util.h
  726. * src/bittorrent_helper.cc
  727. * test/UtilTest.cc
  728. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  729. Avoided unnecessary memory allocation in
  730. BitfieldMan::getCompletedLength().
  731. * src/BitfieldMan.cc
  732. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  733. Fixed the bug that download fails if
  734. SocketCore::establishConnection() throws exception and aria2
  735. doesn't try another address.
  736. * src/AbstractCommand.cc
  737. * src/InitiateConnectionCommand.cc
  738. * src/message.h
  739. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  740. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  741. detected properly.
  742. * m4/sqlite3.m4
  743. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  744. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  745. because it causes compile error if PARAMS macro is defined.
  746. * src/XmlRpcElements.cc
  747. * src/XmlRpcElements.h
  748. * src/XmlRpcRequestParserStateImpl.cc
  749. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  750. * Release 1.5.1
  751. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  752. Bump up version number to 1.5.1
  753. * configure.ac
  754. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  755. Fixed compile error without BitTorrent support
  756. * src/DefaultBtProgressInfoFile.cc
  757. * src/DownloadEngine.cc
  758. * src/DownloadEngine.h
  759. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  760. Added missing '=' in Download Results
  761. * src/RequestGroupMan.cc
  762. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  763. Fixed compiler warning
  764. * src/DefaultBtProgressInfoFile.cc
  765. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  766. Fixed compiler warning on 32bit systems.
  767. * src/DownloadCommand.cc
  768. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  769. Call flush from ServerStatMan::save()
  770. * src/ServerStatMan.cc
  771. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  772. Check stream status after file is opened.
  773. * src/CookieStorage.cc
  774. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  775. Rewritten Signature::save()
  776. * src/Signature.cc
  777. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  778. Rewritten RequestGroupMan::saveServerStat()
  779. * src/RequestGroupMan.cc
  780. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  781. Rewritten stream error handling
  782. * src/DHTAutoSaveCommand.cc
  783. * src/DHTRoutingTableDeserializer.cc
  784. * src/DHTRoutingTableSerializer.cc
  785. * src/DHTSetup.cc
  786. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  787. Check stream status after file is opened.
  788. * src/DefaultBtProgressInfoFile.cc
  789. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  790. Rewritten stream error handling
  791. * src/DefaultBtProgressInfoFile.cc
  792. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  793. Make sure that stream is closed before renaming file. Unit test
  794. fails on mingw32 in the previous implementation.
  795. * src/CookieStorage.cc
  796. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  797. Fixed the unit test error without sqlite3
  798. * test/CookieStorageTest.cc
  799. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  800. Fixed the undefined reference error
  801. * test/HttpResponseTest.cc
  802. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  803. * Release 1.5.0
  804. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  805. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  806. Ukrainian translations. Thanks to all translators.
  807. * po/ru.po
  808. * po/it.po
  809. * po/da.po
  810. * po/bg.po
  811. * po/ja.po
  812. * po/uk.po
  813. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  814. Added missing src/Logger.cc
  815. * src/Logger.cc
  816. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  817. Rewritten Logger to avoiding constly virtual call.
  818. * src/LogFactory.cc
  819. * src/LogFactory.h
  820. * src/Logger.h
  821. * src/Makefile.am
  822. * src/Makefile.in
  823. * src/NullLogger.h: Removed.
  824. * src/SimpleLogger.cc
  825. * src/SimpleLogger.h
  826. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  827. Updated doc
  828. * src/main.cc
  829. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  830. Updated debug log message
  831. * src/AbstractCommand.cc
  832. * src/message.h
  833. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  834. Avoid to create zombie process when commands specified in
  835. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  836. X and NetBSD.
  837. * src/main.cc
  838. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  839. Fixed typo
  840. * src/usage_text.h
  841. * doc/aria2c.1.txt
  842. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  843. Documented 'errorCode' of tellStatus in man page.
  844. * doc/aria2c.1.txt
  845. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  846. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  847. This key is only available for stopped/completed downloads and its
  848. value is the error code defined in EXIT STATUS in man page.
  849. * src/XmlRpcMethodImpl.cc
  850. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  851. Fixed the bug that session download length is not updated when
  852. PeerStat is not fastest one.
  853. * src/SegmentMan.cc
  854. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  855. Updated doc.
  856. * doc/aria2c.1.txt
  857. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  858. Updated doc.
  859. * src/AbstractCommand.cc
  860. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  861. Handle the case when DownloadContext has no FileEntry.
  862. * src/XmlRpcMethodImpl.cc
  863. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  864. Handle the situation where struct option.name is char *.
  865. * configure.ac
  866. * src/OptionParser.cc
  867. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  868. Code cleanup
  869. * src/AbstractCommand.cc
  870. * src/DownloadCommand.cc
  871. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  872. Use option of each download to create AuthConfig instead of global
  873. option.
  874. * src/AuthConfigFactory.cc
  875. * src/AuthConfigFactory.h
  876. * src/FtpNegotiationCommand.cc
  877. * src/HttpRequest.cc
  878. * src/HttpRequest.h
  879. * src/HttpRequestCommand.cc
  880. * src/HttpSkipResponseCommand.cc
  881. * src/MultiUrlRequestInfo.cc
  882. * test/AuthConfigFactoryTest.cc
  883. * test/FtpConnectionTest.cc
  884. * test/HttpRequestTest.cc
  885. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  886. Don't call prepareForRetry(1) if all segments are ignored in
  887. SegmentMan.
  888. * src/AbstractCommand.cc
  889. * src/BitfieldMan.cc
  890. * src/BitfieldMan.h
  891. * src/SegmentMan.cc
  892. * src/SegmentMan.h
  893. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  894. Removed FileEntry::getAssociatedUris()
  895. * src/FileEntry.h
  896. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  897. Updated doc: TODO1.5 -> TODO
  898. * src/FileEntry.cc
  899. * src/HttpResponseCommand.cc
  900. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  901. Added assertion fileEntries.size() == 1 if BitTorrent is not
  902. involved.
  903. * src/RequestGroup.cc
  904. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  905. Eliminated duplicated filterBitfield initialization code.
  906. * src/BitfieldMan.cc
  907. * src/BitfieldMan.h
  908. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  909. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  910. relatively naive approach, though). For DownloadFailureException,
  911. we handle the case when req is null properly.
  912. * src/AbstractCommand.cc
  913. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  914. Added function returning suffix of control file to
  915. DefaultBtProgressInfoFile.
  916. * src/DefaultBtProgressInfoFile.cc
  917. * src/DefaultBtProgressInfoFile.h
  918. * src/RequestGroup.cc
  919. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  920. Documented getVersion in man page.
  921. * doc/aria2c.1.txt
  922. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  923. Documented type of offset and num for tellWaiting xml-rpc method.
  924. * doc/aria2c.1.txt
  925. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  926. Implemented getVersion xml-rpc method. This method returns struct
  927. which has 2 key-value pairs: "version" key is associated to the
  928. version of aria2, such as "1.5.0". "enabledFeatures" key is
  929. associated to the list of enabled features, such as "Async DNS",
  930. "BitTorrent".
  931. * src/FeatureConfig.h
  932. * src/XmlRpcMethodFactory.cc
  933. * src/XmlRpcMethodImpl.cc
  934. * src/XmlRpcMethodImpl.h
  935. * test/XmlRpcMethodTest.cc
  936. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  937. Removed TLS1.1 protocol support when aria2 is built with gnutls
  938. for compatibility issue.
  939. * src/SocketCore.cc
  940. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  941. Fixed compile error with openSSL
  942. * src/bittorrent_helper.cc
  943. * src/messageDigest.h
  944. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  945. Removed bad code: setting certificate type priority to key
  946. exchange priority.
  947. * src/SocketCore.cc
  948. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  949. Disconnect seeder if client is also in seed state.
  950. * src/BtBitfieldMessage.cc
  951. * src/BtHaveAllMessage.cc
  952. * src/BtHaveMessage.cc
  953. * src/message.h
  954. * test/BtBitfieldMessageTest.cc
  955. * test/BtHaveAllMessageTest.cc
  956. * test/BtHaveMessageTest.cc
  957. * test/MockPieceStorage.h
  958. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  959. Keep CreateRequestCommand in queue when no segment is available so
  960. that they can pick up pieces which slow BitTorrent peers are
  961. downloading.
  962. * src/AbstractCommand.cc
  963. * src/CreateRequestCommand.cc
  964. * src/CreateRequestCommand.h
  965. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  966. --bt-stop-timeout now only checks download speed.
  967. * src/BtStopDownloadCommand.cc
  968. * src/BtStopDownloadCommand.h
  969. * src/BtSetup.cc
  970. * src/usage_text.h
  971. * doc/aria2c.1.txt
  972. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  973. Fixed compile error regarding BUFSIZE.
  974. * src/DownloadCommand.cc
  975. * src/DownloadCommand.h
  976. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  977. Documented tellWaiting xml-rpc method in man page.
  978. * doc/aria2c.1.txt
  979. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  980. Bump up version number to 1.5.0
  981. * configure.ac
  982. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  983. Removed resolved TODO1.5
  984. * src/AbstractCommand.cc
  985. * src/DownloadCommand.cc
  986. * src/RequestGroup.cc
  987. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  988. Release pooled and in-flight Request objectsand URIResult objects
  989. in FileEntry after download completed.
  990. * src/DownloadContext.cc
  991. * src/DownloadContext.h
  992. * src/FileEntry.cc
  993. * src/FileEntry.h
  994. * src/RequestGroup.cc
  995. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  996. Set manual and source attribute in aria2c.1.txt
  997. * doc/aria2c.1.txt
  998. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  999. Documented that the default value of --use-head is 'false' in man
  1000. page.
  1001. * doc/aria2c.1.txt
  1002. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1003. Added bt-stop-timeout option to -i list.
  1004. * doc/aria2c.1.txt
  1005. * src/download_helper.cc
  1006. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1007. Fixed typo
  1008. * doc/aria2c.1.txt
  1009. * src/usage_text.h
  1010. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1011. Removed peer-id-prefix option from -i list.
  1012. * doc/aria2c.1.txt
  1013. * src/download_helper.cc
  1014. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1015. Fixed typo
  1016. * doc/aria2c.1.txt
  1017. * src/usage_text.h
  1018. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1019. Documented --bt-stop-timeout option in man page.
  1020. * doc/aria2c.1.txt
  1021. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1022. Updated README regarding multi-file torrent web-seeding.
  1023. * doc/README.txt
  1024. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1025. Updated man page regarding multi-file torrent web-seeding.
  1026. * doc/aria2c.1.txt
  1027. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1028. Updated doc
  1029. * src/version_usage.cc
  1030. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1031. Winsock select() doesn't work if no socket is in FD_SET. To
  1032. overcome this problem, a dummy socket is added to FD_SET and it is
  1033. given to select().
  1034. * src/SelectEventPoll.cc
  1035. * src/SelectEventPoll.h
  1036. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1037. Disabled --use-head option by default because --use-head=true
  1038. causes problems on some web sites.
  1039. * src/OptionHandlerFactory.cc
  1040. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1041. Print URL List in -S option for torrent.
  1042. * src/bittorrent_helper.cc
  1043. * src/bittorrent_helper.h
  1044. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1045. Allocate buffer in ctor of DownloadCommand.
  1046. * src/DownloadCommand.cc
  1047. * src/DownloadCommand.h
  1048. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1049. Removed DiskAdaptor::onDownloadComplete()
  1050. * src/DirectDiskAdaptor.cc
  1051. * src/DirectDiskAdaptor.h
  1052. * src/DiskAdaptor.h
  1053. * src/MultiDiskAdaptor.cc
  1054. * src/MultiDiskAdaptor.h
  1055. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1056. Committed missing BtStopDownloadCommand.{cc,h}
  1057. * src/BtStopDownloadCommand.cc
  1058. * src/BtStopDownloadCommand.h
  1059. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1060. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  1061. download if the download speed is 0 and the number of seeder is 0
  1062. in consecutive SEC seconds. By default, this function is disabled.
  1063. * src/BtSetup.cc
  1064. * src/Makefile.am
  1065. * src/OptionHandlerFactory.cc
  1066. * src/prefs.cc
  1067. * src/prefs.h
  1068. * src/usage_text.h
  1069. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1070. Removed the call to DiskAdaptor::onDownloadComplete() from
  1071. BtCheckIntegrityEntry and DefaultPieceStorage.
  1072. * src/BtCheckIntegrityEntry.cc
  1073. * src/DefaultPieceStorage.cc
  1074. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1075. Commented out throw statements when number of piece is 0 to
  1076. download 0 length torrent.
  1077. * src/bittorrent_helper.cc
  1078. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1079. Call RequestGroup::createNextCommandWithAdj() from
  1080. BtFileAllocationEntry if at least one FileEntry has URI. The
  1081. static function hasAssociatedUri in RequestGroup.cc is renamed as
  1082. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  1083. * src/BtFileAllocationEntry.cc
  1084. * src/FileEntry.h
  1085. * src/RequestGroup.cc
  1086. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1087. Generate peer ID after SimpleRandomizer is initialized.
  1088. * src/main.cc
  1089. * src/option_processing.cc
  1090. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1091. Removed unused method argument.
  1092. * src/CreateRequestCommand.cc
  1093. * src/RequestGroup.cc
  1094. * src/RequestGroup.h
  1095. * src/RequestGroupMan.cc
  1096. * src/TrackerWatcherCommand.cc
  1097. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1098. Made URI reusing function work.
  1099. * src/CreateRequestCommand.cc
  1100. * src/FileEntry.cc
  1101. * src/FileEntry.h
  1102. * test/FileEntryTest.cc
  1103. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1104. Add formerly fastest PeerStat's sessionDownloadLength to new
  1105. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  1106. bytes in a session.
  1107. * src/PeerStat.cc
  1108. * src/SegmentMan.cc
  1109. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1110. If pipelining is enabled, we can always pool socket.
  1111. * src/HttpDownloadCommand.cc
  1112. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1113. In a single file download, file size becomes known just after
  1114. downloading, set total length to FileEntry object when download
  1115. completed.
  1116. * src/DownloadCommand.cc
  1117. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1118. Use std::vector::reserve() for fileEntries and pieceHashes in
  1119. bittorrent_helper
  1120. * src/bittorrent_helper.cc
  1121. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1122. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  1123. Removed hidden option PREF_RESET_URI.
  1124. * src/AbstractCommand.cc
  1125. * src/OptionHandlerFactory.cc
  1126. * src/prefs.cc
  1127. * src/prefs.h
  1128. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1129. Removed unused variable/function.
  1130. * src/PeerStat.h
  1131. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1132. Show first URL in Download Results if file path is not available.
  1133. * src/FileEntry.h
  1134. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1135. Throw exception if file path doesn't exist in FTP URL.
  1136. * src/InitiateConnectionCommandFactory.cc
  1137. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1138. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  1139. * src/BitfieldMan.cc
  1140. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1141. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  1142. of PeerStat in SegmentMan. peerStats is used for calculating
  1143. download speed. Therefore all active PeerStats should be in
  1144. there. Another one is _fastestPeerStats and it only contains
  1145. fastest PeerStat for each hostname/protocol pair. They are used
  1146. for updating ServerStat.
  1147. * src/DownloadCommand.cc
  1148. * src/Request.h
  1149. * src/RequestGroupMan.cc
  1150. * src/SegmentMan.cc
  1151. * src/SegmentMan.h
  1152. * test/SegmentManTest.cc
  1153. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1154. Try all available addresses returned by DNS until it gets
  1155. connected in HTTP(S)/FTP download
  1156. * src/AbstractCommand.cc
  1157. * src/AbstractCommand.h
  1158. * src/AbstractProxyRequestCommand.cc
  1159. * src/AbstractProxyRequestCommand.h
  1160. * src/DNSCache.h
  1161. * src/DownloadEngine.cc
  1162. * src/DownloadEngine.h
  1163. * src/FtpInitiateConnectionCommand.cc
  1164. * src/FtpInitiateConnectionCommand.h
  1165. * src/FtpNegotiationCommand.cc
  1166. * src/FtpNegotiationCommand.h
  1167. * src/HttpInitiateConnectionCommand.cc
  1168. * src/HttpInitiateConnectionCommand.h
  1169. * src/HttpRequestCommand.cc
  1170. * src/HttpRequestCommand.h
  1171. * src/InitiateConnectionCommand.cc
  1172. * src/InitiateConnectionCommand.h
  1173. * test/DNSCacheTest.cc
  1174. * test/Makefile.am
  1175. * test/SimpleDNSCacheTest.cc
  1176. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1177. Updated doc
  1178. * src/download_helper.cc
  1179. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1180. Refactored fieldMan ctor.
  1181. * src/BitfieldMan.cc
  1182. * src/BitfieldMan.h
  1183. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1184. Don't print "No files to download." message if -S is given.
  1185. * src/main.cc
  1186. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1187. Set referer and method to newly created Request object.
  1188. * src/CreateRequestCommand.cc
  1189. * src/FileEntry.cc
  1190. * src/FileEntry.h
  1191. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1192. Removed ctor of AbstractCommand which doesn't take FileEntry.
  1193. * src/AbstractCommand.cc
  1194. * src/AbstractCommand.h
  1195. * src/CreateRequestCommand.cc
  1196. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1197. Get proxy download working
  1198. * src/AbstractProxyRequestCommand.cc
  1199. * src/AbstractProxyRequestCommand.h
  1200. * src/AbstractProxyResponseCommand.cc
  1201. * src/AbstractProxyResponseCommand.h
  1202. * src/FtpInitiateConnectionCommand.cc
  1203. * src/FtpTunnelRequestCommand.cc
  1204. * src/FtpTunnelRequestCommand.h
  1205. * src/FtpTunnelResponseCommand.cc
  1206. * src/FtpTunnelResponseCommand.h
  1207. * src/HttpInitiateConnectionCommand.cc
  1208. * src/HttpProxyRequestCommand.cc
  1209. * src/HttpProxyRequestCommand.h
  1210. * src/HttpProxyResponseCommand.cc
  1211. * src/HttpProxyResponseCommand.h
  1212. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1213. Use SegmentMan::getSegment(cuid) for single file download.
  1214. * src/AbstractCommand.cc
  1215. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1216. Fixed bufSize calculation
  1217. * src/DownloadCommand.cc
  1218. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1219. Don't append "/" if base URI ends with "/".
  1220. * src/bittorrent_helper.cc
  1221. * test/url-list-multiFile.torrent
  1222. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1223. HTTP pipelining is now working. Fixed Segmention fault in
  1224. BitfieldMan's copy ctor.
  1225. * src/AbstractCommand.cc
  1226. * src/BitfieldMan.cc
  1227. * src/BitfieldMan.h
  1228. * src/DownloadCommand.cc
  1229. * src/HttpDownloadCommand.cc
  1230. * src/HttpRequest.cc
  1231. * src/SegmentMan.cc
  1232. * src/SegmentMan.h
  1233. * test/BitfieldManTest.cc
  1234. * test/SegmentManTest.cc
  1235. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1236. Removed ServerHost. Same functionality is implemented using
  1237. FileEntry's in-flight Request objects.
  1238. * src/AbstractCommand.cc
  1239. * src/BtDependency.cc
  1240. * src/CreateRequestCommand.cc
  1241. * src/FileEntry.cc
  1242. * src/FileEntry.h
  1243. * src/FtpNegotiationCommand.cc
  1244. * src/HttpResponseCommand.cc
  1245. * src/Makefile.am
  1246. * src/Metalink2RequestGroup.cc
  1247. * src/RequestGroup.cc
  1248. * src/RequestGroup.h
  1249. * src/ServerHost.cc: Removed
  1250. * src/ServerHost.h: Removed
  1251. * test/BtDependencyTest.cc
  1252. * test/FileEntryTest.cc
  1253. * test/RequestGroupTest.cc
  1254. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1255. Rewritten PeerStat handling. In the previous implementation,
  1256. faster command tries to find slower command. In this new
  1257. implementation, slower command tries to find faster command.
  1258. PeerStat is now created in each HTTP/FTP request to get download
  1259. rate correctly. If the download range is small, the download rate
  1260. tends to small and this will occur at the later stage of download.
  1261. * src/AbstractCommand.cc
  1262. * src/DownloadCommand.cc
  1263. * src/FileEntry.cc
  1264. * src/FileEntry.h
  1265. * src/Request.cc
  1266. * src/Request.h
  1267. * src/RequestGroup.h
  1268. * src/RequestGroupMan.cc
  1269. * src/SegmentMan.cc
  1270. * src/SegmentMan.h
  1271. * test/SegmentManTest.cc
  1272. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1273. Removed _uris from RequestGroup. All functions that refer to _uris
  1274. were moved to FileEntry. Exit status code are now defined in
  1275. DownloadResultCode.h.
  1276. * src/AbstractCommand.cc
  1277. * src/AdaptiveURISelector.cc
  1278. * src/AdaptiveURISelector.h
  1279. * src/AutoSaveCommand.cc
  1280. * src/BtPostDownloadHandler.cc
  1281. * src/CheckIntegrityDispatcherCommand.cc
  1282. * src/CookieStorage.cc
  1283. * src/DHTAutoSaveCommand.cc
  1284. * src/DHTBucketRefreshCommand.cc
  1285. * src/DHTEntryPointNameResolveCommand.cc
  1286. * src/DHTInteractionCommand.cc
  1287. * src/DHTPeerAnnounceCommand.cc
  1288. * src/DHTTokenUpdateCommand.cc
  1289. * src/DlAbortEx.h
  1290. * src/DlRetryEx.h
  1291. * src/DownloadCommand.cc
  1292. * src/DownloadContext.h
  1293. * src/DownloadFailureException.h
  1294. * src/DownloadResult.h
  1295. * src/DownloadResultCode.h
  1296. * src/FeedbackURISelector.cc
  1297. * src/FeedbackURISelector.h
  1298. * src/FileEntry.cc
  1299. * src/FileEntry.h
  1300. * src/FtpNegotiationCommand.cc
  1301. * src/HttpListenCommand.cc
  1302. * src/HttpResponseCommand.cc
  1303. * src/HttpServerResponseCommand.cc
  1304. * src/HttpSkipResponseCommand.cc
  1305. * src/InOrderURISelector.cc
  1306. * src/InOrderURISelector.h
  1307. * src/Makefile.am
  1308. * src/Makefile.in
  1309. * src/Metalink2RequestGroup.cc
  1310. * src/MultiUrlRequestInfo.cc
  1311. * src/MultiUrlRequestInfo.h
  1312. * src/OptionHandlerFactory.cc
  1313. * src/PeerListenCommand.cc
  1314. * src/RecoverableException.h
  1315. * src/RequestGroup.cc
  1316. * src/RequestGroup.h
  1317. * src/RequestGroupMan.cc
  1318. * src/RequestGroupMan.h
  1319. * src/TimedHaltCommand.cc
  1320. * src/TrackerWatcherCommand.cc
  1321. * src/URIResult.cc
  1322. * src/URIResult.h
  1323. * src/URISelector.h
  1324. * src/XmlRpcMethodImpl.cc
  1325. * src/bittorrent_helper.cc
  1326. * src/bittorrent_helper.h
  1327. * src/download_helper.cc
  1328. * src/main.cc
  1329. * src/option_processing.cc
  1330. * test/BtDependencyTest.cc
  1331. * test/BtPostDownloadHandlerTest.cc
  1332. * test/CookieStorageTest.cc
  1333. * test/DefaultBtMessageDispatcherTest.cc
  1334. * test/DownloadHandlerFactoryTest.cc
  1335. * test/DownloadHelperTest.cc
  1336. * test/FeedbackURISelectorTest.cc
  1337. * test/FileEntryTest.cc
  1338. * test/InOrderURISelectorTest.cc
  1339. * test/Metalink2RequestGroupTest.cc
  1340. * test/MetalinkPostDownloadHandlerTest.cc
  1341. * test/RequestGroupManTest.cc
  1342. * test/RequestGroupTest.cc
  1343. * test/XmlRpcMethodTest.cc
  1344. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1345. Removed MockBtContext.h
  1346. * test/Makefile.am
  1347. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1348. Removed _currentRequest from StreamCheckIntegrityEntry and
  1349. StreamFileAllocationEntry.
  1350. * src/AbstractCommand.cc
  1351. * src/HttpResponseCommand.cc
  1352. * src/RequestGroup.cc
  1353. * src/StreamCheckIntegrityEntry.cc
  1354. * src/StreamCheckIntegrityEntry.h
  1355. * src/StreamFileAllocationEntry.cc
  1356. * src/StreamFileAllocationEntry.h
  1357. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1358. Rewritten DownloadContext and removed SingleFileDownloadContext
  1359. and BtContext and its derived classes. BitTorrent specific
  1360. attributes are now set by DownloadContext::setAttribute() with key
  1361. bittorrent::BITTORRENT.
  1362. * src/AbstractBtMessage.cc
  1363. * src/AbstractBtMessage.h
  1364. * src/AbstractCommand.cc
  1365. * src/AbstractCommand.h
  1366. * src/AbstractProxyRequestCommand.cc
  1367. * src/AbstractProxyResponseCommand.cc
  1368. * src/ActivePeerConnectionCommand.cc
  1369. * src/ActivePeerConnectionCommand.h
  1370. * src/AnnounceList.cc
  1371. * src/BtCheckIntegrityEntry.cc
  1372. * src/BtConstants.h
  1373. * src/BtContext.h: Removed
  1374. * src/BtDependency.cc
  1375. * src/BtExtendedMessage.cc
  1376. * src/BtPieceMessage.cc
  1377. * src/BtPieceMessage.h
  1378. * src/BtPostDownloadHandler.cc
  1379. * src/BtRegistry.cc
  1380. * src/BtRegistry.h
  1381. * src/BtSetup.cc
  1382. * src/CheckIntegrityCommand.cc
  1383. * src/CheckIntegrityEntry.cc
  1384. * src/ChecksumCheckIntegrityEntry.cc
  1385. * src/ConsoleStatCalc.cc
  1386. * src/ContentTypeRequestGroupCriteria.cc
  1387. * src/DHTGetPeersCommand.cc
  1388. * src/DHTGetPeersCommand.h
  1389. * src/DHTPeerLookupTask.cc
  1390. * src/DHTPeerLookupTask.h
  1391. * src/DHTTaskFactory.h
  1392. * src/DHTTaskFactoryImpl.cc
  1393. * src/DHTTaskFactoryImpl.h
  1394. * src/DefaultBtAnnounce.cc
  1395. * src/DefaultBtAnnounce.h
  1396. * src/DefaultBtContext.cc: Removed
  1397. * src/DefaultBtContext.h: Removed
  1398. * src/DefaultBtInteractive.cc
  1399. * src/DefaultBtInteractive.h
  1400. * src/DefaultBtMessageDispatcher.cc
  1401. * src/DefaultBtMessageDispatcher.h
  1402. * src/DefaultBtMessageFactory.cc
  1403. * src/DefaultBtMessageFactory.h
  1404. * src/DefaultBtMessageReceiver.cc
  1405. * src/DefaultBtMessageReceiver.h
  1406. * src/DefaultBtProgressInfoFile.cc
  1407. * src/DefaultBtRequestFactory.cc
  1408. * src/DefaultBtRequestFactory.h
  1409. * src/DefaultExtensionMessageFactory.cc
  1410. * src/DefaultExtensionMessageFactory.h
  1411. * src/DefaultPeerStorage.cc
  1412. * src/DefaultPeerStorage.h
  1413. * src/DefaultPieceStorage.cc
  1414. * src/DefaultSegmentManFactory.cc
  1415. * src/DiskAdaptor.cc
  1416. * src/DiskAdaptor.h
  1417. * src/DownloadContext.cc
  1418. * src/DownloadContext.h
  1419. * src/DownloadEngine.cc
  1420. * src/DownloadEngineFactory.cc
  1421. * src/DownloadHandler.cc
  1422. * src/DownloadResult.h
  1423. * src/FileAllocationCommand.cc
  1424. * src/FileAllocationDispatcherCommand.cc
  1425. * src/FileAllocationEntry.cc
  1426. * src/FileEntry.h
  1427. * src/FillRequestGroupCommand.cc
  1428. * src/FtpDownloadCommand.cc
  1429. * src/FtpFinishDownloadCommand.cc
  1430. * src/FtpInitiateConnectionCommand.cc
  1431. * src/FtpNegotiationCommand.cc
  1432. * src/FtpTunnelRequestCommand.cc
  1433. * src/FtpTunnelResponseCommand.cc
  1434. * src/HandshakeExtensionMessage.cc
  1435. * src/HandshakeExtensionMessage.h
  1436. * src/HaveEraseCommand.cc
  1437. * src/HttpDownloadCommand.cc
  1438. * src/HttpInitiateConnectionCommand.cc
  1439. * src/HttpProxyRequestCommand.cc
  1440. * src/HttpProxyResponseCommand.cc
  1441. * src/HttpRequest.cc
  1442. * src/HttpRequest.h
  1443. * src/HttpRequestCommand.cc
  1444. * src/HttpResponseCommand.cc
  1445. * src/HttpServerBodyCommand.cc
  1446. * src/HttpServerCommand.cc
  1447. * src/HttpSkipResponseCommand.cc
  1448. * src/InitiateConnectionCommandFactory.cc
  1449. * src/InitiatorMSEHandshakeCommand.cc
  1450. * src/InitiatorMSEHandshakeCommand.h
  1451. * src/IteratableChecksumValidator.cc
  1452. * src/IteratableChecksumValidator.h
  1453. * src/IteratableChunkChecksumValidator.cc
  1454. * src/MSEHandshake.cc
  1455. * src/MSEHandshake.h
  1456. * src/Makefile.am
  1457. * src/Makefile.in
  1458. * src/Metalink2RequestGroup.cc
  1459. * src/MetalinkPostDownloadHandler.cc
  1460. * src/MultiDiskAdaptor.cc
  1461. * src/MultiDiskAdaptor.h
  1462. * src/MultiFileAllocationIterator.cc
  1463. * src/MultiUrlRequestInfo.cc
  1464. * src/PeerChokeCommand.cc
  1465. * src/PeerChokeCommand.h
  1466. * src/PeerInitiateConnectionCommand.cc
  1467. * src/PeerInitiateConnectionCommand.h
  1468. * src/PeerInteractionCommand.cc
  1469. * src/PeerInteractionCommand.h
  1470. * src/PeerReceiveHandshakeCommand.cc
  1471. * src/PieceHashCheckIntegrityEntry.cc
  1472. * src/RealtimeCommand.cc
  1473. * src/ReceiverMSEHandshakeCommand.cc
  1474. * src/RequestGroup.cc
  1475. * src/RequestGroup.h
  1476. * src/RequestGroupEntry.cc
  1477. * src/RequestGroupMan.cc
  1478. * src/SeedCheckCommand.cc
  1479. * src/SeedCheckCommand.h
  1480. * src/SegmentMan.cc
  1481. * src/ShareRatioSeedCriteria.h
  1482. * src/SingleFileDownloadContext.cc: Removed
  1483. * src/SingleFileDownloadContext.h: Removed
  1484. * src/SleepCommand.cc
  1485. * src/StreamCheckIntegrityEntry.cc
  1486. * src/TrackerWatcherCommand.cc
  1487. * src/TrackerWatcherCommand.h
  1488. * src/UnknownLengthPieceStorage.cc
  1489. * src/Util.cc
  1490. * src/Util.h
  1491. * src/XmlRpcMethodImpl.cc
  1492. * src/bittorrent_helper.cc
  1493. * src/bittorrent_helper.h
  1494. * src/download_helper.cc
  1495. * src/main.cc
  1496. * src/option_processing.cc
  1497. * test/BitfieldManTest.cc
  1498. * test/BittorrentHelperTest.cc
  1499. * test/BtCancelMessageTest.cc
  1500. * test/BtChokeMessageTest.cc
  1501. * test/BtDependencyTest.cc
  1502. * test/BtPieceMessageTest.cc
  1503. * test/BtPostDownloadHandlerTest.cc
  1504. * test/BtRegistryTest.cc
  1505. * test/BtRejectMessageTest.cc
  1506. * test/BtRequestMessageTest.cc
  1507. * test/DHTPeerAnnounceStorageTest.cc
  1508. * test/DefaultBtAnnounceTest.cc
  1509. * test/DefaultBtContextTest.cc: Removed
  1510. * test/DefaultBtMessageDispatcherTest.cc
  1511. * test/DefaultBtMessageFactoryTest.cc
  1512. * test/DefaultBtProgressInfoFileTest.cc
  1513. * test/DefaultBtRequestFactoryTest.cc
  1514. * test/DefaultExtensionMessageFactoryTest.cc
  1515. * test/DefaultPeerStorageTest.cc
  1516. * test/DefaultPieceStorageTest.cc
  1517. * test/DirectDiskAdaptorTest.cc
  1518. * test/DownloadContextTest.cc
  1519. * test/DownloadHandlerFactoryTest.cc
  1520. * test/DownloadHelperTest.cc
  1521. * test/HandshakeExtensionMessageTest.cc
  1522. * test/HttpRequestTest.cc
  1523. * test/HttpResponseTest.cc
  1524. * test/IteratableChecksumValidatorTest.cc
  1525. * test/IteratableChunkChecksumValidatorTest.cc
  1526. * test/MSEHandshakeTest.cc
  1527. * test/Makefile.am
  1528. * test/Makefile.in
  1529. * test/Metalink2RequestGroupTest.cc
  1530. * test/MetalinkPostDownloadHandlerTest.cc
  1531. * test/MockBtContext.h: Removed
  1532. * test/MockDHTTaskFactory.h
  1533. * test/MockDownloadContext.h: Removed
  1534. * test/MockPieceStorage.h
  1535. * test/MultiDiskAdaptorTest.cc
  1536. * test/MultiFileAllocationIteratorTest.cc
  1537. * test/RequestGroupManTest.cc
  1538. * test/RequestGroupTest.cc
  1539. * test/SegmentManTest.cc
  1540. * test/ShareRatioSeedCriteriaTest.cc
  1541. * test/SingleFileDownloadContextTest.cc: Removed
  1542. * test/UtilTest.cc
  1543. * test/XmlRpcMethodTest.cc
  1544. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1545. Added experimental support of WEB-Seeding for multi-file torrent.
  1546. Due to fundamental changes in file handling in HTTP/FTP code, many
  1547. functions are not working: PeerStat, ServerHost, proxy..etc
  1548. * src/AbstractCommand.cc
  1549. * src/AbstractCommand.h
  1550. * src/BitfieldMan.cc
  1551. * src/BitfieldMan.h
  1552. * src/CreateRequestCommand.cc
  1553. * src/CreateRequestCommand.h
  1554. * src/DefaultPieceStorage.cc
  1555. * src/DefaultPieceStorage.h
  1556. * src/DownloadCommand.cc
  1557. * src/DownloadCommand.h
  1558. * src/DownloadContext.cc
  1559. * src/DownloadContext.h
  1560. * src/FileEntry.cc
  1561. * src/FileEntry.h
  1562. * src/FtpDownloadCommand.cc
  1563. * src/FtpDownloadCommand.h
  1564. * src/FtpFinishDownloadCommand.cc
  1565. * src/FtpFinishDownloadCommand.h
  1566. * src/FtpInitiateConnectionCommand.cc
  1567. * src/FtpInitiateConnectionCommand.h
  1568. * src/FtpNegotiationCommand.cc
  1569. * src/FtpNegotiationCommand.h
  1570. * src/FtpTunnelResponseCommand.cc
  1571. * src/HttpDownloadCommand.cc
  1572. * src/HttpDownloadCommand.h
  1573. * src/HttpInitiateConnectionCommand.cc
  1574. * src/HttpInitiateConnectionCommand.h
  1575. * src/HttpProxyResponseCommand.cc
  1576. * src/HttpRequest.cc
  1577. * src/HttpRequest.h
  1578. * src/HttpRequestCommand.cc
  1579. * src/HttpRequestCommand.h
  1580. * src/HttpResponseCommand.cc
  1581. * src/HttpResponseCommand.h
  1582. * src/HttpSkipResponseCommand.cc
  1583. * src/HttpSkipResponseCommand.h
  1584. * src/InitiateConnectionCommand.cc
  1585. * src/InitiateConnectionCommand.h
  1586. * src/InitiateConnectionCommandFactory.cc
  1587. * src/InitiateConnectionCommandFactory.h
  1588. * src/Makefile.am
  1589. * src/PieceStorage.h
  1590. * src/RequestGroup.cc
  1591. * src/RequestGroup.h
  1592. * src/RequestGroupMan.cc
  1593. * src/SegmentMan.cc
  1594. * src/SegmentMan.h
  1595. * src/SingleFileDownloadContext.h
  1596. * src/StreamFileAllocationEntry.cc
  1597. * src/TrackerWatcherCommand.cc
  1598. * src/UnknownLengthPieceStorage.cc
  1599. * src/UnknownLengthPieceStorage.h
  1600. * src/array_fun.h
  1601. * src/bitfield.h
  1602. * src/download_helper.cc
  1603. * test/DownloadContextTest.cc
  1604. * test/Makefile.am
  1605. * test/MockDownloadContext.h
  1606. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1607. Added tellWaiting XML-RPC method.
  1608. * src/SingleFileDownloadContext.cc
  1609. * src/XmlRpcMethodFactory.cc
  1610. * src/XmlRpcMethodImpl.cc
  1611. * src/XmlRpcMethodImpl.h
  1612. * test/XmlRpcMethodTest.cc
  1613. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1614. Updated CookieStorageTest
  1615. * test/CookieStorageTest.cc
  1616. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1617. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  1618. handle excepion inside these functions.
  1619. * src/LibgnutlsTLSContext.cc
  1620. * src/LibgnutlsTLSContext.h
  1621. * src/LibsslTLSContext.cc
  1622. * src/LibsslTLSContext.h
  1623. * src/MultiUrlRequestInfo.cc
  1624. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1625. Added comment
  1626. * src/RequestGroup.cc
  1627. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1628. In CookieStorage::load() and saveNsFormat(), handle exception
  1629. inside the functions. When saving Cookies, first write temporary
  1630. file and after successful writes, then renames it to final
  1631. destination.
  1632. * src/CookieStorage.cc
  1633. * src/CookieStorage.h
  1634. * src/MultiUrlRequestInfo.cc
  1635. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1636. The default value of --dir option is the absolute path to the
  1637. current directory. If getcwd() is failed, then it is ".", which is
  1638. the same value with old implementation. This change is necessary
  1639. because after daemon() call, the current working directory is
  1640. changed to /.
  1641. * src/File.cc
  1642. * src/File.h
  1643. * src/OptionHandlerFactory.cc
  1644. * src/option_processing.cc
  1645. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1646. Call daemon() with arguments(0,0), which means daemon() changes
  1647. current working directory to / and redirects stdin, stdout and
  1648. stderr to /dev/null.
  1649. * src/option_processing.cc
  1650. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1651. Small performance optimizations.
  1652. * src/RequestGroupMan.cc
  1653. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1654. Added _xmlRpc member variable to RequestGroupMan to reduce the
  1655. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  1656. * src/RequestGroupMan.cc
  1657. * src/RequestGroupMan.h
  1658. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1659. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  1660. setNoWiat(true) if newly created command calls
  1661. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  1662. * src/HttpListenCommand.cc
  1663. * src/HttpServerBodyCommand.cc
  1664. * src/HttpServerCommand.cc
  1665. * src/HttpServerResponseCommand.cc
  1666. * src/InitiateConnectionCommand.cc
  1667. * src/RequestGroup.cc
  1668. * src/StreamFileAllocationEntry.cc
  1669. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1670. Removed include vector
  1671. * src/BtRegistry.h
  1672. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1673. Rewritten BtRegistry
  1674. * src/BtRegistry.cc
  1675. * src/BtRegistry.h
  1676. * src/BtSetup.cc
  1677. * src/ConsoleStatCalc.cc
  1678. * src/PeerInteractionCommand.cc
  1679. * src/PeerReceiveHandshakeCommand.cc
  1680. * src/ReceiverMSEHandshakeCommand.cc
  1681. * src/RequestGroup.cc
  1682. * src/XmlRpcMethodImpl.cc
  1683. * test/BtRegistryTest.cc
  1684. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1685. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  1686. * src/DefaultBtProgressInfoFile.cc
  1687. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1688. Throw an exception if position is less than 0.
  1689. * src/XmlRpcMethodImpl.cc
  1690. * test/XmlRpcMethodTest.cc
  1691. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1692. Use writeFilePath() in ConsoleStatCalc.cc
  1693. * src/ConsoleStatCalc.cc
  1694. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1695. Receive the return value as const reference from
  1696. DownloadContext::getFileEntries().
  1697. * src/DefaultPieceStorage.cc
  1698. * src/RequestGroupMan.cc
  1699. * src/XmlRpcMethodImpl.cc
  1700. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1701. DownloadContext now has _fileEntries so that
  1702. DownloadContext::getFileEntries() can returns its const reference.
  1703. * src/DefaultBtContext.cc
  1704. * src/DefaultBtContext.h
  1705. * src/DownloadContext.cc
  1706. * src/DownloadContext.h
  1707. * src/SingleFileDownloadContext.cc
  1708. * src/SingleFileDownloadContext.h
  1709. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1710. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  1711. writeFilePath() function template from RequestGroupMan.cc to
  1712. FileEntry.h
  1713. * src/FileEntry.h
  1714. * src/RequestGroupMan.cc
  1715. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1716. Documented 'position' parameter is starting from 0 in man page.
  1717. * doc/aria2c.1.txt
  1718. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1719. Updated doc.
  1720. * src/MSEHandshake.cc
  1721. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1722. Removed _acceptFeatures and its accessor functions from
  1723. RequestGroup since they are not used practically.
  1724. * src/HttpRequestCommand.cc
  1725. * src/RequestGroup.cc
  1726. * src/RequestGroup.h
  1727. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1728. Removed member _maxTries from RequestGroup class to avoid
  1729. duplicate option value. Those classes who refer this variable
  1730. should use option value of PREF_MAX_TRIES directly.
  1731. * src/AbstractCommand.cc
  1732. * src/RequestGroup.cc
  1733. * src/RequestGroup.h
  1734. * src/TrackerWatcherCommand.cc
  1735. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1736. * Release 1.4.1
  1737. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1738. Fixed compiler warnings on netbsd
  1739. * src/DHTConnectionImpl.cc
  1740. * src/PeerListenCommand.cc
  1741. * src/PeerSessionResource.cc
  1742. * src/SegmentMan.cc
  1743. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1744. Updated Ukrainian translation. Thanks to all translators.
  1745. * po/uk.po
  1746. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1747. Bump up version number to 1.4.1.
  1748. * configure.ac
  1749. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1750. Added unit tests for strjoin, strconcat and strappend.
  1751. * test/a2functionalTest.cc
  1752. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1753. Rewritten strconcat and strappend using operator+ instead of
  1754. append().
  1755. * src/a2functional.h
  1756. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1757. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  1758. is enabled.
  1759. * src/Makefile.am
  1760. * test/Makefile.am
  1761. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1762. Added countSeeder() function which counts seeder in the given
  1763. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  1764. * src/ConsoleStatCalc.cc
  1765. * src/Peer.h
  1766. * src/XmlRpcMethodImpl.cc
  1767. * test/PeerTest.cc
  1768. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1769. Documented missing seeder in getPeers xml-rpc method.
  1770. Documented uploadLength and numSeeders.
  1771. * doc/aria2c.1.txt
  1772. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1773. Added uploadLength and numSeeders to the response of tellStatus
  1774. xml-rpc method. Assert that PeerStorage instance is not null
  1775. instead of checking if statement. It should be non-null in this
  1776. context.
  1777. * src/XmlRpcMethodImpl.cc
  1778. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1779. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  1780. * src/XmlRpcResponse.cc
  1781. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1782. Avoid intermediate object during string concatenation.
  1783. * src/HttpRequest.cc
  1784. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1785. Added strjoin function template. Use it in pathJoin()
  1786. * src/Util.h
  1787. * src/a2functional.h
  1788. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1789. Avoid intermediate object during string concatenation. Replaced
  1790. post-increment unary operator with pre-increment one in for loop.
  1791. * src/AdaptiveURISelector.cc
  1792. * src/AnnounceList.cc
  1793. * src/AuthConfig.h
  1794. * src/BtBitfieldMessage.cc
  1795. * src/BtExtendedMessage.cc
  1796. * src/BtHandshakeMessage.cc
  1797. * src/BtPieceMessage.cc
  1798. * src/BtPortMessage.cc
  1799. * src/Cookie.cc
  1800. * src/DHTAnnouncePeerMessage.cc
  1801. * src/DHTAutoSaveCommand.cc
  1802. * src/DHTGetPeersReplyMessage.cc
  1803. * src/DHTNode.cc
  1804. * src/DHTQueryMessage.cc
  1805. * src/DHTResponseMessage.cc
  1806. * src/DHTUnknownMessage.cc
  1807. * src/DefaultBtAnnounce.cc
  1808. * src/DefaultBtContext.cc
  1809. * src/DefaultBtInteractive.cc
  1810. * src/DefaultBtProgressInfoFile.cc
  1811. * src/DefaultPeerStorage.cc
  1812. * src/DownloadEngine.cc
  1813. * src/FeatureConfig.cc
  1814. * src/File.cc
  1815. * src/FtpConnection.cc
  1816. * src/FtpNegotiationCommand.cc
  1817. * src/HandshakeExtensionMessage.cc
  1818. * src/HttpConnection.cc
  1819. * src/HttpRequest.cc
  1820. * src/HttpResponseCommand.cc
  1821. * src/HttpServer.cc
  1822. * src/IndexBtMessage.cc
  1823. * src/Metalink2RequestGroup.cc
  1824. * src/OptionHandlerImpl.h
  1825. * src/PStringBuildVisitor.cc
  1826. * src/Peer.cc
  1827. * src/PeerListenCommand.cc
  1828. * src/Piece.cc
  1829. * src/RangeBtMessage.cc
  1830. * src/Request.cc
  1831. * src/Request.h
  1832. * src/RequestGroup.cc
  1833. * src/RequestGroupMan.cc
  1834. * src/ServerStat.cc
  1835. * src/ServerStatMan.cc
  1836. * src/UTPexExtensionMessage.cc
  1837. * src/Util.cc
  1838. * src/a2functional.h
  1839. * src/download_helper.cc
  1840. * src/messageDigest.cc
  1841. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1842. Unchoke a peer randomly at first and second choke round in seed
  1843. state.
  1844. * src/BtSeederStateChoke.cc
  1845. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  1846. Added (sock_t) to quiet compiler warnings in MinGW
  1847. * src/SocketCore.cc
  1848. * src/SocketCore.h
  1849. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1850. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  1851. * src/EpollEventPoll.h
  1852. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  1853. Added fork() emulation using CreateProcess() in MinGW
  1854. * src/RequestGroupMan.cc
  1855. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1856. * Release 1.4.0
  1857. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1858. Added utf8.torrent to EXTRA_DIST
  1859. * test/Makefile.am
  1860. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1861. Fixed docs of aria2.addMetalink xml-rpc method.
  1862. * doc/aria2c.1.txt
  1863. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1864. Added Slovak translation. Updated Ukrainian and Brazilian
  1865. Portuguese translation. Thanks to all translators.
  1866. * po/sk.po
  1867. * po/uk.po
  1868. * po/pt_BR.po
  1869. * po/LINGUAS
  1870. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1871. Added test case for XmlRpcProcessor to fail to parse malformed
  1872. document.
  1873. * test/XmlRpcRequestProcessorTest.cc
  1874. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1875. Removed *.gmo files in po because they are generated on 'make
  1876. dist'
  1877. * po/*.gmo
  1878. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1879. Documented max-concurrent-downloads of changeGlobalOption method
  1880. in man page.
  1881. * doc/aria2c.1.txt
  1882. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1883. Added max-concurrent-downloads option to changeGlobalOption
  1884. xml-rpc method. Rewritten loop conditional in
  1885. RequestGroupMan::fillRequestGroupFromReserver().
  1886. * src/RequestGroupMan.cc
  1887. * src/RequestGroupMan.h
  1888. * src/XmlRpcMethod.cc
  1889. * src/XmlRpcMethodImpl.cc
  1890. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1891. Documented position parameter in man page.
  1892. * doc/aria2c.1.txt
  1893. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1894. Added 'position' parameter to addUri, addTorrent and addMetalink
  1895. xml-rpc method.
  1896. * src/RequestGroupMan.cc
  1897. * src/RequestGroupMan.h
  1898. * src/XmlRpcMethodImpl.cc
  1899. * test/XmlRpcMethodTest.cc
  1900. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1901. Removed Peer.cc from compile source list when --disable-bittorrent
  1902. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  1903. takes Peer.
  1904. * src/DefaultPieceStorage.cc
  1905. * src/DefaultPieceStorage.h
  1906. * src/Makefile.am
  1907. * src/PieceStorage.h
  1908. * src/UnknownLengthPieceStorage.cc
  1909. * src/UnknownLengthPieceStorage.h
  1910. * test/MockPieceStorage.h
  1911. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1912. Implemented getter methods in header files to give them more
  1913. chance of optimization.
  1914. Return const reference for SharadHandle if possible.
  1915. * src/AbstractAuthResolver.cc
  1916. * src/AbstractAuthResolver.h
  1917. * src/AbstractBtMessage.cc
  1918. * src/AbstractBtMessage.h
  1919. * src/AbstractSingleDiskAdaptor.cc
  1920. * src/AbstractSingleDiskAdaptor.h
  1921. * src/AsyncNameResolver.cc
  1922. * src/AsyncNameResolver.h
  1923. * src/BNode.cc
  1924. * src/BNode.h
  1925. * src/BitfieldMan.cc
  1926. * src/BitfieldMan.h
  1927. * src/BtAbortOutstandingRequestEvent.h
  1928. * src/BtExtendedMessage.cc
  1929. * src/BtExtendedMessage.h
  1930. * src/BtSeederStateChoke.cc
  1931. * src/BtSeederStateChoke.h
  1932. * src/Cookie.cc
  1933. * src/Cookie.h
  1934. * src/DHTBucket.cc
  1935. * src/DHTBucket.h
  1936. * src/DHTConnectionImpl.cc
  1937. * src/DHTConnectionImpl.h
  1938. * src/DHTFindNodeReplyMessage.cc
  1939. * src/DHTFindNodeReplyMessage.h
  1940. * src/DHTGetPeersReplyMessage.cc
  1941. * src/DHTGetPeersReplyMessage.h
  1942. * src/DHTInteractionCommand.cc
  1943. * src/DHTMessage.cc
  1944. * src/DHTMessage.h
  1945. * src/DHTMessageDispatcherImpl.cc
  1946. * src/DHTMessageEntry.cc
  1947. * src/DHTMessageReceiver.cc
  1948. * src/DHTMessageReceiver.h
  1949. * src/DHTMessageTrackerEntry.cc
  1950. * src/DHTMessageTrackerEntry.h
  1951. * src/DHTPeerAnnounceEntry.cc
  1952. * src/DHTPeerAnnounceEntry.h
  1953. * src/DHTPeerLookupTask.cc
  1954. * src/DHTPeerLookupTask.h
  1955. * src/DHTRoutingTableDeserializer.cc
  1956. * src/DHTRoutingTableDeserializer.h
  1957. * src/DefaultBtAnnounce.cc
  1958. * src/DefaultBtAnnounce.h
  1959. * src/DefaultBtMessageDispatcher.cc
  1960. * src/DefaultBtMessageDispatcher.h
  1961. * src/DefaultBtRequestFactory.cc
  1962. * src/DefaultBtRequestFactory.h
  1963. * src/DiskAdaptor.cc
  1964. * src/DiskAdaptor.h
  1965. * src/DownloadContext.cc
  1966. * src/DownloadContext.h
  1967. * src/DownloadEngine.cc
  1968. * src/DownloadEngine.h
  1969. * src/EpollEventPoll.cc
  1970. * src/EpollEventPoll.h
  1971. * src/FtpConnection.cc
  1972. * src/FtpConnection.h
  1973. * src/HttpConnection.cc
  1974. * src/HttpConnection.h
  1975. * src/HttpHeader.cc
  1976. * src/HttpHeader.h
  1977. * src/HttpRequest.cc
  1978. * src/HttpRequest.h
  1979. * src/HttpResponse.cc
  1980. * src/HttpResponse.h
  1981. * src/LibsslTLSContext.cc
  1982. * src/LibsslTLSContext.h
  1983. * src/MSEHandshake.cc
  1984. * src/MSEHandshake.h
  1985. * src/MetalinkEntry.cc
  1986. * src/MetalinkEntry.h
  1987. * src/MetalinkParserController.cc
  1988. * src/MetalinkParserController.h
  1989. * src/MetalinkParserStateMachine.cc
  1990. * src/MetalinkParserStateMachine.h
  1991. * src/MultiDiskAdaptor.cc
  1992. * src/MultiDiskAdaptor.h
  1993. * src/NetrcAuthResolver.cc
  1994. * src/NetrcAuthResolver.h
  1995. * src/Peer.cc
  1996. * src/Peer.h
  1997. * src/PeerSessionResource.cc
  1998. * src/PeerSessionResource.h
  1999. * src/Piece.cc
  2000. * src/Piece.h
  2001. * src/PieceStatMan.cc
  2002. * src/PieceStatMan.h
  2003. * src/Request.cc
  2004. * src/Request.h
  2005. * src/RequestGroup.cc
  2006. * src/RequestGroup.h
  2007. * src/RequestGroupMan.cc
  2008. * src/RequestGroupMan.h
  2009. * src/RequestSlot.cc
  2010. * src/RequestSlot.h
  2011. * src/SegmentMan.cc
  2012. * src/SegmentMan.h
  2013. * src/SelectEventPoll.cc
  2014. * src/SelectEventPoll.h
  2015. * src/ServerStat.cc
  2016. * src/ServerStat.h
  2017. * src/Signature.cc
  2018. * src/Signature.h
  2019. * src/URIResult.cc
  2020. * src/URIResult.h
  2021. * src/UTPexExtensionMessage.cc
  2022. * src/UTPexExtensionMessage.h
  2023. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2024. Fixed compile error without BitTorrent and Metalink support.
  2025. * src/XmlRpcMethod.cc
  2026. * src/XmlRpcMethodFactory.cc
  2027. * src/XmlRpcMethodImpl.cc
  2028. * src/XmlRpcMethodImpl.h
  2029. * test/XmlRpcMethodTest.cc
  2030. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2031. Rewritten the help message for --allow-overwrite option.
  2032. * doc/aria2c.1.txt
  2033. * src/usage_text.h
  2034. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2035. Fixed typo
  2036. * doc/aria2c.1.txt
  2037. * src/usage_text.h
  2038. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2039. Updated README for 1.4.0 release. Use new table syntax of
  2040. asciidoc.
  2041. * README
  2042. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2043. Documented --xml-rpc-max-request-size option in man page.
  2044. * doc/aria2c.1.txt
  2045. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2046. Moved C_* constants from BtContext to DefaultBtContext.
  2047. * src/BtContext.cc: Removed.
  2048. * src/BtContext.h
  2049. * src/DefaultBtContext.cc
  2050. * src/DefaultBtContext.h
  2051. * src/Makefile.am
  2052. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2053. Use name.utf-8 and path.utf-8 key in higher priority than name and
  2054. path key respectively when persing .torrent file.
  2055. * src/BtContext.cc
  2056. * src/BtContext.h
  2057. * src/DefaultBtContext.cc
  2058. * test/DefaultBtContextTest.cc
  2059. * test/utf8.torrent
  2060. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2061. Added --xml-rpc-max-request-size option to limit the size of
  2062. XML-RPC request.
  2063. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2064. Documented XML-RPC API in man page.
  2065. * doc/aria2c.1.txt
  2066. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2067. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  2068. will break strict-aliasing rules
  2069. * src/PeerConnection.cc
  2070. * test/DHTRoutingTableSerializerTest.cc
  2071. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2072. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  2073. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  2074. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  2075. PKG_CHECK_MODULES macro uses latter name.
  2076. * m4/sqlite3.m4
  2077. * src/Makefile.am
  2078. * test/Makefile.am
  2079. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2080. Fixed typo
  2081. * configure.ac
  2082. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2083. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  2084. presence of libgnutls using pkg-config first. If it fails, fall
  2085. back to old macro libgnutls.m4.
  2086. * configure.ac
  2087. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2088. Use s itself instead of !s.bad()
  2089. * src/CookieStorage.cc
  2090. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2091. Documented --on-download-* option and --save-cookies option in man
  2092. page.
  2093. * doc/aria2c.1.txt
  2094. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2095. Set possible values for --load-cookie option to "/path/to/file".
  2096. * src/OptionHandlerFactory.cc
  2097. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2098. Added --save-cookies option.
  2099. * src/Cookie.cc
  2100. * src/Cookie.h
  2101. * src/CookieStorage.cc
  2102. * src/CookieStorage.h
  2103. * src/MultiUrlRequestInfo.cc
  2104. * src/OptionHandlerFactory.cc
  2105. * src/prefs.cc
  2106. * src/prefs.h
  2107. * src/usage_text.h
  2108. * test/CookieStorageTest.cc
  2109. * test/CookieTest.cc
  2110. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2111. Removed tellAll XML-RPC command because its reponse tends to be
  2112. big if stopped/waiting downloads pile up.
  2113. * src/XmlRpcMethodFactory.cc
  2114. * src/XmlRpcMethodImpl.cc
  2115. * src/XmlRpcMethodImpl.h
  2116. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2117. Added the ability to execute command when download starts and
  2118. stops. You can also specify command for particular cases such as
  2119. complete/error download. Added --on-download-start,
  2120. --on-download-stop, --on-download-complete and --on-download-error
  2121. option.
  2122. * src/OptionHandlerFactory.cc
  2123. * src/RequestGroupMan.cc
  2124. * src/prefs.cc
  2125. * src/prefs.h
  2126. * src/usage_text.h
  2127. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2128. Fixed test error
  2129. * test/BencodeTest.cc
  2130. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2131. Added unit tests.
  2132. * test/XmlRpcMethodTest.cc
  2133. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2134. Made exception message more verbose.
  2135. * src/bencode.cc
  2136. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2137. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  2138. space in console readout. Also they are now shown in MiB/s if
  2139. speed > 1024KiB/s.
  2140. * src/ConsoleStatCalc.cc
  2141. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2142. Added SEED to console output, which represents the number of
  2143. seeders currently the client is connecting to.
  2144. * src/ConsoleStatCalc.cc
  2145. * src/ConsoleStatCalc.h
  2146. * src/DownloadEngine.cc
  2147. * src/NullStatCalc.h
  2148. * src/StatCalc.h
  2149. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2150. Added source filename(__FILE__) and line number(__LINE__) to
  2151. exception message.
  2152. * src/AbstractCommand.cc
  2153. * src/AbstractDiskWriter.cc
  2154. * src/AbstractProxyResponseCommand.cc
  2155. * src/BDE.h
  2156. * src/BtAllowedFastMessage.cc
  2157. * src/BtHandshakeMessageValidator.h
  2158. * src/BtHaveAllMessage.cc
  2159. * src/BtHaveNoneMessage.cc
  2160. * src/BtPieceMessage.cc
  2161. * src/BtRejectMessage.cc
  2162. * src/ChunkedDecoder.cc
  2163. * src/CookieStorage.cc
  2164. * src/DHTAnnouncePeerMessage.cc
  2165. * src/DHTEntryPointNameResolveCommand.cc
  2166. * src/DHTMessageFactoryImpl.cc
  2167. * src/DHTMessageTracker.cc
  2168. * src/DHTRoutingTableDeserializer.cc
  2169. * src/DHTRoutingTableSerializer.cc
  2170. * src/DHTSetup.cc
  2171. * src/DHTTokenTracker.cc
  2172. * src/DefaultBtAnnounce.cc
  2173. * src/DefaultBtContext.cc
  2174. * src/DefaultBtInteractive.cc
  2175. * src/DefaultBtMessageFactory.cc
  2176. * src/DefaultBtProgressInfoFile.cc
  2177. * src/DefaultExtensionMessageFactory.cc
  2178. * src/DlAbortEx.h
  2179. * src/DlRetryEx.h
  2180. * src/DownloadCommand.cc
  2181. * src/DownloadEngineFactory.cc
  2182. * src/DownloadFailureException.h
  2183. * src/Exception.cc
  2184. * src/Exception.h
  2185. * src/ExpatMetalinkProcessor.cc
  2186. * src/ExpatXmlRpcRequestProcessor.cc
  2187. * src/FallocFileAllocationIterator.cc
  2188. * src/FatalException.h
  2189. * src/FtpConnection.cc
  2190. * src/FtpFinishDownloadCommand.cc
  2191. * src/FtpInitiateConnectionCommand.cc
  2192. * src/FtpNegotiationCommand.cc
  2193. * src/GZipDecoder.cc
  2194. * src/HandshakeExtensionMessage.cc
  2195. * src/HttpConnection.cc
  2196. * src/HttpHeaderProcessor.cc
  2197. * src/HttpInitiateConnectionCommand.cc
  2198. * src/HttpResponse.cc
  2199. * src/HttpResponseCommand.cc
  2200. * src/HttpServer.cc
  2201. * src/HttpSkipResponseCommand.cc
  2202. * src/InitiateConnectionCommandFactory.cc
  2203. * src/IteratableChunkChecksumValidator.cc
  2204. * src/LibgcryptARC4Context.h
  2205. * src/LibgcryptARC4Decryptor.h
  2206. * src/LibgcryptARC4Encryptor.h
  2207. * src/LibgcryptDHKeyExchange.h
  2208. * src/LibgnutlsTLSContext.cc
  2209. * src/LibsslARC4Context.h
  2210. * src/LibsslARC4Decryptor.h
  2211. * src/LibsslARC4Encryptor.h
  2212. * src/LibsslDHKeyExchange.h
  2213. * src/LibsslTLSContext.cc
  2214. * src/MSEHandshake.cc
  2215. * src/MessageDigestHelper.cc
  2216. * src/MetalinkHelper.cc
  2217. * src/MultiDiskAdaptor.cc
  2218. * src/NameMatchOptionHandler.h
  2219. * src/NameResolver.cc
  2220. * src/Netrc.cc
  2221. * src/NsCookieParser.cc
  2222. * src/OptionHandlerException.cc
  2223. * src/OptionHandlerException.h
  2224. * src/OptionHandlerImpl.h
  2225. * src/OptionParser.cc
  2226. * src/ParameterizedStringParser.cc
  2227. * src/PeerAbstractCommand.cc
  2228. * src/PeerConnection.cc
  2229. * src/PeerMessageUtil.cc
  2230. * src/PeerReceiveHandshakeCommand.cc
  2231. * src/Platform.cc
  2232. * src/ReceiverMSEHandshakeCommand.cc
  2233. * src/RecoverableException.h
  2234. * src/RequestGroup.cc
  2235. * src/SimpleLogger.cc
  2236. * src/SocketCore.cc
  2237. * src/Sqlite3MozCookieParser.cc
  2238. * src/UTPexExtensionMessage.cc
  2239. * src/Util.cc
  2240. * src/XML2SAXMetalinkProcessor.cc
  2241. * src/Xml2XmlRpcRequestProcessor.cc
  2242. * src/XmlRpcMethodImpl.cc
  2243. * src/bencode.cc
  2244. * src/download_helper.cc
  2245. * src/messageDigest.h
  2246. * test/ExceptionTest.cc
  2247. * test/TestUtil.cc
  2248. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2249. Bump up version number to 1.4.0
  2250. * configure.ac
  2251. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2252. Added 2files.metalink to EXTRA_DIST
  2253. * test/Makefile.am
  2254. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2255. Added missing 2files.metalink
  2256. * test/2files.metalink
  2257. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2258. Show "[MEMORY]" prefix before filename in download summary if it
  2259. is downloaded into memory.
  2260. * src/DownloadResult.h
  2261. * src/RequestGroup.cc
  2262. * src/RequestGroupMan.cc
  2263. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2264. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  2265. * src/ExpatXmlRpcRequestProcessor.cc
  2266. * src/Xml2XmlRpcRequestProcessor.cc
  2267. * src/message.h
  2268. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2269. Defined const BDEs to avoid duplicate instantiation.
  2270. Defined MSG_GID_NOT_PROVIDED.
  2271. * src/XmlRpcMethodImpl.cc
  2272. * src/message.h
  2273. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2274. Code cleanup
  2275. * src/Xml2XmlRpcRequestProcessor.cc
  2276. * src/Xml2XmlRpcRequestProcessor.h
  2277. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2278. Defined ENABLE_XML_RPC
  2279. * configure.ac
  2280. * configure
  2281. * config.h.in
  2282. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2283. Added ExpatXmlRpcRequestProcessor
  2284. * src/ExpatXmlRpcRequestProcessor.cc
  2285. * src/ExpatXmlRpcRequestProcessor.h
  2286. * src/Makefile.am
  2287. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2288. Added tests for addTorrent and addMetalink command.
  2289. * test/TestUtil.cc
  2290. * test/TestUtil.h
  2291. * test/XmlRpcMethodTest.cc
  2292. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2293. Corrected the description of --file-allocation option.
  2294. * doc/aria2c.1.txt
  2295. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2296. Added tellAll command.
  2297. * src/XmlRpcMethodFactory.cc
  2298. * src/XmlRpcMethodImpl.cc
  2299. * src/XmlRpcMethodImpl.h
  2300. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2301. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  2302. * src/XmlRpcMethodImpl.cc
  2303. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2304. Added changeGlobalOption command. Currently,
  2305. max-overall-download-limit and max-overall-upload-limit option are
  2306. available.
  2307. * src/RequestGroupMan.h
  2308. * src/XmlRpcMethod.cc
  2309. * src/XmlRpcMethod.h
  2310. * src/XmlRpcMethodFactory.cc
  2311. * src/XmlRpcMethodImpl.cc
  2312. * src/XmlRpcMethodImpl.h
  2313. * test/XmlRpcMethodTest.cc
  2314. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2315. Added changeOption command. Currently, max-download-limit,
  2316. max-upload-limit option are available in this command.
  2317. * src/RequestGroup.h
  2318. * src/XmlRpcMethod.cc
  2319. * src/XmlRpcMethod.h
  2320. * src/XmlRpcMethodFactory.cc
  2321. * src/XmlRpcMethodImpl.cc
  2322. * src/XmlRpcMethodImpl.h
  2323. * test/XmlRpcMethodTest.cc
  2324. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2325. Added purgeDownloadResult command.
  2326. * src/RequestGroupMan.cc
  2327. * src/RequestGroupMan.h
  2328. * src/XmlRpcMethodFactory.cc
  2329. * src/XmlRpcMethodImpl.cc
  2330. * src/XmlRpcMethodImpl.h
  2331. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2332. Refactored.
  2333. * src/XmlRpcMethod.cc
  2334. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2335. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  2336. XmlRpcResponse.
  2337. * src/HttpServerBodyCommand.cc
  2338. * src/Makefile.am
  2339. * src/XmlRpcMethod.cc
  2340. * src/XmlRpcMethod.h
  2341. * src/XmlRpcMethodImpl.cc
  2342. * src/XmlRpcResponse.cc
  2343. * src/XmlRpcResponse.h
  2344. * test/XmlRpcMethodTest.cc
  2345. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2346. In XML-RPC option struct, header and index-out option can take
  2347. array as value.
  2348. * src/XmlRpcMethod.cc
  2349. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2350. Removed unused option member from PeerConnection.
  2351. * src/InitiatorMSEHandshakeCommand.cc
  2352. * src/PeerConnection.cc
  2353. * src/PeerConnection.h
  2354. * src/PeerInteractionCommand.cc
  2355. * src/PeerReceiveHandshakeCommand.cc
  2356. * src/ReceiverMSEHandshakeCommand.cc
  2357. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2358. Added "seeder" key to getPeers response.
  2359. * src/XmlRpcMethodImpl.cc
  2360. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2361. Added addMetalink XML-RPC command.
  2362. * src/XmlRpcMethodFactory.cc
  2363. * src/XmlRpcMethodImpl.cc
  2364. * src/XmlRpcMethodImpl.h
  2365. * src/download_helper.cc
  2366. * src/download_helper.h
  2367. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2368. Fixed the bug that POU peers are never choked in seeding.
  2369. * src/BtSeederStateChoke.cc
  2370. * src/BtSeederStateChoke.h
  2371. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2372. Added web-seeding URI handling in addTorrent command.
  2373. * src/XmlRpcMethodImpl.cc
  2374. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2375. Added "length" key to getFiles response.
  2376. * src/XmlRpcMethodImpl.cc
  2377. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2378. Moved --no-netrc option from ftp option section to http/ftp option
  2379. section.
  2380. * doc/aria2c.1.txt
  2381. * src/OptionHandlerFactory.cc
  2382. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2383. Removed garbage "\" character before '
  2384. * doc/aria2c.1.txt
  2385. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2386. Removed garbage "\" character before http.
  2387. * doc/aria2c.1.txt
  2388. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2389. Documented additional options that can be specified in -i list.
  2390. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  2391. and --xml-rpc-passwd. Removed --enable-http-server and
  2392. --http-server-listen-port.
  2393. * doc/aria2c.1.txt
  2394. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2395. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  2396. * src/DefaultPeerStorage.cc
  2397. * src/DefaultPeerStorage.h
  2398. * src/PeerStorage.h
  2399. * src/XmlRpcMethodImpl.cc
  2400. * test/MockPeerStorage.h
  2401. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2402. Put a call to Socket::isReadable() in try block.
  2403. * src/HttpServerBodyCommand.cc
  2404. * src/HttpServerCommand.cc
  2405. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2406. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  2407. exception , so it is now in try block.
  2408. * src/HttpServerResponseCommand.cc
  2409. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2410. Added "amChoking" and "peerChoking" key in getPeers response.
  2411. * src/XmlRpcMethodImpl.cc
  2412. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2413. Added test case for zero-length filter.
  2414. * test/BitfieldManTest.cc
  2415. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2416. getFiles command now returns file data for finished/stopped
  2417. downloads.
  2418. * src/XmlRpcMethodImpl.cc
  2419. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2420. DownloadResult now has the list of FileEntry. The download
  2421. summary displays the path of first selected file and the number of
  2422. remaining files for multi-file torrent.
  2423. * src/DownloadResult.h
  2424. * src/RequestGroup.cc
  2425. * src/RequestGroupMan.cc
  2426. * test/RequestGroupTest.cc
  2427. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2428. Fixed segmentation fault error when no file is selected in
  2429. multi-file torrent.
  2430. * src/BitfieldMan.cc
  2431. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2432. Escaped <,>,& character in XML-RPC response.
  2433. * src/XmlRpcMethod.cc
  2434. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2435. Throw DlAbortEx instead of FatalException during parsing options
  2436. because we don't want for aria2 to quit when bad option is passed
  2437. via XML-RPC.
  2438. * src/OptionHandlerException.cc
  2439. * src/OptionHandlerException.h
  2440. * src/OptionHandlerImpl.h
  2441. * src/OptionParser.cc
  2442. * src/OptionParser.h
  2443. * src/PStringSegment.cc
  2444. * src/ParameterizedStringParser.cc
  2445. * src/download_helper.cc
  2446. * test/ParameterizedStringParserTest.cc
  2447. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2448. Selecting files are now done in
  2449. DefaultBtContext::setFileFileter().
  2450. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  2451. functions are removed because they are no longer used. Creating
  2452. filter in BitfieldMan is done in new funtion
  2453. PieceStorage::setupFileFilter()
  2454. * src/BtContext.cc
  2455. * src/BtContext.h
  2456. * src/DefaultBtContext.cc
  2457. * src/DefaultBtContext.h
  2458. * src/DefaultPieceStorage.cc
  2459. * src/DefaultPieceStorage.h
  2460. * src/DiskAdaptor.cc
  2461. * src/DiskAdaptor.h
  2462. * src/PieceStorage.h
  2463. * src/RequestGroup.cc
  2464. * src/UnknownLengthPieceStorage.h
  2465. * src/XmlRpcMethodImpl.cc
  2466. * test/DefaultBtContextTest.cc
  2467. * test/MockBtContext.h
  2468. * test/MockPieceStorage.h
  2469. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2470. Fixed compile error on Mac OS X
  2471. * src/HttpServer.cc
  2472. * src/XmlRpcMethod.h
  2473. * src/XmlRpcMethodImpl.cc
  2474. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2475. Use std::binary_search instead of std::find
  2476. * src/DefaultPieceStorage.cc
  2477. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2478. Removed unnecessary BDE() call; leave them to implicit conversion.
  2479. * src/XmlRpcMethodImpl.cc
  2480. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2481. Return connections and gid in string
  2482. * src/XmlRpcMethodImpl.cc
  2483. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2484. Renamed addURI as addUri
  2485. * src/XmlRpcMethodFactory.cc
  2486. * src/XmlRpcMethodImpl.cc
  2487. * src/XmlRpcMethodImpl.h
  2488. * test/XmlRpcMethodTest.cc
  2489. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2490. Renamed addTorrentFile as addTorrent
  2491. * src/XmlRpcMethodFactory.cc
  2492. * src/XmlRpcMethodImpl.cc
  2493. * src/XmlRpcMethodImpl.h
  2494. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2495. The information for files, URIs, peers are removed from the
  2496. reponse of TellaActive, TellStatus command because they tend to be
  2497. large. Instead they can be retrieved by the dedicated commands:
  2498. getFiles, getUris and getPeers respectively.
  2499. * src/XmlRpcMethodFactory.cc
  2500. * src/XmlRpcMethodImpl.cc
  2501. * src/XmlRpcMethodImpl.h
  2502. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2503. Removed --max-overall-upload-limit and
  2504. --max-overall-download-limit option from listRequestOptions.
  2505. * src/download_helper.cc
  2506. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2507. Log incoming host in HttpListenCommand.
  2508. * src/HttpListenCommand.cc
  2509. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2510. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  2511. --xml-rpc-passwd option.
  2512. * src/HttpServer.cc
  2513. * src/HttpServer.h
  2514. * src/HttpServerCommand.cc
  2515. * src/OptionHandlerFactory.cc
  2516. * src/prefs.cc
  2517. * src/prefs.h
  2518. * src/usage_text.h
  2519. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2520. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  2521. processing 0 length request.
  2522. * src/HttpServerBodyCommand.cc
  2523. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2524. Removed --enable-http-server and --http-server-listen-port
  2525. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  2526. instead. The original feature for --enable-http-server that
  2527. reports download progress in HTML was officially removed. Persist
  2528. XML-RPC connection if client supports keep-alive.
  2529. * src/DownloadEngineFactory.cc
  2530. * src/HttpServerCommand.cc
  2531. * src/HttpServerResponseCommand.cc
  2532. * src/Makefile.am
  2533. * src/Makefile.in
  2534. * src/OptionHandlerFactory.cc
  2535. * src/RequestGroupMan.cc
  2536. * src/main.cc
  2537. * src/option_processing.cc
  2538. * src/prefs.cc
  2539. * src/prefs.h
  2540. * src/usage_text.h
  2541. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2542. Added "uris" key to the response of tellStatus command. Added
  2543. "connections" key to the response of tellStatus and tellActive
  2544. command.
  2545. * src/XmlRpcMethodImpl.cc
  2546. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2547. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  2548. Added TellStatusXmlRpcMethod. Remove command can now remove
  2549. waiting RequestGroup.
  2550. * src/RequestGroupMan.cc
  2551. * src/RequestGroupMan.h
  2552. * src/XmlRpcMethodFactory.cc
  2553. * src/XmlRpcMethodImpl.cc
  2554. * src/XmlRpcMethodImpl.h
  2555. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2556. Initialized _peerId
  2557. * src/Peer.cc
  2558. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2559. Return fault structure for error. FailXmlRpcMethod is renamed as
  2560. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  2561. in non-torrent download. Return single param value.
  2562. * src/XmlRpcMethod.cc
  2563. * src/XmlRpcMethodFactory.cc
  2564. * src/XmlRpcMethodImpl.cc
  2565. * src/XmlRpcMethodImpl.h
  2566. * test/XmlRpcMethodTest.cc
  2567. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2568. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  2569. command.
  2570. * src/RequestGroup.cc
  2571. * src/RequestGroup.h
  2572. * src/RequestGroupMan.cc
  2573. * src/XmlRpcMethodImpl.cc
  2574. * test/RequestGroupTest.cc
  2575. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2576. Added more options that can be specified in -i list and xml-rpc
  2577. add* command.
  2578. * src/download_helper.h
  2579. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2580. The available options in -i list should be listed in
  2581. listRequestOptions().
  2582. * src/download_helper.cc
  2583. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2584. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  2585. command.
  2586. * src/XmlRpcMethodImpl.cc
  2587. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2588. Now RequestGroup has its own copy of Option object. This will help
  2589. to give custom option for each RequestGroup.
  2590. addTorrentFile command now takes options.
  2591. * src/AbstractCommand.cc
  2592. * src/AbstractCommand.h
  2593. * src/AbstractProxyRequestCommand.cc
  2594. * src/ActivePeerConnectionCommand.cc
  2595. * src/ActivePeerConnectionCommand.h
  2596. * src/AdaptiveURISelector.cc
  2597. * src/BtCheckIntegrityEntry.cc
  2598. * src/BtDependency.cc
  2599. * src/BtDependency.h
  2600. * src/BtFileAllocationEntry.cc
  2601. * src/BtPostDownloadHandler.cc
  2602. * src/CheckIntegrityEntry.cc
  2603. * src/DownloadCommand.cc
  2604. * src/FtpDownloadCommand.cc
  2605. * src/FtpFinishDownloadCommand.cc
  2606. * src/FtpInitiateConnectionCommand.cc
  2607. * src/FtpNegotiationCommand.cc
  2608. * src/HttpInitiateConnectionCommand.cc
  2609. * src/HttpRequestCommand.cc
  2610. * src/HttpResponseCommand.cc
  2611. * src/HttpSkipResponseCommand.cc
  2612. * src/InitiateConnectionCommand.cc
  2613. * src/InitiateConnectionCommandFactory.cc
  2614. * src/InitiatorMSEHandshakeCommand.cc
  2615. * src/InitiatorMSEHandshakeCommand.h
  2616. * src/Metalink2RequestGroup.cc
  2617. * src/Metalink2RequestGroup.h
  2618. * src/MetalinkPostDownloadHandler.cc
  2619. * src/MultiUrlRequestInfo.cc
  2620. * src/MultiUrlRequestInfo.h
  2621. * src/PeerAbstractCommand.cc
  2622. * src/PeerInteractionCommand.cc
  2623. * src/PeerInteractionCommand.h
  2624. * src/PeerReceiveHandshakeCommand.cc
  2625. * src/PeerReceiveHandshakeCommand.h
  2626. * src/RequestGroup.cc
  2627. * src/RequestGroup.h
  2628. * src/TrackerWatcherCommand.cc
  2629. * src/TrackerWatcherCommand.h
  2630. * src/XmlRpcMethod.cc
  2631. * src/XmlRpcMethod.h
  2632. * src/XmlRpcMethodImpl.cc
  2633. * src/download_helper.cc
  2634. * src/download_helper.h
  2635. * src/main.cc
  2636. * test/BtDependencyTest.cc
  2637. * test/BtPostDownloadHandlerTest.cc
  2638. * test/DefaultBtMessageDispatcherTest.cc
  2639. * test/DownloadHandlerFactoryTest.cc
  2640. * test/DownloadHelperTest.cc
  2641. * test/Metalink2RequestGroupTest.cc
  2642. * test/MetalinkPostDownloadHandlerTest.cc
  2643. * test/RequestGroupManTest.cc
  2644. * test/RequestGroupTest.cc
  2645. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2646. Added tellActiveStatus xml-rpc command which reports download
  2647. status of active downloads.
  2648. * src/XmlRpcMethodFactory.cc
  2649. * src/XmlRpcMethodImpl.cc
  2650. * src/XmlRpcMethodImpl.h
  2651. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2652. Added addTorrentFile xml-rpc command which receives uploaded
  2653. torrent file and add download for it.
  2654. * src/RequestGroupMan.cc
  2655. * src/XmlRpcMethodFactory.cc
  2656. * src/XmlRpcMethodImpl.cc
  2657. * src/XmlRpcMethodImpl.h
  2658. * src/download_helper.cc
  2659. * src/download_helper.h
  2660. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2661. Added remove xml-rpc command which removes specified download.
  2662. There is a known issue: the removed unfinished downloads are
  2663. reported ERR when aria2 exits. They should be reported as INPR.
  2664. * src/RequestGroupMan.cc
  2665. * src/RequestGroupMan.h
  2666. * src/XmlRpcMethodFactory.cc
  2667. * src/XmlRpcMethodImpl.cc
  2668. * src/XmlRpcMethodImpl.h
  2669. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2670. If --enable-http-server is enabled, don't stop aria2 when all
  2671. download finished and don't quit when no files to download at
  2672. start up.
  2673. * src/RequestGroupMan.cc
  2674. * src/main.cc
  2675. * src/option_processing.cc
  2676. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2677. Added missing AM_CONDITIONAL
  2678. * configure.ac
  2679. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2680. Added xml-rpc functionality. Currently only addURI commad is
  2681. supported. To enable xml-rpc, run aria2 with
  2682. --enable-http-server. This option name is temporal and will be
  2683. changed. The feature that reports download progress in html format
  2684. is temporarily disabled.
  2685. * src/HttpServer.cc
  2686. * src/HttpServer.h
  2687. * src/HttpServerBodyCommand.cc
  2688. * src/HttpServerBodyCommand.h
  2689. * src/HttpServerCommand.cc
  2690. * src/HttpServerResponseCommand.cc
  2691. * src/Makefile.am
  2692. * src/OptionParser.cc
  2693. * src/OptionParser.h
  2694. * src/RequestGroupMan.cc
  2695. * src/RequestGroupMan.h
  2696. * src/XmlRpcMethod.cc
  2697. * src/XmlRpcMethod.h
  2698. * src/XmlRpcMethodFactory.cc
  2699. * src/XmlRpcMethodFactory.h
  2700. * src/XmlRpcMethodImpl.cc
  2701. * src/XmlRpcMethodImpl.h
  2702. * src/download_helper.cc
  2703. * src/download_helper.h
  2704. * test/Makefile.am
  2705. * test/XmlRpcMethodTest.cc
  2706. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2707. Added xml-rpc request parser. The supported value types are:
  2708. i4/int, string, double, struct, array, base64. Currently only
  2709. libxml2 version is provided.
  2710. * src/Xml2XmlRpcRequestProcessor.cc
  2711. * src/Xml2XmlRpcRequestProcessor.h
  2712. * src/XmlRpcElements.cc
  2713. * src/XmlRpcElements.h
  2714. * src/XmlRpcRequest.h
  2715. * src/XmlRpcRequestParserController.cc
  2716. * src/XmlRpcRequestParserController.h
  2717. * src/XmlRpcRequestParserState.h
  2718. * src/XmlRpcRequestParserStateImpl.cc
  2719. * src/XmlRpcRequestParserStateImpl.h
  2720. * src/XmlRpcRequestParserStateMachine.cc
  2721. * src/XmlRpcRequestParserStateMachine.h
  2722. * src/XmlRpcRequestProcessor.h
  2723. * test/XmlRpcRequestParserControllerTest.cc
  2724. * test/XmlRpcRequestProcessorTest.cc
  2725. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2726. * Release 1.3.3
  2727. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2728. Fixed compile error since r1202.
  2729. * src/ExpatMetalinkProcessor.cc
  2730. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2731. Updated Ukrainian, Russian and Simplified Chinese
  2732. translations. Thanks to all translators.
  2733. * po/ru.po
  2734. * po/uk.po
  2735. * po/zh_CN.po
  2736. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2737. Pass reference of Option object instead of pointer.
  2738. * src/download_helper.cc
  2739. * src/download_helper.h
  2740. * src/main.cc
  2741. * test/DownloadHelperTest.cc
  2742. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2743. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  2744. from option directly. Instead, get them from RequestGroup.
  2745. * src/ActivePeerConnectionCommand.cc
  2746. * src/ActivePeerConnectionCommand.h
  2747. * src/PeerReceiveHandshakeCommand.cc
  2748. * src/RequestGroup.h
  2749. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2750. Removed unused uploadLimitCheck and uploadLimit from
  2751. PeerAbstractCommand. Removed unused maxDownloadLimit from
  2752. PeerInteractionCommand.
  2753. * src/PeerAbstractCommand.cc
  2754. * src/PeerAbstractCommand.h
  2755. * src/PeerInteractionCommand.cc
  2756. * src/PeerInteractionCommand.h
  2757. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2758. Fixed broken file renaming feature since r1202.
  2759. * src/FtpNegotiationCommand.cc
  2760. * src/FtpNegotiationCommand.h
  2761. * src/HttpResponseCommand.cc
  2762. * src/RequestGroup.cc
  2763. * src/RequestGroup.h
  2764. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2765. Removed unused debug log
  2766. * src/SocketCore.cc
  2767. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2768. Generated configure and Makefile.in using autoconf 2.63 and
  2769. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  2770. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  2771. * configure.ac
  2772. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2773. Moved piece statistics stuff to new PieceStatMan class.
  2774. Refactored PieceSelector interface.
  2775. * src/DefaultPieceStorage.cc
  2776. * src/DefaultPieceStorage.h
  2777. * src/LongestSequencePieceSelector.cc
  2778. * src/LongestSequencePieceSelector.h
  2779. * src/Makefile.am
  2780. * src/PieceSelector.h
  2781. * src/PieceStatMan.cc
  2782. * src/PieceStatMan.h
  2783. * src/RarestPieceSelector.cc
  2784. * src/RarestPieceSelector.h
  2785. * src/RequestGroup.cc
  2786. * test/DefaultPieceStorageTest.cc
  2787. * test/InOrderPieceSelector.h
  2788. * test/Makefile.am
  2789. * test/PieceStatManTest.cc
  2790. * test/RarestPieceSelectorTest.cc
  2791. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2792. Added static member _protocolFamily to SocketCore. By default,
  2793. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  2794. address. Sometime SocketCore::bind() and
  2795. SocketCore::establishConnection() use difference protocl family
  2796. and latter cannot connect to former. To avoid this situation, we
  2797. limit protocol family to AF_INET for unit tests.
  2798. * src/SocketCore.cc
  2799. * src/SocketCore.h
  2800. * test/AllTest.cc
  2801. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2802. Avoid std::bad_alloc for negative bencode string length.
  2803. * src/bencode.cc
  2804. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2805. Supported segmented downloading with chunked transfer encoding and
  2806. content-length.
  2807. * src/DownloadCommand.cc
  2808. * src/HttpResponseCommand.cc
  2809. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2810. Bump up version number to 1.3.3
  2811. * configure.ac
  2812. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2813. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  2814. from 4096 to 65536 (for insanely large ftp login banners)
  2815. * src/FtpConnection.h
  2816. * test/FtpConnectionTest.cc
  2817. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2818. In DefaultBtContext::getActualBasePath(), return first
  2819. FileEntry::getPath() for single file torrent.
  2820. * src/DefaultBtContext.cc
  2821. * test/DefaultBtContextTest.cc
  2822. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2823. Removed directIOAllowed() from BinaryStream, DiskWriter,
  2824. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  2825. Removed _directIOAllowed member from DiskWriter.
  2826. * src/AbstractDiskWriter.cc
  2827. * src/AbstractDiskWriter.h
  2828. * src/AbstractSingleDiskAdaptor.cc
  2829. * src/AbstractSingleDiskAdaptor.h
  2830. * src/BinaryStream.h
  2831. * src/ByteArrayDiskWriter.h
  2832. * src/DefaultPieceStorage.cc
  2833. * src/DiskWriter.h
  2834. * src/MultiDiskAdaptor.cc
  2835. * src/MultiDiskAdaptor.h
  2836. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2837. Now the constructor of AbstractDiskWriter takes filename as an
  2838. argument and filename argument is removed from openFile(),
  2839. initAndOpenFile(), openExistingFile() interface. storeDir member
  2840. and its accessor functions are removed from DiskAdaptor because it
  2841. is not used anymore. size() member function of DefaultDiskWriter,
  2842. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  2843. opening file.
  2844. * src/AbstractDiskWriter.cc
  2845. * src/AbstractDiskWriter.h
  2846. * src/AbstractSingleDiskAdaptor.cc
  2847. * src/AbstractSingleDiskAdaptor.h
  2848. * src/ByteArrayDiskWriter.cc
  2849. * src/ByteArrayDiskWriter.h
  2850. * src/ByteArrayDiskWriterFactory.cc
  2851. * src/ByteArrayDiskWriterFactory.h
  2852. * src/DefaultDiskWriter.cc
  2853. * src/DefaultDiskWriter.h
  2854. * src/DefaultDiskWriterFactory.cc
  2855. * src/DefaultDiskWriterFactory.h
  2856. * src/DefaultPieceStorage.cc
  2857. * src/DirectDiskAdaptor.cc
  2858. * src/DirectDiskAdaptor.h
  2859. * src/DiskAdaptor.h
  2860. * src/DiskWriter.h
  2861. * src/DiskWriterFactory.h
  2862. * src/MessageDigestHelper.cc
  2863. * src/MultiDiskAdaptor.cc
  2864. * src/RequestGroup.cc
  2865. * src/UnknownLengthPieceStorage.cc
  2866. * src/Util.cc
  2867. * test/DefaultDiskWriterTest.cc
  2868. * test/DirectDiskAdaptorTest.cc
  2869. * test/FallocFileAllocationIteratorTest.cc
  2870. * test/MessageDigestHelperTest.cc
  2871. * test/MetalinkProcessorTest.cc
  2872. * test/MultiDiskAdaptorTest.cc
  2873. * test/MultiFileAllocationIteratorTest.cc
  2874. * test/SingleFileAllocationIteratorTest.cc
  2875. * test/UtilTest.cc
  2876. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2877. Fixed the bug that aria2 aborts when --select-file is used. This
  2878. bug was introduced in r1199.
  2879. * src/MultiDiskAdaptor.cc
  2880. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2881. Code cleanup
  2882. * test/MockPieceStorage.cc
  2883. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2884. Fixed the bug that read-only file with wrong file size will cause
  2885. error because it cannot be truncated to the correct size. Now if
  2886. file size is different than the expected one, re-open file in
  2887. writable mode.
  2888. * src/AbstractSingleDiskAdaptor.cc
  2889. * src/AbstractSingleDiskAdaptor.h
  2890. * src/BtCheckIntegrityEntry.cc
  2891. * src/DiskAdaptor.h
  2892. * src/MultiDiskAdaptor.h
  2893. * src/RequestGroup.cc
  2894. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2895. Fixed the bug that with --check-integrity option aria2 reports
  2896. downloaded file size is 0 even if some parts of file is correctly
  2897. downloaded. This bug is reproducible for the download that a file
  2898. includes last piece is missing. This bug doesn't reveal for
  2899. single-torrent with file allocation on.
  2900. * src/IteratableChecksumValidator.cc
  2901. * test/IteratableChecksumValidatorTest.cc
  2902. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2903. Avoid circular reference between RequestGroup and AdaptiveURISelector
  2904. * src/RequestGroupMan.cc
  2905. * src/AdaptiveURISelector.cc
  2906. * src/AdaptiveURISelector.h
  2907. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2908. * Release 1.3.2
  2909. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2910. Updated README
  2911. * README
  2912. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2913. Updated Ukrainian translations. Thanks to Alexander10.
  2914. * po/uk.po
  2915. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2916. Code cleanup
  2917. * src/MetalinkParserStateMachine.cc
  2918. * src/MetalinkParserStateMachine.h
  2919. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2920. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  2921. and expat simultaneously, MetalinkProcessor is now not base class
  2922. and it is directly implemented in XML2SAXMetalinkProcessor and
  2923. ExpatMetalinkProcessor.
  2924. * src/ExpatMetalinkProcessor.cc
  2925. * src/ExpatMetalinkProcessor.h
  2926. * src/Makefile.am
  2927. * src/MetalinkHelper.cc
  2928. * src/MetalinkProcessor.h
  2929. * src/MetalinkProcessorFactory.cc: Removed.
  2930. * src/MetalinkProcessorFactory.h: Removed
  2931. * src/XML2SAXMetalinkProcessor.cc
  2932. * src/XML2SAXMetalinkProcessor.h
  2933. * test/MetalinkProcessorTest.cc
  2934. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2935. Bump up version number to 1.3.2
  2936. * configure.ac
  2937. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2938. Added missing file.
  2939. * test/Makefile.am
  2940. * test/url-list-singleFileEndsWithSlash.torrent
  2941. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2942. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  2943. request.
  2944. * src/AnnounceList.cc
  2945. * src/AnnounceList.h
  2946. * src/BDE.cc: Added
  2947. * src/BDE.h: Added
  2948. * src/DHTAbstractMessage.cc
  2949. * src/DHTAbstractMessage.h
  2950. * src/DHTAnnouncePeerMessage.cc
  2951. * src/DHTAnnouncePeerMessage.h
  2952. * src/DHTAnnouncePeerReplyMessage.cc
  2953. * src/DHTAnnouncePeerReplyMessage.h
  2954. * src/DHTFindNodeMessage.cc
  2955. * src/DHTFindNodeMessage.h
  2956. * src/DHTFindNodeReplyMessage.cc
  2957. * src/DHTFindNodeReplyMessage.h
  2958. * src/DHTGetPeersMessage.cc
  2959. * src/DHTGetPeersMessage.h
  2960. * src/DHTGetPeersReplyMessage.cc
  2961. * src/DHTGetPeersReplyMessage.h
  2962. * src/DHTMessageFactory.h
  2963. * src/DHTMessageFactoryImpl.cc
  2964. * src/DHTMessageFactoryImpl.h
  2965. * src/DHTMessageReceiver.cc
  2966. * src/DHTMessageTracker.cc
  2967. * src/DHTMessageTracker.h
  2968. * src/DHTPingMessage.cc
  2969. * src/DHTPingMessage.h
  2970. * src/DHTPingReplyMessage.cc
  2971. * src/DHTPingReplyMessage.h
  2972. * src/DHTQueryMessage.cc
  2973. * src/DHTQueryMessage.h
  2974. * src/DHTResponseMessage.cc
  2975. * src/DHTResponseMessage.h
  2976. * src/DefaultBtAnnounce.cc
  2977. * src/DefaultBtContext.cc
  2978. * src/DefaultBtContext.h
  2979. * src/HandshakeExtensionMessage.cc
  2980. * src/Makefile.am
  2981. * src/PeerListProcessor.h
  2982. * src/UTPexExtensionMessage.cc
  2983. * src/bencode.cc
  2984. * src/bencode.h
  2985. * test/AnnounceListTest.cc
  2986. * test/BDETest.cc: Added
  2987. * test/BencodeTest.cc
  2988. * test/DHTAnnouncePeerMessageTest.cc
  2989. * test/DHTAnnouncePeerReplyMessageTest.cc
  2990. * test/DHTFindNodeMessageTest.cc
  2991. * test/DHTFindNodeReplyMessageTest.cc
  2992. * test/DHTGetPeersMessageTest.cc
  2993. * test/DHTGetPeersReplyMessageTest.cc
  2994. * test/DHTMessageFactoryImplTest.cc
  2995. * test/DHTMessageTrackerTest.cc
  2996. * test/DHTPingMessageTest.cc
  2997. * test/DHTPingReplyMessageTest.cc
  2998. * test/Makefile.am
  2999. * test/MockDHTMessageFactory.h
  3000. * test/PeerListProcessorTest.cc
  3001. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3002. Use url-list (web-seeding) only for single-file torrent. This is
  3003. basically the same behavior with Metalink file with torrent and
  3004. URIs.
  3005. * src/RequestGroup.cc
  3006. * src/DefaultBtContext.cc
  3007. * test/DefaultBtContextTest.cc
  3008. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3009. Rewritten expr
  3010. * src/array_fun.h
  3011. * test/array_funTest.cc
  3012. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3013. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  3014. * src/DefaultBtMessageDispatcher.cc
  3015. * src/a2algo.h
  3016. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3017. Removed ExtendedMessagingAware. Instead of using inheritance,
  3018. added ExtensionMessageRegistry and it is passed to
  3019. DefaultExtensionMessageFactory.
  3020. * src/DefaultBtInteractive.cc
  3021. * src/DefaultBtInteractive.h
  3022. * src/DefaultExtensionMessageFactory.cc
  3023. * src/DefaultExtensionMessageFactory.h
  3024. * src/ExtendedMessagingAware.h: Removed.
  3025. * src/ExtensionMessageFactory.h
  3026. * src/ExtensionMessageRegistry.h: Added.
  3027. * src/Makefile.am
  3028. * src/PeerInteractionCommand.cc
  3029. * test/DefaultExtensionMessageFactoryTest.cc
  3030. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3031. Fixed typo in log messages
  3032. * src/MSEHandshake.cc
  3033. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3034. Fixed the bug that prevents torrent download from finishing. The
  3035. bug doesn't reveal for all torrents. The torrents affected this
  3036. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  3037. of pieces.
  3038. * src/bitfield.h
  3039. * test/bitfieldTest.cc
  3040. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3041. Code cleanup
  3042. * src/PeerListProcessor.h
  3043. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3044. Removed RequestGroupAware
  3045. * src/AbstractCommand.cc
  3046. * src/AbstractCommand.h
  3047. * src/ActivePeerConnectionCommand.cc
  3048. * src/ActivePeerConnectionCommand.h
  3049. * src/DHTGetPeersCommand.cc
  3050. * src/DHTGetPeersCommand.h
  3051. * src/InitiatorMSEHandshakeCommand.cc
  3052. * src/InitiatorMSEHandshakeCommand.h
  3053. * src/Makefile.am
  3054. * src/PeerInitiateConnectionCommand.cc
  3055. * src/PeerInitiateConnectionCommand.h
  3056. * src/PeerInteractionCommand.cc
  3057. * src/PeerInteractionCommand.h
  3058. * src/RealtimeCommand.cc
  3059. * src/RealtimeCommand.h
  3060. * src/RequestGroupAware.cc: Removed
  3061. * src/RequestGroupAware.h: Removed
  3062. * src/SeedCheckCommand.cc
  3063. * src/SeedCheckCommand.h
  3064. * src/SleepCommand.cc
  3065. * src/TrackerWatcherCommand.cc
  3066. * src/TrackerWatcherCommand.h
  3067. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3068. Rewritten PeerListProcessor
  3069. * src/PeerListProcessor.h
  3070. * src/CompactPeerListProcessor.h: Removed
  3071. * src/CompactPeerListProcessor.cc: Removed
  3072. * src/DelegatingPeerListProcessor.cc: Removed.
  3073. * src/DefaultBtAnnounce.cc
  3074. * src/Makefile.am
  3075. * src/UTPexExtensionMessage.cc
  3076. * src/DefaultPeerListProcessor.h: Removed.
  3077. * src/DefaultPeerListProcessor.cc: Removed.
  3078. * src/DelegatingPeerListProcessor.h: Removed.
  3079. * test/Makefile.am
  3080. * test/PeerListProcessorTest.cc
  3081. * test/DefaultPeerListProcessorTest.cc: Removed.
  3082. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3083. Rewritten RequestGroupMan::calculateStat()
  3084. * src/RequestGroupMan.cc
  3085. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3086. Removed unnecessary virtual destructor for Request class.
  3087. * src/Request.cc
  3088. * src/Request.h
  3089. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3090. Avoid dynamic_pointer_cast.
  3091. * src/DHTGetPeersCommand.cc
  3092. * src/DHTGetPeersCommand.h
  3093. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3094. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  3095. BtEvent.
  3096. * src/AbstractBtEventListener.h: Removed.
  3097. * src/AbstractBtMessage.cc
  3098. * src/AbstractBtMessage.h
  3099. * src/BtAbortOutstandingRequestEvent.h
  3100. * src/BtCancelSendingPieceEvent.h
  3101. * src/BtChokedEvent.h: Removed.
  3102. * src/BtChokingEvent.h
  3103. * src/BtEvent.h: Removed
  3104. * src/BtEventListener.h: Removed.
  3105. * src/BtMessage.h
  3106. * src/BtPieceMessage.cc
  3107. * src/BtPieceMessage.h
  3108. * src/BtRequestMessage.cc
  3109. * src/BtRequestMessage.h
  3110. * src/DefaultBtMessageDispatcher.cc
  3111. * src/Makefile.am
  3112. * src/a2functional.h
  3113. * test/BtPieceMessageTest.cc
  3114. * test/BtRequestMessageTest.cc
  3115. * test/DefaultBtMessageDispatcherTest.cc
  3116. * test/MockBtMessage.h
  3117. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3118. Code cleanup
  3119. * src/RequestGroupMan.cc
  3120. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3121. Code cleanup
  3122. * src/DownloadCommand.cc
  3123. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3124. Fixed segmentation fault when GZipDecoder::decode() returns 0
  3125. byte.
  3126. * src/DownloadCommand.cc
  3127. * src/bitfield.h
  3128. * test/bitfieldTest.cc
  3129. Fixed the bug that causes infinite loop if broken web server
  3130. returns chunked response without last "0" chunk-size marker and
  3131. closes connection.
  3132. * src/DownloadCommand.cc
  3133. Instantiate properly configured HttpDownloadCommand for
  3134. non-resumable downlaods.
  3135. * src/HttpResponseCommand.cc
  3136. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3137. Rewritten array operation functions.
  3138. * src/BitfieldMan.cc
  3139. * src/array_fun.h
  3140. * test/array_funTest.cc
  3141. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3142. Removed unused variable 'query'
  3143. * src/Request.cc
  3144. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3145. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  3146. accidentally set to false in r1162.
  3147. * configure.ac
  3148. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3149. Code cleanup
  3150. * src/BNode.cc
  3151. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3152. Increase prefixLength for the bucket which doesn't own local node
  3153. ID when splitting bucket.
  3154. * src/DHTBucket.cc
  3155. * test/DHTBucketTest.cc
  3156. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3157. * Release 1.3.1
  3158. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3159. Bump up version number to 1.3.1
  3160. * configure.ac
  3161. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3162. Removed unused variable checkPoint. Also removed include directive
  3163. for TimeA2.h.
  3164. * src/SeedCheckCommand.h
  3165. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3166. Fixed the bug that upload limit exceeds the value specified in
  3167. --seed-ratio option depending on the timing of the execution of
  3168. SeedCheckCommand.
  3169. * src/SeedCheckCommand.cc
  3170. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3171. Fixed the bug that removed peer's session upload/download length
  3172. are counted twice in _cachedTransferStat before it is
  3173. re-calculated. This affected the calculation of shara ratio,
  3174. resulting aria2 wrongly determines that specified share ratio is
  3175. reached. Also fixed the typo in calculateStatFor function name.
  3176. * src/BtSetup.cc
  3177. * src/DefaultPeerStorage.cc
  3178. * src/ShareRatioSeedCriteria.h
  3179. * test/ShareRatioSeedCriteriaTest.cc
  3180. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3181. * Release 1.3.0
  3182. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3183. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  3184. Nynorsk translations. Thanks to all translators.
  3185. * po/es.po
  3186. * po/ja.po
  3187. * po/nn.po
  3188. * po/ru.po
  3189. * po/uk.po
  3190. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3191. Rewritten isInRange()
  3192. * src/DHTBucket.cc
  3193. * test/DHTBucketTest.cc
  3194. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3195. Fixed typo
  3196. * doc/aria2c.1.txt
  3197. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3198. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  3199. malloc/realloc is not used.
  3200. * src/configure.ac
  3201. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3202. BitfieldMan::getMissingIndexes family functions now takes unsigned
  3203. char* bitfield instead of stl container for efficiency.
  3204. PieceSelector::select now takes this
  3205. bitfield. RarestPieceSelector::select now also performs
  3206. efficiently for this change. bitfield namespace is introduced and
  3207. it has several helper functions to handle basic bitfield
  3208. operations such as test, count set bits, etc.
  3209. * src/BitfieldMan.cc
  3210. * src/BitfieldMan.h
  3211. * src/DefaultBtRequestFactory.cc
  3212. * src/DefaultPieceStorage.cc
  3213. * src/DefaultPieceStorage.h
  3214. * src/LongestSequencePieceSelector.cc
  3215. * src/LongestSequencePieceSelector.h
  3216. * src/Makefile.am
  3217. * src/Piece.cc
  3218. * src/Piece.h
  3219. * src/PieceSelector.h
  3220. * src/RarestPieceSelector.cc
  3221. * src/RarestPieceSelector.h
  3222. * src/Util.cc
  3223. * src/Util.h
  3224. * src/bitfield.h
  3225. * test/BitfieldManTest.cc
  3226. * test/LongestSequencePieceSelectorTest.cc
  3227. * test/Makefile.am
  3228. * test/RarestPieceSelectorTest.cc
  3229. * test/UtilTest.cc
  3230. * test/bitfieldTest.cc
  3231. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3232. Made accepted socket non-block.
  3233. * src/FtpNegotiationCommand.cc
  3234. * src/HttpListenCommand.cc
  3235. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3236. Guarded #ifdef HAVE_POSIX_FALLOCATE
  3237. * src/AbstractSingleDiskAdaptor.cc
  3238. * src/DefaultPieceStorage.cc
  3239. * src/DiskAdaptor.h
  3240. * src/DiskAdaptor.h
  3241. * src/MultiFileAllocationIterator.cc
  3242. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3243. Run
  3244. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  3245. in every 1 sec. The timeout of RequestSlot is 60s by default and
  3246. it doesn't need to be called every time when
  3247. DefaultBtInteractive::doInteractionProcessing() is called.
  3248. * src/DefaultBtInteractive.cc
  3249. * src/DefaultBtInteractive.h
  3250. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3251. Documented 'falloc' in man page.
  3252. * doc/aria2c.1.txt
  3253. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3254. Updated doc
  3255. * src/usage_text.h
  3256. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3257. Added 'falloc' parameter for --file-allocation option. 'falloc'
  3258. allocation mode uses posix_fallocate() system call to allocate
  3259. file on disk. If you are using newer file systems such as ext4
  3260. (with extents support), btrfs or xfs, 'falloc' is your best
  3261. choice. It allocates large(few GiB) files almost instantly. Don't
  3262. use 'falloc' with legacy file systems such as ext3 because it
  3263. takes almost same time as 'prealloc' and it blocks aria2 entirely
  3264. until allocation finishes. 'falloc' may not be available if your
  3265. system doesn't have posix_fallocate() system call.
  3266. * configure.ac
  3267. * src/AbstractDiskWriter.cc
  3268. * src/AbstractDiskWriter.h
  3269. * src/AbstractSingleDiskAdaptor.cc
  3270. * src/BinaryStream.h
  3271. * src/BtCheckIntegrityEntry.cc
  3272. * src/ByteArrayDiskWriter.h
  3273. * src/CheckIntegrityEntry.cc
  3274. * src/CheckIntegrityEntry.h
  3275. * src/DefaultPieceStorage.cc
  3276. * src/DiskAdaptor.cc
  3277. * src/DiskAdaptor.h
  3278. * src/DiskWriter.h
  3279. * src/FallocFileAllocationIterator.cc
  3280. * src/FallocFileAllocationIterator.h
  3281. * src/FileAllocationEntry.cc
  3282. * src/FileAllocationEntry.h
  3283. * src/Makefile.am
  3284. * src/MultiFileAllocationIterator.cc
  3285. * src/MultiFileAllocationIterator.h
  3286. * src/OptionHandlerFactory.cc
  3287. * src/RequestGroup.cc
  3288. * src/StreamCheckIntegrityEntry.cc
  3289. * src/prefs.cc
  3290. * src/prefs.h
  3291. * src/usage_text.h
  3292. * test/FallocFileAllocationIteratorTest.cc
  3293. * test/Makefile.am
  3294. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3295. Removed duplicate enableDirectIO() call.
  3296. * src/MultiFileAllocationIterator.cc
  3297. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3298. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  3299. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  3300. cost of std::rotate().
  3301. * src/RarestPieceSelector.cc
  3302. * src/RarestPieceSelector.h
  3303. * test/RarestPieceSelectorTest.cc
  3304. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3305. Updated usage doc for --bt-tracker-interval option.
  3306. * src/usage_text.h
  3307. * doc/aria2c.1.txt
  3308. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3309. Documented --bt-tracker-interval option in man page.
  3310. * doc/aria2c.1.txt
  3311. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3312. Added an option to specify the interval between tracker requests.
  3313. If non-zero value is specified, aria2 uses it and ignores the
  3314. interval value in the response of tracker. If zero is specified,
  3315. aria2 determines the inteval value based on the tarcker response
  3316. and download progress.
  3317. * src/DefaultBtAnnounce.cc
  3318. * src/DefaultBtAnnounce.h
  3319. * src/OptionHandlerFactory.cc
  3320. * src/RequestGroup.cc
  3321. * src/prefs.cc
  3322. * src/prefs.h
  3323. * src/usage_text.h
  3324. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3325. Added operator+=, operator-=, operator-
  3326. * src/TransferStat.cc
  3327. * src/TransferStat.h
  3328. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3329. Refactored RarestPieceSelector to reduce CPU load, especially for
  3330. addPieceStats.
  3331. * src/RarestPieceSelector.cc
  3332. * src/RarestPieceSelector.h
  3333. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3334. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  3335. getAllMissingBlockIndexes to reduce a call to
  3336. array_function_base::operator[].
  3337. * src/BitfieldMan.cc
  3338. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3339. Cached TransferStat/download speed to avoid to sum them up in each
  3340. call.
  3341. * src/DefaultPeerStorage.cc
  3342. * src/DefaultPeerStorage.h
  3343. * src/SegmentMan.cc
  3344. * src/SegmentMan.h
  3345. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3346. Typedefed cuid_t as int32_t in Command.h
  3347. * src/CUIDCounter.h
  3348. * src/Command.cc
  3349. * src/Command.h
  3350. * src/DownloadEngine.cc
  3351. * src/DownloadEngine.h
  3352. * src/PeerStat.h
  3353. * src/SegmentMan.cc
  3354. * src/SegmentMan.h
  3355. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3356. Reduced the number of calls to PeerStorage::calculateStat() and
  3357. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  3358. transfer rate.
  3359. * src/DefaultBtInteractive.cc
  3360. * src/DefaultBtMessageDispatcher.cc
  3361. * src/DefaultPeerStorage.cc
  3362. * src/DefaultPeerStorage.h
  3363. * src/DownloadCommand.cc
  3364. * src/DownloadEngine.cc
  3365. * src/PeerStorage.h
  3366. * src/SegmentMan.cc
  3367. * src/SegmentMan.h
  3368. * test/MockPeerStorage.h
  3369. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3370. Prepended _dir+"/" after joining path elements in torrent file.
  3371. * src/DefaultBtContext.cc
  3372. * test/DefaultBtContextTest.cc
  3373. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3374. Added missing IndexBtMessageValidator.h
  3375. * src/Makefile.am
  3376. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3377. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  3378. Chinese translations. Thank you for contributing our project.
  3379. * po/id.po
  3380. * po/it.po
  3381. * po/ru.po
  3382. * po/uk.po
  3383. * po/zh_CN.po
  3384. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3385. Updated README
  3386. * README
  3387. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3388. Bump up version number to 1.3.0
  3389. * configure.ac
  3390. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3391. Updated doc
  3392. * src/DefaultBtContext.h
  3393. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3394. Slice/joinPath for name of single torrent.
  3395. * src/DefaultBtContext.cc
  3396. * test/DefaultBtContextTest.cc
  3397. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3398. Updated man page: Documented --dry-run and --index-out
  3399. options. Changed the default value of --uri-selector and
  3400. --http-auth-challenge options. Removed --direct-file-mapping
  3401. option. Added example for --index-out
  3402. * doc/aria2c.1.txt
  3403. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3404. Updated TEXT_DRY_RUN
  3405. * src/usage_text.h
  3406. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3407. Changed the default value of --uri-selector option from 'inorder'
  3408. to 'feedback'
  3409. * src/OptionHandlerFactory.cc
  3410. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3411. Included current URI in exception message.
  3412. * src/AbstractCommand.cc
  3413. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3414. Renamed ServerStatURISelector as FeedbackURISelector.
  3415. * src/FeedbackURISelector.cc
  3416. * src/FeedbackURISelector.h
  3417. * src/Makefile.am
  3418. * src/RequestGroupMan.cc
  3419. * src/ServerStatURISelector.cc
  3420. * src/ServerStatURISelector.h
  3421. * test/FeedbackURISelectorTest.cc
  3422. * test/Makefile.am
  3423. * test/ServerStatURISelectorTest.cc
  3424. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3425. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  3426. all URIs are tested and their timeout is not reached.
  3427. * src/AdaptiveURISelector.cc
  3428. * src/AdaptiveURISelector.h
  3429. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3430. Changed the default value of --http-auth-challenge option to false.
  3431. * src/OptionHandlerFactory.cc
  3432. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3433. Reuse URIs when all unused URIs run out.
  3434. * src/OptionHandlerFactory.cc
  3435. * src/RequestGroup.cc
  3436. * src/prefs.cc
  3437. * src/prefs.h
  3438. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3439. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  3440. and BtRejectMessage are derived from RangeBtMessage class.
  3441. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  3442. derived from IndexBtMessage class. BtChokeMessage,
  3443. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  3444. BtNotInterestedMessage and BtUnchokeMessage are derived from
  3445. ZeroBtMessage class.
  3446. * src/AbstractBtMessage.cc
  3447. * src/AbstractBtMessage.h
  3448. * src/BtAllowedFastMessage.cc
  3449. * src/BtAllowedFastMessage.h
  3450. * src/BtAllowedFastMessageValidator.h: Removed
  3451. * src/BtBitfieldMessage.cc
  3452. * src/BtBitfieldMessage.h
  3453. * src/BtCancelMessage.cc
  3454. * src/BtCancelMessage.h
  3455. * src/BtCancelMessageValidator.h: Removed
  3456. * src/BtChokeMessage.cc
  3457. * src/BtChokeMessage.h
  3458. * src/BtExtendedMessage.cc
  3459. * src/BtExtendedMessage.h
  3460. * src/BtHandshakeMessage.cc
  3461. * src/BtHandshakeMessage.h
  3462. * src/BtHaveAllMessage.cc
  3463. * src/BtHaveAllMessage.h
  3464. * src/BtHaveMessage.cc
  3465. * src/BtHaveMessage.h
  3466. * src/BtHaveMessageValidator.h: Removed
  3467. * src/BtHaveNoneMessage.cc
  3468. * src/BtHaveNoneMessage.h
  3469. * src/BtInterestedMessage.cc
  3470. * src/BtInterestedMessage.h
  3471. * src/BtKeepAliveMessage.cc
  3472. * src/BtKeepAliveMessage.h
  3473. * src/BtNotInterestedMessage.cc
  3474. * src/BtNotInterestedMessage.h
  3475. * src/BtPieceMessage.cc
  3476. * src/BtPieceMessage.h
  3477. * src/BtPortMessage.cc
  3478. * src/BtPortMessage.h
  3479. * src/BtRejectMessage.cc
  3480. * src/BtRejectMessage.h
  3481. * src/BtRejectMessageValidator.h: Removed
  3482. * src/BtRequestMessage.cc
  3483. * src/BtRequestMessage.h
  3484. * src/BtRequestMessageValidator.h: Removed
  3485. * src/BtSuggestPieceMessage.cc
  3486. * src/BtSuggestPieceMessage.h
  3487. * src/BtSuggestPieceMessageValidator.h: Removed
  3488. * src/BtUnchokeMessage.cc
  3489. * src/BtUnchokeMessage.h
  3490. * src/DefaultBtMessageFactory.cc
  3491. * src/IndexBtMessage.cc
  3492. * src/IndexBtMessage.h
  3493. * src/IndexBtMessageValidator.h
  3494. * src/Makefile.am
  3495. * src/PeerMessageUtil.cc
  3496. * src/PeerMessageUtil.h
  3497. * src/RangeBtMessage.cc
  3498. * src/RangeBtMessage.h
  3499. * src/RangeBtMessageValidator.h
  3500. * src/SimpleBtMessage.cc
  3501. * src/SimpleBtMessage.h
  3502. * src/ZeroBtMessage.cc
  3503. * src/ZeroBtMessage.h
  3504. * test/BtRequestMessageTest.cc
  3505. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3506. Reverted usage_text.h to r1093 to avoid to lose translated
  3507. messages.
  3508. * src/usage_text.h
  3509. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3510. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  3511. declared as non-const previously is now const and defined in class
  3512. definition.
  3513. * src/AbstractBtMessage.cc
  3514. * src/AbstractBtMessage.h
  3515. * src/BtAllowedFastMessage.cc
  3516. * src/BtAllowedFastMessage.h
  3517. * src/BtBitfieldMessage.h
  3518. * src/BtCancelMessage.cc
  3519. * src/BtCancelMessage.h
  3520. * src/BtChokeMessage.cc
  3521. * src/BtChokeMessage.h
  3522. * src/BtExtendedMessage.cc
  3523. * src/BtExtendedMessage.h
  3524. * src/BtHandshakeMessage.cc
  3525. * src/BtHandshakeMessage.h
  3526. * src/BtHaveAllMessage.cc
  3527. * src/BtHaveAllMessage.h
  3528. * src/BtHaveMessage.cc
  3529. * src/BtHaveMessage.h
  3530. * src/BtHaveNoneMessage.cc
  3531. * src/BtHaveNoneMessage.h
  3532. * src/BtInterestedMessage.cc
  3533. * src/BtInterestedMessage.h
  3534. * src/BtKeepAliveMessage.cc
  3535. * src/BtKeepAliveMessage.h
  3536. * src/BtMessage.h
  3537. * src/BtNotInterestedMessage.cc
  3538. * src/BtNotInterestedMessage.h
  3539. * src/BtPieceMessage.h
  3540. * src/BtPortMessage.cc
  3541. * src/BtPortMessage.h
  3542. * src/BtRejectMessage.cc
  3543. * src/BtRejectMessage.h
  3544. * src/BtRequestMessage.cc
  3545. * src/BtRequestMessage.h
  3546. * src/BtSuggestPieceMessage.cc
  3547. * src/BtSuggestPieceMessage.h
  3548. * src/BtUnchokeMessage.cc
  3549. * src/BtUnchokeMessage.h
  3550. * src/SimpleBtMessage.cc
  3551. * src/SimpleBtMessage.h
  3552. * test/MockBtMessage.h
  3553. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3554. Use FileEntry::exists()
  3555. * src/MultiDiskAdaptor.cc
  3556. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3557. Added exists()
  3558. * src/FileEntry.cc
  3559. * src/FileEntry.h
  3560. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3561. Added missing prefix dir.
  3562. * src/download_helper.cc
  3563. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3564. Removed --direct-file-mapping option and CopyDiskAdaptor.
  3565. * src/CopyDiskAdaptor.cc: Removed
  3566. * src/CopyDiskAdaptor.h: Removed
  3567. * src/DefaultPieceStorage.cc
  3568. * src/Makefile.am
  3569. * src/OptionHandlerFactory.cc
  3570. * src/prefs.cc
  3571. * src/prefs.h
  3572. * src/usage_text.h
  3573. * test/CopyDiskAdaptorTest.cc: Removed
  3574. * test/Makefile.am
  3575. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3576. Rewritten isSameFileBeingDownloaded()
  3577. * src/RequestGroupMan.cc
  3578. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3579. Removed getName() from DownloadContext. getName() is declared in
  3580. BtContext.
  3581. * src/BtContext.h
  3582. * src/DownloadContext.h
  3583. * src/SingleFileDownloadContext.cc
  3584. * src/SingleFileDownloadContext.h
  3585. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  3586. in AbstractSingleDiskAdaptor.
  3587. * src/AbstractSingleDiskAdaptor.h
  3588. * src/DiskAdaptor.h
  3589. * src/MultiDiskAdaptor.h
  3590. * src/RequestGroup.cc
  3591. Removed setTopDir() and getTopDir() and getTopDirPath() from
  3592. MultiDiskAdaptor.
  3593. * src/DefaultPieceStorage.cc
  3594. * src/MultiDiskAdaptor.cc
  3595. * src/MultiDiskAdaptor.h
  3596. * test/MultiDiskAdaptorTest.cc
  3597. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3598. FileEntry::getPath() contains store(top level) directory to
  3599. simplify path handling operation. In the previous implementation,
  3600. store directory is concatenated to FileEntry::getPath() in
  3601. DownloadContext.
  3602. * src/BtDependency.cc
  3603. * src/BtPostDownloadHandler.cc
  3604. * src/CopyDiskAdaptor.cc
  3605. * src/DefaultBtContext.cc
  3606. * src/DirectDiskAdaptor.cc
  3607. * src/FileEntry.cc
  3608. * src/FileEntry.h
  3609. * src/FtpNegotiationCommand.cc
  3610. * src/HttpResponse.cc
  3611. * src/HttpResponseCommand.cc
  3612. * src/Metalink2RequestGroup.cc
  3613. * src/MultiDiskAdaptor.cc
  3614. * src/MultiDiskAdaptor.h
  3615. * src/MultiFileAllocationIterator.cc
  3616. * src/RequestGroup.cc
  3617. * src/SingleFileDownloadContext.cc
  3618. * src/SingleFileDownloadContext.h
  3619. * src/download_helper.cc
  3620. * test/BtDependencyTest.cc
  3621. * test/CopyDiskAdaptorTest.cc
  3622. * test/DefaultBtContextTest.cc
  3623. * test/DefaultBtProgressInfoFileTest.cc
  3624. * test/DirectDiskAdaptorTest.cc
  3625. * test/DownloadHelperTest.cc
  3626. * test/FileEntryTest.cc
  3627. * test/MultiDiskAdaptorTest.cc
  3628. * test/MultiFileAllocationIteratorTest.cc
  3629. * test/RequestGroupTest.cc
  3630. * test/SingleFileDownloadContextTest.cc
  3631. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3632. Fixed compiler warning
  3633. * src/download_helper.cc
  3634. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3635. Throw exception if same infohash torrent is now downloading.
  3636. * src/RequestGroup.cc
  3637. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3638. Added --dry-run option. In this mode, aria2 just checks whether
  3639. the remote file is available and doesn't download data. This
  3640. option has effect on HTTP/FTP downloads and BitTorrent downloads
  3641. are canceled in this mode.
  3642. * src/FtpNegotiationCommand.cc
  3643. * src/HttpResponseCommand.cc
  3644. * src/HttpResponseCommand.h
  3645. * src/OptionHandlerFactory.cc
  3646. * src/RequestGroup.cc
  3647. * src/RequestGroupMan.cc
  3648. * src/prefs.cc
  3649. * src/prefs.h
  3650. * src/usage_text.h
  3651. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3652. Fixed compiler waring
  3653. * test/UriListParserTest.cc
  3654. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3655. Parse options in -i list using OptionParser.
  3656. * src/UriListParser.cc
  3657. * src/UriListParser.h
  3658. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3659. Don't reset URI in retry to avoid additional round trips because
  3660. of redirects.
  3661. * src/AbstractCommand.cc
  3662. * src/OptionHandlerFactory.cc
  3663. * src/prefs.cc
  3664. * src/prefs.h
  3665. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3666. Declared hide() in OptionHandler.
  3667. * src/NameMatchOptionHandler.h
  3668. * src/OptionHandler.h
  3669. * src/OptionHandlerImpl.h
  3670. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3671. Updated doc
  3672. * src/Peer.h
  3673. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3674. Added log message in setStatusInternal()
  3675. * src/ServerStat.cc
  3676. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3677. Call ServerStat::setError() in AbstractCommand::onAbort() to
  3678. effectively exclude failed server.
  3679. * src/AbstractCommand.cc
  3680. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3681. Added --index-out option to specify each file path for torrent.
  3682. Here index shown in --show-files option is used to specify which
  3683. file path should be altered. For example, to change the file path
  3684. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  3685. option multiple times: --index-out=1=aria2.tar.bz2
  3686. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  3687. available. This option can be specified in -i list.
  3688. * src/DefaultBtContext.cc
  3689. * src/DefaultBtContext.h
  3690. * src/MultiDiskAdaptor.cc
  3691. * src/MultiDiskAdaptor.h
  3692. * src/MultiFileAllocationIterator.cc
  3693. * src/OptionHandlerFactory.cc
  3694. * src/OptionHandlerImpl.h
  3695. * src/Util.cc
  3696. * src/Util.h
  3697. * src/download_helper.cc
  3698. * src/prefs.cc
  3699. * src/prefs.h
  3700. * src/usage_text.h
  3701. * test/DefaultBtContextTest.cc
  3702. * test/MultiDiskAdaptorTest.cc
  3703. * test/MultiFileAllocationIteratorTest.cc
  3704. * test/UtilTest.cc
  3705. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3706. Use Util::pathJoin()
  3707. * src/MetalinkParserController.cc
  3708. * test/test.xml
  3709. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3710. Use Util::pathJoin()
  3711. * src/DefaultBtContext.cc
  3712. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3713. Added Util::pathJoin()
  3714. * src/Util.h
  3715. * test/UtilTest.cc
  3716. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3717. Applied basename function to remove directory element in
  3718. content-disposition value.
  3719. Return empty string if content-disposition value is ".." or ".".
  3720. * src/Util.cc
  3721. * test/UtilTest.cc
  3722. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3723. Added --max-overall-download-limit in man page.
  3724. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  3725. * doc/aria2c.1.txt
  3726. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3727. Added --max-overall-download-limit option. Now --max-upload-limit
  3728. option is not ignored when --max-overall-upload-limit option has
  3729. non-zero value. aria2 checks download(upload) speed in the order:
  3730. first checks overall speed limit and if it is not exceeded, then
  3731. checks speed limit per download. Thus you can specify both
  3732. value. For example, set --max-overall-download-limit=1M and
  3733. --max-download-limit=500K to prevent from one download from eating
  3734. all overall speed limit.
  3735. * src/DefaultBtInteractive.cc
  3736. * src/DefaultBtInteractive.h
  3737. * src/DefaultBtMessageDispatcher.cc
  3738. * src/DefaultBtMessageDispatcher.h
  3739. * src/DownloadCommand.cc
  3740. * src/DownloadCommand.h
  3741. * src/FtpNegotiationCommand.cc
  3742. * src/HttpResponseCommand.cc
  3743. * src/OptionHandlerFactory.cc
  3744. * src/PeerInteractionCommand.cc
  3745. * src/RequestGroup.cc
  3746. * src/RequestGroup.h
  3747. * src/RequestGroupMan.cc
  3748. * src/RequestGroupMan.h
  3749. * src/prefs.cc
  3750. * src/prefs.h
  3751. * src/usage_text.h
  3752. * test/DefaultBtMessageDispatcherTest.cc
  3753. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3754. Documented select-file option in Input File section.
  3755. Documented --http-auth-challenge option.
  3756. * doc/aria2c.1.txt
  3757. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3758. Now select-file can be specified in the uri list(-i list).
  3759. * src/BtContext.cc
  3760. * src/BtContext.h
  3761. * src/RequestGroup.cc
  3762. * src/Sequence.h
  3763. * src/download_helper.cc
  3764. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3765. Made the upper value of --max-concurrent-downloads options unlimited.
  3766. * src/OptionHandlerFactory.cc
  3767. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3768. Fixed the bug that disk writer is not created even if it shares
  3769. same piece with the preceding file if the length of previous file
  3770. is 0.
  3771. * src/MultiDiskAdaptor.cc
  3772. * test/MultiDiskAdaptorTest.cc
  3773. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3774. In BitTorrent, Open files in read-only mode for hash check. After
  3775. that, re-open file in read/write mode only when the download is
  3776. not finished.
  3777. * src/AbstractDiskWriter.cc
  3778. * src/AbstractDiskWriter.h
  3779. * src/AbstractSingleDiskAdaptor.cc
  3780. * src/AbstractSingleDiskAdaptor.h
  3781. * src/BtCheckIntegrityEntry.cc
  3782. * src/DiskAdaptor.h
  3783. * src/DiskWriter.h
  3784. * src/MultiDiskAdaptor.cc
  3785. * src/MultiDiskAdaptor.h
  3786. * src/RequestGroup.cc
  3787. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3788. Added --http-auth-challenge option. If it is set to true(by
  3789. default), aria2 sends HTTP authorization header only when it is
  3790. requested by the server. If false is set, then authorization
  3791. header is always sent to the server. This is useful for servers
  3792. that don't respond 401 code when authentication is required.
  3793. There is an exception: if username and password are embedded in
  3794. URI, authorization header is always sent to the server regardless
  3795. of this option.
  3796. * src/AuthConfigFactory.cc
  3797. * src/HttpSkipResponseCommand.cc
  3798. * src/OptionHandlerFactory.cc
  3799. * src/prefs.cc
  3800. * src/prefs.h
  3801. * src/usage_text.h
  3802. * test/AuthConfigFactoryTest.cc
  3803. * test/HttpRequestTest.cc
  3804. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3805. * Release 1.2.0
  3806. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3807. Updated Spanish, Ukrainian, Russian and Japanese translations.
  3808. Thanks to all translators.
  3809. * po/es.po
  3810. * po/ja.po
  3811. * po/ru.po
  3812. * po/uk.po
  3813. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3814. Call deleteSocketForReadCheck() before socket is closed.
  3815. * src/HttpListenCommand.cc
  3816. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3817. Defined virtual destructor for BObject.
  3818. * src/bencode.h
  3819. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3820. Rewritten BDE to make it efficient.
  3821. * src/bencode.cc
  3822. * src/bencode.h
  3823. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3824. Removed function throw list.
  3825. * src/bencode.cc
  3826. * src/bencode.h
  3827. * test/BencodeTest.cc
  3828. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3829. Enclosed all URLs in double quotes in command-line examples.
  3830. * doc/aria2c.1.txt
  3831. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3832. Updated reference/see also section.
  3833. * README
  3834. * doc/aria2c.1.txt
  3835. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3836. Reorganized man page based on man man-pages.
  3837. * doc/aria2c.1.txt
  3838. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3839. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  3840. because same documents are available in man page. Added
  3841. References section.
  3842. * README
  3843. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3844. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  3845. PERFORMANCE PROFILE section.
  3846. * doc/aria2c.1.txt
  3847. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3848. Rewritten the section for configuration file.
  3849. * README
  3850. * doc/aria2c.1.txt
  3851. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3852. Fixed the segmentation fault during execution of choking algorithm
  3853. in leecher state because of broken compare operator
  3854. implementation.
  3855. * src/BtLeecherStateChoke.cc
  3856. * src/BtLeecherStateChoke.h
  3857. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3858. Open file in binary mode.
  3859. * src/CookieStorage.cc
  3860. * src/DHTSetup.cc
  3861. * src/DHTUtil.cc
  3862. * src/Netrc.cc
  3863. * src/NsCookieParser.cc
  3864. * src/ProtocolDetector.cc
  3865. * src/RequestGroupMan.cc
  3866. * src/Signature.cc
  3867. * src/bencode.cc
  3868. * src/download_helper.cc
  3869. * src/option_processing.cc
  3870. * test/CookieParserTest.cc
  3871. * test/DefaultBtProgressInfoFileTest.cc
  3872. * test/FileTest.cc
  3873. * test/GZipDecoderTest.cc
  3874. * test/RequestGroupManTest.cc
  3875. * test/SignatureTest.cc
  3876. * test/SingleFileAllocationIteratorTest.cc
  3877. * test/UriListParserTest.cc
  3878. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3879. Removed operator[] because it is ambiguous with built-in []
  3880. operator.
  3881. * src/array_fun.h
  3882. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3883. Fixed compile error
  3884. * src/OptionParser.cc
  3885. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3886. Added missing call to arrayWrapperConst
  3887. * test/array_funTest.cc
  3888. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3889. Use array_wrapper instead of array_ptr.
  3890. * src/DHTRoutingTableDeserializer.cc
  3891. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3892. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  3893. * src/array_fun.h
  3894. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3895. Added array_wrapper template.
  3896. * src/array_fun.h
  3897. * test/array_funTest.cc
  3898. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3899. Use operator T* of array_ptr.
  3900. * src/OptionParser.cc
  3901. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3902. Use localhost instead of 127.0.0.1
  3903. * test/FtpConnectionTest.cc
  3904. * test/MSEHandshakeTest.cc
  3905. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3906. Added operator T*
  3907. * src/array_fun.h
  3908. * test/array_funTest.cc
  3909. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3910. Use dynamically allocated char array to detect memory access
  3911. violation.
  3912. * src/DHTRoutingTableDeserializer.cc
  3913. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3914. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  3915. defined.
  3916. * src/PeerMessageUtil.cc
  3917. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3918. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  3919. * configure.ac
  3920. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3921. Added a check to see struct sockaddr_in has sin_len member.
  3922. * configure.ac
  3923. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3924. Fixed buffer overrun.
  3925. * src/DHTRoutingTableDeserializer.cc
  3926. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3927. Added LL for long long int constant.
  3928. * test/FtpConnectionTest.cc
  3929. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3930. Casted to unsigned int to suppress compiler warning on netbsd.
  3931. * src/BtRuntime.h
  3932. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3933. Assign the value of tv.tv_sec to time_t timesec instead of giving
  3934. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  3935. type time_t.
  3936. * src/SimpleLogger.cc
  3937. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3938. Added test for FtpConnection::receiveSizeResponse().
  3939. * test/FtpConnectionTest.cc
  3940. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3941. Fix epoll error on the old kernel 2.6.8 or ealier.
  3942. * src/EpollEventPoll.cc
  3943. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3944. Use Util::parseLLInt instead of sscanf for portability. The
  3945. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  3946. * src/FtpConnection.cc
  3947. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3948. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  3949. block. It should not filter anything.
  3950. * src/BitfieldMan.cc
  3951. * src/ConsoleStatCalc.cc
  3952. * test/BitfieldManTest.cc
  3953. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3954. Fixed the bug that the boolean options that don't take arguments
  3955. don't work.
  3956. * src/OptionHandlerImpl.h
  3957. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3958. Fixed broken selected file BitTorrent download.
  3959. * src/MultiDiskAdaptor.cc
  3960. * test/MultiDiskAdaptorTest.cc
  3961. * test/MultiFileAllocationIteratorTest.cc
  3962. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3963. Fixed #define guard for EpollEventPoll
  3964. * src/EpollEventPoll.h
  3965. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3966. Wait 2 seconds. 1 second is sometimes not enough.
  3967. * test/TimeSeedCriteriaTest.cc
  3968. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3969. Use localhost instead of 127.0.0.1.
  3970. * test/DHTConnectionImplTest.cc
  3971. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3972. Suppressed compiler warning.
  3973. * src/AdaptiveURISelector.cc
  3974. * src/DefaultPieceStorage.cc
  3975. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3976. Defined virtual destructor.
  3977. * src/MetalinkParserState.h
  3978. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3979. Give NULL for second argument of getaddrinfo instead of "0".
  3980. * src/NameResolver.cc
  3981. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3982. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  3983. included strptime doesn't parse data for this format.
  3984. * src/FtpConnection.cc
  3985. * test/FtpConnectionTest.cc
  3986. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3987. Removed tests giving -1 for unsigned argument.
  3988. * test/SingleFileDownloadContextTest.cc
  3989. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3990. Don't use sha256 in tests because it might not be supported by the
  3991. SSL library.
  3992. * test/MetalinkProcessorTest.cc
  3993. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3994. Removed tests giving -1 for unsigned argument.
  3995. * test/AlphaNumberDecoratorTest
  3996. * test/BitfieldManTest.cc
  3997. * test/DefaultBtContextTest.cc
  3998. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3999. Fixed compile error without libcares when epoll is available.
  4000. * src/EpollEventPoll.cc
  4001. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4002. Included fstream instead of iostream.
  4003. * test/SignatureTest.cc
  4004. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4005. Removed #include <algorithm>
  4006. * test/RequestGroupTest.cc
  4007. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4008. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  4009. using RequestGroup::extractURIResult().
  4010. * src/AdaptiveURISelector.cc
  4011. * src/RequestGroup.cc
  4012. * src/RequestGroup.h
  4013. * test/RequestGroupTest.cc
  4014. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4015. Added tests for array_ptr.
  4016. * test/array_funTest.cc
  4017. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4018. Don't send ip parameter to a tracker if ip parameter is empty
  4019. string.
  4020. * src/DefaultBtAnnounce.cc
  4021. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4022. Adjusted line feed.
  4023. * src/version_usage.cc
  4024. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4025. Print tags, possible values when OptionHandlerException is caught.
  4026. * src/option_processing.cc
  4027. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4028. Changed the message for FatalException.
  4029. * src/OptionParser.cc
  4030. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4031. Documented --bt-external-ip option in man page. Updated man pages
  4032. for --proxy-method option.
  4033. * doc/aria2c.1.txt
  4034. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4035. Use GET method for FTP via HTTP proxy.
  4036. * src/FtpInitiateConnectionCommand.cc
  4037. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4038. Changed the default value of --proxy-method option from 'tunnel'
  4039. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  4040. option.
  4041. * src/AbstractCommand.cc
  4042. * src/AbstractCommand.h
  4043. * src/FtpInitiateConnectionCommand.cc
  4044. * src/HttpDownloadCommand.cc
  4045. * src/HttpInitiateConnectionCommand.cc
  4046. * src/HttpInitiateConnectionCommand.h
  4047. * src/OptionHandlerFactory.cc
  4048. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4049. Initialized _logger
  4050. * src/SelectEventPoll.cc
  4051. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4052. Defined a copy constructor for the same type.
  4053. * src/SharedHandle.h
  4054. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4055. Added OptionParser::parseArg() which internally uses getopt_long
  4056. to parse command-line options. All command-line options are now
  4057. configured by OptionHandler. No manual editing of struct option*
  4058. is required any more.
  4059. * src/NameMatchOptionHandler.h
  4060. * src/OptionHandler.h
  4061. * src/OptionHandlerFactory.cc
  4062. * src/OptionHandlerImpl.h
  4063. * src/OptionParser.cc
  4064. * src/OptionParser.h
  4065. * src/array_fun.h
  4066. * src/main.cc
  4067. * src/option_processing.cc
  4068. * test/OptionHandlerTest.cc
  4069. * test/OptionParserTest.cc
  4070. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4071. Fixed configure error with --disable-epoll
  4072. * configure.ac
  4073. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4074. Fixed compile error when HAVE_EPOLL is not defined.
  4075. Fixed linker error on bigendian systems.
  4076. * src/SocketCore.cc
  4077. * src/SocketCore.h
  4078. * test/DefaultBtProgressInfoFileTest.cc
  4079. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4080. Added --bt-external-ip option. You can specify the external IP
  4081. address to report to a BitTorrent tracker. Although this function
  4082. is named 'external', it can accept any kind of IP addresses.
  4083. * src/DefaultBtAnnounce.cc
  4084. * src/OptionHandlerFactory.cc
  4085. * src/option_processing.cc
  4086. * src/prefs.cc
  4087. * src/prefs.h
  4088. * src/usage_text.h
  4089. * test/DefaultBtAnnounceTest.cc
  4090. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4091. Extracted the algorithm to find the longest incremental sequence
  4092. as max_sequence template.
  4093. * src/LongestSequencePieceSelector.cc
  4094. * src/a2algo.h
  4095. * test/Makefile.am
  4096. * test/a2algoTest.cc
  4097. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4098. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  4099. * src/usage_text.h
  4100. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4101. Updated doc for --uri-selector, --http-server-listen-port and
  4102. --enable-http-server option. Documented --event-poll option.
  4103. * doc/aria2c.1.txt
  4104. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4105. Updated doc for --enable-http-server.
  4106. * src/usage_text.h
  4107. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4108. Documented --http-server-listen-port and --enable-http-server in
  4109. man page.
  4110. * doc/aria2c.1.txt
  4111. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4112. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  4113. translations. Thanks to all translators.
  4114. * po/es.po
  4115. * po/id.po
  4116. * po/it.po
  4117. * po/ru.po
  4118. * po/uk.po
  4119. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4120. Bump up version number to 1.2.0
  4121. * configure.ac
  4122. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4123. BtContext::getAnnounceTiers() now returns const reference.
  4124. * src/BtContext.h
  4125. * src/DefaultBtContext.cc
  4126. * src/DefaultBtContext.h
  4127. * test/MockBtContext.h
  4128. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4129. Change the number of retries for tracker request based on the
  4130. number of available tracker in a torrent file.
  4131. * src/TrackerWatcherCommand.cc
  4132. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4133. Added _maxTries property to RequestGroup and assign the option
  4134. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  4135. RequestGroup::getMaxTries() instead of
  4136. Option::getAsInt(PREF_MAX_TRIES).
  4137. * src/AbstractCommand.cc
  4138. * src/RequestGroup.cc
  4139. * src/RequestGroup.h
  4140. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4141. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  4142. Mandriva. I modified the patch: make RequestGroup have the
  4143. timeout value and AdaptiveURISelector directly modifies that
  4144. value.
  4145. * src/AbstractCommand.cc
  4146. * src/AdaptiveURISelector.cc
  4147. * src/AdaptiveURISelector.h
  4148. * src/FtpNegotiationCommand.cc
  4149. * src/RequestGroup.cc
  4150. * src/RequestGroup.h
  4151. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4152. Fixed compiler warning
  4153. * test/IteratableChecksumValidatorTest.cc
  4154. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4155. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  4156. integrated downloads. This PieceSelector subclass finds the
  4157. longest continuous sequence in the available missing pieces and
  4158. selects the last index of such sequence. This makes HTTP/FTP
  4159. connections less interrupted by the pieces obtained by BitTorrent
  4160. peers.
  4161. * src/DefaultPieceStorage.cc
  4162. * src/DefaultPieceStorage.h
  4163. * src/LongestSequencePieceSelector.cc
  4164. * src/LongestSequencePieceSelector.h
  4165. * src/Makefile.am
  4166. * src/PieceSelector.h
  4167. * src/RarestPieceSelector.h
  4168. * src/RequestGroup.cc
  4169. * test/BtDependencyTest.cc
  4170. * test/DefaultPieceStorageTest.cc
  4171. * test/IteratableChecksumValidatorTest.cc
  4172. * test/LongestSequencePieceSelectorTest.cc
  4173. * test/Makefile.am
  4174. * test/SegmentManTest.cc
  4175. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4176. Fixed the bug that the average speed is wrong in
  4177. http/ftp/BitTorrent integrated download. Only the download bytes
  4178. in BitTorrent were considered.
  4179. * src/RequestGroup.cc
  4180. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4181. Choose port for BitTorrent/DHT randomly from the specified range.
  4182. * src/DHTConnectionImpl.cc
  4183. * src/PeerListenCommand.cc
  4184. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4185. Send HTTP Authorization header only if it is requested by the
  4186. server(response 401). There are some exceptions. The authorization
  4187. header for proxy is always sent if it is available without request
  4188. by the server. If username/password is specified in the URI, it
  4189. is immediately sent to the server without request by the server.
  4190. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  4191. SharedHandle<AuthConfig>().
  4192. NetrcAuthResolver::resolveAuthConfig() returns
  4193. SharedHandle<AuthConfig>() if no AuthConfig is available.
  4194. * src/AbstractAuthResolver.cc
  4195. * src/AbstractProxyRequestCommand.cc
  4196. * src/AuthConfigFactory.cc
  4197. * src/AuthConfigFactory.h
  4198. * src/HttpConnection.cc
  4199. * src/HttpRequest.cc
  4200. * src/HttpRequest.h
  4201. * src/HttpResponse.cc
  4202. * src/HttpResponseCommand.cc
  4203. * src/HttpSkipResponseCommand.cc
  4204. * test/AuthConfigFactoryTest.cc
  4205. * test/HttpRequestTest.cc
  4206. * test/HttpResponseTest.cc
  4207. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4208. Remove leading "--" from help keyword and a substring after "="
  4209. from help keyword, so that one can query options by '-h--max-' or
  4210. '-hmax-peers=10'.
  4211. * src/option_processing.cc
  4212. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4213. Rewritten PStringVisitor and its implementation.
  4214. * src/PStringBuildVisitor.cc
  4215. * src/PStringBuildVisitor.h
  4216. * src/PStringDatum.h
  4217. * src/PStringNumLoop.h
  4218. * src/PStringSegment.cc
  4219. * src/PStringSegment.h
  4220. * src/PStringSelect.h
  4221. * src/PStringVisitor.h
  4222. * src/download_helper.cc
  4223. * test/PStringBuildVisitorTest.cc
  4224. * test/ParameterizedStringParserTest.cc
  4225. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4226. Persist connection between the built-in HTTP server and a client
  4227. if a client supports keep-alive. Fixed the bug that aria2 exits
  4228. when the HTTP server receives EOF from a client.
  4229. * src/HttpServer.cc
  4230. * src/HttpServer.h
  4231. * src/HttpServerCommand.cc
  4232. * src/HttpServerCommand.h
  4233. * src/HttpServerResponseCommand.cc
  4234. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4235. Added experimental built-in HTTP server. Currently, when a client
  4236. accesses to the server, it responds with the current download
  4237. progress. By default, it is disabled. To enable the server, give
  4238. --enable-http-server option. To change the default port number
  4239. for the server to listen to, use --http-server-listen-port option.
  4240. The response HTML is very simple and refreshes it self each 1
  4241. second. Because of this refresh, you see flicker in normal web
  4242. browser such as Firefox. I recommend to use console-based browser
  4243. such as elinks, w3m. To connect to the server, run 'elinks
  4244. http://localhost:6800/' while running aria2. Please replace port
  4245. number '6800'(which is default) with your preference.
  4246. * src/DownloadEngineFactory.cc
  4247. * src/HttpHeader.cc
  4248. * src/HttpHeader.h
  4249. * src/HttpHeaderProcessor.cc
  4250. * src/HttpHeaderProcessor.h
  4251. * src/HttpListenCommand.cc
  4252. * src/HttpListenCommand.h
  4253. * src/HttpServer.cc
  4254. * src/HttpServer.h
  4255. * src/HttpServerCommand.cc
  4256. * src/HttpServerCommand.h
  4257. * src/HttpServerResponseCommand.cc
  4258. * src/HttpServerResponseCommand.h
  4259. * src/Makefile.am
  4260. * src/OptionHandlerFactory.cc
  4261. * src/Util.cc
  4262. * src/Util.h
  4263. * src/help_tags.h
  4264. * src/option_processing.cc
  4265. * src/prefs.cc
  4266. * src/prefs.h
  4267. * src/usage_text.h
  4268. * test/HttpHeaderProcessorTest.cc
  4269. * test/UtilTest.cc
  4270. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4271. Removed.
  4272. * src/CheckIntegrityMan.cc
  4273. * src/FileAllocationMan.cc
  4274. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4275. Made (piece) hash check sequential for each RequestGroup because
  4276. simultaneous hash check is slower than sequential execution.
  4277. * src/CheckIntegrityCommand.cc
  4278. * src/CheckIntegrityDispatcherCommand.cc
  4279. * src/CheckIntegrityDispatcherCommand.h
  4280. * src/CheckIntegrityMan.h
  4281. * src/ConsoleStatCalc.cc
  4282. * src/DownloadCommand.cc
  4283. * src/DownloadEngine.cc
  4284. * src/DownloadEngine.h
  4285. * src/DownloadEngineFactory.cc
  4286. * src/Makefile.am
  4287. * src/Makefile.in
  4288. * src/RequestGroup.cc
  4289. * src/StatCalc.h
  4290. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4291. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  4292. SequentialDispatcherCommand.
  4293. * src/FileAllocationDispatcherCommand.cc
  4294. * src/SequentialDispatcherCommand.h
  4295. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4296. Rewritten FileAllocationDispatcherCommand using brand new
  4297. SequentialDispatcherCommand.
  4298. * src/DownloadEngineFactory.cc
  4299. * src/FileAllocationCommand.cc
  4300. * src/FileAllocationDispatcherCommand.cc
  4301. * src/FileAllocationDispatcherCommand.h
  4302. * src/Makefile.am
  4303. * src/SequentialDispatcherCommand.h
  4304. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4305. Replaced FileAllocationMan with
  4306. SequentialPicker<FileAllocationEntry>.
  4307. * src/BtCheckIntegrityEntry.cc
  4308. * src/ConsoleStatCalc.cc
  4309. * src/DownloadEngine.cc
  4310. * src/DownloadEngine.h
  4311. * src/DownloadEngineFactory.cc
  4312. * src/FileAllocationCommand.cc
  4313. * src/FileAllocationDispatcherCommand.cc
  4314. * src/FileAllocationMan.h
  4315. * src/Makefile.am
  4316. * src/SequentialPicker.h
  4317. * src/StatCalc.h
  4318. * src/StreamCheckIntegrityEntry.cc
  4319. * test/Makefile.am
  4320. * test/SequentialPickerTest.cc
  4321. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4322. Added doc for adaptive URI selector.
  4323. * doc/aria2c.1.txt
  4324. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4325. Added doc for adaptive URI selector.
  4326. * src/usage_text.h
  4327. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4328. Added doc for --bt-max-peers option.
  4329. * doc/aria2c.1.txt
  4330. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4331. Added doc for --bt-hash-check-seed option.
  4332. * doc/aria2c.1.txt
  4333. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4334. Documented exit codes.
  4335. * doc/aria2c.1.txt
  4336. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4337. Added --bt-max-peers option to specify the maximum number of peers
  4338. per torrent. 0 means unlimited number of peers.
  4339. * src/ActivePeerConnectionCommand.cc
  4340. * src/BtRuntime.h
  4341. * src/DefaultPeerStorage.cc
  4342. * src/DefaultPeerStorage.h
  4343. * src/OptionHandlerFactory.cc
  4344. * src/RequestGroup.cc
  4345. * src/option_processing.cc
  4346. * src/prefs.cc
  4347. * src/prefs.h
  4348. * src/usage_text.h
  4349. * test/DefaultPeerStorageTest.cc
  4350. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4351. Added --bt-hash-check-seed option. If true is given to this
  4352. option, after hash check using --check-integrity option and file
  4353. is complete, continue to seed file. If you want to check file and
  4354. download it only when it is damaged or incomplete, set this option
  4355. to false. This option has effect only on BitTorrent download.
  4356. The default value is true(This is the same behavior with the
  4357. previous release).
  4358. * src/BtCheckIntegrityEntry.cc
  4359. * src/OptionHandlerFactory.cc
  4360. * src/option_processing.cc
  4361. * src/prefs.cc
  4362. * src/prefs.h
  4363. * src/usage_text.h
  4364. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4365. Updated copyright year.
  4366. * src/version_usage.cc
  4367. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4368. Rewritten the usage text for --bt-request-peer-speed-limit option.
  4369. * doc/aria2c.1.txt
  4370. * src/usage_text.h
  4371. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4372. Made the max value of split option unlimited.
  4373. * doc/aria2c.1.txt
  4374. * src/OptionHandlerFactory.cc
  4375. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4376. Fixed compile warning/error.
  4377. * src/DownloadResult.h
  4378. * src/HttpDownloadCommand.cc
  4379. * src/ServerStat.cc
  4380. * test/RequestGroupTest.cc
  4381. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4382. Added --event-poll option to select the method for polling events.
  4383. The available methods are "select" and "epoll". "epoll" is
  4384. available on Linux only. The earlier release has the compile
  4385. option to choose from these methods.
  4386. * configure.ac
  4387. * src/RequestGroupMan.cc
  4388. * src/OptionHandlerFactory.cc
  4389. * src/EpollEventPoll.h
  4390. * src/StreamFileAllocationEntry.cc
  4391. * src/a2io.h
  4392. * src/SelectEventPoll.h
  4393. * src/option_processing.cc
  4394. * src/prefs.h
  4395. * src/EpollEventPoll.cc
  4396. * src/EventPoll.h
  4397. * src/SocketCore.h
  4398. * src/Makefile.am
  4399. * src/main.cc
  4400. * src/DownloadEngine.h
  4401. * src/SelectEventPoll.cc
  4402. * src/DownloadEngine.cc
  4403. * src/SocketCore.cc
  4404. * src/DownloadEngineFactory.cc
  4405. * src/Makefile.in
  4406. * src/prefs.cc
  4407. * src/usage_text.h
  4408. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4409. Included RecoverableException.h from main.cc
  4410. * src/main.cc
  4411. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4412. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  4413. now returns last error encountered in the HTTP/FTP downloads as a
  4414. exit status value. If all downloads finished successfully, aria2
  4415. returns 0. The error code is defined in src/DownloadResult.h.
  4416. The error occurred in the download currently in progress is not
  4417. reported as a last error. If no error has encountered but there
  4418. are in progress or waiting downloads, aria2 returns 7.
  4419. * src/AbstractCommand.cc
  4420. * src/DlAbortEx.h
  4421. * src/DlRetryEx.h
  4422. * src/DownloadCommand.cc
  4423. * src/DownloadFailureException.h
  4424. * src/DownloadResult.h
  4425. * src/FtpNegotiationCommand.cc
  4426. * src/HttpSkipResponseCommand.cc
  4427. * src/Makefile.am
  4428. * src/MultiUrlRequestInfo.cc
  4429. * src/MultiUrlRequestInfo.h
  4430. * src/RecoverableException.h
  4431. * src/RequestGroup.cc
  4432. * src/RequestGroup.h
  4433. * src/RequestGroupMan.cc
  4434. * src/RequestGroupMan.h
  4435. * src/URIResult.cc
  4436. * src/URIResult.h
  4437. * src/main.cc
  4438. * src/option_processing.cc
  4439. * test/RequestGroupTest.cc
  4440. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4441. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  4442. patch adds AdaptiveURISelector, which selects one of the bests
  4443. mirrors for first and reserved connections. For supplementary
  4444. ones, it returns mirrors which has not been tested yet, and if
  4445. each of them already tested, returns mirrors which has to be
  4446. tested again. Otherwise, it doesn't return anymore mirrors.
  4447. * src/AdaptiveURISelector.cc
  4448. * src/AdaptiveURISelector.h
  4449. * src/FtpNegotiationCommand.cc
  4450. * src/HttpResponseCommand.cc
  4451. * src/Makefile.am
  4452. * src/Makefile.in
  4453. * src/OptionHandlerFactory.cc
  4454. * src/RequestGroup.cc
  4455. * src/RequestGroup.h
  4456. * src/RequestGroupMan.cc
  4457. * src/ServerStat.cc
  4458. * src/ServerStat.h
  4459. * src/ServerStatMan.cc
  4460. * src/SpeedCalc.cc
  4461. * src/URISelector.h
  4462. * src/prefs.cc
  4463. * src/prefs.h
  4464. * test/RequestGroupManTest.cc
  4465. * test/ServerStatManTest.cc
  4466. * test/ServerStatTest.cc
  4467. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4468. Fixed unit test error.
  4469. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  4470. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4471. * Release 1.1.2
  4472. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4473. Updated Russian translation. Thanks to the translators.
  4474. * po/ru.po
  4475. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4476. Added the description of --use-head option to man page.
  4477. * doc/aria2c.1.txt
  4478. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4479. Bump up version number to 1.1.2
  4480. * configure.ac
  4481. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4482. Added --use-head option to toggle whether HEAD method should be
  4483. used in the first HTTP request. By default aria2 uses HEAD method
  4484. as the first request. When the server doesn't recognize HEAD, then
  4485. give aria2 --use-head=false to force aria2 to use GET method
  4486. instead.
  4487. * src/OptionHandlerFactory.cc
  4488. * src/RequestGroupMan.cc
  4489. * src/option_processing.cc
  4490. * src/prefs.cc
  4491. * src/prefs.h
  4492. * src/usage_text.h
  4493. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4494. Fixed the bug that BitTorrent download doesn't finish when REJECT
  4495. message is received before CHOKE message. The old implementation
  4496. doen't clear the use-bit of the piece when recieved REJECT
  4497. message.
  4498. * src/DefaultBtMessageDispatcher.cc
  4499. * test/DefaultBtMessageDispatcherTest.cc
  4500. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4501. * Release 1.1.1
  4502. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4503. Bump up version number to 1.1.1.
  4504. * configure.ac
  4505. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4506. Fixed the bug that --summary-interval=0 doesn't work. The summary
  4507. is printed repeatedly.
  4508. * src/ConsoleStatCalc.cc
  4509. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4510. * Release 1.1.0
  4511. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4512. Added ifdef clause for conditional compilation.
  4513. * src/main.cc
  4514. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4515. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  4516. translations. Thanks to all translators.
  4517. * po/ja.po
  4518. * po/ru.po
  4519. * po/uk.po
  4520. * po/zh_CN.po
  4521. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4522. Added the preceding ">>> " before the message "Printing the
  4523. contents of file..." to make the output more readable.
  4524. * src/main.cc
  4525. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4526. Added try-catch block in the loop in showFiles() to continue the
  4527. operation even if the exception occurred in one file.
  4528. * src/main.cc (showFiles)
  4529. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4530. Made messages in showFiles() translatable.
  4531. * po/aria2.pot
  4532. * src/main.cc
  4533. * src/message.h
  4534. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4535. Print the contents of Torrent/Metalink files are printed without
  4536. -T/-M options.
  4537. * src/main.cc
  4538. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4539. Escaped '--' with '\--'
  4540. * README
  4541. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4542. Updated "How to build" section in README. Mentioned about
  4543. --with-ca-bundle compile option.
  4544. * README
  4545. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4546. Bump up version number to 1.1.0.
  4547. * configure.ac
  4548. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4549. Added a note for --dht-listen-port option.
  4550. * doc/aria2c.1.txt
  4551. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4552. Update doc for --realtime-chunk-checksum option.
  4553. * doc/aria2c.1.txt
  4554. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4555. Update doc for --realtime-chunk-checksum option.
  4556. * src/usage_text.h
  4557. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4558. Updated French, Japanese, Russian and Ukrainian translations.
  4559. Thanks to all translators.
  4560. * po/fr.po
  4561. * po/ja.po
  4562. * po/ru.po
  4563. * po/uk.po
  4564. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4565. Renamed aria2c.pot to aria2.pot
  4566. * po/aria2.pot
  4567. * po/aria2c.pot: Removed.
  4568. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4569. Removed MetaEntry.h
  4570. * src/Makefile.am
  4571. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4572. Rename file by appending digits if a local file exists and its
  4573. file size is larger than that of remote file with --continue
  4574. option. The old implementation just throws exception in such case.
  4575. * src/RequestGroup.cc
  4576. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4577. Fixed the bug that download progress summary is not printed in the
  4578. interval specified by the option.
  4579. * src/ConsoleStatCalc.cc
  4580. * src/ConsoleStatCalc.h
  4581. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4582. Fixed compiler warning
  4583. * src/Cookie.cc
  4584. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4585. Fixed the cookie implementation based on RFC2965.
  4586. Now if a value in domain field is not started with dot, then
  4587. prepend dot. That means a cookie with domain=sf.net is sent to
  4588. wiki.sf.net.
  4589. * src/Cookie.cc
  4590. * test/CookieParserTest.cc
  4591. * test/CookieStorageTest.cc
  4592. * test/CookieTest.cc
  4593. * test/NsCookieParserTest.cc
  4594. * test/Sqlite3MozCookieParserTest.cc
  4595. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4596. Fixed the bug that causes corrupted downloads if HTTP pipelining
  4597. is enabled and the server doesn't support keep-alive.
  4598. * src/AbstractCommand.cc
  4599. * src/DownloadCommand.cc
  4600. * src/HttpDownloadCommand.cc
  4601. * src/HttpDownloadCommand.h
  4602. * src/HttpResponseCommand.cc
  4603. * src/Request.cc
  4604. * src/Request.h
  4605. * test/RequestTest.cc
  4606. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4607. Removed Dictionary/List/Data and its related classes.
  4608. * src/BencodeVisitor.cc: Removed.
  4609. * src/BencodeVisitor.h: Removed.
  4610. * src/Data.cc: Removed.
  4611. * src/Data.h: Removed.
  4612. * src/Dictionary.cc: Removed.
  4613. * src/Dictionary.h: Removed.
  4614. * src/List.cc: Removed.
  4615. * src/List.h: Removed.
  4616. * src/Makefile.am
  4617. * src/MetaEntry.h: Removed.
  4618. * src/MetaEntryVisitor.h: Removed.
  4619. * src/MetaFileUtil.cc: Removed.
  4620. * src/MetaFileUtil.h: Removed.
  4621. * test/BencodeVisitorTest.cc: Removed.
  4622. * test/DataTest.cc: Removed.
  4623. * test/DictionaryTest.cc: Removed.
  4624. * test/ListTest.cc: Removed.
  4625. * test/Makefile.am
  4626. * test/MetaFileUtilTest.cc: Removed.
  4627. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4628. Removed include of MetaEntry.h
  4629. * test/DHTMessageTrackerEntryTest.cc
  4630. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4631. Use BDE instead of Dictionary/List/Data.
  4632. * src/AnnounceList.cc
  4633. * src/AnnounceList.h
  4634. * test/AnnounceListTest.cc
  4635. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4636. Use BDE instead of Dictionary/List/Data.
  4637. * src/DHTAbstractMessage.cc
  4638. * src/DHTAbstractMessage.h
  4639. * src/DHTAnnouncePeerMessage.cc
  4640. * src/DHTAnnouncePeerMessage.h
  4641. * src/DHTAnnouncePeerReplyMessage.cc
  4642. * src/DHTAnnouncePeerReplyMessage.h
  4643. * src/DHTFindNodeMessage.cc
  4644. * src/DHTFindNodeMessage.h
  4645. * src/DHTFindNodeReplyMessage.cc
  4646. * src/DHTFindNodeReplyMessage.h
  4647. * src/DHTGetPeersMessage.cc
  4648. * src/DHTGetPeersMessage.h
  4649. * src/DHTGetPeersReplyMessage.cc
  4650. * src/DHTGetPeersReplyMessage.h
  4651. * src/DHTMessageFactory.h
  4652. * src/DHTMessageFactoryImpl.cc
  4653. * src/DHTMessageFactoryImpl.h
  4654. * src/DHTMessageReceiver.cc
  4655. * src/DHTMessageTracker.cc
  4656. * src/DHTMessageTracker.h
  4657. * src/DHTPingMessage.cc
  4658. * src/DHTPingMessage.h
  4659. * src/DHTPingReplyMessage.cc
  4660. * src/DHTPingReplyMessage.h
  4661. * src/DHTQueryMessage.cc
  4662. * src/DHTQueryMessage.h
  4663. * src/DHTResponseMessage.cc
  4664. * src/DHTResponseMessage.h
  4665. * test/DHTAnnouncePeerMessageTest.cc
  4666. * test/DHTAnnouncePeerReplyMessageTest.cc
  4667. * test/DHTFindNodeMessageTest.cc
  4668. * test/DHTFindNodeReplyMessageTest.cc
  4669. * test/DHTGetPeersMessageTest.cc
  4670. * test/DHTGetPeersReplyMessageTest.cc
  4671. * test/DHTMessageFactoryImplTest.cc
  4672. * test/DHTMessageTrackerTest.cc
  4673. * test/DHTPingMessageTest.cc
  4674. * test/DHTPingReplyMessageTest.cc
  4675. * test/MockDHTMessageFactory.h
  4676. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4677. Added tests the case where length < 0 is specified.
  4678. * test/BencodeTest.cc
  4679. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4680. Fixed memory leak in decoderawstring()
  4681. * src/bencode.cc
  4682. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4683. Added missing #ifdef guard. Added uc() function for String and
  4684. removeKey() for Dict.
  4685. * src/bencode.cc
  4686. * src/bencode.h
  4687. * test/BencodeTest.cc
  4688. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4689. Use BDE instead of Dictionary/List/Data.
  4690. * src/HandshakeExtensionMessage.cc
  4691. * src/HandshakeExtensionMessage.h
  4692. * test/HandshakeExtensionMessageTest.cc
  4693. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4694. Added --max-overall-upload-limit option. This option limits the
  4695. overall upload speed. Stated in help message that the existing
  4696. --max-upload-limit option limits the upload speed per each
  4697. torrent. Man page is also updated.
  4698. * doc/aria2c.1.txt
  4699. * src/DefaultBtMessageDispatcher.cc
  4700. * src/DefaultBtMessageDispatcher.h
  4701. * src/OptionHandlerFactory.cc
  4702. * src/PeerInteractionCommand.cc
  4703. * src/option_processing.cc
  4704. * src/prefs.cc
  4705. * src/prefs.h
  4706. * src/usage_text.h
  4707. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4708. Use BDE instead of Dictionary/List/Data classes.
  4709. * src/CompactPeerListProcessor.cc
  4710. * src/CompactPeerListProcessor.h
  4711. * src/DefaultBtAnnounce.cc
  4712. * src/DefaultBtContext.cc
  4713. * src/DefaultBtContext.h
  4714. * src/DefaultPeerListProcessor.cc
  4715. * src/DefaultPeerListProcessor.h
  4716. * src/DelegatingPeerListProcessor.cc
  4717. * src/DelegatingPeerListProcessor.h
  4718. * src/PeerListProcessor.h
  4719. * src/UTPexExtensionMessage.cc
  4720. * src/Util.h
  4721. * src/message.h
  4722. * test/DefaultBtContextTest.cc
  4723. * test/DefaultPeerListProcessorTest.cc
  4724. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4725. Added bencode helper functions and BDE class.
  4726. They will replace MetaFileUtil and Dictionary/List/Data classes.
  4727. * src/Makefile.am
  4728. * src/bencode.cc
  4729. * src/bencode.h
  4730. * test/BencodeTest.cc
  4731. * test/Makefile.am
  4732. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4733. Fixed the bug that bad URI is sent to the tracker when the announe
  4734. URI in torrent file includes query.
  4735. * src/DefaultBtAnnounce.cc
  4736. * test/DefaultBtAnnounceTest.cc
  4737. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4738. Added Option::blank().
  4739. Use !Option::blank(name) instead of Option::defined(name) for
  4740. the options that take filename.
  4741. * src/MultiUrlRequestInfo.cc
  4742. * src/Option.cc
  4743. * src/Option.h
  4744. * src/main.cc
  4745. * src/option_processing.cc
  4746. * test/OptionTest.cc
  4747. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4748. Documented the default value of --check-certificate option in man
  4749. page.
  4750. * doc/aria2c.1.txt
  4751. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4752. Enabled --check-certificate by default. Added compile
  4753. time(configure) option --with-ca-bundle to specify CA bundle.
  4754. Warn if --check-certificate=true and --ca-certificate is not
  4755. specified or loading CA certificate is failed.
  4756. * configure.ac
  4757. * src/MultiUrlRequestInfo.cc
  4758. * src/OptionHandlerFactory.cc
  4759. * src/message.h
  4760. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4761. Mentioned https tag in help option.
  4762. * doc/aria2c.1.txt
  4763. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4764. Added `https' tag to help option category. Added https tag to
  4765. --ca-certificate, --certificate, --check-certificate and
  4766. --private-key option.
  4767. * src/OptionHandlerFactory.cc
  4768. * src/help_tags.h
  4769. * src/option_processing.cc
  4770. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4771. Changed the package name from `aria2c' to `aria2' in order to fix
  4772. the packaging issue in Debian and Fedora. The name of the
  4773. executable is not changed.
  4774. * configure.ac
  4775. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4776. Fixed typos
  4777. * src/usage_text.h
  4778. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4779. Fixed typos and updated doc.
  4780. * README
  4781. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4782. Fixed typos
  4783. * doc/aria2c.1.txt
  4784. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4785. Fixed typos
  4786. * src/usage_text.h
  4787. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4788. Print a message when no files to download.
  4789. * src/download_helper.cc
  4790. * src/main.cc
  4791. * src/message.h
  4792. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4793. RFC3986 complied Percent-Encoding(urlencode).
  4794. Use uppercase hexadecimal digits for encoded text instead of lowercase
  4795. ones.
  4796. * src/Request.cc
  4797. * src/Util.cc
  4798. * src/Util.h
  4799. * test/BtHandshakeMessageTest.cc
  4800. * test/DefaultBtAnnounceTest.cc
  4801. * test/DefaultBtContextTest.cc
  4802. * test/RequestTest.cc
  4803. * test/UtilTest.cc
  4804. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4805. Fixed the bug that prevents aria2 from downloading 0-length files
  4806. via HTTP/FTP.
  4807. * src/DefaultBtContext.cc
  4808. * src/DefaultBtContext.h
  4809. * src/DownloadContext.h
  4810. * src/FtpNegotiationCommand.cc
  4811. * src/HttpResponseCommand.cc
  4812. * src/HttpResponseCommand.h
  4813. * src/RequestGroup.cc
  4814. * src/SingleFileDownloadContext.cc
  4815. * src/SingleFileDownloadContext.h
  4816. * test/BtPostDownloadHandlerTest.cc
  4817. * test/MetalinkPostDownloadHandlerTest.cc
  4818. * test/MockBtContext.h
  4819. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4820. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  4821. * src/option_processing.cc
  4822. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4823. Applied aria2-1.0.1-mingw.patch.
  4824. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  4825. mingw.
  4826. Collected 4th and 5th argument types for getsockopt and setsockopt.
  4827. * src/SocketCore.cc
  4828. * src/a2netcompat.h
  4829. * test/SocketCoreTest.cc
  4830. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4831. * Release 1.0.1
  4832. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4833. Updated Ukrainian and Norwegian Nynorsk translations.
  4834. Thanks to all translators.
  4835. * po/nn.po
  4836. * po/uk.po
  4837. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4838. Don't show download result when -S option is used.
  4839. * src/main.cc
  4840. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4841. Bump up version number to 1.0.1
  4842. * configure.ac
  4843. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4844. Closed files after the test cases in MultiDiskWriterTest::
  4845. testResetDiskWriterEntries(). This will fix the unit test error
  4846. in mingw32 build.
  4847. * test/MultiDiskWriterTest.cc
  4848. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4849. Use HEAD method to get file size from HTTP server for segmented
  4850. downloading.
  4851. The request to the BitTorrent Tracker always uses GET method because
  4852. the response of the tracker is small and it doesn't need segmented
  4853. download.
  4854. * src/FtpNegotiationCommand.cc
  4855. * src/HttpRequest.cc
  4856. * src/HttpResponseCommand.cc
  4857. * src/HttpSkipResponseCommand.cc
  4858. * src/RequestGroup.cc
  4859. * src/RequestGroup.h
  4860. * src/TrackerWatcherCommand.cc
  4861. * test/HttpRequestTest.cc
  4862. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4863. Fixed the bug that causes floating exception when -T option is used and
  4864. no URIs are given.
  4865. * src/download_helper.cc
  4866. * test/DownloadHelperTest.cc
  4867. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  4868. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  4869. errors in MinGW:
  4870. Closed file after saving server stats (RequestGroupMan.cc)
  4871. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  4872. Ignored case & handled 2-digit years (strptime.c)
  4873. Added missing suseconds_t definition (a2time.h)
  4874. Fixed socket CLOSE() define (SocketCore.cc)
  4875. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  4876. Changed utime() test values from x000 to x00000 as MinGW failed on
  4877. values less than timezone offset from Unix epoch
  4878. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  4879. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  4880. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  4881. handle negative dates (CookieParserTest.cc)
  4882. * src/a2time.h
  4883. * src/FtpConnection.cc
  4884. * src/RequestGroupMan.cc
  4885. * src/SocketCore.cc
  4886. * src/strptime.c
  4887. * test/CookieParserTest.cc
  4888. * test/CopyDiskAdaptorTest.cc
  4889. * test/FileTest.cc
  4890. * test/FtpConnectionTest.cc
  4891. * test/MultiDiskAdaptorTest.cc
  4892. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4893. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  4894. * doc/aria2c.1.txt
  4895. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4896. * Release 1.0.0
  4897. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4898. Added '~' to reserved characters.
  4899. * src/Util.cc
  4900. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4901. Do not urlencode Request::url in setUrl() because we want unmodified
  4902. URL using Request::getUrl()
  4903. * src/Request.cc
  4904. * src/Request.h
  4905. * test/RequestTest.cc
  4906. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4907. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  4908. Thanks to all translators.
  4909. * po/bg.po
  4910. * po/fr.po
  4911. * po/ja.po
  4912. * po/ru.po
  4913. * po/uk.po
  4914. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4915. Bump up version number to 1.0.0
  4916. * configure.ac
  4917. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4918. Added nosqlite3 build to build_test.sh.
  4919. Renamed noxml as expat.
  4920. * build_test.sh
  4921. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4922. Updated INPUT FILE section.
  4923. * doc/aria2c.1.txt
  4924. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4925. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  4926. on big endian systems because test .aria2 files are made for little
  4927. endian systems.
  4928. * test/DefaultBtProgressInfoFileTest.cc
  4929. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4930. Dropped ares support.
  4931. * README
  4932. * configure.ac
  4933. * m4/libares.m4: Removed.
  4934. * src/AsyncNameResolver.cc
  4935. * src/Makefile.am
  4936. * test/Makefile.am
  4937. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4938. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  4939. Removed const qualifier from DiskWriter::size().
  4940. * src/AbstractDiskWriter.cc
  4941. * src/AbstractDiskWriter.h
  4942. * src/ByteArrayDiskWriter.cc
  4943. * src/ByteArrayDiskWriter.h
  4944. * src/DiskWriter.h
  4945. * test/ByteArrayDiskWriterTest.cc
  4946. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4947. Fixed the bug that causes segmentation fault/bus error during executing
  4948. choking algorithm while seeding. This is caused by improper
  4949. implementation of compare function which returns inconsistent results
  4950. depending on the timing of last unchoke.
  4951. * src/BtSeederStateChoke.cc
  4952. * src/BtSeederStateChoke.h
  4953. * src/DefaultPeerStorage.cc
  4954. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4955. Removed TODO
  4956. * TODO
  4957. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4958. Added a section that explains how to pass argument to options that
  4959. takes optional arguments with its short form.
  4960. * doc/aria2c.1.txt
  4961. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4962. Added -u for the short form of --max-upload-limit option.
  4963. * doc/aria2c.1.txt
  4964. * src/option_processing.cc
  4965. * src/usage_text.h
  4966. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4967. Added -V for the short form of --check-integrity option.
  4968. Now the argument of --check-integrity option is optional:
  4969. if it is omitted, it is evaluated as true.
  4970. * doc/aria2c.1.txt
  4971. * src/option_processing.cc
  4972. * src/usage_text.h
  4973. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4974. Made the default value of --ftp-pasv option set to true and it can take
  4975. true/false values.
  4976. * src/OptionHandlerFactory.cc
  4977. * src/option_processing.cc
  4978. * src/usage_text.h
  4979. * doc/aria2c.1.txt
  4980. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4981. Given custom random number generator to std::random_shuffle.
  4982. * src/AnnounceList.cc
  4983. * src/BtLeecherStateChoke.cc
  4984. * src/BtSeederStateChoke.cc
  4985. * src/DefaultBtRequestFactory.cc
  4986. * src/MetalinkEntry.cc
  4987. * src/RarestPieceSelector.cc
  4988. * src/SimpleRandomizer.cc
  4989. * src/SimpleRandomizer.h
  4990. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4991. Now the default value of --enable-direct-io is true.
  4992. * src/OptionHandlerFactory.cc
  4993. * doc/aria2c.1.txt
  4994. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4995. Erase peer before executing onReturningPeer and onErasingPeer
  4996. because choking algorithm called from onReturningPeer doesn't
  4997. like erasing peer in the active peer list.
  4998. * src/DefaultPeerStorage.cc
  4999. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5000. Instead of creating special filename in createDownloadResult() if
  5001. inMemoryDownload() is true, now it is done in getFilePath().
  5002. * src/RequestGroup.cc
  5003. * test/RequestGroupTest.cc
  5004. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5005. Print "[MEMORY]" and filename if a file is not saved in disk and just
  5006. processed in memory. This is the fix for previous comment out.
  5007. * src/MemoryBufferPreDownloadHandler.cc
  5008. * src/RequestGroup.cc
  5009. * src/RequestGroup.h
  5010. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5011. Commented out the code which sets virtual directory path "[MEMORY]"
  5012. propagate directory to store to following RequestGroup.
  5013. * src/MemoryBufferPreDownloadHandler.cc
  5014. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5015. Bump up version number to 1.0.0b
  5016. * configure.ac
  5017. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5018. Added input_uris.txt to EXTRA_DIST
  5019. * test/Makefile.am
  5020. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5021. Removed PeerObject.h from Makefile.am
  5022. * src/Makefile.am
  5023. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5024. Avoid slow seeding
  5025. * src/PeerInteractionCommand.cc
  5026. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5027. Updated usage for -i option.
  5028. * src/usage_text.h (TEXT_INPUT_FILE)
  5029. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5030. Added INPUT FILE section to man page.
  5031. Escaped fake URLs.
  5032. * doc/aria2c.1.txt
  5033. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5034. Fixed wrong note position for -o option.
  5035. * doc/aria2c.1.txt
  5036. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5037. Fixed compile error without SSL/XML library.
  5038. * src/DefaultBtProgressInfoFile.cc
  5039. * src/DefaultBtProgressInfoFile.h
  5040. * src/FileMetalinkParserState.cc
  5041. * src/RequestGroup.h
  5042. * src/SocketCore.cc
  5043. * src/SocketCore.h
  5044. * src/VerificationMetalinkParserState.cc
  5045. * src/download_helper.h
  5046. * src/main.cc
  5047. * test/DefaultBtProgressInfoFileTest.cc
  5048. * test/DownloadHelperTest.cc
  5049. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5050. Rewritten URI handling functions. They are now provided as a testable
  5051. functions.
  5052. * src/Makefile.am
  5053. * src/RequestGroup.cc
  5054. * src/RequestGroup.h
  5055. * src/download_helper.cc
  5056. * src/download_helper.h
  5057. * src/main.cc
  5058. * test/DownloadHelperTest.cc
  5059. * test/Makefile.am
  5060. * test/input_uris.txt
  5061. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5062. Quickly terminate commands when ctrl-c is pressed.
  5063. * src/DownloadEngine.cc
  5064. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5065. Quickly terminate idle commands when download finished.
  5066. * src/AbstractCommand.cc
  5067. * src/DownloadCommand.cc
  5068. * src/DownloadEngine.cc
  5069. * src/DownloadEngine.h
  5070. * src/SleepCommand.cc
  5071. * src/SleepCommand.h
  5072. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5073. Added the ability to specify output filename and directory in input
  5074. file.
  5075. Additional parameters are added in the following line of URIs
  5076. with proceeding white space(s), 1 parameter in 1 line.
  5077. The parameter names are the same with the command-line option name
  5078. without proceeding "--". Not all the options are available here:
  5079. at the moment, 'dir' and 'out' options are avialable.
  5080. Please note that out option has no effect against Metalink or BitTorrent
  5081. downloads.
  5082. Example input file:
  5083. http://host/foo-1.1.tar.bz2
  5084. out=foo.tar.bz2
  5085. dir=/tmp/downloads
  5086. http://host/thundermonkey-2.0.tar.bz2
  5087. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  5088. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  5089. thundermonkey-2.0.tar.bz2 is saved as
  5090. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  5091. * src/BtPostDownloadHandler.cc
  5092. * src/Metalink2RequestGroup.cc
  5093. * src/Metalink2RequestGroup.h
  5094. * src/MetalinkPostDownloadHandler.cc
  5095. * src/UriListParser.cc
  5096. * src/UriListParser.h
  5097. * src/main.cc
  5098. * test/Metalink2RequestGroupTest.cc
  5099. * test/UriListParserTest.cc
  5100. * test/filelist1.txt
  5101. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5102. Fixed error when SSL library is not found.
  5103. * configure.ac
  5104. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5105. Cross referenced among -s, -C and -j options.
  5106. Updated usage of -C and -s options.
  5107. * src/usage_text.h
  5108. * doc/aria2c.1.txt
  5109. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5110. Fixed bad cast in 32bit platforms.
  5111. * test/DefaultPieceStorageTest.cc
  5112. (DefaultPieceStorageTest::testGetCompletedLength)
  5113. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5114. Fixed unit test fails on 32bit platforms.
  5115. * test/CookieParserTest.cc
  5116. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5117. Show an average download speed in Download results.
  5118. * src/BtFileAllocationEntry.cc
  5119. * src/DefaultPieceStorage.cc
  5120. * src/DownloadContext.cc
  5121. * src/DownloadContext.h
  5122. * src/DownloadResult.h
  5123. * src/RequestGroup.cc
  5124. * src/RequestGroupMan.cc
  5125. * src/StreamFileAllocationEntry.cc
  5126. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5127. Fixed the bug that metalink file is not processed if Content-Type
  5128. field has a paramter.
  5129. * src/HttpResponse.cc
  5130. * src/HttpResponse.h
  5131. * test/HttpResponseTest.cc
  5132. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5133. Removed unused code.
  5134. * src/DefaultBtAnnounce.cc
  5135. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5136. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  5137. the value larger than DefaultPieceStorage::getTotalLength() when
  5138. in flight pieces are involved.
  5139. * src/DefaultPieceStorage.cc
  5140. * test/DefaultPieceStorageTest.cc
  5141. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5142. Bump up version number to 1.0.0a.
  5143. * configure.ac
  5144. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5145. Updated configure.ac
  5146. * configure.ac
  5147. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5148. Added usege for proxy.
  5149. * doc/aria2c.1.txt
  5150. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5151. Added usage for --ca-certificate, --certificate, --private-key and
  5152. --check-certificate options.
  5153. * doc/aria2c.1.txt
  5154. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5155. Updated man page
  5156. * doc/aria2c.1.txt
  5157. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5158. Added --no-proxy option. It receives comman separated hostname or
  5159. domains to which proxy should not be used.
  5160. aria2 honors the environment variable no_proxy to override no-proxy
  5161. value in configuration file. The user can override the environment
  5162. variable no_proxy with --no-proxy command-line option.
  5163. * src/AbstractCommand.cc
  5164. * src/OptionHandlerFactory.cc
  5165. * src/option_processing.cc
  5166. * src/prefs.cc
  5167. * src/prefs.h
  5168. * src/usage_text.h
  5169. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5170. Added the ability to verify peer in SSL/TLS using given CA certificates.
  5171. The CA certificates are specified in --ca-certificate option.
  5172. By default, the verification is disabled. Use --check-certificate
  5173. option to enable it.
  5174. * src/HttpRequestCommand.cc
  5175. * src/LibgnutlsTLSContext.cc
  5176. * src/LibgnutlsTLSContext.h
  5177. * src/LibsslTLSContext.cc
  5178. * src/LibsslTLSContext.h
  5179. * src/MultiUrlRequestInfo.cc
  5180. * src/OptionHandlerFactory.cc
  5181. * src/SocketCore.cc
  5182. * src/SocketCore.h
  5183. * src/a2functional.h
  5184. * src/message.h
  5185. * src/option_processing.cc
  5186. * src/prefs.cc
  5187. * src/prefs.h
  5188. * src/usage_text.h
  5189. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5190. Added client certificate authentication for SSL/TLS.
  5191. Currently a private key must be decrypted for use with aria2.
  5192. If a user accidentally gives encrypted file to aria2 then following
  5193. thing happens:
  5194. If encrypted private key is given to aria2, it behaves differently
  5195. depending on the ssl library it uses. If aria2 built with openssl then
  5196. openssl prompts the user for password. If aria2 build with gnutls then
  5197. aria2 exists with error at start up.
  5198. * src/DownloadEngineFactory.cc
  5199. * src/MultiUrlRequestInfo.cc
  5200. * src/OptionHandlerFactory.cc
  5201. * src/option_processing.cc
  5202. * src/prefs.cc
  5203. * src/prefs.h
  5204. * src/usage_text.h
  5205. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5206. Introduced TLSContext that holds TLS related data that can be shared
  5207. with multiple SSL connections.
  5208. * src/DownloadEngineFactory.cc
  5209. * src/LibgnutlsTLSContext.cc
  5210. * src/LibgnutlsTLSContext.h
  5211. * src/LibsslTLSContext.cc
  5212. * src/LibsslTLSContext.h
  5213. * src/Makefile.am
  5214. * src/SocketCore.cc
  5215. * src/SocketCore.h
  5216. * src/TLSContext.h
  5217. * src/message.h
  5218. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5219. Fixed the bug that the DiskWriter of the first FileEntry whose
  5220. `needsFileAllocation' property is false is not created
  5221. even if it shares a piece with next FileEntry which `requested' property
  5222. is true.
  5223. Fixed the bug that zero-length file is not created if pre file
  5224. allocation is not done.
  5225. * src/MultiDiskAdaptor.cc
  5226. * src/MultiDiskAdaptor.h
  5227. * test/MultiDiskAdaptorTest.cc
  5228. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5229. Added the ability to pool proxy connection.
  5230. The conneciton in FTP with proxy-method=GET is not pooled.
  5231. Proxy-Connection header will not be sent when sending CONNECT method.
  5232. * src/DownloadEngine.cc
  5233. * src/DownloadEngine.h
  5234. * src/FtpFinishDownloadCommand.cc
  5235. * src/FtpInitiateConnectionCommand.cc
  5236. * src/FtpNegotiationCommand.cc
  5237. * src/HttpDownloadCommand.cc
  5238. * src/HttpInitiateConnectionCommand.cc
  5239. * src/HttpRequest.cc
  5240. * src/HttpRequest.h
  5241. * src/HttpResponse.cc
  5242. * src/HttpSkipResponseCommand.cc
  5243. * test/HttpRequestTest.cc
  5244. * test/HttpResponseTest.cc
  5245. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5246. Handle date before epoch.
  5247. To create *bad* Time object, call Time::null().
  5248. * src/CookieParser.cc
  5249. * src/FtpConnection.cc
  5250. * src/FtpConnection.h
  5251. * src/FtpNegotiationCommand.cc
  5252. * src/RequestGroup.cc
  5253. * src/TimeA2.cc
  5254. * src/TimeA2.h
  5255. * test/CookieParserTest.cc
  5256. * test/FtpConnectionTest.cc
  5257. * test/TimeTest.cc
  5258. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5259. Added support for following envrionment variables: http_proxy,
  5260. https_proxy, ftp_proxy and all_proxy.
  5261. Each variable is equivalent to the aria2 option whose name is the
  5262. variable name with '_' replaced with '-'.
  5263. They overrides options specified in aria2.conf file.
  5264. The envrionment variables can be overrode using command-line option.
  5265. * src/option_processing.cc
  5266. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5267. Renamed --http-proxy-method as --proxy-method.
  5268. * src/AbstractCommand.cc
  5269. * src/FtpInitiateConnectionCommand.cc
  5270. * src/HttpInitiateConnectionCommand.cc
  5271. * src/OptionHandlerFactory.cc
  5272. * src/option_processing.cc
  5273. * src/prefs.cc
  5274. * src/prefs.h
  5275. * src/usage_text.h
  5276. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5277. Deprecated --http-proxy-user and --http-proxy-passwd options.
  5278. Added --https-proxy, --ftp-proxy and --all-proxy options.
  5279. Above 3 options and --http-proxy option can handle proxy in URL format
  5280. like: http://user:passwd@host:port.
  5281. If a proxy requires user/password, they must be specified in a URL.
  5282. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  5283. instead.
  5284. * src/AbstractCommand.cc
  5285. * src/AbstractCommand.h
  5286. * src/AbstractProxyRequestCommand.cc
  5287. * src/AbstractProxyRequestCommand.h
  5288. * src/AuthConfigFactory.cc
  5289. * src/AuthConfigFactory.h
  5290. * src/FtpFinishDownloadCommand.cc
  5291. * src/FtpInitiateConnectionCommand.cc
  5292. * src/FtpInitiateConnectionCommand.h
  5293. * src/FtpNegotiationCommand.cc
  5294. * src/FtpTunnelRequestCommand.cc
  5295. * src/FtpTunnelRequestCommand.h
  5296. * src/HttpDownloadCommand.cc
  5297. * src/HttpInitiateConnectionCommand.cc
  5298. * src/HttpInitiateConnectionCommand.h
  5299. * src/HttpProxyRequestCommand.cc
  5300. * src/HttpProxyRequestCommand.h
  5301. * src/HttpRequest.cc
  5302. * src/HttpRequest.h
  5303. * src/HttpRequestCommand.cc
  5304. * src/HttpRequestCommand.h
  5305. * src/HttpSkipResponseCommand.cc
  5306. * src/InitiateConnectionCommand.cc
  5307. * src/InitiateConnectionCommand.h
  5308. * src/OptionHandlerFactory.cc
  5309. * src/OptionHandlerImpl.h
  5310. * src/Request.cc
  5311. * src/option_processing.cc
  5312. * src/prefs.cc
  5313. * src/prefs.h
  5314. * src/usage_text.h
  5315. * test/AuthConfigFactoryTest.cc
  5316. * test/HttpRequestTest.cc
  5317. * test/OptionHandlerTest.cc
  5318. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5319. Execute choking algorithm when unchoked and interested peer is
  5320. disconected.
  5321. * src/DefaultPeerStorage.cc
  5322. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5323. Added testcase for BtNotInterestedMessage from unchoked peer.
  5324. * test/BtNotInterestedMessageTest.cc
  5325. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5326. Execute choking algorithm when BtInterestedMessage arrives from
  5327. unchoked peer.
  5328. * src/BtInterestedMessage.cc
  5329. * src/BtInterestedMessage.h
  5330. * src/DefaultBtMessageFactory.cc
  5331. * test/BtInterestedMessageTest.cc
  5332. * test/MockPeerStorage.h
  5333. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5334. AuthConfigFactory is now part of DownloadEngine.
  5335. * src/AbstractProxyRequestCommand.cc
  5336. * src/AuthConfigFactory.h
  5337. * src/DownloadEngine.cc
  5338. * src/DownloadEngine.h
  5339. * src/FtpConnection.cc
  5340. * src/FtpConnection.h
  5341. * src/FtpNegotiationCommand.cc
  5342. * src/HttpConnection.cc
  5343. * src/HttpRequest.cc
  5344. * src/HttpRequest.h
  5345. * src/HttpRequestCommand.cc
  5346. * src/HttpResponse.cc
  5347. * src/HttpResponseCommand.cc
  5348. * src/HttpSkipResponseCommand.cc
  5349. * src/MultiUrlRequestInfo.cc
  5350. * src/main.cc
  5351. * test/FtpConnectionTest.cc
  5352. * test/HttpRequestTest.cc
  5353. * test/HttpResponseTest.cc
  5354. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5355. Corrected catched exception type.
  5356. * src/ServerStatMan.cc
  5357. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5358. DNSCache is now part of DownloadEngine.
  5359. * src/DNSCache.h
  5360. * src/DownloadEngine.cc
  5361. * src/DownloadEngine.h
  5362. * src/InitiateConnectionCommand.cc
  5363. * src/MultiUrlRequestInfo.cc
  5364. * test/Makefile.am
  5365. * test/Makefile.in
  5366. * test/SimpleDNSCacheTest.cc
  5367. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5368. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  5369. DownloadEngine.
  5370. * src/ActivePeerConnectionCommand.cc
  5371. * src/BtSetup.cc
  5372. * src/CUIDCounter.h
  5373. * src/DHTSetup.cc
  5374. * src/DownloadCommand.cc
  5375. * src/DownloadEngine.cc
  5376. * src/DownloadEngine.h
  5377. * src/DownloadEngineFactory.cc
  5378. * src/FileAllocationDispatcherCommand.cc
  5379. * src/InitiatorMSEHandshakeCommand.cc
  5380. * src/PeerInitiateConnectionCommand.cc
  5381. * src/PeerInteractionCommand.cc
  5382. * src/PeerListenCommand.cc
  5383. * src/RequestGroup.cc
  5384. * src/StreamFileAllocationEntry.cc
  5385. * src/TrackerWatcherCommand.cc
  5386. * src/main.cc
  5387. * test/RequestGroupManTest.cc
  5388. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5389. Implemented commented code in BtSeederStateChoke
  5390. * src/BtSeederStateChoke.cc
  5391. * src/Peer.cc
  5392. * src/Peer.h
  5393. * src/PeerInteractionCommand.cc
  5394. * src/PeerSessionResource.cc
  5395. * src/PeerSessionResource.h
  5396. * test/MockBtMessageDispatcher.h
  5397. * test/PeerSessionResourceTest.cc
  5398. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5399. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  5400. its object.
  5401. * src/AbstractBtMessage.cc
  5402. * src/ActivePeerConnectionCommand.cc
  5403. * src/ActivePeerConnectionCommand.h
  5404. * src/BtContextAwareCommand.cc
  5405. * src/BtContextAwareCommand.h
  5406. * src/BtExtendedMessage.cc
  5407. * src/BtExtendedMessage.h
  5408. * src/BtInterestedMessage.cc
  5409. * src/BtInterestedMessage.h
  5410. * src/BtNotInterestedMessage.cc
  5411. * src/BtNotInterestedMessage.h
  5412. * src/BtRegistry.cc
  5413. * src/BtRegistry.h
  5414. * src/BtSeederStateChoke.cc
  5415. * src/BtSetup.cc
  5416. * src/DHTGetPeersCommand.cc
  5417. * src/DHTGetPeersCommand.h
  5418. * src/DHTPeerAnnounceEntry.cc
  5419. * src/DHTPeerAnnounceEntry.h
  5420. * src/DHTPeerAnnounceStorage.cc
  5421. * src/DHTPeerAnnounceStorage.h
  5422. * src/DHTPeerLookupTask.cc
  5423. * src/DHTPeerLookupTask.h
  5424. * src/DHTSetup.cc
  5425. * src/DHTSetup.h
  5426. * src/DHTTaskFactory.h
  5427. * src/DHTTaskFactoryImpl.cc
  5428. * src/DHTTaskFactoryImpl.h
  5429. * src/DefaultBtAnnounce.cc
  5430. * src/DefaultBtInteractive.cc
  5431. * src/DefaultBtInteractive.h
  5432. * src/DefaultBtMessageDispatcher.cc
  5433. * src/DefaultBtMessageDispatcher.h
  5434. * src/DefaultBtMessageFactory.cc
  5435. * src/DefaultBtMessageFactory.h
  5436. * src/DefaultBtMessageReceiver.cc
  5437. * src/DefaultBtProgressInfoFile.cc
  5438. * src/DefaultBtProgressInfoFile.h
  5439. * src/DefaultBtRequestFactory.cc
  5440. * src/DefaultBtRequestFactory.h
  5441. * src/DefaultExtensionMessageFactory.cc
  5442. * src/DefaultExtensionMessageFactory.h
  5443. * src/DefaultPeerStorage.cc
  5444. * src/DefaultPeerStorage.h
  5445. * src/DownloadEngine.cc
  5446. * src/DownloadEngine.h
  5447. * src/InitiatorMSEHandshakeCommand.cc
  5448. * src/InitiatorMSEHandshakeCommand.h
  5449. * src/MSEHandshake.cc
  5450. * src/MSEHandshake.h
  5451. * src/Makefile.am
  5452. * src/Makefile.in
  5453. * src/PeerChokeCommand.cc
  5454. * src/PeerChokeCommand.h
  5455. * src/PeerInitiateConnectionCommand.cc
  5456. * src/PeerInitiateConnectionCommand.h
  5457. * src/PeerInteractionCommand.cc
  5458. * src/PeerInteractionCommand.h
  5459. * src/PeerObject.h
  5460. * src/PeerReceiveHandshakeCommand.cc
  5461. * src/PeerReceiveHandshakeCommand.h
  5462. * src/ReceiverMSEHandshakeCommand.cc
  5463. * src/RequestGroup.cc
  5464. * src/RequestGroup.h
  5465. * src/RequestGroupMan.cc
  5466. * src/RequestGroupMan.h
  5467. * src/SeedCheckCommand.cc
  5468. * src/SeedCheckCommand.h
  5469. * src/ShareRatioSeedCriteria.h
  5470. * src/SimpleBtMessage.cc
  5471. * src/TrackerWatcherCommand.cc
  5472. * src/TrackerWatcherCommand.h
  5473. * src/UTPexExtensionMessage.cc
  5474. * src/UTPexExtensionMessage.h
  5475. * test/BtCancelMessageTest.cc
  5476. * test/BtChokeMessageTest.cc
  5477. * test/BtExtendedMessageTest.cc
  5478. * test/BtInterestedMessageTest.cc
  5479. * test/BtNotInterestedMessageTest.cc
  5480. * test/BtPieceMessageTest.cc
  5481. * test/BtPortMessageTest.cc
  5482. * test/BtRegistryTest.cc
  5483. * test/BtRejectMessageTest.cc
  5484. * test/BtRequestMessageTest.cc
  5485. * test/DHTPeerAnnounceEntryTest.cc
  5486. * test/DHTPeerAnnounceStorageTest.cc
  5487. * test/DefaultBtMessageDispatcherTest.cc
  5488. * test/DefaultBtMessageFactoryTest.cc
  5489. * test/DefaultBtProgressInfoFileTest.cc
  5490. * test/DefaultBtRequestFactoryTest.cc
  5491. * test/DefaultExtensionMessageFactoryTest.cc
  5492. * test/MSEHandshakeTest.cc
  5493. * test/MockDHTTaskFactory.h
  5494. * test/ShareRatioSeedCriteriaTest.cc
  5495. * test/UTPexExtensionMessageTest.cc
  5496. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5497. Fixed compiler warning.
  5498. * test/UtilTest.cc
  5499. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5500. Treat Cookie object as session cookie if expiry = 0 is given.
  5501. With this change, you can specify session scoped cookies in an external
  5502. file setting expiry value to 0.
  5503. * src/Cookie.cc
  5504. * src/Cookie.h
  5505. * test/CookieParserTest.cc
  5506. * test/CookieStorageTest.cc
  5507. * test/CookieTest.cc
  5508. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5509. Changed signature of DHTMessageFactory::createResponseMessage().
  5510. Removed unused validateIDMatch.
  5511. * src/DHTMessageFactory.h
  5512. * src/DHTMessageFactoryImpl.cc
  5513. * src/DHTMessageFactoryImpl.h
  5514. * src/DHTMessageTracker.cc
  5515. * test/DHTMessageFactoryImplTest.cc
  5516. * test/MockDHTMessageFactory.h
  5517. Dropped DHT message coming from same ID of localhost.
  5518. * src/DHTMessageReceiver.cc
  5519. Rejected adding node whose ID is the same as localhost's.
  5520. * src/DHTRoutingTable.cc
  5521. * test/BtPortMessageTest.cc
  5522. * test/DHTRoutingTableTest.cc
  5523. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5524. Pool connection when redirection occurs with Content-Length = 0.
  5525. * src/HttpSkipResponseCommand.cc
  5526. * src/HttpSkipResponseCommand.h
  5527. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5528. Fixed the bug that causes time out when redirection occurs with
  5529. content-length 0.
  5530. * src/HttpResponseCommand.cc
  5531. * src/HttpSkipResponseCommand.cc
  5532. * src/HttpSkipResponseCommand.h
  5533. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5534. Now each status legends is shown only when it appears in Download
  5535. Result. If Download Result has no item, then status legend will not
  5536. be printed.
  5537. * src/RequestGroupMan.cc
  5538. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5539. Removed duplicate creation of OptionHandlers.
  5540. * src/option_processing.cc
  5541. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5542. Fixed the bug that causes segmentation fault when accessing files which
  5543. don't exist or are not included in --select-file option while
  5544. validating chunk checksum.
  5545. * src/MultiDiskAdaptor.cc
  5546. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5547. Fixed compiler warning.
  5548. * test/UtilTest.cc
  5549. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5550. Included cstdlib. This fixed the compile error with g++-4.3.2.
  5551. * src/IteratableChecksumValidator.cc
  5552. * src/IteratableChunkChecksumValidator.cc
  5553. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5554. * Release 0.16.2
  5555. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5556. Added Serbian translation. Updated Ukrainian translation.
  5557. Thanks to all translators.
  5558. * po/sr.po
  5559. * po/uk.po
  5560. * po/LINGUAS
  5561. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5562. Bump up version number to 0.16.2
  5563. * configure.ac
  5564. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5565. Added length equality test to operator== to drop a piece message
  5566. whose length does not match to the requested one.
  5567. * src/RequestSlot.cc
  5568. * test/DefaultBtMessageDispatcherTest.cc
  5569. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5570. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  5571. recieved.
  5572. In this fix, if a request larger than 16KiB length is received, aria2
  5573. disconnects the peer.
  5574. * src/BtConstants.h
  5575. * src/PeerMessageUtil.cc
  5576. * src/PeerMessageUtil.h
  5577. * test/BtRequestMessageTest.cc
  5578. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5579. * Release 0.16.1
  5580. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5581. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  5582. * doc/aria2c.1.txt
  5583. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5584. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  5585. Updated French, Simplified Chinese and Japanese translations.
  5586. Thanks to all translators.
  5587. en@quot and en@boldquot are also added.
  5588. * po/LINGUAS
  5589. * po/fr.po
  5590. * po/ja.po
  5591. * po/uk.po
  5592. * po/vi.po
  5593. * po/zh_CN.po
  5594. * po/zh_TW.po
  5595. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5596. Bump up version number to 0.16.1.
  5597. * configure.ac
  5598. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5599. Updated README.
  5600. * README
  5601. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5602. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  5603. not to replace '--' with em dash character.
  5604. * doc/aria2c.1.txt
  5605. * doc/makeman
  5606. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5607. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  5608. every SEC seconds.
  5609. * src/DownloadEngineFactory.cc
  5610. * src/OptionHandlerFactory.cc
  5611. * src/option_processing.cc
  5612. * src/usage_text.h
  5613. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5614. Fixed compile warning on linux-amd64
  5615. * src/FtpConnection.cc
  5616. * src/IteratableChunkChecksumValidator.cc
  5617. * src/MultiDiskAdaptor.cc
  5618. Fixed the bug that unit test fails on linux-amd64
  5619. * test/UtilTest.cc
  5620. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5621. Added --dht-file-path option to change the path to dht.dat, which is a
  5622. serialized DHT routing table.
  5623. * src/OptionHandlerFactory.cc
  5624. * src/option_processing.cc
  5625. * src/usage_text.h
  5626. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5627. Fixed possible underflow.
  5628. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  5629. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5630. Fixed the bug that last character in URI is not encoded.
  5631. * src/Request.cc
  5632. * test/RequestTest.cc
  5633. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5634. Fixed the bug that referer header field contains fragment.
  5635. Now Request class removes fragment part of URI and encodes it
  5636. in Request::setUri() and setReferer().
  5637. * src/Request.h
  5638. * src/Request.cc
  5639. * test/RequestTest.cc
  5640. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5641. Added missing m4 macros.
  5642. * m4/cppunit.m4
  5643. * m4/libgcrypt.m4
  5644. * m4/libgnutls-extra.m4
  5645. * m4/libgnutls.m4
  5646. * m4/libxml2.m4
  5647. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5648. Fixed compile error with gcc-4.4(snapshot)
  5649. * src/File.cc
  5650. * src/FtpConnection.cc
  5651. * src/OptionHandlerImpl.h
  5652. * src/Util.cc
  5653. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5654. Removed assert()
  5655. * src/SocketBuffer.cc (SocketBuffer::send)
  5656. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5657. Changed the type of _numNewConnection to unsigned int.
  5658. * src/ActivePeerConnectionCommand.cc
  5659. * src/ActivePeerConnectionCommand.h
  5660. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5661. * Release 0.16.0
  5662. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5663. Updated doc
  5664. * README
  5665. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5666. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  5667. translations. Thanks to all translators.
  5668. * po/bg.po
  5669. * po/de.po
  5670. * po/fr.po
  5671. * po/ja.po
  5672. * po/zh_CN.po
  5673. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5674. Bump up version number to 0.16.0.
  5675. * configure.ac
  5676. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5677. Casted entry->maxConnections to int32_t for std::min<T> with T =
  5678. int32_t.
  5679. Changed the type of count to int32_t.
  5680. * src/Metalink2RequestGroup.cc
  5681. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5682. Added test for Time::elapsed(time_t).
  5683. * test/TimeTest.cc
  5684. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5685. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  5686. Util::difftv() should be used instead.
  5687. * src/TimeA2.cc
  5688. * src/TimeA2.h
  5689. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5690. Made socket for dht connections non-blocking
  5691. * src/DHTAbstractMessage.cc
  5692. * src/DHTAbstractMessage.h
  5693. * src/DHTConnection.h
  5694. * src/DHTConnectionImpl.cc
  5695. * src/DHTConnectionImpl.h
  5696. * src/DHTMessage.h
  5697. * src/DHTMessageDispatcherImpl.cc
  5698. * src/DHTMessageDispatcherImpl.h
  5699. * src/DHTUnknownMessage.cc
  5700. * src/DHTUnknownMessage.h
  5701. * src/SocketCore.cc
  5702. * src/SocketCore.h
  5703. * test/MockDHTMessage.h
  5704. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5705. Changed the type of offset to int.
  5706. * src/ParameterizedStringParser.cc
  5707. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5708. Made getAsInt() return int32_t
  5709. * src/Option.h
  5710. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5711. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  5712. build.
  5713. * configure.ac
  5714. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5715. Use sqlite3_open if sqlite3_open_v2 is not available.
  5716. * src/Sqlite3MozCookieParser.cc
  5717. * src/Sqlite3MozCookieParser.h
  5718. * m4/sqlite3.m4
  5719. * test/Sqlite3MozCookieParserTest.cc
  5720. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5721. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  5722. * src/BtPieceMessage.cc
  5723. * src/DHTPeerAnnounceStorage.cc
  5724. * src/DefaultPieceStorage.cc
  5725. * src/DownloadCommand.cc
  5726. * src/DownloadEngine.cc
  5727. * src/FtpConnection.cc
  5728. * src/PeerConnection.cc
  5729. * src/PeerMessageUtil.cc
  5730. * src/RequestGroup.cc
  5731. * src/RequestGroupMan.cc
  5732. * src/SimpleBtMessage.cc
  5733. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5734. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  5735. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  5736. * src/AbstractDiskWriter.cc
  5737. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5738. Don't set Request::supportsPersistentConnection() in HttpConnection
  5739. since this code is also used in AbstractProxyResponseCommand.
  5740. Moved those code to HttpResponse.
  5741. * src/HttpResponse.cc
  5742. * src/HttpResponse.h
  5743. * src/HttpConnection.cc
  5744. * src/HttpConnection.h
  5745. * src/HttpResponseCommand.cc
  5746. * test/HttpResponseTest.cc
  5747. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5748. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  5749. The configuration is minimum: no torrent, no metalink, so there may be
  5750. other compile error on their code.
  5751. * src/a2netcompat.h
  5752. * src/File.cc
  5753. * src/File.h
  5754. * src/SocketCore.cc
  5755. * src/SocketCore.h
  5756. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5757. Made a socket of incoming peer non-blocking.
  5758. * src/PeerListenCommand.cc
  5759. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5760. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  5761. whole message data is not sent in one send() call.
  5762. * src/BtPieceMessage.cc
  5763. * src/BtPieceMessage.h
  5764. * src/PeerConnection.cc
  5765. * src/PeerConnection.h
  5766. * src/SimpleBtMessage.cc
  5767. * src/SimpleBtMessage.h
  5768. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5769. Fixed the bug that aria2 downloads faster than max-download-limit when
  5770. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  5771. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  5772. , instead of sum of them.
  5773. * src/ActivePeerConnectionCommand.cc
  5774. * src/DefaultBtInteractive.cc
  5775. * src/DownloadCommand.cc
  5776. * src/PeerInteractionCommand.cc
  5777. * src/PeerReceiveHandshakeCommand.cc
  5778. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5779. Fixed the bug that HTTPS download fails.
  5780. * src/AbstractCommand.cc
  5781. * src/AbstractCommand.h
  5782. * src/DownloadCommand.cc
  5783. * src/FtpConnection.cc
  5784. * src/HttpConnection.cc
  5785. * src/HttpRequestCommand.cc
  5786. * src/HttpResponseCommand.cc
  5787. * src/HttpSkipResponseCommand.cc
  5788. * src/MSEHandshake.cc
  5789. * src/PeerConnection.cc
  5790. * src/SocketCore.cc
  5791. * src/SocketCore.h
  5792. Fixed the bug that aria2 doesn't download whole content body and cannot
  5793. reuse connection if chunked transfer encoding and gzip content encoding
  5794. are set.
  5795. * src/DownloadCommand.cc
  5796. * src/HttpSkipResponseCommand.cc
  5797. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5798. Updated man page.
  5799. * doc/aria2c.1.txt
  5800. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5801. When error occurred while aria2 was parsing an .aria2.conf file, print
  5802. the usage of the option that caused error.
  5803. * src/option_processing.cc
  5804. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5805. Fixed compile error on OptionHandlerException
  5806. * src/Makefile.am
  5807. * src/OptionHandlerException.cc
  5808. * src/OptionHandlerException.h
  5809. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5810. Moved message of the error to OptionHandlerException.h
  5811. * src/NameMatchOptionHandler.h
  5812. * src/OptionHandlerException.h
  5813. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5814. When error occurs while aria2 is parsing an command-line option, print
  5815. the usage of the option.
  5816. * src/Makefile.am
  5817. * src/NameMatchOptionHandler.h
  5818. * src/OptionHandlerException.h
  5819. * src/option_processing.cc
  5820. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5821. Reverted previous change.
  5822. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  5823. username is not in URI.
  5824. * src/HttpRequest.cc
  5825. * src/Request.cc
  5826. * test/HttpRequestTest.cc
  5827. * test/RequestTest.cc
  5828. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5829. Now colon is required for username and password in FTP URL, like:
  5830. ftp://username:password@host.
  5831. If colon is not there, aria2 don't parse it as a username. For example,
  5832. aria2 don't retrieve username from ftp://username@host.
  5833. This fix was made in order to login FTP server via non-transparent ftp
  5834. proxy.
  5835. * src/Request.cc
  5836. * test/RequestTest.cc
  5837. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5838. Use netrc for HTTP.
  5839. Now FTP user/password is sent in Authorization header when
  5840. --ftp-via-http-proxy=get is given.
  5841. * src/AuthConfigFactory.cc
  5842. * src/HttpRequest.cc
  5843. * src/HttpRequest.h
  5844. * src/NetrcAuthResolver.cc
  5845. * src/NetrcAuthResolver.h
  5846. * src/OptionHandlerFactory.cc
  5847. * src/option_processing.cc
  5848. * src/prefs.cc
  5849. * src/prefs.h
  5850. * test/AuthConfigFactoryTest.cc
  5851. * test/HttpRequestTest.cc
  5852. * test/NetrcAuthResolverTest.cc
  5853. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5854. Issue PWD command first and get working directory and use it as a prefix
  5855. for CWD command.
  5856. * src/DownloadEngine.cc
  5857. * src/DownloadEngine.h
  5858. * src/FtpConnection.cc
  5859. * src/FtpConnection.h
  5860. * src/FtpFinishDownloadCommand.cc
  5861. * src/FtpInitiateConnectionCommand.cc
  5862. * src/FtpNegotiationCommand.cc
  5863. * src/FtpNegotiationCommand.h
  5864. * test/FtpConnectionTest.cc
  5865. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5866. Removed default user/pass for FTP user/pass, since it should not have
  5867. precedence over netrc configuration by default.
  5868. * src/OptionHandlerFactory.cc
  5869. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5870. Added debug log for socket event.
  5871. * src/AbstractCommand.cc
  5872. * src/PeerAbstractCommand.cc
  5873. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5874. Log microseconds.
  5875. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  5876. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5877. Replaced HelpItem.cc with OptionHandler.cc.
  5878. * po/POTFILES.in
  5879. Updated po files with 'make update-po'
  5880. * po/aria2c.pot
  5881. * po/*.po
  5882. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5883. Removed possible values from the text.
  5884. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  5885. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5886. Removed unused preferences:
  5887. PREF_NO_PREALLOCATION
  5888. PREF_STDOUT_LOG
  5889. PREF_TRACKER_MAX_TRIES
  5890. PREF_DIRECT_DOWNLOAD_TIMEOUT
  5891. PREF_MIN_SEGMENT_SIZE
  5892. * src/option_processing.cc
  5893. * src/prefs.cc
  5894. * src/prefs.h
  5895. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5896. Integrated HelpItem into OptionParser to ease the workload for adding
  5897. new options. Removed default value from usage text.
  5898. * src/HelpItem.cc: Removed.
  5899. * src/HelpItem.h: Removed.
  5900. * src/HelpItemFactory.cc: Removed.
  5901. * src/HelpItemFactory.h: Removed.
  5902. * src/Makefile.am
  5903. * src/Makefile.in
  5904. * src/NameMatchOptionHandler.h
  5905. * src/OptionHandler.cc
  5906. * src/OptionHandler.h
  5907. * src/OptionHandlerFactory.cc
  5908. * src/OptionHandlerImpl.h
  5909. * src/OptionParser.cc
  5910. * src/OptionParser.h
  5911. * src/TagContainer.cc: Removed.
  5912. * src/TagContainer.h: Removed.
  5913. * src/TaggedItem.cc: Removed.
  5914. * src/TaggedItem.h: Removed.
  5915. * src/main.cc
  5916. * src/option_processing.cc
  5917. * src/usage_text.h
  5918. * src/version_usage.cc
  5919. * test/HelpItemTest.cc: Removed.
  5920. * test/Makefile.am
  5921. * test/Makefile.in
  5922. * test/OptionHandlerTest.cc
  5923. * test/OptionParserTest.cc
  5924. * test/TagContainerTest.cc: Removed.
  5925. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5926. Moved `TransferStat stat = ...' to inside the `if' clause.
  5927. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  5928. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5929. Fixed the bug that a block in a piece is requested when same block is
  5930. already requested to the same peer in end game mode.
  5931. * src/BtRequestFactory.h
  5932. * src/DefaultBtInteractive.cc
  5933. * src/DefaultBtRequestFactory.cc
  5934. * src/DefaultBtRequestFactory.h
  5935. * src/DefaultPieceStorage.cc
  5936. * src/DefaultPieceStorage.h
  5937. * src/PieceStorage.h
  5938. * src/UnknownLengthPieceStorage.cc
  5939. * src/UnknownLengthPieceStorage.h
  5940. * test/DefaultBtRequestFactoryTest.cc
  5941. * test/DefaultPieceStorageTest.cc
  5942. * test/MockBtRequestFactory.h
  5943. * test/MockPieceStorage.h
  5944. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5945. Removed _uploadLength and _downloadLength from PeerSessionResource
  5946. and use PeerStat::_sessionUploadLength and
  5947. PeerStat::_sessionDownloadLength.
  5948. * src/PeerSessionResource.cc
  5949. * src/PeerSessionResource.h
  5950. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5951. Fixed the bug that prefixLength of split bucket which doesn't include
  5952. local node ID is incremented.
  5953. * src/DHTBucket.cc
  5954. * src/DHTBucket.h
  5955. * test/DHTBucketTest.cc
  5956. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5957. Added cookies.sqlite to EXTRA_DIST
  5958. * test/Makefile.am
  5959. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5960. Added Turkish translation. Updated French, German, Russian and
  5961. Simplified Chinese translations. Thanks to all translators.
  5962. * po/LINGUAS
  5963. * po/de.po
  5964. * po/fr.po
  5965. * po/ru.po
  5966. * po/tr.po
  5967. * po/zh_CN.po
  5968. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5969. Added deliminating text to the beginning of the log so that one can find
  5970. where the log starts easily.
  5971. * src/main.cc
  5972. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5973. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  5974. to fix compile error when async DNS is not enabled by configuration.
  5975. * src/AbstractCommand.cc
  5976. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5977. If establishing conneciton to a server is failed, then mark error on
  5978. its ServerStat.
  5979. Added the cause of error to log when error event occurred.
  5980. Moved message string to message.h for translation.
  5981. * src/AbstractCommand.cc
  5982. * src/AbstractCommand.h
  5983. * src/FtpNegotiationCommand.cc
  5984. * src/HttpRequestCommand.cc
  5985. * src/PeerAbstractCommand.cc
  5986. * src/message.h
  5987. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5988. Added the function to get error message from socket.
  5989. * src/SocketCore.cc
  5990. * src/SocketCore.h
  5991. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5992. Added convenient method RequestGroupMan::getOrCreateServerStat()
  5993. * src/RequestGroupMan.cc
  5994. * src/RequestGroupMan.h
  5995. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5996. If error event is received in epoll, then abort download immediately.
  5997. * src/AbstractCommand.cc
  5998. * src/Command.cc
  5999. * src/Command.h
  6000. * src/DownloadEngine.cc
  6001. * src/PeerAbstractCommand.cc
  6002. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6003. Added usage message for --uri-selector, --server-stat-of,
  6004. --server-stat-in, --server-stat-timeout options.
  6005. * src/HelpItemFactory.cc
  6006. * src/usage_text.h
  6007. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6008. Added upper limit of FTP response buffer. The current implementation
  6009. uses 4096bytes as a limit.
  6010. * src/FtpConnection.cc
  6011. * src/FtpConnection.h
  6012. * test/FtpConnectionTest.cc
  6013. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6014. Use non-blocking socket for TCP communication to avoid possible
  6015. blocking due to buffer full.
  6016. * src/AbstractProxyRequestCommand.cc
  6017. * src/FtpConnection.cc
  6018. * src/FtpConnection.h
  6019. * src/FtpNegotiationCommand.cc
  6020. * src/FtpNegotiationCommand.h
  6021. * src/HttpConnection.cc
  6022. * src/HttpConnection.h
  6023. * src/HttpRequestCommand.cc
  6024. * src/InitiatorMSEHandshakeCommand.cc
  6025. * src/InitiatorMSEHandshakeCommand.h
  6026. * src/MSEHandshake.cc
  6027. * src/MSEHandshake.h
  6028. * src/Makefile.am
  6029. * src/PeerConnection.cc
  6030. * src/PeerConnection.h
  6031. * src/PeerInteractionCommand.cc
  6032. * src/PeerListenCommand.cc
  6033. * src/ReceiverMSEHandshakeCommand.cc
  6034. * src/ReceiverMSEHandshakeCommand.h
  6035. * src/SocketBuffer.cc
  6036. * src/SocketBuffer.h
  6037. * src/SocketCore.cc
  6038. * src/SocketCore.h
  6039. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6040. Call setStatusRealtime() in constructor.
  6041. * src/RealtimeCommand.cc
  6042. * src/RealtimeCommand.h
  6043. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6044. Call Download::setNoWait(true) to execute newly created command without
  6045. a pause.
  6046. * src/AbstractCommand.cc
  6047. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6048. Added --max-file-not-found=NUM option. If aria2 receives `file not
  6049. found' error from HTTP/FTP server NUM times without getting single
  6050. bytes of data, then force the download to fail.
  6051. Basically aria2 tris all URIs available. So if long list of URIs are
  6052. specified in Metalink, then aria2 will take a long time to fail
  6053. eventually if all URIs are outdated. This option eases this situation
  6054. to limit the number of servers to try.
  6055. * src/FtpNegotiationCommand.cc
  6056. * src/HelpItemFactory.cc
  6057. * src/HttpResponseCommand.cc
  6058. * src/OptionHandlerFactory.cc
  6059. * src/PeerStat.h
  6060. * src/RequestGroup.cc
  6061. * src/RequestGroup.h
  6062. * src/SegmentMan.cc
  6063. * src/SegmentMan.h
  6064. * src/option_processing.cc
  6065. * src/prefs.cc
  6066. * src/prefs.h
  6067. * src/usage_text.h
  6068. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6069. Fixed the bug that bulkReceiveResponse() reads all received data as a
  6070. response even if more than one response is in it.
  6071. * src/FtpConnection.cc
  6072. * src/FtpConnection.h
  6073. * test/FtpConnectionTest.cc
  6074. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6075. Merged from stable-0.15
  6076. * m4/libcares.m4
  6077. Use pkg-config
  6078. * m4/sqlite3.m4
  6079. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6080. Removed unnecessary if statement.
  6081. * src/DefaultPieceStorage.cc (initPieceStorage)
  6082. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6083. Added --connect-timeout option to specify connect timeout in seconds.
  6084. This option is in effect for HTTP/FTP/proxy server. The timeout for
  6085. connecting to BitTorrent peer is not controlled by this option.
  6086. * src/AbstractProxyRequestCommand.cc
  6087. * src/FtpNegotiationCommand.cc
  6088. * src/HelpItemFactory.cc
  6089. * src/HttpRequestCommand.cc
  6090. * src/OptionHandlerFactory.cc
  6091. * src/option_processing.cc
  6092. * src/prefs.cc
  6093. * src/prefs.h
  6094. * src/usage_text.h
  6095. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6096. Added help message for -R option.
  6097. * src/HelpItemFactory.cc
  6098. * src/usage_text.h
  6099. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6100. Added the message that the time is in local time zone.
  6101. * src/RequestGroup.cc
  6102. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6103. Implemented the ability to get timestamp from remote FTP server using
  6104. MDTM command described in RFC3659.
  6105. * src/FtpConnection.cc
  6106. * src/FtpConnection.h
  6107. * src/FtpNegotiationCommand.cc
  6108. * src/FtpNegotiationCommand.h
  6109. * test/FtpConnectionTest.cc
  6110. * test/Makefile.am
  6111. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6112. Implemented the ability to get timestamp from remote HTTP server and
  6113. apply it to local file. To enable this feature, --remote-time option
  6114. is added. No usage text has been written yet.
  6115. If several servers returns difference timestamp, then aria2 uses latest
  6116. one.
  6117. * src/CopyDiskAdaptor.cc
  6118. * src/CopyDiskAdaptor.h
  6119. * src/DirectDiskAdaptor.cc
  6120. * src/DirectDiskAdaptor.h
  6121. * src/DiskAdaptor.h
  6122. * src/File.cc
  6123. * src/File.h
  6124. * src/HttpHeader.cc
  6125. * src/HttpHeader.h
  6126. * src/HttpResponse.cc
  6127. * src/HttpResponse.h
  6128. * src/HttpResponseCommand.cc
  6129. * src/HttpResponseCommand.h
  6130. * src/MultiDiskAdaptor.cc
  6131. * src/MultiDiskAdaptor.h
  6132. * src/OptionHandlerFactory.cc
  6133. * src/RequestGroup.cc
  6134. * src/RequestGroup.h
  6135. * src/RequestGroupMan.cc
  6136. * src/option_processing.cc
  6137. * src/prefs.cc
  6138. * src/prefs.h
  6139. * test/CopyDiskAdaptorTest.cc
  6140. * test/FileTest.cc
  6141. * test/Makefile.am
  6142. * test/Makefile.in
  6143. * test/MultiDiskAdaptorTest.cc
  6144. * test/TestUtil.cc
  6145. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6146. Fixed the bug that DiskWriterEntry is not created when its
  6147. FileEntry.isRequested() is false and it doesn't share a piece with
  6148. other FileEntries that are requested. This bug causes segmentation fault
  6149. in the end.
  6150. * src/MultiDiskAdaptor.cc
  6151. * src/MultiDiskAdaptor.h
  6152. * src/MultiFileAllocationIterator.cc
  6153. * test/MultiDiskAdaptorTest.cc
  6154. * test/MultiFileAllocationIteratorTest.cc
  6155. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6156. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  6157. called if the number of file entries are greater than max open files.
  6158. * src/AbstractSingleDiskAdaptor.cc
  6159. * src/AbstractSingleDiskAdaptor.h
  6160. * src/DiskAdaptor.h
  6161. * src/MultiDiskAdaptor.cc
  6162. * src/MultiDiskAdaptor.h
  6163. * test/MultiDiskAdaptorTest.cc
  6164. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6165. Added a constuctor that receives struct timeval.
  6166. Added operator<.
  6167. * src/TimeA2.cc
  6168. * src/TimeA2.h
  6169. * test/TimeTest.cc
  6170. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6171. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  6172. * src/CookieParser.cc
  6173. * test/CookieParserTest.cc
  6174. * test/HttpResponseTest.cc
  6175. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6176. Implmented the functions to parse date.
  6177. * src/TimeA2.cc
  6178. * src/TimeA2.h
  6179. * test/TimeTest.cc
  6180. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6181. Added "Firefox3 Cookie" feature to FeatureConfig
  6182. * src/FeatureConfig.cc
  6183. * src/FeatureConfig.h
  6184. * test/FeatureConfigTest.cc
  6185. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6186. Bump up version number to 0.16.0b
  6187. * configure.ac
  6188. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6189. Use pkg-config if is is available.
  6190. * m4/openssl.m4
  6191. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6192. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  6193. * src/BtAnnounce.h
  6194. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6195. If an error occurred with a URI, remove identical URI from remaining
  6196. URI list because it is likely that same error occurred in the end and it
  6197. is waste of time.
  6198. * src/AbstractCommand.cc
  6199. * src/RequestGroup.cc
  6200. * src/RequestGroup.h
  6201. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6202. Removed wrong comment.
  6203. * src/DefaultPeerStorage.cc
  6204. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6205. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  6206. Added return value of getpid() to argument of srand() to achieve more
  6207. randomized value.
  6208. * src/SimpleRandomizer.cc
  6209. * src/SimpleRandomizer.h
  6210. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6211. Contact tracker frequently when the number of connections are 0 and
  6212. download is not finished yet.
  6213. * src/ActivePeerConnectionCommand.cc
  6214. * src/BtAnnounce.h
  6215. * src/DefaultBtAnnounce.cc
  6216. * src/DefaultBtAnnounce.h
  6217. * test/MockBtAnnounce.h
  6218. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6219. Moved threshold values to UTPexExtensionMessage.
  6220. * src/DefaultBtInteractive.cc
  6221. * src/Peer.cc
  6222. * src/Peer.h
  6223. * src/UTPexExtensionMessage.cc
  6224. * src/UTPexExtensionMessage.h
  6225. * test/UTPexExtensionMessageTest.cc
  6226. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6227. Added _incoming member to Peer class and made it true if the peer
  6228. initiated connection. Don't add those peer to UTPex message.
  6229. If extended handshake is received, assign _incoming to false.
  6230. * src/DefaultBtInteractive.cc
  6231. * src/HandshakeExtensionMessage.cc
  6232. * src/Peer.cc
  6233. * src/Peer.h
  6234. * src/PeerListenCommand.cc
  6235. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6236. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  6237. Encoding Decoder. Removed size threshold for turning off on the fly
  6238. inflation because resulting file may or may not be inflated depending
  6239. on the file size and I think it is not expected by users.
  6240. This change fixes segmentation fault when Metalink file contains gzipped
  6241. file and its filesize is provided.
  6242. * src/HttpResponseCommand.cc
  6243. * src/HttpResponseCommand.h
  6244. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6245. Made Cookie immutable.
  6246. * src/Cookie.cc
  6247. * src/Cookie.h
  6248. * src/CookieParser.cc
  6249. * src/CookieParser.h
  6250. * src/CookieStorage.cc
  6251. * test/CookieParserTest.cc
  6252. * test/CookieStorageTest.cc
  6253. * test/NsCookieParserTest.cc
  6254. * test/Sqlite3MozCookieParserTest.cc
  6255. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6256. Removed CookieBox, CookieBoxFactory.
  6257. * src/CookieBox.cc
  6258. * src/CookieBox.h
  6259. * src/CookieBoxFactory.cc
  6260. * src/CookieBoxFactory.h
  6261. * src/Makefile.am
  6262. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6263. Use CookieStorage class instead of CookieBox class.
  6264. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  6265. * src/AbstractProxyRequestCommand.cc
  6266. * src/CookieStorage.cc
  6267. * src/DownloadEngine.cc
  6268. * src/DownloadEngine.h
  6269. * src/HttpConnection.cc
  6270. * src/HttpConnection.h
  6271. * src/HttpRequest.cc
  6272. * src/HttpRequest.h
  6273. * src/HttpRequestCommand.cc
  6274. * src/HttpResponse.cc
  6275. * src/HttpResponseCommand.cc
  6276. * src/HttpSkipResponseCommand.cc
  6277. * src/Makefile.am
  6278. * src/MultiUrlRequestInfo.cc
  6279. * src/Request.cc
  6280. * src/Request.h
  6281. * src/main.cc
  6282. * test/AllTest.cc
  6283. * test/CookieStorageTest.cc
  6284. * test/CookieTest.cc
  6285. * test/HttpRequestTest.cc
  6286. * test/HttpResponseTest.cc
  6287. * test/Makefile.am
  6288. * test/NsCookieParserTest.cc
  6289. * test/Sqlite3MozCookieParserTest.cc
  6290. * test/nscookietest.txt
  6291. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6292. Updated
  6293. * test/Cookies.sqlite
  6294. * test/nscookietest.txt
  6295. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6296. Added tests for CookieStorage::load()
  6297. * test/CookieStorageTest.cc
  6298. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6299. Added CookieStorage class which is based on RFC2109 and manages cookies
  6300. more strictly than CookieBox and CookieBoxFactory class.
  6301. * src/CookieStorage.cc
  6302. * src/CookieStorage.h
  6303. * src/Cookie.cc
  6304. * src/Cookie.h
  6305. * test/CookieStorageTest.cc
  6306. * test/CookieTest.cc
  6307. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6308. Fixed the bug that commands are created more than the number of pieces.
  6309. * src/RequestGroup.cc
  6310. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6311. Fixed infinite loop bug in FTP when SIZE command failed.
  6312. * src/FtpNegotiationCommand.cc
  6313. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6314. Removed DirectDiskAdaptorTest.h
  6315. * test/Makefile.am
  6316. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6317. Fixed chunk checksum validation cannot detect trailing garbage data.
  6318. BUG#2074141
  6319. * src/AbstractSingleDiskAdaptor.cc
  6320. * src/AbstractSingleDiskAdaptor.h
  6321. * src/CheckIntegrityEntry.cc
  6322. * src/CheckIntegrityEntry.h
  6323. * src/DiskAdaptor.h
  6324. * src/MultiDiskAdaptor.cc
  6325. * src/MultiDiskAdaptor.h
  6326. * src/RequestGroup.cc
  6327. * test/DirectDiskAdaptorTest.cc
  6328. * test/MultiDiskAdaptorTest.cc
  6329. * test/TestUtil.cc
  6330. * test/TestUtil.h
  6331. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6332. Bump up version number of dht.dat file to 3. In version 3 format, time
  6333. is stored in 64bit, network byte order.
  6334. New build can load old format(version 2) but it saves the file in new
  6335. format. It means once you used new build, your dht.dat becomes
  6336. incompatible with older build.
  6337. * src/DHTRoutingTableDeserializer.cc
  6338. * src/DHTRoutingTableSerializer.cc
  6339. * test/DHTRoutingTableSerializerTest.cc
  6340. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6341. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  6342. * test/Makefile.am
  6343. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6344. Bump up version number of .aria2 control file to 0001.
  6345. New aria2 can still load version 0000 file but it saves the file in
  6346. version 0001 format. It means that new aria2 can resume download
  6347. started by old aria2 but the opposite is not true.
  6348. * src/DefaultBtProgressInfoFile.cc
  6349. * src/DefaultBtProgressInfoFile.h
  6350. * test/DefaultBtProgressInfoFileTest.cc
  6351. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6352. Added ntoh64 and hton64 as inline functions.
  6353. * src/Util.cc
  6354. * test/UtilTest.cc
  6355. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6356. Added sqlite3 depenency and Firefox3 cookie support.
  6357. * README
  6358. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6359. State that firefox3 cookie is supported explicitly in the usage.
  6360. * src/usage_text.h
  6361. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6362. Externalized message.
  6363. * src/RequestGroupMan.cc
  6364. * src/message.h
  6365. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6366. Save temporary file first and rename to the destination on success.
  6367. Added test cases.
  6368. * src/RequestGroupMan.cc
  6369. * test/RequestGroupManTest.cc
  6370. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6371. Fixed the bug that the number of connected peer is exceeding the limit
  6372. (55 by default) in seeding mode.
  6373. Multiplied 0.8 to _maxUploadSpeedLimit.
  6374. * src/ActivePeerConnectionCommand.cc
  6375. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6376. Clear table item.
  6377. * src/Dictionary.cc
  6378. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6379. Fixed error handling of lseek.
  6380. * src/AbstractDiskWriter.cc
  6381. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6382. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  6383. style cookie file.
  6384. * src/usage_text.h
  6385. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6386. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  6387. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  6388. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  6389. * src/Util.cc
  6390. * src/Util.h
  6391. * src/CookieParser.cc
  6392. * test/UtilTest.cc
  6393. * test/CookieParserTest.cc
  6394. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6395. Separate the implementation to load old mozilla format of cookie to
  6396. NsCookieParser class.
  6397. * src/CookieBoxFactory.cc
  6398. * src/CookieBoxFactory.h
  6399. * src/NsCookieParser.cc
  6400. * src/NsCookieParser.h
  6401. * test/NsCookieParserTest.cc
  6402. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6403. Made parse() const
  6404. * src/Sqlite3MozCookieParser.cc
  6405. * src/Sqlite3MozCookieParser.h
  6406. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6407. Added firefox3 cookie support based on the patch submitted by
  6408. tizianomueller.
  6409. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  6410. this functionality.
  6411. * configure.ac
  6412. * m4/sqlite3.m4
  6413. * src/CookieBoxFactory.cc
  6414. * src/CookieBoxFactory.h
  6415. * src/Makefile.am
  6416. * src/Makefile.in
  6417. * src/Sqlite3MozCookieParser.cc
  6418. * src/Sqlite3MozCookieParser.h
  6419. * src/main.cc
  6420. * test/CookieBoxFactoryTest.cc
  6421. * test/Makefile.am
  6422. * test/Makefile.in
  6423. * test/Sqlite3MozCookieParserTest.cc
  6424. * test/badcookies.sqlite
  6425. * test/cookies.sqlite
  6426. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6427. Added Danish and Greek translations.
  6428. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  6429. Great thanks to all translators.
  6430. * po/LINGUAS
  6431. * po/el.po
  6432. * po/da.po
  6433. * po/es.po
  6434. * po/ca.po
  6435. * po/nn.po
  6436. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6437. Fixed man page: --follow-bittorrent should be --follow-torrent
  6438. * doc/aria2c.1.txt
  6439. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6440. Fixed: numCommand is less than the value specified in -C option.
  6441. * src/RequestGroup.cc
  6442. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6443. Fixed occasional assertion failure in PieceSegment.
  6444. Calling PieceStorage::getMissingPiece(size_t) was missing after
  6445. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  6446. creation of duplicate segments and one of the segment was finished then
  6447. assertion failure was caused.
  6448. * src/SegmentMan.cc
  6449. * test/SegmentManTest.cc
  6450. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6451. Added options to load/save the server's performance/status to a file
  6452. and the timeout to drop their data.
  6453. --server-stat-of=FILE specifies the file to which performance data
  6454. is saved.
  6455. --server-stat-if=FILE specifies the file to read previously saved
  6456. by --server-stat-of option. Might be used with --uri-selector=feedback.
  6457. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  6458. TIMEOUT is specified in seconds and the default value is 24hours.
  6459. * src/MultiUrlRequestInfo.cc
  6460. * src/OptionHandlerFactory.cc
  6461. * src/RequestGroupMan.cc
  6462. * src/RequestGroupMan.h
  6463. * src/ServerStatMan.cc
  6464. * src/ServerStatMan.h
  6465. * src/option_processing.cc
  6466. * src/prefs.cc
  6467. * src/prefs.h
  6468. * test/ServerStatManTest.cc
  6469. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6470. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  6471. * src/ServerStatMan.cc
  6472. * src/ServerStatMan.h
  6473. * test/ServerStatManTest.cc
  6474. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6475. Implemented ServerStatMan::load(...) function and its test case.
  6476. * src/ServerStat.cc
  6477. * src/ServerStat.h
  6478. * src/ServerStatMan.cc
  6479. * test/ServerStatManTest.cc
  6480. * test/ServerStatTest.cc
  6481. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6482. Use time_t instead of int32_t. Use int64_t where milli second is
  6483. expected.
  6484. * src/TimeA2.cc
  6485. * src/TimeA2.h
  6486. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6487. Implemented ServerStatMan::save(...) function and its test case.
  6488. * src/ServerStat.cc
  6489. * src/ServerStat.h
  6490. * src/ServerStatMan.cc
  6491. * src/ServerStatMan.h
  6492. * test/ServerStatManTest.cc
  6493. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6494. Now aria2 uses name attribute in Metalink as local filename in
  6495. BitTorrent downloads. BUG#2033999
  6496. * src/BtContext.h
  6497. * src/BtDependency.cc
  6498. * src/DefaultBtContext.cc
  6499. * src/DefaultBtContext.h
  6500. * src/SingleFileDownloadContext.cc
  6501. * src/SingleFileDownloadContext.h
  6502. * test/BtDependencyTest.cc
  6503. * test/DefaultBtContextTest.cc
  6504. * test/MockBtContext.h
  6505. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6506. Added AC_C_BIGENDIAN
  6507. * src/configure.ac
  6508. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6509. Limited numCommand less than or equal to the number of piece.
  6510. * src/RequestGroup.cc
  6511. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6512. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  6513. directive.
  6514. * test/DefaultPieceStorageTest.cc
  6515. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6516. Fixed memory leak in test code
  6517. * test/AnnounceListTest.cc
  6518. * test/DefaultPeerListProcessorTest.cc
  6519. * test/DefaultPeerStorageTest.cc
  6520. * test/MetaFileUtilTest.cc
  6521. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6522. Fixed wrong argument passing to BitfieldMan::isBitSet()
  6523. * src/DefaultPieceStorage.cc
  6524. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6525. Initialized _directIOAllowed
  6526. * src/MultiDiskAdaptor.cc
  6527. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6528. Fixed memory leak
  6529. * src/GZipDecoder.cc
  6530. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6531. Fixed memory leak
  6532. * src/MetalinkParserStateMachine.cc
  6533. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6534. Fixed memory leak
  6535. * src/Dictionary.cc
  6536. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6537. Fixed memory leak
  6538. * src/IteratableChunkChecksumValidator.h
  6539. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6540. Fixed unmatched malloc/free.
  6541. * src/IteratableChunkChecksumValidator.cc
  6542. * src/IteratableChecksumValidator.cc
  6543. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6544. Removed max chunk size check. This change fixes BUG#2040169
  6545. * src/ChunkedDecoder.cc
  6546. * src/ChunkedDecoder.h
  6547. * test/ChunkedDecoderTest.cc
  6548. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6549. Implemented download speed based URI selection algorithm.
  6550. Introduced new option --uri-selector.
  6551. If --uri-selector=feedback is given, aria2 uses download speed observed
  6552. in the previous downloads and chooses fastest server in the URI list.
  6553. Currently at most 10 URIs are considered to introduce randomeness for
  6554. finding better servers. The speed is average download speed in the
  6555. downloads.
  6556. On the other hand, if --uri-selector=inorder is given, which is default,
  6557. URI is tried in order in URI list.
  6558. The usage text for the new option has not been written yet.
  6559. * src/AbstractCommand.cc
  6560. * src/DownloadCommand.cc
  6561. * src/DownloadEngine.cc
  6562. * src/DownloadEngineFactory.cc
  6563. * src/InOrderURISelector.cc
  6564. * src/InOrderURISelector.h
  6565. * src/OptionHandlerFactory.cc
  6566. * src/PeerStat.h
  6567. * src/RequestGroup.cc
  6568. * src/RequestGroup.h
  6569. * src/RequestGroupMan.cc
  6570. * src/RequestGroupMan.h
  6571. * src/SegmentMan.cc
  6572. * src/SegmentMan.h
  6573. * src/ServerStat.cc
  6574. * src/ServerStat.h
  6575. * src/ServerStatMan.cc
  6576. * src/ServerStatMan.h
  6577. * src/ServerStatURISelector.cc
  6578. * src/ServerStatURISelector.h
  6579. * src/URISelector.h
  6580. * src/option_processing.cc
  6581. * src/prefs.cc
  6582. * src/prefs.h
  6583. * test/InOrderURISelectorTest.cc
  6584. * test/RequestGroupManTest.cc
  6585. * test/ServerStatManTest.cc
  6586. * test/ServerStatURISelectorTest.cc
  6587. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6588. * Release 0.15.1+2
  6589. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6590. Bump up version number to 0.15.1+2
  6591. * configure.ac
  6592. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6593. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  6594. * m4/aria2_arg.m4
  6595. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6596. * Release 0.15.1+1
  6597. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6598. Bump up version number to 0.15.1+1
  6599. * configure.ac
  6600. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6601. Fixed the bug that causes segmentaion fault when resuming download
  6602. using metalink without size tag. Reproducible only using HTTP URI.
  6603. * src/HttpResponseCommand.cc
  6604. * src/FtpNegotiationCommand.cc
  6605. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6606. * Release 0.15.1
  6607. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6608. Updated Bulgarian and French translations, thanks to all translators.
  6609. * po/bg.po
  6610. * po/fr.po
  6611. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6612. Bump up version number to 0.15.1
  6613. * configure.ac
  6614. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6615. Avoid repeated call of gettimeofday() when calculating speed.
  6616. * src/SpeedCalc.cc
  6617. * src/SpeedCalc.h
  6618. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6619. Removed writable check when socket's send buffer is full in BitTorrent
  6620. downloads to lower CPU usage.
  6621. * src/PeerInteractionCommand.cc
  6622. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6623. Fixed broken gzip inflation.
  6624. Turn off segmented downloading if gzip content is smaller than or equal
  6625. to 1MiB and inflate the data on the fly, because HTTP response header
  6626. doesn't contain the length of inflated file we can't determin where
  6627. the chunk of data should be written.
  6628. On the other hand, if gzip content is larger than 1MB, then turn off
  6629. on the fly inflation, because some servers returns "content-type: gzip"
  6630. for *.tgz, *.gz files.
  6631. * src/DownloadCommand.cc
  6632. * src/HttpResponseCommand.cc
  6633. * src/HttpResponseCommand.h
  6634. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6635. Applied tizianomueller's patch to fix compile error.
  6636. * test/BitfieldManTest.cc
  6637. * test/BtRequestMessageTest.cc
  6638. * test/DefaultBtContextTest.cc
  6639. * test/DefaultDiskWriterTest.cc
  6640. * test/DefaultPieceStorageTest.cc
  6641. * test/HttpHeaderProcessorTest.cc
  6642. * test/HttpResponseTest.cc
  6643. * test/Metalink2RequestGroupTest.cc
  6644. * test/MetalinkParserControllerTest.cc
  6645. * test/MetalinkProcessorTest.cc
  6646. * test/PeerSessionResourceTest.cc
  6647. * test/UtilTest.cc
  6648. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6649. * Release 0.15.0
  6650. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6651. Reordered src files in POTFILES.in so that usage text appears first.
  6652. * po/POTFILES.in
  6653. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6654. Bump up version number to 0.15.0
  6655. * configure.ac
  6656. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6657. Added Bulgarian translation.
  6658. Updated Catalan, Spanish, French and Japanese translations.
  6659. Thanks to all translators.
  6660. * po/LINGUAS
  6661. * po/bg.po
  6662. * po/ca.po
  6663. * po/es.po
  6664. * po/fr.po
  6665. * po/ja.po
  6666. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6667. Updated feature list. Added libz for dependency section.
  6668. Added a description about unit testing using CppUnit.
  6669. * README
  6670. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6671. Added a test for libz. Quoted where it is necessary.
  6672. * build_test.sh
  6673. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6674. Added GZip to `Enabled Features' list.
  6675. * src/FeatureConfig.cc
  6676. * src/FeatureConfig.h
  6677. * test/FeatureConfigTest.cc
  6678. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6679. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  6680. the transfer has not yet started.
  6681. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  6682. * src/SegmentMan.cc
  6683. * src/SegmentMan.h
  6684. * test/SegmentManTest.cc
  6685. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6686. Cache last calculated average download/upload speed.
  6687. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  6688. cached value.
  6689. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  6690. * src/PeerStat.h
  6691. * src/SpeedCalc.cc
  6692. * src/SpeedCalc.h
  6693. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6694. Call parseUrl directly.
  6695. * src/Request.cc (resetUrl)
  6696. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6697. Supported absolute/relative path in Location header field.
  6698. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  6699. * src/HttpHeader.cc
  6700. * src/HttpHeader.h
  6701. * src/HttpResponse.cc
  6702. * src/HttpSkipResponseCommand.cc
  6703. * src/Request.cc
  6704. * test/HttpHeaderTest.cc
  6705. * test/HttpResponseTest.cc
  6706. * test/RequestTest.cc
  6707. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6708. Changed help text for --load-cookie option.
  6709. * doc/aria2c.1.txt
  6710. * src/usage_text.h
  6711. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6712. Regenerated test/Makefile.in to remove stale ChangeLog.
  6713. * test/Makefile.in
  6714. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6715. Updated po files.
  6716. * po/aria2c.pot
  6717. * po/*.po
  6718. * po/*.gmo
  6719. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6720. Bump up version number to 0.15.0b
  6721. * configure.ac
  6722. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6723. Externalize messages.
  6724. * src/RequestGroupMan.cc
  6725. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  6726. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6727. Use File::exists() instead of File::isFile() to allow non-regular file
  6728. such as block special files.
  6729. * src/AbstractDiskWriter.cc
  6730. * src/MultiDiskWriter.cc
  6731. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6732. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  6733. * src/gai_strerror.h
  6734. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6735. Fixed compile error. Thanks gknauf for the patch.
  6736. * src/asctime_r.c
  6737. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6738. Included asctime_r.h from a2time.h.
  6739. * src/a2time.h
  6740. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6741. Added a message "aria2 doesn't verify signature" to log message when
  6742. signature file is saved.
  6743. * src/RequestGroupMan.cc
  6744. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6745. Added the ability to save signature when download is completed if
  6746. signature is available. The filename of signature file is the path to
  6747. download file followed by ".sig". If it already exists, then signature
  6748. will not be saved.
  6749. * src/RequestGroupMan.cc
  6750. * src/Signature.cc
  6751. * test/SignatureTest.cc
  6752. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6753. Updated the descriptions for --bt-seed-unverified.
  6754. * doc/aria2c.1
  6755. * doc/aria2c.1.html
  6756. * doc/aria2c.1.txt
  6757. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6758. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  6759. that this is not going to verify files using piece hashes.
  6760. * src/HelpItemFactory.cc
  6761. * src/OptionHandlerFactory.cc
  6762. * src/RequestGroup.cc
  6763. * src/option_processing.cc
  6764. * src/prefs.cc
  6765. * src/prefs.h
  6766. * src/usage_text.h
  6767. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6768. Added the ability to retrieve signature from Metalink file.
  6769. A retrieved signature is stored in Signature class and it is held by
  6770. DownloadContext class. Note that aria2 doesn't verify signature.
  6771. * src/DownloadContext.cc
  6772. * src/DownloadContext.h
  6773. * src/Makefile.am
  6774. * src/Makefile.in
  6775. * src/Metalink2RequestGroup.cc
  6776. * src/MetalinkEntry.cc
  6777. * src/MetalinkEntry.h
  6778. * src/MetalinkParserController.cc
  6779. * src/MetalinkParserController.h
  6780. * src/MetalinkParserStateMachine.cc
  6781. * src/MetalinkParserStateMachine.h
  6782. * src/Signature.cc
  6783. * src/Signature.h
  6784. * src/SignatureMetalinkParserState.cc
  6785. * src/SignatureMetalinkParserState.h
  6786. * src/VerificationMetalinkParserState.cc
  6787. * src/VerificationMetalinkParserState.h
  6788. * test/Metalink2RequestGroupTest.cc
  6789. * test/MetalinkParserControllerTest.cc
  6790. * test/MetalinkProcessorTest.cc
  6791. * test/test.xml
  6792. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6793. Close DiskAdaptor after renaming file.
  6794. * src/RequestGroup.cc
  6795. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6796. Corrected indentation
  6797. * src/DefaultBtProgressInfoFile.cc
  6798. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6799. Moved the calls of std::ios::exceptions() inside of try-catch block
  6800. because if an error occurred in constructor of std::fstream, then
  6801. exception is thrown immediately when std::ios::exceptions() is called
  6802. which results unhandled exception and aria2c aborts.
  6803. * src/DefaultBtProgressInfoFile.cc
  6804. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6805. Added the test for the previous change in DefaultBtContext.cc
  6806. * test/DefaultBtContextTest.cc
  6807. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6808. Fixed the bug that causes infinite loop when the number of pieces are
  6809. fewer than allowed fast set size which is 10 by default.
  6810. * src/DefaultBtContext.cc
  6811. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6812. Updated the descriptions for -j, -s. Added --bt-seed.
  6813. * doc/aria2c.1
  6814. * doc/aria2c.1.html
  6815. * doc/aria2c.1.txt
  6816. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6817. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  6818. aria2 seeds previously downloaded files without validating piece hashs.
  6819. * src/HelpItemFactory.cc
  6820. * src/OptionHandlerFactory.cc
  6821. * src/RequestGroup.cc
  6822. * src/option_processing.cc
  6823. * src/prefs.cc
  6824. * src/prefs.h
  6825. * src/usage_text.h
  6826. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6827. Updated DESCRIPTION of man page.
  6828. * doc/aria2c.1
  6829. * doc/aria2c.1.html
  6830. * doc/aria2c.1.txt
  6831. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6832. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  6833. Don't define `struct addrinfo' when __sun is defined.
  6834. * src/getaddrinfo.h
  6835. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6836. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  6837. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  6838. second argument is of type `struct _stati64'. Otherwise it is defined as
  6839. `struct stat'.
  6840. * src/AbstractDiskWriter.cc
  6841. * src/File.cc
  6842. * src/File.h
  6843. * src/a2io.h
  6844. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6845. Fixed the compile error in hurd-i386
  6846. See the original bug report:
  6847. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  6848. * src/a2io.h
  6849. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6850. Code cleanup.
  6851. * src/PeerAbstractCommand.cc
  6852. * src/PeerAbstractCommand.h
  6853. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6854. Removed TransferEncoding.
  6855. * src/DownloadCommand.cc
  6856. * src/DownloadCommand.h
  6857. * src/HttpResponseCommand.cc
  6858. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6859. Updated po files.
  6860. * po/aria2c.pot
  6861. * po/*.po
  6862. * po/*.gmo
  6863. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6864. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  6865. * src/A2STR.cc
  6866. * src/A2STR.h
  6867. * src/ChunkedDecoder.cc
  6868. * src/ChunkedDecoder.h
  6869. * src/ChunkedEncoding.cc: Removed
  6870. * src/ChunkedEncoding.h: Removed
  6871. * src/DownloadCommand.cc
  6872. * src/DownloadCommand.h
  6873. * src/HttpDownloadCommand.cc
  6874. * src/HttpResponse.cc
  6875. * src/HttpResponse.h
  6876. * src/HttpResponseCommand.cc
  6877. * src/HttpSkipResponseCommand.cc
  6878. * src/HttpSkipResponseCommand.h
  6879. * src/Makefile.am
  6880. * src/TransferEncoding.h: Removed
  6881. * test/ChunkedDecoderTest.cc
  6882. * test/ChunkedEncodingTest.cc: Removed
  6883. * test/HttpResponseTest.cc
  6884. * test/Makefile.am
  6885. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6886. Use append instead of insert.
  6887. * src/GZipDecoder.cc
  6888. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6889. Updated doc
  6890. * src/Decoder.h
  6891. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6892. Updated usage text for -s option.
  6893. * src/usage_text.h
  6894. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6895. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  6896. * src/Request.cc
  6897. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6898. Cleaned up configure.ac.
  6899. * configure.ac
  6900. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6901. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  6902. AC_ARG_ENABLE.
  6903. * configure.ac
  6904. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6905. Added gzip, deflate decoding support in HTTP using libz. If compiled
  6906. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  6907. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  6908. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  6909. fly and writes decoded data to a local disk.
  6910. * README
  6911. * README.html
  6912. * configure.ac
  6913. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  6914. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  6915. * m4/libz.m4
  6916. * src/Decoder.h
  6917. * src/DownloadCommand.cc
  6918. * src/DownloadCommand.h
  6919. * src/Exception.h
  6920. * src/GZipDecoder.cc
  6921. * src/GZipDecoder.h
  6922. * src/HttpHeader.cc
  6923. * src/HttpHeader.h
  6924. * src/HttpRequest.cc
  6925. * src/HttpRequest.h
  6926. * src/HttpResponse.cc
  6927. * src/HttpResponse.h
  6928. * src/HttpResponseCommand.cc
  6929. * src/Makefile.am
  6930. * test/GZipDecoderTest.cc
  6931. * test/HttpRequestTest.cc
  6932. * test/HttpResponseTest.cc
  6933. * test/Makefile.am
  6934. * test/Makefile.in
  6935. * test/gzip_decode_test.gz
  6936. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6937. Clarified usage of -j option.
  6938. * src/usage_text.h
  6939. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6940. Disabled getting size from the response of RETR.
  6941. If SIZE command failed, then disable resuming and segmented downloading.
  6942. * src/FtpConnection.cc
  6943. * src/FtpConnection.h
  6944. * src/FtpNegotiationCommand.cc
  6945. * src/FtpNegotiationCommand.h
  6946. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6947. Use digits to find first byte of file size, which makes the intention
  6948. of the code clearer.
  6949. * src/FtpConnection.cc
  6950. Don't call validateTotalLength() when size is 0.
  6951. * src/FtpNegotiationCommand.cc
  6952. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6953. Updated po files.
  6954. * po/aria2c.pot
  6955. * po/*.gmo
  6956. * po/*.po
  6957. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6958. Clarified usage text for --split option.
  6959. * src/usage_text.h
  6960. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6961. Bump up version number to 0.15.0dev. "dev" means "development"
  6962. version, which means I started the development of the next release!
  6963. * src/configure.ac
  6964. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6965. If FTP server returns negative response with REST raw command and
  6966. requested range is not 0, throw exception. If requested range is 0,
  6967. continue download a file from 0 byte.
  6968. * src/FtpNegotiationCommand.cc
  6969. * src/FtpNegotiationCommand.h
  6970. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6971. Supported FTP server which don't recognize SIZE raw command.
  6972. If SIZE raw command is failed, aria2 will try to get file size
  6973. from the response of RETR raw command. If both attempts are failed,
  6974. then resuming and segmented downloading are disabled.
  6975. * src/FtpConnection.cc
  6976. * src/FtpConnection.h
  6977. * src/FtpNegotiationCommand.cc
  6978. * src/FtpNegotiationCommand.h
  6979. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6980. * Release 0.14.0+1
  6981. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6982. Bump up version number to 0.14.0+1
  6983. * src/configure.ac
  6984. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6985. Fixed the code that refers static member variable from non-static
  6986. context.
  6987. * src/DefaultPeerStorage.cc
  6988. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6989. * Release 0.14.0
  6990. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6991. Added build test script
  6992. * build_test.sh
  6993. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6994. Updated ja.po
  6995. * src/ja.po
  6996. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6997. Bump up version number to 0.14.0
  6998. * src/configure.ac
  6999. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7000. Updated ja.po and fr.po. Great thanks for french translators and
  7001. Sebastien WILLEMIJNS.
  7002. * po/fr.po
  7003. * po/ja.po
  7004. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7005. Added configure option to enable/disable epoll support.
  7006. * configure.ac
  7007. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7008. Updated man page.
  7009. * doc/aria2c.1.txt
  7010. * doc/aria2c.1
  7011. * doc/aria2c.1.html
  7012. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7013. Added missing default value '5' to the usage of --split option.
  7014. * src/HelpItemFactory.cc
  7015. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7016. Filled up pieces based on the number of missing blocks, rather than
  7017. simplay the number of piece * block length.
  7018. * src/BtRequestFactory.h
  7019. * src/DefaultBtInteractive.cc
  7020. * src/DefaultBtInteractive.h
  7021. * src/DefaultBtRequestFactory.cc
  7022. * src/DefaultBtRequestFactory.h
  7023. * src/Piece.cc
  7024. * src/Piece.h
  7025. * test/BitfieldManTest.cc
  7026. * test/DefaultBtRequestFactoryTest.cc
  7027. * test/MockBtRequestFactory.h
  7028. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7029. Made _epEvents a member variable.
  7030. * src/DownloadEngine.cc
  7031. * src/DownloadEngine.h
  7032. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7033. Cancel download if http redirect is bounded more than 20 times.
  7034. * src/AbstractCommand.cc
  7035. * src/HttpSkipResponseCommand.cc
  7036. * src/Request.cc
  7037. * src/Request.h
  7038. * test/RequestTest.cc
  7039. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7040. Fixed unhandled exception(removed keyword `new').
  7041. * src/SocketCore.cc (initEPOLL)
  7042. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7043. Removed visit(const MetaEntry*)
  7044. * src/MetaEntryVisitor.h:
  7045. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  7046. and made them virtual.
  7047. * src/BencodeVisitor.h
  7048. * src/BencodeVisitor.cc
  7049. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7050. Updated po files.
  7051. * po/aria2c.pot
  7052. * po/*.po
  7053. * po/*.gmo
  7054. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7055. Moved the call setWriteCheckSocket inside the previous clause to reduce
  7056. the number of socket to watch out.
  7057. * src/PeerInteractionCommand.cc
  7058. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7059. When there is not enough space in disk when writing a chunk of data,
  7060. aria2 now prints the message to the console to warn user and aborts
  7061. its download. Not all downloads are canceled because some downloads
  7062. may use another disk or partition. BUG#1640332
  7063. * src/AbstractDiskWriter.cc
  7064. * src/PeerAbstractCommand.cc
  7065. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  7066. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  7067. setHaltRequested(true) to cancel download.
  7068. * src/PeerInteractionCommand.h
  7069. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7070. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  7071. socket from int to sock_t as sockets are unsigned in Windows.
  7072. For AsyncNameResolver, DownloadEngine, I did additional modification
  7073. for the portion of the code changed according to epoll support.
  7074. I defined sock_t in a2netcompat.h to use sock_t without including
  7075. SocketCore.h.
  7076. * src/AsyncNameResolver.cc
  7077. * src/AsyncNameResolver.h
  7078. * src/DownloadEngine.cc
  7079. * src/DownloadEngine.h
  7080. * src/SocketCore.cc
  7081. * src/SocketCore.h
  7082. * src/a2netcompat.h
  7083. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7084. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  7085. changes in the patch were applied.
  7086. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  7087. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  7088. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  7089. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7090. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  7091. a2io.h and common.h were modified.
  7092. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  7093. MinGW.
  7094. * src/common.h: Changed off_t to 64 bit in MinGW.
  7095. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7096. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7097. only a2netcompat.h is modified.
  7098. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  7099. directives.
  7100. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7101. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7102. only gai_strerror.h is modified.
  7103. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  7104. winsock errors in MinGW.
  7105. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7106. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  7107. follow sources are applied.
  7108. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  7109. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  7110. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  7111. I included locale.h from Platform.cc.
  7112. * src/main.cc: Moved common setup/teardown code to Platform class.
  7113. * test/AllTest.cc: Use Platform class.
  7114. Set locale to C in AllTest.cc to prevent the messages to be localized.
  7115. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7116. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  7117. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  7118. * test/HttpRequestTest.cc: Casted to off_t where it should.
  7119. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7120. Applied Ross's aria2-0.13.2+1-mingw.patch and
  7121. aria2-0.13.2+1-mingw-2.patch.
  7122. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  7123. systems which don't have termious.h. I moved the directive inside of
  7124. if(isTTY) { ... clause so that line is wiped out without termious.h.
  7125. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  7126. anyway.
  7127. * src/asctime_r.h
  7128. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  7129. I added 2nd argument to the prototype declaration.
  7130. * src/StringFormat.cc: Get rid of vasprintf.
  7131. * src/getaddrinfo.h: Fixed constants.
  7132. * configure.ac: Added the check for asctime_r function.
  7133. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  7134. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7135. Added writable test for Socket when the sending message is in progress.
  7136. Usually the sending message is piece message. Without wriable check,
  7137. upload latency is dropped to more than 1sec.
  7138. * src/PeerInteractionCommand.cc
  7139. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7140. Create only requested files and files which shares a piece with
  7141. requested file in multi-torrent downloads. Directory structures are
  7142. also created in the same rule.
  7143. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  7144. DiskWriterEntry as in the previous implementation.
  7145. * src/MultiDiskWriter.cc
  7146. * src/MultiFileAllocationIterator.cc
  7147. * src/MultiFileAllocationIterator.h
  7148. * test/MultiFileAllocationIteratorTest.cc
  7149. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7150. Commented out -lprofiler
  7151. * src/Makefile.am
  7152. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7153. Bump up version number to 0.14.0b.
  7154. * src/configure.ac
  7155. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7156. Actively establish connection to peers in seeding, when peer cache
  7157. is not full and max upload speed limit is not reached.
  7158. * src/ActivePeerConnectionCommand.cc
  7159. * src/ActivePeerConnectionCommand.h
  7160. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7161. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  7162. to make room more fleshy, recently found peers.
  7163. Peer::_badConditionStartTime is not used anymore. Consider to remove
  7164. it.
  7165. * src/DefaultPeerStorage.cc
  7166. * test/DefaultPeerStorageTest.cc
  7167. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7168. Returns cached data only when the previous receiveHandshake() is called
  7169. with peek = true.
  7170. * src/PeerConnection.cc (receiveHandshake)
  7171. * src/PeerConnection.h (receiveHandshake)
  7172. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7173. Changed default value of -s option from 1 to 5.
  7174. Also max value of -s option is changed from 5 to 16.
  7175. * src/HelpItemFactory.cc
  7176. * src/OptionHandlerFactory.cc
  7177. * src/option_processing.cc
  7178. * src/usage_text.h
  7179. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7180. Changed -s options behavior. Now it means the number of connections
  7181. made simultaneously in each http/ftp download.
  7182. If 1 URL is specified, the behavior is the same with old implementation.
  7183. If -s N is given and more than N URLs are specified, first N URLs are
  7184. used and remaining URLs are used for backup. If less than N URLs are
  7185. specified, some of URLs are used more than once so that totally N
  7186. connections are made simultaneously.
  7187. * src/main.cc
  7188. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7189. Included missing iosfwd or ostream header.
  7190. * src/RequestGroupMan.cc
  7191. * src/TaggedItem.cc
  7192. * src/TaggedItem.h
  7193. * src/Util.cc
  7194. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7195. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  7196. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  7197. * src/HttpConnection.cc: Included missing sstream.
  7198. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7199. Added --bt-max-open-files option.
  7200. * src/DefaultPieceStorage.cc
  7201. * src/HelpItemFactory.cc
  7202. * src/MultiDiskAdaptor.cc
  7203. * src/MultiDiskAdaptor.h
  7204. * src/OptionHandlerFactory.cc
  7205. * src/option_processing.cc
  7206. * src/prefs.cc
  7207. * src/prefs.h
  7208. * src/usage_text.h
  7209. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7210. Fixed the bug that aria2 aborts when a path to a directory is given
  7211. in command-line.
  7212. * src/ProtocolDetector.cc
  7213. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7214. Limited the number files opened in each BitTorrent download. The default
  7215. value is 100. The option to change this value will be added.
  7216. * src/MultiDiskAdaptor.cc
  7217. * src/MultiDiskAdaptor.h
  7218. * src/MultiFileAllocationIterator.cc
  7219. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7220. Fixed the bug that HTTP downloads don't start with old libraries.
  7221. * src/HttpHeaderProcessor.cc
  7222. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7223. Use empty() instead of size() > 0.
  7224. * src/HttpConnection.cc
  7225. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7226. Drop connection if the incoming peer ID is the same with localhost's
  7227. one. The previous implementation drops connection when incoming peer's
  7228. IP address is the same with localhost's one.
  7229. * src/PeerListenCommand.cc
  7230. * src/DefaultBtInteractive.cc
  7231. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7232. Returns cached data without checking whether socket is readable
  7233. if the cache is available.
  7234. * src/PeerConnection.cc (receiveHandshake)
  7235. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7236. Included stdint.h
  7237. * src/common.h
  7238. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7239. Removed duplicate HAVE_GETTIMEOFDAY
  7240. * src/Makefile.am
  7241. * src/Makefile.in
  7242. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7243. Use interval as a minInterval when minInterval is not supplied.
  7244. * src/DefaultBtAnnounce.cc
  7245. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7246. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  7247. attempt is failed, then 2nd attempt get kicked out more quickly.
  7248. And it is now static const member of DefaultBtAnnounce.
  7249. * src/DefaultBtAnnounce.h
  7250. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7251. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  7252. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  7253. * src/ActivePeerConnectionCommand.cc
  7254. * src/BtConstants.h
  7255. * src/BtRuntime.h
  7256. * src/DHTGetPeersCommand.cc
  7257. * src/DefaultBtAnnounce.cc
  7258. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  7259. BtRuntime::MAX_PEERS.
  7260. * src/DefaultPeerStorage.h
  7261. * src/InitiatorMSEHandshakeCommand.cc
  7262. * src/PeerInitiateConnectionCommand.cc
  7263. * src/PeerInteractionCommand.cc
  7264. * src/PeerReceiveHandshakeCommand.cc
  7265. * src/TrackerWatcherCommand.cc
  7266. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7267. Always Connect to _numNewConnection
  7268. * src/ActivePeerConnectionCommand.cc
  7269. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7270. Made `begin' unsigned int.
  7271. * src/GrowSegment.h
  7272. * src/Piece.cc
  7273. * src/Piece.h
  7274. * src/PiecedSegment.cc
  7275. * src/PiecedSegment.h
  7276. * src/Segment.h
  7277. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7278. Calculate piece hash when data is arrived if the data is arrived in
  7279. order. This removes additional read operation for hash calculation.
  7280. If the data is arrived in out of order, the hash is calucated when the
  7281. piece is completed. This is the same behavior as the old implementation.
  7282. * src/BtPieceMessage.cc
  7283. * src/DefaultBtProgressInfoFile.cc
  7284. * src/DefaultPieceStorage.cc
  7285. * src/DownloadCommand.cc
  7286. * src/DownloadCommand.h
  7287. * src/DownloadEngine.cc
  7288. * src/GrowSegment.cc
  7289. * src/GrowSegment.h
  7290. * src/Piece.cc
  7291. * src/Piece.h
  7292. * src/PiecedSegment.cc
  7293. * src/PiecedSegment.h
  7294. * src/Segment.h
  7295. * test/PieceTest.cc
  7296. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7297. Try to keep the ordering of outgoing piece message.
  7298. * src/DefaultBtMessageDispatcher.cc
  7299. (DefaultBtMessageDispatcher::sendMessages)
  7300. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7301. Fixed busy loop when error/hup epoll events occur.
  7302. * src/AbstractCommand.cc
  7303. * src/PeerAbstractCommand.cc
  7304. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7305. Added --bt-request-peer-speed-limit option, which was a constant
  7306. SLOW_SPEED_THRESHOLD.
  7307. * src/ActivePeerConnectionCommand.cc
  7308. * src/ActivePeerConnectionCommand.h
  7309. * src/BtConstants.h
  7310. * src/HelpItemFactory.cc
  7311. * src/OptionHandlerFactory.cc
  7312. * src/PeerReceiveHandshakeCommand.cc
  7313. * src/option_processing.cc
  7314. * src/prefs.cc
  7315. * src/prefs.h
  7316. * src/usage_text.h
  7317. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7318. Removed repeated call of getTopDirPath(). Instead, call it once and
  7319. cache the result.
  7320. * src/MultiDiskAdaptor.cc
  7321. * src/MultiDiskAdaptor.h
  7322. (mkdir, openFile, initAndOpenFile, openExistingFile)
  7323. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7324. Fixed compile error on debian etch.
  7325. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  7326. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  7327. it is undefined.
  7328. * src/Util.cc (ULLONG_MAX)
  7329. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7330. Added epoll support. Use epoll if it is available. If not, use select.
  7331. When async dns is enabled in compile time, epoll support is enabled
  7332. only when aria2 is built with c-ares. This condition statement is
  7333. defined in a2io.h.
  7334. Currently aria2 supports both c-ares and ares, but ares is maintained
  7335. for quite a while and debian already has c-ares package, ares support
  7336. will be dropped in the future version.
  7337. * configure.ac
  7338. * src/AbstractCommand.cc
  7339. * src/AsyncNameResolver.cc
  7340. * src/AsyncNameResolver.h
  7341. * src/Command.cc
  7342. * src/Command.h
  7343. * src/DownloadEngine.cc
  7344. * src/DownloadEngine.h
  7345. * src/PeerAbstractCommand.cc
  7346. * src/SocketCore.cc
  7347. * src/SocketCore.h
  7348. * src/a2io.h
  7349. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7350. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  7351. directive.
  7352. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7353. Do not do write operation to /dev/null file.
  7354. * src/LogFactory.cc
  7355. * src/SimpleLogger.cc
  7356. Replaced vasprintf with vsnprintf
  7357. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7358. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7359. * src/BtRequestMessage.cc
  7360. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  7361. for segmentation fault caused by previous commit.
  7362. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7363. Reduced the usage of gettimeofday().
  7364. * src/DefaultBtMessageDispatcher.cc
  7365. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  7366. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7367. * src/RequestSlot.cc
  7368. * src/RequestSlot.h
  7369. (RequestSlot::isTimeout)
  7370. Made RequestSlot have a reference to Piece object to avoid find
  7371. Piece repeatedly.
  7372. * src/DefaultBtMessageDispatcher.cc
  7373. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7374. * src/RequestSlot.cc
  7375. * src/RequestSlot.h
  7376. (RequestSlot::getPiece)
  7377. * test/DefaultBtMessageDispatcherTest.cc
  7378. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7379. * src/TimeA2.cc
  7380. * src/TimeA2.h
  7381. (Time::difference): New function.
  7382. (Time::elapsed): Done optimization.
  7383. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7384. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  7385. directive.
  7386. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7387. * src/option_processing.cc: Added missing `defined' keyword to #if
  7388. directive.
  7389. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7390. Bump up version number to 0.13.2+1
  7391. * src/configure.ac
  7392. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7393. Refactored broken outstanding piece handling.
  7394. * src/DefaultPieceStorage.cc
  7395. * src/DefaultPieceStorage.h
  7396. * src/Piece.cc
  7397. * src/Piece.h
  7398. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7399. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  7400. name collision of static variable and predefined macro.
  7401. * src/BtContext.cc
  7402. * src/BtContext.h
  7403. * src/CookieBoxFactory.cc
  7404. * src/CookieBoxFactory.h
  7405. * src/CookieParser.cc
  7406. * src/CookieParser.h
  7407. * src/DefaultBtContext.cc
  7408. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7409. * src/RequestGroup.cc
  7410. (RequestGroup::createInitialCommand): Use empty() instead of size().
  7411. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7412. * Release 0.13.2
  7413. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7414. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  7415. * po/fr.po
  7416. * po/ja.po
  7417. * po/aria2c.pot
  7418. * po/*.po
  7419. * po/*.gmo
  7420. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7421. Bump up version number to 0.13.2
  7422. * src/configure.ac
  7423. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7424. Refactord.
  7425. * src/RequestGroupMan.cc
  7426. (removeStoppedGroup)
  7427. (fillRequestGroupFromReserver)
  7428. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7429. Fixed compile error on Ubuntu.
  7430. * src/BtPieceMessage.cc
  7431. * src/MessageDigestHelper.cc
  7432. * src/Util.cc
  7433. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7434. Fixed compile error when configured with --disable-bittorrent
  7435. * test/DownloadHandlerFactoryTest.cc
  7436. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7437. Done make update-po
  7438. * po/aria2c.pot
  7439. * po/*.po
  7440. * po/*.gmo
  7441. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7442. Bump up version number to 0.13.2rc.
  7443. * src/configure.ac
  7444. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7445. Made option name bold. Updated SYNOPSIS to make it more readable.
  7446. * doc/aria2c.1.txt
  7447. * doc/aria2c.1
  7448. * doc/aria2c.1.html
  7449. * src/version_usage.cc
  7450. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7451. Refactored. Use std::string instead of size and char*.
  7452. * Data.cc
  7453. * Data.h
  7454. * test/Data.cc
  7455. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7456. Added trimSelf(). Rewritten trim() to use trimSelf().
  7457. * Util.cc
  7458. * Util.h
  7459. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7460. * src/ChunkChecksum.h (getChecksum): Return const reference.
  7461. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7462. Fixed compile error when configured with --disable-metalink.
  7463. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  7464. * test/FeatureConfigTest.cc
  7465. * test/DownloadHandlerFactoryTest.cc
  7466. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7467. Fixed compile error when configured with --without-gnutls
  7468. --without-openssl
  7469. * src/main.cc
  7470. * test/DefaultBtProgressInfoFileTest.cc
  7471. * test/SegmentManTest.cc
  7472. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7473. Fixed compile error with OpenSSL.
  7474. * src/IteratableChunkChecksumValidator.cc
  7475. * src/LibsslDHKeyExchange.h
  7476. * src/MessageDigestHelper.cc
  7477. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7478. Revert the default value of --max-concurrent-downloads to 5.
  7479. Revert the default value of --metalink-servers to 5.
  7480. Man pages was also updated.
  7481. * src/option_processing.cc
  7482. * doc/aria2c.1.txt
  7483. * doc/aria2c.1.html
  7484. * doc/aria2c.1
  7485. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7486. Returns const reference:
  7487. DownloadContext::getPieceHash, DownloadContext::getName,
  7488. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  7489. BtContext::getInfoHashAsString,
  7490. * src/BtContext.h
  7491. * src/DefaultBtContext.cc
  7492. * src/DefaultBtContext.h
  7493. * src/DownloadContext.h
  7494. * src/SingleFileDownloadContext.h
  7495. * test/MockBtContext.h
  7496. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7497. * src/RequestGroup.h (getDir): Removed.
  7498. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7499. Returns const reference. The internal urlencode function was optimized
  7500. a little bit.
  7501. * src/Request.cc
  7502. * src/Request.h
  7503. * src/HttpRequest.cc
  7504. * src/HttpRequest.h
  7505. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7506. Defined option name and possible values as std::string to reduce
  7507. temporary string object creation in runtime.
  7508. * src/HelpItemFactory.cc
  7509. * src/LogFactory.cc
  7510. * src/Option.cc
  7511. * src/OptionHandlerFactory.cc
  7512. * src/option_processing.cc
  7513. * src/prefs.cc
  7514. * src/prefs.h
  7515. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7516. Return const reference.
  7517. * src/DownloadHandlerConstants.cc
  7518. * src/DownloadHandlerConstants.h
  7519. (getMetalinkExtensions)
  7520. (getMetalinkContentTypes)
  7521. (getBtExtensions)
  7522. (getBtContentTypes)
  7523. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7524. * src/HttpHeader.cc (get): Rewritten.
  7525. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7526. Make HttpHeader::getFirst(...) return const reference.
  7527. * src/HttpHeader.cc
  7528. * src/HttpHeader.h
  7529. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7530. Use Option::getAsBool(...) instead of Option::get(...) and compare
  7531. it with V_TRUE.
  7532. * src/DefaultPieceStorage.cc
  7533. * src/DownloadCommand.cc
  7534. * src/FtpNegotiationCommand.cc
  7535. * src/HttpRequest.cc
  7536. * src/InitiateConnectionCommand.cc
  7537. * src/RequestGroup.cc
  7538. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7539. Made Option::get(...) return const reference of std::string.
  7540. * src/Option.cc
  7541. * src/Option.h
  7542. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7543. Replaced std:copy with insert.
  7544. * src/DefaultBtMessageDispatcher.cc
  7545. * src/DefaultPieceStorage.cc
  7546. * src/DownloadEngineFactory.cc
  7547. * src/RequestGroup.cc
  7548. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7549. Included SocketCore.h to fix compiler warning.
  7550. * src/InitiateConnectionCommand.cc
  7551. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7552. Put piece selection strategy algorithm to RarestPieceSelector class,
  7553. Added a switch to choose whether randomized selection so that unit
  7554. tests emit same results in, possibly, win32.
  7555. * src/DefaultPieceStorage.cc
  7556. * src/DefaultPieceStorage.h
  7557. * src/RarestPieceSelector.cc
  7558. * src/RarestPieceSelector.h
  7559. * test/DefaultPieceStorageTest.cc
  7560. * test/RarestPieceSelectorTest.cc
  7561. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7562. Don't pool connection if HTTP proxy is enabled.
  7563. * src/FtpFinishDownloadCommand.cc
  7564. * src/FtpNegotiationCommand.cc
  7565. * src/HttpSkipResponseCommand.cc
  7566. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7567. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  7568. * src/AbstractCommand.cc
  7569. * src/AbstractCommand.h
  7570. * src/ActivePeerConnectionCommand.cc
  7571. * src/FtpInitiateConnectionCommand.cc
  7572. * src/HttpInitiateConnectionCommand.cc
  7573. * src/InitiateConnectionCommandFactory.cc
  7574. * src/PeerAbstractCommand.cc
  7575. * src/PeerAbstractCommand.h
  7576. * src/PeerInitiateConnectionCommand.cc
  7577. * src/TrackerWatcherCommand.cc
  7578. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7579. Sort RequestSlot in ascending order and manipulate them using
  7580. lower_bound.
  7581. * src/DefaultBtMessageDispatcher.cc
  7582. * src/DefaultBtMessageDispatcher.h
  7583. (getMessageQueue): Added const qualifier.
  7584. (getRequestSlots): Added const qualifier.
  7585. (sendMessages): Use empty() instead of size().
  7586. (doCancelSendingPieceAction): Use HandleEvent object.
  7587. (doAbortOutstandingRequestAction): Rewritten.
  7588. (doChokedAction): Rewritten.
  7589. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  7590. (isOutstandingRequest): Rewritten.
  7591. (getOutstandingRequest): Rewritten.
  7592. (removeOutstandingRequest): Rewritten.
  7593. (addOutstandingRequest): Rewritten.
  7594. * src/RequestSlot.cc
  7595. * src/RequestSlot.h
  7596. (operator=): Rewritten.
  7597. (operator!=): New function.
  7598. (operator<): New function.
  7599. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7600. * src/DefaultBtRequestFactory.cc
  7601. (doChokedAction): Rewritten.
  7602. (removeCompletedPiece): Rewritten.
  7603. (removeTargetPiece): Rewritten.
  7604. (createRequestMessages): Added the debug log.
  7605. (createRequestMessagesOnEndGame: Added the debug log.
  7606. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7607. Added the debug log message.
  7608. * src/BtPieceMessage.cc (doReceivedAction)
  7609. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7610. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  7611. used lower_bound to process them rather than linear search.
  7612. * src/DHTPeerAnnounceStorage.cc
  7613. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7614. Call subtractPieceStats from ~PeerInteractionCommand only when the
  7615. peer has at least one completed piece.
  7616. * src/Peer.cc
  7617. * src/Peer.h
  7618. * src/PeerInteractionCommand.cc
  7619. * src/PeerSessionResource.cc
  7620. * src/PeerSessionResource.h
  7621. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7622. Removed unnecessary sorting
  7623. * src/DefaultPieceStorage (DefaultPieceStorage)
  7624. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7625. Rewritten the portion of the code that mangaes allowed fast indexes.
  7626. * src/PeerSessionResource.cc
  7627. * src/PeerSessionResource.h
  7628. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7629. Removed the invalid string including '\r' from ru.po and
  7630. did make update-po.
  7631. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7632. Added --log-level and --summary-interval to man page.
  7633. * doc/aria2c.1.txt
  7634. * doc/aria2c.1.html
  7635. * doc/aria2c.1
  7636. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7637. Added --log-level option to specify log level. Log messages under
  7638. the specified level are not output. Default value is `debug'.
  7639. * src/HelpItemFactory.cc
  7640. * src/LogFactory.cc
  7641. * src/LogFactory.h
  7642. * src/Logger.h
  7643. * src/OptionHandlerFactory.cc
  7644. * src/SimpleLogger.cc
  7645. * src/SimpleLogger.h
  7646. * src/main.cc
  7647. * src/option_processing.cc
  7648. * src/prefs.h
  7649. * src/usage_text.h
  7650. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7651. Print download progress summary of all parallel downloads in specified
  7652. interval, default 60 secs. While aria2 could download several files
  7653. in parallel (see -j option), it displayed just first download progress,
  7654. and the other downloads are hidden from the users. This new feature
  7655. prints all downloads currently in-progress to the console so that you
  7656. can check the status of all downloads. The interval can be adjusted
  7657. by --summary-interval option.
  7658. The progress readout is now cut so that all fits in the one line of
  7659. console.
  7660. * src/ConsoleStatCalc.cc
  7661. * src/ConsoleStatCalc.h
  7662. * src/HelpItemFactory.cc
  7663. * src/OptionHandlerFactory.cc
  7664. * src/RequestGroupMan.cc
  7665. * src/RequestGroupMan.h
  7666. * src/main.cc
  7667. * src/option_processing.cc
  7668. * src/prefs.h
  7669. * src/usage_text.h
  7670. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7671. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  7672. * src/DownloadEngine.cc (DownloadEngine)
  7673. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7674. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  7675. defined.
  7676. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  7677. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7678. Use erase+lower_bound+insert instead of sort.
  7679. * src/DefaultPieceStorage.cc (addPieceStats)
  7680. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7681. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  7682. * src/A2STR.cc
  7683. * src/A2STR.h
  7684. * src/OptionParser.cc (parse)
  7685. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7686. Defined fake filename `[tracker.announce]' as static const std::string.
  7687. * src/TrackerWatcherCommand.cc (createRequestGroup)
  7688. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7689. Defined default filename `index.html' as static const std::string
  7690. * src/SingleFileDownloadContext.cc
  7691. * src/SingleFileDownloadContext.h
  7692. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7693. Defined "[MEMORY]" as static const std::string.
  7694. * src/MemoryBufferPreDownloadHandler.cc (execute)
  7695. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7696. Defined control file's version number as static const std::string.
  7697. * src/DefaultBtProgressInfoFile.cc
  7698. * src/DefaultBtProgressInfoFile.h
  7699. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7700. Use Request::METHOD_GET
  7701. * src/RequestGroup.cc (createNextCommandWithAdj)
  7702. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7703. Defined "OK", "ERR", "INPR" as static const std::string
  7704. * src/RequestGroupMan.cc (showDownloadResults)
  7705. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7706. Defined default client used in extended handshake as static const
  7707. std::string
  7708. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  7709. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7710. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  7711. * src/HttpConnection.cc (eraseConfidentialInfo)
  7712. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7713. Defined default ftp user and password as static const std::string
  7714. * src/AuthConfigFactory.cc
  7715. * src/AuthConfigFactory.h
  7716. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7717. Defined strings used in netrc as static const std::string
  7718. * src/Netrc.cc
  7719. * src/Netrc.h
  7720. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7721. Defined HTTP status as static const std::string
  7722. * src/AbstractProxyResponseCommand.cc
  7723. * src/HttpHeader.cc
  7724. * src/HttpHeader.h
  7725. * src/HttpResponse.cc
  7726. * src/HttpResponseCommand.cc
  7727. * src/HttpSkipResponseCommand.cc
  7728. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7729. Defined "\r\n", "A", "I" as static const std::string
  7730. * src/A2STR.cc
  7731. * src/A2STR.h
  7732. * src/FtpConnection.cc
  7733. * src/FtpConnection.h
  7734. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7735. Added COLON_C(".") and used it in Request::parseUrl()
  7736. * src/A2STR.cc
  7737. * src/A2STR.h
  7738. * src/Request.cc (parseUrl)
  7739. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7740. Changed the type of padName from `const std::string&' to `const char*'.
  7741. * src/MSEHandshake.cc (verifyPadLength)
  7742. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7743. Defined "sha1" as static const std::string.
  7744. * src/MetalinkParserController.cc
  7745. * src/MetalinkParserController.h
  7746. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7747. Defined message digest algorithm name as static const std::string
  7748. * src/DHTTokenTracker.cc
  7749. * src/DHTUtil.cc
  7750. * src/DefaultBtContext.cc
  7751. * src/MSEHandshake.cc
  7752. * src/MessageDigestHelper.cc
  7753. * src/Peer.cc
  7754. * src/messageDigest.cc
  7755. * src/messageDigest.h
  7756. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7757. Made string literals used in SAX parser static const std::string.
  7758. * src/FileMetalinkParserState.cc
  7759. * src/FileMetalinkParserState.h
  7760. * src/FilesMetalinkParserState.cc
  7761. * src/FilesMetalinkParserState.h
  7762. * src/InitialMetalinkParserState.cc
  7763. * src/InitialMetalinkParserState.h
  7764. * src/MetalinkMetalinkParserState.cc
  7765. * src/MetalinkMetalinkParserState.h
  7766. * src/PiecesMetalinkParserState.cc
  7767. * src/PiecesMetalinkParserState.h
  7768. * src/ResourcesMetalinkParserState.cc
  7769. * src/ResourcesMetalinkParserState.h
  7770. * src/VerificationMetalinkParserState.cc
  7771. * src/VerificationMetalinkParserState.h
  7772. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7773. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  7774. * src/A2STR.cc
  7775. * src/A2STR.h
  7776. * src/File.cc
  7777. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7778. Defined static const std::string IP("ip"), PORT("port") and use them
  7779. instead of string literals.
  7780. * src/DefaultPeerListProcessor.cc
  7781. * src/DefaultPeerListProcessor.h
  7782. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7783. Made string literals for torrent file processing static const
  7784. std::string.
  7785. * src/BtContext.cc
  7786. * src/BtContext.h
  7787. * src/DefaultBtContext.cc
  7788. * src/DefaultBtContext.h
  7789. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7790. Made string literal for tracker response static const std::string
  7791. * src/BtAnnounce.cc
  7792. * src/BtAnnounce.h
  7793. * src/DefaultBtAnnounce.cc
  7794. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7795. Use DHTMessage::T instead of "t".
  7796. * src/DHTMessageTracker.cc (messageArrived)
  7797. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7798. Made keyName static const. Made trimmed charset static const
  7799. std::string.
  7800. * src/Util.cc (getContentDispositionFilename)
  7801. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7802. Made USER_AGENT const. Made "/" static const std::string.
  7803. * src/A2STR.cc
  7804. * src/A2STR.h
  7805. * src/HttpRequest.cc
  7806. * src/HttpRequest.h
  7807. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7808. Made string listeral to static const std::string:
  7809. "Content-Range", "Content-Length"
  7810. * src/HttpHeader.cc
  7811. * src/HttpHeader.h
  7812. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7813. Made string listeral to static const std::string.
  7814. * src/HttpConnection.cc
  7815. * src/HttpHeader.cc
  7816. * src/HttpHeader.h
  7817. * src/HttpResponse.cc
  7818. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7819. Made string listeral to static const std::string.
  7820. * src/A2STR.cc
  7821. * src/A2STR.h
  7822. * src/SimpleLogger.cc
  7823. * src/SimpleLogger.h
  7824. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7825. Made string literal to static const std::string.
  7826. Rewritten CookieParser::setField.
  7827. * src/A2STR.cc
  7828. * src/A2STR.h
  7829. * src/CookieBoxFactory.cc
  7830. * src/CookieBoxFactory.h
  7831. * src/CookieParser.cc
  7832. * src/CookieParser.h
  7833. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7834. Made string literal to static const std::string
  7835. * src/DHTAbstractMessage.cc
  7836. * src/DHTAnnouncePeerMessage.cc
  7837. * src/DHTAnnouncePeerMessage.h
  7838. * src/DHTAnnouncePeerReplyMessage.cc
  7839. * src/DHTAnnouncePeerReplyMessage.h
  7840. * src/DHTFindNodeMessage.cc
  7841. * src/DHTFindNodeMessage.h
  7842. * src/DHTFindNodeReplyMessage.cc
  7843. * src/DHTFindNodeReplyMessage.h
  7844. * src/DHTGetPeersMessage.cc
  7845. * src/DHTGetPeersMessage.h
  7846. * src/DHTGetPeersReplyMessage.cc
  7847. * src/DHTGetPeersReplyMessage.h
  7848. * src/DHTMessage.cc
  7849. * src/DHTMessage.h
  7850. * src/DHTMessageFactoryImpl.cc
  7851. * src/DHTMessageReceiver.cc
  7852. * src/DHTPingMessage.cc
  7853. * src/DHTPingMessage.h
  7854. * src/DHTPingReplyMessage.cc
  7855. * src/DHTPingReplyMessage.h
  7856. * src/DHTQueryMessage.cc
  7857. * src/DHTQueryMessage.h
  7858. * src/DHTResponseMessage.cc
  7859. * src/DHTResponseMessage.h
  7860. * src/DHTUnknownMessage.cc
  7861. * src/DHTUnknownMessage.h
  7862. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7863. Made string literal to static const std::string
  7864. * src/BtChokeMessage.cc (toString)
  7865. * src/BtHaveAllMessage.cc (toString)
  7866. * src/BtHaveNoneMessage.cc (toString)
  7867. * src/BtInterestedMessage.cc (toString)
  7868. * src/BtNotInterestedMessage.cc (toString)
  7869. * src/BtUnchokeMessage.cc (toString)
  7870. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7871. Replaced "" with static const variable A2STR::NIL.
  7872. Replaced string comparison against "" with std::string::empty().
  7873. Added PROTO_* to Request class and use them as a protocol string
  7874. constant.
  7875. Made "started", "stopped", "completed" static const variable in
  7876. AnnounceList class.
  7877. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7878. Updated translations. Great thanks to translators.
  7879. * po/ca.po
  7880. * po/de.po
  7881. * po/fr.po
  7882. * po/it.po
  7883. * po/ja.po
  7884. * po/ru.po
  7885. * po/zh_CN.po
  7886. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7887. Updated man page; categorized options and fixed typo.
  7888. * doc/aria2c.1.txt
  7889. * doc/aria2c.1.html
  7890. * doc/aria2c.1
  7891. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7892. Removed const ref
  7893. * src/MetalinkEntry.cc (AddProtocolPreference)
  7894. * src/RequestGroup.cc (FindServerHostByHostname)
  7895. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7896. Rewritten Accept-Features handling.
  7897. * src/HttpRequestCommand.cc (createHttpRequest)
  7898. * src/a2functional.h
  7899. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7900. Changed method signature:
  7901. DHTAbstractNodeLookupTask::toEntries
  7902. * src/DHTAbstractNodeLookupTask.cc
  7903. * src/DHTAbstractNodeLookupTask.h
  7904. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7905. Changed method signature:
  7906. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  7907. * src/BtContext.h
  7908. * src/DefaultBtContext.cc
  7909. * src/DefaultBtContext.h
  7910. * src/DefaultBtInteractive.cc
  7911. * test/DefaultBtContextTest.cc
  7912. * test/MockBtContext.h
  7913. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7914. Changed method signature:
  7915. MultiFileAllocationIterator::makeDiskWriterEntries
  7916. * src/MultiFileAllocationIterator.cc
  7917. * src/MultiFileAllocationIterator.h
  7918. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7919. Changed method sinature:
  7920. MetalinkEntry::toFileEntry,
  7921. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  7922. Metalinker::queryEntry
  7923. * src/Metalink2RequestGroup.cc
  7924. * src/MetalinkEntry.cc
  7925. * src/MetalinkEntry.h
  7926. * src/MetalinkHelper.cc
  7927. * src/MetalinkHelper.h
  7928. * src/Metalinker.cc
  7929. * src/Metalinker.h
  7930. * src/main.cc
  7931. * test/MetalinkHelperTest.cc
  7932. * test/MetalinkerTest.cc
  7933. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7934. Changed method sinature:
  7935. RequestGroup::getURIs
  7936. * src/RequestGroup.cc
  7937. * src/RequestGroup.h
  7938. * test/Metalink2RequestGroupTest.cc
  7939. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7940. Changed method signature:
  7941. PeerListProcessor::extractPeer
  7942. * src/CompactPeerListProcessor.cc
  7943. * src/CompactPeerListProcessor.h
  7944. * src/DefaultBtAnnounce.cc
  7945. * src/DefaultPeerListProcessor.cc
  7946. * src/DefaultPeerListProcessor.h
  7947. * src/DelegatingPeerListProcessor.cc
  7948. * src/DelegatingPeerListProcessor.h
  7949. * src/PeerListProcessor.h
  7950. * src/UTPexExtensionMessage.cc
  7951. * test/DefaultPeerListProcessorTest.cc
  7952. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7953. Changed method signature:
  7954. BtRequestFactory::createRequestMessages,
  7955. BtRequestFactory::createRequestMessagesOnEndGame
  7956. * src/BtRequestFactory.h
  7957. * src/DefaultBtInteractive.cc
  7958. * src/DefaultBtRequestFactory.cc
  7959. * src/DefaultBtRequestFactory.h
  7960. * test/DefaultBtRequestFactoryTest.cc
  7961. * test/MockBtRequestFactory.h
  7962. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7963. Changed method signature:
  7964. PieceStorage::getInFlightPieces
  7965. * src/DefaultBtProgressInfoFile.cc
  7966. * src/DefaultPieceStorage.cc
  7967. * src/DefaultPieceStorage.h
  7968. * src/PieceStorage.h
  7969. * src/UnknownLengthPieceStorage.cc
  7970. * src/UnknownLengthPieceStorage.h
  7971. * test/DefaultBtProgressInfoFileTest.cc
  7972. * test/MockPieceStorage.h
  7973. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7974. Changed method signature:
  7975. PostDownloadHandler::getNextRequestGroups
  7976. Metalink2RequestGroup::generate
  7977. RequestGroup::postDownloadProcessing
  7978. * src/BtPostDownloadHandler.cc
  7979. * src/BtPostDownloadHandler.h
  7980. * src/Metalink2RequestGroup.cc
  7981. * src/Metalink2RequestGroup.h
  7982. * src/MetalinkPostDownloadHandler.cc
  7983. * src/MetalinkPostDownloadHandler.h
  7984. * src/PostDownloadHandler.h
  7985. * src/RequestGroup.cc
  7986. * src/RequestGroup.h
  7987. * src/RequestGroupMan.cc
  7988. * src/main.cc
  7989. * test/BtPostDownloadHandlerTest.cc
  7990. * test/Metalink2RequestGroupTest.cc
  7991. * test/MetalinkPostDownloadHandlerTest.cc
  7992. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7993. Rewritten AccRequestGroup
  7994. * src/main.cc
  7995. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7996. Rewritten.
  7997. * src/TaggedItem.cc (toTagString)
  7998. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7999. Rewritten Accept-Features handling.
  8000. * src/HttpRequestCommand.cc (createHttpRequest)
  8001. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8002. Rewritten accept types handling.
  8003. * HttpRequest.cc (createRequest)
  8004. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8005. Rewritten
  8006. * src/FeatureConfig.cc (featureSummary)
  8007. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8008. Changed method signature:
  8009. PeerStorage::getActivePeers
  8010. * src/DHTPeerAnnounceEntry.cc
  8011. * src/DefaultPeerStorage.cc
  8012. * src/DefaultPeerStorage.h
  8013. * src/PeerStorage.h
  8014. * test/DefaultPeerStorageTest.cc
  8015. * test/MockPeerStorage.h
  8016. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8017. Changed method signature:
  8018. DHTPeerAnnounceStorage::getPeers,
  8019. DHTPeerAnnounceEntry::getPeers
  8020. * src/DHTGetPeersMessage.cc
  8021. * src/DHTPeerAnnounceEntry.cc
  8022. * src/DHTPeerAnnounceEntry.h
  8023. * src/DHTPeerAnnounceStorage.cc
  8024. * src/DHTPeerAnnounceStorage.h
  8025. * test/DHTAnnouncePeerMessageTest.cc
  8026. * test/DHTPeerAnnounceEntryTest.cc
  8027. * test/DHTPeerAnnounceStorageTest.cc
  8028. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8029. Changed method signature:
  8030. NameResolver::resolve
  8031. * src/DHTEntryPointNameResolveCommand.cc
  8032. * src/InitiateConnectionCommand.cc
  8033. * src/NameResolver.cc
  8034. * src/NameResolver.h
  8035. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8036. Changed method signature:
  8037. PieceStorage::getAdvertisedPieceIndexes
  8038. * src/DefaultBtInteractive.cc
  8039. * src/DefaultPieceStorage.cc
  8040. * src/DefaultPieceStorage.h
  8041. * src/PieceStorage.h
  8042. * src/UnknownLengthPieceStorage.h
  8043. * test/MockPieceStorage.h
  8044. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8045. Changed method signature:
  8046. SegmentMan::getInFlightSegment
  8047. * src/AbstractCommand.cc
  8048. * src/SegmentMan.cc
  8049. * src/SegmentMan.h
  8050. * test/SegmentManTest.cc
  8051. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8052. Changed method signature:
  8053. DHTAbstractNodeLookupTask::getNodesFromMessage
  8054. * src/DHTAbstractNodeLookupTask.cc
  8055. * src/DHTAbstractNodeLookupTask.h
  8056. * src/DHTNodeLookupTask.cc
  8057. * src/DHTNodeLookupTask.h
  8058. * src/DHTPeerLookupTask.cc
  8059. * src/DHTPeerLookupTask.h
  8060. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8061. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  8062. * src/AbstractCommand.cc
  8063. * src/BtCheckIntegrityEntry.cc
  8064. * src/BtCheckIntegrityEntry.h
  8065. * src/BtFileAllocationEntry.cc
  8066. * src/BtFileAllocationEntry.h
  8067. * src/BtSetup.cc
  8068. * src/BtSetup.h
  8069. * src/CheckIntegrityCommand.cc
  8070. * src/CheckIntegrityEntry.h
  8071. * src/ChecksumCheckIntegrityEntry.cc
  8072. * src/ChecksumCheckIntegrityEntry.h
  8073. * src/DHTSetup.cc
  8074. * src/DHTSetup.h
  8075. * src/DownloadEngine.cc
  8076. * src/FileAllocationCommand.cc
  8077. * src/FileAllocationEntry.h
  8078. * src/RequestGroup.cc
  8079. * src/RequestGroup.h
  8080. * src/RequestGroupMan.cc
  8081. * src/RequestGroupMan.h
  8082. * src/StreamCheckIntegrityEntry.cc
  8083. * src/StreamCheckIntegrityEntry.h
  8084. * src/StreamFileAllocationEntry.cc
  8085. * src/StreamFileAllocationEntry.h
  8086. * src/TrackerWatcherCommand.cc
  8087. * src/a2functional.h
  8088. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8089. Changed method signature:
  8090. BNode::findClosestKNodes, BNode:: enumerateBucket,
  8091. DHTBucket::getGoodNodes,
  8092. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  8093. * src/BNode.cc
  8094. * src/BNode.h
  8095. * src/DHTAbstractNodeLookupTask.cc
  8096. * src/DHTAutoSaveCommand.cc
  8097. * src/DHTBucket.cc
  8098. * src/DHTBucket.h
  8099. * src/DHTBucketRefreshTask.cc
  8100. * src/DHTFindNodeMessage.cc
  8101. * src/DHTGetPeersMessage.cc
  8102. * src/DHTRoutingTable.cc
  8103. * src/DHTRoutingTable.h
  8104. * test/BNodeTest.cc
  8105. * test/DHTBucketTest.cc
  8106. * test/DHTRoutingTableTest.cc
  8107. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8108. In piece selection functions, Pass std::deque<...> by reference rather
  8109. than returning it.
  8110. * src/BitfieldMan.cc
  8111. * src/BitfieldMan.h
  8112. * src/DefaultBtRequestFactory.cc
  8113. * src/DefaultPieceStorage.cc
  8114. * src/Piece.cc
  8115. * src/Piece.h
  8116. * test/BitfieldManTest.cc
  8117. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8118. Implemented rarest piece first piece selection strategy.
  8119. * src/AbstractBtMessage.cc
  8120. * src/AbstractBtMessage.h
  8121. * src/BitfieldMan.cc
  8122. * src/BitfieldMan.h
  8123. * src/BtBitfieldMessage.cc
  8124. * src/BtHaveAllMessage.cc
  8125. * src/BtHaveMessage.cc
  8126. * src/DefaultPieceStorage.cc
  8127. * src/DefaultPieceStorage.h
  8128. * src/PeerInteractionCommand.cc
  8129. * src/PieceStorage.h
  8130. * src/UnknownLengthPieceStorage.h
  8131. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8132. Rewritten readData and writeData.
  8133. * src/MultiDiskAdaptor.cc
  8134. * src/MultiDiskAdaptor.h
  8135. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8136. Move \n out of the message "Usage: ...".
  8137. * src/version_usage.cc
  8138. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8139. Bump up version number to 0.13.2b.
  8140. * configure.ac
  8141. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8142. Added const qualifier to argument Exception& e.
  8143. * src/Logger.h
  8144. * src/SimpleLogger.cc
  8145. * src/SimpleLogger.h
  8146. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8147. Pool connection when CWD, SIZE command fails.
  8148. * src/FtpNegotiationCommand.cc
  8149. * src/FtpNegotiationCommand.h
  8150. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8151. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  8152. * src/HttpResponseCommand.cc
  8153. * src/HttpSkipResponseCommand.cc
  8154. * src/HttpSkipResponseCommand.h
  8155. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8156. Pool connection when a server returns 4xx, 5xx responses.
  8157. * src/HttpNullDownloadCommand.cc
  8158. * src/HttpNullDownloadCommand.h
  8159. * src/HttpResponse.cc
  8160. * src/HttpResponse.h
  8161. * src/HttpResponseCommand.cc
  8162. * src/HttpResponseCommand.h
  8163. * test/HttpResponseTest.cc
  8164. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8165. Print usage when no URL is specifed or bad command-line option is
  8166. specified.
  8167. * src/HelpItemFactory.cc
  8168. * src/help_tags.h
  8169. * src/option_processing.cc
  8170. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8171. Removed duplicate log message.
  8172. * src/AbstractCommand.cc (asyncResolveHostname)
  8173. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8174. Updated man page: --async-dns and --ftp-reuse-connection were added.
  8175. Changed -j option's default value from 5 to 1.
  8176. Added new examples using protocol auto detection feature.
  8177. Removed -T, -M usage where it can be omitted.
  8178. * doc/aria2c.1.txt
  8179. * doc/aria2c.1.html
  8180. * doc/aria2c.1.txt
  8181. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8182. Updated command-line usage text, so that it tells users that they
  8183. can specify any number of torrent files and metalink files in
  8184. command-line.
  8185. * src/version_usage.cc
  8186. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8187. Changed the default value of -j option to 1.
  8188. * src/HelpItemFactory.cc
  8189. * src/option_processing.cc
  8190. * src/usage_text.h
  8191. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8192. Added the ability to reuse connection in FTP and it is enabled by
  8193. default. It can be disabled by --ftp-reuse-connection=false option.
  8194. * src/Command.cc
  8195. * src/DownloadCommand.cc
  8196. * src/FtpDownloadCommand.cc
  8197. * src/FtpDownloadCommand.h
  8198. * src/FtpFinishDownloadCommand.cc
  8199. * src/FtpFinishDownloadCommand.h
  8200. * src/FtpInitiateConnectionCommand.cc
  8201. * src/FtpNegotiationCommand.cc
  8202. * src/FtpNegotiationCommand.h
  8203. * src/HelpItemFactory.cc
  8204. * src/Makefile.am
  8205. * src/Makefile.in
  8206. * src/OptionHandlerFactory.cc
  8207. * src/option_processing.cc
  8208. * src/prefs.h
  8209. * src/usage_text.h
  8210. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8211. Call Command::transitStatus() before calling Command::execute(),
  8212. so that the status change made in execute() is not cleared.
  8213. * src/DownloadEngine.cc
  8214. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8215. Removed forward declaration of SocketCore class.
  8216. * src/HttpDownloadCommand.h
  8217. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8218. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  8219. in InitiateConnectionCommandFactory. They should be set only when
  8220. the protocol is HTTP or HTTPS.
  8221. * src/InitiateConnectionCommandFactory.cc
  8222. * src/RequestGroup.cc
  8223. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8224. Fixed infinite loop in checksum checking.
  8225. * src/IteratableChecksumValidator.cc
  8226. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8227. Set _supportsPersistentConnection to true by default.
  8228. * src/Request.cc
  8229. * src/RequestGroup.cc
  8230. * test/HttpRequestTest.cc
  8231. * test/RequestTest.cc
  8232. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8233. Added timeout to socket pool. The default timeout is 15 seconds,
  8234. which is the same value Apache uses.
  8235. * src/DownloadEngine.cc
  8236. * src/DownloadEngine.h
  8237. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8238. Fixed misuse of multimap::find()
  8239. * src/HttpHeader.cc
  8240. * test/HttpHeaderTest.cc
  8241. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8242. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  8243. option.
  8244. The asynchronous DNS is not capable of IPv6 yet.
  8245. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  8246. least for HTTP download.
  8247. * src/AbstractCommand.cc
  8248. * src/AbstractCommand.h
  8249. * src/AsyncNameResolver.cc
  8250. * src/AsyncNameResolver.h
  8251. * src/DHTEntryPointNameResolveCommand.cc
  8252. * src/DHTEntryPointNameResolveCommand.h
  8253. * src/DownloadEngine.cc
  8254. * src/DownloadEngine.h
  8255. * src/FtpInitiateConnectionCommand.cc
  8256. * src/FtpInitiateConnectionCommand.h
  8257. * src/HelpItemFactory.cc
  8258. * src/HttpInitiateConnectionCommand.cc
  8259. * src/HttpInitiateConnectionCommand.h
  8260. * src/InitiateConnectionCommand.cc
  8261. * src/InitiateConnectionCommand.h
  8262. * src/Makefile.am
  8263. * src/Makefile.in
  8264. * src/NameResolver.cc
  8265. * src/NameResolver.h
  8266. * src/OptionHandlerFactory.cc
  8267. * src/SocketCore.cc
  8268. * src/SocketCore.h
  8269. * src/Util.cc
  8270. * src/Util.h
  8271. * src/option_processing.cc
  8272. * src/prefs.h
  8273. * src/usage_text.h
  8274. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8275. Updated man page: --quiet, --header were added.
  8276. --metalink-servers and --enable-http-keep-alive option were updated.
  8277. * doc/aria2c.1
  8278. * doc/aria2c.1.html
  8279. * doc/aria2c.1.txt
  8280. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8281. Enable HTTP keep-alive by default.
  8282. * src/HelpItemFactory.cc
  8283. * src/option_processing.cc
  8284. * src/usage_text.h
  8285. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8286. Disable http keep-alive if the remote server is not HTTP/1.1.
  8287. * src/HttpConnection.cc
  8288. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8289. Receive content body of 302 response so that the connection can be
  8290. reused later when http keep-alive is enabled.
  8291. * src/HttpNullDownloadCommand.cc
  8292. * src/HttpNullDownloadCommand.h
  8293. * src/HttpResponseCommand.cc
  8294. * src/HttpResponseCommand.h
  8295. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8296. const SharedHandle<Request> -> const SharedHandle<Request>&
  8297. * src/FtpDowndloadCommand.cc
  8298. * src/FtpDowndloadCommand.h
  8299. * src/HttpDownloadCommand.cc
  8300. * src/HttpDownloadCommand.h
  8301. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8302. Fixed the bug that the control file(.aria2 file) is not renamed
  8303. according to tryAutoFileRenaming().
  8304. tryAutoFileRenaming() was rewritten so that if both renamed file and
  8305. its control file exist, use them and continue download.
  8306. The old implementation didn't take into account of control file's
  8307. existence, so basically you couldn't continue download of renamed file.
  8308. * src/BtProgressInfoFile.h
  8309. * src/DefaultBtProgressInfoFile.cc
  8310. * src/DefaultBtProgressInfoFile.h
  8311. * src/NullProgressInfoFile.h
  8312. * src/RequestGroup.cc
  8313. * test/DefaultBtProgressInfoFileTest.cc
  8314. * test/MockBtProgressInfoFile.h
  8315. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8316. Change the default value of --metalink-servers option from `5' to `1'.
  8317. * src/HelpItemFactory.cc
  8318. * src/option_processing.cc
  8319. * src/usage_text.h
  8320. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8321. Reimplemented transparent metalink using Accept request header.
  8322. * src/HttpRequest.cc
  8323. * src/HttpRequest.h
  8324. * src/HttpRequestCommand.cc
  8325. * src/Metalink2RequestGroup.cc
  8326. * src/RequestGroup.cc
  8327. * src/RequestGroup.h
  8328. * test/HttpRequestTest.cc
  8329. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8330. Bump up version number to 0.13.2a
  8331. * configure.ac
  8332. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8333. Updated configure.ac using the result of autoscan.
  8334. * configure.ac
  8335. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8336. Fixed compilation error without gcrypt/openssl.
  8337. * src/DownloadCommand.cc
  8338. * src/DownloadCommand.h
  8339. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8340. Reorganized version information so that it can be displayed in a
  8341. standard terminal screen without scrolling.
  8342. Removed http, ftp from Configuration section, because they are always
  8343. enabled.
  8344. * src/FeatureConfig.cc
  8345. * src/FeatureConfig.h
  8346. * src/main.cc
  8347. * src/messageDigest.cc
  8348. * src/messageDigest.h
  8349. * src/version_usage.cc
  8350. * test/FeatureConfigTest.cc
  8351. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8352. Masked user ID in log.
  8353. * src/FtpConnection.cc (sendUser)
  8354. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8355. Removed query part from filename in HTTP download. The query part means
  8356. the substring after "?" in URL. Firefox seems do the same thing.
  8357. A query part is sometimes very long and not suitable to filename,
  8358. so I think it is better to remove it from filename.
  8359. * src/HttpRequest.cc
  8360. * src/HttpRequest.h
  8361. * src/Request.cc
  8362. * src/Request.h
  8363. * test/HttpRequestTest.cc
  8364. * test/RequestTest.cc
  8365. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8366. Rewritten Exception class. Throw exception object, not its pointer and
  8367. catch by reference, so that remove problematic delete operator for
  8368. catched exception.
  8369. * src/Exception.cc
  8370. * src/Exception.h
  8371. * test/ExceptionTest.cc
  8372. * src/*: All files throwing/catching exception.
  8373. * test/*: All files throwing/catching exception.
  8374. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8375. Now auto protocol detection is enabled without -Z option.
  8376. But there is a important difference between with/without -Z optoin.
  8377. For example, if you type:
  8378. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  8379. then, aria2 interprets there are 3 request groups:
  8380. (1) http://host/file, http://mirror/file <-- multi-source download
  8381. (2) file1.torrent
  8382. (3) file2.metalink
  8383. On the other hand, if you invoke above command with -Z option, it is
  8384. interpreted as 4 request groups:
  8385. (1) http://host/file
  8386. (2) file1.torrent
  8387. (3) file2.metalink
  8388. (4) http://mirror/file
  8389. I think usually user don't mix multi-source URLs and torrent files, so
  8390. there is no big problem here.
  8391. * src/main.cc
  8392. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8393. Fixed the bug that causes segmentaion fault when reading XML containing
  8394. unescapsed character like '&'.
  8395. Also a modification was made which avoids adding unnecessary
  8396. characters stack and appending unused string.
  8397. * src/ExpatMetalinkProcessor.cc
  8398. * src/FileMetalinkParserState.h
  8399. * src/FilesMetalinkParserState.h
  8400. * src/FinMetalinkParserState.h
  8401. * src/HashMetalinkParserState.h
  8402. * src/InitialMetalinkParserState.h
  8403. * src/LanguageMetalinkParserState.h
  8404. * src/MetalinkMetalinkParserState.h
  8405. * src/MetalinkParserState.h
  8406. * src/MetalinkParserStateMachine.cc
  8407. * src/MetalinkParserStateMachine.h
  8408. * src/OSMetalinkParserState.h
  8409. * src/PieceHashMetalinkParserState.h
  8410. * src/PiecesMetalinkParserState.h
  8411. * src/ResourcesMetalinkParserState.h
  8412. * src/SizeMetalinkParserState.h
  8413. * src/SkipTagMetalinkParserState.h
  8414. * src/URLMetalinkParserState.h
  8415. * src/VerificationMetalinkParserState.h
  8416. * src/VersionMetalinkParserState.h
  8417. * src/XML2SAXMetalinkProcessor.cc
  8418. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8419. Added StringFormat class, which internally calls vasprintf.
  8420. operator<< is defined for this class, so it can be used with iostream
  8421. classes nicely. SimpleLogger and following functions are rewritten
  8422. using StringFormat class.
  8423. Besides, now Logger class's methods are non-const, many classes
  8424. that has a const Logger* as a member variable are modified to remove
  8425. const qualifier from the variable declaration.
  8426. * src/HelpItemFactory.cc
  8427. * src/Request.cc
  8428. * src/SimpleLogger.cc
  8429. * src/StringFormat.cc
  8430. * src/StringFormat.h
  8431. * src/Util.cc
  8432. * src/option_processing.cc
  8433. * src/version_usage.cc
  8434. * test/StringFormatTest.cc
  8435. * src/*.h: The classes that has const Logger* as a member variable.
  8436. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8437. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  8438. failed. Also fixed memory link when exception is thrown there.
  8439. * src/main.cc (AccRequestGroup)
  8440. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8441. Added build-in "Accept-Features" support. For now only "metalink" is
  8442. used in this header field.
  8443. This "metalink" value is removed from the list when connecting URLs
  8444. fed by metalink file to avoid loop in "transparent" metlaink.
  8445. * src/HttpRequest.cc
  8446. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  8447. header is also held in this variable. Also renamed setUserHeaders as
  8448. addHeader and it was rewritten to add header not just to clear the old
  8449. value.
  8450. * src/HttpRequestCommand.cc
  8451. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  8452. from "Accept-Features" list.
  8453. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  8454. default.
  8455. * src/RequestGroup.h
  8456. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  8457. * src/a2functional.h: Included <string> because Concat class depends on
  8458. it.
  8459. * test/HttpRequestTest.cc
  8460. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8461. Added comment
  8462. * src/RequestGroup.cc (createNextCommand)
  8463. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8464. Capitalized METHOD_GET and METHOD_HEAD
  8465. * src/Request.cc
  8466. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8467. Added getDownloadResults() method
  8468. * src/RequestGroupMan.cc
  8469. * src/RequestGroupMan.h
  8470. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8471. Fixed the bug that aria2 exits when commands is empty() but
  8472. _routineCommands are not.
  8473. * src/DownloadEngine.cc
  8474. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8475. Use the default value pulled from Option object in HelpItemFactory.
  8476. except options whose defualt value is embedded in a usage text.
  8477. * src/HelpItemFactory.cc
  8478. * src/HelpItemFactory.h
  8479. * src/option_processing.cc
  8480. * src/version_usage.cc
  8481. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8482. Added --quiet option to make aria2 quiet (no console output).
  8483. --quiet option is tagged with ADVANCED.
  8484. * src/HelpItemFactory.cc
  8485. * src/LogFactory.cc
  8486. * src/LogFactory.h
  8487. * src/MultiUrlRequestInfo.cc
  8488. * src/MultiUrlRequestInfo.h
  8489. * src/NullStatCalc.h: New class. This class prints nothing.
  8490. * src/OptionHandlerFactory.cc
  8491. * src/main.cc
  8492. * src/option_processing.cc
  8493. * src/prefs.h
  8494. * src/usage_text.h
  8495. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8496. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  8497. * src/HelpItemFactory.cc (createHelpItems):
  8498. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8499. Fixed compilation error in ExpatMetalinkProcessor.cc
  8500. * src/ExpatMetalinkProcessor.cc
  8501. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8502. Reuse socket if the origin server supports HTTP keep-alive and
  8503. --enable-http-keep-alive or --enable-http-pipelining is given.
  8504. The current implementation doesn't reuse the connections established
  8505. against proxy server.
  8506. * src/AbstractCommand.cc
  8507. * src/DownloadEngine.cc
  8508. * src/DownloadEngine.h
  8509. * src/HttpDownloadCommand.cc
  8510. * src/HttpInitiateConnectionCommand.cc
  8511. * src/HttpResponseCommand.cc
  8512. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8513. Rewritten HTTP keep-alive and pipelining routine.
  8514. * src/AbstractCommand.cc
  8515. * src/HttpConnection.cc
  8516. * src/HttpDownloadCommand.cc
  8517. * src/HttpRequest.cc
  8518. * src/HttpRequestCommand.cc
  8519. * src/HttpResponseCommand.cc
  8520. * src/Request.cc
  8521. * src/Request.h
  8522. * src/RequestGroup.cc
  8523. * test/HttpRequestTest.cc
  8524. * test/HttpResponseTest.cc
  8525. * test/RequestTest.cc
  8526. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8527. Added missing setUserHeaders call
  8528. * src/HttpRequestCommand.cc
  8529. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8530. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  8531. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  8532. waste of time because it is more likey false.
  8533. * src/FileAllocationDispatcherCommand.cc (execute)
  8534. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8535. Now HTTP status and version are a member variable of HttpHeader.
  8536. HTTP status is processed as a string, not integer.
  8537. * src/AbstractProxyResponseCommand.cc
  8538. * src/HttpConnection.cc
  8539. * src/HttpHeader.cc
  8540. * src/HttpHeader.h
  8541. * src/HttpHeaderProcessor.cc
  8542. * src/HttpHeaderProcessor.h
  8543. * src/HttpResponse.cc
  8544. * src/HttpResponse.h
  8545. * test/HttpHeaderProcessorTest.cc
  8546. * test/HttpResponseTest.cc
  8547. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8548. Added --header option. You can specify any number of additional HTTP headers
  8549. like:
  8550. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  8551. Unlike other commad-line option, you can use --header option multiple times.
  8552. * src/HelpItemFactory.cc
  8553. * src/HttpRequest.{cc, h}
  8554. * src/HttpRequestCommand.cc
  8555. * src/OptionHandlerFactory.cc
  8556. * src/OptionHandlerImpl.h
  8557. * src/option_processing.cc
  8558. * src/prefs.h
  8559. * src/usage_text.h
  8560. * test/HttpRequestTest.cc (testUserHeaders)
  8561. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8562. Eliminates the time lag between sequential downloads and commands in
  8563. the same RequestGroup.
  8564. In old implementation, aria2 occasionally waits 1 seconds before
  8565. executing next command or RequestGroup.
  8566. This is really a waste of time, and new implementation eliminates
  8567. this unnecessary time lag.
  8568. * src/AbstractCommand.cc
  8569. * src/AutoSaveCommand.cc
  8570. * src/CheckIntegrityCommand.cc
  8571. * src/Command.{cc, h}
  8572. * src/DownloadEngine.{cc, h}
  8573. * src/DownloadEngineFactory.cc
  8574. * src/FileAllocationCommand.cc
  8575. * src/FileAllocationDispatcherCommand.cc
  8576. * src/FillRequestGroupCommand.cc
  8577. * src/FtpInitiateConnectionCommand.cc
  8578. * src/HaveEraseCommand.cc
  8579. * src/HttpInitiateConnectionCommand.cc
  8580. * src/HttpResponseCommand.cc
  8581. * src/RealtimeCommand.cc
  8582. * src/RequestGroup.cc
  8583. * src/RequestGroupMan.cc
  8584. * src/StreamFileAllocationEntry.cc
  8585. * src/TimeBasedCommand.{cc, h}
  8586. * src/TimedHaltCommand.cc
  8587. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8588. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  8589. keyword explicit and SharedHandle's default constructor initializes
  8590. its internal obj to null, old implementation initializes it using
  8591. obj's default constructor.
  8592. To assign null, write SharedHandle<T> x(...); x.reset();
  8593. TODO: test/SharedHandleTest.cc needs more tests.
  8594. * src/SharedHandle.h
  8595. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8596. Fixed type in man page.
  8597. * doc/aria2c.1.txt
  8598. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8599. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  8600. * src/SimpleLogger.{cc, h}
  8601. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8602. Implemented auto protocol detection.
  8603. Now you can do:
  8604. aria2c -Z http://host/file file1.torrent file2.metalink
  8605. (Note: -Z option is required for auto protcol detection.)
  8606. Then aria2c downloads 3 files simultaneously:
  8607. 1. http://host/file
  8608. 2. file1.torrent <-- read local torrent file
  8609. 3. file2.metalink <-- read local Metalink file.
  8610. Same thing goes with -i option. Assume your uris.txt contans:
  8611. http://host/file
  8612. file1.torrent
  8613. file2.metalink
  8614. Then you can do: aria2c -i uris.txt
  8615. (Note: -Z option is not needed if -i option is given.)
  8616. * src/main.cc
  8617. * src/ProtocolDetector.{cc, h}
  8618. * test/ProtocolDetectorTest.cc
  8619. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8620. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  8621. installed
  8622. * src/ARC4Encryptor.h
  8623. * src/ARC4Decryptor.h
  8624. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8625. Renamed argument from 'errno' to 'err', since errno is confused with
  8626. errno defined in errno.h.
  8627. * src/LibgcryptARC4Decryptor.h
  8628. * src/LibgcryptARC4Context.h
  8629. * src/LibgcryptDHKeyExchange.h
  8630. * src/LibgcryptARC4Encryptor.h
  8631. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8632. Rewritten choking algorithm.
  8633. * src/PeerChokeCommand.{cc, h}
  8634. * src/BtInterestedMessage.cc
  8635. * src/PeerSessionResource.{cc, h}
  8636. * src/DefaultPeerStorage.{cc, h}
  8637. * src/BtNotInterestedMessage.cc
  8638. * src/DefaultBtMessageDispatcher.{cc, h}
  8639. * src/BtMessageDispatcher.h
  8640. * src/Peer.{cc, h}
  8641. * src/BtLeecherStateChoke.{cc, h}
  8642. * src/BtSetup.cc
  8643. * src/BtSeederStateChoke.{cc, h}
  8644. * src/PeerStorage.h
  8645. * test/MockPeerStorage.h
  8646. * test/MockBtMessageDispatcher.h
  8647. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8648. Fixed compilation error on x84-64 platform.
  8649. * src/AuthConfig.cc: Included ostream.
  8650. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8651. Rewritten getBasename() and getDirname(), without standard library
  8652. basename(), dirname().
  8653. * src/File.cc
  8654. * test/FileTest.cc
  8655. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8656. Added Simplified Chinese translation. Also updated the following
  8657. translations: Polish, Dutch, German. Great thanks to all translators.
  8658. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8659. Suppress content-range error when 'Content-Range' response header
  8660. doesn't contains bytes-unit specifier 'bytes'
  8661. * src/HttpHeader.cc (getRange)
  8662. * test/HttpHeaderTest.cc
  8663. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8664. Fixed compilation error with g++-4.3
  8665. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8666. Added missing include files for MinGW
  8667. * test/HttpHeaderProcessorTest.cc
  8668. * test/DHTRoutingTableSerializerTest.cc
  8669. * test/DHTRoutingTableDeserializerTest.cc
  8670. * test/UriListParserTest.cc
  8671. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8672. Now download line is printed nicely with no garbage at the end of
  8673. line. I use ioctl to get the columns of terminal.
  8674. If stdout is redirected to another device, instead of carriage return,
  8675. end of line '\n' character is used. This is feature request#1909659
  8676. * src/ConsoleStatCalc.cc (calculateStat)
  8677. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8678. Included a2time.h
  8679. * src/DHTMessageDispatcher.h
  8680. * src/DHTMessageEntry.h
  8681. * src/DHTReplaceNodeTask.h
  8682. * src/DHTMessageTracker.h
  8683. * src/Util.h
  8684. * src/CookieBox.h
  8685. * src/SocketCore.h
  8686. * src/DefaultBtMessageDispatcher.h
  8687. * src/SocketCore.cc
  8688. * src/Util.cc
  8689. * src/DHTPingTask.h
  8690. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8691. Fixed high memory footprint when DHT is enabled.
  8692. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  8693. queued than it is processed and the queue is getting longer. As a
  8694. consequence, momory usage is increased.
  8695. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  8696. replacement cache in DHTBucket which is described in Kademlia paper.
  8697. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  8698. DHTReplaceNodeTask.
  8699. * src/DHTBucket.{h, cc}
  8700. (cacheNode): New function.
  8701. (getCachedNodes): New function.
  8702. (dropNode): Push back cached node to _nodes.
  8703. * test/DHTBucketTest.cc
  8704. (testCacheNode): New test
  8705. (testDropNode): New test
  8706. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8707. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  8708. the unused 4KB memory when ssl is not used.
  8709. * src/SocketCore.cc
  8710. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8711. Added summary log for peer announce storage.
  8712. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  8713. Removed cast
  8714. * src/DefaultPeerStorage.cc (addPeer)
  8715. Log exception message
  8716. * src/DHTMessageTracker.cc (handleTimeout)
  8717. Fixed casting
  8718. * test/HttpRequestTest.cc
  8719. * test/MetalinkProcessorTest.cc
  8720. * test/PieceTest.cc
  8721. * test/MetalinkEntryTest.cc
  8722. * test/SequenceTest.cc
  8723. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8724. * src/ParameterizedStringParser.cc (createLoop):
  8725. Removed unused variable sstep.
  8726. * src/AlphaNumberDecorator.h (decode): Rewritten.
  8727. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8728. * src/Util.{h, cc}
  8729. (parseUInt): New function.
  8730. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  8731. The actual range is uint32_t.
  8732. * test/UtilTest.cc
  8733. * src/ParameterizedStringParser.cc:
  8734. Use Util::parseUInt() for loop variables.
  8735. * test/ParameterizedStringParserTest.cc
  8736. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  8737. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8738. Rewritten the functions for binding port.
  8739. * src/DHTConnectionImpl.{h, cc}
  8740. * src/PeerListenCommand.{h, cc}
  8741. * src/DHTSetup.cc
  8742. * src/BtSetup.cc
  8743. * test/DHTConnectionImplTest.cc
  8744. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8745. type cleanup for allmost all remaining files.
  8746. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8747. Type clarification
  8748. * src/PeerSessionResource.{h, cc}
  8749. * src/DefaultPieceStorage.{h, cc}
  8750. * src/Peer.{h, cc}
  8751. * test/PeerSessionResourceTest.cc
  8752. Use div function
  8753. * src/BtPieceMessage.cc (erasePieceOnDisk)
  8754. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8755. Type clarification
  8756. * src/DefaultPeerStorage.{h, cc}
  8757. * test/DefaultPeerStorageTest.cc
  8758. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8759. Type clarification: size_t for length or size, uint64_t for file
  8760. length, off_t for file offset.
  8761. * src/DefaultBtProgressInfoFile.cc
  8762. * src/DefaultBtContext.{h, cc}
  8763. * src/DefaultBtInteractive.cc
  8764. * src/DownloadCommand.{h, cc}
  8765. * src/IteratableChunkChecksumValidator.{h, cc}
  8766. * src/SegmentMan.{h, cc}
  8767. * src/SingleFileDownloadContext.{h, cc}
  8768. * src/IteratableChecksumValidator.{h, cc}
  8769. * src/BtContext.h
  8770. * src/IteratableValidator.h
  8771. * src/DownloadContext.h
  8772. * test/SingleFileDownloadContextTest.cc
  8773. * test/DefaultBtContextTest.cc
  8774. * test/MockBtContext.h
  8775. * test/Metalink2RequestGroupTest.cc
  8776. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8777. Type clarification: size_t for length or size, uint64_t for file
  8778. length, off_t for file offset.
  8779. * src/PiecedSegment.cc
  8780. * src/GrowSegment.h
  8781. * src/DefaultBtRequestFactory.h
  8782. * src/DefaultBtProgressInfoFile.cc
  8783. * src/UnknownLengthPieceStorage.h
  8784. * src/DefaultPieceStorage.cc
  8785. * src/UnknownLengthPieceStorage.cc
  8786. * src/DefaultBtInteractive.cc
  8787. * src/GrowSegment.cc
  8788. * src/BitfieldMan.h
  8789. * src/DownloadCommand.cc
  8790. * src/BtRequestFactory.h
  8791. * src/PiecedSegment.h
  8792. * src/DefaultPieceStorage.h
  8793. * src/Piece.cc
  8794. * src/DefaultBtRequestFactory.cc
  8795. * src/PieceStorage.h
  8796. * src/Segment.h
  8797. * src/Piece.h
  8798. * src/BitfieldMan.cc
  8799. * src/Util.cc
  8800. * test/DefaultBtProgressInfoFileTest.cc
  8801. * test/DefaultPieceStorageTest.cc
  8802. * test/MockPieceStorage.h
  8803. * test/BtRequestMessageTest.cc
  8804. * test/DefaultBtMessageDispatcherTest.cc
  8805. * test/BitfieldManTest.cc
  8806. * test/GrowSegmentTest.cc
  8807. * test/PieceTest.cc
  8808. * test/SegmentTest.cc
  8809. * test/SegmentManTest.cc
  8810. * test/DefaultBtRequestFactoryTest.cc
  8811. * test/MockBtRequestFactory.h
  8812. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8813. Fixed compilation error with --disable-nls
  8814. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  8815. in gettext.h causes the problem.
  8816. * src/common.h
  8817. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8818. Removed subPiece related functions.
  8819. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  8820. * src/DefaultPieceStorage.{h, cc}
  8821. * test/PieceTest.cc
  8822. * test/DefaultPieceStorageTest.cc
  8823. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8824. Use unsigned char for data store.
  8825. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8826. Bump up version number to 0.13.0+1
  8827. * configure.ac
  8828. * Release 0.13.0+1
  8829. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8830. Changed inactive connection timeout to 120.
  8831. To accept more mulually interested peers, disconnect peer when there
  8832. is no interest between us after certain time passed.
  8833. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  8834. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8835. Fixed the bug that aria2 only uses first dns server in resolv.conf
  8836. when compiled with async DNS support.
  8837. * src/DownloadEngine.cc
  8838. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  8839. value '10' will be a little bit short when some DNS servers are
  8840. offline and several DNS servers are tried. It should be configured
  8841. by command-line option.
  8842. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8843. Merged Ross's mingw patch.
  8844. * src/DHTRoutingTableDeserializer.cc
  8845. * src/DHTRoutingTableSerializer.cc
  8846. * src/Platform.{h, cc}
  8847. * src/timegm.h
  8848. * src/gettimeofday.h
  8849. * src/getaddrinfo.h
  8850. * src/SocketCore.h
  8851. * src/common.h
  8852. * src/inet_aton.h
  8853. * src/DownloadEngine.h
  8854. * src/gai_strerror.h
  8855. * src/a2netcompat.h
  8856. * configure.ac
  8857. * configure
  8858. * aclocal.m4
  8859. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8860. Included missing iostream.
  8861. * test/AllTest.cc
  8862. * test/BtDependencyTest.cc
  8863. * test/BtExtendedMessageTest.cc
  8864. * test/DHTConnectionImplTest.cc
  8865. * test/DHTMessageFactoryImplTest.cc
  8866. * test/DHTMessageTrackerEntryTest.cc
  8867. * test/DHTNodeTest.cc
  8868. * test/DHTRoutingTableSerializerTest.cc
  8869. * test/DefaultBtAnnounceTest.cc
  8870. * test/DefaultBtContextTest.cc
  8871. * test/DefaultBtMessageFactoryTest.cc
  8872. * test/DefaultExtensionMessageFactoryTest.cc
  8873. * test/HandshakeExtensionMessageTest.cc
  8874. * test/HttpResponseTest.cc
  8875. * test/MetalinkProcessorTest.cc
  8876. * test/MultiFileAllocationIteratorTest.cc
  8877. * test/SocketCoreTest.cc
  8878. * test/UTPexExtensionMessageTest.cc
  8879. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8880. Reorganized includes.
  8881. * src/NameResolver.cc
  8882. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8883. Fixed compilation error without ares/c-ares
  8884. * src/NameResolver.h:
  8885. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8886. Added a test for large file.
  8887. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  8888. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8889. Fixed the bug that file size is ignored if size > INT32_MAX
  8890. * src/SizeMetalinkParserState.cc (endElement):
  8891. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8892. Bump up version number to 0.13.0
  8893. * configure.ac
  8894. * Release 0.13.0
  8895. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8896. Updated Makfefile.am to make 'make dist' work.
  8897. Now packaged filename is aria2c-VERSION.tar.bz2.
  8898. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  8899. Added LICENSE.OpenSSL to dist_noinst_DATA.
  8900. Large file support is now configured by configure script.
  8901. * configure.ac
  8902. Removed unsused source files
  8903. * src/
  8904. * test/
  8905. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  8906. Peer.h and BtContext.h respectively.
  8907. * src/Peer.h
  8908. * src/BtContext.h
  8909. Updated translations.
  8910. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  8911. translations. Great thanks to all translators!;)
  8912. * po/*.{po, gmo}
  8913. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8914. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  8915. statically declared sha1 MessageDigestContext.
  8916. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  8917. initialization of short-lived MessageDigestContext.
  8918. * src/MessageDigestHelper.{h, cc}
  8919. * src/main.cc
  8920. Now DownloadCommand has a reference to MessageDigestContext to avoid
  8921. the initialization of MessageDigestContext every time in validating
  8922. chunk checksum.
  8923. * src/DownloadCommand.{h, cc}
  8924. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8925. Add a file descriptor which connected to fast peer(latency<1500) to
  8926. select(). This change reduced CPU load.
  8927. * src/PeerInteractionCommand.cc
  8928. * src/DefaultBtInteractive.{h, cc}
  8929. * src/BtInteractive.h
  8930. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8931. Fixed the previous insufficient fix for possible busy loop.
  8932. * src/MSEHandshake.cc (identifyHandshakeType)
  8933. Removed unused functions.
  8934. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  8935. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8936. Fixed possible busy loop if first 20 bytes are not received for a few
  8937. minutes.
  8938. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  8939. * src/ReceiverMSEHandshakeCommand.cc
  8940. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8941. Fixed compilation error
  8942. * src/ExpatMetalinkProcessor.cc
  8943. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8944. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  8945. * src/DHTBucket.cc
  8946. Removed unnecessary cast.
  8947. * src/HandshakeExtensionMessage.cc
  8948. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8949. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  8950. is missing.
  8951. * src/OptionHandlerFactory.cc
  8952. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8953. Fixed the bug that HAVE message is not sent for a piece they are
  8954. downloaded fom http/ftp server before any BitTorrent handshake is done
  8955. with peers.
  8956. * src/DefaultBtInteractive.cc
  8957. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8958. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  8959. * src/Makefile.am
  8960. * src/Makefile.in
  8961. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8962. Updated README. Added html version of README and man page.
  8963. * README
  8964. * README.html
  8965. * readme2html: Shell script to generate README.html from README using
  8966. asciidoc.
  8967. * doc/aria2c.1.html
  8968. * doc/makeman: Added the line to generate aria2c.1.html
  8969. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8970. Fixed offset calculation.
  8971. * src/LibgcryptDHKeyExchange.h (computeSecret)
  8972. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8973. Rewritten itos and uitos using template. llitos and ullitos are
  8974. replaced with itos and uitos respectively.
  8975. * src/Util.{h, cc}
  8976. * test/UtilTest.cc
  8977. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8978. Fixed the bug that DH key exchange sometimes fails due to bad handling
  8979. of the number of bytes required for storing public key and shared
  8980. secret.
  8981. * src/LibgcryptDHKeyExchange.h
  8982. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  8983. * src/MSEHandshake.cc
  8984. * test/DHKeyExchangeTest.cc
  8985. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8986. Removed since they are not used.
  8987. * src/Xml2MetalinkProcessor.{h, cc}
  8988. * src/Socket.cc
  8989. * src/SegmentSplitter.{h, cc}
  8990. * test/Xml2MetalinkProcessorTest.cc
  8991. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8992. Fixed the bug that prevents aria2 from stopping other than by pressing
  8993. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  8994. option. aria2 doesn't stop even after --seed-time is satisfied and
  8995. continues to output blank lines in the console.
  8996. * src/ReceiverMSEHandshakeCommand.cc
  8997. * src/PeerReceiveHandshakeCommand.cc
  8998. * src/PeerListenCommand.cc
  8999. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9000. Bump up version number to 0.13.0rc
  9001. * configure.ac
  9002. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9003. Updated man page and some usage text.
  9004. * doc/aria2c.1.txt
  9005. * src/usage_text.h
  9006. * po/*.{po, gmo}
  9007. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9008. Updated translations. Added Finnish and Hebrew translations.
  9009. Great thanks to all translators!
  9010. * po/*.{po, gmo}
  9011. * po/LINGUAS
  9012. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9013. Log more detailed information about each message.
  9014. * src/DHTQueryMessage.{h, cc}
  9015. * src/DHTGetPeersMessage.{h, cc}
  9016. * src/DHTFindNodeReplyMessage.{h, cc}
  9017. * src/DHTGetPeersReplyMessage.{h, cc}
  9018. * src/DHTAnnouncePeerMessage.{h, cc}
  9019. * src/DHTResponseMessage.{h, cc}
  9020. * src/DHTFindNodeMessage.{h, cc}
  9021. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9022. Use constants defined in prefs.h
  9023. * src/option_processing.cc
  9024. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9025. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  9026. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9027. Make room for future enchancements for IPv6 addresses.
  9028. Bump up version number of dht.dat file format to 2.
  9029. Not compatible with previous version.
  9030. * src/DHTRoutingTableSerializer.cc
  9031. * src/DHTRoutingTableDeserializer.cc
  9032. * test/DHTRoutingTableSerializerTest.cc
  9033. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9034. Added handling for the return values from
  9035. PeerMessageUtil::createcompact().
  9036. * src/DefaultBtContext.cc (computeFastSet):
  9037. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9038. Fixed abort when peer's ip address is IPv4-mapped address.
  9039. * src/DefaultBtContext.cc (computeFastSet)
  9040. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  9041. cannot handle IPv4-mapped addresses.
  9042. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  9043. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9044. Proper return value handling for OpenSSL functions.
  9045. * src/LibsslDHKeyExchange.h
  9046. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9047. Random bytes generation using libgcrypt and OpenSSL.
  9048. * src/DHTUtil.{h, cc}
  9049. * test/DHTUtilTest.cc
  9050. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9051. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  9052. received.
  9053. * src/DHTMessageReceiver.cc (receiveMessage)
  9054. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9055. Fixed the bug that a return code is always 0. BUG#1897704
  9056. If error occurred during the download or there exist unfinished
  9057. downloads, aria2 returns with code 1.
  9058. * src/RequestGroupMan.{h, cc}
  9059. * src/MultiUrlRequestInfo.{h, cc}
  9060. * src/main.cc
  9061. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9062. IPv6 support for SocketCore class.
  9063. TODO: In SocketCore::establishConnection(), this is insufficient to
  9064. determin the failure of connect() here because the socket is
  9065. non-blocking state. The next addresses should be tried after select().
  9066. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  9067. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  9068. instead which address family independent.
  9069. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  9070. information in a compact peer format which is for IPv4 only.
  9071. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  9072. this is a spec of BitTorrent protocol.
  9073. * src/SocketCore.{h, cc}
  9074. * src/PeerMessageUtil.cc
  9075. * test/SocketCoreTest.cc
  9076. * test/PeerMessageUtilTest.cc
  9077. * test/DHTConnectionImplTest.cc
  9078. Handle IPv4-mapped addresses.
  9079. * src/DHTNode.cc: Now identity is determined by node id.
  9080. * src/DHTMessageTrackerEntry.cc
  9081. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  9082. should handle it.
  9083. * src/DHTRoutingTableDeserializer.cc
  9084. * src/DHTMessageFactoryImpl.cc
  9085. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9086. Change the unit of --stop option from a minute to a second.
  9087. * src/usage_text.h
  9088. * src/DownloadEngineFactory.cc
  9089. * src/OptionHandlerFactory.cc
  9090. * src/message.h
  9091. * src/TimedHaltCommand.cc
  9092. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9093. Make listening socket non-block mode.
  9094. * src/FtpConnection.cc
  9095. * src/FtpNegotiationCommand.{h, cc}
  9096. * src/PeerListenCommand.cc
  9097. Fixed the bug that cause slow ftp negotiation.
  9098. * src/FtpNegotiationCommand.{h, cc}
  9099. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9100. Added basic tag to --enable-dht, --dht-listen-port option.
  9101. * src/HelpItemFactory.cc (createHelpItems)
  9102. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9103. Updated text.
  9104. * src/usage_text.h
  9105. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9106. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  9107. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9108. Determin _threadtholdSpeed in each constructor for
  9109. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  9110. * src/ActivePeerConnectionCommand.{h, cc}
  9111. * src/PeerReceiveHandshakeCommand.{h, cc}
  9112. * src/BtSetup.cc
  9113. * src/BtConstants.h
  9114. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9115. Added --bt-min-crypto-level and --bt-require-crypto options.
  9116. * src/OptionHandlerFactory.cc
  9117. * src/MSEHandshake.cc
  9118. * src/HelpItemFactory.cc
  9119. * src/option_processing.cc
  9120. * src/ReceiverMSEHandshakeCommand.cc
  9121. * src/prefs.h
  9122. * src/DefaultBtAnnounce.cc
  9123. * src/InitiatorMSEHandshakeCommand.cc
  9124. * src/usage_text.h
  9125. * test/MSEHandshakeTest.cc
  9126. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9127. Bump version number to 0.13.0b
  9128. * configure.ac
  9129. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9130. Updated doc.
  9131. * src/MessageDigestHelper.h:
  9132. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9133. Use raw message digest as a token instead of its hexadecimal
  9134. representation.
  9135. * src/DHTTokenTracker.cc (generateToken)
  9136. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9137. Added Message Stream Encryption(MSE) support.
  9138. Currently, aria2 accepts incoming connections with Obfuscation Header
  9139. and legacy BitTorrent Header and establishes connections with
  9140. Obfuscation Header first and if failed then retry with legacy
  9141. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  9142. choose ARC4. The new option to change the default behavior is planned.
  9143. For tracker extension, "supportcrypto=1" is added statically.
  9144. * src/PeerInitiateConnectionCommand.{h, cc}
  9145. * src/PeerConnection.{h, cc}
  9146. * src/HandleRegistry.h
  9147. * src/SocketCore.h
  9148. * src/PeerReceiveHandshakeCommand.{h, cc}
  9149. * src/BtRegistry.{h, cc}
  9150. * src/PeerListenCommand.cc
  9151. * src/InitiatorMSEHandshakeCommand.{h, cc}
  9152. * src/ReceiverMSEHandshakeCommand.{h, cc}
  9153. * src/MSEHandshake.{h, cc}
  9154. * src/ARC4Encryptor.h
  9155. * src/ARC4Decryptor.h
  9156. * src/LibgcryptARC4Encryptor.h
  9157. * src/LibgcryptARC4Decryptor.h
  9158. * src/LibgcryptARC4Context.h
  9159. * src/LibsslARC4Encryptor.h
  9160. * src/LibsslARC4Decryptor.h
  9161. * src/LibsslARC4Context.h
  9162. * src/DHKeyExchange.h
  9163. * src/LibgcryptDHKeyExchange.h
  9164. * src/LibsslDHKeyExchange.h
  9165. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  9166. * test/DefaultBtAnnounceTest.cc
  9167. * test/ARC4Test.cc
  9168. * test/DHKeyExchangeTest.cc
  9169. Removed prepareForRetry() because it is not used.
  9170. * src/PeerAbstractCommand.{h, cc}
  9171. * src/PeerInteractionCommand.{h, cc}
  9172. * src/PeerInitiateConnectionCommand.{h, cc}
  9173. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9174. Added the ability to load nodes from torrent file. These nodes are
  9175. added to the routing table when downloading that torrent.
  9176. * src/BtContext.h
  9177. * src/DefaultBtContext.{h, cc}
  9178. * src/DHTSetup.cc
  9179. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  9180. hostname and port pair, and resolves all of them.
  9181. * src/NameResolver.{h, cc}: Added reset().
  9182. * src/RequestGroup.cc
  9183. * test/DefaultBtContextTest.cc
  9184. * test/MockBtContext.h
  9185. Removed assert() from DefaultBtContext and throw exception instead.
  9186. * src/DefaultBtContext.cc
  9187. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9188. Fixed segmentation fault bug when exiting if dht is disabled.
  9189. * src/RequestGroup.cc
  9190. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9191. Fixed typo in log message and define the message in message.h
  9192. * src/TimedHaltCommand.cc
  9193. * src/message.h
  9194. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9195. Included RecoverableException.h to fix compilation error.
  9196. * test/DHTMessageFactoryImplTest.cc
  9197. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9198. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  9199. * test/DHTPingMessageTest.cc
  9200. * test/DHTGetPeersMessageTest.cc
  9201. * test/DHTFindNodeMessageTest.cc
  9202. * test/DHTAnnouncePeerMessageTest.cc
  9203. * test/MockDHTMessage.h
  9204. * test/MockDHTMessageFactory.h
  9205. * test/MockDHTMessageDispatcher.h: New class.
  9206. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9207. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  9208. virtual.
  9209. * src/DHTMessageDispatcher.h
  9210. * src/DHTMessageDispatcherImpl.{h, cc}
  9211. * src/DHTSetup.cc
  9212. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9213. Adding handling of DHT error message. Just log error message and
  9214. throw exception.
  9215. * src/DHTMessageFactoryImpl.cc
  9216. * test/DHTMessageFactoryImplTest.cc
  9217. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9218. Added handling of dynamic cast failure.
  9219. * src/DHTNodeLookupTask.cc
  9220. * src/DHTPeerLookupTask.cc
  9221. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9222. Added the ability to stop aria2 itself when given time has passed
  9223. from start. Use --stop option to specify time in minutes.
  9224. When 0 is given, this feature is disabled.
  9225. * src/OptionHandlerFactory.cc
  9226. * src/TimeBasedCommand.h: Make _interval protected scope.
  9227. * src/HelpItemFactory.cc
  9228. * src/option_processing.cc
  9229. * src/prefs.h
  9230. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  9231. before calling RequestGroupMan::fillRequestGroupFromReserver().
  9232. Without this modification, the result list shows "ERR" when aria2 is
  9233. stopped by --stop option. It should be "INPR".
  9234. * src/DownloadEngine.{h, cc}
  9235. * src/DownloadEngineFactory.cc
  9236. * src/usage_text.h
  9237. * src/TimedHaltCommand.{h, cc}: New class.
  9238. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9239. Bootstrap through node added by port message.
  9240. Currently bootstrap is executed if the number of buckets in routing
  9241. table is 1.
  9242. * src/BtPortMessage.{h, cc}
  9243. * src/DefaultBtMessageFactory.{h, cc}
  9244. * src/PeerInteractionCommand.cc
  9245. * test/BtPortMessageTest.cc
  9246. * test/MockDHTTask.h
  9247. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9248. Extract the Peer class's member variables, which are only needed after
  9249. PeerInteractionCommand, into PeerSessionResource class.
  9250. This class is instantiated in PeerInteractionCommand class's ctor and
  9251. released in its dtor.
  9252. This will make Peer class lightweight and uses less memory for peers
  9253. which are not connected and wait in the queue.
  9254. * src/PeerChokeCommand.cc
  9255. * src/PeerSessionResource.{h, cc}
  9256. * src/PeerInteractionCommand.cc
  9257. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  9258. * src/DefaultBtInteractive.cc
  9259. * src/BtPieceMessage.cc
  9260. * src/BtInterestedMessage.cc
  9261. * src/BtUnchokeMessage.cc
  9262. * src/DefaultPeerStorage.{h, cc}
  9263. * src/PeerInitiateConnectionCommand.cc
  9264. * src/ActivePeerConnectionCommand.cc
  9265. * src/BtNotInterestedMessage.cc
  9266. * src/DefaultBtMessageDispatcher.cc
  9267. * src/BtChokeMessage.cc
  9268. * src/BtRequestMessage.cc
  9269. * src/Peer.{h, cc}
  9270. * src/BtRegistry.h
  9271. * src/TrackerWatcherCommand.cc
  9272. * src/PeerReceiveHandshakeCommand.cc
  9273. * test/BtExtendedMessageTest.cc
  9274. * test/BtAllowedFastMessageTest.cc
  9275. * test/BtCancelMessageTest.cc
  9276. * test/DefaultPieceStorageTest.cc
  9277. * test/BtBitfieldMessageTest.cc
  9278. * test/BtHaveMessageTest.cc
  9279. * test/BtNotInterestedMessageTest.cc
  9280. * test/BtRequestMessageTest.cc
  9281. * test/PeerSessionResourceTest.cc
  9282. * test/DefaultBtMessageDispatcherTest.cc
  9283. * test/PeerTest.cc
  9284. * test/BtInterestedMessageTest.cc
  9285. * test/BtRejectMessageTest.cc
  9286. * test/BtChokeMessageTest.cc
  9287. * test/DefaultPeerStorageTest.cc
  9288. * test/BtHaveNoneMessageTest.cc
  9289. * test/BtHaveAllMessageTest.cc
  9290. * test/DefaultExtensionMessageFactoryTest.cc
  9291. * test/BtUnchokeMessageTest.cc
  9292. * test/DefaultBtMessageFactoryTest.cc
  9293. * test/HandshakeExtensionMessageTest.cc
  9294. * test/UTPexExtensionMessageTest.cc
  9295. * test/DefaultBtRequestFactoryTest.cc
  9296. * test/BtPieceMessageTest.cc
  9297. Removed typedef PeerStats.
  9298. * src/PeerStat.h
  9299. * src/SegmentMan.cc
  9300. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9301. Added std namespace to copy, remove_copy, back_inserter,
  9302. front_inserter.
  9303. * src/RequestGroupMan.cc
  9304. * src/DefaultPieceStorage.cc
  9305. * src/StreamFileAllocationEntry.cc
  9306. * src/BtFileAllocationEntry.cc
  9307. * src/RequestGroup.cc
  9308. * src/MetalinkEntry.cc
  9309. * src/DelegatingPeerListProcessor.cc
  9310. * src/DefaultBtRequestFactory.cc
  9311. * src/DefaultBtMessageDispatcher.cc
  9312. * src/version_usage.cc: Included <algorithm>
  9313. * src/main.cc
  9314. * src/MetalinkParserController.cc
  9315. * src/DefaultBtContext.cc
  9316. * src/DownloadEngineFactory.cc
  9317. * src/a2algo.h
  9318. Removed.
  9319. * test/StreamUriListParserTest.cc
  9320. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9321. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  9322. ActivePeerConnectionCommand when it is given and
  9323. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  9324. * src/ActivePeerConnectionCommand.{h, cc}
  9325. * src/BtSetup.cc
  9326. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9327. Only add socket to DownloadEngine's select routine when peer or
  9328. localhost is unchoked and interested. This lowers CPU usage a
  9329. little bit.
  9330. * src/PeerInteractionCommand.cc
  9331. * src/PeerAbstractCommand.{h, cc}
  9332. * src/BtInteractive.h
  9333. * src/DefaultBtInteractive.{h, cc}
  9334. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9335. Revert previous change because get_peers message is needed for
  9336. announce_peer anyway.
  9337. * src/DHTGetPeersCommand.cc
  9338. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9339. Request peers thought DHT only when download hasn't finished.
  9340. * src/DHTGetPeersCommand.cc
  9341. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9342. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  9343. * src/DHTBucketRefreshTask.{h, cc}
  9344. * src/DHTSetup.cc
  9345. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9346. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  9347. standard classes.
  9348. Included string.h where mem* function are used.
  9349. Added namespace aria2.
  9350. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9351. Create directory before saving DHT routing table.
  9352. Now ios::failure is now handled properly.
  9353. * src/DHTAutoSaveCommand.cc
  9354. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9355. Removed unnecessary cerr.
  9356. * src/DownloadEngine.cc
  9357. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9358. Catch exception inside DHTMessageReceiver::receiveMessage().
  9359. Log unknown message.
  9360. * src/DHTMessageReceiver.{h, cc}
  9361. * src/DHTMessageFactory.h
  9362. * src/DHTMessageFactoryImpl.{h, cc}
  9363. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  9364. * src/DHTInteractionCommand.cc
  9365. * src/DHTUnknownMessage.{h, cc}
  9366. * test/DHTUnknownMessageTest.cc
  9367. * test/MockDHTMessageFactory.h
  9368. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9369. Commented out ip address comparison because a host can have multiple
  9370. ip addresses and it is hard to predict the hostname is resolved into
  9371. which one.
  9372. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  9373. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9374. * po/Makefile.in: Removed since this is generated by configure.
  9375. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9376. Fixed compiler warning about redefinition of SIZE_MAX.
  9377. Use common.h instead of config.h directly here.
  9378. * src/Platform.{h, cc}
  9379. The check of ENABLE_NLS is made in gettext.h, so it is not required
  9380. here.
  9381. * common.h
  9382. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  9383. Updated gettext related files.
  9384. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  9385. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  9386. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9387. Added DHT functionality, compatible with mainline.
  9388. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  9389. You may need to specify entry point to DHT network using
  9390. --dht-entry-point. DHT uses UDP port to listen incoming message.
  9391. Use --dht-listen-port to specify port number. Make sure that your
  9392. firewall configuration can pass through UDP traffic to the port.
  9393. The routing table is saved in $HOME/.aria2/dht.dat.
  9394. * src/DHT*
  9395. * src/BNode.{h, cc}
  9396. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  9397. particular torrent.
  9398. * src/Data.cc: Rewritten ctor.
  9399. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  9400. --dht-entry-point.
  9401. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  9402. * src/RequestGroup.cc: Initialize DHT functionality. When download
  9403. ends, remove BtContext from DHTPeerAnnounceStorage.
  9404. * src/BtPortMessage.{h, cc}: Rewritten.
  9405. * src/message.h
  9406. * src/OptionHandlerImpl.cc
  9407. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  9408. --dht-entry-point.
  9409. * src/Dictionary.{h, cc} (remove): New function.
  9410. * src/prefs.h
  9411. * src/DefaultBtMessageFactory.h
  9412. * src/BtHandshakeMessage.cc
  9413. * src/ActivePeerConnectionCommand.cc
  9414. * src/SocketCore.{h, cc}: Added datagram socket support.
  9415. * src/DefaultBtMessageFactory.cc
  9416. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  9417. Create DHT commands.
  9418. * src/BtMessageFactory.h
  9419. * src/PeerMessageUtil.{h, cc}
  9420. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9421. Fixed the bug that log file is not written when configuration file doesn't exist.
  9422. This is caused by using Logger class before LogFactory is not configured.
  9423. BUG #1875079
  9424. * src/option_processing.cc
  9425. Warning message "configuration doesn't exist" is only printed when --conf is
  9426. given.
  9427. * src/option_processing.cc
  9428. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9429. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  9430. ShaVisitor is now deprecated and slated to be removed.
  9431. * src/DefaultBtContext.cc
  9432. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9433. Externalize message to message.h
  9434. * src/Platform.cc
  9435. * src/message.h
  9436. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9437. Set default domain and default path to cookie.
  9438. * src/HttpResponse.cc
  9439. * src/CookieBox.{h, cc}
  9440. * src/CookieParser.{h, cc}
  9441. * test/CookieParserTest.cc
  9442. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9443. Added --no-conf and --conf-path command-line option.
  9444. --no-conf option disables loading aria2.conf file.
  9445. --conf-path option changes the configuration file path. The default
  9446. file path is $HOME/.aria2/aria2.conf
  9447. Added a warning message when the configuration file is not found.
  9448. * src/HelpItemFactory.cc
  9449. * src/option_processing.cc
  9450. * src/prefs.h
  9451. * src/usage_text.h
  9452. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9453. Added the message to inform users that other help categories are
  9454. available in -h option.
  9455. * src/version_usage.cc
  9456. * src/TagContainer.{h, cc}
  9457. * test/TagContainerTest.cc
  9458. * src/TaggedItem.{h, cc}
  9459. * test/TaggedItemTest.cc
  9460. * src/HelpItem.h
  9461. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9462. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  9463. from PiecedSegment's ctor.
  9464. Previously Piece::getAllMissingBlockIndexes() is called from
  9465. PiecedSegment() but it is rather expensive since only first element is
  9466. used.
  9467. * src/PiecedSegment.cc
  9468. * src/Piece.{h, cc}
  9469. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9470. Rewritten get*Missing*Index functions. Now no need to allocate memory
  9471. each time these functions are called.
  9472. * src/BitfieldMan.{h, cc}
  9473. * test/BitfieldManTest.cc
  9474. * src/array_fun.h
  9475. * test/array_funTest.cc
  9476. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  9477. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  9478. filtered. Removed unnecessary cast to int32_t.
  9479. * src/BitfieldMan.{h, cc}
  9480. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9481. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  9482. payload length(4bytes) are received. This happens because lenbufLength
  9483. is not updated in this particular case and successive call of
  9484. receiveMessage() overwrites payload length with bytes recieved which
  9485. are payload body.
  9486. * src/PeerConnection.{h, cc}
  9487. * src/message.h
  9488. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9489. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  9490. peer if there are peers that have same ipaddr and port.
  9491. I've experiened segmentation fault and "pure virtual function was
  9492. called" error.
  9493. * src/Peer.h
  9494. * test/PeerTest.cc
  9495. * src/DefaultPeerStorage.cc
  9496. * test/DefaultPeerStorageTest.cc
  9497. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9498. Removed a call to isPowerOf() because it is no longer necessary here
  9499. and a request block is not always power of 2.
  9500. BUG#1866924
  9501. * src/PeerMessageUtil.cc (checkLength)
  9502. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9503. Fixed the bug that always first found Segment is removed from
  9504. usedSegmentEntries. Removed unused functions.
  9505. * src/SegmentMan.{h, cc}
  9506. * test/SegmentManTest.cc
  9507. Fixed the bug that ServerHost is not removed.
  9508. * src/RequestGroup.cc
  9509. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9510. Fixed the bug that SegmentMan::completeSegment() is not called
  9511. even if Segment is complete when --lowest-speed-limit is enabled.
  9512. BUG#1864525
  9513. * src/DownloadCommand.{h, cc}
  9514. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9515. Fixed: hash algorithm 'sha1' is always used.
  9516. * src/DownloadCommand.cc (validatePieceHash)
  9517. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9518. Added --enable-peer-exchange command-line option.
  9519. * src/OptionHandlerFactory.cc
  9520. * src/HelpItemFactory.cc
  9521. * src/option_processing.cc
  9522. * src/usage_text.h
  9523. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9524. Move extension from BtRuntime to ExtensionMessageFactory, because
  9525. extension can be specified per peer, not per torrent.
  9526. * src/DefaultBtInteractive.cc
  9527. * src/BtRuntime.h
  9528. * src/ExtendedMessagingAware.h
  9529. * src/ExtensionMessageFactory.h
  9530. * src/DefaultExtensionMessageFactory.cc
  9531. * test/DefaultExtensionMessageFactoryTest.cc
  9532. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9533. Added categorized option help. Specify category using --help option.
  9534. Also added the ability to search options in forward match.
  9535. * src/HelpItem.{h, cc}
  9536. * test/HelpItemTest.cc
  9537. * src/HelpItemFactory.{h, cc}
  9538. * src/TagContainer.{h, cc}
  9539. * test/TagContainerTest.cc
  9540. * src/option_processing.cc
  9541. * src/prefs.h
  9542. * src/TaggedItem.{h, cc}
  9543. * test/TaggedItemTest.cc
  9544. * src/version_usage.cc
  9545. * src/help_tags.h
  9546. * src/usage_text.h
  9547. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9548. Fixed segmentation fault when bad torrent metainfo is parsed.
  9549. Added dynamic_cast properly to detect the misconfiguration of metainfo
  9550. and then throw exception or skip it.
  9551. * src/DefaultBtContext.{h, cc}
  9552. * test/DefaultBtContextTest.cc
  9553. * src/AnnounceList.cc
  9554. * src/CompactPeerListProcessor.cc
  9555. * src/message.h
  9556. * src/DefaultBtAnnounce.{h, cc}
  9557. * test/DefaultBtAnnounceTest.cc
  9558. * src/BencodeVisitor.cc
  9559. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9560. Added missing "B"(=Byte). So now the message looks like this:
  9561. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  9562. * src/message.h (MSG_SHARE_RATIO_REPORT)
  9563. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9564. Show the seed ratio after torrent downloads.
  9565. For example, after torrent download completed and --seed-time and
  9566. --seed-ratio conditions are fulfilled, following message is printed
  9567. right after "Download complete: .....":
  9568. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  9569. * src/RequestGroupMan.cc
  9570. * src/RequestGroup.{h, cc}
  9571. * src/message.h
  9572. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9573. Remove a defunct control file. A defunct control file means that while
  9574. it exists, but the corresponding download file is missing.
  9575. After its removal, a download restarts from the beginning.
  9576. * src/RequestGroup.cc
  9577. * src/message.h
  9578. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9579. Allocate bitfield in Peer when it is really used. More specifically,
  9580. bitfield in Peer is allocated after the connection is established and
  9581. deallocated when the connection is dropped.
  9582. Since 2 parameters(piece length and total length) was removed from the
  9583. constructor of Peer class, many test classes were modified accordingly.
  9584. See svn log for more detailed information.
  9585. * src/PeerInteractionCommand.cc
  9586. * src/CompactPeerListProcessor.cc
  9587. * src/Peer.cc
  9588. * src/DefaultPeerListProcessor.cc
  9589. * src/PeerListenCommand.cc
  9590. * src/PeerReceiveHandshakeCommand.cc
  9591. Fixed memory leak
  9592. * src/Piece.cc
  9593. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9594. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  9595. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  9596. command-line options.
  9597. * src/option_processing.cc
  9598. * src/ActivePeerConnectionCommand.cc
  9599. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9600. Send have message to peer if it already has the piece.
  9601. * src/BtHaveMessage.{h, cc}
  9602. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9603. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  9604. port.
  9605. * src/DefaultPeerStorage.{h, cc}
  9606. * test/DefaultPeerStorageTest.cc
  9607. * src/HandshakeExtensionMessage.cc
  9608. * test/HandshakeExtensionMessageTest.cc
  9609. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  9610. * src/PeerStorage.h
  9611. * test/MockPeerStorage.h
  9612. * src/PeerListenCommand.cc
  9613. * src/PeerReceiveHandshakeCommand.cc
  9614. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9615. Added --metalink-enable-unique-protocol option.
  9616. * src/Metalink2RequestGroup.cc
  9617. * src/option_processing.cc
  9618. * src/prefs.h
  9619. * src/version_usage.cc
  9620. * doc/aria2c.1.txt
  9621. * doc/aria2c.1
  9622. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9623. Allow a peer in incomingPeer to be added peers.
  9624. * src/DefaultPeerStorage.cc
  9625. * test/DefaultPeerStorageTest.cc
  9626. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9627. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  9628. I could reproduce this bug in following procedure:
  9629. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  9630. 2. Restart aria2.
  9631. 3. You see the download stopped around 99%.
  9632. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  9633. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  9634. If timeout is reached, then _nextCommand is unused and it may contains
  9635. segments and they won't be canceled. Actually, timeout is not needed
  9636. here because if the server dropped connection, then retry is made.
  9637. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9638. Added uTorrent compatible Peer Exchange.
  9639. * src/BencodeVisitor.{h, cc}
  9640. * test/BencodeVisitorTest.cc
  9641. * src/BtConstants.h
  9642. * src/BtContext.h: Added 'private' flag.
  9643. * src/BtExtendedMessage.{h, cc}
  9644. * test/BtExtendedMessageTest.cc
  9645. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  9646. reserved field.
  9647. * test/BtHandshakeMessageTest.cc
  9648. * src/BtMessageFactory.h
  9649. * src/BtRegistry.h
  9650. * src/BtRuntime.h: This class holds default extension message IDs for
  9651. aria2. By default, aria2 uses ID 8 for ut_pex.
  9652. * src/DefaultBtContext.cc
  9653. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  9654. When it is true, aria2 enables ut_pex. This value is set by
  9655. PeerInteractionCommand.
  9656. * src/DefaultBtMessageFactory.{h, cc}
  9657. * test/DefaultBtMessageFactoryTest.cc
  9658. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  9659. handling to DefaultBtInteractive class.
  9660. * src/DefaultExtensionMessageFactory.{h, cc}
  9661. * test/DefaultExtensionMessageFactoryTest.cc
  9662. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  9663. the container(peers and incomingPeers. The equality is determined by
  9664. Peer::id).
  9665. * test/DefaultPeerStorageTest.cc
  9666. * src/ExtensionMessage.h
  9667. * test/MockExtensionMessage.h
  9668. * src/ExtensionMessageFactory.h
  9669. * test/MockExtensionMessageFactory.h
  9670. * src/HandshakeExtensionMessage.{h, cc}
  9671. * test/HandshakeExtensionMessageTest.cc
  9672. * src/MetaEntry.h
  9673. * src/Peer.{h, cc}
  9674. * src/PeerInteractionCommand.cc
  9675. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  9676. addIncomingPeer.
  9677. * src/PeerMessageUtil.{h, cc}
  9678. * src/PeerObject.h
  9679. * src/UTPexExtensionMessage.{h, cc}
  9680. * test/UTPexExtensionMessageTest.cc
  9681. * src/message.h
  9682. * src/prefs.h
  9683. Fixed the bug that returns incomplete data when it contains null
  9684. character. A convenient constructor was also added.
  9685. * src/Data.{h, cc}
  9686. Rewritten.
  9687. * src/CompactPeerListProcessor.cc
  9688. Fixed typos.
  9689. * src/message.h
  9690. * src/MetaFileUtil.cc
  9691. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9692. Added "Status Legend" label to the explanation text of 'stat' in
  9693. download result and moved it to the last. BUG#1848214
  9694. * src/RequestGroupMan.cc
  9695. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9696. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  9697. * src/Makefie.am
  9698. * test/Makefile.am
  9699. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9700. Fixed the bug that prevents aria2 from loading cookie file when expire
  9701. value is greater than 2^31-1. BUG#1851066
  9702. * src/CookieBoxFactory.cc
  9703. * test/CookieBoxFactoryTest.cc
  9704. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9705. Fixed possible memory leak when an exception is thrown.
  9706. * src/XML2SAXMetalinkProcessor.cc
  9707. Added Expat support. If both libxml2 and Expat are installed, then
  9708. libxml2 is used by default.
  9709. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  9710. ExpatMetalinkProcessor according to the configuration.
  9711. * src/ExpatMetalinkProcessor.{h, cc}
  9712. * src/main.cc: Removed libxml2 specific header and init/free function.
  9713. * src/MetalinkProcessorFactory.{h, cc}
  9714. * src/MetalinkHelper.cc
  9715. * src/Metalinker.h: Removed unnecessary libxml2 header.
  9716. * src/MetalinkProcessor.h
  9717. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  9718. MetalinkProcessorTest is used instead.
  9719. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  9720. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  9721. MetalinkProcessorFactory::newInstance().
  9722. * m4/libexpat.m4
  9723. * configure.ac: Added configuration options for libexpat.
  9724. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9725. Disabled -s option in metalink download.
  9726. * src/Metalink2RequestGroup.cc
  9727. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9728. If several protocols are available for a mirror in metalink file,
  9729. aria2 now use one of them. --metalink-preferred-protocol option was
  9730. added to specify the preference of protocol.
  9731. * src/AbstractCommand.cc
  9732. * src/OptionHandlerFactory.cc
  9733. * src/ServerHost.{h, cc}
  9734. * src/Metalink2RequestGroup.cc
  9735. * src/RequestGroup.{h, cc}
  9736. * test/RequestGroupTest.cc
  9737. * src/option_processing.cc
  9738. * src/prefs.h
  9739. * src/HttpResponseCommand.cc
  9740. * src/MetalinkResource.{h, cc}
  9741. * src/FtpNegotiationCommand.cc
  9742. * src/MetalinkEntry.{h, cc}
  9743. * src/MetalinkEntryTest.cc
  9744. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9745. Code cleanup and added debug log.
  9746. * src/PeerConnection.cc
  9747. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9748. Compiler error fix: applied the patch by Tiziano Mueller
  9749. * src/RequestGroup.cc
  9750. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9751. Fixed the bug: only first announce URL is tried in AnnounceTier,
  9752. in stopped and completed event.
  9753. * src/AnnounceList.{h, cc}
  9754. * test/AnnounceListTest.cc
  9755. * src/DefaultBtAnnounce.cc
  9756. * test/DefaultBtAnnounceTest.cc
  9757. Sorted URLs.
  9758. * test/Metalink2RequestGroupTest.cc
  9759. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9760. Removed unnecessary string copy. Updated doc and corrected indentation.
  9761. * src/Base64.cc
  9762. Fixed compilation warnings
  9763. * test/DataTest.cc
  9764. * test/HttpRequestTest.cc
  9765. * test/MetaFileUtilTest.cc
  9766. * test/RequestTest.cc
  9767. * Release 0.12.0
  9768. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9769. Updated translations
  9770. * po/{de,fr,ja,nl,ru}.po
  9771. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  9772. translations. Many thanks to translators.
  9773. * po/{ca,es,it,pt_BR,sv}.po
  9774. * po/LINGUAS
  9775. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9776. Added a notice about URL
  9777. * src/version_usage.cc
  9778. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  9779. Fixed the bug#1845750; CTRL+C does not stop torrent.
  9780. aria2 repeatedly sends stopped request when tracker returns error code.
  9781. * src/AnnounceList.cc
  9782. * test/AnnounceListTest.cc
  9783. * src/AnnounceTier.h
  9784. Added a message when ctrl-c is hit.
  9785. Now second ctrl-c is also handled in signal handler.
  9786. * src/RequestGroupMan.{h, cc}
  9787. * src/RequestGroup.{h, cc}
  9788. * src/MultiUrlRequestInfo.cc
  9789. * src/DownloadEngine.cc
  9790. * src/TrackerWatcherCommand.cc
  9791. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9792. Code cleanup
  9793. * src/Base64.cc (encode)
  9794. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9795. Changed Direct/IO enable/disable procesure in file allocation routine.
  9796. * src/SingleFileAllocationIterator.cc
  9797. (SingleFileAllocationIterator):
  9798. Disable directIO if offset is not multiple of 512.
  9799. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  9800. * src/MultiFileAllocationIterator.cc (allocateChunk):
  9801. Enable created SingleFileAllocationIterator's directIO.
  9802. * src/FileAllocationEntry.cc
  9803. (FileAllocationEntry): Enable directIO here.
  9804. (~FileAllocationEntry): Disable directIO here.
  9805. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9806. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  9807. * src/Peer.{h, cc}
  9808. * src/DefaultPieceStorage.cc
  9809. * test/DefaultPieceStorageTest.cc
  9810. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9811. Rewritten direct I/O support routine
  9812. * src/SingleFileAllocationIterator.cc
  9813. * src/MultiDiskAdaptor.{h, cc}
  9814. * src/ByteArrayDiskWriter.h
  9815. * src/AbstractSingleDiskAdaptor.h
  9816. * src/AbstractDiskWriter.cc
  9817. * src/DefaultPieceStorage.cc
  9818. * src/DiskWriter.h
  9819. * src/BinaryStream.h
  9820. * src/IteratableChunkChecksumValidator.cc
  9821. * src/IteratableChecksumValidator.cc
  9822. * src/CheckIntegrityEntry.cc
  9823. * src/FileAllocationEntry.cc
  9824. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9825. Fixed typo
  9826. * src/version_usage.cc
  9827. Updated doc
  9828. * doc/aria2c.1.txt
  9829. * doc/aria2c.1
  9830. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9831. Fixed compile error without message digest support.
  9832. * src/FileMetalinkParserState.cc
  9833. * src/MetalinkParserController.{h, cc}
  9834. * test/XML2SAXMetalinkProcessorTest.cc
  9835. * test/MetalinkParserControllerTest.cc
  9836. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9837. Enable direct I/O support in checksum checking.
  9838. * src/IteratableChunkChecksumValidator.{h, cc}
  9839. * test/IteratableChunkChecksumValidatorTest.cc
  9840. * src/CheckIntegrityEntry.cc
  9841. * src/PieceHashCheckIntegrityEntry.cc
  9842. * src/IteratableChecksumValidator.{h, cc}
  9843. * src/BtCheckIntegrityEntry.cc: Added doc.
  9844. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9845. Added --allow-piece-length-change option.
  9846. * src/DefaultBtProgressInfoFile.cc
  9847. * test/DefaultBtProgressInfoFileTest.cc
  9848. * src/OptionHandlerFactory.cc
  9849. * src/option_processing.cc
  9850. * src/prefs.h
  9851. * src/version_usage.cc
  9852. * doc/aria2c.1.txt
  9853. * doc/aria2c.1
  9854. Fixed: duplicated result entry appears when exception is thrown in
  9855. RequestGroup::createInitiateConnectionCommand().
  9856. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  9857. Add RequestGroup to _requestGroup after RequetGroup::
  9858. createInitiateConnectionCommand() succeeds.
  9859. Externalized message
  9860. * src/XML2SAXMetalinkProcessor.cc
  9861. * src/message.h
  9862. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9863. Forced download abort when received negative response from http/ftp
  9864. server.
  9865. * src/HttpResponseCommand.cc
  9866. * src/FtpNegotiationCommand.cc
  9867. * src/HttpResponse.cc
  9868. * src/FtpConnection.cc
  9869. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9870. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  9871. the predecessor, Xml2MetalinkParser class.
  9872. I tested them against 94KB metalink file with 1234 chunk checksums.
  9873. The new one parsed it in 22msec, while it took 6000msec with old one.
  9874. * src/XML2SAXMetalinkProcessor.{h, cc}
  9875. * test/XML2SAXMetalinkProcessorTest.cc
  9876. * src/MetalinkParserController.{h, cc}
  9877. * test/MetalinkParserControllerTest.cc
  9878. * src/MetalinkParserState.h: Also added 16 subclasses.
  9879. * src/main.cc
  9880. * src/Metalink2RequestGroup.cc
  9881. * src/MetalinkHelper.cc
  9882. * src/MetalinkEntry.cc
  9883. * src/ChunkChecksum.h
  9884. Rewritten Base64 class for better performance.
  9885. * src/Base64.{h, cc}
  9886. * test/Base64Test.cc
  9887. * src/HttpRequest.cc
  9888. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9889. Fixed the bug#1841757: aria2 will connect to server to only get
  9890. file size.
  9891. * src/StreamFileAllocationEntry.cc
  9892. * src/option_processing.cc
  9893. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  9894. downloads.
  9895. * src/FtpNegotiationCommand.cc
  9896. Suppressed wrong message when finding PreDownloadHandler
  9897. * src/RequestGroup.cc
  9898. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9899. Updated usage
  9900. * src/version_usage.cc
  9901. Updated man page
  9902. * doc/aria2c.1.txt
  9903. * doc/aria2c.1
  9904. Updated po files
  9905. * po/aria2c.pot
  9906. * po/*.po
  9907. * po/*.gmo
  9908. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9909. Eliminated g++-4.2 warning
  9910. * src/DownloadHandlerConstants.{h, cc}
  9911. * src/Util.cc
  9912. * test/MetaFileUtilTest.cc
  9913. * test/PStringBuildVisitorTest.cc
  9914. Fixed bug: --check-integrity doesn't work for multi file torrent.
  9915. * src/RequestGroup.cc
  9916. * src/BtCheckIntegrityEntry.cc
  9917. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9918. Fixed a2io.h
  9919. * src/a2io.h
  9920. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9921. Added direct I/O support. The current implementation uses O_DIRECT,
  9922. which is not posix standard and is tested on linux 2.6.21.
  9923. Currently only file allocation uses direct I/O.
  9924. * src/SingleFileAllocationIterator.{h, cc}
  9925. * test/SingleFileAllocationIteratorTest.cc
  9926. * src/MultiFileAllocationIterator.{h, cc}
  9927. * test/MultiFileAllocationIteratorTest.cc
  9928. * src/BinaryStream.h
  9929. * src/DiskWriter.h
  9930. * src/AbstractDiskWriter.{h, cc}
  9931. * src/ByteArrayDiskWriter.h
  9932. * src/DiskAdaptor.h
  9933. * src/AbstractSingleDiskAdaptor.{h, cc}
  9934. * src/MultiDiskAdaptor.{h, cc}
  9935. * src/FileAllocationEntry.cc
  9936. * src/Util.{h, cc}
  9937. * src/OptionHandlerFactory.cc
  9938. * src/prefs.h
  9939. * src/version_usage.cc
  9940. * src/option_processing.cc
  9941. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  9942. handleException.
  9943. * src/MultiFileAllocationIterator.cc
  9944. Added EINTR handling
  9945. * src/SocketCore.cc
  9946. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9947. Updated usage
  9948. * src/version_usage.cc
  9949. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9950. Applied Ross's patch for MinGW port.
  9951. * src/DownloadEngine.h
  9952. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9953. Set Content-Type to SingleFileDownloadContext when http response is
  9954. received.
  9955. * src/HttpResponseCommand.cc
  9956. * src/HttpResponse.{h, cc}
  9957. * test/HttpResponseTest.cc
  9958. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9959. Rewritten to add content-type support.
  9960. * src/DownloadHandler.{h, cc}
  9961. * src/BtPostDownloadHandler.{h, cc}
  9962. * test/BtPostDownloadHandlerTest.cc
  9963. * src/MetalinkPostDownloadHandler.{h, cc}
  9964. * test/MetalinkPostDownloadHandlerTest.cc
  9965. * src/PostDownloadHandler.{h, cc}
  9966. * src/DownloadHandlerConstants.{h, cc}
  9967. * src/RequestGroup.cc
  9968. * src/HttpResponseCommand.cc
  9969. * src/FtpNegotiationCommand.cc
  9970. * src/SingleFileDownloadContext.{h, cc}
  9971. * src/RequestGroup.h
  9972. * src/RequestGroupCriteria.h
  9973. * src/ContentTypeRequestGroupCriteria.h
  9974. Added 'mem' option value for --follow-metalink, --follow-torrent.
  9975. If it is give, metalink/torrent file is not written to the disk, but
  9976. just is kept in memory. Parsing is occurred on memory.
  9977. * src/MetalinkHelper.{h, cc}
  9978. * src/MetalinkProcessor.h
  9979. * src/Xml2MetalinkProcessor.{h, cc}
  9980. * test/Xml2MetalinkProcessorTest.cc
  9981. * src/DownloadHandlerFactory.{h, cc}
  9982. * test/DownloadHandlerFactoryTest.cc
  9983. * src/PreDownloadHandler.{h, cc}
  9984. * src/OptionHandlerFactory.cc
  9985. * src/DefaultBtContext.{h, cc}
  9986. * test/DefaultBtContextTest.cc
  9987. * src/version_usage.cc
  9988. * src/Metalink2RequestGroup.{h, cc}
  9989. * src/RequestGroup.{h, cc}
  9990. * src/a2functional.h
  9991. * test/a2functionalTest.cc
  9992. * src/MemoryBufferPreDownloadHandler.{h, cc}
  9993. * src/OptionHandlerImpl.h
  9994. * src/prefs.h
  9995. * src/Util.{h, cc}
  9996. * test/UtilTest.cc
  9997. Keep DownloadResult rather than RequestGroup after downloads to reduce
  9998. memory usage.
  9999. * src/RequestGroupMan.{h, cc}
  10000. * src/DownloadEngine.cc
  10001. * src/BtDependency.{h, cc}: Changed the type of dependee from
  10002. WeakHandle to SharedHandle because WeakHandle could be null.
  10003. * src/RequestGroup.{h, cc}
  10004. * src/DownloadEngineFactory.cc
  10005. * src/DownloadResult.h
  10006. Set totalLength after download finished
  10007. * src/UnknownLengthPieceStorage.{h, cc}
  10008. Keep torrent file specified in metalink in memory.
  10009. * src/Metalink2RequestGroup.cc
  10010. * src/BtDependency.cc
  10011. * src/TrueRequestGroupCriteria.h
  10012. Fixed the bug: seekg is used where seekp should be used.
  10013. * src/ByteArrayDiskWriter.cc
  10014. * test/ByteArraydiskWriterTest.cc
  10015. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10016. Fixed syntax error
  10017. * test/SequenceTest.cc
  10018. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10019. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10020. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  10021. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10022. * src/RequestGroup.cc (downloadFinishedByFileLength)
  10023. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10024. Added the check to see whether ares_host_callback accepts timeouts
  10025. with c-ares; only c-ares 1.5.0 or newer accepts it.
  10026. * src/NameResolver.{h, cc}
  10027. * m4/libcares.m4
  10028. * configure.ac: Set C++ for language choice.
  10029. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10030. Fixed: compilation fails without c-ares/ares
  10031. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  10032. Generate http/ftp commands only when download is incomplete.
  10033. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  10034. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10035. Corrected typo. Examples are removed since they are available in man
  10036. page.
  10037. * src/version_usage.cc
  10038. Updated man page.
  10039. * doc/aria2c.1
  10040. * doc/aria2c.1.txt
  10041. * doc/makeman: Commented out sed command.
  10042. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10043. Throw DlAbortEx when a remote file is not found.
  10044. * src/HttpResponse.cc
  10045. * src/FtpNegotiationCommand.cc
  10046. * src/message.h
  10047. Overwrite an existing file if --allow-overwrite=true is given.
  10048. * src/RequestGroup.cc
  10049. Removed unused functions
  10050. * src/AbstractCommand.h
  10051. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10052. Removed 'extern' from 'extern typedef ...' in src/*.h
  10053. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10054. Updated usage
  10055. * src/version_usage.cc
  10056. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10057. Trim announce URL
  10058. * src/DefaultBtContext.cc
  10059. * test/ShaVisitorTest.cc
  10060. Trim argument s. Give trimed s to exception constructor.
  10061. * src/Util.cc (parseInt)(parseLLInt)
  10062. * test/UtilTest.cc
  10063. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10064. Set precision back to 1.
  10065. * src/ConsoleStatCalc.cc (calculateStat)
  10066. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10067. Replaced strtol with Util::parseInt
  10068. * src/ChunkedEncoding.cc
  10069. * src/HttpConnection.cc
  10070. * src/CookieBoxFactory.cc
  10071. * src/ParameterizedStringParser.cc
  10072. * src/Util.cc
  10073. * test/UtilTest.cc
  10074. * test/OptionHandlerTest.cc
  10075. * src/Request.cc
  10076. Throw exception when empty string is given. The message for exception
  10077. changed.
  10078. * src/Util.cc (parseInt)(parseLLInt)
  10079. * src/message.h
  10080. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10081. Set precision to 2 because share ratio is rounded into 1.0 if precision
  10082. set to 1.
  10083. * src/ConsoleStatCalc.cc (calculateStat)
  10084. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10085. Preallocate non-requested file which is adjacent forward to requested
  10086. file('requested' files means the files given in --select-file option)
  10087. if they share a same piece.
  10088. This fixes long pause in the file system which doesn't support sparse
  10089. files like FAT32 while downloading.
  10090. * src/MultiFileAllocationIterator.{h, cc}
  10091. * test/MultiFileAllocationIteratorTest.cc
  10092. * src/FileEntry.{h, cc}
  10093. Removed unused _option.
  10094. * src/MultiDiskAdaptor.h
  10095. * test/MultiDiskAdaptorTest.cc
  10096. * src/DefaultPieceStorage.cc
  10097. Set the default value of --seed-ratio to 1.0.
  10098. If 0.0 is given, then seeding continues regardless of share ratio.
  10099. * src/version_usage.cc
  10100. * src/option_processing.cc
  10101. * src/BtSetup.cc
  10102. * doc/aria2c.1.txt
  10103. * doc/aria2c.1
  10104. Fixed: Selective download is not working in BitTorrent
  10105. * src/RequestGroup.cc
  10106. Introduced Sequence class. Use this instead of Util::unfoldRange()
  10107. * src/PieceStorage.h
  10108. * test/MockPieceStorage.h
  10109. * src/UnknownLengthPieceStorage.h
  10110. * src/DefaultPieceStorage.{h, cc}
  10111. * src/Metalink2RequestGroup.cc
  10112. * src/RequestGroup.cc
  10113. * src/Sequence.h
  10114. * test/SequenceTest.cc
  10115. * src/IntSequence.h
  10116. * src/message.h
  10117. * src/Util.{h, cc}
  10118. * test/UtilTest.cc
  10119. Added new function 'parse' to catch exception thrown by subclass's
  10120. parseArg
  10121. * src/OptionHandler.h
  10122. * src/OptionParser.cc
  10123. * src/NameMatchOptionHandler.h
  10124. * src/OptionHandlerImpl.h
  10125. * test/OptionHandlerTest.cc
  10126. Added IntegerRangeOptionHandler. Used for --listen-port and
  10127. --select-file. Now --listen-port accepts range of port.
  10128. * src/OptionHandlerFactory.cc
  10129. * src/version_usage.cc
  10130. * src/OptionHandlerImpl.h
  10131. * src/option_processing.cc
  10132. * src/BtSetup.cc
  10133. * src/PeerListenCommand.{h, cc}
  10134. * doc/aria2c.1.txt
  10135. * doc/aria2c.1
  10136. Implemented operator< for Exception class to provide easy way to print
  10137. exception stack trace.
  10138. * src/Exception.{h, cc}
  10139. * src/main.cc
  10140. * src/option_processing.cc
  10141. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10142. * src/version_usage.cc
  10143. (showVersion): Reworked.
  10144. (showUsage): Added examples.
  10145. Removed Hint for total length and file name.
  10146. * src/Metalink2RequestGroup.cc
  10147. * src/RequestGroup.{h, cc}
  10148. * src/HttpResponseCommand.cc
  10149. * src/FtpNegotiationCommand.cc
  10150. Now --follow-torrent and --follow-metalink option work properly.
  10151. * src/RequestGroup.cc
  10152. Updated man page
  10153. * doc/aria2c.1.txt
  10154. * doc/aria2c.1
  10155. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10156. Removed.
  10157. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  10158. Use Segment::operator==()
  10159. * src/HttpConnection.cc
  10160. * src/Segment.h
  10161. Updated usage
  10162. * src/version_usage.cc
  10163. Added EINTR treatment.
  10164. * src/SocketCore.cc
  10165. * src/AbstractDiskWriter.cc
  10166. Rewritten.
  10167. * src/Util.cc (rangedFileCopy)
  10168. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10169. Fixed typo.
  10170. * src/version_usage.cc
  10171. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10172. Implemented. Now -c option works fine.
  10173. * src/DefaultPieceStorage.cc (markPiecesDone)
  10174. * test/DefaultPieceStorageTest.cc
  10175. Removed.
  10176. * src/SegmentMan.{h, cc}
  10177. (markAllPiecesDone)
  10178. (markPieceDone)
  10179. Synchronized po files with
  10180. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  10181. * src/fr.po
  10182. * src/ru.po
  10183. * src/de.po
  10184. * src/ja.po
  10185. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10186. Added ifdef and some modifications to compile without BitTorrent,
  10187. Metalink, MessageDigest
  10188. support.
  10189. * src/PieceHashCheckIntegrityEntry.cc
  10190. * src/MetalinkEntry.h
  10191. * src/version_usage.cc
  10192. * src/main.cc
  10193. * src/DownloadEngine.{h, cc}
  10194. * src/Metalink2RequestGroup.cc
  10195. * src/Peer.cc
  10196. * src/RequestGroup.cc
  10197. * src/MetalinkHelper.cc
  10198. * test/DefaultPieceStorageTest.cc
  10199. * test/MetalinkPostDownloadHandlerTest.cc
  10200. * test/Metalink2RequestGroupTest.cc
  10201. Hide TOTAL SPD when all downloads complete.
  10202. * src/ConsoleStatCalc.cc
  10203. Log target system information.
  10204. * src/main.cc
  10205. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10206. Now --metalink-location accepts a comma-deliminated list of locations.
  10207. * src/MetalinkEntry.{h, cc}
  10208. * test/MetalinkEntryTest.cc
  10209. * src/version_usage.cc
  10210. * src/Metalink2RequestGroup.cc
  10211. * src/Xml2MetalinkProcessor.cc
  10212. * test/Xml2MetalinkProcessorTest.cc
  10213. * doc/aria2c.1.txt
  10214. * doc/aria2c.1
  10215. * src/Util.cc (toUpper)(toLower): Rewritten.
  10216. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10217. Added the ability to detect duplicate download entry which is about to
  10218. download the same file other RequestGroup is downloading.
  10219. * src/RequestGroup.cc
  10220. * src/HttpResponseCommand.cc
  10221. * src/FtpNegotiationCommand.cc
  10222. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10223. Recalculates download progress when loading a control file,
  10224. if the piece length of DownloadContext is different from the one saved
  10225. in the control file. Currently in-flight pieces are ignored.
  10226. * src/DefaultBtProgressInfoFile.cc
  10227. * test/DefaultBtProgressInfoFileTest.cc
  10228. * src/Util.{h, cc}
  10229. * test/UtilTest.cc
  10230. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10231. Do not rotate tiers in announce-list.
  10232. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  10233. AnnounceList::allTiersFailed() used instead to detect whether all
  10234. tiers are tried and failed.
  10235. * test/DefaultBtAnnounceTest.cc
  10236. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  10237. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  10238. * test/AnnounceListTest.cc
  10239. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  10240. clause. Catch RecoverableException instead of DlRetryEx instead.
  10241. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10242. Implemented checksum validation feature(1 checksum for each file)
  10243. The validation takes place after the download.
  10244. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  10245. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  10246. * src/CheckIntegrityCommand.cc: Changed log message.
  10247. * src/Metalink2RequestGroup.cc: Set checksum to
  10248. SingleFileDownloadContext.
  10249. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  10250. PieceHashCheckIntegrity class.
  10251. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  10252. PieceHashCheckIntegrity class.
  10253. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  10254. * src/IteratableValidator.h: New class.
  10255. * src/message.h
  10256. * src/CheckIntegrityEntry.{h, cc}
  10257. * src/IteratableChunkChecksumValidator.{h, cc}
  10258. * src/SingleFileDownloadContext.h
  10259. * src/DownloadCommand.cc
  10260. --allow-overwrite=true is no longer needed to check file integrity
  10261. before download in BitTorrent download.
  10262. * src/RequestGroup.cc (getInitialCommand)
  10263. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  10264. throws exception.
  10265. * src/RequestGroupMan.cc (getInitialCommands)
  10266. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10267. urlencode the given url inside Request::parseUrl(...)
  10268. * src/Request.{h, cc}
  10269. * src/Util.{h, cc}
  10270. * test/RequestTest.cc
  10271. Removed #!metalink3! notation support because it is deleted from
  10272. the metalink specification.
  10273. * src/Request.{h, cc}
  10274. * test/RequestTest.cc
  10275. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10276. Don't connect server before checking file integrity at startup, if
  10277. filesize and output file path are known.
  10278. * src/AbstractCommand.cc
  10279. * src/StreamFileAllocationEntry.cc
  10280. * src/Metalink2RequestGroup.cc
  10281. * src/RequestGroup.{h, cc}
  10282. * src/HttpResponseCommand.cc
  10283. * src/FtpNegotiationCommand.cc
  10284. Added DownloadFailureException. If it is thrown, RequestGroup should
  10285. halt.
  10286. * src/AbstractCommand.cc
  10287. * src/DownloadFailureException.h
  10288. * src/RequestGroup.cc
  10289. Catch RecoverableException, instead of DlAbortEx.
  10290. * src/RequestGroupMan.cc
  10291. * src/FillRequestGroupCommand.cc
  10292. * src/MetaFileUtil.cc
  10293. * src/IteratableChunkChecksumValidator.cc
  10294. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  10295. getGID())
  10296. * src/CheckIntegrityCommand.cc
  10297. * src/message.h
  10298. Print gid instead of idx.
  10299. * src/RequestGroupMan.cc
  10300. Removed exception throwers declaration.
  10301. * src/DirectDiskAdaptor.{h, cc}
  10302. * src/SocketCore.{h, cc}
  10303. * src/MultiDiskAdaptor.{h, cc}
  10304. * src/HttpConnection.{h, cc}
  10305. * src/HttpResponse.{h, cc}
  10306. * src/DiskAdaptor.{h, cc}
  10307. * src/CopyDiskAdaptor.{h, cc}
  10308. * src/MultiDiskAdaptor.{h, cc}
  10309. * src/HttpHeaderProcessor.{h, cc}
  10310. * src/AbstractSingleDiskAdaptor.{h, cc}
  10311. * src/Util.{h, cc}
  10312. * test/UtilTest.cc
  10313. * src/DefaultDiskWriter.{h, cc}
  10314. * src/FtpConnection.{h, cc}
  10315. * src/AbstractDiskWriter.{h, cc}
  10316. Removed duplicate code.
  10317. * src/StreamCheckIntegrityEntry.cc
  10318. Removed unnecessary include.
  10319. * src/DiskWriter.h
  10320. Included Exception.h
  10321. * src/option_processing.cc
  10322. Included 2 files and added doc
  10323. * src/TrackerWatcherCommand.cc
  10324. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  10325. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10326. Changed CheckIntegrityEntry interface so that it can define
  10327. the action when all the chunk checksums are valid.
  10328. * src/CheckIntegrityEntry.h
  10329. * src/StreamCheckIntegrityEntry.{h, cc}
  10330. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  10331. are valid, then aira2 goes to seeding mode. Sometimes it is better
  10332. to exit rather than doing seeding. So, it would be good to toggle this
  10333. behavior.
  10334. * src/CheckIntegrityCommand.cc
  10335. * src/AbstractCommand.cc
  10336. * src/RequestGroup.cc
  10337. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10338. Reflect the download length of in-flight pieces.
  10339. It makes the download length readout more precise.
  10340. * src/DefaultPieceStorage.{h, cc}
  10341. * test/DefaultPieceStorageTest.cc
  10342. * src/a2functional.h
  10343. * test/a2functionalTest.cc
  10344. Lower CPU load when --max-download-limit is used.
  10345. There is up and down in speed indicator when enabling
  10346. http-pipelining but a download goes well. I think the problem is that
  10347. because http-pipelining is enabled, DownloadCommand is created for
  10348. each segment and in its constructor, PeerStat::downloadStart() is
  10349. called. In PeerStat::downloadStart(), speed calculation object is
  10350. reseted, which makes download speed zero.
  10351. * src/DownloadCommand.cc
  10352. Rewritten using accumulate.
  10353. * src/RequestGroupMan.cc (calculateStat)
  10354. Code clearnup.
  10355. * src/FtpNegotiationCommand.cc
  10356. * src/HttpResponseCommand.cc
  10357. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10358. Fixed: Can not resume: aria2 reports download already finished.
  10359. * src/AbstractCommand.{h, cc}
  10360. * src/HttpResponseCommand.cc
  10361. * src/FtpNegotiateCommand.cc
  10362. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10363. Now a file is stored in the directory specified in .metalnk file
  10364. (file[@name]).
  10365. * src/Metalink2RequestGroup.cc
  10366. Create the directory structure when opening the file if it doesn't
  10367. exist.
  10368. * src/AbstractDiskWriter.cc
  10369. * src/Util.{h, cc}
  10370. * src/File.h
  10371. * test/UtilTest.cc
  10372. Removed file name comparison
  10373. * src/Metalink2RequestGroup.cc
  10374. * src/HttpResponseCommand.cc
  10375. Rewritten using Util::mkdirs()
  10376. * src/FileEntry.cc (setupDir)
  10377. * test/FileEntryTest.cc
  10378. Updated doc
  10379. * src/SingleFileDownloadContext.h
  10380. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10381. Now SleepCommand dispatches nextCommand when halt is requested.
  10382. It avoids a possible long wait after hitting CTRL-C.
  10383. * src/SleepCommand.{h, cc}
  10384. * src/RequestGroupAware.{h, cc}
  10385. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10386. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  10387. to open listen port, then remove the port number from the tracker
  10388. request.
  10389. * src/DefaultBtAnnounce.cc
  10390. * test/DefaultBtAnnounceTest.cc
  10391. * test/MockPieceStorage.h
  10392. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  10393. them more testable.
  10394. * src/DefaultBtAnnounce.{h, cc}
  10395. * src/DefaultBtContext.{h, cc}
  10396. * src/Util.{h, cc}
  10397. * test/DefaultBtAnnounceTest.cc
  10398. * test/DefaultBtContextTest.cc
  10399. * test/UtilTest.cc
  10400. Added 'B' to upload bytes readout.
  10401. * src/ConsoleStatCalc.cc
  10402. Now the listen port for BitTorrent download is opened when it is
  10403. needed.
  10404. * src/DownloadEngineFactory.cc
  10405. * src/BtSetup.{h, cc}
  10406. * src/PeerListenCommand.{h, cc}
  10407. Now an exception thrown while parsing tracker response is now logged.
  10408. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  10409. called, which means no retry is made in this case, assuming a tracker
  10410. has a problem.
  10411. * src/TrackerWatcherCommand.cc
  10412. Fixed: downloading a file whose length is unkown fails.
  10413. * src/DownloadCommand.cc
  10414. Simplified prepareForNextSegment()
  10415. * src/DownloadCommand.cc
  10416. Updated
  10417. * po/POTFILES.in
  10418. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10419. Re-implemented a file listing for Metalink, which was dropped while
  10420. http/ftp/torrent integration was being implemented.
  10421. * src/MetalinkHelper.{h, cc}: New class.
  10422. * test/MetalinkHelperTest.cc
  10423. * src/main.cc
  10424. * src/Metalink2RequestGroup.cc
  10425. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10426. Added the ability to display the detailed torrent file information.
  10427. Now -S option gives not only a file listing, but also total download
  10428. length, info hash, announce URI, piece length, the number of pieces,
  10429. and mode(single or multi-torrent).
  10430. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  10431. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  10432. KiB)
  10433. * test/UtilTest.cc
  10434. * src/main.cc
  10435. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10436. Added ftp://USER:PASSWD@Servername automatic parsing.
  10437. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  10438. _password. Recognize username and password in URI.
  10439. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  10440. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  10441. * src/RequestFactory.{h, cc}: Removed.
  10442. * src/AuthConfigFactory.{h, cc}: New class.
  10443. * src/FtpConnection.cc: Use AuthConfigFactory.
  10444. * src/HttpRequest.cc: Use AuthConfigFactory.
  10445. * test/HttpRequestTest.cc: Updated.
  10446. * test/RequestTest.cc: Updated.
  10447. * test/AuthConfigFactoryTest.cc: New class.
  10448. * test/RequestFactoryTest.cc: Removed.
  10449. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10450. Use RequestGroup::allDownloadFinished() to decide whether the control
  10451. file should be removed or saved.
  10452. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  10453. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  10454. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10455. Use File::renameTo()
  10456. * src/DefaultBtProgressInfoFile.cc
  10457. Added --no-file-allocation-limit command-line option.
  10458. * src/version_usage.cc
  10459. * src/option_processing.cc
  10460. * src/OptionHandlerFactory.cc
  10461. * src/RequestGroup.{h, cc}
  10462. * src/BtCheckIntegrityEntry.cc
  10463. * src/StreamCheckIntegrityEntry.cc
  10464. * src/prefs.h
  10465. * doc/aria2c.1.txt
  10466. * doc/aria2c.1
  10467. Now prealloc is the default value for --file-allocation option.
  10468. * src/version_usage.cc
  10469. * src/option_processing.cc
  10470. * doc/aria2c.1.txt
  10471. * doc/aria2c.1
  10472. Don't URL-encode user-agent.
  10473. * src/HttpRequest.cc
  10474. Updated translations
  10475. * po/LINGUAS: Added nl for Dutch translation.
  10476. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  10477. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  10478. * po/POTFILES.in: Updated.
  10479. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10480. Added the ability to recognize url-list in a torrent file.
  10481. The retrieved URLs are attached to the corresponding FileEntry.
  10482. * src/DefaultBtContext.{h, cc}
  10483. * src/FileEntry.{h, cc}
  10484. * test/DefaultBtContextTest.cc
  10485. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10486. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  10487. after the download finishes.
  10488. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10489. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  10490. the data smaller than block length.
  10491. A block length can be specified by constructor's argument.
  10492. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  10493. Get a missing piece in the range of given FileEntry. This function is
  10494. not used in the program yet.
  10495. * src/Util.h: Added some macros.
  10496. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10497. Added HTTP/1.1 keep alive and pipelining support.
  10498. See --enable-http-keep-alive and --enable-http-pipelining option.
  10499. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  10500. Segment.
  10501. * src/HttpDownloadCommand.{h, cc}
  10502. * src/OptionHandlerFactory.cc
  10503. * src/HttpConnection.{h, cc}
  10504. * src/version_usage.cc
  10505. * src/HttpInitiateConnectionCommand.cc
  10506. * src/FtpInitiateConnectionCommand.cc
  10507. * src/Segment.h
  10508. * src/HttpRequestCommand.{h, cc}
  10509. * src/option_processing.cc
  10510. * src/prefs.h
  10511. * src/HttpResponseCommand.cc
  10512. * src/SegmentMan.{h, cc}
  10513. * src/FtpNegotiateCommand.cc
  10514. * src/HttpProxyResponseCommand.cc
  10515. * src/Request.cc
  10516. * src/HttpRequest.cc
  10517. * src/DownloadCommand.cc
  10518. * test/HttpRequestTest.cc
  10519. * test/RequestTest.cc
  10520. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10521. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  10522. finished.
  10523. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10524. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  10525. catching it inside the method.
  10526. When no file entry is found in a metalink without querying user
  10527. preferences, throw the exception with the error message that suggests
  10528. metalink file is probably broken.
  10529. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  10530. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10531. Fixed the bug that prevents remote Metalink/Torrent file from begin
  10532. processed.
  10533. * src/RequestGroupMan.cc (removeStoppedGroup)
  10534. Added debug message.
  10535. * src/BtPostDownloadHandler.cc
  10536. * src/MetalinkPostDownloadHandler.cc
  10537. * src/PostDownloadHandler.{h, cc}
  10538. * src/RequestGroup.cc
  10539. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10540. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  10541. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10542. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  10543. stops and there are any unfinished or in-progress downloads.
  10544. Added the legend of "stat".
  10545. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10546. Throw exception when chunck checksum verification fails.
  10547. * src/DownloadCommand.cc (validatePieceHash): New function.
  10548. * src/PiecedSegment.{h, cc} (clear): New function.
  10549. * src/GrowSegment.{h, cc} (clear): New function.
  10550. * src/Segment.h (clear): New function.
  10551. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  10552. * test/SegmentTest.cc
  10553. * test/GrowSegmentTest.cc
  10554. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10555. Do not send referer when redirected.
  10556. * src/Request.cc (redirectUrl)
  10557. * test/RequestTest.cc
  10558. * test/HttpRequestTest.cc
  10559. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10560. Implemented BitTorrent/http/ftp integrated download.
  10561. I've rewritten lots of files and now some headers have forward
  10562. class declarations to reduce compile time.
  10563. The implementation is extremely alpha stage, I recommend to use this
  10564. for testing purpose only.
  10565. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10566. Fixed the compilation error on 64bit platform.
  10567. * test/HttpHeaderProcessorTest.cc
  10568. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10569. Merged Ross's patch that fixes compilation problem in MinGW
  10570. * test/DefaultBtProgressInfoFileTest.cc
  10571. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10572. Updated fr.po by sebone
  10573. * po/fr.po
  10574. Updated man page.
  10575. * doc/aria2c.1.txt
  10576. * Release 0.11.3
  10577. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10578. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  10579. failure in Metalink.
  10580. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10581. Automatically save *.aria2 control file of http/ftp download in every
  10582. 60 seconds.
  10583. * src/AutoSaveCommand.{h, cc}: New class.
  10584. * src/TimeBasedCommand.{h, cc}: New class.
  10585. * src/DownloadEngineFactory.cc (newConsoleEngine)
  10586. Disable parameterized URI support by default. Added -P option to
  10587. enable the feature.
  10588. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  10589. * src/OptionHandlerFactory.cc
  10590. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  10591. Updated Japanese translation.
  10592. * po/ja.po
  10593. Updated man page.
  10594. * doc/aria2c.1.txt
  10595. * Release 0.11.3-rc
  10596. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10597. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  10598. it is successful, then renamed to *.aria2.
  10599. This prevents *.aria2 file from being truncated or corrupted when
  10600. file system becomes out of space.
  10601. * src/DefaultBtProgressInfoFile.cc (save)
  10602. * src/SegmentMan.cc (save)
  10603. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  10604. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10605. Reduced the fragmentation of bitfield in http/ftp download.
  10606. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  10607. * test/BitfieldManTest.cc
  10608. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10609. Added the ability to disable segmented download in .metalink.
  10610. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  10611. 'url' tag.
  10612. * src/MetalinkEntry.{h, cc}
  10613. * src/RequestResource.{h, cc}
  10614. * src/MetalinkRequestInfo.cc
  10615. * src/Xml2MetalinkProcessor.cc
  10616. * test/Xml2MetalinkProcessorTest.cc
  10617. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10618. Added parameterized URI support.
  10619. * src/main.cc: -Z option added.
  10620. * src/OptionHandlerFactory.cc
  10621. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  10622. * src/PStringDatum.h: New class.
  10623. * src/PStringSegment.{h,cc}: New class.
  10624. * src/PStringNumLoop.h: New class.
  10625. * src/PStringSelect.h: New class.
  10626. * src/NumberDecorator.h: New class.
  10627. * src/FixedWidthNumberDecorator.h: New class.
  10628. * src/AlphaNumberDecorator.h: New class.
  10629. * src/PStringVisitor.h: New class.
  10630. * src/PStringBuildVisitor.{h,cc}: New class.
  10631. * src/ParameterizedStringParser.{h,cc}: New class.
  10632. * src/Util.{h,cc}
  10633. (isNumber): New function.
  10634. (isLowercase): New function.
  10635. (isUppercase): New function.
  10636. (alphaToNum): New function.
  10637. * test/ParameterizedStringParserTest.cc: New class.
  10638. * test/AlphaNumberDecoratorTest.cc: New class.
  10639. * test/PStringBuildVisitorTest.cc: New class.
  10640. * test/UtilTest.cc
  10641. (testIsNumber): New function.
  10642. (testIsLowercase): New function.
  10643. (testIsUppercase): New function.
  10644. (testAlphaToNum): New function.
  10645. Added '\n' after the error message
  10646. * src/RequestInfo.h (printDownloadAbortMessage)
  10647. Added auto file renaming feature in http(s)/ftp download.
  10648. * src/main.cc: Added --auto-file-renaming command-line option.
  10649. * src/OptionHandlerFactory.cc
  10650. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  10651. * src/RequestGroup.{h, cc}
  10652. (shouldCancelDownloadForSafety): Rewritten
  10653. (tryAutoFileRenaming): New function.
  10654. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  10655. * src/HttpResponseCommand.cc
  10656. (executeInternal): Removed the call to RequestGroupMan::
  10657. isSameFileBeingDownloaded()
  10658. * src/FtpNegotiateCommand.cc
  10659. (recvSize): Removed the call to RequestGroupMan::
  10660. isSameFileBeingDownloaded()
  10661. * test/RequestGroupTest.cc: New class.
  10662. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10663. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  10664. IO.
  10665. * src/DefaultBtProgressInfoFile.cc
  10666. * src/MetaFileUtil.cc
  10667. * src/SimpleLogger.cc
  10668. * src/SegmentMan.cc
  10669. * src/Util.cc
  10670. * src/Platform.cc
  10671. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10672. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  10673. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10674. Avoid sparse files if possible, because VFAT32 doesn't support it.
  10675. * src/DefaultDiskWriter.cc (initAndOpenFile)
  10676. Fixed the bug that prevents file allocation is not done when
  10677. dowloading multi-torrent file.
  10678. * src/AbstractDiskWriter.cc (openFile)
  10679. Increase the maximum number of -j option from 15 to 45.
  10680. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10681. Added fr.po, thanks to Charles Landemaine.
  10682. * po/fr.po
  10683. * po/LINGUAS
  10684. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10685. gcc 3.4.4 support:
  10686. * src/DefaultBtContext.cc: int32_t -> int
  10687. * src/main.cc: int -> int32_t, int32_t -> int
  10688. * src/messageDigest.h: uint32_t -> unsigned int
  10689. * src/NameResolver.h: int32_t -> int
  10690. * src/PeerConnection.cc: int -> int32_t
  10691. * src/SpeedCalc.cc: int32_t -> int
  10692. * src/TrackerUpdateCommand.h: int -> int32_t
  10693. * src/Util.cc: int32_t -> int
  10694. * src/Util.h: int32_t -> int
  10695. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  10696. * test/AnnounceListTest.cc: int -> int32_t
  10697. * test/ChunkedEncodingTest.cc: int -> int32_t
  10698. * test/DataTest.cc: int -> int32_t
  10699. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  10700. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  10701. * test/DefaultPieceStorageTest.cc: int -> int32_t
  10702. * test/FeatureConfigTest.cc: int -> int32_t
  10703. * test/MetalinkEntryTest.cc: int -> int32_t
  10704. * test/MockBtRequestFactory.h: int -> int32_t
  10705. * test/MockPieceStorage.h: int -> int32_t
  10706. * test/OptionTest.cc: int -> int32_t
  10707. * test/RequestTest.cc: int -> int32_t
  10708. * test/SegmentManTest.cc: int -> int32_t
  10709. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  10710. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10711. Move sleep functions to Util class:
  10712. * src/Util.cc
  10713. (sleep): New function.
  10714. (usleep): New function.
  10715. * src/DownloadCommand.cc: sleep -> Util::sleep
  10716. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  10717. MinGW build enhancements. The following files are added:
  10718. * src/timegm.{c,h}
  10719. Changes to support the above new files:
  10720. * configure.ac
  10721. * src/Makefile.am
  10722. * src/a2time.h
  10723. * src/Util.cc:
  10724. * src/strptime.c: Added support for %Z option.
  10725. Fixed MinGW non-blocking bug.
  10726. * src/SocketCore.cc
  10727. * src/HttpRequestCommand.cc
  10728. Miscellenous build fixes/enhancements.
  10729. * configure.ac: Added summary report.
  10730. * src/Platform.h: Tweaked #include's.
  10731. * src/a2netcompat.h: Tweaked #include's.
  10732. * src/strptime.h: Tweaked #include's.
  10733. * src/gai_strerror.c: Tweaked #include's.
  10734. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  10735. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  10736. * src/gettimeofday.h: Added HAVE_CONFIG_H
  10737. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10738. Increased the initial connection size in BitTorrent download to 40.
  10739. * src/BtRuntime.h
  10740. Added the usage message of --peer-id-prefix option.
  10741. * src/main.cc
  10742. * Release 0.11.2
  10743. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10744. MessageDigestHelper is introduced in order to simplify the use
  10745. of message digest. Removed repeated code.
  10746. The message digest algorithm is now specified by string, like "sha1",
  10747. "md5".
  10748. * src/messageDigest.{h, cc}
  10749. * src/MessageDigestHelper.{h, cc}: New class.
  10750. * src/DefaultPieceStorage.cc
  10751. * src/DefaultBtContext.{h, cc}
  10752. (computeFastSet): New function.
  10753. (setInfoHash): Added for unit testing.
  10754. (setNumPieces): Added for unit testing.
  10755. * src/DefaultBtInteractive.cc
  10756. * src/BtPieceMessage.cc
  10757. * src/Peer.cc
  10758. * src/Checksum.h
  10759. * src/message.h
  10760. * src/IteratableChecksumValidator.h
  10761. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  10762. inside it.
  10763. * src/SegmentMan.{h, cc}
  10764. (checkIntegrity): Removed.
  10765. * src/IteratableChunkChecksumValidator.{h, cc}
  10766. * src/Util.h
  10767. (sha1Sum): Removed.
  10768. (simpleMessageDigest): Removed.
  10769. (fileChecksum): Removed.
  10770. (computeFastSet): Removed.
  10771. * src/ShaVisitor.cc
  10772. * src/ChunkChecksum.h
  10773. * src/DownloadCommand.cc
  10774. Removed messageDigest virtual functions.
  10775. * src/MultiDiskAdaptor.{h, cc}
  10776. * src/DiskAdaptor.h
  10777. * src/ByteArrayDiskWriter.h
  10778. * src/DiskWriter.h
  10779. * src/DiskAdaptorWriter.h
  10780. * src/AbstractSingleDiskAdaptor.{h, cc}
  10781. * src/AbstractDiskWriter.{h, cc}
  10782. Fixed comilation error when message digest is disabled.
  10783. * src/MetalinkEntry.{h, cc}
  10784. * src/MetalinkRequestInfo.cc
  10785. Removed srandom and random.
  10786. * src/SimpleRandomizer.h
  10787. Added size() virtual function to DiskAdaptor
  10788. * src/MultiDiskAdaptor.h
  10789. Fixed the bug that causes that files are not opened correctly in
  10790. multi-file torrent.
  10791. * src/TorrentRequestInfo.cc
  10792. * src/MultiDiskAdaptor.cc
  10793. Added SHA256 support
  10794. * src/messageDigest.cc
  10795. * src/Xml2MetalinkProcessor.cc
  10796. Show supported message digest algorithms
  10797. * src/main.cc
  10798. Updated contact info.
  10799. * src/main.cc
  10800. Applied Ross's patch
  10801. * src/a2netcompat.h
  10802. * src/main.cc
  10803. Fixed the bug that prevents a remote metalink from not being processed
  10804. even if '-o foo.metalink' is specified.
  10805. * src/MetalinkRequestInfo.cc
  10806. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10807. Merged Dan's patch:
  10808. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  10809. Use va_copy to avoid core dump on amd64:
  10810. * src/SimpleLogger.cc
  10811. Updated contact info.
  10812. * src/main.cc
  10813. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  10814. digest is not available.
  10815. * src/MetalinkEntry.h
  10816. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10817. Make a2netcompat.h include a2io.h to fix compilation error:
  10818. * src/a2netcompat.h
  10819. * src/SocketCore.cc: Removed include of a2io.h
  10820. * src/Util.cc: Removed include of a2io.h
  10821. Gather time related functions to a2time.h:
  10822. * src/a2time.h: New file.
  10823. * src/DefaultPeerStorage.cc
  10824. * src/SimpleLogger.cc
  10825. * src/Util.{h, cc}
  10826. * src/SimpleRandomizer.h
  10827. * src/TimeA2.{h,cc}
  10828. * src/DownloadCommand.cc
  10829. * src/main.cc
  10830. Removed #ifdef __MINGW32__ since gai_strerror is included in
  10831. a2netcompat.h:
  10832. * src/NameResolver.cc
  10833. Fixed compilation error without openssl:
  10834. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  10835. Added default block to suppress compiler warnings:
  10836. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  10837. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  10838. MinGW build enhancements. The following files are added:
  10839. * src/gai_strerror.{c,h}
  10840. * src/gettimeofday.{c,h}
  10841. Changes to support the above new files:
  10842. * configure.ac
  10843. * src/Makefile.am
  10844. * src/a2netcompat.h
  10845. * src/TimeA2.cc
  10846. * src/DefaultPeerStorage.cc
  10847. * src/NameResolver.cc: removed mingw_strerror() function.
  10848. * src/SocketCore.cc: removed mingw_strerror() function.
  10849. Miscellaneous MinGW build fixes.
  10850. * src/a2io.h: Use _lseeki64() instead of lseek()
  10851. * src/common.h
  10852. * src/DefaultFileAllocator.cc
  10853. * src/GlowFileAllocator.cc
  10854. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  10855. * src/NameResolver.cc
  10856. (callback): Changed int32_t to int.
  10857. (resolve): Changed int32_t to int.
  10858. * src/Platform.cc
  10859. * src/Platform.h
  10860. * test/MultiDiskWriterTest.cc
  10861. * test/PeerMessageUtilTest.cc
  10862. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  10863. Other enhancements and fixes.
  10864. * src/HttpRequestCommand.cc
  10865. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  10866. * src/SocketCore.cc:
  10867. (error): New function to abstract errno/WSAGetLastError().
  10868. (errorMsg): New function to abstract errno/WSAGetLastError().
  10869. (initiateSecureConnection): Added more detailed error reporting.
  10870. * src/SocketCore.h: Added private variable blocking, to allow
  10871. proper handling of OpenSSL psuedo-errors.
  10872. * src/message.h
  10873. (EX_SSL_INIT_FAILURE)
  10874. (EX_SSL_IO_ERROR)
  10875. (EX_SSL_PROTOCOL_ERROR)
  10876. (EX_SSL_UNKNOWN_ERROR)
  10877. (EX_SSL_CONNECT_ERROR)
  10878. (EX_SOCKET_BLOCKING)
  10879. (EX_SOCKET_NONBLOCKING)
  10880. (EX_SOCKET_UNKNOWN_ERROR)
  10881. * src/Util.cc
  10882. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  10883. reserved name.
  10884. (httpGMT): Fixed typo.
  10885. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10886. Merged Ross's win32 patch(manually)
  10887. In the course of merging, following files are added.
  10888. * src/strptime.{h,c}
  10889. * src/libgen.{h,c}
  10890. * src/inet_aton.{h,c}
  10891. * src/Platform.{h,cc}
  10892. * src/localtime_r.{h,c}
  10893. * src/getaddrinfo.{h,c}
  10894. I've gethered network related things, and put them to following file:
  10895. * src/a2netcompat.h
  10896. Also io related things are put to following file:
  10897. * src/a2io.h
  10898. Changed %lld to %s because mingw32 doesn't recognize %lld.
  10899. * src/message.h
  10900. (MSG_ALLOCATION_COMPLETED)
  10901. (EX_TOO_LARGE_FILE)
  10902. (EX_SIZE_MISMATCH)
  10903. (EX_FILE_OFFSET_OUT_OF_RANGE)
  10904. (EX_INVALID_CHUNK_CHECKSUM)
  10905. (EX_INVALID_RANGE_HEADER)
  10906. * src/FileAllocationCommand.cc
  10907. * src/HttpResponse.cc
  10908. * src/RequestGroup.cc
  10909. * src/MultiDiskAdaptor.cc
  10910. * src/OptionHandlerImpl.h
  10911. * src/HttpResponseCommand.cc
  10912. * src/FtpNegotiateCommand.cc
  10913. * src/IteratableChecksumValidator.cc
  10914. * src/SegmentMan.cc
  10915. * src/ChunkChecksumValidator.cc
  10916. Added Randomizer::getRandomNumber(long int)
  10917. * src/Randomizer.h (getRandomNumber)
  10918. * src/SimpleRandomizer.h (getRandomNumber)
  10919. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  10920. * src/Util.cc (randomAlpha): Use this new function.
  10921. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10922. Converted int's to in32_t. long long int's are also converted to
  10923. int64_t
  10924. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10925. Fixed the bug that prevents cookies from being sent to the server
  10926. if the domain of cookie is FQDN and starts with ".".
  10927. * src/Cookie.cc (match)
  10928. To add the ability to change peer id.
  10929. * src/DefaultBtContext.h
  10930. (_peerIdPrefix): New variable
  10931. (setPeerIdPrefix): New function.
  10932. * src/torrentRequestInfo.cc
  10933. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  10934. DefaultBtContext.
  10935. * src/main.cc (main): Added peer-id-prefix command-line option.
  10936. The usage message is not added yet.
  10937. * src/DefaultBtContext.cc
  10938. (generatePeerId): Use _peerIdPrefix.
  10939. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  10940. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10941. Fixed the bug that prevents filename in content-disposition from
  10942. being retrieved when filename is not quoted.
  10943. * src/Util.cc (getContentDispositionFilename)
  10944. Fixed the bug that causes infinate loop and memory leak when file open
  10945. operation failed.
  10946. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10947. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10948. Fixed the bug that causes segfault when all URIs specified are
  10949. unsupported.
  10950. * src/RequestGroupMan.cc (getInitialCommands)
  10951. Check if RequestGroup::createNextCommand() returns empty list of
  10952. commands.
  10953. * src/RequestGroup.cc (createNextCommand)
  10954. Change log level from info to error so that users can notice that
  10955. an error occurred.
  10956. Fixed the bug that causes segfault when a zero-sized file is
  10957. downloaded.
  10958. * src/BitfieldMan.cc (isAllBitSet)
  10959. Return true if bitfieldLength is 0.
  10960. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10961. * src/main.cc
  10962. (showUsage): Added 3 usage examples for metalink download.
  10963. Replace MetalinkChunkChecksum with ChunkChecksum.
  10964. * src/MetalinkChunkChecksum.h: Removed.
  10965. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  10966. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  10967. * src/Xml2MetalinkProcessor.cc
  10968. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  10969. * src/MetalinkRequestInfo.cc (execute)
  10970. * Release 0.11.1
  10971. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10972. Reads URIs from stdin when "-i -" is specified.
  10973. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  10974. * src/UriListParser.h, src/UriListParser.cc: New class.
  10975. * src/StreamUriListParser.h: New class.
  10976. * src/FileUriListParser.h: New class.
  10977. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  10978. instead of UriFileListParser.
  10979. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10980. Made console readout more readable.
  10981. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10982. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10983. Fix the bug that causes -s option not to work.
  10984. * src/main.cc (main)
  10985. * src/a2algo.h: New file.
  10986. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10987. Create directory structure specified in metalink file.
  10988. * src/RequestGroup.h, src/RequestGroup.cc
  10989. (initAndOpenFile): Create a directory to store files if it does not
  10990. exist.
  10991. (getDir): New function.
  10992. Added ETA and download speed for an individual file to readout.
  10993. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10994. * src/RequestGroup.h
  10995. (calculateDownloadSpeed): New function.
  10996. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10997. Made -S option work with metalink file and provided selective download
  10998. to metalink.
  10999. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  11000. (filename): Removed.
  11001. (file): New variable.
  11002. (size): Removed.
  11003. (operator=): Updated.
  11004. (getPath): New function.
  11005. (getLength): New function.
  11006. (toFileEntry): New function.
  11007. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  11008. (execute): Use toStream.
  11009. (showFileEntry): Removed.
  11010. * src/MetalinkRequestInfo.h
  11011. (targetFiles): New variable.
  11012. (setTargetFiles): New variable.
  11013. * src/MetalinkRequestInfo.cc
  11014. (execute): Added the ability to print file information included in
  11015. a metalink file.
  11016. Added selective download mode to metalink.
  11017. * src/main.cc
  11018. (showUsage): Updated to denote that -S and --select-file options are
  11019. applicable to metalink.
  11020. * src/FileEntry.h
  11021. (operator=): New function.
  11022. (getBasename): New function.
  11023. (getDirname): New function.
  11024. * src/Util.h, src/Util.cc
  11025. (toStream): New function.
  11026. * src/Xml2MetalinkProcessor.cc: Updated.
  11027. Made aria2 work with metalink with directory structure.
  11028. * src/File.h, src/File.cc
  11029. (getBasename): New function.
  11030. (getDirname): New function.
  11031. * src/RequestGroup.h, src/RequestGroup.cc
  11032. (_topDir): New variable.
  11033. (setTopDir): New function.
  11034. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  11035. Rewrote HTTP header parsing with stringstream.
  11036. * src/HttpConnection.h, src/HttpConnection.cc
  11037. (HttpRequestEntry): New class.
  11038. (headerBuf): Removed.
  11039. (headerBufLength): Removed.
  11040. (outstandingHttpRequests): Now its element type is
  11041. HttpRequestEntryHandle.
  11042. (findEndOfHeader): Removed.
  11043. (receiveResponse): Rewritten.
  11044. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  11045. Updated doc for -j option to notice that it should be used with -i
  11046. option.
  11047. * src/main.cc (showUsage)
  11048. Removed unused classes.
  11049. * src/RequestInfo.h
  11050. (FileInfo): Removed.
  11051. (checksum): Removed.
  11052. (fileInfo): Removed.
  11053. (setChecksum): Removed.
  11054. (getChecksum): Removed.
  11055. (getFileInfo): Removed.
  11056. Use ISO units.
  11057. * src/ConsoleDownloadEngine.cc
  11058. * src/TorrentConsoleDownloadEngine.cc
  11059. * src/Util.cc (abbrevSize)
  11060. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11061. Added the default listening ports to the help message.
  11062. * src/main.cc (showUsage)
  11063. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11064. Reduce the number of calls to gettimeofday to lower CPU load.
  11065. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  11066. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  11067. * src/Peer.h (calculateUploadSpeed): New function.
  11068. (calculateDownloadSpeed): New function.
  11069. * src/DefaultPeerStorage.cc
  11070. (CalculateStat): Added _now variable.
  11071. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  11072. and Peer::calculateUploadSpeed(const struct timeval&)
  11073. Drop connection if no request or piece message is exchanged in
  11074. a certain interval.
  11075. * src/DefaultBtInteractive.h
  11076. (btRuntime): New variable.
  11077. (inactiveCheckPoint): New variable.
  11078. (checkActiveInteraction): New function.
  11079. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  11080. request or piece message is received.
  11081. (checkActiveInteraction): New function.
  11082. (doInteractionProcessing): Call checkActiveInteraction.
  11083. Fixed the bug that causes remote Metalink and Torrent files are not
  11084. processed.
  11085. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  11086. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11087. Changed format of log file.
  11088. * src/SimpleLogger.cc
  11089. * Release 0.11.0
  11090. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11091. * src/AbstractCommand.cc
  11092. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  11093. MSG_MAX_TRY from error to info.
  11094. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  11095. * src/message.h
  11096. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  11097. (MSG_DOWNLOAD_ABORTED): Added %s.
  11098. (MSG_RESTARTING_DOWNLOAD): Added %s.
  11099. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  11100. * src/PeerAbstractCommand.cc
  11101. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  11102. * src/Request.h
  11103. (cookieBox): Made ShardHandle.
  11104. * src/RequestGroup.h, src/RequestGroup.cc
  11105. (createNextCommandWithAdj): New function.
  11106. * src/FileAllocationCommand.cc
  11107. (executeInternal): Use createNextCommandWithAdj().
  11108. * src/CheckIntegrityCommand.cc
  11109. (executeInternal): Use createNextCommandWithAdj().
  11110. Added --load-cookies command-option.
  11111. * src/OptionHandlerFactory.cc
  11112. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  11113. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  11114. Now aria2 can handle cookie's expiration date.
  11115. * src/Cookie.h (expires): Changed its type to time_t.
  11116. * src/main.cc: Added --load-cookies command-line option.
  11117. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  11118. * src/Util.h, src/Util.cc (httpGMT): New function.
  11119. * src/Request.cc (Request): Initialize cookieBox using
  11120. CookieBoxFactory.
  11121. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  11122. * src/CookieParser.h, src/CookieParser.cc: New class.
  11123. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  11124. * src/HttpResponseCommand.cc
  11125. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  11126. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  11127. download.
  11128. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11129. Added -j command-line option.
  11130. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11131. * src/main.cc
  11132. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  11133. Rewritten using stringstream.
  11134. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  11135. Rewritten using stringstream.
  11136. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11137. Make download size shown in MB, KB.
  11138. * src/ConsoleDownloadEngine.h (sendStatistics)
  11139. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  11140. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11141. Accept incoming connections if download rate is low.
  11142. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  11143. (_lowestSpeedLimit): New variable.
  11144. (setLowestSpeedLimit): New function.
  11145. (execute): Accept incoming connections if download rate is low.
  11146. MAX_PEERS is ignored in this case.
  11147. Disable PREF_OUT in multiple concurrent download:
  11148. * src/RequestGroup.h, src/RequestGroup.cc
  11149. (setUserDefinedFilename): New function.
  11150. * src/DownloadEngineFactory.cc
  11151. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  11152. concurrent download.
  11153. * src/DefaultSegmentManFactory.cc
  11154. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  11155. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11156. RequestGroup::getNextCommand() was renamed to createNextCommand().
  11157. Added its overloaded method.
  11158. * src/RequestGroup.h
  11159. (_numConcurrentCommand): New variable.
  11160. (setNumConcurrentCommand): New function.
  11161. * src/RequestGroup.cc
  11162. Abort download if same file is being downloaded concurrently.
  11163. * src/RequestGroup.h, src/RequestGroupMan.cc
  11164. (isSameFileBeingDownloaded): New function.
  11165. * src/HttpResponseCommand.cc (executeInternal)
  11166. * src/FtpNegotiateCommand.cc (recvSize)
  11167. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  11168. * main.cc: Added help message for -i option.
  11169. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11170. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  11171. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  11172. * src/MetalinkEntry.h
  11173. (checksum): Changed to ChecksumHandle
  11174. * src/MetalinkRequestInfo.cc
  11175. (checksum): Changed to ChecksumHandle
  11176. * src/File.cc
  11177. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  11178. * src/common.h
  11179. (DIR_OPEN_MODE): New definition
  11180. * src/RequestGroup.cc
  11181. (prepareForNextAction): Added an argument.
  11182. * src/message.h
  11183. (MSG_GOOD_CHECKSUM): New definition
  11184. (MSG_BAD_CHECKSUM): New definition
  11185. * src/HttpResponseCommand.cc
  11186. (handleDefaultEncoding): Continue download sequence in new
  11187. non-segmented download.
  11188. * src/FileAllocationEntry.h
  11189. (_nextDownloadCommand): New variable.
  11190. * src/DownloadCommand.cc
  11191. (prepareForNextSegment): Create ChecksumCommand if checksum is
  11192. available.
  11193. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  11194. * src/IteratableChecksumValidator.h,
  11195. src/IteratableChecksumValidator.cc: New class.
  11196. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  11197. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11198. Change file mode to 666:
  11199. * src/common.h (OPEN_MODE): New definition.
  11200. * src/File.cc
  11201. * src/Util.cc
  11202. * src/Directry.cc
  11203. * src/AbstractDiskWriter.cc
  11204. Change the level of log message "download aborted" to debug:
  11205. * src/PeerAbstractCommand.cc (execute)
  11206. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  11207. * src/TrackerWatcherCommand.cc
  11208. (createCommand): Sleep some seconds after request failed.
  11209. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  11210. then abort tracker request.
  11211. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11212. * Added the simultaneous download feature.
  11213. * src/main.cc: Print "Exception caught: " when exception is caught.
  11214. Use CUIDCounter instead of BtRuntime::getNewCuid():
  11215. * src/ActivePeerConnectionCommand.cc
  11216. * src/PeerInteractionCommand.cc
  11217. * src/BtRuntime.h
  11218. (cuidCounter): Removed.
  11219. (getNewCuid): Removed.
  11220. * src/DownloadEngineFactory.cc
  11221. * src/PeerListenCommand.cc
  11222. * src/TrackerUpdateCommand.cc
  11223. * src/PeerInitiateConnectionCommand.cc
  11224. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11225. * src/PeerAbstractCommand.cc
  11226. (onAbort): Call PeerStorage::returnPeer()
  11227. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  11228. (incomingPeers): New variable.
  11229. (addIncomingPeer): New function.
  11230. (returnPeer): New function.
  11231. (onErasingPeer): New function.
  11232. (addPeer): push_back -> push_front
  11233. (getActivePeers): Rewritten.
  11234. (calculateStat): Rewritten.
  11235. * src/PeerStorage.h
  11236. (TransferStat::copy): New function.
  11237. (TransferStat::TransferStat): New function.
  11238. (TransferStat::operator=): New function.
  11239. (addIncomingPeer): New function.
  11240. (returnPeer): New function.
  11241. * src/PeerListenCommand.cc
  11242. (execute): Use PeerStorage::addIncomingPeer() instead of
  11243. Peer::addPeer().
  11244. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11245. Connect to a peer actively when download speed is lower than specified
  11246. speed in torrent download:
  11247. * src/ActivePeerConnectionCommand.h: New class.
  11248. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11249. * src/HttpRequest.cc (createRequest): url-encode user-agent
  11250. * src/main.cc: Fixed the bug that prevents download if .netrc
  11251. doesn't exist.
  11252. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11253. To cache resolved hostname:
  11254. * src/AbstractCommand.h, src/AbstractCommand.cc
  11255. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  11256. Added dns cache.
  11257. * src/FtpInitiateConnectionCommand.cc
  11258. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  11259. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  11260. NameResolver working without ares.
  11261. * src/TorrentRequestInfo.cc
  11262. (execute): Don't cache dns in torrent download.
  11263. * src/HttpInitiateConnectionCommand.cc
  11264. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  11265. * src/DNSCache.h: New class.
  11266. * src/UrlRequestInfo.cc
  11267. (execute): Use dns cache.
  11268. In http request, suppress port number in http request header if port
  11269. is 80 or 443:
  11270. * src/HttpRequest.cc (getHostText): Suppress port number in http
  11271. request header if port is 80 or 443.
  11272. (createProxyRequest): Allways send port number.
  11273. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11274. To add the command-line option which disables netrc support:
  11275. * src/OptionHandlerFactory.cc
  11276. (createOptionHandlers): Added PREF_NO_NETRC.
  11277. * src/main.cc: Added -n option.
  11278. * src/prefs.h (PREF_NO_NETRC): New definition.
  11279. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  11280. V_TRUE.
  11281. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  11282. is V_FALSE. This may get configurable in the future release.
  11283. To clear peer's error status by time basis:
  11284. * src/PeerAbstractCommand.cc
  11285. (onAbort): Call Peer::startBadCondition().
  11286. * src/Peer.h, src/Peer.cc
  11287. (error): Removed.
  11288. (_badConditionStartTime): New variable.
  11289. (_badConditionInterval): New variable. Initialized to 10 seconds.
  11290. (startBadCondition): New function.
  11291. (isGood): New function.
  11292. * src/DefaultPeerStorage.cc
  11293. (addPeer): Use Peer::isGood().
  11294. (FindFinePeer): Use Peer::isGood().
  11295. Always include port number in http request header:
  11296. * src/HttpRequest.cc (getHostText): Always include port number in
  11297. http request header.
  11298. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11299. To the ability to read options from a config file:
  11300. * src/main.cc: Command-line parameter validation is delegated to
  11301. OptionHandler class.
  11302. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  11303. * src/Option.h, src/Option.cc (clear): New function.
  11304. * src/OptionParser.h, src/OptionParser.cc: New class.
  11305. * src/OptionHandler.h: New class.
  11306. * src/NameMatchOptionHandler.h: New class.
  11307. * src/OptionHandlerImpl.h: New classes.
  11308. * src/prefs.h: '_' -> '-'
  11309. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  11310. (FTP_PASV): New definition.
  11311. * src/Util.h, src/Util.cc (getRealSize): New function.
  11312. To disable netrc support if .netrc file does not have correct
  11313. permissions:
  11314. * src/File.h, src/File.cc (mode): New function.
  11315. To prevent confidential information to be logged:
  11316. * src/HttpConnection.h, src/HttpConnection.cc
  11317. (eraseConfidentialInfo): New function.
  11318. (sendRequest): Call eraseConfidentialInfo().
  11319. (sendProxyRequest): Call eraseConfidentialInfo().
  11320. * src/main.cc: Validate permissions of .netrc file.
  11321. To add --user-agent command-line option:
  11322. * src/main.cc: Added new command line option: --user-agent
  11323. * src/prefs.h (PREF_USER_AGENT): New definition.
  11324. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  11325. parameter to HttpRequest object.
  11326. * src/AbstractProxyRequestCommand.cc
  11327. (executeInternal): Set user-agent option parameter to HttpRequest
  11328. object.
  11329. Marged the patches from Dan Fandrich.
  11330. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11331. Use filename and size from Metalink file instead of sending HEAD
  11332. request:
  11333. * src/UrlRequestInfo.h
  11334. (_filename): New variable.
  11335. (_totalLength): New variable.
  11336. (setTotalLength): New variable.
  11337. (setFilename): New variable.
  11338. * src/MetalinkRequestInfo.cc
  11339. (execute): Set filename and size to UrlRequestInfo
  11340. * src/UrlRequestInfo.cc
  11341. (execute): Use filename and size from Metalink instead of seding
  11342. HEAD request to servers.
  11343. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11344. To add the ability to resume downloading a partially downloaded file
  11345. which is downloaded from the beginning:
  11346. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  11347. takes this role.
  11348. * src/main.cc: Added -c option.
  11349. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  11350. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  11351. * src/prefs.h (PREF_CONTINUE): New definition.
  11352. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  11353. * src/DefaultDiskWriter.cc
  11354. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  11355. * src/AbstractDiskWriter.h
  11356. (glowFileAllocator): New variable.
  11357. * src/AbstractDiskWriter.cc
  11358. (openExistingFile): Now preallocate file space from the end of the
  11359. existing file if totalLength argument is specified and grater than 0.
  11360. * src/UrlRequestInfo.cc: If -c option is specified and the file
  11361. to download exists in local, continue the download of the file.
  11362. --allow-overwrite=true is assumed in this context.
  11363. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  11364. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  11365. Throw exception if --check-integrity=true is specified but chunk
  11366. checksums are not provided:
  11367. * src/UrlRequestInfo.cc
  11368. Do not print URLs to stdout:
  11369. * src/UrlRequestInfo.cc
  11370. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11371. * src/Request.h: Use AuthResolver to get authentication information.
  11372. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  11373. set to RequestFactory object.
  11374. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  11375. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  11376. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  11377. create Request object.
  11378. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  11379. To integrate Netrc into exsiting classes:
  11380. * src/Request.h
  11381. (_userDefinedAuthConfig): New variable.
  11382. (findNetrcAuthenticator): New function.
  11383. (segment): Removed.
  11384. (setUserDefinedAuthConfig): New function.
  11385. (resolveHttpAuthConfigItem): New function.
  11386. (resolveFtpAuthConfigItem): New function.
  11387. (resolveHttpProxyAuthConfigItem): New function.
  11388. * src/HttpRequest.h
  11389. (authConfig): Removed.
  11390. (proxyAuthConfig): Removed.
  11391. (setAuthConfig): Removed.
  11392. (setProxyAuthConfig): Removed.
  11393. * src/UrlRequest.h
  11394. (getHeadResult): Added a parameter: authConfigHandle
  11395. * src/common.h
  11396. (SingletonHolder.h): New include.
  11397. * src/main.cc
  11398. (Netrc.h): New include.
  11399. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  11400. Added initial value of PREF_NETRC_PATH.
  11401. Added the initialization of netrc.
  11402. * src/AuthConfig.h: New class.
  11403. * src/prefs.h
  11404. (PREF_NETRC_PATH): New definition.
  11405. * src/HttpAuthConfig.h: Removed.
  11406. * src/Netrc.cc
  11407. (getRequiredNextToken): New function.
  11408. (skipMacdef): New function.
  11409. (parse): Rewritten.
  11410. * src/Netrc.h
  11411. (getRequiredNextToken): New function.
  11412. (skipMacdef): New function.
  11413. * src/Util.h, src/Util.cc
  11414. (getHomeDir): New function.
  11415. * src/TrackerWatcherComand.cc
  11416. (createRequestCommand): Use AuthConfig.
  11417. * src/FtpConnection.cc
  11418. (sendUser): Use Request::resolveFtpAuthConfigItem().
  11419. (sendPass): Use Request::resolveFtpAuthConfigItem().
  11420. * src/Request.cc
  11421. (findNetrcAuthenticator): New function.
  11422. (resolveHttpAuthConfigItem): New function.
  11423. (resolveFtpAuthConfigItem): New function.
  11424. (resolveHttpProxyAuthConfigItem): New function.
  11425. * src/UrlRequestInfo.cc: Use AuthConfig.
  11426. * src/HttpRequest.cc
  11427. (createRequest): Use authConfig.
  11428. (getProxyAuthString): Use authConfig.
  11429. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  11430. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  11431. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11432. To reduce overhead to find commands whose socket is either
  11433. readable or writable in the download engine loop:
  11434. * src/Command.h, src/Command.cc
  11435. (STATUS): New enum.
  11436. (status): New variable.
  11437. (statusMatch): New function.
  11438. (setStatusActive): New function.
  11439. (setStatusInactive): New function.
  11440. * src/DownloadEngine.h, src/DownloadEngine.cc
  11441. (executeCommand): New function.
  11442. (run): Simplified.
  11443. (waitData): Call Command::setStatusActive() when command's socket is
  11444. readable or writable.
  11445. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11446. To handle Segment as SegmentHandle:
  11447. * src/AbstractCommand.cc (execute): Rewritten.
  11448. * src/SegmentMan.h: Segment -> SegmentHandle
  11449. Introducded HttpResponse class, HttpRequest class to improve code
  11450. extensiveness and make it clear:
  11451. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  11452. HttpResponse class.
  11453. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  11454. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  11455. * src/HttpConnection.cc: Contruction of http request were moved to
  11456. HttpRequest class.
  11457. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  11458. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  11459. * src/HttpAuthConfig.h: New class.
  11460. * src/Range.h: New class.
  11461. To make FtpTunnel{Request, Response}Command and
  11462. HttpProxy{Request, Response}Command derived from
  11463. AbstractProxy{Request, Response}Command:
  11464. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  11465. Derived from AbstractProxyRequestCommand class.
  11466. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  11467. Derived from AbstractProxyResponseCommand class.
  11468. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  11469. Derived from AbstractProxyRequestCommand class.
  11470. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  11471. Derived from AbstractProxyResponseCommand class.
  11472. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  11473. : New class.
  11474. * src/AbstractProxyResponseCommand.h,
  11475. src/AbstractProxyResponseCommand.cc: New class.
  11476. To add netrc support:
  11477. * src/Netrc.h, src/Netrc.cc: New class.
  11478. * src/Util.h, src/Util.cc (split): New function.
  11479. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  11480. "Content-Range" header instead of "Range" header.
  11481. * src/HttpHeader.h
  11482. (getStatus): Removed.
  11483. (setStatus): Removed.
  11484. * src/Segment.h
  11485. (getPositionToWrite): New function.
  11486. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11487. * src/HttpHeader.h
  11488. (Range.h): New include.
  11489. (status): New variable.
  11490. (HttpHeader): Initialized status with 0.
  11491. (getStatus): New function.
  11492. (setStatus): New function.
  11493. (getRange): New function.
  11494. (HttpHeaderHandle): New function.
  11495. * src/HttpHeader.cc
  11496. (getRange): New function.
  11497. * src/Request.h
  11498. (RequestWeakHandle): New definition.
  11499. * src/HttpConnection.h
  11500. (HttpConnectionHandle): New type definition.
  11501. * src/HttpConnection.cc
  11502. (receiveResponse): Set HTTP status to headers.
  11503. * src/main.cc
  11504. (showUsage): Fixed typo.
  11505. * src/Segment.h
  11506. (SegmentHandle): New type definition.
  11507. * src/BitfieldMan.h
  11508. (getMissingUnusedLength): New function.
  11509. * src/BitfieldMan.cc
  11510. (getMissingUnusedLength): New function.
  11511. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11512. To fix static initialization order problem:
  11513. * src/BitfieldManFactory.h
  11514. (defaultRandomizer): Removed.
  11515. (factory): New variable.
  11516. (getNewFactory): Removed.
  11517. (getFactoryInstance): New function.
  11518. (setDefaultRandomizer): Rewritten.
  11519. (getDefaultRandomizer): Rewritten.
  11520. * src/BitfieldManFactory.cc
  11521. (defaultRandomizer): Removed.
  11522. (factory): Initialized to 0.
  11523. (BitfieldManFactory): Initialized randomizer to 0.
  11524. * src/DefaultPieceStorage.cc
  11525. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  11526. * src/Peer.cc
  11527. (Peer): getNewFactory() -> getFactoryInstance()
  11528. * src/SegmentMan.cc
  11529. (initBitfield): getNewFactory() -> getFactoryInstance()
  11530. * src/Piece.cc
  11531. (Piece): getNewFactory() -> getFactoryInstance()
  11532. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11533. To fix the bug that causes crash on Max OS X:
  11534. * src/SimpleRandomizer.h
  11535. (getInstance): Create new instance if the static variable is null.
  11536. * src/SimpleRandomizer.cc
  11537. (randomizer): Initialized to 0.
  11538. * src/BitfieldManFactory.h
  11539. (getNewFactory): Removed the call to setRandomizer().
  11540. To fix the miscalculation of the range of checksum:
  11541. * src/BitfieldMan.h
  11542. (isBitSetOffsetRange): New function.
  11543. * src/BitfieldMan.cc
  11544. (isBitSetOffsetRange): New function.
  11545. * src/SegmentMan.cc
  11546. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  11547. Use bitfield->getBlockLength() instead of segment.segmentLength.
  11548. * Release 0.10.1
  11549. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11550. To lower CPU usage in BitTorrent download when --max-upload-limit
  11551. command-line option specified:
  11552. * src/DefaultBtMessageDispatcher.cc
  11553. (sendMessages): Calculate uploading speed only when current message
  11554. is uploading data and is not sent yet.
  11555. * src/DefaultPeerStorage.h
  11556. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  11557. * src/HttpResponseCommand.cc
  11558. (handleDefaultEncoding): Added the cast to int32_t to itos.
  11559. This fixes compile error in Soralis 10.
  11560. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11561. To fix segfault in Metalink download:
  11562. * src/UrlRequestInfo.h
  11563. (filename): Removed.
  11564. (totalLength): Removed.
  11565. (setTotalLength): Removed.
  11566. (setFilename): Removed.
  11567. * src/MetalinkRequestInfo.cc
  11568. (execute): Do not set filename and totalLength to reqInfo.
  11569. Set chunk checksum to reqInfo if it is not null.
  11570. * src/HttpResponseCommand.cc
  11571. (executeInternal): Fixed filename in log.
  11572. (handleDefaultEncoding): Removed the call to initBitfield() and
  11573. markAllPiecesDone().
  11574. (handleOtherEncoding): Added HEAD method handling.
  11575. * src/FtpNegotiateCommand.cc
  11576. (executeInternal): Added SEQ_HEAD_OK handling.
  11577. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  11578. return false.
  11579. * src/FtpNegotiateCommand.h
  11580. (SEQ_HEAD_OK): New definition.
  11581. * src/SegmentMan.cc
  11582. (initBitfield): Delete bitfield.
  11583. (isChunkChecksumValidationReady): Fixed the condition.
  11584. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  11585. works fine.
  11586. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11587. * src/Xml2MetalinkProcessor.h
  11588. (xpathExists): New function.
  11589. * src/Xml2MetalinkProcessor.cc
  11590. (xpathExists): New function.
  11591. Not to send HEAD request if filename and size are available in Metalink
  11592. file:
  11593. * src/UrlRequestInfo.h
  11594. (filename): New variable.
  11595. (totalLength): New variable.
  11596. (setTotalLength): New function.
  11597. (setFilename): New function.
  11598. * src/MetalinkRequestInfo.cc
  11599. (execute): Set filename and size to UrlRequestInfo.
  11600. * src/MetalinkEntry.cc
  11601. (MetalinkEntry): Initialize size with 0.
  11602. * src/UrlRequestInfo.cc
  11603. (execute): Set filename and size to SegmentMan.
  11604. Not to download rest of the files after selected files are downloaded
  11605. in BitTorrent:
  11606. * src/PieceStorage.h
  11607. (allDownloadFinished): New function.
  11608. * src/DefaultBtAnnounce.cc
  11609. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  11610. downloadFinished.
  11611. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  11612. * src/DefaultPieceStorage.cc
  11613. (completePiece): Use allDownloadFinished instead of downloadFinished.
  11614. Commented out the call to finishSelectiveDownloadingMode().
  11615. (downloadFinished): Call isFilteredAllBitSet() instead of
  11616. isAllBitSet().
  11617. (allDownloadFinished): New function.
  11618. * src/DefaultBtInteractive.cc
  11619. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  11620. downloadFinished().
  11621. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  11622. * src/TorrentDownloadEngine.cc
  11623. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  11624. * src/BitfieldMan.h
  11625. (isFilteredAllBitSet): New function.
  11626. * src/ShareRatioSeedCriteria.h
  11627. (PieceStorage.h): New include.
  11628. (pieceStorage): New variable.
  11629. (evaluate):
  11630. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  11631. * src/BitfieldMan.cc
  11632. (isFilteredAllBitSet): New function.
  11633. (isAllBitSet): Filter is not took into account.
  11634. Rename --force-truncate as --allow-overwrite:
  11635. * src/TorrentRequestInfo.cc
  11636. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  11637. * src/main.cc
  11638. (showUsage): --force-truncate -> --allow-overwrite
  11639. * src/message.h
  11640. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  11641. * src/prefs.h
  11642. (PREF_FORCE_TRUNCATE): Removed.
  11643. (PREF_ALLOW_OVERWRITE): New definition.
  11644. * src/SegmentMan.cc
  11645. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  11646. * src/MetalinkRequestInfo.cc
  11647. (execute): Queueing message are now logged in info level.
  11648. * src/common.h
  11649. (LONG_LONG_MAX): Removed.
  11650. (LONG_LONG_MIN): Removed.
  11651. * src/HttpResponseCommand.cc
  11652. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  11653. * src/FtpNegotiateCommand.cc
  11654. (recvSize): LONG_LONG_MAX -> INT64_MAX
  11655. * src/main.cc
  11656. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  11657. command-line option.
  11658. (main): Added --check-integriy and --realtime-chunk-checksum
  11659. command-line option.
  11660. --force-truncate -> --allow-overwrite
  11661. Set initial value of --check-integrity option to false.
  11662. Don't show usage when error occurs while persing command-line options.
  11663. Removed deprecated --upload-limit option.
  11664. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11665. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  11666. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  11667. * src/BtAllowedFastMessage.cc:
  11668. * src/BtBitfieldMessage.cc
  11669. * src/BtCancelMessage.cc
  11670. * src/BtChokeMessage.cc
  11671. * src/BtHaveAllMessage.cc
  11672. * src/BtHaveMessage.cc
  11673. * src/BtHaveNoneMessage.cc
  11674. * src/BtInterestedMessage.cc
  11675. * src/BtNotInterestedMessage.cc
  11676. * src/BtPieceMessage.cc
  11677. * src/BtPortMessage.cc
  11678. * src/BtRejectMessage.cc
  11679. * src/BtRequestMessage.cc
  11680. * src/BtSuggestPieceMessage.cc
  11681. * src/BtUnchokeMessage.cc
  11682. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  11683. files are affected.
  11684. * src/ChunkChecksumValidator.cc
  11685. * src/SegmentMan.cc
  11686. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11687. To add chunk checksum validation:
  11688. * src/MetalinkEntry.h
  11689. (MetalinkChunkChecksum.h): New include.
  11690. (chunkChecksum): New variable.
  11691. * src/Request.h
  11692. (method): New variable.
  11693. (setMethod): New function.
  11694. (getMethod): New function.
  11695. (METHOD_GET): New static constant.
  11696. (METHOD_HEAD): New static constant.
  11697. * src/Xml2MetalinkProcessor.h
  11698. (getPieceHash): New function.
  11699. * src/PieceStorage.h
  11700. (markAllPiecesDone): New function.
  11701. (checkIntegrity): New function.
  11702. * src/FileAllocator.h
  11703. (NullFileAllocationMonitor.h): New include.
  11704. (FileAllocator): Initialize fileAllocationMonitor with new
  11705. NullFileAllocationMonitor().
  11706. * src/MultiDiskAdaptor.h
  11707. (messageDigest.h): Remove include.
  11708. (ctx): Removed.
  11709. (hashUpdate): Added ctx.
  11710. (MultiDiskAdaptor): Removed ctx.
  11711. (sha1Sum): Renamed as messageDigest.
  11712. (messageDigest): New function.
  11713. * src/UrlRequestInfo.h
  11714. (HeadResult): New class.
  11715. (digestAlgo): New variable.
  11716. (chunkChecksumLength): New variable.
  11717. (chunkChecksums): New variable.
  11718. (getHeadResult): New function.
  11719. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  11720. (setDigestAlgo): New function.
  11721. (setChunkChecksumLength): New function.
  11722. (setChunkChecksums): New function.
  11723. * src/DefaultPieceStorage.cc
  11724. (DiskAdaptorWriter.h): New include.
  11725. (ChunkChecksumValidator.h): New include.
  11726. (markAllPiecesDone): New function.
  11727. (checkIntegrity): New function.
  11728. * src/DefaultBtContext.h
  11729. (getPieceHashes): New function.
  11730. * src/TorrentRequestInfo.cc
  11731. (execute): Try to validate chunk checksum if file already exists and
  11732. .aria2 file doesn't there and user allows aria2 to overwrite it.
  11733. * src/messageDigest.h
  11734. (~MessageDigestContext): Added digestFree().
  11735. * src/MetalinkRequestInfo.cc
  11736. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  11737. * src/DiskAdaptor.h
  11738. (messageDigest.h): New include.
  11739. (sha1Sum): Renamed as messageDigest.
  11740. (messageDigest): New function.
  11741. * src/DownloadCommand.h
  11742. (PeerStat.h): New include.
  11743. (maxDownloadSpeedLimit): New variable.
  11744. (startupIdleTime): New variable.
  11745. (lowestDownloadSpeedLimit): New variable.
  11746. (peerStat): New variable.
  11747. (setMaxDownloadSpeedLimit): New function.
  11748. (setStartupIdleTime): New function.
  11749. (setLowestDownloadSPeedLimit): New function.
  11750. * src/BtContext.h
  11751. (getPieceHashes): New function.
  11752. * src/main.cc
  11753. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  11754. option to true for testing purpose.
  11755. * src/BtPieceMessage.cc
  11756. (checkPieceHash): Use messageDigest
  11757. * src/DownloadEngine.cc
  11758. (SetDescriptor): Removed.
  11759. (AccumulateActiveCommand): Removed.
  11760. (waitData): Rewritten.
  11761. (updateFdSet): Rewritten.
  11762. * src/MultiDiskAdaptor.cc
  11763. (hashUpdate): Added ctx.
  11764. (sha1Sum): Renamed as messageDigest.
  11765. (messageDigest): New function.
  11766. * src/BitfieldMan.h
  11767. (isBitRangeSet): New function.
  11768. (unsetBitRange): New function.
  11769. * src/ByteArrayDiskWriter.h
  11770. (sha1Sum): Renamed as messageDigest.
  11771. (messageDigest): New function.
  11772. * src/ConsoleDownloadEngine.cc
  11773. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  11774. * src/DiskWriter.h
  11775. (messageDigest.h): New include.
  11776. (sha1Sum): Renamed as messageDigest.
  11777. (messageDigest): New function.
  11778. * src/ChunkChecksumValidator.h: New class.
  11779. * src/DiskAdaptorWriter.h: New class.
  11780. * src/prefs.h
  11781. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  11782. (PREF_CHECK_INTEGRITY): New definition.
  11783. * src/HttpResponseCommand.cc
  11784. (handleDefaultEncoding): Added method "HEAD" handling.
  11785. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11786. (handleOtherEncoding):
  11787. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  11788. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  11789. startupIdleTime, lowestDownloadSpeedLimit to command.
  11790. * src/SegmentMan.h
  11791. (getSegmentEntryByIndex): New function.
  11792. (getSegmentEntryByCuid): New function.
  11793. (getSegmentEntryIteratorByCuid): New function.
  11794. (diskWriter): DiskWriter -> DiskWriterHandle
  11795. (pieceHashes): New variable.
  11796. (chunkHashLength): New variable.
  11797. (digestAlgo): New variable.
  11798. (FindPeerStat): Removed.
  11799. (getPeerStat): Rewritten.
  11800. (markAllPiecesDone): New function.
  11801. (checkIntegrity): New function.
  11802. (tryChunkChecksumValidation): New function.
  11803. (isChunkChecksumValidationReady): New function.
  11804. * src/BitfieldMan.cc
  11805. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  11806. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  11807. blocks to 0.
  11808. (isBitRangeSet): New function.
  11809. (unsetBitRange): New function.
  11810. * src/FtpNegotiateCommand.cc
  11811. (executeInternal): Set maxDownloadSpeedLimit,
  11812. startupIdleTime, lowestDownloadSpeedLimit to command.
  11813. (recvSize): Added method "HEAD" handling.
  11814. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11815. * src/AbstractSingleDiskAdaptor.cc
  11816. (sha1Sum): Renamed as messageDigest.
  11817. (messageDigest): New function.
  11818. * src/AbstractSingleDiskAdaptor.h
  11819. (sha1Sum): Renamed as messageDigest.
  11820. (messageDigest): New function.
  11821. * src/Util.h
  11822. (indexRange): New function.
  11823. * src/MetalinkEntry.cc
  11824. (MetalinkEntry): Initialized chunkChecksum to 0.
  11825. * src/ShaVisitor.cc
  11826. (~ShaVisitor): Removed the call to ctx.digestFree().
  11827. * src/SegmentMan.cc
  11828. (ChunkChecksumValidator.h): New include.
  11829. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  11830. to DIGEST_ALGO_SHA1.
  11831. (~SegmentMan): Removed diskWriter.
  11832. (FindSegmentEntryByIndex): Removed.
  11833. (FindSegmentEntryByCuid): Removed.
  11834. (checkoutSegment): Rewritten.
  11835. (findSlowerSegmentEntry): Rewritten.
  11836. (getSegment): Rewritten.
  11837. (updateSegment): Rewritten.
  11838. (completeSegment): Rewritten.
  11839. (markAllPiecesDone): New function.
  11840. (checkIntegrity): New function.
  11841. (isChunkChecksumValidationReady): New function.
  11842. (tryChunkChecksumValidation): New function.
  11843. * src/Xml2MetalinkProcessor.cc
  11844. (getEntry): Get size and set it to entry.
  11845. Get chunk checksum and set it to entry.
  11846. (getPieceHash): New function.
  11847. * src/Util.cc
  11848. (sha1Sum): Removed ctx.digestFree()
  11849. (fileChecksum): Removed ctx.digestFree()
  11850. (indexRange): New function.
  11851. * src/Request.cc
  11852. (METHOD_GET): New variable.
  11853. (METHOD_HEAD): New variable.
  11854. (Request): Added method.
  11855. * src/UrlRequestInfo.cc
  11856. (FatalException.h): New include.
  11857. (message.h): New include.
  11858. (operator<<): Added operator<< for class HeadResult.
  11859. (getHeadResult): New function.
  11860. (execute): Get filename and size in separate download engine.
  11861. * src/ChunkChecksumValidator.cc: New class.
  11862. * src/DownloadCommand.cc:
  11863. (DownloadCommand): Added peerStat.
  11864. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  11865. the value from Option.
  11866. The buffer size is now 16KB.
  11867. Use peerStat member instead of getting it from SegmentMan.
  11868. Use startupIdleTime member instead of gettingit from Option.
  11869. Added chunk checksum validation.
  11870. * src/AbstractDiskWriter.cc
  11871. (AbstractDiskWriter): Removed ctx.
  11872. (~AbstractDiskWriter): Removed ctx.digestFree()
  11873. (writeDataInternal): Returns the return value of write.
  11874. (readDataInternal): Returns the return value of read.
  11875. (sha1Sum): Renamed as messageDigest
  11876. (messageDigest): New function.
  11877. * src/AbstractDiwkWriter.h
  11878. (messageDigest.h): Removed include.
  11879. (ctx): Removed.
  11880. (sha1Sum): Renamed as messageDigest
  11881. (messageDigest): New function.
  11882. * src/DefaultPieceStorage.h
  11883. (markAllPiecesDone): New function.
  11884. (checkIntegrity): New function.
  11885. * src/NullFileAllocationMonitor.h: New class.
  11886. * src/MetalinkChunkChecksum.h: New class.
  11887. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11888. To decrease CPU usage in bittorrent download, calculation results in
  11889. BitfieldMan were cached and realtime fetching PeerObject was removed
  11890. with WeakHandle introduced. Option values are set to the objects
  11891. by setter before download begins.
  11892. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  11893. * src/DefaultBtRequestFactory.h
  11894. (dispatcher): BtMessageDispatcherHandle ->
  11895. BtMessageDispatcherWeakHandle.
  11896. (messageFactory): New variable.
  11897. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  11898. BtMessageDispatcherWeakHandle.
  11899. (setBtMessageFactory): New function.
  11900. * src/DefaultBtMessageDispatcher.cc:
  11901. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  11902. from Option.
  11903. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  11904. feating the value from Option.
  11905. Use messageFactory member.
  11906. * src/PeerInteractionCommand.cc
  11907. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  11908. Add reverse dependencies to factory object.
  11909. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  11910. dispatcher.
  11911. Set messageFactory to receiver.
  11912. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  11913. btInteractive.
  11914. Set receiver to peerObject.
  11915. Set maxDownloadSpeedLimit to this.
  11916. (executeInternal): Use maxDownloadSpeedLimit member.
  11917. * src/BtChokeMessage.cc
  11918. (doReceivedAction): Use dispatcher, requestFactory member.
  11919. (onSendComplete): Use dispatcher member.
  11920. * src/PeerInteractionCommand.h
  11921. (maxDownloadSpeedLimit): New variable.
  11922. * src/DefaultBtMessageReceiver.h
  11923. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11924. (dispatcher):
  11925. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11926. (messageFactory): New variable.
  11927. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11928. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11929. (setDispatcher):
  11930. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11931. (setBtMessageFactory): New function.
  11932. * src/DefaultBtInteractive.cc
  11933. (initiateHandshake): Use messageFactory member.
  11934. (addBitfieldMessageToQueue): Use messageFactory member.
  11935. (addAllowedFastMessageToQueue): Use messageFactory member.
  11936. (decideChoking): Use messageFactory member.
  11937. (checkHave): Use messageFactory member.
  11938. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  11939. (receiveMessages): Use maxDownloadSpeedLimit member.
  11940. (decideInterest): Use messageFactory member.
  11941. * src/BtRequestMessage.cc
  11942. (doReceivedAction): Use messageFactory, dispatcher member.
  11943. (onQueued): Use dispatcher member.
  11944. * src/BtPieceMessage.cc
  11945. (doReceivedAction): Use dispatcher member.
  11946. (send): Use peerConnection member.
  11947. (onWrongPiece): Use requestFactory member.
  11948. (handleChokingEvent): Use messageFactory, dispatcher member.
  11949. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  11950. * src/BtMessageDispatcher.h
  11951. (BtMessageDispatcherWeakHandle): New type definition.
  11952. * src/SimpleBtMessage.cc
  11953. (send): Use peerConnection member.
  11954. * src/BtRejectMessage.cc
  11955. (doReceivedAction): Use dispatcher member.
  11956. * src/DefaultBtMessageDispatcher.h
  11957. (Option.h): Removed include.
  11958. (messageFactory): New variable.
  11959. (option): Removed.
  11960. (maxUploadSpeedLimit): New variable.
  11961. (requestTimeout): New variable.
  11962. (DefaultBtMessageDispatcher): Removed option.
  11963. Added maxUploadSpeedLimit, requestTimeout.
  11964. (setOption): Removed.
  11965. (getOption): Removed.
  11966. (setMaxUploadSpeedLimit): New function.
  11967. (setRequestTimeout): New function.
  11968. (setBtMessageFactory): New function.
  11969. * src/DefaultBtInteractive.h
  11970. (btMessageReceiver):
  11971. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11972. (dispatcher):
  11973. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11974. (btRequestFactory):
  11975. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11976. (peerConnection):
  11977. PeerConnectionHandle -> PeerConnectionWeakHandle
  11978. (messageFactory): New variable.
  11979. (option): Removed.
  11980. (keepAliveInterval): New variable.
  11981. (maxDownloadSpeedLimit): New variable.
  11982. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  11983. (setBtMessageReceiver):
  11984. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11985. (setDispatcher):
  11986. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11987. (setBtRequestFactory):
  11988. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11989. (setPeerConnection):
  11990. PeerConnectionHandle -> PeerConnectionWeakHandle
  11991. (setOption): Removed.
  11992. (setKeepAliveInterval): New function.
  11993. (setMaxDownloadSpeedLimit): New function.
  11994. (setBtMessageFactory): New function.
  11995. * src/BitfieldMan.h
  11996. (cachedNumMissingBlock): New variable.
  11997. (cachedNumFilteredBlock): New variable.
  11998. (cachedCompletedLength): New variable.
  11999. (cachedFilteredComletedLength): New variable.
  12000. (cachedFilteredTotalLength): New variable.
  12001. (countMissingBlockNow): New function.
  12002. (countFilteredBlockNow): New function.
  12003. (getFilteredTotalLengthNow): New function.
  12004. (getCompletedLengthNow): New function.
  12005. (getFilteredCompletedLengthNow): New function.
  12006. (updateCache): New function.
  12007. * src/AbstractBtMessage.h
  12008. (BtMessageDispatcher.h): New include.
  12009. (PeerConnection.h): New include.
  12010. (BtRequestFactory.h): New include
  12011. (BtMessageFactory.h): New include.
  12012. (dispatcher): New variable.
  12013. (messageFactory): New variable.
  12014. (peerConnection: New variable.
  12015. (setBtMessageDispatcher): New function.
  12016. (setPeerConnection): New function.
  12017. (setBtMessageFactory): New function.
  12018. (setBtRequestFactory): New function.
  12019. * src/DefaultBtMessageFactory.cc
  12020. (setCommonProperty): Set dispatcher, requestFactory, this,
  12021. peerConnection to msg.
  12022. * src/BtRegistry.h
  12023. (BT_MESSAGE_RECEIVER): New macro.
  12024. * src/PeerConnection.h
  12025. (PeerConnectionWeakHandle): New type definition.
  12026. * src/BtMessageFactory.h
  12027. (BtMessageFactoryWeakHandle): New type definition.
  12028. * src/BitfieldMan.cc
  12029. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  12030. cachedCompletedLength, cachedFilteredComletedLength,
  12031. cachedFilteredTotalLength.
  12032. Call updateCache().
  12033. (countMissingBlock): Return cachedNumMissingBlock.
  12034. (countMissingBlockNow): New function.
  12035. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  12036. (countFilteredBlockNow): New function.
  12037. (setBit): Call updateCache().
  12038. (unsetBit): Call updateCache().
  12039. (setBitfield): Call updateCache().
  12040. (clearAllBit): Call updateCache().
  12041. (setAllBit): Use setBitInternal instead of setBit.
  12042. Call updateCache().
  12043. (addFilter): Call updateCache().
  12044. (enableFilter): Call updateCache().
  12045. (disableFilter): Call updateCache().
  12046. (clearFilter): Call updateCache().
  12047. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  12048. (getFilteredTotalLengthNow): New function.
  12049. (getCompletedLength): Return cachedCompletedLength.
  12050. (getCompletedLengthNow): New function.
  12051. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  12052. (getFilteredCompletedLengthNow): New function.
  12053. (updateCache): New function.
  12054. * src/BtMessageReceiver.h
  12055. (BtMessageReceiverWeakHandle): New type definition.
  12056. * src/DefaultBtMessageReceiver.cc
  12057. (receiveHandshake): Use messageFactory member.
  12058. (sendHandshake): Use messageFactory member.
  12059. (receiveMessage): Use messageFactory member.
  12060. * src/DefaultBtMessageFactory.h
  12061. (dispatcher): New variable.
  12062. (requestFactory): New variable.
  12063. (peerConnection): New variablle.
  12064. (setBtMessageDispatcher): New function.
  12065. (setBtRequestFactory): New function.
  12066. (setPeerConnection): New function.
  12067. * src/SharedHandle.h
  12068. (RefCount): New class.
  12069. (WeakHandle): New class.
  12070. * src/PeerObject.h
  12071. (BtMessageReceiver.h): New include.
  12072. (PeerObject): Added btMessageReceiver.
  12073. (btMessageReceiver): New variable.
  12074. * src/Util.cc
  12075. (countBit): Simplified.
  12076. * src/BtCancelMessage.cc
  12077. (doReceivedAction): Use dispatcher member.
  12078. * src/BtRequestFactory.h
  12079. (BtRequestFactoryWeakHandle): New type definition.
  12080. * src/PeerStorage.h
  12081. (downloadSpeed): int -> uint32_t
  12082. (uploadSpeed): int -> uint32_t
  12083. (sessionDownloadLength): long long int -> uint64_t
  12084. (sessionUploadLength): long long int -> uint64_t
  12085. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12086. To add RecoverableException, FatalException:
  12087. * src/AbstractCommand.cc
  12088. (onAbort): Exception -> RecoverableException
  12089. * src/PeerAbstractCommand.h
  12090. (RecoverableException.h): New include.
  12091. (onAbort): Exception -> RecoverableException.
  12092. * src/PeerInteractionCommand.cc
  12093. (onAbort): Exception -> RecoverableException.
  12094. * src/PeerAbstractCommand.cc
  12095. (execute): Exception -> RecoverableException.
  12096. (onAbort): Exception -> RecoverableException.
  12097. * src/TorrentRequestInfo.cc
  12098. (execute): Exception -> RecoverableException.
  12099. * src/MetalinkRequestInfo.cc
  12100. (execute): Exception -> RecoverableException.
  12101. * src/MetaFileUtil.cc: RecoverableException.
  12102. * src/AbstractCommand.h
  12103. (onAbort): Exception -> RecoverableException.
  12104. * src/DlRetryEx.h: Exception -> RecoverableException.
  12105. * src/DlAbortEx.h: Exception -> RecoverableException.
  12106. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  12107. * src/Util.cc: Exception -> RecoverableException.
  12108. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  12109. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  12110. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  12111. To make ID static const int
  12112. * src/BtInterestedMessage.h
  12113. (ID_t): Removed.
  12114. (ID): New variable.
  12115. (getId): Made non-const.
  12116. * src/BtPieceMessage.h
  12117. (ID_t): Removed.
  12118. (ID): New variable.
  12119. (getId): Made non-const.
  12120. * src/BtChokeMessage.h
  12121. (ID_t): Removed.
  12122. (ID): New variable.
  12123. (getId): Made non-const.
  12124. * src/BtHaveAllMessage.h
  12125. (ID_t): Removed.
  12126. (ID): New variable.
  12127. (getId): Made non-const.
  12128. * src/BtKeepAliveMessage.h
  12129. (ID_t): Removed.
  12130. (ID): New variable.
  12131. (getId): Made non-const.
  12132. * src/BtHandshakeMessage.h
  12133. (ID): New variable.
  12134. (getId): Made non-const.
  12135. * src/BtSuggestPieceMessage.h
  12136. (ID_t): Removed.
  12137. (ID): New variable.
  12138. (getId): Made non-const.
  12139. * src/BtPortMessage.h
  12140. (ID_t): Removed.
  12141. (ID): New variable.
  12142. (getId): Made non-const.
  12143. * src/AbstractBtMessage.h
  12144. (id): Removed.
  12145. (AbstractBtMessage): Removed id.
  12146. (getId): Removed.
  12147. * src/BtHaveMessage.h
  12148. (ID_t): Removed.
  12149. (ID): New variable.
  12150. (getId): Made non-const.
  12151. * src/BtAllowedFastMessage.h
  12152. (ID_t): Removed.
  12153. (ID): New variable.
  12154. (getId): Made non-const.
  12155. * src/BtCancelMessage.h
  12156. (ID_t): Removed.
  12157. (ID): New variable.
  12158. (getId): Made non-const.
  12159. * src/BtNotInterestedMessage.h
  12160. (ID_t): Removed.
  12161. (ID): New variable.
  12162. (getId): Made non-const.
  12163. * src/BtChokeMessage.h
  12164. (ID_t): Removed.
  12165. (ID): New variable.
  12166. (getId): Made non-const.
  12167. * src/BtRejectMessage.h
  12168. (ID_t): Removed.
  12169. (ID): New variable.
  12170. (getId): Made non-const.
  12171. * src/BtBitfieldMessage.h
  12172. (ID_t): Removed.
  12173. (ID): New variable.
  12174. (getId): Made non-const.
  12175. * src/BtUnchokeMessage.h
  12176. (ID_t): Removed.
  12177. (ID): New variable.
  12178. (getId): Made non-const.
  12179. * src/BtRequestMessage.h
  12180. (ID_t): Removed.
  12181. (ID): New variable.
  12182. (getId): Made non-const.
  12183. * src/BtHaveMessage.h
  12184. (ID_t): Removed.
  12185. (ID): New variable.
  12186. (getId): Made non-const.
  12187. To add --force-truncate command-line option and a check whether
  12188. the file already exists:
  12189. * src/DirectDiskAdaptor.h
  12190. (getFilePath): Made virtual public.
  12191. * src/MultiDiskAdaptor.h
  12192. (File.h): New include.
  12193. (DiskWriterEntry::fileEntry): Made private.
  12194. (DiskWriterEntry::fileExists): New function.
  12195. (DiskWriterEntry::getFileEntry): New function.
  12196. (fileExists): New function.
  12197. (getFilePath): New function.
  12198. * src/TorrentRequestInfo.cc
  12199. (FatalException.h): New include.
  12200. (message.h): New include.
  12201. (RecoverableException.h): New include.
  12202. (execute): Added a check whether file is already exists or not.
  12203. * src/DiskAdaptor.h
  12204. (fileExists): New function.
  12205. (getFilePath): New function.
  12206. * src/main.cc
  12207. (showUsage): Added an explanation of --force-truncate command-line
  12208. option.
  12209. (main): Added --force-truncate command-line option.
  12210. * src/Exception.h
  12211. (setMsg): buf[256] -> buf[1024]
  12212. * src/CopyDiskWriter.h
  12213. (getFilePath): Made public virtual.
  12214. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  12215. (fileExists): New function.
  12216. * src/DownloadEngineFactory.cc
  12217. (newTorrentConsoleEngine): Don't open file here.
  12218. * src/message.h
  12219. (EX_FILE_ALREADY_EXISTS): New definition.
  12220. * src/prefs.h
  12221. (PREF_FOECE_TRUNCATE): New definition.
  12222. * src/HttpResponseCommand.cc
  12223. (handleDefaultEncoding): Added a check whether the file already exists.
  12224. * src/SegmentMan.h
  12225. (fileExists): New function.
  12226. (shouldCancelDownloadForSafety): New function.
  12227. * src/FtpNegotiateCommand.cc
  12228. (recvSize): Added a check whether the file already exists.
  12229. * src/AbstractSingleDiskAdaptor.cc
  12230. (File.h): New include.
  12231. (fileExists): New function.
  12232. * src/AbstractSingleDiskAdaptor.h
  12233. (getFilePath): Removed.
  12234. (fileExists): New function.
  12235. * src/SegmentMan.cc
  12236. (fileExists): New function.
  12237. (shouldCancelDownloadForSafety): New function.
  12238. To fix regression bug in torrent downloading:
  12239. * src/DefaultBtRequestFactory.cc
  12240. (doChokedAction): New function.
  12241. * src/DefaultBtRequestFactory.h
  12242. (doChokedAction): New function.
  12243. * src/DefaultBtMessageDispatcher.cc
  12244. (doChokedAction): Do not delete request if its target is in allowed
  12245. fast set.
  12246. * src/DefaultBtInteractive.cc
  12247. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  12248. (sendKeepAlive): Send keep alive message even if the outgoing message
  12249. queue is not empty.
  12250. (decideInterest): Simplified the code.
  12251. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  12252. it is already called when BtChokeMessage is received from a peer.
  12253. * src/BtRequestFactory.h
  12254. (doChokedAction): New function.
  12255. To clean up code:
  12256. * src/PeerInteractionCommand.h
  12257. (executeInternal): Added virtual keyword explicitly.
  12258. (prepareForRetry): Added virtual keyword explicitly.
  12259. (prepareForNextPeer): Added virtual keyword explicitly.
  12260. (onAbort): Added virtual keyword explicitly.
  12261. * src/RequestSlot.cc
  12262. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  12263. * src/BtPieceMessage.cc
  12264. (doReceivedAction): Added a debug log of piece's bitfield.
  12265. * src/Piece.h
  12266. (getBitfieldLength): New function.
  12267. * src/ByteArrayDiskWriter.cc
  12268. (clear): Added buf = 0 to avoid double free corruption.
  12269. * src/FileAllocator.cc
  12270. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  12271. Added cp.reset().
  12272. * src/BitfieldMan.h
  12273. (operator=): Rewritten.
  12274. * src/BitfieldMan.cc
  12275. (BitfieldMan): Initialized bitfield, useBitfield.
  12276. * src/PeerConnection.cc
  12277. (receiveMessage): Added a call to socket->readable() after getting
  12278. message length to avoid possible EOF.
  12279. * src/Util.cc
  12280. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  12281. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12282. To add an ability to pre-allocate file space:
  12283. * src/DirectDiskAdaptor.h: Rewritten.
  12284. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  12285. * src/MultiDiskAdaptor.h: Rewritten.
  12286. * src/DefaultPieceStorage.cc
  12287. (MultiDiskWriter.h): Removed include.
  12288. (PreAllocationDiskWriter.h): Removed include.
  12289. (FileAllocationMonitor.h): New include.
  12290. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  12291. (initStorage): Rewritten.
  12292. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12293. * src/FileAllocator.h: New class.
  12294. * src/FileAllocator.cc: New class.
  12295. * src/FileAllocationMonitor.h: New class.
  12296. * src/FileAllocationMonitor.cc: New class.
  12297. * src/ConsoleFileAllocationMonitor.h: New class.
  12298. * src/ConsoleFileAllocationMonitor.cc: New class.
  12299. * src/AbstractSingleDiskAdaptor.h: New class.
  12300. * src/AbstractSingleDiskAdaptor.cc: New class.
  12301. * src/DiskAdaptor.h
  12302. (Directory.h): Removed include.
  12303. (DiskWriter.h): Removed include.
  12304. (FileEntry.h): Removed include.
  12305. (diskWriter): Removed.
  12306. (DiskAdaptor): Removed diskWriter.
  12307. (openFile): Made pure virtual.
  12308. (closeFile): Made pure virtual.
  12309. (openExistingFile): Made pure virtual.
  12310. (initAndOpenFile): Made pure virtual.
  12311. (writeData): Made pure virtual.
  12312. (readData): Made pure virtual.
  12313. (sha1Sum): Made pure virtual.
  12314. (getStoreDir): Returns const reference of storeDir.
  12315. (DiskAdaptorHandle): New type definition.
  12316. * src/main.cc
  12317. (ConsoleFileAllocationMonitor.h): New include.
  12318. (showUsage): Added default value description of -s option.
  12319. Added the description of --file-allocation option.
  12320. (main): Set default value of --file-allocation option to 'none'.
  12321. Added --file-allocation command-line option.
  12322. Setup FileAllocationMonitorFactory.
  12323. * src/FtpInitiateConnectionCommand.cc
  12324. (executeInternal): Removed diskWriter related processing, which was
  12325. moved to FtpNegotiationCommand.cc.
  12326. * src/DirectDiskAdaptor.cc
  12327. (getFilePath): Made non-const.
  12328. * src/CopyDiskAdaptor.h
  12329. (DiskAdaptor.h): Removed include.
  12330. (DiskWriter.h): Removed include.
  12331. (AbstractSingleDiskAdaptor.h): New include.
  12332. (getFilePath): Made non-const. Added virtual keyword.
  12333. (CopyDiskAdaptor): Removed diskWriter.
  12334. (getTempFile): Returns const reference.
  12335. (CopyDiskAdaptorHandle): New type definition.
  12336. * src/ByteArrayDiskWriter.cc
  12337. (clear): Simplified.
  12338. (initAndOpenFile): Rewritten.
  12339. (openFile): Call initAndOpenFile()
  12340. * src/MultiDiskAdaptor.cc: Rewritten.
  12341. * src/DownloadEngineFactory.cc
  12342. (FileAllocator.h): New include.
  12343. (FileAllocationMonitor.h): New include.
  12344. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  12345. create DefaultDiskWriter with file allocator.
  12346. * src/DiskWriter.h
  12347. (initAndOpenFile): Added totalLength argument.
  12348. (openFile): Added totalLength argument.
  12349. * src/prefs.h
  12350. (PREF_FILE_ALLOCATION): New definition.
  12351. (V_PREALLOC): New definition.
  12352. (V_NONE): New definition.
  12353. * src/HttpResponseCommand.cc
  12354. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  12355. size.
  12356. * src/FtpNegotiateCommand.cc
  12357. (Util.h): New include.
  12358. (recvSize): Open file here.
  12359. * src/Util.h
  12360. (ullitos): New function.
  12361. * src/CopyDiskWriter.h
  12362. (getFilePath): Made non-const.
  12363. * src/DefaultDiskWriter.h
  12364. (Option.h): New include.
  12365. (totalLength): Removed.
  12366. (DefaultDiskWriter): Removed totalLength.
  12367. (initAndOpenFile): Added totalLength argument.
  12368. (DefaultDiskWriterHandle): New type definition.
  12369. (createNewDiskWriter): New function.
  12370. * src/Util.cc
  12371. (ullitos): New function.
  12372. * src/DefaultDiskWriter.cc
  12373. (message.h): New include.
  12374. (FileAllocator.h): New include.
  12375. (prefs.h): New include.
  12376. (Util.h): New include.
  12377. (DefaultDiskWriter): Removed totalLength.
  12378. (initAndOpenFile): Added file allocation.
  12379. (createNewDiskWriter): New function. Just for temporary solution.
  12380. It will be rewritten later.
  12381. * src/DiskAdaptor.cc
  12382. (DiskAdaptor): Removed diskWriter.
  12383. * src/AbstractDiskWriter.cc
  12384. (LogFactory.h): New include.
  12385. (AbstractDiskWriter): Added fileAllocator, logger.
  12386. (openFile): Added totalLength argument.
  12387. * src/AbstractDiskWriter.h
  12388. (FileAllocator.h): New include.
  12389. (Logger.h): New include.
  12390. (fileAllocator): New variable.
  12391. (logger): New variable.
  12392. (openFile): Added totalLength argument. Added virtual keyword
  12393. explicitly.
  12394. (openExistingFile): Added totalLength argument. Added virtual keyword
  12395. explicitly.
  12396. (closeFile): Added virtual keyword explicitly.
  12397. (sha1Sum): Added virtual keyword explicitly.
  12398. (writeData): Added virtual keyword explicitly.
  12399. (readData): Added virtual keyword explicitly.
  12400. (setFileAllocator): New function.
  12401. * src/DefaultPieceStorage.h
  12402. (FileAllocator.h): New include.
  12403. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12404. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12405. * src/FileProgressMonitor.h: New class.
  12406. To compile aria2 on PC-BSD:
  12407. * src/DefaultBtContext.cc
  12408. (libgen.h): New include.
  12409. To fix memory leak:
  12410. * src/Exception.h
  12411. (~Exception): Delete cause. Fixed memory leak.
  12412. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12413. Rewritten a portion of bittorrent implementation:
  12414. * src/BtMessageValidator.h: New class.
  12415. * src/BtBitfieldMessageValidator.h: New class.
  12416. * src/BtHandshakeMessageValidator.h: New class.
  12417. * src/BtRequestMessageValidator.h: New class.
  12418. * src/BtSuggestPieceMessageValidator.h: New class.
  12419. * src/BtAllowedFastMessageValidator.h: New class.
  12420. * src/BtRejectMessageValidator.h: New class.
  12421. * src/BtCancelMessageValidator.h: New class.
  12422. * src/BtPieceMessageValidator.h: New class.
  12423. * src/BtHaveMessageValidator.h: New class.
  12424. * src/BtEventListener.h: New class.
  12425. * src/AbstractBtEventListener.h: New class.
  12426. * src/BtEvent.h: New class.
  12427. * src/BtChokingEvent.h: New class.
  12428. * src/BtChokedEvent.h: New class.
  12429. * src/BtCancelSendingPieceEvent.h: New class.
  12430. * src/BtAbortOutstandingRequestEvent.h: New class.
  12431. * src/Randomizer.h: New class.
  12432. * src/SimpleRandomizer.h: New class.
  12433. * src/BtMessage.h: New class.
  12434. * src/AbstractBtMessage.h: New class.
  12435. * src/SimpleBtMessage.h: New class.
  12436. * src/BtHaveMessage.h: New class.
  12437. * src/BtInterestedMessage.h: New class.
  12438. * src/BtAllowedFastMessage.h: New class.
  12439. * src/BtUnchokeMessage.h: New class.
  12440. * src/BtCancelMessage.h: New class.
  12441. * src/BtNotInterestedMessage.h: New class.
  12442. * src/BtChokeMessage.h: New class.
  12443. * src/BtHaveNoneMessage.h: New class.
  12444. * src/BtHandshakeMessage.h: New class.
  12445. * src/BtSuggestPieceMessage.h: New class.
  12446. * src/BtHaveMessage.h: New class.
  12447. * src/BtPieceMessage.h: New class.
  12448. * src/BtHaveAllMessage.h: New class.
  12449. * src/BtKeepAliveMessage.h: New class.
  12450. * src/BtPortMessage.h: New class.
  12451. * src/BtRejectMessage.h: New class.
  12452. * src/BtBitfieldMessage.h: New class.
  12453. * src/BtRequestMessage.h: New class.
  12454. * src/DefaultBtRequestFactory.h: New class.
  12455. * src/DefaultBtMessageReceiver.h: New class.
  12456. * src/BtInteractive.h: New class.
  12457. * src/BtMessageDispatcher.h: New class.
  12458. * src/DefaultBtMessageDispatcher.h: New class.
  12459. * src/DefaultBtInteractive.h: New class.
  12460. * src/BitfieldManFactory.h: New class.
  12461. * src/HandleRegistry.h: New class.
  12462. * src/BtMessageFactory.h: New class.
  12463. * src/BtMessageReceiver.h: New class.
  12464. * src/DefaultBtMessageFactory.h: New class.
  12465. * src/PeerObject.h: New class.
  12466. * src/BtRequestFactory.h: New class.
  12467. * src/SuggestPieceMessage.h: Removed.
  12468. * src/PortMessage.h: Removed.
  12469. * src/SuggestPieceMessage.h: Removed.
  12470. * src/KeepAliveMessage.h: Removed.
  12471. * src/HandshakeMessage.h: Removed.
  12472. * src/PeerInteraction.h: Removed.
  12473. * src/UnchokeMessage.h: Removed.
  12474. * src/PieceMessage.h: Removed.
  12475. * src/RequestMessage.h: Removed.
  12476. * src/InterestedMessage.h: Removed.
  12477. * src/HaveMessage.h: Removed.
  12478. * src/CancelMessage.h: Removed.
  12479. * src/RejectMessage.h: Removed.
  12480. * src/AllowedFastMessage.h: Removed.
  12481. * src/HaveNoneMessage.h: Removed.
  12482. * src/SimplePeerMessage.h: Removed.
  12483. * src/HaveAllMessage.h: Removed.
  12484. * src/BitfieldMessage.h: Removed.
  12485. * src/PeerMessageFactory.h: Removed.
  12486. * src/NotInterestedMessage.h: Removed.
  12487. * src/ChokeMessage.h: Removed.
  12488. * src/PeerMessage.h: Removed.
  12489. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12490. To know root cause of exception:
  12491. * src/Exception.h
  12492. (cause): New variable.
  12493. (Exception): Added a parameter.
  12494. (getMsg): Return const reference to msg.
  12495. (getCause): New function.
  12496. * src/DlRetryEx.h
  12497. (DlRetryEx): Added a parameter 'cause'.
  12498. Added an overloaded constructor.
  12499. (DlAbortEx): Added a parameter 'cause'.
  12500. Added an overloaded constructor.
  12501. * src/SimpleLogger.cc
  12502. (writeLog): Log nested exception messages recursively.
  12503. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12504. * src/DefaultBtProgressInfoFile.cc
  12505. (load): Fixed memory leak when the infohash doesn't match.
  12506. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12507. * src/DefaultPeerStorage.cc
  12508. (calculateStat): Simplified the code by combining 2 loops into 1.
  12509. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12510. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  12511. for BitTorrent download:
  12512. * src/PeerAbstractCommand.cc
  12513. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  12514. * src/main.cc:
  12515. (timeoutSpecified): Removed.
  12516. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  12517. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  12518. * src/TorrentRequestInfo.cc
  12519. (timeoutSpecified): Removed.
  12520. (torrentHandler): Removed timeoutSpecified and the adjustment of
  12521. timeout value.
  12522. * src/prefs.h
  12523. (PREF_BT_TIMEOUT): New definition.
  12524. Delete unused variables:
  12525. * src/TorrentRequestInfo.cc
  12526. (requestInfo): Removed.
  12527. Move setSignalHander to Util::setGlobalSignalHandler:
  12528. * src/TorrentRequestInfo.cc:
  12529. setSignalHander -> Util::setGlobalSignalHandler
  12530. * src/main.cc
  12531. (setSignalHander): Removed.
  12532. (main): setSignalHander -> Util::setGlobalSignalHandler
  12533. * src/Util.h
  12534. (setGlobalSignalHandler): New function.
  12535. * src/Util.cc
  12536. (setGlobalSignalHandler): New function.
  12537. * src/UrlRequestInfo.cc:
  12538. setSignalHander -> Util::setGlobalSignalHandler
  12539. Reset peer status in order to exit gracefully:
  12540. * src/PeerAbstractCommand.cc
  12541. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  12542. To fix the bug that causes the number of bytes uploaded is not saved
  12543. to .aria2 file:
  12544. * src/DefaultPeerStorage.h
  12545. (removedPeerSessionDownloadLength): New variable.
  12546. (removedPeerSessionUploadLength): New variable.
  12547. * src/DefaultPeerStorage.cc
  12548. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  12549. removedPeerSessionUploadLength(0).
  12550. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  12551. through all peers, and then add removedPeerSessionDownloadLength(
  12552. removedPeerSessionUploadLength) to it.
  12553. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  12554. (to) the peer to removedPeerSessionDownloadLength
  12555. (removedPeerSessionUploadLength).
  12556. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12557. To add Metalink location option:
  12558. * src/MetalinkRequestInfo.cc
  12559. (execute): Call MetalinkEntry::setLocationPreference()
  12560. * src/main.cc
  12561. (showUsage): Added the help message for --metalink-location option.
  12562. (main): Added --metalink-location option.
  12563. * src/prefs.h
  12564. (PREF_METALINK_LOCATION): New definition.
  12565. * src/MetalinkEntry.cc
  12566. (AddLocationPreference): New function object.
  12567. (setLocationPreference): New function.
  12568. * src/Xml2MetalinkProcessor.cc
  12569. (getResource): Set location attribute to MetalinkResource
  12570. To show URLs to download
  12571. * src/UrlRequestInfo.h
  12572. (printUrls): New function.
  12573. To add multiple <file> Metalink support:
  12574. * src/MetalinkEntry.h
  12575. (MetalinkResources): Removed.
  12576. (setLocationPreference): New function.
  12577. (MetalinkEntryHandle): New type definition.
  12578. (MetalinkEntries): New type definition.
  12579. * src/Xml2MetalinkProcessor.h
  12580. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12581. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12582. (parseFile): Metalinker* -> MetalinkerHandle
  12583. * src/UrlRequestInfo.h
  12584. (execute): RequestInfo* -> RequestInfos
  12585. * src/MetalinkRequestInfo.cc
  12586. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  12587. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  12588. (execute): RequestInfo* -> RequestInfos
  12589. Added multiple <file> support. Print filename when it is queued.
  12590. * src/MetalinkRequestInfo.h
  12591. (execute): RequestInfo* -> RequestInfos
  12592. (getDownloadEngine): Removed.
  12593. * src/RequestInfo.h
  12594. (RequestInfoHandle): New type definition.
  12595. (RequestInfos): New type definition.
  12596. (execute): RequestInfo* -> RequestInfos
  12597. (getDownloadEngine): Removed.
  12598. * src/MetalinkResource.h
  12599. (MetalinkResourceHandle): New type definition.
  12600. (MetalinkResources): New type definition.
  12601. * src/MetalinkEntry.cc
  12602. (~MetalinkEntry): Removed the deletion of the elements of resources,
  12603. because the element is now of type MetalinkResourceHandle.
  12604. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  12605. (Supported): MetalinkResource* -> MetalinkResourceHandle
  12606. (dropUnsupportedResource): Removed the deletion of the elements of
  12607. resources because the element is now of type MetalinkResourceHandle.
  12608. * src/Xml2MetalinkProcessor.cc
  12609. (parseFile): Metalinker* -> MetalinkerHandle
  12610. MetalinkEntry* -> MetalinkEntryHandle
  12611. Removed try-catch block.
  12612. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12613. MetalinkResource* -> MetalinkResourceHandle
  12614. Removed try-catch block.
  12615. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12616. Free result by using xmlXPathFreeObject()
  12617. * src/Metalinker.cc
  12618. (~Metalinker): Removed the deletion of entries.
  12619. MetalinkEntry* -> MetalinkEntryHandle
  12620. (queryEntry): Add multiple <file> Metalink support.
  12621. * src/Metalinker.h
  12622. (MetalinkEntries): Removed.
  12623. (queryEntry): MetalinkEntry* -> MetalinkEntries
  12624. * src/MetalinkProcessor.h
  12625. (parseFile): Metalinker* -> MetalinkerHandle
  12626. Bug fixes:
  12627. * src/PeerChokeCommand.cc
  12628. (execute): cat01->cat02
  12629. * src/DefaultPieceStorage.cc
  12630. (DefaultPieceStorage): Added diskAdaptor(0)
  12631. * src/TrackerWatcherComand.cc:
  12632. (execute): Use btAnnounce->noMoreAnnounce()
  12633. to determin whether the function returns true or not.
  12634. * src/TrackerUpdateCommand.cc:
  12635. (execute): Use btAnnounce->noMoreAnnounce()
  12636. to determin whether the function returns true or not.
  12637. * src/FtpConnection.cc
  12638. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  12639. This is the fix of the busy loop bug.
  12640. * src/DownloadCommand.cc
  12641. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  12642. cached PeerStat.
  12643. The value of "name" entry in torrent file is now set by
  12644. *DiskAdaptor::setTopDir(...) methods.
  12645. * src/MultiDiskAdaptor.h
  12646. (topDir): New variable.
  12647. (setTopDir): New function.
  12648. (getTopDir): New function.
  12649. * src/MultiDiskAdaptor.cc
  12650. (getFilePath): Concat storDir, "/" and topDir.
  12651. (mkdir): Use getFilePath() to get the directory path for output.
  12652. * src/DefaultPieceStorage.cc
  12653. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  12654. CopyDiskAdaptor.
  12655. * src/CopyDiskAdaptor.h
  12656. (topDir): New variable.
  12657. (setTopDir): New function.
  12658. (getTopDir): New function.
  12659. * src/CopyDiskAdaptor.cc
  12660. (fixFilename): Updated.
  12661. Misc
  12662. * src/UrlRequestInfo.h
  12663. (e): Removed.
  12664. (UrlRequestInfo): Removed e.
  12665. (getDownloadEngine): Removed.
  12666. * src/UrlRequestInfo.cc
  12667. (handler): Rewritten.
  12668. (printUrls): New function.
  12669. (execute): Call printUrls().
  12670. * src/HandshakeMessage.cc
  12671. (check): peerinteraction->getBtContext() -> btContext
  12672. * src/PeerInteraction.h
  12673. (getBtContext): Removed.
  12674. * src/TorrentRequestInfo.h
  12675. (execute): RequestInfo* -> RequestInfos
  12676. (getDownloadEngine): Removed.
  12677. * src/TorrentRequestInfo.cc
  12678. (haltRequested): Removed.
  12679. (btHaltRequested): New variable.
  12680. (torrentHandler): haltRequested -> btHaltRequested
  12681. (execute): RequestInfo* -> RequestInfos
  12682. * src/TorrentConsoleDownloadEngine.cc
  12683. (afterEachIteration): haltRequested -> btHaltRequested.
  12684. * src/ConsoleDownloadEngine.h
  12685. (initStatistics): Added virtual.
  12686. (calculateStatistics): Added virtual.
  12687. (onEndOfRun): Added virtual.
  12688. (afterEachIteration): Added virtual.
  12689. * src/ConsoleDownloadEngine.cc
  12690. (haltRequested): New variable.
  12691. (afterEachIteration): New function.
  12692. * src/main.cc
  12693. (requestInfo): Removed.
  12694. * src/SegmentMan.cc
  12695. (findSlowerSegmentEntry): Refactored.
  12696. * Release 0.9.0
  12697. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12698. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  12699. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  12700. * src/TorrentMan.h: Removed.
  12701. * src/TorrentMan.cc: Removed.
  12702. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  12703. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  12704. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  12705. * src/PeerAbstractCommand.cc: Use btRuntime.
  12706. * src/BtContextAwareCommand.h: New class.
  12707. * src/FileEntry.h: Added accessor methods for following variables.
  12708. (path): Made private.
  12709. (length): Made private.
  12710. (offset): Made private.
  12711. (extracted): Made private.
  12712. (requested): Made private.
  12713. (FileEntries): New definition.
  12714. (FileEntryHandle): New definition.
  12715. * src/FileEntry.cc: New file.
  12716. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  12717. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  12718. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  12719. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  12720. * src/PieceStorage.h: New file.
  12721. * src/PeerInteractionCommand.h: Use btContext.
  12722. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  12723. btRuntime.
  12724. * src/DefaultBtProgressInfoFile.h: New file.
  12725. * src/DefaultBtProgressInfoFile.cc: New file.
  12726. * src/File.cc
  12727. (Util.h): New include.
  12728. (mkdirs): New function.
  12729. * src/MultiDiskAdaptor.h
  12730. (mkdir): New function.
  12731. * src/PeerListProcessor.h
  12732. (Peers): Removed.
  12733. * src/PeerInteraction.h
  12734. (torrentMan): Removed.
  12735. (btContext): New variable.
  12736. (peerStorage): New variable.
  12737. (pieceStorage): New variable.
  12738. (btAnnounce): New variable.
  12739. (getTorrentMan): Removed.
  12740. (getBtContext): New function.
  12741. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  12742. btAnnounce.
  12743. * src/HandshakeMessage.h
  12744. (TorrentMan.h): Removed.
  12745. * src/HandshakeMessage.cc: Use btContext.
  12746. * src/DefaultBtAnnounce.cc: New file.
  12747. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  12748. * src/DefaultPieceStorage.cc: New file.
  12749. * src/DefaultBtContext.h: New file.
  12750. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  12751. Use the accessor methods of FileEntry.
  12752. * src/CookieBox.cc: Updated to use Util::slice().
  12753. * src/PieceMessage.cc: Use btContext, pieceStorage.
  12754. * src/common.h (SharedHandle.h): New include.
  12755. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  12756. pieceStorage.
  12757. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  12758. * src/DiskAdaptor.h
  12759. (topDir): Removed.
  12760. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  12761. (setTopDir): Removed.
  12762. (getTopDir): Removed.
  12763. * src/BtContext.h: New file.
  12764. * src/DefaultPeerStorage.h: New file.
  12765. * src/PieceMessage.h (TorrentMan.h): Removed.
  12766. * src/RequestMessage.h (TorrentMan.h): Removed.
  12767. * src/TorrentDownloadEngine.h
  12768. (uploadLength): New variable.
  12769. (btContext): New variable.
  12770. (btRuntime): New variable.
  12771. (pieceStorage): New variable.
  12772. (peerStorage): New variable.
  12773. (btAnnounce): New variable.
  12774. (btProgressInfoFile): New variable.
  12775. (torrentMan): Removed.
  12776. (setBtContext): New function.
  12777. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  12778. peerStorage, btAnnounce, btProgressInfoFile.
  12779. * src/Piece.h
  12780. (toString): New function.
  12781. (Pieces): New type definition.
  12782. * src/Peer.h
  12783. (active): New variable.
  12784. (Peer): Added active.
  12785. (activate): Set active to true.
  12786. (deactivate): Set active to false.
  12787. (isActive): New function.
  12788. (Peers): New type definition.
  12789. * src/DirectDiskAdaptor.cc
  12790. (getFilePath): Use the accessor methods of FileEntry.
  12791. * src/TorrentConsoleDownloadEngine.h
  12792. (afterEachIteration): New function.
  12793. * src/TorrentConsoleDownloadEngine.cc
  12794. (haltRequested): New variable.
  12795. (sendStatistics): Use pieceStorage, btRuntime.
  12796. (afterEachIteration): New function.
  12797. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  12798. * src/Directry.h
  12799. (Directory): New function.
  12800. (DirectoryHandle): New type definition.
  12801. * src/BtProgressInfoFile.h: New file.
  12802. * src/RequestMessage.cc: Use pieceStorage.
  12803. * src/BtRuntime.h: New file.
  12804. * src/DefaultBtContext.cc: New file.
  12805. * src/BitfieldMan.h
  12806. (getCompletedLength): New function(private).
  12807. (getCompletedLength): New function.
  12808. (getFilteredCompletedLength): New function.
  12809. * src/BitfieldMan.h
  12810. (getCompletedLength): New function(private).
  12811. (getCompletedLength): New function.
  12812. (getFilteredCompletedLength): New function.
  12813. * src/MultiDiskAdaptor.cc
  12814. (mkdir): New function.
  12815. (openFile): Call mkdir().
  12816. (initAndOpenFile): Call mkdir().
  12817. * src/CancelMessage.h
  12818. (TorrentMan.h): Removed.
  12819. * src/RejectMessage.h
  12820. (TorrentMan.h): Removed.
  12821. * src/DownloadEngineFactory.cc
  12822. (DefaultPieceStorage.h): New include.
  12823. (DefaultPeerStorage.h): New include.
  12824. (DefaultBtAnnounce.h): New include.
  12825. (DefaultBtProgressInfoFile.h): New include.
  12826. (newTorrentConsoleEngine): Rewritten.
  12827. * src/ShareRatioSeedCriteria.h
  12828. (torrentMan): Removed.
  12829. (btContext): New variable.
  12830. (peerStorage): New variable.
  12831. (btRuntime): New variable.
  12832. (evaluate): Use btContext, btRuntime, peerStorage.
  12833. * src/AnnounceTier.h: New file.
  12834. * src/BtAnnounce.h: New file.
  12835. * src/BtRegistry.h: New file.
  12836. * src/PeerInitiateConnectionCommand.h: Added btContext.
  12837. * src/PeerConnection.h (TorrentMan.h): Removed.
  12838. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  12839. * src/Util.h
  12840. (slice): Added an argument.
  12841. * src/Util.cc
  12842. (slice): Added an argument to control whether trim is made or not.
  12843. * src/PeerStorage.h: New file.
  12844. * src/BtRegistry.cc: New file.
  12845. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  12846. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  12847. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  12848. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  12849. * src/TorrentRequestInfo.h
  12850. (e): Removed.
  12851. (showFileEntry): Added an argument.
  12852. (getDownloadEngine): Return 0.
  12853. * src/DefaultBtAnnounce.h: New file.
  12854. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  12855. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  12856. * src/PeerMessageFactory.h
  12857. (btContext): New variable.
  12858. (pieceStorage): New variable.
  12859. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  12860. btAnnounce.
  12861. * src/DiskAdaptor.cc
  12862. (DiskAdaptor): Removed topDir.
  12863. (~DiskAdaptor): Removed topDir.
  12864. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  12865. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  12866. * src/File.h (mkdirs): New function.
  12867. * src/DefaultPeerStorage): New file.
  12868. * src/DownloadEngineFactory.h
  12869. (newTorrentConsoleEngine): Use btContext.
  12870. * src/BtContextAwareCommand.cc: New file.
  12871. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  12872. * src/PeerMessage.h
  12873. (btContext): New variable.
  12874. (peerStorage): New variable.
  12875. (pieceStorage): New variable.
  12876. (setBtContext): New function.
  12877. * src/Directry.cc
  12878. (Directory): New function.
  12879. (createDir): Do nothing if name.size() == 0.
  12880. * src/AnnounceList.h
  12881. (AnnounceTier): Removed.
  12882. (AnnounceTiers): Removed.
  12883. * src/DefaultPieceStorage.h: New file.
  12884. * src/Piece.cc (toString): New function.
  12885. To fix typo:
  12886. * src/main.cc (showVersion): Fixed typo.
  12887. To fix compile warning:
  12888. * src/DelegatingPeerListProcessor.cc
  12889. (canHandle): Added "return false".
  12890. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12891. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  12892. make the process of announce request testable.
  12893. * src/TrackerWatcherCommand.h
  12894. (TimeA2.h): Removed.
  12895. (interval): Removed.
  12896. (checkPoint): Removed.
  12897. (createRequestCommand): Added an argument 'url'.
  12898. (TrackerWatherCommand): Removed interval.
  12899. (createCommand): New function.
  12900. * src/DownloadEngineFactory.cc
  12901. (newTorrentConsoleEngine): Updated according to the changes in
  12902. TrackerWatherCommand.
  12903. * src/TorrentMan.cc
  12904. (DelegatingPeerListProcessor.h): New includes.
  12905. (TorrentMan): Added the initialization of announceInterval.
  12906. (isStoppedAnnounceReady): New function.
  12907. (isCompletedAnnounceReady): New function.
  12908. (isDefaultAnnounceReady): New function.
  12909. (isAnnounceReady): New function.
  12910. (getAnnounceUrl): New function.
  12911. (announceStart): New function.
  12912. (announceFailure): New function.
  12913. (announceSuccess): New function.
  12914. (isAllAnnounceFailed): New function.
  12915. (resetAnnounce): New function.
  12916. (processAnnounceResponse): New function.
  12917. (needMorePeerConnection): New function.
  12918. (noMoreAnnounce): New function.
  12919. * src/TrackerUpdateCommand.h
  12920. (getTrackerResponse): int->size_t
  12921. * src/TorrentMan.h
  12922. (isStoppedAnnounceReady): New function.
  12923. (isCompletedAnnounceReady): New function.
  12924. (isDefaultAnnounceReady): New function.
  12925. (announceInterval): New variable.
  12926. (isAnnounceReady): New function.
  12927. (getAnnounceUrl): New function.
  12928. (announceStart): New function.
  12929. (announceFailure): New function.
  12930. (announceSuccess): New function.
  12931. (isAllAnnounceFailed): New function.
  12932. (resetAnnounce): New function.
  12933. (processAnnounceResponse): New function.
  12934. (needMorePeerConnection): New function.
  12935. (noMoreAnnounce): New function.
  12936. * src/TrackerWatcherCommand.cc
  12937. (TrackerWatherCommand): Removed interval and checkPoint.
  12938. (execute): Rewritten.
  12939. (createCommand): New function.
  12940. (createRequestCommand): Rewritten.
  12941. * src/TrackerUpdateCommand.cc
  12942. (MetaFileUtil.h): Removed.
  12943. (DelegatingPeerListProcessor.h): Removed.
  12944. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  12945. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12946. Request -> RequestHandle:
  12947. * src/HttpResponseCommand.h: Request->RequestHandle
  12948. * src/AbstractCommand.cc: Request->RequestHandle
  12949. * src/HttpDownloadCommand.cc: Request->RequestHandle
  12950. * src/HttpRequestCommand.cc: Request->RequestHandle
  12951. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  12952. * src/AbstractCommand.h: Request->RequestHandle
  12953. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  12954. * src/HttpResponseCommand.cc: Request->RequestHandle
  12955. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  12956. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  12957. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  12958. * src/HttpConnection.h: Request->RequestHandle
  12959. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  12960. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  12961. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12962. * src/DownloadCommand.h: Request->RequestHandle
  12963. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  12964. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  12965. * src/HttpRequestCommand.h: Request->RequestHandle
  12966. * src/FtpNegotiateCommand.h: Request->RequestHandle
  12967. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12968. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  12969. * src/HttpDownloadCommand.h: Request->RequestHandle
  12970. * src/FtpConnection.cc: Request->RequestHandle
  12971. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  12972. * src/UrlRequestInfo.cc: Request->RequestHandle
  12973. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  12974. * src/HttpConnection.h: Request->RequestHandle
  12975. * src/DownloadCommand.cc: Request->RequestHandle
  12976. * src/FtpConnection.h: Request->RequestHandle
  12977. * src/FtpDowndloadCommand.h: Request->RequestHandle
  12978. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  12979. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  12980. * src/Request.h
  12981. (SharedHandle.h): New include.
  12982. (RequestHandle): New type definition.
  12983. (Requests): Redefined.
  12984. To add MULTITRACKER support:
  12985. * src/TrackerWatcherCommand.h
  12986. (createRequestCommand): New function.
  12987. * src/DownloadEngineFactory.cc
  12988. (newTorrentConsoleEngine): Removed req.
  12989. * src/prefs.h
  12990. (PREF_TRACKER_MAX_TRIES): New definition.
  12991. * src/TorrentMan.cc
  12992. (TorrentMan): Removed req. Added trackerNumTry.
  12993. (~TorrentMan): Removed req.
  12994. (setupInternal1): Added announceList.
  12995. * src/TorrentRequestInfo.cc
  12996. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  12997. announces is now specified by PREF_TRACKER_MAX_TRIES.
  12998. * src/main.cc
  12999. (main): Added PREF_TRACKER_MAX_TRIES.
  13000. * src/TorrentMan.h
  13001. (Request.h): Removed.
  13002. (AnnounceList.h): New include.
  13003. (trackerNumTry): New variable.
  13004. (req): Removed.
  13005. (announceList): New variable.
  13006. * src/TrackerWatcherCommand.cc
  13007. (execute): Rewritten.
  13008. (createRequestCommand): New function.
  13009. * src/TrackerUpdateCommand.cc
  13010. (execute): Updated with the use of AnnounceList.
  13011. * src/AnnounceList.cc: New class.
  13012. * src/AnnounceList.h: New class.
  13013. To fix typo:
  13014. * src/prefs.h
  13015. (PREF_MAX_TRIES): max_try->max_tries
  13016. To not to decode "+" as space in URL decode:
  13017. * src/Util.cc
  13018. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  13019. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13020. To add timeout to async name resolution:
  13021. * src/AbstractCommand.h
  13022. (nameResolveFinished): New function. This is not elegant way. It needs
  13023. to be more refined.
  13024. (nameResolverCheck): New variable.
  13025. * src/AbstractCommand.cc
  13026. (AbstractCommand): Added nameResolverCheck.
  13027. (execute): Added the check whether the name resolution has finished.
  13028. (setNameResolverCheck): Set nameResolverCheck to true.
  13029. (disableNameResolverCheck): Set nameResolverCheck to false.
  13030. (nameResolverFinished): New function.
  13031. * src/FtpInitiateConnectionCommand.h
  13032. (nameResolverFinished): New function.
  13033. * src/FtpInitiateConnectionCommand.cc
  13034. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13035. * src/HttpInitiateConnectionCommand.h
  13036. (nameResolverFinished): New function.
  13037. * src/HttpInitiateConnectionCommand.cc
  13038. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13039. * src/prefs.h
  13040. (PREF_DNS_TIMEOUT): New definition.
  13041. * src/main.cc
  13042. (main): Added PREF_DNS_TIMEOUT.
  13043. To add the support for a non-compact response from a tracker:
  13044. * src/PeerListProcessor.h: New class.
  13045. * src/DefaultPeerListProcessor.h: New class.
  13046. * src/DefaultPeerListProcessor.cc: New class.
  13047. * src/CompactPeerListProcessor.h: New class.
  13048. * src/CompactPeerListProcessor.cc: New class.
  13049. * src/DelegatingPeerListProcessor.h: New class.
  13050. * src/DelegatingPeerListProcessor.cc: New class.
  13051. * src/TorrentMan.cc
  13052. (addPeer): New function(overload).
  13053. (addPeer): Delete unused peers only when new peer is added.
  13054. * src/TorrentMan.h
  13055. (PeerListProcessor.h): Included.
  13056. (Peers): Removed.
  13057. (addPeer): New function(overload).
  13058. * src/TrackerUpdateCommand.cc
  13059. (netinet/in.h): Removed.
  13060. (DelegatingPeerListProcessor.h): Included.
  13061. (execute): Updated to use DelegatingPeerListProcessor.
  13062. To fix the memory leak in TorrentMan::peers:
  13063. * src/PeerAbstractCommand.cc
  13064. (onAbort): Added peer->resetStatus().
  13065. * src/Peer.h
  13066. (resetStatus): Made public.
  13067. To improve the precision of the speed calculation:
  13068. * src/SpeedCalc.h
  13069. (nextInterval): New variable.
  13070. * src/SpeedCalc.cc
  13071. (reset): Added nextInterval.
  13072. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  13073. (changeSw): Set nextInterval to 15 seconds relative to the current
  13074. instant time.
  13075. * src/main.cc
  13076. (showVersion): Updated.
  13077. (showUsage): Updated.
  13078. * Release 0.8.1
  13079. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13080. * src/main.cc
  13081. (showUsage): Commented out --min-segment-size option.
  13082. (main): Commented out --min-segment-size option.
  13083. * Release 0.8.0
  13084. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13085. * src/*.{h,cc}:
  13086. Added an exception to the license which allows linking with OpenSSL.
  13087. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13088. * src/AbstractCommand.cc
  13089. (execute): Check whether the download has finished before checking
  13090. socket status.
  13091. Return true if peerStat->getStatus() == REQUEST_IDLE.
  13092. Do not exit even if no segment is available.
  13093. * src/prefs.h
  13094. (PREF_STARTUP_IDLE_TIME): New definition.
  13095. * src/PeerInteractionCommand.cc
  13096. (executeInternal): Removed max speed limit. Because it performs bad.
  13097. (receiveMessages): Added max speed limit. This was better than above,
  13098. but still a little bit to be desired. Sometimes the download speed
  13099. became much faster than I specified.
  13100. * src/SpeedCalc.h
  13101. (start): New variable.
  13102. (accumulatedLength): New variable.
  13103. (getAvgSpeed): New function.
  13104. * src/SpeedCalc.cc
  13105. (reset): Added start, accumulatedLength.
  13106. (update): Added calculation of an average speed.
  13107. (getAvgSpeed): New function.
  13108. * src/DownloadCommand.h
  13109. (sw): Removed.
  13110. * src/main.cc
  13111. (main): Added PREF_STARTUP_IDLE_TIME.
  13112. * src/PeerStat.h
  13113. (STATUS): Added REQUEST_IDLE.
  13114. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  13115. (getAvgDownloadSpeed): New function
  13116. (requestIdle): New function.
  13117. * src/SegmentMan.h
  13118. (SegmentEntryHandle): New type definition.
  13119. (SegmentEntries): Now holds SegmentEntryHandle.
  13120. (findSlowerSegmentEntry): New funtion.
  13121. * src/SegmentMan.cc
  13122. (save): Updated according to the changes in SegmentEntries.
  13123. (read): Updated according to the changes in SegmentEntries.
  13124. (FindSegmentEntryByIndex): Updated according to the changes in
  13125. SegmentEntries.
  13126. (FindSegmentEntryByCuid): Updated according to the changes in
  13127. SegmentEntries.
  13128. (checkoutSegment): Updated according to the changes in SegmentEntries.
  13129. (onNullBitfield): Updated according to the changes in SegmentEntries.
  13130. Renamed uitr as itr.
  13131. (findSlowerSegmentEntry): New function.
  13132. (getSegment): Updated according to the changes in SegmentEntries.
  13133. Added the feature that cancels the segment with slow server and fast
  13134. one takes it over.
  13135. (cancelSegment): Updated according to the changes in SegmentEntries.
  13136. (getDownloadLength): Updated according to the changes in
  13137. SegmentEntries.
  13138. (init): Assigned 0 to bitfield after deleting it.
  13139. * src/DownloadCommand.cc
  13140. (STARTUP_IDLE_TIME): Removed.
  13141. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  13142. * src/PeerChokeCommand.cc
  13143. (optUnchokingPeer): Updated according to the changes in Peer.
  13144. (ResetDelta): Removed.
  13145. (UploadFaster): Updated according to the changes in Peer.
  13146. (DownloadFaster): Updated according to the changes in Peer.
  13147. (execute): I clarify the meaning of "upload" and "download" here.
  13148. "upload" means the transfer from localhost to remote host.
  13149. "download" means the transfer from remote host to localhost.
  13150. Based on this rule, I swapped orderByUploadRate and
  13151. orderByDownloadRate.
  13152. * src/PeerInteractionCommand.cc
  13153. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  13154. (executeInternal): Removed the argument of
  13155. peerInteraction->sendMessages().
  13156. (receiveMessages): Rewritten download speed limit.
  13157. (sendKeepAlive): Removed peerInteraction->sendMessages().
  13158. * src/HttpResponseCommand.cc
  13159. (handleDefaultEncoding): If file size is unknown in torrent request,
  13160. do not call segmentMan->initBitfield() here.
  13161. Disabled persistent connection feature in torrent request.
  13162. * src/UrlRequestInfo.h
  13163. (UrlRequestInfo): Removed const qualifier from option.
  13164. * src/TorrentMan.h
  13165. (TransferStat): New class.
  13166. (deltaDownloadLength): Removed.
  13167. (deltaUploadLength): Removed.
  13168. (addDeltaDownloadLength): Removed.
  13169. (getDeltaDownloadLength): Removed.
  13170. (resetDeltaDownloadLength): Removed.
  13171. (addDeltaUploadLength): Removed.
  13172. (getDeltaUploadLength): Removed.
  13173. (resetDeltaUploadLength): Removed.
  13174. (addActivePeer): Added peer->activate().
  13175. (deleteActivePeer): Added peer->deactivate().
  13176. (calculateStat): New function.
  13177. * src/TorrentMan.cc
  13178. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  13179. (calculateStat): New function.
  13180. * src/PeerInteraction.h
  13181. (uploadLimit): Removed.
  13182. (option): New variable.
  13183. (setUploadLimit): Removed.
  13184. (getUploadSpeed): Removed.
  13185. (sendMessages): Removed the argument "currentUploadSpeed".
  13186. * src/PeerInteraction.cc
  13187. (prefs.h): Included.
  13188. (PeerInteraction): Removed uploadLimit. Added option.
  13189. (sendMessages): Rewritten upload speed limit.
  13190. (sendHandshake): Removed the argument from sendMessages().
  13191. (sendBitfield): Removed the argument from sendMessages().
  13192. * src/PeerAbstractCommand.cc
  13193. (execute): Commented out the portion of upload limit.
  13194. (onAbort): Removed peer->resetStatus().
  13195. * src/TorrentRequestInfo.cc
  13196. (timeoutSpecified): Declared extern.
  13197. (execute): Set timeout to 180 if timeout is not specified by.
  13198. command-line.
  13199. * src/PieceMessage.cc
  13200. (receivedAction): Added peer->updateDownloadLength().
  13201. Removed peer->addPeerUpload().
  13202. Removed torrentMan->addDeltaDownloadLength().
  13203. (send): Added peer->updateUploadLength().
  13204. Removed peer->addPeerDownload().
  13205. Removed torrentMan->addDeltaUploadLength().
  13206. * src/main.cc
  13207. (timeoutSpecified): New variable.
  13208. (main): Set timeoutSpecified to false.
  13209. If the command-line option "--upload-limit" is specified, then
  13210. timeoutSpecified is set to true. This option will remain in the next
  13211. release, but be deprecated in the future release.
  13212. * src/TorrentRequestInfo.h
  13213. (TorrentRequestInfo): Removed const qualifier from op.
  13214. * src/PeerStat.h
  13215. (uploadSpeed): New variable.
  13216. (PeerStat): Added default value to cuid.
  13217. (calculateUploadSpeed): New function.
  13218. (updateUploadLength): New function.
  13219. (getMaxUploadSpeed): New function.
  13220. (getAvgUploadSpeed): New function.
  13221. (reset): Added uploadSpeed. Set status to IDLE.
  13222. * src/TorrentDownloadEngine.h
  13223. (cp): Declared as Time.
  13224. (sessionDownloadLengthArray): Removed.
  13225. (sessionUploadLengthArray): Removed.
  13226. (currentCp): Removed.
  13227. (lastCalcStat): New variable
  13228. (lastElapsed): Removed.
  13229. (sessionDownloadLength): Removed.
  13230. (calculateStat): New function.
  13231. * src/TorrentDownloadEngine.cc
  13232. (initStatistics): Removed lastElapsed, cp[],
  13233. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  13234. currentCp, sessionDownloadLength.
  13235. Added cp.reset() and lastCalcStat.reset().
  13236. (calculateSpeed): Changed the name of the argument.
  13237. (calculateStatistics): Rewritten.
  13238. (calculateStat): New function.
  13239. * src/Peer.h
  13240. (PeerStat.h): Included.
  13241. (peerUpload): Removed.
  13242. (peerDownload): Removed.
  13243. (peerStat): New variable.
  13244. (sessionUploadLength): New variable.
  13245. (sessionDownloadLength): New variable.
  13246. (deltaUpload): Removed.
  13247. (deltaDownload): Removed.
  13248. (resetStatus): Made private.
  13249. (Peer): Added sessionUploadLength, sessionDownloadLength.
  13250. Removed peerUpload, peerDownload.
  13251. (updateUploadLength): New function.
  13252. (addDeltaUpload): Removed.
  13253. (updateDownloadLength): New function.
  13254. (resetDeltaUpload): Removed.
  13255. (getDeltaUpload): Removed.
  13256. (addDeltaDownload): Removed.
  13257. (calculateUploadSpeed): New function.
  13258. (resetDeltaDownload): Removed.
  13259. (getDeltaDownload): Removed.
  13260. (calculateDownloadSpeed): New function.
  13261. (getSessionUploadLength): New function.
  13262. (getSessionDownloadLength): New function.
  13263. (activate): New function.
  13264. (deactivate): New function.
  13265. (addPeerUpload): Removed.
  13266. (setPeerUpload): Removed.
  13267. (getPeerUpload): Removed.
  13268. (addPeerDownload): Removed.
  13269. (setPeerDownload): Removed.
  13270. (getPeerDownload): Removed.
  13271. * src/Peer.cc
  13272. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  13273. * src/MetalinkRequestInfo.h
  13274. (MetalinkRequestInfo): Removed const qualifier from op.
  13275. * src/RequestInfo.h
  13276. (op): Removed const qualifier.
  13277. (RequestInfo): Removed const qualifier from op.
  13278. * src/prefs.h
  13279. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  13280. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  13281. * src/PeerInteractionCommand.cc
  13282. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  13283. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  13284. * src/PeerInteraction.cc
  13285. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  13286. * src/main.cc
  13287. (showUsage): Updated the description of "--lowest-speed-limit" option.
  13288. Added the description of "--max-download-limit" option.
  13289. Removed the description of "--upload-limit" option.
  13290. Added the description of "--max-upload-limit" option.
  13291. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  13292. Added "--max-download-limit" option and "--max-upload-limit" option.
  13293. Added the warning message if "--upload-limit" option is used.
  13294. * src/DownloadCommand.cc
  13295. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  13296. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13297. To rewrite segment download mechanism for HTTP/FTP download.
  13298. Use BitfieldMan to manage segment download.
  13299. * src/HttpResponseCommand.h
  13300. (executeInternal): Pass the reference of segment.
  13301. * src/AbstractCommand.cc
  13302. (prepareForRetry): Call segmentMan->cancelSegment here.
  13303. (onAbort): Call segmentMan->cancelSegment here.
  13304. * src/HttpDownloadCommand.cc
  13305. (prepareForNextSegment): New function.
  13306. * src/DownloadEngineFactory.cc
  13307. (newConsoleEngine): Removed splitter.
  13308. (newTorrentConsoleEngine): Removed splitter.
  13309. * src/Request.h
  13310. (segment): Renamed from seg.
  13311. * src/FtpInitiateConnectionCommand.h
  13312. (executeInternal): Pass the reference of segment.
  13313. * src/AbstractCommand.h
  13314. (executeInternal): Pass the reference of segment.
  13315. * src/pref.h
  13316. (PREF_SEGMENT_SIZE): New definition.
  13317. * src/HttpProxyRequestCommand.h
  13318. (executeInternal): Pass the reference of segment.
  13319. * src/HttpResponseCommand.cc
  13320. (checkResponse): Allowed status 206 when a request range starts 0.
  13321. (handleDefaultEncoding): Rewritten the code related to Segment.
  13322. (handleOtherEncoding): Rewritten the code related to Segment.
  13323. * src/SegmentMan.h
  13324. (SegmentEntry): New class.
  13325. (SegmentEntries): New type definition.
  13326. (bitfield): New variable.
  13327. (usedSegmentEntries): New variable.
  13328. (onNullBitfield): New function.
  13329. (checkoutSegment): New function.
  13330. (segments): Removed.
  13331. (splitter): Removed.
  13332. (unregisterId): Removed.
  13333. (getSegment): New function(overload)
  13334. (getDownloadedSize): Removed.
  13335. (cancelSegment): New function.
  13336. (completeSegment): New function.
  13337. (initBitfield): New function.
  13338. (hasSegment): New function.
  13339. (getDownloadLength): New function.
  13340. * src/BitfieldMan.h
  13341. (getStartIndex): New function.
  13342. (getEndIndex): New function.
  13343. (getMissingUnusedIndex): New function(overload).
  13344. (getSparseMissingUnusedIndex): New function.
  13345. * src/BitfieldMan.cc
  13346. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  13347. (getMissingUnusedIndex): New function(overload).
  13348. (Range): New class.
  13349. (getStartIndex): New function.
  13350. (getEndIndex): New function.
  13351. (getSparseMissingUnusedIndex): New function.
  13352. (isBitSetInternal): Return false if the given index is less than 0.
  13353. * src/HttpInitiateConnectionCommand.h
  13354. (executeInternal): Pass the reference of segment.
  13355. * src/FtpNegotiateCommand.h
  13356. (executeInternal): Pass the reference of segment.
  13357. * src/FtpNegotiateCommand.cc
  13358. (recvSize): Initialize bitfield here.
  13359. * src/FtpTunnelResponseCommand.h
  13360. (executeInternal): Pass the reference of segment.
  13361. * src/HttpConnection.cc
  13362. (createRequest): Rewritten range header processing.
  13363. * src/DownloadCommand.h
  13364. (executeInternal): Pass the reference of segment.
  13365. (prepareForRetry): Removed.
  13366. (prepareForNextSegment): Added an argument segment. Made it a virtual
  13367. function.
  13368. * src/main.cc
  13369. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  13370. * src/SegmentMan.cc
  13371. (SegmentMan): Added bitfield. Removed splitter.
  13372. (~SegmentMan): Added bitfield. Removed splitter.
  13373. (unregisterId): Removed.
  13374. (getSegment): Rewritten.
  13375. (updateSegment): Rewritten.
  13376. (save): Rewritten.
  13377. (read): Rewritten.
  13378. (finished): Rewritten.
  13379. (getDownloadedSize): Removed.
  13380. (initBitfield): New function.
  13381. (FindSegmentEntryByIndex): New function object.
  13382. (FindSegmentEntryByCuid): New function object.
  13383. (checkoutSegment): New function.
  13384. (onNullBitfield): New function.
  13385. (getSegment): New function(overload).
  13386. (CancelSegment): New function object.
  13387. (cancelSegment): New function.
  13388. (completeSegment): New function.
  13389. (hasSegment): New function.
  13390. (getDownloadLength): New function.
  13391. * src/FtpInitiateConnectionCommand.cc
  13392. (executeInternal): Load .aria2 file after hostname resolution finishes.
  13393. * src/Segment.h: Rewritten.
  13394. * src/Segment.cc (operator<<): New function.
  13395. * src/HttpDownloadCommand.h
  13396. (prepareForNextSegment): New function.
  13397. * src/Request.cc
  13398. (resetUrl): Made segment null.
  13399. * src/DownloadEngine.cc
  13400. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  13401. * src/HttpProxyRequestCommand.h
  13402. (executeInternal): Pass the reference of segment.
  13403. * src/DownloadCommand.cc
  13404. (executeInternal): Rewritten the code related to Segment.
  13405. (prepareForRetry): Removed.
  13406. (prepareForNextSegment): Rewritten.
  13407. * src/FtpTunnelResponseCommand.h
  13408. (executeInternal): Pass the reference of segment.
  13409. To add HTTP 1.1 persistent connection support(experimental)
  13410. * src/HttpRequestCommand.cc
  13411. (executeInternal): Disable keep alive if it is disabled by
  13412. configuration.
  13413. * src/Request.h
  13414. (keepAlive): New variable.
  13415. (isKeepAlive): New function.
  13416. (setKeepAlive): New function.
  13417. * src/pref.h
  13418. (PREF_HTTP_KEEP_ALIVE): New definition.
  13419. * src/HttpResponseCommand.cc
  13420. (executeInternal): Check the remote server supports keep alive.
  13421. * src/HttpConnection.cc
  13422. (createRequest): Send "Connection: close" only if keep alive is
  13423. disabled.
  13424. * src/main.cc
  13425. (main):
  13426. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  13427. To add max download speed limit:
  13428. * src/pref.h
  13429. (PREF_MAX_SPEED_LIMIT): New definition.
  13430. * src/PeerInteractionCommand.cc
  13431. (executeInternal): Added max download speed limit. Not tested yet.
  13432. * src/SegmentMan.h
  13433. (PeerStats): New type definition.
  13434. (peerStats): New variable.
  13435. (registerPeerStat): New function.
  13436. (FindPeerStat): New function object.
  13437. (getPeerStat): New function.
  13438. (calculateDownloadSpeed): New function.
  13439. * src/SpeedCalc.h: New class.
  13440. * src/SpeedCalc.cc: New class.
  13441. * src/main.cc
  13442. (main):
  13443. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  13444. download speed is not restricted).
  13445. * src/PeerStat.h: New class.
  13446. * src/SegmentMan.cc
  13447. (registerPeerStat): New function.
  13448. (calculateDownloadSpeed): New function.
  13449. * src/DownloadCommand.cc
  13450. (STARTUP_IDLE_TIME): New definition.
  13451. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  13452. downloadStart.
  13453. (~DownloadCommand): Call peerStat->downloadStop.
  13454. (executeInternal): Added download speed limitter. Rewritten lowest
  13455. speed limitter.
  13456. * src/HttpConnection.cc
  13457. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  13458. * src/AbstractCommand.cc
  13459. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  13460. Added hostname to the error message.
  13461. * src/ConsoleDownloadEngine.cc
  13462. (calculateStatistics): Initialize psize with dlSize.
  13463. * src/PieceMessage.cc
  13464. (receivedAction): Do not call peerInteraction->abortPiece here.
  13465. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  13466. * src/BitfieldMan.h
  13467. (clearAllUseBit): New function.
  13468. (setAllUseBit): New function.
  13469. * src/BitfieldMan.cc
  13470. (clearAllBit): Do not clear useBitfield here.
  13471. (clearAllUseBit): New function.
  13472. (setAllUseBit): New function.
  13473. * src/Piece.cc
  13474. (clearAllBlock): Call bitfield->clearAllUseBit().
  13475. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13476. To make filename URL-decoded:
  13477. * src/HttpResponseCommand.h: Updated doc.
  13478. * src/HttpResponseCommand.cc
  13479. (determinFilename): Made filename URL-decoded.
  13480. * src/FtpInitiateConnectionCommand.cc
  13481. (executeInternal): Made filename URL-decoded.
  13482. * src/Util.h (urldecode): New function.
  13483. * src/Util.cc (urldecode): New function.
  13484. To fix a bug that caused assertion failure in ares_strerror:
  13485. * src/NameResolver.cc (callback): Fixed the bug.
  13486. * Release 0.7.3
  13487. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13488. To add --seed-time and --seed-ratio command-line option:
  13489. * src/Option.h (getAsDouble): New function.
  13490. * src/Option.cc (getAsDouble): New function.
  13491. * src/SeedCheckCommand.h: New class.
  13492. * src/SeedCheckCommand.cc: New class.
  13493. * src/DownloadEngineFactory.cc
  13494. (SeedCheckCommand.h): Included.
  13495. (UnionSeedCriteria.h): Included.
  13496. (TimeSeedCriteria.h): Included.
  13497. (ShareRatioSeedCriteria.h): Included.
  13498. (newTorrentConsoleEngine): Added the processing of seed option.
  13499. * src/SeedCriteria.h: New class.
  13500. * src/ShareRatioSeedCriteria.h: New class.
  13501. * src/TimeSeedCriteria.h: New class.
  13502. * src/UnionSeedCriteria.h: New class.
  13503. * src/prefs.h
  13504. (PREF_SEED_TIME): New definition.
  13505. (PREF_SEED_RATIO): New definition.
  13506. * src/main.cc
  13507. (showUsage): Added --seed-time and --seed-ratio option.
  13508. (main): Added --seed-time and --seed-ratio option.
  13509. Made default log file name "/dev/null".
  13510. * src/SharedHandle.h
  13511. (SharedHandle): Copy constructor. Made it assignable from the
  13512. SharedHandle of the subclasses.
  13513. (operator=): Made it assignable from the SharedHandle of the
  13514. subclasses.
  13515. (getRefCount): New function.
  13516. To add notice log level and the switch to write log to stdout. This
  13517. switch is configurable per log level.
  13518. * src/Logger.h
  13519. (notice): New function.
  13520. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  13521. constant.
  13522. * src/LogFactory.cc
  13523. (getInstance): The use of NullLogger was removed. A log message with
  13524. notice log level was made written to stdout along with log file.
  13525. * src/NullLogger.h
  13526. (notice): New function.
  13527. * src/SimpleLogger.h
  13528. (writeHeader): Added the 'file' argument.
  13529. (writeLog): Added the 'file' argument.
  13530. (writeFile): New function.
  13531. (stdoutField): New variable.
  13532. (SimpleLogger): Removed the default constructor.
  13533. (SimpleLogger): Made the default value of logfile 0.
  13534. (debug): Added 'virtual' keyword.
  13535. (info): Added 'virtual' keyword.
  13536. (warn): Added 'virtual' keyword.
  13537. (error): Added 'virtual' keyword.
  13538. (notice): New function.
  13539. (setStdout): New function.
  13540. * src/SimpleLogger.cc
  13541. (WRITE_LOG): Replaced writeLog with writeFile.
  13542. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  13543. (SimpleLogger): Removed the default constructor.
  13544. (setStdout): New function.
  13545. (writeLog): Added the handling of NOTICE log level.
  13546. (writeFile): New function.
  13547. (notice): New function.
  13548. * src/TorrentMan.h: Updated doc.
  13549. * src/BitfieldMan.h: Updated doc.
  13550. * src/TrackerWatcherCommand.cc
  13551. (execute): Return true if error occurred in the request to the tracker
  13552. and halt is requested.
  13553. * src/TrackerUpdateCommand.cc
  13554. (execute): Return true if error occurred in the request to the tracker
  13555. and halt is requested.
  13556. To call onDownloadComplete from TorrentMan::completePiece(), not from
  13557. DownloadEngine:
  13558. * src/TorrentConsoleDownloadEngine.h
  13559. (onSelectiveDownloadingCompletes): Removed.
  13560. * src/TorrentConsoleDownloadEngine.cc
  13561. (onSelectiveDownloadingCompletes): Removed.
  13562. * src/TorrentDownloadEngine.h
  13563. (onEndOfRun): Added 'virtual' keyword.
  13564. (afterEachIteration): Removed.
  13565. (onSelectiveDownloadingCompletes): Removed.
  13566. * src/TorrentDownloadEngine.cc
  13567. (onEndOfRun): Removed filenameFixed.
  13568. (afterEachIteration): Removed.
  13569. * src/TorrentMan.cc
  13570. (completePiece): Call onDownloadComplete here.
  13571. (onDownloadComplete): Added 2 log messages.
  13572. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13573. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  13574. * src/NameResolver.h: Added the prototype declaration of callback().
  13575. To support c-ares library:
  13576. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13577. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13578. * src/FtpInitiateConnectionCommand.h:
  13579. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13580. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13581. * src/HttpInitiateConnectionCommand.h:
  13582. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13583. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  13584. Added thes upport of c-ares's ares_strerror(the idea came from patch
  13585. #1542285 by tizianomueller)
  13586. * src/HttpInitiateConnectionCommand.cc:
  13587. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13588. * src/FtpInitiateConnectionCommand.cc:
  13589. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13590. * src/DownloadEngine.h:
  13591. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13592. * src/DownloadEngine.cc:
  13593. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13594. To fix the bug that causes compilation failure with metalink-support
  13595. disabled(bug#1543587):
  13596. * src/main.cc: Fixed with the patch by tizianomueller.
  13597. * Release 0.7.2
  13598. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13599. * src/main.cc
  13600. (main): Added a message to inform users that aria2 is starting to
  13601. verify checksum.
  13602. * src/RequestInfo.cc
  13603. (printDownloadAbortMessage): Added a message to inform users that
  13604. transfer can be resumed.
  13605. * src/FeatureConfig.cc
  13606. (FEATURE_ASYNC_DNS): New definition.
  13607. (FeatureConfig): Added aysnc DNS entry.
  13608. To replace CommandUuid with Command* in SocketEntry and
  13609. NameResolverEntry:
  13610. * src/DownloadEngine.h
  13611. (CommandUuids): Removed.
  13612. (SocketEntry::commandUuid): Removed.
  13613. (SocketEntry::command): New variable.
  13614. (SocketEntry::SocketEntry): Updated.
  13615. (SocketEntry::operator==): Updated.
  13616. (NameResolverEntry::commandUuid): Removed.
  13617. (NameResolverEntry::command): New variable.
  13618. (NameResolverEntry::NameResolverEntry): Updated.
  13619. (NameResolverEntry::operator==): Updated.
  13620. (waitData): Changed the argument type.
  13621. (addSocketForReadCheck): Changed the argument type.
  13622. (deleteSocketForReadCheck): Changed the argument type.
  13623. (addSocketForWriteCheck): Changed the argument type.
  13624. (deleteSocketForWriteCheck): Changed the argument type.
  13625. (addNameResolverCheck): Changed the argument type.
  13626. (deleteNameResolverCheck): Changed the argument type.
  13627. * src/DownloadEngine.cc
  13628. (FindCommand): Removed.
  13629. (run): Removed activeUuid. Added activeCommands instead.
  13630. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  13631. (AccumulateActiveCommand): New function object.
  13632. (waitData): Use AccumulateActiveCommand.
  13633. (addSocketForReadCheck): Use Command instead of CommandUuid.
  13634. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  13635. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  13636. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  13637. (addNameResolverCheck): Use Command instead of CommandUuid.
  13638. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  13639. * src/AbstractCommand.cc
  13640. (disableReadCheckSocket): Updated according to the changes in
  13641. DownloadEngine.
  13642. (setReadCheckSocket): Updated according to the changes in
  13643. DownloadEngine.
  13644. (disableWriteCheckSocket): Updated according to the changes in
  13645. DownloadEngine.
  13646. (setWriteCheckSocket): Updated according to the changes in
  13647. DownloadEngine.
  13648. (setNameResolverCheck): Updated according to the changes in
  13649. DownloadEngine.
  13650. (disableNameResolverCheck): Updated according to the changes in
  13651. DownloadEngine.
  13652. * src/AbstractCommand.cc
  13653. (disableReadCheckSocket): Updated according to the changes in
  13654. DownloadEngine.
  13655. (setReadCheckSocket): Updated according to the changes in
  13656. DownloadEngine.
  13657. (disableWriteCheckSocket): Updated according to the changes in
  13658. DownloadEngine.
  13659. (setWriteCheckSocket): Updated according to the changes in
  13660. DownloadEngine.
  13661. * release 0.7.1
  13662. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13663. To handle the case where some BitTorrent tracker requires all letters
  13664. except for [A-Za-z0-9] is URL encoded.
  13665. * src/Util.h
  13666. (torrentUrlencode): New function.
  13667. * src/Util.cc
  13668. (ctype.h): Included.
  13669. (torrentUrlencode): New function.
  13670. * src/TrackerWatcherCommand.cc
  13671. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  13672. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13673. To add asynchronous DNS support(libares):
  13674. * src/AbstractCommand.h
  13675. (setNameResolverCheck): New function.
  13676. (disableNameResolverCheck): New function
  13677. (resolveHostname): New function.
  13678. * src/AbstractCommand.cc
  13679. (setNameResolverCheck): New function.
  13680. (disableNameResolverCheck): New function
  13681. (resolveHostname): New function.
  13682. * src/FtpInitiateConnectionCommand.h
  13683. (nameResolver): New function.
  13684. * src/FtpInitiateConnectionCommand.cc
  13685. (Util.h): Included.
  13686. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  13687. disableWriteCheckSocket.
  13688. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  13689. (executeInternal): Added async DNS support.
  13690. * src/HttpInitiateConnectionCommand.h
  13691. (nameResolver): New function.
  13692. * src/HttpInitiateConnectionCommand.cc
  13693. (DlRetryEx.h): Included.
  13694. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  13695. disableWriteCheckSocket.
  13696. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  13697. (executeInternal): Added async DNS support.
  13698. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  13699. by extern "C" declaration.
  13700. * src/NameResolver.cc: New class.
  13701. * src/Util.h:
  13702. (isNumberAndDotsNotation): New function
  13703. * src/Util.cc
  13704. (isNumberAndDotsNotation): New function.
  13705. * src/DownloadEngine.h
  13706. (NameResolver.h): Included.
  13707. (NameResolverEntry): New class.
  13708. (NameResolverEntries): New type definition.
  13709. (addNameResolverCheck): New function.
  13710. (deleteNameResolverCheck): New function.
  13711. * src/DownloadEngine.cc
  13712. (run): Initialize cp with 0.
  13713. (SetDescriptor::operator()): Added for NameResolverEntry.
  13714. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  13715. (waitData): Check nameResolver entries.
  13716. (updateFdSet): Update fds in nameResolver entries.
  13717. (addNameResolverCheck): New function.
  13718. (deleteNameResolverCheck): new function.
  13719. * src/PeerInteractionCommand.cc
  13720. (executeInternal): Fixed wrong socket handling.
  13721. * src/main.cc
  13722. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  13723. * src/Util.cc
  13724. (fileChecksum): Removed the call to ctx.digestReset().
  13725. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13726. * po/ru.po: Azamat sent me Russian translation.
  13727. * src/FtpNegotiateCommand.cc
  13728. (recvGreeting): Call disableWriteCheckSocket just after
  13729. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  13730. (recvRetr): Recognized status code 125 as a acceptable response code.
  13731. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  13732. case-insesitive filesystem(BUG#1531057).
  13733. * src/Time.h: Renamed as TimeA2.h.
  13734. * src/Time.cc: Renamed as TimeA2.cc.
  13735. * src/TimeA2.h: New class.
  13736. * src/TimeA2.cc: New class.
  13737. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  13738. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  13739. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  13740. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  13741. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  13742. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13743. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  13744. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  13745. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  13746. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13747. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  13748. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  13749. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  13750. * release 0.7.0
  13751. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13752. * src/PeerChokeCommand.h
  13753. (PeerChokeCommand): Rearranged the arguments.
  13754. * src/PeerChokeCommand.cc
  13755. (PeerChokeCommand): Rearranged the arguments.
  13756. * src/MetalinkEntry.h
  13757. (Checksum.h): Included.
  13758. (md5): Removed.
  13759. (sha1): Removed.
  13760. (checksum): New variable.
  13761. (operator=): Updated.
  13762. (check): Removed.
  13763. * src/prefs.h
  13764. (PREF_LOWEST_SPEED_LIMIT): New definition.
  13765. (PREF_FOLLOW_TORRENT): New definition.
  13766. (PREF_SELECT_FILE): New definition.
  13767. (PREF_FOLLOW_METALINK): New definition.
  13768. * src/MetalinkResource.h
  13769. (TYPE_HTTPS): Added to enum TYPE.
  13770. * src/TorrentMan.cc
  13771. (~TorrentMan): Rewritten.
  13772. * src/MultiDiskWriter.cc
  13773. (MultiDiskAdaptor): Updated according to the changes in
  13774. MessageDigestContext.
  13775. (~MultiDiskAdaptor): Updated according to the changes in
  13776. MessageDigestContext.
  13777. (hashUpdate): Updated according to the changes in MessageDigestContext.
  13778. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13779. * src/Util.h
  13780. (fileChecksum): Updated according to the changes in
  13781. MessageDigestContext.
  13782. * src/Util.cc
  13783. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13784. (fileChecksum): Updated according to the changes in
  13785. MessageDigestContext.
  13786. * src/messageDigest.h: Rewritten.
  13787. * src/MetalinkEntry.cc
  13788. (check): Removed.
  13789. (Supported): Updated.
  13790. (dropUnsupportedResource): Fixed a memory leak.
  13791. * src/ShaVisitor.cc
  13792. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  13793. (~ShaVisitor): Updated according to the changes in
  13794. MessageDigestContext.
  13795. (visit): Updated according to the changes in MessageDigestContext.
  13796. * src/main.cc
  13797. (main): Rewritten the portion of download loop. --lowest-speed-limit
  13798. command-line option added.
  13799. * src/DownloadEngine.h
  13800. (SocketEntry): New class.
  13801. (SocketEntries): New definition.
  13802. (PairFind): Removed.
  13803. (SockCmdMap): Removed.
  13804. * src/DownloadEngine.cc
  13805. (DownloadEngine): Rewritten.
  13806. (~DownloadEngine): Rewritten.
  13807. (run): Renamed activeCommandUuids as activeUuids.
  13808. (SetDescriptor): Rewritten.
  13809. (AccumulateActiveCommandUuid): Removed.
  13810. (AccumulateActiveUuid): New function object.
  13811. (waitData): Rewritten.
  13812. (updateFdSet): Rewritten.
  13813. (addSocket): Rewritten.
  13814. (deleteSocket): Rewritten.
  13815. (addSocketForReadCheck): Rewritten.
  13816. (deleteSocketForReadCheck): Rewritten.
  13817. (addSocketForWriteCheck): Rewritten.
  13818. (deleteSocketForWriteCheck): Rewritten.
  13819. * src/Xml2MetalinkProcessor.cc
  13820. (getEntry): Rewritten the portion of MetalinkEntry creation.
  13821. * src/DownloadCommand.cc
  13822. (executeInternal): Added the check routine for lowest speed limit.
  13823. * src/AbstractDiskWriter.cc
  13824. (AbstractDiskWriter): Updated according to the changes in
  13825. MessageDigestContext.
  13826. (~AbstractDiskWriter): Updated according to the changes in
  13827. MessageDigestContext.
  13828. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13829. * src/RequestInfo.h: New class.
  13830. * src/UrlRequestInfo.h: New class.
  13831. * src/UrlRequestInfo.cc: New class.
  13832. * src/TorrentRequestInfo.h: New class.
  13833. * src/TorrentRequestInfo.cc: New class.
  13834. * src/MetalinkRequestInfo.h: New class.
  13835. * src/MetalinkRequestInfo.cc: New class.
  13836. * src/Checksum.h: New class.
  13837. * src/DownloadEngineFactory.h: New class.
  13838. * src/DownloadEngineFactory.cc: New class.
  13839. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13840. * src/Option.h
  13841. (getAsBool): New function.
  13842. * src/Option.cc
  13843. (prefs.h): Included.
  13844. (defined): 0-length value is now recognized as undefined.
  13845. (getAsInt): Rewritten.
  13846. (getAsLLInt): Rewritten.
  13847. (getAsBool): New function.
  13848. * src/FeatureConfig.h: Rewritten.
  13849. * src/FeatureConfig.cc: Rewritten.
  13850. * src/prefs.h
  13851. (PREF_STDOUT_LOG): New definition.
  13852. (PREF_LOG): New definition.
  13853. (PREF_DIR): New definition.
  13854. (PREF_OUT): New definition.
  13855. (PREF_SPLIT): New definition.
  13856. (PREF_DAEMON): New definition.
  13857. (PREF_REFERER): New definition.
  13858. (PREF_TORRENT_FILE): New definition.
  13859. (PREF_LISTEN_PORT): New definition.
  13860. (PREF_METALINK_FILE): New definition.
  13861. (PREF_METALINK_VERSION): New definition.
  13862. (PREF_METALINK_LANGUAGE): New definition.
  13863. (PREF_METALINK_OS): New definition.
  13864. (PREF_METALINK_SERVERS): New definition.
  13865. * src/main.cc
  13866. (main): Following command-line parameters are now put into Option
  13867. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  13868. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  13869. metalinkLanguage, metalinkOs, metalinkServers
  13870. To fix the bug that aria2 can not handle http response header properly.
  13871. * src/HttpHeader.cc
  13872. (put): Made name lowercased.
  13873. (defined): Made name lowercased.
  13874. (getFirst): Made name lowercased.
  13875. (get): Made name lowercased.
  13876. (getFirstAsInt): Rewritten.
  13877. (getFirstAsLLInt): Rewritten.
  13878. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13879. * src/TorrentMan.h:
  13880. (advertisePiece): Updated doc.
  13881. (getAdvertisedPieceIndexes): Updated doc.
  13882. (removeAdvertisedPiece); New function.
  13883. * src/TorrentMan.cc
  13884. (FindElapsedHave): New function object.
  13885. (removeAdvertisedPiece): New function.
  13886. * src/HaveEraseCommand.h: New class.
  13887. * src/HaveEraseCommand.cc: New class.
  13888. * src/FeatureConfig.h: New class.
  13889. * src/FeatureConfig.cc: New class.
  13890. * src/Request.h
  13891. (defaultPorts): Removed.
  13892. * src/Request.cc
  13893. (FeatureConfig.h): Included.
  13894. (Request): Removed the statements related to defaultPorts.
  13895. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  13896. A default port number is now retrieved from FeatureConfig.
  13897. * src/main.cc
  13898. (HaveEraseCommand.h): Included.
  13899. (showVersion): Added the output of feature list.
  13900. (main): Added HaveEraseCommand to command queue in BitTorrent
  13901. downloading.
  13902. * src/PeerInteractionCommand.h
  13903. (chokeCheckPoint): Commented out.
  13904. (periodicExecPoint): New variable.
  13905. * src/PeerInteractionCommand.cc
  13906. (executeInternal): Following methods are now called in at least every
  13907. 0.5 seconds to reduce CPU usage:
  13908. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  13909. checkHave(), sendKeepAlive().
  13910. (checkLongTimePeerChoking): Commented out.
  13911. * src/BitfieldMan.h
  13912. (getNthBitIndex): Changed the method signature.
  13913. (getMissingIndexRandomly): Changed the method signature.
  13914. * src/BitfieldMan.cc
  13915. (getNthBitIndex): Rewritten
  13916. (getMissingIndexRandomly): Rewritten.
  13917. (hasMissingPiece): Rewritten.
  13918. (getMissingIndex): Refactored.
  13919. (getMissingUnusedIndex); Refactored.
  13920. (getMissingIndex): Refactored.
  13921. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13922. * src/PeerMessage.h
  13923. (Piece.h): Included.
  13924. (SharedHandle.h): Included.
  13925. (invalidate): New variable.
  13926. (uploading): New variable.
  13927. (isInvalidate): New function.
  13928. (isUploading): New function.
  13929. (onPush): New function.
  13930. (onChoked): New function.
  13931. (onCanceled): New function.
  13932. (onAbortPiece): New function.
  13933. (PeerMessageHandle): New type definition.
  13934. * src/PeerMessage.cc
  13935. (PeerMessage): Added the initialization for invalidate and uploading.
  13936. * src/CancelMessage.h
  13937. (CancelMessage): Rewritten.
  13938. * src/RejectMessage.h
  13939. (RejectMessage): Rewritten.
  13940. * src/Metalinker.h
  13941. (operator=): Defined.
  13942. * src/MetaEntry.h
  13943. (operator=): Defined.
  13944. * src/MetalinkResource.h
  13945. (operator=): Defined.
  13946. * src/AllowedFastMessage.h
  13947. (AllowedFastMessage): Rewritten.
  13948. * src/HandshakeMessage.h
  13949. (HandshakeMessage): New function(overload).
  13950. * src/HandshakeMessage.cc
  13951. (HandshakeMessage): Rewritten.
  13952. (init): New function.
  13953. * src/HaveMessage.h
  13954. (HaveMessage): Rewritten.
  13955. * src/Time.h
  13956. (operator=): Defined the function body here.
  13957. * src/Time.cc
  13958. (operator=): Removed.
  13959. * src/SocketCore.h
  13960. (operator==): Defined here.
  13961. (operator!=): Defined here.
  13962. (operator<): Defined here.
  13963. * src/SocketCore.cc
  13964. (operator==): Removed.
  13965. (operator<): Removed.
  13966. * src/BitfieldMan.h
  13967. (operator=): Defined the function body here.
  13968. * src/BitfieldMan.cc
  13969. (operator=): Removed.
  13970. * src/TorrentMan.h
  13971. (deleteErrorPeer): Removed.
  13972. (deleteUnusedPeer); New function.
  13973. * src/TorrentMan.cc
  13974. (addPeer): Call deleteUnusedPeer.
  13975. (deleteErrorPeer): Removed.
  13976. (deleteUnusedPeer): New function.
  13977. * src/PeerAbstractCommand.h
  13978. (setNoCheck): New function.
  13979. (noCheck): New variable.
  13980. * src/PeerAbstractCommand.cc
  13981. (PeerAbstractCommand): Added the initialization of noCheck.
  13982. (execute): Added a check for noCheck.
  13983. (setNoCheck): New function.
  13984. * src/Util.h
  13985. (stdio.h): Included.
  13986. * src/Util.cc
  13987. (unistd.h): Included.
  13988. * src/DefaultDiskWriter.cc
  13989. (unistd.h): Included.
  13990. * src/Peer.h
  13991. (operator==): Defined the function body here.
  13992. (operator!=): Defined the function body here.
  13993. * src/Peer.cc
  13994. (operator==): Removed.
  13995. (operator!=): Removed.
  13996. * src/Piece.h
  13997. (Piece): Defined the function body here(copy constructor).
  13998. (operator=): Defined the function body here.
  13999. (operator==): Defined the function body here.
  14000. * src/Piece.cc
  14001. (Piece): Removed(copy constructor).
  14002. (operator=): Removed.
  14003. (operator==): Removed.
  14004. * src/PeerMessageUtil.h
  14005. (ChokeMessage.h): Removed.
  14006. (UnchokeMessage.h): Removed.
  14007. (InterestedMessage.h): Removed.
  14008. (NotInterestedMessage.h): Removed.
  14009. (HaveMessage.h): Removed.
  14010. (BitfieldMessage.h): Removed.
  14011. (RequestMessage.h): Removed.
  14012. (CancelMessage.h): Removed.
  14013. (PieceMessage.h): Removed.
  14014. (HandshakeMessage.h): Removed.
  14015. (KeepAliveMessage.h): Removed.
  14016. (PortMessage.h): Removed.
  14017. (HaveAllMessage.h): Removed.
  14018. (HaveNoneMessage.h): Removed.
  14019. (PeerConnection.h): Removed.
  14020. (HandshakeMessage.h): Included.
  14021. * src/BitfieldMessage.h
  14022. (init): New function.
  14023. (BitfieldMessage): Rewritten.
  14024. (BitfieldMessage): New function(overload).
  14025. * src/RequestSlot.h
  14026. (operator=): Defined the function body here.
  14027. (operator==): Defined the function body here.
  14028. * src/RequestSlot.cc
  14029. (operator=): Removed.
  14030. (operator==): Removed.
  14031. To remove the dependency on the PeerMessage subclass from
  14032. PeerInteraction:
  14033. * src/PeerMessageFactory.h: New class.
  14034. * src/PeerMessageFactory.cc: New class.
  14035. * src/SimplePeerMessage.cc
  14036. (send): If invalidate is true then do nothing.
  14037. * src/PeerInteractionCommand.cc
  14038. (HandshakeMessage.h): Included.
  14039. (KeepAliveMessage.h): Included.
  14040. (ChokeMessage.h): Included.
  14041. (UnchokeMessage.h): Included.
  14042. (HaveMessage.h): Included.
  14043. (executeInternal): Call setNoCheck().
  14044. Removed setWriteCheckSocket(socket).
  14045. * src/PeerInteraction.h
  14046. (ChokeMessage.h): Removed.
  14047. (UnchokeMessage.h): Removed.
  14048. (InterestedMessage.h): Removed.
  14049. (NotInterestedMessage.h): Removed.
  14050. (HaveMessage.h): Removed.
  14051. (BitfieldMessage.h): Removed.
  14052. (RequestMessage.h): Removed.
  14053. (CancelMessage.h): Removed.
  14054. (PieceMessage.h): Removed.
  14055. (HandshakeMessage.h): Removed.
  14056. (KeepAliveMessage.h): Removed.
  14057. (PortMessage.h): Removed.
  14058. (HaveAllMessage.h): Removed.
  14059. (HaveNoneMessage.h): Removed.
  14060. (RejectMessage.h): Removed.
  14061. (AllowedFastMessage.h): Removed.
  14062. (SuggestPieceMessage.h): Removed.
  14063. (PeerMessageFactory.h): Included.
  14064. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  14065. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  14066. (PeerMessageFactory): New variable.
  14067. (createPeerMessage): Removed.
  14068. (createHandshakeMessage): Removed.
  14069. (setPeerMessageCommonProperty): Removed.
  14070. (addRequestSlot): New function.
  14071. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14072. (getPeerMessageFactory): New function.
  14073. (createRequestMessage): Removed.
  14074. (createCancelMessage): Removed.
  14075. (createPieceMessage): Removed.
  14076. (createHaveMessage): Removed.
  14077. (createChokeMessage): Removed.
  14078. (createUnchokeMessage): Removed.
  14079. (createInterestedMessage): Removed.
  14080. (createNotInterestedMessage): Removed.
  14081. (createBitfieldMessage): Removed.
  14082. (createKeepAliveMessage): Removed.
  14083. (createHaveAllMessage): Removed.
  14084. (createHaveNoneMessage): Removed.
  14085. (createRejectMessage): Removed.
  14086. (createAllowedFastMessage): Removed.
  14087. * src/PeerInteraction.cc
  14088. (PeerInteraction): Allocate PeerMessageFactory here.
  14089. (~PeerInteraction): Deallocate PeerMessageFactory here.
  14090. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  14091. PieceMessage::ID.
  14092. (addMessage): Simplified by using PeerMessage::onPush().
  14093. (addRequestSlot): New function.
  14094. (rejectAllPieceMessageInQueue): Simplified by using
  14095. PeerMessage::onChoked().
  14096. (rejectPieceMessageInQueue): Simplified by using
  14097. PeerMessage::onCanceled().
  14098. (abortPiece): Simplified by using PeerMessage::abortPiece().
  14099. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14100. (createHandshakeMessage): Removed.
  14101. (createPeerMessage): Removed.
  14102. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  14103. (setPeerMessageCommonProperty): Removed.
  14104. (createRequestMessage): Removed.
  14105. (createCancelMessage): Removed.
  14106. (createPieceMessage): Removed.
  14107. (createHaveMessage): Removed.
  14108. (createChokeMessage): Removed.
  14109. (createUnchokeMessage): Removed.
  14110. (createInterestedMessage): Removed.
  14111. (createNotInterestedMessage): Removed.
  14112. (createBitfieldMessage): Removed.
  14113. (createKeepAliveMessage): Removed.
  14114. (createHaveAllMessage): Removed.
  14115. (createHaveNoneMessage): Removed.
  14116. (createRejectMessage): Removed.
  14117. (createAllowedFastMessage): Removed.
  14118. * src/PieceMessage.h
  14119. (createRejectMessage): New function.
  14120. (PieceMessage): Rewritten.
  14121. (onChoked): New function.
  14122. (onCanceled): New function.
  14123. * src/PieceMessage.cc
  14124. (send): If invalidate is true then do nothing, just return.
  14125. (createRejectMessage): New function.
  14126. (onChoked): New function.
  14127. (onCanceled): New function.
  14128. * src/RequestMessage.h
  14129. (RequestMessage): Rewritten.
  14130. (onPush): New function.
  14131. (onAbortPiece): New function.
  14132. * src/RequestMessage.cc
  14133. (onPush): New function.
  14134. (onAbortPiece): New function.
  14135. Update fd_set when a socket is added or deleted in order to improve
  14136. performance:
  14137. * src/DownloadEngine.h
  14138. (rfdset): New variable.
  14139. (wfdset): New variable.
  14140. (updateFdSet): New function.
  14141. * src/DownloadEngine.cc
  14142. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  14143. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  14144. (waitData): Copy rfdset and wfdset.
  14145. (updateFdSet): New function.
  14146. (addSocket): Call updateFdSet.
  14147. (deleteSocket): Call updateFdSet.
  14148. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14149. To add the support for Metalink3.0 backward compatible links:
  14150. * src/Request.h
  14151. (SAFE_CHARS): Added '#'.
  14152. (METALINK_MARK): New definition.
  14153. * src/Request.cc
  14154. (parseUrl): Added the support for Metalink3.0 backward compatible
  14155. links.
  14156. etc
  14157. * src/PeerInteraction.cc
  14158. (MsgPushBack): Removed.
  14159. (sendMessages): Use STL copy and back_inserter.
  14160. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  14161. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  14162. * src/TorrentMan.h
  14163. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  14164. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14165. * src/SharedHandle.h: New class.
  14166. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  14167. * src/HttpResponseCommand.h
  14168. (HttpResponseCommand): Wrapped Socket.
  14169. * src/SocketCore.h
  14170. (operator==): New function.
  14171. (operator!=): New function.
  14172. (operator<): New function.
  14173. (getSockfd): New function.
  14174. (isOpen): New function.
  14175. (writeData): New function.
  14176. * src/SocketCore.cc
  14177. (operator==): New function.
  14178. (operator!=): New function.
  14179. (operator<): New function.
  14180. * src/AbstractCommand.h
  14181. (socket): Changed its type to SocketHandle.
  14182. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14183. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14184. (disableReadCheckSocket): New function.
  14185. (disableWriteCheckSocket): New function.
  14186. (readCheckTarget): Changed its type to SocketHandle.
  14187. (writeCheckTarget): Changed its type to SocketHandle.
  14188. (AbstractCommand): Replaced Socket with SocketHandle.
  14189. * src/AbstractCommand.cc
  14190. (AbstractCommand): Replaced Socket with SocketHandle.
  14191. (~AbstractCommand): Removed the deallocation for Socket object.
  14192. (disableReadCheckSocket): New function.
  14193. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14194. (disableWriteCheckSocket): New function.
  14195. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14196. * src/HttpDownloadCommand.cc
  14197. (DownloadCommand): Replaced Socket with SocketHandle.
  14198. * src/PeerAbstractCommand.h
  14199. (socket): Changed its type to SocketHandle.
  14200. (peer): Changed its type to PeerHandle.
  14201. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14202. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14203. (disableReadCheckSocket): New function.
  14204. (disableWriteCheckSocket): New function.
  14205. (readCheckTarget): Changed its type to SocketHandle.
  14206. (writeCheckTarget): Changed its type to SocketHandle.
  14207. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14208. Replaced Peer with PeerHandle.
  14209. * src/HttpRequestCommand.cc
  14210. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14211. Use disableReadCheckSocket.
  14212. * src/PeerInitiateConnectionCommand.h
  14213. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14214. * src/PeerChokeCommand.cc
  14215. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  14216. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  14217. (execute): Use PeerHandle.
  14218. * src/PeerConnection.h
  14219. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  14220. (socket): Changed its type to SocketHandle.
  14221. (PeerConnection): Replaced Socket with SocketHandle.
  14222. * src/PeerConnection.cc
  14223. (PeerConnection): Replaced Socket with SocketHandle.
  14224. * src/PeerInteractionCommand.h
  14225. (PeerInteractionCommand): Replaced socket with SocketHandle.
  14226. Replaced Peer with PeerHandle.
  14227. * src/PeerInteractionCommand.cc
  14228. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  14229. Replaced Peer with PeerHandle.
  14230. (executeInternal): Use disableWriteCheckSocket.
  14231. Use HandshakeMessageHandle.
  14232. (receiveMessages): Use PeerMessageHandle.
  14233. (prepareForNextPeer): Use PeerHandle.
  14234. * src/HttpProxyRequestCommand.h
  14235. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14236. * src/HttpResponseCommand.cc
  14237. (HttpResponseCommand): Replaced Socket with SocketHandle.
  14238. * src/TorrentMan.cc
  14239. (nullPeer): Added external reference.
  14240. (~TorrentMan): Removed the deallocation of the elements of peers.
  14241. (addPeer): Rewritten.
  14242. (isPeerAvailable): Use nullPeer.
  14243. (deleteOldpeers): Replaced with deleteErrorPeer.
  14244. (deleteErrorPeer): New function.
  14245. (getPeer): Use PeerHandle and nullPeer.
  14246. (hasMissingPiece): Replaced Peer with PeerHandle.
  14247. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14248. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14249. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14250. (getMissingPiece): Replaced Peer with PeerHandle.
  14251. * src/FtpNegotiateCommand.cc
  14252. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  14253. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  14254. (recvGreeting): Use disableWriteCheckSocket.
  14255. (recvPasv): Removed the allocation of Socket.
  14256. Use disableReadCheckSocket.
  14257. (sendRestPasv): Use disableWriteCheckSocket.
  14258. (recvRetr): Changed assertion.
  14259. * src/PeerInteraction.h
  14260. (SharedHandle.h): Included SharedHandle.h.
  14261. (PeerMessageHandle): New type definition.
  14262. (HandshakeMessageHandle): New type definition.
  14263. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  14264. (peer): Changed its type to PeerHandle.
  14265. (createHandshakeMessage): Replaced HandshakeMessage with
  14266. HandshakeMessageHandle.
  14267. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  14268. (PeerInteraction): Replaced Peer with PeerHandle.
  14269. Replaced Socket with SocketHandle.
  14270. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14271. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14272. (receiveHandshake): Replaced HandshakeMessage with
  14273. HandshakeMessageHandle.
  14274. * src/PeerInteraction.cc
  14275. (PeerInteraction): Replaced Peer with PeerHandle.
  14276. Replaced Socket with SocketHandle.
  14277. (~PeerInteraction): Removed the deallocation of the elements of
  14278. messageQueue.
  14279. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  14280. (isSendingMessageInProgress): Replaced PeerMessage with
  14281. PeerMessageHandle.
  14282. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  14283. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14284. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  14285. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  14286. (abortPiece): Use PeerMessageHandle.
  14287. (receiveHandshake): Replaced HandshakeMessage with
  14288. HandshakeMessageHandle. Removed try-catch block.
  14289. (createHandshakeMessage): Replaced HandshakeMessage with
  14290. HandshakeMessageHandle.
  14291. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14292. Removed try-catch block.
  14293. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  14294. * src/HttpProxyResponseCommand.cc
  14295. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14296. * src/FtpTunnelResponseCommand.h
  14297. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14298. * src/HttpConnection.cc
  14299. (HttpConnection): Replaced Socket with SocketHandle.
  14300. * src/PeerAbstractCommand.cc
  14301. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14302. (~PeerAbstractCommand): Removed the deallocation of socket.
  14303. Use disableReadCheckSocket, disableWriteCheckSocket.
  14304. (disableReadCheckSocket): New function.
  14305. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14306. (disableWriteCheckSocket): New function.
  14307. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14308. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  14309. * src/FtpTunnelRequestCommand.cc
  14310. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14311. (~FtpTunnelRequestCommand): Corrected indentation.
  14312. * src/DownloadCommand.h
  14313. (DownloadCommand): Replaced Socket with SocketHandle.
  14314. * src/PeerListenCommand.cc
  14315. (PeerListenCommand): Removed the initialization of socket.
  14316. (~PeerListenCommand): Removed the deallocation of socket.
  14317. (bindPort): Use SocketHandle.
  14318. (execute): Use SocketHandle and PeerHandle.
  14319. * src/FtpDowndloadCommand.cc
  14320. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14321. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  14322. * src/main.cc
  14323. (main): Corrected indentation.
  14324. * src/HttpInitiateConnectionCommand.cc
  14325. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  14326. (executeInternal): Removed the allocation of socket.
  14327. * src/HttpRequestCommand.h
  14328. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14329. * src/FtpNegotiationCommand.h
  14330. (dataSocket): Changed its type to SocketHandle.
  14331. (serverSocket): Changed its type to SocketHandle.
  14332. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  14333. * src/TorrentMan.h
  14334. (MAX_PEER_UPDATE): Removed.
  14335. (MAX_PEERS): New definition.
  14336. (Peers): The element is now of type PeerHandle.
  14337. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  14338. (getPeer): Replaced Peer with PeerHandle.
  14339. (deleteOldErrorPeers): Removed.
  14340. (deleteErrorPeer): New function.
  14341. (hasMissingPiece): Replaced Peer with PeerHandle.
  14342. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14343. (getMissingPiece): Replaced Peer with PeerHandle.
  14344. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14345. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14346. (addActivePeer): Replaced Peer with PeerHandle.
  14347. (deleteActivePeer): Replaced Peer with PeerHandle.
  14348. Added a check for the return value of find.
  14349. * src/FtpTunnelResponseCommand.cc
  14350. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14351. * src/FtpInitiateConnectionCommand.cc
  14352. (executeInternal): Removed the allocation of socket.
  14353. * src/DownloadEngine.h
  14354. (Sockets): An element is now of type SocketHandle.
  14355. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  14356. (CommandUuids): New type definition.
  14357. (rsockets): Changed its type to SockCmdMap.
  14358. (wsockets): Changed its type to SockCmdMap.
  14359. (addSocket): Rewritten.
  14360. (deleteSocket): Rewritten.
  14361. (addSocketForReadCheck): Rewritten.
  14362. (deleteSocketForReadCheck): Rewritten.
  14363. (addSocketForWriteCheck): Rewritten.
  14364. (deleteSocketForWriteCheck): Rewritten.
  14365. (PairFind): New template class.
  14366. * src/HttpDownloadCommand.h
  14367. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  14368. * src/FtpConnection.cc
  14369. (FtpConnection): Replaced Socket with SocketHandle.
  14370. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  14371. block.
  14372. * src/InitiateConnectionCommandFactory.cc
  14373. (DlAbortEx.h): Included DlAbortEx.h.
  14374. (createInitiateConnectionCommand): Throw exception if the protocol of
  14375. requested URI is not supported.
  14376. * src/Peer.cc
  14377. (nullPeer): Changed its type to PeerHandle.
  14378. (operator==): New function.
  14379. (operator!=): New function.
  14380. * src/Peer.h
  14381. (SharedHandle.h): Included SharedHandle.h.
  14382. (operator==): New function.
  14383. (operator!=): New function.
  14384. (Peer): Added the default constructor.
  14385. Use resetStatus() to initialize member variables.
  14386. (nullPeer): Removed.
  14387. * src/TrackerUpdateCommand.cc
  14388. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  14389. with MIN_PEERS.
  14390. * src/PeerListenCommand.h
  14391. (socket): Changed its type to SocketHandle.
  14392. * src/Command.h
  14393. (CommandUuid): New type definition.
  14394. (uuid): New variable.
  14395. (uuidGen): New variable.
  14396. (Command): Added the initialization of uuid.
  14397. (getUuid): New function.
  14398. * src/Socket.h
  14399. (Socket): Removed.
  14400. (SocketHandle): New type definition.
  14401. * src/DownloadEngine.h
  14402. (FindCommand): New function object.
  14403. (run): The portion of socket check was rewritten.
  14404. (SetDescriptor): New function object.
  14405. (AccumulateActiveCommandUuid): New function object.
  14406. (waitData): Rewritten.
  14407. (addSocket): Rewritten.
  14408. (deleteSocket): Rewritten.
  14409. (addSocketForReadCheck): Rewritten.
  14410. (addSocketForWriteCheck): Rewritten.
  14411. (deleteSocketForReadCheck): Rewritten.
  14412. (deleteSocketForWriteCheck): Rewritten.
  14413. * src/HttpProxyResponseCommand.h
  14414. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  14415. * src/HttpConnection.h
  14416. (socket): Changed its type to SocketHandle.
  14417. (HttpConnection): Replaced Socket with SocketHandle.
  14418. * src/PeerInitiateConnectionCommand.cc
  14419. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14420. (executeInternal): Removed the allocation of socket.
  14421. (prepareForNextPeer): Use PeerHandle.
  14422. * src/PeerMessage.h
  14423. (peer): Changed its type to PeerHandle.
  14424. (getPeer): Replaced Peer with PeerHandle.
  14425. (setPeer): Replaced Peer with PeerHandle.
  14426. * src/DownloadCommand.cc
  14427. (DownloadCommand): Replaced Socket with SocketHandle.
  14428. * src/FtpConnection.h
  14429. (socket): Changed its type to SocketHandle.
  14430. (FtpConnection): Replaced Socket with SocketHandle.
  14431. (sendPort); Replaced Socket with SocketHandle.
  14432. * src/FtpDowndloadCommand.h
  14433. (ctrlSocket): Changed its type to SocketHandle.
  14434. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14435. * src/HttpProxyRequestCommand.cc
  14436. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14437. * src/FtpTunnelRequestCommand.h
  14438. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14439. etc
  14440. * src/PeerChokeCommand.h
  14441. (setAllPeerChoked): Removed.
  14442. (setAllPeerResetDelta): Removed.
  14443. * src/PeerChokeCommand.cc
  14444. (setAllPeerChoked): Removed.
  14445. (ChokePeer): New function object.
  14446. (setAllPeerResetDelta): Removed.
  14447. (ResetDelta): New function object.
  14448. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  14449. (execute): Show download speed when the local node is a seeder.
  14450. setAllPeerChoked and setAllPeerResetDelta were rewritten
  14451. using STL.
  14452. * src/TrackerWatcherCommand.h
  14453. (MIN_PEERS): Removed.
  14454. * src/TorrentMan.cc
  14455. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  14456. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14457. To fix the bug that .aria2 file is not saved if downloading is stopped
  14458. by the errors:it results that aria2 can not resume downloading:
  14459. * src/main.cc
  14460. (normalDownload): Added the call to save().
  14461. (main): Added the deletion of the elements in 'reserved'.
  14462. To fix log:
  14463. * src/PeerInteraction.cc
  14464. (receiveHandshake): Fixed log.
  14465. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14466. To improve download performance in BitTorrent:
  14467. * src/TorrentMan.cc
  14468. (getPeer): Check the number of connections. Return nullPeer if
  14469. it is greater than MAX_PEER_UPDATE.
  14470. This code was originally here, but was removed in 0.5.1.
  14471. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14472. To improve the conditional compilation:
  14473. * src/MultiDiskWriter.h:
  14474. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14475. * src/MultiDiskWriter.cc:
  14476. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14477. * src/Util.h:
  14478. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14479. Added ENABLE_BITTORRENT around computeFastSet().
  14480. * src/Util.cc:
  14481. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14482. Added ENABLE_BITTORRENT around computeFastSet().
  14483. * src/messageDigest.h:
  14484. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  14485. * src/ShaVisitor.h:
  14486. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14487. * src/ShaVisitor.cc:
  14488. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14489. * src/main.cc:
  14490. Added ENABLE_BITTORRENT around includes and blocks related to
  14491. BitTorrent.
  14492. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  14493. digest support is not available.
  14494. * src/AbstractDiskWriter.h:
  14495. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14496. * src/AbstractDiskWriter.cc:
  14497. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14498. * src/MetalinkEntry.cc
  14499. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  14500. support is not available.
  14501. To add command-line options for Metalink:
  14502. * src/main.cc:
  14503. Added metalink-version, metalink-language, metalink-os,
  14504. follow-metalink.
  14505. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  14506. * src/main.cc: Use these definition.
  14507. * Release 0.6.0
  14508. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14509. To add Metalink support(http/ftp only):
  14510. * src/AbstractCommand.h
  14511. (tryReserved): New function.
  14512. * src/AbstractCommand.cc
  14513. (execute): Call tryReserved().
  14514. (tryReserved): New function.
  14515. * src/Request.h
  14516. (Requests): New type definition.
  14517. * src/SegmentMan.h
  14518. (reserved): New variable.
  14519. * src/Util.h
  14520. (fileChecksum): New function.
  14521. (toUpper): New function.
  14522. (toLower): New function.
  14523. * src/Util.cc
  14524. (messageDigest.h): Included.
  14525. (trim): Trim \r\n\t.
  14526. (fileChecksum): New function.
  14527. (toUpper): New function.
  14528. (toLower): New function.
  14529. * src/main.cc
  14530. (normalDownload): New function.
  14531. (main): Added 2 command-line options: metalink-file,
  14532. metalink-connection. Their usage has not been written yet.
  14533. * src/MetalinkProcessor.h: New class.
  14534. * src/Xml2MetalinkProcessor.h: New class.
  14535. * src/Xml2MetalinkProcessor.cc: New class.
  14536. * src/MetalinkEntry.h: New class.
  14537. * src/MetalinkEntry.cc: New class.
  14538. * src/MetalinkResource.h: New class.
  14539. * src/MetalinkResource.cc: New class.
  14540. To add md5 message digest checking:
  14541. * src/messageDigest.h: Rewritten.
  14542. * src/MultiDiskWriter.cc: Updated according to the changes in
  14543. messageDigest.h.
  14544. * src/ShaVisitor.cc: Updated according to the changes in
  14545. messageDigest.h.
  14546. * src/Util.cc: Updated according to the changes in messageDigest.h.
  14547. * src/AbstractDiskWriter.cc: Updated according to the changes in
  14548. messageDigest.h.
  14549. To fix a bug that causes segfault when the payload length in peer
  14550. message is less than 0:
  14551. * src/PeerConnection.cc:
  14552. (receiveMessage): Fixed the bug.
  14553. * src/PeerMessageUtil.cc
  14554. (checkLength): Throw an exception if length is less than or equals to
  14555. 0.
  14556. To add new interfaces to Base64 encoding/decoding:
  14557. * src/Base64.h
  14558. (part_encode): Changed the method signature.
  14559. (encode): New function(overload).
  14560. (decode): New function(overload).
  14561. * src/Base64.cc
  14562. (part_encode): Rewritten.
  14563. (encode): Rewritten.
  14564. (encode): New function(overload).
  14565. To prevent a peer to download same piece if there is an error in
  14566. checksum:
  14567. * src/PieceMessage.cc
  14568. (receivedAction): Call peerInteraction->abortPiece().
  14569. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14570. To fix the bug that causes same have message is sent many times to
  14571. a single peer.
  14572. * src/Time.cc
  14573. (isNewer): Use Util::difftv().
  14574. * src/Util.cc
  14575. (difftv): Added a cast to (long long int).
  14576. * src/TorrentMan.cc
  14577. (advertisePiece): Use push_front.
  14578. (getAdvertisedPieceIndexes): A performance improvement was made.
  14579. To fix the bug that sends tracker requests without a sleep interval
  14580. when the number of connections is less than 15.
  14581. * src/TrackerWatcherCommand.cc
  14582. (execute): Now the number of connections is not a factor to decide
  14583. whether or not a tracker request should be sent or not.
  14584. * src/Time.h
  14585. (setTimeInSec): New function.
  14586. * src/Time.cc
  14587. (setTimeInSec): New function.
  14588. etc.
  14589. * src/ChokeMessage.cc
  14590. (receivedAction): Removed peer->snubbing = false
  14591. * src/PeerConnection.h
  14592. (receiveHandshake): Updated doc.
  14593. * src/TorrentMan.h
  14594. (getAdvertisedPieceIndexes): Updated the method signature.
  14595. * src/TorrentMan.cc
  14596. (getAdvertisedPieceIndexes): Updated the method signature.
  14597. * src/Time.h
  14598. (getTimeInMicros): Added a cast to (long long int).
  14599. (getTimeInMillis): Added a cast to (long long int).
  14600. * Release 0.5.2
  14601. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14602. To make a listening socket non-block:
  14603. * src/SocketCore.h
  14604. (setNonBlockingMode): New function.
  14605. * src/SocketCore.cc
  14606. (setNonBlockingMode): New function.
  14607. (beginListen): Added a call to setNonBlockingMode().
  14608. (acceptConnection): Call setNonBlockingMode().
  14609. (setBlockingMode): Updated.
  14610. To handle tracker's NAT-checking:
  14611. * src/PeerConnection.cc
  14612. (receiveHandshake): 'msg' param is filled with received data and
  14613. its length is assigned to 'length' param, even if all handshake
  14614. message is not yet received.
  14615. * src/PeerInteractionCommand.cc
  14616. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  14617. a new peer connects to localhost.
  14618. A call to peerInteraction->sendHandshake() was removed because
  14619. it is called from peerInteraction->receiveHandshake(true).
  14620. * src/PeerInteraction.h
  14621. (quickReplied): New variable.
  14622. (receiveHandshake): Added an argument.
  14623. * src/PeerInteraction.cc
  14624. (PeerInteraction): Added the initialization of quickReplied.
  14625. (receiveHandshake): Send handshake message as soon as the info hash
  14626. in a handshake message from a peer is correct.
  14627. To change the random part of peer id and key parameter:
  14628. * src/TorrentMan.h
  14629. (key): New variable.
  14630. * src/TorrentMan.cc
  14631. (setupInternal1): Use Util::randomAlpha() to generate random part
  14632. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  14633. key is also generated by Util::randomAlpha() and it is now 8 character
  14634. long.
  14635. * src/Util.h
  14636. (randomAlpha): New function.
  14637. * src/Util.cc
  14638. (randomAlpha): New function.
  14639. * src/TrackerWatcherCommand.cc
  14640. (execute): In a tracker request: Use torrentMan->key as key parameter.
  14641. Added no_peer_id=1.
  14642. Set snubbing flag to false when a choke message is received from a
  14643. snubbed peer.
  14644. * src/ChokeMessage.cc
  14645. (receivedAction): Set snubbing flag to false.
  14646. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14647. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  14648. * src/SimpleLogger.h (writeHeader): New function.
  14649. * src/SimpleLogger.cc (writeHeader): New function.
  14650. (writeLog): Fixed the bug that causes segfaults if exception message
  14651. contains an unescaped "%" character.
  14652. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  14653. when a tracker request fails.
  14654. * src/Request.cc (parseUrl): Query string is now handled properly.
  14655. * Release 0.5.1
  14656. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14657. To add Time class which represents a specific instant in time and
  14658. its precision is microseconds. Time checking procedures were rewritten
  14659. using this object.
  14660. * src/Time.h: New class.
  14661. * src/Time.cc: New class.
  14662. * src/AbstractCommand.h
  14663. (updateCheckPoint): Removed.
  14664. (isTimeoutDetected): Removed.
  14665. (checkPoint): Changed the type to Time.
  14666. (timeout): New variable.
  14667. (setTimeout): New function.
  14668. * src/AbstractCommand.cc
  14669. (AbstractCommand): Removed the initialization of checkPoint.
  14670. Added the initialization of timeout.
  14671. (updateCheckPoint): Removed.
  14672. (isTimeoutDetected): Removed.
  14673. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14674. * src/PeerChokeCommand.h
  14675. (checkPoint): Changed the type to Time.
  14676. * src/PeerChokeCommand.cc
  14677. (PeerChokeCommand): Removed the initialization of checkPoint.
  14678. (execute): Rewritten using Time object.
  14679. * src/TrackerWatcherCommand.h
  14680. (checkPoint): Changed the type to Time.
  14681. * src/TrackerWatcherCommand.cc
  14682. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  14683. (execute): Rewritten.
  14684. * src/ConsoleDownloadEngine.h
  14685. (cp): Changed the type to Time.
  14686. (startup): Changed the type to Time.
  14687. * src/ConsoleDownloadEngine.cc
  14688. (initStatistics): Use cp.reset(), startup.reset().
  14689. (calculateStatistics): Rewritten using Time object.
  14690. * src/PeerAbstractCommand.h
  14691. (updateCheckPoint): Removed.
  14692. (isTimeoutDetected): Removed.
  14693. (checkPoint): Changed the type to Time.
  14694. * src/PeerAbstractCommand.cc
  14695. (PeerAbstractCommand): Removed the initialization of checkPoint.
  14696. (updateCheckPoint): Removed.
  14697. (isTimeoutDetected): Removed.
  14698. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14699. * src/PeerInteractionCommand.cc
  14700. (PeerInteractionCommand): Removed the initializations of struct
  14701. timeval variables.
  14702. * src/PeerInteractionCommand.h
  14703. (keepAliveCheckPoint): Changed the type to Time.
  14704. (chokeCheckPoint): Changed the type to Time.
  14705. (freqCheckPoint): Changed the type to Time.
  14706. (haveCheckTime): Changed the type to Time.
  14707. * src/PeerInteractionCommand.cc
  14708. (executeInternal): Rewritten using Time object.
  14709. (detectMessageFlooding): Rewritten using Time object.
  14710. (checkLongTimePeerChoking): Rewritten using Time object.
  14711. (sendKeepAlive): Rewritten using Time object.
  14712. (checkHave): Rewritten using Time object.
  14713. * src/SleepCommand.h
  14714. (checkPoint): Changed the type to Time.
  14715. * src/SleepCommand.cc
  14716. (SleepCommand): Removed the initialization of checkPoint.
  14717. (execute): Rewritten using Time object.
  14718. * src/TorrentAutoSaveCommand.h
  14719. (checkPoint): Changed the type to Time.
  14720. * src/TorrentAutoSaveCommand.cc
  14721. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  14722. (execute): Rewritten.
  14723. * src/DownloadCommand.h
  14724. (sw): Changed the type to Time.
  14725. * src/DownloadCommand.cc
  14726. (DownloadCommand): Removed the initialization of sw.
  14727. (executeInternal): Rewritten.
  14728. * src/RequestSlot.h
  14729. (dispatchedTime): Changed the type to Time.
  14730. * src/RequestSlot.cc
  14731. (RequestSlot): Removed the call to setDispatchedTime().
  14732. (setDispatchedTime): Rewirtten.
  14733. (isTimeout): Rewritten.
  14734. (getLatencyInMillis): Rewritten.
  14735. * src/TorrentDownloadEngine.h
  14736. (cp): Changed the type to Time[2].
  14737. (startup): Changed the type to Time.
  14738. * src/TorrentDownloadEngine.cc
  14739. (initStatistics): Rewritten.
  14740. (calculateStatistics): Rewritten.
  14741. * src/DownloadEngine.cc
  14742. (run): Rewritten.
  14743. To detect all attempts to connect to the tracker are failed:
  14744. * src/AbstractCommand.cc
  14745. (execute): Increment e->segmentMan->errors if a command aborted.
  14746. * src/SegmentMan.h
  14747. (errors): New variable.
  14748. * src/SegmentMan.cc
  14749. (SegmentMan): Added the initialization of errors.
  14750. (init): Added the initialization of errors.
  14751. * src/TrackerWatcherCommand.cc
  14752. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  14753. request was failed.
  14754. To handle snubbed peers:
  14755. * src/PeerChokeCommand.cc
  14756. (optUnchokingPeer): Snubbed peers don't get unchoked.
  14757. (execute): Snubbed peers don't get unchoked.
  14758. * src/PeerInteraction.h
  14759. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  14760. * src/PeerInteraction.cc
  14761. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  14762. back the requested 16k block in 60 seconds.
  14763. * src/PieceMessage.cc
  14764. (receivedAction): A peer's snubbed state is cleard if it sends
  14765. the requested 16k block in 60 seconds.
  14766. * src/Peer.h
  14767. (snubbing): New variable.
  14768. * src/Peer.cc
  14769. (resetStatus): Added snubbed = false.
  14770. To fix the bug that causes have message is not sent:
  14771. * src/PeerInteractionCommand.cc
  14772. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  14773. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  14774. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  14775. * src/TorrentMan.h
  14776. (HaveEntry): New class.
  14777. (advertisePiece): Rewritten.
  14778. (getAdvertisedPieceIndexes): Rewritten.
  14779. (Haves): Changed the type.
  14780. (getAdvertisedPieceIndexes): Added an argument.
  14781. Others:
  14782. * src/TorrentMan.h
  14783. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  14784. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  14785. * src/TorrentMan.cc
  14786. (getPeer): Don't check the number of connections here.
  14787. (setupInternal1): Changed peerId.
  14788. * src/PeerInteractionCommand.h
  14789. (KEEP_ALIVE_INTERVAL): New definition.
  14790. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  14791. * src/main.cc
  14792. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  14793. * src/DownloadEngine.h: Removed unnecessary header includes.
  14794. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14795. To fix the bug that causes segfaults if a tracker returns a zero-length
  14796. list as "peers":
  14797. * src/TrackerUpdateCommand.cc
  14798. (execute): Added a check to see wether the type of peers is Data*.
  14799. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14800. * Release 0.5.0
  14801. To fix compile issue with gcc3:
  14802. * src/CancelMessage.h
  14803. (ID): Renamed as ID_t
  14804. (ID_t): New enum.
  14805. * src/RejectMessage.h
  14806. (ID): Renamed as ID_t
  14807. (ID_t): New enum.
  14808. * src/SuggestPieceMessage.h
  14809. (ID): Renamed as ID_t
  14810. (ID_t): New enum.
  14811. * src/AllowedFastMessage.h
  14812. (ID): Renamed as ID_t
  14813. (ID_t): New enum.
  14814. * src/PortMessage.h
  14815. (ID): Renamed as ID_t
  14816. (ID_t): New enum.
  14817. * src/HaveNoneMessage.h
  14818. (ID): Renamed as ID_t
  14819. (ID_t): New enum.
  14820. * src/KeepAliveMessage.h
  14821. (ID): Renamed as ID_t
  14822. (ID_t): New enum.
  14823. * src/HaveAllMessage.h
  14824. (ID): Renamed as ID_t
  14825. (ID_t): New enum.
  14826. * src/UnchokeMessage.h
  14827. (ID): Renamed as ID_t
  14828. (ID_t): New enum.
  14829. * src/BitfieldMessage.h
  14830. (ID): Renamed as ID_t
  14831. (ID_t): New enum.
  14832. * src/PieceMessage.h
  14833. (ID): Renamed as ID_t
  14834. (ID_t): New enum.
  14835. * src/RequestMessage.h
  14836. (ID): Renamed as ID_t
  14837. (ID_t): New enum.
  14838. * src/NotInterestedMessage.h
  14839. (ID): Renamed as ID_t
  14840. (ID_t): New enum.
  14841. * src/ChokeMessage.h
  14842. (ID): Renamed as ID_t
  14843. (ID_t): New enum.
  14844. * src/InterestedMessage.h
  14845. (ID): Renamed as ID_t
  14846. (ID_t): New enum.
  14847. * src/HaveMessage.h
  14848. (ID): Renamed as ID_t
  14849. (ID_t): New enum.
  14850. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14851. * src/PeerAbstractCommand.h
  14852. (beforeSocketCheck): Removed.
  14853. * src/PeerAbstractCommand.cc
  14854. Modified in order to call executeInternal() even if socket check
  14855. and upload limit check fail.
  14856. * src/PeerInteractionCommand.h
  14857. (keepAlive): Removed.
  14858. (sendKeepAlive): New function.
  14859. (checkHave): New function.
  14860. (beforeSocketCheck): Removed.
  14861. * src/PeerInteractionCommand.cc
  14862. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  14863. calls to checkHave() and sendKeepAlive().
  14864. (keepAlive): Renamed to sendKeepAlive().
  14865. (sendKeepAlive): New function.
  14866. (beforeSocketCheck): Removed.
  14867. (checkHave): New function.
  14868. * src/BitfieldMan.cc
  14869. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  14870. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  14871. 0.
  14872. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  14873. * src/TorrentMan.h
  14874. (UsedPieces): Removed.
  14875. (Pieces): New type definition.
  14876. * src/Piece.h: Updated doc.
  14877. * src/Peer.h
  14878. (totalLength): Removed.
  14879. * src/Peer.cc
  14880. (updateLatency): Fixed the latency calculation.
  14881. * src/TorrentMan.cc
  14882. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  14883. than or equal to MAX_PEER_LIST_SIZE.
  14884. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  14885. then return false.
  14886. (deleteOldErrorPeers): Rewritten.
  14887. (deleteUsedPiece): Fixed the miss use of STL remove.
  14888. * src/PeerInteraction.h
  14889. (Pieces): Removed.
  14890. (deleteTimeoutRequestSlot): Removed.
  14891. (deleteCompletedRequestSlot): Removed.
  14892. (checkRequestSlot): New function.
  14893. * src/PeerInteraction.cc
  14894. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  14895. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  14896. (checkRequestSlot): New function.
  14897. * src/DownloadEngine.cc
  14898. (run): Clear activeSockets before calling waitData().
  14899. (waitData): Removed a call to activeSockets.clear().
  14900. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14901. To attempt to handle EINTR:
  14902. * src/SocketCore.cc
  14903. (isReadable): Added EINTR handling.
  14904. (isWritable): Added EINTR handling.
  14905. To improve the performance:
  14906. * src/AbstractCommand.cc
  14907. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14908. * src/PeerInteractionCommand.h
  14909. (receiveMessage): Renamed as receiveMessages().
  14910. (receiveMessages): New function.
  14911. * src/PeerInteractionCommand.cc
  14912. (executeInternal): receiveMessage loop is moved to new receiveMessages
  14913. () function. detectMessageFlooding() is moved here.
  14914. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  14915. (). The flooding detection for have message is comment out.
  14916. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  14917. Util::difftv().
  14918. (receiveMessage): Renamed as receiveMessages().
  14919. (receiveMessages): New function.
  14920. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  14921. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  14922. * src/SleepCommand.cc
  14923. (execute): Use Util::difftvsec() instead of Util::difftv().
  14924. * src/BitfieldMan.h
  14925. (getNthBitIndex): New function.
  14926. (hasMissingPiece): New function.
  14927. (getAllMissingIndexes): New function.
  14928. * src/BitfieldMan.cc
  14929. (countSetBit): Rewritten.
  14930. (getNthBitIndex): New function.
  14931. (getMissingIndexRandomly): Rewritten.
  14932. (hasMissingPiece): New function.
  14933. (getAllMissingIndexes): New function.
  14934. * src/TorrentMan.cc
  14935. (hasMissingPiece): New function.
  14936. (deleteUsedPiece): Rewritten using STL.
  14937. * src/PeerInteraction.cc
  14938. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  14939. is a little bit faster then TorrentMan::getMissingPieceIndex().
  14940. (addRequests): Updated the number of pending requests.
  14941. * src/PeerAbstractCommand.cc
  14942. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14943. (execute): Returns true if TorrentMan::isHalt() is true.
  14944. Corrected the condition of upload limit checking.
  14945. * src/Util.h
  14946. (countBit): New function.
  14947. * src/Util.cc
  14948. (nbits): New variable.
  14949. (countBit): New function.
  14950. * src/DownloadEngine.h
  14951. (SockCmdMap): New type definition.
  14952. (waitData): Added an argument.
  14953. (addSocket): Added an argument.
  14954. (addSocketForReadCheck): Added an argument.
  14955. (addSocketForWriteCheck): Added an argument.
  14956. * src/DownloadEngine.cc
  14957. (run): Executes only commands whose sockets are ready to read or write.
  14958. All commands are executed in every 1 second.
  14959. (waitData): Calls select() again if it returned
  14960. EINTR.
  14961. (addSocket): Saves socket and command object pair to the map.
  14962. (deleteSocket): Deletes socket and command object pair from the map.
  14963. (addSocketForReadCheck): Added an argument.
  14964. (addSocketForWriteCheck): Added an argument.
  14965. * src/DownloadCommand.cc
  14966. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  14967. To send "event=stopped" to the tracker when the application finishes:
  14968. * src/PeerChokeCommand.h
  14969. (checkPoint): New variable.
  14970. * src/PeerChokeCommand.cc
  14971. (PeerChokeCommand): Added the initialization of checkPoint.
  14972. (execute): The interval check is now done by checkPoint, not
  14973. SleepCommand. Return true if TorrentMan::isHalt() is true.
  14974. * src/TorrentMan.h
  14975. (halt): New function.
  14976. (hasMissingPiece): New function.
  14977. (isHalt): New function.
  14978. (setHalt): New function.
  14979. * src/TorrentMan.cc
  14980. (TorrentMan): Added the initialization of halt.
  14981. * src/TorrentAutoSaveCommand.h
  14982. (checkPoint): New variable.
  14983. * src/PeerListenCommand.cc
  14984. (execute): Returns true if TorrentMan::isHalt() is true.
  14985. * src/main.cc
  14986. (setSignalHander): Added flags argument.
  14987. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  14988. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  14989. Removed printDownloadAbortMessage() after torrent downloading loop.
  14990. * src/TorrentAutoSaveCommand.cc
  14991. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  14992. (execute): Returns true if TorrentMan::isHalt() is true.
  14993. The interval check is now done by checkPoint, not SleepCommand.
  14994. * src/TrackerWatcherCommand.cc
  14995. (execute): If TorrentMan::isHalt(), then create a tracker request with
  14996. event=stopped.
  14997. * src/TrackerUpdateCommand.cc
  14998. (prepareForRetry): Do not use SleepCommand here.
  14999. (execute): Returns true if TorrentMan::isHalt() is true.
  15000. Others:
  15001. * src/TorrentMan.cc
  15002. (getMissingPieceIndex): Updated log message.
  15003. * src/PeerInteraction.cc
  15004. (createPeerMessag): Updated log message.
  15005. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15006. To add the ability to download several pieces in mix in a command and
  15007. increase the number of request slots according to request-cancel
  15008. latency:
  15009. * src/PeerInteractionCommand.cc
  15010. (executeInternal): The number of messages to be received at a time
  15011. is increased from 10 to 50.
  15012. * src/LogFactory
  15013. (getInstance): Added NullLogger.
  15014. * src/NullLogger.h: New class.
  15015. * src/BitfieldMan.h
  15016. (getMissingIndex): New function.
  15017. * src/BitfieldMan.cc
  15018. (getMissingIndex): New function.
  15019. * src/TorrentMan.h
  15020. (checkOutPiece): New function.
  15021. (getMissingPieceIndex): New function.
  15022. (getMissingFastPieceIndex): New function.
  15023. (getMissingFastPiece): New function.
  15024. * src/TorrentMan.cc
  15025. (updatePiece): Rewritten using STL.
  15026. (syncPiece): Rewritten using STL.
  15027. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  15028. checkOutPiece().
  15029. (getMissingPieceIndex): New function.
  15030. (getMissingFastPieceIndex): New function.
  15031. (getMissingFastPiece): New function.
  15032. (checkOutPiece): New function.
  15033. * src/PeerInteraction.h
  15034. (Pieces): New type definition.
  15035. (piece): Removed.
  15036. (pieces): New variable.
  15037. (getNewPieceAndSendInterest): Added the "piece" argument.
  15038. (abortPiece): Added the "piece" argument.
  15039. (abortAllPieces): New function.
  15040. (isInRequestSlot): New function.
  15041. (hasDownloadPiece): Added the "index" argument.
  15042. (setDownloadPiece): Removed.
  15043. (getDownloadPiece): Added the "index" argument.
  15044. (updatePiece): New function.
  15045. (createRequestMessage): Added the "index" argument.
  15046. * src/PeerInteraction.cc
  15047. (onChoked): Rewritten.
  15048. (abortPiece): Rewirtten.
  15049. (abortAllPieces): New function.
  15050. (deleteTimeoutRequestSlot): Rewritten.
  15051. Clarified code a little bit.
  15052. (deleteCompletedRequestSlot): Rewritten.
  15053. (isInRequestSlot): New function.
  15054. (syncPiece): Rewritten.
  15055. (updatePiece): New function.
  15056. (getNewPieceAndSendInterest): Rewritten.
  15057. (addRequests): Rewritten.
  15058. (getDownloadPiece): Rewritten.
  15059. (hasDownloadPiece): Rewritten.
  15060. (createRequestMessage): Added the "index" argument.
  15061. * src/common.h
  15062. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  15063. (DIV_FLOOR): New definition.
  15064. * src/PieceMessage.cc
  15065. (receivedAction): Update request-piece latency here.
  15066. * src/RequestSlot.h
  15067. (getLatencyInMillis): New function.
  15068. * src/RequestSlot.cc
  15069. (isTimeout): Rewritten using getLatencyInMillis.
  15070. (getLatencyInMillis): New function.
  15071. * src/Piece.h
  15072. (operator==): New function.
  15073. (getMissingBlockIndex): New function.
  15074. * src/Piece.cc
  15075. (operator==): New function.
  15076. (getMissingBlockIndex): New function.
  15077. * src/Peer.h
  15078. (DEFAULT_LATENCY): New definition.
  15079. (latency): New variable.
  15080. (updateLatency): New function.
  15081. (getLatency): New function.
  15082. * src/Peer.cc
  15083. (resetStatus): Reset latecy.
  15084. (updateLatency): New function.
  15085. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15086. * src/SocketCore.cc
  15087. (isReadable): Added secure to the condition.
  15088. * src/HttpConnection.cc
  15089. (receiveResponse): Fixed a bug that causes no response header
  15090. exception.
  15091. * src/Peer.h
  15092. (getFastSet): Fixed the return value type.
  15093. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15094. To remove a wait from download loop:
  15095. * src/DownloadEngine.cc
  15096. (run): Comment out shortSleep.
  15097. To rewrite the message handling:
  15098. * src/SimplePeerMessage.h: New class.
  15099. * src/SimplePeerMessage.cc: New class.
  15100. * src/CancelMessage.h: Derived from SimplePeerMessage.
  15101. (msg): New variable.
  15102. (create): New function.
  15103. (send): Removed.
  15104. (getMessage): New function.
  15105. (getMessageLength): New function.
  15106. * src/CancelMessage.cc
  15107. (create): New function.
  15108. (receivedAction): Replaced deleteRequestMessageInQueue with
  15109. rejectPieceMessageInQueue.
  15110. (send): Removed.
  15111. (getMessage): New function.
  15112. (getMessageLength): New function.
  15113. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  15114. (msg): New variable.
  15115. (msgLength): New variable.
  15116. (~BitfieldMessage): Deleted msg.
  15117. (send): Removed.
  15118. (getMessage): New function.
  15119. (getMessageLength): New function.
  15120. * src/BitfieldMessage.cc
  15121. (create): New function.
  15122. (send): Removed.
  15123. (getMessage): New function.
  15124. (getMessageLength): New function.
  15125. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  15126. (msg): New variable.
  15127. (sendPredicate): New function.
  15128. (onSendComplete): New function.
  15129. (send): Removed.
  15130. (getMessage): New function.
  15131. (getMessageLength): New function.
  15132. (create): New function.
  15133. * src/ChokeMessage.cc
  15134. (create): New function.
  15135. (send): Removed.
  15136. (sendPredicate): New function.
  15137. (getMessage): New function.
  15138. (getMessageLength): New function.
  15139. (onSendComplete): New function.
  15140. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  15141. (msg): New variable.
  15142. (send): Removed.
  15143. (getMessage): New function.
  15144. (getMessageLength): New function.
  15145. * src/KeepAliveMessage.cc
  15146. (send): Removed.
  15147. (getMessage): New function.
  15148. (getMessageLength): New function.
  15149. * src/PortMessage.h
  15150. (create): New function.
  15151. (receivedAction): Updated log message.
  15152. * src/PortMessage.cc: New file.
  15153. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  15154. (msg): New variable.
  15155. (sendPredicate): New function.
  15156. (onSendComplete): New function.
  15157. (create): New function.
  15158. (send): Removed.
  15159. (getMessage): New function.
  15160. (getMessageLength): New function.
  15161. * src/UnchokeMessage.cc
  15162. (create): New function.
  15163. (send): Removed.
  15164. (sendPredicate): New function.
  15165. (getMessage): New function.
  15166. (getMessageLength): New function.
  15167. (onSendComplete): New function.
  15168. * src/PieceMessage.h
  15169. (leftPieceDataLength): Removed.
  15170. (leftDataLength): New variable.
  15171. (headerSend): New variable.
  15172. (pendingCount): New variable.
  15173. (msgHeader): New variable.
  15174. (sendPieceData): New function.
  15175. (incrementPendingCount): New function.
  15176. (isPendingCountMax): New function.
  15177. (create): New function.
  15178. (getMessageHeader): New function.
  15179. (getMessageHeaderLength): New function.
  15180. * src/PieceMessage.cc
  15181. (create): New function.
  15182. (getMessageHeader): New function.
  15183. (getMessageHeaderLength): New function.
  15184. (send): Rewritten.
  15185. (sendPieceData): New function.
  15186. * src/HaveMessage.h: Derived from SimplePeerMessage.
  15187. (msg): New variable.
  15188. (create): New function.
  15189. (getMessage): New function.
  15190. (getMessageLength): New function.
  15191. * src/HaveMessage.cc
  15192. (create): New function.
  15193. (send): Removed.
  15194. (sendPieceData): New function.
  15195. (getMessage): New function.
  15196. (getMessageLength): New function.
  15197. * src/RequestMessage.h: Derived from SimplePeerMessage.
  15198. (msg): New variable.
  15199. (create): New function.
  15200. (send): Removed.
  15201. (getMessage): New function.
  15202. (getMessageLength): New function.
  15203. * src/RequestMessage.cc
  15204. (create): New function.
  15205. (receivedAction): Added the handling of fast extension.
  15206. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  15207. (send): Removed.
  15208. (getMessage): New function.
  15209. (getMessageLength): New function.
  15210. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  15211. (msg): New variable.
  15212. (sendPredicate): New function.
  15213. (onSendComplete): New function.
  15214. (create): New function.
  15215. (getMessage): New function.
  15216. (getMessageLength): New function.
  15217. * src/InterestedMessage.cc
  15218. (create): New function.
  15219. (send): Removed.
  15220. (sendPieceData): New function.
  15221. (getMessage): New function.
  15222. (getMessageLength): New function.
  15223. (onSendComplete): New function.
  15224. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  15225. (msg): New variable.
  15226. (sendPieceData): New function.
  15227. (onSendComplete): New function.
  15228. (create): New function.
  15229. (send): Removed.
  15230. (getMessage): New function.
  15231. (getMessageLength): New function.
  15232. * src/NotInterestedMessage.cc
  15233. (create): New function.
  15234. (send): Removed.
  15235. (sendPredicate): New function.
  15236. (getMessage): New function.
  15237. (getMessageLength): New function.
  15238. (onSendComplete): New function.
  15239. * src/AllowedFastMessage.h: New class.
  15240. * src/AllowedFastMessage.cc: New class.
  15241. * src/RejectMessage.h: New class.
  15242. * src/RejectMessage.cc: New class.
  15243. * src/SuggestPieceMessage.h: New class.
  15244. * src/SuggestPieceMessage.cc: New class.
  15245. * src/HaveAllMessage.h: New class.
  15246. * src/HaveAllMessage.cc: New class.
  15247. * src/HaveNoneMessage.h: New class.
  15248. * src/HaveNoneMessage.cc: New class.
  15249. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  15250. (msg): New variable.
  15251. (reserved): New variable.
  15252. (create): New function.
  15253. (getId): New function.
  15254. (receivedAction): New function.
  15255. (getMessage): New function.
  15256. (getMessageLength): New function.
  15257. (isFastExtensionSupported): New function.
  15258. * src/HandshakeMessage.cc
  15259. (HandshakeMessage): Moved here from HandshakeMessage.h.
  15260. (create): New function.
  15261. (getMessage): New function.
  15262. (getMessageLength): New function.
  15263. (toString): Added the output of reserved field.
  15264. (check): Added const qualifier.
  15265. (isFastExtensionSupported): New function.
  15266. * src/PeerMessageUtil.h
  15267. (createChokeMessage): Removed.
  15268. (createUnchokeMessage): Removed.
  15269. (createInterestedMessage): Removed.
  15270. (createNotInterestedMessage): Removed.
  15271. (createHaveMessage): Removed.
  15272. (createBitfieldMessage): Removed.
  15273. (createRequestMessage): Removed.
  15274. (createCancelMessage): Removed.
  15275. (createPieceMessage): Removed.
  15276. (createPortMessage): Removed.
  15277. (createChokeMessage): Removed.
  15278. (createUnchokeMessage): Removed.
  15279. (createInterestedMessage): Removed.
  15280. (createNotInterestedMessage): Removed.
  15281. (createHaveMessage): Removed.
  15282. (createBitfieldMessage): Removed.
  15283. (createRequestMessage): Removed.
  15284. (createCancelMessage): Removed.
  15285. (createPieceMessage): Removed.
  15286. (createKeepAliveMessage): Removed.
  15287. (createHandshakeMessage): Removed.
  15288. (setIntParam): New function.
  15289. (createPeerMessageString): New function.
  15290. * src/PeerMessageUtil.cc
  15291. (createChokeMessage): Removed.
  15292. (createUnchokeMessage): Removed.
  15293. (createInterestedMessage): Removed.
  15294. (createNotInterestedMessage): Removed.
  15295. (createHaveMessage): Removed.
  15296. (createBitfieldMessage): Removed.
  15297. (createRequestMessage): Removed.
  15298. (createCancelMessage): Removed.
  15299. (createPieceMessage): Removed.
  15300. (createPortMessage): Removed.
  15301. (createRequestMessage): Removed.
  15302. (createCancelMessage): Removed.
  15303. (createPieceMessage): Removed.
  15304. (createHaveMessage): Removed.
  15305. (createChokeMessage): Removed.
  15306. (createUnchokeMessage): Removed.
  15307. (createInterestedMessage): Removed.
  15308. (createNotInterestedMessage): Removed.
  15309. (createBitfieldMessage): Removed.
  15310. (createKeepAliveMessage): Removed.
  15311. (createHandshakeMessage): Removed.
  15312. (setIntParam): New function.
  15313. (createPeerMessageString): New function.
  15314. * src/PeerConnection.h
  15315. (peer): Removed.
  15316. (torrentMan): Removed.
  15317. (createNLengthMessage): Removed.
  15318. (setIntParam): Removed.
  15319. (writeOutgoingMessageLog): Removed all overloaded functions.
  15320. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15321. (sendMessage): New function.
  15322. (sendHandshake): Removed.
  15323. (sendKeepAlive): Removed.
  15324. (sendChoke): Removed.
  15325. (sendUnchoke): Removed.
  15326. (sendInterested): Removed.
  15327. (sendNotInterested): Removed.
  15328. (sendHave): Removed.
  15329. (sendBitfield): Removed.
  15330. (sendRequest): Removed.
  15331. (sendPiece): Removed.
  15332. (sendPieceHeader): Removed.
  15333. (sendPieceData): Removed.
  15334. (sendCancel): Removed.
  15335. (getPeer): Removed.
  15336. * src/PeerConnection.cc
  15337. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15338. (sendHandshake): Removed.
  15339. (sendKeepAlive): Removed.
  15340. (createNLengthMessage): Removed.
  15341. (setIntParam): Removed.
  15342. (writeOutgoingMessageLog): Removed all overloaded functions.
  15343. (sendChoke): Removed.
  15344. (sendUnchoke): Removed.
  15345. (sendInterested): Removed.
  15346. (sendNotInterested): Removed.
  15347. (sendHave): Removed.
  15348. (sendBitfield): Removed.
  15349. (sendRequest): Removed.
  15350. (sendPiece): Removed.
  15351. (sendPieceHeader): Removed.
  15352. (sendPieceData): Removed.
  15353. (sendMessage): New function.
  15354. (sendCancel): Removed.
  15355. * src/PeerInteractionCommand.cc
  15356. (PeerInteractionCommand): Call setUploadLimit.
  15357. (executeInternal): Call setUploadLimit.
  15358. Added the handling of "inProgress" state of handshake message.
  15359. Call sendBitfield() or sendAllowdFast() instead of deprecated
  15360. sendNow().
  15361. (keepAlive): Call addMessage and sendMessage instead of deprecated
  15362. sendNow().
  15363. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  15364. * src/TorrentMan.h
  15365. (PEER_ID_LENGTH): New definition.
  15366. (hasAllPieces): New function.
  15367. * src/TorrentMan.cc
  15368. (getMissingPiece): Added the handling of fast extension.
  15369. (cancelPiece): Call updatePiece().
  15370. (hasAllPieces): New function.
  15371. * src/PeerInteraction.h
  15372. (fastSet): New variable.
  15373. (getNewPieceAndSendInterest): Changed the return type to void.
  15374. (send): Renamed as sendMessages.
  15375. (deleteAllRequestSlot): Removed.
  15376. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15377. (cancelAllRequest): Removed all overloaded functions.
  15378. (deleteAllRequestSlot): Removed.
  15379. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15380. (rejectPieceMessageInQueue): New function.
  15381. (rejectAllPieceMessageInQueue): New function.
  15382. (onChoked): New function.
  15383. (isSendingMessageInProgress): New function.
  15384. (getCorrespondingRequestSlot): Changed its arguments.
  15385. (isInFastSet): New function.
  15386. (addFastSetIndex): New function.
  15387. (addRequests): New function.
  15388. (sendNow): Removed.
  15389. (trySendNow): Removed.
  15390. (sendBitfield): New function.
  15391. (sendAllowdFast): New function.
  15392. (createHaveAllMessage): New function.
  15393. (createHaveNoneMessage): New function.
  15394. (createRejectMessage): New function.
  15395. (createAllowedFastMessage): New function.
  15396. * src/PeerInteraction.cc
  15397. (send): Renamed as sendMessages.
  15398. (sendMessages): New function.
  15399. (MsgPushBack): New class.
  15400. (isSendingMessageInProgress): New function.
  15401. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15402. (rejectAllPieceMessageInQueue): New function.
  15403. Added the handling of fast extension.
  15404. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15405. (rejectPieceMessageInQueue): New function.
  15406. Added the handling of fast extension.
  15407. (deleteRequestSlot): Replaced for loop with std::find.
  15408. (onChoked): New function.
  15409. (deleteAllRequestSlot): Removed.
  15410. (abortPiece): Rewirtten.
  15411. (deleteTimeoutRequestSlot): Updated log messages.
  15412. (getCorrespondingRequestSlot): Changed its arguments.
  15413. (cancelAllRequest): Removed all overloaded functions.
  15414. (receiveHandshake): Added the check to see whether an incoming peer
  15415. supports fast extension.
  15416. (createHandshakeMessage): Use HandshakeMessage::create instead of
  15417. PeerMessageUtil.
  15418. (createPeerMessage): Use create() of each message class instead of
  15419. PeerMessageUtil.
  15420. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  15421. AllowedFastMessage were added.
  15422. (getNewPieceAndSendInterest): Changed its return value type to void.
  15423. Added the handling of fast extension.
  15424. (addRequests): New function.
  15425. (sendNow): Removed.
  15426. (sendHandshake): Rewritten.
  15427. (trySendNow): Removed.
  15428. (sendBitfield): New function.
  15429. (sendAllowdFast): New function.
  15430. (isInFastSet): New function.
  15431. (addFastSetIndex): New function.
  15432. (createRequestMessage): Use RequestMessage::create instead of
  15433. PeerMessageUtil.
  15434. (createCancelMessage): Use CancelMessage::create instead of
  15435. PeerMessageUtil.
  15436. (createPieceMessage): Use PieceMessage::create instead of
  15437. PeerMessageUtil.
  15438. (createHaveMessage): Use HaveMessage::create instead of
  15439. PeerMessageUtil.
  15440. (createChokeMessage): Use ChokeMessage::create instead of
  15441. PeerMessageUtil.
  15442. (createUnchokeMessage): Use UnchokeMessage::create instead of
  15443. PeerMessageUtil.
  15444. (createInterestedMessage): Use InterestedMessage::create instead of
  15445. PeerMessageUtil.
  15446. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  15447. of PeerMessageUtil.
  15448. (createBitfieldMessage): Use BitfieldMessage::create instead of
  15449. PeerMessageUtil.
  15450. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  15451. PeerMessageUtil.
  15452. (createHaveAllMessage): New function.
  15453. (createHaveNoneMessage): New function.
  15454. (createRejectMessage): New function.
  15455. (createAllowedFastMessage: New function.
  15456. * src/Util.h
  15457. (sha1Sum): New function.
  15458. (computeFastSet): New function.
  15459. * src/Util.cc
  15460. (sha1Sum): New function.
  15461. (computeFastSet): New function.
  15462. * src/Peer.h
  15463. (fastExtensionEnabled): New variable.
  15464. (fastSet): New variable.
  15465. (setAllBitfield): New function.
  15466. (setFastExtensionEnabled): New function.
  15467. (isFastExtensionEnabled): New function.
  15468. (addFastSetIndex): New function.
  15469. (getFastSet): New function.
  15470. (isInFastSet): New function.
  15471. (countFastSet): New function.
  15472. * src/Peer.cc
  15473. (isInFastSet): New function.
  15474. (addFastSetIndex): New function.
  15475. (setAllBitfield): New function.
  15476. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  15477. sockets.
  15478. * src/PeerAbstractCommand.cc
  15479. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  15480. and uploadLimit.
  15481. (execute): Changed the procedure of checking sockets. The upload speed
  15482. checking were added.
  15483. (setUploadLimit): New function.
  15484. (setUploadLimitCheck): New function.
  15485. * src/PeerAbstractCommand.h
  15486. (setUploadLimit): New function.
  15487. (setUploadLimitCheck): New function.
  15488. (uploadLimit): New variable.
  15489. (uploadLimitCheck): New variable.
  15490. To contact a tracker regularly:
  15491. * src/TrackerWatcherCommand.h (interval): New variable.
  15492. (checkPoint): New variable.
  15493. (TrackerWatcherCommand): Added interval argument.
  15494. * src/TrackerWatcherCommand.cc
  15495. (TrackerWatcherCommand): Initialized checkPoint.
  15496. (execute): Now a tracker is contacted in every specified period.
  15497. If peer list is not needed, send request with numwant=0.
  15498. * src/TrackerUpdateCommand.cc
  15499. (execute): Updated log messages.
  15500. * src/DownloadEngine.cc
  15501. (~DownloadEngine): Removed two asserts.
  15502. (waitData): Uncommented wfds. May be a bug fix.
  15503. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15504. * src/PeerInteractionCommand.h
  15505. (checkInactiveConnection): Removed.
  15506. * src/PeerInteractionCommand.cc
  15507. (executeInternal): Removed following function calls:
  15508. detectMessageFlooding(), checkLongTimePeerChoking and
  15509. checkInactiveConnection().
  15510. (checkInactiveConnection): Removed.
  15511. (detectMessageFlooding): Removed function call to
  15512. checkInactiveConnection().
  15513. * src/PeerMessageUtil.h
  15514. (createChokeMessage): New function. Overload.
  15515. (createUnchokeMessage): New function. Overload.
  15516. (createInterestedMessage): New function. Overload.
  15517. (createNotInterestedMessage): New function. Overload.
  15518. (createHaveMessage): New function. Overload.
  15519. (createBitfieldMessage): New function. Overload.
  15520. (createRequestMessage): New function. Overload.
  15521. (createCancelMessage): New function. Overload.
  15522. (createPieceMessage): New function. Overload.
  15523. (createKeepAliveMessage): New function. Overload.
  15524. * src/PeerMessageUtil.cc
  15525. (createChokeMessage): New function. Overload.
  15526. (createUnchokeMessage): New function. Overload.
  15527. (createInterestedMessage): New function. Overload.
  15528. (createNotInterestedMessage): New function. Overload.
  15529. (createHaveMessage): New function. Overload.
  15530. (createBitfieldMessage): New function. Overload.
  15531. (createRequestMessage): New function. Overload.
  15532. (createCancelMessage): New function. Overload.
  15533. (createPieceMessage): New function. Overload.
  15534. (createKeepAliveMessage): New function. Overload.
  15535. * src/SendMessageQueue.cc
  15536. (createRequestMessage): Use PeerMessageUtil.
  15537. (createCancelMessage): Use PeerMessageUtil.
  15538. (createPieceMessage): Use PeerMessageUtil.
  15539. (createHaveMessage): Use PeerMessageUtil.
  15540. (createChokeMessage): Use PeerMessageUtil.
  15541. (createUnchokeMessage): Use PeerMessageUtil.
  15542. (createInterestedMessage): Use PeerMessageUtil.
  15543. (createNotInterestedMessage): Use PeerMessageUtil.
  15544. (createBitfieldMessage): Use PeerMessageUtil.
  15545. (createKeepAliveMessage): Use PeerMessageUtil.
  15546. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  15547. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  15548. * src/PeerInteraction.h: New class.
  15549. * src/PeerInteraction.cc: New class.
  15550. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15551. Each peer message has its own class.
  15552. * src/PendingMessages.h: Removed.
  15553. * src/PendingMessages.cc: Removed. The sending process was moved to
  15554. each message class.
  15555. * src/RequestSlotMan.h: Removed.
  15556. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  15557. SendMessageQueue.
  15558. * src/RequestMessage.h: New class.
  15559. * src/RequestMessage.cc: New class.
  15560. * src/CancelMessage.h: New class.
  15561. * src/CancelMessage.cc: New class.
  15562. * src/BitfieldMessage.h: New class.
  15563. * src/BitfieldMessage.cc: New class.
  15564. * src/ChokeMessage.h: New class.
  15565. * src/ChokeMessage.cc: New class.
  15566. * src/KeepAliveMessage.h: New class.
  15567. * src/KeepAliveMessage.cc: New class.
  15568. * src/PortMessage.h: New class.
  15569. * src/UnchokeMessage.h: New class.
  15570. * src/UnchokeMessage.cc: New class.
  15571. * src/PieceMessage.h: New class.
  15572. * src/PieceMessage.cc: New class.
  15573. * src/HaveMessage.h: New class.
  15574. * src/HaveMessage.cc: New class.
  15575. * src/BitfieldMessage.h: New class.
  15576. * src/BitfieldMessage.cc: New class.
  15577. * src/NotInterestedMessage.h: New class.
  15578. * src/NotInterestedMessage.cc: New class.
  15579. * src/InterestedMessage.h: New class.
  15580. * src/InterestedMessage.cc: New class.
  15581. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  15582. (getSendMessageQueue): New function.
  15583. (setSendMessageQueue): New function.
  15584. * src/HandshakeMessage.cc: New class.
  15585. * src/PeerConnection.h (receiveMessage): Changed return value and
  15586. arguments.
  15587. (receiveHandshake): Changed return value and arguments.
  15588. * src/PeerConnection.cc (receiveMessage): Do not create message class
  15589. here.
  15590. (receiveHandshake): Do not create handshake class here.
  15591. * src/PeerInteractionCommand.h (peerConnection): Removed.
  15592. (piece): Removed.
  15593. (syncPiece): Removed.
  15594. (sendInterest): Removed.
  15595. (sendMessages): Removed.
  15596. (createRequestPendingMessage): Removed.
  15597. (checkPieceHash): Removed.
  15598. (erasePieceOnDisk): Removed.
  15599. (getNewPieceAndSendInterest): Removed.
  15600. (onGotNewPice): Removed.
  15601. (onGotWrongPiece): Removed.
  15602. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15603. Removed peerConnection, piece.
  15604. (~PeerInteractionCommand): Removed peerConnection.
  15605. (executeInternal): Use sendMessageQueue instead of peerConnection.
  15606. (syncPiece): Moved to SendMessageQueue.
  15607. (decideChoking): Removed PendingMessage.
  15608. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  15609. The action after receiving peer message was moved to each message
  15610. class.
  15611. (onGotNewPice): Moved to SendMessageQueue.
  15612. (onGotWrongPiece): Moved to SendMessageQueue.
  15613. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  15614. (sendInterest): Moved to SendMessageQueue.
  15615. (createRequestPendingMessage): Removed.
  15616. (sendMessages): Moved to SendMessageQueue.
  15617. (onAbort): Use SendMessageQueue::abortPiece()
  15618. (keepAlive): Use sendMessageQueue instead of peerConnection.
  15619. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  15620. (checkPieceHash): Moved to SendMessageQueue.
  15621. (erasePieceOnDisk): Moved to SendMessageQueue.
  15622. * src/PeerMessageUtil.h
  15623. (createBitfieldMessage): Removed.
  15624. (createHaveMessage): Changed return value and arguments.
  15625. (createBitfieldMessage): Changed return value and arguments.
  15626. (createRequestCancelMessage): Removed.
  15627. (createPieceMessage): Changed return value and arguments.
  15628. (getShortIntParam): New function.
  15629. (checkIndex): Changed arguments.
  15630. (checkBegin): Changed arguments.
  15631. (checkLength): Changed arguments.
  15632. (checkPieceOffset): Removed.
  15633. (checkRange): New function.
  15634. (checkBitfield): Changed arguments.
  15635. (createPeerMessage): Removed.
  15636. (checkIntegrity): Removed.
  15637. (createHandshakeMessage): Changed arguments.
  15638. (createChokeMessage): New function.
  15639. (createUnchokeMessage): New function.
  15640. (createInterestedMessage): New function.
  15641. (createNotInterestedMessage): New function.
  15642. (createRequestMessage): New function.
  15643. (createCancelMessage): New function.
  15644. (createPortMessage): New function.
  15645. * src/PeerMessageUtil.cc
  15646. (createBitfieldMessage): Removed.
  15647. (createHaveMessage): Changed return value and arguments.
  15648. (createBitfieldMessage): Changed return value and arguments.
  15649. (createRequestCancelMessage): Removed.
  15650. (createPieceMessage): Changed return value and arguments.
  15651. (getShortIntParam): New function.
  15652. (checkIndex): Changed arguments.
  15653. (checkBegin): Changed arguments.
  15654. (checkLength): Changed arguments.
  15655. (checkPieceOffset): Removed.
  15656. (checkRange): New function.
  15657. (checkBitfield): Changed arguments.
  15658. (createPeerMessage): Removed.
  15659. (checkIntegrity): Removed.
  15660. (createHandshakeMessage): Changed arguments.
  15661. (createChokeMessage): New function.
  15662. (createUnchokeMessage): New function.
  15663. (createInterestedMessage): New function.
  15664. (createNotInterestedMessage): New function.
  15665. (createRequestMessage): New function.
  15666. (createCancelMessage): New function.
  15667. (createPortMessage): New function.
  15668. * src/PeerMessage.h
  15669. (id): Removed.
  15670. (index): Removed.
  15671. (begin): Removed.
  15672. (length): Removed.
  15673. (bitfield): Removed.
  15674. (bitfieldLength): Removed.
  15675. (block): Removed.
  15676. (blockLength): Removed.
  15677. (inProgress): New variable.
  15678. (cuid): New variable.
  15679. (peer): New variable.
  15680. (sendMessageQueue): New variable.
  15681. (logger): New variable.
  15682. (setBitfield): Removed.
  15683. (getBitfield): Removed.
  15684. (setBlock): Removed.
  15685. (getBlock): Removed.
  15686. (getBitfieldLength): Removed.
  15687. (getBlockLength): Removed.
  15688. (isInProgress): New function.
  15689. (toString): Made pure virtual.
  15690. (check): New function.
  15691. (send): New function.
  15692. (receivedAction): New function.
  15693. (getId): Made pure virtual.
  15694. (setId): Removed.
  15695. (getIndex): Removed.
  15696. (setIndex): Removed.
  15697. (getBegin): Removed.
  15698. (setBegin): Removed.
  15699. (getLength): Removed.
  15700. (setLength): Removed.
  15701. (getCuid): New function.
  15702. (setCuid): New function.
  15703. (getPeer): New function.
  15704. (setPeer): New function.
  15705. (getSendMessageQueue): New function.
  15706. (setSendMessageQueue): New function.
  15707. (ID): Removed.
  15708. * src/PeerMessage.cc
  15709. (setBitfield): Removed.
  15710. (setBlock): Removed.
  15711. (toString): Removed.
  15712. * src/TorrentMan.h
  15713. (getPieceLength): New function.
  15714. (getPieceLength): New function.
  15715. * src/SendMessageQueue.h
  15716. (REQUEST_TIME_OUT): New definition.
  15717. (RequestSlots): New definition.
  15718. (MessageQueue): New definition.
  15719. (requestSlotMan): Removed.
  15720. (pendingMessages): Removed.
  15721. (requestSlots): New variable.
  15722. (messageQueue): New variable.
  15723. (torrentMan): New variable.
  15724. (peerConnection): New variable.
  15725. (peer): New variable.
  15726. (piece): New variable.
  15727. (getNewPieceAndSendInterest): New function.
  15728. (createPeerMessage): New function.
  15729. (createHandshakeMessage): New function.
  15730. (send): Made private.
  15731. (setPeerMessageCommonProperty): New function.
  15732. (deleteAllRequestSlot): New function.
  15733. (deleteRequestMessageInQueue): New function.
  15734. (cancelAllRequest): Made private.
  15735. (cancelAllRequest): Made private.
  15736. (countRequestSlot): Made private.
  15737. (addPendingMessage): Removed.
  15738. (deletePendingPieceMessage): Removed.
  15739. (deletePendingRequestMessage): Removed.
  15740. (addMessage): New function.
  15741. (deletePieceMessageInQueue): New function.
  15742. (deleteTimeoutRequestSlot): Changed argument.
  15743. (deleteCompletedRequestSlot): Changed argument.
  15744. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  15745. (getCorrespondingRequestSlot): New function.
  15746. (countPendingMessage): Removed.
  15747. (countMessageInQueue): New function.
  15748. (getTorrentMan): New function.
  15749. (getPeerConnection): New function.
  15750. (hasDownloadPiece): New function.
  15751. (getDownloadPiece): New function.
  15752. (setDownloadPiece): New function.
  15753. (syncPiece): New function.
  15754. (sendMessages): New function.
  15755. (sendNow): New function.
  15756. (trySendNow): New function.
  15757. (abortPiece): New function.
  15758. (sendHandshake): New function.
  15759. (receiveMessage): New function.
  15760. (receiveHandshake): New function.
  15761. (createRequestMessage): New function.
  15762. (createCancelMessage): New function.
  15763. (createPieceMessage): New function.
  15764. (createHaveMessage): New function.
  15765. (createChokeMessage): New function.
  15766. (createUnchokeMessage): New function.
  15767. (createInterestedMessage): New function.
  15768. (createNotInterestedMessage): New function.
  15769. (createBitfieldMessage): New function.
  15770. (createKeepAliveMessage): New function.
  15771. * src/SendMessageQueue.cc
  15772. (SendMessageQueue): Removed requestSlotMan.
  15773. Instantiated peerConnection here.
  15774. (~SendMessageQueue): Removed requestSlotMan.
  15775. Added deletion of peerConnection and the contents of messageQueue.
  15776. (send): Updated according to the change of messageQueue.
  15777. (addPendingMessage): Renamed to addMessage.
  15778. (addMessage): New function.
  15779. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  15780. (deletePieceMessageInQueue): New function.
  15781. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  15782. (deleteRequestMessageInQueue): New function.
  15783. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  15784. here.
  15785. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  15786. (...) was moved here.
  15787. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  15788. moved here.
  15789. (deleteCompletedRequestSlot):
  15790. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  15791. (getCorrespondingRequestSlot):
  15792. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  15793. And renamed to getCorrespondingRequestSlot, correcting a typo.
  15794. (countPendingMessage): Renamed to countMessageInQueue.
  15795. (countMessageInQueue): New function.
  15796. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  15797. (receiveHandshake): New function.
  15798. (createHandshakeMessage): New function.
  15799. (receiveMessage): New function.
  15800. (createPeerMessage): New function.
  15801. (syncPiece): New function.
  15802. (getNewPieceAndSendInterest): New function.
  15803. (sendMessages): New function.
  15804. (sendNow): New function.
  15805. (trySendNow): New function.
  15806. (sendHandshake): New function.
  15807. (abortPiece): New function.
  15808. (getDownloadPiece): New function.
  15809. (getPeerMessageCommonProperty): New function.
  15810. (createRequestMessage): New function.
  15811. (createCancelMessage): New function.
  15812. (createPieceMessage): New function.
  15813. (createHaveMessage): New function.
  15814. (createChokeMessage): New function.
  15815. (createUnchokeMessage): New function.
  15816. (createInterestedMessage): New function.
  15817. (createNotInterestedMessage): New function.
  15818. (createBitfieldMessage): New function.
  15819. (createKeepAliveMessage): New function.
  15820. To add simple Content-Disposition support:
  15821. * src/HttpResponseCommand.h (determinFilename): New function.
  15822. * src/HttpResponseCommand.cc (executeInternal):
  15823. Use determinFilename(headers) instead of req->getFile() when comparing
  15824. filename.
  15825. (determinFilename): New function.
  15826. (handleDefaultEncoding): Use determinFilename(headers) instead of
  15827. req->getFile().
  15828. (handleOtherEncoding): Use determinFilename(headers) instead of
  15829. req->getFile().
  15830. * src/Util.h (getContentDispositionFilename): New function.
  15831. * src/Util.cc (getContentDispositionFilename): New function.
  15832. * src/LogFactory.h (release): New function.
  15833. * src/LogFactory.cc (release): New function.
  15834. To fix a bug that causes out-of-bound exception when HTTP status
  15835. line is wrong:
  15836. * src/HttpConnection.cc (receiveResponse): Added a check for header
  15837. size.
  15838. * src/common.h (Deleter): New class.
  15839. * src/SegmentMan.cc
  15840. (~SegmentMan): Added deletion of splitter and diskWriter.
  15841. * src/DownloadEngine.h
  15842. (Commands): Use deque.
  15843. (clearQueue): New function.
  15844. * src/DownloadEngine.cc
  15845. (~DownloadEngine): Added deletion of segmentMan.
  15846. (cleanQueue): New function.
  15847. * src/TorrentDownloadEngine.h
  15848. (TorrentDownloadEngine): The implementation was moved to
  15849. TorrentDownloadEngine.cc.
  15850. (~TorrentDownloadEngine): The implementation was moved to
  15851. TorrentDownloadEngine.cc.
  15852. * src/TorrentDownloadEngine.cc
  15853. (~TorrentDownloadEngine): Added deletion of torrentMan.
  15854. * src/main.cc
  15855. (clearRequest): Removed.
  15856. (handler): Added deletion of e.
  15857. (torrentHandler): Added deletion of te.
  15858. (main): Do not share splitter.
  15859. Use Deleter instead of clearRequest.
  15860. Deletion of classes were updated.
  15861. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15862. * src/main.cc (main): Fixed typo.
  15863. * src/message.h: Fixed typo.
  15864. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  15865. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15866. To add --select-file command-line option:
  15867. * src/Util.cc
  15868. (unfoldRange): New function.
  15869. (getNum): New function.
  15870. (unfoldSubRange): New function
  15871. * src/main.cc
  15872. (showUsage): Added help message.
  15873. (main): Added --select-file command-line option. Updated the layout of
  15874. file listing.
  15875. * src/common.h
  15876. (Integers): New definition.
  15877. * src/SocketCore.cc
  15878. (writeData): Removed timeout argument.
  15879. (readData): Removed timeout argument.
  15880. (peekData): Removed timeout argument.
  15881. * src/Socket.cc
  15882. (writeData): Removed timeout argument.
  15883. (readData): Removed timeout argument.
  15884. (peekData): Removed timeout argument.
  15885. * Release 0.4.1
  15886. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15887. To deploy upload rate based choking algorithm:
  15888. * src/PeerInteractionCommand.cc
  15889. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  15890. peer currently used.
  15891. (decideChoking): Deleted the choke/unchoke decision algorithm when
  15892. download completes. Simplified.
  15893. (receiveMessage): Updated.
  15894. * src/TorrentMan.h
  15895. (activePeers): New variable.
  15896. (addActivePeer): New function.
  15897. (getActivePeers): New function.
  15898. (deleteActivePeer): New function.
  15899. * src/TorrentMan.cc
  15900. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  15901. * src/PeerAbstractCommand.cc
  15902. (onAbort): Use peer->resetStatus().
  15903. * src/main.cc
  15904. (PeerChokeCommand.h): Included.
  15905. (main): Added the instance of ChokingCommand to the command queue.
  15906. * src/Peer.h
  15907. (amChoking): Renamed from amChocking
  15908. (chokingRequired): New variable.
  15909. (optUnchoking): New variable.
  15910. (deltaUpload): New variable.
  15911. (deltaDownload): New variable.
  15912. (addDeltaUpload): New function.
  15913. (resetDeltaUpload): New function.
  15914. (addDeltaDownload): New function.
  15915. (resetDeltaDownload): New function.
  15916. (addPeerUpload): Added a call to addDeltaUpload.
  15917. (addPeerDownload): Added a call to addDeltaDownload.
  15918. * src/Peer.cc
  15919. (shouldBeChoking): Renamed from shouldChoke.
  15920. (resetStatus): New function.
  15921. * src/PeerChokeCommand.h: New class.
  15922. * src/PeerChokeCommand.cc: New class.
  15923. To add lazy upload speed limiter:
  15924. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  15925. statistics calculation to TorrentDownloadEngine.
  15926. * src/TorrentConsoleDownloadEngine.cc
  15927. (sendStatistics): Renamed from printStatistics.
  15928. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  15929. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  15930. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  15931. * src/TorrentDownloadEngine.h: Added the variables for statistics
  15932. calculation.
  15933. (sendStatistics): New function as pure virtual function.
  15934. (getUploadSpeed): New function.
  15935. * src/TorrentDownloadEngine.cc
  15936. (initStatistics): New function.
  15937. (calculateSpeed): New function.
  15938. (calculateStatistics): New function.
  15939. * src/SendMessageQueue.h
  15940. (uploadLength): New variable.
  15941. (send): Added an argument.
  15942. (setUploadLimit): New function.
  15943. (getUploadLimit): New function.
  15944. * src/SendMessageQueue.cc
  15945. (send): Added upload speed limiter.
  15946. * src/prefs.h
  15947. (PREF_UPLOAD_LIMIT): New definition.
  15948. * src/PeerInteractionCommand.cc
  15949. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  15950. * src/main.cc
  15951. (main): Added --upload-limit option
  15952. For bug fixes:
  15953. * src/main.cc
  15954. (showUsage): Corrected --listen-port help
  15955. Other changes:
  15956. * src/TorrentMan.cc
  15957. (getPeer): Return nullPeer if connection is grather than
  15958. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  15959. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15960. To add some useful information to the exception message:
  15961. * src/SocketCore.cc : Updated messages.
  15962. * src/SegmentMan.cc :
  15963. * src/TorrentMan.cc : Updated messages.
  15964. * src/MultiDiskWriter.cc : Updated messages.
  15965. * src/Util.cc : Updated messages.
  15966. * src/AbstractDiskWriter.cc : Updated messages.
  15967. * src/PreAllocationDiskWriter.cc : Updated messages.
  15968. * src/message.cc : Added new messages. Updated some messages.
  15969. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  15970. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  15971. Updated threshold from 30 to 15.
  15972. * src/AbstractDiskWriter.h (filename): New variable.
  15973. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  15974. (createFile): Assigned filename.
  15975. * src/main.cc: Updated the help message for http-auth-scheme.
  15976. * Release 0.4.0
  15977. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15978. To add TrackerUpdateCommand with which replaces
  15979. CompactTrackerResponseProcessor:
  15980. * src/TrackerWatcherCommand.h (req): Removed.
  15981. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  15982. if the number of peer connections are less than 30.
  15983. * src/ByteArrayDiskWriter.h (readData): Implemented.
  15984. * src/SegmentMan.h (diskWriter): New function.
  15985. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  15986. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  15987. (main): Use TrackerUpdateCommand.
  15988. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  15989. (req): New variable.
  15990. (setTrackerResponseProcessor): Removed.
  15991. (getTrackerResponseProcessor): Removed.
  15992. (processTrackerResponse): Removed.
  15993. * src/DownloadEngine.h (diskWriter): Removed.
  15994. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  15995. to torrentMan->processTrackerResponse().
  15996. To add Util::expandBuffer:
  15997. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  15998. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  15999. * src/Util.h (expandBuffer): New function.
  16000. To fix the bug that causes segmentation fault when "-l ." is specified
  16001. in command-line option:
  16002. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  16003. (openFile): New function.
  16004. (closeFile): New function.
  16005. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  16006. (~SimpleLogger): Call closeFile();
  16007. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  16008. * src/main.cc (main): Added a check to see logger is configured
  16009. properly.
  16010. To enable HTTP authentication without specifying "--http-auth-scheme"
  16011. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  16012. * src/HttpConnection.cc (createRequest): Send Authorization header
  16013. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  16014. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  16015. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  16016. * src/Peer.cc (shouldChoke): Updated algorithm.
  16017. * src/message.h (EX_AUTH_FAILED): New definition.
  16018. (EX_FILE_OPEN): New definition.
  16019. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  16020. if status == 401.
  16021. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  16022. if req->isTorrent == true.
  16023. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  16024. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  16025. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  16026. (createFile): Updated message.
  16027. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16028. To add a readout of estimated remaining time to normal HTTP/FTP
  16029. downloads:
  16030. * src/ConsoleDownloadEngine.h (startup): New variable.
  16031. (startupLength): New variable.
  16032. (isStartupLengthSet): New variable.
  16033. (avgSpeed): New variable.
  16034. (eta): New variable.
  16035. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  16036. estimated remaining time.
  16037. (initStatistics): Initialized newly added variables.
  16038. (calculateStatistics): Calculate average speed and estimated remaining
  16039. time.
  16040. To decouple TorrentDownloadEngine from HttpResponseCommand:
  16041. * src/TrackerDownloadCommand.h: Removed.
  16042. * src/TrackerDownloadCommand.cc: Removed.
  16043. * src/TrackerInitCommand.h: Removed.
  16044. * src/TrackerInitCommand.cc: Removed.
  16045. * src/TrackerUpdateCommand.h: Removed.
  16046. * src/TrackerUpdateCommand.cc: Removed.
  16047. * src/TrackerWatcherCommand.cc (execute): The construction of request
  16048. url written in TrackerInitCommand was moved here. Do not create
  16049. tracker request command if torrentMan->trackers != 0.
  16050. * src/CompactTrackerResponseProcessor.h: New class.
  16051. * src/CompactTrackerResponseProcessor.cc: New class.
  16052. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  16053. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  16054. Decoupled TorrentDownloadEngine from this.
  16055. * src/SegmentMan.h (init): New function.
  16056. * src/SegmentMan.cc (init): New function.
  16057. * src/TorrentMan.h (responseProcessor): New variable.
  16058. (trackers): New variable.
  16059. (setTrackerResponseProcessor): New function.
  16060. (getTrackerResponseProcessor): New function.
  16061. (processTrackerResponse): New function.
  16062. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  16063. (processTrackerResponse): New function.
  16064. * src/main.cc (main): Use ByteArrayDiskWriter and
  16065. CompactTrackerResponseProcessor.
  16066. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  16067. processTrackerResponse().
  16068. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  16069. readout.
  16070. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  16071. which indicates download has completed.
  16072. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  16073. (closeFile): fd >= 0, not fd > 0
  16074. * src/main.cc (main): Added short cut for show-files.
  16075. Added short cut for torrent-file.
  16076. Added new command-line option listen-port.
  16077. Updated i18n messages.
  16078. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16079. To add LogFactory which creates singleton logger:
  16080. * src/LogFactory.h: New class.
  16081. * src/LogFactory.cc: New class.
  16082. * src/Command.h (logger): New variable.
  16083. (Constructor): Use LogFactory.
  16084. * src/AbstractCommand.cc: Use Command::logger
  16085. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  16086. Use LogFactory.
  16087. * src/SegmentSplitter.h : Made logger protected.
  16088. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  16089. * src/SegmentMan.cc (Constructor): Use LogFactory.
  16090. * src/DownloadEngine.h : Made logger protected.
  16091. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  16092. * src/PeerInteractionCommand.cc : Use Command::logger.
  16093. * src/HttpResponseCommand.cc : Use Command::logger.
  16094. * src/SegmentMan.h : Made logger private.
  16095. * src/TorrentMan.h : Made logger private.
  16096. * src/TorrentMan.cc : Use LogFactory.
  16097. * src/FtpNegotiateCommand.cc : Use Command::logger.
  16098. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  16099. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  16100. Use LogFactory.
  16101. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  16102. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  16103. Use LogFactory.
  16104. * src/DownloadCommand.cc : Use Command::logger.
  16105. * src/PeerAbstractCommand.cc : Use Command::logger.
  16106. * src/PeerListenCommand.cc : Use Command::logger.
  16107. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  16108. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  16109. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  16110. * src/TrackerWatcherCommand.cc : Use Command::logger.
  16111. * src/TrackerUpdateCommand.cc : Use Command::logger.
  16112. * src/TrackerDownloadCommand.cc : Use Command::logger.
  16113. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  16114. Use LogFactory.
  16115. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  16116. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  16117. Use LogFactory.
  16118. * src/main.cc (main): Use LogFactory.
  16119. * src/DiskAdaptor.h (logger): New variable.
  16120. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  16121. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  16122. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16123. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  16124. parameter to a tracker request.
  16125. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  16126. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  16127. * src/main.cc (setSignalHander): New function.
  16128. (main): Added a handler for SIGTERM.
  16129. (handler): Updated message.
  16130. (torrentHandler): Updated message.
  16131. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16132. * src/TorrentConsoleDownloadEngine.cc
  16133. (onPartialDownloadingCompletes): Renamed as
  16134. onSelectiveDownloadingCompletes.
  16135. (onSelectiveDownloadingCompletes): Updated message.
  16136. To add DiskAdaptor which abstract DiskWriter family:
  16137. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  16138. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  16139. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  16140. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  16141. MultiDiskAdaptor.h.
  16142. (readFileEntry): Changed its arguments.
  16143. (setup): setupDiskWriter is merged into this function.
  16144. (setupDiskWriter): Removed.
  16145. (setFileFilter): New function.
  16146. (readFileEntryFromMetaInfoFile): Updated according to the changes
  16147. made in readFileEntry.
  16148. (getFilePath): Removed.
  16149. (getTempFilePath): Removed.
  16150. (getSegmentFilePath): Updated due to the removal of getFilePath.
  16151. (fixFilename): Removed.
  16152. (copySingleFile): Removed.
  16153. (splitMultiFile): Removed.
  16154. (deleteTempFile): Removed.
  16155. (setFileEntriesToDownload): Removed.
  16156. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  16157. (isSelectiveDownloadingMode): New function.
  16158. (setAllMultiFileRequestedState): Removed.
  16159. (finishPartialDownloadingMode): Renamed as
  16160. finishSelectiveDownloadingMode.
  16161. (finishSelectiveDownloadingMode): New function.
  16162. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  16163. (getSelectedTotalLength): New function.
  16164. (onDownloadComplete): Use diskAdaptor.
  16165. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  16166. (Range): Removed.
  16167. (setMultiFileEntries): Renamed as setFileEntries.
  16168. (setFileEntries): New function.
  16169. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  16170. (pieceLength): New variable.
  16171. * src/main.cc (printDownloadCompeleteMessage): New function.
  16172. (torrentHandler): Use diskAdaptor instead of diskWriter.
  16173. (main): Renamed torrent-show-files to show-files.
  16174. Rewritten file contents listing.
  16175. * src/TorrentMan.h (FileEntry): Removed.
  16176. (multiFileTopDir): Removed.
  16177. (multiFileEntries): Removed.
  16178. (diskWriter): Removed.
  16179. (diskAdaptor): New variable.
  16180. * src/DefaultDiskWriter.h (totalLength): New variable.
  16181. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  16182. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  16183. diskWriter.
  16184. * src/TorrentConsoleDownloadEngine.h
  16185. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  16186. (partialTotalLength): Renamed as selectedTotalLength.
  16187. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  16188. openExistingFile, otherwise call initAndOpenFile.
  16189. (closeFile): fd > 0, not fd != 0.
  16190. * src/DirectDiskAdaptor.h: New class.
  16191. * src/DirectDiskAdaptor.cc: New class.
  16192. * src/MultiDiskAdaptor.h: New class.
  16193. * src/MultiDiskAdaptor.cc: New class.
  16194. * src/CopyDiskAdaptor.h: New class.
  16195. * src/CopyDiskAdaptor.cc: New class.
  16196. * src/DiskAdaptor.h: New class.
  16197. * src/DiskAdaptor.cc: New class.
  16198. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  16199. (PREF_SHOW_FILES): New definition.
  16200. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16201. To add the ability to download multi torrent into respective files
  16202. directly:
  16203. * src/DiskWriter.h (openFile): New function.
  16204. (seek): Removed.
  16205. * src/MultiDiskWriter.h: New class.
  16206. * src/MultiDiskWriter.cc: New class.
  16207. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  16208. protected.
  16209. (openFile): New function.
  16210. * src/AbstractDiskWriter.cc (openFile): New function.
  16211. * src/prefs.h (V_FALSE): New definition.
  16212. (PREF_DIRECT_FILE_MAPPING): New definition.
  16213. * src/TorrentMan.h (setupDiskWriter): New function.
  16214. (setAllMultiFileRequestedState): New function.
  16215. (onDownloadComplete): New function.
  16216. * src/TorrentMan.cc : Included MultiDiskWriter.h
  16217. (setupDiskWriter): New function.
  16218. (getFilePath): Updated.
  16219. (getTempFilePath): Updated.
  16220. (getSegmentFilePath): Updated.
  16221. (fixFilename): Updated.
  16222. (deleteTempFile): Updated.
  16223. (setAllMultiFileRequestedState): New function.
  16224. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  16225. (finishPartialDownloadingMode): Reset requested flags.
  16226. (onDownloadComplete): New function.
  16227. * src/main.cc: Added --direct-file-mapping option.
  16228. Use TorrentMan::setupDiskWriter().
  16229. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  16230. onDownloadComplete().
  16231. To fix ETA bug:
  16232. * src/Util.h (difftvsec): New function.
  16233. * src/Util.cc (difftvsec): New function.
  16234. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  16235. type of "elapsed" instead of long long int.
  16236. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  16237. The updates of statistics takes place every 1 seconds.
  16238. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  16239. (calculateSpeed): Changed its argument signature.
  16240. * src/PeerMessage.cc (toString): Fixed message.
  16241. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16242. To print ETA:
  16243. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  16244. completion handling when dealing with
  16245. TorrentMan::isPartialDownloadingMode() == true.
  16246. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  16247. New function.
  16248. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  16249. (sessionDownloadLength): New variable.
  16250. (avgSpeed): New variable.
  16251. (eta): New variable.
  16252. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  16253. new variables: eta, avgSpeed, startup.
  16254. (calculateSpeed): Calculate average speed and ETA.
  16255. (printStatistics): Added ETA.
  16256. * src/Util.h (secfmt): New function.
  16257. * src/Util.cc (secfmt): New function.
  16258. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16259. To detect "keep alive" flooding:
  16260. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  16261. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  16262. variable: keepAliveCount.
  16263. (detectMessageFlooding): Added "keep alive" flooding detection.
  16264. (receiveMessage): Increase keepAliveCount when "keep alive" message
  16265. received.
  16266. To add the ability to download only specified files in multi-file
  16267. torrent:
  16268. * src/BitfieldMan.h (filterBitfield): New variable.
  16269. (filterEnabled): New variable.
  16270. (setFilterBit): New function.
  16271. (enableFilter): New function.
  16272. (disableFilter): New function.
  16273. (isFilterEnabled): New function.
  16274. (getFilteredTotalLength): New function.
  16275. (getCompletedLength): New function.
  16276. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  16277. filterBitfield, filterEnabled.
  16278. (CopyConstructor): Added filterBitfield and filterEnabled.
  16279. (operator==): Added filterBitfield and filterEnabled.
  16280. (Destructor): Added filterBitfield.
  16281. (getMissingIndex): Use filterBitfield.
  16282. (getMissingUnusedIndex): Use filterBitfield.
  16283. (getFirstMissingUnusedIndex): Use filterBitfield.
  16284. (getFirstMissingUnusedIndex): Use filterBitfield.
  16285. (getAllMissingIndexes): Use filterBitfield.
  16286. (countMissingBlock): Use filterBitfield.
  16287. (countBlock): Use filterBitfield.
  16288. (setBitInternal): Added new argument on.
  16289. (setUseBit): Use setBitInternal.
  16290. (unsetUseBit): Use setBitInternal.
  16291. (setBit): Use setBitInternal.
  16292. (unsetBit): Use setBitInternal.
  16293. (isAllBitSet): Use filterBitfield.
  16294. (setFilterBit): New function.
  16295. (addFilter): New function.
  16296. (enableFilter): New function.
  16297. (disableFilter): New function.
  16298. (clearFilter): New function.
  16299. (isFilterEnabled): New function.
  16300. (getFilteredTotalLength): New function.
  16301. (getCompletedLength): New function.
  16302. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  16303. Initalized newly added variables.
  16304. [FileEntry](offset): New variable.
  16305. [FileEntry](extracted): New variable.
  16306. [FileEntry](requested): New variable.
  16307. (readFileEntry): New function.
  16308. (option): New variable.
  16309. (splitMultiFile): Removed const qualifier.
  16310. (fixFilename): Removed const qualifier.
  16311. (readFileEntryFromMetaInfoFile): New function.
  16312. (finishPartialDownloadingMode): New function.
  16313. (isPartialDownloadingMode): New function.
  16314. (setFileEntriesToDownload): New function.
  16315. (getCompletedLength): New function.
  16316. (getPartialTotalLength): New function.
  16317. * src/TorrentMan.cc (readFileEntry): New function.
  16318. (setup): Use readFileEntry. If no-preallocation option is specified,
  16319. use DefaultDiskWriter.
  16320. (readFileEntryFromMetaInfoFile): New function.
  16321. (fixFilename): Removed const qualifier.
  16322. (splitMultiFile): Removed const qualifier.
  16323. (setFileEntriesToDownload): New function.
  16324. (isPartialDownloadingMode): New function.
  16325. (finishPartialDownloadingMode): New function.
  16326. (getCompletedLength): New function.
  16327. (getPartialTotalLength): New function.
  16328. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  16329. New variable.
  16330. (partialTotalLength): New variable.
  16331. (downloadLength): New variable.
  16332. (totalLength): New variable.
  16333. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  16334. Added log.
  16335. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  16336. partialTotalLength, downloadLength, totalLength.
  16337. (calculate): Calculate downloadLength and totalLength.
  16338. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  16339. * src/main.cc (addCommand): Changed argument signature.
  16340. (main): Added new variable: args. Added new option "torrent-show-files"
  16341. "no-preallocation". Usage is not updated yet.
  16342. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16343. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  16344. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16345. Attempt to add the ability to listing file entries in a .torrent file.
  16346. This feature is not yet complete.
  16347. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  16348. * src/TorrentMan.cc (getMultiFileEntries): New function.
  16349. (getName): New function.
  16350. * src/TorrentMan.h (getMultiFileEntries): New function.
  16351. (getName): New function.
  16352. * src/main.cc (main): Use above 2 funtion.
  16353. * Release 0.3.2
  16354. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16355. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  16356. (detectMessageFlooding): Updated threshold value.
  16357. (checkLongTimePeerChoking): Updated timeout value.
  16358. (getNewPieceAndSendInterest): Added debug log.
  16359. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  16360. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  16361. (getPeer): Updated.
  16362. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  16363. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  16364. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  16365. is localhost.
  16366. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  16367. * src/PendingMessage.cc (processMessage): Not to send piece message
  16368. if peer is not interested in the pieces localhost has.
  16369. * src/Peer.cc (shouldChoke): Updated.
  16370. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  16371. * src/Util.cc (isPowerOf): New function.
  16372. * src/Util.h (isPowerOf): New function.
  16373. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  16374. whether or not it is power of 2.
  16375. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16376. Added new class SendMessageQueue that includes PendingMessages and
  16377. RequestSlotMan.
  16378. * src/SendMessageQueue.h: New class.
  16379. * src/SendMessageQueue.cc: New class.
  16380. * src/PendingMessage.h: Added new member variable blockIndex and its
  16381. accessors.
  16382. (createRequestMessage): Updated.
  16383. * src/PendingMessage.cc (createRequestMessage): Updated.
  16384. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  16385. SendMessageQueue.
  16386. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  16387. (receiveMessage): Updated with SendMessageQueue.
  16388. (deletePendingPieceMessage): Removed.
  16389. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  16390. (sendInterest): Updated with SendMessageQueue.
  16391. (createRequestPendingMessage): Updated with SendMessageQueue.
  16392. (sendMessages): Updated with SendMessageQueue.
  16393. (onAbort): Updated with SendMessageQueue.
  16394. (keepAlive): Updated with SendMessageQueue.
  16395. (beforeSocketCheck): Updated SendMessageQueue.
  16396. * src/PeerInteractionCommand (sendMessages): Shuffle
  16397. missingBLockIndexes before using it.
  16398. Added its own timeout for peer connection.
  16399. * src/PeerAbstractCommand.h: Added member variable timeout and its
  16400. setter.
  16401. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  16402. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16403. Added setTimeout() call.
  16404. (executeInternal): Added setTimeout() call.
  16405. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  16406. Added timeout.
  16407. (isTimeoutDetected): Updated.
  16408. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  16409. option.
  16410. Added *simple* message flooding checker.
  16411. * src/PeerInteractionCommand.cc (executeInternal):
  16412. Added detectMessageFlooding() call.
  16413. (detectMessageFlooding): New function.
  16414. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  16415. (beforeSocketCheck): Added detectMessageFlooding() call.
  16416. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  16417. chokeUnchokeCount, haveCount, detectMessageFlooding().
  16418. Removed deletePendingPieceMessage(), getRequestSlot(),
  16419. deleteRequestSlot(), deleteAllRequestSlot().
  16420. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  16421. Added checkLongTimePeerChoking() call.
  16422. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  16423. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  16424. if duplicate == false.
  16425. The parameter "uploaded" and "downloaded" in the tracker request are
  16426. the size since the client sent the "started" event to the tracker.
  16427. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  16428. uploaded size to preDownloadedSize, preUploadedSize respectively.
  16429. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  16430. getSessionDownloadedSize(), getSessionUploadedSize().
  16431. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  16432. getSessionUploadedSize() instead of getDownloadedSize(),
  16433. getUploadedSize().
  16434. * src/PendingMessage.cc (processMessage): Do not send request message
  16435. if the peer is choking the client.
  16436. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  16437. less than interval.
  16438. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16439. * configure.in: Added gnutls support. Added several CPP macros.
  16440. * m4/openssl.m4: Added.
  16441. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  16442. readData(), peekData(). Added gnutls support.
  16443. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  16444. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  16445. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  16446. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  16447. Instead, added a check for whether setup method has executed
  16448. successfully.
  16449. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  16450. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  16451. * src/Makefile.am: Updated.
  16452. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  16453. using whether OpenSSL or gcrypt, depending on the result of configure
  16454. script.
  16455. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  16456. messageDigest.h.
  16457. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  16458. * src/PeerListenCommand.cc: Added log about port binded successfully.
  16459. Fixed memory leak.
  16460. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  16461. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  16462. Removed instantiation of TrackerInitCommand. Instead,
  16463. TrackerWatcherCommand is instantiated and pushed to the command queue.
  16464. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  16465. ENABLE_SSL.
  16466. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  16467. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  16468. If a piece is already acquired by another command, delete the request
  16469. slots for the piece.
  16470. * src/TrackerUpdateCommand.cc (execute):
  16471. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  16472. Added a check whether peer list is null.
  16473. Fixed the bug that causes sending completed event to the tracker
  16474. several times.
  16475. * src/TrackerInitCommand.cc (execute):
  16476. Fixed the bug that causes sending completed event to the tracker
  16477. several times.
  16478. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  16479. by using messageDigest.h.
  16480. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16481. * PeerConnection.cc: Replaced log message "keep-alive" with
  16482. "keep alive".
  16483. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  16484. localhost long time.
  16485. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  16486. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  16487. at most 100 failure entry from the list. If with duplicate = false,
  16488. MAX_PEER_LIST is not checked.
  16489. * PeerListenCommand.cc: Fixed the argument order of log message.
  16490. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16491. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  16492. Added warn().
  16493. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  16494. Implemented warn().
  16495. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  16496. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16497. * Request.h: Added AFTER_COMPLETED event.
  16498. * TorrentDownloadEngine.cc: Prints "Download complete" message
  16499. instead of downloaded size and progress(%) after download completes.
  16500. * PeerInteractionCommand.cc: After download completes, sends unchoke
  16501. message to the peer if it is interested in what localhost has
  16502. downloaded.
  16503. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  16504. destination instead of just renaming it.
  16505. * TorrentMan.cc: Added deleteTempFile().
  16506. * PeerAbstractCommand.cc: do not stop execution after download
  16507. completes. This makes localhost a seeder.
  16508. * Util.{h,cc}: Added fileCopy().
  16509. * PeerListenCommand.cc: do not stop execution after download completes.
  16510. This makes localhost a seeder.
  16511. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  16512. Added TorrentMan::deleteTempFile() to torrentHandler.
  16513. Initialized the variable dir as ".".
  16514. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  16515. Deleted renameSingleFile().
  16516. Added copySingleFile(), deleteTempFile().
  16517. * DownloadEngine.h: Added virtual function afterEachIteration().
  16518. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  16519. in onEndOfRun() to afterEachIteration().
  16520. In onEndOfRun(), changed if condition to check whether filenameFixed is
  16521. true.
  16522. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  16523. In rangedFileCopy(), added try-catch block to properly close file
  16524. descriptors.
  16525. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  16526. Added afterEachIteration(), isFilenameFixed().
  16527. * Peer.cc: Changed choking strategy.
  16528. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  16529. * TrackerInitCommand.cc: Send completed event only once.
  16530. * DownloadEngine.cc: Added a call to afterEachIteration().
  16531. * TrackerUpdateCommand.cc: Do not stop execution after download
  16532. completes.
  16533. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  16534. connect the peers at most MAX_PEER_UPDATE when a peer list is
  16535. received from a tracker.
  16536. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  16537. Decreased the number of failure peers to delete to 0(just comment out
  16538. the line).
  16539. * Release 0.3.1
  16540. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16541. * PeerInteractionCommand.cc: added a call to
  16542. TorrentMan::unadvertisePiece in Destructor.
  16543. * PeerInteractionCommand.cc: make have message sent immediately
  16544. if the size of pending message queue is zero.
  16545. * TorrentMan.cc: set the maximum size of peer list to 250.
  16546. * TorrentMan.h: changed the container type of Peers and UsedPieces
  16547. to deque.
  16548. * Util.cc: fixed rangedFileCopy.
  16549. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  16550. to Constructor. Also, moved digest cleanup to Destructor.
  16551. * MetaFileUtil.cc: fixed memory leak
  16552. * replaced std::vector with std::deque.
  16553. * AbstractCommand.cc: casted timeout value to long long int.
  16554. * ChunkedEncoding.cc: fixed memory leak.
  16555. * PeerInteractionCommand.cc: casted timeout value to long long int.
  16556. * SleepCommand.cc: casted timeout value to long long int.
  16557. * Data.cc: fixed memory leak.
  16558. * Data.cc: fixed toLLInt().
  16559. * BitfieldMan.cc: fixed memory leak.
  16560. * TorrentMan.cc: initialized storeDir to ".".
  16561. * TorrentMan.cc: fixed memory leak.
  16562. * TorrentMan.cc: corrected file paths of splitted files.
  16563. * PeerAbstractCommand.cc: casted timeout to long long int.
  16564. * main.cc: added delete(req) and delete(te->diskWriter).
  16565. * RequestSlot.cc: casted timeout value to long long int.
  16566. * Request.cc: fixed memory leak.
  16567. * PendingMessage.cc: make HAVE messages sent only when peer does not
  16568. have the piece.
  16569. * Peer.{h,cc}: added hasPiece(int index).
  16570. * main.cc: corrected addCommand.
  16571. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16572. * BitTorrent protocol support added.
  16573. * Release 0.3.0
  16574. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16575. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  16576. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16577. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  16578. decoding did not work properly.
  16579. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16580. * DownloadEngine.h: included sys/time.h
  16581. * DownloadEngine.cc: remove sys/time.h
  16582. * Makefile.am (SUBDIRS): Add intl.
  16583. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  16584. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16585. * main.cc: correct help message for --http-auth-scheme.
  16586. * main.cc: changed e-mail address for bug reports.
  16587. * ja.po: added japanese translation.
  16588. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16589. * SimpleLogger.cc: flush log file instead of stdout.
  16590. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16591. * main.cc: Fixed command-line option: max-tries
  16592. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  16593. does not equal to seg.sp.
  16594. * DownloadCommand.cc: If EOF is got from the server and the total size
  16595. of file is not zero, then throw DlRetryEx.
  16596. * main.cc: Set the minium value of min-segment-size to 1024.
  16597. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  16598. fails because of a regression since 0.2.0 release.
  16599. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16600. * HttpConnection.cc:
  16601. * common.h: defined the user agent name as macro
  16602. * DownloadEngine.{h, cc}:
  16603. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  16604. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  16605. * main.cc: Download complete/abort message is now generated by main.
  16606. * Makefile.am (SUBDIRS): Add m4.
  16607. (ACLOCAL_AMFLAGS): New variable.
  16608. (EXTRA_DIST): New variable.
  16609. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  16610. * gettext: added gettext functionality
  16611. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16612. * AbstractCommand.cc:
  16613. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  16614. unregister its cuid from SegmentMan.
  16615. * DownloadEngine.cc: .aria2 file was written when a downloading
  16616. failed with errors.
  16617. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  16618. Added "User-Agent" header to CONNECT proxy request.
  16619. Fixed "Proxy-Authorization" header. Now proxy authorization works
  16620. properly.
  16621. * Logger.h:
  16622. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  16623. * ChunkedEncoding.cc: Added #include directive for strings.h
  16624. * Release 0.2.1
  16625. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16626. * Util.{h,cc}: added startsWith().
  16627. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  16628. Util::endsWith().
  16629. * SocketCore.cc: struct addrinfo is now zero-initialized.
  16630. * common.h: added #include directive of limit.h.
  16631. * DownloadEngine.cc: added #include directive of sys/time.h and
  16632. algorithm.
  16633. * Exception.h: added #include directive of stdio.h.
  16634. * AbstractCommand.h: added #include directive of sys/time.h.
  16635. * DownloadCommand.h: added #include directive of sys/time.h.
  16636. * *.h: added #include directive of common.h to all base classes.
  16637. subclasses' one was removed.
  16638. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  16639. does not define these macros.
  16640. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16641. * Release 0.2.0
  16642. * main.cc:
  16643. * HttpInitiateConnectionCommand.{h,cc}:
  16644. * prefs.h:
  16645. * HttpConnection.{h,cc}: added --http-proxy-method option.
  16646. We can now use GET command in http proxy.
  16647. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16648. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  16649. that splits slowest segment of SegmentMan::commands vector.
  16650. This is the default split algorithm of aria2.
  16651. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  16652. that splits first segment of SegmentMan::commands vector.
  16653. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  16654. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  16655. * Segment.h:
  16656. * SegmentMan.cc: Added speed field to Segment.h
  16657. * main.cc: -s option now affects all URLs in command-line arguemtns.
  16658. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  16659. * message.h: Change file size related %d to %lld.
  16660. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16661. * FtpInitiateConnectionCommand.{h,cc}:
  16662. * FtpNegotiationCommand.{h,cc}:
  16663. * FtpDownloadCommand.{h,cc}:
  16664. * FtpConnection.{h,cc}: Added FTP support
  16665. * SimpleLogger.cc: Log message now includes time information.
  16666. * main.cc: The value of --http-auth-scheme option is chagned from
  16667. 'BASIC' to 'basic'
  16668. * main.cc: Added --timeout command-line option.
  16669. * main.cc: Added --min-segment-size command-line option.
  16670. * main.cc: Added --max-retries command-line option.
  16671. * prefs.h: option string constants are now defined in prefs.h
  16672. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16673. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  16674. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  16675. with version 0.1.0's one.
  16676. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16677. * configure.in: Added --enable-ssl option to configure script.
  16678. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  16679. cannot permit absoluteURI as Request-URI.
  16680. * HttpConnection.cc: Added Referer support.
  16681. * main.cc: Added referer command-line option.
  16682. * main.cc: Added rety-wait command-line option.
  16683. * Exception.h: Fixed formating bug in Exception::setMsg()
  16684. * SocketCore.{h,cc}:
  16685. * Socket.{h, cc}:
  16686. * Request.cc:
  16687. * InitiateConnectionCommandFactory.cc:
  16688. * HttpRequestCommand.cc: Added HTTPS support.
  16689. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  16690. for SocketCore.
  16691. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  16692. size is wrong
  16693. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  16694. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  16695. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  16696. * Release 0.1.0