ChangeLog 610 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520
  1. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Fixed the bug that XML-RPC authorization might be done before HTTP
  3. request header is fully received.
  4. * src/HttpServerCommand.cc
  5. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6. Documented --xml-rpc-listen-all option in man page.
  7. * doc/aria2c.1.txt
  8. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  9. Added --xml-rpc-listen-all option. If true is given to this
  10. option, aria2 listens incoming XML-RPC requests on all network
  11. interfaces. If false is given, listens only on local loopback
  12. interface. The default value is false.
  13. * src/HttpListenCommand.cc
  14. * src/OptionHandlerFactory.cc
  15. * src/SocketCore.cc
  16. * src/SocketCore.h
  17. * src/prefs.cc
  18. * src/prefs.h
  19. * src/usage_text.h
  20. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  21. * Release 1.5.2
  22. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  23. Updated Ukrainian and Russian translations. Thanks to all
  24. translators.
  25. * po/ru.po
  26. * po/uk.po
  27. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  28. Bump up version number to 1.5.2
  29. * configure.ac
  30. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  31. Get comment, comment.utf-8, created by and creation date from
  32. .torrent file and print them in -S output.
  33. * src/bittorrent_helper.cc
  34. * src/bittorrent_helper.h
  35. * test/BittorrentHelperTest.cc
  36. * test/test.torrent
  37. * test/utf8.torrent
  38. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  39. Show exact file size along in -S option output.
  40. * src/Util.h
  41. * src/bittorrent_helper.cc
  42. * test/UtilTest.cc
  43. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  44. Avoided unnecessary memory allocation in
  45. BitfieldMan::getCompletedLength().
  46. * src/BitfieldMan.cc
  47. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  48. Fixed the bug that download fails if
  49. SocketCore::establishConnection() throws exception and aria2
  50. doesn't try another address.
  51. * src/AbstractCommand.cc
  52. * src/InitiateConnectionCommand.cc
  53. * src/message.h
  54. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  55. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  56. detected properly.
  57. * m4/sqlite3.m4
  58. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  59. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  60. because it causes compile error if PARAMS macro is defined.
  61. * src/XmlRpcElements.cc
  62. * src/XmlRpcElements.h
  63. * src/XmlRpcRequestParserStateImpl.cc
  64. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  65. * Release 1.5.1
  66. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  67. Bump up version number to 1.5.1
  68. * configure.ac
  69. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  70. Fixed compile error without BitTorrent support
  71. * src/DefaultBtProgressInfoFile.cc
  72. * src/DownloadEngine.cc
  73. * src/DownloadEngine.h
  74. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  75. Added missing '=' in Download Results
  76. * src/RequestGroupMan.cc
  77. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  78. Fixed compiler warning
  79. * src/DefaultBtProgressInfoFile.cc
  80. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  81. Fixed compiler warning on 32bit systems.
  82. * src/DownloadCommand.cc
  83. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  84. Call flush from ServerStatMan::save()
  85. * src/ServerStatMan.cc
  86. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  87. Check stream status after file is opened.
  88. * src/CookieStorage.cc
  89. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  90. Rewritten Signature::save()
  91. * src/Signature.cc
  92. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  93. Rewritten RequestGroupMan::saveServerStat()
  94. * src/RequestGroupMan.cc
  95. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  96. Rewritten stream error handling
  97. * src/DHTAutoSaveCommand.cc
  98. * src/DHTRoutingTableDeserializer.cc
  99. * src/DHTRoutingTableSerializer.cc
  100. * src/DHTSetup.cc
  101. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  102. Check stream status after file is opened.
  103. * src/DefaultBtProgressInfoFile.cc
  104. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  105. Rewritten stream error handling
  106. * src/DefaultBtProgressInfoFile.cc
  107. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  108. Make sure that stream is closed before renaming file. Unit test
  109. fails on mingw32 in the previous implementation.
  110. * src/CookieStorage.cc
  111. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  112. Fixed the unit test error without sqlite3
  113. * test/CookieStorageTest.cc
  114. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  115. Fixed the undefined reference error
  116. * test/HttpResponseTest.cc
  117. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  118. * Release 1.5.0
  119. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  120. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  121. Ukrainian translations. Thanks to all translators.
  122. * po/ru.po
  123. * po/it.po
  124. * po/da.po
  125. * po/bg.po
  126. * po/ja.po
  127. * po/uk.po
  128. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  129. Added missing src/Logger.cc
  130. * src/Logger.cc
  131. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  132. Rewritten Logger to avoiding constly virtual call.
  133. * src/LogFactory.cc
  134. * src/LogFactory.h
  135. * src/Logger.h
  136. * src/Makefile.am
  137. * src/Makefile.in
  138. * src/NullLogger.h: Removed.
  139. * src/SimpleLogger.cc
  140. * src/SimpleLogger.h
  141. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  142. Updated doc
  143. * src/main.cc
  144. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  145. Updated debug log message
  146. * src/AbstractCommand.cc
  147. * src/message.h
  148. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  149. Avoid to create zombie process when commands specified in
  150. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  151. X and NetBSD.
  152. * src/main.cc
  153. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  154. Fixed typo
  155. * src/usage_text.h
  156. * doc/aria2c.1.txt
  157. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  158. Documented 'errorCode' of tellStatus in man page.
  159. * doc/aria2c.1.txt
  160. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  161. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  162. This key is only available for stopped/completed downloads and its
  163. value is the error code defined in EXIT STATUS in man page.
  164. * src/XmlRpcMethodImpl.cc
  165. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  166. Fixed the bug that session download length is not updated when
  167. PeerStat is not fastest one.
  168. * src/SegmentMan.cc
  169. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  170. Updated doc.
  171. * doc/aria2c.1.txt
  172. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  173. Updated doc.
  174. * src/AbstractCommand.cc
  175. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  176. Handle the case when DownloadContext has no FileEntry.
  177. * src/XmlRpcMethodImpl.cc
  178. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  179. Handle the situation where struct option.name is char *.
  180. * configure.ac
  181. * src/OptionParser.cc
  182. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  183. Code cleanup
  184. * src/AbstractCommand.cc
  185. * src/DownloadCommand.cc
  186. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  187. Use option of each download to create AuthConfig instead of global
  188. option.
  189. * src/AuthConfigFactory.cc
  190. * src/AuthConfigFactory.h
  191. * src/FtpNegotiationCommand.cc
  192. * src/HttpRequest.cc
  193. * src/HttpRequest.h
  194. * src/HttpRequestCommand.cc
  195. * src/HttpSkipResponseCommand.cc
  196. * src/MultiUrlRequestInfo.cc
  197. * test/AuthConfigFactoryTest.cc
  198. * test/FtpConnectionTest.cc
  199. * test/HttpRequestTest.cc
  200. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  201. Don't call prepareForRetry(1) if all segments are ignored in
  202. SegmentMan.
  203. * src/AbstractCommand.cc
  204. * src/BitfieldMan.cc
  205. * src/BitfieldMan.h
  206. * src/SegmentMan.cc
  207. * src/SegmentMan.h
  208. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  209. Removed FileEntry::getAssociatedUris()
  210. * src/FileEntry.h
  211. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  212. Updated doc: TODO1.5 -> TODO
  213. * src/FileEntry.cc
  214. * src/HttpResponseCommand.cc
  215. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  216. Added assertion fileEntries.size() == 1 if BitTorrent is not
  217. involved.
  218. * src/RequestGroup.cc
  219. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  220. Eliminated duplicated filterBitfield initialization code.
  221. * src/BitfieldMan.cc
  222. * src/BitfieldMan.h
  223. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  224. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  225. relatively naive approach, though). For DownloadFailureException,
  226. we handle the case when req is null properly.
  227. * src/AbstractCommand.cc
  228. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  229. Added function returning suffix of control file to
  230. DefaultBtProgressInfoFile.
  231. * src/DefaultBtProgressInfoFile.cc
  232. * src/DefaultBtProgressInfoFile.h
  233. * src/RequestGroup.cc
  234. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  235. Documented getVersion in man page.
  236. * doc/aria2c.1.txt
  237. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  238. Documented type of offset and num for tellWaiting xml-rpc method.
  239. * doc/aria2c.1.txt
  240. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  241. Implemented getVersion xml-rpc method. This method returns struct
  242. which has 2 key-value pairs: "version" key is associated to the
  243. version of aria2, such as "1.5.0". "enabledFeatures" key is
  244. associated to the list of enabled features, such as "Async DNS",
  245. "BitTorrent".
  246. * src/FeatureConfig.h
  247. * src/XmlRpcMethodFactory.cc
  248. * src/XmlRpcMethodImpl.cc
  249. * src/XmlRpcMethodImpl.h
  250. * test/XmlRpcMethodTest.cc
  251. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  252. Removed TLS1.1 protocol support when aria2 is built with gnutls
  253. for compatibility issue.
  254. * src/SocketCore.cc
  255. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  256. Fixed compile error with openSSL
  257. * src/bittorrent_helper.cc
  258. * src/messageDigest.h
  259. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  260. Removed bad code: setting certificate type priority to key
  261. exchange priority.
  262. * src/SocketCore.cc
  263. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  264. Disconnect seeder if client is also in seed state.
  265. * src/BtBitfieldMessage.cc
  266. * src/BtHaveAllMessage.cc
  267. * src/BtHaveMessage.cc
  268. * src/message.h
  269. * test/BtBitfieldMessageTest.cc
  270. * test/BtHaveAllMessageTest.cc
  271. * test/BtHaveMessageTest.cc
  272. * test/MockPieceStorage.h
  273. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  274. Keep CreateRequestCommand in queue when no segment is available so
  275. that they can pick up pieces which slow BitTorrent peers are
  276. downloading.
  277. * src/AbstractCommand.cc
  278. * src/CreateRequestCommand.cc
  279. * src/CreateRequestCommand.h
  280. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  281. --bt-stop-timeout now only checks download speed.
  282. * src/BtStopDownloadCommand.cc
  283. * src/BtStopDownloadCommand.h
  284. * src/BtSetup.cc
  285. * src/usage_text.h
  286. * doc/aria2c.1.txt
  287. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  288. Fixed compile error regarding BUFSIZE.
  289. * src/DownloadCommand.cc
  290. * src/DownloadCommand.h
  291. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  292. Documented tellWaiting xml-rpc method in man page.
  293. * doc/aria2c.1.txt
  294. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  295. Bump up version number to 1.5.0
  296. * configure.ac
  297. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  298. Removed resolved TODO1.5
  299. * src/AbstractCommand.cc
  300. * src/DownloadCommand.cc
  301. * src/RequestGroup.cc
  302. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  303. Release pooled and in-flight Request objectsand URIResult objects
  304. in FileEntry after download completed.
  305. * src/DownloadContext.cc
  306. * src/DownloadContext.h
  307. * src/FileEntry.cc
  308. * src/FileEntry.h
  309. * src/RequestGroup.cc
  310. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  311. Set manual and source attribute in aria2c.1.txt
  312. * doc/aria2c.1.txt
  313. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  314. Documented that the default value of --use-head is 'false' in man
  315. page.
  316. * doc/aria2c.1.txt
  317. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  318. Added bt-stop-timeout option to -i list.
  319. * doc/aria2c.1.txt
  320. * src/download_helper.cc
  321. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  322. Fixed typo
  323. * doc/aria2c.1.txt
  324. * src/usage_text.h
  325. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  326. Removed peer-id-prefix option from -i list.
  327. * doc/aria2c.1.txt
  328. * src/download_helper.cc
  329. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  330. Fixed typo
  331. * doc/aria2c.1.txt
  332. * src/usage_text.h
  333. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  334. Documented --bt-stop-timeout option in man page.
  335. * doc/aria2c.1.txt
  336. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  337. Updated README regarding multi-file torrent web-seeding.
  338. * doc/README.txt
  339. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  340. Updated man page regarding multi-file torrent web-seeding.
  341. * doc/aria2c.1.txt
  342. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  343. Updated doc
  344. * src/version_usage.cc
  345. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  346. Winsock select() doesn't work if no socket is in FD_SET. To
  347. overcome this problem, a dummy socket is added to FD_SET and it is
  348. given to select().
  349. * src/SelectEventPoll.cc
  350. * src/SelectEventPoll.h
  351. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  352. Disabled --use-head option by default because --use-head=true
  353. causes problems on some web sites.
  354. * src/OptionHandlerFactory.cc
  355. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  356. Print URL List in -S option for torrent.
  357. * src/bittorrent_helper.cc
  358. * src/bittorrent_helper.h
  359. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  360. Allocate buffer in ctor of DownloadCommand.
  361. * src/DownloadCommand.cc
  362. * src/DownloadCommand.h
  363. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  364. Removed DiskAdaptor::onDownloadComplete()
  365. * src/DirectDiskAdaptor.cc
  366. * src/DirectDiskAdaptor.h
  367. * src/DiskAdaptor.h
  368. * src/MultiDiskAdaptor.cc
  369. * src/MultiDiskAdaptor.h
  370. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  371. Committed missing BtStopDownloadCommand.{cc,h}
  372. * src/BtStopDownloadCommand.cc
  373. * src/BtStopDownloadCommand.h
  374. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  375. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  376. download if the download speed is 0 and the number of seeder is 0
  377. in consecutive SEC seconds. By default, this function is disabled.
  378. * src/BtSetup.cc
  379. * src/Makefile.am
  380. * src/OptionHandlerFactory.cc
  381. * src/prefs.cc
  382. * src/prefs.h
  383. * src/usage_text.h
  384. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  385. Removed the call to DiskAdaptor::onDownloadComplete() from
  386. BtCheckIntegrityEntry and DefaultPieceStorage.
  387. * src/BtCheckIntegrityEntry.cc
  388. * src/DefaultPieceStorage.cc
  389. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  390. Commented out throw statements when number of piece is 0 to
  391. download 0 length torrent.
  392. * src/bittorrent_helper.cc
  393. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  394. Call RequestGroup::createNextCommandWithAdj() from
  395. BtFileAllocationEntry if at least one FileEntry has URI. The
  396. static function hasAssociatedUri in RequestGroup.cc is renamed as
  397. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  398. * src/BtFileAllocationEntry.cc
  399. * src/FileEntry.h
  400. * src/RequestGroup.cc
  401. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  402. Generate peer ID after SimpleRandomizer is initialized.
  403. * src/main.cc
  404. * src/option_processing.cc
  405. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  406. Removed unused method argument.
  407. * src/CreateRequestCommand.cc
  408. * src/RequestGroup.cc
  409. * src/RequestGroup.h
  410. * src/RequestGroupMan.cc
  411. * src/TrackerWatcherCommand.cc
  412. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  413. Made URI reusing function work.
  414. * src/CreateRequestCommand.cc
  415. * src/FileEntry.cc
  416. * src/FileEntry.h
  417. * test/FileEntryTest.cc
  418. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  419. Add formerly fastest PeerStat's sessionDownloadLength to new
  420. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  421. bytes in a session.
  422. * src/PeerStat.cc
  423. * src/SegmentMan.cc
  424. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  425. If pipelining is enabled, we can always pool socket.
  426. * src/HttpDownloadCommand.cc
  427. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  428. In a single file download, file size becomes known just after
  429. downloading, set total length to FileEntry object when download
  430. completed.
  431. * src/DownloadCommand.cc
  432. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  433. Use std::vector::reserve() for fileEntries and pieceHashes in
  434. bittorrent_helper
  435. * src/bittorrent_helper.cc
  436. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  437. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  438. Removed hidden option PREF_RESET_URI.
  439. * src/AbstractCommand.cc
  440. * src/OptionHandlerFactory.cc
  441. * src/prefs.cc
  442. * src/prefs.h
  443. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  444. Removed unused variable/function.
  445. * src/PeerStat.h
  446. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  447. Show first URL in Download Results if file path is not available.
  448. * src/FileEntry.h
  449. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  450. Throw exception if file path doesn't exist in FTP URL.
  451. * src/InitiateConnectionCommandFactory.cc
  452. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  453. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  454. * src/BitfieldMan.cc
  455. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  456. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  457. of PeerStat in SegmentMan. peerStats is used for calculating
  458. download speed. Therefore all active PeerStats should be in
  459. there. Another one is _fastestPeerStats and it only contains
  460. fastest PeerStat for each hostname/protocol pair. They are used
  461. for updating ServerStat.
  462. * src/DownloadCommand.cc
  463. * src/Request.h
  464. * src/RequestGroupMan.cc
  465. * src/SegmentMan.cc
  466. * src/SegmentMan.h
  467. * test/SegmentManTest.cc
  468. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  469. Try all available addresses returned by DNS until it gets
  470. connected in HTTP(S)/FTP download
  471. * src/AbstractCommand.cc
  472. * src/AbstractCommand.h
  473. * src/AbstractProxyRequestCommand.cc
  474. * src/AbstractProxyRequestCommand.h
  475. * src/DNSCache.h
  476. * src/DownloadEngine.cc
  477. * src/DownloadEngine.h
  478. * src/FtpInitiateConnectionCommand.cc
  479. * src/FtpInitiateConnectionCommand.h
  480. * src/FtpNegotiationCommand.cc
  481. * src/FtpNegotiationCommand.h
  482. * src/HttpInitiateConnectionCommand.cc
  483. * src/HttpInitiateConnectionCommand.h
  484. * src/HttpRequestCommand.cc
  485. * src/HttpRequestCommand.h
  486. * src/InitiateConnectionCommand.cc
  487. * src/InitiateConnectionCommand.h
  488. * test/DNSCacheTest.cc
  489. * test/Makefile.am
  490. * test/SimpleDNSCacheTest.cc
  491. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  492. Updated doc
  493. * src/download_helper.cc
  494. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  495. Refactored fieldMan ctor.
  496. * src/BitfieldMan.cc
  497. * src/BitfieldMan.h
  498. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  499. Don't print "No files to download." message if -S is given.
  500. * src/main.cc
  501. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  502. Set referer and method to newly created Request object.
  503. * src/CreateRequestCommand.cc
  504. * src/FileEntry.cc
  505. * src/FileEntry.h
  506. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  507. Removed ctor of AbstractCommand which doesn't take FileEntry.
  508. * src/AbstractCommand.cc
  509. * src/AbstractCommand.h
  510. * src/CreateRequestCommand.cc
  511. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  512. Get proxy download working
  513. * src/AbstractProxyRequestCommand.cc
  514. * src/AbstractProxyRequestCommand.h
  515. * src/AbstractProxyResponseCommand.cc
  516. * src/AbstractProxyResponseCommand.h
  517. * src/FtpInitiateConnectionCommand.cc
  518. * src/FtpTunnelRequestCommand.cc
  519. * src/FtpTunnelRequestCommand.h
  520. * src/FtpTunnelResponseCommand.cc
  521. * src/FtpTunnelResponseCommand.h
  522. * src/HttpInitiateConnectionCommand.cc
  523. * src/HttpProxyRequestCommand.cc
  524. * src/HttpProxyRequestCommand.h
  525. * src/HttpProxyResponseCommand.cc
  526. * src/HttpProxyResponseCommand.h
  527. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  528. Use SegmentMan::getSegment(cuid) for single file download.
  529. * src/AbstractCommand.cc
  530. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  531. Fixed bufSize calculation
  532. * src/DownloadCommand.cc
  533. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  534. Don't append "/" if base URI ends with "/".
  535. * src/bittorrent_helper.cc
  536. * test/url-list-multiFile.torrent
  537. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  538. HTTP pipelining is now working. Fixed Segmention fault in
  539. BitfieldMan's copy ctor.
  540. * src/AbstractCommand.cc
  541. * src/BitfieldMan.cc
  542. * src/BitfieldMan.h
  543. * src/DownloadCommand.cc
  544. * src/HttpDownloadCommand.cc
  545. * src/HttpRequest.cc
  546. * src/SegmentMan.cc
  547. * src/SegmentMan.h
  548. * test/BitfieldManTest.cc
  549. * test/SegmentManTest.cc
  550. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  551. Removed ServerHost. Same functionality is implemented using
  552. FileEntry's in-flight Request objects.
  553. * src/AbstractCommand.cc
  554. * src/BtDependency.cc
  555. * src/CreateRequestCommand.cc
  556. * src/FileEntry.cc
  557. * src/FileEntry.h
  558. * src/FtpNegotiationCommand.cc
  559. * src/HttpResponseCommand.cc
  560. * src/Makefile.am
  561. * src/Metalink2RequestGroup.cc
  562. * src/RequestGroup.cc
  563. * src/RequestGroup.h
  564. * src/ServerHost.cc: Removed
  565. * src/ServerHost.h: Removed
  566. * test/BtDependencyTest.cc
  567. * test/FileEntryTest.cc
  568. * test/RequestGroupTest.cc
  569. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  570. Rewritten PeerStat handling. In the previous implementation,
  571. faster command tries to find slower command. In this new
  572. implementation, slower command tries to find faster command.
  573. PeerStat is now created in each HTTP/FTP request to get download
  574. rate correctly. If the download range is small, the download rate
  575. tends to small and this will occur at the later stage of download.
  576. * src/AbstractCommand.cc
  577. * src/DownloadCommand.cc
  578. * src/FileEntry.cc
  579. * src/FileEntry.h
  580. * src/Request.cc
  581. * src/Request.h
  582. * src/RequestGroup.h
  583. * src/RequestGroupMan.cc
  584. * src/SegmentMan.cc
  585. * src/SegmentMan.h
  586. * test/SegmentManTest.cc
  587. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  588. Removed _uris from RequestGroup. All functions that refer to _uris
  589. were moved to FileEntry. Exit status code are now defined in
  590. DownloadResultCode.h.
  591. * src/AbstractCommand.cc
  592. * src/AdaptiveURISelector.cc
  593. * src/AdaptiveURISelector.h
  594. * src/AutoSaveCommand.cc
  595. * src/BtPostDownloadHandler.cc
  596. * src/CheckIntegrityDispatcherCommand.cc
  597. * src/CookieStorage.cc
  598. * src/DHTAutoSaveCommand.cc
  599. * src/DHTBucketRefreshCommand.cc
  600. * src/DHTEntryPointNameResolveCommand.cc
  601. * src/DHTInteractionCommand.cc
  602. * src/DHTPeerAnnounceCommand.cc
  603. * src/DHTTokenUpdateCommand.cc
  604. * src/DlAbortEx.h
  605. * src/DlRetryEx.h
  606. * src/DownloadCommand.cc
  607. * src/DownloadContext.h
  608. * src/DownloadFailureException.h
  609. * src/DownloadResult.h
  610. * src/DownloadResultCode.h
  611. * src/FeedbackURISelector.cc
  612. * src/FeedbackURISelector.h
  613. * src/FileEntry.cc
  614. * src/FileEntry.h
  615. * src/FtpNegotiationCommand.cc
  616. * src/HttpListenCommand.cc
  617. * src/HttpResponseCommand.cc
  618. * src/HttpServerResponseCommand.cc
  619. * src/HttpSkipResponseCommand.cc
  620. * src/InOrderURISelector.cc
  621. * src/InOrderURISelector.h
  622. * src/Makefile.am
  623. * src/Makefile.in
  624. * src/Metalink2RequestGroup.cc
  625. * src/MultiUrlRequestInfo.cc
  626. * src/MultiUrlRequestInfo.h
  627. * src/OptionHandlerFactory.cc
  628. * src/PeerListenCommand.cc
  629. * src/RecoverableException.h
  630. * src/RequestGroup.cc
  631. * src/RequestGroup.h
  632. * src/RequestGroupMan.cc
  633. * src/RequestGroupMan.h
  634. * src/TimedHaltCommand.cc
  635. * src/TrackerWatcherCommand.cc
  636. * src/URIResult.cc
  637. * src/URIResult.h
  638. * src/URISelector.h
  639. * src/XmlRpcMethodImpl.cc
  640. * src/bittorrent_helper.cc
  641. * src/bittorrent_helper.h
  642. * src/download_helper.cc
  643. * src/main.cc
  644. * src/option_processing.cc
  645. * test/BtDependencyTest.cc
  646. * test/BtPostDownloadHandlerTest.cc
  647. * test/CookieStorageTest.cc
  648. * test/DefaultBtMessageDispatcherTest.cc
  649. * test/DownloadHandlerFactoryTest.cc
  650. * test/DownloadHelperTest.cc
  651. * test/FeedbackURISelectorTest.cc
  652. * test/FileEntryTest.cc
  653. * test/InOrderURISelectorTest.cc
  654. * test/Metalink2RequestGroupTest.cc
  655. * test/MetalinkPostDownloadHandlerTest.cc
  656. * test/RequestGroupManTest.cc
  657. * test/RequestGroupTest.cc
  658. * test/XmlRpcMethodTest.cc
  659. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  660. Removed MockBtContext.h
  661. * test/Makefile.am
  662. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  663. Removed _currentRequest from StreamCheckIntegrityEntry and
  664. StreamFileAllocationEntry.
  665. * src/AbstractCommand.cc
  666. * src/HttpResponseCommand.cc
  667. * src/RequestGroup.cc
  668. * src/StreamCheckIntegrityEntry.cc
  669. * src/StreamCheckIntegrityEntry.h
  670. * src/StreamFileAllocationEntry.cc
  671. * src/StreamFileAllocationEntry.h
  672. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  673. Rewritten DownloadContext and removed SingleFileDownloadContext
  674. and BtContext and its derived classes. BitTorrent specific
  675. attributes are now set by DownloadContext::setAttribute() with key
  676. bittorrent::BITTORRENT.
  677. * src/AbstractBtMessage.cc
  678. * src/AbstractBtMessage.h
  679. * src/AbstractCommand.cc
  680. * src/AbstractCommand.h
  681. * src/AbstractProxyRequestCommand.cc
  682. * src/AbstractProxyResponseCommand.cc
  683. * src/ActivePeerConnectionCommand.cc
  684. * src/ActivePeerConnectionCommand.h
  685. * src/AnnounceList.cc
  686. * src/BtCheckIntegrityEntry.cc
  687. * src/BtConstants.h
  688. * src/BtContext.h: Removed
  689. * src/BtDependency.cc
  690. * src/BtExtendedMessage.cc
  691. * src/BtPieceMessage.cc
  692. * src/BtPieceMessage.h
  693. * src/BtPostDownloadHandler.cc
  694. * src/BtRegistry.cc
  695. * src/BtRegistry.h
  696. * src/BtSetup.cc
  697. * src/CheckIntegrityCommand.cc
  698. * src/CheckIntegrityEntry.cc
  699. * src/ChecksumCheckIntegrityEntry.cc
  700. * src/ConsoleStatCalc.cc
  701. * src/ContentTypeRequestGroupCriteria.cc
  702. * src/DHTGetPeersCommand.cc
  703. * src/DHTGetPeersCommand.h
  704. * src/DHTPeerLookupTask.cc
  705. * src/DHTPeerLookupTask.h
  706. * src/DHTTaskFactory.h
  707. * src/DHTTaskFactoryImpl.cc
  708. * src/DHTTaskFactoryImpl.h
  709. * src/DefaultBtAnnounce.cc
  710. * src/DefaultBtAnnounce.h
  711. * src/DefaultBtContext.cc: Removed
  712. * src/DefaultBtContext.h: Removed
  713. * src/DefaultBtInteractive.cc
  714. * src/DefaultBtInteractive.h
  715. * src/DefaultBtMessageDispatcher.cc
  716. * src/DefaultBtMessageDispatcher.h
  717. * src/DefaultBtMessageFactory.cc
  718. * src/DefaultBtMessageFactory.h
  719. * src/DefaultBtMessageReceiver.cc
  720. * src/DefaultBtMessageReceiver.h
  721. * src/DefaultBtProgressInfoFile.cc
  722. * src/DefaultBtRequestFactory.cc
  723. * src/DefaultBtRequestFactory.h
  724. * src/DefaultExtensionMessageFactory.cc
  725. * src/DefaultExtensionMessageFactory.h
  726. * src/DefaultPeerStorage.cc
  727. * src/DefaultPeerStorage.h
  728. * src/DefaultPieceStorage.cc
  729. * src/DefaultSegmentManFactory.cc
  730. * src/DiskAdaptor.cc
  731. * src/DiskAdaptor.h
  732. * src/DownloadContext.cc
  733. * src/DownloadContext.h
  734. * src/DownloadEngine.cc
  735. * src/DownloadEngineFactory.cc
  736. * src/DownloadHandler.cc
  737. * src/DownloadResult.h
  738. * src/FileAllocationCommand.cc
  739. * src/FileAllocationDispatcherCommand.cc
  740. * src/FileAllocationEntry.cc
  741. * src/FileEntry.h
  742. * src/FillRequestGroupCommand.cc
  743. * src/FtpDownloadCommand.cc
  744. * src/FtpFinishDownloadCommand.cc
  745. * src/FtpInitiateConnectionCommand.cc
  746. * src/FtpNegotiationCommand.cc
  747. * src/FtpTunnelRequestCommand.cc
  748. * src/FtpTunnelResponseCommand.cc
  749. * src/HandshakeExtensionMessage.cc
  750. * src/HandshakeExtensionMessage.h
  751. * src/HaveEraseCommand.cc
  752. * src/HttpDownloadCommand.cc
  753. * src/HttpInitiateConnectionCommand.cc
  754. * src/HttpProxyRequestCommand.cc
  755. * src/HttpProxyResponseCommand.cc
  756. * src/HttpRequest.cc
  757. * src/HttpRequest.h
  758. * src/HttpRequestCommand.cc
  759. * src/HttpResponseCommand.cc
  760. * src/HttpServerBodyCommand.cc
  761. * src/HttpServerCommand.cc
  762. * src/HttpSkipResponseCommand.cc
  763. * src/InitiateConnectionCommandFactory.cc
  764. * src/InitiatorMSEHandshakeCommand.cc
  765. * src/InitiatorMSEHandshakeCommand.h
  766. * src/IteratableChecksumValidator.cc
  767. * src/IteratableChecksumValidator.h
  768. * src/IteratableChunkChecksumValidator.cc
  769. * src/MSEHandshake.cc
  770. * src/MSEHandshake.h
  771. * src/Makefile.am
  772. * src/Makefile.in
  773. * src/Metalink2RequestGroup.cc
  774. * src/MetalinkPostDownloadHandler.cc
  775. * src/MultiDiskAdaptor.cc
  776. * src/MultiDiskAdaptor.h
  777. * src/MultiFileAllocationIterator.cc
  778. * src/MultiUrlRequestInfo.cc
  779. * src/PeerChokeCommand.cc
  780. * src/PeerChokeCommand.h
  781. * src/PeerInitiateConnectionCommand.cc
  782. * src/PeerInitiateConnectionCommand.h
  783. * src/PeerInteractionCommand.cc
  784. * src/PeerInteractionCommand.h
  785. * src/PeerReceiveHandshakeCommand.cc
  786. * src/PieceHashCheckIntegrityEntry.cc
  787. * src/RealtimeCommand.cc
  788. * src/ReceiverMSEHandshakeCommand.cc
  789. * src/RequestGroup.cc
  790. * src/RequestGroup.h
  791. * src/RequestGroupEntry.cc
  792. * src/RequestGroupMan.cc
  793. * src/SeedCheckCommand.cc
  794. * src/SeedCheckCommand.h
  795. * src/SegmentMan.cc
  796. * src/ShareRatioSeedCriteria.h
  797. * src/SingleFileDownloadContext.cc: Removed
  798. * src/SingleFileDownloadContext.h: Removed
  799. * src/SleepCommand.cc
  800. * src/StreamCheckIntegrityEntry.cc
  801. * src/TrackerWatcherCommand.cc
  802. * src/TrackerWatcherCommand.h
  803. * src/UnknownLengthPieceStorage.cc
  804. * src/Util.cc
  805. * src/Util.h
  806. * src/XmlRpcMethodImpl.cc
  807. * src/bittorrent_helper.cc
  808. * src/bittorrent_helper.h
  809. * src/download_helper.cc
  810. * src/main.cc
  811. * src/option_processing.cc
  812. * test/BitfieldManTest.cc
  813. * test/BittorrentHelperTest.cc
  814. * test/BtCancelMessageTest.cc
  815. * test/BtChokeMessageTest.cc
  816. * test/BtDependencyTest.cc
  817. * test/BtPieceMessageTest.cc
  818. * test/BtPostDownloadHandlerTest.cc
  819. * test/BtRegistryTest.cc
  820. * test/BtRejectMessageTest.cc
  821. * test/BtRequestMessageTest.cc
  822. * test/DHTPeerAnnounceStorageTest.cc
  823. * test/DefaultBtAnnounceTest.cc
  824. * test/DefaultBtContextTest.cc: Removed
  825. * test/DefaultBtMessageDispatcherTest.cc
  826. * test/DefaultBtMessageFactoryTest.cc
  827. * test/DefaultBtProgressInfoFileTest.cc
  828. * test/DefaultBtRequestFactoryTest.cc
  829. * test/DefaultExtensionMessageFactoryTest.cc
  830. * test/DefaultPeerStorageTest.cc
  831. * test/DefaultPieceStorageTest.cc
  832. * test/DirectDiskAdaptorTest.cc
  833. * test/DownloadContextTest.cc
  834. * test/DownloadHandlerFactoryTest.cc
  835. * test/DownloadHelperTest.cc
  836. * test/HandshakeExtensionMessageTest.cc
  837. * test/HttpRequestTest.cc
  838. * test/HttpResponseTest.cc
  839. * test/IteratableChecksumValidatorTest.cc
  840. * test/IteratableChunkChecksumValidatorTest.cc
  841. * test/MSEHandshakeTest.cc
  842. * test/Makefile.am
  843. * test/Makefile.in
  844. * test/Metalink2RequestGroupTest.cc
  845. * test/MetalinkPostDownloadHandlerTest.cc
  846. * test/MockBtContext.h: Removed
  847. * test/MockDHTTaskFactory.h
  848. * test/MockDownloadContext.h: Removed
  849. * test/MockPieceStorage.h
  850. * test/MultiDiskAdaptorTest.cc
  851. * test/MultiFileAllocationIteratorTest.cc
  852. * test/RequestGroupManTest.cc
  853. * test/RequestGroupTest.cc
  854. * test/SegmentManTest.cc
  855. * test/ShareRatioSeedCriteriaTest.cc
  856. * test/SingleFileDownloadContextTest.cc: Removed
  857. * test/UtilTest.cc
  858. * test/XmlRpcMethodTest.cc
  859. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  860. Added experimental support of WEB-Seeding for multi-file torrent.
  861. Due to fundamental changes in file handling in HTTP/FTP code, many
  862. functions are not working: PeerStat, ServerHost, proxy..etc
  863. * src/AbstractCommand.cc
  864. * src/AbstractCommand.h
  865. * src/BitfieldMan.cc
  866. * src/BitfieldMan.h
  867. * src/CreateRequestCommand.cc
  868. * src/CreateRequestCommand.h
  869. * src/DefaultPieceStorage.cc
  870. * src/DefaultPieceStorage.h
  871. * src/DownloadCommand.cc
  872. * src/DownloadCommand.h
  873. * src/DownloadContext.cc
  874. * src/DownloadContext.h
  875. * src/FileEntry.cc
  876. * src/FileEntry.h
  877. * src/FtpDownloadCommand.cc
  878. * src/FtpDownloadCommand.h
  879. * src/FtpFinishDownloadCommand.cc
  880. * src/FtpFinishDownloadCommand.h
  881. * src/FtpInitiateConnectionCommand.cc
  882. * src/FtpInitiateConnectionCommand.h
  883. * src/FtpNegotiationCommand.cc
  884. * src/FtpNegotiationCommand.h
  885. * src/FtpTunnelResponseCommand.cc
  886. * src/HttpDownloadCommand.cc
  887. * src/HttpDownloadCommand.h
  888. * src/HttpInitiateConnectionCommand.cc
  889. * src/HttpInitiateConnectionCommand.h
  890. * src/HttpProxyResponseCommand.cc
  891. * src/HttpRequest.cc
  892. * src/HttpRequest.h
  893. * src/HttpRequestCommand.cc
  894. * src/HttpRequestCommand.h
  895. * src/HttpResponseCommand.cc
  896. * src/HttpResponseCommand.h
  897. * src/HttpSkipResponseCommand.cc
  898. * src/HttpSkipResponseCommand.h
  899. * src/InitiateConnectionCommand.cc
  900. * src/InitiateConnectionCommand.h
  901. * src/InitiateConnectionCommandFactory.cc
  902. * src/InitiateConnectionCommandFactory.h
  903. * src/Makefile.am
  904. * src/PieceStorage.h
  905. * src/RequestGroup.cc
  906. * src/RequestGroup.h
  907. * src/RequestGroupMan.cc
  908. * src/SegmentMan.cc
  909. * src/SegmentMan.h
  910. * src/SingleFileDownloadContext.h
  911. * src/StreamFileAllocationEntry.cc
  912. * src/TrackerWatcherCommand.cc
  913. * src/UnknownLengthPieceStorage.cc
  914. * src/UnknownLengthPieceStorage.h
  915. * src/array_fun.h
  916. * src/bitfield.h
  917. * src/download_helper.cc
  918. * test/DownloadContextTest.cc
  919. * test/Makefile.am
  920. * test/MockDownloadContext.h
  921. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  922. Added tellWaiting XML-RPC method.
  923. * src/SingleFileDownloadContext.cc
  924. * src/XmlRpcMethodFactory.cc
  925. * src/XmlRpcMethodImpl.cc
  926. * src/XmlRpcMethodImpl.h
  927. * test/XmlRpcMethodTest.cc
  928. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  929. Updated CookieStorageTest
  930. * test/CookieStorageTest.cc
  931. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  932. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  933. handle excepion inside these functions.
  934. * src/LibgnutlsTLSContext.cc
  935. * src/LibgnutlsTLSContext.h
  936. * src/LibsslTLSContext.cc
  937. * src/LibsslTLSContext.h
  938. * src/MultiUrlRequestInfo.cc
  939. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  940. Added comment
  941. * src/RequestGroup.cc
  942. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  943. In CookieStorage::load() and saveNsFormat(), handle exception
  944. inside the functions. When saving Cookies, first write temporary
  945. file and after successful writes, then renames it to final
  946. destination.
  947. * src/CookieStorage.cc
  948. * src/CookieStorage.h
  949. * src/MultiUrlRequestInfo.cc
  950. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  951. The default value of --dir option is the absolute path to the
  952. current directory. If getcwd() is failed, then it is ".", which is
  953. the same value with old implementation. This change is necessary
  954. because after daemon() call, the current working directory is
  955. changed to /.
  956. * src/File.cc
  957. * src/File.h
  958. * src/OptionHandlerFactory.cc
  959. * src/option_processing.cc
  960. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  961. Call daemon() with arguments(0,0), which means daemon() changes
  962. current working directory to / and redirects stdin, stdout and
  963. stderr to /dev/null.
  964. * src/option_processing.cc
  965. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  966. Small performance optimizations.
  967. * src/RequestGroupMan.cc
  968. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  969. Added _xmlRpc member variable to RequestGroupMan to reduce the
  970. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  971. * src/RequestGroupMan.cc
  972. * src/RequestGroupMan.h
  973. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  974. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  975. setNoWiat(true) if newly created command calls
  976. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  977. * src/HttpListenCommand.cc
  978. * src/HttpServerBodyCommand.cc
  979. * src/HttpServerCommand.cc
  980. * src/HttpServerResponseCommand.cc
  981. * src/InitiateConnectionCommand.cc
  982. * src/RequestGroup.cc
  983. * src/StreamFileAllocationEntry.cc
  984. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  985. Removed include vector
  986. * src/BtRegistry.h
  987. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  988. Rewritten BtRegistry
  989. * src/BtRegistry.cc
  990. * src/BtRegistry.h
  991. * src/BtSetup.cc
  992. * src/ConsoleStatCalc.cc
  993. * src/PeerInteractionCommand.cc
  994. * src/PeerReceiveHandshakeCommand.cc
  995. * src/ReceiverMSEHandshakeCommand.cc
  996. * src/RequestGroup.cc
  997. * src/XmlRpcMethodImpl.cc
  998. * test/BtRegistryTest.cc
  999. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1000. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  1001. * src/DefaultBtProgressInfoFile.cc
  1002. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1003. Throw an exception if position is less than 0.
  1004. * src/XmlRpcMethodImpl.cc
  1005. * test/XmlRpcMethodTest.cc
  1006. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1007. Use writeFilePath() in ConsoleStatCalc.cc
  1008. * src/ConsoleStatCalc.cc
  1009. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1010. Receive the return value as const reference from
  1011. DownloadContext::getFileEntries().
  1012. * src/DefaultPieceStorage.cc
  1013. * src/RequestGroupMan.cc
  1014. * src/XmlRpcMethodImpl.cc
  1015. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1016. DownloadContext now has _fileEntries so that
  1017. DownloadContext::getFileEntries() can returns its const reference.
  1018. * src/DefaultBtContext.cc
  1019. * src/DefaultBtContext.h
  1020. * src/DownloadContext.cc
  1021. * src/DownloadContext.h
  1022. * src/SingleFileDownloadContext.cc
  1023. * src/SingleFileDownloadContext.h
  1024. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1025. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  1026. writeFilePath() function template from RequestGroupMan.cc to
  1027. FileEntry.h
  1028. * src/FileEntry.h
  1029. * src/RequestGroupMan.cc
  1030. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1031. Documented 'position' parameter is starting from 0 in man page.
  1032. * doc/aria2c.1.txt
  1033. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1034. Updated doc.
  1035. * src/MSEHandshake.cc
  1036. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1037. Removed _acceptFeatures and its accessor functions from
  1038. RequestGroup since they are not used practically.
  1039. * src/HttpRequestCommand.cc
  1040. * src/RequestGroup.cc
  1041. * src/RequestGroup.h
  1042. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1043. Removed member _maxTries from RequestGroup class to avoid
  1044. duplicate option value. Those classes who refer this variable
  1045. should use option value of PREF_MAX_TRIES directly.
  1046. * src/AbstractCommand.cc
  1047. * src/RequestGroup.cc
  1048. * src/RequestGroup.h
  1049. * src/TrackerWatcherCommand.cc
  1050. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1051. * Release 1.4.1
  1052. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1053. Fixed compiler warnings on netbsd
  1054. * src/DHTConnectionImpl.cc
  1055. * src/PeerListenCommand.cc
  1056. * src/PeerSessionResource.cc
  1057. * src/SegmentMan.cc
  1058. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1059. Updated Ukrainian translation. Thanks to all translators.
  1060. * po/uk.po
  1061. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1062. Bump up version number to 1.4.1.
  1063. * configure.ac
  1064. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1065. Added unit tests for strjoin, strconcat and strappend.
  1066. * test/a2functionalTest.cc
  1067. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1068. Rewritten strconcat and strappend using operator+ instead of
  1069. append().
  1070. * src/a2functional.h
  1071. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1072. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  1073. is enabled.
  1074. * src/Makefile.am
  1075. * test/Makefile.am
  1076. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1077. Added countSeeder() function which counts seeder in the given
  1078. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  1079. * src/ConsoleStatCalc.cc
  1080. * src/Peer.h
  1081. * src/XmlRpcMethodImpl.cc
  1082. * test/PeerTest.cc
  1083. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1084. Documented missing seeder in getPeers xml-rpc method.
  1085. Documented uploadLength and numSeeders.
  1086. * doc/aria2c.1.txt
  1087. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1088. Added uploadLength and numSeeders to the response of tellStatus
  1089. xml-rpc method. Assert that PeerStorage instance is not null
  1090. instead of checking if statement. It should be non-null in this
  1091. context.
  1092. * src/XmlRpcMethodImpl.cc
  1093. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1094. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  1095. * src/XmlRpcResponse.cc
  1096. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1097. Avoid intermediate object during string concatenation.
  1098. * src/HttpRequest.cc
  1099. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1100. Added strjoin function template. Use it in pathJoin()
  1101. * src/Util.h
  1102. * src/a2functional.h
  1103. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1104. Avoid intermediate object during string concatenation. Replaced
  1105. post-increment unary operator with pre-increment one in for loop.
  1106. * src/AdaptiveURISelector.cc
  1107. * src/AnnounceList.cc
  1108. * src/AuthConfig.h
  1109. * src/BtBitfieldMessage.cc
  1110. * src/BtExtendedMessage.cc
  1111. * src/BtHandshakeMessage.cc
  1112. * src/BtPieceMessage.cc
  1113. * src/BtPortMessage.cc
  1114. * src/Cookie.cc
  1115. * src/DHTAnnouncePeerMessage.cc
  1116. * src/DHTAutoSaveCommand.cc
  1117. * src/DHTGetPeersReplyMessage.cc
  1118. * src/DHTNode.cc
  1119. * src/DHTQueryMessage.cc
  1120. * src/DHTResponseMessage.cc
  1121. * src/DHTUnknownMessage.cc
  1122. * src/DefaultBtAnnounce.cc
  1123. * src/DefaultBtContext.cc
  1124. * src/DefaultBtInteractive.cc
  1125. * src/DefaultBtProgressInfoFile.cc
  1126. * src/DefaultPeerStorage.cc
  1127. * src/DownloadEngine.cc
  1128. * src/FeatureConfig.cc
  1129. * src/File.cc
  1130. * src/FtpConnection.cc
  1131. * src/FtpNegotiationCommand.cc
  1132. * src/HandshakeExtensionMessage.cc
  1133. * src/HttpConnection.cc
  1134. * src/HttpRequest.cc
  1135. * src/HttpResponseCommand.cc
  1136. * src/HttpServer.cc
  1137. * src/IndexBtMessage.cc
  1138. * src/Metalink2RequestGroup.cc
  1139. * src/OptionHandlerImpl.h
  1140. * src/PStringBuildVisitor.cc
  1141. * src/Peer.cc
  1142. * src/PeerListenCommand.cc
  1143. * src/Piece.cc
  1144. * src/RangeBtMessage.cc
  1145. * src/Request.cc
  1146. * src/Request.h
  1147. * src/RequestGroup.cc
  1148. * src/RequestGroupMan.cc
  1149. * src/ServerStat.cc
  1150. * src/ServerStatMan.cc
  1151. * src/UTPexExtensionMessage.cc
  1152. * src/Util.cc
  1153. * src/a2functional.h
  1154. * src/download_helper.cc
  1155. * src/messageDigest.cc
  1156. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1157. Unchoke a peer randomly at first and second choke round in seed
  1158. state.
  1159. * src/BtSeederStateChoke.cc
  1160. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  1161. Added (sock_t) to quiet compiler warnings in MinGW
  1162. * src/SocketCore.cc
  1163. * src/SocketCore.h
  1164. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1165. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  1166. * src/EpollEventPoll.h
  1167. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  1168. Added fork() emulation using CreateProcess() in MinGW
  1169. * src/RequestGroupMan.cc
  1170. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1171. * Release 1.4.0
  1172. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1173. Added utf8.torrent to EXTRA_DIST
  1174. * test/Makefile.am
  1175. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1176. Fixed docs of aria2.addMetalink xml-rpc method.
  1177. * doc/aria2c.1.txt
  1178. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1179. Added Slovak translation. Updated Ukrainian and Brazilian
  1180. Portuguese translation. Thanks to all translators.
  1181. * po/sk.po
  1182. * po/uk.po
  1183. * po/pt_BR.po
  1184. * po/LINGUAS
  1185. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1186. Added test case for XmlRpcProcessor to fail to parse malformed
  1187. document.
  1188. * test/XmlRpcRequestProcessorTest.cc
  1189. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1190. Removed *.gmo files in po because they are generated on 'make
  1191. dist'
  1192. * po/*.gmo
  1193. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1194. Documented max-concurrent-downloads of changeGlobalOption method
  1195. in man page.
  1196. * doc/aria2c.1.txt
  1197. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1198. Added max-concurrent-downloads option to changeGlobalOption
  1199. xml-rpc method. Rewritten loop conditional in
  1200. RequestGroupMan::fillRequestGroupFromReserver().
  1201. * src/RequestGroupMan.cc
  1202. * src/RequestGroupMan.h
  1203. * src/XmlRpcMethod.cc
  1204. * src/XmlRpcMethodImpl.cc
  1205. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1206. Documented position parameter in man page.
  1207. * doc/aria2c.1.txt
  1208. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1209. Added 'position' parameter to addUri, addTorrent and addMetalink
  1210. xml-rpc method.
  1211. * src/RequestGroupMan.cc
  1212. * src/RequestGroupMan.h
  1213. * src/XmlRpcMethodImpl.cc
  1214. * test/XmlRpcMethodTest.cc
  1215. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1216. Removed Peer.cc from compile source list when --disable-bittorrent
  1217. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  1218. takes Peer.
  1219. * src/DefaultPieceStorage.cc
  1220. * src/DefaultPieceStorage.h
  1221. * src/Makefile.am
  1222. * src/PieceStorage.h
  1223. * src/UnknownLengthPieceStorage.cc
  1224. * src/UnknownLengthPieceStorage.h
  1225. * test/MockPieceStorage.h
  1226. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1227. Implemented getter methods in header files to give them more
  1228. chance of optimization.
  1229. Return const reference for SharadHandle if possible.
  1230. * src/AbstractAuthResolver.cc
  1231. * src/AbstractAuthResolver.h
  1232. * src/AbstractBtMessage.cc
  1233. * src/AbstractBtMessage.h
  1234. * src/AbstractSingleDiskAdaptor.cc
  1235. * src/AbstractSingleDiskAdaptor.h
  1236. * src/AsyncNameResolver.cc
  1237. * src/AsyncNameResolver.h
  1238. * src/BNode.cc
  1239. * src/BNode.h
  1240. * src/BitfieldMan.cc
  1241. * src/BitfieldMan.h
  1242. * src/BtAbortOutstandingRequestEvent.h
  1243. * src/BtExtendedMessage.cc
  1244. * src/BtExtendedMessage.h
  1245. * src/BtSeederStateChoke.cc
  1246. * src/BtSeederStateChoke.h
  1247. * src/Cookie.cc
  1248. * src/Cookie.h
  1249. * src/DHTBucket.cc
  1250. * src/DHTBucket.h
  1251. * src/DHTConnectionImpl.cc
  1252. * src/DHTConnectionImpl.h
  1253. * src/DHTFindNodeReplyMessage.cc
  1254. * src/DHTFindNodeReplyMessage.h
  1255. * src/DHTGetPeersReplyMessage.cc
  1256. * src/DHTGetPeersReplyMessage.h
  1257. * src/DHTInteractionCommand.cc
  1258. * src/DHTMessage.cc
  1259. * src/DHTMessage.h
  1260. * src/DHTMessageDispatcherImpl.cc
  1261. * src/DHTMessageEntry.cc
  1262. * src/DHTMessageReceiver.cc
  1263. * src/DHTMessageReceiver.h
  1264. * src/DHTMessageTrackerEntry.cc
  1265. * src/DHTMessageTrackerEntry.h
  1266. * src/DHTPeerAnnounceEntry.cc
  1267. * src/DHTPeerAnnounceEntry.h
  1268. * src/DHTPeerLookupTask.cc
  1269. * src/DHTPeerLookupTask.h
  1270. * src/DHTRoutingTableDeserializer.cc
  1271. * src/DHTRoutingTableDeserializer.h
  1272. * src/DefaultBtAnnounce.cc
  1273. * src/DefaultBtAnnounce.h
  1274. * src/DefaultBtMessageDispatcher.cc
  1275. * src/DefaultBtMessageDispatcher.h
  1276. * src/DefaultBtRequestFactory.cc
  1277. * src/DefaultBtRequestFactory.h
  1278. * src/DiskAdaptor.cc
  1279. * src/DiskAdaptor.h
  1280. * src/DownloadContext.cc
  1281. * src/DownloadContext.h
  1282. * src/DownloadEngine.cc
  1283. * src/DownloadEngine.h
  1284. * src/EpollEventPoll.cc
  1285. * src/EpollEventPoll.h
  1286. * src/FtpConnection.cc
  1287. * src/FtpConnection.h
  1288. * src/HttpConnection.cc
  1289. * src/HttpConnection.h
  1290. * src/HttpHeader.cc
  1291. * src/HttpHeader.h
  1292. * src/HttpRequest.cc
  1293. * src/HttpRequest.h
  1294. * src/HttpResponse.cc
  1295. * src/HttpResponse.h
  1296. * src/LibsslTLSContext.cc
  1297. * src/LibsslTLSContext.h
  1298. * src/MSEHandshake.cc
  1299. * src/MSEHandshake.h
  1300. * src/MetalinkEntry.cc
  1301. * src/MetalinkEntry.h
  1302. * src/MetalinkParserController.cc
  1303. * src/MetalinkParserController.h
  1304. * src/MetalinkParserStateMachine.cc
  1305. * src/MetalinkParserStateMachine.h
  1306. * src/MultiDiskAdaptor.cc
  1307. * src/MultiDiskAdaptor.h
  1308. * src/NetrcAuthResolver.cc
  1309. * src/NetrcAuthResolver.h
  1310. * src/Peer.cc
  1311. * src/Peer.h
  1312. * src/PeerSessionResource.cc
  1313. * src/PeerSessionResource.h
  1314. * src/Piece.cc
  1315. * src/Piece.h
  1316. * src/PieceStatMan.cc
  1317. * src/PieceStatMan.h
  1318. * src/Request.cc
  1319. * src/Request.h
  1320. * src/RequestGroup.cc
  1321. * src/RequestGroup.h
  1322. * src/RequestGroupMan.cc
  1323. * src/RequestGroupMan.h
  1324. * src/RequestSlot.cc
  1325. * src/RequestSlot.h
  1326. * src/SegmentMan.cc
  1327. * src/SegmentMan.h
  1328. * src/SelectEventPoll.cc
  1329. * src/SelectEventPoll.h
  1330. * src/ServerStat.cc
  1331. * src/ServerStat.h
  1332. * src/Signature.cc
  1333. * src/Signature.h
  1334. * src/URIResult.cc
  1335. * src/URIResult.h
  1336. * src/UTPexExtensionMessage.cc
  1337. * src/UTPexExtensionMessage.h
  1338. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1339. Fixed compile error without BitTorrent and Metalink support.
  1340. * src/XmlRpcMethod.cc
  1341. * src/XmlRpcMethodFactory.cc
  1342. * src/XmlRpcMethodImpl.cc
  1343. * src/XmlRpcMethodImpl.h
  1344. * test/XmlRpcMethodTest.cc
  1345. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1346. Rewritten the help message for --allow-overwrite option.
  1347. * doc/aria2c.1.txt
  1348. * src/usage_text.h
  1349. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1350. Fixed typo
  1351. * doc/aria2c.1.txt
  1352. * src/usage_text.h
  1353. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1354. Updated README for 1.4.0 release. Use new table syntax of
  1355. asciidoc.
  1356. * README
  1357. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1358. Documented --xml-rpc-max-request-size option in man page.
  1359. * doc/aria2c.1.txt
  1360. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1361. Moved C_* constants from BtContext to DefaultBtContext.
  1362. * src/BtContext.cc: Removed.
  1363. * src/BtContext.h
  1364. * src/DefaultBtContext.cc
  1365. * src/DefaultBtContext.h
  1366. * src/Makefile.am
  1367. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1368. Use name.utf-8 and path.utf-8 key in higher priority than name and
  1369. path key respectively when persing .torrent file.
  1370. * src/BtContext.cc
  1371. * src/BtContext.h
  1372. * src/DefaultBtContext.cc
  1373. * test/DefaultBtContextTest.cc
  1374. * test/utf8.torrent
  1375. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1376. Added --xml-rpc-max-request-size option to limit the size of
  1377. XML-RPC request.
  1378. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1379. Documented XML-RPC API in man page.
  1380. * doc/aria2c.1.txt
  1381. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1382. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  1383. will break strict-aliasing rules
  1384. * src/PeerConnection.cc
  1385. * test/DHTRoutingTableSerializerTest.cc
  1386. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1387. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  1388. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  1389. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  1390. PKG_CHECK_MODULES macro uses latter name.
  1391. * m4/sqlite3.m4
  1392. * src/Makefile.am
  1393. * test/Makefile.am
  1394. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1395. Fixed typo
  1396. * configure.ac
  1397. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1398. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  1399. presence of libgnutls using pkg-config first. If it fails, fall
  1400. back to old macro libgnutls.m4.
  1401. * configure.ac
  1402. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1403. Use s itself instead of !s.bad()
  1404. * src/CookieStorage.cc
  1405. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1406. Documented --on-download-* option and --save-cookies option in man
  1407. page.
  1408. * doc/aria2c.1.txt
  1409. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1410. Set possible values for --load-cookie option to "/path/to/file".
  1411. * src/OptionHandlerFactory.cc
  1412. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1413. Added --save-cookies option.
  1414. * src/Cookie.cc
  1415. * src/Cookie.h
  1416. * src/CookieStorage.cc
  1417. * src/CookieStorage.h
  1418. * src/MultiUrlRequestInfo.cc
  1419. * src/OptionHandlerFactory.cc
  1420. * src/prefs.cc
  1421. * src/prefs.h
  1422. * src/usage_text.h
  1423. * test/CookieStorageTest.cc
  1424. * test/CookieTest.cc
  1425. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1426. Removed tellAll XML-RPC command because its reponse tends to be
  1427. big if stopped/waiting downloads pile up.
  1428. * src/XmlRpcMethodFactory.cc
  1429. * src/XmlRpcMethodImpl.cc
  1430. * src/XmlRpcMethodImpl.h
  1431. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1432. Added the ability to execute command when download starts and
  1433. stops. You can also specify command for particular cases such as
  1434. complete/error download. Added --on-download-start,
  1435. --on-download-stop, --on-download-complete and --on-download-error
  1436. option.
  1437. * src/OptionHandlerFactory.cc
  1438. * src/RequestGroupMan.cc
  1439. * src/prefs.cc
  1440. * src/prefs.h
  1441. * src/usage_text.h
  1442. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1443. Fixed test error
  1444. * test/BencodeTest.cc
  1445. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1446. Added unit tests.
  1447. * test/XmlRpcMethodTest.cc
  1448. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1449. Made exception message more verbose.
  1450. * src/bencode.cc
  1451. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1452. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  1453. space in console readout. Also they are now shown in MiB/s if
  1454. speed > 1024KiB/s.
  1455. * src/ConsoleStatCalc.cc
  1456. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1457. Added SEED to console output, which represents the number of
  1458. seeders currently the client is connecting to.
  1459. * src/ConsoleStatCalc.cc
  1460. * src/ConsoleStatCalc.h
  1461. * src/DownloadEngine.cc
  1462. * src/NullStatCalc.h
  1463. * src/StatCalc.h
  1464. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1465. Added source filename(__FILE__) and line number(__LINE__) to
  1466. exception message.
  1467. * src/AbstractCommand.cc
  1468. * src/AbstractDiskWriter.cc
  1469. * src/AbstractProxyResponseCommand.cc
  1470. * src/BDE.h
  1471. * src/BtAllowedFastMessage.cc
  1472. * src/BtHandshakeMessageValidator.h
  1473. * src/BtHaveAllMessage.cc
  1474. * src/BtHaveNoneMessage.cc
  1475. * src/BtPieceMessage.cc
  1476. * src/BtRejectMessage.cc
  1477. * src/ChunkedDecoder.cc
  1478. * src/CookieStorage.cc
  1479. * src/DHTAnnouncePeerMessage.cc
  1480. * src/DHTEntryPointNameResolveCommand.cc
  1481. * src/DHTMessageFactoryImpl.cc
  1482. * src/DHTMessageTracker.cc
  1483. * src/DHTRoutingTableDeserializer.cc
  1484. * src/DHTRoutingTableSerializer.cc
  1485. * src/DHTSetup.cc
  1486. * src/DHTTokenTracker.cc
  1487. * src/DefaultBtAnnounce.cc
  1488. * src/DefaultBtContext.cc
  1489. * src/DefaultBtInteractive.cc
  1490. * src/DefaultBtMessageFactory.cc
  1491. * src/DefaultBtProgressInfoFile.cc
  1492. * src/DefaultExtensionMessageFactory.cc
  1493. * src/DlAbortEx.h
  1494. * src/DlRetryEx.h
  1495. * src/DownloadCommand.cc
  1496. * src/DownloadEngineFactory.cc
  1497. * src/DownloadFailureException.h
  1498. * src/Exception.cc
  1499. * src/Exception.h
  1500. * src/ExpatMetalinkProcessor.cc
  1501. * src/ExpatXmlRpcRequestProcessor.cc
  1502. * src/FallocFileAllocationIterator.cc
  1503. * src/FatalException.h
  1504. * src/FtpConnection.cc
  1505. * src/FtpFinishDownloadCommand.cc
  1506. * src/FtpInitiateConnectionCommand.cc
  1507. * src/FtpNegotiationCommand.cc
  1508. * src/GZipDecoder.cc
  1509. * src/HandshakeExtensionMessage.cc
  1510. * src/HttpConnection.cc
  1511. * src/HttpHeaderProcessor.cc
  1512. * src/HttpInitiateConnectionCommand.cc
  1513. * src/HttpResponse.cc
  1514. * src/HttpResponseCommand.cc
  1515. * src/HttpServer.cc
  1516. * src/HttpSkipResponseCommand.cc
  1517. * src/InitiateConnectionCommandFactory.cc
  1518. * src/IteratableChunkChecksumValidator.cc
  1519. * src/LibgcryptARC4Context.h
  1520. * src/LibgcryptARC4Decryptor.h
  1521. * src/LibgcryptARC4Encryptor.h
  1522. * src/LibgcryptDHKeyExchange.h
  1523. * src/LibgnutlsTLSContext.cc
  1524. * src/LibsslARC4Context.h
  1525. * src/LibsslARC4Decryptor.h
  1526. * src/LibsslARC4Encryptor.h
  1527. * src/LibsslDHKeyExchange.h
  1528. * src/LibsslTLSContext.cc
  1529. * src/MSEHandshake.cc
  1530. * src/MessageDigestHelper.cc
  1531. * src/MetalinkHelper.cc
  1532. * src/MultiDiskAdaptor.cc
  1533. * src/NameMatchOptionHandler.h
  1534. * src/NameResolver.cc
  1535. * src/Netrc.cc
  1536. * src/NsCookieParser.cc
  1537. * src/OptionHandlerException.cc
  1538. * src/OptionHandlerException.h
  1539. * src/OptionHandlerImpl.h
  1540. * src/OptionParser.cc
  1541. * src/ParameterizedStringParser.cc
  1542. * src/PeerAbstractCommand.cc
  1543. * src/PeerConnection.cc
  1544. * src/PeerMessageUtil.cc
  1545. * src/PeerReceiveHandshakeCommand.cc
  1546. * src/Platform.cc
  1547. * src/ReceiverMSEHandshakeCommand.cc
  1548. * src/RecoverableException.h
  1549. * src/RequestGroup.cc
  1550. * src/SimpleLogger.cc
  1551. * src/SocketCore.cc
  1552. * src/Sqlite3MozCookieParser.cc
  1553. * src/UTPexExtensionMessage.cc
  1554. * src/Util.cc
  1555. * src/XML2SAXMetalinkProcessor.cc
  1556. * src/Xml2XmlRpcRequestProcessor.cc
  1557. * src/XmlRpcMethodImpl.cc
  1558. * src/bencode.cc
  1559. * src/download_helper.cc
  1560. * src/messageDigest.h
  1561. * test/ExceptionTest.cc
  1562. * test/TestUtil.cc
  1563. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1564. Bump up version number to 1.4.0
  1565. * configure.ac
  1566. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1567. Added 2files.metalink to EXTRA_DIST
  1568. * test/Makefile.am
  1569. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1570. Added missing 2files.metalink
  1571. * test/2files.metalink
  1572. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1573. Show "[MEMORY]" prefix before filename in download summary if it
  1574. is downloaded into memory.
  1575. * src/DownloadResult.h
  1576. * src/RequestGroup.cc
  1577. * src/RequestGroupMan.cc
  1578. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1579. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  1580. * src/ExpatXmlRpcRequestProcessor.cc
  1581. * src/Xml2XmlRpcRequestProcessor.cc
  1582. * src/message.h
  1583. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1584. Defined const BDEs to avoid duplicate instantiation.
  1585. Defined MSG_GID_NOT_PROVIDED.
  1586. * src/XmlRpcMethodImpl.cc
  1587. * src/message.h
  1588. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1589. Code cleanup
  1590. * src/Xml2XmlRpcRequestProcessor.cc
  1591. * src/Xml2XmlRpcRequestProcessor.h
  1592. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1593. Defined ENABLE_XML_RPC
  1594. * configure.ac
  1595. * configure
  1596. * config.h.in
  1597. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1598. Added ExpatXmlRpcRequestProcessor
  1599. * src/ExpatXmlRpcRequestProcessor.cc
  1600. * src/ExpatXmlRpcRequestProcessor.h
  1601. * src/Makefile.am
  1602. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1603. Added tests for addTorrent and addMetalink command.
  1604. * test/TestUtil.cc
  1605. * test/TestUtil.h
  1606. * test/XmlRpcMethodTest.cc
  1607. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1608. Corrected the description of --file-allocation option.
  1609. * doc/aria2c.1.txt
  1610. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1611. Added tellAll command.
  1612. * src/XmlRpcMethodFactory.cc
  1613. * src/XmlRpcMethodImpl.cc
  1614. * src/XmlRpcMethodImpl.h
  1615. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1616. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  1617. * src/XmlRpcMethodImpl.cc
  1618. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1619. Added changeGlobalOption command. Currently,
  1620. max-overall-download-limit and max-overall-upload-limit option are
  1621. available.
  1622. * src/RequestGroupMan.h
  1623. * src/XmlRpcMethod.cc
  1624. * src/XmlRpcMethod.h
  1625. * src/XmlRpcMethodFactory.cc
  1626. * src/XmlRpcMethodImpl.cc
  1627. * src/XmlRpcMethodImpl.h
  1628. * test/XmlRpcMethodTest.cc
  1629. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1630. Added changeOption command. Currently, max-download-limit,
  1631. max-upload-limit option are available in this command.
  1632. * src/RequestGroup.h
  1633. * src/XmlRpcMethod.cc
  1634. * src/XmlRpcMethod.h
  1635. * src/XmlRpcMethodFactory.cc
  1636. * src/XmlRpcMethodImpl.cc
  1637. * src/XmlRpcMethodImpl.h
  1638. * test/XmlRpcMethodTest.cc
  1639. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1640. Added purgeDownloadResult command.
  1641. * src/RequestGroupMan.cc
  1642. * src/RequestGroupMan.h
  1643. * src/XmlRpcMethodFactory.cc
  1644. * src/XmlRpcMethodImpl.cc
  1645. * src/XmlRpcMethodImpl.h
  1646. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1647. Refactored.
  1648. * src/XmlRpcMethod.cc
  1649. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1650. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  1651. XmlRpcResponse.
  1652. * src/HttpServerBodyCommand.cc
  1653. * src/Makefile.am
  1654. * src/XmlRpcMethod.cc
  1655. * src/XmlRpcMethod.h
  1656. * src/XmlRpcMethodImpl.cc
  1657. * src/XmlRpcResponse.cc
  1658. * src/XmlRpcResponse.h
  1659. * test/XmlRpcMethodTest.cc
  1660. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1661. In XML-RPC option struct, header and index-out option can take
  1662. array as value.
  1663. * src/XmlRpcMethod.cc
  1664. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1665. Removed unused option member from PeerConnection.
  1666. * src/InitiatorMSEHandshakeCommand.cc
  1667. * src/PeerConnection.cc
  1668. * src/PeerConnection.h
  1669. * src/PeerInteractionCommand.cc
  1670. * src/PeerReceiveHandshakeCommand.cc
  1671. * src/ReceiverMSEHandshakeCommand.cc
  1672. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1673. Added "seeder" key to getPeers response.
  1674. * src/XmlRpcMethodImpl.cc
  1675. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1676. Added addMetalink XML-RPC command.
  1677. * src/XmlRpcMethodFactory.cc
  1678. * src/XmlRpcMethodImpl.cc
  1679. * src/XmlRpcMethodImpl.h
  1680. * src/download_helper.cc
  1681. * src/download_helper.h
  1682. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1683. Fixed the bug that POU peers are never choked in seeding.
  1684. * src/BtSeederStateChoke.cc
  1685. * src/BtSeederStateChoke.h
  1686. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1687. Added web-seeding URI handling in addTorrent command.
  1688. * src/XmlRpcMethodImpl.cc
  1689. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1690. Added "length" key to getFiles response.
  1691. * src/XmlRpcMethodImpl.cc
  1692. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1693. Moved --no-netrc option from ftp option section to http/ftp option
  1694. section.
  1695. * doc/aria2c.1.txt
  1696. * src/OptionHandlerFactory.cc
  1697. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1698. Removed garbage "\" character before '
  1699. * doc/aria2c.1.txt
  1700. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1701. Removed garbage "\" character before http.
  1702. * doc/aria2c.1.txt
  1703. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1704. Documented additional options that can be specified in -i list.
  1705. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  1706. and --xml-rpc-passwd. Removed --enable-http-server and
  1707. --http-server-listen-port.
  1708. * doc/aria2c.1.txt
  1709. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1710. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  1711. * src/DefaultPeerStorage.cc
  1712. * src/DefaultPeerStorage.h
  1713. * src/PeerStorage.h
  1714. * src/XmlRpcMethodImpl.cc
  1715. * test/MockPeerStorage.h
  1716. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1717. Put a call to Socket::isReadable() in try block.
  1718. * src/HttpServerBodyCommand.cc
  1719. * src/HttpServerCommand.cc
  1720. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1721. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  1722. exception , so it is now in try block.
  1723. * src/HttpServerResponseCommand.cc
  1724. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1725. Added "amChoking" and "peerChoking" key in getPeers response.
  1726. * src/XmlRpcMethodImpl.cc
  1727. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1728. Added test case for zero-length filter.
  1729. * test/BitfieldManTest.cc
  1730. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1731. getFiles command now returns file data for finished/stopped
  1732. downloads.
  1733. * src/XmlRpcMethodImpl.cc
  1734. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1735. DownloadResult now has the list of FileEntry. The download
  1736. summary displays the path of first selected file and the number of
  1737. remaining files for multi-file torrent.
  1738. * src/DownloadResult.h
  1739. * src/RequestGroup.cc
  1740. * src/RequestGroupMan.cc
  1741. * test/RequestGroupTest.cc
  1742. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1743. Fixed segmentation fault error when no file is selected in
  1744. multi-file torrent.
  1745. * src/BitfieldMan.cc
  1746. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1747. Escaped <,>,& character in XML-RPC response.
  1748. * src/XmlRpcMethod.cc
  1749. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1750. Throw DlAbortEx instead of FatalException during parsing options
  1751. because we don't want for aria2 to quit when bad option is passed
  1752. via XML-RPC.
  1753. * src/OptionHandlerException.cc
  1754. * src/OptionHandlerException.h
  1755. * src/OptionHandlerImpl.h
  1756. * src/OptionParser.cc
  1757. * src/OptionParser.h
  1758. * src/PStringSegment.cc
  1759. * src/ParameterizedStringParser.cc
  1760. * src/download_helper.cc
  1761. * test/ParameterizedStringParserTest.cc
  1762. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1763. Selecting files are now done in
  1764. DefaultBtContext::setFileFileter().
  1765. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  1766. functions are removed because they are no longer used. Creating
  1767. filter in BitfieldMan is done in new funtion
  1768. PieceStorage::setupFileFilter()
  1769. * src/BtContext.cc
  1770. * src/BtContext.h
  1771. * src/DefaultBtContext.cc
  1772. * src/DefaultBtContext.h
  1773. * src/DefaultPieceStorage.cc
  1774. * src/DefaultPieceStorage.h
  1775. * src/DiskAdaptor.cc
  1776. * src/DiskAdaptor.h
  1777. * src/PieceStorage.h
  1778. * src/RequestGroup.cc
  1779. * src/UnknownLengthPieceStorage.h
  1780. * src/XmlRpcMethodImpl.cc
  1781. * test/DefaultBtContextTest.cc
  1782. * test/MockBtContext.h
  1783. * test/MockPieceStorage.h
  1784. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1785. Fixed compile error on Mac OS X
  1786. * src/HttpServer.cc
  1787. * src/XmlRpcMethod.h
  1788. * src/XmlRpcMethodImpl.cc
  1789. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1790. Use std::binary_search instead of std::find
  1791. * src/DefaultPieceStorage.cc
  1792. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1793. Removed unnecessary BDE() call; leave them to implicit conversion.
  1794. * src/XmlRpcMethodImpl.cc
  1795. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1796. Return connections and gid in string
  1797. * src/XmlRpcMethodImpl.cc
  1798. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1799. Renamed addURI as addUri
  1800. * src/XmlRpcMethodFactory.cc
  1801. * src/XmlRpcMethodImpl.cc
  1802. * src/XmlRpcMethodImpl.h
  1803. * test/XmlRpcMethodTest.cc
  1804. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1805. Renamed addTorrentFile as addTorrent
  1806. * src/XmlRpcMethodFactory.cc
  1807. * src/XmlRpcMethodImpl.cc
  1808. * src/XmlRpcMethodImpl.h
  1809. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1810. The information for files, URIs, peers are removed from the
  1811. reponse of TellaActive, TellStatus command because they tend to be
  1812. large. Instead they can be retrieved by the dedicated commands:
  1813. getFiles, getUris and getPeers respectively.
  1814. * src/XmlRpcMethodFactory.cc
  1815. * src/XmlRpcMethodImpl.cc
  1816. * src/XmlRpcMethodImpl.h
  1817. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1818. Removed --max-overall-upload-limit and
  1819. --max-overall-download-limit option from listRequestOptions.
  1820. * src/download_helper.cc
  1821. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1822. Log incoming host in HttpListenCommand.
  1823. * src/HttpListenCommand.cc
  1824. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1825. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  1826. --xml-rpc-passwd option.
  1827. * src/HttpServer.cc
  1828. * src/HttpServer.h
  1829. * src/HttpServerCommand.cc
  1830. * src/OptionHandlerFactory.cc
  1831. * src/prefs.cc
  1832. * src/prefs.h
  1833. * src/usage_text.h
  1834. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1835. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  1836. processing 0 length request.
  1837. * src/HttpServerBodyCommand.cc
  1838. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1839. Removed --enable-http-server and --http-server-listen-port
  1840. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  1841. instead. The original feature for --enable-http-server that
  1842. reports download progress in HTML was officially removed. Persist
  1843. XML-RPC connection if client supports keep-alive.
  1844. * src/DownloadEngineFactory.cc
  1845. * src/HttpServerCommand.cc
  1846. * src/HttpServerResponseCommand.cc
  1847. * src/Makefile.am
  1848. * src/Makefile.in
  1849. * src/OptionHandlerFactory.cc
  1850. * src/RequestGroupMan.cc
  1851. * src/main.cc
  1852. * src/option_processing.cc
  1853. * src/prefs.cc
  1854. * src/prefs.h
  1855. * src/usage_text.h
  1856. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1857. Added "uris" key to the response of tellStatus command. Added
  1858. "connections" key to the response of tellStatus and tellActive
  1859. command.
  1860. * src/XmlRpcMethodImpl.cc
  1861. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1862. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  1863. Added TellStatusXmlRpcMethod. Remove command can now remove
  1864. waiting RequestGroup.
  1865. * src/RequestGroupMan.cc
  1866. * src/RequestGroupMan.h
  1867. * src/XmlRpcMethodFactory.cc
  1868. * src/XmlRpcMethodImpl.cc
  1869. * src/XmlRpcMethodImpl.h
  1870. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1871. Initialized _peerId
  1872. * src/Peer.cc
  1873. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1874. Return fault structure for error. FailXmlRpcMethod is renamed as
  1875. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  1876. in non-torrent download. Return single param value.
  1877. * src/XmlRpcMethod.cc
  1878. * src/XmlRpcMethodFactory.cc
  1879. * src/XmlRpcMethodImpl.cc
  1880. * src/XmlRpcMethodImpl.h
  1881. * test/XmlRpcMethodTest.cc
  1882. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1883. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  1884. command.
  1885. * src/RequestGroup.cc
  1886. * src/RequestGroup.h
  1887. * src/RequestGroupMan.cc
  1888. * src/XmlRpcMethodImpl.cc
  1889. * test/RequestGroupTest.cc
  1890. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1891. Added more options that can be specified in -i list and xml-rpc
  1892. add* command.
  1893. * src/download_helper.h
  1894. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1895. The available options in -i list should be listed in
  1896. listRequestOptions().
  1897. * src/download_helper.cc
  1898. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1899. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  1900. command.
  1901. * src/XmlRpcMethodImpl.cc
  1902. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1903. Now RequestGroup has its own copy of Option object. This will help
  1904. to give custom option for each RequestGroup.
  1905. addTorrentFile command now takes options.
  1906. * src/AbstractCommand.cc
  1907. * src/AbstractCommand.h
  1908. * src/AbstractProxyRequestCommand.cc
  1909. * src/ActivePeerConnectionCommand.cc
  1910. * src/ActivePeerConnectionCommand.h
  1911. * src/AdaptiveURISelector.cc
  1912. * src/BtCheckIntegrityEntry.cc
  1913. * src/BtDependency.cc
  1914. * src/BtDependency.h
  1915. * src/BtFileAllocationEntry.cc
  1916. * src/BtPostDownloadHandler.cc
  1917. * src/CheckIntegrityEntry.cc
  1918. * src/DownloadCommand.cc
  1919. * src/FtpDownloadCommand.cc
  1920. * src/FtpFinishDownloadCommand.cc
  1921. * src/FtpInitiateConnectionCommand.cc
  1922. * src/FtpNegotiationCommand.cc
  1923. * src/HttpInitiateConnectionCommand.cc
  1924. * src/HttpRequestCommand.cc
  1925. * src/HttpResponseCommand.cc
  1926. * src/HttpSkipResponseCommand.cc
  1927. * src/InitiateConnectionCommand.cc
  1928. * src/InitiateConnectionCommandFactory.cc
  1929. * src/InitiatorMSEHandshakeCommand.cc
  1930. * src/InitiatorMSEHandshakeCommand.h
  1931. * src/Metalink2RequestGroup.cc
  1932. * src/Metalink2RequestGroup.h
  1933. * src/MetalinkPostDownloadHandler.cc
  1934. * src/MultiUrlRequestInfo.cc
  1935. * src/MultiUrlRequestInfo.h
  1936. * src/PeerAbstractCommand.cc
  1937. * src/PeerInteractionCommand.cc
  1938. * src/PeerInteractionCommand.h
  1939. * src/PeerReceiveHandshakeCommand.cc
  1940. * src/PeerReceiveHandshakeCommand.h
  1941. * src/RequestGroup.cc
  1942. * src/RequestGroup.h
  1943. * src/TrackerWatcherCommand.cc
  1944. * src/TrackerWatcherCommand.h
  1945. * src/XmlRpcMethod.cc
  1946. * src/XmlRpcMethod.h
  1947. * src/XmlRpcMethodImpl.cc
  1948. * src/download_helper.cc
  1949. * src/download_helper.h
  1950. * src/main.cc
  1951. * test/BtDependencyTest.cc
  1952. * test/BtPostDownloadHandlerTest.cc
  1953. * test/DefaultBtMessageDispatcherTest.cc
  1954. * test/DownloadHandlerFactoryTest.cc
  1955. * test/DownloadHelperTest.cc
  1956. * test/Metalink2RequestGroupTest.cc
  1957. * test/MetalinkPostDownloadHandlerTest.cc
  1958. * test/RequestGroupManTest.cc
  1959. * test/RequestGroupTest.cc
  1960. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1961. Added tellActiveStatus xml-rpc command which reports download
  1962. status of active downloads.
  1963. * src/XmlRpcMethodFactory.cc
  1964. * src/XmlRpcMethodImpl.cc
  1965. * src/XmlRpcMethodImpl.h
  1966. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1967. Added addTorrentFile xml-rpc command which receives uploaded
  1968. torrent file and add download for it.
  1969. * src/RequestGroupMan.cc
  1970. * src/XmlRpcMethodFactory.cc
  1971. * src/XmlRpcMethodImpl.cc
  1972. * src/XmlRpcMethodImpl.h
  1973. * src/download_helper.cc
  1974. * src/download_helper.h
  1975. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1976. Added remove xml-rpc command which removes specified download.
  1977. There is a known issue: the removed unfinished downloads are
  1978. reported ERR when aria2 exits. They should be reported as INPR.
  1979. * src/RequestGroupMan.cc
  1980. * src/RequestGroupMan.h
  1981. * src/XmlRpcMethodFactory.cc
  1982. * src/XmlRpcMethodImpl.cc
  1983. * src/XmlRpcMethodImpl.h
  1984. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1985. If --enable-http-server is enabled, don't stop aria2 when all
  1986. download finished and don't quit when no files to download at
  1987. start up.
  1988. * src/RequestGroupMan.cc
  1989. * src/main.cc
  1990. * src/option_processing.cc
  1991. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1992. Added missing AM_CONDITIONAL
  1993. * configure.ac
  1994. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1995. Added xml-rpc functionality. Currently only addURI commad is
  1996. supported. To enable xml-rpc, run aria2 with
  1997. --enable-http-server. This option name is temporal and will be
  1998. changed. The feature that reports download progress in html format
  1999. is temporarily disabled.
  2000. * src/HttpServer.cc
  2001. * src/HttpServer.h
  2002. * src/HttpServerBodyCommand.cc
  2003. * src/HttpServerBodyCommand.h
  2004. * src/HttpServerCommand.cc
  2005. * src/HttpServerResponseCommand.cc
  2006. * src/Makefile.am
  2007. * src/OptionParser.cc
  2008. * src/OptionParser.h
  2009. * src/RequestGroupMan.cc
  2010. * src/RequestGroupMan.h
  2011. * src/XmlRpcMethod.cc
  2012. * src/XmlRpcMethod.h
  2013. * src/XmlRpcMethodFactory.cc
  2014. * src/XmlRpcMethodFactory.h
  2015. * src/XmlRpcMethodImpl.cc
  2016. * src/XmlRpcMethodImpl.h
  2017. * src/download_helper.cc
  2018. * src/download_helper.h
  2019. * test/Makefile.am
  2020. * test/XmlRpcMethodTest.cc
  2021. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2022. Added xml-rpc request parser. The supported value types are:
  2023. i4/int, string, double, struct, array, base64. Currently only
  2024. libxml2 version is provided.
  2025. * src/Xml2XmlRpcRequestProcessor.cc
  2026. * src/Xml2XmlRpcRequestProcessor.h
  2027. * src/XmlRpcElements.cc
  2028. * src/XmlRpcElements.h
  2029. * src/XmlRpcRequest.h
  2030. * src/XmlRpcRequestParserController.cc
  2031. * src/XmlRpcRequestParserController.h
  2032. * src/XmlRpcRequestParserState.h
  2033. * src/XmlRpcRequestParserStateImpl.cc
  2034. * src/XmlRpcRequestParserStateImpl.h
  2035. * src/XmlRpcRequestParserStateMachine.cc
  2036. * src/XmlRpcRequestParserStateMachine.h
  2037. * src/XmlRpcRequestProcessor.h
  2038. * test/XmlRpcRequestParserControllerTest.cc
  2039. * test/XmlRpcRequestProcessorTest.cc
  2040. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2041. * Release 1.3.3
  2042. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2043. Fixed compile error since r1202.
  2044. * src/ExpatMetalinkProcessor.cc
  2045. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2046. Updated Ukrainian, Russian and Simplified Chinese
  2047. translations. Thanks to all translators.
  2048. * po/ru.po
  2049. * po/uk.po
  2050. * po/zh_CN.po
  2051. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2052. Pass reference of Option object instead of pointer.
  2053. * src/download_helper.cc
  2054. * src/download_helper.h
  2055. * src/main.cc
  2056. * test/DownloadHelperTest.cc
  2057. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2058. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  2059. from option directly. Instead, get them from RequestGroup.
  2060. * src/ActivePeerConnectionCommand.cc
  2061. * src/ActivePeerConnectionCommand.h
  2062. * src/PeerReceiveHandshakeCommand.cc
  2063. * src/RequestGroup.h
  2064. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2065. Removed unused uploadLimitCheck and uploadLimit from
  2066. PeerAbstractCommand. Removed unused maxDownloadLimit from
  2067. PeerInteractionCommand.
  2068. * src/PeerAbstractCommand.cc
  2069. * src/PeerAbstractCommand.h
  2070. * src/PeerInteractionCommand.cc
  2071. * src/PeerInteractionCommand.h
  2072. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2073. Fixed broken file renaming feature since r1202.
  2074. * src/FtpNegotiationCommand.cc
  2075. * src/FtpNegotiationCommand.h
  2076. * src/HttpResponseCommand.cc
  2077. * src/RequestGroup.cc
  2078. * src/RequestGroup.h
  2079. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2080. Removed unused debug log
  2081. * src/SocketCore.cc
  2082. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2083. Generated configure and Makefile.in using autoconf 2.63 and
  2084. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  2085. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  2086. * configure.ac
  2087. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2088. Moved piece statistics stuff to new PieceStatMan class.
  2089. Refactored PieceSelector interface.
  2090. * src/DefaultPieceStorage.cc
  2091. * src/DefaultPieceStorage.h
  2092. * src/LongestSequencePieceSelector.cc
  2093. * src/LongestSequencePieceSelector.h
  2094. * src/Makefile.am
  2095. * src/PieceSelector.h
  2096. * src/PieceStatMan.cc
  2097. * src/PieceStatMan.h
  2098. * src/RarestPieceSelector.cc
  2099. * src/RarestPieceSelector.h
  2100. * src/RequestGroup.cc
  2101. * test/DefaultPieceStorageTest.cc
  2102. * test/InOrderPieceSelector.h
  2103. * test/Makefile.am
  2104. * test/PieceStatManTest.cc
  2105. * test/RarestPieceSelectorTest.cc
  2106. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2107. Added static member _protocolFamily to SocketCore. By default,
  2108. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  2109. address. Sometime SocketCore::bind() and
  2110. SocketCore::establishConnection() use difference protocl family
  2111. and latter cannot connect to former. To avoid this situation, we
  2112. limit protocol family to AF_INET for unit tests.
  2113. * src/SocketCore.cc
  2114. * src/SocketCore.h
  2115. * test/AllTest.cc
  2116. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2117. Avoid std::bad_alloc for negative bencode string length.
  2118. * src/bencode.cc
  2119. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2120. Supported segmented downloading with chunked transfer encoding and
  2121. content-length.
  2122. * src/DownloadCommand.cc
  2123. * src/HttpResponseCommand.cc
  2124. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2125. Bump up version number to 1.3.3
  2126. * configure.ac
  2127. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2128. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  2129. from 4096 to 65536 (for insanely large ftp login banners)
  2130. * src/FtpConnection.h
  2131. * test/FtpConnectionTest.cc
  2132. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2133. In DefaultBtContext::getActualBasePath(), return first
  2134. FileEntry::getPath() for single file torrent.
  2135. * src/DefaultBtContext.cc
  2136. * test/DefaultBtContextTest.cc
  2137. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2138. Removed directIOAllowed() from BinaryStream, DiskWriter,
  2139. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  2140. Removed _directIOAllowed member from DiskWriter.
  2141. * src/AbstractDiskWriter.cc
  2142. * src/AbstractDiskWriter.h
  2143. * src/AbstractSingleDiskAdaptor.cc
  2144. * src/AbstractSingleDiskAdaptor.h
  2145. * src/BinaryStream.h
  2146. * src/ByteArrayDiskWriter.h
  2147. * src/DefaultPieceStorage.cc
  2148. * src/DiskWriter.h
  2149. * src/MultiDiskAdaptor.cc
  2150. * src/MultiDiskAdaptor.h
  2151. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2152. Now the constructor of AbstractDiskWriter takes filename as an
  2153. argument and filename argument is removed from openFile(),
  2154. initAndOpenFile(), openExistingFile() interface. storeDir member
  2155. and its accessor functions are removed from DiskAdaptor because it
  2156. is not used anymore. size() member function of DefaultDiskWriter,
  2157. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  2158. opening file.
  2159. * src/AbstractDiskWriter.cc
  2160. * src/AbstractDiskWriter.h
  2161. * src/AbstractSingleDiskAdaptor.cc
  2162. * src/AbstractSingleDiskAdaptor.h
  2163. * src/ByteArrayDiskWriter.cc
  2164. * src/ByteArrayDiskWriter.h
  2165. * src/ByteArrayDiskWriterFactory.cc
  2166. * src/ByteArrayDiskWriterFactory.h
  2167. * src/DefaultDiskWriter.cc
  2168. * src/DefaultDiskWriter.h
  2169. * src/DefaultDiskWriterFactory.cc
  2170. * src/DefaultDiskWriterFactory.h
  2171. * src/DefaultPieceStorage.cc
  2172. * src/DirectDiskAdaptor.cc
  2173. * src/DirectDiskAdaptor.h
  2174. * src/DiskAdaptor.h
  2175. * src/DiskWriter.h
  2176. * src/DiskWriterFactory.h
  2177. * src/MessageDigestHelper.cc
  2178. * src/MultiDiskAdaptor.cc
  2179. * src/RequestGroup.cc
  2180. * src/UnknownLengthPieceStorage.cc
  2181. * src/Util.cc
  2182. * test/DefaultDiskWriterTest.cc
  2183. * test/DirectDiskAdaptorTest.cc
  2184. * test/FallocFileAllocationIteratorTest.cc
  2185. * test/MessageDigestHelperTest.cc
  2186. * test/MetalinkProcessorTest.cc
  2187. * test/MultiDiskAdaptorTest.cc
  2188. * test/MultiFileAllocationIteratorTest.cc
  2189. * test/SingleFileAllocationIteratorTest.cc
  2190. * test/UtilTest.cc
  2191. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2192. Fixed the bug that aria2 aborts when --select-file is used. This
  2193. bug was introduced in r1199.
  2194. * src/MultiDiskAdaptor.cc
  2195. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2196. Code cleanup
  2197. * test/MockPieceStorage.cc
  2198. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2199. Fixed the bug that read-only file with wrong file size will cause
  2200. error because it cannot be truncated to the correct size. Now if
  2201. file size is different than the expected one, re-open file in
  2202. writable mode.
  2203. * src/AbstractSingleDiskAdaptor.cc
  2204. * src/AbstractSingleDiskAdaptor.h
  2205. * src/BtCheckIntegrityEntry.cc
  2206. * src/DiskAdaptor.h
  2207. * src/MultiDiskAdaptor.h
  2208. * src/RequestGroup.cc
  2209. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2210. Fixed the bug that with --check-integrity option aria2 reports
  2211. downloaded file size is 0 even if some parts of file is correctly
  2212. downloaded. This bug is reproducible for the download that a file
  2213. includes last piece is missing. This bug doesn't reveal for
  2214. single-torrent with file allocation on.
  2215. * src/IteratableChecksumValidator.cc
  2216. * test/IteratableChecksumValidatorTest.cc
  2217. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2218. Avoid circular reference between RequestGroup and AdaptiveURISelector
  2219. * src/RequestGroupMan.cc
  2220. * src/AdaptiveURISelector.cc
  2221. * src/AdaptiveURISelector.h
  2222. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2223. * Release 1.3.2
  2224. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2225. Updated README
  2226. * README
  2227. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2228. Updated Ukrainian translations. Thanks to Alexander10.
  2229. * po/uk.po
  2230. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2231. Code cleanup
  2232. * src/MetalinkParserStateMachine.cc
  2233. * src/MetalinkParserStateMachine.h
  2234. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2235. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  2236. and expat simultaneously, MetalinkProcessor is now not base class
  2237. and it is directly implemented in XML2SAXMetalinkProcessor and
  2238. ExpatMetalinkProcessor.
  2239. * src/ExpatMetalinkProcessor.cc
  2240. * src/ExpatMetalinkProcessor.h
  2241. * src/Makefile.am
  2242. * src/MetalinkHelper.cc
  2243. * src/MetalinkProcessor.h
  2244. * src/MetalinkProcessorFactory.cc: Removed.
  2245. * src/MetalinkProcessorFactory.h: Removed
  2246. * src/XML2SAXMetalinkProcessor.cc
  2247. * src/XML2SAXMetalinkProcessor.h
  2248. * test/MetalinkProcessorTest.cc
  2249. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2250. Bump up version number to 1.3.2
  2251. * configure.ac
  2252. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2253. Added missing file.
  2254. * test/Makefile.am
  2255. * test/url-list-singleFileEndsWithSlash.torrent
  2256. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2257. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  2258. request.
  2259. * src/AnnounceList.cc
  2260. * src/AnnounceList.h
  2261. * src/BDE.cc: Added
  2262. * src/BDE.h: Added
  2263. * src/DHTAbstractMessage.cc
  2264. * src/DHTAbstractMessage.h
  2265. * src/DHTAnnouncePeerMessage.cc
  2266. * src/DHTAnnouncePeerMessage.h
  2267. * src/DHTAnnouncePeerReplyMessage.cc
  2268. * src/DHTAnnouncePeerReplyMessage.h
  2269. * src/DHTFindNodeMessage.cc
  2270. * src/DHTFindNodeMessage.h
  2271. * src/DHTFindNodeReplyMessage.cc
  2272. * src/DHTFindNodeReplyMessage.h
  2273. * src/DHTGetPeersMessage.cc
  2274. * src/DHTGetPeersMessage.h
  2275. * src/DHTGetPeersReplyMessage.cc
  2276. * src/DHTGetPeersReplyMessage.h
  2277. * src/DHTMessageFactory.h
  2278. * src/DHTMessageFactoryImpl.cc
  2279. * src/DHTMessageFactoryImpl.h
  2280. * src/DHTMessageReceiver.cc
  2281. * src/DHTMessageTracker.cc
  2282. * src/DHTMessageTracker.h
  2283. * src/DHTPingMessage.cc
  2284. * src/DHTPingMessage.h
  2285. * src/DHTPingReplyMessage.cc
  2286. * src/DHTPingReplyMessage.h
  2287. * src/DHTQueryMessage.cc
  2288. * src/DHTQueryMessage.h
  2289. * src/DHTResponseMessage.cc
  2290. * src/DHTResponseMessage.h
  2291. * src/DefaultBtAnnounce.cc
  2292. * src/DefaultBtContext.cc
  2293. * src/DefaultBtContext.h
  2294. * src/HandshakeExtensionMessage.cc
  2295. * src/Makefile.am
  2296. * src/PeerListProcessor.h
  2297. * src/UTPexExtensionMessage.cc
  2298. * src/bencode.cc
  2299. * src/bencode.h
  2300. * test/AnnounceListTest.cc
  2301. * test/BDETest.cc: Added
  2302. * test/BencodeTest.cc
  2303. * test/DHTAnnouncePeerMessageTest.cc
  2304. * test/DHTAnnouncePeerReplyMessageTest.cc
  2305. * test/DHTFindNodeMessageTest.cc
  2306. * test/DHTFindNodeReplyMessageTest.cc
  2307. * test/DHTGetPeersMessageTest.cc
  2308. * test/DHTGetPeersReplyMessageTest.cc
  2309. * test/DHTMessageFactoryImplTest.cc
  2310. * test/DHTMessageTrackerTest.cc
  2311. * test/DHTPingMessageTest.cc
  2312. * test/DHTPingReplyMessageTest.cc
  2313. * test/Makefile.am
  2314. * test/MockDHTMessageFactory.h
  2315. * test/PeerListProcessorTest.cc
  2316. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2317. Use url-list (web-seeding) only for single-file torrent. This is
  2318. basically the same behavior with Metalink file with torrent and
  2319. URIs.
  2320. * src/RequestGroup.cc
  2321. * src/DefaultBtContext.cc
  2322. * test/DefaultBtContextTest.cc
  2323. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2324. Rewritten expr
  2325. * src/array_fun.h
  2326. * test/array_funTest.cc
  2327. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2328. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  2329. * src/DefaultBtMessageDispatcher.cc
  2330. * src/a2algo.h
  2331. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2332. Removed ExtendedMessagingAware. Instead of using inheritance,
  2333. added ExtensionMessageRegistry and it is passed to
  2334. DefaultExtensionMessageFactory.
  2335. * src/DefaultBtInteractive.cc
  2336. * src/DefaultBtInteractive.h
  2337. * src/DefaultExtensionMessageFactory.cc
  2338. * src/DefaultExtensionMessageFactory.h
  2339. * src/ExtendedMessagingAware.h: Removed.
  2340. * src/ExtensionMessageFactory.h
  2341. * src/ExtensionMessageRegistry.h: Added.
  2342. * src/Makefile.am
  2343. * src/PeerInteractionCommand.cc
  2344. * test/DefaultExtensionMessageFactoryTest.cc
  2345. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2346. Fixed typo in log messages
  2347. * src/MSEHandshake.cc
  2348. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2349. Fixed the bug that prevents torrent download from finishing. The
  2350. bug doesn't reveal for all torrents. The torrents affected this
  2351. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  2352. of pieces.
  2353. * src/bitfield.h
  2354. * test/bitfieldTest.cc
  2355. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2356. Code cleanup
  2357. * src/PeerListProcessor.h
  2358. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2359. Removed RequestGroupAware
  2360. * src/AbstractCommand.cc
  2361. * src/AbstractCommand.h
  2362. * src/ActivePeerConnectionCommand.cc
  2363. * src/ActivePeerConnectionCommand.h
  2364. * src/DHTGetPeersCommand.cc
  2365. * src/DHTGetPeersCommand.h
  2366. * src/InitiatorMSEHandshakeCommand.cc
  2367. * src/InitiatorMSEHandshakeCommand.h
  2368. * src/Makefile.am
  2369. * src/PeerInitiateConnectionCommand.cc
  2370. * src/PeerInitiateConnectionCommand.h
  2371. * src/PeerInteractionCommand.cc
  2372. * src/PeerInteractionCommand.h
  2373. * src/RealtimeCommand.cc
  2374. * src/RealtimeCommand.h
  2375. * src/RequestGroupAware.cc: Removed
  2376. * src/RequestGroupAware.h: Removed
  2377. * src/SeedCheckCommand.cc
  2378. * src/SeedCheckCommand.h
  2379. * src/SleepCommand.cc
  2380. * src/TrackerWatcherCommand.cc
  2381. * src/TrackerWatcherCommand.h
  2382. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2383. Rewritten PeerListProcessor
  2384. * src/PeerListProcessor.h
  2385. * src/CompactPeerListProcessor.h: Removed
  2386. * src/CompactPeerListProcessor.cc: Removed
  2387. * src/DelegatingPeerListProcessor.cc: Removed.
  2388. * src/DefaultBtAnnounce.cc
  2389. * src/Makefile.am
  2390. * src/UTPexExtensionMessage.cc
  2391. * src/DefaultPeerListProcessor.h: Removed.
  2392. * src/DefaultPeerListProcessor.cc: Removed.
  2393. * src/DelegatingPeerListProcessor.h: Removed.
  2394. * test/Makefile.am
  2395. * test/PeerListProcessorTest.cc
  2396. * test/DefaultPeerListProcessorTest.cc: Removed.
  2397. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2398. Rewritten RequestGroupMan::calculateStat()
  2399. * src/RequestGroupMan.cc
  2400. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2401. Removed unnecessary virtual destructor for Request class.
  2402. * src/Request.cc
  2403. * src/Request.h
  2404. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2405. Avoid dynamic_pointer_cast.
  2406. * src/DHTGetPeersCommand.cc
  2407. * src/DHTGetPeersCommand.h
  2408. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2409. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  2410. BtEvent.
  2411. * src/AbstractBtEventListener.h: Removed.
  2412. * src/AbstractBtMessage.cc
  2413. * src/AbstractBtMessage.h
  2414. * src/BtAbortOutstandingRequestEvent.h
  2415. * src/BtCancelSendingPieceEvent.h
  2416. * src/BtChokedEvent.h: Removed.
  2417. * src/BtChokingEvent.h
  2418. * src/BtEvent.h: Removed
  2419. * src/BtEventListener.h: Removed.
  2420. * src/BtMessage.h
  2421. * src/BtPieceMessage.cc
  2422. * src/BtPieceMessage.h
  2423. * src/BtRequestMessage.cc
  2424. * src/BtRequestMessage.h
  2425. * src/DefaultBtMessageDispatcher.cc
  2426. * src/Makefile.am
  2427. * src/a2functional.h
  2428. * test/BtPieceMessageTest.cc
  2429. * test/BtRequestMessageTest.cc
  2430. * test/DefaultBtMessageDispatcherTest.cc
  2431. * test/MockBtMessage.h
  2432. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2433. Code cleanup
  2434. * src/RequestGroupMan.cc
  2435. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2436. Code cleanup
  2437. * src/DownloadCommand.cc
  2438. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2439. Fixed segmentation fault when GZipDecoder::decode() returns 0
  2440. byte.
  2441. * src/DownloadCommand.cc
  2442. * src/bitfield.h
  2443. * test/bitfieldTest.cc
  2444. Fixed the bug that causes infinite loop if broken web server
  2445. returns chunked response without last "0" chunk-size marker and
  2446. closes connection.
  2447. * src/DownloadCommand.cc
  2448. Instantiate properly configured HttpDownloadCommand for
  2449. non-resumable downlaods.
  2450. * src/HttpResponseCommand.cc
  2451. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2452. Rewritten array operation functions.
  2453. * src/BitfieldMan.cc
  2454. * src/array_fun.h
  2455. * test/array_funTest.cc
  2456. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2457. Removed unused variable 'query'
  2458. * src/Request.cc
  2459. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2460. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  2461. accidentally set to false in r1162.
  2462. * configure.ac
  2463. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2464. Code cleanup
  2465. * src/BNode.cc
  2466. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2467. Increase prefixLength for the bucket which doesn't own local node
  2468. ID when splitting bucket.
  2469. * src/DHTBucket.cc
  2470. * test/DHTBucketTest.cc
  2471. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2472. * Release 1.3.1
  2473. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2474. Bump up version number to 1.3.1
  2475. * configure.ac
  2476. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2477. Removed unused variable checkPoint. Also removed include directive
  2478. for TimeA2.h.
  2479. * src/SeedCheckCommand.h
  2480. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2481. Fixed the bug that upload limit exceeds the value specified in
  2482. --seed-ratio option depending on the timing of the execution of
  2483. SeedCheckCommand.
  2484. * src/SeedCheckCommand.cc
  2485. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2486. Fixed the bug that removed peer's session upload/download length
  2487. are counted twice in _cachedTransferStat before it is
  2488. re-calculated. This affected the calculation of shara ratio,
  2489. resulting aria2 wrongly determines that specified share ratio is
  2490. reached. Also fixed the typo in calculateStatFor function name.
  2491. * src/BtSetup.cc
  2492. * src/DefaultPeerStorage.cc
  2493. * src/ShareRatioSeedCriteria.h
  2494. * test/ShareRatioSeedCriteriaTest.cc
  2495. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2496. * Release 1.3.0
  2497. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2498. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  2499. Nynorsk translations. Thanks to all translators.
  2500. * po/es.po
  2501. * po/ja.po
  2502. * po/nn.po
  2503. * po/ru.po
  2504. * po/uk.po
  2505. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2506. Rewritten isInRange()
  2507. * src/DHTBucket.cc
  2508. * test/DHTBucketTest.cc
  2509. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2510. Fixed typo
  2511. * doc/aria2c.1.txt
  2512. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2513. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  2514. malloc/realloc is not used.
  2515. * src/configure.ac
  2516. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2517. BitfieldMan::getMissingIndexes family functions now takes unsigned
  2518. char* bitfield instead of stl container for efficiency.
  2519. PieceSelector::select now takes this
  2520. bitfield. RarestPieceSelector::select now also performs
  2521. efficiently for this change. bitfield namespace is introduced and
  2522. it has several helper functions to handle basic bitfield
  2523. operations such as test, count set bits, etc.
  2524. * src/BitfieldMan.cc
  2525. * src/BitfieldMan.h
  2526. * src/DefaultBtRequestFactory.cc
  2527. * src/DefaultPieceStorage.cc
  2528. * src/DefaultPieceStorage.h
  2529. * src/LongestSequencePieceSelector.cc
  2530. * src/LongestSequencePieceSelector.h
  2531. * src/Makefile.am
  2532. * src/Piece.cc
  2533. * src/Piece.h
  2534. * src/PieceSelector.h
  2535. * src/RarestPieceSelector.cc
  2536. * src/RarestPieceSelector.h
  2537. * src/Util.cc
  2538. * src/Util.h
  2539. * src/bitfield.h
  2540. * test/BitfieldManTest.cc
  2541. * test/LongestSequencePieceSelectorTest.cc
  2542. * test/Makefile.am
  2543. * test/RarestPieceSelectorTest.cc
  2544. * test/UtilTest.cc
  2545. * test/bitfieldTest.cc
  2546. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2547. Made accepted socket non-block.
  2548. * src/FtpNegotiationCommand.cc
  2549. * src/HttpListenCommand.cc
  2550. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2551. Guarded #ifdef HAVE_POSIX_FALLOCATE
  2552. * src/AbstractSingleDiskAdaptor.cc
  2553. * src/DefaultPieceStorage.cc
  2554. * src/DiskAdaptor.h
  2555. * src/DiskAdaptor.h
  2556. * src/MultiFileAllocationIterator.cc
  2557. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2558. Run
  2559. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  2560. in every 1 sec. The timeout of RequestSlot is 60s by default and
  2561. it doesn't need to be called every time when
  2562. DefaultBtInteractive::doInteractionProcessing() is called.
  2563. * src/DefaultBtInteractive.cc
  2564. * src/DefaultBtInteractive.h
  2565. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2566. Documented 'falloc' in man page.
  2567. * doc/aria2c.1.txt
  2568. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2569. Updated doc
  2570. * src/usage_text.h
  2571. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2572. Added 'falloc' parameter for --file-allocation option. 'falloc'
  2573. allocation mode uses posix_fallocate() system call to allocate
  2574. file on disk. If you are using newer file systems such as ext4
  2575. (with extents support), btrfs or xfs, 'falloc' is your best
  2576. choice. It allocates large(few GiB) files almost instantly. Don't
  2577. use 'falloc' with legacy file systems such as ext3 because it
  2578. takes almost same time as 'prealloc' and it blocks aria2 entirely
  2579. until allocation finishes. 'falloc' may not be available if your
  2580. system doesn't have posix_fallocate() system call.
  2581. * configure.ac
  2582. * src/AbstractDiskWriter.cc
  2583. * src/AbstractDiskWriter.h
  2584. * src/AbstractSingleDiskAdaptor.cc
  2585. * src/BinaryStream.h
  2586. * src/BtCheckIntegrityEntry.cc
  2587. * src/ByteArrayDiskWriter.h
  2588. * src/CheckIntegrityEntry.cc
  2589. * src/CheckIntegrityEntry.h
  2590. * src/DefaultPieceStorage.cc
  2591. * src/DiskAdaptor.cc
  2592. * src/DiskAdaptor.h
  2593. * src/DiskWriter.h
  2594. * src/FallocFileAllocationIterator.cc
  2595. * src/FallocFileAllocationIterator.h
  2596. * src/FileAllocationEntry.cc
  2597. * src/FileAllocationEntry.h
  2598. * src/Makefile.am
  2599. * src/MultiFileAllocationIterator.cc
  2600. * src/MultiFileAllocationIterator.h
  2601. * src/OptionHandlerFactory.cc
  2602. * src/RequestGroup.cc
  2603. * src/StreamCheckIntegrityEntry.cc
  2604. * src/prefs.cc
  2605. * src/prefs.h
  2606. * src/usage_text.h
  2607. * test/FallocFileAllocationIteratorTest.cc
  2608. * test/Makefile.am
  2609. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2610. Removed duplicate enableDirectIO() call.
  2611. * src/MultiFileAllocationIterator.cc
  2612. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2613. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  2614. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  2615. cost of std::rotate().
  2616. * src/RarestPieceSelector.cc
  2617. * src/RarestPieceSelector.h
  2618. * test/RarestPieceSelectorTest.cc
  2619. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2620. Updated usage doc for --bt-tracker-interval option.
  2621. * src/usage_text.h
  2622. * doc/aria2c.1.txt
  2623. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2624. Documented --bt-tracker-interval option in man page.
  2625. * doc/aria2c.1.txt
  2626. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2627. Added an option to specify the interval between tracker requests.
  2628. If non-zero value is specified, aria2 uses it and ignores the
  2629. interval value in the response of tracker. If zero is specified,
  2630. aria2 determines the inteval value based on the tarcker response
  2631. and download progress.
  2632. * src/DefaultBtAnnounce.cc
  2633. * src/DefaultBtAnnounce.h
  2634. * src/OptionHandlerFactory.cc
  2635. * src/RequestGroup.cc
  2636. * src/prefs.cc
  2637. * src/prefs.h
  2638. * src/usage_text.h
  2639. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2640. Added operator+=, operator-=, operator-
  2641. * src/TransferStat.cc
  2642. * src/TransferStat.h
  2643. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2644. Refactored RarestPieceSelector to reduce CPU load, especially for
  2645. addPieceStats.
  2646. * src/RarestPieceSelector.cc
  2647. * src/RarestPieceSelector.h
  2648. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2649. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  2650. getAllMissingBlockIndexes to reduce a call to
  2651. array_function_base::operator[].
  2652. * src/BitfieldMan.cc
  2653. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2654. Cached TransferStat/download speed to avoid to sum them up in each
  2655. call.
  2656. * src/DefaultPeerStorage.cc
  2657. * src/DefaultPeerStorage.h
  2658. * src/SegmentMan.cc
  2659. * src/SegmentMan.h
  2660. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2661. Typedefed cuid_t as int32_t in Command.h
  2662. * src/CUIDCounter.h
  2663. * src/Command.cc
  2664. * src/Command.h
  2665. * src/DownloadEngine.cc
  2666. * src/DownloadEngine.h
  2667. * src/PeerStat.h
  2668. * src/SegmentMan.cc
  2669. * src/SegmentMan.h
  2670. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2671. Reduced the number of calls to PeerStorage::calculateStat() and
  2672. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  2673. transfer rate.
  2674. * src/DefaultBtInteractive.cc
  2675. * src/DefaultBtMessageDispatcher.cc
  2676. * src/DefaultPeerStorage.cc
  2677. * src/DefaultPeerStorage.h
  2678. * src/DownloadCommand.cc
  2679. * src/DownloadEngine.cc
  2680. * src/PeerStorage.h
  2681. * src/SegmentMan.cc
  2682. * src/SegmentMan.h
  2683. * test/MockPeerStorage.h
  2684. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2685. Prepended _dir+"/" after joining path elements in torrent file.
  2686. * src/DefaultBtContext.cc
  2687. * test/DefaultBtContextTest.cc
  2688. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2689. Added missing IndexBtMessageValidator.h
  2690. * src/Makefile.am
  2691. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2692. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  2693. Chinese translations. Thank you for contributing our project.
  2694. * po/id.po
  2695. * po/it.po
  2696. * po/ru.po
  2697. * po/uk.po
  2698. * po/zh_CN.po
  2699. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2700. Updated README
  2701. * README
  2702. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2703. Bump up version number to 1.3.0
  2704. * configure.ac
  2705. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2706. Updated doc
  2707. * src/DefaultBtContext.h
  2708. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2709. Slice/joinPath for name of single torrent.
  2710. * src/DefaultBtContext.cc
  2711. * test/DefaultBtContextTest.cc
  2712. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2713. Updated man page: Documented --dry-run and --index-out
  2714. options. Changed the default value of --uri-selector and
  2715. --http-auth-challenge options. Removed --direct-file-mapping
  2716. option. Added example for --index-out
  2717. * doc/aria2c.1.txt
  2718. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2719. Updated TEXT_DRY_RUN
  2720. * src/usage_text.h
  2721. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2722. Changed the default value of --uri-selector option from 'inorder'
  2723. to 'feedback'
  2724. * src/OptionHandlerFactory.cc
  2725. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2726. Included current URI in exception message.
  2727. * src/AbstractCommand.cc
  2728. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2729. Renamed ServerStatURISelector as FeedbackURISelector.
  2730. * src/FeedbackURISelector.cc
  2731. * src/FeedbackURISelector.h
  2732. * src/Makefile.am
  2733. * src/RequestGroupMan.cc
  2734. * src/ServerStatURISelector.cc
  2735. * src/ServerStatURISelector.h
  2736. * test/FeedbackURISelectorTest.cc
  2737. * test/Makefile.am
  2738. * test/ServerStatURISelectorTest.cc
  2739. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2740. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  2741. all URIs are tested and their timeout is not reached.
  2742. * src/AdaptiveURISelector.cc
  2743. * src/AdaptiveURISelector.h
  2744. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2745. Changed the default value of --http-auth-challenge option to false.
  2746. * src/OptionHandlerFactory.cc
  2747. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2748. Reuse URIs when all unused URIs run out.
  2749. * src/OptionHandlerFactory.cc
  2750. * src/RequestGroup.cc
  2751. * src/prefs.cc
  2752. * src/prefs.h
  2753. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2754. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  2755. and BtRejectMessage are derived from RangeBtMessage class.
  2756. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  2757. derived from IndexBtMessage class. BtChokeMessage,
  2758. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  2759. BtNotInterestedMessage and BtUnchokeMessage are derived from
  2760. ZeroBtMessage class.
  2761. * src/AbstractBtMessage.cc
  2762. * src/AbstractBtMessage.h
  2763. * src/BtAllowedFastMessage.cc
  2764. * src/BtAllowedFastMessage.h
  2765. * src/BtAllowedFastMessageValidator.h: Removed
  2766. * src/BtBitfieldMessage.cc
  2767. * src/BtBitfieldMessage.h
  2768. * src/BtCancelMessage.cc
  2769. * src/BtCancelMessage.h
  2770. * src/BtCancelMessageValidator.h: Removed
  2771. * src/BtChokeMessage.cc
  2772. * src/BtChokeMessage.h
  2773. * src/BtExtendedMessage.cc
  2774. * src/BtExtendedMessage.h
  2775. * src/BtHandshakeMessage.cc
  2776. * src/BtHandshakeMessage.h
  2777. * src/BtHaveAllMessage.cc
  2778. * src/BtHaveAllMessage.h
  2779. * src/BtHaveMessage.cc
  2780. * src/BtHaveMessage.h
  2781. * src/BtHaveMessageValidator.h: Removed
  2782. * src/BtHaveNoneMessage.cc
  2783. * src/BtHaveNoneMessage.h
  2784. * src/BtInterestedMessage.cc
  2785. * src/BtInterestedMessage.h
  2786. * src/BtKeepAliveMessage.cc
  2787. * src/BtKeepAliveMessage.h
  2788. * src/BtNotInterestedMessage.cc
  2789. * src/BtNotInterestedMessage.h
  2790. * src/BtPieceMessage.cc
  2791. * src/BtPieceMessage.h
  2792. * src/BtPortMessage.cc
  2793. * src/BtPortMessage.h
  2794. * src/BtRejectMessage.cc
  2795. * src/BtRejectMessage.h
  2796. * src/BtRejectMessageValidator.h: Removed
  2797. * src/BtRequestMessage.cc
  2798. * src/BtRequestMessage.h
  2799. * src/BtRequestMessageValidator.h: Removed
  2800. * src/BtSuggestPieceMessage.cc
  2801. * src/BtSuggestPieceMessage.h
  2802. * src/BtSuggestPieceMessageValidator.h: Removed
  2803. * src/BtUnchokeMessage.cc
  2804. * src/BtUnchokeMessage.h
  2805. * src/DefaultBtMessageFactory.cc
  2806. * src/IndexBtMessage.cc
  2807. * src/IndexBtMessage.h
  2808. * src/IndexBtMessageValidator.h
  2809. * src/Makefile.am
  2810. * src/PeerMessageUtil.cc
  2811. * src/PeerMessageUtil.h
  2812. * src/RangeBtMessage.cc
  2813. * src/RangeBtMessage.h
  2814. * src/RangeBtMessageValidator.h
  2815. * src/SimpleBtMessage.cc
  2816. * src/SimpleBtMessage.h
  2817. * src/ZeroBtMessage.cc
  2818. * src/ZeroBtMessage.h
  2819. * test/BtRequestMessageTest.cc
  2820. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2821. Reverted usage_text.h to r1093 to avoid to lose translated
  2822. messages.
  2823. * src/usage_text.h
  2824. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2825. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  2826. declared as non-const previously is now const and defined in class
  2827. definition.
  2828. * src/AbstractBtMessage.cc
  2829. * src/AbstractBtMessage.h
  2830. * src/BtAllowedFastMessage.cc
  2831. * src/BtAllowedFastMessage.h
  2832. * src/BtBitfieldMessage.h
  2833. * src/BtCancelMessage.cc
  2834. * src/BtCancelMessage.h
  2835. * src/BtChokeMessage.cc
  2836. * src/BtChokeMessage.h
  2837. * src/BtExtendedMessage.cc
  2838. * src/BtExtendedMessage.h
  2839. * src/BtHandshakeMessage.cc
  2840. * src/BtHandshakeMessage.h
  2841. * src/BtHaveAllMessage.cc
  2842. * src/BtHaveAllMessage.h
  2843. * src/BtHaveMessage.cc
  2844. * src/BtHaveMessage.h
  2845. * src/BtHaveNoneMessage.cc
  2846. * src/BtHaveNoneMessage.h
  2847. * src/BtInterestedMessage.cc
  2848. * src/BtInterestedMessage.h
  2849. * src/BtKeepAliveMessage.cc
  2850. * src/BtKeepAliveMessage.h
  2851. * src/BtMessage.h
  2852. * src/BtNotInterestedMessage.cc
  2853. * src/BtNotInterestedMessage.h
  2854. * src/BtPieceMessage.h
  2855. * src/BtPortMessage.cc
  2856. * src/BtPortMessage.h
  2857. * src/BtRejectMessage.cc
  2858. * src/BtRejectMessage.h
  2859. * src/BtRequestMessage.cc
  2860. * src/BtRequestMessage.h
  2861. * src/BtSuggestPieceMessage.cc
  2862. * src/BtSuggestPieceMessage.h
  2863. * src/BtUnchokeMessage.cc
  2864. * src/BtUnchokeMessage.h
  2865. * src/SimpleBtMessage.cc
  2866. * src/SimpleBtMessage.h
  2867. * test/MockBtMessage.h
  2868. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2869. Use FileEntry::exists()
  2870. * src/MultiDiskAdaptor.cc
  2871. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2872. Added exists()
  2873. * src/FileEntry.cc
  2874. * src/FileEntry.h
  2875. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2876. Added missing prefix dir.
  2877. * src/download_helper.cc
  2878. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2879. Removed --direct-file-mapping option and CopyDiskAdaptor.
  2880. * src/CopyDiskAdaptor.cc: Removed
  2881. * src/CopyDiskAdaptor.h: Removed
  2882. * src/DefaultPieceStorage.cc
  2883. * src/Makefile.am
  2884. * src/OptionHandlerFactory.cc
  2885. * src/prefs.cc
  2886. * src/prefs.h
  2887. * src/usage_text.h
  2888. * test/CopyDiskAdaptorTest.cc: Removed
  2889. * test/Makefile.am
  2890. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2891. Rewritten isSameFileBeingDownloaded()
  2892. * src/RequestGroupMan.cc
  2893. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2894. Removed getName() from DownloadContext. getName() is declared in
  2895. BtContext.
  2896. * src/BtContext.h
  2897. * src/DownloadContext.h
  2898. * src/SingleFileDownloadContext.cc
  2899. * src/SingleFileDownloadContext.h
  2900. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  2901. in AbstractSingleDiskAdaptor.
  2902. * src/AbstractSingleDiskAdaptor.h
  2903. * src/DiskAdaptor.h
  2904. * src/MultiDiskAdaptor.h
  2905. * src/RequestGroup.cc
  2906. Removed setTopDir() and getTopDir() and getTopDirPath() from
  2907. MultiDiskAdaptor.
  2908. * src/DefaultPieceStorage.cc
  2909. * src/MultiDiskAdaptor.cc
  2910. * src/MultiDiskAdaptor.h
  2911. * test/MultiDiskAdaptorTest.cc
  2912. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2913. FileEntry::getPath() contains store(top level) directory to
  2914. simplify path handling operation. In the previous implementation,
  2915. store directory is concatenated to FileEntry::getPath() in
  2916. DownloadContext.
  2917. * src/BtDependency.cc
  2918. * src/BtPostDownloadHandler.cc
  2919. * src/CopyDiskAdaptor.cc
  2920. * src/DefaultBtContext.cc
  2921. * src/DirectDiskAdaptor.cc
  2922. * src/FileEntry.cc
  2923. * src/FileEntry.h
  2924. * src/FtpNegotiationCommand.cc
  2925. * src/HttpResponse.cc
  2926. * src/HttpResponseCommand.cc
  2927. * src/Metalink2RequestGroup.cc
  2928. * src/MultiDiskAdaptor.cc
  2929. * src/MultiDiskAdaptor.h
  2930. * src/MultiFileAllocationIterator.cc
  2931. * src/RequestGroup.cc
  2932. * src/SingleFileDownloadContext.cc
  2933. * src/SingleFileDownloadContext.h
  2934. * src/download_helper.cc
  2935. * test/BtDependencyTest.cc
  2936. * test/CopyDiskAdaptorTest.cc
  2937. * test/DefaultBtContextTest.cc
  2938. * test/DefaultBtProgressInfoFileTest.cc
  2939. * test/DirectDiskAdaptorTest.cc
  2940. * test/DownloadHelperTest.cc
  2941. * test/FileEntryTest.cc
  2942. * test/MultiDiskAdaptorTest.cc
  2943. * test/MultiFileAllocationIteratorTest.cc
  2944. * test/RequestGroupTest.cc
  2945. * test/SingleFileDownloadContextTest.cc
  2946. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2947. Fixed compiler warning
  2948. * src/download_helper.cc
  2949. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2950. Throw exception if same infohash torrent is now downloading.
  2951. * src/RequestGroup.cc
  2952. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2953. Added --dry-run option. In this mode, aria2 just checks whether
  2954. the remote file is available and doesn't download data. This
  2955. option has effect on HTTP/FTP downloads and BitTorrent downloads
  2956. are canceled in this mode.
  2957. * src/FtpNegotiationCommand.cc
  2958. * src/HttpResponseCommand.cc
  2959. * src/HttpResponseCommand.h
  2960. * src/OptionHandlerFactory.cc
  2961. * src/RequestGroup.cc
  2962. * src/RequestGroupMan.cc
  2963. * src/prefs.cc
  2964. * src/prefs.h
  2965. * src/usage_text.h
  2966. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2967. Fixed compiler waring
  2968. * test/UriListParserTest.cc
  2969. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2970. Parse options in -i list using OptionParser.
  2971. * src/UriListParser.cc
  2972. * src/UriListParser.h
  2973. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2974. Don't reset URI in retry to avoid additional round trips because
  2975. of redirects.
  2976. * src/AbstractCommand.cc
  2977. * src/OptionHandlerFactory.cc
  2978. * src/prefs.cc
  2979. * src/prefs.h
  2980. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2981. Declared hide() in OptionHandler.
  2982. * src/NameMatchOptionHandler.h
  2983. * src/OptionHandler.h
  2984. * src/OptionHandlerImpl.h
  2985. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2986. Updated doc
  2987. * src/Peer.h
  2988. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2989. Added log message in setStatusInternal()
  2990. * src/ServerStat.cc
  2991. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2992. Call ServerStat::setError() in AbstractCommand::onAbort() to
  2993. effectively exclude failed server.
  2994. * src/AbstractCommand.cc
  2995. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2996. Added --index-out option to specify each file path for torrent.
  2997. Here index shown in --show-files option is used to specify which
  2998. file path should be altered. For example, to change the file path
  2999. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  3000. option multiple times: --index-out=1=aria2.tar.bz2
  3001. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  3002. available. This option can be specified in -i list.
  3003. * src/DefaultBtContext.cc
  3004. * src/DefaultBtContext.h
  3005. * src/MultiDiskAdaptor.cc
  3006. * src/MultiDiskAdaptor.h
  3007. * src/MultiFileAllocationIterator.cc
  3008. * src/OptionHandlerFactory.cc
  3009. * src/OptionHandlerImpl.h
  3010. * src/Util.cc
  3011. * src/Util.h
  3012. * src/download_helper.cc
  3013. * src/prefs.cc
  3014. * src/prefs.h
  3015. * src/usage_text.h
  3016. * test/DefaultBtContextTest.cc
  3017. * test/MultiDiskAdaptorTest.cc
  3018. * test/MultiFileAllocationIteratorTest.cc
  3019. * test/UtilTest.cc
  3020. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3021. Use Util::pathJoin()
  3022. * src/MetalinkParserController.cc
  3023. * test/test.xml
  3024. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3025. Use Util::pathJoin()
  3026. * src/DefaultBtContext.cc
  3027. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3028. Added Util::pathJoin()
  3029. * src/Util.h
  3030. * test/UtilTest.cc
  3031. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3032. Applied basename function to remove directory element in
  3033. content-disposition value.
  3034. Return empty string if content-disposition value is ".." or ".".
  3035. * src/Util.cc
  3036. * test/UtilTest.cc
  3037. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3038. Added --max-overall-download-limit in man page.
  3039. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  3040. * doc/aria2c.1.txt
  3041. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3042. Added --max-overall-download-limit option. Now --max-upload-limit
  3043. option is not ignored when --max-overall-upload-limit option has
  3044. non-zero value. aria2 checks download(upload) speed in the order:
  3045. first checks overall speed limit and if it is not exceeded, then
  3046. checks speed limit per download. Thus you can specify both
  3047. value. For example, set --max-overall-download-limit=1M and
  3048. --max-download-limit=500K to prevent from one download from eating
  3049. all overall speed limit.
  3050. * src/DefaultBtInteractive.cc
  3051. * src/DefaultBtInteractive.h
  3052. * src/DefaultBtMessageDispatcher.cc
  3053. * src/DefaultBtMessageDispatcher.h
  3054. * src/DownloadCommand.cc
  3055. * src/DownloadCommand.h
  3056. * src/FtpNegotiationCommand.cc
  3057. * src/HttpResponseCommand.cc
  3058. * src/OptionHandlerFactory.cc
  3059. * src/PeerInteractionCommand.cc
  3060. * src/RequestGroup.cc
  3061. * src/RequestGroup.h
  3062. * src/RequestGroupMan.cc
  3063. * src/RequestGroupMan.h
  3064. * src/prefs.cc
  3065. * src/prefs.h
  3066. * src/usage_text.h
  3067. * test/DefaultBtMessageDispatcherTest.cc
  3068. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3069. Documented select-file option in Input File section.
  3070. Documented --http-auth-challenge option.
  3071. * doc/aria2c.1.txt
  3072. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3073. Now select-file can be specified in the uri list(-i list).
  3074. * src/BtContext.cc
  3075. * src/BtContext.h
  3076. * src/RequestGroup.cc
  3077. * src/Sequence.h
  3078. * src/download_helper.cc
  3079. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3080. Made the upper value of --max-concurrent-downloads options unlimited.
  3081. * src/OptionHandlerFactory.cc
  3082. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3083. Fixed the bug that disk writer is not created even if it shares
  3084. same piece with the preceding file if the length of previous file
  3085. is 0.
  3086. * src/MultiDiskAdaptor.cc
  3087. * test/MultiDiskAdaptorTest.cc
  3088. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3089. In BitTorrent, Open files in read-only mode for hash check. After
  3090. that, re-open file in read/write mode only when the download is
  3091. not finished.
  3092. * src/AbstractDiskWriter.cc
  3093. * src/AbstractDiskWriter.h
  3094. * src/AbstractSingleDiskAdaptor.cc
  3095. * src/AbstractSingleDiskAdaptor.h
  3096. * src/BtCheckIntegrityEntry.cc
  3097. * src/DiskAdaptor.h
  3098. * src/DiskWriter.h
  3099. * src/MultiDiskAdaptor.cc
  3100. * src/MultiDiskAdaptor.h
  3101. * src/RequestGroup.cc
  3102. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3103. Added --http-auth-challenge option. If it is set to true(by
  3104. default), aria2 sends HTTP authorization header only when it is
  3105. requested by the server. If false is set, then authorization
  3106. header is always sent to the server. This is useful for servers
  3107. that don't respond 401 code when authentication is required.
  3108. There is an exception: if username and password are embedded in
  3109. URI, authorization header is always sent to the server regardless
  3110. of this option.
  3111. * src/AuthConfigFactory.cc
  3112. * src/HttpSkipResponseCommand.cc
  3113. * src/OptionHandlerFactory.cc
  3114. * src/prefs.cc
  3115. * src/prefs.h
  3116. * src/usage_text.h
  3117. * test/AuthConfigFactoryTest.cc
  3118. * test/HttpRequestTest.cc
  3119. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3120. * Release 1.2.0
  3121. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3122. Updated Spanish, Ukrainian, Russian and Japanese translations.
  3123. Thanks to all translators.
  3124. * po/es.po
  3125. * po/ja.po
  3126. * po/ru.po
  3127. * po/uk.po
  3128. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3129. Call deleteSocketForReadCheck() before socket is closed.
  3130. * src/HttpListenCommand.cc
  3131. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3132. Defined virtual destructor for BObject.
  3133. * src/bencode.h
  3134. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3135. Rewritten BDE to make it efficient.
  3136. * src/bencode.cc
  3137. * src/bencode.h
  3138. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3139. Removed function throw list.
  3140. * src/bencode.cc
  3141. * src/bencode.h
  3142. * test/BencodeTest.cc
  3143. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3144. Enclosed all URLs in double quotes in command-line examples.
  3145. * doc/aria2c.1.txt
  3146. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3147. Updated reference/see also section.
  3148. * README
  3149. * doc/aria2c.1.txt
  3150. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3151. Reorganized man page based on man man-pages.
  3152. * doc/aria2c.1.txt
  3153. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3154. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  3155. because same documents are available in man page. Added
  3156. References section.
  3157. * README
  3158. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3159. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  3160. PERFORMANCE PROFILE section.
  3161. * doc/aria2c.1.txt
  3162. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3163. Rewritten the section for configuration file.
  3164. * README
  3165. * doc/aria2c.1.txt
  3166. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3167. Fixed the segmentation fault during execution of choking algorithm
  3168. in leecher state because of broken compare operator
  3169. implementation.
  3170. * src/BtLeecherStateChoke.cc
  3171. * src/BtLeecherStateChoke.h
  3172. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3173. Open file in binary mode.
  3174. * src/CookieStorage.cc
  3175. * src/DHTSetup.cc
  3176. * src/DHTUtil.cc
  3177. * src/Netrc.cc
  3178. * src/NsCookieParser.cc
  3179. * src/ProtocolDetector.cc
  3180. * src/RequestGroupMan.cc
  3181. * src/Signature.cc
  3182. * src/bencode.cc
  3183. * src/download_helper.cc
  3184. * src/option_processing.cc
  3185. * test/CookieParserTest.cc
  3186. * test/DefaultBtProgressInfoFileTest.cc
  3187. * test/FileTest.cc
  3188. * test/GZipDecoderTest.cc
  3189. * test/RequestGroupManTest.cc
  3190. * test/SignatureTest.cc
  3191. * test/SingleFileAllocationIteratorTest.cc
  3192. * test/UriListParserTest.cc
  3193. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3194. Removed operator[] because it is ambiguous with built-in []
  3195. operator.
  3196. * src/array_fun.h
  3197. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3198. Fixed compile error
  3199. * src/OptionParser.cc
  3200. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3201. Added missing call to arrayWrapperConst
  3202. * test/array_funTest.cc
  3203. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3204. Use array_wrapper instead of array_ptr.
  3205. * src/DHTRoutingTableDeserializer.cc
  3206. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3207. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  3208. * src/array_fun.h
  3209. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3210. Added array_wrapper template.
  3211. * src/array_fun.h
  3212. * test/array_funTest.cc
  3213. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3214. Use operator T* of array_ptr.
  3215. * src/OptionParser.cc
  3216. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3217. Use localhost instead of 127.0.0.1
  3218. * test/FtpConnectionTest.cc
  3219. * test/MSEHandshakeTest.cc
  3220. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3221. Added operator T*
  3222. * src/array_fun.h
  3223. * test/array_funTest.cc
  3224. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3225. Use dynamically allocated char array to detect memory access
  3226. violation.
  3227. * src/DHTRoutingTableDeserializer.cc
  3228. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3229. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  3230. defined.
  3231. * src/PeerMessageUtil.cc
  3232. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3233. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  3234. * configure.ac
  3235. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3236. Added a check to see struct sockaddr_in has sin_len member.
  3237. * configure.ac
  3238. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3239. Fixed buffer overrun.
  3240. * src/DHTRoutingTableDeserializer.cc
  3241. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3242. Added LL for long long int constant.
  3243. * test/FtpConnectionTest.cc
  3244. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3245. Casted to unsigned int to suppress compiler warning on netbsd.
  3246. * src/BtRuntime.h
  3247. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3248. Assign the value of tv.tv_sec to time_t timesec instead of giving
  3249. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  3250. type time_t.
  3251. * src/SimpleLogger.cc
  3252. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3253. Added test for FtpConnection::receiveSizeResponse().
  3254. * test/FtpConnectionTest.cc
  3255. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3256. Fix epoll error on the old kernel 2.6.8 or ealier.
  3257. * src/EpollEventPoll.cc
  3258. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3259. Use Util::parseLLInt instead of sscanf for portability. The
  3260. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  3261. * src/FtpConnection.cc
  3262. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3263. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  3264. block. It should not filter anything.
  3265. * src/BitfieldMan.cc
  3266. * src/ConsoleStatCalc.cc
  3267. * test/BitfieldManTest.cc
  3268. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3269. Fixed the bug that the boolean options that don't take arguments
  3270. don't work.
  3271. * src/OptionHandlerImpl.h
  3272. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3273. Fixed broken selected file BitTorrent download.
  3274. * src/MultiDiskAdaptor.cc
  3275. * test/MultiDiskAdaptorTest.cc
  3276. * test/MultiFileAllocationIteratorTest.cc
  3277. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3278. Fixed #define guard for EpollEventPoll
  3279. * src/EpollEventPoll.h
  3280. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3281. Wait 2 seconds. 1 second is sometimes not enough.
  3282. * test/TimeSeedCriteriaTest.cc
  3283. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3284. Use localhost instead of 127.0.0.1.
  3285. * test/DHTConnectionImplTest.cc
  3286. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3287. Suppressed compiler warning.
  3288. * src/AdaptiveURISelector.cc
  3289. * src/DefaultPieceStorage.cc
  3290. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3291. Defined virtual destructor.
  3292. * src/MetalinkParserState.h
  3293. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3294. Give NULL for second argument of getaddrinfo instead of "0".
  3295. * src/NameResolver.cc
  3296. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3297. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  3298. included strptime doesn't parse data for this format.
  3299. * src/FtpConnection.cc
  3300. * test/FtpConnectionTest.cc
  3301. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3302. Removed tests giving -1 for unsigned argument.
  3303. * test/SingleFileDownloadContextTest.cc
  3304. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3305. Don't use sha256 in tests because it might not be supported by the
  3306. SSL library.
  3307. * test/MetalinkProcessorTest.cc
  3308. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3309. Removed tests giving -1 for unsigned argument.
  3310. * test/AlphaNumberDecoratorTest
  3311. * test/BitfieldManTest.cc
  3312. * test/DefaultBtContextTest.cc
  3313. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3314. Fixed compile error without libcares when epoll is available.
  3315. * src/EpollEventPoll.cc
  3316. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3317. Included fstream instead of iostream.
  3318. * test/SignatureTest.cc
  3319. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3320. Removed #include <algorithm>
  3321. * test/RequestGroupTest.cc
  3322. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3323. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  3324. using RequestGroup::extractURIResult().
  3325. * src/AdaptiveURISelector.cc
  3326. * src/RequestGroup.cc
  3327. * src/RequestGroup.h
  3328. * test/RequestGroupTest.cc
  3329. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3330. Added tests for array_ptr.
  3331. * test/array_funTest.cc
  3332. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3333. Don't send ip parameter to a tracker if ip parameter is empty
  3334. string.
  3335. * src/DefaultBtAnnounce.cc
  3336. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3337. Adjusted line feed.
  3338. * src/version_usage.cc
  3339. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3340. Print tags, possible values when OptionHandlerException is caught.
  3341. * src/option_processing.cc
  3342. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3343. Changed the message for FatalException.
  3344. * src/OptionParser.cc
  3345. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3346. Documented --bt-external-ip option in man page. Updated man pages
  3347. for --proxy-method option.
  3348. * doc/aria2c.1.txt
  3349. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3350. Use GET method for FTP via HTTP proxy.
  3351. * src/FtpInitiateConnectionCommand.cc
  3352. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3353. Changed the default value of --proxy-method option from 'tunnel'
  3354. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  3355. option.
  3356. * src/AbstractCommand.cc
  3357. * src/AbstractCommand.h
  3358. * src/FtpInitiateConnectionCommand.cc
  3359. * src/HttpDownloadCommand.cc
  3360. * src/HttpInitiateConnectionCommand.cc
  3361. * src/HttpInitiateConnectionCommand.h
  3362. * src/OptionHandlerFactory.cc
  3363. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3364. Initialized _logger
  3365. * src/SelectEventPoll.cc
  3366. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3367. Defined a copy constructor for the same type.
  3368. * src/SharedHandle.h
  3369. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3370. Added OptionParser::parseArg() which internally uses getopt_long
  3371. to parse command-line options. All command-line options are now
  3372. configured by OptionHandler. No manual editing of struct option*
  3373. is required any more.
  3374. * src/NameMatchOptionHandler.h
  3375. * src/OptionHandler.h
  3376. * src/OptionHandlerFactory.cc
  3377. * src/OptionHandlerImpl.h
  3378. * src/OptionParser.cc
  3379. * src/OptionParser.h
  3380. * src/array_fun.h
  3381. * src/main.cc
  3382. * src/option_processing.cc
  3383. * test/OptionHandlerTest.cc
  3384. * test/OptionParserTest.cc
  3385. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3386. Fixed configure error with --disable-epoll
  3387. * configure.ac
  3388. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3389. Fixed compile error when HAVE_EPOLL is not defined.
  3390. Fixed linker error on bigendian systems.
  3391. * src/SocketCore.cc
  3392. * src/SocketCore.h
  3393. * test/DefaultBtProgressInfoFileTest.cc
  3394. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3395. Added --bt-external-ip option. You can specify the external IP
  3396. address to report to a BitTorrent tracker. Although this function
  3397. is named 'external', it can accept any kind of IP addresses.
  3398. * src/DefaultBtAnnounce.cc
  3399. * src/OptionHandlerFactory.cc
  3400. * src/option_processing.cc
  3401. * src/prefs.cc
  3402. * src/prefs.h
  3403. * src/usage_text.h
  3404. * test/DefaultBtAnnounceTest.cc
  3405. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3406. Extracted the algorithm to find the longest incremental sequence
  3407. as max_sequence template.
  3408. * src/LongestSequencePieceSelector.cc
  3409. * src/a2algo.h
  3410. * test/Makefile.am
  3411. * test/a2algoTest.cc
  3412. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3413. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  3414. * src/usage_text.h
  3415. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3416. Updated doc for --uri-selector, --http-server-listen-port and
  3417. --enable-http-server option. Documented --event-poll option.
  3418. * doc/aria2c.1.txt
  3419. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3420. Updated doc for --enable-http-server.
  3421. * src/usage_text.h
  3422. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3423. Documented --http-server-listen-port and --enable-http-server in
  3424. man page.
  3425. * doc/aria2c.1.txt
  3426. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3427. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  3428. translations. Thanks to all translators.
  3429. * po/es.po
  3430. * po/id.po
  3431. * po/it.po
  3432. * po/ru.po
  3433. * po/uk.po
  3434. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3435. Bump up version number to 1.2.0
  3436. * configure.ac
  3437. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3438. BtContext::getAnnounceTiers() now returns const reference.
  3439. * src/BtContext.h
  3440. * src/DefaultBtContext.cc
  3441. * src/DefaultBtContext.h
  3442. * test/MockBtContext.h
  3443. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3444. Change the number of retries for tracker request based on the
  3445. number of available tracker in a torrent file.
  3446. * src/TrackerWatcherCommand.cc
  3447. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3448. Added _maxTries property to RequestGroup and assign the option
  3449. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  3450. RequestGroup::getMaxTries() instead of
  3451. Option::getAsInt(PREF_MAX_TRIES).
  3452. * src/AbstractCommand.cc
  3453. * src/RequestGroup.cc
  3454. * src/RequestGroup.h
  3455. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3456. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  3457. Mandriva. I modified the patch: make RequestGroup have the
  3458. timeout value and AdaptiveURISelector directly modifies that
  3459. value.
  3460. * src/AbstractCommand.cc
  3461. * src/AdaptiveURISelector.cc
  3462. * src/AdaptiveURISelector.h
  3463. * src/FtpNegotiationCommand.cc
  3464. * src/RequestGroup.cc
  3465. * src/RequestGroup.h
  3466. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3467. Fixed compiler warning
  3468. * test/IteratableChecksumValidatorTest.cc
  3469. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3470. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  3471. integrated downloads. This PieceSelector subclass finds the
  3472. longest continuous sequence in the available missing pieces and
  3473. selects the last index of such sequence. This makes HTTP/FTP
  3474. connections less interrupted by the pieces obtained by BitTorrent
  3475. peers.
  3476. * src/DefaultPieceStorage.cc
  3477. * src/DefaultPieceStorage.h
  3478. * src/LongestSequencePieceSelector.cc
  3479. * src/LongestSequencePieceSelector.h
  3480. * src/Makefile.am
  3481. * src/PieceSelector.h
  3482. * src/RarestPieceSelector.h
  3483. * src/RequestGroup.cc
  3484. * test/BtDependencyTest.cc
  3485. * test/DefaultPieceStorageTest.cc
  3486. * test/IteratableChecksumValidatorTest.cc
  3487. * test/LongestSequencePieceSelectorTest.cc
  3488. * test/Makefile.am
  3489. * test/SegmentManTest.cc
  3490. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3491. Fixed the bug that the average speed is wrong in
  3492. http/ftp/BitTorrent integrated download. Only the download bytes
  3493. in BitTorrent were considered.
  3494. * src/RequestGroup.cc
  3495. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3496. Choose port for BitTorrent/DHT randomly from the specified range.
  3497. * src/DHTConnectionImpl.cc
  3498. * src/PeerListenCommand.cc
  3499. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3500. Send HTTP Authorization header only if it is requested by the
  3501. server(response 401). There are some exceptions. The authorization
  3502. header for proxy is always sent if it is available without request
  3503. by the server. If username/password is specified in the URI, it
  3504. is immediately sent to the server without request by the server.
  3505. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  3506. SharedHandle<AuthConfig>().
  3507. NetrcAuthResolver::resolveAuthConfig() returns
  3508. SharedHandle<AuthConfig>() if no AuthConfig is available.
  3509. * src/AbstractAuthResolver.cc
  3510. * src/AbstractProxyRequestCommand.cc
  3511. * src/AuthConfigFactory.cc
  3512. * src/AuthConfigFactory.h
  3513. * src/HttpConnection.cc
  3514. * src/HttpRequest.cc
  3515. * src/HttpRequest.h
  3516. * src/HttpResponse.cc
  3517. * src/HttpResponseCommand.cc
  3518. * src/HttpSkipResponseCommand.cc
  3519. * test/AuthConfigFactoryTest.cc
  3520. * test/HttpRequestTest.cc
  3521. * test/HttpResponseTest.cc
  3522. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3523. Remove leading "--" from help keyword and a substring after "="
  3524. from help keyword, so that one can query options by '-h--max-' or
  3525. '-hmax-peers=10'.
  3526. * src/option_processing.cc
  3527. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3528. Rewritten PStringVisitor and its implementation.
  3529. * src/PStringBuildVisitor.cc
  3530. * src/PStringBuildVisitor.h
  3531. * src/PStringDatum.h
  3532. * src/PStringNumLoop.h
  3533. * src/PStringSegment.cc
  3534. * src/PStringSegment.h
  3535. * src/PStringSelect.h
  3536. * src/PStringVisitor.h
  3537. * src/download_helper.cc
  3538. * test/PStringBuildVisitorTest.cc
  3539. * test/ParameterizedStringParserTest.cc
  3540. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3541. Persist connection between the built-in HTTP server and a client
  3542. if a client supports keep-alive. Fixed the bug that aria2 exits
  3543. when the HTTP server receives EOF from a client.
  3544. * src/HttpServer.cc
  3545. * src/HttpServer.h
  3546. * src/HttpServerCommand.cc
  3547. * src/HttpServerCommand.h
  3548. * src/HttpServerResponseCommand.cc
  3549. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3550. Added experimental built-in HTTP server. Currently, when a client
  3551. accesses to the server, it responds with the current download
  3552. progress. By default, it is disabled. To enable the server, give
  3553. --enable-http-server option. To change the default port number
  3554. for the server to listen to, use --http-server-listen-port option.
  3555. The response HTML is very simple and refreshes it self each 1
  3556. second. Because of this refresh, you see flicker in normal web
  3557. browser such as Firefox. I recommend to use console-based browser
  3558. such as elinks, w3m. To connect to the server, run 'elinks
  3559. http://localhost:6800/' while running aria2. Please replace port
  3560. number '6800'(which is default) with your preference.
  3561. * src/DownloadEngineFactory.cc
  3562. * src/HttpHeader.cc
  3563. * src/HttpHeader.h
  3564. * src/HttpHeaderProcessor.cc
  3565. * src/HttpHeaderProcessor.h
  3566. * src/HttpListenCommand.cc
  3567. * src/HttpListenCommand.h
  3568. * src/HttpServer.cc
  3569. * src/HttpServer.h
  3570. * src/HttpServerCommand.cc
  3571. * src/HttpServerCommand.h
  3572. * src/HttpServerResponseCommand.cc
  3573. * src/HttpServerResponseCommand.h
  3574. * src/Makefile.am
  3575. * src/OptionHandlerFactory.cc
  3576. * src/Util.cc
  3577. * src/Util.h
  3578. * src/help_tags.h
  3579. * src/option_processing.cc
  3580. * src/prefs.cc
  3581. * src/prefs.h
  3582. * src/usage_text.h
  3583. * test/HttpHeaderProcessorTest.cc
  3584. * test/UtilTest.cc
  3585. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3586. Removed.
  3587. * src/CheckIntegrityMan.cc
  3588. * src/FileAllocationMan.cc
  3589. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3590. Made (piece) hash check sequential for each RequestGroup because
  3591. simultaneous hash check is slower than sequential execution.
  3592. * src/CheckIntegrityCommand.cc
  3593. * src/CheckIntegrityDispatcherCommand.cc
  3594. * src/CheckIntegrityDispatcherCommand.h
  3595. * src/CheckIntegrityMan.h
  3596. * src/ConsoleStatCalc.cc
  3597. * src/DownloadCommand.cc
  3598. * src/DownloadEngine.cc
  3599. * src/DownloadEngine.h
  3600. * src/DownloadEngineFactory.cc
  3601. * src/Makefile.am
  3602. * src/Makefile.in
  3603. * src/RequestGroup.cc
  3604. * src/StatCalc.h
  3605. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3606. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  3607. SequentialDispatcherCommand.
  3608. * src/FileAllocationDispatcherCommand.cc
  3609. * src/SequentialDispatcherCommand.h
  3610. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3611. Rewritten FileAllocationDispatcherCommand using brand new
  3612. SequentialDispatcherCommand.
  3613. * src/DownloadEngineFactory.cc
  3614. * src/FileAllocationCommand.cc
  3615. * src/FileAllocationDispatcherCommand.cc
  3616. * src/FileAllocationDispatcherCommand.h
  3617. * src/Makefile.am
  3618. * src/SequentialDispatcherCommand.h
  3619. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3620. Replaced FileAllocationMan with
  3621. SequentialPicker<FileAllocationEntry>.
  3622. * src/BtCheckIntegrityEntry.cc
  3623. * src/ConsoleStatCalc.cc
  3624. * src/DownloadEngine.cc
  3625. * src/DownloadEngine.h
  3626. * src/DownloadEngineFactory.cc
  3627. * src/FileAllocationCommand.cc
  3628. * src/FileAllocationDispatcherCommand.cc
  3629. * src/FileAllocationMan.h
  3630. * src/Makefile.am
  3631. * src/SequentialPicker.h
  3632. * src/StatCalc.h
  3633. * src/StreamCheckIntegrityEntry.cc
  3634. * test/Makefile.am
  3635. * test/SequentialPickerTest.cc
  3636. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3637. Added doc for adaptive URI selector.
  3638. * doc/aria2c.1.txt
  3639. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3640. Added doc for adaptive URI selector.
  3641. * src/usage_text.h
  3642. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3643. Added doc for --bt-max-peers option.
  3644. * doc/aria2c.1.txt
  3645. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3646. Added doc for --bt-hash-check-seed option.
  3647. * doc/aria2c.1.txt
  3648. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3649. Documented exit codes.
  3650. * doc/aria2c.1.txt
  3651. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3652. Added --bt-max-peers option to specify the maximum number of peers
  3653. per torrent. 0 means unlimited number of peers.
  3654. * src/ActivePeerConnectionCommand.cc
  3655. * src/BtRuntime.h
  3656. * src/DefaultPeerStorage.cc
  3657. * src/DefaultPeerStorage.h
  3658. * src/OptionHandlerFactory.cc
  3659. * src/RequestGroup.cc
  3660. * src/option_processing.cc
  3661. * src/prefs.cc
  3662. * src/prefs.h
  3663. * src/usage_text.h
  3664. * test/DefaultPeerStorageTest.cc
  3665. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3666. Added --bt-hash-check-seed option. If true is given to this
  3667. option, after hash check using --check-integrity option and file
  3668. is complete, continue to seed file. If you want to check file and
  3669. download it only when it is damaged or incomplete, set this option
  3670. to false. This option has effect only on BitTorrent download.
  3671. The default value is true(This is the same behavior with the
  3672. previous release).
  3673. * src/BtCheckIntegrityEntry.cc
  3674. * src/OptionHandlerFactory.cc
  3675. * src/option_processing.cc
  3676. * src/prefs.cc
  3677. * src/prefs.h
  3678. * src/usage_text.h
  3679. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3680. Updated copyright year.
  3681. * src/version_usage.cc
  3682. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3683. Rewritten the usage text for --bt-request-peer-speed-limit option.
  3684. * doc/aria2c.1.txt
  3685. * src/usage_text.h
  3686. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3687. Made the max value of split option unlimited.
  3688. * doc/aria2c.1.txt
  3689. * src/OptionHandlerFactory.cc
  3690. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3691. Fixed compile warning/error.
  3692. * src/DownloadResult.h
  3693. * src/HttpDownloadCommand.cc
  3694. * src/ServerStat.cc
  3695. * test/RequestGroupTest.cc
  3696. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3697. Added --event-poll option to select the method for polling events.
  3698. The available methods are "select" and "epoll". "epoll" is
  3699. available on Linux only. The earlier release has the compile
  3700. option to choose from these methods.
  3701. * configure.ac
  3702. * src/RequestGroupMan.cc
  3703. * src/OptionHandlerFactory.cc
  3704. * src/EpollEventPoll.h
  3705. * src/StreamFileAllocationEntry.cc
  3706. * src/a2io.h
  3707. * src/SelectEventPoll.h
  3708. * src/option_processing.cc
  3709. * src/prefs.h
  3710. * src/EpollEventPoll.cc
  3711. * src/EventPoll.h
  3712. * src/SocketCore.h
  3713. * src/Makefile.am
  3714. * src/main.cc
  3715. * src/DownloadEngine.h
  3716. * src/SelectEventPoll.cc
  3717. * src/DownloadEngine.cc
  3718. * src/SocketCore.cc
  3719. * src/DownloadEngineFactory.cc
  3720. * src/Makefile.in
  3721. * src/prefs.cc
  3722. * src/usage_text.h
  3723. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3724. Included RecoverableException.h from main.cc
  3725. * src/main.cc
  3726. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3727. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  3728. now returns last error encountered in the HTTP/FTP downloads as a
  3729. exit status value. If all downloads finished successfully, aria2
  3730. returns 0. The error code is defined in src/DownloadResult.h.
  3731. The error occurred in the download currently in progress is not
  3732. reported as a last error. If no error has encountered but there
  3733. are in progress or waiting downloads, aria2 returns 7.
  3734. * src/AbstractCommand.cc
  3735. * src/DlAbortEx.h
  3736. * src/DlRetryEx.h
  3737. * src/DownloadCommand.cc
  3738. * src/DownloadFailureException.h
  3739. * src/DownloadResult.h
  3740. * src/FtpNegotiationCommand.cc
  3741. * src/HttpSkipResponseCommand.cc
  3742. * src/Makefile.am
  3743. * src/MultiUrlRequestInfo.cc
  3744. * src/MultiUrlRequestInfo.h
  3745. * src/RecoverableException.h
  3746. * src/RequestGroup.cc
  3747. * src/RequestGroup.h
  3748. * src/RequestGroupMan.cc
  3749. * src/RequestGroupMan.h
  3750. * src/URIResult.cc
  3751. * src/URIResult.h
  3752. * src/main.cc
  3753. * src/option_processing.cc
  3754. * test/RequestGroupTest.cc
  3755. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3756. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  3757. patch adds AdaptiveURISelector, which selects one of the bests
  3758. mirrors for first and reserved connections. For supplementary
  3759. ones, it returns mirrors which has not been tested yet, and if
  3760. each of them already tested, returns mirrors which has to be
  3761. tested again. Otherwise, it doesn't return anymore mirrors.
  3762. * src/AdaptiveURISelector.cc
  3763. * src/AdaptiveURISelector.h
  3764. * src/FtpNegotiationCommand.cc
  3765. * src/HttpResponseCommand.cc
  3766. * src/Makefile.am
  3767. * src/Makefile.in
  3768. * src/OptionHandlerFactory.cc
  3769. * src/RequestGroup.cc
  3770. * src/RequestGroup.h
  3771. * src/RequestGroupMan.cc
  3772. * src/ServerStat.cc
  3773. * src/ServerStat.h
  3774. * src/ServerStatMan.cc
  3775. * src/SpeedCalc.cc
  3776. * src/URISelector.h
  3777. * src/prefs.cc
  3778. * src/prefs.h
  3779. * test/RequestGroupManTest.cc
  3780. * test/ServerStatManTest.cc
  3781. * test/ServerStatTest.cc
  3782. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3783. Fixed unit test error.
  3784. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  3785. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3786. * Release 1.1.2
  3787. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3788. Updated Russian translation. Thanks to the translators.
  3789. * po/ru.po
  3790. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3791. Added the description of --use-head option to man page.
  3792. * doc/aria2c.1.txt
  3793. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3794. Bump up version number to 1.1.2
  3795. * configure.ac
  3796. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3797. Added --use-head option to toggle whether HEAD method should be
  3798. used in the first HTTP request. By default aria2 uses HEAD method
  3799. as the first request. When the server doesn't recognize HEAD, then
  3800. give aria2 --use-head=false to force aria2 to use GET method
  3801. instead.
  3802. * src/OptionHandlerFactory.cc
  3803. * src/RequestGroupMan.cc
  3804. * src/option_processing.cc
  3805. * src/prefs.cc
  3806. * src/prefs.h
  3807. * src/usage_text.h
  3808. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3809. Fixed the bug that BitTorrent download doesn't finish when REJECT
  3810. message is received before CHOKE message. The old implementation
  3811. doen't clear the use-bit of the piece when recieved REJECT
  3812. message.
  3813. * src/DefaultBtMessageDispatcher.cc
  3814. * test/DefaultBtMessageDispatcherTest.cc
  3815. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3816. * Release 1.1.1
  3817. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3818. Bump up version number to 1.1.1.
  3819. * configure.ac
  3820. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3821. Fixed the bug that --summary-interval=0 doesn't work. The summary
  3822. is printed repeatedly.
  3823. * src/ConsoleStatCalc.cc
  3824. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3825. * Release 1.1.0
  3826. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3827. Added ifdef clause for conditional compilation.
  3828. * src/main.cc
  3829. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3830. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  3831. translations. Thanks to all translators.
  3832. * po/ja.po
  3833. * po/ru.po
  3834. * po/uk.po
  3835. * po/zh_CN.po
  3836. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3837. Added the preceding ">>> " before the message "Printing the
  3838. contents of file..." to make the output more readable.
  3839. * src/main.cc
  3840. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3841. Added try-catch block in the loop in showFiles() to continue the
  3842. operation even if the exception occurred in one file.
  3843. * src/main.cc (showFiles)
  3844. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3845. Made messages in showFiles() translatable.
  3846. * po/aria2.pot
  3847. * src/main.cc
  3848. * src/message.h
  3849. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3850. Print the contents of Torrent/Metalink files are printed without
  3851. -T/-M options.
  3852. * src/main.cc
  3853. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3854. Escaped '--' with '\--'
  3855. * README
  3856. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3857. Updated "How to build" section in README. Mentioned about
  3858. --with-ca-bundle compile option.
  3859. * README
  3860. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3861. Bump up version number to 1.1.0.
  3862. * configure.ac
  3863. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3864. Added a note for --dht-listen-port option.
  3865. * doc/aria2c.1.txt
  3866. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3867. Update doc for --realtime-chunk-checksum option.
  3868. * doc/aria2c.1.txt
  3869. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3870. Update doc for --realtime-chunk-checksum option.
  3871. * src/usage_text.h
  3872. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3873. Updated French, Japanese, Russian and Ukrainian translations.
  3874. Thanks to all translators.
  3875. * po/fr.po
  3876. * po/ja.po
  3877. * po/ru.po
  3878. * po/uk.po
  3879. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3880. Renamed aria2c.pot to aria2.pot
  3881. * po/aria2.pot
  3882. * po/aria2c.pot: Removed.
  3883. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3884. Removed MetaEntry.h
  3885. * src/Makefile.am
  3886. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3887. Rename file by appending digits if a local file exists and its
  3888. file size is larger than that of remote file with --continue
  3889. option. The old implementation just throws exception in such case.
  3890. * src/RequestGroup.cc
  3891. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3892. Fixed the bug that download progress summary is not printed in the
  3893. interval specified by the option.
  3894. * src/ConsoleStatCalc.cc
  3895. * src/ConsoleStatCalc.h
  3896. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3897. Fixed compiler warning
  3898. * src/Cookie.cc
  3899. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3900. Fixed the cookie implementation based on RFC2965.
  3901. Now if a value in domain field is not started with dot, then
  3902. prepend dot. That means a cookie with domain=sf.net is sent to
  3903. wiki.sf.net.
  3904. * src/Cookie.cc
  3905. * test/CookieParserTest.cc
  3906. * test/CookieStorageTest.cc
  3907. * test/CookieTest.cc
  3908. * test/NsCookieParserTest.cc
  3909. * test/Sqlite3MozCookieParserTest.cc
  3910. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3911. Fixed the bug that causes corrupted downloads if HTTP pipelining
  3912. is enabled and the server doesn't support keep-alive.
  3913. * src/AbstractCommand.cc
  3914. * src/DownloadCommand.cc
  3915. * src/HttpDownloadCommand.cc
  3916. * src/HttpDownloadCommand.h
  3917. * src/HttpResponseCommand.cc
  3918. * src/Request.cc
  3919. * src/Request.h
  3920. * test/RequestTest.cc
  3921. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3922. Removed Dictionary/List/Data and its related classes.
  3923. * src/BencodeVisitor.cc: Removed.
  3924. * src/BencodeVisitor.h: Removed.
  3925. * src/Data.cc: Removed.
  3926. * src/Data.h: Removed.
  3927. * src/Dictionary.cc: Removed.
  3928. * src/Dictionary.h: Removed.
  3929. * src/List.cc: Removed.
  3930. * src/List.h: Removed.
  3931. * src/Makefile.am
  3932. * src/MetaEntry.h: Removed.
  3933. * src/MetaEntryVisitor.h: Removed.
  3934. * src/MetaFileUtil.cc: Removed.
  3935. * src/MetaFileUtil.h: Removed.
  3936. * test/BencodeVisitorTest.cc: Removed.
  3937. * test/DataTest.cc: Removed.
  3938. * test/DictionaryTest.cc: Removed.
  3939. * test/ListTest.cc: Removed.
  3940. * test/Makefile.am
  3941. * test/MetaFileUtilTest.cc: Removed.
  3942. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3943. Removed include of MetaEntry.h
  3944. * test/DHTMessageTrackerEntryTest.cc
  3945. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3946. Use BDE instead of Dictionary/List/Data.
  3947. * src/AnnounceList.cc
  3948. * src/AnnounceList.h
  3949. * test/AnnounceListTest.cc
  3950. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3951. Use BDE instead of Dictionary/List/Data.
  3952. * src/DHTAbstractMessage.cc
  3953. * src/DHTAbstractMessage.h
  3954. * src/DHTAnnouncePeerMessage.cc
  3955. * src/DHTAnnouncePeerMessage.h
  3956. * src/DHTAnnouncePeerReplyMessage.cc
  3957. * src/DHTAnnouncePeerReplyMessage.h
  3958. * src/DHTFindNodeMessage.cc
  3959. * src/DHTFindNodeMessage.h
  3960. * src/DHTFindNodeReplyMessage.cc
  3961. * src/DHTFindNodeReplyMessage.h
  3962. * src/DHTGetPeersMessage.cc
  3963. * src/DHTGetPeersMessage.h
  3964. * src/DHTGetPeersReplyMessage.cc
  3965. * src/DHTGetPeersReplyMessage.h
  3966. * src/DHTMessageFactory.h
  3967. * src/DHTMessageFactoryImpl.cc
  3968. * src/DHTMessageFactoryImpl.h
  3969. * src/DHTMessageReceiver.cc
  3970. * src/DHTMessageTracker.cc
  3971. * src/DHTMessageTracker.h
  3972. * src/DHTPingMessage.cc
  3973. * src/DHTPingMessage.h
  3974. * src/DHTPingReplyMessage.cc
  3975. * src/DHTPingReplyMessage.h
  3976. * src/DHTQueryMessage.cc
  3977. * src/DHTQueryMessage.h
  3978. * src/DHTResponseMessage.cc
  3979. * src/DHTResponseMessage.h
  3980. * test/DHTAnnouncePeerMessageTest.cc
  3981. * test/DHTAnnouncePeerReplyMessageTest.cc
  3982. * test/DHTFindNodeMessageTest.cc
  3983. * test/DHTFindNodeReplyMessageTest.cc
  3984. * test/DHTGetPeersMessageTest.cc
  3985. * test/DHTGetPeersReplyMessageTest.cc
  3986. * test/DHTMessageFactoryImplTest.cc
  3987. * test/DHTMessageTrackerTest.cc
  3988. * test/DHTPingMessageTest.cc
  3989. * test/DHTPingReplyMessageTest.cc
  3990. * test/MockDHTMessageFactory.h
  3991. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3992. Added tests the case where length < 0 is specified.
  3993. * test/BencodeTest.cc
  3994. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3995. Fixed memory leak in decoderawstring()
  3996. * src/bencode.cc
  3997. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3998. Added missing #ifdef guard. Added uc() function for String and
  3999. removeKey() for Dict.
  4000. * src/bencode.cc
  4001. * src/bencode.h
  4002. * test/BencodeTest.cc
  4003. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4004. Use BDE instead of Dictionary/List/Data.
  4005. * src/HandshakeExtensionMessage.cc
  4006. * src/HandshakeExtensionMessage.h
  4007. * test/HandshakeExtensionMessageTest.cc
  4008. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4009. Added --max-overall-upload-limit option. This option limits the
  4010. overall upload speed. Stated in help message that the existing
  4011. --max-upload-limit option limits the upload speed per each
  4012. torrent. Man page is also updated.
  4013. * doc/aria2c.1.txt
  4014. * src/DefaultBtMessageDispatcher.cc
  4015. * src/DefaultBtMessageDispatcher.h
  4016. * src/OptionHandlerFactory.cc
  4017. * src/PeerInteractionCommand.cc
  4018. * src/option_processing.cc
  4019. * src/prefs.cc
  4020. * src/prefs.h
  4021. * src/usage_text.h
  4022. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4023. Use BDE instead of Dictionary/List/Data classes.
  4024. * src/CompactPeerListProcessor.cc
  4025. * src/CompactPeerListProcessor.h
  4026. * src/DefaultBtAnnounce.cc
  4027. * src/DefaultBtContext.cc
  4028. * src/DefaultBtContext.h
  4029. * src/DefaultPeerListProcessor.cc
  4030. * src/DefaultPeerListProcessor.h
  4031. * src/DelegatingPeerListProcessor.cc
  4032. * src/DelegatingPeerListProcessor.h
  4033. * src/PeerListProcessor.h
  4034. * src/UTPexExtensionMessage.cc
  4035. * src/Util.h
  4036. * src/message.h
  4037. * test/DefaultBtContextTest.cc
  4038. * test/DefaultPeerListProcessorTest.cc
  4039. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4040. Added bencode helper functions and BDE class.
  4041. They will replace MetaFileUtil and Dictionary/List/Data classes.
  4042. * src/Makefile.am
  4043. * src/bencode.cc
  4044. * src/bencode.h
  4045. * test/BencodeTest.cc
  4046. * test/Makefile.am
  4047. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4048. Fixed the bug that bad URI is sent to the tracker when the announe
  4049. URI in torrent file includes query.
  4050. * src/DefaultBtAnnounce.cc
  4051. * test/DefaultBtAnnounceTest.cc
  4052. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4053. Added Option::blank().
  4054. Use !Option::blank(name) instead of Option::defined(name) for
  4055. the options that take filename.
  4056. * src/MultiUrlRequestInfo.cc
  4057. * src/Option.cc
  4058. * src/Option.h
  4059. * src/main.cc
  4060. * src/option_processing.cc
  4061. * test/OptionTest.cc
  4062. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4063. Documented the default value of --check-certificate option in man
  4064. page.
  4065. * doc/aria2c.1.txt
  4066. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4067. Enabled --check-certificate by default. Added compile
  4068. time(configure) option --with-ca-bundle to specify CA bundle.
  4069. Warn if --check-certificate=true and --ca-certificate is not
  4070. specified or loading CA certificate is failed.
  4071. * configure.ac
  4072. * src/MultiUrlRequestInfo.cc
  4073. * src/OptionHandlerFactory.cc
  4074. * src/message.h
  4075. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4076. Mentioned https tag in help option.
  4077. * doc/aria2c.1.txt
  4078. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4079. Added `https' tag to help option category. Added https tag to
  4080. --ca-certificate, --certificate, --check-certificate and
  4081. --private-key option.
  4082. * src/OptionHandlerFactory.cc
  4083. * src/help_tags.h
  4084. * src/option_processing.cc
  4085. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4086. Changed the package name from `aria2c' to `aria2' in order to fix
  4087. the packaging issue in Debian and Fedora. The name of the
  4088. executable is not changed.
  4089. * configure.ac
  4090. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4091. Fixed typos
  4092. * src/usage_text.h
  4093. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4094. Fixed typos and updated doc.
  4095. * README
  4096. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4097. Fixed typos
  4098. * doc/aria2c.1.txt
  4099. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4100. Fixed typos
  4101. * src/usage_text.h
  4102. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4103. Print a message when no files to download.
  4104. * src/download_helper.cc
  4105. * src/main.cc
  4106. * src/message.h
  4107. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4108. RFC3986 complied Percent-Encoding(urlencode).
  4109. Use uppercase hexadecimal digits for encoded text instead of lowercase
  4110. ones.
  4111. * src/Request.cc
  4112. * src/Util.cc
  4113. * src/Util.h
  4114. * test/BtHandshakeMessageTest.cc
  4115. * test/DefaultBtAnnounceTest.cc
  4116. * test/DefaultBtContextTest.cc
  4117. * test/RequestTest.cc
  4118. * test/UtilTest.cc
  4119. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4120. Fixed the bug that prevents aria2 from downloading 0-length files
  4121. via HTTP/FTP.
  4122. * src/DefaultBtContext.cc
  4123. * src/DefaultBtContext.h
  4124. * src/DownloadContext.h
  4125. * src/FtpNegotiationCommand.cc
  4126. * src/HttpResponseCommand.cc
  4127. * src/HttpResponseCommand.h
  4128. * src/RequestGroup.cc
  4129. * src/SingleFileDownloadContext.cc
  4130. * src/SingleFileDownloadContext.h
  4131. * test/BtPostDownloadHandlerTest.cc
  4132. * test/MetalinkPostDownloadHandlerTest.cc
  4133. * test/MockBtContext.h
  4134. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4135. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  4136. * src/option_processing.cc
  4137. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4138. Applied aria2-1.0.1-mingw.patch.
  4139. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  4140. mingw.
  4141. Collected 4th and 5th argument types for getsockopt and setsockopt.
  4142. * src/SocketCore.cc
  4143. * src/a2netcompat.h
  4144. * test/SocketCoreTest.cc
  4145. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4146. * Release 1.0.1
  4147. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4148. Updated Ukrainian and Norwegian Nynorsk translations.
  4149. Thanks to all translators.
  4150. * po/nn.po
  4151. * po/uk.po
  4152. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4153. Don't show download result when -S option is used.
  4154. * src/main.cc
  4155. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4156. Bump up version number to 1.0.1
  4157. * configure.ac
  4158. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4159. Closed files after the test cases in MultiDiskWriterTest::
  4160. testResetDiskWriterEntries(). This will fix the unit test error
  4161. in mingw32 build.
  4162. * test/MultiDiskWriterTest.cc
  4163. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4164. Use HEAD method to get file size from HTTP server for segmented
  4165. downloading.
  4166. The request to the BitTorrent Tracker always uses GET method because
  4167. the response of the tracker is small and it doesn't need segmented
  4168. download.
  4169. * src/FtpNegotiationCommand.cc
  4170. * src/HttpRequest.cc
  4171. * src/HttpResponseCommand.cc
  4172. * src/HttpSkipResponseCommand.cc
  4173. * src/RequestGroup.cc
  4174. * src/RequestGroup.h
  4175. * src/TrackerWatcherCommand.cc
  4176. * test/HttpRequestTest.cc
  4177. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4178. Fixed the bug that causes floating exception when -T option is used and
  4179. no URIs are given.
  4180. * src/download_helper.cc
  4181. * test/DownloadHelperTest.cc
  4182. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  4183. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  4184. errors in MinGW:
  4185. Closed file after saving server stats (RequestGroupMan.cc)
  4186. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  4187. Ignored case & handled 2-digit years (strptime.c)
  4188. Added missing suseconds_t definition (a2time.h)
  4189. Fixed socket CLOSE() define (SocketCore.cc)
  4190. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  4191. Changed utime() test values from x000 to x00000 as MinGW failed on
  4192. values less than timezone offset from Unix epoch
  4193. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  4194. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  4195. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  4196. handle negative dates (CookieParserTest.cc)
  4197. * src/a2time.h
  4198. * src/FtpConnection.cc
  4199. * src/RequestGroupMan.cc
  4200. * src/SocketCore.cc
  4201. * src/strptime.c
  4202. * test/CookieParserTest.cc
  4203. * test/CopyDiskAdaptorTest.cc
  4204. * test/FileTest.cc
  4205. * test/FtpConnectionTest.cc
  4206. * test/MultiDiskAdaptorTest.cc
  4207. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4208. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  4209. * doc/aria2c.1.txt
  4210. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4211. * Release 1.0.0
  4212. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4213. Added '~' to reserved characters.
  4214. * src/Util.cc
  4215. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4216. Do not urlencode Request::url in setUrl() because we want unmodified
  4217. URL using Request::getUrl()
  4218. * src/Request.cc
  4219. * src/Request.h
  4220. * test/RequestTest.cc
  4221. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4222. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  4223. Thanks to all translators.
  4224. * po/bg.po
  4225. * po/fr.po
  4226. * po/ja.po
  4227. * po/ru.po
  4228. * po/uk.po
  4229. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4230. Bump up version number to 1.0.0
  4231. * configure.ac
  4232. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4233. Added nosqlite3 build to build_test.sh.
  4234. Renamed noxml as expat.
  4235. * build_test.sh
  4236. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4237. Updated INPUT FILE section.
  4238. * doc/aria2c.1.txt
  4239. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4240. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  4241. on big endian systems because test .aria2 files are made for little
  4242. endian systems.
  4243. * test/DefaultBtProgressInfoFileTest.cc
  4244. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4245. Dropped ares support.
  4246. * README
  4247. * configure.ac
  4248. * m4/libares.m4: Removed.
  4249. * src/AsyncNameResolver.cc
  4250. * src/Makefile.am
  4251. * test/Makefile.am
  4252. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4253. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  4254. Removed const qualifier from DiskWriter::size().
  4255. * src/AbstractDiskWriter.cc
  4256. * src/AbstractDiskWriter.h
  4257. * src/ByteArrayDiskWriter.cc
  4258. * src/ByteArrayDiskWriter.h
  4259. * src/DiskWriter.h
  4260. * test/ByteArrayDiskWriterTest.cc
  4261. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4262. Fixed the bug that causes segmentation fault/bus error during executing
  4263. choking algorithm while seeding. This is caused by improper
  4264. implementation of compare function which returns inconsistent results
  4265. depending on the timing of last unchoke.
  4266. * src/BtSeederStateChoke.cc
  4267. * src/BtSeederStateChoke.h
  4268. * src/DefaultPeerStorage.cc
  4269. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4270. Removed TODO
  4271. * TODO
  4272. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4273. Added a section that explains how to pass argument to options that
  4274. takes optional arguments with its short form.
  4275. * doc/aria2c.1.txt
  4276. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4277. Added -u for the short form of --max-upload-limit option.
  4278. * doc/aria2c.1.txt
  4279. * src/option_processing.cc
  4280. * src/usage_text.h
  4281. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4282. Added -V for the short form of --check-integrity option.
  4283. Now the argument of --check-integrity option is optional:
  4284. if it is omitted, it is evaluated as true.
  4285. * doc/aria2c.1.txt
  4286. * src/option_processing.cc
  4287. * src/usage_text.h
  4288. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4289. Made the default value of --ftp-pasv option set to true and it can take
  4290. true/false values.
  4291. * src/OptionHandlerFactory.cc
  4292. * src/option_processing.cc
  4293. * src/usage_text.h
  4294. * doc/aria2c.1.txt
  4295. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4296. Given custom random number generator to std::random_shuffle.
  4297. * src/AnnounceList.cc
  4298. * src/BtLeecherStateChoke.cc
  4299. * src/BtSeederStateChoke.cc
  4300. * src/DefaultBtRequestFactory.cc
  4301. * src/MetalinkEntry.cc
  4302. * src/RarestPieceSelector.cc
  4303. * src/SimpleRandomizer.cc
  4304. * src/SimpleRandomizer.h
  4305. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4306. Now the default value of --enable-direct-io is true.
  4307. * src/OptionHandlerFactory.cc
  4308. * doc/aria2c.1.txt
  4309. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4310. Erase peer before executing onReturningPeer and onErasingPeer
  4311. because choking algorithm called from onReturningPeer doesn't
  4312. like erasing peer in the active peer list.
  4313. * src/DefaultPeerStorage.cc
  4314. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4315. Instead of creating special filename in createDownloadResult() if
  4316. inMemoryDownload() is true, now it is done in getFilePath().
  4317. * src/RequestGroup.cc
  4318. * test/RequestGroupTest.cc
  4319. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4320. Print "[MEMORY]" and filename if a file is not saved in disk and just
  4321. processed in memory. This is the fix for previous comment out.
  4322. * src/MemoryBufferPreDownloadHandler.cc
  4323. * src/RequestGroup.cc
  4324. * src/RequestGroup.h
  4325. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4326. Commented out the code which sets virtual directory path "[MEMORY]"
  4327. propagate directory to store to following RequestGroup.
  4328. * src/MemoryBufferPreDownloadHandler.cc
  4329. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4330. Bump up version number to 1.0.0b
  4331. * configure.ac
  4332. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4333. Added input_uris.txt to EXTRA_DIST
  4334. * test/Makefile.am
  4335. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4336. Removed PeerObject.h from Makefile.am
  4337. * src/Makefile.am
  4338. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4339. Avoid slow seeding
  4340. * src/PeerInteractionCommand.cc
  4341. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4342. Updated usage for -i option.
  4343. * src/usage_text.h (TEXT_INPUT_FILE)
  4344. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4345. Added INPUT FILE section to man page.
  4346. Escaped fake URLs.
  4347. * doc/aria2c.1.txt
  4348. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4349. Fixed wrong note position for -o option.
  4350. * doc/aria2c.1.txt
  4351. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4352. Fixed compile error without SSL/XML library.
  4353. * src/DefaultBtProgressInfoFile.cc
  4354. * src/DefaultBtProgressInfoFile.h
  4355. * src/FileMetalinkParserState.cc
  4356. * src/RequestGroup.h
  4357. * src/SocketCore.cc
  4358. * src/SocketCore.h
  4359. * src/VerificationMetalinkParserState.cc
  4360. * src/download_helper.h
  4361. * src/main.cc
  4362. * test/DefaultBtProgressInfoFileTest.cc
  4363. * test/DownloadHelperTest.cc
  4364. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4365. Rewritten URI handling functions. They are now provided as a testable
  4366. functions.
  4367. * src/Makefile.am
  4368. * src/RequestGroup.cc
  4369. * src/RequestGroup.h
  4370. * src/download_helper.cc
  4371. * src/download_helper.h
  4372. * src/main.cc
  4373. * test/DownloadHelperTest.cc
  4374. * test/Makefile.am
  4375. * test/input_uris.txt
  4376. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4377. Quickly terminate commands when ctrl-c is pressed.
  4378. * src/DownloadEngine.cc
  4379. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4380. Quickly terminate idle commands when download finished.
  4381. * src/AbstractCommand.cc
  4382. * src/DownloadCommand.cc
  4383. * src/DownloadEngine.cc
  4384. * src/DownloadEngine.h
  4385. * src/SleepCommand.cc
  4386. * src/SleepCommand.h
  4387. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4388. Added the ability to specify output filename and directory in input
  4389. file.
  4390. Additional parameters are added in the following line of URIs
  4391. with proceeding white space(s), 1 parameter in 1 line.
  4392. The parameter names are the same with the command-line option name
  4393. without proceeding "--". Not all the options are available here:
  4394. at the moment, 'dir' and 'out' options are avialable.
  4395. Please note that out option has no effect against Metalink or BitTorrent
  4396. downloads.
  4397. Example input file:
  4398. http://host/foo-1.1.tar.bz2
  4399. out=foo.tar.bz2
  4400. dir=/tmp/downloads
  4401. http://host/thundermonkey-2.0.tar.bz2
  4402. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  4403. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  4404. thundermonkey-2.0.tar.bz2 is saved as
  4405. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  4406. * src/BtPostDownloadHandler.cc
  4407. * src/Metalink2RequestGroup.cc
  4408. * src/Metalink2RequestGroup.h
  4409. * src/MetalinkPostDownloadHandler.cc
  4410. * src/UriListParser.cc
  4411. * src/UriListParser.h
  4412. * src/main.cc
  4413. * test/Metalink2RequestGroupTest.cc
  4414. * test/UriListParserTest.cc
  4415. * test/filelist1.txt
  4416. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4417. Fixed error when SSL library is not found.
  4418. * configure.ac
  4419. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4420. Cross referenced among -s, -C and -j options.
  4421. Updated usage of -C and -s options.
  4422. * src/usage_text.h
  4423. * doc/aria2c.1.txt
  4424. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4425. Fixed bad cast in 32bit platforms.
  4426. * test/DefaultPieceStorageTest.cc
  4427. (DefaultPieceStorageTest::testGetCompletedLength)
  4428. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4429. Fixed unit test fails on 32bit platforms.
  4430. * test/CookieParserTest.cc
  4431. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4432. Show an average download speed in Download results.
  4433. * src/BtFileAllocationEntry.cc
  4434. * src/DefaultPieceStorage.cc
  4435. * src/DownloadContext.cc
  4436. * src/DownloadContext.h
  4437. * src/DownloadResult.h
  4438. * src/RequestGroup.cc
  4439. * src/RequestGroupMan.cc
  4440. * src/StreamFileAllocationEntry.cc
  4441. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4442. Fixed the bug that metalink file is not processed if Content-Type
  4443. field has a paramter.
  4444. * src/HttpResponse.cc
  4445. * src/HttpResponse.h
  4446. * test/HttpResponseTest.cc
  4447. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4448. Removed unused code.
  4449. * src/DefaultBtAnnounce.cc
  4450. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4451. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  4452. the value larger than DefaultPieceStorage::getTotalLength() when
  4453. in flight pieces are involved.
  4454. * src/DefaultPieceStorage.cc
  4455. * test/DefaultPieceStorageTest.cc
  4456. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4457. Bump up version number to 1.0.0a.
  4458. * configure.ac
  4459. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4460. Updated configure.ac
  4461. * configure.ac
  4462. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4463. Added usege for proxy.
  4464. * doc/aria2c.1.txt
  4465. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4466. Added usage for --ca-certificate, --certificate, --private-key and
  4467. --check-certificate options.
  4468. * doc/aria2c.1.txt
  4469. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4470. Updated man page
  4471. * doc/aria2c.1.txt
  4472. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4473. Added --no-proxy option. It receives comman separated hostname or
  4474. domains to which proxy should not be used.
  4475. aria2 honors the environment variable no_proxy to override no-proxy
  4476. value in configuration file. The user can override the environment
  4477. variable no_proxy with --no-proxy command-line option.
  4478. * src/AbstractCommand.cc
  4479. * src/OptionHandlerFactory.cc
  4480. * src/option_processing.cc
  4481. * src/prefs.cc
  4482. * src/prefs.h
  4483. * src/usage_text.h
  4484. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4485. Added the ability to verify peer in SSL/TLS using given CA certificates.
  4486. The CA certificates are specified in --ca-certificate option.
  4487. By default, the verification is disabled. Use --check-certificate
  4488. option to enable it.
  4489. * src/HttpRequestCommand.cc
  4490. * src/LibgnutlsTLSContext.cc
  4491. * src/LibgnutlsTLSContext.h
  4492. * src/LibsslTLSContext.cc
  4493. * src/LibsslTLSContext.h
  4494. * src/MultiUrlRequestInfo.cc
  4495. * src/OptionHandlerFactory.cc
  4496. * src/SocketCore.cc
  4497. * src/SocketCore.h
  4498. * src/a2functional.h
  4499. * src/message.h
  4500. * src/option_processing.cc
  4501. * src/prefs.cc
  4502. * src/prefs.h
  4503. * src/usage_text.h
  4504. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4505. Added client certificate authentication for SSL/TLS.
  4506. Currently a private key must be decrypted for use with aria2.
  4507. If a user accidentally gives encrypted file to aria2 then following
  4508. thing happens:
  4509. If encrypted private key is given to aria2, it behaves differently
  4510. depending on the ssl library it uses. If aria2 built with openssl then
  4511. openssl prompts the user for password. If aria2 build with gnutls then
  4512. aria2 exists with error at start up.
  4513. * src/DownloadEngineFactory.cc
  4514. * src/MultiUrlRequestInfo.cc
  4515. * src/OptionHandlerFactory.cc
  4516. * src/option_processing.cc
  4517. * src/prefs.cc
  4518. * src/prefs.h
  4519. * src/usage_text.h
  4520. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4521. Introduced TLSContext that holds TLS related data that can be shared
  4522. with multiple SSL connections.
  4523. * src/DownloadEngineFactory.cc
  4524. * src/LibgnutlsTLSContext.cc
  4525. * src/LibgnutlsTLSContext.h
  4526. * src/LibsslTLSContext.cc
  4527. * src/LibsslTLSContext.h
  4528. * src/Makefile.am
  4529. * src/SocketCore.cc
  4530. * src/SocketCore.h
  4531. * src/TLSContext.h
  4532. * src/message.h
  4533. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4534. Fixed the bug that the DiskWriter of the first FileEntry whose
  4535. `needsFileAllocation' property is false is not created
  4536. even if it shares a piece with next FileEntry which `requested' property
  4537. is true.
  4538. Fixed the bug that zero-length file is not created if pre file
  4539. allocation is not done.
  4540. * src/MultiDiskAdaptor.cc
  4541. * src/MultiDiskAdaptor.h
  4542. * test/MultiDiskAdaptorTest.cc
  4543. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4544. Added the ability to pool proxy connection.
  4545. The conneciton in FTP with proxy-method=GET is not pooled.
  4546. Proxy-Connection header will not be sent when sending CONNECT method.
  4547. * src/DownloadEngine.cc
  4548. * src/DownloadEngine.h
  4549. * src/FtpFinishDownloadCommand.cc
  4550. * src/FtpInitiateConnectionCommand.cc
  4551. * src/FtpNegotiationCommand.cc
  4552. * src/HttpDownloadCommand.cc
  4553. * src/HttpInitiateConnectionCommand.cc
  4554. * src/HttpRequest.cc
  4555. * src/HttpRequest.h
  4556. * src/HttpResponse.cc
  4557. * src/HttpSkipResponseCommand.cc
  4558. * test/HttpRequestTest.cc
  4559. * test/HttpResponseTest.cc
  4560. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4561. Handle date before epoch.
  4562. To create *bad* Time object, call Time::null().
  4563. * src/CookieParser.cc
  4564. * src/FtpConnection.cc
  4565. * src/FtpConnection.h
  4566. * src/FtpNegotiationCommand.cc
  4567. * src/RequestGroup.cc
  4568. * src/TimeA2.cc
  4569. * src/TimeA2.h
  4570. * test/CookieParserTest.cc
  4571. * test/FtpConnectionTest.cc
  4572. * test/TimeTest.cc
  4573. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4574. Added support for following envrionment variables: http_proxy,
  4575. https_proxy, ftp_proxy and all_proxy.
  4576. Each variable is equivalent to the aria2 option whose name is the
  4577. variable name with '_' replaced with '-'.
  4578. They overrides options specified in aria2.conf file.
  4579. The envrionment variables can be overrode using command-line option.
  4580. * src/option_processing.cc
  4581. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4582. Renamed --http-proxy-method as --proxy-method.
  4583. * src/AbstractCommand.cc
  4584. * src/FtpInitiateConnectionCommand.cc
  4585. * src/HttpInitiateConnectionCommand.cc
  4586. * src/OptionHandlerFactory.cc
  4587. * src/option_processing.cc
  4588. * src/prefs.cc
  4589. * src/prefs.h
  4590. * src/usage_text.h
  4591. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4592. Deprecated --http-proxy-user and --http-proxy-passwd options.
  4593. Added --https-proxy, --ftp-proxy and --all-proxy options.
  4594. Above 3 options and --http-proxy option can handle proxy in URL format
  4595. like: http://user:passwd@host:port.
  4596. If a proxy requires user/password, they must be specified in a URL.
  4597. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  4598. instead.
  4599. * src/AbstractCommand.cc
  4600. * src/AbstractCommand.h
  4601. * src/AbstractProxyRequestCommand.cc
  4602. * src/AbstractProxyRequestCommand.h
  4603. * src/AuthConfigFactory.cc
  4604. * src/AuthConfigFactory.h
  4605. * src/FtpFinishDownloadCommand.cc
  4606. * src/FtpInitiateConnectionCommand.cc
  4607. * src/FtpInitiateConnectionCommand.h
  4608. * src/FtpNegotiationCommand.cc
  4609. * src/FtpTunnelRequestCommand.cc
  4610. * src/FtpTunnelRequestCommand.h
  4611. * src/HttpDownloadCommand.cc
  4612. * src/HttpInitiateConnectionCommand.cc
  4613. * src/HttpInitiateConnectionCommand.h
  4614. * src/HttpProxyRequestCommand.cc
  4615. * src/HttpProxyRequestCommand.h
  4616. * src/HttpRequest.cc
  4617. * src/HttpRequest.h
  4618. * src/HttpRequestCommand.cc
  4619. * src/HttpRequestCommand.h
  4620. * src/HttpSkipResponseCommand.cc
  4621. * src/InitiateConnectionCommand.cc
  4622. * src/InitiateConnectionCommand.h
  4623. * src/OptionHandlerFactory.cc
  4624. * src/OptionHandlerImpl.h
  4625. * src/Request.cc
  4626. * src/option_processing.cc
  4627. * src/prefs.cc
  4628. * src/prefs.h
  4629. * src/usage_text.h
  4630. * test/AuthConfigFactoryTest.cc
  4631. * test/HttpRequestTest.cc
  4632. * test/OptionHandlerTest.cc
  4633. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4634. Execute choking algorithm when unchoked and interested peer is
  4635. disconected.
  4636. * src/DefaultPeerStorage.cc
  4637. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4638. Added testcase for BtNotInterestedMessage from unchoked peer.
  4639. * test/BtNotInterestedMessageTest.cc
  4640. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4641. Execute choking algorithm when BtInterestedMessage arrives from
  4642. unchoked peer.
  4643. * src/BtInterestedMessage.cc
  4644. * src/BtInterestedMessage.h
  4645. * src/DefaultBtMessageFactory.cc
  4646. * test/BtInterestedMessageTest.cc
  4647. * test/MockPeerStorage.h
  4648. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4649. AuthConfigFactory is now part of DownloadEngine.
  4650. * src/AbstractProxyRequestCommand.cc
  4651. * src/AuthConfigFactory.h
  4652. * src/DownloadEngine.cc
  4653. * src/DownloadEngine.h
  4654. * src/FtpConnection.cc
  4655. * src/FtpConnection.h
  4656. * src/FtpNegotiationCommand.cc
  4657. * src/HttpConnection.cc
  4658. * src/HttpRequest.cc
  4659. * src/HttpRequest.h
  4660. * src/HttpRequestCommand.cc
  4661. * src/HttpResponse.cc
  4662. * src/HttpResponseCommand.cc
  4663. * src/HttpSkipResponseCommand.cc
  4664. * src/MultiUrlRequestInfo.cc
  4665. * src/main.cc
  4666. * test/FtpConnectionTest.cc
  4667. * test/HttpRequestTest.cc
  4668. * test/HttpResponseTest.cc
  4669. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4670. Corrected catched exception type.
  4671. * src/ServerStatMan.cc
  4672. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4673. DNSCache is now part of DownloadEngine.
  4674. * src/DNSCache.h
  4675. * src/DownloadEngine.cc
  4676. * src/DownloadEngine.h
  4677. * src/InitiateConnectionCommand.cc
  4678. * src/MultiUrlRequestInfo.cc
  4679. * test/Makefile.am
  4680. * test/Makefile.in
  4681. * test/SimpleDNSCacheTest.cc
  4682. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4683. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  4684. DownloadEngine.
  4685. * src/ActivePeerConnectionCommand.cc
  4686. * src/BtSetup.cc
  4687. * src/CUIDCounter.h
  4688. * src/DHTSetup.cc
  4689. * src/DownloadCommand.cc
  4690. * src/DownloadEngine.cc
  4691. * src/DownloadEngine.h
  4692. * src/DownloadEngineFactory.cc
  4693. * src/FileAllocationDispatcherCommand.cc
  4694. * src/InitiatorMSEHandshakeCommand.cc
  4695. * src/PeerInitiateConnectionCommand.cc
  4696. * src/PeerInteractionCommand.cc
  4697. * src/PeerListenCommand.cc
  4698. * src/RequestGroup.cc
  4699. * src/StreamFileAllocationEntry.cc
  4700. * src/TrackerWatcherCommand.cc
  4701. * src/main.cc
  4702. * test/RequestGroupManTest.cc
  4703. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4704. Implemented commented code in BtSeederStateChoke
  4705. * src/BtSeederStateChoke.cc
  4706. * src/Peer.cc
  4707. * src/Peer.h
  4708. * src/PeerInteractionCommand.cc
  4709. * src/PeerSessionResource.cc
  4710. * src/PeerSessionResource.h
  4711. * test/MockBtMessageDispatcher.h
  4712. * test/PeerSessionResourceTest.cc
  4713. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4714. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  4715. its object.
  4716. * src/AbstractBtMessage.cc
  4717. * src/ActivePeerConnectionCommand.cc
  4718. * src/ActivePeerConnectionCommand.h
  4719. * src/BtContextAwareCommand.cc
  4720. * src/BtContextAwareCommand.h
  4721. * src/BtExtendedMessage.cc
  4722. * src/BtExtendedMessage.h
  4723. * src/BtInterestedMessage.cc
  4724. * src/BtInterestedMessage.h
  4725. * src/BtNotInterestedMessage.cc
  4726. * src/BtNotInterestedMessage.h
  4727. * src/BtRegistry.cc
  4728. * src/BtRegistry.h
  4729. * src/BtSeederStateChoke.cc
  4730. * src/BtSetup.cc
  4731. * src/DHTGetPeersCommand.cc
  4732. * src/DHTGetPeersCommand.h
  4733. * src/DHTPeerAnnounceEntry.cc
  4734. * src/DHTPeerAnnounceEntry.h
  4735. * src/DHTPeerAnnounceStorage.cc
  4736. * src/DHTPeerAnnounceStorage.h
  4737. * src/DHTPeerLookupTask.cc
  4738. * src/DHTPeerLookupTask.h
  4739. * src/DHTSetup.cc
  4740. * src/DHTSetup.h
  4741. * src/DHTTaskFactory.h
  4742. * src/DHTTaskFactoryImpl.cc
  4743. * src/DHTTaskFactoryImpl.h
  4744. * src/DefaultBtAnnounce.cc
  4745. * src/DefaultBtInteractive.cc
  4746. * src/DefaultBtInteractive.h
  4747. * src/DefaultBtMessageDispatcher.cc
  4748. * src/DefaultBtMessageDispatcher.h
  4749. * src/DefaultBtMessageFactory.cc
  4750. * src/DefaultBtMessageFactory.h
  4751. * src/DefaultBtMessageReceiver.cc
  4752. * src/DefaultBtProgressInfoFile.cc
  4753. * src/DefaultBtProgressInfoFile.h
  4754. * src/DefaultBtRequestFactory.cc
  4755. * src/DefaultBtRequestFactory.h
  4756. * src/DefaultExtensionMessageFactory.cc
  4757. * src/DefaultExtensionMessageFactory.h
  4758. * src/DefaultPeerStorage.cc
  4759. * src/DefaultPeerStorage.h
  4760. * src/DownloadEngine.cc
  4761. * src/DownloadEngine.h
  4762. * src/InitiatorMSEHandshakeCommand.cc
  4763. * src/InitiatorMSEHandshakeCommand.h
  4764. * src/MSEHandshake.cc
  4765. * src/MSEHandshake.h
  4766. * src/Makefile.am
  4767. * src/Makefile.in
  4768. * src/PeerChokeCommand.cc
  4769. * src/PeerChokeCommand.h
  4770. * src/PeerInitiateConnectionCommand.cc
  4771. * src/PeerInitiateConnectionCommand.h
  4772. * src/PeerInteractionCommand.cc
  4773. * src/PeerInteractionCommand.h
  4774. * src/PeerObject.h
  4775. * src/PeerReceiveHandshakeCommand.cc
  4776. * src/PeerReceiveHandshakeCommand.h
  4777. * src/ReceiverMSEHandshakeCommand.cc
  4778. * src/RequestGroup.cc
  4779. * src/RequestGroup.h
  4780. * src/RequestGroupMan.cc
  4781. * src/RequestGroupMan.h
  4782. * src/SeedCheckCommand.cc
  4783. * src/SeedCheckCommand.h
  4784. * src/ShareRatioSeedCriteria.h
  4785. * src/SimpleBtMessage.cc
  4786. * src/TrackerWatcherCommand.cc
  4787. * src/TrackerWatcherCommand.h
  4788. * src/UTPexExtensionMessage.cc
  4789. * src/UTPexExtensionMessage.h
  4790. * test/BtCancelMessageTest.cc
  4791. * test/BtChokeMessageTest.cc
  4792. * test/BtExtendedMessageTest.cc
  4793. * test/BtInterestedMessageTest.cc
  4794. * test/BtNotInterestedMessageTest.cc
  4795. * test/BtPieceMessageTest.cc
  4796. * test/BtPortMessageTest.cc
  4797. * test/BtRegistryTest.cc
  4798. * test/BtRejectMessageTest.cc
  4799. * test/BtRequestMessageTest.cc
  4800. * test/DHTPeerAnnounceEntryTest.cc
  4801. * test/DHTPeerAnnounceStorageTest.cc
  4802. * test/DefaultBtMessageDispatcherTest.cc
  4803. * test/DefaultBtMessageFactoryTest.cc
  4804. * test/DefaultBtProgressInfoFileTest.cc
  4805. * test/DefaultBtRequestFactoryTest.cc
  4806. * test/DefaultExtensionMessageFactoryTest.cc
  4807. * test/MSEHandshakeTest.cc
  4808. * test/MockDHTTaskFactory.h
  4809. * test/ShareRatioSeedCriteriaTest.cc
  4810. * test/UTPexExtensionMessageTest.cc
  4811. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4812. Fixed compiler warning.
  4813. * test/UtilTest.cc
  4814. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4815. Treat Cookie object as session cookie if expiry = 0 is given.
  4816. With this change, you can specify session scoped cookies in an external
  4817. file setting expiry value to 0.
  4818. * src/Cookie.cc
  4819. * src/Cookie.h
  4820. * test/CookieParserTest.cc
  4821. * test/CookieStorageTest.cc
  4822. * test/CookieTest.cc
  4823. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4824. Changed signature of DHTMessageFactory::createResponseMessage().
  4825. Removed unused validateIDMatch.
  4826. * src/DHTMessageFactory.h
  4827. * src/DHTMessageFactoryImpl.cc
  4828. * src/DHTMessageFactoryImpl.h
  4829. * src/DHTMessageTracker.cc
  4830. * test/DHTMessageFactoryImplTest.cc
  4831. * test/MockDHTMessageFactory.h
  4832. Dropped DHT message coming from same ID of localhost.
  4833. * src/DHTMessageReceiver.cc
  4834. Rejected adding node whose ID is the same as localhost's.
  4835. * src/DHTRoutingTable.cc
  4836. * test/BtPortMessageTest.cc
  4837. * test/DHTRoutingTableTest.cc
  4838. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4839. Pool connection when redirection occurs with Content-Length = 0.
  4840. * src/HttpSkipResponseCommand.cc
  4841. * src/HttpSkipResponseCommand.h
  4842. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4843. Fixed the bug that causes time out when redirection occurs with
  4844. content-length 0.
  4845. * src/HttpResponseCommand.cc
  4846. * src/HttpSkipResponseCommand.cc
  4847. * src/HttpSkipResponseCommand.h
  4848. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4849. Now each status legends is shown only when it appears in Download
  4850. Result. If Download Result has no item, then status legend will not
  4851. be printed.
  4852. * src/RequestGroupMan.cc
  4853. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4854. Removed duplicate creation of OptionHandlers.
  4855. * src/option_processing.cc
  4856. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4857. Fixed the bug that causes segmentation fault when accessing files which
  4858. don't exist or are not included in --select-file option while
  4859. validating chunk checksum.
  4860. * src/MultiDiskAdaptor.cc
  4861. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4862. Fixed compiler warning.
  4863. * test/UtilTest.cc
  4864. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4865. Included cstdlib. This fixed the compile error with g++-4.3.2.
  4866. * src/IteratableChecksumValidator.cc
  4867. * src/IteratableChunkChecksumValidator.cc
  4868. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4869. * Release 0.16.2
  4870. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4871. Added Serbian translation. Updated Ukrainian translation.
  4872. Thanks to all translators.
  4873. * po/sr.po
  4874. * po/uk.po
  4875. * po/LINGUAS
  4876. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4877. Bump up version number to 0.16.2
  4878. * configure.ac
  4879. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4880. Added length equality test to operator== to drop a piece message
  4881. whose length does not match to the requested one.
  4882. * src/RequestSlot.cc
  4883. * test/DefaultBtMessageDispatcherTest.cc
  4884. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4885. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  4886. recieved.
  4887. In this fix, if a request larger than 16KiB length is received, aria2
  4888. disconnects the peer.
  4889. * src/BtConstants.h
  4890. * src/PeerMessageUtil.cc
  4891. * src/PeerMessageUtil.h
  4892. * test/BtRequestMessageTest.cc
  4893. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4894. * Release 0.16.1
  4895. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4896. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  4897. * doc/aria2c.1.txt
  4898. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4899. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  4900. Updated French, Simplified Chinese and Japanese translations.
  4901. Thanks to all translators.
  4902. en@quot and en@boldquot are also added.
  4903. * po/LINGUAS
  4904. * po/fr.po
  4905. * po/ja.po
  4906. * po/uk.po
  4907. * po/vi.po
  4908. * po/zh_CN.po
  4909. * po/zh_TW.po
  4910. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4911. Bump up version number to 0.16.1.
  4912. * configure.ac
  4913. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4914. Updated README.
  4915. * README
  4916. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4917. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  4918. not to replace '--' with em dash character.
  4919. * doc/aria2c.1.txt
  4920. * doc/makeman
  4921. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4922. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  4923. every SEC seconds.
  4924. * src/DownloadEngineFactory.cc
  4925. * src/OptionHandlerFactory.cc
  4926. * src/option_processing.cc
  4927. * src/usage_text.h
  4928. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4929. Fixed compile warning on linux-amd64
  4930. * src/FtpConnection.cc
  4931. * src/IteratableChunkChecksumValidator.cc
  4932. * src/MultiDiskAdaptor.cc
  4933. Fixed the bug that unit test fails on linux-amd64
  4934. * test/UtilTest.cc
  4935. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4936. Added --dht-file-path option to change the path to dht.dat, which is a
  4937. serialized DHT routing table.
  4938. * src/OptionHandlerFactory.cc
  4939. * src/option_processing.cc
  4940. * src/usage_text.h
  4941. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4942. Fixed possible underflow.
  4943. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  4944. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4945. Fixed the bug that last character in URI is not encoded.
  4946. * src/Request.cc
  4947. * test/RequestTest.cc
  4948. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4949. Fixed the bug that referer header field contains fragment.
  4950. Now Request class removes fragment part of URI and encodes it
  4951. in Request::setUri() and setReferer().
  4952. * src/Request.h
  4953. * src/Request.cc
  4954. * test/RequestTest.cc
  4955. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4956. Added missing m4 macros.
  4957. * m4/cppunit.m4
  4958. * m4/libgcrypt.m4
  4959. * m4/libgnutls-extra.m4
  4960. * m4/libgnutls.m4
  4961. * m4/libxml2.m4
  4962. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4963. Fixed compile error with gcc-4.4(snapshot)
  4964. * src/File.cc
  4965. * src/FtpConnection.cc
  4966. * src/OptionHandlerImpl.h
  4967. * src/Util.cc
  4968. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4969. Removed assert()
  4970. * src/SocketBuffer.cc (SocketBuffer::send)
  4971. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4972. Changed the type of _numNewConnection to unsigned int.
  4973. * src/ActivePeerConnectionCommand.cc
  4974. * src/ActivePeerConnectionCommand.h
  4975. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4976. * Release 0.16.0
  4977. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4978. Updated doc
  4979. * README
  4980. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4981. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  4982. translations. Thanks to all translators.
  4983. * po/bg.po
  4984. * po/de.po
  4985. * po/fr.po
  4986. * po/ja.po
  4987. * po/zh_CN.po
  4988. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4989. Bump up version number to 0.16.0.
  4990. * configure.ac
  4991. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4992. Casted entry->maxConnections to int32_t for std::min<T> with T =
  4993. int32_t.
  4994. Changed the type of count to int32_t.
  4995. * src/Metalink2RequestGroup.cc
  4996. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4997. Added test for Time::elapsed(time_t).
  4998. * test/TimeTest.cc
  4999. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5000. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  5001. Util::difftv() should be used instead.
  5002. * src/TimeA2.cc
  5003. * src/TimeA2.h
  5004. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5005. Made socket for dht connections non-blocking
  5006. * src/DHTAbstractMessage.cc
  5007. * src/DHTAbstractMessage.h
  5008. * src/DHTConnection.h
  5009. * src/DHTConnectionImpl.cc
  5010. * src/DHTConnectionImpl.h
  5011. * src/DHTMessage.h
  5012. * src/DHTMessageDispatcherImpl.cc
  5013. * src/DHTMessageDispatcherImpl.h
  5014. * src/DHTUnknownMessage.cc
  5015. * src/DHTUnknownMessage.h
  5016. * src/SocketCore.cc
  5017. * src/SocketCore.h
  5018. * test/MockDHTMessage.h
  5019. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5020. Changed the type of offset to int.
  5021. * src/ParameterizedStringParser.cc
  5022. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5023. Made getAsInt() return int32_t
  5024. * src/Option.h
  5025. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5026. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  5027. build.
  5028. * configure.ac
  5029. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5030. Use sqlite3_open if sqlite3_open_v2 is not available.
  5031. * src/Sqlite3MozCookieParser.cc
  5032. * src/Sqlite3MozCookieParser.h
  5033. * m4/sqlite3.m4
  5034. * test/Sqlite3MozCookieParserTest.cc
  5035. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5036. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  5037. * src/BtPieceMessage.cc
  5038. * src/DHTPeerAnnounceStorage.cc
  5039. * src/DefaultPieceStorage.cc
  5040. * src/DownloadCommand.cc
  5041. * src/DownloadEngine.cc
  5042. * src/FtpConnection.cc
  5043. * src/PeerConnection.cc
  5044. * src/PeerMessageUtil.cc
  5045. * src/RequestGroup.cc
  5046. * src/RequestGroupMan.cc
  5047. * src/SimpleBtMessage.cc
  5048. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5049. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  5050. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  5051. * src/AbstractDiskWriter.cc
  5052. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5053. Don't set Request::supportsPersistentConnection() in HttpConnection
  5054. since this code is also used in AbstractProxyResponseCommand.
  5055. Moved those code to HttpResponse.
  5056. * src/HttpResponse.cc
  5057. * src/HttpResponse.h
  5058. * src/HttpConnection.cc
  5059. * src/HttpConnection.h
  5060. * src/HttpResponseCommand.cc
  5061. * test/HttpResponseTest.cc
  5062. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5063. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  5064. The configuration is minimum: no torrent, no metalink, so there may be
  5065. other compile error on their code.
  5066. * src/a2netcompat.h
  5067. * src/File.cc
  5068. * src/File.h
  5069. * src/SocketCore.cc
  5070. * src/SocketCore.h
  5071. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5072. Made a socket of incoming peer non-blocking.
  5073. * src/PeerListenCommand.cc
  5074. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5075. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  5076. whole message data is not sent in one send() call.
  5077. * src/BtPieceMessage.cc
  5078. * src/BtPieceMessage.h
  5079. * src/PeerConnection.cc
  5080. * src/PeerConnection.h
  5081. * src/SimpleBtMessage.cc
  5082. * src/SimpleBtMessage.h
  5083. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5084. Fixed the bug that aria2 downloads faster than max-download-limit when
  5085. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  5086. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  5087. , instead of sum of them.
  5088. * src/ActivePeerConnectionCommand.cc
  5089. * src/DefaultBtInteractive.cc
  5090. * src/DownloadCommand.cc
  5091. * src/PeerInteractionCommand.cc
  5092. * src/PeerReceiveHandshakeCommand.cc
  5093. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5094. Fixed the bug that HTTPS download fails.
  5095. * src/AbstractCommand.cc
  5096. * src/AbstractCommand.h
  5097. * src/DownloadCommand.cc
  5098. * src/FtpConnection.cc
  5099. * src/HttpConnection.cc
  5100. * src/HttpRequestCommand.cc
  5101. * src/HttpResponseCommand.cc
  5102. * src/HttpSkipResponseCommand.cc
  5103. * src/MSEHandshake.cc
  5104. * src/PeerConnection.cc
  5105. * src/SocketCore.cc
  5106. * src/SocketCore.h
  5107. Fixed the bug that aria2 doesn't download whole content body and cannot
  5108. reuse connection if chunked transfer encoding and gzip content encoding
  5109. are set.
  5110. * src/DownloadCommand.cc
  5111. * src/HttpSkipResponseCommand.cc
  5112. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5113. Updated man page.
  5114. * doc/aria2c.1.txt
  5115. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5116. When error occurred while aria2 was parsing an .aria2.conf file, print
  5117. the usage of the option that caused error.
  5118. * src/option_processing.cc
  5119. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5120. Fixed compile error on OptionHandlerException
  5121. * src/Makefile.am
  5122. * src/OptionHandlerException.cc
  5123. * src/OptionHandlerException.h
  5124. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5125. Moved message of the error to OptionHandlerException.h
  5126. * src/NameMatchOptionHandler.h
  5127. * src/OptionHandlerException.h
  5128. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5129. When error occurs while aria2 is parsing an command-line option, print
  5130. the usage of the option.
  5131. * src/Makefile.am
  5132. * src/NameMatchOptionHandler.h
  5133. * src/OptionHandlerException.h
  5134. * src/option_processing.cc
  5135. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5136. Reverted previous change.
  5137. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  5138. username is not in URI.
  5139. * src/HttpRequest.cc
  5140. * src/Request.cc
  5141. * test/HttpRequestTest.cc
  5142. * test/RequestTest.cc
  5143. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5144. Now colon is required for username and password in FTP URL, like:
  5145. ftp://username:password@host.
  5146. If colon is not there, aria2 don't parse it as a username. For example,
  5147. aria2 don't retrieve username from ftp://username@host.
  5148. This fix was made in order to login FTP server via non-transparent ftp
  5149. proxy.
  5150. * src/Request.cc
  5151. * test/RequestTest.cc
  5152. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5153. Use netrc for HTTP.
  5154. Now FTP user/password is sent in Authorization header when
  5155. --ftp-via-http-proxy=get is given.
  5156. * src/AuthConfigFactory.cc
  5157. * src/HttpRequest.cc
  5158. * src/HttpRequest.h
  5159. * src/NetrcAuthResolver.cc
  5160. * src/NetrcAuthResolver.h
  5161. * src/OptionHandlerFactory.cc
  5162. * src/option_processing.cc
  5163. * src/prefs.cc
  5164. * src/prefs.h
  5165. * test/AuthConfigFactoryTest.cc
  5166. * test/HttpRequestTest.cc
  5167. * test/NetrcAuthResolverTest.cc
  5168. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5169. Issue PWD command first and get working directory and use it as a prefix
  5170. for CWD command.
  5171. * src/DownloadEngine.cc
  5172. * src/DownloadEngine.h
  5173. * src/FtpConnection.cc
  5174. * src/FtpConnection.h
  5175. * src/FtpFinishDownloadCommand.cc
  5176. * src/FtpInitiateConnectionCommand.cc
  5177. * src/FtpNegotiationCommand.cc
  5178. * src/FtpNegotiationCommand.h
  5179. * test/FtpConnectionTest.cc
  5180. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5181. Removed default user/pass for FTP user/pass, since it should not have
  5182. precedence over netrc configuration by default.
  5183. * src/OptionHandlerFactory.cc
  5184. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5185. Added debug log for socket event.
  5186. * src/AbstractCommand.cc
  5187. * src/PeerAbstractCommand.cc
  5188. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5189. Log microseconds.
  5190. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  5191. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5192. Replaced HelpItem.cc with OptionHandler.cc.
  5193. * po/POTFILES.in
  5194. Updated po files with 'make update-po'
  5195. * po/aria2c.pot
  5196. * po/*.po
  5197. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5198. Removed possible values from the text.
  5199. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  5200. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5201. Removed unused preferences:
  5202. PREF_NO_PREALLOCATION
  5203. PREF_STDOUT_LOG
  5204. PREF_TRACKER_MAX_TRIES
  5205. PREF_DIRECT_DOWNLOAD_TIMEOUT
  5206. PREF_MIN_SEGMENT_SIZE
  5207. * src/option_processing.cc
  5208. * src/prefs.cc
  5209. * src/prefs.h
  5210. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5211. Integrated HelpItem into OptionParser to ease the workload for adding
  5212. new options. Removed default value from usage text.
  5213. * src/HelpItem.cc: Removed.
  5214. * src/HelpItem.h: Removed.
  5215. * src/HelpItemFactory.cc: Removed.
  5216. * src/HelpItemFactory.h: Removed.
  5217. * src/Makefile.am
  5218. * src/Makefile.in
  5219. * src/NameMatchOptionHandler.h
  5220. * src/OptionHandler.cc
  5221. * src/OptionHandler.h
  5222. * src/OptionHandlerFactory.cc
  5223. * src/OptionHandlerImpl.h
  5224. * src/OptionParser.cc
  5225. * src/OptionParser.h
  5226. * src/TagContainer.cc: Removed.
  5227. * src/TagContainer.h: Removed.
  5228. * src/TaggedItem.cc: Removed.
  5229. * src/TaggedItem.h: Removed.
  5230. * src/main.cc
  5231. * src/option_processing.cc
  5232. * src/usage_text.h
  5233. * src/version_usage.cc
  5234. * test/HelpItemTest.cc: Removed.
  5235. * test/Makefile.am
  5236. * test/Makefile.in
  5237. * test/OptionHandlerTest.cc
  5238. * test/OptionParserTest.cc
  5239. * test/TagContainerTest.cc: Removed.
  5240. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5241. Moved `TransferStat stat = ...' to inside the `if' clause.
  5242. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  5243. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5244. Fixed the bug that a block in a piece is requested when same block is
  5245. already requested to the same peer in end game mode.
  5246. * src/BtRequestFactory.h
  5247. * src/DefaultBtInteractive.cc
  5248. * src/DefaultBtRequestFactory.cc
  5249. * src/DefaultBtRequestFactory.h
  5250. * src/DefaultPieceStorage.cc
  5251. * src/DefaultPieceStorage.h
  5252. * src/PieceStorage.h
  5253. * src/UnknownLengthPieceStorage.cc
  5254. * src/UnknownLengthPieceStorage.h
  5255. * test/DefaultBtRequestFactoryTest.cc
  5256. * test/DefaultPieceStorageTest.cc
  5257. * test/MockBtRequestFactory.h
  5258. * test/MockPieceStorage.h
  5259. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5260. Removed _uploadLength and _downloadLength from PeerSessionResource
  5261. and use PeerStat::_sessionUploadLength and
  5262. PeerStat::_sessionDownloadLength.
  5263. * src/PeerSessionResource.cc
  5264. * src/PeerSessionResource.h
  5265. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5266. Fixed the bug that prefixLength of split bucket which doesn't include
  5267. local node ID is incremented.
  5268. * src/DHTBucket.cc
  5269. * src/DHTBucket.h
  5270. * test/DHTBucketTest.cc
  5271. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5272. Added cookies.sqlite to EXTRA_DIST
  5273. * test/Makefile.am
  5274. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5275. Added Turkish translation. Updated French, German, Russian and
  5276. Simplified Chinese translations. Thanks to all translators.
  5277. * po/LINGUAS
  5278. * po/de.po
  5279. * po/fr.po
  5280. * po/ru.po
  5281. * po/tr.po
  5282. * po/zh_CN.po
  5283. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5284. Added deliminating text to the beginning of the log so that one can find
  5285. where the log starts easily.
  5286. * src/main.cc
  5287. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5288. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  5289. to fix compile error when async DNS is not enabled by configuration.
  5290. * src/AbstractCommand.cc
  5291. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5292. If establishing conneciton to a server is failed, then mark error on
  5293. its ServerStat.
  5294. Added the cause of error to log when error event occurred.
  5295. Moved message string to message.h for translation.
  5296. * src/AbstractCommand.cc
  5297. * src/AbstractCommand.h
  5298. * src/FtpNegotiationCommand.cc
  5299. * src/HttpRequestCommand.cc
  5300. * src/PeerAbstractCommand.cc
  5301. * src/message.h
  5302. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5303. Added the function to get error message from socket.
  5304. * src/SocketCore.cc
  5305. * src/SocketCore.h
  5306. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5307. Added convenient method RequestGroupMan::getOrCreateServerStat()
  5308. * src/RequestGroupMan.cc
  5309. * src/RequestGroupMan.h
  5310. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5311. If error event is received in epoll, then abort download immediately.
  5312. * src/AbstractCommand.cc
  5313. * src/Command.cc
  5314. * src/Command.h
  5315. * src/DownloadEngine.cc
  5316. * src/PeerAbstractCommand.cc
  5317. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5318. Added usage message for --uri-selector, --server-stat-of,
  5319. --server-stat-in, --server-stat-timeout options.
  5320. * src/HelpItemFactory.cc
  5321. * src/usage_text.h
  5322. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5323. Added upper limit of FTP response buffer. The current implementation
  5324. uses 4096bytes as a limit.
  5325. * src/FtpConnection.cc
  5326. * src/FtpConnection.h
  5327. * test/FtpConnectionTest.cc
  5328. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5329. Use non-blocking socket for TCP communication to avoid possible
  5330. blocking due to buffer full.
  5331. * src/AbstractProxyRequestCommand.cc
  5332. * src/FtpConnection.cc
  5333. * src/FtpConnection.h
  5334. * src/FtpNegotiationCommand.cc
  5335. * src/FtpNegotiationCommand.h
  5336. * src/HttpConnection.cc
  5337. * src/HttpConnection.h
  5338. * src/HttpRequestCommand.cc
  5339. * src/InitiatorMSEHandshakeCommand.cc
  5340. * src/InitiatorMSEHandshakeCommand.h
  5341. * src/MSEHandshake.cc
  5342. * src/MSEHandshake.h
  5343. * src/Makefile.am
  5344. * src/PeerConnection.cc
  5345. * src/PeerConnection.h
  5346. * src/PeerInteractionCommand.cc
  5347. * src/PeerListenCommand.cc
  5348. * src/ReceiverMSEHandshakeCommand.cc
  5349. * src/ReceiverMSEHandshakeCommand.h
  5350. * src/SocketBuffer.cc
  5351. * src/SocketBuffer.h
  5352. * src/SocketCore.cc
  5353. * src/SocketCore.h
  5354. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5355. Call setStatusRealtime() in constructor.
  5356. * src/RealtimeCommand.cc
  5357. * src/RealtimeCommand.h
  5358. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5359. Call Download::setNoWait(true) to execute newly created command without
  5360. a pause.
  5361. * src/AbstractCommand.cc
  5362. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5363. Added --max-file-not-found=NUM option. If aria2 receives `file not
  5364. found' error from HTTP/FTP server NUM times without getting single
  5365. bytes of data, then force the download to fail.
  5366. Basically aria2 tris all URIs available. So if long list of URIs are
  5367. specified in Metalink, then aria2 will take a long time to fail
  5368. eventually if all URIs are outdated. This option eases this situation
  5369. to limit the number of servers to try.
  5370. * src/FtpNegotiationCommand.cc
  5371. * src/HelpItemFactory.cc
  5372. * src/HttpResponseCommand.cc
  5373. * src/OptionHandlerFactory.cc
  5374. * src/PeerStat.h
  5375. * src/RequestGroup.cc
  5376. * src/RequestGroup.h
  5377. * src/SegmentMan.cc
  5378. * src/SegmentMan.h
  5379. * src/option_processing.cc
  5380. * src/prefs.cc
  5381. * src/prefs.h
  5382. * src/usage_text.h
  5383. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5384. Fixed the bug that bulkReceiveResponse() reads all received data as a
  5385. response even if more than one response is in it.
  5386. * src/FtpConnection.cc
  5387. * src/FtpConnection.h
  5388. * test/FtpConnectionTest.cc
  5389. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5390. Merged from stable-0.15
  5391. * m4/libcares.m4
  5392. Use pkg-config
  5393. * m4/sqlite3.m4
  5394. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5395. Removed unnecessary if statement.
  5396. * src/DefaultPieceStorage.cc (initPieceStorage)
  5397. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5398. Added --connect-timeout option to specify connect timeout in seconds.
  5399. This option is in effect for HTTP/FTP/proxy server. The timeout for
  5400. connecting to BitTorrent peer is not controlled by this option.
  5401. * src/AbstractProxyRequestCommand.cc
  5402. * src/FtpNegotiationCommand.cc
  5403. * src/HelpItemFactory.cc
  5404. * src/HttpRequestCommand.cc
  5405. * src/OptionHandlerFactory.cc
  5406. * src/option_processing.cc
  5407. * src/prefs.cc
  5408. * src/prefs.h
  5409. * src/usage_text.h
  5410. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5411. Added help message for -R option.
  5412. * src/HelpItemFactory.cc
  5413. * src/usage_text.h
  5414. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5415. Added the message that the time is in local time zone.
  5416. * src/RequestGroup.cc
  5417. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5418. Implemented the ability to get timestamp from remote FTP server using
  5419. MDTM command described in RFC3659.
  5420. * src/FtpConnection.cc
  5421. * src/FtpConnection.h
  5422. * src/FtpNegotiationCommand.cc
  5423. * src/FtpNegotiationCommand.h
  5424. * test/FtpConnectionTest.cc
  5425. * test/Makefile.am
  5426. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5427. Implemented the ability to get timestamp from remote HTTP server and
  5428. apply it to local file. To enable this feature, --remote-time option
  5429. is added. No usage text has been written yet.
  5430. If several servers returns difference timestamp, then aria2 uses latest
  5431. one.
  5432. * src/CopyDiskAdaptor.cc
  5433. * src/CopyDiskAdaptor.h
  5434. * src/DirectDiskAdaptor.cc
  5435. * src/DirectDiskAdaptor.h
  5436. * src/DiskAdaptor.h
  5437. * src/File.cc
  5438. * src/File.h
  5439. * src/HttpHeader.cc
  5440. * src/HttpHeader.h
  5441. * src/HttpResponse.cc
  5442. * src/HttpResponse.h
  5443. * src/HttpResponseCommand.cc
  5444. * src/HttpResponseCommand.h
  5445. * src/MultiDiskAdaptor.cc
  5446. * src/MultiDiskAdaptor.h
  5447. * src/OptionHandlerFactory.cc
  5448. * src/RequestGroup.cc
  5449. * src/RequestGroup.h
  5450. * src/RequestGroupMan.cc
  5451. * src/option_processing.cc
  5452. * src/prefs.cc
  5453. * src/prefs.h
  5454. * test/CopyDiskAdaptorTest.cc
  5455. * test/FileTest.cc
  5456. * test/Makefile.am
  5457. * test/Makefile.in
  5458. * test/MultiDiskAdaptorTest.cc
  5459. * test/TestUtil.cc
  5460. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5461. Fixed the bug that DiskWriterEntry is not created when its
  5462. FileEntry.isRequested() is false and it doesn't share a piece with
  5463. other FileEntries that are requested. This bug causes segmentation fault
  5464. in the end.
  5465. * src/MultiDiskAdaptor.cc
  5466. * src/MultiDiskAdaptor.h
  5467. * src/MultiFileAllocationIterator.cc
  5468. * test/MultiDiskAdaptorTest.cc
  5469. * test/MultiFileAllocationIteratorTest.cc
  5470. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5471. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  5472. called if the number of file entries are greater than max open files.
  5473. * src/AbstractSingleDiskAdaptor.cc
  5474. * src/AbstractSingleDiskAdaptor.h
  5475. * src/DiskAdaptor.h
  5476. * src/MultiDiskAdaptor.cc
  5477. * src/MultiDiskAdaptor.h
  5478. * test/MultiDiskAdaptorTest.cc
  5479. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5480. Added a constuctor that receives struct timeval.
  5481. Added operator<.
  5482. * src/TimeA2.cc
  5483. * src/TimeA2.h
  5484. * test/TimeTest.cc
  5485. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5486. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  5487. * src/CookieParser.cc
  5488. * test/CookieParserTest.cc
  5489. * test/HttpResponseTest.cc
  5490. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5491. Implmented the functions to parse date.
  5492. * src/TimeA2.cc
  5493. * src/TimeA2.h
  5494. * test/TimeTest.cc
  5495. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5496. Added "Firefox3 Cookie" feature to FeatureConfig
  5497. * src/FeatureConfig.cc
  5498. * src/FeatureConfig.h
  5499. * test/FeatureConfigTest.cc
  5500. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5501. Bump up version number to 0.16.0b
  5502. * configure.ac
  5503. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5504. Use pkg-config if is is available.
  5505. * m4/openssl.m4
  5506. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5507. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  5508. * src/BtAnnounce.h
  5509. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5510. If an error occurred with a URI, remove identical URI from remaining
  5511. URI list because it is likely that same error occurred in the end and it
  5512. is waste of time.
  5513. * src/AbstractCommand.cc
  5514. * src/RequestGroup.cc
  5515. * src/RequestGroup.h
  5516. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5517. Removed wrong comment.
  5518. * src/DefaultPeerStorage.cc
  5519. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5520. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  5521. Added return value of getpid() to argument of srand() to achieve more
  5522. randomized value.
  5523. * src/SimpleRandomizer.cc
  5524. * src/SimpleRandomizer.h
  5525. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5526. Contact tracker frequently when the number of connections are 0 and
  5527. download is not finished yet.
  5528. * src/ActivePeerConnectionCommand.cc
  5529. * src/BtAnnounce.h
  5530. * src/DefaultBtAnnounce.cc
  5531. * src/DefaultBtAnnounce.h
  5532. * test/MockBtAnnounce.h
  5533. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5534. Moved threshold values to UTPexExtensionMessage.
  5535. * src/DefaultBtInteractive.cc
  5536. * src/Peer.cc
  5537. * src/Peer.h
  5538. * src/UTPexExtensionMessage.cc
  5539. * src/UTPexExtensionMessage.h
  5540. * test/UTPexExtensionMessageTest.cc
  5541. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5542. Added _incoming member to Peer class and made it true if the peer
  5543. initiated connection. Don't add those peer to UTPex message.
  5544. If extended handshake is received, assign _incoming to false.
  5545. * src/DefaultBtInteractive.cc
  5546. * src/HandshakeExtensionMessage.cc
  5547. * src/Peer.cc
  5548. * src/Peer.h
  5549. * src/PeerListenCommand.cc
  5550. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5551. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  5552. Encoding Decoder. Removed size threshold for turning off on the fly
  5553. inflation because resulting file may or may not be inflated depending
  5554. on the file size and I think it is not expected by users.
  5555. This change fixes segmentation fault when Metalink file contains gzipped
  5556. file and its filesize is provided.
  5557. * src/HttpResponseCommand.cc
  5558. * src/HttpResponseCommand.h
  5559. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5560. Made Cookie immutable.
  5561. * src/Cookie.cc
  5562. * src/Cookie.h
  5563. * src/CookieParser.cc
  5564. * src/CookieParser.h
  5565. * src/CookieStorage.cc
  5566. * test/CookieParserTest.cc
  5567. * test/CookieStorageTest.cc
  5568. * test/NsCookieParserTest.cc
  5569. * test/Sqlite3MozCookieParserTest.cc
  5570. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5571. Removed CookieBox, CookieBoxFactory.
  5572. * src/CookieBox.cc
  5573. * src/CookieBox.h
  5574. * src/CookieBoxFactory.cc
  5575. * src/CookieBoxFactory.h
  5576. * src/Makefile.am
  5577. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5578. Use CookieStorage class instead of CookieBox class.
  5579. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  5580. * src/AbstractProxyRequestCommand.cc
  5581. * src/CookieStorage.cc
  5582. * src/DownloadEngine.cc
  5583. * src/DownloadEngine.h
  5584. * src/HttpConnection.cc
  5585. * src/HttpConnection.h
  5586. * src/HttpRequest.cc
  5587. * src/HttpRequest.h
  5588. * src/HttpRequestCommand.cc
  5589. * src/HttpResponse.cc
  5590. * src/HttpResponseCommand.cc
  5591. * src/HttpSkipResponseCommand.cc
  5592. * src/Makefile.am
  5593. * src/MultiUrlRequestInfo.cc
  5594. * src/Request.cc
  5595. * src/Request.h
  5596. * src/main.cc
  5597. * test/AllTest.cc
  5598. * test/CookieStorageTest.cc
  5599. * test/CookieTest.cc
  5600. * test/HttpRequestTest.cc
  5601. * test/HttpResponseTest.cc
  5602. * test/Makefile.am
  5603. * test/NsCookieParserTest.cc
  5604. * test/Sqlite3MozCookieParserTest.cc
  5605. * test/nscookietest.txt
  5606. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5607. Updated
  5608. * test/Cookies.sqlite
  5609. * test/nscookietest.txt
  5610. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5611. Added tests for CookieStorage::load()
  5612. * test/CookieStorageTest.cc
  5613. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5614. Added CookieStorage class which is based on RFC2109 and manages cookies
  5615. more strictly than CookieBox and CookieBoxFactory class.
  5616. * src/CookieStorage.cc
  5617. * src/CookieStorage.h
  5618. * src/Cookie.cc
  5619. * src/Cookie.h
  5620. * test/CookieStorageTest.cc
  5621. * test/CookieTest.cc
  5622. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5623. Fixed the bug that commands are created more than the number of pieces.
  5624. * src/RequestGroup.cc
  5625. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5626. Fixed infinite loop bug in FTP when SIZE command failed.
  5627. * src/FtpNegotiationCommand.cc
  5628. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5629. Removed DirectDiskAdaptorTest.h
  5630. * test/Makefile.am
  5631. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5632. Fixed chunk checksum validation cannot detect trailing garbage data.
  5633. BUG#2074141
  5634. * src/AbstractSingleDiskAdaptor.cc
  5635. * src/AbstractSingleDiskAdaptor.h
  5636. * src/CheckIntegrityEntry.cc
  5637. * src/CheckIntegrityEntry.h
  5638. * src/DiskAdaptor.h
  5639. * src/MultiDiskAdaptor.cc
  5640. * src/MultiDiskAdaptor.h
  5641. * src/RequestGroup.cc
  5642. * test/DirectDiskAdaptorTest.cc
  5643. * test/MultiDiskAdaptorTest.cc
  5644. * test/TestUtil.cc
  5645. * test/TestUtil.h
  5646. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5647. Bump up version number of dht.dat file to 3. In version 3 format, time
  5648. is stored in 64bit, network byte order.
  5649. New build can load old format(version 2) but it saves the file in new
  5650. format. It means once you used new build, your dht.dat becomes
  5651. incompatible with older build.
  5652. * src/DHTRoutingTableDeserializer.cc
  5653. * src/DHTRoutingTableSerializer.cc
  5654. * test/DHTRoutingTableSerializerTest.cc
  5655. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5656. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  5657. * test/Makefile.am
  5658. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5659. Bump up version number of .aria2 control file to 0001.
  5660. New aria2 can still load version 0000 file but it saves the file in
  5661. version 0001 format. It means that new aria2 can resume download
  5662. started by old aria2 but the opposite is not true.
  5663. * src/DefaultBtProgressInfoFile.cc
  5664. * src/DefaultBtProgressInfoFile.h
  5665. * test/DefaultBtProgressInfoFileTest.cc
  5666. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5667. Added ntoh64 and hton64 as inline functions.
  5668. * src/Util.cc
  5669. * test/UtilTest.cc
  5670. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5671. Added sqlite3 depenency and Firefox3 cookie support.
  5672. * README
  5673. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5674. State that firefox3 cookie is supported explicitly in the usage.
  5675. * src/usage_text.h
  5676. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5677. Externalized message.
  5678. * src/RequestGroupMan.cc
  5679. * src/message.h
  5680. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5681. Save temporary file first and rename to the destination on success.
  5682. Added test cases.
  5683. * src/RequestGroupMan.cc
  5684. * test/RequestGroupManTest.cc
  5685. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5686. Fixed the bug that the number of connected peer is exceeding the limit
  5687. (55 by default) in seeding mode.
  5688. Multiplied 0.8 to _maxUploadSpeedLimit.
  5689. * src/ActivePeerConnectionCommand.cc
  5690. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5691. Clear table item.
  5692. * src/Dictionary.cc
  5693. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5694. Fixed error handling of lseek.
  5695. * src/AbstractDiskWriter.cc
  5696. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5697. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  5698. style cookie file.
  5699. * src/usage_text.h
  5700. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5701. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  5702. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  5703. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  5704. * src/Util.cc
  5705. * src/Util.h
  5706. * src/CookieParser.cc
  5707. * test/UtilTest.cc
  5708. * test/CookieParserTest.cc
  5709. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5710. Separate the implementation to load old mozilla format of cookie to
  5711. NsCookieParser class.
  5712. * src/CookieBoxFactory.cc
  5713. * src/CookieBoxFactory.h
  5714. * src/NsCookieParser.cc
  5715. * src/NsCookieParser.h
  5716. * test/NsCookieParserTest.cc
  5717. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5718. Made parse() const
  5719. * src/Sqlite3MozCookieParser.cc
  5720. * src/Sqlite3MozCookieParser.h
  5721. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5722. Added firefox3 cookie support based on the patch submitted by
  5723. tizianomueller.
  5724. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  5725. this functionality.
  5726. * configure.ac
  5727. * m4/sqlite3.m4
  5728. * src/CookieBoxFactory.cc
  5729. * src/CookieBoxFactory.h
  5730. * src/Makefile.am
  5731. * src/Makefile.in
  5732. * src/Sqlite3MozCookieParser.cc
  5733. * src/Sqlite3MozCookieParser.h
  5734. * src/main.cc
  5735. * test/CookieBoxFactoryTest.cc
  5736. * test/Makefile.am
  5737. * test/Makefile.in
  5738. * test/Sqlite3MozCookieParserTest.cc
  5739. * test/badcookies.sqlite
  5740. * test/cookies.sqlite
  5741. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5742. Added Danish and Greek translations.
  5743. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  5744. Great thanks to all translators.
  5745. * po/LINGUAS
  5746. * po/el.po
  5747. * po/da.po
  5748. * po/es.po
  5749. * po/ca.po
  5750. * po/nn.po
  5751. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5752. Fixed man page: --follow-bittorrent should be --follow-torrent
  5753. * doc/aria2c.1.txt
  5754. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5755. Fixed: numCommand is less than the value specified in -C option.
  5756. * src/RequestGroup.cc
  5757. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5758. Fixed occasional assertion failure in PieceSegment.
  5759. Calling PieceStorage::getMissingPiece(size_t) was missing after
  5760. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  5761. creation of duplicate segments and one of the segment was finished then
  5762. assertion failure was caused.
  5763. * src/SegmentMan.cc
  5764. * test/SegmentManTest.cc
  5765. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5766. Added options to load/save the server's performance/status to a file
  5767. and the timeout to drop their data.
  5768. --server-stat-of=FILE specifies the file to which performance data
  5769. is saved.
  5770. --server-stat-if=FILE specifies the file to read previously saved
  5771. by --server-stat-of option. Might be used with --uri-selector=feedback.
  5772. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  5773. TIMEOUT is specified in seconds and the default value is 24hours.
  5774. * src/MultiUrlRequestInfo.cc
  5775. * src/OptionHandlerFactory.cc
  5776. * src/RequestGroupMan.cc
  5777. * src/RequestGroupMan.h
  5778. * src/ServerStatMan.cc
  5779. * src/ServerStatMan.h
  5780. * src/option_processing.cc
  5781. * src/prefs.cc
  5782. * src/prefs.h
  5783. * test/ServerStatManTest.cc
  5784. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5785. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  5786. * src/ServerStatMan.cc
  5787. * src/ServerStatMan.h
  5788. * test/ServerStatManTest.cc
  5789. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5790. Implemented ServerStatMan::load(...) function and its test case.
  5791. * src/ServerStat.cc
  5792. * src/ServerStat.h
  5793. * src/ServerStatMan.cc
  5794. * test/ServerStatManTest.cc
  5795. * test/ServerStatTest.cc
  5796. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5797. Use time_t instead of int32_t. Use int64_t where milli second is
  5798. expected.
  5799. * src/TimeA2.cc
  5800. * src/TimeA2.h
  5801. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5802. Implemented ServerStatMan::save(...) function and its test case.
  5803. * src/ServerStat.cc
  5804. * src/ServerStat.h
  5805. * src/ServerStatMan.cc
  5806. * src/ServerStatMan.h
  5807. * test/ServerStatManTest.cc
  5808. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5809. Now aria2 uses name attribute in Metalink as local filename in
  5810. BitTorrent downloads. BUG#2033999
  5811. * src/BtContext.h
  5812. * src/BtDependency.cc
  5813. * src/DefaultBtContext.cc
  5814. * src/DefaultBtContext.h
  5815. * src/SingleFileDownloadContext.cc
  5816. * src/SingleFileDownloadContext.h
  5817. * test/BtDependencyTest.cc
  5818. * test/DefaultBtContextTest.cc
  5819. * test/MockBtContext.h
  5820. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5821. Added AC_C_BIGENDIAN
  5822. * src/configure.ac
  5823. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5824. Limited numCommand less than or equal to the number of piece.
  5825. * src/RequestGroup.cc
  5826. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5827. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  5828. directive.
  5829. * test/DefaultPieceStorageTest.cc
  5830. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5831. Fixed memory leak in test code
  5832. * test/AnnounceListTest.cc
  5833. * test/DefaultPeerListProcessorTest.cc
  5834. * test/DefaultPeerStorageTest.cc
  5835. * test/MetaFileUtilTest.cc
  5836. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5837. Fixed wrong argument passing to BitfieldMan::isBitSet()
  5838. * src/DefaultPieceStorage.cc
  5839. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5840. Initialized _directIOAllowed
  5841. * src/MultiDiskAdaptor.cc
  5842. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5843. Fixed memory leak
  5844. * src/GZipDecoder.cc
  5845. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5846. Fixed memory leak
  5847. * src/MetalinkParserStateMachine.cc
  5848. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5849. Fixed memory leak
  5850. * src/Dictionary.cc
  5851. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5852. Fixed memory leak
  5853. * src/IteratableChunkChecksumValidator.h
  5854. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5855. Fixed unmatched malloc/free.
  5856. * src/IteratableChunkChecksumValidator.cc
  5857. * src/IteratableChecksumValidator.cc
  5858. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5859. Removed max chunk size check. This change fixes BUG#2040169
  5860. * src/ChunkedDecoder.cc
  5861. * src/ChunkedDecoder.h
  5862. * test/ChunkedDecoderTest.cc
  5863. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5864. Implemented download speed based URI selection algorithm.
  5865. Introduced new option --uri-selector.
  5866. If --uri-selector=feedback is given, aria2 uses download speed observed
  5867. in the previous downloads and chooses fastest server in the URI list.
  5868. Currently at most 10 URIs are considered to introduce randomeness for
  5869. finding better servers. The speed is average download speed in the
  5870. downloads.
  5871. On the other hand, if --uri-selector=inorder is given, which is default,
  5872. URI is tried in order in URI list.
  5873. The usage text for the new option has not been written yet.
  5874. * src/AbstractCommand.cc
  5875. * src/DownloadCommand.cc
  5876. * src/DownloadEngine.cc
  5877. * src/DownloadEngineFactory.cc
  5878. * src/InOrderURISelector.cc
  5879. * src/InOrderURISelector.h
  5880. * src/OptionHandlerFactory.cc
  5881. * src/PeerStat.h
  5882. * src/RequestGroup.cc
  5883. * src/RequestGroup.h
  5884. * src/RequestGroupMan.cc
  5885. * src/RequestGroupMan.h
  5886. * src/SegmentMan.cc
  5887. * src/SegmentMan.h
  5888. * src/ServerStat.cc
  5889. * src/ServerStat.h
  5890. * src/ServerStatMan.cc
  5891. * src/ServerStatMan.h
  5892. * src/ServerStatURISelector.cc
  5893. * src/ServerStatURISelector.h
  5894. * src/URISelector.h
  5895. * src/option_processing.cc
  5896. * src/prefs.cc
  5897. * src/prefs.h
  5898. * test/InOrderURISelectorTest.cc
  5899. * test/RequestGroupManTest.cc
  5900. * test/ServerStatManTest.cc
  5901. * test/ServerStatURISelectorTest.cc
  5902. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5903. * Release 0.15.1+2
  5904. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5905. Bump up version number to 0.15.1+2
  5906. * configure.ac
  5907. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5908. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  5909. * m4/aria2_arg.m4
  5910. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5911. * Release 0.15.1+1
  5912. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5913. Bump up version number to 0.15.1+1
  5914. * configure.ac
  5915. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5916. Fixed the bug that causes segmentaion fault when resuming download
  5917. using metalink without size tag. Reproducible only using HTTP URI.
  5918. * src/HttpResponseCommand.cc
  5919. * src/FtpNegotiationCommand.cc
  5920. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5921. * Release 0.15.1
  5922. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5923. Updated Bulgarian and French translations, thanks to all translators.
  5924. * po/bg.po
  5925. * po/fr.po
  5926. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5927. Bump up version number to 0.15.1
  5928. * configure.ac
  5929. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5930. Avoid repeated call of gettimeofday() when calculating speed.
  5931. * src/SpeedCalc.cc
  5932. * src/SpeedCalc.h
  5933. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5934. Removed writable check when socket's send buffer is full in BitTorrent
  5935. downloads to lower CPU usage.
  5936. * src/PeerInteractionCommand.cc
  5937. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5938. Fixed broken gzip inflation.
  5939. Turn off segmented downloading if gzip content is smaller than or equal
  5940. to 1MiB and inflate the data on the fly, because HTTP response header
  5941. doesn't contain the length of inflated file we can't determin where
  5942. the chunk of data should be written.
  5943. On the other hand, if gzip content is larger than 1MB, then turn off
  5944. on the fly inflation, because some servers returns "content-type: gzip"
  5945. for *.tgz, *.gz files.
  5946. * src/DownloadCommand.cc
  5947. * src/HttpResponseCommand.cc
  5948. * src/HttpResponseCommand.h
  5949. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5950. Applied tizianomueller's patch to fix compile error.
  5951. * test/BitfieldManTest.cc
  5952. * test/BtRequestMessageTest.cc
  5953. * test/DefaultBtContextTest.cc
  5954. * test/DefaultDiskWriterTest.cc
  5955. * test/DefaultPieceStorageTest.cc
  5956. * test/HttpHeaderProcessorTest.cc
  5957. * test/HttpResponseTest.cc
  5958. * test/Metalink2RequestGroupTest.cc
  5959. * test/MetalinkParserControllerTest.cc
  5960. * test/MetalinkProcessorTest.cc
  5961. * test/PeerSessionResourceTest.cc
  5962. * test/UtilTest.cc
  5963. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5964. * Release 0.15.0
  5965. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5966. Reordered src files in POTFILES.in so that usage text appears first.
  5967. * po/POTFILES.in
  5968. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5969. Bump up version number to 0.15.0
  5970. * configure.ac
  5971. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5972. Added Bulgarian translation.
  5973. Updated Catalan, Spanish, French and Japanese translations.
  5974. Thanks to all translators.
  5975. * po/LINGUAS
  5976. * po/bg.po
  5977. * po/ca.po
  5978. * po/es.po
  5979. * po/fr.po
  5980. * po/ja.po
  5981. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5982. Updated feature list. Added libz for dependency section.
  5983. Added a description about unit testing using CppUnit.
  5984. * README
  5985. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5986. Added a test for libz. Quoted where it is necessary.
  5987. * build_test.sh
  5988. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5989. Added GZip to `Enabled Features' list.
  5990. * src/FeatureConfig.cc
  5991. * src/FeatureConfig.h
  5992. * test/FeatureConfigTest.cc
  5993. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5994. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  5995. the transfer has not yet started.
  5996. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  5997. * src/SegmentMan.cc
  5998. * src/SegmentMan.h
  5999. * test/SegmentManTest.cc
  6000. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6001. Cache last calculated average download/upload speed.
  6002. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  6003. cached value.
  6004. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  6005. * src/PeerStat.h
  6006. * src/SpeedCalc.cc
  6007. * src/SpeedCalc.h
  6008. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6009. Call parseUrl directly.
  6010. * src/Request.cc (resetUrl)
  6011. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6012. Supported absolute/relative path in Location header field.
  6013. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  6014. * src/HttpHeader.cc
  6015. * src/HttpHeader.h
  6016. * src/HttpResponse.cc
  6017. * src/HttpSkipResponseCommand.cc
  6018. * src/Request.cc
  6019. * test/HttpHeaderTest.cc
  6020. * test/HttpResponseTest.cc
  6021. * test/RequestTest.cc
  6022. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6023. Changed help text for --load-cookie option.
  6024. * doc/aria2c.1.txt
  6025. * src/usage_text.h
  6026. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6027. Regenerated test/Makefile.in to remove stale ChangeLog.
  6028. * test/Makefile.in
  6029. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6030. Updated po files.
  6031. * po/aria2c.pot
  6032. * po/*.po
  6033. * po/*.gmo
  6034. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6035. Bump up version number to 0.15.0b
  6036. * configure.ac
  6037. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6038. Externalize messages.
  6039. * src/RequestGroupMan.cc
  6040. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  6041. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6042. Use File::exists() instead of File::isFile() to allow non-regular file
  6043. such as block special files.
  6044. * src/AbstractDiskWriter.cc
  6045. * src/MultiDiskWriter.cc
  6046. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6047. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  6048. * src/gai_strerror.h
  6049. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6050. Fixed compile error. Thanks gknauf for the patch.
  6051. * src/asctime_r.c
  6052. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6053. Included asctime_r.h from a2time.h.
  6054. * src/a2time.h
  6055. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6056. Added a message "aria2 doesn't verify signature" to log message when
  6057. signature file is saved.
  6058. * src/RequestGroupMan.cc
  6059. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6060. Added the ability to save signature when download is completed if
  6061. signature is available. The filename of signature file is the path to
  6062. download file followed by ".sig". If it already exists, then signature
  6063. will not be saved.
  6064. * src/RequestGroupMan.cc
  6065. * src/Signature.cc
  6066. * test/SignatureTest.cc
  6067. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6068. Updated the descriptions for --bt-seed-unverified.
  6069. * doc/aria2c.1
  6070. * doc/aria2c.1.html
  6071. * doc/aria2c.1.txt
  6072. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6073. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  6074. that this is not going to verify files using piece hashes.
  6075. * src/HelpItemFactory.cc
  6076. * src/OptionHandlerFactory.cc
  6077. * src/RequestGroup.cc
  6078. * src/option_processing.cc
  6079. * src/prefs.cc
  6080. * src/prefs.h
  6081. * src/usage_text.h
  6082. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6083. Added the ability to retrieve signature from Metalink file.
  6084. A retrieved signature is stored in Signature class and it is held by
  6085. DownloadContext class. Note that aria2 doesn't verify signature.
  6086. * src/DownloadContext.cc
  6087. * src/DownloadContext.h
  6088. * src/Makefile.am
  6089. * src/Makefile.in
  6090. * src/Metalink2RequestGroup.cc
  6091. * src/MetalinkEntry.cc
  6092. * src/MetalinkEntry.h
  6093. * src/MetalinkParserController.cc
  6094. * src/MetalinkParserController.h
  6095. * src/MetalinkParserStateMachine.cc
  6096. * src/MetalinkParserStateMachine.h
  6097. * src/Signature.cc
  6098. * src/Signature.h
  6099. * src/SignatureMetalinkParserState.cc
  6100. * src/SignatureMetalinkParserState.h
  6101. * src/VerificationMetalinkParserState.cc
  6102. * src/VerificationMetalinkParserState.h
  6103. * test/Metalink2RequestGroupTest.cc
  6104. * test/MetalinkParserControllerTest.cc
  6105. * test/MetalinkProcessorTest.cc
  6106. * test/test.xml
  6107. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6108. Close DiskAdaptor after renaming file.
  6109. * src/RequestGroup.cc
  6110. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6111. Corrected indentation
  6112. * src/DefaultBtProgressInfoFile.cc
  6113. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6114. Moved the calls of std::ios::exceptions() inside of try-catch block
  6115. because if an error occurred in constructor of std::fstream, then
  6116. exception is thrown immediately when std::ios::exceptions() is called
  6117. which results unhandled exception and aria2c aborts.
  6118. * src/DefaultBtProgressInfoFile.cc
  6119. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6120. Added the test for the previous change in DefaultBtContext.cc
  6121. * test/DefaultBtContextTest.cc
  6122. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6123. Fixed the bug that causes infinite loop when the number of pieces are
  6124. fewer than allowed fast set size which is 10 by default.
  6125. * src/DefaultBtContext.cc
  6126. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6127. Updated the descriptions for -j, -s. Added --bt-seed.
  6128. * doc/aria2c.1
  6129. * doc/aria2c.1.html
  6130. * doc/aria2c.1.txt
  6131. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6132. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  6133. aria2 seeds previously downloaded files without validating piece hashs.
  6134. * src/HelpItemFactory.cc
  6135. * src/OptionHandlerFactory.cc
  6136. * src/RequestGroup.cc
  6137. * src/option_processing.cc
  6138. * src/prefs.cc
  6139. * src/prefs.h
  6140. * src/usage_text.h
  6141. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6142. Updated DESCRIPTION of man page.
  6143. * doc/aria2c.1
  6144. * doc/aria2c.1.html
  6145. * doc/aria2c.1.txt
  6146. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6147. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  6148. Don't define `struct addrinfo' when __sun is defined.
  6149. * src/getaddrinfo.h
  6150. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6151. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  6152. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  6153. second argument is of type `struct _stati64'. Otherwise it is defined as
  6154. `struct stat'.
  6155. * src/AbstractDiskWriter.cc
  6156. * src/File.cc
  6157. * src/File.h
  6158. * src/a2io.h
  6159. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6160. Fixed the compile error in hurd-i386
  6161. See the original bug report:
  6162. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  6163. * src/a2io.h
  6164. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6165. Code cleanup.
  6166. * src/PeerAbstractCommand.cc
  6167. * src/PeerAbstractCommand.h
  6168. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6169. Removed TransferEncoding.
  6170. * src/DownloadCommand.cc
  6171. * src/DownloadCommand.h
  6172. * src/HttpResponseCommand.cc
  6173. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6174. Updated po files.
  6175. * po/aria2c.pot
  6176. * po/*.po
  6177. * po/*.gmo
  6178. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6179. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  6180. * src/A2STR.cc
  6181. * src/A2STR.h
  6182. * src/ChunkedDecoder.cc
  6183. * src/ChunkedDecoder.h
  6184. * src/ChunkedEncoding.cc: Removed
  6185. * src/ChunkedEncoding.h: Removed
  6186. * src/DownloadCommand.cc
  6187. * src/DownloadCommand.h
  6188. * src/HttpDownloadCommand.cc
  6189. * src/HttpResponse.cc
  6190. * src/HttpResponse.h
  6191. * src/HttpResponseCommand.cc
  6192. * src/HttpSkipResponseCommand.cc
  6193. * src/HttpSkipResponseCommand.h
  6194. * src/Makefile.am
  6195. * src/TransferEncoding.h: Removed
  6196. * test/ChunkedDecoderTest.cc
  6197. * test/ChunkedEncodingTest.cc: Removed
  6198. * test/HttpResponseTest.cc
  6199. * test/Makefile.am
  6200. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6201. Use append instead of insert.
  6202. * src/GZipDecoder.cc
  6203. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6204. Updated doc
  6205. * src/Decoder.h
  6206. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6207. Updated usage text for -s option.
  6208. * src/usage_text.h
  6209. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6210. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  6211. * src/Request.cc
  6212. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6213. Cleaned up configure.ac.
  6214. * configure.ac
  6215. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6216. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  6217. AC_ARG_ENABLE.
  6218. * configure.ac
  6219. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6220. Added gzip, deflate decoding support in HTTP using libz. If compiled
  6221. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  6222. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  6223. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  6224. fly and writes decoded data to a local disk.
  6225. * README
  6226. * README.html
  6227. * configure.ac
  6228. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  6229. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  6230. * m4/libz.m4
  6231. * src/Decoder.h
  6232. * src/DownloadCommand.cc
  6233. * src/DownloadCommand.h
  6234. * src/Exception.h
  6235. * src/GZipDecoder.cc
  6236. * src/GZipDecoder.h
  6237. * src/HttpHeader.cc
  6238. * src/HttpHeader.h
  6239. * src/HttpRequest.cc
  6240. * src/HttpRequest.h
  6241. * src/HttpResponse.cc
  6242. * src/HttpResponse.h
  6243. * src/HttpResponseCommand.cc
  6244. * src/Makefile.am
  6245. * test/GZipDecoderTest.cc
  6246. * test/HttpRequestTest.cc
  6247. * test/HttpResponseTest.cc
  6248. * test/Makefile.am
  6249. * test/Makefile.in
  6250. * test/gzip_decode_test.gz
  6251. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6252. Clarified usage of -j option.
  6253. * src/usage_text.h
  6254. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6255. Disabled getting size from the response of RETR.
  6256. If SIZE command failed, then disable resuming and segmented downloading.
  6257. * src/FtpConnection.cc
  6258. * src/FtpConnection.h
  6259. * src/FtpNegotiationCommand.cc
  6260. * src/FtpNegotiationCommand.h
  6261. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6262. Use digits to find first byte of file size, which makes the intention
  6263. of the code clearer.
  6264. * src/FtpConnection.cc
  6265. Don't call validateTotalLength() when size is 0.
  6266. * src/FtpNegotiationCommand.cc
  6267. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6268. Updated po files.
  6269. * po/aria2c.pot
  6270. * po/*.gmo
  6271. * po/*.po
  6272. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6273. Clarified usage text for --split option.
  6274. * src/usage_text.h
  6275. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6276. Bump up version number to 0.15.0dev. "dev" means "development"
  6277. version, which means I started the development of the next release!
  6278. * src/configure.ac
  6279. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6280. If FTP server returns negative response with REST raw command and
  6281. requested range is not 0, throw exception. If requested range is 0,
  6282. continue download a file from 0 byte.
  6283. * src/FtpNegotiationCommand.cc
  6284. * src/FtpNegotiationCommand.h
  6285. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6286. Supported FTP server which don't recognize SIZE raw command.
  6287. If SIZE raw command is failed, aria2 will try to get file size
  6288. from the response of RETR raw command. If both attempts are failed,
  6289. then resuming and segmented downloading are disabled.
  6290. * src/FtpConnection.cc
  6291. * src/FtpConnection.h
  6292. * src/FtpNegotiationCommand.cc
  6293. * src/FtpNegotiationCommand.h
  6294. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6295. * Release 0.14.0+1
  6296. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6297. Bump up version number to 0.14.0+1
  6298. * src/configure.ac
  6299. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6300. Fixed the code that refers static member variable from non-static
  6301. context.
  6302. * src/DefaultPeerStorage.cc
  6303. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6304. * Release 0.14.0
  6305. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6306. Added build test script
  6307. * build_test.sh
  6308. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6309. Updated ja.po
  6310. * src/ja.po
  6311. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6312. Bump up version number to 0.14.0
  6313. * src/configure.ac
  6314. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6315. Updated ja.po and fr.po. Great thanks for french translators and
  6316. Sebastien WILLEMIJNS.
  6317. * po/fr.po
  6318. * po/ja.po
  6319. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6320. Added configure option to enable/disable epoll support.
  6321. * configure.ac
  6322. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6323. Updated man page.
  6324. * doc/aria2c.1.txt
  6325. * doc/aria2c.1
  6326. * doc/aria2c.1.html
  6327. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6328. Added missing default value '5' to the usage of --split option.
  6329. * src/HelpItemFactory.cc
  6330. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6331. Filled up pieces based on the number of missing blocks, rather than
  6332. simplay the number of piece * block length.
  6333. * src/BtRequestFactory.h
  6334. * src/DefaultBtInteractive.cc
  6335. * src/DefaultBtInteractive.h
  6336. * src/DefaultBtRequestFactory.cc
  6337. * src/DefaultBtRequestFactory.h
  6338. * src/Piece.cc
  6339. * src/Piece.h
  6340. * test/BitfieldManTest.cc
  6341. * test/DefaultBtRequestFactoryTest.cc
  6342. * test/MockBtRequestFactory.h
  6343. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6344. Made _epEvents a member variable.
  6345. * src/DownloadEngine.cc
  6346. * src/DownloadEngine.h
  6347. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6348. Cancel download if http redirect is bounded more than 20 times.
  6349. * src/AbstractCommand.cc
  6350. * src/HttpSkipResponseCommand.cc
  6351. * src/Request.cc
  6352. * src/Request.h
  6353. * test/RequestTest.cc
  6354. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6355. Fixed unhandled exception(removed keyword `new').
  6356. * src/SocketCore.cc (initEPOLL)
  6357. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6358. Removed visit(const MetaEntry*)
  6359. * src/MetaEntryVisitor.h:
  6360. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  6361. and made them virtual.
  6362. * src/BencodeVisitor.h
  6363. * src/BencodeVisitor.cc
  6364. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6365. Updated po files.
  6366. * po/aria2c.pot
  6367. * po/*.po
  6368. * po/*.gmo
  6369. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6370. Moved the call setWriteCheckSocket inside the previous clause to reduce
  6371. the number of socket to watch out.
  6372. * src/PeerInteractionCommand.cc
  6373. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6374. When there is not enough space in disk when writing a chunk of data,
  6375. aria2 now prints the message to the console to warn user and aborts
  6376. its download. Not all downloads are canceled because some downloads
  6377. may use another disk or partition. BUG#1640332
  6378. * src/AbstractDiskWriter.cc
  6379. * src/PeerAbstractCommand.cc
  6380. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  6381. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  6382. setHaltRequested(true) to cancel download.
  6383. * src/PeerInteractionCommand.h
  6384. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6385. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  6386. socket from int to sock_t as sockets are unsigned in Windows.
  6387. For AsyncNameResolver, DownloadEngine, I did additional modification
  6388. for the portion of the code changed according to epoll support.
  6389. I defined sock_t in a2netcompat.h to use sock_t without including
  6390. SocketCore.h.
  6391. * src/AsyncNameResolver.cc
  6392. * src/AsyncNameResolver.h
  6393. * src/DownloadEngine.cc
  6394. * src/DownloadEngine.h
  6395. * src/SocketCore.cc
  6396. * src/SocketCore.h
  6397. * src/a2netcompat.h
  6398. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6399. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  6400. changes in the patch were applied.
  6401. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  6402. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  6403. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  6404. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6405. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  6406. a2io.h and common.h were modified.
  6407. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  6408. MinGW.
  6409. * src/common.h: Changed off_t to 64 bit in MinGW.
  6410. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6411. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6412. only a2netcompat.h is modified.
  6413. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  6414. directives.
  6415. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6416. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6417. only gai_strerror.h is modified.
  6418. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  6419. winsock errors in MinGW.
  6420. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6421. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  6422. follow sources are applied.
  6423. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  6424. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  6425. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  6426. I included locale.h from Platform.cc.
  6427. * src/main.cc: Moved common setup/teardown code to Platform class.
  6428. * test/AllTest.cc: Use Platform class.
  6429. Set locale to C in AllTest.cc to prevent the messages to be localized.
  6430. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6431. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  6432. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  6433. * test/HttpRequestTest.cc: Casted to off_t where it should.
  6434. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6435. Applied Ross's aria2-0.13.2+1-mingw.patch and
  6436. aria2-0.13.2+1-mingw-2.patch.
  6437. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  6438. systems which don't have termious.h. I moved the directive inside of
  6439. if(isTTY) { ... clause so that line is wiped out without termious.h.
  6440. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  6441. anyway.
  6442. * src/asctime_r.h
  6443. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  6444. I added 2nd argument to the prototype declaration.
  6445. * src/StringFormat.cc: Get rid of vasprintf.
  6446. * src/getaddrinfo.h: Fixed constants.
  6447. * configure.ac: Added the check for asctime_r function.
  6448. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  6449. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6450. Added writable test for Socket when the sending message is in progress.
  6451. Usually the sending message is piece message. Without wriable check,
  6452. upload latency is dropped to more than 1sec.
  6453. * src/PeerInteractionCommand.cc
  6454. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6455. Create only requested files and files which shares a piece with
  6456. requested file in multi-torrent downloads. Directory structures are
  6457. also created in the same rule.
  6458. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  6459. DiskWriterEntry as in the previous implementation.
  6460. * src/MultiDiskWriter.cc
  6461. * src/MultiFileAllocationIterator.cc
  6462. * src/MultiFileAllocationIterator.h
  6463. * test/MultiFileAllocationIteratorTest.cc
  6464. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6465. Commented out -lprofiler
  6466. * src/Makefile.am
  6467. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6468. Bump up version number to 0.14.0b.
  6469. * src/configure.ac
  6470. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6471. Actively establish connection to peers in seeding, when peer cache
  6472. is not full and max upload speed limit is not reached.
  6473. * src/ActivePeerConnectionCommand.cc
  6474. * src/ActivePeerConnectionCommand.h
  6475. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6476. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  6477. to make room more fleshy, recently found peers.
  6478. Peer::_badConditionStartTime is not used anymore. Consider to remove
  6479. it.
  6480. * src/DefaultPeerStorage.cc
  6481. * test/DefaultPeerStorageTest.cc
  6482. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6483. Returns cached data only when the previous receiveHandshake() is called
  6484. with peek = true.
  6485. * src/PeerConnection.cc (receiveHandshake)
  6486. * src/PeerConnection.h (receiveHandshake)
  6487. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6488. Changed default value of -s option from 1 to 5.
  6489. Also max value of -s option is changed from 5 to 16.
  6490. * src/HelpItemFactory.cc
  6491. * src/OptionHandlerFactory.cc
  6492. * src/option_processing.cc
  6493. * src/usage_text.h
  6494. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6495. Changed -s options behavior. Now it means the number of connections
  6496. made simultaneously in each http/ftp download.
  6497. If 1 URL is specified, the behavior is the same with old implementation.
  6498. If -s N is given and more than N URLs are specified, first N URLs are
  6499. used and remaining URLs are used for backup. If less than N URLs are
  6500. specified, some of URLs are used more than once so that totally N
  6501. connections are made simultaneously.
  6502. * src/main.cc
  6503. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6504. Included missing iosfwd or ostream header.
  6505. * src/RequestGroupMan.cc
  6506. * src/TaggedItem.cc
  6507. * src/TaggedItem.h
  6508. * src/Util.cc
  6509. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6510. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  6511. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  6512. * src/HttpConnection.cc: Included missing sstream.
  6513. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6514. Added --bt-max-open-files option.
  6515. * src/DefaultPieceStorage.cc
  6516. * src/HelpItemFactory.cc
  6517. * src/MultiDiskAdaptor.cc
  6518. * src/MultiDiskAdaptor.h
  6519. * src/OptionHandlerFactory.cc
  6520. * src/option_processing.cc
  6521. * src/prefs.cc
  6522. * src/prefs.h
  6523. * src/usage_text.h
  6524. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6525. Fixed the bug that aria2 aborts when a path to a directory is given
  6526. in command-line.
  6527. * src/ProtocolDetector.cc
  6528. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6529. Limited the number files opened in each BitTorrent download. The default
  6530. value is 100. The option to change this value will be added.
  6531. * src/MultiDiskAdaptor.cc
  6532. * src/MultiDiskAdaptor.h
  6533. * src/MultiFileAllocationIterator.cc
  6534. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6535. Fixed the bug that HTTP downloads don't start with old libraries.
  6536. * src/HttpHeaderProcessor.cc
  6537. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6538. Use empty() instead of size() > 0.
  6539. * src/HttpConnection.cc
  6540. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6541. Drop connection if the incoming peer ID is the same with localhost's
  6542. one. The previous implementation drops connection when incoming peer's
  6543. IP address is the same with localhost's one.
  6544. * src/PeerListenCommand.cc
  6545. * src/DefaultBtInteractive.cc
  6546. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6547. Returns cached data without checking whether socket is readable
  6548. if the cache is available.
  6549. * src/PeerConnection.cc (receiveHandshake)
  6550. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6551. Included stdint.h
  6552. * src/common.h
  6553. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6554. Removed duplicate HAVE_GETTIMEOFDAY
  6555. * src/Makefile.am
  6556. * src/Makefile.in
  6557. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6558. Use interval as a minInterval when minInterval is not supplied.
  6559. * src/DefaultBtAnnounce.cc
  6560. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6561. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  6562. attempt is failed, then 2nd attempt get kicked out more quickly.
  6563. And it is now static const member of DefaultBtAnnounce.
  6564. * src/DefaultBtAnnounce.h
  6565. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6566. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  6567. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  6568. * src/ActivePeerConnectionCommand.cc
  6569. * src/BtConstants.h
  6570. * src/BtRuntime.h
  6571. * src/DHTGetPeersCommand.cc
  6572. * src/DefaultBtAnnounce.cc
  6573. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  6574. BtRuntime::MAX_PEERS.
  6575. * src/DefaultPeerStorage.h
  6576. * src/InitiatorMSEHandshakeCommand.cc
  6577. * src/PeerInitiateConnectionCommand.cc
  6578. * src/PeerInteractionCommand.cc
  6579. * src/PeerReceiveHandshakeCommand.cc
  6580. * src/TrackerWatcherCommand.cc
  6581. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6582. Always Connect to _numNewConnection
  6583. * src/ActivePeerConnectionCommand.cc
  6584. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6585. Made `begin' unsigned int.
  6586. * src/GrowSegment.h
  6587. * src/Piece.cc
  6588. * src/Piece.h
  6589. * src/PiecedSegment.cc
  6590. * src/PiecedSegment.h
  6591. * src/Segment.h
  6592. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6593. Calculate piece hash when data is arrived if the data is arrived in
  6594. order. This removes additional read operation for hash calculation.
  6595. If the data is arrived in out of order, the hash is calucated when the
  6596. piece is completed. This is the same behavior as the old implementation.
  6597. * src/BtPieceMessage.cc
  6598. * src/DefaultBtProgressInfoFile.cc
  6599. * src/DefaultPieceStorage.cc
  6600. * src/DownloadCommand.cc
  6601. * src/DownloadCommand.h
  6602. * src/DownloadEngine.cc
  6603. * src/GrowSegment.cc
  6604. * src/GrowSegment.h
  6605. * src/Piece.cc
  6606. * src/Piece.h
  6607. * src/PiecedSegment.cc
  6608. * src/PiecedSegment.h
  6609. * src/Segment.h
  6610. * test/PieceTest.cc
  6611. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6612. Try to keep the ordering of outgoing piece message.
  6613. * src/DefaultBtMessageDispatcher.cc
  6614. (DefaultBtMessageDispatcher::sendMessages)
  6615. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6616. Fixed busy loop when error/hup epoll events occur.
  6617. * src/AbstractCommand.cc
  6618. * src/PeerAbstractCommand.cc
  6619. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6620. Added --bt-request-peer-speed-limit option, which was a constant
  6621. SLOW_SPEED_THRESHOLD.
  6622. * src/ActivePeerConnectionCommand.cc
  6623. * src/ActivePeerConnectionCommand.h
  6624. * src/BtConstants.h
  6625. * src/HelpItemFactory.cc
  6626. * src/OptionHandlerFactory.cc
  6627. * src/PeerReceiveHandshakeCommand.cc
  6628. * src/option_processing.cc
  6629. * src/prefs.cc
  6630. * src/prefs.h
  6631. * src/usage_text.h
  6632. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6633. Removed repeated call of getTopDirPath(). Instead, call it once and
  6634. cache the result.
  6635. * src/MultiDiskAdaptor.cc
  6636. * src/MultiDiskAdaptor.h
  6637. (mkdir, openFile, initAndOpenFile, openExistingFile)
  6638. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6639. Fixed compile error on debian etch.
  6640. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  6641. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  6642. it is undefined.
  6643. * src/Util.cc (ULLONG_MAX)
  6644. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6645. Added epoll support. Use epoll if it is available. If not, use select.
  6646. When async dns is enabled in compile time, epoll support is enabled
  6647. only when aria2 is built with c-ares. This condition statement is
  6648. defined in a2io.h.
  6649. Currently aria2 supports both c-ares and ares, but ares is maintained
  6650. for quite a while and debian already has c-ares package, ares support
  6651. will be dropped in the future version.
  6652. * configure.ac
  6653. * src/AbstractCommand.cc
  6654. * src/AsyncNameResolver.cc
  6655. * src/AsyncNameResolver.h
  6656. * src/Command.cc
  6657. * src/Command.h
  6658. * src/DownloadEngine.cc
  6659. * src/DownloadEngine.h
  6660. * src/PeerAbstractCommand.cc
  6661. * src/SocketCore.cc
  6662. * src/SocketCore.h
  6663. * src/a2io.h
  6664. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6665. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  6666. directive.
  6667. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6668. Do not do write operation to /dev/null file.
  6669. * src/LogFactory.cc
  6670. * src/SimpleLogger.cc
  6671. Replaced vasprintf with vsnprintf
  6672. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6673. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6674. * src/BtRequestMessage.cc
  6675. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  6676. for segmentation fault caused by previous commit.
  6677. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6678. Reduced the usage of gettimeofday().
  6679. * src/DefaultBtMessageDispatcher.cc
  6680. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  6681. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6682. * src/RequestSlot.cc
  6683. * src/RequestSlot.h
  6684. (RequestSlot::isTimeout)
  6685. Made RequestSlot have a reference to Piece object to avoid find
  6686. Piece repeatedly.
  6687. * src/DefaultBtMessageDispatcher.cc
  6688. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6689. * src/RequestSlot.cc
  6690. * src/RequestSlot.h
  6691. (RequestSlot::getPiece)
  6692. * test/DefaultBtMessageDispatcherTest.cc
  6693. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6694. * src/TimeA2.cc
  6695. * src/TimeA2.h
  6696. (Time::difference): New function.
  6697. (Time::elapsed): Done optimization.
  6698. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6699. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  6700. directive.
  6701. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6702. * src/option_processing.cc: Added missing `defined' keyword to #if
  6703. directive.
  6704. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6705. Bump up version number to 0.13.2+1
  6706. * src/configure.ac
  6707. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6708. Refactored broken outstanding piece handling.
  6709. * src/DefaultPieceStorage.cc
  6710. * src/DefaultPieceStorage.h
  6711. * src/Piece.cc
  6712. * src/Piece.h
  6713. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6714. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  6715. name collision of static variable and predefined macro.
  6716. * src/BtContext.cc
  6717. * src/BtContext.h
  6718. * src/CookieBoxFactory.cc
  6719. * src/CookieBoxFactory.h
  6720. * src/CookieParser.cc
  6721. * src/CookieParser.h
  6722. * src/DefaultBtContext.cc
  6723. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6724. * src/RequestGroup.cc
  6725. (RequestGroup::createInitialCommand): Use empty() instead of size().
  6726. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6727. * Release 0.13.2
  6728. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6729. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  6730. * po/fr.po
  6731. * po/ja.po
  6732. * po/aria2c.pot
  6733. * po/*.po
  6734. * po/*.gmo
  6735. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6736. Bump up version number to 0.13.2
  6737. * src/configure.ac
  6738. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6739. Refactord.
  6740. * src/RequestGroupMan.cc
  6741. (removeStoppedGroup)
  6742. (fillRequestGroupFromReserver)
  6743. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6744. Fixed compile error on Ubuntu.
  6745. * src/BtPieceMessage.cc
  6746. * src/MessageDigestHelper.cc
  6747. * src/Util.cc
  6748. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6749. Fixed compile error when configured with --disable-bittorrent
  6750. * test/DownloadHandlerFactoryTest.cc
  6751. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6752. Done make update-po
  6753. * po/aria2c.pot
  6754. * po/*.po
  6755. * po/*.gmo
  6756. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6757. Bump up version number to 0.13.2rc.
  6758. * src/configure.ac
  6759. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6760. Made option name bold. Updated SYNOPSIS to make it more readable.
  6761. * doc/aria2c.1.txt
  6762. * doc/aria2c.1
  6763. * doc/aria2c.1.html
  6764. * src/version_usage.cc
  6765. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6766. Refactored. Use std::string instead of size and char*.
  6767. * Data.cc
  6768. * Data.h
  6769. * test/Data.cc
  6770. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6771. Added trimSelf(). Rewritten trim() to use trimSelf().
  6772. * Util.cc
  6773. * Util.h
  6774. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6775. * src/ChunkChecksum.h (getChecksum): Return const reference.
  6776. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6777. Fixed compile error when configured with --disable-metalink.
  6778. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  6779. * test/FeatureConfigTest.cc
  6780. * test/DownloadHandlerFactoryTest.cc
  6781. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6782. Fixed compile error when configured with --without-gnutls
  6783. --without-openssl
  6784. * src/main.cc
  6785. * test/DefaultBtProgressInfoFileTest.cc
  6786. * test/SegmentManTest.cc
  6787. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6788. Fixed compile error with OpenSSL.
  6789. * src/IteratableChunkChecksumValidator.cc
  6790. * src/LibsslDHKeyExchange.h
  6791. * src/MessageDigestHelper.cc
  6792. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6793. Revert the default value of --max-concurrent-downloads to 5.
  6794. Revert the default value of --metalink-servers to 5.
  6795. Man pages was also updated.
  6796. * src/option_processing.cc
  6797. * doc/aria2c.1.txt
  6798. * doc/aria2c.1.html
  6799. * doc/aria2c.1
  6800. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6801. Returns const reference:
  6802. DownloadContext::getPieceHash, DownloadContext::getName,
  6803. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  6804. BtContext::getInfoHashAsString,
  6805. * src/BtContext.h
  6806. * src/DefaultBtContext.cc
  6807. * src/DefaultBtContext.h
  6808. * src/DownloadContext.h
  6809. * src/SingleFileDownloadContext.h
  6810. * test/MockBtContext.h
  6811. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6812. * src/RequestGroup.h (getDir): Removed.
  6813. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6814. Returns const reference. The internal urlencode function was optimized
  6815. a little bit.
  6816. * src/Request.cc
  6817. * src/Request.h
  6818. * src/HttpRequest.cc
  6819. * src/HttpRequest.h
  6820. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6821. Defined option name and possible values as std::string to reduce
  6822. temporary string object creation in runtime.
  6823. * src/HelpItemFactory.cc
  6824. * src/LogFactory.cc
  6825. * src/Option.cc
  6826. * src/OptionHandlerFactory.cc
  6827. * src/option_processing.cc
  6828. * src/prefs.cc
  6829. * src/prefs.h
  6830. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6831. Return const reference.
  6832. * src/DownloadHandlerConstants.cc
  6833. * src/DownloadHandlerConstants.h
  6834. (getMetalinkExtensions)
  6835. (getMetalinkContentTypes)
  6836. (getBtExtensions)
  6837. (getBtContentTypes)
  6838. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6839. * src/HttpHeader.cc (get): Rewritten.
  6840. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6841. Make HttpHeader::getFirst(...) return const reference.
  6842. * src/HttpHeader.cc
  6843. * src/HttpHeader.h
  6844. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6845. Use Option::getAsBool(...) instead of Option::get(...) and compare
  6846. it with V_TRUE.
  6847. * src/DefaultPieceStorage.cc
  6848. * src/DownloadCommand.cc
  6849. * src/FtpNegotiationCommand.cc
  6850. * src/HttpRequest.cc
  6851. * src/InitiateConnectionCommand.cc
  6852. * src/RequestGroup.cc
  6853. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6854. Made Option::get(...) return const reference of std::string.
  6855. * src/Option.cc
  6856. * src/Option.h
  6857. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6858. Replaced std:copy with insert.
  6859. * src/DefaultBtMessageDispatcher.cc
  6860. * src/DefaultPieceStorage.cc
  6861. * src/DownloadEngineFactory.cc
  6862. * src/RequestGroup.cc
  6863. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6864. Included SocketCore.h to fix compiler warning.
  6865. * src/InitiateConnectionCommand.cc
  6866. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6867. Put piece selection strategy algorithm to RarestPieceSelector class,
  6868. Added a switch to choose whether randomized selection so that unit
  6869. tests emit same results in, possibly, win32.
  6870. * src/DefaultPieceStorage.cc
  6871. * src/DefaultPieceStorage.h
  6872. * src/RarestPieceSelector.cc
  6873. * src/RarestPieceSelector.h
  6874. * test/DefaultPieceStorageTest.cc
  6875. * test/RarestPieceSelectorTest.cc
  6876. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6877. Don't pool connection if HTTP proxy is enabled.
  6878. * src/FtpFinishDownloadCommand.cc
  6879. * src/FtpNegotiationCommand.cc
  6880. * src/HttpSkipResponseCommand.cc
  6881. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6882. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  6883. * src/AbstractCommand.cc
  6884. * src/AbstractCommand.h
  6885. * src/ActivePeerConnectionCommand.cc
  6886. * src/FtpInitiateConnectionCommand.cc
  6887. * src/HttpInitiateConnectionCommand.cc
  6888. * src/InitiateConnectionCommandFactory.cc
  6889. * src/PeerAbstractCommand.cc
  6890. * src/PeerAbstractCommand.h
  6891. * src/PeerInitiateConnectionCommand.cc
  6892. * src/TrackerWatcherCommand.cc
  6893. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6894. Sort RequestSlot in ascending order and manipulate them using
  6895. lower_bound.
  6896. * src/DefaultBtMessageDispatcher.cc
  6897. * src/DefaultBtMessageDispatcher.h
  6898. (getMessageQueue): Added const qualifier.
  6899. (getRequestSlots): Added const qualifier.
  6900. (sendMessages): Use empty() instead of size().
  6901. (doCancelSendingPieceAction): Use HandleEvent object.
  6902. (doAbortOutstandingRequestAction): Rewritten.
  6903. (doChokedAction): Rewritten.
  6904. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  6905. (isOutstandingRequest): Rewritten.
  6906. (getOutstandingRequest): Rewritten.
  6907. (removeOutstandingRequest): Rewritten.
  6908. (addOutstandingRequest): Rewritten.
  6909. * src/RequestSlot.cc
  6910. * src/RequestSlot.h
  6911. (operator=): Rewritten.
  6912. (operator!=): New function.
  6913. (operator<): New function.
  6914. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6915. * src/DefaultBtRequestFactory.cc
  6916. (doChokedAction): Rewritten.
  6917. (removeCompletedPiece): Rewritten.
  6918. (removeTargetPiece): Rewritten.
  6919. (createRequestMessages): Added the debug log.
  6920. (createRequestMessagesOnEndGame: Added the debug log.
  6921. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6922. Added the debug log message.
  6923. * src/BtPieceMessage.cc (doReceivedAction)
  6924. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6925. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  6926. used lower_bound to process them rather than linear search.
  6927. * src/DHTPeerAnnounceStorage.cc
  6928. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6929. Call subtractPieceStats from ~PeerInteractionCommand only when the
  6930. peer has at least one completed piece.
  6931. * src/Peer.cc
  6932. * src/Peer.h
  6933. * src/PeerInteractionCommand.cc
  6934. * src/PeerSessionResource.cc
  6935. * src/PeerSessionResource.h
  6936. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6937. Removed unnecessary sorting
  6938. * src/DefaultPieceStorage (DefaultPieceStorage)
  6939. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6940. Rewritten the portion of the code that mangaes allowed fast indexes.
  6941. * src/PeerSessionResource.cc
  6942. * src/PeerSessionResource.h
  6943. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6944. Removed the invalid string including '\r' from ru.po and
  6945. did make update-po.
  6946. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6947. Added --log-level and --summary-interval to man page.
  6948. * doc/aria2c.1.txt
  6949. * doc/aria2c.1.html
  6950. * doc/aria2c.1
  6951. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6952. Added --log-level option to specify log level. Log messages under
  6953. the specified level are not output. Default value is `debug'.
  6954. * src/HelpItemFactory.cc
  6955. * src/LogFactory.cc
  6956. * src/LogFactory.h
  6957. * src/Logger.h
  6958. * src/OptionHandlerFactory.cc
  6959. * src/SimpleLogger.cc
  6960. * src/SimpleLogger.h
  6961. * src/main.cc
  6962. * src/option_processing.cc
  6963. * src/prefs.h
  6964. * src/usage_text.h
  6965. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6966. Print download progress summary of all parallel downloads in specified
  6967. interval, default 60 secs. While aria2 could download several files
  6968. in parallel (see -j option), it displayed just first download progress,
  6969. and the other downloads are hidden from the users. This new feature
  6970. prints all downloads currently in-progress to the console so that you
  6971. can check the status of all downloads. The interval can be adjusted
  6972. by --summary-interval option.
  6973. The progress readout is now cut so that all fits in the one line of
  6974. console.
  6975. * src/ConsoleStatCalc.cc
  6976. * src/ConsoleStatCalc.h
  6977. * src/HelpItemFactory.cc
  6978. * src/OptionHandlerFactory.cc
  6979. * src/RequestGroupMan.cc
  6980. * src/RequestGroupMan.h
  6981. * src/main.cc
  6982. * src/option_processing.cc
  6983. * src/prefs.h
  6984. * src/usage_text.h
  6985. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6986. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  6987. * src/DownloadEngine.cc (DownloadEngine)
  6988. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6989. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  6990. defined.
  6991. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  6992. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6993. Use erase+lower_bound+insert instead of sort.
  6994. * src/DefaultPieceStorage.cc (addPieceStats)
  6995. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6996. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  6997. * src/A2STR.cc
  6998. * src/A2STR.h
  6999. * src/OptionParser.cc (parse)
  7000. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7001. Defined fake filename `[tracker.announce]' as static const std::string.
  7002. * src/TrackerWatcherCommand.cc (createRequestGroup)
  7003. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7004. Defined default filename `index.html' as static const std::string
  7005. * src/SingleFileDownloadContext.cc
  7006. * src/SingleFileDownloadContext.h
  7007. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7008. Defined "[MEMORY]" as static const std::string.
  7009. * src/MemoryBufferPreDownloadHandler.cc (execute)
  7010. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7011. Defined control file's version number as static const std::string.
  7012. * src/DefaultBtProgressInfoFile.cc
  7013. * src/DefaultBtProgressInfoFile.h
  7014. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7015. Use Request::METHOD_GET
  7016. * src/RequestGroup.cc (createNextCommandWithAdj)
  7017. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7018. Defined "OK", "ERR", "INPR" as static const std::string
  7019. * src/RequestGroupMan.cc (showDownloadResults)
  7020. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7021. Defined default client used in extended handshake as static const
  7022. std::string
  7023. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  7024. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7025. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  7026. * src/HttpConnection.cc (eraseConfidentialInfo)
  7027. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7028. Defined default ftp user and password as static const std::string
  7029. * src/AuthConfigFactory.cc
  7030. * src/AuthConfigFactory.h
  7031. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7032. Defined strings used in netrc as static const std::string
  7033. * src/Netrc.cc
  7034. * src/Netrc.h
  7035. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7036. Defined HTTP status as static const std::string
  7037. * src/AbstractProxyResponseCommand.cc
  7038. * src/HttpHeader.cc
  7039. * src/HttpHeader.h
  7040. * src/HttpResponse.cc
  7041. * src/HttpResponseCommand.cc
  7042. * src/HttpSkipResponseCommand.cc
  7043. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7044. Defined "\r\n", "A", "I" as static const std::string
  7045. * src/A2STR.cc
  7046. * src/A2STR.h
  7047. * src/FtpConnection.cc
  7048. * src/FtpConnection.h
  7049. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7050. Added COLON_C(".") and used it in Request::parseUrl()
  7051. * src/A2STR.cc
  7052. * src/A2STR.h
  7053. * src/Request.cc (parseUrl)
  7054. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7055. Changed the type of padName from `const std::string&' to `const char*'.
  7056. * src/MSEHandshake.cc (verifyPadLength)
  7057. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7058. Defined "sha1" as static const std::string.
  7059. * src/MetalinkParserController.cc
  7060. * src/MetalinkParserController.h
  7061. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7062. Defined message digest algorithm name as static const std::string
  7063. * src/DHTTokenTracker.cc
  7064. * src/DHTUtil.cc
  7065. * src/DefaultBtContext.cc
  7066. * src/MSEHandshake.cc
  7067. * src/MessageDigestHelper.cc
  7068. * src/Peer.cc
  7069. * src/messageDigest.cc
  7070. * src/messageDigest.h
  7071. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7072. Made string literals used in SAX parser static const std::string.
  7073. * src/FileMetalinkParserState.cc
  7074. * src/FileMetalinkParserState.h
  7075. * src/FilesMetalinkParserState.cc
  7076. * src/FilesMetalinkParserState.h
  7077. * src/InitialMetalinkParserState.cc
  7078. * src/InitialMetalinkParserState.h
  7079. * src/MetalinkMetalinkParserState.cc
  7080. * src/MetalinkMetalinkParserState.h
  7081. * src/PiecesMetalinkParserState.cc
  7082. * src/PiecesMetalinkParserState.h
  7083. * src/ResourcesMetalinkParserState.cc
  7084. * src/ResourcesMetalinkParserState.h
  7085. * src/VerificationMetalinkParserState.cc
  7086. * src/VerificationMetalinkParserState.h
  7087. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7088. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  7089. * src/A2STR.cc
  7090. * src/A2STR.h
  7091. * src/File.cc
  7092. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7093. Defined static const std::string IP("ip"), PORT("port") and use them
  7094. instead of string literals.
  7095. * src/DefaultPeerListProcessor.cc
  7096. * src/DefaultPeerListProcessor.h
  7097. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7098. Made string literals for torrent file processing static const
  7099. std::string.
  7100. * src/BtContext.cc
  7101. * src/BtContext.h
  7102. * src/DefaultBtContext.cc
  7103. * src/DefaultBtContext.h
  7104. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7105. Made string literal for tracker response static const std::string
  7106. * src/BtAnnounce.cc
  7107. * src/BtAnnounce.h
  7108. * src/DefaultBtAnnounce.cc
  7109. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7110. Use DHTMessage::T instead of "t".
  7111. * src/DHTMessageTracker.cc (messageArrived)
  7112. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7113. Made keyName static const. Made trimmed charset static const
  7114. std::string.
  7115. * src/Util.cc (getContentDispositionFilename)
  7116. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7117. Made USER_AGENT const. Made "/" static const std::string.
  7118. * src/A2STR.cc
  7119. * src/A2STR.h
  7120. * src/HttpRequest.cc
  7121. * src/HttpRequest.h
  7122. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7123. Made string listeral to static const std::string:
  7124. "Content-Range", "Content-Length"
  7125. * src/HttpHeader.cc
  7126. * src/HttpHeader.h
  7127. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7128. Made string listeral to static const std::string.
  7129. * src/HttpConnection.cc
  7130. * src/HttpHeader.cc
  7131. * src/HttpHeader.h
  7132. * src/HttpResponse.cc
  7133. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7134. Made string listeral to static const std::string.
  7135. * src/A2STR.cc
  7136. * src/A2STR.h
  7137. * src/SimpleLogger.cc
  7138. * src/SimpleLogger.h
  7139. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7140. Made string literal to static const std::string.
  7141. Rewritten CookieParser::setField.
  7142. * src/A2STR.cc
  7143. * src/A2STR.h
  7144. * src/CookieBoxFactory.cc
  7145. * src/CookieBoxFactory.h
  7146. * src/CookieParser.cc
  7147. * src/CookieParser.h
  7148. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7149. Made string literal to static const std::string
  7150. * src/DHTAbstractMessage.cc
  7151. * src/DHTAnnouncePeerMessage.cc
  7152. * src/DHTAnnouncePeerMessage.h
  7153. * src/DHTAnnouncePeerReplyMessage.cc
  7154. * src/DHTAnnouncePeerReplyMessage.h
  7155. * src/DHTFindNodeMessage.cc
  7156. * src/DHTFindNodeMessage.h
  7157. * src/DHTFindNodeReplyMessage.cc
  7158. * src/DHTFindNodeReplyMessage.h
  7159. * src/DHTGetPeersMessage.cc
  7160. * src/DHTGetPeersMessage.h
  7161. * src/DHTGetPeersReplyMessage.cc
  7162. * src/DHTGetPeersReplyMessage.h
  7163. * src/DHTMessage.cc
  7164. * src/DHTMessage.h
  7165. * src/DHTMessageFactoryImpl.cc
  7166. * src/DHTMessageReceiver.cc
  7167. * src/DHTPingMessage.cc
  7168. * src/DHTPingMessage.h
  7169. * src/DHTPingReplyMessage.cc
  7170. * src/DHTPingReplyMessage.h
  7171. * src/DHTQueryMessage.cc
  7172. * src/DHTQueryMessage.h
  7173. * src/DHTResponseMessage.cc
  7174. * src/DHTResponseMessage.h
  7175. * src/DHTUnknownMessage.cc
  7176. * src/DHTUnknownMessage.h
  7177. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7178. Made string literal to static const std::string
  7179. * src/BtChokeMessage.cc (toString)
  7180. * src/BtHaveAllMessage.cc (toString)
  7181. * src/BtHaveNoneMessage.cc (toString)
  7182. * src/BtInterestedMessage.cc (toString)
  7183. * src/BtNotInterestedMessage.cc (toString)
  7184. * src/BtUnchokeMessage.cc (toString)
  7185. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7186. Replaced "" with static const variable A2STR::NIL.
  7187. Replaced string comparison against "" with std::string::empty().
  7188. Added PROTO_* to Request class and use them as a protocol string
  7189. constant.
  7190. Made "started", "stopped", "completed" static const variable in
  7191. AnnounceList class.
  7192. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7193. Updated translations. Great thanks to translators.
  7194. * po/ca.po
  7195. * po/de.po
  7196. * po/fr.po
  7197. * po/it.po
  7198. * po/ja.po
  7199. * po/ru.po
  7200. * po/zh_CN.po
  7201. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7202. Updated man page; categorized options and fixed typo.
  7203. * doc/aria2c.1.txt
  7204. * doc/aria2c.1.html
  7205. * doc/aria2c.1
  7206. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7207. Removed const ref
  7208. * src/MetalinkEntry.cc (AddProtocolPreference)
  7209. * src/RequestGroup.cc (FindServerHostByHostname)
  7210. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7211. Rewritten Accept-Features handling.
  7212. * src/HttpRequestCommand.cc (createHttpRequest)
  7213. * src/a2functional.h
  7214. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7215. Changed method signature:
  7216. DHTAbstractNodeLookupTask::toEntries
  7217. * src/DHTAbstractNodeLookupTask.cc
  7218. * src/DHTAbstractNodeLookupTask.h
  7219. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7220. Changed method signature:
  7221. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  7222. * src/BtContext.h
  7223. * src/DefaultBtContext.cc
  7224. * src/DefaultBtContext.h
  7225. * src/DefaultBtInteractive.cc
  7226. * test/DefaultBtContextTest.cc
  7227. * test/MockBtContext.h
  7228. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7229. Changed method signature:
  7230. MultiFileAllocationIterator::makeDiskWriterEntries
  7231. * src/MultiFileAllocationIterator.cc
  7232. * src/MultiFileAllocationIterator.h
  7233. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7234. Changed method sinature:
  7235. MetalinkEntry::toFileEntry,
  7236. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  7237. Metalinker::queryEntry
  7238. * src/Metalink2RequestGroup.cc
  7239. * src/MetalinkEntry.cc
  7240. * src/MetalinkEntry.h
  7241. * src/MetalinkHelper.cc
  7242. * src/MetalinkHelper.h
  7243. * src/Metalinker.cc
  7244. * src/Metalinker.h
  7245. * src/main.cc
  7246. * test/MetalinkHelperTest.cc
  7247. * test/MetalinkerTest.cc
  7248. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7249. Changed method sinature:
  7250. RequestGroup::getURIs
  7251. * src/RequestGroup.cc
  7252. * src/RequestGroup.h
  7253. * test/Metalink2RequestGroupTest.cc
  7254. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7255. Changed method signature:
  7256. PeerListProcessor::extractPeer
  7257. * src/CompactPeerListProcessor.cc
  7258. * src/CompactPeerListProcessor.h
  7259. * src/DefaultBtAnnounce.cc
  7260. * src/DefaultPeerListProcessor.cc
  7261. * src/DefaultPeerListProcessor.h
  7262. * src/DelegatingPeerListProcessor.cc
  7263. * src/DelegatingPeerListProcessor.h
  7264. * src/PeerListProcessor.h
  7265. * src/UTPexExtensionMessage.cc
  7266. * test/DefaultPeerListProcessorTest.cc
  7267. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7268. Changed method signature:
  7269. BtRequestFactory::createRequestMessages,
  7270. BtRequestFactory::createRequestMessagesOnEndGame
  7271. * src/BtRequestFactory.h
  7272. * src/DefaultBtInteractive.cc
  7273. * src/DefaultBtRequestFactory.cc
  7274. * src/DefaultBtRequestFactory.h
  7275. * test/DefaultBtRequestFactoryTest.cc
  7276. * test/MockBtRequestFactory.h
  7277. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7278. Changed method signature:
  7279. PieceStorage::getInFlightPieces
  7280. * src/DefaultBtProgressInfoFile.cc
  7281. * src/DefaultPieceStorage.cc
  7282. * src/DefaultPieceStorage.h
  7283. * src/PieceStorage.h
  7284. * src/UnknownLengthPieceStorage.cc
  7285. * src/UnknownLengthPieceStorage.h
  7286. * test/DefaultBtProgressInfoFileTest.cc
  7287. * test/MockPieceStorage.h
  7288. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7289. Changed method signature:
  7290. PostDownloadHandler::getNextRequestGroups
  7291. Metalink2RequestGroup::generate
  7292. RequestGroup::postDownloadProcessing
  7293. * src/BtPostDownloadHandler.cc
  7294. * src/BtPostDownloadHandler.h
  7295. * src/Metalink2RequestGroup.cc
  7296. * src/Metalink2RequestGroup.h
  7297. * src/MetalinkPostDownloadHandler.cc
  7298. * src/MetalinkPostDownloadHandler.h
  7299. * src/PostDownloadHandler.h
  7300. * src/RequestGroup.cc
  7301. * src/RequestGroup.h
  7302. * src/RequestGroupMan.cc
  7303. * src/main.cc
  7304. * test/BtPostDownloadHandlerTest.cc
  7305. * test/Metalink2RequestGroupTest.cc
  7306. * test/MetalinkPostDownloadHandlerTest.cc
  7307. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7308. Rewritten AccRequestGroup
  7309. * src/main.cc
  7310. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7311. Rewritten.
  7312. * src/TaggedItem.cc (toTagString)
  7313. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7314. Rewritten Accept-Features handling.
  7315. * src/HttpRequestCommand.cc (createHttpRequest)
  7316. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7317. Rewritten accept types handling.
  7318. * HttpRequest.cc (createRequest)
  7319. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7320. Rewritten
  7321. * src/FeatureConfig.cc (featureSummary)
  7322. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7323. Changed method signature:
  7324. PeerStorage::getActivePeers
  7325. * src/DHTPeerAnnounceEntry.cc
  7326. * src/DefaultPeerStorage.cc
  7327. * src/DefaultPeerStorage.h
  7328. * src/PeerStorage.h
  7329. * test/DefaultPeerStorageTest.cc
  7330. * test/MockPeerStorage.h
  7331. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7332. Changed method signature:
  7333. DHTPeerAnnounceStorage::getPeers,
  7334. DHTPeerAnnounceEntry::getPeers
  7335. * src/DHTGetPeersMessage.cc
  7336. * src/DHTPeerAnnounceEntry.cc
  7337. * src/DHTPeerAnnounceEntry.h
  7338. * src/DHTPeerAnnounceStorage.cc
  7339. * src/DHTPeerAnnounceStorage.h
  7340. * test/DHTAnnouncePeerMessageTest.cc
  7341. * test/DHTPeerAnnounceEntryTest.cc
  7342. * test/DHTPeerAnnounceStorageTest.cc
  7343. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7344. Changed method signature:
  7345. NameResolver::resolve
  7346. * src/DHTEntryPointNameResolveCommand.cc
  7347. * src/InitiateConnectionCommand.cc
  7348. * src/NameResolver.cc
  7349. * src/NameResolver.h
  7350. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7351. Changed method signature:
  7352. PieceStorage::getAdvertisedPieceIndexes
  7353. * src/DefaultBtInteractive.cc
  7354. * src/DefaultPieceStorage.cc
  7355. * src/DefaultPieceStorage.h
  7356. * src/PieceStorage.h
  7357. * src/UnknownLengthPieceStorage.h
  7358. * test/MockPieceStorage.h
  7359. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7360. Changed method signature:
  7361. SegmentMan::getInFlightSegment
  7362. * src/AbstractCommand.cc
  7363. * src/SegmentMan.cc
  7364. * src/SegmentMan.h
  7365. * test/SegmentManTest.cc
  7366. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7367. Changed method signature:
  7368. DHTAbstractNodeLookupTask::getNodesFromMessage
  7369. * src/DHTAbstractNodeLookupTask.cc
  7370. * src/DHTAbstractNodeLookupTask.h
  7371. * src/DHTNodeLookupTask.cc
  7372. * src/DHTNodeLookupTask.h
  7373. * src/DHTPeerLookupTask.cc
  7374. * src/DHTPeerLookupTask.h
  7375. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7376. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  7377. * src/AbstractCommand.cc
  7378. * src/BtCheckIntegrityEntry.cc
  7379. * src/BtCheckIntegrityEntry.h
  7380. * src/BtFileAllocationEntry.cc
  7381. * src/BtFileAllocationEntry.h
  7382. * src/BtSetup.cc
  7383. * src/BtSetup.h
  7384. * src/CheckIntegrityCommand.cc
  7385. * src/CheckIntegrityEntry.h
  7386. * src/ChecksumCheckIntegrityEntry.cc
  7387. * src/ChecksumCheckIntegrityEntry.h
  7388. * src/DHTSetup.cc
  7389. * src/DHTSetup.h
  7390. * src/DownloadEngine.cc
  7391. * src/FileAllocationCommand.cc
  7392. * src/FileAllocationEntry.h
  7393. * src/RequestGroup.cc
  7394. * src/RequestGroup.h
  7395. * src/RequestGroupMan.cc
  7396. * src/RequestGroupMan.h
  7397. * src/StreamCheckIntegrityEntry.cc
  7398. * src/StreamCheckIntegrityEntry.h
  7399. * src/StreamFileAllocationEntry.cc
  7400. * src/StreamFileAllocationEntry.h
  7401. * src/TrackerWatcherCommand.cc
  7402. * src/a2functional.h
  7403. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7404. Changed method signature:
  7405. BNode::findClosestKNodes, BNode:: enumerateBucket,
  7406. DHTBucket::getGoodNodes,
  7407. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  7408. * src/BNode.cc
  7409. * src/BNode.h
  7410. * src/DHTAbstractNodeLookupTask.cc
  7411. * src/DHTAutoSaveCommand.cc
  7412. * src/DHTBucket.cc
  7413. * src/DHTBucket.h
  7414. * src/DHTBucketRefreshTask.cc
  7415. * src/DHTFindNodeMessage.cc
  7416. * src/DHTGetPeersMessage.cc
  7417. * src/DHTRoutingTable.cc
  7418. * src/DHTRoutingTable.h
  7419. * test/BNodeTest.cc
  7420. * test/DHTBucketTest.cc
  7421. * test/DHTRoutingTableTest.cc
  7422. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7423. In piece selection functions, Pass std::deque<...> by reference rather
  7424. than returning it.
  7425. * src/BitfieldMan.cc
  7426. * src/BitfieldMan.h
  7427. * src/DefaultBtRequestFactory.cc
  7428. * src/DefaultPieceStorage.cc
  7429. * src/Piece.cc
  7430. * src/Piece.h
  7431. * test/BitfieldManTest.cc
  7432. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7433. Implemented rarest piece first piece selection strategy.
  7434. * src/AbstractBtMessage.cc
  7435. * src/AbstractBtMessage.h
  7436. * src/BitfieldMan.cc
  7437. * src/BitfieldMan.h
  7438. * src/BtBitfieldMessage.cc
  7439. * src/BtHaveAllMessage.cc
  7440. * src/BtHaveMessage.cc
  7441. * src/DefaultPieceStorage.cc
  7442. * src/DefaultPieceStorage.h
  7443. * src/PeerInteractionCommand.cc
  7444. * src/PieceStorage.h
  7445. * src/UnknownLengthPieceStorage.h
  7446. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7447. Rewritten readData and writeData.
  7448. * src/MultiDiskAdaptor.cc
  7449. * src/MultiDiskAdaptor.h
  7450. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7451. Move \n out of the message "Usage: ...".
  7452. * src/version_usage.cc
  7453. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7454. Bump up version number to 0.13.2b.
  7455. * configure.ac
  7456. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7457. Added const qualifier to argument Exception& e.
  7458. * src/Logger.h
  7459. * src/SimpleLogger.cc
  7460. * src/SimpleLogger.h
  7461. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7462. Pool connection when CWD, SIZE command fails.
  7463. * src/FtpNegotiationCommand.cc
  7464. * src/FtpNegotiationCommand.h
  7465. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7466. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  7467. * src/HttpResponseCommand.cc
  7468. * src/HttpSkipResponseCommand.cc
  7469. * src/HttpSkipResponseCommand.h
  7470. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7471. Pool connection when a server returns 4xx, 5xx responses.
  7472. * src/HttpNullDownloadCommand.cc
  7473. * src/HttpNullDownloadCommand.h
  7474. * src/HttpResponse.cc
  7475. * src/HttpResponse.h
  7476. * src/HttpResponseCommand.cc
  7477. * src/HttpResponseCommand.h
  7478. * test/HttpResponseTest.cc
  7479. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7480. Print usage when no URL is specifed or bad command-line option is
  7481. specified.
  7482. * src/HelpItemFactory.cc
  7483. * src/help_tags.h
  7484. * src/option_processing.cc
  7485. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7486. Removed duplicate log message.
  7487. * src/AbstractCommand.cc (asyncResolveHostname)
  7488. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7489. Updated man page: --async-dns and --ftp-reuse-connection were added.
  7490. Changed -j option's default value from 5 to 1.
  7491. Added new examples using protocol auto detection feature.
  7492. Removed -T, -M usage where it can be omitted.
  7493. * doc/aria2c.1.txt
  7494. * doc/aria2c.1.html
  7495. * doc/aria2c.1.txt
  7496. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7497. Updated command-line usage text, so that it tells users that they
  7498. can specify any number of torrent files and metalink files in
  7499. command-line.
  7500. * src/version_usage.cc
  7501. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7502. Changed the default value of -j option to 1.
  7503. * src/HelpItemFactory.cc
  7504. * src/option_processing.cc
  7505. * src/usage_text.h
  7506. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7507. Added the ability to reuse connection in FTP and it is enabled by
  7508. default. It can be disabled by --ftp-reuse-connection=false option.
  7509. * src/Command.cc
  7510. * src/DownloadCommand.cc
  7511. * src/FtpDownloadCommand.cc
  7512. * src/FtpDownloadCommand.h
  7513. * src/FtpFinishDownloadCommand.cc
  7514. * src/FtpFinishDownloadCommand.h
  7515. * src/FtpInitiateConnectionCommand.cc
  7516. * src/FtpNegotiationCommand.cc
  7517. * src/FtpNegotiationCommand.h
  7518. * src/HelpItemFactory.cc
  7519. * src/Makefile.am
  7520. * src/Makefile.in
  7521. * src/OptionHandlerFactory.cc
  7522. * src/option_processing.cc
  7523. * src/prefs.h
  7524. * src/usage_text.h
  7525. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7526. Call Command::transitStatus() before calling Command::execute(),
  7527. so that the status change made in execute() is not cleared.
  7528. * src/DownloadEngine.cc
  7529. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7530. Removed forward declaration of SocketCore class.
  7531. * src/HttpDownloadCommand.h
  7532. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7533. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  7534. in InitiateConnectionCommandFactory. They should be set only when
  7535. the protocol is HTTP or HTTPS.
  7536. * src/InitiateConnectionCommandFactory.cc
  7537. * src/RequestGroup.cc
  7538. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7539. Fixed infinite loop in checksum checking.
  7540. * src/IteratableChecksumValidator.cc
  7541. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7542. Set _supportsPersistentConnection to true by default.
  7543. * src/Request.cc
  7544. * src/RequestGroup.cc
  7545. * test/HttpRequestTest.cc
  7546. * test/RequestTest.cc
  7547. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7548. Added timeout to socket pool. The default timeout is 15 seconds,
  7549. which is the same value Apache uses.
  7550. * src/DownloadEngine.cc
  7551. * src/DownloadEngine.h
  7552. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7553. Fixed misuse of multimap::find()
  7554. * src/HttpHeader.cc
  7555. * test/HttpHeaderTest.cc
  7556. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7557. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  7558. option.
  7559. The asynchronous DNS is not capable of IPv6 yet.
  7560. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  7561. least for HTTP download.
  7562. * src/AbstractCommand.cc
  7563. * src/AbstractCommand.h
  7564. * src/AsyncNameResolver.cc
  7565. * src/AsyncNameResolver.h
  7566. * src/DHTEntryPointNameResolveCommand.cc
  7567. * src/DHTEntryPointNameResolveCommand.h
  7568. * src/DownloadEngine.cc
  7569. * src/DownloadEngine.h
  7570. * src/FtpInitiateConnectionCommand.cc
  7571. * src/FtpInitiateConnectionCommand.h
  7572. * src/HelpItemFactory.cc
  7573. * src/HttpInitiateConnectionCommand.cc
  7574. * src/HttpInitiateConnectionCommand.h
  7575. * src/InitiateConnectionCommand.cc
  7576. * src/InitiateConnectionCommand.h
  7577. * src/Makefile.am
  7578. * src/Makefile.in
  7579. * src/NameResolver.cc
  7580. * src/NameResolver.h
  7581. * src/OptionHandlerFactory.cc
  7582. * src/SocketCore.cc
  7583. * src/SocketCore.h
  7584. * src/Util.cc
  7585. * src/Util.h
  7586. * src/option_processing.cc
  7587. * src/prefs.h
  7588. * src/usage_text.h
  7589. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7590. Updated man page: --quiet, --header were added.
  7591. --metalink-servers and --enable-http-keep-alive option were updated.
  7592. * doc/aria2c.1
  7593. * doc/aria2c.1.html
  7594. * doc/aria2c.1.txt
  7595. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7596. Enable HTTP keep-alive by default.
  7597. * src/HelpItemFactory.cc
  7598. * src/option_processing.cc
  7599. * src/usage_text.h
  7600. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7601. Disable http keep-alive if the remote server is not HTTP/1.1.
  7602. * src/HttpConnection.cc
  7603. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7604. Receive content body of 302 response so that the connection can be
  7605. reused later when http keep-alive is enabled.
  7606. * src/HttpNullDownloadCommand.cc
  7607. * src/HttpNullDownloadCommand.h
  7608. * src/HttpResponseCommand.cc
  7609. * src/HttpResponseCommand.h
  7610. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7611. const SharedHandle<Request> -> const SharedHandle<Request>&
  7612. * src/FtpDowndloadCommand.cc
  7613. * src/FtpDowndloadCommand.h
  7614. * src/HttpDownloadCommand.cc
  7615. * src/HttpDownloadCommand.h
  7616. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7617. Fixed the bug that the control file(.aria2 file) is not renamed
  7618. according to tryAutoFileRenaming().
  7619. tryAutoFileRenaming() was rewritten so that if both renamed file and
  7620. its control file exist, use them and continue download.
  7621. The old implementation didn't take into account of control file's
  7622. existence, so basically you couldn't continue download of renamed file.
  7623. * src/BtProgressInfoFile.h
  7624. * src/DefaultBtProgressInfoFile.cc
  7625. * src/DefaultBtProgressInfoFile.h
  7626. * src/NullProgressInfoFile.h
  7627. * src/RequestGroup.cc
  7628. * test/DefaultBtProgressInfoFileTest.cc
  7629. * test/MockBtProgressInfoFile.h
  7630. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7631. Change the default value of --metalink-servers option from `5' to `1'.
  7632. * src/HelpItemFactory.cc
  7633. * src/option_processing.cc
  7634. * src/usage_text.h
  7635. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7636. Reimplemented transparent metalink using Accept request header.
  7637. * src/HttpRequest.cc
  7638. * src/HttpRequest.h
  7639. * src/HttpRequestCommand.cc
  7640. * src/Metalink2RequestGroup.cc
  7641. * src/RequestGroup.cc
  7642. * src/RequestGroup.h
  7643. * test/HttpRequestTest.cc
  7644. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7645. Bump up version number to 0.13.2a
  7646. * configure.ac
  7647. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7648. Updated configure.ac using the result of autoscan.
  7649. * configure.ac
  7650. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7651. Fixed compilation error without gcrypt/openssl.
  7652. * src/DownloadCommand.cc
  7653. * src/DownloadCommand.h
  7654. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7655. Reorganized version information so that it can be displayed in a
  7656. standard terminal screen without scrolling.
  7657. Removed http, ftp from Configuration section, because they are always
  7658. enabled.
  7659. * src/FeatureConfig.cc
  7660. * src/FeatureConfig.h
  7661. * src/main.cc
  7662. * src/messageDigest.cc
  7663. * src/messageDigest.h
  7664. * src/version_usage.cc
  7665. * test/FeatureConfigTest.cc
  7666. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7667. Masked user ID in log.
  7668. * src/FtpConnection.cc (sendUser)
  7669. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7670. Removed query part from filename in HTTP download. The query part means
  7671. the substring after "?" in URL. Firefox seems do the same thing.
  7672. A query part is sometimes very long and not suitable to filename,
  7673. so I think it is better to remove it from filename.
  7674. * src/HttpRequest.cc
  7675. * src/HttpRequest.h
  7676. * src/Request.cc
  7677. * src/Request.h
  7678. * test/HttpRequestTest.cc
  7679. * test/RequestTest.cc
  7680. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7681. Rewritten Exception class. Throw exception object, not its pointer and
  7682. catch by reference, so that remove problematic delete operator for
  7683. catched exception.
  7684. * src/Exception.cc
  7685. * src/Exception.h
  7686. * test/ExceptionTest.cc
  7687. * src/*: All files throwing/catching exception.
  7688. * test/*: All files throwing/catching exception.
  7689. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7690. Now auto protocol detection is enabled without -Z option.
  7691. But there is a important difference between with/without -Z optoin.
  7692. For example, if you type:
  7693. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  7694. then, aria2 interprets there are 3 request groups:
  7695. (1) http://host/file, http://mirror/file <-- multi-source download
  7696. (2) file1.torrent
  7697. (3) file2.metalink
  7698. On the other hand, if you invoke above command with -Z option, it is
  7699. interpreted as 4 request groups:
  7700. (1) http://host/file
  7701. (2) file1.torrent
  7702. (3) file2.metalink
  7703. (4) http://mirror/file
  7704. I think usually user don't mix multi-source URLs and torrent files, so
  7705. there is no big problem here.
  7706. * src/main.cc
  7707. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7708. Fixed the bug that causes segmentaion fault when reading XML containing
  7709. unescapsed character like '&'.
  7710. Also a modification was made which avoids adding unnecessary
  7711. characters stack and appending unused string.
  7712. * src/ExpatMetalinkProcessor.cc
  7713. * src/FileMetalinkParserState.h
  7714. * src/FilesMetalinkParserState.h
  7715. * src/FinMetalinkParserState.h
  7716. * src/HashMetalinkParserState.h
  7717. * src/InitialMetalinkParserState.h
  7718. * src/LanguageMetalinkParserState.h
  7719. * src/MetalinkMetalinkParserState.h
  7720. * src/MetalinkParserState.h
  7721. * src/MetalinkParserStateMachine.cc
  7722. * src/MetalinkParserStateMachine.h
  7723. * src/OSMetalinkParserState.h
  7724. * src/PieceHashMetalinkParserState.h
  7725. * src/PiecesMetalinkParserState.h
  7726. * src/ResourcesMetalinkParserState.h
  7727. * src/SizeMetalinkParserState.h
  7728. * src/SkipTagMetalinkParserState.h
  7729. * src/URLMetalinkParserState.h
  7730. * src/VerificationMetalinkParserState.h
  7731. * src/VersionMetalinkParserState.h
  7732. * src/XML2SAXMetalinkProcessor.cc
  7733. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7734. Added StringFormat class, which internally calls vasprintf.
  7735. operator<< is defined for this class, so it can be used with iostream
  7736. classes nicely. SimpleLogger and following functions are rewritten
  7737. using StringFormat class.
  7738. Besides, now Logger class's methods are non-const, many classes
  7739. that has a const Logger* as a member variable are modified to remove
  7740. const qualifier from the variable declaration.
  7741. * src/HelpItemFactory.cc
  7742. * src/Request.cc
  7743. * src/SimpleLogger.cc
  7744. * src/StringFormat.cc
  7745. * src/StringFormat.h
  7746. * src/Util.cc
  7747. * src/option_processing.cc
  7748. * src/version_usage.cc
  7749. * test/StringFormatTest.cc
  7750. * src/*.h: The classes that has const Logger* as a member variable.
  7751. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7752. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  7753. failed. Also fixed memory link when exception is thrown there.
  7754. * src/main.cc (AccRequestGroup)
  7755. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7756. Added build-in "Accept-Features" support. For now only "metalink" is
  7757. used in this header field.
  7758. This "metalink" value is removed from the list when connecting URLs
  7759. fed by metalink file to avoid loop in "transparent" metlaink.
  7760. * src/HttpRequest.cc
  7761. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  7762. header is also held in this variable. Also renamed setUserHeaders as
  7763. addHeader and it was rewritten to add header not just to clear the old
  7764. value.
  7765. * src/HttpRequestCommand.cc
  7766. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  7767. from "Accept-Features" list.
  7768. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  7769. default.
  7770. * src/RequestGroup.h
  7771. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  7772. * src/a2functional.h: Included <string> because Concat class depends on
  7773. it.
  7774. * test/HttpRequestTest.cc
  7775. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7776. Added comment
  7777. * src/RequestGroup.cc (createNextCommand)
  7778. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7779. Capitalized METHOD_GET and METHOD_HEAD
  7780. * src/Request.cc
  7781. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7782. Added getDownloadResults() method
  7783. * src/RequestGroupMan.cc
  7784. * src/RequestGroupMan.h
  7785. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7786. Fixed the bug that aria2 exits when commands is empty() but
  7787. _routineCommands are not.
  7788. * src/DownloadEngine.cc
  7789. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7790. Use the default value pulled from Option object in HelpItemFactory.
  7791. except options whose defualt value is embedded in a usage text.
  7792. * src/HelpItemFactory.cc
  7793. * src/HelpItemFactory.h
  7794. * src/option_processing.cc
  7795. * src/version_usage.cc
  7796. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7797. Added --quiet option to make aria2 quiet (no console output).
  7798. --quiet option is tagged with ADVANCED.
  7799. * src/HelpItemFactory.cc
  7800. * src/LogFactory.cc
  7801. * src/LogFactory.h
  7802. * src/MultiUrlRequestInfo.cc
  7803. * src/MultiUrlRequestInfo.h
  7804. * src/NullStatCalc.h: New class. This class prints nothing.
  7805. * src/OptionHandlerFactory.cc
  7806. * src/main.cc
  7807. * src/option_processing.cc
  7808. * src/prefs.h
  7809. * src/usage_text.h
  7810. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7811. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  7812. * src/HelpItemFactory.cc (createHelpItems):
  7813. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7814. Fixed compilation error in ExpatMetalinkProcessor.cc
  7815. * src/ExpatMetalinkProcessor.cc
  7816. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7817. Reuse socket if the origin server supports HTTP keep-alive and
  7818. --enable-http-keep-alive or --enable-http-pipelining is given.
  7819. The current implementation doesn't reuse the connections established
  7820. against proxy server.
  7821. * src/AbstractCommand.cc
  7822. * src/DownloadEngine.cc
  7823. * src/DownloadEngine.h
  7824. * src/HttpDownloadCommand.cc
  7825. * src/HttpInitiateConnectionCommand.cc
  7826. * src/HttpResponseCommand.cc
  7827. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7828. Rewritten HTTP keep-alive and pipelining routine.
  7829. * src/AbstractCommand.cc
  7830. * src/HttpConnection.cc
  7831. * src/HttpDownloadCommand.cc
  7832. * src/HttpRequest.cc
  7833. * src/HttpRequestCommand.cc
  7834. * src/HttpResponseCommand.cc
  7835. * src/Request.cc
  7836. * src/Request.h
  7837. * src/RequestGroup.cc
  7838. * test/HttpRequestTest.cc
  7839. * test/HttpResponseTest.cc
  7840. * test/RequestTest.cc
  7841. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7842. Added missing setUserHeaders call
  7843. * src/HttpRequestCommand.cc
  7844. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7845. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  7846. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  7847. waste of time because it is more likey false.
  7848. * src/FileAllocationDispatcherCommand.cc (execute)
  7849. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7850. Now HTTP status and version are a member variable of HttpHeader.
  7851. HTTP status is processed as a string, not integer.
  7852. * src/AbstractProxyResponseCommand.cc
  7853. * src/HttpConnection.cc
  7854. * src/HttpHeader.cc
  7855. * src/HttpHeader.h
  7856. * src/HttpHeaderProcessor.cc
  7857. * src/HttpHeaderProcessor.h
  7858. * src/HttpResponse.cc
  7859. * src/HttpResponse.h
  7860. * test/HttpHeaderProcessorTest.cc
  7861. * test/HttpResponseTest.cc
  7862. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7863. Added --header option. You can specify any number of additional HTTP headers
  7864. like:
  7865. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  7866. Unlike other commad-line option, you can use --header option multiple times.
  7867. * src/HelpItemFactory.cc
  7868. * src/HttpRequest.{cc, h}
  7869. * src/HttpRequestCommand.cc
  7870. * src/OptionHandlerFactory.cc
  7871. * src/OptionHandlerImpl.h
  7872. * src/option_processing.cc
  7873. * src/prefs.h
  7874. * src/usage_text.h
  7875. * test/HttpRequestTest.cc (testUserHeaders)
  7876. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7877. Eliminates the time lag between sequential downloads and commands in
  7878. the same RequestGroup.
  7879. In old implementation, aria2 occasionally waits 1 seconds before
  7880. executing next command or RequestGroup.
  7881. This is really a waste of time, and new implementation eliminates
  7882. this unnecessary time lag.
  7883. * src/AbstractCommand.cc
  7884. * src/AutoSaveCommand.cc
  7885. * src/CheckIntegrityCommand.cc
  7886. * src/Command.{cc, h}
  7887. * src/DownloadEngine.{cc, h}
  7888. * src/DownloadEngineFactory.cc
  7889. * src/FileAllocationCommand.cc
  7890. * src/FileAllocationDispatcherCommand.cc
  7891. * src/FillRequestGroupCommand.cc
  7892. * src/FtpInitiateConnectionCommand.cc
  7893. * src/HaveEraseCommand.cc
  7894. * src/HttpInitiateConnectionCommand.cc
  7895. * src/HttpResponseCommand.cc
  7896. * src/RealtimeCommand.cc
  7897. * src/RequestGroup.cc
  7898. * src/RequestGroupMan.cc
  7899. * src/StreamFileAllocationEntry.cc
  7900. * src/TimeBasedCommand.{cc, h}
  7901. * src/TimedHaltCommand.cc
  7902. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7903. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  7904. keyword explicit and SharedHandle's default constructor initializes
  7905. its internal obj to null, old implementation initializes it using
  7906. obj's default constructor.
  7907. To assign null, write SharedHandle<T> x(...); x.reset();
  7908. TODO: test/SharedHandleTest.cc needs more tests.
  7909. * src/SharedHandle.h
  7910. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7911. Fixed type in man page.
  7912. * doc/aria2c.1.txt
  7913. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7914. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  7915. * src/SimpleLogger.{cc, h}
  7916. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7917. Implemented auto protocol detection.
  7918. Now you can do:
  7919. aria2c -Z http://host/file file1.torrent file2.metalink
  7920. (Note: -Z option is required for auto protcol detection.)
  7921. Then aria2c downloads 3 files simultaneously:
  7922. 1. http://host/file
  7923. 2. file1.torrent <-- read local torrent file
  7924. 3. file2.metalink <-- read local Metalink file.
  7925. Same thing goes with -i option. Assume your uris.txt contans:
  7926. http://host/file
  7927. file1.torrent
  7928. file2.metalink
  7929. Then you can do: aria2c -i uris.txt
  7930. (Note: -Z option is not needed if -i option is given.)
  7931. * src/main.cc
  7932. * src/ProtocolDetector.{cc, h}
  7933. * test/ProtocolDetectorTest.cc
  7934. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7935. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  7936. installed
  7937. * src/ARC4Encryptor.h
  7938. * src/ARC4Decryptor.h
  7939. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7940. Renamed argument from 'errno' to 'err', since errno is confused with
  7941. errno defined in errno.h.
  7942. * src/LibgcryptARC4Decryptor.h
  7943. * src/LibgcryptARC4Context.h
  7944. * src/LibgcryptDHKeyExchange.h
  7945. * src/LibgcryptARC4Encryptor.h
  7946. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7947. Rewritten choking algorithm.
  7948. * src/PeerChokeCommand.{cc, h}
  7949. * src/BtInterestedMessage.cc
  7950. * src/PeerSessionResource.{cc, h}
  7951. * src/DefaultPeerStorage.{cc, h}
  7952. * src/BtNotInterestedMessage.cc
  7953. * src/DefaultBtMessageDispatcher.{cc, h}
  7954. * src/BtMessageDispatcher.h
  7955. * src/Peer.{cc, h}
  7956. * src/BtLeecherStateChoke.{cc, h}
  7957. * src/BtSetup.cc
  7958. * src/BtSeederStateChoke.{cc, h}
  7959. * src/PeerStorage.h
  7960. * test/MockPeerStorage.h
  7961. * test/MockBtMessageDispatcher.h
  7962. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7963. Fixed compilation error on x84-64 platform.
  7964. * src/AuthConfig.cc: Included ostream.
  7965. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7966. Rewritten getBasename() and getDirname(), without standard library
  7967. basename(), dirname().
  7968. * src/File.cc
  7969. * test/FileTest.cc
  7970. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7971. Added Simplified Chinese translation. Also updated the following
  7972. translations: Polish, Dutch, German. Great thanks to all translators.
  7973. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7974. Suppress content-range error when 'Content-Range' response header
  7975. doesn't contains bytes-unit specifier 'bytes'
  7976. * src/HttpHeader.cc (getRange)
  7977. * test/HttpHeaderTest.cc
  7978. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7979. Fixed compilation error with g++-4.3
  7980. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7981. Added missing include files for MinGW
  7982. * test/HttpHeaderProcessorTest.cc
  7983. * test/DHTRoutingTableSerializerTest.cc
  7984. * test/DHTRoutingTableDeserializerTest.cc
  7985. * test/UriListParserTest.cc
  7986. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7987. Now download line is printed nicely with no garbage at the end of
  7988. line. I use ioctl to get the columns of terminal.
  7989. If stdout is redirected to another device, instead of carriage return,
  7990. end of line '\n' character is used. This is feature request#1909659
  7991. * src/ConsoleStatCalc.cc (calculateStat)
  7992. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7993. Included a2time.h
  7994. * src/DHTMessageDispatcher.h
  7995. * src/DHTMessageEntry.h
  7996. * src/DHTReplaceNodeTask.h
  7997. * src/DHTMessageTracker.h
  7998. * src/Util.h
  7999. * src/CookieBox.h
  8000. * src/SocketCore.h
  8001. * src/DefaultBtMessageDispatcher.h
  8002. * src/SocketCore.cc
  8003. * src/Util.cc
  8004. * src/DHTPingTask.h
  8005. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8006. Fixed high memory footprint when DHT is enabled.
  8007. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  8008. queued than it is processed and the queue is getting longer. As a
  8009. consequence, momory usage is increased.
  8010. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  8011. replacement cache in DHTBucket which is described in Kademlia paper.
  8012. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  8013. DHTReplaceNodeTask.
  8014. * src/DHTBucket.{h, cc}
  8015. (cacheNode): New function.
  8016. (getCachedNodes): New function.
  8017. (dropNode): Push back cached node to _nodes.
  8018. * test/DHTBucketTest.cc
  8019. (testCacheNode): New test
  8020. (testDropNode): New test
  8021. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8022. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  8023. the unused 4KB memory when ssl is not used.
  8024. * src/SocketCore.cc
  8025. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8026. Added summary log for peer announce storage.
  8027. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  8028. Removed cast
  8029. * src/DefaultPeerStorage.cc (addPeer)
  8030. Log exception message
  8031. * src/DHTMessageTracker.cc (handleTimeout)
  8032. Fixed casting
  8033. * test/HttpRequestTest.cc
  8034. * test/MetalinkProcessorTest.cc
  8035. * test/PieceTest.cc
  8036. * test/MetalinkEntryTest.cc
  8037. * test/SequenceTest.cc
  8038. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8039. * src/ParameterizedStringParser.cc (createLoop):
  8040. Removed unused variable sstep.
  8041. * src/AlphaNumberDecorator.h (decode): Rewritten.
  8042. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8043. * src/Util.{h, cc}
  8044. (parseUInt): New function.
  8045. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  8046. The actual range is uint32_t.
  8047. * test/UtilTest.cc
  8048. * src/ParameterizedStringParser.cc:
  8049. Use Util::parseUInt() for loop variables.
  8050. * test/ParameterizedStringParserTest.cc
  8051. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  8052. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8053. Rewritten the functions for binding port.
  8054. * src/DHTConnectionImpl.{h, cc}
  8055. * src/PeerListenCommand.{h, cc}
  8056. * src/DHTSetup.cc
  8057. * src/BtSetup.cc
  8058. * test/DHTConnectionImplTest.cc
  8059. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8060. type cleanup for allmost all remaining files.
  8061. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8062. Type clarification
  8063. * src/PeerSessionResource.{h, cc}
  8064. * src/DefaultPieceStorage.{h, cc}
  8065. * src/Peer.{h, cc}
  8066. * test/PeerSessionResourceTest.cc
  8067. Use div function
  8068. * src/BtPieceMessage.cc (erasePieceOnDisk)
  8069. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8070. Type clarification
  8071. * src/DefaultPeerStorage.{h, cc}
  8072. * test/DefaultPeerStorageTest.cc
  8073. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8074. Type clarification: size_t for length or size, uint64_t for file
  8075. length, off_t for file offset.
  8076. * src/DefaultBtProgressInfoFile.cc
  8077. * src/DefaultBtContext.{h, cc}
  8078. * src/DefaultBtInteractive.cc
  8079. * src/DownloadCommand.{h, cc}
  8080. * src/IteratableChunkChecksumValidator.{h, cc}
  8081. * src/SegmentMan.{h, cc}
  8082. * src/SingleFileDownloadContext.{h, cc}
  8083. * src/IteratableChecksumValidator.{h, cc}
  8084. * src/BtContext.h
  8085. * src/IteratableValidator.h
  8086. * src/DownloadContext.h
  8087. * test/SingleFileDownloadContextTest.cc
  8088. * test/DefaultBtContextTest.cc
  8089. * test/MockBtContext.h
  8090. * test/Metalink2RequestGroupTest.cc
  8091. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8092. Type clarification: size_t for length or size, uint64_t for file
  8093. length, off_t for file offset.
  8094. * src/PiecedSegment.cc
  8095. * src/GrowSegment.h
  8096. * src/DefaultBtRequestFactory.h
  8097. * src/DefaultBtProgressInfoFile.cc
  8098. * src/UnknownLengthPieceStorage.h
  8099. * src/DefaultPieceStorage.cc
  8100. * src/UnknownLengthPieceStorage.cc
  8101. * src/DefaultBtInteractive.cc
  8102. * src/GrowSegment.cc
  8103. * src/BitfieldMan.h
  8104. * src/DownloadCommand.cc
  8105. * src/BtRequestFactory.h
  8106. * src/PiecedSegment.h
  8107. * src/DefaultPieceStorage.h
  8108. * src/Piece.cc
  8109. * src/DefaultBtRequestFactory.cc
  8110. * src/PieceStorage.h
  8111. * src/Segment.h
  8112. * src/Piece.h
  8113. * src/BitfieldMan.cc
  8114. * src/Util.cc
  8115. * test/DefaultBtProgressInfoFileTest.cc
  8116. * test/DefaultPieceStorageTest.cc
  8117. * test/MockPieceStorage.h
  8118. * test/BtRequestMessageTest.cc
  8119. * test/DefaultBtMessageDispatcherTest.cc
  8120. * test/BitfieldManTest.cc
  8121. * test/GrowSegmentTest.cc
  8122. * test/PieceTest.cc
  8123. * test/SegmentTest.cc
  8124. * test/SegmentManTest.cc
  8125. * test/DefaultBtRequestFactoryTest.cc
  8126. * test/MockBtRequestFactory.h
  8127. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8128. Fixed compilation error with --disable-nls
  8129. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  8130. in gettext.h causes the problem.
  8131. * src/common.h
  8132. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8133. Removed subPiece related functions.
  8134. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  8135. * src/DefaultPieceStorage.{h, cc}
  8136. * test/PieceTest.cc
  8137. * test/DefaultPieceStorageTest.cc
  8138. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8139. Use unsigned char for data store.
  8140. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8141. Bump up version number to 0.13.0+1
  8142. * configure.ac
  8143. * Release 0.13.0+1
  8144. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8145. Changed inactive connection timeout to 120.
  8146. To accept more mulually interested peers, disconnect peer when there
  8147. is no interest between us after certain time passed.
  8148. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  8149. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8150. Fixed the bug that aria2 only uses first dns server in resolv.conf
  8151. when compiled with async DNS support.
  8152. * src/DownloadEngine.cc
  8153. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  8154. value '10' will be a little bit short when some DNS servers are
  8155. offline and several DNS servers are tried. It should be configured
  8156. by command-line option.
  8157. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8158. Merged Ross's mingw patch.
  8159. * src/DHTRoutingTableDeserializer.cc
  8160. * src/DHTRoutingTableSerializer.cc
  8161. * src/Platform.{h, cc}
  8162. * src/timegm.h
  8163. * src/gettimeofday.h
  8164. * src/getaddrinfo.h
  8165. * src/SocketCore.h
  8166. * src/common.h
  8167. * src/inet_aton.h
  8168. * src/DownloadEngine.h
  8169. * src/gai_strerror.h
  8170. * src/a2netcompat.h
  8171. * configure.ac
  8172. * configure
  8173. * aclocal.m4
  8174. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8175. Included missing iostream.
  8176. * test/AllTest.cc
  8177. * test/BtDependencyTest.cc
  8178. * test/BtExtendedMessageTest.cc
  8179. * test/DHTConnectionImplTest.cc
  8180. * test/DHTMessageFactoryImplTest.cc
  8181. * test/DHTMessageTrackerEntryTest.cc
  8182. * test/DHTNodeTest.cc
  8183. * test/DHTRoutingTableSerializerTest.cc
  8184. * test/DefaultBtAnnounceTest.cc
  8185. * test/DefaultBtContextTest.cc
  8186. * test/DefaultBtMessageFactoryTest.cc
  8187. * test/DefaultExtensionMessageFactoryTest.cc
  8188. * test/HandshakeExtensionMessageTest.cc
  8189. * test/HttpResponseTest.cc
  8190. * test/MetalinkProcessorTest.cc
  8191. * test/MultiFileAllocationIteratorTest.cc
  8192. * test/SocketCoreTest.cc
  8193. * test/UTPexExtensionMessageTest.cc
  8194. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8195. Reorganized includes.
  8196. * src/NameResolver.cc
  8197. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8198. Fixed compilation error without ares/c-ares
  8199. * src/NameResolver.h:
  8200. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8201. Added a test for large file.
  8202. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  8203. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8204. Fixed the bug that file size is ignored if size > INT32_MAX
  8205. * src/SizeMetalinkParserState.cc (endElement):
  8206. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8207. Bump up version number to 0.13.0
  8208. * configure.ac
  8209. * Release 0.13.0
  8210. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8211. Updated Makfefile.am to make 'make dist' work.
  8212. Now packaged filename is aria2c-VERSION.tar.bz2.
  8213. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  8214. Added LICENSE.OpenSSL to dist_noinst_DATA.
  8215. Large file support is now configured by configure script.
  8216. * configure.ac
  8217. Removed unsused source files
  8218. * src/
  8219. * test/
  8220. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  8221. Peer.h and BtContext.h respectively.
  8222. * src/Peer.h
  8223. * src/BtContext.h
  8224. Updated translations.
  8225. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  8226. translations. Great thanks to all translators!;)
  8227. * po/*.{po, gmo}
  8228. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8229. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  8230. statically declared sha1 MessageDigestContext.
  8231. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  8232. initialization of short-lived MessageDigestContext.
  8233. * src/MessageDigestHelper.{h, cc}
  8234. * src/main.cc
  8235. Now DownloadCommand has a reference to MessageDigestContext to avoid
  8236. the initialization of MessageDigestContext every time in validating
  8237. chunk checksum.
  8238. * src/DownloadCommand.{h, cc}
  8239. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8240. Add a file descriptor which connected to fast peer(latency<1500) to
  8241. select(). This change reduced CPU load.
  8242. * src/PeerInteractionCommand.cc
  8243. * src/DefaultBtInteractive.{h, cc}
  8244. * src/BtInteractive.h
  8245. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8246. Fixed the previous insufficient fix for possible busy loop.
  8247. * src/MSEHandshake.cc (identifyHandshakeType)
  8248. Removed unused functions.
  8249. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  8250. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8251. Fixed possible busy loop if first 20 bytes are not received for a few
  8252. minutes.
  8253. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  8254. * src/ReceiverMSEHandshakeCommand.cc
  8255. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8256. Fixed compilation error
  8257. * src/ExpatMetalinkProcessor.cc
  8258. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8259. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  8260. * src/DHTBucket.cc
  8261. Removed unnecessary cast.
  8262. * src/HandshakeExtensionMessage.cc
  8263. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8264. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  8265. is missing.
  8266. * src/OptionHandlerFactory.cc
  8267. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8268. Fixed the bug that HAVE message is not sent for a piece they are
  8269. downloaded fom http/ftp server before any BitTorrent handshake is done
  8270. with peers.
  8271. * src/DefaultBtInteractive.cc
  8272. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8273. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  8274. * src/Makefile.am
  8275. * src/Makefile.in
  8276. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8277. Updated README. Added html version of README and man page.
  8278. * README
  8279. * README.html
  8280. * readme2html: Shell script to generate README.html from README using
  8281. asciidoc.
  8282. * doc/aria2c.1.html
  8283. * doc/makeman: Added the line to generate aria2c.1.html
  8284. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8285. Fixed offset calculation.
  8286. * src/LibgcryptDHKeyExchange.h (computeSecret)
  8287. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8288. Rewritten itos and uitos using template. llitos and ullitos are
  8289. replaced with itos and uitos respectively.
  8290. * src/Util.{h, cc}
  8291. * test/UtilTest.cc
  8292. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8293. Fixed the bug that DH key exchange sometimes fails due to bad handling
  8294. of the number of bytes required for storing public key and shared
  8295. secret.
  8296. * src/LibgcryptDHKeyExchange.h
  8297. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  8298. * src/MSEHandshake.cc
  8299. * test/DHKeyExchangeTest.cc
  8300. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8301. Removed since they are not used.
  8302. * src/Xml2MetalinkProcessor.{h, cc}
  8303. * src/Socket.cc
  8304. * src/SegmentSplitter.{h, cc}
  8305. * test/Xml2MetalinkProcessorTest.cc
  8306. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8307. Fixed the bug that prevents aria2 from stopping other than by pressing
  8308. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  8309. option. aria2 doesn't stop even after --seed-time is satisfied and
  8310. continues to output blank lines in the console.
  8311. * src/ReceiverMSEHandshakeCommand.cc
  8312. * src/PeerReceiveHandshakeCommand.cc
  8313. * src/PeerListenCommand.cc
  8314. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8315. Bump up version number to 0.13.0rc
  8316. * configure.ac
  8317. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8318. Updated man page and some usage text.
  8319. * doc/aria2c.1.txt
  8320. * src/usage_text.h
  8321. * po/*.{po, gmo}
  8322. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8323. Updated translations. Added Finnish and Hebrew translations.
  8324. Great thanks to all translators!
  8325. * po/*.{po, gmo}
  8326. * po/LINGUAS
  8327. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8328. Log more detailed information about each message.
  8329. * src/DHTQueryMessage.{h, cc}
  8330. * src/DHTGetPeersMessage.{h, cc}
  8331. * src/DHTFindNodeReplyMessage.{h, cc}
  8332. * src/DHTGetPeersReplyMessage.{h, cc}
  8333. * src/DHTAnnouncePeerMessage.{h, cc}
  8334. * src/DHTResponseMessage.{h, cc}
  8335. * src/DHTFindNodeMessage.{h, cc}
  8336. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8337. Use constants defined in prefs.h
  8338. * src/option_processing.cc
  8339. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8340. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  8341. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8342. Make room for future enchancements for IPv6 addresses.
  8343. Bump up version number of dht.dat file format to 2.
  8344. Not compatible with previous version.
  8345. * src/DHTRoutingTableSerializer.cc
  8346. * src/DHTRoutingTableDeserializer.cc
  8347. * test/DHTRoutingTableSerializerTest.cc
  8348. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8349. Added handling for the return values from
  8350. PeerMessageUtil::createcompact().
  8351. * src/DefaultBtContext.cc (computeFastSet):
  8352. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8353. Fixed abort when peer's ip address is IPv4-mapped address.
  8354. * src/DefaultBtContext.cc (computeFastSet)
  8355. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  8356. cannot handle IPv4-mapped addresses.
  8357. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  8358. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8359. Proper return value handling for OpenSSL functions.
  8360. * src/LibsslDHKeyExchange.h
  8361. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8362. Random bytes generation using libgcrypt and OpenSSL.
  8363. * src/DHTUtil.{h, cc}
  8364. * test/DHTUtilTest.cc
  8365. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8366. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  8367. received.
  8368. * src/DHTMessageReceiver.cc (receiveMessage)
  8369. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8370. Fixed the bug that a return code is always 0. BUG#1897704
  8371. If error occurred during the download or there exist unfinished
  8372. downloads, aria2 returns with code 1.
  8373. * src/RequestGroupMan.{h, cc}
  8374. * src/MultiUrlRequestInfo.{h, cc}
  8375. * src/main.cc
  8376. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8377. IPv6 support for SocketCore class.
  8378. TODO: In SocketCore::establishConnection(), this is insufficient to
  8379. determin the failure of connect() here because the socket is
  8380. non-blocking state. The next addresses should be tried after select().
  8381. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  8382. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  8383. instead which address family independent.
  8384. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  8385. information in a compact peer format which is for IPv4 only.
  8386. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  8387. this is a spec of BitTorrent protocol.
  8388. * src/SocketCore.{h, cc}
  8389. * src/PeerMessageUtil.cc
  8390. * test/SocketCoreTest.cc
  8391. * test/PeerMessageUtilTest.cc
  8392. * test/DHTConnectionImplTest.cc
  8393. Handle IPv4-mapped addresses.
  8394. * src/DHTNode.cc: Now identity is determined by node id.
  8395. * src/DHTMessageTrackerEntry.cc
  8396. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  8397. should handle it.
  8398. * src/DHTRoutingTableDeserializer.cc
  8399. * src/DHTMessageFactoryImpl.cc
  8400. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8401. Change the unit of --stop option from a minute to a second.
  8402. * src/usage_text.h
  8403. * src/DownloadEngineFactory.cc
  8404. * src/OptionHandlerFactory.cc
  8405. * src/message.h
  8406. * src/TimedHaltCommand.cc
  8407. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8408. Make listening socket non-block mode.
  8409. * src/FtpConnection.cc
  8410. * src/FtpNegotiationCommand.{h, cc}
  8411. * src/PeerListenCommand.cc
  8412. Fixed the bug that cause slow ftp negotiation.
  8413. * src/FtpNegotiationCommand.{h, cc}
  8414. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8415. Added basic tag to --enable-dht, --dht-listen-port option.
  8416. * src/HelpItemFactory.cc (createHelpItems)
  8417. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8418. Updated text.
  8419. * src/usage_text.h
  8420. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8421. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  8422. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8423. Determin _threadtholdSpeed in each constructor for
  8424. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  8425. * src/ActivePeerConnectionCommand.{h, cc}
  8426. * src/PeerReceiveHandshakeCommand.{h, cc}
  8427. * src/BtSetup.cc
  8428. * src/BtConstants.h
  8429. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8430. Added --bt-min-crypto-level and --bt-require-crypto options.
  8431. * src/OptionHandlerFactory.cc
  8432. * src/MSEHandshake.cc
  8433. * src/HelpItemFactory.cc
  8434. * src/option_processing.cc
  8435. * src/ReceiverMSEHandshakeCommand.cc
  8436. * src/prefs.h
  8437. * src/DefaultBtAnnounce.cc
  8438. * src/InitiatorMSEHandshakeCommand.cc
  8439. * src/usage_text.h
  8440. * test/MSEHandshakeTest.cc
  8441. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8442. Bump version number to 0.13.0b
  8443. * configure.ac
  8444. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8445. Updated doc.
  8446. * src/MessageDigestHelper.h:
  8447. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8448. Use raw message digest as a token instead of its hexadecimal
  8449. representation.
  8450. * src/DHTTokenTracker.cc (generateToken)
  8451. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8452. Added Message Stream Encryption(MSE) support.
  8453. Currently, aria2 accepts incoming connections with Obfuscation Header
  8454. and legacy BitTorrent Header and establishes connections with
  8455. Obfuscation Header first and if failed then retry with legacy
  8456. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  8457. choose ARC4. The new option to change the default behavior is planned.
  8458. For tracker extension, "supportcrypto=1" is added statically.
  8459. * src/PeerInitiateConnectionCommand.{h, cc}
  8460. * src/PeerConnection.{h, cc}
  8461. * src/HandleRegistry.h
  8462. * src/SocketCore.h
  8463. * src/PeerReceiveHandshakeCommand.{h, cc}
  8464. * src/BtRegistry.{h, cc}
  8465. * src/PeerListenCommand.cc
  8466. * src/InitiatorMSEHandshakeCommand.{h, cc}
  8467. * src/ReceiverMSEHandshakeCommand.{h, cc}
  8468. * src/MSEHandshake.{h, cc}
  8469. * src/ARC4Encryptor.h
  8470. * src/ARC4Decryptor.h
  8471. * src/LibgcryptARC4Encryptor.h
  8472. * src/LibgcryptARC4Decryptor.h
  8473. * src/LibgcryptARC4Context.h
  8474. * src/LibsslARC4Encryptor.h
  8475. * src/LibsslARC4Decryptor.h
  8476. * src/LibsslARC4Context.h
  8477. * src/DHKeyExchange.h
  8478. * src/LibgcryptDHKeyExchange.h
  8479. * src/LibsslDHKeyExchange.h
  8480. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  8481. * test/DefaultBtAnnounceTest.cc
  8482. * test/ARC4Test.cc
  8483. * test/DHKeyExchangeTest.cc
  8484. Removed prepareForRetry() because it is not used.
  8485. * src/PeerAbstractCommand.{h, cc}
  8486. * src/PeerInteractionCommand.{h, cc}
  8487. * src/PeerInitiateConnectionCommand.{h, cc}
  8488. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8489. Added the ability to load nodes from torrent file. These nodes are
  8490. added to the routing table when downloading that torrent.
  8491. * src/BtContext.h
  8492. * src/DefaultBtContext.{h, cc}
  8493. * src/DHTSetup.cc
  8494. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  8495. hostname and port pair, and resolves all of them.
  8496. * src/NameResolver.{h, cc}: Added reset().
  8497. * src/RequestGroup.cc
  8498. * test/DefaultBtContextTest.cc
  8499. * test/MockBtContext.h
  8500. Removed assert() from DefaultBtContext and throw exception instead.
  8501. * src/DefaultBtContext.cc
  8502. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8503. Fixed segmentation fault bug when exiting if dht is disabled.
  8504. * src/RequestGroup.cc
  8505. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8506. Fixed typo in log message and define the message in message.h
  8507. * src/TimedHaltCommand.cc
  8508. * src/message.h
  8509. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8510. Included RecoverableException.h to fix compilation error.
  8511. * test/DHTMessageFactoryImplTest.cc
  8512. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8513. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  8514. * test/DHTPingMessageTest.cc
  8515. * test/DHTGetPeersMessageTest.cc
  8516. * test/DHTFindNodeMessageTest.cc
  8517. * test/DHTAnnouncePeerMessageTest.cc
  8518. * test/MockDHTMessage.h
  8519. * test/MockDHTMessageFactory.h
  8520. * test/MockDHTMessageDispatcher.h: New class.
  8521. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8522. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  8523. virtual.
  8524. * src/DHTMessageDispatcher.h
  8525. * src/DHTMessageDispatcherImpl.{h, cc}
  8526. * src/DHTSetup.cc
  8527. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8528. Adding handling of DHT error message. Just log error message and
  8529. throw exception.
  8530. * src/DHTMessageFactoryImpl.cc
  8531. * test/DHTMessageFactoryImplTest.cc
  8532. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8533. Added handling of dynamic cast failure.
  8534. * src/DHTNodeLookupTask.cc
  8535. * src/DHTPeerLookupTask.cc
  8536. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8537. Added the ability to stop aria2 itself when given time has passed
  8538. from start. Use --stop option to specify time in minutes.
  8539. When 0 is given, this feature is disabled.
  8540. * src/OptionHandlerFactory.cc
  8541. * src/TimeBasedCommand.h: Make _interval protected scope.
  8542. * src/HelpItemFactory.cc
  8543. * src/option_processing.cc
  8544. * src/prefs.h
  8545. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  8546. before calling RequestGroupMan::fillRequestGroupFromReserver().
  8547. Without this modification, the result list shows "ERR" when aria2 is
  8548. stopped by --stop option. It should be "INPR".
  8549. * src/DownloadEngine.{h, cc}
  8550. * src/DownloadEngineFactory.cc
  8551. * src/usage_text.h
  8552. * src/TimedHaltCommand.{h, cc}: New class.
  8553. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8554. Bootstrap through node added by port message.
  8555. Currently bootstrap is executed if the number of buckets in routing
  8556. table is 1.
  8557. * src/BtPortMessage.{h, cc}
  8558. * src/DefaultBtMessageFactory.{h, cc}
  8559. * src/PeerInteractionCommand.cc
  8560. * test/BtPortMessageTest.cc
  8561. * test/MockDHTTask.h
  8562. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8563. Extract the Peer class's member variables, which are only needed after
  8564. PeerInteractionCommand, into PeerSessionResource class.
  8565. This class is instantiated in PeerInteractionCommand class's ctor and
  8566. released in its dtor.
  8567. This will make Peer class lightweight and uses less memory for peers
  8568. which are not connected and wait in the queue.
  8569. * src/PeerChokeCommand.cc
  8570. * src/PeerSessionResource.{h, cc}
  8571. * src/PeerInteractionCommand.cc
  8572. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  8573. * src/DefaultBtInteractive.cc
  8574. * src/BtPieceMessage.cc
  8575. * src/BtInterestedMessage.cc
  8576. * src/BtUnchokeMessage.cc
  8577. * src/DefaultPeerStorage.{h, cc}
  8578. * src/PeerInitiateConnectionCommand.cc
  8579. * src/ActivePeerConnectionCommand.cc
  8580. * src/BtNotInterestedMessage.cc
  8581. * src/DefaultBtMessageDispatcher.cc
  8582. * src/BtChokeMessage.cc
  8583. * src/BtRequestMessage.cc
  8584. * src/Peer.{h, cc}
  8585. * src/BtRegistry.h
  8586. * src/TrackerWatcherCommand.cc
  8587. * src/PeerReceiveHandshakeCommand.cc
  8588. * test/BtExtendedMessageTest.cc
  8589. * test/BtAllowedFastMessageTest.cc
  8590. * test/BtCancelMessageTest.cc
  8591. * test/DefaultPieceStorageTest.cc
  8592. * test/BtBitfieldMessageTest.cc
  8593. * test/BtHaveMessageTest.cc
  8594. * test/BtNotInterestedMessageTest.cc
  8595. * test/BtRequestMessageTest.cc
  8596. * test/PeerSessionResourceTest.cc
  8597. * test/DefaultBtMessageDispatcherTest.cc
  8598. * test/PeerTest.cc
  8599. * test/BtInterestedMessageTest.cc
  8600. * test/BtRejectMessageTest.cc
  8601. * test/BtChokeMessageTest.cc
  8602. * test/DefaultPeerStorageTest.cc
  8603. * test/BtHaveNoneMessageTest.cc
  8604. * test/BtHaveAllMessageTest.cc
  8605. * test/DefaultExtensionMessageFactoryTest.cc
  8606. * test/BtUnchokeMessageTest.cc
  8607. * test/DefaultBtMessageFactoryTest.cc
  8608. * test/HandshakeExtensionMessageTest.cc
  8609. * test/UTPexExtensionMessageTest.cc
  8610. * test/DefaultBtRequestFactoryTest.cc
  8611. * test/BtPieceMessageTest.cc
  8612. Removed typedef PeerStats.
  8613. * src/PeerStat.h
  8614. * src/SegmentMan.cc
  8615. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8616. Added std namespace to copy, remove_copy, back_inserter,
  8617. front_inserter.
  8618. * src/RequestGroupMan.cc
  8619. * src/DefaultPieceStorage.cc
  8620. * src/StreamFileAllocationEntry.cc
  8621. * src/BtFileAllocationEntry.cc
  8622. * src/RequestGroup.cc
  8623. * src/MetalinkEntry.cc
  8624. * src/DelegatingPeerListProcessor.cc
  8625. * src/DefaultBtRequestFactory.cc
  8626. * src/DefaultBtMessageDispatcher.cc
  8627. * src/version_usage.cc: Included <algorithm>
  8628. * src/main.cc
  8629. * src/MetalinkParserController.cc
  8630. * src/DefaultBtContext.cc
  8631. * src/DownloadEngineFactory.cc
  8632. * src/a2algo.h
  8633. Removed.
  8634. * test/StreamUriListParserTest.cc
  8635. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8636. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  8637. ActivePeerConnectionCommand when it is given and
  8638. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  8639. * src/ActivePeerConnectionCommand.{h, cc}
  8640. * src/BtSetup.cc
  8641. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8642. Only add socket to DownloadEngine's select routine when peer or
  8643. localhost is unchoked and interested. This lowers CPU usage a
  8644. little bit.
  8645. * src/PeerInteractionCommand.cc
  8646. * src/PeerAbstractCommand.{h, cc}
  8647. * src/BtInteractive.h
  8648. * src/DefaultBtInteractive.{h, cc}
  8649. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8650. Revert previous change because get_peers message is needed for
  8651. announce_peer anyway.
  8652. * src/DHTGetPeersCommand.cc
  8653. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8654. Request peers thought DHT only when download hasn't finished.
  8655. * src/DHTGetPeersCommand.cc
  8656. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8657. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  8658. * src/DHTBucketRefreshTask.{h, cc}
  8659. * src/DHTSetup.cc
  8660. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8661. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  8662. standard classes.
  8663. Included string.h where mem* function are used.
  8664. Added namespace aria2.
  8665. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8666. Create directory before saving DHT routing table.
  8667. Now ios::failure is now handled properly.
  8668. * src/DHTAutoSaveCommand.cc
  8669. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8670. Removed unnecessary cerr.
  8671. * src/DownloadEngine.cc
  8672. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8673. Catch exception inside DHTMessageReceiver::receiveMessage().
  8674. Log unknown message.
  8675. * src/DHTMessageReceiver.{h, cc}
  8676. * src/DHTMessageFactory.h
  8677. * src/DHTMessageFactoryImpl.{h, cc}
  8678. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  8679. * src/DHTInteractionCommand.cc
  8680. * src/DHTUnknownMessage.{h, cc}
  8681. * test/DHTUnknownMessageTest.cc
  8682. * test/MockDHTMessageFactory.h
  8683. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8684. Commented out ip address comparison because a host can have multiple
  8685. ip addresses and it is hard to predict the hostname is resolved into
  8686. which one.
  8687. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  8688. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8689. * po/Makefile.in: Removed since this is generated by configure.
  8690. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8691. Fixed compiler warning about redefinition of SIZE_MAX.
  8692. Use common.h instead of config.h directly here.
  8693. * src/Platform.{h, cc}
  8694. The check of ENABLE_NLS is made in gettext.h, so it is not required
  8695. here.
  8696. * common.h
  8697. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  8698. Updated gettext related files.
  8699. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  8700. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  8701. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8702. Added DHT functionality, compatible with mainline.
  8703. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  8704. You may need to specify entry point to DHT network using
  8705. --dht-entry-point. DHT uses UDP port to listen incoming message.
  8706. Use --dht-listen-port to specify port number. Make sure that your
  8707. firewall configuration can pass through UDP traffic to the port.
  8708. The routing table is saved in $HOME/.aria2/dht.dat.
  8709. * src/DHT*
  8710. * src/BNode.{h, cc}
  8711. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  8712. particular torrent.
  8713. * src/Data.cc: Rewritten ctor.
  8714. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  8715. --dht-entry-point.
  8716. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  8717. * src/RequestGroup.cc: Initialize DHT functionality. When download
  8718. ends, remove BtContext from DHTPeerAnnounceStorage.
  8719. * src/BtPortMessage.{h, cc}: Rewritten.
  8720. * src/message.h
  8721. * src/OptionHandlerImpl.cc
  8722. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  8723. --dht-entry-point.
  8724. * src/Dictionary.{h, cc} (remove): New function.
  8725. * src/prefs.h
  8726. * src/DefaultBtMessageFactory.h
  8727. * src/BtHandshakeMessage.cc
  8728. * src/ActivePeerConnectionCommand.cc
  8729. * src/SocketCore.{h, cc}: Added datagram socket support.
  8730. * src/DefaultBtMessageFactory.cc
  8731. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  8732. Create DHT commands.
  8733. * src/BtMessageFactory.h
  8734. * src/PeerMessageUtil.{h, cc}
  8735. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8736. Fixed the bug that log file is not written when configuration file doesn't exist.
  8737. This is caused by using Logger class before LogFactory is not configured.
  8738. BUG #1875079
  8739. * src/option_processing.cc
  8740. Warning message "configuration doesn't exist" is only printed when --conf is
  8741. given.
  8742. * src/option_processing.cc
  8743. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8744. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  8745. ShaVisitor is now deprecated and slated to be removed.
  8746. * src/DefaultBtContext.cc
  8747. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8748. Externalize message to message.h
  8749. * src/Platform.cc
  8750. * src/message.h
  8751. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8752. Set default domain and default path to cookie.
  8753. * src/HttpResponse.cc
  8754. * src/CookieBox.{h, cc}
  8755. * src/CookieParser.{h, cc}
  8756. * test/CookieParserTest.cc
  8757. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8758. Added --no-conf and --conf-path command-line option.
  8759. --no-conf option disables loading aria2.conf file.
  8760. --conf-path option changes the configuration file path. The default
  8761. file path is $HOME/.aria2/aria2.conf
  8762. Added a warning message when the configuration file is not found.
  8763. * src/HelpItemFactory.cc
  8764. * src/option_processing.cc
  8765. * src/prefs.h
  8766. * src/usage_text.h
  8767. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8768. Added the message to inform users that other help categories are
  8769. available in -h option.
  8770. * src/version_usage.cc
  8771. * src/TagContainer.{h, cc}
  8772. * test/TagContainerTest.cc
  8773. * src/TaggedItem.{h, cc}
  8774. * test/TaggedItemTest.cc
  8775. * src/HelpItem.h
  8776. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8777. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  8778. from PiecedSegment's ctor.
  8779. Previously Piece::getAllMissingBlockIndexes() is called from
  8780. PiecedSegment() but it is rather expensive since only first element is
  8781. used.
  8782. * src/PiecedSegment.cc
  8783. * src/Piece.{h, cc}
  8784. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8785. Rewritten get*Missing*Index functions. Now no need to allocate memory
  8786. each time these functions are called.
  8787. * src/BitfieldMan.{h, cc}
  8788. * test/BitfieldManTest.cc
  8789. * src/array_fun.h
  8790. * test/array_funTest.cc
  8791. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  8792. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  8793. filtered. Removed unnecessary cast to int32_t.
  8794. * src/BitfieldMan.{h, cc}
  8795. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8796. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  8797. payload length(4bytes) are received. This happens because lenbufLength
  8798. is not updated in this particular case and successive call of
  8799. receiveMessage() overwrites payload length with bytes recieved which
  8800. are payload body.
  8801. * src/PeerConnection.{h, cc}
  8802. * src/message.h
  8803. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8804. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  8805. peer if there are peers that have same ipaddr and port.
  8806. I've experiened segmentation fault and "pure virtual function was
  8807. called" error.
  8808. * src/Peer.h
  8809. * test/PeerTest.cc
  8810. * src/DefaultPeerStorage.cc
  8811. * test/DefaultPeerStorageTest.cc
  8812. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8813. Removed a call to isPowerOf() because it is no longer necessary here
  8814. and a request block is not always power of 2.
  8815. BUG#1866924
  8816. * src/PeerMessageUtil.cc (checkLength)
  8817. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8818. Fixed the bug that always first found Segment is removed from
  8819. usedSegmentEntries. Removed unused functions.
  8820. * src/SegmentMan.{h, cc}
  8821. * test/SegmentManTest.cc
  8822. Fixed the bug that ServerHost is not removed.
  8823. * src/RequestGroup.cc
  8824. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8825. Fixed the bug that SegmentMan::completeSegment() is not called
  8826. even if Segment is complete when --lowest-speed-limit is enabled.
  8827. BUG#1864525
  8828. * src/DownloadCommand.{h, cc}
  8829. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8830. Fixed: hash algorithm 'sha1' is always used.
  8831. * src/DownloadCommand.cc (validatePieceHash)
  8832. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8833. Added --enable-peer-exchange command-line option.
  8834. * src/OptionHandlerFactory.cc
  8835. * src/HelpItemFactory.cc
  8836. * src/option_processing.cc
  8837. * src/usage_text.h
  8838. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8839. Move extension from BtRuntime to ExtensionMessageFactory, because
  8840. extension can be specified per peer, not per torrent.
  8841. * src/DefaultBtInteractive.cc
  8842. * src/BtRuntime.h
  8843. * src/ExtendedMessagingAware.h
  8844. * src/ExtensionMessageFactory.h
  8845. * src/DefaultExtensionMessageFactory.cc
  8846. * test/DefaultExtensionMessageFactoryTest.cc
  8847. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8848. Added categorized option help. Specify category using --help option.
  8849. Also added the ability to search options in forward match.
  8850. * src/HelpItem.{h, cc}
  8851. * test/HelpItemTest.cc
  8852. * src/HelpItemFactory.{h, cc}
  8853. * src/TagContainer.{h, cc}
  8854. * test/TagContainerTest.cc
  8855. * src/option_processing.cc
  8856. * src/prefs.h
  8857. * src/TaggedItem.{h, cc}
  8858. * test/TaggedItemTest.cc
  8859. * src/version_usage.cc
  8860. * src/help_tags.h
  8861. * src/usage_text.h
  8862. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8863. Fixed segmentation fault when bad torrent metainfo is parsed.
  8864. Added dynamic_cast properly to detect the misconfiguration of metainfo
  8865. and then throw exception or skip it.
  8866. * src/DefaultBtContext.{h, cc}
  8867. * test/DefaultBtContextTest.cc
  8868. * src/AnnounceList.cc
  8869. * src/CompactPeerListProcessor.cc
  8870. * src/message.h
  8871. * src/DefaultBtAnnounce.{h, cc}
  8872. * test/DefaultBtAnnounceTest.cc
  8873. * src/BencodeVisitor.cc
  8874. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8875. Added missing "B"(=Byte). So now the message looks like this:
  8876. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  8877. * src/message.h (MSG_SHARE_RATIO_REPORT)
  8878. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8879. Show the seed ratio after torrent downloads.
  8880. For example, after torrent download completed and --seed-time and
  8881. --seed-ratio conditions are fulfilled, following message is printed
  8882. right after "Download complete: .....":
  8883. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  8884. * src/RequestGroupMan.cc
  8885. * src/RequestGroup.{h, cc}
  8886. * src/message.h
  8887. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8888. Remove a defunct control file. A defunct control file means that while
  8889. it exists, but the corresponding download file is missing.
  8890. After its removal, a download restarts from the beginning.
  8891. * src/RequestGroup.cc
  8892. * src/message.h
  8893. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8894. Allocate bitfield in Peer when it is really used. More specifically,
  8895. bitfield in Peer is allocated after the connection is established and
  8896. deallocated when the connection is dropped.
  8897. Since 2 parameters(piece length and total length) was removed from the
  8898. constructor of Peer class, many test classes were modified accordingly.
  8899. See svn log for more detailed information.
  8900. * src/PeerInteractionCommand.cc
  8901. * src/CompactPeerListProcessor.cc
  8902. * src/Peer.cc
  8903. * src/DefaultPeerListProcessor.cc
  8904. * src/PeerListenCommand.cc
  8905. * src/PeerReceiveHandshakeCommand.cc
  8906. Fixed memory leak
  8907. * src/Piece.cc
  8908. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8909. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  8910. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  8911. command-line options.
  8912. * src/option_processing.cc
  8913. * src/ActivePeerConnectionCommand.cc
  8914. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8915. Send have message to peer if it already has the piece.
  8916. * src/BtHaveMessage.{h, cc}
  8917. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8918. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  8919. port.
  8920. * src/DefaultPeerStorage.{h, cc}
  8921. * test/DefaultPeerStorageTest.cc
  8922. * src/HandshakeExtensionMessage.cc
  8923. * test/HandshakeExtensionMessageTest.cc
  8924. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  8925. * src/PeerStorage.h
  8926. * test/MockPeerStorage.h
  8927. * src/PeerListenCommand.cc
  8928. * src/PeerReceiveHandshakeCommand.cc
  8929. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8930. Added --metalink-enable-unique-protocol option.
  8931. * src/Metalink2RequestGroup.cc
  8932. * src/option_processing.cc
  8933. * src/prefs.h
  8934. * src/version_usage.cc
  8935. * doc/aria2c.1.txt
  8936. * doc/aria2c.1
  8937. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8938. Allow a peer in incomingPeer to be added peers.
  8939. * src/DefaultPeerStorage.cc
  8940. * test/DefaultPeerStorageTest.cc
  8941. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8942. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  8943. I could reproduce this bug in following procedure:
  8944. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  8945. 2. Restart aria2.
  8946. 3. You see the download stopped around 99%.
  8947. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8948. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  8949. If timeout is reached, then _nextCommand is unused and it may contains
  8950. segments and they won't be canceled. Actually, timeout is not needed
  8951. here because if the server dropped connection, then retry is made.
  8952. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8953. Added uTorrent compatible Peer Exchange.
  8954. * src/BencodeVisitor.{h, cc}
  8955. * test/BencodeVisitorTest.cc
  8956. * src/BtConstants.h
  8957. * src/BtContext.h: Added 'private' flag.
  8958. * src/BtExtendedMessage.{h, cc}
  8959. * test/BtExtendedMessageTest.cc
  8960. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  8961. reserved field.
  8962. * test/BtHandshakeMessageTest.cc
  8963. * src/BtMessageFactory.h
  8964. * src/BtRegistry.h
  8965. * src/BtRuntime.h: This class holds default extension message IDs for
  8966. aria2. By default, aria2 uses ID 8 for ut_pex.
  8967. * src/DefaultBtContext.cc
  8968. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  8969. When it is true, aria2 enables ut_pex. This value is set by
  8970. PeerInteractionCommand.
  8971. * src/DefaultBtMessageFactory.{h, cc}
  8972. * test/DefaultBtMessageFactoryTest.cc
  8973. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  8974. handling to DefaultBtInteractive class.
  8975. * src/DefaultExtensionMessageFactory.{h, cc}
  8976. * test/DefaultExtensionMessageFactoryTest.cc
  8977. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  8978. the container(peers and incomingPeers. The equality is determined by
  8979. Peer::id).
  8980. * test/DefaultPeerStorageTest.cc
  8981. * src/ExtensionMessage.h
  8982. * test/MockExtensionMessage.h
  8983. * src/ExtensionMessageFactory.h
  8984. * test/MockExtensionMessageFactory.h
  8985. * src/HandshakeExtensionMessage.{h, cc}
  8986. * test/HandshakeExtensionMessageTest.cc
  8987. * src/MetaEntry.h
  8988. * src/Peer.{h, cc}
  8989. * src/PeerInteractionCommand.cc
  8990. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  8991. addIncomingPeer.
  8992. * src/PeerMessageUtil.{h, cc}
  8993. * src/PeerObject.h
  8994. * src/UTPexExtensionMessage.{h, cc}
  8995. * test/UTPexExtensionMessageTest.cc
  8996. * src/message.h
  8997. * src/prefs.h
  8998. Fixed the bug that returns incomplete data when it contains null
  8999. character. A convenient constructor was also added.
  9000. * src/Data.{h, cc}
  9001. Rewritten.
  9002. * src/CompactPeerListProcessor.cc
  9003. Fixed typos.
  9004. * src/message.h
  9005. * src/MetaFileUtil.cc
  9006. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9007. Added "Status Legend" label to the explanation text of 'stat' in
  9008. download result and moved it to the last. BUG#1848214
  9009. * src/RequestGroupMan.cc
  9010. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9011. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  9012. * src/Makefie.am
  9013. * test/Makefile.am
  9014. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9015. Fixed the bug that prevents aria2 from loading cookie file when expire
  9016. value is greater than 2^31-1. BUG#1851066
  9017. * src/CookieBoxFactory.cc
  9018. * test/CookieBoxFactoryTest.cc
  9019. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9020. Fixed possible memory leak when an exception is thrown.
  9021. * src/XML2SAXMetalinkProcessor.cc
  9022. Added Expat support. If both libxml2 and Expat are installed, then
  9023. libxml2 is used by default.
  9024. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  9025. ExpatMetalinkProcessor according to the configuration.
  9026. * src/ExpatMetalinkProcessor.{h, cc}
  9027. * src/main.cc: Removed libxml2 specific header and init/free function.
  9028. * src/MetalinkProcessorFactory.{h, cc}
  9029. * src/MetalinkHelper.cc
  9030. * src/Metalinker.h: Removed unnecessary libxml2 header.
  9031. * src/MetalinkProcessor.h
  9032. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  9033. MetalinkProcessorTest is used instead.
  9034. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  9035. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  9036. MetalinkProcessorFactory::newInstance().
  9037. * m4/libexpat.m4
  9038. * configure.ac: Added configuration options for libexpat.
  9039. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9040. Disabled -s option in metalink download.
  9041. * src/Metalink2RequestGroup.cc
  9042. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9043. If several protocols are available for a mirror in metalink file,
  9044. aria2 now use one of them. --metalink-preferred-protocol option was
  9045. added to specify the preference of protocol.
  9046. * src/AbstractCommand.cc
  9047. * src/OptionHandlerFactory.cc
  9048. * src/ServerHost.{h, cc}
  9049. * src/Metalink2RequestGroup.cc
  9050. * src/RequestGroup.{h, cc}
  9051. * test/RequestGroupTest.cc
  9052. * src/option_processing.cc
  9053. * src/prefs.h
  9054. * src/HttpResponseCommand.cc
  9055. * src/MetalinkResource.{h, cc}
  9056. * src/FtpNegotiationCommand.cc
  9057. * src/MetalinkEntry.{h, cc}
  9058. * src/MetalinkEntryTest.cc
  9059. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9060. Code cleanup and added debug log.
  9061. * src/PeerConnection.cc
  9062. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9063. Compiler error fix: applied the patch by Tiziano Mueller
  9064. * src/RequestGroup.cc
  9065. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9066. Fixed the bug: only first announce URL is tried in AnnounceTier,
  9067. in stopped and completed event.
  9068. * src/AnnounceList.{h, cc}
  9069. * test/AnnounceListTest.cc
  9070. * src/DefaultBtAnnounce.cc
  9071. * test/DefaultBtAnnounceTest.cc
  9072. Sorted URLs.
  9073. * test/Metalink2RequestGroupTest.cc
  9074. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9075. Removed unnecessary string copy. Updated doc and corrected indentation.
  9076. * src/Base64.cc
  9077. Fixed compilation warnings
  9078. * test/DataTest.cc
  9079. * test/HttpRequestTest.cc
  9080. * test/MetaFileUtilTest.cc
  9081. * test/RequestTest.cc
  9082. * Release 0.12.0
  9083. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9084. Updated translations
  9085. * po/{de,fr,ja,nl,ru}.po
  9086. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  9087. translations. Many thanks to translators.
  9088. * po/{ca,es,it,pt_BR,sv}.po
  9089. * po/LINGUAS
  9090. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9091. Added a notice about URL
  9092. * src/version_usage.cc
  9093. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  9094. Fixed the bug#1845750; CTRL+C does not stop torrent.
  9095. aria2 repeatedly sends stopped request when tracker returns error code.
  9096. * src/AnnounceList.cc
  9097. * test/AnnounceListTest.cc
  9098. * src/AnnounceTier.h
  9099. Added a message when ctrl-c is hit.
  9100. Now second ctrl-c is also handled in signal handler.
  9101. * src/RequestGroupMan.{h, cc}
  9102. * src/RequestGroup.{h, cc}
  9103. * src/MultiUrlRequestInfo.cc
  9104. * src/DownloadEngine.cc
  9105. * src/TrackerWatcherCommand.cc
  9106. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9107. Code cleanup
  9108. * src/Base64.cc (encode)
  9109. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9110. Changed Direct/IO enable/disable procesure in file allocation routine.
  9111. * src/SingleFileAllocationIterator.cc
  9112. (SingleFileAllocationIterator):
  9113. Disable directIO if offset is not multiple of 512.
  9114. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  9115. * src/MultiFileAllocationIterator.cc (allocateChunk):
  9116. Enable created SingleFileAllocationIterator's directIO.
  9117. * src/FileAllocationEntry.cc
  9118. (FileAllocationEntry): Enable directIO here.
  9119. (~FileAllocationEntry): Disable directIO here.
  9120. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9121. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  9122. * src/Peer.{h, cc}
  9123. * src/DefaultPieceStorage.cc
  9124. * test/DefaultPieceStorageTest.cc
  9125. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9126. Rewritten direct I/O support routine
  9127. * src/SingleFileAllocationIterator.cc
  9128. * src/MultiDiskAdaptor.{h, cc}
  9129. * src/ByteArrayDiskWriter.h
  9130. * src/AbstractSingleDiskAdaptor.h
  9131. * src/AbstractDiskWriter.cc
  9132. * src/DefaultPieceStorage.cc
  9133. * src/DiskWriter.h
  9134. * src/BinaryStream.h
  9135. * src/IteratableChunkChecksumValidator.cc
  9136. * src/IteratableChecksumValidator.cc
  9137. * src/CheckIntegrityEntry.cc
  9138. * src/FileAllocationEntry.cc
  9139. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9140. Fixed typo
  9141. * src/version_usage.cc
  9142. Updated doc
  9143. * doc/aria2c.1.txt
  9144. * doc/aria2c.1
  9145. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9146. Fixed compile error without message digest support.
  9147. * src/FileMetalinkParserState.cc
  9148. * src/MetalinkParserController.{h, cc}
  9149. * test/XML2SAXMetalinkProcessorTest.cc
  9150. * test/MetalinkParserControllerTest.cc
  9151. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9152. Enable direct I/O support in checksum checking.
  9153. * src/IteratableChunkChecksumValidator.{h, cc}
  9154. * test/IteratableChunkChecksumValidatorTest.cc
  9155. * src/CheckIntegrityEntry.cc
  9156. * src/PieceHashCheckIntegrityEntry.cc
  9157. * src/IteratableChecksumValidator.{h, cc}
  9158. * src/BtCheckIntegrityEntry.cc: Added doc.
  9159. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9160. Added --allow-piece-length-change option.
  9161. * src/DefaultBtProgressInfoFile.cc
  9162. * test/DefaultBtProgressInfoFileTest.cc
  9163. * src/OptionHandlerFactory.cc
  9164. * src/option_processing.cc
  9165. * src/prefs.h
  9166. * src/version_usage.cc
  9167. * doc/aria2c.1.txt
  9168. * doc/aria2c.1
  9169. Fixed: duplicated result entry appears when exception is thrown in
  9170. RequestGroup::createInitiateConnectionCommand().
  9171. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  9172. Add RequestGroup to _requestGroup after RequetGroup::
  9173. createInitiateConnectionCommand() succeeds.
  9174. Externalized message
  9175. * src/XML2SAXMetalinkProcessor.cc
  9176. * src/message.h
  9177. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9178. Forced download abort when received negative response from http/ftp
  9179. server.
  9180. * src/HttpResponseCommand.cc
  9181. * src/FtpNegotiationCommand.cc
  9182. * src/HttpResponse.cc
  9183. * src/FtpConnection.cc
  9184. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9185. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  9186. the predecessor, Xml2MetalinkParser class.
  9187. I tested them against 94KB metalink file with 1234 chunk checksums.
  9188. The new one parsed it in 22msec, while it took 6000msec with old one.
  9189. * src/XML2SAXMetalinkProcessor.{h, cc}
  9190. * test/XML2SAXMetalinkProcessorTest.cc
  9191. * src/MetalinkParserController.{h, cc}
  9192. * test/MetalinkParserControllerTest.cc
  9193. * src/MetalinkParserState.h: Also added 16 subclasses.
  9194. * src/main.cc
  9195. * src/Metalink2RequestGroup.cc
  9196. * src/MetalinkHelper.cc
  9197. * src/MetalinkEntry.cc
  9198. * src/ChunkChecksum.h
  9199. Rewritten Base64 class for better performance.
  9200. * src/Base64.{h, cc}
  9201. * test/Base64Test.cc
  9202. * src/HttpRequest.cc
  9203. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9204. Fixed the bug#1841757: aria2 will connect to server to only get
  9205. file size.
  9206. * src/StreamFileAllocationEntry.cc
  9207. * src/option_processing.cc
  9208. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  9209. downloads.
  9210. * src/FtpNegotiationCommand.cc
  9211. Suppressed wrong message when finding PreDownloadHandler
  9212. * src/RequestGroup.cc
  9213. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9214. Updated usage
  9215. * src/version_usage.cc
  9216. Updated man page
  9217. * doc/aria2c.1.txt
  9218. * doc/aria2c.1
  9219. Updated po files
  9220. * po/aria2c.pot
  9221. * po/*.po
  9222. * po/*.gmo
  9223. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9224. Eliminated g++-4.2 warning
  9225. * src/DownloadHandlerConstants.{h, cc}
  9226. * src/Util.cc
  9227. * test/MetaFileUtilTest.cc
  9228. * test/PStringBuildVisitorTest.cc
  9229. Fixed bug: --check-integrity doesn't work for multi file torrent.
  9230. * src/RequestGroup.cc
  9231. * src/BtCheckIntegrityEntry.cc
  9232. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9233. Fixed a2io.h
  9234. * src/a2io.h
  9235. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9236. Added direct I/O support. The current implementation uses O_DIRECT,
  9237. which is not posix standard and is tested on linux 2.6.21.
  9238. Currently only file allocation uses direct I/O.
  9239. * src/SingleFileAllocationIterator.{h, cc}
  9240. * test/SingleFileAllocationIteratorTest.cc
  9241. * src/MultiFileAllocationIterator.{h, cc}
  9242. * test/MultiFileAllocationIteratorTest.cc
  9243. * src/BinaryStream.h
  9244. * src/DiskWriter.h
  9245. * src/AbstractDiskWriter.{h, cc}
  9246. * src/ByteArrayDiskWriter.h
  9247. * src/DiskAdaptor.h
  9248. * src/AbstractSingleDiskAdaptor.{h, cc}
  9249. * src/MultiDiskAdaptor.{h, cc}
  9250. * src/FileAllocationEntry.cc
  9251. * src/Util.{h, cc}
  9252. * src/OptionHandlerFactory.cc
  9253. * src/prefs.h
  9254. * src/version_usage.cc
  9255. * src/option_processing.cc
  9256. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  9257. handleException.
  9258. * src/MultiFileAllocationIterator.cc
  9259. Added EINTR handling
  9260. * src/SocketCore.cc
  9261. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9262. Updated usage
  9263. * src/version_usage.cc
  9264. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9265. Applied Ross's patch for MinGW port.
  9266. * src/DownloadEngine.h
  9267. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9268. Set Content-Type to SingleFileDownloadContext when http response is
  9269. received.
  9270. * src/HttpResponseCommand.cc
  9271. * src/HttpResponse.{h, cc}
  9272. * test/HttpResponseTest.cc
  9273. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9274. Rewritten to add content-type support.
  9275. * src/DownloadHandler.{h, cc}
  9276. * src/BtPostDownloadHandler.{h, cc}
  9277. * test/BtPostDownloadHandlerTest.cc
  9278. * src/MetalinkPostDownloadHandler.{h, cc}
  9279. * test/MetalinkPostDownloadHandlerTest.cc
  9280. * src/PostDownloadHandler.{h, cc}
  9281. * src/DownloadHandlerConstants.{h, cc}
  9282. * src/RequestGroup.cc
  9283. * src/HttpResponseCommand.cc
  9284. * src/FtpNegotiationCommand.cc
  9285. * src/SingleFileDownloadContext.{h, cc}
  9286. * src/RequestGroup.h
  9287. * src/RequestGroupCriteria.h
  9288. * src/ContentTypeRequestGroupCriteria.h
  9289. Added 'mem' option value for --follow-metalink, --follow-torrent.
  9290. If it is give, metalink/torrent file is not written to the disk, but
  9291. just is kept in memory. Parsing is occurred on memory.
  9292. * src/MetalinkHelper.{h, cc}
  9293. * src/MetalinkProcessor.h
  9294. * src/Xml2MetalinkProcessor.{h, cc}
  9295. * test/Xml2MetalinkProcessorTest.cc
  9296. * src/DownloadHandlerFactory.{h, cc}
  9297. * test/DownloadHandlerFactoryTest.cc
  9298. * src/PreDownloadHandler.{h, cc}
  9299. * src/OptionHandlerFactory.cc
  9300. * src/DefaultBtContext.{h, cc}
  9301. * test/DefaultBtContextTest.cc
  9302. * src/version_usage.cc
  9303. * src/Metalink2RequestGroup.{h, cc}
  9304. * src/RequestGroup.{h, cc}
  9305. * src/a2functional.h
  9306. * test/a2functionalTest.cc
  9307. * src/MemoryBufferPreDownloadHandler.{h, cc}
  9308. * src/OptionHandlerImpl.h
  9309. * src/prefs.h
  9310. * src/Util.{h, cc}
  9311. * test/UtilTest.cc
  9312. Keep DownloadResult rather than RequestGroup after downloads to reduce
  9313. memory usage.
  9314. * src/RequestGroupMan.{h, cc}
  9315. * src/DownloadEngine.cc
  9316. * src/BtDependency.{h, cc}: Changed the type of dependee from
  9317. WeakHandle to SharedHandle because WeakHandle could be null.
  9318. * src/RequestGroup.{h, cc}
  9319. * src/DownloadEngineFactory.cc
  9320. * src/DownloadResult.h
  9321. Set totalLength after download finished
  9322. * src/UnknownLengthPieceStorage.{h, cc}
  9323. Keep torrent file specified in metalink in memory.
  9324. * src/Metalink2RequestGroup.cc
  9325. * src/BtDependency.cc
  9326. * src/TrueRequestGroupCriteria.h
  9327. Fixed the bug: seekg is used where seekp should be used.
  9328. * src/ByteArrayDiskWriter.cc
  9329. * test/ByteArraydiskWriterTest.cc
  9330. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9331. Fixed syntax error
  9332. * test/SequenceTest.cc
  9333. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9334. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9335. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  9336. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9337. * src/RequestGroup.cc (downloadFinishedByFileLength)
  9338. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9339. Added the check to see whether ares_host_callback accepts timeouts
  9340. with c-ares; only c-ares 1.5.0 or newer accepts it.
  9341. * src/NameResolver.{h, cc}
  9342. * m4/libcares.m4
  9343. * configure.ac: Set C++ for language choice.
  9344. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9345. Fixed: compilation fails without c-ares/ares
  9346. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  9347. Generate http/ftp commands only when download is incomplete.
  9348. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  9349. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9350. Corrected typo. Examples are removed since they are available in man
  9351. page.
  9352. * src/version_usage.cc
  9353. Updated man page.
  9354. * doc/aria2c.1
  9355. * doc/aria2c.1.txt
  9356. * doc/makeman: Commented out sed command.
  9357. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9358. Throw DlAbortEx when a remote file is not found.
  9359. * src/HttpResponse.cc
  9360. * src/FtpNegotiationCommand.cc
  9361. * src/message.h
  9362. Overwrite an existing file if --allow-overwrite=true is given.
  9363. * src/RequestGroup.cc
  9364. Removed unused functions
  9365. * src/AbstractCommand.h
  9366. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9367. Removed 'extern' from 'extern typedef ...' in src/*.h
  9368. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9369. Updated usage
  9370. * src/version_usage.cc
  9371. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9372. Trim announce URL
  9373. * src/DefaultBtContext.cc
  9374. * test/ShaVisitorTest.cc
  9375. Trim argument s. Give trimed s to exception constructor.
  9376. * src/Util.cc (parseInt)(parseLLInt)
  9377. * test/UtilTest.cc
  9378. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9379. Set precision back to 1.
  9380. * src/ConsoleStatCalc.cc (calculateStat)
  9381. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9382. Replaced strtol with Util::parseInt
  9383. * src/ChunkedEncoding.cc
  9384. * src/HttpConnection.cc
  9385. * src/CookieBoxFactory.cc
  9386. * src/ParameterizedStringParser.cc
  9387. * src/Util.cc
  9388. * test/UtilTest.cc
  9389. * test/OptionHandlerTest.cc
  9390. * src/Request.cc
  9391. Throw exception when empty string is given. The message for exception
  9392. changed.
  9393. * src/Util.cc (parseInt)(parseLLInt)
  9394. * src/message.h
  9395. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9396. Set precision to 2 because share ratio is rounded into 1.0 if precision
  9397. set to 1.
  9398. * src/ConsoleStatCalc.cc (calculateStat)
  9399. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9400. Preallocate non-requested file which is adjacent forward to requested
  9401. file('requested' files means the files given in --select-file option)
  9402. if they share a same piece.
  9403. This fixes long pause in the file system which doesn't support sparse
  9404. files like FAT32 while downloading.
  9405. * src/MultiFileAllocationIterator.{h, cc}
  9406. * test/MultiFileAllocationIteratorTest.cc
  9407. * src/FileEntry.{h, cc}
  9408. Removed unused _option.
  9409. * src/MultiDiskAdaptor.h
  9410. * test/MultiDiskAdaptorTest.cc
  9411. * src/DefaultPieceStorage.cc
  9412. Set the default value of --seed-ratio to 1.0.
  9413. If 0.0 is given, then seeding continues regardless of share ratio.
  9414. * src/version_usage.cc
  9415. * src/option_processing.cc
  9416. * src/BtSetup.cc
  9417. * doc/aria2c.1.txt
  9418. * doc/aria2c.1
  9419. Fixed: Selective download is not working in BitTorrent
  9420. * src/RequestGroup.cc
  9421. Introduced Sequence class. Use this instead of Util::unfoldRange()
  9422. * src/PieceStorage.h
  9423. * test/MockPieceStorage.h
  9424. * src/UnknownLengthPieceStorage.h
  9425. * src/DefaultPieceStorage.{h, cc}
  9426. * src/Metalink2RequestGroup.cc
  9427. * src/RequestGroup.cc
  9428. * src/Sequence.h
  9429. * test/SequenceTest.cc
  9430. * src/IntSequence.h
  9431. * src/message.h
  9432. * src/Util.{h, cc}
  9433. * test/UtilTest.cc
  9434. Added new function 'parse' to catch exception thrown by subclass's
  9435. parseArg
  9436. * src/OptionHandler.h
  9437. * src/OptionParser.cc
  9438. * src/NameMatchOptionHandler.h
  9439. * src/OptionHandlerImpl.h
  9440. * test/OptionHandlerTest.cc
  9441. Added IntegerRangeOptionHandler. Used for --listen-port and
  9442. --select-file. Now --listen-port accepts range of port.
  9443. * src/OptionHandlerFactory.cc
  9444. * src/version_usage.cc
  9445. * src/OptionHandlerImpl.h
  9446. * src/option_processing.cc
  9447. * src/BtSetup.cc
  9448. * src/PeerListenCommand.{h, cc}
  9449. * doc/aria2c.1.txt
  9450. * doc/aria2c.1
  9451. Implemented operator< for Exception class to provide easy way to print
  9452. exception stack trace.
  9453. * src/Exception.{h, cc}
  9454. * src/main.cc
  9455. * src/option_processing.cc
  9456. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9457. * src/version_usage.cc
  9458. (showVersion): Reworked.
  9459. (showUsage): Added examples.
  9460. Removed Hint for total length and file name.
  9461. * src/Metalink2RequestGroup.cc
  9462. * src/RequestGroup.{h, cc}
  9463. * src/HttpResponseCommand.cc
  9464. * src/FtpNegotiationCommand.cc
  9465. Now --follow-torrent and --follow-metalink option work properly.
  9466. * src/RequestGroup.cc
  9467. Updated man page
  9468. * doc/aria2c.1.txt
  9469. * doc/aria2c.1
  9470. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9471. Removed.
  9472. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  9473. Use Segment::operator==()
  9474. * src/HttpConnection.cc
  9475. * src/Segment.h
  9476. Updated usage
  9477. * src/version_usage.cc
  9478. Added EINTR treatment.
  9479. * src/SocketCore.cc
  9480. * src/AbstractDiskWriter.cc
  9481. Rewritten.
  9482. * src/Util.cc (rangedFileCopy)
  9483. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9484. Fixed typo.
  9485. * src/version_usage.cc
  9486. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9487. Implemented. Now -c option works fine.
  9488. * src/DefaultPieceStorage.cc (markPiecesDone)
  9489. * test/DefaultPieceStorageTest.cc
  9490. Removed.
  9491. * src/SegmentMan.{h, cc}
  9492. (markAllPiecesDone)
  9493. (markPieceDone)
  9494. Synchronized po files with
  9495. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  9496. * src/fr.po
  9497. * src/ru.po
  9498. * src/de.po
  9499. * src/ja.po
  9500. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9501. Added ifdef and some modifications to compile without BitTorrent,
  9502. Metalink, MessageDigest
  9503. support.
  9504. * src/PieceHashCheckIntegrityEntry.cc
  9505. * src/MetalinkEntry.h
  9506. * src/version_usage.cc
  9507. * src/main.cc
  9508. * src/DownloadEngine.{h, cc}
  9509. * src/Metalink2RequestGroup.cc
  9510. * src/Peer.cc
  9511. * src/RequestGroup.cc
  9512. * src/MetalinkHelper.cc
  9513. * test/DefaultPieceStorageTest.cc
  9514. * test/MetalinkPostDownloadHandlerTest.cc
  9515. * test/Metalink2RequestGroupTest.cc
  9516. Hide TOTAL SPD when all downloads complete.
  9517. * src/ConsoleStatCalc.cc
  9518. Log target system information.
  9519. * src/main.cc
  9520. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9521. Now --metalink-location accepts a comma-deliminated list of locations.
  9522. * src/MetalinkEntry.{h, cc}
  9523. * test/MetalinkEntryTest.cc
  9524. * src/version_usage.cc
  9525. * src/Metalink2RequestGroup.cc
  9526. * src/Xml2MetalinkProcessor.cc
  9527. * test/Xml2MetalinkProcessorTest.cc
  9528. * doc/aria2c.1.txt
  9529. * doc/aria2c.1
  9530. * src/Util.cc (toUpper)(toLower): Rewritten.
  9531. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9532. Added the ability to detect duplicate download entry which is about to
  9533. download the same file other RequestGroup is downloading.
  9534. * src/RequestGroup.cc
  9535. * src/HttpResponseCommand.cc
  9536. * src/FtpNegotiationCommand.cc
  9537. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9538. Recalculates download progress when loading a control file,
  9539. if the piece length of DownloadContext is different from the one saved
  9540. in the control file. Currently in-flight pieces are ignored.
  9541. * src/DefaultBtProgressInfoFile.cc
  9542. * test/DefaultBtProgressInfoFileTest.cc
  9543. * src/Util.{h, cc}
  9544. * test/UtilTest.cc
  9545. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9546. Do not rotate tiers in announce-list.
  9547. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  9548. AnnounceList::allTiersFailed() used instead to detect whether all
  9549. tiers are tried and failed.
  9550. * test/DefaultBtAnnounceTest.cc
  9551. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  9552. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  9553. * test/AnnounceListTest.cc
  9554. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  9555. clause. Catch RecoverableException instead of DlRetryEx instead.
  9556. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9557. Implemented checksum validation feature(1 checksum for each file)
  9558. The validation takes place after the download.
  9559. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  9560. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  9561. * src/CheckIntegrityCommand.cc: Changed log message.
  9562. * src/Metalink2RequestGroup.cc: Set checksum to
  9563. SingleFileDownloadContext.
  9564. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  9565. PieceHashCheckIntegrity class.
  9566. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  9567. PieceHashCheckIntegrity class.
  9568. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  9569. * src/IteratableValidator.h: New class.
  9570. * src/message.h
  9571. * src/CheckIntegrityEntry.{h, cc}
  9572. * src/IteratableChunkChecksumValidator.{h, cc}
  9573. * src/SingleFileDownloadContext.h
  9574. * src/DownloadCommand.cc
  9575. --allow-overwrite=true is no longer needed to check file integrity
  9576. before download in BitTorrent download.
  9577. * src/RequestGroup.cc (getInitialCommand)
  9578. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  9579. throws exception.
  9580. * src/RequestGroupMan.cc (getInitialCommands)
  9581. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9582. urlencode the given url inside Request::parseUrl(...)
  9583. * src/Request.{h, cc}
  9584. * src/Util.{h, cc}
  9585. * test/RequestTest.cc
  9586. Removed #!metalink3! notation support because it is deleted from
  9587. the metalink specification.
  9588. * src/Request.{h, cc}
  9589. * test/RequestTest.cc
  9590. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9591. Don't connect server before checking file integrity at startup, if
  9592. filesize and output file path are known.
  9593. * src/AbstractCommand.cc
  9594. * src/StreamFileAllocationEntry.cc
  9595. * src/Metalink2RequestGroup.cc
  9596. * src/RequestGroup.{h, cc}
  9597. * src/HttpResponseCommand.cc
  9598. * src/FtpNegotiationCommand.cc
  9599. Added DownloadFailureException. If it is thrown, RequestGroup should
  9600. halt.
  9601. * src/AbstractCommand.cc
  9602. * src/DownloadFailureException.h
  9603. * src/RequestGroup.cc
  9604. Catch RecoverableException, instead of DlAbortEx.
  9605. * src/RequestGroupMan.cc
  9606. * src/FillRequestGroupCommand.cc
  9607. * src/MetaFileUtil.cc
  9608. * src/IteratableChunkChecksumValidator.cc
  9609. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  9610. getGID())
  9611. * src/CheckIntegrityCommand.cc
  9612. * src/message.h
  9613. Print gid instead of idx.
  9614. * src/RequestGroupMan.cc
  9615. Removed exception throwers declaration.
  9616. * src/DirectDiskAdaptor.{h, cc}
  9617. * src/SocketCore.{h, cc}
  9618. * src/MultiDiskAdaptor.{h, cc}
  9619. * src/HttpConnection.{h, cc}
  9620. * src/HttpResponse.{h, cc}
  9621. * src/DiskAdaptor.{h, cc}
  9622. * src/CopyDiskAdaptor.{h, cc}
  9623. * src/MultiDiskAdaptor.{h, cc}
  9624. * src/HttpHeaderProcessor.{h, cc}
  9625. * src/AbstractSingleDiskAdaptor.{h, cc}
  9626. * src/Util.{h, cc}
  9627. * test/UtilTest.cc
  9628. * src/DefaultDiskWriter.{h, cc}
  9629. * src/FtpConnection.{h, cc}
  9630. * src/AbstractDiskWriter.{h, cc}
  9631. Removed duplicate code.
  9632. * src/StreamCheckIntegrityEntry.cc
  9633. Removed unnecessary include.
  9634. * src/DiskWriter.h
  9635. Included Exception.h
  9636. * src/option_processing.cc
  9637. Included 2 files and added doc
  9638. * src/TrackerWatcherCommand.cc
  9639. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  9640. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9641. Changed CheckIntegrityEntry interface so that it can define
  9642. the action when all the chunk checksums are valid.
  9643. * src/CheckIntegrityEntry.h
  9644. * src/StreamCheckIntegrityEntry.{h, cc}
  9645. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  9646. are valid, then aira2 goes to seeding mode. Sometimes it is better
  9647. to exit rather than doing seeding. So, it would be good to toggle this
  9648. behavior.
  9649. * src/CheckIntegrityCommand.cc
  9650. * src/AbstractCommand.cc
  9651. * src/RequestGroup.cc
  9652. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9653. Reflect the download length of in-flight pieces.
  9654. It makes the download length readout more precise.
  9655. * src/DefaultPieceStorage.{h, cc}
  9656. * test/DefaultPieceStorageTest.cc
  9657. * src/a2functional.h
  9658. * test/a2functionalTest.cc
  9659. Lower CPU load when --max-download-limit is used.
  9660. There is up and down in speed indicator when enabling
  9661. http-pipelining but a download goes well. I think the problem is that
  9662. because http-pipelining is enabled, DownloadCommand is created for
  9663. each segment and in its constructor, PeerStat::downloadStart() is
  9664. called. In PeerStat::downloadStart(), speed calculation object is
  9665. reseted, which makes download speed zero.
  9666. * src/DownloadCommand.cc
  9667. Rewritten using accumulate.
  9668. * src/RequestGroupMan.cc (calculateStat)
  9669. Code clearnup.
  9670. * src/FtpNegotiationCommand.cc
  9671. * src/HttpResponseCommand.cc
  9672. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9673. Fixed: Can not resume: aria2 reports download already finished.
  9674. * src/AbstractCommand.{h, cc}
  9675. * src/HttpResponseCommand.cc
  9676. * src/FtpNegotiateCommand.cc
  9677. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9678. Now a file is stored in the directory specified in .metalnk file
  9679. (file[@name]).
  9680. * src/Metalink2RequestGroup.cc
  9681. Create the directory structure when opening the file if it doesn't
  9682. exist.
  9683. * src/AbstractDiskWriter.cc
  9684. * src/Util.{h, cc}
  9685. * src/File.h
  9686. * test/UtilTest.cc
  9687. Removed file name comparison
  9688. * src/Metalink2RequestGroup.cc
  9689. * src/HttpResponseCommand.cc
  9690. Rewritten using Util::mkdirs()
  9691. * src/FileEntry.cc (setupDir)
  9692. * test/FileEntryTest.cc
  9693. Updated doc
  9694. * src/SingleFileDownloadContext.h
  9695. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9696. Now SleepCommand dispatches nextCommand when halt is requested.
  9697. It avoids a possible long wait after hitting CTRL-C.
  9698. * src/SleepCommand.{h, cc}
  9699. * src/RequestGroupAware.{h, cc}
  9700. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9701. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  9702. to open listen port, then remove the port number from the tracker
  9703. request.
  9704. * src/DefaultBtAnnounce.cc
  9705. * test/DefaultBtAnnounceTest.cc
  9706. * test/MockPieceStorage.h
  9707. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  9708. them more testable.
  9709. * src/DefaultBtAnnounce.{h, cc}
  9710. * src/DefaultBtContext.{h, cc}
  9711. * src/Util.{h, cc}
  9712. * test/DefaultBtAnnounceTest.cc
  9713. * test/DefaultBtContextTest.cc
  9714. * test/UtilTest.cc
  9715. Added 'B' to upload bytes readout.
  9716. * src/ConsoleStatCalc.cc
  9717. Now the listen port for BitTorrent download is opened when it is
  9718. needed.
  9719. * src/DownloadEngineFactory.cc
  9720. * src/BtSetup.{h, cc}
  9721. * src/PeerListenCommand.{h, cc}
  9722. Now an exception thrown while parsing tracker response is now logged.
  9723. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  9724. called, which means no retry is made in this case, assuming a tracker
  9725. has a problem.
  9726. * src/TrackerWatcherCommand.cc
  9727. Fixed: downloading a file whose length is unkown fails.
  9728. * src/DownloadCommand.cc
  9729. Simplified prepareForNextSegment()
  9730. * src/DownloadCommand.cc
  9731. Updated
  9732. * po/POTFILES.in
  9733. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9734. Re-implemented a file listing for Metalink, which was dropped while
  9735. http/ftp/torrent integration was being implemented.
  9736. * src/MetalinkHelper.{h, cc}: New class.
  9737. * test/MetalinkHelperTest.cc
  9738. * src/main.cc
  9739. * src/Metalink2RequestGroup.cc
  9740. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9741. Added the ability to display the detailed torrent file information.
  9742. Now -S option gives not only a file listing, but also total download
  9743. length, info hash, announce URI, piece length, the number of pieces,
  9744. and mode(single or multi-torrent).
  9745. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  9746. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  9747. KiB)
  9748. * test/UtilTest.cc
  9749. * src/main.cc
  9750. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9751. Added ftp://USER:PASSWD@Servername automatic parsing.
  9752. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  9753. _password. Recognize username and password in URI.
  9754. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  9755. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  9756. * src/RequestFactory.{h, cc}: Removed.
  9757. * src/AuthConfigFactory.{h, cc}: New class.
  9758. * src/FtpConnection.cc: Use AuthConfigFactory.
  9759. * src/HttpRequest.cc: Use AuthConfigFactory.
  9760. * test/HttpRequestTest.cc: Updated.
  9761. * test/RequestTest.cc: Updated.
  9762. * test/AuthConfigFactoryTest.cc: New class.
  9763. * test/RequestFactoryTest.cc: Removed.
  9764. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9765. Use RequestGroup::allDownloadFinished() to decide whether the control
  9766. file should be removed or saved.
  9767. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  9768. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  9769. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9770. Use File::renameTo()
  9771. * src/DefaultBtProgressInfoFile.cc
  9772. Added --no-file-allocation-limit command-line option.
  9773. * src/version_usage.cc
  9774. * src/option_processing.cc
  9775. * src/OptionHandlerFactory.cc
  9776. * src/RequestGroup.{h, cc}
  9777. * src/BtCheckIntegrityEntry.cc
  9778. * src/StreamCheckIntegrityEntry.cc
  9779. * src/prefs.h
  9780. * doc/aria2c.1.txt
  9781. * doc/aria2c.1
  9782. Now prealloc is the default value for --file-allocation option.
  9783. * src/version_usage.cc
  9784. * src/option_processing.cc
  9785. * doc/aria2c.1.txt
  9786. * doc/aria2c.1
  9787. Don't URL-encode user-agent.
  9788. * src/HttpRequest.cc
  9789. Updated translations
  9790. * po/LINGUAS: Added nl for Dutch translation.
  9791. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  9792. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  9793. * po/POTFILES.in: Updated.
  9794. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9795. Added the ability to recognize url-list in a torrent file.
  9796. The retrieved URLs are attached to the corresponding FileEntry.
  9797. * src/DefaultBtContext.{h, cc}
  9798. * src/FileEntry.{h, cc}
  9799. * test/DefaultBtContextTest.cc
  9800. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9801. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  9802. after the download finishes.
  9803. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9804. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  9805. the data smaller than block length.
  9806. A block length can be specified by constructor's argument.
  9807. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  9808. Get a missing piece in the range of given FileEntry. This function is
  9809. not used in the program yet.
  9810. * src/Util.h: Added some macros.
  9811. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9812. Added HTTP/1.1 keep alive and pipelining support.
  9813. See --enable-http-keep-alive and --enable-http-pipelining option.
  9814. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  9815. Segment.
  9816. * src/HttpDownloadCommand.{h, cc}
  9817. * src/OptionHandlerFactory.cc
  9818. * src/HttpConnection.{h, cc}
  9819. * src/version_usage.cc
  9820. * src/HttpInitiateConnectionCommand.cc
  9821. * src/FtpInitiateConnectionCommand.cc
  9822. * src/Segment.h
  9823. * src/HttpRequestCommand.{h, cc}
  9824. * src/option_processing.cc
  9825. * src/prefs.h
  9826. * src/HttpResponseCommand.cc
  9827. * src/SegmentMan.{h, cc}
  9828. * src/FtpNegotiateCommand.cc
  9829. * src/HttpProxyResponseCommand.cc
  9830. * src/Request.cc
  9831. * src/HttpRequest.cc
  9832. * src/DownloadCommand.cc
  9833. * test/HttpRequestTest.cc
  9834. * test/RequestTest.cc
  9835. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9836. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  9837. finished.
  9838. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9839. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  9840. catching it inside the method.
  9841. When no file entry is found in a metalink without querying user
  9842. preferences, throw the exception with the error message that suggests
  9843. metalink file is probably broken.
  9844. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  9845. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9846. Fixed the bug that prevents remote Metalink/Torrent file from begin
  9847. processed.
  9848. * src/RequestGroupMan.cc (removeStoppedGroup)
  9849. Added debug message.
  9850. * src/BtPostDownloadHandler.cc
  9851. * src/MetalinkPostDownloadHandler.cc
  9852. * src/PostDownloadHandler.{h, cc}
  9853. * src/RequestGroup.cc
  9854. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9855. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  9856. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9857. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  9858. stops and there are any unfinished or in-progress downloads.
  9859. Added the legend of "stat".
  9860. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9861. Throw exception when chunck checksum verification fails.
  9862. * src/DownloadCommand.cc (validatePieceHash): New function.
  9863. * src/PiecedSegment.{h, cc} (clear): New function.
  9864. * src/GrowSegment.{h, cc} (clear): New function.
  9865. * src/Segment.h (clear): New function.
  9866. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  9867. * test/SegmentTest.cc
  9868. * test/GrowSegmentTest.cc
  9869. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9870. Do not send referer when redirected.
  9871. * src/Request.cc (redirectUrl)
  9872. * test/RequestTest.cc
  9873. * test/HttpRequestTest.cc
  9874. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9875. Implemented BitTorrent/http/ftp integrated download.
  9876. I've rewritten lots of files and now some headers have forward
  9877. class declarations to reduce compile time.
  9878. The implementation is extremely alpha stage, I recommend to use this
  9879. for testing purpose only.
  9880. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9881. Fixed the compilation error on 64bit platform.
  9882. * test/HttpHeaderProcessorTest.cc
  9883. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9884. Merged Ross's patch that fixes compilation problem in MinGW
  9885. * test/DefaultBtProgressInfoFileTest.cc
  9886. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9887. Updated fr.po by sebone
  9888. * po/fr.po
  9889. Updated man page.
  9890. * doc/aria2c.1.txt
  9891. * Release 0.11.3
  9892. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9893. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  9894. failure in Metalink.
  9895. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9896. Automatically save *.aria2 control file of http/ftp download in every
  9897. 60 seconds.
  9898. * src/AutoSaveCommand.{h, cc}: New class.
  9899. * src/TimeBasedCommand.{h, cc}: New class.
  9900. * src/DownloadEngineFactory.cc (newConsoleEngine)
  9901. Disable parameterized URI support by default. Added -P option to
  9902. enable the feature.
  9903. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  9904. * src/OptionHandlerFactory.cc
  9905. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  9906. Updated Japanese translation.
  9907. * po/ja.po
  9908. Updated man page.
  9909. * doc/aria2c.1.txt
  9910. * Release 0.11.3-rc
  9911. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9912. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  9913. it is successful, then renamed to *.aria2.
  9914. This prevents *.aria2 file from being truncated or corrupted when
  9915. file system becomes out of space.
  9916. * src/DefaultBtProgressInfoFile.cc (save)
  9917. * src/SegmentMan.cc (save)
  9918. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  9919. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9920. Reduced the fragmentation of bitfield in http/ftp download.
  9921. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  9922. * test/BitfieldManTest.cc
  9923. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9924. Added the ability to disable segmented download in .metalink.
  9925. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  9926. 'url' tag.
  9927. * src/MetalinkEntry.{h, cc}
  9928. * src/RequestResource.{h, cc}
  9929. * src/MetalinkRequestInfo.cc
  9930. * src/Xml2MetalinkProcessor.cc
  9931. * test/Xml2MetalinkProcessorTest.cc
  9932. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9933. Added parameterized URI support.
  9934. * src/main.cc: -Z option added.
  9935. * src/OptionHandlerFactory.cc
  9936. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  9937. * src/PStringDatum.h: New class.
  9938. * src/PStringSegment.{h,cc}: New class.
  9939. * src/PStringNumLoop.h: New class.
  9940. * src/PStringSelect.h: New class.
  9941. * src/NumberDecorator.h: New class.
  9942. * src/FixedWidthNumberDecorator.h: New class.
  9943. * src/AlphaNumberDecorator.h: New class.
  9944. * src/PStringVisitor.h: New class.
  9945. * src/PStringBuildVisitor.{h,cc}: New class.
  9946. * src/ParameterizedStringParser.{h,cc}: New class.
  9947. * src/Util.{h,cc}
  9948. (isNumber): New function.
  9949. (isLowercase): New function.
  9950. (isUppercase): New function.
  9951. (alphaToNum): New function.
  9952. * test/ParameterizedStringParserTest.cc: New class.
  9953. * test/AlphaNumberDecoratorTest.cc: New class.
  9954. * test/PStringBuildVisitorTest.cc: New class.
  9955. * test/UtilTest.cc
  9956. (testIsNumber): New function.
  9957. (testIsLowercase): New function.
  9958. (testIsUppercase): New function.
  9959. (testAlphaToNum): New function.
  9960. Added '\n' after the error message
  9961. * src/RequestInfo.h (printDownloadAbortMessage)
  9962. Added auto file renaming feature in http(s)/ftp download.
  9963. * src/main.cc: Added --auto-file-renaming command-line option.
  9964. * src/OptionHandlerFactory.cc
  9965. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  9966. * src/RequestGroup.{h, cc}
  9967. (shouldCancelDownloadForSafety): Rewritten
  9968. (tryAutoFileRenaming): New function.
  9969. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  9970. * src/HttpResponseCommand.cc
  9971. (executeInternal): Removed the call to RequestGroupMan::
  9972. isSameFileBeingDownloaded()
  9973. * src/FtpNegotiateCommand.cc
  9974. (recvSize): Removed the call to RequestGroupMan::
  9975. isSameFileBeingDownloaded()
  9976. * test/RequestGroupTest.cc: New class.
  9977. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9978. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  9979. IO.
  9980. * src/DefaultBtProgressInfoFile.cc
  9981. * src/MetaFileUtil.cc
  9982. * src/SimpleLogger.cc
  9983. * src/SegmentMan.cc
  9984. * src/Util.cc
  9985. * src/Platform.cc
  9986. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9987. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  9988. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9989. Avoid sparse files if possible, because VFAT32 doesn't support it.
  9990. * src/DefaultDiskWriter.cc (initAndOpenFile)
  9991. Fixed the bug that prevents file allocation is not done when
  9992. dowloading multi-torrent file.
  9993. * src/AbstractDiskWriter.cc (openFile)
  9994. Increase the maximum number of -j option from 15 to 45.
  9995. * src/OptionHandlerFactory.cc (createOptionHandlers)
  9996. Added fr.po, thanks to Charles Landemaine.
  9997. * po/fr.po
  9998. * po/LINGUAS
  9999. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10000. gcc 3.4.4 support:
  10001. * src/DefaultBtContext.cc: int32_t -> int
  10002. * src/main.cc: int -> int32_t, int32_t -> int
  10003. * src/messageDigest.h: uint32_t -> unsigned int
  10004. * src/NameResolver.h: int32_t -> int
  10005. * src/PeerConnection.cc: int -> int32_t
  10006. * src/SpeedCalc.cc: int32_t -> int
  10007. * src/TrackerUpdateCommand.h: int -> int32_t
  10008. * src/Util.cc: int32_t -> int
  10009. * src/Util.h: int32_t -> int
  10010. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  10011. * test/AnnounceListTest.cc: int -> int32_t
  10012. * test/ChunkedEncodingTest.cc: int -> int32_t
  10013. * test/DataTest.cc: int -> int32_t
  10014. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  10015. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  10016. * test/DefaultPieceStorageTest.cc: int -> int32_t
  10017. * test/FeatureConfigTest.cc: int -> int32_t
  10018. * test/MetalinkEntryTest.cc: int -> int32_t
  10019. * test/MockBtRequestFactory.h: int -> int32_t
  10020. * test/MockPieceStorage.h: int -> int32_t
  10021. * test/OptionTest.cc: int -> int32_t
  10022. * test/RequestTest.cc: int -> int32_t
  10023. * test/SegmentManTest.cc: int -> int32_t
  10024. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  10025. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  10026. Move sleep functions to Util class:
  10027. * src/Util.cc
  10028. (sleep): New function.
  10029. (usleep): New function.
  10030. * src/DownloadCommand.cc: sleep -> Util::sleep
  10031. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  10032. MinGW build enhancements. The following files are added:
  10033. * src/timegm.{c,h}
  10034. Changes to support the above new files:
  10035. * configure.ac
  10036. * src/Makefile.am
  10037. * src/a2time.h
  10038. * src/Util.cc:
  10039. * src/strptime.c: Added support for %Z option.
  10040. Fixed MinGW non-blocking bug.
  10041. * src/SocketCore.cc
  10042. * src/HttpRequestCommand.cc
  10043. Miscellenous build fixes/enhancements.
  10044. * configure.ac: Added summary report.
  10045. * src/Platform.h: Tweaked #include's.
  10046. * src/a2netcompat.h: Tweaked #include's.
  10047. * src/strptime.h: Tweaked #include's.
  10048. * src/gai_strerror.c: Tweaked #include's.
  10049. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  10050. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  10051. * src/gettimeofday.h: Added HAVE_CONFIG_H
  10052. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10053. Increased the initial connection size in BitTorrent download to 40.
  10054. * src/BtRuntime.h
  10055. Added the usage message of --peer-id-prefix option.
  10056. * src/main.cc
  10057. * Release 0.11.2
  10058. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10059. MessageDigestHelper is introduced in order to simplify the use
  10060. of message digest. Removed repeated code.
  10061. The message digest algorithm is now specified by string, like "sha1",
  10062. "md5".
  10063. * src/messageDigest.{h, cc}
  10064. * src/MessageDigestHelper.{h, cc}: New class.
  10065. * src/DefaultPieceStorage.cc
  10066. * src/DefaultBtContext.{h, cc}
  10067. (computeFastSet): New function.
  10068. (setInfoHash): Added for unit testing.
  10069. (setNumPieces): Added for unit testing.
  10070. * src/DefaultBtInteractive.cc
  10071. * src/BtPieceMessage.cc
  10072. * src/Peer.cc
  10073. * src/Checksum.h
  10074. * src/message.h
  10075. * src/IteratableChecksumValidator.h
  10076. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  10077. inside it.
  10078. * src/SegmentMan.{h, cc}
  10079. (checkIntegrity): Removed.
  10080. * src/IteratableChunkChecksumValidator.{h, cc}
  10081. * src/Util.h
  10082. (sha1Sum): Removed.
  10083. (simpleMessageDigest): Removed.
  10084. (fileChecksum): Removed.
  10085. (computeFastSet): Removed.
  10086. * src/ShaVisitor.cc
  10087. * src/ChunkChecksum.h
  10088. * src/DownloadCommand.cc
  10089. Removed messageDigest virtual functions.
  10090. * src/MultiDiskAdaptor.{h, cc}
  10091. * src/DiskAdaptor.h
  10092. * src/ByteArrayDiskWriter.h
  10093. * src/DiskWriter.h
  10094. * src/DiskAdaptorWriter.h
  10095. * src/AbstractSingleDiskAdaptor.{h, cc}
  10096. * src/AbstractDiskWriter.{h, cc}
  10097. Fixed comilation error when message digest is disabled.
  10098. * src/MetalinkEntry.{h, cc}
  10099. * src/MetalinkRequestInfo.cc
  10100. Removed srandom and random.
  10101. * src/SimpleRandomizer.h
  10102. Added size() virtual function to DiskAdaptor
  10103. * src/MultiDiskAdaptor.h
  10104. Fixed the bug that causes that files are not opened correctly in
  10105. multi-file torrent.
  10106. * src/TorrentRequestInfo.cc
  10107. * src/MultiDiskAdaptor.cc
  10108. Added SHA256 support
  10109. * src/messageDigest.cc
  10110. * src/Xml2MetalinkProcessor.cc
  10111. Show supported message digest algorithms
  10112. * src/main.cc
  10113. Updated contact info.
  10114. * src/main.cc
  10115. Applied Ross's patch
  10116. * src/a2netcompat.h
  10117. * src/main.cc
  10118. Fixed the bug that prevents a remote metalink from not being processed
  10119. even if '-o foo.metalink' is specified.
  10120. * src/MetalinkRequestInfo.cc
  10121. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10122. Merged Dan's patch:
  10123. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  10124. Use va_copy to avoid core dump on amd64:
  10125. * src/SimpleLogger.cc
  10126. Updated contact info.
  10127. * src/main.cc
  10128. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  10129. digest is not available.
  10130. * src/MetalinkEntry.h
  10131. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10132. Make a2netcompat.h include a2io.h to fix compilation error:
  10133. * src/a2netcompat.h
  10134. * src/SocketCore.cc: Removed include of a2io.h
  10135. * src/Util.cc: Removed include of a2io.h
  10136. Gather time related functions to a2time.h:
  10137. * src/a2time.h: New file.
  10138. * src/DefaultPeerStorage.cc
  10139. * src/SimpleLogger.cc
  10140. * src/Util.{h, cc}
  10141. * src/SimpleRandomizer.h
  10142. * src/TimeA2.{h,cc}
  10143. * src/DownloadCommand.cc
  10144. * src/main.cc
  10145. Removed #ifdef __MINGW32__ since gai_strerror is included in
  10146. a2netcompat.h:
  10147. * src/NameResolver.cc
  10148. Fixed compilation error without openssl:
  10149. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  10150. Added default block to suppress compiler warnings:
  10151. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  10152. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  10153. MinGW build enhancements. The following files are added:
  10154. * src/gai_strerror.{c,h}
  10155. * src/gettimeofday.{c,h}
  10156. Changes to support the above new files:
  10157. * configure.ac
  10158. * src/Makefile.am
  10159. * src/a2netcompat.h
  10160. * src/TimeA2.cc
  10161. * src/DefaultPeerStorage.cc
  10162. * src/NameResolver.cc: removed mingw_strerror() function.
  10163. * src/SocketCore.cc: removed mingw_strerror() function.
  10164. Miscellaneous MinGW build fixes.
  10165. * src/a2io.h: Use _lseeki64() instead of lseek()
  10166. * src/common.h
  10167. * src/DefaultFileAllocator.cc
  10168. * src/GlowFileAllocator.cc
  10169. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  10170. * src/NameResolver.cc
  10171. (callback): Changed int32_t to int.
  10172. (resolve): Changed int32_t to int.
  10173. * src/Platform.cc
  10174. * src/Platform.h
  10175. * test/MultiDiskWriterTest.cc
  10176. * test/PeerMessageUtilTest.cc
  10177. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  10178. Other enhancements and fixes.
  10179. * src/HttpRequestCommand.cc
  10180. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  10181. * src/SocketCore.cc:
  10182. (error): New function to abstract errno/WSAGetLastError().
  10183. (errorMsg): New function to abstract errno/WSAGetLastError().
  10184. (initiateSecureConnection): Added more detailed error reporting.
  10185. * src/SocketCore.h: Added private variable blocking, to allow
  10186. proper handling of OpenSSL psuedo-errors.
  10187. * src/message.h
  10188. (EX_SSL_INIT_FAILURE)
  10189. (EX_SSL_IO_ERROR)
  10190. (EX_SSL_PROTOCOL_ERROR)
  10191. (EX_SSL_UNKNOWN_ERROR)
  10192. (EX_SSL_CONNECT_ERROR)
  10193. (EX_SOCKET_BLOCKING)
  10194. (EX_SOCKET_NONBLOCKING)
  10195. (EX_SOCKET_UNKNOWN_ERROR)
  10196. * src/Util.cc
  10197. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  10198. reserved name.
  10199. (httpGMT): Fixed typo.
  10200. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10201. Merged Ross's win32 patch(manually)
  10202. In the course of merging, following files are added.
  10203. * src/strptime.{h,c}
  10204. * src/libgen.{h,c}
  10205. * src/inet_aton.{h,c}
  10206. * src/Platform.{h,cc}
  10207. * src/localtime_r.{h,c}
  10208. * src/getaddrinfo.{h,c}
  10209. I've gethered network related things, and put them to following file:
  10210. * src/a2netcompat.h
  10211. Also io related things are put to following file:
  10212. * src/a2io.h
  10213. Changed %lld to %s because mingw32 doesn't recognize %lld.
  10214. * src/message.h
  10215. (MSG_ALLOCATION_COMPLETED)
  10216. (EX_TOO_LARGE_FILE)
  10217. (EX_SIZE_MISMATCH)
  10218. (EX_FILE_OFFSET_OUT_OF_RANGE)
  10219. (EX_INVALID_CHUNK_CHECKSUM)
  10220. (EX_INVALID_RANGE_HEADER)
  10221. * src/FileAllocationCommand.cc
  10222. * src/HttpResponse.cc
  10223. * src/RequestGroup.cc
  10224. * src/MultiDiskAdaptor.cc
  10225. * src/OptionHandlerImpl.h
  10226. * src/HttpResponseCommand.cc
  10227. * src/FtpNegotiateCommand.cc
  10228. * src/IteratableChecksumValidator.cc
  10229. * src/SegmentMan.cc
  10230. * src/ChunkChecksumValidator.cc
  10231. Added Randomizer::getRandomNumber(long int)
  10232. * src/Randomizer.h (getRandomNumber)
  10233. * src/SimpleRandomizer.h (getRandomNumber)
  10234. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  10235. * src/Util.cc (randomAlpha): Use this new function.
  10236. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10237. Converted int's to in32_t. long long int's are also converted to
  10238. int64_t
  10239. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10240. Fixed the bug that prevents cookies from being sent to the server
  10241. if the domain of cookie is FQDN and starts with ".".
  10242. * src/Cookie.cc (match)
  10243. To add the ability to change peer id.
  10244. * src/DefaultBtContext.h
  10245. (_peerIdPrefix): New variable
  10246. (setPeerIdPrefix): New function.
  10247. * src/torrentRequestInfo.cc
  10248. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  10249. DefaultBtContext.
  10250. * src/main.cc (main): Added peer-id-prefix command-line option.
  10251. The usage message is not added yet.
  10252. * src/DefaultBtContext.cc
  10253. (generatePeerId): Use _peerIdPrefix.
  10254. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  10255. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10256. Fixed the bug that prevents filename in content-disposition from
  10257. being retrieved when filename is not quoted.
  10258. * src/Util.cc (getContentDispositionFilename)
  10259. Fixed the bug that causes infinate loop and memory leak when file open
  10260. operation failed.
  10261. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10262. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10263. Fixed the bug that causes segfault when all URIs specified are
  10264. unsupported.
  10265. * src/RequestGroupMan.cc (getInitialCommands)
  10266. Check if RequestGroup::createNextCommand() returns empty list of
  10267. commands.
  10268. * src/RequestGroup.cc (createNextCommand)
  10269. Change log level from info to error so that users can notice that
  10270. an error occurred.
  10271. Fixed the bug that causes segfault when a zero-sized file is
  10272. downloaded.
  10273. * src/BitfieldMan.cc (isAllBitSet)
  10274. Return true if bitfieldLength is 0.
  10275. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10276. * src/main.cc
  10277. (showUsage): Added 3 usage examples for metalink download.
  10278. Replace MetalinkChunkChecksum with ChunkChecksum.
  10279. * src/MetalinkChunkChecksum.h: Removed.
  10280. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  10281. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  10282. * src/Xml2MetalinkProcessor.cc
  10283. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  10284. * src/MetalinkRequestInfo.cc (execute)
  10285. * Release 0.11.1
  10286. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10287. Reads URIs from stdin when "-i -" is specified.
  10288. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  10289. * src/UriListParser.h, src/UriListParser.cc: New class.
  10290. * src/StreamUriListParser.h: New class.
  10291. * src/FileUriListParser.h: New class.
  10292. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  10293. instead of UriFileListParser.
  10294. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10295. Made console readout more readable.
  10296. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10297. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10298. Fix the bug that causes -s option not to work.
  10299. * src/main.cc (main)
  10300. * src/a2algo.h: New file.
  10301. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10302. Create directory structure specified in metalink file.
  10303. * src/RequestGroup.h, src/RequestGroup.cc
  10304. (initAndOpenFile): Create a directory to store files if it does not
  10305. exist.
  10306. (getDir): New function.
  10307. Added ETA and download speed for an individual file to readout.
  10308. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10309. * src/RequestGroup.h
  10310. (calculateDownloadSpeed): New function.
  10311. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10312. Made -S option work with metalink file and provided selective download
  10313. to metalink.
  10314. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  10315. (filename): Removed.
  10316. (file): New variable.
  10317. (size): Removed.
  10318. (operator=): Updated.
  10319. (getPath): New function.
  10320. (getLength): New function.
  10321. (toFileEntry): New function.
  10322. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  10323. (execute): Use toStream.
  10324. (showFileEntry): Removed.
  10325. * src/MetalinkRequestInfo.h
  10326. (targetFiles): New variable.
  10327. (setTargetFiles): New variable.
  10328. * src/MetalinkRequestInfo.cc
  10329. (execute): Added the ability to print file information included in
  10330. a metalink file.
  10331. Added selective download mode to metalink.
  10332. * src/main.cc
  10333. (showUsage): Updated to denote that -S and --select-file options are
  10334. applicable to metalink.
  10335. * src/FileEntry.h
  10336. (operator=): New function.
  10337. (getBasename): New function.
  10338. (getDirname): New function.
  10339. * src/Util.h, src/Util.cc
  10340. (toStream): New function.
  10341. * src/Xml2MetalinkProcessor.cc: Updated.
  10342. Made aria2 work with metalink with directory structure.
  10343. * src/File.h, src/File.cc
  10344. (getBasename): New function.
  10345. (getDirname): New function.
  10346. * src/RequestGroup.h, src/RequestGroup.cc
  10347. (_topDir): New variable.
  10348. (setTopDir): New function.
  10349. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  10350. Rewrote HTTP header parsing with stringstream.
  10351. * src/HttpConnection.h, src/HttpConnection.cc
  10352. (HttpRequestEntry): New class.
  10353. (headerBuf): Removed.
  10354. (headerBufLength): Removed.
  10355. (outstandingHttpRequests): Now its element type is
  10356. HttpRequestEntryHandle.
  10357. (findEndOfHeader): Removed.
  10358. (receiveResponse): Rewritten.
  10359. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  10360. Updated doc for -j option to notice that it should be used with -i
  10361. option.
  10362. * src/main.cc (showUsage)
  10363. Removed unused classes.
  10364. * src/RequestInfo.h
  10365. (FileInfo): Removed.
  10366. (checksum): Removed.
  10367. (fileInfo): Removed.
  10368. (setChecksum): Removed.
  10369. (getChecksum): Removed.
  10370. (getFileInfo): Removed.
  10371. Use ISO units.
  10372. * src/ConsoleDownloadEngine.cc
  10373. * src/TorrentConsoleDownloadEngine.cc
  10374. * src/Util.cc (abbrevSize)
  10375. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10376. Added the default listening ports to the help message.
  10377. * src/main.cc (showUsage)
  10378. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10379. Reduce the number of calls to gettimeofday to lower CPU load.
  10380. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  10381. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  10382. * src/Peer.h (calculateUploadSpeed): New function.
  10383. (calculateDownloadSpeed): New function.
  10384. * src/DefaultPeerStorage.cc
  10385. (CalculateStat): Added _now variable.
  10386. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  10387. and Peer::calculateUploadSpeed(const struct timeval&)
  10388. Drop connection if no request or piece message is exchanged in
  10389. a certain interval.
  10390. * src/DefaultBtInteractive.h
  10391. (btRuntime): New variable.
  10392. (inactiveCheckPoint): New variable.
  10393. (checkActiveInteraction): New function.
  10394. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  10395. request or piece message is received.
  10396. (checkActiveInteraction): New function.
  10397. (doInteractionProcessing): Call checkActiveInteraction.
  10398. Fixed the bug that causes remote Metalink and Torrent files are not
  10399. processed.
  10400. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  10401. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10402. Changed format of log file.
  10403. * src/SimpleLogger.cc
  10404. * Release 0.11.0
  10405. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10406. * src/AbstractCommand.cc
  10407. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  10408. MSG_MAX_TRY from error to info.
  10409. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  10410. * src/message.h
  10411. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  10412. (MSG_DOWNLOAD_ABORTED): Added %s.
  10413. (MSG_RESTARTING_DOWNLOAD): Added %s.
  10414. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  10415. * src/PeerAbstractCommand.cc
  10416. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  10417. * src/Request.h
  10418. (cookieBox): Made ShardHandle.
  10419. * src/RequestGroup.h, src/RequestGroup.cc
  10420. (createNextCommandWithAdj): New function.
  10421. * src/FileAllocationCommand.cc
  10422. (executeInternal): Use createNextCommandWithAdj().
  10423. * src/CheckIntegrityCommand.cc
  10424. (executeInternal): Use createNextCommandWithAdj().
  10425. Added --load-cookies command-option.
  10426. * src/OptionHandlerFactory.cc
  10427. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  10428. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  10429. Now aria2 can handle cookie's expiration date.
  10430. * src/Cookie.h (expires): Changed its type to time_t.
  10431. * src/main.cc: Added --load-cookies command-line option.
  10432. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  10433. * src/Util.h, src/Util.cc (httpGMT): New function.
  10434. * src/Request.cc (Request): Initialize cookieBox using
  10435. CookieBoxFactory.
  10436. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  10437. * src/CookieParser.h, src/CookieParser.cc: New class.
  10438. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  10439. * src/HttpResponseCommand.cc
  10440. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  10441. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  10442. download.
  10443. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10444. Added -j command-line option.
  10445. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10446. * src/main.cc
  10447. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  10448. Rewritten using stringstream.
  10449. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  10450. Rewritten using stringstream.
  10451. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10452. Make download size shown in MB, KB.
  10453. * src/ConsoleDownloadEngine.h (sendStatistics)
  10454. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  10455. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10456. Accept incoming connections if download rate is low.
  10457. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  10458. (_lowestSpeedLimit): New variable.
  10459. (setLowestSpeedLimit): New function.
  10460. (execute): Accept incoming connections if download rate is low.
  10461. MAX_PEERS is ignored in this case.
  10462. Disable PREF_OUT in multiple concurrent download:
  10463. * src/RequestGroup.h, src/RequestGroup.cc
  10464. (setUserDefinedFilename): New function.
  10465. * src/DownloadEngineFactory.cc
  10466. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  10467. concurrent download.
  10468. * src/DefaultSegmentManFactory.cc
  10469. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  10470. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10471. RequestGroup::getNextCommand() was renamed to createNextCommand().
  10472. Added its overloaded method.
  10473. * src/RequestGroup.h
  10474. (_numConcurrentCommand): New variable.
  10475. (setNumConcurrentCommand): New function.
  10476. * src/RequestGroup.cc
  10477. Abort download if same file is being downloaded concurrently.
  10478. * src/RequestGroup.h, src/RequestGroupMan.cc
  10479. (isSameFileBeingDownloaded): New function.
  10480. * src/HttpResponseCommand.cc (executeInternal)
  10481. * src/FtpNegotiateCommand.cc (recvSize)
  10482. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  10483. * main.cc: Added help message for -i option.
  10484. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10485. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  10486. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  10487. * src/MetalinkEntry.h
  10488. (checksum): Changed to ChecksumHandle
  10489. * src/MetalinkRequestInfo.cc
  10490. (checksum): Changed to ChecksumHandle
  10491. * src/File.cc
  10492. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  10493. * src/common.h
  10494. (DIR_OPEN_MODE): New definition
  10495. * src/RequestGroup.cc
  10496. (prepareForNextAction): Added an argument.
  10497. * src/message.h
  10498. (MSG_GOOD_CHECKSUM): New definition
  10499. (MSG_BAD_CHECKSUM): New definition
  10500. * src/HttpResponseCommand.cc
  10501. (handleDefaultEncoding): Continue download sequence in new
  10502. non-segmented download.
  10503. * src/FileAllocationEntry.h
  10504. (_nextDownloadCommand): New variable.
  10505. * src/DownloadCommand.cc
  10506. (prepareForNextSegment): Create ChecksumCommand if checksum is
  10507. available.
  10508. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  10509. * src/IteratableChecksumValidator.h,
  10510. src/IteratableChecksumValidator.cc: New class.
  10511. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  10512. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10513. Change file mode to 666:
  10514. * src/common.h (OPEN_MODE): New definition.
  10515. * src/File.cc
  10516. * src/Util.cc
  10517. * src/Directry.cc
  10518. * src/AbstractDiskWriter.cc
  10519. Change the level of log message "download aborted" to debug:
  10520. * src/PeerAbstractCommand.cc (execute)
  10521. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  10522. * src/TrackerWatcherCommand.cc
  10523. (createCommand): Sleep some seconds after request failed.
  10524. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  10525. then abort tracker request.
  10526. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10527. * Added the simultaneous download feature.
  10528. * src/main.cc: Print "Exception caught: " when exception is caught.
  10529. Use CUIDCounter instead of BtRuntime::getNewCuid():
  10530. * src/ActivePeerConnectionCommand.cc
  10531. * src/PeerInteractionCommand.cc
  10532. * src/BtRuntime.h
  10533. (cuidCounter): Removed.
  10534. (getNewCuid): Removed.
  10535. * src/DownloadEngineFactory.cc
  10536. * src/PeerListenCommand.cc
  10537. * src/TrackerUpdateCommand.cc
  10538. * src/PeerInitiateConnectionCommand.cc
  10539. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10540. * src/PeerAbstractCommand.cc
  10541. (onAbort): Call PeerStorage::returnPeer()
  10542. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  10543. (incomingPeers): New variable.
  10544. (addIncomingPeer): New function.
  10545. (returnPeer): New function.
  10546. (onErasingPeer): New function.
  10547. (addPeer): push_back -> push_front
  10548. (getActivePeers): Rewritten.
  10549. (calculateStat): Rewritten.
  10550. * src/PeerStorage.h
  10551. (TransferStat::copy): New function.
  10552. (TransferStat::TransferStat): New function.
  10553. (TransferStat::operator=): New function.
  10554. (addIncomingPeer): New function.
  10555. (returnPeer): New function.
  10556. * src/PeerListenCommand.cc
  10557. (execute): Use PeerStorage::addIncomingPeer() instead of
  10558. Peer::addPeer().
  10559. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10560. Connect to a peer actively when download speed is lower than specified
  10561. speed in torrent download:
  10562. * src/ActivePeerConnectionCommand.h: New class.
  10563. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10564. * src/HttpRequest.cc (createRequest): url-encode user-agent
  10565. * src/main.cc: Fixed the bug that prevents download if .netrc
  10566. doesn't exist.
  10567. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10568. To cache resolved hostname:
  10569. * src/AbstractCommand.h, src/AbstractCommand.cc
  10570. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  10571. Added dns cache.
  10572. * src/FtpInitiateConnectionCommand.cc
  10573. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  10574. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  10575. NameResolver working without ares.
  10576. * src/TorrentRequestInfo.cc
  10577. (execute): Don't cache dns in torrent download.
  10578. * src/HttpInitiateConnectionCommand.cc
  10579. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  10580. * src/DNSCache.h: New class.
  10581. * src/UrlRequestInfo.cc
  10582. (execute): Use dns cache.
  10583. In http request, suppress port number in http request header if port
  10584. is 80 or 443:
  10585. * src/HttpRequest.cc (getHostText): Suppress port number in http
  10586. request header if port is 80 or 443.
  10587. (createProxyRequest): Allways send port number.
  10588. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10589. To add the command-line option which disables netrc support:
  10590. * src/OptionHandlerFactory.cc
  10591. (createOptionHandlers): Added PREF_NO_NETRC.
  10592. * src/main.cc: Added -n option.
  10593. * src/prefs.h (PREF_NO_NETRC): New definition.
  10594. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  10595. V_TRUE.
  10596. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  10597. is V_FALSE. This may get configurable in the future release.
  10598. To clear peer's error status by time basis:
  10599. * src/PeerAbstractCommand.cc
  10600. (onAbort): Call Peer::startBadCondition().
  10601. * src/Peer.h, src/Peer.cc
  10602. (error): Removed.
  10603. (_badConditionStartTime): New variable.
  10604. (_badConditionInterval): New variable. Initialized to 10 seconds.
  10605. (startBadCondition): New function.
  10606. (isGood): New function.
  10607. * src/DefaultPeerStorage.cc
  10608. (addPeer): Use Peer::isGood().
  10609. (FindFinePeer): Use Peer::isGood().
  10610. Always include port number in http request header:
  10611. * src/HttpRequest.cc (getHostText): Always include port number in
  10612. http request header.
  10613. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10614. To the ability to read options from a config file:
  10615. * src/main.cc: Command-line parameter validation is delegated to
  10616. OptionHandler class.
  10617. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  10618. * src/Option.h, src/Option.cc (clear): New function.
  10619. * src/OptionParser.h, src/OptionParser.cc: New class.
  10620. * src/OptionHandler.h: New class.
  10621. * src/NameMatchOptionHandler.h: New class.
  10622. * src/OptionHandlerImpl.h: New classes.
  10623. * src/prefs.h: '_' -> '-'
  10624. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  10625. (FTP_PASV): New definition.
  10626. * src/Util.h, src/Util.cc (getRealSize): New function.
  10627. To disable netrc support if .netrc file does not have correct
  10628. permissions:
  10629. * src/File.h, src/File.cc (mode): New function.
  10630. To prevent confidential information to be logged:
  10631. * src/HttpConnection.h, src/HttpConnection.cc
  10632. (eraseConfidentialInfo): New function.
  10633. (sendRequest): Call eraseConfidentialInfo().
  10634. (sendProxyRequest): Call eraseConfidentialInfo().
  10635. * src/main.cc: Validate permissions of .netrc file.
  10636. To add --user-agent command-line option:
  10637. * src/main.cc: Added new command line option: --user-agent
  10638. * src/prefs.h (PREF_USER_AGENT): New definition.
  10639. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  10640. parameter to HttpRequest object.
  10641. * src/AbstractProxyRequestCommand.cc
  10642. (executeInternal): Set user-agent option parameter to HttpRequest
  10643. object.
  10644. Marged the patches from Dan Fandrich.
  10645. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10646. Use filename and size from Metalink file instead of sending HEAD
  10647. request:
  10648. * src/UrlRequestInfo.h
  10649. (_filename): New variable.
  10650. (_totalLength): New variable.
  10651. (setTotalLength): New variable.
  10652. (setFilename): New variable.
  10653. * src/MetalinkRequestInfo.cc
  10654. (execute): Set filename and size to UrlRequestInfo
  10655. * src/UrlRequestInfo.cc
  10656. (execute): Use filename and size from Metalink instead of seding
  10657. HEAD request to servers.
  10658. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10659. To add the ability to resume downloading a partially downloaded file
  10660. which is downloaded from the beginning:
  10661. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  10662. takes this role.
  10663. * src/main.cc: Added -c option.
  10664. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  10665. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  10666. * src/prefs.h (PREF_CONTINUE): New definition.
  10667. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  10668. * src/DefaultDiskWriter.cc
  10669. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  10670. * src/AbstractDiskWriter.h
  10671. (glowFileAllocator): New variable.
  10672. * src/AbstractDiskWriter.cc
  10673. (openExistingFile): Now preallocate file space from the end of the
  10674. existing file if totalLength argument is specified and grater than 0.
  10675. * src/UrlRequestInfo.cc: If -c option is specified and the file
  10676. to download exists in local, continue the download of the file.
  10677. --allow-overwrite=true is assumed in this context.
  10678. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  10679. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  10680. Throw exception if --check-integrity=true is specified but chunk
  10681. checksums are not provided:
  10682. * src/UrlRequestInfo.cc
  10683. Do not print URLs to stdout:
  10684. * src/UrlRequestInfo.cc
  10685. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10686. * src/Request.h: Use AuthResolver to get authentication information.
  10687. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  10688. set to RequestFactory object.
  10689. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  10690. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  10691. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  10692. create Request object.
  10693. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  10694. To integrate Netrc into exsiting classes:
  10695. * src/Request.h
  10696. (_userDefinedAuthConfig): New variable.
  10697. (findNetrcAuthenticator): New function.
  10698. (segment): Removed.
  10699. (setUserDefinedAuthConfig): New function.
  10700. (resolveHttpAuthConfigItem): New function.
  10701. (resolveFtpAuthConfigItem): New function.
  10702. (resolveHttpProxyAuthConfigItem): New function.
  10703. * src/HttpRequest.h
  10704. (authConfig): Removed.
  10705. (proxyAuthConfig): Removed.
  10706. (setAuthConfig): Removed.
  10707. (setProxyAuthConfig): Removed.
  10708. * src/UrlRequest.h
  10709. (getHeadResult): Added a parameter: authConfigHandle
  10710. * src/common.h
  10711. (SingletonHolder.h): New include.
  10712. * src/main.cc
  10713. (Netrc.h): New include.
  10714. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  10715. Added initial value of PREF_NETRC_PATH.
  10716. Added the initialization of netrc.
  10717. * src/AuthConfig.h: New class.
  10718. * src/prefs.h
  10719. (PREF_NETRC_PATH): New definition.
  10720. * src/HttpAuthConfig.h: Removed.
  10721. * src/Netrc.cc
  10722. (getRequiredNextToken): New function.
  10723. (skipMacdef): New function.
  10724. (parse): Rewritten.
  10725. * src/Netrc.h
  10726. (getRequiredNextToken): New function.
  10727. (skipMacdef): New function.
  10728. * src/Util.h, src/Util.cc
  10729. (getHomeDir): New function.
  10730. * src/TrackerWatcherComand.cc
  10731. (createRequestCommand): Use AuthConfig.
  10732. * src/FtpConnection.cc
  10733. (sendUser): Use Request::resolveFtpAuthConfigItem().
  10734. (sendPass): Use Request::resolveFtpAuthConfigItem().
  10735. * src/Request.cc
  10736. (findNetrcAuthenticator): New function.
  10737. (resolveHttpAuthConfigItem): New function.
  10738. (resolveFtpAuthConfigItem): New function.
  10739. (resolveHttpProxyAuthConfigItem): New function.
  10740. * src/UrlRequestInfo.cc: Use AuthConfig.
  10741. * src/HttpRequest.cc
  10742. (createRequest): Use authConfig.
  10743. (getProxyAuthString): Use authConfig.
  10744. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  10745. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  10746. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10747. To reduce overhead to find commands whose socket is either
  10748. readable or writable in the download engine loop:
  10749. * src/Command.h, src/Command.cc
  10750. (STATUS): New enum.
  10751. (status): New variable.
  10752. (statusMatch): New function.
  10753. (setStatusActive): New function.
  10754. (setStatusInactive): New function.
  10755. * src/DownloadEngine.h, src/DownloadEngine.cc
  10756. (executeCommand): New function.
  10757. (run): Simplified.
  10758. (waitData): Call Command::setStatusActive() when command's socket is
  10759. readable or writable.
  10760. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10761. To handle Segment as SegmentHandle:
  10762. * src/AbstractCommand.cc (execute): Rewritten.
  10763. * src/SegmentMan.h: Segment -> SegmentHandle
  10764. Introducded HttpResponse class, HttpRequest class to improve code
  10765. extensiveness and make it clear:
  10766. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  10767. HttpResponse class.
  10768. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  10769. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  10770. * src/HttpConnection.cc: Contruction of http request were moved to
  10771. HttpRequest class.
  10772. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  10773. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  10774. * src/HttpAuthConfig.h: New class.
  10775. * src/Range.h: New class.
  10776. To make FtpTunnel{Request, Response}Command and
  10777. HttpProxy{Request, Response}Command derived from
  10778. AbstractProxy{Request, Response}Command:
  10779. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  10780. Derived from AbstractProxyRequestCommand class.
  10781. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  10782. Derived from AbstractProxyResponseCommand class.
  10783. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  10784. Derived from AbstractProxyRequestCommand class.
  10785. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  10786. Derived from AbstractProxyResponseCommand class.
  10787. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  10788. : New class.
  10789. * src/AbstractProxyResponseCommand.h,
  10790. src/AbstractProxyResponseCommand.cc: New class.
  10791. To add netrc support:
  10792. * src/Netrc.h, src/Netrc.cc: New class.
  10793. * src/Util.h, src/Util.cc (split): New function.
  10794. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  10795. "Content-Range" header instead of "Range" header.
  10796. * src/HttpHeader.h
  10797. (getStatus): Removed.
  10798. (setStatus): Removed.
  10799. * src/Segment.h
  10800. (getPositionToWrite): New function.
  10801. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10802. * src/HttpHeader.h
  10803. (Range.h): New include.
  10804. (status): New variable.
  10805. (HttpHeader): Initialized status with 0.
  10806. (getStatus): New function.
  10807. (setStatus): New function.
  10808. (getRange): New function.
  10809. (HttpHeaderHandle): New function.
  10810. * src/HttpHeader.cc
  10811. (getRange): New function.
  10812. * src/Request.h
  10813. (RequestWeakHandle): New definition.
  10814. * src/HttpConnection.h
  10815. (HttpConnectionHandle): New type definition.
  10816. * src/HttpConnection.cc
  10817. (receiveResponse): Set HTTP status to headers.
  10818. * src/main.cc
  10819. (showUsage): Fixed typo.
  10820. * src/Segment.h
  10821. (SegmentHandle): New type definition.
  10822. * src/BitfieldMan.h
  10823. (getMissingUnusedLength): New function.
  10824. * src/BitfieldMan.cc
  10825. (getMissingUnusedLength): New function.
  10826. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10827. To fix static initialization order problem:
  10828. * src/BitfieldManFactory.h
  10829. (defaultRandomizer): Removed.
  10830. (factory): New variable.
  10831. (getNewFactory): Removed.
  10832. (getFactoryInstance): New function.
  10833. (setDefaultRandomizer): Rewritten.
  10834. (getDefaultRandomizer): Rewritten.
  10835. * src/BitfieldManFactory.cc
  10836. (defaultRandomizer): Removed.
  10837. (factory): Initialized to 0.
  10838. (BitfieldManFactory): Initialized randomizer to 0.
  10839. * src/DefaultPieceStorage.cc
  10840. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  10841. * src/Peer.cc
  10842. (Peer): getNewFactory() -> getFactoryInstance()
  10843. * src/SegmentMan.cc
  10844. (initBitfield): getNewFactory() -> getFactoryInstance()
  10845. * src/Piece.cc
  10846. (Piece): getNewFactory() -> getFactoryInstance()
  10847. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10848. To fix the bug that causes crash on Max OS X:
  10849. * src/SimpleRandomizer.h
  10850. (getInstance): Create new instance if the static variable is null.
  10851. * src/SimpleRandomizer.cc
  10852. (randomizer): Initialized to 0.
  10853. * src/BitfieldManFactory.h
  10854. (getNewFactory): Removed the call to setRandomizer().
  10855. To fix the miscalculation of the range of checksum:
  10856. * src/BitfieldMan.h
  10857. (isBitSetOffsetRange): New function.
  10858. * src/BitfieldMan.cc
  10859. (isBitSetOffsetRange): New function.
  10860. * src/SegmentMan.cc
  10861. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  10862. Use bitfield->getBlockLength() instead of segment.segmentLength.
  10863. * Release 0.10.1
  10864. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10865. To lower CPU usage in BitTorrent download when --max-upload-limit
  10866. command-line option specified:
  10867. * src/DefaultBtMessageDispatcher.cc
  10868. (sendMessages): Calculate uploading speed only when current message
  10869. is uploading data and is not sent yet.
  10870. * src/DefaultPeerStorage.h
  10871. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  10872. * src/HttpResponseCommand.cc
  10873. (handleDefaultEncoding): Added the cast to int32_t to itos.
  10874. This fixes compile error in Soralis 10.
  10875. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10876. To fix segfault in Metalink download:
  10877. * src/UrlRequestInfo.h
  10878. (filename): Removed.
  10879. (totalLength): Removed.
  10880. (setTotalLength): Removed.
  10881. (setFilename): Removed.
  10882. * src/MetalinkRequestInfo.cc
  10883. (execute): Do not set filename and totalLength to reqInfo.
  10884. Set chunk checksum to reqInfo if it is not null.
  10885. * src/HttpResponseCommand.cc
  10886. (executeInternal): Fixed filename in log.
  10887. (handleDefaultEncoding): Removed the call to initBitfield() and
  10888. markAllPiecesDone().
  10889. (handleOtherEncoding): Added HEAD method handling.
  10890. * src/FtpNegotiateCommand.cc
  10891. (executeInternal): Added SEQ_HEAD_OK handling.
  10892. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  10893. return false.
  10894. * src/FtpNegotiateCommand.h
  10895. (SEQ_HEAD_OK): New definition.
  10896. * src/SegmentMan.cc
  10897. (initBitfield): Delete bitfield.
  10898. (isChunkChecksumValidationReady): Fixed the condition.
  10899. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  10900. works fine.
  10901. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10902. * src/Xml2MetalinkProcessor.h
  10903. (xpathExists): New function.
  10904. * src/Xml2MetalinkProcessor.cc
  10905. (xpathExists): New function.
  10906. Not to send HEAD request if filename and size are available in Metalink
  10907. file:
  10908. * src/UrlRequestInfo.h
  10909. (filename): New variable.
  10910. (totalLength): New variable.
  10911. (setTotalLength): New function.
  10912. (setFilename): New function.
  10913. * src/MetalinkRequestInfo.cc
  10914. (execute): Set filename and size to UrlRequestInfo.
  10915. * src/MetalinkEntry.cc
  10916. (MetalinkEntry): Initialize size with 0.
  10917. * src/UrlRequestInfo.cc
  10918. (execute): Set filename and size to SegmentMan.
  10919. Not to download rest of the files after selected files are downloaded
  10920. in BitTorrent:
  10921. * src/PieceStorage.h
  10922. (allDownloadFinished): New function.
  10923. * src/DefaultBtAnnounce.cc
  10924. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  10925. downloadFinished.
  10926. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  10927. * src/DefaultPieceStorage.cc
  10928. (completePiece): Use allDownloadFinished instead of downloadFinished.
  10929. Commented out the call to finishSelectiveDownloadingMode().
  10930. (downloadFinished): Call isFilteredAllBitSet() instead of
  10931. isAllBitSet().
  10932. (allDownloadFinished): New function.
  10933. * src/DefaultBtInteractive.cc
  10934. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  10935. downloadFinished().
  10936. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  10937. * src/TorrentDownloadEngine.cc
  10938. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  10939. * src/BitfieldMan.h
  10940. (isFilteredAllBitSet): New function.
  10941. * src/ShareRatioSeedCriteria.h
  10942. (PieceStorage.h): New include.
  10943. (pieceStorage): New variable.
  10944. (evaluate):
  10945. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  10946. * src/BitfieldMan.cc
  10947. (isFilteredAllBitSet): New function.
  10948. (isAllBitSet): Filter is not took into account.
  10949. Rename --force-truncate as --allow-overwrite:
  10950. * src/TorrentRequestInfo.cc
  10951. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  10952. * src/main.cc
  10953. (showUsage): --force-truncate -> --allow-overwrite
  10954. * src/message.h
  10955. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  10956. * src/prefs.h
  10957. (PREF_FORCE_TRUNCATE): Removed.
  10958. (PREF_ALLOW_OVERWRITE): New definition.
  10959. * src/SegmentMan.cc
  10960. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  10961. * src/MetalinkRequestInfo.cc
  10962. (execute): Queueing message are now logged in info level.
  10963. * src/common.h
  10964. (LONG_LONG_MAX): Removed.
  10965. (LONG_LONG_MIN): Removed.
  10966. * src/HttpResponseCommand.cc
  10967. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  10968. * src/FtpNegotiateCommand.cc
  10969. (recvSize): LONG_LONG_MAX -> INT64_MAX
  10970. * src/main.cc
  10971. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  10972. command-line option.
  10973. (main): Added --check-integriy and --realtime-chunk-checksum
  10974. command-line option.
  10975. --force-truncate -> --allow-overwrite
  10976. Set initial value of --check-integrity option to false.
  10977. Don't show usage when error occurs while persing command-line options.
  10978. Removed deprecated --upload-limit option.
  10979. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10980. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  10981. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  10982. * src/BtAllowedFastMessage.cc:
  10983. * src/BtBitfieldMessage.cc
  10984. * src/BtCancelMessage.cc
  10985. * src/BtChokeMessage.cc
  10986. * src/BtHaveAllMessage.cc
  10987. * src/BtHaveMessage.cc
  10988. * src/BtHaveNoneMessage.cc
  10989. * src/BtInterestedMessage.cc
  10990. * src/BtNotInterestedMessage.cc
  10991. * src/BtPieceMessage.cc
  10992. * src/BtPortMessage.cc
  10993. * src/BtRejectMessage.cc
  10994. * src/BtRequestMessage.cc
  10995. * src/BtSuggestPieceMessage.cc
  10996. * src/BtUnchokeMessage.cc
  10997. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  10998. files are affected.
  10999. * src/ChunkChecksumValidator.cc
  11000. * src/SegmentMan.cc
  11001. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11002. To add chunk checksum validation:
  11003. * src/MetalinkEntry.h
  11004. (MetalinkChunkChecksum.h): New include.
  11005. (chunkChecksum): New variable.
  11006. * src/Request.h
  11007. (method): New variable.
  11008. (setMethod): New function.
  11009. (getMethod): New function.
  11010. (METHOD_GET): New static constant.
  11011. (METHOD_HEAD): New static constant.
  11012. * src/Xml2MetalinkProcessor.h
  11013. (getPieceHash): New function.
  11014. * src/PieceStorage.h
  11015. (markAllPiecesDone): New function.
  11016. (checkIntegrity): New function.
  11017. * src/FileAllocator.h
  11018. (NullFileAllocationMonitor.h): New include.
  11019. (FileAllocator): Initialize fileAllocationMonitor with new
  11020. NullFileAllocationMonitor().
  11021. * src/MultiDiskAdaptor.h
  11022. (messageDigest.h): Remove include.
  11023. (ctx): Removed.
  11024. (hashUpdate): Added ctx.
  11025. (MultiDiskAdaptor): Removed ctx.
  11026. (sha1Sum): Renamed as messageDigest.
  11027. (messageDigest): New function.
  11028. * src/UrlRequestInfo.h
  11029. (HeadResult): New class.
  11030. (digestAlgo): New variable.
  11031. (chunkChecksumLength): New variable.
  11032. (chunkChecksums): New variable.
  11033. (getHeadResult): New function.
  11034. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  11035. (setDigestAlgo): New function.
  11036. (setChunkChecksumLength): New function.
  11037. (setChunkChecksums): New function.
  11038. * src/DefaultPieceStorage.cc
  11039. (DiskAdaptorWriter.h): New include.
  11040. (ChunkChecksumValidator.h): New include.
  11041. (markAllPiecesDone): New function.
  11042. (checkIntegrity): New function.
  11043. * src/DefaultBtContext.h
  11044. (getPieceHashes): New function.
  11045. * src/TorrentRequestInfo.cc
  11046. (execute): Try to validate chunk checksum if file already exists and
  11047. .aria2 file doesn't there and user allows aria2 to overwrite it.
  11048. * src/messageDigest.h
  11049. (~MessageDigestContext): Added digestFree().
  11050. * src/MetalinkRequestInfo.cc
  11051. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  11052. * src/DiskAdaptor.h
  11053. (messageDigest.h): New include.
  11054. (sha1Sum): Renamed as messageDigest.
  11055. (messageDigest): New function.
  11056. * src/DownloadCommand.h
  11057. (PeerStat.h): New include.
  11058. (maxDownloadSpeedLimit): New variable.
  11059. (startupIdleTime): New variable.
  11060. (lowestDownloadSpeedLimit): New variable.
  11061. (peerStat): New variable.
  11062. (setMaxDownloadSpeedLimit): New function.
  11063. (setStartupIdleTime): New function.
  11064. (setLowestDownloadSPeedLimit): New function.
  11065. * src/BtContext.h
  11066. (getPieceHashes): New function.
  11067. * src/main.cc
  11068. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  11069. option to true for testing purpose.
  11070. * src/BtPieceMessage.cc
  11071. (checkPieceHash): Use messageDigest
  11072. * src/DownloadEngine.cc
  11073. (SetDescriptor): Removed.
  11074. (AccumulateActiveCommand): Removed.
  11075. (waitData): Rewritten.
  11076. (updateFdSet): Rewritten.
  11077. * src/MultiDiskAdaptor.cc
  11078. (hashUpdate): Added ctx.
  11079. (sha1Sum): Renamed as messageDigest.
  11080. (messageDigest): New function.
  11081. * src/BitfieldMan.h
  11082. (isBitRangeSet): New function.
  11083. (unsetBitRange): New function.
  11084. * src/ByteArrayDiskWriter.h
  11085. (sha1Sum): Renamed as messageDigest.
  11086. (messageDigest): New function.
  11087. * src/ConsoleDownloadEngine.cc
  11088. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  11089. * src/DiskWriter.h
  11090. (messageDigest.h): New include.
  11091. (sha1Sum): Renamed as messageDigest.
  11092. (messageDigest): New function.
  11093. * src/ChunkChecksumValidator.h: New class.
  11094. * src/DiskAdaptorWriter.h: New class.
  11095. * src/prefs.h
  11096. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  11097. (PREF_CHECK_INTEGRITY): New definition.
  11098. * src/HttpResponseCommand.cc
  11099. (handleDefaultEncoding): Added method "HEAD" handling.
  11100. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11101. (handleOtherEncoding):
  11102. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  11103. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  11104. startupIdleTime, lowestDownloadSpeedLimit to command.
  11105. * src/SegmentMan.h
  11106. (getSegmentEntryByIndex): New function.
  11107. (getSegmentEntryByCuid): New function.
  11108. (getSegmentEntryIteratorByCuid): New function.
  11109. (diskWriter): DiskWriter -> DiskWriterHandle
  11110. (pieceHashes): New variable.
  11111. (chunkHashLength): New variable.
  11112. (digestAlgo): New variable.
  11113. (FindPeerStat): Removed.
  11114. (getPeerStat): Rewritten.
  11115. (markAllPiecesDone): New function.
  11116. (checkIntegrity): New function.
  11117. (tryChunkChecksumValidation): New function.
  11118. (isChunkChecksumValidationReady): New function.
  11119. * src/BitfieldMan.cc
  11120. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  11121. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  11122. blocks to 0.
  11123. (isBitRangeSet): New function.
  11124. (unsetBitRange): New function.
  11125. * src/FtpNegotiateCommand.cc
  11126. (executeInternal): Set maxDownloadSpeedLimit,
  11127. startupIdleTime, lowestDownloadSpeedLimit to command.
  11128. (recvSize): Added method "HEAD" handling.
  11129. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11130. * src/AbstractSingleDiskAdaptor.cc
  11131. (sha1Sum): Renamed as messageDigest.
  11132. (messageDigest): New function.
  11133. * src/AbstractSingleDiskAdaptor.h
  11134. (sha1Sum): Renamed as messageDigest.
  11135. (messageDigest): New function.
  11136. * src/Util.h
  11137. (indexRange): New function.
  11138. * src/MetalinkEntry.cc
  11139. (MetalinkEntry): Initialized chunkChecksum to 0.
  11140. * src/ShaVisitor.cc
  11141. (~ShaVisitor): Removed the call to ctx.digestFree().
  11142. * src/SegmentMan.cc
  11143. (ChunkChecksumValidator.h): New include.
  11144. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  11145. to DIGEST_ALGO_SHA1.
  11146. (~SegmentMan): Removed diskWriter.
  11147. (FindSegmentEntryByIndex): Removed.
  11148. (FindSegmentEntryByCuid): Removed.
  11149. (checkoutSegment): Rewritten.
  11150. (findSlowerSegmentEntry): Rewritten.
  11151. (getSegment): Rewritten.
  11152. (updateSegment): Rewritten.
  11153. (completeSegment): Rewritten.
  11154. (markAllPiecesDone): New function.
  11155. (checkIntegrity): New function.
  11156. (isChunkChecksumValidationReady): New function.
  11157. (tryChunkChecksumValidation): New function.
  11158. * src/Xml2MetalinkProcessor.cc
  11159. (getEntry): Get size and set it to entry.
  11160. Get chunk checksum and set it to entry.
  11161. (getPieceHash): New function.
  11162. * src/Util.cc
  11163. (sha1Sum): Removed ctx.digestFree()
  11164. (fileChecksum): Removed ctx.digestFree()
  11165. (indexRange): New function.
  11166. * src/Request.cc
  11167. (METHOD_GET): New variable.
  11168. (METHOD_HEAD): New variable.
  11169. (Request): Added method.
  11170. * src/UrlRequestInfo.cc
  11171. (FatalException.h): New include.
  11172. (message.h): New include.
  11173. (operator<<): Added operator<< for class HeadResult.
  11174. (getHeadResult): New function.
  11175. (execute): Get filename and size in separate download engine.
  11176. * src/ChunkChecksumValidator.cc: New class.
  11177. * src/DownloadCommand.cc:
  11178. (DownloadCommand): Added peerStat.
  11179. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  11180. the value from Option.
  11181. The buffer size is now 16KB.
  11182. Use peerStat member instead of getting it from SegmentMan.
  11183. Use startupIdleTime member instead of gettingit from Option.
  11184. Added chunk checksum validation.
  11185. * src/AbstractDiskWriter.cc
  11186. (AbstractDiskWriter): Removed ctx.
  11187. (~AbstractDiskWriter): Removed ctx.digestFree()
  11188. (writeDataInternal): Returns the return value of write.
  11189. (readDataInternal): Returns the return value of read.
  11190. (sha1Sum): Renamed as messageDigest
  11191. (messageDigest): New function.
  11192. * src/AbstractDiwkWriter.h
  11193. (messageDigest.h): Removed include.
  11194. (ctx): Removed.
  11195. (sha1Sum): Renamed as messageDigest
  11196. (messageDigest): New function.
  11197. * src/DefaultPieceStorage.h
  11198. (markAllPiecesDone): New function.
  11199. (checkIntegrity): New function.
  11200. * src/NullFileAllocationMonitor.h: New class.
  11201. * src/MetalinkChunkChecksum.h: New class.
  11202. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11203. To decrease CPU usage in bittorrent download, calculation results in
  11204. BitfieldMan were cached and realtime fetching PeerObject was removed
  11205. with WeakHandle introduced. Option values are set to the objects
  11206. by setter before download begins.
  11207. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  11208. * src/DefaultBtRequestFactory.h
  11209. (dispatcher): BtMessageDispatcherHandle ->
  11210. BtMessageDispatcherWeakHandle.
  11211. (messageFactory): New variable.
  11212. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  11213. BtMessageDispatcherWeakHandle.
  11214. (setBtMessageFactory): New function.
  11215. * src/DefaultBtMessageDispatcher.cc:
  11216. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  11217. from Option.
  11218. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  11219. feating the value from Option.
  11220. Use messageFactory member.
  11221. * src/PeerInteractionCommand.cc
  11222. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  11223. Add reverse dependencies to factory object.
  11224. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  11225. dispatcher.
  11226. Set messageFactory to receiver.
  11227. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  11228. btInteractive.
  11229. Set receiver to peerObject.
  11230. Set maxDownloadSpeedLimit to this.
  11231. (executeInternal): Use maxDownloadSpeedLimit member.
  11232. * src/BtChokeMessage.cc
  11233. (doReceivedAction): Use dispatcher, requestFactory member.
  11234. (onSendComplete): Use dispatcher member.
  11235. * src/PeerInteractionCommand.h
  11236. (maxDownloadSpeedLimit): New variable.
  11237. * src/DefaultBtMessageReceiver.h
  11238. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11239. (dispatcher):
  11240. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11241. (messageFactory): New variable.
  11242. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11243. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11244. (setDispatcher):
  11245. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11246. (setBtMessageFactory): New function.
  11247. * src/DefaultBtInteractive.cc
  11248. (initiateHandshake): Use messageFactory member.
  11249. (addBitfieldMessageToQueue): Use messageFactory member.
  11250. (addAllowedFastMessageToQueue): Use messageFactory member.
  11251. (decideChoking): Use messageFactory member.
  11252. (checkHave): Use messageFactory member.
  11253. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  11254. (receiveMessages): Use maxDownloadSpeedLimit member.
  11255. (decideInterest): Use messageFactory member.
  11256. * src/BtRequestMessage.cc
  11257. (doReceivedAction): Use messageFactory, dispatcher member.
  11258. (onQueued): Use dispatcher member.
  11259. * src/BtPieceMessage.cc
  11260. (doReceivedAction): Use dispatcher member.
  11261. (send): Use peerConnection member.
  11262. (onWrongPiece): Use requestFactory member.
  11263. (handleChokingEvent): Use messageFactory, dispatcher member.
  11264. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  11265. * src/BtMessageDispatcher.h
  11266. (BtMessageDispatcherWeakHandle): New type definition.
  11267. * src/SimpleBtMessage.cc
  11268. (send): Use peerConnection member.
  11269. * src/BtRejectMessage.cc
  11270. (doReceivedAction): Use dispatcher member.
  11271. * src/DefaultBtMessageDispatcher.h
  11272. (Option.h): Removed include.
  11273. (messageFactory): New variable.
  11274. (option): Removed.
  11275. (maxUploadSpeedLimit): New variable.
  11276. (requestTimeout): New variable.
  11277. (DefaultBtMessageDispatcher): Removed option.
  11278. Added maxUploadSpeedLimit, requestTimeout.
  11279. (setOption): Removed.
  11280. (getOption): Removed.
  11281. (setMaxUploadSpeedLimit): New function.
  11282. (setRequestTimeout): New function.
  11283. (setBtMessageFactory): New function.
  11284. * src/DefaultBtInteractive.h
  11285. (btMessageReceiver):
  11286. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11287. (dispatcher):
  11288. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11289. (btRequestFactory):
  11290. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11291. (peerConnection):
  11292. PeerConnectionHandle -> PeerConnectionWeakHandle
  11293. (messageFactory): New variable.
  11294. (option): Removed.
  11295. (keepAliveInterval): New variable.
  11296. (maxDownloadSpeedLimit): New variable.
  11297. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  11298. (setBtMessageReceiver):
  11299. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11300. (setDispatcher):
  11301. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11302. (setBtRequestFactory):
  11303. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11304. (setPeerConnection):
  11305. PeerConnectionHandle -> PeerConnectionWeakHandle
  11306. (setOption): Removed.
  11307. (setKeepAliveInterval): New function.
  11308. (setMaxDownloadSpeedLimit): New function.
  11309. (setBtMessageFactory): New function.
  11310. * src/BitfieldMan.h
  11311. (cachedNumMissingBlock): New variable.
  11312. (cachedNumFilteredBlock): New variable.
  11313. (cachedCompletedLength): New variable.
  11314. (cachedFilteredComletedLength): New variable.
  11315. (cachedFilteredTotalLength): New variable.
  11316. (countMissingBlockNow): New function.
  11317. (countFilteredBlockNow): New function.
  11318. (getFilteredTotalLengthNow): New function.
  11319. (getCompletedLengthNow): New function.
  11320. (getFilteredCompletedLengthNow): New function.
  11321. (updateCache): New function.
  11322. * src/AbstractBtMessage.h
  11323. (BtMessageDispatcher.h): New include.
  11324. (PeerConnection.h): New include.
  11325. (BtRequestFactory.h): New include
  11326. (BtMessageFactory.h): New include.
  11327. (dispatcher): New variable.
  11328. (messageFactory): New variable.
  11329. (peerConnection: New variable.
  11330. (setBtMessageDispatcher): New function.
  11331. (setPeerConnection): New function.
  11332. (setBtMessageFactory): New function.
  11333. (setBtRequestFactory): New function.
  11334. * src/DefaultBtMessageFactory.cc
  11335. (setCommonProperty): Set dispatcher, requestFactory, this,
  11336. peerConnection to msg.
  11337. * src/BtRegistry.h
  11338. (BT_MESSAGE_RECEIVER): New macro.
  11339. * src/PeerConnection.h
  11340. (PeerConnectionWeakHandle): New type definition.
  11341. * src/BtMessageFactory.h
  11342. (BtMessageFactoryWeakHandle): New type definition.
  11343. * src/BitfieldMan.cc
  11344. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  11345. cachedCompletedLength, cachedFilteredComletedLength,
  11346. cachedFilteredTotalLength.
  11347. Call updateCache().
  11348. (countMissingBlock): Return cachedNumMissingBlock.
  11349. (countMissingBlockNow): New function.
  11350. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  11351. (countFilteredBlockNow): New function.
  11352. (setBit): Call updateCache().
  11353. (unsetBit): Call updateCache().
  11354. (setBitfield): Call updateCache().
  11355. (clearAllBit): Call updateCache().
  11356. (setAllBit): Use setBitInternal instead of setBit.
  11357. Call updateCache().
  11358. (addFilter): Call updateCache().
  11359. (enableFilter): Call updateCache().
  11360. (disableFilter): Call updateCache().
  11361. (clearFilter): Call updateCache().
  11362. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  11363. (getFilteredTotalLengthNow): New function.
  11364. (getCompletedLength): Return cachedCompletedLength.
  11365. (getCompletedLengthNow): New function.
  11366. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  11367. (getFilteredCompletedLengthNow): New function.
  11368. (updateCache): New function.
  11369. * src/BtMessageReceiver.h
  11370. (BtMessageReceiverWeakHandle): New type definition.
  11371. * src/DefaultBtMessageReceiver.cc
  11372. (receiveHandshake): Use messageFactory member.
  11373. (sendHandshake): Use messageFactory member.
  11374. (receiveMessage): Use messageFactory member.
  11375. * src/DefaultBtMessageFactory.h
  11376. (dispatcher): New variable.
  11377. (requestFactory): New variable.
  11378. (peerConnection): New variablle.
  11379. (setBtMessageDispatcher): New function.
  11380. (setBtRequestFactory): New function.
  11381. (setPeerConnection): New function.
  11382. * src/SharedHandle.h
  11383. (RefCount): New class.
  11384. (WeakHandle): New class.
  11385. * src/PeerObject.h
  11386. (BtMessageReceiver.h): New include.
  11387. (PeerObject): Added btMessageReceiver.
  11388. (btMessageReceiver): New variable.
  11389. * src/Util.cc
  11390. (countBit): Simplified.
  11391. * src/BtCancelMessage.cc
  11392. (doReceivedAction): Use dispatcher member.
  11393. * src/BtRequestFactory.h
  11394. (BtRequestFactoryWeakHandle): New type definition.
  11395. * src/PeerStorage.h
  11396. (downloadSpeed): int -> uint32_t
  11397. (uploadSpeed): int -> uint32_t
  11398. (sessionDownloadLength): long long int -> uint64_t
  11399. (sessionUploadLength): long long int -> uint64_t
  11400. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11401. To add RecoverableException, FatalException:
  11402. * src/AbstractCommand.cc
  11403. (onAbort): Exception -> RecoverableException
  11404. * src/PeerAbstractCommand.h
  11405. (RecoverableException.h): New include.
  11406. (onAbort): Exception -> RecoverableException.
  11407. * src/PeerInteractionCommand.cc
  11408. (onAbort): Exception -> RecoverableException.
  11409. * src/PeerAbstractCommand.cc
  11410. (execute): Exception -> RecoverableException.
  11411. (onAbort): Exception -> RecoverableException.
  11412. * src/TorrentRequestInfo.cc
  11413. (execute): Exception -> RecoverableException.
  11414. * src/MetalinkRequestInfo.cc
  11415. (execute): Exception -> RecoverableException.
  11416. * src/MetaFileUtil.cc: RecoverableException.
  11417. * src/AbstractCommand.h
  11418. (onAbort): Exception -> RecoverableException.
  11419. * src/DlRetryEx.h: Exception -> RecoverableException.
  11420. * src/DlAbortEx.h: Exception -> RecoverableException.
  11421. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  11422. * src/Util.cc: Exception -> RecoverableException.
  11423. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  11424. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  11425. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  11426. To make ID static const int
  11427. * src/BtInterestedMessage.h
  11428. (ID_t): Removed.
  11429. (ID): New variable.
  11430. (getId): Made non-const.
  11431. * src/BtPieceMessage.h
  11432. (ID_t): Removed.
  11433. (ID): New variable.
  11434. (getId): Made non-const.
  11435. * src/BtChokeMessage.h
  11436. (ID_t): Removed.
  11437. (ID): New variable.
  11438. (getId): Made non-const.
  11439. * src/BtHaveAllMessage.h
  11440. (ID_t): Removed.
  11441. (ID): New variable.
  11442. (getId): Made non-const.
  11443. * src/BtKeepAliveMessage.h
  11444. (ID_t): Removed.
  11445. (ID): New variable.
  11446. (getId): Made non-const.
  11447. * src/BtHandshakeMessage.h
  11448. (ID): New variable.
  11449. (getId): Made non-const.
  11450. * src/BtSuggestPieceMessage.h
  11451. (ID_t): Removed.
  11452. (ID): New variable.
  11453. (getId): Made non-const.
  11454. * src/BtPortMessage.h
  11455. (ID_t): Removed.
  11456. (ID): New variable.
  11457. (getId): Made non-const.
  11458. * src/AbstractBtMessage.h
  11459. (id): Removed.
  11460. (AbstractBtMessage): Removed id.
  11461. (getId): Removed.
  11462. * src/BtHaveMessage.h
  11463. (ID_t): Removed.
  11464. (ID): New variable.
  11465. (getId): Made non-const.
  11466. * src/BtAllowedFastMessage.h
  11467. (ID_t): Removed.
  11468. (ID): New variable.
  11469. (getId): Made non-const.
  11470. * src/BtCancelMessage.h
  11471. (ID_t): Removed.
  11472. (ID): New variable.
  11473. (getId): Made non-const.
  11474. * src/BtNotInterestedMessage.h
  11475. (ID_t): Removed.
  11476. (ID): New variable.
  11477. (getId): Made non-const.
  11478. * src/BtChokeMessage.h
  11479. (ID_t): Removed.
  11480. (ID): New variable.
  11481. (getId): Made non-const.
  11482. * src/BtRejectMessage.h
  11483. (ID_t): Removed.
  11484. (ID): New variable.
  11485. (getId): Made non-const.
  11486. * src/BtBitfieldMessage.h
  11487. (ID_t): Removed.
  11488. (ID): New variable.
  11489. (getId): Made non-const.
  11490. * src/BtUnchokeMessage.h
  11491. (ID_t): Removed.
  11492. (ID): New variable.
  11493. (getId): Made non-const.
  11494. * src/BtRequestMessage.h
  11495. (ID_t): Removed.
  11496. (ID): New variable.
  11497. (getId): Made non-const.
  11498. * src/BtHaveMessage.h
  11499. (ID_t): Removed.
  11500. (ID): New variable.
  11501. (getId): Made non-const.
  11502. To add --force-truncate command-line option and a check whether
  11503. the file already exists:
  11504. * src/DirectDiskAdaptor.h
  11505. (getFilePath): Made virtual public.
  11506. * src/MultiDiskAdaptor.h
  11507. (File.h): New include.
  11508. (DiskWriterEntry::fileEntry): Made private.
  11509. (DiskWriterEntry::fileExists): New function.
  11510. (DiskWriterEntry::getFileEntry): New function.
  11511. (fileExists): New function.
  11512. (getFilePath): New function.
  11513. * src/TorrentRequestInfo.cc
  11514. (FatalException.h): New include.
  11515. (message.h): New include.
  11516. (RecoverableException.h): New include.
  11517. (execute): Added a check whether file is already exists or not.
  11518. * src/DiskAdaptor.h
  11519. (fileExists): New function.
  11520. (getFilePath): New function.
  11521. * src/main.cc
  11522. (showUsage): Added an explanation of --force-truncate command-line
  11523. option.
  11524. (main): Added --force-truncate command-line option.
  11525. * src/Exception.h
  11526. (setMsg): buf[256] -> buf[1024]
  11527. * src/CopyDiskWriter.h
  11528. (getFilePath): Made public virtual.
  11529. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  11530. (fileExists): New function.
  11531. * src/DownloadEngineFactory.cc
  11532. (newTorrentConsoleEngine): Don't open file here.
  11533. * src/message.h
  11534. (EX_FILE_ALREADY_EXISTS): New definition.
  11535. * src/prefs.h
  11536. (PREF_FOECE_TRUNCATE): New definition.
  11537. * src/HttpResponseCommand.cc
  11538. (handleDefaultEncoding): Added a check whether the file already exists.
  11539. * src/SegmentMan.h
  11540. (fileExists): New function.
  11541. (shouldCancelDownloadForSafety): New function.
  11542. * src/FtpNegotiateCommand.cc
  11543. (recvSize): Added a check whether the file already exists.
  11544. * src/AbstractSingleDiskAdaptor.cc
  11545. (File.h): New include.
  11546. (fileExists): New function.
  11547. * src/AbstractSingleDiskAdaptor.h
  11548. (getFilePath): Removed.
  11549. (fileExists): New function.
  11550. * src/SegmentMan.cc
  11551. (fileExists): New function.
  11552. (shouldCancelDownloadForSafety): New function.
  11553. To fix regression bug in torrent downloading:
  11554. * src/DefaultBtRequestFactory.cc
  11555. (doChokedAction): New function.
  11556. * src/DefaultBtRequestFactory.h
  11557. (doChokedAction): New function.
  11558. * src/DefaultBtMessageDispatcher.cc
  11559. (doChokedAction): Do not delete request if its target is in allowed
  11560. fast set.
  11561. * src/DefaultBtInteractive.cc
  11562. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  11563. (sendKeepAlive): Send keep alive message even if the outgoing message
  11564. queue is not empty.
  11565. (decideInterest): Simplified the code.
  11566. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  11567. it is already called when BtChokeMessage is received from a peer.
  11568. * src/BtRequestFactory.h
  11569. (doChokedAction): New function.
  11570. To clean up code:
  11571. * src/PeerInteractionCommand.h
  11572. (executeInternal): Added virtual keyword explicitly.
  11573. (prepareForRetry): Added virtual keyword explicitly.
  11574. (prepareForNextPeer): Added virtual keyword explicitly.
  11575. (onAbort): Added virtual keyword explicitly.
  11576. * src/RequestSlot.cc
  11577. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  11578. * src/BtPieceMessage.cc
  11579. (doReceivedAction): Added a debug log of piece's bitfield.
  11580. * src/Piece.h
  11581. (getBitfieldLength): New function.
  11582. * src/ByteArrayDiskWriter.cc
  11583. (clear): Added buf = 0 to avoid double free corruption.
  11584. * src/FileAllocator.cc
  11585. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  11586. Added cp.reset().
  11587. * src/BitfieldMan.h
  11588. (operator=): Rewritten.
  11589. * src/BitfieldMan.cc
  11590. (BitfieldMan): Initialized bitfield, useBitfield.
  11591. * src/PeerConnection.cc
  11592. (receiveMessage): Added a call to socket->readable() after getting
  11593. message length to avoid possible EOF.
  11594. * src/Util.cc
  11595. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  11596. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11597. To add an ability to pre-allocate file space:
  11598. * src/DirectDiskAdaptor.h: Rewritten.
  11599. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  11600. * src/MultiDiskAdaptor.h: Rewritten.
  11601. * src/DefaultPieceStorage.cc
  11602. (MultiDiskWriter.h): Removed include.
  11603. (PreAllocationDiskWriter.h): Removed include.
  11604. (FileAllocationMonitor.h): New include.
  11605. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  11606. (initStorage): Rewritten.
  11607. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11608. * src/FileAllocator.h: New class.
  11609. * src/FileAllocator.cc: New class.
  11610. * src/FileAllocationMonitor.h: New class.
  11611. * src/FileAllocationMonitor.cc: New class.
  11612. * src/ConsoleFileAllocationMonitor.h: New class.
  11613. * src/ConsoleFileAllocationMonitor.cc: New class.
  11614. * src/AbstractSingleDiskAdaptor.h: New class.
  11615. * src/AbstractSingleDiskAdaptor.cc: New class.
  11616. * src/DiskAdaptor.h
  11617. (Directory.h): Removed include.
  11618. (DiskWriter.h): Removed include.
  11619. (FileEntry.h): Removed include.
  11620. (diskWriter): Removed.
  11621. (DiskAdaptor): Removed diskWriter.
  11622. (openFile): Made pure virtual.
  11623. (closeFile): Made pure virtual.
  11624. (openExistingFile): Made pure virtual.
  11625. (initAndOpenFile): Made pure virtual.
  11626. (writeData): Made pure virtual.
  11627. (readData): Made pure virtual.
  11628. (sha1Sum): Made pure virtual.
  11629. (getStoreDir): Returns const reference of storeDir.
  11630. (DiskAdaptorHandle): New type definition.
  11631. * src/main.cc
  11632. (ConsoleFileAllocationMonitor.h): New include.
  11633. (showUsage): Added default value description of -s option.
  11634. Added the description of --file-allocation option.
  11635. (main): Set default value of --file-allocation option to 'none'.
  11636. Added --file-allocation command-line option.
  11637. Setup FileAllocationMonitorFactory.
  11638. * src/FtpInitiateConnectionCommand.cc
  11639. (executeInternal): Removed diskWriter related processing, which was
  11640. moved to FtpNegotiationCommand.cc.
  11641. * src/DirectDiskAdaptor.cc
  11642. (getFilePath): Made non-const.
  11643. * src/CopyDiskAdaptor.h
  11644. (DiskAdaptor.h): Removed include.
  11645. (DiskWriter.h): Removed include.
  11646. (AbstractSingleDiskAdaptor.h): New include.
  11647. (getFilePath): Made non-const. Added virtual keyword.
  11648. (CopyDiskAdaptor): Removed diskWriter.
  11649. (getTempFile): Returns const reference.
  11650. (CopyDiskAdaptorHandle): New type definition.
  11651. * src/ByteArrayDiskWriter.cc
  11652. (clear): Simplified.
  11653. (initAndOpenFile): Rewritten.
  11654. (openFile): Call initAndOpenFile()
  11655. * src/MultiDiskAdaptor.cc: Rewritten.
  11656. * src/DownloadEngineFactory.cc
  11657. (FileAllocator.h): New include.
  11658. (FileAllocationMonitor.h): New include.
  11659. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  11660. create DefaultDiskWriter with file allocator.
  11661. * src/DiskWriter.h
  11662. (initAndOpenFile): Added totalLength argument.
  11663. (openFile): Added totalLength argument.
  11664. * src/prefs.h
  11665. (PREF_FILE_ALLOCATION): New definition.
  11666. (V_PREALLOC): New definition.
  11667. (V_NONE): New definition.
  11668. * src/HttpResponseCommand.cc
  11669. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  11670. size.
  11671. * src/FtpNegotiateCommand.cc
  11672. (Util.h): New include.
  11673. (recvSize): Open file here.
  11674. * src/Util.h
  11675. (ullitos): New function.
  11676. * src/CopyDiskWriter.h
  11677. (getFilePath): Made non-const.
  11678. * src/DefaultDiskWriter.h
  11679. (Option.h): New include.
  11680. (totalLength): Removed.
  11681. (DefaultDiskWriter): Removed totalLength.
  11682. (initAndOpenFile): Added totalLength argument.
  11683. (DefaultDiskWriterHandle): New type definition.
  11684. (createNewDiskWriter): New function.
  11685. * src/Util.cc
  11686. (ullitos): New function.
  11687. * src/DefaultDiskWriter.cc
  11688. (message.h): New include.
  11689. (FileAllocator.h): New include.
  11690. (prefs.h): New include.
  11691. (Util.h): New include.
  11692. (DefaultDiskWriter): Removed totalLength.
  11693. (initAndOpenFile): Added file allocation.
  11694. (createNewDiskWriter): New function. Just for temporary solution.
  11695. It will be rewritten later.
  11696. * src/DiskAdaptor.cc
  11697. (DiskAdaptor): Removed diskWriter.
  11698. * src/AbstractDiskWriter.cc
  11699. (LogFactory.h): New include.
  11700. (AbstractDiskWriter): Added fileAllocator, logger.
  11701. (openFile): Added totalLength argument.
  11702. * src/AbstractDiskWriter.h
  11703. (FileAllocator.h): New include.
  11704. (Logger.h): New include.
  11705. (fileAllocator): New variable.
  11706. (logger): New variable.
  11707. (openFile): Added totalLength argument. Added virtual keyword
  11708. explicitly.
  11709. (openExistingFile): Added totalLength argument. Added virtual keyword
  11710. explicitly.
  11711. (closeFile): Added virtual keyword explicitly.
  11712. (sha1Sum): Added virtual keyword explicitly.
  11713. (writeData): Added virtual keyword explicitly.
  11714. (readData): Added virtual keyword explicitly.
  11715. (setFileAllocator): New function.
  11716. * src/DefaultPieceStorage.h
  11717. (FileAllocator.h): New include.
  11718. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11719. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11720. * src/FileProgressMonitor.h: New class.
  11721. To compile aria2 on PC-BSD:
  11722. * src/DefaultBtContext.cc
  11723. (libgen.h): New include.
  11724. To fix memory leak:
  11725. * src/Exception.h
  11726. (~Exception): Delete cause. Fixed memory leak.
  11727. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11728. Rewritten a portion of bittorrent implementation:
  11729. * src/BtMessageValidator.h: New class.
  11730. * src/BtBitfieldMessageValidator.h: New class.
  11731. * src/BtHandshakeMessageValidator.h: New class.
  11732. * src/BtRequestMessageValidator.h: New class.
  11733. * src/BtSuggestPieceMessageValidator.h: New class.
  11734. * src/BtAllowedFastMessageValidator.h: New class.
  11735. * src/BtRejectMessageValidator.h: New class.
  11736. * src/BtCancelMessageValidator.h: New class.
  11737. * src/BtPieceMessageValidator.h: New class.
  11738. * src/BtHaveMessageValidator.h: New class.
  11739. * src/BtEventListener.h: New class.
  11740. * src/AbstractBtEventListener.h: New class.
  11741. * src/BtEvent.h: New class.
  11742. * src/BtChokingEvent.h: New class.
  11743. * src/BtChokedEvent.h: New class.
  11744. * src/BtCancelSendingPieceEvent.h: New class.
  11745. * src/BtAbortOutstandingRequestEvent.h: New class.
  11746. * src/Randomizer.h: New class.
  11747. * src/SimpleRandomizer.h: New class.
  11748. * src/BtMessage.h: New class.
  11749. * src/AbstractBtMessage.h: New class.
  11750. * src/SimpleBtMessage.h: New class.
  11751. * src/BtHaveMessage.h: New class.
  11752. * src/BtInterestedMessage.h: New class.
  11753. * src/BtAllowedFastMessage.h: New class.
  11754. * src/BtUnchokeMessage.h: New class.
  11755. * src/BtCancelMessage.h: New class.
  11756. * src/BtNotInterestedMessage.h: New class.
  11757. * src/BtChokeMessage.h: New class.
  11758. * src/BtHaveNoneMessage.h: New class.
  11759. * src/BtHandshakeMessage.h: New class.
  11760. * src/BtSuggestPieceMessage.h: New class.
  11761. * src/BtHaveMessage.h: New class.
  11762. * src/BtPieceMessage.h: New class.
  11763. * src/BtHaveAllMessage.h: New class.
  11764. * src/BtKeepAliveMessage.h: New class.
  11765. * src/BtPortMessage.h: New class.
  11766. * src/BtRejectMessage.h: New class.
  11767. * src/BtBitfieldMessage.h: New class.
  11768. * src/BtRequestMessage.h: New class.
  11769. * src/DefaultBtRequestFactory.h: New class.
  11770. * src/DefaultBtMessageReceiver.h: New class.
  11771. * src/BtInteractive.h: New class.
  11772. * src/BtMessageDispatcher.h: New class.
  11773. * src/DefaultBtMessageDispatcher.h: New class.
  11774. * src/DefaultBtInteractive.h: New class.
  11775. * src/BitfieldManFactory.h: New class.
  11776. * src/HandleRegistry.h: New class.
  11777. * src/BtMessageFactory.h: New class.
  11778. * src/BtMessageReceiver.h: New class.
  11779. * src/DefaultBtMessageFactory.h: New class.
  11780. * src/PeerObject.h: New class.
  11781. * src/BtRequestFactory.h: New class.
  11782. * src/SuggestPieceMessage.h: Removed.
  11783. * src/PortMessage.h: Removed.
  11784. * src/SuggestPieceMessage.h: Removed.
  11785. * src/KeepAliveMessage.h: Removed.
  11786. * src/HandshakeMessage.h: Removed.
  11787. * src/PeerInteraction.h: Removed.
  11788. * src/UnchokeMessage.h: Removed.
  11789. * src/PieceMessage.h: Removed.
  11790. * src/RequestMessage.h: Removed.
  11791. * src/InterestedMessage.h: Removed.
  11792. * src/HaveMessage.h: Removed.
  11793. * src/CancelMessage.h: Removed.
  11794. * src/RejectMessage.h: Removed.
  11795. * src/AllowedFastMessage.h: Removed.
  11796. * src/HaveNoneMessage.h: Removed.
  11797. * src/SimplePeerMessage.h: Removed.
  11798. * src/HaveAllMessage.h: Removed.
  11799. * src/BitfieldMessage.h: Removed.
  11800. * src/PeerMessageFactory.h: Removed.
  11801. * src/NotInterestedMessage.h: Removed.
  11802. * src/ChokeMessage.h: Removed.
  11803. * src/PeerMessage.h: Removed.
  11804. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11805. To know root cause of exception:
  11806. * src/Exception.h
  11807. (cause): New variable.
  11808. (Exception): Added a parameter.
  11809. (getMsg): Return const reference to msg.
  11810. (getCause): New function.
  11811. * src/DlRetryEx.h
  11812. (DlRetryEx): Added a parameter 'cause'.
  11813. Added an overloaded constructor.
  11814. (DlAbortEx): Added a parameter 'cause'.
  11815. Added an overloaded constructor.
  11816. * src/SimpleLogger.cc
  11817. (writeLog): Log nested exception messages recursively.
  11818. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11819. * src/DefaultBtProgressInfoFile.cc
  11820. (load): Fixed memory leak when the infohash doesn't match.
  11821. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11822. * src/DefaultPeerStorage.cc
  11823. (calculateStat): Simplified the code by combining 2 loops into 1.
  11824. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11825. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  11826. for BitTorrent download:
  11827. * src/PeerAbstractCommand.cc
  11828. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  11829. * src/main.cc:
  11830. (timeoutSpecified): Removed.
  11831. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  11832. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  11833. * src/TorrentRequestInfo.cc
  11834. (timeoutSpecified): Removed.
  11835. (torrentHandler): Removed timeoutSpecified and the adjustment of
  11836. timeout value.
  11837. * src/prefs.h
  11838. (PREF_BT_TIMEOUT): New definition.
  11839. Delete unused variables:
  11840. * src/TorrentRequestInfo.cc
  11841. (requestInfo): Removed.
  11842. Move setSignalHander to Util::setGlobalSignalHandler:
  11843. * src/TorrentRequestInfo.cc:
  11844. setSignalHander -> Util::setGlobalSignalHandler
  11845. * src/main.cc
  11846. (setSignalHander): Removed.
  11847. (main): setSignalHander -> Util::setGlobalSignalHandler
  11848. * src/Util.h
  11849. (setGlobalSignalHandler): New function.
  11850. * src/Util.cc
  11851. (setGlobalSignalHandler): New function.
  11852. * src/UrlRequestInfo.cc:
  11853. setSignalHander -> Util::setGlobalSignalHandler
  11854. Reset peer status in order to exit gracefully:
  11855. * src/PeerAbstractCommand.cc
  11856. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  11857. To fix the bug that causes the number of bytes uploaded is not saved
  11858. to .aria2 file:
  11859. * src/DefaultPeerStorage.h
  11860. (removedPeerSessionDownloadLength): New variable.
  11861. (removedPeerSessionUploadLength): New variable.
  11862. * src/DefaultPeerStorage.cc
  11863. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  11864. removedPeerSessionUploadLength(0).
  11865. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  11866. through all peers, and then add removedPeerSessionDownloadLength(
  11867. removedPeerSessionUploadLength) to it.
  11868. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  11869. (to) the peer to removedPeerSessionDownloadLength
  11870. (removedPeerSessionUploadLength).
  11871. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11872. To add Metalink location option:
  11873. * src/MetalinkRequestInfo.cc
  11874. (execute): Call MetalinkEntry::setLocationPreference()
  11875. * src/main.cc
  11876. (showUsage): Added the help message for --metalink-location option.
  11877. (main): Added --metalink-location option.
  11878. * src/prefs.h
  11879. (PREF_METALINK_LOCATION): New definition.
  11880. * src/MetalinkEntry.cc
  11881. (AddLocationPreference): New function object.
  11882. (setLocationPreference): New function.
  11883. * src/Xml2MetalinkProcessor.cc
  11884. (getResource): Set location attribute to MetalinkResource
  11885. To show URLs to download
  11886. * src/UrlRequestInfo.h
  11887. (printUrls): New function.
  11888. To add multiple <file> Metalink support:
  11889. * src/MetalinkEntry.h
  11890. (MetalinkResources): Removed.
  11891. (setLocationPreference): New function.
  11892. (MetalinkEntryHandle): New type definition.
  11893. (MetalinkEntries): New type definition.
  11894. * src/Xml2MetalinkProcessor.h
  11895. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  11896. (getResource): MetalinkResource* -> MetalinkResourceHandle
  11897. (parseFile): Metalinker* -> MetalinkerHandle
  11898. * src/UrlRequestInfo.h
  11899. (execute): RequestInfo* -> RequestInfos
  11900. * src/MetalinkRequestInfo.cc
  11901. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  11902. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  11903. (execute): RequestInfo* -> RequestInfos
  11904. Added multiple <file> support. Print filename when it is queued.
  11905. * src/MetalinkRequestInfo.h
  11906. (execute): RequestInfo* -> RequestInfos
  11907. (getDownloadEngine): Removed.
  11908. * src/RequestInfo.h
  11909. (RequestInfoHandle): New type definition.
  11910. (RequestInfos): New type definition.
  11911. (execute): RequestInfo* -> RequestInfos
  11912. (getDownloadEngine): Removed.
  11913. * src/MetalinkResource.h
  11914. (MetalinkResourceHandle): New type definition.
  11915. (MetalinkResources): New type definition.
  11916. * src/MetalinkEntry.cc
  11917. (~MetalinkEntry): Removed the deletion of the elements of resources,
  11918. because the element is now of type MetalinkResourceHandle.
  11919. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  11920. (Supported): MetalinkResource* -> MetalinkResourceHandle
  11921. (dropUnsupportedResource): Removed the deletion of the elements of
  11922. resources because the element is now of type MetalinkResourceHandle.
  11923. * src/Xml2MetalinkProcessor.cc
  11924. (parseFile): Metalinker* -> MetalinkerHandle
  11925. MetalinkEntry* -> MetalinkEntryHandle
  11926. Removed try-catch block.
  11927. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  11928. MetalinkResource* -> MetalinkResourceHandle
  11929. Removed try-catch block.
  11930. (getResource): MetalinkResource* -> MetalinkResourceHandle
  11931. Free result by using xmlXPathFreeObject()
  11932. * src/Metalinker.cc
  11933. (~Metalinker): Removed the deletion of entries.
  11934. MetalinkEntry* -> MetalinkEntryHandle
  11935. (queryEntry): Add multiple <file> Metalink support.
  11936. * src/Metalinker.h
  11937. (MetalinkEntries): Removed.
  11938. (queryEntry): MetalinkEntry* -> MetalinkEntries
  11939. * src/MetalinkProcessor.h
  11940. (parseFile): Metalinker* -> MetalinkerHandle
  11941. Bug fixes:
  11942. * src/PeerChokeCommand.cc
  11943. (execute): cat01->cat02
  11944. * src/DefaultPieceStorage.cc
  11945. (DefaultPieceStorage): Added diskAdaptor(0)
  11946. * src/TrackerWatcherComand.cc:
  11947. (execute): Use btAnnounce->noMoreAnnounce()
  11948. to determin whether the function returns true or not.
  11949. * src/TrackerUpdateCommand.cc:
  11950. (execute): Use btAnnounce->noMoreAnnounce()
  11951. to determin whether the function returns true or not.
  11952. * src/FtpConnection.cc
  11953. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  11954. This is the fix of the busy loop bug.
  11955. * src/DownloadCommand.cc
  11956. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  11957. cached PeerStat.
  11958. The value of "name" entry in torrent file is now set by
  11959. *DiskAdaptor::setTopDir(...) methods.
  11960. * src/MultiDiskAdaptor.h
  11961. (topDir): New variable.
  11962. (setTopDir): New function.
  11963. (getTopDir): New function.
  11964. * src/MultiDiskAdaptor.cc
  11965. (getFilePath): Concat storDir, "/" and topDir.
  11966. (mkdir): Use getFilePath() to get the directory path for output.
  11967. * src/DefaultPieceStorage.cc
  11968. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  11969. CopyDiskAdaptor.
  11970. * src/CopyDiskAdaptor.h
  11971. (topDir): New variable.
  11972. (setTopDir): New function.
  11973. (getTopDir): New function.
  11974. * src/CopyDiskAdaptor.cc
  11975. (fixFilename): Updated.
  11976. Misc
  11977. * src/UrlRequestInfo.h
  11978. (e): Removed.
  11979. (UrlRequestInfo): Removed e.
  11980. (getDownloadEngine): Removed.
  11981. * src/UrlRequestInfo.cc
  11982. (handler): Rewritten.
  11983. (printUrls): New function.
  11984. (execute): Call printUrls().
  11985. * src/HandshakeMessage.cc
  11986. (check): peerinteraction->getBtContext() -> btContext
  11987. * src/PeerInteraction.h
  11988. (getBtContext): Removed.
  11989. * src/TorrentRequestInfo.h
  11990. (execute): RequestInfo* -> RequestInfos
  11991. (getDownloadEngine): Removed.
  11992. * src/TorrentRequestInfo.cc
  11993. (haltRequested): Removed.
  11994. (btHaltRequested): New variable.
  11995. (torrentHandler): haltRequested -> btHaltRequested
  11996. (execute): RequestInfo* -> RequestInfos
  11997. * src/TorrentConsoleDownloadEngine.cc
  11998. (afterEachIteration): haltRequested -> btHaltRequested.
  11999. * src/ConsoleDownloadEngine.h
  12000. (initStatistics): Added virtual.
  12001. (calculateStatistics): Added virtual.
  12002. (onEndOfRun): Added virtual.
  12003. (afterEachIteration): Added virtual.
  12004. * src/ConsoleDownloadEngine.cc
  12005. (haltRequested): New variable.
  12006. (afterEachIteration): New function.
  12007. * src/main.cc
  12008. (requestInfo): Removed.
  12009. * src/SegmentMan.cc
  12010. (findSlowerSegmentEntry): Refactored.
  12011. * Release 0.9.0
  12012. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12013. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  12014. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  12015. * src/TorrentMan.h: Removed.
  12016. * src/TorrentMan.cc: Removed.
  12017. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  12018. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  12019. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  12020. * src/PeerAbstractCommand.cc: Use btRuntime.
  12021. * src/BtContextAwareCommand.h: New class.
  12022. * src/FileEntry.h: Added accessor methods for following variables.
  12023. (path): Made private.
  12024. (length): Made private.
  12025. (offset): Made private.
  12026. (extracted): Made private.
  12027. (requested): Made private.
  12028. (FileEntries): New definition.
  12029. (FileEntryHandle): New definition.
  12030. * src/FileEntry.cc: New file.
  12031. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  12032. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  12033. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  12034. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  12035. * src/PieceStorage.h: New file.
  12036. * src/PeerInteractionCommand.h: Use btContext.
  12037. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  12038. btRuntime.
  12039. * src/DefaultBtProgressInfoFile.h: New file.
  12040. * src/DefaultBtProgressInfoFile.cc: New file.
  12041. * src/File.cc
  12042. (Util.h): New include.
  12043. (mkdirs): New function.
  12044. * src/MultiDiskAdaptor.h
  12045. (mkdir): New function.
  12046. * src/PeerListProcessor.h
  12047. (Peers): Removed.
  12048. * src/PeerInteraction.h
  12049. (torrentMan): Removed.
  12050. (btContext): New variable.
  12051. (peerStorage): New variable.
  12052. (pieceStorage): New variable.
  12053. (btAnnounce): New variable.
  12054. (getTorrentMan): Removed.
  12055. (getBtContext): New function.
  12056. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  12057. btAnnounce.
  12058. * src/HandshakeMessage.h
  12059. (TorrentMan.h): Removed.
  12060. * src/HandshakeMessage.cc: Use btContext.
  12061. * src/DefaultBtAnnounce.cc: New file.
  12062. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  12063. * src/DefaultPieceStorage.cc: New file.
  12064. * src/DefaultBtContext.h: New file.
  12065. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  12066. Use the accessor methods of FileEntry.
  12067. * src/CookieBox.cc: Updated to use Util::slice().
  12068. * src/PieceMessage.cc: Use btContext, pieceStorage.
  12069. * src/common.h (SharedHandle.h): New include.
  12070. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  12071. pieceStorage.
  12072. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  12073. * src/DiskAdaptor.h
  12074. (topDir): Removed.
  12075. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  12076. (setTopDir): Removed.
  12077. (getTopDir): Removed.
  12078. * src/BtContext.h: New file.
  12079. * src/DefaultPeerStorage.h: New file.
  12080. * src/PieceMessage.h (TorrentMan.h): Removed.
  12081. * src/RequestMessage.h (TorrentMan.h): Removed.
  12082. * src/TorrentDownloadEngine.h
  12083. (uploadLength): New variable.
  12084. (btContext): New variable.
  12085. (btRuntime): New variable.
  12086. (pieceStorage): New variable.
  12087. (peerStorage): New variable.
  12088. (btAnnounce): New variable.
  12089. (btProgressInfoFile): New variable.
  12090. (torrentMan): Removed.
  12091. (setBtContext): New function.
  12092. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  12093. peerStorage, btAnnounce, btProgressInfoFile.
  12094. * src/Piece.h
  12095. (toString): New function.
  12096. (Pieces): New type definition.
  12097. * src/Peer.h
  12098. (active): New variable.
  12099. (Peer): Added active.
  12100. (activate): Set active to true.
  12101. (deactivate): Set active to false.
  12102. (isActive): New function.
  12103. (Peers): New type definition.
  12104. * src/DirectDiskAdaptor.cc
  12105. (getFilePath): Use the accessor methods of FileEntry.
  12106. * src/TorrentConsoleDownloadEngine.h
  12107. (afterEachIteration): New function.
  12108. * src/TorrentConsoleDownloadEngine.cc
  12109. (haltRequested): New variable.
  12110. (sendStatistics): Use pieceStorage, btRuntime.
  12111. (afterEachIteration): New function.
  12112. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  12113. * src/Directry.h
  12114. (Directory): New function.
  12115. (DirectoryHandle): New type definition.
  12116. * src/BtProgressInfoFile.h: New file.
  12117. * src/RequestMessage.cc: Use pieceStorage.
  12118. * src/BtRuntime.h: New file.
  12119. * src/DefaultBtContext.cc: New file.
  12120. * src/BitfieldMan.h
  12121. (getCompletedLength): New function(private).
  12122. (getCompletedLength): New function.
  12123. (getFilteredCompletedLength): New function.
  12124. * src/BitfieldMan.h
  12125. (getCompletedLength): New function(private).
  12126. (getCompletedLength): New function.
  12127. (getFilteredCompletedLength): New function.
  12128. * src/MultiDiskAdaptor.cc
  12129. (mkdir): New function.
  12130. (openFile): Call mkdir().
  12131. (initAndOpenFile): Call mkdir().
  12132. * src/CancelMessage.h
  12133. (TorrentMan.h): Removed.
  12134. * src/RejectMessage.h
  12135. (TorrentMan.h): Removed.
  12136. * src/DownloadEngineFactory.cc
  12137. (DefaultPieceStorage.h): New include.
  12138. (DefaultPeerStorage.h): New include.
  12139. (DefaultBtAnnounce.h): New include.
  12140. (DefaultBtProgressInfoFile.h): New include.
  12141. (newTorrentConsoleEngine): Rewritten.
  12142. * src/ShareRatioSeedCriteria.h
  12143. (torrentMan): Removed.
  12144. (btContext): New variable.
  12145. (peerStorage): New variable.
  12146. (btRuntime): New variable.
  12147. (evaluate): Use btContext, btRuntime, peerStorage.
  12148. * src/AnnounceTier.h: New file.
  12149. * src/BtAnnounce.h: New file.
  12150. * src/BtRegistry.h: New file.
  12151. * src/PeerInitiateConnectionCommand.h: Added btContext.
  12152. * src/PeerConnection.h (TorrentMan.h): Removed.
  12153. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  12154. * src/Util.h
  12155. (slice): Added an argument.
  12156. * src/Util.cc
  12157. (slice): Added an argument to control whether trim is made or not.
  12158. * src/PeerStorage.h: New file.
  12159. * src/BtRegistry.cc: New file.
  12160. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  12161. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  12162. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  12163. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  12164. * src/TorrentRequestInfo.h
  12165. (e): Removed.
  12166. (showFileEntry): Added an argument.
  12167. (getDownloadEngine): Return 0.
  12168. * src/DefaultBtAnnounce.h: New file.
  12169. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  12170. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  12171. * src/PeerMessageFactory.h
  12172. (btContext): New variable.
  12173. (pieceStorage): New variable.
  12174. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  12175. btAnnounce.
  12176. * src/DiskAdaptor.cc
  12177. (DiskAdaptor): Removed topDir.
  12178. (~DiskAdaptor): Removed topDir.
  12179. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  12180. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  12181. * src/File.h (mkdirs): New function.
  12182. * src/DefaultPeerStorage): New file.
  12183. * src/DownloadEngineFactory.h
  12184. (newTorrentConsoleEngine): Use btContext.
  12185. * src/BtContextAwareCommand.cc: New file.
  12186. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  12187. * src/PeerMessage.h
  12188. (btContext): New variable.
  12189. (peerStorage): New variable.
  12190. (pieceStorage): New variable.
  12191. (setBtContext): New function.
  12192. * src/Directry.cc
  12193. (Directory): New function.
  12194. (createDir): Do nothing if name.size() == 0.
  12195. * src/AnnounceList.h
  12196. (AnnounceTier): Removed.
  12197. (AnnounceTiers): Removed.
  12198. * src/DefaultPieceStorage.h: New file.
  12199. * src/Piece.cc (toString): New function.
  12200. To fix typo:
  12201. * src/main.cc (showVersion): Fixed typo.
  12202. To fix compile warning:
  12203. * src/DelegatingPeerListProcessor.cc
  12204. (canHandle): Added "return false".
  12205. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12206. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  12207. make the process of announce request testable.
  12208. * src/TrackerWatcherCommand.h
  12209. (TimeA2.h): Removed.
  12210. (interval): Removed.
  12211. (checkPoint): Removed.
  12212. (createRequestCommand): Added an argument 'url'.
  12213. (TrackerWatherCommand): Removed interval.
  12214. (createCommand): New function.
  12215. * src/DownloadEngineFactory.cc
  12216. (newTorrentConsoleEngine): Updated according to the changes in
  12217. TrackerWatherCommand.
  12218. * src/TorrentMan.cc
  12219. (DelegatingPeerListProcessor.h): New includes.
  12220. (TorrentMan): Added the initialization of announceInterval.
  12221. (isStoppedAnnounceReady): New function.
  12222. (isCompletedAnnounceReady): New function.
  12223. (isDefaultAnnounceReady): New function.
  12224. (isAnnounceReady): New function.
  12225. (getAnnounceUrl): New function.
  12226. (announceStart): New function.
  12227. (announceFailure): New function.
  12228. (announceSuccess): New function.
  12229. (isAllAnnounceFailed): New function.
  12230. (resetAnnounce): New function.
  12231. (processAnnounceResponse): New function.
  12232. (needMorePeerConnection): New function.
  12233. (noMoreAnnounce): New function.
  12234. * src/TrackerUpdateCommand.h
  12235. (getTrackerResponse): int->size_t
  12236. * src/TorrentMan.h
  12237. (isStoppedAnnounceReady): New function.
  12238. (isCompletedAnnounceReady): New function.
  12239. (isDefaultAnnounceReady): New function.
  12240. (announceInterval): New variable.
  12241. (isAnnounceReady): New function.
  12242. (getAnnounceUrl): New function.
  12243. (announceStart): New function.
  12244. (announceFailure): New function.
  12245. (announceSuccess): New function.
  12246. (isAllAnnounceFailed): New function.
  12247. (resetAnnounce): New function.
  12248. (processAnnounceResponse): New function.
  12249. (needMorePeerConnection): New function.
  12250. (noMoreAnnounce): New function.
  12251. * src/TrackerWatcherCommand.cc
  12252. (TrackerWatherCommand): Removed interval and checkPoint.
  12253. (execute): Rewritten.
  12254. (createCommand): New function.
  12255. (createRequestCommand): Rewritten.
  12256. * src/TrackerUpdateCommand.cc
  12257. (MetaFileUtil.h): Removed.
  12258. (DelegatingPeerListProcessor.h): Removed.
  12259. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  12260. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12261. Request -> RequestHandle:
  12262. * src/HttpResponseCommand.h: Request->RequestHandle
  12263. * src/AbstractCommand.cc: Request->RequestHandle
  12264. * src/HttpDownloadCommand.cc: Request->RequestHandle
  12265. * src/HttpRequestCommand.cc: Request->RequestHandle
  12266. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  12267. * src/AbstractCommand.h: Request->RequestHandle
  12268. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  12269. * src/HttpResponseCommand.cc: Request->RequestHandle
  12270. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  12271. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  12272. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  12273. * src/HttpConnection.h: Request->RequestHandle
  12274. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  12275. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  12276. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12277. * src/DownloadCommand.h: Request->RequestHandle
  12278. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  12279. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  12280. * src/HttpRequestCommand.h: Request->RequestHandle
  12281. * src/FtpNegotiateCommand.h: Request->RequestHandle
  12282. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12283. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  12284. * src/HttpDownloadCommand.h: Request->RequestHandle
  12285. * src/FtpConnection.cc: Request->RequestHandle
  12286. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  12287. * src/UrlRequestInfo.cc: Request->RequestHandle
  12288. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  12289. * src/HttpConnection.h: Request->RequestHandle
  12290. * src/DownloadCommand.cc: Request->RequestHandle
  12291. * src/FtpConnection.h: Request->RequestHandle
  12292. * src/FtpDowndloadCommand.h: Request->RequestHandle
  12293. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  12294. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  12295. * src/Request.h
  12296. (SharedHandle.h): New include.
  12297. (RequestHandle): New type definition.
  12298. (Requests): Redefined.
  12299. To add MULTITRACKER support:
  12300. * src/TrackerWatcherCommand.h
  12301. (createRequestCommand): New function.
  12302. * src/DownloadEngineFactory.cc
  12303. (newTorrentConsoleEngine): Removed req.
  12304. * src/prefs.h
  12305. (PREF_TRACKER_MAX_TRIES): New definition.
  12306. * src/TorrentMan.cc
  12307. (TorrentMan): Removed req. Added trackerNumTry.
  12308. (~TorrentMan): Removed req.
  12309. (setupInternal1): Added announceList.
  12310. * src/TorrentRequestInfo.cc
  12311. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  12312. announces is now specified by PREF_TRACKER_MAX_TRIES.
  12313. * src/main.cc
  12314. (main): Added PREF_TRACKER_MAX_TRIES.
  12315. * src/TorrentMan.h
  12316. (Request.h): Removed.
  12317. (AnnounceList.h): New include.
  12318. (trackerNumTry): New variable.
  12319. (req): Removed.
  12320. (announceList): New variable.
  12321. * src/TrackerWatcherCommand.cc
  12322. (execute): Rewritten.
  12323. (createRequestCommand): New function.
  12324. * src/TrackerUpdateCommand.cc
  12325. (execute): Updated with the use of AnnounceList.
  12326. * src/AnnounceList.cc: New class.
  12327. * src/AnnounceList.h: New class.
  12328. To fix typo:
  12329. * src/prefs.h
  12330. (PREF_MAX_TRIES): max_try->max_tries
  12331. To not to decode "+" as space in URL decode:
  12332. * src/Util.cc
  12333. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  12334. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12335. To add timeout to async name resolution:
  12336. * src/AbstractCommand.h
  12337. (nameResolveFinished): New function. This is not elegant way. It needs
  12338. to be more refined.
  12339. (nameResolverCheck): New variable.
  12340. * src/AbstractCommand.cc
  12341. (AbstractCommand): Added nameResolverCheck.
  12342. (execute): Added the check whether the name resolution has finished.
  12343. (setNameResolverCheck): Set nameResolverCheck to true.
  12344. (disableNameResolverCheck): Set nameResolverCheck to false.
  12345. (nameResolverFinished): New function.
  12346. * src/FtpInitiateConnectionCommand.h
  12347. (nameResolverFinished): New function.
  12348. * src/FtpInitiateConnectionCommand.cc
  12349. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12350. * src/HttpInitiateConnectionCommand.h
  12351. (nameResolverFinished): New function.
  12352. * src/HttpInitiateConnectionCommand.cc
  12353. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12354. * src/prefs.h
  12355. (PREF_DNS_TIMEOUT): New definition.
  12356. * src/main.cc
  12357. (main): Added PREF_DNS_TIMEOUT.
  12358. To add the support for a non-compact response from a tracker:
  12359. * src/PeerListProcessor.h: New class.
  12360. * src/DefaultPeerListProcessor.h: New class.
  12361. * src/DefaultPeerListProcessor.cc: New class.
  12362. * src/CompactPeerListProcessor.h: New class.
  12363. * src/CompactPeerListProcessor.cc: New class.
  12364. * src/DelegatingPeerListProcessor.h: New class.
  12365. * src/DelegatingPeerListProcessor.cc: New class.
  12366. * src/TorrentMan.cc
  12367. (addPeer): New function(overload).
  12368. (addPeer): Delete unused peers only when new peer is added.
  12369. * src/TorrentMan.h
  12370. (PeerListProcessor.h): Included.
  12371. (Peers): Removed.
  12372. (addPeer): New function(overload).
  12373. * src/TrackerUpdateCommand.cc
  12374. (netinet/in.h): Removed.
  12375. (DelegatingPeerListProcessor.h): Included.
  12376. (execute): Updated to use DelegatingPeerListProcessor.
  12377. To fix the memory leak in TorrentMan::peers:
  12378. * src/PeerAbstractCommand.cc
  12379. (onAbort): Added peer->resetStatus().
  12380. * src/Peer.h
  12381. (resetStatus): Made public.
  12382. To improve the precision of the speed calculation:
  12383. * src/SpeedCalc.h
  12384. (nextInterval): New variable.
  12385. * src/SpeedCalc.cc
  12386. (reset): Added nextInterval.
  12387. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  12388. (changeSw): Set nextInterval to 15 seconds relative to the current
  12389. instant time.
  12390. * src/main.cc
  12391. (showVersion): Updated.
  12392. (showUsage): Updated.
  12393. * Release 0.8.1
  12394. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12395. * src/main.cc
  12396. (showUsage): Commented out --min-segment-size option.
  12397. (main): Commented out --min-segment-size option.
  12398. * Release 0.8.0
  12399. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12400. * src/*.{h,cc}:
  12401. Added an exception to the license which allows linking with OpenSSL.
  12402. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12403. * src/AbstractCommand.cc
  12404. (execute): Check whether the download has finished before checking
  12405. socket status.
  12406. Return true if peerStat->getStatus() == REQUEST_IDLE.
  12407. Do not exit even if no segment is available.
  12408. * src/prefs.h
  12409. (PREF_STARTUP_IDLE_TIME): New definition.
  12410. * src/PeerInteractionCommand.cc
  12411. (executeInternal): Removed max speed limit. Because it performs bad.
  12412. (receiveMessages): Added max speed limit. This was better than above,
  12413. but still a little bit to be desired. Sometimes the download speed
  12414. became much faster than I specified.
  12415. * src/SpeedCalc.h
  12416. (start): New variable.
  12417. (accumulatedLength): New variable.
  12418. (getAvgSpeed): New function.
  12419. * src/SpeedCalc.cc
  12420. (reset): Added start, accumulatedLength.
  12421. (update): Added calculation of an average speed.
  12422. (getAvgSpeed): New function.
  12423. * src/DownloadCommand.h
  12424. (sw): Removed.
  12425. * src/main.cc
  12426. (main): Added PREF_STARTUP_IDLE_TIME.
  12427. * src/PeerStat.h
  12428. (STATUS): Added REQUEST_IDLE.
  12429. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  12430. (getAvgDownloadSpeed): New function
  12431. (requestIdle): New function.
  12432. * src/SegmentMan.h
  12433. (SegmentEntryHandle): New type definition.
  12434. (SegmentEntries): Now holds SegmentEntryHandle.
  12435. (findSlowerSegmentEntry): New funtion.
  12436. * src/SegmentMan.cc
  12437. (save): Updated according to the changes in SegmentEntries.
  12438. (read): Updated according to the changes in SegmentEntries.
  12439. (FindSegmentEntryByIndex): Updated according to the changes in
  12440. SegmentEntries.
  12441. (FindSegmentEntryByCuid): Updated according to the changes in
  12442. SegmentEntries.
  12443. (checkoutSegment): Updated according to the changes in SegmentEntries.
  12444. (onNullBitfield): Updated according to the changes in SegmentEntries.
  12445. Renamed uitr as itr.
  12446. (findSlowerSegmentEntry): New function.
  12447. (getSegment): Updated according to the changes in SegmentEntries.
  12448. Added the feature that cancels the segment with slow server and fast
  12449. one takes it over.
  12450. (cancelSegment): Updated according to the changes in SegmentEntries.
  12451. (getDownloadLength): Updated according to the changes in
  12452. SegmentEntries.
  12453. (init): Assigned 0 to bitfield after deleting it.
  12454. * src/DownloadCommand.cc
  12455. (STARTUP_IDLE_TIME): Removed.
  12456. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  12457. * src/PeerChokeCommand.cc
  12458. (optUnchokingPeer): Updated according to the changes in Peer.
  12459. (ResetDelta): Removed.
  12460. (UploadFaster): Updated according to the changes in Peer.
  12461. (DownloadFaster): Updated according to the changes in Peer.
  12462. (execute): I clarify the meaning of "upload" and "download" here.
  12463. "upload" means the transfer from localhost to remote host.
  12464. "download" means the transfer from remote host to localhost.
  12465. Based on this rule, I swapped orderByUploadRate and
  12466. orderByDownloadRate.
  12467. * src/PeerInteractionCommand.cc
  12468. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  12469. (executeInternal): Removed the argument of
  12470. peerInteraction->sendMessages().
  12471. (receiveMessages): Rewritten download speed limit.
  12472. (sendKeepAlive): Removed peerInteraction->sendMessages().
  12473. * src/HttpResponseCommand.cc
  12474. (handleDefaultEncoding): If file size is unknown in torrent request,
  12475. do not call segmentMan->initBitfield() here.
  12476. Disabled persistent connection feature in torrent request.
  12477. * src/UrlRequestInfo.h
  12478. (UrlRequestInfo): Removed const qualifier from option.
  12479. * src/TorrentMan.h
  12480. (TransferStat): New class.
  12481. (deltaDownloadLength): Removed.
  12482. (deltaUploadLength): Removed.
  12483. (addDeltaDownloadLength): Removed.
  12484. (getDeltaDownloadLength): Removed.
  12485. (resetDeltaDownloadLength): Removed.
  12486. (addDeltaUploadLength): Removed.
  12487. (getDeltaUploadLength): Removed.
  12488. (resetDeltaUploadLength): Removed.
  12489. (addActivePeer): Added peer->activate().
  12490. (deleteActivePeer): Added peer->deactivate().
  12491. (calculateStat): New function.
  12492. * src/TorrentMan.cc
  12493. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  12494. (calculateStat): New function.
  12495. * src/PeerInteraction.h
  12496. (uploadLimit): Removed.
  12497. (option): New variable.
  12498. (setUploadLimit): Removed.
  12499. (getUploadSpeed): Removed.
  12500. (sendMessages): Removed the argument "currentUploadSpeed".
  12501. * src/PeerInteraction.cc
  12502. (prefs.h): Included.
  12503. (PeerInteraction): Removed uploadLimit. Added option.
  12504. (sendMessages): Rewritten upload speed limit.
  12505. (sendHandshake): Removed the argument from sendMessages().
  12506. (sendBitfield): Removed the argument from sendMessages().
  12507. * src/PeerAbstractCommand.cc
  12508. (execute): Commented out the portion of upload limit.
  12509. (onAbort): Removed peer->resetStatus().
  12510. * src/TorrentRequestInfo.cc
  12511. (timeoutSpecified): Declared extern.
  12512. (execute): Set timeout to 180 if timeout is not specified by.
  12513. command-line.
  12514. * src/PieceMessage.cc
  12515. (receivedAction): Added peer->updateDownloadLength().
  12516. Removed peer->addPeerUpload().
  12517. Removed torrentMan->addDeltaDownloadLength().
  12518. (send): Added peer->updateUploadLength().
  12519. Removed peer->addPeerDownload().
  12520. Removed torrentMan->addDeltaUploadLength().
  12521. * src/main.cc
  12522. (timeoutSpecified): New variable.
  12523. (main): Set timeoutSpecified to false.
  12524. If the command-line option "--upload-limit" is specified, then
  12525. timeoutSpecified is set to true. This option will remain in the next
  12526. release, but be deprecated in the future release.
  12527. * src/TorrentRequestInfo.h
  12528. (TorrentRequestInfo): Removed const qualifier from op.
  12529. * src/PeerStat.h
  12530. (uploadSpeed): New variable.
  12531. (PeerStat): Added default value to cuid.
  12532. (calculateUploadSpeed): New function.
  12533. (updateUploadLength): New function.
  12534. (getMaxUploadSpeed): New function.
  12535. (getAvgUploadSpeed): New function.
  12536. (reset): Added uploadSpeed. Set status to IDLE.
  12537. * src/TorrentDownloadEngine.h
  12538. (cp): Declared as Time.
  12539. (sessionDownloadLengthArray): Removed.
  12540. (sessionUploadLengthArray): Removed.
  12541. (currentCp): Removed.
  12542. (lastCalcStat): New variable
  12543. (lastElapsed): Removed.
  12544. (sessionDownloadLength): Removed.
  12545. (calculateStat): New function.
  12546. * src/TorrentDownloadEngine.cc
  12547. (initStatistics): Removed lastElapsed, cp[],
  12548. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  12549. currentCp, sessionDownloadLength.
  12550. Added cp.reset() and lastCalcStat.reset().
  12551. (calculateSpeed): Changed the name of the argument.
  12552. (calculateStatistics): Rewritten.
  12553. (calculateStat): New function.
  12554. * src/Peer.h
  12555. (PeerStat.h): Included.
  12556. (peerUpload): Removed.
  12557. (peerDownload): Removed.
  12558. (peerStat): New variable.
  12559. (sessionUploadLength): New variable.
  12560. (sessionDownloadLength): New variable.
  12561. (deltaUpload): Removed.
  12562. (deltaDownload): Removed.
  12563. (resetStatus): Made private.
  12564. (Peer): Added sessionUploadLength, sessionDownloadLength.
  12565. Removed peerUpload, peerDownload.
  12566. (updateUploadLength): New function.
  12567. (addDeltaUpload): Removed.
  12568. (updateDownloadLength): New function.
  12569. (resetDeltaUpload): Removed.
  12570. (getDeltaUpload): Removed.
  12571. (addDeltaDownload): Removed.
  12572. (calculateUploadSpeed): New function.
  12573. (resetDeltaDownload): Removed.
  12574. (getDeltaDownload): Removed.
  12575. (calculateDownloadSpeed): New function.
  12576. (getSessionUploadLength): New function.
  12577. (getSessionDownloadLength): New function.
  12578. (activate): New function.
  12579. (deactivate): New function.
  12580. (addPeerUpload): Removed.
  12581. (setPeerUpload): Removed.
  12582. (getPeerUpload): Removed.
  12583. (addPeerDownload): Removed.
  12584. (setPeerDownload): Removed.
  12585. (getPeerDownload): Removed.
  12586. * src/Peer.cc
  12587. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  12588. * src/MetalinkRequestInfo.h
  12589. (MetalinkRequestInfo): Removed const qualifier from op.
  12590. * src/RequestInfo.h
  12591. (op): Removed const qualifier.
  12592. (RequestInfo): Removed const qualifier from op.
  12593. * src/prefs.h
  12594. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  12595. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  12596. * src/PeerInteractionCommand.cc
  12597. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  12598. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  12599. * src/PeerInteraction.cc
  12600. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  12601. * src/main.cc
  12602. (showUsage): Updated the description of "--lowest-speed-limit" option.
  12603. Added the description of "--max-download-limit" option.
  12604. Removed the description of "--upload-limit" option.
  12605. Added the description of "--max-upload-limit" option.
  12606. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  12607. Added "--max-download-limit" option and "--max-upload-limit" option.
  12608. Added the warning message if "--upload-limit" option is used.
  12609. * src/DownloadCommand.cc
  12610. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  12611. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12612. To rewrite segment download mechanism for HTTP/FTP download.
  12613. Use BitfieldMan to manage segment download.
  12614. * src/HttpResponseCommand.h
  12615. (executeInternal): Pass the reference of segment.
  12616. * src/AbstractCommand.cc
  12617. (prepareForRetry): Call segmentMan->cancelSegment here.
  12618. (onAbort): Call segmentMan->cancelSegment here.
  12619. * src/HttpDownloadCommand.cc
  12620. (prepareForNextSegment): New function.
  12621. * src/DownloadEngineFactory.cc
  12622. (newConsoleEngine): Removed splitter.
  12623. (newTorrentConsoleEngine): Removed splitter.
  12624. * src/Request.h
  12625. (segment): Renamed from seg.
  12626. * src/FtpInitiateConnectionCommand.h
  12627. (executeInternal): Pass the reference of segment.
  12628. * src/AbstractCommand.h
  12629. (executeInternal): Pass the reference of segment.
  12630. * src/pref.h
  12631. (PREF_SEGMENT_SIZE): New definition.
  12632. * src/HttpProxyRequestCommand.h
  12633. (executeInternal): Pass the reference of segment.
  12634. * src/HttpResponseCommand.cc
  12635. (checkResponse): Allowed status 206 when a request range starts 0.
  12636. (handleDefaultEncoding): Rewritten the code related to Segment.
  12637. (handleOtherEncoding): Rewritten the code related to Segment.
  12638. * src/SegmentMan.h
  12639. (SegmentEntry): New class.
  12640. (SegmentEntries): New type definition.
  12641. (bitfield): New variable.
  12642. (usedSegmentEntries): New variable.
  12643. (onNullBitfield): New function.
  12644. (checkoutSegment): New function.
  12645. (segments): Removed.
  12646. (splitter): Removed.
  12647. (unregisterId): Removed.
  12648. (getSegment): New function(overload)
  12649. (getDownloadedSize): Removed.
  12650. (cancelSegment): New function.
  12651. (completeSegment): New function.
  12652. (initBitfield): New function.
  12653. (hasSegment): New function.
  12654. (getDownloadLength): New function.
  12655. * src/BitfieldMan.h
  12656. (getStartIndex): New function.
  12657. (getEndIndex): New function.
  12658. (getMissingUnusedIndex): New function(overload).
  12659. (getSparseMissingUnusedIndex): New function.
  12660. * src/BitfieldMan.cc
  12661. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  12662. (getMissingUnusedIndex): New function(overload).
  12663. (Range): New class.
  12664. (getStartIndex): New function.
  12665. (getEndIndex): New function.
  12666. (getSparseMissingUnusedIndex): New function.
  12667. (isBitSetInternal): Return false if the given index is less than 0.
  12668. * src/HttpInitiateConnectionCommand.h
  12669. (executeInternal): Pass the reference of segment.
  12670. * src/FtpNegotiateCommand.h
  12671. (executeInternal): Pass the reference of segment.
  12672. * src/FtpNegotiateCommand.cc
  12673. (recvSize): Initialize bitfield here.
  12674. * src/FtpTunnelResponseCommand.h
  12675. (executeInternal): Pass the reference of segment.
  12676. * src/HttpConnection.cc
  12677. (createRequest): Rewritten range header processing.
  12678. * src/DownloadCommand.h
  12679. (executeInternal): Pass the reference of segment.
  12680. (prepareForRetry): Removed.
  12681. (prepareForNextSegment): Added an argument segment. Made it a virtual
  12682. function.
  12683. * src/main.cc
  12684. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  12685. * src/SegmentMan.cc
  12686. (SegmentMan): Added bitfield. Removed splitter.
  12687. (~SegmentMan): Added bitfield. Removed splitter.
  12688. (unregisterId): Removed.
  12689. (getSegment): Rewritten.
  12690. (updateSegment): Rewritten.
  12691. (save): Rewritten.
  12692. (read): Rewritten.
  12693. (finished): Rewritten.
  12694. (getDownloadedSize): Removed.
  12695. (initBitfield): New function.
  12696. (FindSegmentEntryByIndex): New function object.
  12697. (FindSegmentEntryByCuid): New function object.
  12698. (checkoutSegment): New function.
  12699. (onNullBitfield): New function.
  12700. (getSegment): New function(overload).
  12701. (CancelSegment): New function object.
  12702. (cancelSegment): New function.
  12703. (completeSegment): New function.
  12704. (hasSegment): New function.
  12705. (getDownloadLength): New function.
  12706. * src/FtpInitiateConnectionCommand.cc
  12707. (executeInternal): Load .aria2 file after hostname resolution finishes.
  12708. * src/Segment.h: Rewritten.
  12709. * src/Segment.cc (operator<<): New function.
  12710. * src/HttpDownloadCommand.h
  12711. (prepareForNextSegment): New function.
  12712. * src/Request.cc
  12713. (resetUrl): Made segment null.
  12714. * src/DownloadEngine.cc
  12715. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  12716. * src/HttpProxyRequestCommand.h
  12717. (executeInternal): Pass the reference of segment.
  12718. * src/DownloadCommand.cc
  12719. (executeInternal): Rewritten the code related to Segment.
  12720. (prepareForRetry): Removed.
  12721. (prepareForNextSegment): Rewritten.
  12722. * src/FtpTunnelResponseCommand.h
  12723. (executeInternal): Pass the reference of segment.
  12724. To add HTTP 1.1 persistent connection support(experimental)
  12725. * src/HttpRequestCommand.cc
  12726. (executeInternal): Disable keep alive if it is disabled by
  12727. configuration.
  12728. * src/Request.h
  12729. (keepAlive): New variable.
  12730. (isKeepAlive): New function.
  12731. (setKeepAlive): New function.
  12732. * src/pref.h
  12733. (PREF_HTTP_KEEP_ALIVE): New definition.
  12734. * src/HttpResponseCommand.cc
  12735. (executeInternal): Check the remote server supports keep alive.
  12736. * src/HttpConnection.cc
  12737. (createRequest): Send "Connection: close" only if keep alive is
  12738. disabled.
  12739. * src/main.cc
  12740. (main):
  12741. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  12742. To add max download speed limit:
  12743. * src/pref.h
  12744. (PREF_MAX_SPEED_LIMIT): New definition.
  12745. * src/PeerInteractionCommand.cc
  12746. (executeInternal): Added max download speed limit. Not tested yet.
  12747. * src/SegmentMan.h
  12748. (PeerStats): New type definition.
  12749. (peerStats): New variable.
  12750. (registerPeerStat): New function.
  12751. (FindPeerStat): New function object.
  12752. (getPeerStat): New function.
  12753. (calculateDownloadSpeed): New function.
  12754. * src/SpeedCalc.h: New class.
  12755. * src/SpeedCalc.cc: New class.
  12756. * src/main.cc
  12757. (main):
  12758. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  12759. download speed is not restricted).
  12760. * src/PeerStat.h: New class.
  12761. * src/SegmentMan.cc
  12762. (registerPeerStat): New function.
  12763. (calculateDownloadSpeed): New function.
  12764. * src/DownloadCommand.cc
  12765. (STARTUP_IDLE_TIME): New definition.
  12766. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  12767. downloadStart.
  12768. (~DownloadCommand): Call peerStat->downloadStop.
  12769. (executeInternal): Added download speed limitter. Rewritten lowest
  12770. speed limitter.
  12771. * src/HttpConnection.cc
  12772. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  12773. * src/AbstractCommand.cc
  12774. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  12775. Added hostname to the error message.
  12776. * src/ConsoleDownloadEngine.cc
  12777. (calculateStatistics): Initialize psize with dlSize.
  12778. * src/PieceMessage.cc
  12779. (receivedAction): Do not call peerInteraction->abortPiece here.
  12780. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  12781. * src/BitfieldMan.h
  12782. (clearAllUseBit): New function.
  12783. (setAllUseBit): New function.
  12784. * src/BitfieldMan.cc
  12785. (clearAllBit): Do not clear useBitfield here.
  12786. (clearAllUseBit): New function.
  12787. (setAllUseBit): New function.
  12788. * src/Piece.cc
  12789. (clearAllBlock): Call bitfield->clearAllUseBit().
  12790. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12791. To make filename URL-decoded:
  12792. * src/HttpResponseCommand.h: Updated doc.
  12793. * src/HttpResponseCommand.cc
  12794. (determinFilename): Made filename URL-decoded.
  12795. * src/FtpInitiateConnectionCommand.cc
  12796. (executeInternal): Made filename URL-decoded.
  12797. * src/Util.h (urldecode): New function.
  12798. * src/Util.cc (urldecode): New function.
  12799. To fix a bug that caused assertion failure in ares_strerror:
  12800. * src/NameResolver.cc (callback): Fixed the bug.
  12801. * Release 0.7.3
  12802. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12803. To add --seed-time and --seed-ratio command-line option:
  12804. * src/Option.h (getAsDouble): New function.
  12805. * src/Option.cc (getAsDouble): New function.
  12806. * src/SeedCheckCommand.h: New class.
  12807. * src/SeedCheckCommand.cc: New class.
  12808. * src/DownloadEngineFactory.cc
  12809. (SeedCheckCommand.h): Included.
  12810. (UnionSeedCriteria.h): Included.
  12811. (TimeSeedCriteria.h): Included.
  12812. (ShareRatioSeedCriteria.h): Included.
  12813. (newTorrentConsoleEngine): Added the processing of seed option.
  12814. * src/SeedCriteria.h: New class.
  12815. * src/ShareRatioSeedCriteria.h: New class.
  12816. * src/TimeSeedCriteria.h: New class.
  12817. * src/UnionSeedCriteria.h: New class.
  12818. * src/prefs.h
  12819. (PREF_SEED_TIME): New definition.
  12820. (PREF_SEED_RATIO): New definition.
  12821. * src/main.cc
  12822. (showUsage): Added --seed-time and --seed-ratio option.
  12823. (main): Added --seed-time and --seed-ratio option.
  12824. Made default log file name "/dev/null".
  12825. * src/SharedHandle.h
  12826. (SharedHandle): Copy constructor. Made it assignable from the
  12827. SharedHandle of the subclasses.
  12828. (operator=): Made it assignable from the SharedHandle of the
  12829. subclasses.
  12830. (getRefCount): New function.
  12831. To add notice log level and the switch to write log to stdout. This
  12832. switch is configurable per log level.
  12833. * src/Logger.h
  12834. (notice): New function.
  12835. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  12836. constant.
  12837. * src/LogFactory.cc
  12838. (getInstance): The use of NullLogger was removed. A log message with
  12839. notice log level was made written to stdout along with log file.
  12840. * src/NullLogger.h
  12841. (notice): New function.
  12842. * src/SimpleLogger.h
  12843. (writeHeader): Added the 'file' argument.
  12844. (writeLog): Added the 'file' argument.
  12845. (writeFile): New function.
  12846. (stdoutField): New variable.
  12847. (SimpleLogger): Removed the default constructor.
  12848. (SimpleLogger): Made the default value of logfile 0.
  12849. (debug): Added 'virtual' keyword.
  12850. (info): Added 'virtual' keyword.
  12851. (warn): Added 'virtual' keyword.
  12852. (error): Added 'virtual' keyword.
  12853. (notice): New function.
  12854. (setStdout): New function.
  12855. * src/SimpleLogger.cc
  12856. (WRITE_LOG): Replaced writeLog with writeFile.
  12857. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  12858. (SimpleLogger): Removed the default constructor.
  12859. (setStdout): New function.
  12860. (writeLog): Added the handling of NOTICE log level.
  12861. (writeFile): New function.
  12862. (notice): New function.
  12863. * src/TorrentMan.h: Updated doc.
  12864. * src/BitfieldMan.h: Updated doc.
  12865. * src/TrackerWatcherCommand.cc
  12866. (execute): Return true if error occurred in the request to the tracker
  12867. and halt is requested.
  12868. * src/TrackerUpdateCommand.cc
  12869. (execute): Return true if error occurred in the request to the tracker
  12870. and halt is requested.
  12871. To call onDownloadComplete from TorrentMan::completePiece(), not from
  12872. DownloadEngine:
  12873. * src/TorrentConsoleDownloadEngine.h
  12874. (onSelectiveDownloadingCompletes): Removed.
  12875. * src/TorrentConsoleDownloadEngine.cc
  12876. (onSelectiveDownloadingCompletes): Removed.
  12877. * src/TorrentDownloadEngine.h
  12878. (onEndOfRun): Added 'virtual' keyword.
  12879. (afterEachIteration): Removed.
  12880. (onSelectiveDownloadingCompletes): Removed.
  12881. * src/TorrentDownloadEngine.cc
  12882. (onEndOfRun): Removed filenameFixed.
  12883. (afterEachIteration): Removed.
  12884. * src/TorrentMan.cc
  12885. (completePiece): Call onDownloadComplete here.
  12886. (onDownloadComplete): Added 2 log messages.
  12887. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12888. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  12889. * src/NameResolver.h: Added the prototype declaration of callback().
  12890. To support c-ares library:
  12891. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12892. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12893. * src/FtpInitiateConnectionCommand.h:
  12894. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12895. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12896. * src/HttpInitiateConnectionCommand.h:
  12897. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12898. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  12899. Added thes upport of c-ares's ares_strerror(the idea came from patch
  12900. #1542285 by tizianomueller)
  12901. * src/HttpInitiateConnectionCommand.cc:
  12902. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12903. * src/FtpInitiateConnectionCommand.cc:
  12904. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12905. * src/DownloadEngine.h:
  12906. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12907. * src/DownloadEngine.cc:
  12908. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12909. To fix the bug that causes compilation failure with metalink-support
  12910. disabled(bug#1543587):
  12911. * src/main.cc: Fixed with the patch by tizianomueller.
  12912. * Release 0.7.2
  12913. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12914. * src/main.cc
  12915. (main): Added a message to inform users that aria2 is starting to
  12916. verify checksum.
  12917. * src/RequestInfo.cc
  12918. (printDownloadAbortMessage): Added a message to inform users that
  12919. transfer can be resumed.
  12920. * src/FeatureConfig.cc
  12921. (FEATURE_ASYNC_DNS): New definition.
  12922. (FeatureConfig): Added aysnc DNS entry.
  12923. To replace CommandUuid with Command* in SocketEntry and
  12924. NameResolverEntry:
  12925. * src/DownloadEngine.h
  12926. (CommandUuids): Removed.
  12927. (SocketEntry::commandUuid): Removed.
  12928. (SocketEntry::command): New variable.
  12929. (SocketEntry::SocketEntry): Updated.
  12930. (SocketEntry::operator==): Updated.
  12931. (NameResolverEntry::commandUuid): Removed.
  12932. (NameResolverEntry::command): New variable.
  12933. (NameResolverEntry::NameResolverEntry): Updated.
  12934. (NameResolverEntry::operator==): Updated.
  12935. (waitData): Changed the argument type.
  12936. (addSocketForReadCheck): Changed the argument type.
  12937. (deleteSocketForReadCheck): Changed the argument type.
  12938. (addSocketForWriteCheck): Changed the argument type.
  12939. (deleteSocketForWriteCheck): Changed the argument type.
  12940. (addNameResolverCheck): Changed the argument type.
  12941. (deleteNameResolverCheck): Changed the argument type.
  12942. * src/DownloadEngine.cc
  12943. (FindCommand): Removed.
  12944. (run): Removed activeUuid. Added activeCommands instead.
  12945. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  12946. (AccumulateActiveCommand): New function object.
  12947. (waitData): Use AccumulateActiveCommand.
  12948. (addSocketForReadCheck): Use Command instead of CommandUuid.
  12949. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  12950. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  12951. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  12952. (addNameResolverCheck): Use Command instead of CommandUuid.
  12953. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  12954. * src/AbstractCommand.cc
  12955. (disableReadCheckSocket): Updated according to the changes in
  12956. DownloadEngine.
  12957. (setReadCheckSocket): Updated according to the changes in
  12958. DownloadEngine.
  12959. (disableWriteCheckSocket): Updated according to the changes in
  12960. DownloadEngine.
  12961. (setWriteCheckSocket): Updated according to the changes in
  12962. DownloadEngine.
  12963. (setNameResolverCheck): Updated according to the changes in
  12964. DownloadEngine.
  12965. (disableNameResolverCheck): Updated according to the changes in
  12966. DownloadEngine.
  12967. * src/AbstractCommand.cc
  12968. (disableReadCheckSocket): Updated according to the changes in
  12969. DownloadEngine.
  12970. (setReadCheckSocket): Updated according to the changes in
  12971. DownloadEngine.
  12972. (disableWriteCheckSocket): Updated according to the changes in
  12973. DownloadEngine.
  12974. (setWriteCheckSocket): Updated according to the changes in
  12975. DownloadEngine.
  12976. * release 0.7.1
  12977. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12978. To handle the case where some BitTorrent tracker requires all letters
  12979. except for [A-Za-z0-9] is URL encoded.
  12980. * src/Util.h
  12981. (torrentUrlencode): New function.
  12982. * src/Util.cc
  12983. (ctype.h): Included.
  12984. (torrentUrlencode): New function.
  12985. * src/TrackerWatcherCommand.cc
  12986. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  12987. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12988. To add asynchronous DNS support(libares):
  12989. * src/AbstractCommand.h
  12990. (setNameResolverCheck): New function.
  12991. (disableNameResolverCheck): New function
  12992. (resolveHostname): New function.
  12993. * src/AbstractCommand.cc
  12994. (setNameResolverCheck): New function.
  12995. (disableNameResolverCheck): New function
  12996. (resolveHostname): New function.
  12997. * src/FtpInitiateConnectionCommand.h
  12998. (nameResolver): New function.
  12999. * src/FtpInitiateConnectionCommand.cc
  13000. (Util.h): Included.
  13001. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  13002. disableWriteCheckSocket.
  13003. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  13004. (executeInternal): Added async DNS support.
  13005. * src/HttpInitiateConnectionCommand.h
  13006. (nameResolver): New function.
  13007. * src/HttpInitiateConnectionCommand.cc
  13008. (DlRetryEx.h): Included.
  13009. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  13010. disableWriteCheckSocket.
  13011. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  13012. (executeInternal): Added async DNS support.
  13013. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  13014. by extern "C" declaration.
  13015. * src/NameResolver.cc: New class.
  13016. * src/Util.h:
  13017. (isNumberAndDotsNotation): New function
  13018. * src/Util.cc
  13019. (isNumberAndDotsNotation): New function.
  13020. * src/DownloadEngine.h
  13021. (NameResolver.h): Included.
  13022. (NameResolverEntry): New class.
  13023. (NameResolverEntries): New type definition.
  13024. (addNameResolverCheck): New function.
  13025. (deleteNameResolverCheck): New function.
  13026. * src/DownloadEngine.cc
  13027. (run): Initialize cp with 0.
  13028. (SetDescriptor::operator()): Added for NameResolverEntry.
  13029. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  13030. (waitData): Check nameResolver entries.
  13031. (updateFdSet): Update fds in nameResolver entries.
  13032. (addNameResolverCheck): New function.
  13033. (deleteNameResolverCheck): new function.
  13034. * src/PeerInteractionCommand.cc
  13035. (executeInternal): Fixed wrong socket handling.
  13036. * src/main.cc
  13037. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  13038. * src/Util.cc
  13039. (fileChecksum): Removed the call to ctx.digestReset().
  13040. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13041. * po/ru.po: Azamat sent me Russian translation.
  13042. * src/FtpNegotiateCommand.cc
  13043. (recvGreeting): Call disableWriteCheckSocket just after
  13044. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  13045. (recvRetr): Recognized status code 125 as a acceptable response code.
  13046. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  13047. case-insesitive filesystem(BUG#1531057).
  13048. * src/Time.h: Renamed as TimeA2.h.
  13049. * src/Time.cc: Renamed as TimeA2.cc.
  13050. * src/TimeA2.h: New class.
  13051. * src/TimeA2.cc: New class.
  13052. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  13053. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  13054. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  13055. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  13056. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  13057. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13058. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  13059. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  13060. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  13061. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  13062. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  13063. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  13064. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  13065. * release 0.7.0
  13066. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13067. * src/PeerChokeCommand.h
  13068. (PeerChokeCommand): Rearranged the arguments.
  13069. * src/PeerChokeCommand.cc
  13070. (PeerChokeCommand): Rearranged the arguments.
  13071. * src/MetalinkEntry.h
  13072. (Checksum.h): Included.
  13073. (md5): Removed.
  13074. (sha1): Removed.
  13075. (checksum): New variable.
  13076. (operator=): Updated.
  13077. (check): Removed.
  13078. * src/prefs.h
  13079. (PREF_LOWEST_SPEED_LIMIT): New definition.
  13080. (PREF_FOLLOW_TORRENT): New definition.
  13081. (PREF_SELECT_FILE): New definition.
  13082. (PREF_FOLLOW_METALINK): New definition.
  13083. * src/MetalinkResource.h
  13084. (TYPE_HTTPS): Added to enum TYPE.
  13085. * src/TorrentMan.cc
  13086. (~TorrentMan): Rewritten.
  13087. * src/MultiDiskWriter.cc
  13088. (MultiDiskAdaptor): Updated according to the changes in
  13089. MessageDigestContext.
  13090. (~MultiDiskAdaptor): Updated according to the changes in
  13091. MessageDigestContext.
  13092. (hashUpdate): Updated according to the changes in MessageDigestContext.
  13093. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13094. * src/Util.h
  13095. (fileChecksum): Updated according to the changes in
  13096. MessageDigestContext.
  13097. * src/Util.cc
  13098. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13099. (fileChecksum): Updated according to the changes in
  13100. MessageDigestContext.
  13101. * src/messageDigest.h: Rewritten.
  13102. * src/MetalinkEntry.cc
  13103. (check): Removed.
  13104. (Supported): Updated.
  13105. (dropUnsupportedResource): Fixed a memory leak.
  13106. * src/ShaVisitor.cc
  13107. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  13108. (~ShaVisitor): Updated according to the changes in
  13109. MessageDigestContext.
  13110. (visit): Updated according to the changes in MessageDigestContext.
  13111. * src/main.cc
  13112. (main): Rewritten the portion of download loop. --lowest-speed-limit
  13113. command-line option added.
  13114. * src/DownloadEngine.h
  13115. (SocketEntry): New class.
  13116. (SocketEntries): New definition.
  13117. (PairFind): Removed.
  13118. (SockCmdMap): Removed.
  13119. * src/DownloadEngine.cc
  13120. (DownloadEngine): Rewritten.
  13121. (~DownloadEngine): Rewritten.
  13122. (run): Renamed activeCommandUuids as activeUuids.
  13123. (SetDescriptor): Rewritten.
  13124. (AccumulateActiveCommandUuid): Removed.
  13125. (AccumulateActiveUuid): New function object.
  13126. (waitData): Rewritten.
  13127. (updateFdSet): Rewritten.
  13128. (addSocket): Rewritten.
  13129. (deleteSocket): Rewritten.
  13130. (addSocketForReadCheck): Rewritten.
  13131. (deleteSocketForReadCheck): Rewritten.
  13132. (addSocketForWriteCheck): Rewritten.
  13133. (deleteSocketForWriteCheck): Rewritten.
  13134. * src/Xml2MetalinkProcessor.cc
  13135. (getEntry): Rewritten the portion of MetalinkEntry creation.
  13136. * src/DownloadCommand.cc
  13137. (executeInternal): Added the check routine for lowest speed limit.
  13138. * src/AbstractDiskWriter.cc
  13139. (AbstractDiskWriter): Updated according to the changes in
  13140. MessageDigestContext.
  13141. (~AbstractDiskWriter): Updated according to the changes in
  13142. MessageDigestContext.
  13143. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13144. * src/RequestInfo.h: New class.
  13145. * src/UrlRequestInfo.h: New class.
  13146. * src/UrlRequestInfo.cc: New class.
  13147. * src/TorrentRequestInfo.h: New class.
  13148. * src/TorrentRequestInfo.cc: New class.
  13149. * src/MetalinkRequestInfo.h: New class.
  13150. * src/MetalinkRequestInfo.cc: New class.
  13151. * src/Checksum.h: New class.
  13152. * src/DownloadEngineFactory.h: New class.
  13153. * src/DownloadEngineFactory.cc: New class.
  13154. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13155. * src/Option.h
  13156. (getAsBool): New function.
  13157. * src/Option.cc
  13158. (prefs.h): Included.
  13159. (defined): 0-length value is now recognized as undefined.
  13160. (getAsInt): Rewritten.
  13161. (getAsLLInt): Rewritten.
  13162. (getAsBool): New function.
  13163. * src/FeatureConfig.h: Rewritten.
  13164. * src/FeatureConfig.cc: Rewritten.
  13165. * src/prefs.h
  13166. (PREF_STDOUT_LOG): New definition.
  13167. (PREF_LOG): New definition.
  13168. (PREF_DIR): New definition.
  13169. (PREF_OUT): New definition.
  13170. (PREF_SPLIT): New definition.
  13171. (PREF_DAEMON): New definition.
  13172. (PREF_REFERER): New definition.
  13173. (PREF_TORRENT_FILE): New definition.
  13174. (PREF_LISTEN_PORT): New definition.
  13175. (PREF_METALINK_FILE): New definition.
  13176. (PREF_METALINK_VERSION): New definition.
  13177. (PREF_METALINK_LANGUAGE): New definition.
  13178. (PREF_METALINK_OS): New definition.
  13179. (PREF_METALINK_SERVERS): New definition.
  13180. * src/main.cc
  13181. (main): Following command-line parameters are now put into Option
  13182. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  13183. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  13184. metalinkLanguage, metalinkOs, metalinkServers
  13185. To fix the bug that aria2 can not handle http response header properly.
  13186. * src/HttpHeader.cc
  13187. (put): Made name lowercased.
  13188. (defined): Made name lowercased.
  13189. (getFirst): Made name lowercased.
  13190. (get): Made name lowercased.
  13191. (getFirstAsInt): Rewritten.
  13192. (getFirstAsLLInt): Rewritten.
  13193. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13194. * src/TorrentMan.h:
  13195. (advertisePiece): Updated doc.
  13196. (getAdvertisedPieceIndexes): Updated doc.
  13197. (removeAdvertisedPiece); New function.
  13198. * src/TorrentMan.cc
  13199. (FindElapsedHave): New function object.
  13200. (removeAdvertisedPiece): New function.
  13201. * src/HaveEraseCommand.h: New class.
  13202. * src/HaveEraseCommand.cc: New class.
  13203. * src/FeatureConfig.h: New class.
  13204. * src/FeatureConfig.cc: New class.
  13205. * src/Request.h
  13206. (defaultPorts): Removed.
  13207. * src/Request.cc
  13208. (FeatureConfig.h): Included.
  13209. (Request): Removed the statements related to defaultPorts.
  13210. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  13211. A default port number is now retrieved from FeatureConfig.
  13212. * src/main.cc
  13213. (HaveEraseCommand.h): Included.
  13214. (showVersion): Added the output of feature list.
  13215. (main): Added HaveEraseCommand to command queue in BitTorrent
  13216. downloading.
  13217. * src/PeerInteractionCommand.h
  13218. (chokeCheckPoint): Commented out.
  13219. (periodicExecPoint): New variable.
  13220. * src/PeerInteractionCommand.cc
  13221. (executeInternal): Following methods are now called in at least every
  13222. 0.5 seconds to reduce CPU usage:
  13223. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  13224. checkHave(), sendKeepAlive().
  13225. (checkLongTimePeerChoking): Commented out.
  13226. * src/BitfieldMan.h
  13227. (getNthBitIndex): Changed the method signature.
  13228. (getMissingIndexRandomly): Changed the method signature.
  13229. * src/BitfieldMan.cc
  13230. (getNthBitIndex): Rewritten
  13231. (getMissingIndexRandomly): Rewritten.
  13232. (hasMissingPiece): Rewritten.
  13233. (getMissingIndex): Refactored.
  13234. (getMissingUnusedIndex); Refactored.
  13235. (getMissingIndex): Refactored.
  13236. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13237. * src/PeerMessage.h
  13238. (Piece.h): Included.
  13239. (SharedHandle.h): Included.
  13240. (invalidate): New variable.
  13241. (uploading): New variable.
  13242. (isInvalidate): New function.
  13243. (isUploading): New function.
  13244. (onPush): New function.
  13245. (onChoked): New function.
  13246. (onCanceled): New function.
  13247. (onAbortPiece): New function.
  13248. (PeerMessageHandle): New type definition.
  13249. * src/PeerMessage.cc
  13250. (PeerMessage): Added the initialization for invalidate and uploading.
  13251. * src/CancelMessage.h
  13252. (CancelMessage): Rewritten.
  13253. * src/RejectMessage.h
  13254. (RejectMessage): Rewritten.
  13255. * src/Metalinker.h
  13256. (operator=): Defined.
  13257. * src/MetaEntry.h
  13258. (operator=): Defined.
  13259. * src/MetalinkResource.h
  13260. (operator=): Defined.
  13261. * src/AllowedFastMessage.h
  13262. (AllowedFastMessage): Rewritten.
  13263. * src/HandshakeMessage.h
  13264. (HandshakeMessage): New function(overload).
  13265. * src/HandshakeMessage.cc
  13266. (HandshakeMessage): Rewritten.
  13267. (init): New function.
  13268. * src/HaveMessage.h
  13269. (HaveMessage): Rewritten.
  13270. * src/Time.h
  13271. (operator=): Defined the function body here.
  13272. * src/Time.cc
  13273. (operator=): Removed.
  13274. * src/SocketCore.h
  13275. (operator==): Defined here.
  13276. (operator!=): Defined here.
  13277. (operator<): Defined here.
  13278. * src/SocketCore.cc
  13279. (operator==): Removed.
  13280. (operator<): Removed.
  13281. * src/BitfieldMan.h
  13282. (operator=): Defined the function body here.
  13283. * src/BitfieldMan.cc
  13284. (operator=): Removed.
  13285. * src/TorrentMan.h
  13286. (deleteErrorPeer): Removed.
  13287. (deleteUnusedPeer); New function.
  13288. * src/TorrentMan.cc
  13289. (addPeer): Call deleteUnusedPeer.
  13290. (deleteErrorPeer): Removed.
  13291. (deleteUnusedPeer): New function.
  13292. * src/PeerAbstractCommand.h
  13293. (setNoCheck): New function.
  13294. (noCheck): New variable.
  13295. * src/PeerAbstractCommand.cc
  13296. (PeerAbstractCommand): Added the initialization of noCheck.
  13297. (execute): Added a check for noCheck.
  13298. (setNoCheck): New function.
  13299. * src/Util.h
  13300. (stdio.h): Included.
  13301. * src/Util.cc
  13302. (unistd.h): Included.
  13303. * src/DefaultDiskWriter.cc
  13304. (unistd.h): Included.
  13305. * src/Peer.h
  13306. (operator==): Defined the function body here.
  13307. (operator!=): Defined the function body here.
  13308. * src/Peer.cc
  13309. (operator==): Removed.
  13310. (operator!=): Removed.
  13311. * src/Piece.h
  13312. (Piece): Defined the function body here(copy constructor).
  13313. (operator=): Defined the function body here.
  13314. (operator==): Defined the function body here.
  13315. * src/Piece.cc
  13316. (Piece): Removed(copy constructor).
  13317. (operator=): Removed.
  13318. (operator==): Removed.
  13319. * src/PeerMessageUtil.h
  13320. (ChokeMessage.h): Removed.
  13321. (UnchokeMessage.h): Removed.
  13322. (InterestedMessage.h): Removed.
  13323. (NotInterestedMessage.h): Removed.
  13324. (HaveMessage.h): Removed.
  13325. (BitfieldMessage.h): Removed.
  13326. (RequestMessage.h): Removed.
  13327. (CancelMessage.h): Removed.
  13328. (PieceMessage.h): Removed.
  13329. (HandshakeMessage.h): Removed.
  13330. (KeepAliveMessage.h): Removed.
  13331. (PortMessage.h): Removed.
  13332. (HaveAllMessage.h): Removed.
  13333. (HaveNoneMessage.h): Removed.
  13334. (PeerConnection.h): Removed.
  13335. (HandshakeMessage.h): Included.
  13336. * src/BitfieldMessage.h
  13337. (init): New function.
  13338. (BitfieldMessage): Rewritten.
  13339. (BitfieldMessage): New function(overload).
  13340. * src/RequestSlot.h
  13341. (operator=): Defined the function body here.
  13342. (operator==): Defined the function body here.
  13343. * src/RequestSlot.cc
  13344. (operator=): Removed.
  13345. (operator==): Removed.
  13346. To remove the dependency on the PeerMessage subclass from
  13347. PeerInteraction:
  13348. * src/PeerMessageFactory.h: New class.
  13349. * src/PeerMessageFactory.cc: New class.
  13350. * src/SimplePeerMessage.cc
  13351. (send): If invalidate is true then do nothing.
  13352. * src/PeerInteractionCommand.cc
  13353. (HandshakeMessage.h): Included.
  13354. (KeepAliveMessage.h): Included.
  13355. (ChokeMessage.h): Included.
  13356. (UnchokeMessage.h): Included.
  13357. (HaveMessage.h): Included.
  13358. (executeInternal): Call setNoCheck().
  13359. Removed setWriteCheckSocket(socket).
  13360. * src/PeerInteraction.h
  13361. (ChokeMessage.h): Removed.
  13362. (UnchokeMessage.h): Removed.
  13363. (InterestedMessage.h): Removed.
  13364. (NotInterestedMessage.h): Removed.
  13365. (HaveMessage.h): Removed.
  13366. (BitfieldMessage.h): Removed.
  13367. (RequestMessage.h): Removed.
  13368. (CancelMessage.h): Removed.
  13369. (PieceMessage.h): Removed.
  13370. (HandshakeMessage.h): Removed.
  13371. (KeepAliveMessage.h): Removed.
  13372. (PortMessage.h): Removed.
  13373. (HaveAllMessage.h): Removed.
  13374. (HaveNoneMessage.h): Removed.
  13375. (RejectMessage.h): Removed.
  13376. (AllowedFastMessage.h): Removed.
  13377. (SuggestPieceMessage.h): Removed.
  13378. (PeerMessageFactory.h): Included.
  13379. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  13380. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  13381. (PeerMessageFactory): New variable.
  13382. (createPeerMessage): Removed.
  13383. (createHandshakeMessage): Removed.
  13384. (setPeerMessageCommonProperty): Removed.
  13385. (addRequestSlot): New function.
  13386. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13387. (getPeerMessageFactory): New function.
  13388. (createRequestMessage): Removed.
  13389. (createCancelMessage): Removed.
  13390. (createPieceMessage): Removed.
  13391. (createHaveMessage): Removed.
  13392. (createChokeMessage): Removed.
  13393. (createUnchokeMessage): Removed.
  13394. (createInterestedMessage): Removed.
  13395. (createNotInterestedMessage): Removed.
  13396. (createBitfieldMessage): Removed.
  13397. (createKeepAliveMessage): Removed.
  13398. (createHaveAllMessage): Removed.
  13399. (createHaveNoneMessage): Removed.
  13400. (createRejectMessage): Removed.
  13401. (createAllowedFastMessage): Removed.
  13402. * src/PeerInteraction.cc
  13403. (PeerInteraction): Allocate PeerMessageFactory here.
  13404. (~PeerInteraction): Deallocate PeerMessageFactory here.
  13405. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  13406. PieceMessage::ID.
  13407. (addMessage): Simplified by using PeerMessage::onPush().
  13408. (addRequestSlot): New function.
  13409. (rejectAllPieceMessageInQueue): Simplified by using
  13410. PeerMessage::onChoked().
  13411. (rejectPieceMessageInQueue): Simplified by using
  13412. PeerMessage::onCanceled().
  13413. (abortPiece): Simplified by using PeerMessage::abortPiece().
  13414. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13415. (createHandshakeMessage): Removed.
  13416. (createPeerMessage): Removed.
  13417. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  13418. (setPeerMessageCommonProperty): Removed.
  13419. (createRequestMessage): Removed.
  13420. (createCancelMessage): Removed.
  13421. (createPieceMessage): Removed.
  13422. (createHaveMessage): Removed.
  13423. (createChokeMessage): Removed.
  13424. (createUnchokeMessage): Removed.
  13425. (createInterestedMessage): Removed.
  13426. (createNotInterestedMessage): Removed.
  13427. (createBitfieldMessage): Removed.
  13428. (createKeepAliveMessage): Removed.
  13429. (createHaveAllMessage): Removed.
  13430. (createHaveNoneMessage): Removed.
  13431. (createRejectMessage): Removed.
  13432. (createAllowedFastMessage): Removed.
  13433. * src/PieceMessage.h
  13434. (createRejectMessage): New function.
  13435. (PieceMessage): Rewritten.
  13436. (onChoked): New function.
  13437. (onCanceled): New function.
  13438. * src/PieceMessage.cc
  13439. (send): If invalidate is true then do nothing, just return.
  13440. (createRejectMessage): New function.
  13441. (onChoked): New function.
  13442. (onCanceled): New function.
  13443. * src/RequestMessage.h
  13444. (RequestMessage): Rewritten.
  13445. (onPush): New function.
  13446. (onAbortPiece): New function.
  13447. * src/RequestMessage.cc
  13448. (onPush): New function.
  13449. (onAbortPiece): New function.
  13450. Update fd_set when a socket is added or deleted in order to improve
  13451. performance:
  13452. * src/DownloadEngine.h
  13453. (rfdset): New variable.
  13454. (wfdset): New variable.
  13455. (updateFdSet): New function.
  13456. * src/DownloadEngine.cc
  13457. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  13458. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  13459. (waitData): Copy rfdset and wfdset.
  13460. (updateFdSet): New function.
  13461. (addSocket): Call updateFdSet.
  13462. (deleteSocket): Call updateFdSet.
  13463. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13464. To add the support for Metalink3.0 backward compatible links:
  13465. * src/Request.h
  13466. (SAFE_CHARS): Added '#'.
  13467. (METALINK_MARK): New definition.
  13468. * src/Request.cc
  13469. (parseUrl): Added the support for Metalink3.0 backward compatible
  13470. links.
  13471. etc
  13472. * src/PeerInteraction.cc
  13473. (MsgPushBack): Removed.
  13474. (sendMessages): Use STL copy and back_inserter.
  13475. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  13476. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  13477. * src/TorrentMan.h
  13478. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  13479. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13480. * src/SharedHandle.h: New class.
  13481. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  13482. * src/HttpResponseCommand.h
  13483. (HttpResponseCommand): Wrapped Socket.
  13484. * src/SocketCore.h
  13485. (operator==): New function.
  13486. (operator!=): New function.
  13487. (operator<): New function.
  13488. (getSockfd): New function.
  13489. (isOpen): New function.
  13490. (writeData): New function.
  13491. * src/SocketCore.cc
  13492. (operator==): New function.
  13493. (operator!=): New function.
  13494. (operator<): New function.
  13495. * src/AbstractCommand.h
  13496. (socket): Changed its type to SocketHandle.
  13497. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13498. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13499. (disableReadCheckSocket): New function.
  13500. (disableWriteCheckSocket): New function.
  13501. (readCheckTarget): Changed its type to SocketHandle.
  13502. (writeCheckTarget): Changed its type to SocketHandle.
  13503. (AbstractCommand): Replaced Socket with SocketHandle.
  13504. * src/AbstractCommand.cc
  13505. (AbstractCommand): Replaced Socket with SocketHandle.
  13506. (~AbstractCommand): Removed the deallocation for Socket object.
  13507. (disableReadCheckSocket): New function.
  13508. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13509. (disableWriteCheckSocket): New function.
  13510. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13511. * src/HttpDownloadCommand.cc
  13512. (DownloadCommand): Replaced Socket with SocketHandle.
  13513. * src/PeerAbstractCommand.h
  13514. (socket): Changed its type to SocketHandle.
  13515. (peer): Changed its type to PeerHandle.
  13516. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13517. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13518. (disableReadCheckSocket): New function.
  13519. (disableWriteCheckSocket): New function.
  13520. (readCheckTarget): Changed its type to SocketHandle.
  13521. (writeCheckTarget): Changed its type to SocketHandle.
  13522. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13523. Replaced Peer with PeerHandle.
  13524. * src/HttpRequestCommand.cc
  13525. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13526. Use disableReadCheckSocket.
  13527. * src/PeerInitiateConnectionCommand.h
  13528. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13529. * src/PeerChokeCommand.cc
  13530. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  13531. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  13532. (execute): Use PeerHandle.
  13533. * src/PeerConnection.h
  13534. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  13535. (socket): Changed its type to SocketHandle.
  13536. (PeerConnection): Replaced Socket with SocketHandle.
  13537. * src/PeerConnection.cc
  13538. (PeerConnection): Replaced Socket with SocketHandle.
  13539. * src/PeerInteractionCommand.h
  13540. (PeerInteractionCommand): Replaced socket with SocketHandle.
  13541. Replaced Peer with PeerHandle.
  13542. * src/PeerInteractionCommand.cc
  13543. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  13544. Replaced Peer with PeerHandle.
  13545. (executeInternal): Use disableWriteCheckSocket.
  13546. Use HandshakeMessageHandle.
  13547. (receiveMessages): Use PeerMessageHandle.
  13548. (prepareForNextPeer): Use PeerHandle.
  13549. * src/HttpProxyRequestCommand.h
  13550. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13551. * src/HttpResponseCommand.cc
  13552. (HttpResponseCommand): Replaced Socket with SocketHandle.
  13553. * src/TorrentMan.cc
  13554. (nullPeer): Added external reference.
  13555. (~TorrentMan): Removed the deallocation of the elements of peers.
  13556. (addPeer): Rewritten.
  13557. (isPeerAvailable): Use nullPeer.
  13558. (deleteOldpeers): Replaced with deleteErrorPeer.
  13559. (deleteErrorPeer): New function.
  13560. (getPeer): Use PeerHandle and nullPeer.
  13561. (hasMissingPiece): Replaced Peer with PeerHandle.
  13562. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13563. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13564. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13565. (getMissingPiece): Replaced Peer with PeerHandle.
  13566. * src/FtpNegotiateCommand.cc
  13567. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  13568. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  13569. (recvGreeting): Use disableWriteCheckSocket.
  13570. (recvPasv): Removed the allocation of Socket.
  13571. Use disableReadCheckSocket.
  13572. (sendRestPasv): Use disableWriteCheckSocket.
  13573. (recvRetr): Changed assertion.
  13574. * src/PeerInteraction.h
  13575. (SharedHandle.h): Included SharedHandle.h.
  13576. (PeerMessageHandle): New type definition.
  13577. (HandshakeMessageHandle): New type definition.
  13578. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  13579. (peer): Changed its type to PeerHandle.
  13580. (createHandshakeMessage): Replaced HandshakeMessage with
  13581. HandshakeMessageHandle.
  13582. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  13583. (PeerInteraction): Replaced Peer with PeerHandle.
  13584. Replaced Socket with SocketHandle.
  13585. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13586. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13587. (receiveHandshake): Replaced HandshakeMessage with
  13588. HandshakeMessageHandle.
  13589. * src/PeerInteraction.cc
  13590. (PeerInteraction): Replaced Peer with PeerHandle.
  13591. Replaced Socket with SocketHandle.
  13592. (~PeerInteraction): Removed the deallocation of the elements of
  13593. messageQueue.
  13594. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  13595. (isSendingMessageInProgress): Replaced PeerMessage with
  13596. PeerMessageHandle.
  13597. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  13598. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13599. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  13600. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  13601. (abortPiece): Use PeerMessageHandle.
  13602. (receiveHandshake): Replaced HandshakeMessage with
  13603. HandshakeMessageHandle. Removed try-catch block.
  13604. (createHandshakeMessage): Replaced HandshakeMessage with
  13605. HandshakeMessageHandle.
  13606. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13607. Removed try-catch block.
  13608. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  13609. * src/HttpProxyResponseCommand.cc
  13610. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13611. * src/FtpTunnelResponseCommand.h
  13612. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13613. * src/HttpConnection.cc
  13614. (HttpConnection): Replaced Socket with SocketHandle.
  13615. * src/PeerAbstractCommand.cc
  13616. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13617. (~PeerAbstractCommand): Removed the deallocation of socket.
  13618. Use disableReadCheckSocket, disableWriteCheckSocket.
  13619. (disableReadCheckSocket): New function.
  13620. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13621. (disableWriteCheckSocket): New function.
  13622. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13623. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  13624. * src/FtpTunnelRequestCommand.cc
  13625. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13626. (~FtpTunnelRequestCommand): Corrected indentation.
  13627. * src/DownloadCommand.h
  13628. (DownloadCommand): Replaced Socket with SocketHandle.
  13629. * src/PeerListenCommand.cc
  13630. (PeerListenCommand): Removed the initialization of socket.
  13631. (~PeerListenCommand): Removed the deallocation of socket.
  13632. (bindPort): Use SocketHandle.
  13633. (execute): Use SocketHandle and PeerHandle.
  13634. * src/FtpDowndloadCommand.cc
  13635. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13636. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  13637. * src/main.cc
  13638. (main): Corrected indentation.
  13639. * src/HttpInitiateConnectionCommand.cc
  13640. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  13641. (executeInternal): Removed the allocation of socket.
  13642. * src/HttpRequestCommand.h
  13643. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13644. * src/FtpNegotiationCommand.h
  13645. (dataSocket): Changed its type to SocketHandle.
  13646. (serverSocket): Changed its type to SocketHandle.
  13647. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  13648. * src/TorrentMan.h
  13649. (MAX_PEER_UPDATE): Removed.
  13650. (MAX_PEERS): New definition.
  13651. (Peers): The element is now of type PeerHandle.
  13652. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  13653. (getPeer): Replaced Peer with PeerHandle.
  13654. (deleteOldErrorPeers): Removed.
  13655. (deleteErrorPeer): New function.
  13656. (hasMissingPiece): Replaced Peer with PeerHandle.
  13657. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13658. (getMissingPiece): Replaced Peer with PeerHandle.
  13659. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13660. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13661. (addActivePeer): Replaced Peer with PeerHandle.
  13662. (deleteActivePeer): Replaced Peer with PeerHandle.
  13663. Added a check for the return value of find.
  13664. * src/FtpTunnelResponseCommand.cc
  13665. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13666. * src/FtpInitiateConnectionCommand.cc
  13667. (executeInternal): Removed the allocation of socket.
  13668. * src/DownloadEngine.h
  13669. (Sockets): An element is now of type SocketHandle.
  13670. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  13671. (CommandUuids): New type definition.
  13672. (rsockets): Changed its type to SockCmdMap.
  13673. (wsockets): Changed its type to SockCmdMap.
  13674. (addSocket): Rewritten.
  13675. (deleteSocket): Rewritten.
  13676. (addSocketForReadCheck): Rewritten.
  13677. (deleteSocketForReadCheck): Rewritten.
  13678. (addSocketForWriteCheck): Rewritten.
  13679. (deleteSocketForWriteCheck): Rewritten.
  13680. (PairFind): New template class.
  13681. * src/HttpDownloadCommand.h
  13682. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  13683. * src/FtpConnection.cc
  13684. (FtpConnection): Replaced Socket with SocketHandle.
  13685. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  13686. block.
  13687. * src/InitiateConnectionCommandFactory.cc
  13688. (DlAbortEx.h): Included DlAbortEx.h.
  13689. (createInitiateConnectionCommand): Throw exception if the protocol of
  13690. requested URI is not supported.
  13691. * src/Peer.cc
  13692. (nullPeer): Changed its type to PeerHandle.
  13693. (operator==): New function.
  13694. (operator!=): New function.
  13695. * src/Peer.h
  13696. (SharedHandle.h): Included SharedHandle.h.
  13697. (operator==): New function.
  13698. (operator!=): New function.
  13699. (Peer): Added the default constructor.
  13700. Use resetStatus() to initialize member variables.
  13701. (nullPeer): Removed.
  13702. * src/TrackerUpdateCommand.cc
  13703. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  13704. with MIN_PEERS.
  13705. * src/PeerListenCommand.h
  13706. (socket): Changed its type to SocketHandle.
  13707. * src/Command.h
  13708. (CommandUuid): New type definition.
  13709. (uuid): New variable.
  13710. (uuidGen): New variable.
  13711. (Command): Added the initialization of uuid.
  13712. (getUuid): New function.
  13713. * src/Socket.h
  13714. (Socket): Removed.
  13715. (SocketHandle): New type definition.
  13716. * src/DownloadEngine.h
  13717. (FindCommand): New function object.
  13718. (run): The portion of socket check was rewritten.
  13719. (SetDescriptor): New function object.
  13720. (AccumulateActiveCommandUuid): New function object.
  13721. (waitData): Rewritten.
  13722. (addSocket): Rewritten.
  13723. (deleteSocket): Rewritten.
  13724. (addSocketForReadCheck): Rewritten.
  13725. (addSocketForWriteCheck): Rewritten.
  13726. (deleteSocketForReadCheck): Rewritten.
  13727. (deleteSocketForWriteCheck): Rewritten.
  13728. * src/HttpProxyResponseCommand.h
  13729. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  13730. * src/HttpConnection.h
  13731. (socket): Changed its type to SocketHandle.
  13732. (HttpConnection): Replaced Socket with SocketHandle.
  13733. * src/PeerInitiateConnectionCommand.cc
  13734. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13735. (executeInternal): Removed the allocation of socket.
  13736. (prepareForNextPeer): Use PeerHandle.
  13737. * src/PeerMessage.h
  13738. (peer): Changed its type to PeerHandle.
  13739. (getPeer): Replaced Peer with PeerHandle.
  13740. (setPeer): Replaced Peer with PeerHandle.
  13741. * src/DownloadCommand.cc
  13742. (DownloadCommand): Replaced Socket with SocketHandle.
  13743. * src/FtpConnection.h
  13744. (socket): Changed its type to SocketHandle.
  13745. (FtpConnection): Replaced Socket with SocketHandle.
  13746. (sendPort); Replaced Socket with SocketHandle.
  13747. * src/FtpDowndloadCommand.h
  13748. (ctrlSocket): Changed its type to SocketHandle.
  13749. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13750. * src/HttpProxyRequestCommand.cc
  13751. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13752. * src/FtpTunnelRequestCommand.h
  13753. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13754. etc
  13755. * src/PeerChokeCommand.h
  13756. (setAllPeerChoked): Removed.
  13757. (setAllPeerResetDelta): Removed.
  13758. * src/PeerChokeCommand.cc
  13759. (setAllPeerChoked): Removed.
  13760. (ChokePeer): New function object.
  13761. (setAllPeerResetDelta): Removed.
  13762. (ResetDelta): New function object.
  13763. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  13764. (execute): Show download speed when the local node is a seeder.
  13765. setAllPeerChoked and setAllPeerResetDelta were rewritten
  13766. using STL.
  13767. * src/TrackerWatcherCommand.h
  13768. (MIN_PEERS): Removed.
  13769. * src/TorrentMan.cc
  13770. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  13771. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13772. To fix the bug that .aria2 file is not saved if downloading is stopped
  13773. by the errors:it results that aria2 can not resume downloading:
  13774. * src/main.cc
  13775. (normalDownload): Added the call to save().
  13776. (main): Added the deletion of the elements in 'reserved'.
  13777. To fix log:
  13778. * src/PeerInteraction.cc
  13779. (receiveHandshake): Fixed log.
  13780. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13781. To improve download performance in BitTorrent:
  13782. * src/TorrentMan.cc
  13783. (getPeer): Check the number of connections. Return nullPeer if
  13784. it is greater than MAX_PEER_UPDATE.
  13785. This code was originally here, but was removed in 0.5.1.
  13786. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13787. To improve the conditional compilation:
  13788. * src/MultiDiskWriter.h:
  13789. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13790. * src/MultiDiskWriter.cc:
  13791. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13792. * src/Util.h:
  13793. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13794. Added ENABLE_BITTORRENT around computeFastSet().
  13795. * src/Util.cc:
  13796. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13797. Added ENABLE_BITTORRENT around computeFastSet().
  13798. * src/messageDigest.h:
  13799. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  13800. * src/ShaVisitor.h:
  13801. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13802. * src/ShaVisitor.cc:
  13803. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13804. * src/main.cc:
  13805. Added ENABLE_BITTORRENT around includes and blocks related to
  13806. BitTorrent.
  13807. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  13808. digest support is not available.
  13809. * src/AbstractDiskWriter.h:
  13810. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13811. * src/AbstractDiskWriter.cc:
  13812. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13813. * src/MetalinkEntry.cc
  13814. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  13815. support is not available.
  13816. To add command-line options for Metalink:
  13817. * src/main.cc:
  13818. Added metalink-version, metalink-language, metalink-os,
  13819. follow-metalink.
  13820. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  13821. * src/main.cc: Use these definition.
  13822. * Release 0.6.0
  13823. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13824. To add Metalink support(http/ftp only):
  13825. * src/AbstractCommand.h
  13826. (tryReserved): New function.
  13827. * src/AbstractCommand.cc
  13828. (execute): Call tryReserved().
  13829. (tryReserved): New function.
  13830. * src/Request.h
  13831. (Requests): New type definition.
  13832. * src/SegmentMan.h
  13833. (reserved): New variable.
  13834. * src/Util.h
  13835. (fileChecksum): New function.
  13836. (toUpper): New function.
  13837. (toLower): New function.
  13838. * src/Util.cc
  13839. (messageDigest.h): Included.
  13840. (trim): Trim \r\n\t.
  13841. (fileChecksum): New function.
  13842. (toUpper): New function.
  13843. (toLower): New function.
  13844. * src/main.cc
  13845. (normalDownload): New function.
  13846. (main): Added 2 command-line options: metalink-file,
  13847. metalink-connection. Their usage has not been written yet.
  13848. * src/MetalinkProcessor.h: New class.
  13849. * src/Xml2MetalinkProcessor.h: New class.
  13850. * src/Xml2MetalinkProcessor.cc: New class.
  13851. * src/MetalinkEntry.h: New class.
  13852. * src/MetalinkEntry.cc: New class.
  13853. * src/MetalinkResource.h: New class.
  13854. * src/MetalinkResource.cc: New class.
  13855. To add md5 message digest checking:
  13856. * src/messageDigest.h: Rewritten.
  13857. * src/MultiDiskWriter.cc: Updated according to the changes in
  13858. messageDigest.h.
  13859. * src/ShaVisitor.cc: Updated according to the changes in
  13860. messageDigest.h.
  13861. * src/Util.cc: Updated according to the changes in messageDigest.h.
  13862. * src/AbstractDiskWriter.cc: Updated according to the changes in
  13863. messageDigest.h.
  13864. To fix a bug that causes segfault when the payload length in peer
  13865. message is less than 0:
  13866. * src/PeerConnection.cc:
  13867. (receiveMessage): Fixed the bug.
  13868. * src/PeerMessageUtil.cc
  13869. (checkLength): Throw an exception if length is less than or equals to
  13870. 0.
  13871. To add new interfaces to Base64 encoding/decoding:
  13872. * src/Base64.h
  13873. (part_encode): Changed the method signature.
  13874. (encode): New function(overload).
  13875. (decode): New function(overload).
  13876. * src/Base64.cc
  13877. (part_encode): Rewritten.
  13878. (encode): Rewritten.
  13879. (encode): New function(overload).
  13880. To prevent a peer to download same piece if there is an error in
  13881. checksum:
  13882. * src/PieceMessage.cc
  13883. (receivedAction): Call peerInteraction->abortPiece().
  13884. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13885. To fix the bug that causes same have message is sent many times to
  13886. a single peer.
  13887. * src/Time.cc
  13888. (isNewer): Use Util::difftv().
  13889. * src/Util.cc
  13890. (difftv): Added a cast to (long long int).
  13891. * src/TorrentMan.cc
  13892. (advertisePiece): Use push_front.
  13893. (getAdvertisedPieceIndexes): A performance improvement was made.
  13894. To fix the bug that sends tracker requests without a sleep interval
  13895. when the number of connections is less than 15.
  13896. * src/TrackerWatcherCommand.cc
  13897. (execute): Now the number of connections is not a factor to decide
  13898. whether or not a tracker request should be sent or not.
  13899. * src/Time.h
  13900. (setTimeInSec): New function.
  13901. * src/Time.cc
  13902. (setTimeInSec): New function.
  13903. etc.
  13904. * src/ChokeMessage.cc
  13905. (receivedAction): Removed peer->snubbing = false
  13906. * src/PeerConnection.h
  13907. (receiveHandshake): Updated doc.
  13908. * src/TorrentMan.h
  13909. (getAdvertisedPieceIndexes): Updated the method signature.
  13910. * src/TorrentMan.cc
  13911. (getAdvertisedPieceIndexes): Updated the method signature.
  13912. * src/Time.h
  13913. (getTimeInMicros): Added a cast to (long long int).
  13914. (getTimeInMillis): Added a cast to (long long int).
  13915. * Release 0.5.2
  13916. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13917. To make a listening socket non-block:
  13918. * src/SocketCore.h
  13919. (setNonBlockingMode): New function.
  13920. * src/SocketCore.cc
  13921. (setNonBlockingMode): New function.
  13922. (beginListen): Added a call to setNonBlockingMode().
  13923. (acceptConnection): Call setNonBlockingMode().
  13924. (setBlockingMode): Updated.
  13925. To handle tracker's NAT-checking:
  13926. * src/PeerConnection.cc
  13927. (receiveHandshake): 'msg' param is filled with received data and
  13928. its length is assigned to 'length' param, even if all handshake
  13929. message is not yet received.
  13930. * src/PeerInteractionCommand.cc
  13931. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  13932. a new peer connects to localhost.
  13933. A call to peerInteraction->sendHandshake() was removed because
  13934. it is called from peerInteraction->receiveHandshake(true).
  13935. * src/PeerInteraction.h
  13936. (quickReplied): New variable.
  13937. (receiveHandshake): Added an argument.
  13938. * src/PeerInteraction.cc
  13939. (PeerInteraction): Added the initialization of quickReplied.
  13940. (receiveHandshake): Send handshake message as soon as the info hash
  13941. in a handshake message from a peer is correct.
  13942. To change the random part of peer id and key parameter:
  13943. * src/TorrentMan.h
  13944. (key): New variable.
  13945. * src/TorrentMan.cc
  13946. (setupInternal1): Use Util::randomAlpha() to generate random part
  13947. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  13948. key is also generated by Util::randomAlpha() and it is now 8 character
  13949. long.
  13950. * src/Util.h
  13951. (randomAlpha): New function.
  13952. * src/Util.cc
  13953. (randomAlpha): New function.
  13954. * src/TrackerWatcherCommand.cc
  13955. (execute): In a tracker request: Use torrentMan->key as key parameter.
  13956. Added no_peer_id=1.
  13957. Set snubbing flag to false when a choke message is received from a
  13958. snubbed peer.
  13959. * src/ChokeMessage.cc
  13960. (receivedAction): Set snubbing flag to false.
  13961. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13962. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  13963. * src/SimpleLogger.h (writeHeader): New function.
  13964. * src/SimpleLogger.cc (writeHeader): New function.
  13965. (writeLog): Fixed the bug that causes segfaults if exception message
  13966. contains an unescaped "%" character.
  13967. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  13968. when a tracker request fails.
  13969. * src/Request.cc (parseUrl): Query string is now handled properly.
  13970. * Release 0.5.1
  13971. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13972. To add Time class which represents a specific instant in time and
  13973. its precision is microseconds. Time checking procedures were rewritten
  13974. using this object.
  13975. * src/Time.h: New class.
  13976. * src/Time.cc: New class.
  13977. * src/AbstractCommand.h
  13978. (updateCheckPoint): Removed.
  13979. (isTimeoutDetected): Removed.
  13980. (checkPoint): Changed the type to Time.
  13981. (timeout): New variable.
  13982. (setTimeout): New function.
  13983. * src/AbstractCommand.cc
  13984. (AbstractCommand): Removed the initialization of checkPoint.
  13985. Added the initialization of timeout.
  13986. (updateCheckPoint): Removed.
  13987. (isTimeoutDetected): Removed.
  13988. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  13989. * src/PeerChokeCommand.h
  13990. (checkPoint): Changed the type to Time.
  13991. * src/PeerChokeCommand.cc
  13992. (PeerChokeCommand): Removed the initialization of checkPoint.
  13993. (execute): Rewritten using Time object.
  13994. * src/TrackerWatcherCommand.h
  13995. (checkPoint): Changed the type to Time.
  13996. * src/TrackerWatcherCommand.cc
  13997. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  13998. (execute): Rewritten.
  13999. * src/ConsoleDownloadEngine.h
  14000. (cp): Changed the type to Time.
  14001. (startup): Changed the type to Time.
  14002. * src/ConsoleDownloadEngine.cc
  14003. (initStatistics): Use cp.reset(), startup.reset().
  14004. (calculateStatistics): Rewritten using Time object.
  14005. * src/PeerAbstractCommand.h
  14006. (updateCheckPoint): Removed.
  14007. (isTimeoutDetected): Removed.
  14008. (checkPoint): Changed the type to Time.
  14009. * src/PeerAbstractCommand.cc
  14010. (PeerAbstractCommand): Removed the initialization of checkPoint.
  14011. (updateCheckPoint): Removed.
  14012. (isTimeoutDetected): Removed.
  14013. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  14014. * src/PeerInteractionCommand.cc
  14015. (PeerInteractionCommand): Removed the initializations of struct
  14016. timeval variables.
  14017. * src/PeerInteractionCommand.h
  14018. (keepAliveCheckPoint): Changed the type to Time.
  14019. (chokeCheckPoint): Changed the type to Time.
  14020. (freqCheckPoint): Changed the type to Time.
  14021. (haveCheckTime): Changed the type to Time.
  14022. * src/PeerInteractionCommand.cc
  14023. (executeInternal): Rewritten using Time object.
  14024. (detectMessageFlooding): Rewritten using Time object.
  14025. (checkLongTimePeerChoking): Rewritten using Time object.
  14026. (sendKeepAlive): Rewritten using Time object.
  14027. (checkHave): Rewritten using Time object.
  14028. * src/SleepCommand.h
  14029. (checkPoint): Changed the type to Time.
  14030. * src/SleepCommand.cc
  14031. (SleepCommand): Removed the initialization of checkPoint.
  14032. (execute): Rewritten using Time object.
  14033. * src/TorrentAutoSaveCommand.h
  14034. (checkPoint): Changed the type to Time.
  14035. * src/TorrentAutoSaveCommand.cc
  14036. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  14037. (execute): Rewritten.
  14038. * src/DownloadCommand.h
  14039. (sw): Changed the type to Time.
  14040. * src/DownloadCommand.cc
  14041. (DownloadCommand): Removed the initialization of sw.
  14042. (executeInternal): Rewritten.
  14043. * src/RequestSlot.h
  14044. (dispatchedTime): Changed the type to Time.
  14045. * src/RequestSlot.cc
  14046. (RequestSlot): Removed the call to setDispatchedTime().
  14047. (setDispatchedTime): Rewirtten.
  14048. (isTimeout): Rewritten.
  14049. (getLatencyInMillis): Rewritten.
  14050. * src/TorrentDownloadEngine.h
  14051. (cp): Changed the type to Time[2].
  14052. (startup): Changed the type to Time.
  14053. * src/TorrentDownloadEngine.cc
  14054. (initStatistics): Rewritten.
  14055. (calculateStatistics): Rewritten.
  14056. * src/DownloadEngine.cc
  14057. (run): Rewritten.
  14058. To detect all attempts to connect to the tracker are failed:
  14059. * src/AbstractCommand.cc
  14060. (execute): Increment e->segmentMan->errors if a command aborted.
  14061. * src/SegmentMan.h
  14062. (errors): New variable.
  14063. * src/SegmentMan.cc
  14064. (SegmentMan): Added the initialization of errors.
  14065. (init): Added the initialization of errors.
  14066. * src/TrackerWatcherCommand.cc
  14067. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  14068. request was failed.
  14069. To handle snubbed peers:
  14070. * src/PeerChokeCommand.cc
  14071. (optUnchokingPeer): Snubbed peers don't get unchoked.
  14072. (execute): Snubbed peers don't get unchoked.
  14073. * src/PeerInteraction.h
  14074. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  14075. * src/PeerInteraction.cc
  14076. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  14077. back the requested 16k block in 60 seconds.
  14078. * src/PieceMessage.cc
  14079. (receivedAction): A peer's snubbed state is cleard if it sends
  14080. the requested 16k block in 60 seconds.
  14081. * src/Peer.h
  14082. (snubbing): New variable.
  14083. * src/Peer.cc
  14084. (resetStatus): Added snubbed = false.
  14085. To fix the bug that causes have message is not sent:
  14086. * src/PeerInteractionCommand.cc
  14087. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  14088. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  14089. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  14090. * src/TorrentMan.h
  14091. (HaveEntry): New class.
  14092. (advertisePiece): Rewritten.
  14093. (getAdvertisedPieceIndexes): Rewritten.
  14094. (Haves): Changed the type.
  14095. (getAdvertisedPieceIndexes): Added an argument.
  14096. Others:
  14097. * src/TorrentMan.h
  14098. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  14099. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  14100. * src/TorrentMan.cc
  14101. (getPeer): Don't check the number of connections here.
  14102. (setupInternal1): Changed peerId.
  14103. * src/PeerInteractionCommand.h
  14104. (KEEP_ALIVE_INTERVAL): New definition.
  14105. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  14106. * src/main.cc
  14107. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  14108. * src/DownloadEngine.h: Removed unnecessary header includes.
  14109. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14110. To fix the bug that causes segfaults if a tracker returns a zero-length
  14111. list as "peers":
  14112. * src/TrackerUpdateCommand.cc
  14113. (execute): Added a check to see wether the type of peers is Data*.
  14114. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14115. * Release 0.5.0
  14116. To fix compile issue with gcc3:
  14117. * src/CancelMessage.h
  14118. (ID): Renamed as ID_t
  14119. (ID_t): New enum.
  14120. * src/RejectMessage.h
  14121. (ID): Renamed as ID_t
  14122. (ID_t): New enum.
  14123. * src/SuggestPieceMessage.h
  14124. (ID): Renamed as ID_t
  14125. (ID_t): New enum.
  14126. * src/AllowedFastMessage.h
  14127. (ID): Renamed as ID_t
  14128. (ID_t): New enum.
  14129. * src/PortMessage.h
  14130. (ID): Renamed as ID_t
  14131. (ID_t): New enum.
  14132. * src/HaveNoneMessage.h
  14133. (ID): Renamed as ID_t
  14134. (ID_t): New enum.
  14135. * src/KeepAliveMessage.h
  14136. (ID): Renamed as ID_t
  14137. (ID_t): New enum.
  14138. * src/HaveAllMessage.h
  14139. (ID): Renamed as ID_t
  14140. (ID_t): New enum.
  14141. * src/UnchokeMessage.h
  14142. (ID): Renamed as ID_t
  14143. (ID_t): New enum.
  14144. * src/BitfieldMessage.h
  14145. (ID): Renamed as ID_t
  14146. (ID_t): New enum.
  14147. * src/PieceMessage.h
  14148. (ID): Renamed as ID_t
  14149. (ID_t): New enum.
  14150. * src/RequestMessage.h
  14151. (ID): Renamed as ID_t
  14152. (ID_t): New enum.
  14153. * src/NotInterestedMessage.h
  14154. (ID): Renamed as ID_t
  14155. (ID_t): New enum.
  14156. * src/ChokeMessage.h
  14157. (ID): Renamed as ID_t
  14158. (ID_t): New enum.
  14159. * src/InterestedMessage.h
  14160. (ID): Renamed as ID_t
  14161. (ID_t): New enum.
  14162. * src/HaveMessage.h
  14163. (ID): Renamed as ID_t
  14164. (ID_t): New enum.
  14165. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14166. * src/PeerAbstractCommand.h
  14167. (beforeSocketCheck): Removed.
  14168. * src/PeerAbstractCommand.cc
  14169. Modified in order to call executeInternal() even if socket check
  14170. and upload limit check fail.
  14171. * src/PeerInteractionCommand.h
  14172. (keepAlive): Removed.
  14173. (sendKeepAlive): New function.
  14174. (checkHave): New function.
  14175. (beforeSocketCheck): Removed.
  14176. * src/PeerInteractionCommand.cc
  14177. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  14178. calls to checkHave() and sendKeepAlive().
  14179. (keepAlive): Renamed to sendKeepAlive().
  14180. (sendKeepAlive): New function.
  14181. (beforeSocketCheck): Removed.
  14182. (checkHave): New function.
  14183. * src/BitfieldMan.cc
  14184. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  14185. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  14186. 0.
  14187. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  14188. * src/TorrentMan.h
  14189. (UsedPieces): Removed.
  14190. (Pieces): New type definition.
  14191. * src/Piece.h: Updated doc.
  14192. * src/Peer.h
  14193. (totalLength): Removed.
  14194. * src/Peer.cc
  14195. (updateLatency): Fixed the latency calculation.
  14196. * src/TorrentMan.cc
  14197. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  14198. than or equal to MAX_PEER_LIST_SIZE.
  14199. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  14200. then return false.
  14201. (deleteOldErrorPeers): Rewritten.
  14202. (deleteUsedPiece): Fixed the miss use of STL remove.
  14203. * src/PeerInteraction.h
  14204. (Pieces): Removed.
  14205. (deleteTimeoutRequestSlot): Removed.
  14206. (deleteCompletedRequestSlot): Removed.
  14207. (checkRequestSlot): New function.
  14208. * src/PeerInteraction.cc
  14209. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  14210. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  14211. (checkRequestSlot): New function.
  14212. * src/DownloadEngine.cc
  14213. (run): Clear activeSockets before calling waitData().
  14214. (waitData): Removed a call to activeSockets.clear().
  14215. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14216. To attempt to handle EINTR:
  14217. * src/SocketCore.cc
  14218. (isReadable): Added EINTR handling.
  14219. (isWritable): Added EINTR handling.
  14220. To improve the performance:
  14221. * src/AbstractCommand.cc
  14222. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14223. * src/PeerInteractionCommand.h
  14224. (receiveMessage): Renamed as receiveMessages().
  14225. (receiveMessages): New function.
  14226. * src/PeerInteractionCommand.cc
  14227. (executeInternal): receiveMessage loop is moved to new receiveMessages
  14228. () function. detectMessageFlooding() is moved here.
  14229. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  14230. (). The flooding detection for have message is comment out.
  14231. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  14232. Util::difftv().
  14233. (receiveMessage): Renamed as receiveMessages().
  14234. (receiveMessages): New function.
  14235. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  14236. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  14237. * src/SleepCommand.cc
  14238. (execute): Use Util::difftvsec() instead of Util::difftv().
  14239. * src/BitfieldMan.h
  14240. (getNthBitIndex): New function.
  14241. (hasMissingPiece): New function.
  14242. (getAllMissingIndexes): New function.
  14243. * src/BitfieldMan.cc
  14244. (countSetBit): Rewritten.
  14245. (getNthBitIndex): New function.
  14246. (getMissingIndexRandomly): Rewritten.
  14247. (hasMissingPiece): New function.
  14248. (getAllMissingIndexes): New function.
  14249. * src/TorrentMan.cc
  14250. (hasMissingPiece): New function.
  14251. (deleteUsedPiece): Rewritten using STL.
  14252. * src/PeerInteraction.cc
  14253. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  14254. is a little bit faster then TorrentMan::getMissingPieceIndex().
  14255. (addRequests): Updated the number of pending requests.
  14256. * src/PeerAbstractCommand.cc
  14257. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14258. (execute): Returns true if TorrentMan::isHalt() is true.
  14259. Corrected the condition of upload limit checking.
  14260. * src/Util.h
  14261. (countBit): New function.
  14262. * src/Util.cc
  14263. (nbits): New variable.
  14264. (countBit): New function.
  14265. * src/DownloadEngine.h
  14266. (SockCmdMap): New type definition.
  14267. (waitData): Added an argument.
  14268. (addSocket): Added an argument.
  14269. (addSocketForReadCheck): Added an argument.
  14270. (addSocketForWriteCheck): Added an argument.
  14271. * src/DownloadEngine.cc
  14272. (run): Executes only commands whose sockets are ready to read or write.
  14273. All commands are executed in every 1 second.
  14274. (waitData): Calls select() again if it returned
  14275. EINTR.
  14276. (addSocket): Saves socket and command object pair to the map.
  14277. (deleteSocket): Deletes socket and command object pair from the map.
  14278. (addSocketForReadCheck): Added an argument.
  14279. (addSocketForWriteCheck): Added an argument.
  14280. * src/DownloadCommand.cc
  14281. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  14282. To send "event=stopped" to the tracker when the application finishes:
  14283. * src/PeerChokeCommand.h
  14284. (checkPoint): New variable.
  14285. * src/PeerChokeCommand.cc
  14286. (PeerChokeCommand): Added the initialization of checkPoint.
  14287. (execute): The interval check is now done by checkPoint, not
  14288. SleepCommand. Return true if TorrentMan::isHalt() is true.
  14289. * src/TorrentMan.h
  14290. (halt): New function.
  14291. (hasMissingPiece): New function.
  14292. (isHalt): New function.
  14293. (setHalt): New function.
  14294. * src/TorrentMan.cc
  14295. (TorrentMan): Added the initialization of halt.
  14296. * src/TorrentAutoSaveCommand.h
  14297. (checkPoint): New variable.
  14298. * src/PeerListenCommand.cc
  14299. (execute): Returns true if TorrentMan::isHalt() is true.
  14300. * src/main.cc
  14301. (setSignalHander): Added flags argument.
  14302. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  14303. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  14304. Removed printDownloadAbortMessage() after torrent downloading loop.
  14305. * src/TorrentAutoSaveCommand.cc
  14306. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  14307. (execute): Returns true if TorrentMan::isHalt() is true.
  14308. The interval check is now done by checkPoint, not SleepCommand.
  14309. * src/TrackerWatcherCommand.cc
  14310. (execute): If TorrentMan::isHalt(), then create a tracker request with
  14311. event=stopped.
  14312. * src/TrackerUpdateCommand.cc
  14313. (prepareForRetry): Do not use SleepCommand here.
  14314. (execute): Returns true if TorrentMan::isHalt() is true.
  14315. Others:
  14316. * src/TorrentMan.cc
  14317. (getMissingPieceIndex): Updated log message.
  14318. * src/PeerInteraction.cc
  14319. (createPeerMessag): Updated log message.
  14320. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14321. To add the ability to download several pieces in mix in a command and
  14322. increase the number of request slots according to request-cancel
  14323. latency:
  14324. * src/PeerInteractionCommand.cc
  14325. (executeInternal): The number of messages to be received at a time
  14326. is increased from 10 to 50.
  14327. * src/LogFactory
  14328. (getInstance): Added NullLogger.
  14329. * src/NullLogger.h: New class.
  14330. * src/BitfieldMan.h
  14331. (getMissingIndex): New function.
  14332. * src/BitfieldMan.cc
  14333. (getMissingIndex): New function.
  14334. * src/TorrentMan.h
  14335. (checkOutPiece): New function.
  14336. (getMissingPieceIndex): New function.
  14337. (getMissingFastPieceIndex): New function.
  14338. (getMissingFastPiece): New function.
  14339. * src/TorrentMan.cc
  14340. (updatePiece): Rewritten using STL.
  14341. (syncPiece): Rewritten using STL.
  14342. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  14343. checkOutPiece().
  14344. (getMissingPieceIndex): New function.
  14345. (getMissingFastPieceIndex): New function.
  14346. (getMissingFastPiece): New function.
  14347. (checkOutPiece): New function.
  14348. * src/PeerInteraction.h
  14349. (Pieces): New type definition.
  14350. (piece): Removed.
  14351. (pieces): New variable.
  14352. (getNewPieceAndSendInterest): Added the "piece" argument.
  14353. (abortPiece): Added the "piece" argument.
  14354. (abortAllPieces): New function.
  14355. (isInRequestSlot): New function.
  14356. (hasDownloadPiece): Added the "index" argument.
  14357. (setDownloadPiece): Removed.
  14358. (getDownloadPiece): Added the "index" argument.
  14359. (updatePiece): New function.
  14360. (createRequestMessage): Added the "index" argument.
  14361. * src/PeerInteraction.cc
  14362. (onChoked): Rewritten.
  14363. (abortPiece): Rewirtten.
  14364. (abortAllPieces): New function.
  14365. (deleteTimeoutRequestSlot): Rewritten.
  14366. Clarified code a little bit.
  14367. (deleteCompletedRequestSlot): Rewritten.
  14368. (isInRequestSlot): New function.
  14369. (syncPiece): Rewritten.
  14370. (updatePiece): New function.
  14371. (getNewPieceAndSendInterest): Rewritten.
  14372. (addRequests): Rewritten.
  14373. (getDownloadPiece): Rewritten.
  14374. (hasDownloadPiece): Rewritten.
  14375. (createRequestMessage): Added the "index" argument.
  14376. * src/common.h
  14377. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  14378. (DIV_FLOOR): New definition.
  14379. * src/PieceMessage.cc
  14380. (receivedAction): Update request-piece latency here.
  14381. * src/RequestSlot.h
  14382. (getLatencyInMillis): New function.
  14383. * src/RequestSlot.cc
  14384. (isTimeout): Rewritten using getLatencyInMillis.
  14385. (getLatencyInMillis): New function.
  14386. * src/Piece.h
  14387. (operator==): New function.
  14388. (getMissingBlockIndex): New function.
  14389. * src/Piece.cc
  14390. (operator==): New function.
  14391. (getMissingBlockIndex): New function.
  14392. * src/Peer.h
  14393. (DEFAULT_LATENCY): New definition.
  14394. (latency): New variable.
  14395. (updateLatency): New function.
  14396. (getLatency): New function.
  14397. * src/Peer.cc
  14398. (resetStatus): Reset latecy.
  14399. (updateLatency): New function.
  14400. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14401. * src/SocketCore.cc
  14402. (isReadable): Added secure to the condition.
  14403. * src/HttpConnection.cc
  14404. (receiveResponse): Fixed a bug that causes no response header
  14405. exception.
  14406. * src/Peer.h
  14407. (getFastSet): Fixed the return value type.
  14408. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14409. To remove a wait from download loop:
  14410. * src/DownloadEngine.cc
  14411. (run): Comment out shortSleep.
  14412. To rewrite the message handling:
  14413. * src/SimplePeerMessage.h: New class.
  14414. * src/SimplePeerMessage.cc: New class.
  14415. * src/CancelMessage.h: Derived from SimplePeerMessage.
  14416. (msg): New variable.
  14417. (create): New function.
  14418. (send): Removed.
  14419. (getMessage): New function.
  14420. (getMessageLength): New function.
  14421. * src/CancelMessage.cc
  14422. (create): New function.
  14423. (receivedAction): Replaced deleteRequestMessageInQueue with
  14424. rejectPieceMessageInQueue.
  14425. (send): Removed.
  14426. (getMessage): New function.
  14427. (getMessageLength): New function.
  14428. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  14429. (msg): New variable.
  14430. (msgLength): New variable.
  14431. (~BitfieldMessage): Deleted msg.
  14432. (send): Removed.
  14433. (getMessage): New function.
  14434. (getMessageLength): New function.
  14435. * src/BitfieldMessage.cc
  14436. (create): New function.
  14437. (send): Removed.
  14438. (getMessage): New function.
  14439. (getMessageLength): New function.
  14440. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  14441. (msg): New variable.
  14442. (sendPredicate): New function.
  14443. (onSendComplete): New function.
  14444. (send): Removed.
  14445. (getMessage): New function.
  14446. (getMessageLength): New function.
  14447. (create): New function.
  14448. * src/ChokeMessage.cc
  14449. (create): New function.
  14450. (send): Removed.
  14451. (sendPredicate): New function.
  14452. (getMessage): New function.
  14453. (getMessageLength): New function.
  14454. (onSendComplete): New function.
  14455. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  14456. (msg): New variable.
  14457. (send): Removed.
  14458. (getMessage): New function.
  14459. (getMessageLength): New function.
  14460. * src/KeepAliveMessage.cc
  14461. (send): Removed.
  14462. (getMessage): New function.
  14463. (getMessageLength): New function.
  14464. * src/PortMessage.h
  14465. (create): New function.
  14466. (receivedAction): Updated log message.
  14467. * src/PortMessage.cc: New file.
  14468. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  14469. (msg): New variable.
  14470. (sendPredicate): New function.
  14471. (onSendComplete): New function.
  14472. (create): New function.
  14473. (send): Removed.
  14474. (getMessage): New function.
  14475. (getMessageLength): New function.
  14476. * src/UnchokeMessage.cc
  14477. (create): New function.
  14478. (send): Removed.
  14479. (sendPredicate): New function.
  14480. (getMessage): New function.
  14481. (getMessageLength): New function.
  14482. (onSendComplete): New function.
  14483. * src/PieceMessage.h
  14484. (leftPieceDataLength): Removed.
  14485. (leftDataLength): New variable.
  14486. (headerSend): New variable.
  14487. (pendingCount): New variable.
  14488. (msgHeader): New variable.
  14489. (sendPieceData): New function.
  14490. (incrementPendingCount): New function.
  14491. (isPendingCountMax): New function.
  14492. (create): New function.
  14493. (getMessageHeader): New function.
  14494. (getMessageHeaderLength): New function.
  14495. * src/PieceMessage.cc
  14496. (create): New function.
  14497. (getMessageHeader): New function.
  14498. (getMessageHeaderLength): New function.
  14499. (send): Rewritten.
  14500. (sendPieceData): New function.
  14501. * src/HaveMessage.h: Derived from SimplePeerMessage.
  14502. (msg): New variable.
  14503. (create): New function.
  14504. (getMessage): New function.
  14505. (getMessageLength): New function.
  14506. * src/HaveMessage.cc
  14507. (create): New function.
  14508. (send): Removed.
  14509. (sendPieceData): New function.
  14510. (getMessage): New function.
  14511. (getMessageLength): New function.
  14512. * src/RequestMessage.h: Derived from SimplePeerMessage.
  14513. (msg): New variable.
  14514. (create): New function.
  14515. (send): Removed.
  14516. (getMessage): New function.
  14517. (getMessageLength): New function.
  14518. * src/RequestMessage.cc
  14519. (create): New function.
  14520. (receivedAction): Added the handling of fast extension.
  14521. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  14522. (send): Removed.
  14523. (getMessage): New function.
  14524. (getMessageLength): New function.
  14525. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  14526. (msg): New variable.
  14527. (sendPredicate): New function.
  14528. (onSendComplete): New function.
  14529. (create): New function.
  14530. (getMessage): New function.
  14531. (getMessageLength): New function.
  14532. * src/InterestedMessage.cc
  14533. (create): New function.
  14534. (send): Removed.
  14535. (sendPieceData): New function.
  14536. (getMessage): New function.
  14537. (getMessageLength): New function.
  14538. (onSendComplete): New function.
  14539. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  14540. (msg): New variable.
  14541. (sendPieceData): New function.
  14542. (onSendComplete): New function.
  14543. (create): New function.
  14544. (send): Removed.
  14545. (getMessage): New function.
  14546. (getMessageLength): New function.
  14547. * src/NotInterestedMessage.cc
  14548. (create): New function.
  14549. (send): Removed.
  14550. (sendPredicate): New function.
  14551. (getMessage): New function.
  14552. (getMessageLength): New function.
  14553. (onSendComplete): New function.
  14554. * src/AllowedFastMessage.h: New class.
  14555. * src/AllowedFastMessage.cc: New class.
  14556. * src/RejectMessage.h: New class.
  14557. * src/RejectMessage.cc: New class.
  14558. * src/SuggestPieceMessage.h: New class.
  14559. * src/SuggestPieceMessage.cc: New class.
  14560. * src/HaveAllMessage.h: New class.
  14561. * src/HaveAllMessage.cc: New class.
  14562. * src/HaveNoneMessage.h: New class.
  14563. * src/HaveNoneMessage.cc: New class.
  14564. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  14565. (msg): New variable.
  14566. (reserved): New variable.
  14567. (create): New function.
  14568. (getId): New function.
  14569. (receivedAction): New function.
  14570. (getMessage): New function.
  14571. (getMessageLength): New function.
  14572. (isFastExtensionSupported): New function.
  14573. * src/HandshakeMessage.cc
  14574. (HandshakeMessage): Moved here from HandshakeMessage.h.
  14575. (create): New function.
  14576. (getMessage): New function.
  14577. (getMessageLength): New function.
  14578. (toString): Added the output of reserved field.
  14579. (check): Added const qualifier.
  14580. (isFastExtensionSupported): New function.
  14581. * src/PeerMessageUtil.h
  14582. (createChokeMessage): Removed.
  14583. (createUnchokeMessage): Removed.
  14584. (createInterestedMessage): Removed.
  14585. (createNotInterestedMessage): Removed.
  14586. (createHaveMessage): Removed.
  14587. (createBitfieldMessage): Removed.
  14588. (createRequestMessage): Removed.
  14589. (createCancelMessage): Removed.
  14590. (createPieceMessage): Removed.
  14591. (createPortMessage): Removed.
  14592. (createChokeMessage): Removed.
  14593. (createUnchokeMessage): Removed.
  14594. (createInterestedMessage): Removed.
  14595. (createNotInterestedMessage): Removed.
  14596. (createHaveMessage): Removed.
  14597. (createBitfieldMessage): Removed.
  14598. (createRequestMessage): Removed.
  14599. (createCancelMessage): Removed.
  14600. (createPieceMessage): Removed.
  14601. (createKeepAliveMessage): Removed.
  14602. (createHandshakeMessage): Removed.
  14603. (setIntParam): New function.
  14604. (createPeerMessageString): New function.
  14605. * src/PeerMessageUtil.cc
  14606. (createChokeMessage): Removed.
  14607. (createUnchokeMessage): Removed.
  14608. (createInterestedMessage): Removed.
  14609. (createNotInterestedMessage): Removed.
  14610. (createHaveMessage): Removed.
  14611. (createBitfieldMessage): Removed.
  14612. (createRequestMessage): Removed.
  14613. (createCancelMessage): Removed.
  14614. (createPieceMessage): Removed.
  14615. (createPortMessage): Removed.
  14616. (createRequestMessage): Removed.
  14617. (createCancelMessage): Removed.
  14618. (createPieceMessage): Removed.
  14619. (createHaveMessage): Removed.
  14620. (createChokeMessage): Removed.
  14621. (createUnchokeMessage): Removed.
  14622. (createInterestedMessage): Removed.
  14623. (createNotInterestedMessage): Removed.
  14624. (createBitfieldMessage): Removed.
  14625. (createKeepAliveMessage): Removed.
  14626. (createHandshakeMessage): Removed.
  14627. (setIntParam): New function.
  14628. (createPeerMessageString): New function.
  14629. * src/PeerConnection.h
  14630. (peer): Removed.
  14631. (torrentMan): Removed.
  14632. (createNLengthMessage): Removed.
  14633. (setIntParam): Removed.
  14634. (writeOutgoingMessageLog): Removed all overloaded functions.
  14635. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14636. (sendMessage): New function.
  14637. (sendHandshake): Removed.
  14638. (sendKeepAlive): Removed.
  14639. (sendChoke): Removed.
  14640. (sendUnchoke): Removed.
  14641. (sendInterested): Removed.
  14642. (sendNotInterested): Removed.
  14643. (sendHave): Removed.
  14644. (sendBitfield): Removed.
  14645. (sendRequest): Removed.
  14646. (sendPiece): Removed.
  14647. (sendPieceHeader): Removed.
  14648. (sendPieceData): Removed.
  14649. (sendCancel): Removed.
  14650. (getPeer): Removed.
  14651. * src/PeerConnection.cc
  14652. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14653. (sendHandshake): Removed.
  14654. (sendKeepAlive): Removed.
  14655. (createNLengthMessage): Removed.
  14656. (setIntParam): Removed.
  14657. (writeOutgoingMessageLog): Removed all overloaded functions.
  14658. (sendChoke): Removed.
  14659. (sendUnchoke): Removed.
  14660. (sendInterested): Removed.
  14661. (sendNotInterested): Removed.
  14662. (sendHave): Removed.
  14663. (sendBitfield): Removed.
  14664. (sendRequest): Removed.
  14665. (sendPiece): Removed.
  14666. (sendPieceHeader): Removed.
  14667. (sendPieceData): Removed.
  14668. (sendMessage): New function.
  14669. (sendCancel): Removed.
  14670. * src/PeerInteractionCommand.cc
  14671. (PeerInteractionCommand): Call setUploadLimit.
  14672. (executeInternal): Call setUploadLimit.
  14673. Added the handling of "inProgress" state of handshake message.
  14674. Call sendBitfield() or sendAllowdFast() instead of deprecated
  14675. sendNow().
  14676. (keepAlive): Call addMessage and sendMessage instead of deprecated
  14677. sendNow().
  14678. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  14679. * src/TorrentMan.h
  14680. (PEER_ID_LENGTH): New definition.
  14681. (hasAllPieces): New function.
  14682. * src/TorrentMan.cc
  14683. (getMissingPiece): Added the handling of fast extension.
  14684. (cancelPiece): Call updatePiece().
  14685. (hasAllPieces): New function.
  14686. * src/PeerInteraction.h
  14687. (fastSet): New variable.
  14688. (getNewPieceAndSendInterest): Changed the return type to void.
  14689. (send): Renamed as sendMessages.
  14690. (deleteAllRequestSlot): Removed.
  14691. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14692. (cancelAllRequest): Removed all overloaded functions.
  14693. (deleteAllRequestSlot): Removed.
  14694. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14695. (rejectPieceMessageInQueue): New function.
  14696. (rejectAllPieceMessageInQueue): New function.
  14697. (onChoked): New function.
  14698. (isSendingMessageInProgress): New function.
  14699. (getCorrespondingRequestSlot): Changed its arguments.
  14700. (isInFastSet): New function.
  14701. (addFastSetIndex): New function.
  14702. (addRequests): New function.
  14703. (sendNow): Removed.
  14704. (trySendNow): Removed.
  14705. (sendBitfield): New function.
  14706. (sendAllowdFast): New function.
  14707. (createHaveAllMessage): New function.
  14708. (createHaveNoneMessage): New function.
  14709. (createRejectMessage): New function.
  14710. (createAllowedFastMessage): New function.
  14711. * src/PeerInteraction.cc
  14712. (send): Renamed as sendMessages.
  14713. (sendMessages): New function.
  14714. (MsgPushBack): New class.
  14715. (isSendingMessageInProgress): New function.
  14716. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14717. (rejectAllPieceMessageInQueue): New function.
  14718. Added the handling of fast extension.
  14719. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14720. (rejectPieceMessageInQueue): New function.
  14721. Added the handling of fast extension.
  14722. (deleteRequestSlot): Replaced for loop with std::find.
  14723. (onChoked): New function.
  14724. (deleteAllRequestSlot): Removed.
  14725. (abortPiece): Rewirtten.
  14726. (deleteTimeoutRequestSlot): Updated log messages.
  14727. (getCorrespondingRequestSlot): Changed its arguments.
  14728. (cancelAllRequest): Removed all overloaded functions.
  14729. (receiveHandshake): Added the check to see whether an incoming peer
  14730. supports fast extension.
  14731. (createHandshakeMessage): Use HandshakeMessage::create instead of
  14732. PeerMessageUtil.
  14733. (createPeerMessage): Use create() of each message class instead of
  14734. PeerMessageUtil.
  14735. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  14736. AllowedFastMessage were added.
  14737. (getNewPieceAndSendInterest): Changed its return value type to void.
  14738. Added the handling of fast extension.
  14739. (addRequests): New function.
  14740. (sendNow): Removed.
  14741. (sendHandshake): Rewritten.
  14742. (trySendNow): Removed.
  14743. (sendBitfield): New function.
  14744. (sendAllowdFast): New function.
  14745. (isInFastSet): New function.
  14746. (addFastSetIndex): New function.
  14747. (createRequestMessage): Use RequestMessage::create instead of
  14748. PeerMessageUtil.
  14749. (createCancelMessage): Use CancelMessage::create instead of
  14750. PeerMessageUtil.
  14751. (createPieceMessage): Use PieceMessage::create instead of
  14752. PeerMessageUtil.
  14753. (createHaveMessage): Use HaveMessage::create instead of
  14754. PeerMessageUtil.
  14755. (createChokeMessage): Use ChokeMessage::create instead of
  14756. PeerMessageUtil.
  14757. (createUnchokeMessage): Use UnchokeMessage::create instead of
  14758. PeerMessageUtil.
  14759. (createInterestedMessage): Use InterestedMessage::create instead of
  14760. PeerMessageUtil.
  14761. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  14762. of PeerMessageUtil.
  14763. (createBitfieldMessage): Use BitfieldMessage::create instead of
  14764. PeerMessageUtil.
  14765. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  14766. PeerMessageUtil.
  14767. (createHaveAllMessage): New function.
  14768. (createHaveNoneMessage): New function.
  14769. (createRejectMessage): New function.
  14770. (createAllowedFastMessage: New function.
  14771. * src/Util.h
  14772. (sha1Sum): New function.
  14773. (computeFastSet): New function.
  14774. * src/Util.cc
  14775. (sha1Sum): New function.
  14776. (computeFastSet): New function.
  14777. * src/Peer.h
  14778. (fastExtensionEnabled): New variable.
  14779. (fastSet): New variable.
  14780. (setAllBitfield): New function.
  14781. (setFastExtensionEnabled): New function.
  14782. (isFastExtensionEnabled): New function.
  14783. (addFastSetIndex): New function.
  14784. (getFastSet): New function.
  14785. (isInFastSet): New function.
  14786. (countFastSet): New function.
  14787. * src/Peer.cc
  14788. (isInFastSet): New function.
  14789. (addFastSetIndex): New function.
  14790. (setAllBitfield): New function.
  14791. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  14792. sockets.
  14793. * src/PeerAbstractCommand.cc
  14794. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  14795. and uploadLimit.
  14796. (execute): Changed the procedure of checking sockets. The upload speed
  14797. checking were added.
  14798. (setUploadLimit): New function.
  14799. (setUploadLimitCheck): New function.
  14800. * src/PeerAbstractCommand.h
  14801. (setUploadLimit): New function.
  14802. (setUploadLimitCheck): New function.
  14803. (uploadLimit): New variable.
  14804. (uploadLimitCheck): New variable.
  14805. To contact a tracker regularly:
  14806. * src/TrackerWatcherCommand.h (interval): New variable.
  14807. (checkPoint): New variable.
  14808. (TrackerWatcherCommand): Added interval argument.
  14809. * src/TrackerWatcherCommand.cc
  14810. (TrackerWatcherCommand): Initialized checkPoint.
  14811. (execute): Now a tracker is contacted in every specified period.
  14812. If peer list is not needed, send request with numwant=0.
  14813. * src/TrackerUpdateCommand.cc
  14814. (execute): Updated log messages.
  14815. * src/DownloadEngine.cc
  14816. (~DownloadEngine): Removed two asserts.
  14817. (waitData): Uncommented wfds. May be a bug fix.
  14818. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14819. * src/PeerInteractionCommand.h
  14820. (checkInactiveConnection): Removed.
  14821. * src/PeerInteractionCommand.cc
  14822. (executeInternal): Removed following function calls:
  14823. detectMessageFlooding(), checkLongTimePeerChoking and
  14824. checkInactiveConnection().
  14825. (checkInactiveConnection): Removed.
  14826. (detectMessageFlooding): Removed function call to
  14827. checkInactiveConnection().
  14828. * src/PeerMessageUtil.h
  14829. (createChokeMessage): New function. Overload.
  14830. (createUnchokeMessage): New function. Overload.
  14831. (createInterestedMessage): New function. Overload.
  14832. (createNotInterestedMessage): New function. Overload.
  14833. (createHaveMessage): New function. Overload.
  14834. (createBitfieldMessage): New function. Overload.
  14835. (createRequestMessage): New function. Overload.
  14836. (createCancelMessage): New function. Overload.
  14837. (createPieceMessage): New function. Overload.
  14838. (createKeepAliveMessage): New function. Overload.
  14839. * src/PeerMessageUtil.cc
  14840. (createChokeMessage): New function. Overload.
  14841. (createUnchokeMessage): New function. Overload.
  14842. (createInterestedMessage): New function. Overload.
  14843. (createNotInterestedMessage): New function. Overload.
  14844. (createHaveMessage): New function. Overload.
  14845. (createBitfieldMessage): New function. Overload.
  14846. (createRequestMessage): New function. Overload.
  14847. (createCancelMessage): New function. Overload.
  14848. (createPieceMessage): New function. Overload.
  14849. (createKeepAliveMessage): New function. Overload.
  14850. * src/SendMessageQueue.cc
  14851. (createRequestMessage): Use PeerMessageUtil.
  14852. (createCancelMessage): Use PeerMessageUtil.
  14853. (createPieceMessage): Use PeerMessageUtil.
  14854. (createHaveMessage): Use PeerMessageUtil.
  14855. (createChokeMessage): Use PeerMessageUtil.
  14856. (createUnchokeMessage): Use PeerMessageUtil.
  14857. (createInterestedMessage): Use PeerMessageUtil.
  14858. (createNotInterestedMessage): Use PeerMessageUtil.
  14859. (createBitfieldMessage): Use PeerMessageUtil.
  14860. (createKeepAliveMessage): Use PeerMessageUtil.
  14861. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  14862. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  14863. * src/PeerInteraction.h: New class.
  14864. * src/PeerInteraction.cc: New class.
  14865. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14866. Each peer message has its own class.
  14867. * src/PendingMessages.h: Removed.
  14868. * src/PendingMessages.cc: Removed. The sending process was moved to
  14869. each message class.
  14870. * src/RequestSlotMan.h: Removed.
  14871. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  14872. SendMessageQueue.
  14873. * src/RequestMessage.h: New class.
  14874. * src/RequestMessage.cc: New class.
  14875. * src/CancelMessage.h: New class.
  14876. * src/CancelMessage.cc: New class.
  14877. * src/BitfieldMessage.h: New class.
  14878. * src/BitfieldMessage.cc: New class.
  14879. * src/ChokeMessage.h: New class.
  14880. * src/ChokeMessage.cc: New class.
  14881. * src/KeepAliveMessage.h: New class.
  14882. * src/KeepAliveMessage.cc: New class.
  14883. * src/PortMessage.h: New class.
  14884. * src/UnchokeMessage.h: New class.
  14885. * src/UnchokeMessage.cc: New class.
  14886. * src/PieceMessage.h: New class.
  14887. * src/PieceMessage.cc: New class.
  14888. * src/HaveMessage.h: New class.
  14889. * src/HaveMessage.cc: New class.
  14890. * src/BitfieldMessage.h: New class.
  14891. * src/BitfieldMessage.cc: New class.
  14892. * src/NotInterestedMessage.h: New class.
  14893. * src/NotInterestedMessage.cc: New class.
  14894. * src/InterestedMessage.h: New class.
  14895. * src/InterestedMessage.cc: New class.
  14896. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  14897. (getSendMessageQueue): New function.
  14898. (setSendMessageQueue): New function.
  14899. * src/HandshakeMessage.cc: New class.
  14900. * src/PeerConnection.h (receiveMessage): Changed return value and
  14901. arguments.
  14902. (receiveHandshake): Changed return value and arguments.
  14903. * src/PeerConnection.cc (receiveMessage): Do not create message class
  14904. here.
  14905. (receiveHandshake): Do not create handshake class here.
  14906. * src/PeerInteractionCommand.h (peerConnection): Removed.
  14907. (piece): Removed.
  14908. (syncPiece): Removed.
  14909. (sendInterest): Removed.
  14910. (sendMessages): Removed.
  14911. (createRequestPendingMessage): Removed.
  14912. (checkPieceHash): Removed.
  14913. (erasePieceOnDisk): Removed.
  14914. (getNewPieceAndSendInterest): Removed.
  14915. (onGotNewPice): Removed.
  14916. (onGotWrongPiece): Removed.
  14917. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  14918. Removed peerConnection, piece.
  14919. (~PeerInteractionCommand): Removed peerConnection.
  14920. (executeInternal): Use sendMessageQueue instead of peerConnection.
  14921. (syncPiece): Moved to SendMessageQueue.
  14922. (decideChoking): Removed PendingMessage.
  14923. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  14924. The action after receiving peer message was moved to each message
  14925. class.
  14926. (onGotNewPice): Moved to SendMessageQueue.
  14927. (onGotWrongPiece): Moved to SendMessageQueue.
  14928. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  14929. (sendInterest): Moved to SendMessageQueue.
  14930. (createRequestPendingMessage): Removed.
  14931. (sendMessages): Moved to SendMessageQueue.
  14932. (onAbort): Use SendMessageQueue::abortPiece()
  14933. (keepAlive): Use sendMessageQueue instead of peerConnection.
  14934. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  14935. (checkPieceHash): Moved to SendMessageQueue.
  14936. (erasePieceOnDisk): Moved to SendMessageQueue.
  14937. * src/PeerMessageUtil.h
  14938. (createBitfieldMessage): Removed.
  14939. (createHaveMessage): Changed return value and arguments.
  14940. (createBitfieldMessage): Changed return value and arguments.
  14941. (createRequestCancelMessage): Removed.
  14942. (createPieceMessage): Changed return value and arguments.
  14943. (getShortIntParam): New function.
  14944. (checkIndex): Changed arguments.
  14945. (checkBegin): Changed arguments.
  14946. (checkLength): Changed arguments.
  14947. (checkPieceOffset): Removed.
  14948. (checkRange): New function.
  14949. (checkBitfield): Changed arguments.
  14950. (createPeerMessage): Removed.
  14951. (checkIntegrity): Removed.
  14952. (createHandshakeMessage): Changed arguments.
  14953. (createChokeMessage): New function.
  14954. (createUnchokeMessage): New function.
  14955. (createInterestedMessage): New function.
  14956. (createNotInterestedMessage): New function.
  14957. (createRequestMessage): New function.
  14958. (createCancelMessage): New function.
  14959. (createPortMessage): New function.
  14960. * src/PeerMessageUtil.cc
  14961. (createBitfieldMessage): Removed.
  14962. (createHaveMessage): Changed return value and arguments.
  14963. (createBitfieldMessage): Changed return value and arguments.
  14964. (createRequestCancelMessage): Removed.
  14965. (createPieceMessage): Changed return value and arguments.
  14966. (getShortIntParam): New function.
  14967. (checkIndex): Changed arguments.
  14968. (checkBegin): Changed arguments.
  14969. (checkLength): Changed arguments.
  14970. (checkPieceOffset): Removed.
  14971. (checkRange): New function.
  14972. (checkBitfield): Changed arguments.
  14973. (createPeerMessage): Removed.
  14974. (checkIntegrity): Removed.
  14975. (createHandshakeMessage): Changed arguments.
  14976. (createChokeMessage): New function.
  14977. (createUnchokeMessage): New function.
  14978. (createInterestedMessage): New function.
  14979. (createNotInterestedMessage): New function.
  14980. (createRequestMessage): New function.
  14981. (createCancelMessage): New function.
  14982. (createPortMessage): New function.
  14983. * src/PeerMessage.h
  14984. (id): Removed.
  14985. (index): Removed.
  14986. (begin): Removed.
  14987. (length): Removed.
  14988. (bitfield): Removed.
  14989. (bitfieldLength): Removed.
  14990. (block): Removed.
  14991. (blockLength): Removed.
  14992. (inProgress): New variable.
  14993. (cuid): New variable.
  14994. (peer): New variable.
  14995. (sendMessageQueue): New variable.
  14996. (logger): New variable.
  14997. (setBitfield): Removed.
  14998. (getBitfield): Removed.
  14999. (setBlock): Removed.
  15000. (getBlock): Removed.
  15001. (getBitfieldLength): Removed.
  15002. (getBlockLength): Removed.
  15003. (isInProgress): New function.
  15004. (toString): Made pure virtual.
  15005. (check): New function.
  15006. (send): New function.
  15007. (receivedAction): New function.
  15008. (getId): Made pure virtual.
  15009. (setId): Removed.
  15010. (getIndex): Removed.
  15011. (setIndex): Removed.
  15012. (getBegin): Removed.
  15013. (setBegin): Removed.
  15014. (getLength): Removed.
  15015. (setLength): Removed.
  15016. (getCuid): New function.
  15017. (setCuid): New function.
  15018. (getPeer): New function.
  15019. (setPeer): New function.
  15020. (getSendMessageQueue): New function.
  15021. (setSendMessageQueue): New function.
  15022. (ID): Removed.
  15023. * src/PeerMessage.cc
  15024. (setBitfield): Removed.
  15025. (setBlock): Removed.
  15026. (toString): Removed.
  15027. * src/TorrentMan.h
  15028. (getPieceLength): New function.
  15029. (getPieceLength): New function.
  15030. * src/SendMessageQueue.h
  15031. (REQUEST_TIME_OUT): New definition.
  15032. (RequestSlots): New definition.
  15033. (MessageQueue): New definition.
  15034. (requestSlotMan): Removed.
  15035. (pendingMessages): Removed.
  15036. (requestSlots): New variable.
  15037. (messageQueue): New variable.
  15038. (torrentMan): New variable.
  15039. (peerConnection): New variable.
  15040. (peer): New variable.
  15041. (piece): New variable.
  15042. (getNewPieceAndSendInterest): New function.
  15043. (createPeerMessage): New function.
  15044. (createHandshakeMessage): New function.
  15045. (send): Made private.
  15046. (setPeerMessageCommonProperty): New function.
  15047. (deleteAllRequestSlot): New function.
  15048. (deleteRequestMessageInQueue): New function.
  15049. (cancelAllRequest): Made private.
  15050. (cancelAllRequest): Made private.
  15051. (countRequestSlot): Made private.
  15052. (addPendingMessage): Removed.
  15053. (deletePendingPieceMessage): Removed.
  15054. (deletePendingRequestMessage): Removed.
  15055. (addMessage): New function.
  15056. (deletePieceMessageInQueue): New function.
  15057. (deleteTimeoutRequestSlot): Changed argument.
  15058. (deleteCompletedRequestSlot): Changed argument.
  15059. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  15060. (getCorrespondingRequestSlot): New function.
  15061. (countPendingMessage): Removed.
  15062. (countMessageInQueue): New function.
  15063. (getTorrentMan): New function.
  15064. (getPeerConnection): New function.
  15065. (hasDownloadPiece): New function.
  15066. (getDownloadPiece): New function.
  15067. (setDownloadPiece): New function.
  15068. (syncPiece): New function.
  15069. (sendMessages): New function.
  15070. (sendNow): New function.
  15071. (trySendNow): New function.
  15072. (abortPiece): New function.
  15073. (sendHandshake): New function.
  15074. (receiveMessage): New function.
  15075. (receiveHandshake): New function.
  15076. (createRequestMessage): New function.
  15077. (createCancelMessage): New function.
  15078. (createPieceMessage): New function.
  15079. (createHaveMessage): New function.
  15080. (createChokeMessage): New function.
  15081. (createUnchokeMessage): New function.
  15082. (createInterestedMessage): New function.
  15083. (createNotInterestedMessage): New function.
  15084. (createBitfieldMessage): New function.
  15085. (createKeepAliveMessage): New function.
  15086. * src/SendMessageQueue.cc
  15087. (SendMessageQueue): Removed requestSlotMan.
  15088. Instantiated peerConnection here.
  15089. (~SendMessageQueue): Removed requestSlotMan.
  15090. Added deletion of peerConnection and the contents of messageQueue.
  15091. (send): Updated according to the change of messageQueue.
  15092. (addPendingMessage): Renamed to addMessage.
  15093. (addMessage): New function.
  15094. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  15095. (deletePieceMessageInQueue): New function.
  15096. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  15097. (deleteRequestMessageInQueue): New function.
  15098. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  15099. here.
  15100. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  15101. (...) was moved here.
  15102. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  15103. moved here.
  15104. (deleteCompletedRequestSlot):
  15105. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  15106. (getCorrespondingRequestSlot):
  15107. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  15108. And renamed to getCorrespondingRequestSlot, correcting a typo.
  15109. (countPendingMessage): Renamed to countMessageInQueue.
  15110. (countMessageInQueue): New function.
  15111. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  15112. (receiveHandshake): New function.
  15113. (createHandshakeMessage): New function.
  15114. (receiveMessage): New function.
  15115. (createPeerMessage): New function.
  15116. (syncPiece): New function.
  15117. (getNewPieceAndSendInterest): New function.
  15118. (sendMessages): New function.
  15119. (sendNow): New function.
  15120. (trySendNow): New function.
  15121. (sendHandshake): New function.
  15122. (abortPiece): New function.
  15123. (getDownloadPiece): New function.
  15124. (getPeerMessageCommonProperty): New function.
  15125. (createRequestMessage): New function.
  15126. (createCancelMessage): New function.
  15127. (createPieceMessage): New function.
  15128. (createHaveMessage): New function.
  15129. (createChokeMessage): New function.
  15130. (createUnchokeMessage): New function.
  15131. (createInterestedMessage): New function.
  15132. (createNotInterestedMessage): New function.
  15133. (createBitfieldMessage): New function.
  15134. (createKeepAliveMessage): New function.
  15135. To add simple Content-Disposition support:
  15136. * src/HttpResponseCommand.h (determinFilename): New function.
  15137. * src/HttpResponseCommand.cc (executeInternal):
  15138. Use determinFilename(headers) instead of req->getFile() when comparing
  15139. filename.
  15140. (determinFilename): New function.
  15141. (handleDefaultEncoding): Use determinFilename(headers) instead of
  15142. req->getFile().
  15143. (handleOtherEncoding): Use determinFilename(headers) instead of
  15144. req->getFile().
  15145. * src/Util.h (getContentDispositionFilename): New function.
  15146. * src/Util.cc (getContentDispositionFilename): New function.
  15147. * src/LogFactory.h (release): New function.
  15148. * src/LogFactory.cc (release): New function.
  15149. To fix a bug that causes out-of-bound exception when HTTP status
  15150. line is wrong:
  15151. * src/HttpConnection.cc (receiveResponse): Added a check for header
  15152. size.
  15153. * src/common.h (Deleter): New class.
  15154. * src/SegmentMan.cc
  15155. (~SegmentMan): Added deletion of splitter and diskWriter.
  15156. * src/DownloadEngine.h
  15157. (Commands): Use deque.
  15158. (clearQueue): New function.
  15159. * src/DownloadEngine.cc
  15160. (~DownloadEngine): Added deletion of segmentMan.
  15161. (cleanQueue): New function.
  15162. * src/TorrentDownloadEngine.h
  15163. (TorrentDownloadEngine): The implementation was moved to
  15164. TorrentDownloadEngine.cc.
  15165. (~TorrentDownloadEngine): The implementation was moved to
  15166. TorrentDownloadEngine.cc.
  15167. * src/TorrentDownloadEngine.cc
  15168. (~TorrentDownloadEngine): Added deletion of torrentMan.
  15169. * src/main.cc
  15170. (clearRequest): Removed.
  15171. (handler): Added deletion of e.
  15172. (torrentHandler): Added deletion of te.
  15173. (main): Do not share splitter.
  15174. Use Deleter instead of clearRequest.
  15175. Deletion of classes were updated.
  15176. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15177. * src/main.cc (main): Fixed typo.
  15178. * src/message.h: Fixed typo.
  15179. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  15180. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15181. To add --select-file command-line option:
  15182. * src/Util.cc
  15183. (unfoldRange): New function.
  15184. (getNum): New function.
  15185. (unfoldSubRange): New function
  15186. * src/main.cc
  15187. (showUsage): Added help message.
  15188. (main): Added --select-file command-line option. Updated the layout of
  15189. file listing.
  15190. * src/common.h
  15191. (Integers): New definition.
  15192. * src/SocketCore.cc
  15193. (writeData): Removed timeout argument.
  15194. (readData): Removed timeout argument.
  15195. (peekData): Removed timeout argument.
  15196. * src/Socket.cc
  15197. (writeData): Removed timeout argument.
  15198. (readData): Removed timeout argument.
  15199. (peekData): Removed timeout argument.
  15200. * Release 0.4.1
  15201. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15202. To deploy upload rate based choking algorithm:
  15203. * src/PeerInteractionCommand.cc
  15204. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  15205. peer currently used.
  15206. (decideChoking): Deleted the choke/unchoke decision algorithm when
  15207. download completes. Simplified.
  15208. (receiveMessage): Updated.
  15209. * src/TorrentMan.h
  15210. (activePeers): New variable.
  15211. (addActivePeer): New function.
  15212. (getActivePeers): New function.
  15213. (deleteActivePeer): New function.
  15214. * src/TorrentMan.cc
  15215. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  15216. * src/PeerAbstractCommand.cc
  15217. (onAbort): Use peer->resetStatus().
  15218. * src/main.cc
  15219. (PeerChokeCommand.h): Included.
  15220. (main): Added the instance of ChokingCommand to the command queue.
  15221. * src/Peer.h
  15222. (amChoking): Renamed from amChocking
  15223. (chokingRequired): New variable.
  15224. (optUnchoking): New variable.
  15225. (deltaUpload): New variable.
  15226. (deltaDownload): New variable.
  15227. (addDeltaUpload): New function.
  15228. (resetDeltaUpload): New function.
  15229. (addDeltaDownload): New function.
  15230. (resetDeltaDownload): New function.
  15231. (addPeerUpload): Added a call to addDeltaUpload.
  15232. (addPeerDownload): Added a call to addDeltaDownload.
  15233. * src/Peer.cc
  15234. (shouldBeChoking): Renamed from shouldChoke.
  15235. (resetStatus): New function.
  15236. * src/PeerChokeCommand.h: New class.
  15237. * src/PeerChokeCommand.cc: New class.
  15238. To add lazy upload speed limiter:
  15239. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  15240. statistics calculation to TorrentDownloadEngine.
  15241. * src/TorrentConsoleDownloadEngine.cc
  15242. (sendStatistics): Renamed from printStatistics.
  15243. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  15244. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  15245. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  15246. * src/TorrentDownloadEngine.h: Added the variables for statistics
  15247. calculation.
  15248. (sendStatistics): New function as pure virtual function.
  15249. (getUploadSpeed): New function.
  15250. * src/TorrentDownloadEngine.cc
  15251. (initStatistics): New function.
  15252. (calculateSpeed): New function.
  15253. (calculateStatistics): New function.
  15254. * src/SendMessageQueue.h
  15255. (uploadLength): New variable.
  15256. (send): Added an argument.
  15257. (setUploadLimit): New function.
  15258. (getUploadLimit): New function.
  15259. * src/SendMessageQueue.cc
  15260. (send): Added upload speed limiter.
  15261. * src/prefs.h
  15262. (PREF_UPLOAD_LIMIT): New definition.
  15263. * src/PeerInteractionCommand.cc
  15264. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  15265. * src/main.cc
  15266. (main): Added --upload-limit option
  15267. For bug fixes:
  15268. * src/main.cc
  15269. (showUsage): Corrected --listen-port help
  15270. Other changes:
  15271. * src/TorrentMan.cc
  15272. (getPeer): Return nullPeer if connection is grather than
  15273. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  15274. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15275. To add some useful information to the exception message:
  15276. * src/SocketCore.cc : Updated messages.
  15277. * src/SegmentMan.cc :
  15278. * src/TorrentMan.cc : Updated messages.
  15279. * src/MultiDiskWriter.cc : Updated messages.
  15280. * src/Util.cc : Updated messages.
  15281. * src/AbstractDiskWriter.cc : Updated messages.
  15282. * src/PreAllocationDiskWriter.cc : Updated messages.
  15283. * src/message.cc : Added new messages. Updated some messages.
  15284. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  15285. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  15286. Updated threshold from 30 to 15.
  15287. * src/AbstractDiskWriter.h (filename): New variable.
  15288. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  15289. (createFile): Assigned filename.
  15290. * src/main.cc: Updated the help message for http-auth-scheme.
  15291. * Release 0.4.0
  15292. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15293. To add TrackerUpdateCommand with which replaces
  15294. CompactTrackerResponseProcessor:
  15295. * src/TrackerWatcherCommand.h (req): Removed.
  15296. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  15297. if the number of peer connections are less than 30.
  15298. * src/ByteArrayDiskWriter.h (readData): Implemented.
  15299. * src/SegmentMan.h (diskWriter): New function.
  15300. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  15301. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  15302. (main): Use TrackerUpdateCommand.
  15303. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  15304. (req): New variable.
  15305. (setTrackerResponseProcessor): Removed.
  15306. (getTrackerResponseProcessor): Removed.
  15307. (processTrackerResponse): Removed.
  15308. * src/DownloadEngine.h (diskWriter): Removed.
  15309. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  15310. to torrentMan->processTrackerResponse().
  15311. To add Util::expandBuffer:
  15312. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  15313. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  15314. * src/Util.h (expandBuffer): New function.
  15315. To fix the bug that causes segmentation fault when "-l ." is specified
  15316. in command-line option:
  15317. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  15318. (openFile): New function.
  15319. (closeFile): New function.
  15320. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  15321. (~SimpleLogger): Call closeFile();
  15322. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  15323. * src/main.cc (main): Added a check to see logger is configured
  15324. properly.
  15325. To enable HTTP authentication without specifying "--http-auth-scheme"
  15326. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  15327. * src/HttpConnection.cc (createRequest): Send Authorization header
  15328. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  15329. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  15330. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  15331. * src/Peer.cc (shouldChoke): Updated algorithm.
  15332. * src/message.h (EX_AUTH_FAILED): New definition.
  15333. (EX_FILE_OPEN): New definition.
  15334. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  15335. if status == 401.
  15336. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  15337. if req->isTorrent == true.
  15338. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  15339. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  15340. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  15341. (createFile): Updated message.
  15342. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15343. To add a readout of estimated remaining time to normal HTTP/FTP
  15344. downloads:
  15345. * src/ConsoleDownloadEngine.h (startup): New variable.
  15346. (startupLength): New variable.
  15347. (isStartupLengthSet): New variable.
  15348. (avgSpeed): New variable.
  15349. (eta): New variable.
  15350. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  15351. estimated remaining time.
  15352. (initStatistics): Initialized newly added variables.
  15353. (calculateStatistics): Calculate average speed and estimated remaining
  15354. time.
  15355. To decouple TorrentDownloadEngine from HttpResponseCommand:
  15356. * src/TrackerDownloadCommand.h: Removed.
  15357. * src/TrackerDownloadCommand.cc: Removed.
  15358. * src/TrackerInitCommand.h: Removed.
  15359. * src/TrackerInitCommand.cc: Removed.
  15360. * src/TrackerUpdateCommand.h: Removed.
  15361. * src/TrackerUpdateCommand.cc: Removed.
  15362. * src/TrackerWatcherCommand.cc (execute): The construction of request
  15363. url written in TrackerInitCommand was moved here. Do not create
  15364. tracker request command if torrentMan->trackers != 0.
  15365. * src/CompactTrackerResponseProcessor.h: New class.
  15366. * src/CompactTrackerResponseProcessor.cc: New class.
  15367. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  15368. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  15369. Decoupled TorrentDownloadEngine from this.
  15370. * src/SegmentMan.h (init): New function.
  15371. * src/SegmentMan.cc (init): New function.
  15372. * src/TorrentMan.h (responseProcessor): New variable.
  15373. (trackers): New variable.
  15374. (setTrackerResponseProcessor): New function.
  15375. (getTrackerResponseProcessor): New function.
  15376. (processTrackerResponse): New function.
  15377. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  15378. (processTrackerResponse): New function.
  15379. * src/main.cc (main): Use ByteArrayDiskWriter and
  15380. CompactTrackerResponseProcessor.
  15381. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  15382. processTrackerResponse().
  15383. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  15384. readout.
  15385. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  15386. which indicates download has completed.
  15387. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  15388. (closeFile): fd >= 0, not fd > 0
  15389. * src/main.cc (main): Added short cut for show-files.
  15390. Added short cut for torrent-file.
  15391. Added new command-line option listen-port.
  15392. Updated i18n messages.
  15393. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15394. To add LogFactory which creates singleton logger:
  15395. * src/LogFactory.h: New class.
  15396. * src/LogFactory.cc: New class.
  15397. * src/Command.h (logger): New variable.
  15398. (Constructor): Use LogFactory.
  15399. * src/AbstractCommand.cc: Use Command::logger
  15400. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  15401. Use LogFactory.
  15402. * src/SegmentSplitter.h : Made logger protected.
  15403. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  15404. * src/SegmentMan.cc (Constructor): Use LogFactory.
  15405. * src/DownloadEngine.h : Made logger protected.
  15406. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  15407. * src/PeerInteractionCommand.cc : Use Command::logger.
  15408. * src/HttpResponseCommand.cc : Use Command::logger.
  15409. * src/SegmentMan.h : Made logger private.
  15410. * src/TorrentMan.h : Made logger private.
  15411. * src/TorrentMan.cc : Use LogFactory.
  15412. * src/FtpNegotiateCommand.cc : Use Command::logger.
  15413. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  15414. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  15415. Use LogFactory.
  15416. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  15417. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  15418. Use LogFactory.
  15419. * src/DownloadCommand.cc : Use Command::logger.
  15420. * src/PeerAbstractCommand.cc : Use Command::logger.
  15421. * src/PeerListenCommand.cc : Use Command::logger.
  15422. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  15423. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  15424. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  15425. * src/TrackerWatcherCommand.cc : Use Command::logger.
  15426. * src/TrackerUpdateCommand.cc : Use Command::logger.
  15427. * src/TrackerDownloadCommand.cc : Use Command::logger.
  15428. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  15429. Use LogFactory.
  15430. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  15431. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  15432. Use LogFactory.
  15433. * src/main.cc (main): Use LogFactory.
  15434. * src/DiskAdaptor.h (logger): New variable.
  15435. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  15436. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  15437. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15438. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  15439. parameter to a tracker request.
  15440. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  15441. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  15442. * src/main.cc (setSignalHander): New function.
  15443. (main): Added a handler for SIGTERM.
  15444. (handler): Updated message.
  15445. (torrentHandler): Updated message.
  15446. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15447. * src/TorrentConsoleDownloadEngine.cc
  15448. (onPartialDownloadingCompletes): Renamed as
  15449. onSelectiveDownloadingCompletes.
  15450. (onSelectiveDownloadingCompletes): Updated message.
  15451. To add DiskAdaptor which abstract DiskWriter family:
  15452. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  15453. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  15454. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  15455. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  15456. MultiDiskAdaptor.h.
  15457. (readFileEntry): Changed its arguments.
  15458. (setup): setupDiskWriter is merged into this function.
  15459. (setupDiskWriter): Removed.
  15460. (setFileFilter): New function.
  15461. (readFileEntryFromMetaInfoFile): Updated according to the changes
  15462. made in readFileEntry.
  15463. (getFilePath): Removed.
  15464. (getTempFilePath): Removed.
  15465. (getSegmentFilePath): Updated due to the removal of getFilePath.
  15466. (fixFilename): Removed.
  15467. (copySingleFile): Removed.
  15468. (splitMultiFile): Removed.
  15469. (deleteTempFile): Removed.
  15470. (setFileEntriesToDownload): Removed.
  15471. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  15472. (isSelectiveDownloadingMode): New function.
  15473. (setAllMultiFileRequestedState): Removed.
  15474. (finishPartialDownloadingMode): Renamed as
  15475. finishSelectiveDownloadingMode.
  15476. (finishSelectiveDownloadingMode): New function.
  15477. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  15478. (getSelectedTotalLength): New function.
  15479. (onDownloadComplete): Use diskAdaptor.
  15480. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  15481. (Range): Removed.
  15482. (setMultiFileEntries): Renamed as setFileEntries.
  15483. (setFileEntries): New function.
  15484. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  15485. (pieceLength): New variable.
  15486. * src/main.cc (printDownloadCompeleteMessage): New function.
  15487. (torrentHandler): Use diskAdaptor instead of diskWriter.
  15488. (main): Renamed torrent-show-files to show-files.
  15489. Rewritten file contents listing.
  15490. * src/TorrentMan.h (FileEntry): Removed.
  15491. (multiFileTopDir): Removed.
  15492. (multiFileEntries): Removed.
  15493. (diskWriter): Removed.
  15494. (diskAdaptor): New variable.
  15495. * src/DefaultDiskWriter.h (totalLength): New variable.
  15496. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  15497. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  15498. diskWriter.
  15499. * src/TorrentConsoleDownloadEngine.h
  15500. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  15501. (partialTotalLength): Renamed as selectedTotalLength.
  15502. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  15503. openExistingFile, otherwise call initAndOpenFile.
  15504. (closeFile): fd > 0, not fd != 0.
  15505. * src/DirectDiskAdaptor.h: New class.
  15506. * src/DirectDiskAdaptor.cc: New class.
  15507. * src/MultiDiskAdaptor.h: New class.
  15508. * src/MultiDiskAdaptor.cc: New class.
  15509. * src/CopyDiskAdaptor.h: New class.
  15510. * src/CopyDiskAdaptor.cc: New class.
  15511. * src/DiskAdaptor.h: New class.
  15512. * src/DiskAdaptor.cc: New class.
  15513. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  15514. (PREF_SHOW_FILES): New definition.
  15515. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15516. To add the ability to download multi torrent into respective files
  15517. directly:
  15518. * src/DiskWriter.h (openFile): New function.
  15519. (seek): Removed.
  15520. * src/MultiDiskWriter.h: New class.
  15521. * src/MultiDiskWriter.cc: New class.
  15522. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  15523. protected.
  15524. (openFile): New function.
  15525. * src/AbstractDiskWriter.cc (openFile): New function.
  15526. * src/prefs.h (V_FALSE): New definition.
  15527. (PREF_DIRECT_FILE_MAPPING): New definition.
  15528. * src/TorrentMan.h (setupDiskWriter): New function.
  15529. (setAllMultiFileRequestedState): New function.
  15530. (onDownloadComplete): New function.
  15531. * src/TorrentMan.cc : Included MultiDiskWriter.h
  15532. (setupDiskWriter): New function.
  15533. (getFilePath): Updated.
  15534. (getTempFilePath): Updated.
  15535. (getSegmentFilePath): Updated.
  15536. (fixFilename): Updated.
  15537. (deleteTempFile): Updated.
  15538. (setAllMultiFileRequestedState): New function.
  15539. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  15540. (finishPartialDownloadingMode): Reset requested flags.
  15541. (onDownloadComplete): New function.
  15542. * src/main.cc: Added --direct-file-mapping option.
  15543. Use TorrentMan::setupDiskWriter().
  15544. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  15545. onDownloadComplete().
  15546. To fix ETA bug:
  15547. * src/Util.h (difftvsec): New function.
  15548. * src/Util.cc (difftvsec): New function.
  15549. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  15550. type of "elapsed" instead of long long int.
  15551. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  15552. The updates of statistics takes place every 1 seconds.
  15553. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  15554. (calculateSpeed): Changed its argument signature.
  15555. * src/PeerMessage.cc (toString): Fixed message.
  15556. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15557. To print ETA:
  15558. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  15559. completion handling when dealing with
  15560. TorrentMan::isPartialDownloadingMode() == true.
  15561. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  15562. New function.
  15563. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  15564. (sessionDownloadLength): New variable.
  15565. (avgSpeed): New variable.
  15566. (eta): New variable.
  15567. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  15568. new variables: eta, avgSpeed, startup.
  15569. (calculateSpeed): Calculate average speed and ETA.
  15570. (printStatistics): Added ETA.
  15571. * src/Util.h (secfmt): New function.
  15572. * src/Util.cc (secfmt): New function.
  15573. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15574. To detect "keep alive" flooding:
  15575. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  15576. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  15577. variable: keepAliveCount.
  15578. (detectMessageFlooding): Added "keep alive" flooding detection.
  15579. (receiveMessage): Increase keepAliveCount when "keep alive" message
  15580. received.
  15581. To add the ability to download only specified files in multi-file
  15582. torrent:
  15583. * src/BitfieldMan.h (filterBitfield): New variable.
  15584. (filterEnabled): New variable.
  15585. (setFilterBit): New function.
  15586. (enableFilter): New function.
  15587. (disableFilter): New function.
  15588. (isFilterEnabled): New function.
  15589. (getFilteredTotalLength): New function.
  15590. (getCompletedLength): New function.
  15591. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  15592. filterBitfield, filterEnabled.
  15593. (CopyConstructor): Added filterBitfield and filterEnabled.
  15594. (operator==): Added filterBitfield and filterEnabled.
  15595. (Destructor): Added filterBitfield.
  15596. (getMissingIndex): Use filterBitfield.
  15597. (getMissingUnusedIndex): Use filterBitfield.
  15598. (getFirstMissingUnusedIndex): Use filterBitfield.
  15599. (getFirstMissingUnusedIndex): Use filterBitfield.
  15600. (getAllMissingIndexes): Use filterBitfield.
  15601. (countMissingBlock): Use filterBitfield.
  15602. (countBlock): Use filterBitfield.
  15603. (setBitInternal): Added new argument on.
  15604. (setUseBit): Use setBitInternal.
  15605. (unsetUseBit): Use setBitInternal.
  15606. (setBit): Use setBitInternal.
  15607. (unsetBit): Use setBitInternal.
  15608. (isAllBitSet): Use filterBitfield.
  15609. (setFilterBit): New function.
  15610. (addFilter): New function.
  15611. (enableFilter): New function.
  15612. (disableFilter): New function.
  15613. (clearFilter): New function.
  15614. (isFilterEnabled): New function.
  15615. (getFilteredTotalLength): New function.
  15616. (getCompletedLength): New function.
  15617. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  15618. Initalized newly added variables.
  15619. [FileEntry](offset): New variable.
  15620. [FileEntry](extracted): New variable.
  15621. [FileEntry](requested): New variable.
  15622. (readFileEntry): New function.
  15623. (option): New variable.
  15624. (splitMultiFile): Removed const qualifier.
  15625. (fixFilename): Removed const qualifier.
  15626. (readFileEntryFromMetaInfoFile): New function.
  15627. (finishPartialDownloadingMode): New function.
  15628. (isPartialDownloadingMode): New function.
  15629. (setFileEntriesToDownload): New function.
  15630. (getCompletedLength): New function.
  15631. (getPartialTotalLength): New function.
  15632. * src/TorrentMan.cc (readFileEntry): New function.
  15633. (setup): Use readFileEntry. If no-preallocation option is specified,
  15634. use DefaultDiskWriter.
  15635. (readFileEntryFromMetaInfoFile): New function.
  15636. (fixFilename): Removed const qualifier.
  15637. (splitMultiFile): Removed const qualifier.
  15638. (setFileEntriesToDownload): New function.
  15639. (isPartialDownloadingMode): New function.
  15640. (finishPartialDownloadingMode): New function.
  15641. (getCompletedLength): New function.
  15642. (getPartialTotalLength): New function.
  15643. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  15644. New variable.
  15645. (partialTotalLength): New variable.
  15646. (downloadLength): New variable.
  15647. (totalLength): New variable.
  15648. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  15649. Added log.
  15650. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  15651. partialTotalLength, downloadLength, totalLength.
  15652. (calculate): Calculate downloadLength and totalLength.
  15653. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  15654. * src/main.cc (addCommand): Changed argument signature.
  15655. (main): Added new variable: args. Added new option "torrent-show-files"
  15656. "no-preallocation". Usage is not updated yet.
  15657. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15658. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  15659. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15660. Attempt to add the ability to listing file entries in a .torrent file.
  15661. This feature is not yet complete.
  15662. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  15663. * src/TorrentMan.cc (getMultiFileEntries): New function.
  15664. (getName): New function.
  15665. * src/TorrentMan.h (getMultiFileEntries): New function.
  15666. (getName): New function.
  15667. * src/main.cc (main): Use above 2 funtion.
  15668. * Release 0.3.2
  15669. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15670. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  15671. (detectMessageFlooding): Updated threshold value.
  15672. (checkLongTimePeerChoking): Updated timeout value.
  15673. (getNewPieceAndSendInterest): Added debug log.
  15674. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  15675. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  15676. (getPeer): Updated.
  15677. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  15678. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  15679. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  15680. is localhost.
  15681. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  15682. * src/PendingMessage.cc (processMessage): Not to send piece message
  15683. if peer is not interested in the pieces localhost has.
  15684. * src/Peer.cc (shouldChoke): Updated.
  15685. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  15686. * src/Util.cc (isPowerOf): New function.
  15687. * src/Util.h (isPowerOf): New function.
  15688. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  15689. whether or not it is power of 2.
  15690. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15691. Added new class SendMessageQueue that includes PendingMessages and
  15692. RequestSlotMan.
  15693. * src/SendMessageQueue.h: New class.
  15694. * src/SendMessageQueue.cc: New class.
  15695. * src/PendingMessage.h: Added new member variable blockIndex and its
  15696. accessors.
  15697. (createRequestMessage): Updated.
  15698. * src/PendingMessage.cc (createRequestMessage): Updated.
  15699. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  15700. SendMessageQueue.
  15701. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  15702. (receiveMessage): Updated with SendMessageQueue.
  15703. (deletePendingPieceMessage): Removed.
  15704. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  15705. (sendInterest): Updated with SendMessageQueue.
  15706. (createRequestPendingMessage): Updated with SendMessageQueue.
  15707. (sendMessages): Updated with SendMessageQueue.
  15708. (onAbort): Updated with SendMessageQueue.
  15709. (keepAlive): Updated with SendMessageQueue.
  15710. (beforeSocketCheck): Updated SendMessageQueue.
  15711. * src/PeerInteractionCommand (sendMessages): Shuffle
  15712. missingBLockIndexes before using it.
  15713. Added its own timeout for peer connection.
  15714. * src/PeerAbstractCommand.h: Added member variable timeout and its
  15715. setter.
  15716. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  15717. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15718. Added setTimeout() call.
  15719. (executeInternal): Added setTimeout() call.
  15720. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  15721. Added timeout.
  15722. (isTimeoutDetected): Updated.
  15723. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  15724. option.
  15725. Added *simple* message flooding checker.
  15726. * src/PeerInteractionCommand.cc (executeInternal):
  15727. Added detectMessageFlooding() call.
  15728. (detectMessageFlooding): New function.
  15729. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  15730. (beforeSocketCheck): Added detectMessageFlooding() call.
  15731. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  15732. chokeUnchokeCount, haveCount, detectMessageFlooding().
  15733. Removed deletePendingPieceMessage(), getRequestSlot(),
  15734. deleteRequestSlot(), deleteAllRequestSlot().
  15735. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  15736. Added checkLongTimePeerChoking() call.
  15737. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  15738. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  15739. if duplicate == false.
  15740. The parameter "uploaded" and "downloaded" in the tracker request are
  15741. the size since the client sent the "started" event to the tracker.
  15742. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  15743. uploaded size to preDownloadedSize, preUploadedSize respectively.
  15744. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  15745. getSessionDownloadedSize(), getSessionUploadedSize().
  15746. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  15747. getSessionUploadedSize() instead of getDownloadedSize(),
  15748. getUploadedSize().
  15749. * src/PendingMessage.cc (processMessage): Do not send request message
  15750. if the peer is choking the client.
  15751. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  15752. less than interval.
  15753. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15754. * configure.in: Added gnutls support. Added several CPP macros.
  15755. * m4/openssl.m4: Added.
  15756. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  15757. readData(), peekData(). Added gnutls support.
  15758. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  15759. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  15760. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  15761. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  15762. Instead, added a check for whether setup method has executed
  15763. successfully.
  15764. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  15765. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  15766. * src/Makefile.am: Updated.
  15767. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  15768. using whether OpenSSL or gcrypt, depending on the result of configure
  15769. script.
  15770. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  15771. messageDigest.h.
  15772. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  15773. * src/PeerListenCommand.cc: Added log about port binded successfully.
  15774. Fixed memory leak.
  15775. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  15776. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  15777. Removed instantiation of TrackerInitCommand. Instead,
  15778. TrackerWatcherCommand is instantiated and pushed to the command queue.
  15779. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  15780. ENABLE_SSL.
  15781. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  15782. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  15783. If a piece is already acquired by another command, delete the request
  15784. slots for the piece.
  15785. * src/TrackerUpdateCommand.cc (execute):
  15786. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  15787. Added a check whether peer list is null.
  15788. Fixed the bug that causes sending completed event to the tracker
  15789. several times.
  15790. * src/TrackerInitCommand.cc (execute):
  15791. Fixed the bug that causes sending completed event to the tracker
  15792. several times.
  15793. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  15794. by using messageDigest.h.
  15795. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15796. * PeerConnection.cc: Replaced log message "keep-alive" with
  15797. "keep alive".
  15798. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  15799. localhost long time.
  15800. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  15801. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  15802. at most 100 failure entry from the list. If with duplicate = false,
  15803. MAX_PEER_LIST is not checked.
  15804. * PeerListenCommand.cc: Fixed the argument order of log message.
  15805. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15806. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  15807. Added warn().
  15808. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  15809. Implemented warn().
  15810. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  15811. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15812. * Request.h: Added AFTER_COMPLETED event.
  15813. * TorrentDownloadEngine.cc: Prints "Download complete" message
  15814. instead of downloaded size and progress(%) after download completes.
  15815. * PeerInteractionCommand.cc: After download completes, sends unchoke
  15816. message to the peer if it is interested in what localhost has
  15817. downloaded.
  15818. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  15819. destination instead of just renaming it.
  15820. * TorrentMan.cc: Added deleteTempFile().
  15821. * PeerAbstractCommand.cc: do not stop execution after download
  15822. completes. This makes localhost a seeder.
  15823. * Util.{h,cc}: Added fileCopy().
  15824. * PeerListenCommand.cc: do not stop execution after download completes.
  15825. This makes localhost a seeder.
  15826. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  15827. Added TorrentMan::deleteTempFile() to torrentHandler.
  15828. Initialized the variable dir as ".".
  15829. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  15830. Deleted renameSingleFile().
  15831. Added copySingleFile(), deleteTempFile().
  15832. * DownloadEngine.h: Added virtual function afterEachIteration().
  15833. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  15834. in onEndOfRun() to afterEachIteration().
  15835. In onEndOfRun(), changed if condition to check whether filenameFixed is
  15836. true.
  15837. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  15838. In rangedFileCopy(), added try-catch block to properly close file
  15839. descriptors.
  15840. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  15841. Added afterEachIteration(), isFilenameFixed().
  15842. * Peer.cc: Changed choking strategy.
  15843. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  15844. * TrackerInitCommand.cc: Send completed event only once.
  15845. * DownloadEngine.cc: Added a call to afterEachIteration().
  15846. * TrackerUpdateCommand.cc: Do not stop execution after download
  15847. completes.
  15848. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  15849. connect the peers at most MAX_PEER_UPDATE when a peer list is
  15850. received from a tracker.
  15851. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  15852. Decreased the number of failure peers to delete to 0(just comment out
  15853. the line).
  15854. * Release 0.3.1
  15855. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15856. * PeerInteractionCommand.cc: added a call to
  15857. TorrentMan::unadvertisePiece in Destructor.
  15858. * PeerInteractionCommand.cc: make have message sent immediately
  15859. if the size of pending message queue is zero.
  15860. * TorrentMan.cc: set the maximum size of peer list to 250.
  15861. * TorrentMan.h: changed the container type of Peers and UsedPieces
  15862. to deque.
  15863. * Util.cc: fixed rangedFileCopy.
  15864. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  15865. to Constructor. Also, moved digest cleanup to Destructor.
  15866. * MetaFileUtil.cc: fixed memory leak
  15867. * replaced std::vector with std::deque.
  15868. * AbstractCommand.cc: casted timeout value to long long int.
  15869. * ChunkedEncoding.cc: fixed memory leak.
  15870. * PeerInteractionCommand.cc: casted timeout value to long long int.
  15871. * SleepCommand.cc: casted timeout value to long long int.
  15872. * Data.cc: fixed memory leak.
  15873. * Data.cc: fixed toLLInt().
  15874. * BitfieldMan.cc: fixed memory leak.
  15875. * TorrentMan.cc: initialized storeDir to ".".
  15876. * TorrentMan.cc: fixed memory leak.
  15877. * TorrentMan.cc: corrected file paths of splitted files.
  15878. * PeerAbstractCommand.cc: casted timeout to long long int.
  15879. * main.cc: added delete(req) and delete(te->diskWriter).
  15880. * RequestSlot.cc: casted timeout value to long long int.
  15881. * Request.cc: fixed memory leak.
  15882. * PendingMessage.cc: make HAVE messages sent only when peer does not
  15883. have the piece.
  15884. * Peer.{h,cc}: added hasPiece(int index).
  15885. * main.cc: corrected addCommand.
  15886. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15887. * BitTorrent protocol support added.
  15888. * Release 0.3.0
  15889. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15890. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  15891. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15892. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  15893. decoding did not work properly.
  15894. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15895. * DownloadEngine.h: included sys/time.h
  15896. * DownloadEngine.cc: remove sys/time.h
  15897. * Makefile.am (SUBDIRS): Add intl.
  15898. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  15899. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15900. * main.cc: correct help message for --http-auth-scheme.
  15901. * main.cc: changed e-mail address for bug reports.
  15902. * ja.po: added japanese translation.
  15903. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15904. * SimpleLogger.cc: flush log file instead of stdout.
  15905. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15906. * main.cc: Fixed command-line option: max-tries
  15907. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  15908. does not equal to seg.sp.
  15909. * DownloadCommand.cc: If EOF is got from the server and the total size
  15910. of file is not zero, then throw DlRetryEx.
  15911. * main.cc: Set the minium value of min-segment-size to 1024.
  15912. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  15913. fails because of a regression since 0.2.0 release.
  15914. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15915. * HttpConnection.cc:
  15916. * common.h: defined the user agent name as macro
  15917. * DownloadEngine.{h, cc}:
  15918. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  15919. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  15920. * main.cc: Download complete/abort message is now generated by main.
  15921. * Makefile.am (SUBDIRS): Add m4.
  15922. (ACLOCAL_AMFLAGS): New variable.
  15923. (EXTRA_DIST): New variable.
  15924. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  15925. * gettext: added gettext functionality
  15926. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15927. * AbstractCommand.cc:
  15928. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  15929. unregister its cuid from SegmentMan.
  15930. * DownloadEngine.cc: .aria2 file was written when a downloading
  15931. failed with errors.
  15932. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  15933. Added "User-Agent" header to CONNECT proxy request.
  15934. Fixed "Proxy-Authorization" header. Now proxy authorization works
  15935. properly.
  15936. * Logger.h:
  15937. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  15938. * ChunkedEncoding.cc: Added #include directive for strings.h
  15939. * Release 0.2.1
  15940. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15941. * Util.{h,cc}: added startsWith().
  15942. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  15943. Util::endsWith().
  15944. * SocketCore.cc: struct addrinfo is now zero-initialized.
  15945. * common.h: added #include directive of limit.h.
  15946. * DownloadEngine.cc: added #include directive of sys/time.h and
  15947. algorithm.
  15948. * Exception.h: added #include directive of stdio.h.
  15949. * AbstractCommand.h: added #include directive of sys/time.h.
  15950. * DownloadCommand.h: added #include directive of sys/time.h.
  15951. * *.h: added #include directive of common.h to all base classes.
  15952. subclasses' one was removed.
  15953. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  15954. does not define these macros.
  15955. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15956. * Release 0.2.0
  15957. * main.cc:
  15958. * HttpInitiateConnectionCommand.{h,cc}:
  15959. * prefs.h:
  15960. * HttpConnection.{h,cc}: added --http-proxy-method option.
  15961. We can now use GET command in http proxy.
  15962. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15963. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  15964. that splits slowest segment of SegmentMan::commands vector.
  15965. This is the default split algorithm of aria2.
  15966. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  15967. that splits first segment of SegmentMan::commands vector.
  15968. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  15969. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  15970. * Segment.h:
  15971. * SegmentMan.cc: Added speed field to Segment.h
  15972. * main.cc: -s option now affects all URLs in command-line arguemtns.
  15973. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  15974. * message.h: Change file size related %d to %lld.
  15975. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15976. * FtpInitiateConnectionCommand.{h,cc}:
  15977. * FtpNegotiationCommand.{h,cc}:
  15978. * FtpDownloadCommand.{h,cc}:
  15979. * FtpConnection.{h,cc}: Added FTP support
  15980. * SimpleLogger.cc: Log message now includes time information.
  15981. * main.cc: The value of --http-auth-scheme option is chagned from
  15982. 'BASIC' to 'basic'
  15983. * main.cc: Added --timeout command-line option.
  15984. * main.cc: Added --min-segment-size command-line option.
  15985. * main.cc: Added --max-retries command-line option.
  15986. * prefs.h: option string constants are now defined in prefs.h
  15987. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15988. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  15989. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  15990. with version 0.1.0's one.
  15991. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15992. * configure.in: Added --enable-ssl option to configure script.
  15993. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  15994. cannot permit absoluteURI as Request-URI.
  15995. * HttpConnection.cc: Added Referer support.
  15996. * main.cc: Added referer command-line option.
  15997. * main.cc: Added rety-wait command-line option.
  15998. * Exception.h: Fixed formating bug in Exception::setMsg()
  15999. * SocketCore.{h,cc}:
  16000. * Socket.{h, cc}:
  16001. * Request.cc:
  16002. * InitiateConnectionCommandFactory.cc:
  16003. * HttpRequestCommand.cc: Added HTTPS support.
  16004. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  16005. for SocketCore.
  16006. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  16007. size is wrong
  16008. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  16009. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  16010. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  16011. * Release 0.1.0