ChangeLog 596 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989
  1. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Committed missing BtStopDownloadCommand.{cc,h}
  3. * src/BtStopDownloadCommand.cc
  4. * src/BtStopDownloadCommand.h
  5. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  7. download if the download speed is 0 and the number of seeder is 0
  8. in consecutive SEC seconds. By default, this function is disabled.
  9. * src/BtSetup.cc
  10. * src/Makefile.am
  11. * src/OptionHandlerFactory.cc
  12. * src/prefs.cc
  13. * src/prefs.h
  14. * src/usage_text.h
  15. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  16. Removed the call to DiskAdaptor::onDownloadComplete() from
  17. BtCheckIntegrityEntry and DefaultPieceStorage.
  18. * src/BtCheckIntegrityEntry.cc
  19. * src/DefaultPieceStorage.cc
  20. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  21. Commented out throw statements when number of piece is 0 to
  22. download 0 length torrent.
  23. * src/bittorrent_helper.cc
  24. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  25. Call RequestGroup::createNextCommandWithAdj() from
  26. BtFileAllocationEntry if at least one FileEntry has URI. The
  27. static function hasAssociatedUri in RequestGroup.cc is renamed as
  28. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  29. * src/BtFileAllocationEntry.cc
  30. * src/FileEntry.h
  31. * src/RequestGroup.cc
  32. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  33. Generate peer ID after SimpleRandomizer is initialized.
  34. * src/main.cc
  35. * src/option_processing.cc
  36. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  37. Removed unused method argument.
  38. * src/CreateRequestCommand.cc
  39. * src/RequestGroup.cc
  40. * src/RequestGroup.h
  41. * src/RequestGroupMan.cc
  42. * src/TrackerWatcherCommand.cc
  43. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  44. Made URI reusing function work.
  45. * src/CreateRequestCommand.cc
  46. * src/FileEntry.cc
  47. * src/FileEntry.h
  48. * test/FileEntryTest.cc
  49. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  50. Add formerly fastest PeerStat's sessionDownloadLength to new
  51. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  52. bytes in a session.
  53. * src/PeerStat.cc
  54. * src/SegmentMan.cc
  55. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  56. If pipelining is enabled, we can always pool socket.
  57. * src/HttpDownloadCommand.cc
  58. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  59. In a single file download, file size becomes known just after
  60. downloading, set total length to FileEntry object when download
  61. completed.
  62. * src/DownloadCommand.cc
  63. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  64. Use std::vector::reserve() for fileEntries and pieceHashes in
  65. bittorrent_helper
  66. * src/bittorrent_helper.cc
  67. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  68. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  69. Removed hidden option PREF_RESET_URI.
  70. * src/AbstractCommand.cc
  71. * src/OptionHandlerFactory.cc
  72. * src/prefs.cc
  73. * src/prefs.h
  74. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  75. Removed unused variable/function.
  76. * src/PeerStat.h
  77. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  78. Show first URL in Download Results if file path is not available.
  79. * src/FileEntry.h
  80. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  81. Throw exception if file path doesn't exist in FTP URL.
  82. * src/InitiateConnectionCommandFactory.cc
  83. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  84. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  85. * src/BitfieldMan.cc
  86. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  87. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  88. of PeerStat in SegmentMan. peerStats is used for calculating
  89. download speed. Therefore all active PeerStats should be in
  90. there. Another one is _fastestPeerStats and it only contains
  91. fastest PeerStat for each hostname/protocol pair. They are used
  92. for updating ServerStat.
  93. * src/DownloadCommand.cc
  94. * src/Request.h
  95. * src/RequestGroupMan.cc
  96. * src/SegmentMan.cc
  97. * src/SegmentMan.h
  98. * test/SegmentManTest.cc
  99. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  100. Try all available addresses returned by DNS until it gets
  101. connected in HTTP(S)/FTP download
  102. * src/AbstractCommand.cc
  103. * src/AbstractCommand.h
  104. * src/AbstractProxyRequestCommand.cc
  105. * src/AbstractProxyRequestCommand.h
  106. * src/DNSCache.h
  107. * src/DownloadEngine.cc
  108. * src/DownloadEngine.h
  109. * src/FtpInitiateConnectionCommand.cc
  110. * src/FtpInitiateConnectionCommand.h
  111. * src/FtpNegotiationCommand.cc
  112. * src/FtpNegotiationCommand.h
  113. * src/HttpInitiateConnectionCommand.cc
  114. * src/HttpInitiateConnectionCommand.h
  115. * src/HttpRequestCommand.cc
  116. * src/HttpRequestCommand.h
  117. * src/InitiateConnectionCommand.cc
  118. * src/InitiateConnectionCommand.h
  119. * test/DNSCacheTest.cc
  120. * test/Makefile.am
  121. * test/SimpleDNSCacheTest.cc
  122. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  123. Updated doc
  124. * src/download_helper.cc
  125. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  126. Refactored fieldMan ctor.
  127. * src/BitfieldMan.cc
  128. * src/BitfieldMan.h
  129. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  130. Don't print "No files to download." message if -S is given.
  131. * src/main.cc
  132. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  133. Set referer and method to newly created Request object.
  134. * src/CreateRequestCommand.cc
  135. * src/FileEntry.cc
  136. * src/FileEntry.h
  137. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  138. Removed ctor of AbstractCommand which doesn't take FileEntry.
  139. * src/AbstractCommand.cc
  140. * src/AbstractCommand.h
  141. * src/CreateRequestCommand.cc
  142. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  143. Get proxy download working
  144. * src/AbstractProxyRequestCommand.cc
  145. * src/AbstractProxyRequestCommand.h
  146. * src/AbstractProxyResponseCommand.cc
  147. * src/AbstractProxyResponseCommand.h
  148. * src/FtpInitiateConnectionCommand.cc
  149. * src/FtpTunnelRequestCommand.cc
  150. * src/FtpTunnelRequestCommand.h
  151. * src/FtpTunnelResponseCommand.cc
  152. * src/FtpTunnelResponseCommand.h
  153. * src/HttpInitiateConnectionCommand.cc
  154. * src/HttpProxyRequestCommand.cc
  155. * src/HttpProxyRequestCommand.h
  156. * src/HttpProxyResponseCommand.cc
  157. * src/HttpProxyResponseCommand.h
  158. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  159. Use SegmentMan::getSegment(cuid) for single file download.
  160. * src/AbstractCommand.cc
  161. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  162. Fixed bufSize calculation
  163. * src/DownloadCommand.cc
  164. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  165. Don't append "/" if base URI ends with "/".
  166. * src/bittorrent_helper.cc
  167. * test/url-list-multiFile.torrent
  168. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  169. HTTP pipelining is now working. Fixed Segmention fault in
  170. BitfieldMan's copy ctor.
  171. * src/AbstractCommand.cc
  172. * src/BitfieldMan.cc
  173. * src/BitfieldMan.h
  174. * src/DownloadCommand.cc
  175. * src/HttpDownloadCommand.cc
  176. * src/HttpRequest.cc
  177. * src/SegmentMan.cc
  178. * src/SegmentMan.h
  179. * test/BitfieldManTest.cc
  180. * test/SegmentManTest.cc
  181. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  182. Removed ServerHost. Same functionality is implemented using
  183. FileEntry's in-flight Request objects.
  184. * src/AbstractCommand.cc
  185. * src/BtDependency.cc
  186. * src/CreateRequestCommand.cc
  187. * src/FileEntry.cc
  188. * src/FileEntry.h
  189. * src/FtpNegotiationCommand.cc
  190. * src/HttpResponseCommand.cc
  191. * src/Makefile.am
  192. * src/Metalink2RequestGroup.cc
  193. * src/RequestGroup.cc
  194. * src/RequestGroup.h
  195. * src/ServerHost.cc: Removed
  196. * src/ServerHost.h: Removed
  197. * test/BtDependencyTest.cc
  198. * test/FileEntryTest.cc
  199. * test/RequestGroupTest.cc
  200. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  201. Rewritten PeerStat handling. In the previous implementation,
  202. faster command tries to find slower command. In this new
  203. implementation, slower command tries to find faster command.
  204. PeerStat is now created in each HTTP/FTP request to get download
  205. rate correctly. If the download range is small, the download rate
  206. tends to small and this will occur at the later stage of download.
  207. * src/AbstractCommand.cc
  208. * src/DownloadCommand.cc
  209. * src/FileEntry.cc
  210. * src/FileEntry.h
  211. * src/Request.cc
  212. * src/Request.h
  213. * src/RequestGroup.h
  214. * src/RequestGroupMan.cc
  215. * src/SegmentMan.cc
  216. * src/SegmentMan.h
  217. * test/SegmentManTest.cc
  218. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  219. Removed _uris from RequestGroup. All functions that refer to _uris
  220. were moved to FileEntry. Exit status code are now defined in
  221. DownloadResultCode.h.
  222. * src/AbstractCommand.cc
  223. * src/AdaptiveURISelector.cc
  224. * src/AdaptiveURISelector.h
  225. * src/AutoSaveCommand.cc
  226. * src/BtPostDownloadHandler.cc
  227. * src/CheckIntegrityDispatcherCommand.cc
  228. * src/CookieStorage.cc
  229. * src/DHTAutoSaveCommand.cc
  230. * src/DHTBucketRefreshCommand.cc
  231. * src/DHTEntryPointNameResolveCommand.cc
  232. * src/DHTInteractionCommand.cc
  233. * src/DHTPeerAnnounceCommand.cc
  234. * src/DHTTokenUpdateCommand.cc
  235. * src/DlAbortEx.h
  236. * src/DlRetryEx.h
  237. * src/DownloadCommand.cc
  238. * src/DownloadContext.h
  239. * src/DownloadFailureException.h
  240. * src/DownloadResult.h
  241. * src/DownloadResultCode.h
  242. * src/FeedbackURISelector.cc
  243. * src/FeedbackURISelector.h
  244. * src/FileEntry.cc
  245. * src/FileEntry.h
  246. * src/FtpNegotiationCommand.cc
  247. * src/HttpListenCommand.cc
  248. * src/HttpResponseCommand.cc
  249. * src/HttpServerResponseCommand.cc
  250. * src/HttpSkipResponseCommand.cc
  251. * src/InOrderURISelector.cc
  252. * src/InOrderURISelector.h
  253. * src/Makefile.am
  254. * src/Makefile.in
  255. * src/Metalink2RequestGroup.cc
  256. * src/MultiUrlRequestInfo.cc
  257. * src/MultiUrlRequestInfo.h
  258. * src/OptionHandlerFactory.cc
  259. * src/PeerListenCommand.cc
  260. * src/RecoverableException.h
  261. * src/RequestGroup.cc
  262. * src/RequestGroup.h
  263. * src/RequestGroupMan.cc
  264. * src/RequestGroupMan.h
  265. * src/TimedHaltCommand.cc
  266. * src/TrackerWatcherCommand.cc
  267. * src/URIResult.cc
  268. * src/URIResult.h
  269. * src/URISelector.h
  270. * src/XmlRpcMethodImpl.cc
  271. * src/bittorrent_helper.cc
  272. * src/bittorrent_helper.h
  273. * src/download_helper.cc
  274. * src/main.cc
  275. * src/option_processing.cc
  276. * test/BtDependencyTest.cc
  277. * test/BtPostDownloadHandlerTest.cc
  278. * test/CookieStorageTest.cc
  279. * test/DefaultBtMessageDispatcherTest.cc
  280. * test/DownloadHandlerFactoryTest.cc
  281. * test/DownloadHelperTest.cc
  282. * test/FeedbackURISelectorTest.cc
  283. * test/FileEntryTest.cc
  284. * test/InOrderURISelectorTest.cc
  285. * test/Metalink2RequestGroupTest.cc
  286. * test/MetalinkPostDownloadHandlerTest.cc
  287. * test/RequestGroupManTest.cc
  288. * test/RequestGroupTest.cc
  289. * test/XmlRpcMethodTest.cc
  290. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  291. Removed MockBtContext.h
  292. * test/Makefile.am
  293. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  294. Removed _currentRequest from StreamCheckIntegrityEntry and
  295. StreamFileAllocationEntry.
  296. * src/AbstractCommand.cc
  297. * src/HttpResponseCommand.cc
  298. * src/RequestGroup.cc
  299. * src/StreamCheckIntegrityEntry.cc
  300. * src/StreamCheckIntegrityEntry.h
  301. * src/StreamFileAllocationEntry.cc
  302. * src/StreamFileAllocationEntry.h
  303. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  304. Rewritten DownloadContext and removed SingleFileDownloadContext
  305. and BtContext and its derived classes. BitTorrent specific
  306. attributes are now set by DownloadContext::setAttribute() with key
  307. bittorrent::BITTORRENT.
  308. * src/AbstractBtMessage.cc
  309. * src/AbstractBtMessage.h
  310. * src/AbstractCommand.cc
  311. * src/AbstractCommand.h
  312. * src/AbstractProxyRequestCommand.cc
  313. * src/AbstractProxyResponseCommand.cc
  314. * src/ActivePeerConnectionCommand.cc
  315. * src/ActivePeerConnectionCommand.h
  316. * src/AnnounceList.cc
  317. * src/BtCheckIntegrityEntry.cc
  318. * src/BtConstants.h
  319. * src/BtContext.h: Removed
  320. * src/BtDependency.cc
  321. * src/BtExtendedMessage.cc
  322. * src/BtPieceMessage.cc
  323. * src/BtPieceMessage.h
  324. * src/BtPostDownloadHandler.cc
  325. * src/BtRegistry.cc
  326. * src/BtRegistry.h
  327. * src/BtSetup.cc
  328. * src/CheckIntegrityCommand.cc
  329. * src/CheckIntegrityEntry.cc
  330. * src/ChecksumCheckIntegrityEntry.cc
  331. * src/ConsoleStatCalc.cc
  332. * src/ContentTypeRequestGroupCriteria.cc
  333. * src/DHTGetPeersCommand.cc
  334. * src/DHTGetPeersCommand.h
  335. * src/DHTPeerLookupTask.cc
  336. * src/DHTPeerLookupTask.h
  337. * src/DHTTaskFactory.h
  338. * src/DHTTaskFactoryImpl.cc
  339. * src/DHTTaskFactoryImpl.h
  340. * src/DefaultBtAnnounce.cc
  341. * src/DefaultBtAnnounce.h
  342. * src/DefaultBtContext.cc: Removed
  343. * src/DefaultBtContext.h: Removed
  344. * src/DefaultBtInteractive.cc
  345. * src/DefaultBtInteractive.h
  346. * src/DefaultBtMessageDispatcher.cc
  347. * src/DefaultBtMessageDispatcher.h
  348. * src/DefaultBtMessageFactory.cc
  349. * src/DefaultBtMessageFactory.h
  350. * src/DefaultBtMessageReceiver.cc
  351. * src/DefaultBtMessageReceiver.h
  352. * src/DefaultBtProgressInfoFile.cc
  353. * src/DefaultBtRequestFactory.cc
  354. * src/DefaultBtRequestFactory.h
  355. * src/DefaultExtensionMessageFactory.cc
  356. * src/DefaultExtensionMessageFactory.h
  357. * src/DefaultPeerStorage.cc
  358. * src/DefaultPeerStorage.h
  359. * src/DefaultPieceStorage.cc
  360. * src/DefaultSegmentManFactory.cc
  361. * src/DiskAdaptor.cc
  362. * src/DiskAdaptor.h
  363. * src/DownloadContext.cc
  364. * src/DownloadContext.h
  365. * src/DownloadEngine.cc
  366. * src/DownloadEngineFactory.cc
  367. * src/DownloadHandler.cc
  368. * src/DownloadResult.h
  369. * src/FileAllocationCommand.cc
  370. * src/FileAllocationDispatcherCommand.cc
  371. * src/FileAllocationEntry.cc
  372. * src/FileEntry.h
  373. * src/FillRequestGroupCommand.cc
  374. * src/FtpDownloadCommand.cc
  375. * src/FtpFinishDownloadCommand.cc
  376. * src/FtpInitiateConnectionCommand.cc
  377. * src/FtpNegotiationCommand.cc
  378. * src/FtpTunnelRequestCommand.cc
  379. * src/FtpTunnelResponseCommand.cc
  380. * src/HandshakeExtensionMessage.cc
  381. * src/HandshakeExtensionMessage.h
  382. * src/HaveEraseCommand.cc
  383. * src/HttpDownloadCommand.cc
  384. * src/HttpInitiateConnectionCommand.cc
  385. * src/HttpProxyRequestCommand.cc
  386. * src/HttpProxyResponseCommand.cc
  387. * src/HttpRequest.cc
  388. * src/HttpRequest.h
  389. * src/HttpRequestCommand.cc
  390. * src/HttpResponseCommand.cc
  391. * src/HttpServerBodyCommand.cc
  392. * src/HttpServerCommand.cc
  393. * src/HttpSkipResponseCommand.cc
  394. * src/InitiateConnectionCommandFactory.cc
  395. * src/InitiatorMSEHandshakeCommand.cc
  396. * src/InitiatorMSEHandshakeCommand.h
  397. * src/IteratableChecksumValidator.cc
  398. * src/IteratableChecksumValidator.h
  399. * src/IteratableChunkChecksumValidator.cc
  400. * src/MSEHandshake.cc
  401. * src/MSEHandshake.h
  402. * src/Makefile.am
  403. * src/Makefile.in
  404. * src/Metalink2RequestGroup.cc
  405. * src/MetalinkPostDownloadHandler.cc
  406. * src/MultiDiskAdaptor.cc
  407. * src/MultiDiskAdaptor.h
  408. * src/MultiFileAllocationIterator.cc
  409. * src/MultiUrlRequestInfo.cc
  410. * src/PeerChokeCommand.cc
  411. * src/PeerChokeCommand.h
  412. * src/PeerInitiateConnectionCommand.cc
  413. * src/PeerInitiateConnectionCommand.h
  414. * src/PeerInteractionCommand.cc
  415. * src/PeerInteractionCommand.h
  416. * src/PeerReceiveHandshakeCommand.cc
  417. * src/PieceHashCheckIntegrityEntry.cc
  418. * src/RealtimeCommand.cc
  419. * src/ReceiverMSEHandshakeCommand.cc
  420. * src/RequestGroup.cc
  421. * src/RequestGroup.h
  422. * src/RequestGroupEntry.cc
  423. * src/RequestGroupMan.cc
  424. * src/SeedCheckCommand.cc
  425. * src/SeedCheckCommand.h
  426. * src/SegmentMan.cc
  427. * src/ShareRatioSeedCriteria.h
  428. * src/SingleFileDownloadContext.cc: Removed
  429. * src/SingleFileDownloadContext.h: Removed
  430. * src/SleepCommand.cc
  431. * src/StreamCheckIntegrityEntry.cc
  432. * src/TrackerWatcherCommand.cc
  433. * src/TrackerWatcherCommand.h
  434. * src/UnknownLengthPieceStorage.cc
  435. * src/Util.cc
  436. * src/Util.h
  437. * src/XmlRpcMethodImpl.cc
  438. * src/bittorrent_helper.cc
  439. * src/bittorrent_helper.h
  440. * src/download_helper.cc
  441. * src/main.cc
  442. * src/option_processing.cc
  443. * test/BitfieldManTest.cc
  444. * test/BittorrentHelperTest.cc
  445. * test/BtCancelMessageTest.cc
  446. * test/BtChokeMessageTest.cc
  447. * test/BtDependencyTest.cc
  448. * test/BtPieceMessageTest.cc
  449. * test/BtPostDownloadHandlerTest.cc
  450. * test/BtRegistryTest.cc
  451. * test/BtRejectMessageTest.cc
  452. * test/BtRequestMessageTest.cc
  453. * test/DHTPeerAnnounceStorageTest.cc
  454. * test/DefaultBtAnnounceTest.cc
  455. * test/DefaultBtContextTest.cc: Removed
  456. * test/DefaultBtMessageDispatcherTest.cc
  457. * test/DefaultBtMessageFactoryTest.cc
  458. * test/DefaultBtProgressInfoFileTest.cc
  459. * test/DefaultBtRequestFactoryTest.cc
  460. * test/DefaultExtensionMessageFactoryTest.cc
  461. * test/DefaultPeerStorageTest.cc
  462. * test/DefaultPieceStorageTest.cc
  463. * test/DirectDiskAdaptorTest.cc
  464. * test/DownloadContextTest.cc
  465. * test/DownloadHandlerFactoryTest.cc
  466. * test/DownloadHelperTest.cc
  467. * test/HandshakeExtensionMessageTest.cc
  468. * test/HttpRequestTest.cc
  469. * test/HttpResponseTest.cc
  470. * test/IteratableChecksumValidatorTest.cc
  471. * test/IteratableChunkChecksumValidatorTest.cc
  472. * test/MSEHandshakeTest.cc
  473. * test/Makefile.am
  474. * test/Makefile.in
  475. * test/Metalink2RequestGroupTest.cc
  476. * test/MetalinkPostDownloadHandlerTest.cc
  477. * test/MockBtContext.h: Removed
  478. * test/MockDHTTaskFactory.h
  479. * test/MockDownloadContext.h: Removed
  480. * test/MockPieceStorage.h
  481. * test/MultiDiskAdaptorTest.cc
  482. * test/MultiFileAllocationIteratorTest.cc
  483. * test/RequestGroupManTest.cc
  484. * test/RequestGroupTest.cc
  485. * test/SegmentManTest.cc
  486. * test/ShareRatioSeedCriteriaTest.cc
  487. * test/SingleFileDownloadContextTest.cc: Removed
  488. * test/UtilTest.cc
  489. * test/XmlRpcMethodTest.cc
  490. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  491. Added experimental support of WEB-Seeding for multi-file torrent.
  492. Due to fundamental changes in file handling in HTTP/FTP code, many
  493. functions are not working: PeerStat, ServerHost, proxy..etc
  494. * src/AbstractCommand.cc
  495. * src/AbstractCommand.h
  496. * src/BitfieldMan.cc
  497. * src/BitfieldMan.h
  498. * src/CreateRequestCommand.cc
  499. * src/CreateRequestCommand.h
  500. * src/DefaultPieceStorage.cc
  501. * src/DefaultPieceStorage.h
  502. * src/DownloadCommand.cc
  503. * src/DownloadCommand.h
  504. * src/DownloadContext.cc
  505. * src/DownloadContext.h
  506. * src/FileEntry.cc
  507. * src/FileEntry.h
  508. * src/FtpDownloadCommand.cc
  509. * src/FtpDownloadCommand.h
  510. * src/FtpFinishDownloadCommand.cc
  511. * src/FtpFinishDownloadCommand.h
  512. * src/FtpInitiateConnectionCommand.cc
  513. * src/FtpInitiateConnectionCommand.h
  514. * src/FtpNegotiationCommand.cc
  515. * src/FtpNegotiationCommand.h
  516. * src/FtpTunnelResponseCommand.cc
  517. * src/HttpDownloadCommand.cc
  518. * src/HttpDownloadCommand.h
  519. * src/HttpInitiateConnectionCommand.cc
  520. * src/HttpInitiateConnectionCommand.h
  521. * src/HttpProxyResponseCommand.cc
  522. * src/HttpRequest.cc
  523. * src/HttpRequest.h
  524. * src/HttpRequestCommand.cc
  525. * src/HttpRequestCommand.h
  526. * src/HttpResponseCommand.cc
  527. * src/HttpResponseCommand.h
  528. * src/HttpSkipResponseCommand.cc
  529. * src/HttpSkipResponseCommand.h
  530. * src/InitiateConnectionCommand.cc
  531. * src/InitiateConnectionCommand.h
  532. * src/InitiateConnectionCommandFactory.cc
  533. * src/InitiateConnectionCommandFactory.h
  534. * src/Makefile.am
  535. * src/PieceStorage.h
  536. * src/RequestGroup.cc
  537. * src/RequestGroup.h
  538. * src/RequestGroupMan.cc
  539. * src/SegmentMan.cc
  540. * src/SegmentMan.h
  541. * src/SingleFileDownloadContext.h
  542. * src/StreamFileAllocationEntry.cc
  543. * src/TrackerWatcherCommand.cc
  544. * src/UnknownLengthPieceStorage.cc
  545. * src/UnknownLengthPieceStorage.h
  546. * src/array_fun.h
  547. * src/bitfield.h
  548. * src/download_helper.cc
  549. * test/DownloadContextTest.cc
  550. * test/Makefile.am
  551. * test/MockDownloadContext.h
  552. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  553. Added tellWaiting XML-RPC method.
  554. * src/SingleFileDownloadContext.cc
  555. * src/XmlRpcMethodFactory.cc
  556. * src/XmlRpcMethodImpl.cc
  557. * src/XmlRpcMethodImpl.h
  558. * test/XmlRpcMethodTest.cc
  559. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  560. Updated CookieStorageTest
  561. * test/CookieStorageTest.cc
  562. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  563. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  564. handle excepion inside these functions.
  565. * src/LibgnutlsTLSContext.cc
  566. * src/LibgnutlsTLSContext.h
  567. * src/LibsslTLSContext.cc
  568. * src/LibsslTLSContext.h
  569. * src/MultiUrlRequestInfo.cc
  570. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  571. Added comment
  572. * src/RequestGroup.cc
  573. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  574. In CookieStorage::load() and saveNsFormat(), handle exception
  575. inside the functions. When saving Cookies, first write temporary
  576. file and after successful writes, then renames it to final
  577. destination.
  578. * src/CookieStorage.cc
  579. * src/CookieStorage.h
  580. * src/MultiUrlRequestInfo.cc
  581. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  582. The default value of --dir option is the absolute path to the
  583. current directory. If getcwd() is failed, then it is ".", which is
  584. the same value with old implementation. This change is necessary
  585. because after daemon() call, the current working directory is
  586. changed to /.
  587. * src/File.cc
  588. * src/File.h
  589. * src/OptionHandlerFactory.cc
  590. * src/option_processing.cc
  591. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  592. Call daemon() with arguments(0,0), which means daemon() changes
  593. current working directory to / and redirects stdin, stdout and
  594. stderr to /dev/null.
  595. * src/option_processing.cc
  596. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  597. Small performance optimizations.
  598. * src/RequestGroupMan.cc
  599. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  600. Added _xmlRpc member variable to RequestGroupMan to reduce the
  601. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  602. * src/RequestGroupMan.cc
  603. * src/RequestGroupMan.h
  604. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  605. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  606. setNoWiat(true) if newly created command calls
  607. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  608. * src/HttpListenCommand.cc
  609. * src/HttpServerBodyCommand.cc
  610. * src/HttpServerCommand.cc
  611. * src/HttpServerResponseCommand.cc
  612. * src/InitiateConnectionCommand.cc
  613. * src/RequestGroup.cc
  614. * src/StreamFileAllocationEntry.cc
  615. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  616. Removed include vector
  617. * src/BtRegistry.h
  618. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  619. Rewritten BtRegistry
  620. * src/BtRegistry.cc
  621. * src/BtRegistry.h
  622. * src/BtSetup.cc
  623. * src/ConsoleStatCalc.cc
  624. * src/PeerInteractionCommand.cc
  625. * src/PeerReceiveHandshakeCommand.cc
  626. * src/ReceiverMSEHandshakeCommand.cc
  627. * src/RequestGroup.cc
  628. * src/XmlRpcMethodImpl.cc
  629. * test/BtRegistryTest.cc
  630. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  631. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  632. * src/DefaultBtProgressInfoFile.cc
  633. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  634. Throw an exception if position is less than 0.
  635. * src/XmlRpcMethodImpl.cc
  636. * test/XmlRpcMethodTest.cc
  637. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  638. Use writeFilePath() in ConsoleStatCalc.cc
  639. * src/ConsoleStatCalc.cc
  640. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  641. Receive the return value as const reference from
  642. DownloadContext::getFileEntries().
  643. * src/DefaultPieceStorage.cc
  644. * src/RequestGroupMan.cc
  645. * src/XmlRpcMethodImpl.cc
  646. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  647. DownloadContext now has _fileEntries so that
  648. DownloadContext::getFileEntries() can returns its const reference.
  649. * src/DefaultBtContext.cc
  650. * src/DefaultBtContext.h
  651. * src/DownloadContext.cc
  652. * src/DownloadContext.h
  653. * src/SingleFileDownloadContext.cc
  654. * src/SingleFileDownloadContext.h
  655. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  656. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  657. writeFilePath() function template from RequestGroupMan.cc to
  658. FileEntry.h
  659. * src/FileEntry.h
  660. * src/RequestGroupMan.cc
  661. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  662. Documented 'position' parameter is starting from 0 in man page.
  663. * doc/aria2c.1.txt
  664. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  665. Updated doc.
  666. * src/MSEHandshake.cc
  667. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  668. Removed _acceptFeatures and its accessor functions from
  669. RequestGroup since they are not used practically.
  670. * src/HttpRequestCommand.cc
  671. * src/RequestGroup.cc
  672. * src/RequestGroup.h
  673. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  674. Removed member _maxTries from RequestGroup class to avoid
  675. duplicate option value. Those classes who refer this variable
  676. should use option value of PREF_MAX_TRIES directly.
  677. * src/AbstractCommand.cc
  678. * src/RequestGroup.cc
  679. * src/RequestGroup.h
  680. * src/TrackerWatcherCommand.cc
  681. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  682. * Release 1.4.1
  683. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  684. Fixed compiler warnings on netbsd
  685. * src/DHTConnectionImpl.cc
  686. * src/PeerListenCommand.cc
  687. * src/PeerSessionResource.cc
  688. * src/SegmentMan.cc
  689. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  690. Updated Ukrainian translation. Thanks to all translators.
  691. * po/uk.po
  692. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  693. Bump up version number to 1.4.1.
  694. * configure.ac
  695. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  696. Added unit tests for strjoin, strconcat and strappend.
  697. * test/a2functionalTest.cc
  698. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  699. Rewritten strconcat and strappend using operator+ instead of
  700. append().
  701. * src/a2functional.h
  702. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  703. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  704. is enabled.
  705. * src/Makefile.am
  706. * test/Makefile.am
  707. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  708. Added countSeeder() function which counts seeder in the given
  709. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  710. * src/ConsoleStatCalc.cc
  711. * src/Peer.h
  712. * src/XmlRpcMethodImpl.cc
  713. * test/PeerTest.cc
  714. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  715. Documented missing seeder in getPeers xml-rpc method.
  716. Documented uploadLength and numSeeders.
  717. * doc/aria2c.1.txt
  718. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  719. Added uploadLength and numSeeders to the response of tellStatus
  720. xml-rpc method. Assert that PeerStorage instance is not null
  721. instead of checking if statement. It should be non-null in this
  722. context.
  723. * src/XmlRpcMethodImpl.cc
  724. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  725. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  726. * src/XmlRpcResponse.cc
  727. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  728. Avoid intermediate object during string concatenation.
  729. * src/HttpRequest.cc
  730. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  731. Added strjoin function template. Use it in pathJoin()
  732. * src/Util.h
  733. * src/a2functional.h
  734. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  735. Avoid intermediate object during string concatenation. Replaced
  736. post-increment unary operator with pre-increment one in for loop.
  737. * src/AdaptiveURISelector.cc
  738. * src/AnnounceList.cc
  739. * src/AuthConfig.h
  740. * src/BtBitfieldMessage.cc
  741. * src/BtExtendedMessage.cc
  742. * src/BtHandshakeMessage.cc
  743. * src/BtPieceMessage.cc
  744. * src/BtPortMessage.cc
  745. * src/Cookie.cc
  746. * src/DHTAnnouncePeerMessage.cc
  747. * src/DHTAutoSaveCommand.cc
  748. * src/DHTGetPeersReplyMessage.cc
  749. * src/DHTNode.cc
  750. * src/DHTQueryMessage.cc
  751. * src/DHTResponseMessage.cc
  752. * src/DHTUnknownMessage.cc
  753. * src/DefaultBtAnnounce.cc
  754. * src/DefaultBtContext.cc
  755. * src/DefaultBtInteractive.cc
  756. * src/DefaultBtProgressInfoFile.cc
  757. * src/DefaultPeerStorage.cc
  758. * src/DownloadEngine.cc
  759. * src/FeatureConfig.cc
  760. * src/File.cc
  761. * src/FtpConnection.cc
  762. * src/FtpNegotiationCommand.cc
  763. * src/HandshakeExtensionMessage.cc
  764. * src/HttpConnection.cc
  765. * src/HttpRequest.cc
  766. * src/HttpResponseCommand.cc
  767. * src/HttpServer.cc
  768. * src/IndexBtMessage.cc
  769. * src/Metalink2RequestGroup.cc
  770. * src/OptionHandlerImpl.h
  771. * src/PStringBuildVisitor.cc
  772. * src/Peer.cc
  773. * src/PeerListenCommand.cc
  774. * src/Piece.cc
  775. * src/RangeBtMessage.cc
  776. * src/Request.cc
  777. * src/Request.h
  778. * src/RequestGroup.cc
  779. * src/RequestGroupMan.cc
  780. * src/ServerStat.cc
  781. * src/ServerStatMan.cc
  782. * src/UTPexExtensionMessage.cc
  783. * src/Util.cc
  784. * src/a2functional.h
  785. * src/download_helper.cc
  786. * src/messageDigest.cc
  787. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  788. Unchoke a peer randomly at first and second choke round in seed
  789. state.
  790. * src/BtSeederStateChoke.cc
  791. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  792. Added (sock_t) to quiet compiler warnings in MinGW
  793. * src/SocketCore.cc
  794. * src/SocketCore.h
  795. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  796. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  797. * src/EpollEventPoll.h
  798. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  799. Added fork() emulation using CreateProcess() in MinGW
  800. * src/RequestGroupMan.cc
  801. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  802. * Release 1.4.0
  803. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  804. Added utf8.torrent to EXTRA_DIST
  805. * test/Makefile.am
  806. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  807. Fixed docs of aria2.addMetalink xml-rpc method.
  808. * doc/aria2c.1.txt
  809. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  810. Added Slovak translation. Updated Ukrainian and Brazilian
  811. Portuguese translation. Thanks to all translators.
  812. * po/sk.po
  813. * po/uk.po
  814. * po/pt_BR.po
  815. * po/LINGUAS
  816. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  817. Added test case for XmlRpcProcessor to fail to parse malformed
  818. document.
  819. * test/XmlRpcRequestProcessorTest.cc
  820. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  821. Removed *.gmo files in po because they are generated on 'make
  822. dist'
  823. * po/*.gmo
  824. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  825. Documented max-concurrent-downloads of changeGlobalOption method
  826. in man page.
  827. * doc/aria2c.1.txt
  828. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  829. Added max-concurrent-downloads option to changeGlobalOption
  830. xml-rpc method. Rewritten loop conditional in
  831. RequestGroupMan::fillRequestGroupFromReserver().
  832. * src/RequestGroupMan.cc
  833. * src/RequestGroupMan.h
  834. * src/XmlRpcMethod.cc
  835. * src/XmlRpcMethodImpl.cc
  836. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  837. Documented position parameter in man page.
  838. * doc/aria2c.1.txt
  839. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  840. Added 'position' parameter to addUri, addTorrent and addMetalink
  841. xml-rpc method.
  842. * src/RequestGroupMan.cc
  843. * src/RequestGroupMan.h
  844. * src/XmlRpcMethodImpl.cc
  845. * test/XmlRpcMethodTest.cc
  846. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  847. Removed Peer.cc from compile source list when --disable-bittorrent
  848. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  849. takes Peer.
  850. * src/DefaultPieceStorage.cc
  851. * src/DefaultPieceStorage.h
  852. * src/Makefile.am
  853. * src/PieceStorage.h
  854. * src/UnknownLengthPieceStorage.cc
  855. * src/UnknownLengthPieceStorage.h
  856. * test/MockPieceStorage.h
  857. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  858. Implemented getter methods in header files to give them more
  859. chance of optimization.
  860. Return const reference for SharadHandle if possible.
  861. * src/AbstractAuthResolver.cc
  862. * src/AbstractAuthResolver.h
  863. * src/AbstractBtMessage.cc
  864. * src/AbstractBtMessage.h
  865. * src/AbstractSingleDiskAdaptor.cc
  866. * src/AbstractSingleDiskAdaptor.h
  867. * src/AsyncNameResolver.cc
  868. * src/AsyncNameResolver.h
  869. * src/BNode.cc
  870. * src/BNode.h
  871. * src/BitfieldMan.cc
  872. * src/BitfieldMan.h
  873. * src/BtAbortOutstandingRequestEvent.h
  874. * src/BtExtendedMessage.cc
  875. * src/BtExtendedMessage.h
  876. * src/BtSeederStateChoke.cc
  877. * src/BtSeederStateChoke.h
  878. * src/Cookie.cc
  879. * src/Cookie.h
  880. * src/DHTBucket.cc
  881. * src/DHTBucket.h
  882. * src/DHTConnectionImpl.cc
  883. * src/DHTConnectionImpl.h
  884. * src/DHTFindNodeReplyMessage.cc
  885. * src/DHTFindNodeReplyMessage.h
  886. * src/DHTGetPeersReplyMessage.cc
  887. * src/DHTGetPeersReplyMessage.h
  888. * src/DHTInteractionCommand.cc
  889. * src/DHTMessage.cc
  890. * src/DHTMessage.h
  891. * src/DHTMessageDispatcherImpl.cc
  892. * src/DHTMessageEntry.cc
  893. * src/DHTMessageReceiver.cc
  894. * src/DHTMessageReceiver.h
  895. * src/DHTMessageTrackerEntry.cc
  896. * src/DHTMessageTrackerEntry.h
  897. * src/DHTPeerAnnounceEntry.cc
  898. * src/DHTPeerAnnounceEntry.h
  899. * src/DHTPeerLookupTask.cc
  900. * src/DHTPeerLookupTask.h
  901. * src/DHTRoutingTableDeserializer.cc
  902. * src/DHTRoutingTableDeserializer.h
  903. * src/DefaultBtAnnounce.cc
  904. * src/DefaultBtAnnounce.h
  905. * src/DefaultBtMessageDispatcher.cc
  906. * src/DefaultBtMessageDispatcher.h
  907. * src/DefaultBtRequestFactory.cc
  908. * src/DefaultBtRequestFactory.h
  909. * src/DiskAdaptor.cc
  910. * src/DiskAdaptor.h
  911. * src/DownloadContext.cc
  912. * src/DownloadContext.h
  913. * src/DownloadEngine.cc
  914. * src/DownloadEngine.h
  915. * src/EpollEventPoll.cc
  916. * src/EpollEventPoll.h
  917. * src/FtpConnection.cc
  918. * src/FtpConnection.h
  919. * src/HttpConnection.cc
  920. * src/HttpConnection.h
  921. * src/HttpHeader.cc
  922. * src/HttpHeader.h
  923. * src/HttpRequest.cc
  924. * src/HttpRequest.h
  925. * src/HttpResponse.cc
  926. * src/HttpResponse.h
  927. * src/LibsslTLSContext.cc
  928. * src/LibsslTLSContext.h
  929. * src/MSEHandshake.cc
  930. * src/MSEHandshake.h
  931. * src/MetalinkEntry.cc
  932. * src/MetalinkEntry.h
  933. * src/MetalinkParserController.cc
  934. * src/MetalinkParserController.h
  935. * src/MetalinkParserStateMachine.cc
  936. * src/MetalinkParserStateMachine.h
  937. * src/MultiDiskAdaptor.cc
  938. * src/MultiDiskAdaptor.h
  939. * src/NetrcAuthResolver.cc
  940. * src/NetrcAuthResolver.h
  941. * src/Peer.cc
  942. * src/Peer.h
  943. * src/PeerSessionResource.cc
  944. * src/PeerSessionResource.h
  945. * src/Piece.cc
  946. * src/Piece.h
  947. * src/PieceStatMan.cc
  948. * src/PieceStatMan.h
  949. * src/Request.cc
  950. * src/Request.h
  951. * src/RequestGroup.cc
  952. * src/RequestGroup.h
  953. * src/RequestGroupMan.cc
  954. * src/RequestGroupMan.h
  955. * src/RequestSlot.cc
  956. * src/RequestSlot.h
  957. * src/SegmentMan.cc
  958. * src/SegmentMan.h
  959. * src/SelectEventPoll.cc
  960. * src/SelectEventPoll.h
  961. * src/ServerStat.cc
  962. * src/ServerStat.h
  963. * src/Signature.cc
  964. * src/Signature.h
  965. * src/URIResult.cc
  966. * src/URIResult.h
  967. * src/UTPexExtensionMessage.cc
  968. * src/UTPexExtensionMessage.h
  969. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  970. Fixed compile error without BitTorrent and Metalink support.
  971. * src/XmlRpcMethod.cc
  972. * src/XmlRpcMethodFactory.cc
  973. * src/XmlRpcMethodImpl.cc
  974. * src/XmlRpcMethodImpl.h
  975. * test/XmlRpcMethodTest.cc
  976. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  977. Rewritten the help message for --allow-overwrite option.
  978. * doc/aria2c.1.txt
  979. * src/usage_text.h
  980. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  981. Fixed typo
  982. * doc/aria2c.1.txt
  983. * src/usage_text.h
  984. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  985. Updated README for 1.4.0 release. Use new table syntax of
  986. asciidoc.
  987. * README
  988. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  989. Documented --xml-rpc-max-request-size option in man page.
  990. * doc/aria2c.1.txt
  991. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  992. Moved C_* constants from BtContext to DefaultBtContext.
  993. * src/BtContext.cc: Removed.
  994. * src/BtContext.h
  995. * src/DefaultBtContext.cc
  996. * src/DefaultBtContext.h
  997. * src/Makefile.am
  998. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  999. Use name.utf-8 and path.utf-8 key in higher priority than name and
  1000. path key respectively when persing .torrent file.
  1001. * src/BtContext.cc
  1002. * src/BtContext.h
  1003. * src/DefaultBtContext.cc
  1004. * test/DefaultBtContextTest.cc
  1005. * test/utf8.torrent
  1006. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1007. Added --xml-rpc-max-request-size option to limit the size of
  1008. XML-RPC request.
  1009. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1010. Documented XML-RPC API in man page.
  1011. * doc/aria2c.1.txt
  1012. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1013. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  1014. will break strict-aliasing rules
  1015. * src/PeerConnection.cc
  1016. * test/DHTRoutingTableSerializerTest.cc
  1017. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1018. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  1019. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  1020. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  1021. PKG_CHECK_MODULES macro uses latter name.
  1022. * m4/sqlite3.m4
  1023. * src/Makefile.am
  1024. * test/Makefile.am
  1025. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1026. Fixed typo
  1027. * configure.ac
  1028. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1029. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  1030. presence of libgnutls using pkg-config first. If it fails, fall
  1031. back to old macro libgnutls.m4.
  1032. * configure.ac
  1033. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1034. Use s itself instead of !s.bad()
  1035. * src/CookieStorage.cc
  1036. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1037. Documented --on-download-* option and --save-cookies option in man
  1038. page.
  1039. * doc/aria2c.1.txt
  1040. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1041. Set possible values for --load-cookie option to "/path/to/file".
  1042. * src/OptionHandlerFactory.cc
  1043. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1044. Added --save-cookies option.
  1045. * src/Cookie.cc
  1046. * src/Cookie.h
  1047. * src/CookieStorage.cc
  1048. * src/CookieStorage.h
  1049. * src/MultiUrlRequestInfo.cc
  1050. * src/OptionHandlerFactory.cc
  1051. * src/prefs.cc
  1052. * src/prefs.h
  1053. * src/usage_text.h
  1054. * test/CookieStorageTest.cc
  1055. * test/CookieTest.cc
  1056. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1057. Removed tellAll XML-RPC command because its reponse tends to be
  1058. big if stopped/waiting downloads pile up.
  1059. * src/XmlRpcMethodFactory.cc
  1060. * src/XmlRpcMethodImpl.cc
  1061. * src/XmlRpcMethodImpl.h
  1062. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1063. Added the ability to execute command when download starts and
  1064. stops. You can also specify command for particular cases such as
  1065. complete/error download. Added --on-download-start,
  1066. --on-download-stop, --on-download-complete and --on-download-error
  1067. option.
  1068. * src/OptionHandlerFactory.cc
  1069. * src/RequestGroupMan.cc
  1070. * src/prefs.cc
  1071. * src/prefs.h
  1072. * src/usage_text.h
  1073. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1074. Fixed test error
  1075. * test/BencodeTest.cc
  1076. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1077. Added unit tests.
  1078. * test/XmlRpcMethodTest.cc
  1079. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1080. Made exception message more verbose.
  1081. * src/bencode.cc
  1082. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1083. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  1084. space in console readout. Also they are now shown in MiB/s if
  1085. speed > 1024KiB/s.
  1086. * src/ConsoleStatCalc.cc
  1087. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1088. Added SEED to console output, which represents the number of
  1089. seeders currently the client is connecting to.
  1090. * src/ConsoleStatCalc.cc
  1091. * src/ConsoleStatCalc.h
  1092. * src/DownloadEngine.cc
  1093. * src/NullStatCalc.h
  1094. * src/StatCalc.h
  1095. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1096. Added source filename(__FILE__) and line number(__LINE__) to
  1097. exception message.
  1098. * src/AbstractCommand.cc
  1099. * src/AbstractDiskWriter.cc
  1100. * src/AbstractProxyResponseCommand.cc
  1101. * src/BDE.h
  1102. * src/BtAllowedFastMessage.cc
  1103. * src/BtHandshakeMessageValidator.h
  1104. * src/BtHaveAllMessage.cc
  1105. * src/BtHaveNoneMessage.cc
  1106. * src/BtPieceMessage.cc
  1107. * src/BtRejectMessage.cc
  1108. * src/ChunkedDecoder.cc
  1109. * src/CookieStorage.cc
  1110. * src/DHTAnnouncePeerMessage.cc
  1111. * src/DHTEntryPointNameResolveCommand.cc
  1112. * src/DHTMessageFactoryImpl.cc
  1113. * src/DHTMessageTracker.cc
  1114. * src/DHTRoutingTableDeserializer.cc
  1115. * src/DHTRoutingTableSerializer.cc
  1116. * src/DHTSetup.cc
  1117. * src/DHTTokenTracker.cc
  1118. * src/DefaultBtAnnounce.cc
  1119. * src/DefaultBtContext.cc
  1120. * src/DefaultBtInteractive.cc
  1121. * src/DefaultBtMessageFactory.cc
  1122. * src/DefaultBtProgressInfoFile.cc
  1123. * src/DefaultExtensionMessageFactory.cc
  1124. * src/DlAbortEx.h
  1125. * src/DlRetryEx.h
  1126. * src/DownloadCommand.cc
  1127. * src/DownloadEngineFactory.cc
  1128. * src/DownloadFailureException.h
  1129. * src/Exception.cc
  1130. * src/Exception.h
  1131. * src/ExpatMetalinkProcessor.cc
  1132. * src/ExpatXmlRpcRequestProcessor.cc
  1133. * src/FallocFileAllocationIterator.cc
  1134. * src/FatalException.h
  1135. * src/FtpConnection.cc
  1136. * src/FtpFinishDownloadCommand.cc
  1137. * src/FtpInitiateConnectionCommand.cc
  1138. * src/FtpNegotiationCommand.cc
  1139. * src/GZipDecoder.cc
  1140. * src/HandshakeExtensionMessage.cc
  1141. * src/HttpConnection.cc
  1142. * src/HttpHeaderProcessor.cc
  1143. * src/HttpInitiateConnectionCommand.cc
  1144. * src/HttpResponse.cc
  1145. * src/HttpResponseCommand.cc
  1146. * src/HttpServer.cc
  1147. * src/HttpSkipResponseCommand.cc
  1148. * src/InitiateConnectionCommandFactory.cc
  1149. * src/IteratableChunkChecksumValidator.cc
  1150. * src/LibgcryptARC4Context.h
  1151. * src/LibgcryptARC4Decryptor.h
  1152. * src/LibgcryptARC4Encryptor.h
  1153. * src/LibgcryptDHKeyExchange.h
  1154. * src/LibgnutlsTLSContext.cc
  1155. * src/LibsslARC4Context.h
  1156. * src/LibsslARC4Decryptor.h
  1157. * src/LibsslARC4Encryptor.h
  1158. * src/LibsslDHKeyExchange.h
  1159. * src/LibsslTLSContext.cc
  1160. * src/MSEHandshake.cc
  1161. * src/MessageDigestHelper.cc
  1162. * src/MetalinkHelper.cc
  1163. * src/MultiDiskAdaptor.cc
  1164. * src/NameMatchOptionHandler.h
  1165. * src/NameResolver.cc
  1166. * src/Netrc.cc
  1167. * src/NsCookieParser.cc
  1168. * src/OptionHandlerException.cc
  1169. * src/OptionHandlerException.h
  1170. * src/OptionHandlerImpl.h
  1171. * src/OptionParser.cc
  1172. * src/ParameterizedStringParser.cc
  1173. * src/PeerAbstractCommand.cc
  1174. * src/PeerConnection.cc
  1175. * src/PeerMessageUtil.cc
  1176. * src/PeerReceiveHandshakeCommand.cc
  1177. * src/Platform.cc
  1178. * src/ReceiverMSEHandshakeCommand.cc
  1179. * src/RecoverableException.h
  1180. * src/RequestGroup.cc
  1181. * src/SimpleLogger.cc
  1182. * src/SocketCore.cc
  1183. * src/Sqlite3MozCookieParser.cc
  1184. * src/UTPexExtensionMessage.cc
  1185. * src/Util.cc
  1186. * src/XML2SAXMetalinkProcessor.cc
  1187. * src/Xml2XmlRpcRequestProcessor.cc
  1188. * src/XmlRpcMethodImpl.cc
  1189. * src/bencode.cc
  1190. * src/download_helper.cc
  1191. * src/messageDigest.h
  1192. * test/ExceptionTest.cc
  1193. * test/TestUtil.cc
  1194. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1195. Bump up version number to 1.4.0
  1196. * configure.ac
  1197. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1198. Added 2files.metalink to EXTRA_DIST
  1199. * test/Makefile.am
  1200. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1201. Added missing 2files.metalink
  1202. * test/2files.metalink
  1203. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1204. Show "[MEMORY]" prefix before filename in download summary if it
  1205. is downloaded into memory.
  1206. * src/DownloadResult.h
  1207. * src/RequestGroup.cc
  1208. * src/RequestGroupMan.cc
  1209. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1210. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  1211. * src/ExpatXmlRpcRequestProcessor.cc
  1212. * src/Xml2XmlRpcRequestProcessor.cc
  1213. * src/message.h
  1214. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1215. Defined const BDEs to avoid duplicate instantiation.
  1216. Defined MSG_GID_NOT_PROVIDED.
  1217. * src/XmlRpcMethodImpl.cc
  1218. * src/message.h
  1219. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1220. Code cleanup
  1221. * src/Xml2XmlRpcRequestProcessor.cc
  1222. * src/Xml2XmlRpcRequestProcessor.h
  1223. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1224. Defined ENABLE_XML_RPC
  1225. * configure.ac
  1226. * configure
  1227. * config.h.in
  1228. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1229. Added ExpatXmlRpcRequestProcessor
  1230. * src/ExpatXmlRpcRequestProcessor.cc
  1231. * src/ExpatXmlRpcRequestProcessor.h
  1232. * src/Makefile.am
  1233. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1234. Added tests for addTorrent and addMetalink command.
  1235. * test/TestUtil.cc
  1236. * test/TestUtil.h
  1237. * test/XmlRpcMethodTest.cc
  1238. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1239. Corrected the description of --file-allocation option.
  1240. * doc/aria2c.1.txt
  1241. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1242. Added tellAll command.
  1243. * src/XmlRpcMethodFactory.cc
  1244. * src/XmlRpcMethodImpl.cc
  1245. * src/XmlRpcMethodImpl.h
  1246. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1247. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  1248. * src/XmlRpcMethodImpl.cc
  1249. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1250. Added changeGlobalOption command. Currently,
  1251. max-overall-download-limit and max-overall-upload-limit option are
  1252. available.
  1253. * src/RequestGroupMan.h
  1254. * src/XmlRpcMethod.cc
  1255. * src/XmlRpcMethod.h
  1256. * src/XmlRpcMethodFactory.cc
  1257. * src/XmlRpcMethodImpl.cc
  1258. * src/XmlRpcMethodImpl.h
  1259. * test/XmlRpcMethodTest.cc
  1260. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1261. Added changeOption command. Currently, max-download-limit,
  1262. max-upload-limit option are available in this command.
  1263. * src/RequestGroup.h
  1264. * src/XmlRpcMethod.cc
  1265. * src/XmlRpcMethod.h
  1266. * src/XmlRpcMethodFactory.cc
  1267. * src/XmlRpcMethodImpl.cc
  1268. * src/XmlRpcMethodImpl.h
  1269. * test/XmlRpcMethodTest.cc
  1270. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1271. Added purgeDownloadResult command.
  1272. * src/RequestGroupMan.cc
  1273. * src/RequestGroupMan.h
  1274. * src/XmlRpcMethodFactory.cc
  1275. * src/XmlRpcMethodImpl.cc
  1276. * src/XmlRpcMethodImpl.h
  1277. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1278. Refactored.
  1279. * src/XmlRpcMethod.cc
  1280. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1281. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  1282. XmlRpcResponse.
  1283. * src/HttpServerBodyCommand.cc
  1284. * src/Makefile.am
  1285. * src/XmlRpcMethod.cc
  1286. * src/XmlRpcMethod.h
  1287. * src/XmlRpcMethodImpl.cc
  1288. * src/XmlRpcResponse.cc
  1289. * src/XmlRpcResponse.h
  1290. * test/XmlRpcMethodTest.cc
  1291. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1292. In XML-RPC option struct, header and index-out option can take
  1293. array as value.
  1294. * src/XmlRpcMethod.cc
  1295. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1296. Removed unused option member from PeerConnection.
  1297. * src/InitiatorMSEHandshakeCommand.cc
  1298. * src/PeerConnection.cc
  1299. * src/PeerConnection.h
  1300. * src/PeerInteractionCommand.cc
  1301. * src/PeerReceiveHandshakeCommand.cc
  1302. * src/ReceiverMSEHandshakeCommand.cc
  1303. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1304. Added "seeder" key to getPeers response.
  1305. * src/XmlRpcMethodImpl.cc
  1306. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1307. Added addMetalink XML-RPC command.
  1308. * src/XmlRpcMethodFactory.cc
  1309. * src/XmlRpcMethodImpl.cc
  1310. * src/XmlRpcMethodImpl.h
  1311. * src/download_helper.cc
  1312. * src/download_helper.h
  1313. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1314. Fixed the bug that POU peers are never choked in seeding.
  1315. * src/BtSeederStateChoke.cc
  1316. * src/BtSeederStateChoke.h
  1317. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1318. Added web-seeding URI handling in addTorrent command.
  1319. * src/XmlRpcMethodImpl.cc
  1320. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1321. Added "length" key to getFiles response.
  1322. * src/XmlRpcMethodImpl.cc
  1323. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1324. Moved --no-netrc option from ftp option section to http/ftp option
  1325. section.
  1326. * doc/aria2c.1.txt
  1327. * src/OptionHandlerFactory.cc
  1328. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1329. Removed garbage "\" character before '
  1330. * doc/aria2c.1.txt
  1331. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1332. Removed garbage "\" character before http.
  1333. * doc/aria2c.1.txt
  1334. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1335. Documented additional options that can be specified in -i list.
  1336. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  1337. and --xml-rpc-passwd. Removed --enable-http-server and
  1338. --http-server-listen-port.
  1339. * doc/aria2c.1.txt
  1340. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1341. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  1342. * src/DefaultPeerStorage.cc
  1343. * src/DefaultPeerStorage.h
  1344. * src/PeerStorage.h
  1345. * src/XmlRpcMethodImpl.cc
  1346. * test/MockPeerStorage.h
  1347. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1348. Put a call to Socket::isReadable() in try block.
  1349. * src/HttpServerBodyCommand.cc
  1350. * src/HttpServerCommand.cc
  1351. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1352. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  1353. exception , so it is now in try block.
  1354. * src/HttpServerResponseCommand.cc
  1355. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1356. Added "amChoking" and "peerChoking" key in getPeers response.
  1357. * src/XmlRpcMethodImpl.cc
  1358. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1359. Added test case for zero-length filter.
  1360. * test/BitfieldManTest.cc
  1361. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1362. getFiles command now returns file data for finished/stopped
  1363. downloads.
  1364. * src/XmlRpcMethodImpl.cc
  1365. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1366. DownloadResult now has the list of FileEntry. The download
  1367. summary displays the path of first selected file and the number of
  1368. remaining files for multi-file torrent.
  1369. * src/DownloadResult.h
  1370. * src/RequestGroup.cc
  1371. * src/RequestGroupMan.cc
  1372. * test/RequestGroupTest.cc
  1373. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1374. Fixed segmentation fault error when no file is selected in
  1375. multi-file torrent.
  1376. * src/BitfieldMan.cc
  1377. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1378. Escaped <,>,& character in XML-RPC response.
  1379. * src/XmlRpcMethod.cc
  1380. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1381. Throw DlAbortEx instead of FatalException during parsing options
  1382. because we don't want for aria2 to quit when bad option is passed
  1383. via XML-RPC.
  1384. * src/OptionHandlerException.cc
  1385. * src/OptionHandlerException.h
  1386. * src/OptionHandlerImpl.h
  1387. * src/OptionParser.cc
  1388. * src/OptionParser.h
  1389. * src/PStringSegment.cc
  1390. * src/ParameterizedStringParser.cc
  1391. * src/download_helper.cc
  1392. * test/ParameterizedStringParserTest.cc
  1393. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1394. Selecting files are now done in
  1395. DefaultBtContext::setFileFileter().
  1396. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  1397. functions are removed because they are no longer used. Creating
  1398. filter in BitfieldMan is done in new funtion
  1399. PieceStorage::setupFileFilter()
  1400. * src/BtContext.cc
  1401. * src/BtContext.h
  1402. * src/DefaultBtContext.cc
  1403. * src/DefaultBtContext.h
  1404. * src/DefaultPieceStorage.cc
  1405. * src/DefaultPieceStorage.h
  1406. * src/DiskAdaptor.cc
  1407. * src/DiskAdaptor.h
  1408. * src/PieceStorage.h
  1409. * src/RequestGroup.cc
  1410. * src/UnknownLengthPieceStorage.h
  1411. * src/XmlRpcMethodImpl.cc
  1412. * test/DefaultBtContextTest.cc
  1413. * test/MockBtContext.h
  1414. * test/MockPieceStorage.h
  1415. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1416. Fixed compile error on Mac OS X
  1417. * src/HttpServer.cc
  1418. * src/XmlRpcMethod.h
  1419. * src/XmlRpcMethodImpl.cc
  1420. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1421. Use std::binary_search instead of std::find
  1422. * src/DefaultPieceStorage.cc
  1423. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1424. Removed unnecessary BDE() call; leave them to implicit conversion.
  1425. * src/XmlRpcMethodImpl.cc
  1426. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1427. Return connections and gid in string
  1428. * src/XmlRpcMethodImpl.cc
  1429. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1430. Renamed addURI as addUri
  1431. * src/XmlRpcMethodFactory.cc
  1432. * src/XmlRpcMethodImpl.cc
  1433. * src/XmlRpcMethodImpl.h
  1434. * test/XmlRpcMethodTest.cc
  1435. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1436. Renamed addTorrentFile as addTorrent
  1437. * src/XmlRpcMethodFactory.cc
  1438. * src/XmlRpcMethodImpl.cc
  1439. * src/XmlRpcMethodImpl.h
  1440. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1441. The information for files, URIs, peers are removed from the
  1442. reponse of TellaActive, TellStatus command because they tend to be
  1443. large. Instead they can be retrieved by the dedicated commands:
  1444. getFiles, getUris and getPeers respectively.
  1445. * src/XmlRpcMethodFactory.cc
  1446. * src/XmlRpcMethodImpl.cc
  1447. * src/XmlRpcMethodImpl.h
  1448. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1449. Removed --max-overall-upload-limit and
  1450. --max-overall-download-limit option from listRequestOptions.
  1451. * src/download_helper.cc
  1452. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1453. Log incoming host in HttpListenCommand.
  1454. * src/HttpListenCommand.cc
  1455. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1456. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  1457. --xml-rpc-passwd option.
  1458. * src/HttpServer.cc
  1459. * src/HttpServer.h
  1460. * src/HttpServerCommand.cc
  1461. * src/OptionHandlerFactory.cc
  1462. * src/prefs.cc
  1463. * src/prefs.h
  1464. * src/usage_text.h
  1465. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1466. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  1467. processing 0 length request.
  1468. * src/HttpServerBodyCommand.cc
  1469. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1470. Removed --enable-http-server and --http-server-listen-port
  1471. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  1472. instead. The original feature for --enable-http-server that
  1473. reports download progress in HTML was officially removed. Persist
  1474. XML-RPC connection if client supports keep-alive.
  1475. * src/DownloadEngineFactory.cc
  1476. * src/HttpServerCommand.cc
  1477. * src/HttpServerResponseCommand.cc
  1478. * src/Makefile.am
  1479. * src/Makefile.in
  1480. * src/OptionHandlerFactory.cc
  1481. * src/RequestGroupMan.cc
  1482. * src/main.cc
  1483. * src/option_processing.cc
  1484. * src/prefs.cc
  1485. * src/prefs.h
  1486. * src/usage_text.h
  1487. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1488. Added "uris" key to the response of tellStatus command. Added
  1489. "connections" key to the response of tellStatus and tellActive
  1490. command.
  1491. * src/XmlRpcMethodImpl.cc
  1492. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1493. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  1494. Added TellStatusXmlRpcMethod. Remove command can now remove
  1495. waiting RequestGroup.
  1496. * src/RequestGroupMan.cc
  1497. * src/RequestGroupMan.h
  1498. * src/XmlRpcMethodFactory.cc
  1499. * src/XmlRpcMethodImpl.cc
  1500. * src/XmlRpcMethodImpl.h
  1501. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1502. Initialized _peerId
  1503. * src/Peer.cc
  1504. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1505. Return fault structure for error. FailXmlRpcMethod is renamed as
  1506. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  1507. in non-torrent download. Return single param value.
  1508. * src/XmlRpcMethod.cc
  1509. * src/XmlRpcMethodFactory.cc
  1510. * src/XmlRpcMethodImpl.cc
  1511. * src/XmlRpcMethodImpl.h
  1512. * test/XmlRpcMethodTest.cc
  1513. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1514. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  1515. command.
  1516. * src/RequestGroup.cc
  1517. * src/RequestGroup.h
  1518. * src/RequestGroupMan.cc
  1519. * src/XmlRpcMethodImpl.cc
  1520. * test/RequestGroupTest.cc
  1521. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1522. Added more options that can be specified in -i list and xml-rpc
  1523. add* command.
  1524. * src/download_helper.h
  1525. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1526. The available options in -i list should be listed in
  1527. listRequestOptions().
  1528. * src/download_helper.cc
  1529. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1530. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  1531. command.
  1532. * src/XmlRpcMethodImpl.cc
  1533. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1534. Now RequestGroup has its own copy of Option object. This will help
  1535. to give custom option for each RequestGroup.
  1536. addTorrentFile command now takes options.
  1537. * src/AbstractCommand.cc
  1538. * src/AbstractCommand.h
  1539. * src/AbstractProxyRequestCommand.cc
  1540. * src/ActivePeerConnectionCommand.cc
  1541. * src/ActivePeerConnectionCommand.h
  1542. * src/AdaptiveURISelector.cc
  1543. * src/BtCheckIntegrityEntry.cc
  1544. * src/BtDependency.cc
  1545. * src/BtDependency.h
  1546. * src/BtFileAllocationEntry.cc
  1547. * src/BtPostDownloadHandler.cc
  1548. * src/CheckIntegrityEntry.cc
  1549. * src/DownloadCommand.cc
  1550. * src/FtpDownloadCommand.cc
  1551. * src/FtpFinishDownloadCommand.cc
  1552. * src/FtpInitiateConnectionCommand.cc
  1553. * src/FtpNegotiationCommand.cc
  1554. * src/HttpInitiateConnectionCommand.cc
  1555. * src/HttpRequestCommand.cc
  1556. * src/HttpResponseCommand.cc
  1557. * src/HttpSkipResponseCommand.cc
  1558. * src/InitiateConnectionCommand.cc
  1559. * src/InitiateConnectionCommandFactory.cc
  1560. * src/InitiatorMSEHandshakeCommand.cc
  1561. * src/InitiatorMSEHandshakeCommand.h
  1562. * src/Metalink2RequestGroup.cc
  1563. * src/Metalink2RequestGroup.h
  1564. * src/MetalinkPostDownloadHandler.cc
  1565. * src/MultiUrlRequestInfo.cc
  1566. * src/MultiUrlRequestInfo.h
  1567. * src/PeerAbstractCommand.cc
  1568. * src/PeerInteractionCommand.cc
  1569. * src/PeerInteractionCommand.h
  1570. * src/PeerReceiveHandshakeCommand.cc
  1571. * src/PeerReceiveHandshakeCommand.h
  1572. * src/RequestGroup.cc
  1573. * src/RequestGroup.h
  1574. * src/TrackerWatcherCommand.cc
  1575. * src/TrackerWatcherCommand.h
  1576. * src/XmlRpcMethod.cc
  1577. * src/XmlRpcMethod.h
  1578. * src/XmlRpcMethodImpl.cc
  1579. * src/download_helper.cc
  1580. * src/download_helper.h
  1581. * src/main.cc
  1582. * test/BtDependencyTest.cc
  1583. * test/BtPostDownloadHandlerTest.cc
  1584. * test/DefaultBtMessageDispatcherTest.cc
  1585. * test/DownloadHandlerFactoryTest.cc
  1586. * test/DownloadHelperTest.cc
  1587. * test/Metalink2RequestGroupTest.cc
  1588. * test/MetalinkPostDownloadHandlerTest.cc
  1589. * test/RequestGroupManTest.cc
  1590. * test/RequestGroupTest.cc
  1591. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1592. Added tellActiveStatus xml-rpc command which reports download
  1593. status of active downloads.
  1594. * src/XmlRpcMethodFactory.cc
  1595. * src/XmlRpcMethodImpl.cc
  1596. * src/XmlRpcMethodImpl.h
  1597. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1598. Added addTorrentFile xml-rpc command which receives uploaded
  1599. torrent file and add download for it.
  1600. * src/RequestGroupMan.cc
  1601. * src/XmlRpcMethodFactory.cc
  1602. * src/XmlRpcMethodImpl.cc
  1603. * src/XmlRpcMethodImpl.h
  1604. * src/download_helper.cc
  1605. * src/download_helper.h
  1606. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1607. Added remove xml-rpc command which removes specified download.
  1608. There is a known issue: the removed unfinished downloads are
  1609. reported ERR when aria2 exits. They should be reported as INPR.
  1610. * src/RequestGroupMan.cc
  1611. * src/RequestGroupMan.h
  1612. * src/XmlRpcMethodFactory.cc
  1613. * src/XmlRpcMethodImpl.cc
  1614. * src/XmlRpcMethodImpl.h
  1615. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1616. If --enable-http-server is enabled, don't stop aria2 when all
  1617. download finished and don't quit when no files to download at
  1618. start up.
  1619. * src/RequestGroupMan.cc
  1620. * src/main.cc
  1621. * src/option_processing.cc
  1622. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1623. Added missing AM_CONDITIONAL
  1624. * configure.ac
  1625. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1626. Added xml-rpc functionality. Currently only addURI commad is
  1627. supported. To enable xml-rpc, run aria2 with
  1628. --enable-http-server. This option name is temporal and will be
  1629. changed. The feature that reports download progress in html format
  1630. is temporarily disabled.
  1631. * src/HttpServer.cc
  1632. * src/HttpServer.h
  1633. * src/HttpServerBodyCommand.cc
  1634. * src/HttpServerBodyCommand.h
  1635. * src/HttpServerCommand.cc
  1636. * src/HttpServerResponseCommand.cc
  1637. * src/Makefile.am
  1638. * src/OptionParser.cc
  1639. * src/OptionParser.h
  1640. * src/RequestGroupMan.cc
  1641. * src/RequestGroupMan.h
  1642. * src/XmlRpcMethod.cc
  1643. * src/XmlRpcMethod.h
  1644. * src/XmlRpcMethodFactory.cc
  1645. * src/XmlRpcMethodFactory.h
  1646. * src/XmlRpcMethodImpl.cc
  1647. * src/XmlRpcMethodImpl.h
  1648. * src/download_helper.cc
  1649. * src/download_helper.h
  1650. * test/Makefile.am
  1651. * test/XmlRpcMethodTest.cc
  1652. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1653. Added xml-rpc request parser. The supported value types are:
  1654. i4/int, string, double, struct, array, base64. Currently only
  1655. libxml2 version is provided.
  1656. * src/Xml2XmlRpcRequestProcessor.cc
  1657. * src/Xml2XmlRpcRequestProcessor.h
  1658. * src/XmlRpcElements.cc
  1659. * src/XmlRpcElements.h
  1660. * src/XmlRpcRequest.h
  1661. * src/XmlRpcRequestParserController.cc
  1662. * src/XmlRpcRequestParserController.h
  1663. * src/XmlRpcRequestParserState.h
  1664. * src/XmlRpcRequestParserStateImpl.cc
  1665. * src/XmlRpcRequestParserStateImpl.h
  1666. * src/XmlRpcRequestParserStateMachine.cc
  1667. * src/XmlRpcRequestParserStateMachine.h
  1668. * src/XmlRpcRequestProcessor.h
  1669. * test/XmlRpcRequestParserControllerTest.cc
  1670. * test/XmlRpcRequestProcessorTest.cc
  1671. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1672. * Release 1.3.3
  1673. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1674. Fixed compile error since r1202.
  1675. * src/ExpatMetalinkProcessor.cc
  1676. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1677. Updated Ukrainian, Russian and Simplified Chinese
  1678. translations. Thanks to all translators.
  1679. * po/ru.po
  1680. * po/uk.po
  1681. * po/zh_CN.po
  1682. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1683. Pass reference of Option object instead of pointer.
  1684. * src/download_helper.cc
  1685. * src/download_helper.h
  1686. * src/main.cc
  1687. * test/DownloadHelperTest.cc
  1688. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1689. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  1690. from option directly. Instead, get them from RequestGroup.
  1691. * src/ActivePeerConnectionCommand.cc
  1692. * src/ActivePeerConnectionCommand.h
  1693. * src/PeerReceiveHandshakeCommand.cc
  1694. * src/RequestGroup.h
  1695. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1696. Removed unused uploadLimitCheck and uploadLimit from
  1697. PeerAbstractCommand. Removed unused maxDownloadLimit from
  1698. PeerInteractionCommand.
  1699. * src/PeerAbstractCommand.cc
  1700. * src/PeerAbstractCommand.h
  1701. * src/PeerInteractionCommand.cc
  1702. * src/PeerInteractionCommand.h
  1703. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1704. Fixed broken file renaming feature since r1202.
  1705. * src/FtpNegotiationCommand.cc
  1706. * src/FtpNegotiationCommand.h
  1707. * src/HttpResponseCommand.cc
  1708. * src/RequestGroup.cc
  1709. * src/RequestGroup.h
  1710. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1711. Removed unused debug log
  1712. * src/SocketCore.cc
  1713. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1714. Generated configure and Makefile.in using autoconf 2.63 and
  1715. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  1716. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  1717. * configure.ac
  1718. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1719. Moved piece statistics stuff to new PieceStatMan class.
  1720. Refactored PieceSelector interface.
  1721. * src/DefaultPieceStorage.cc
  1722. * src/DefaultPieceStorage.h
  1723. * src/LongestSequencePieceSelector.cc
  1724. * src/LongestSequencePieceSelector.h
  1725. * src/Makefile.am
  1726. * src/PieceSelector.h
  1727. * src/PieceStatMan.cc
  1728. * src/PieceStatMan.h
  1729. * src/RarestPieceSelector.cc
  1730. * src/RarestPieceSelector.h
  1731. * src/RequestGroup.cc
  1732. * test/DefaultPieceStorageTest.cc
  1733. * test/InOrderPieceSelector.h
  1734. * test/Makefile.am
  1735. * test/PieceStatManTest.cc
  1736. * test/RarestPieceSelectorTest.cc
  1737. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1738. Added static member _protocolFamily to SocketCore. By default,
  1739. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  1740. address. Sometime SocketCore::bind() and
  1741. SocketCore::establishConnection() use difference protocl family
  1742. and latter cannot connect to former. To avoid this situation, we
  1743. limit protocol family to AF_INET for unit tests.
  1744. * src/SocketCore.cc
  1745. * src/SocketCore.h
  1746. * test/AllTest.cc
  1747. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1748. Avoid std::bad_alloc for negative bencode string length.
  1749. * src/bencode.cc
  1750. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1751. Supported segmented downloading with chunked transfer encoding and
  1752. content-length.
  1753. * src/DownloadCommand.cc
  1754. * src/HttpResponseCommand.cc
  1755. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1756. Bump up version number to 1.3.3
  1757. * configure.ac
  1758. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1759. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  1760. from 4096 to 65536 (for insanely large ftp login banners)
  1761. * src/FtpConnection.h
  1762. * test/FtpConnectionTest.cc
  1763. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1764. In DefaultBtContext::getActualBasePath(), return first
  1765. FileEntry::getPath() for single file torrent.
  1766. * src/DefaultBtContext.cc
  1767. * test/DefaultBtContextTest.cc
  1768. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1769. Removed directIOAllowed() from BinaryStream, DiskWriter,
  1770. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  1771. Removed _directIOAllowed member from DiskWriter.
  1772. * src/AbstractDiskWriter.cc
  1773. * src/AbstractDiskWriter.h
  1774. * src/AbstractSingleDiskAdaptor.cc
  1775. * src/AbstractSingleDiskAdaptor.h
  1776. * src/BinaryStream.h
  1777. * src/ByteArrayDiskWriter.h
  1778. * src/DefaultPieceStorage.cc
  1779. * src/DiskWriter.h
  1780. * src/MultiDiskAdaptor.cc
  1781. * src/MultiDiskAdaptor.h
  1782. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1783. Now the constructor of AbstractDiskWriter takes filename as an
  1784. argument and filename argument is removed from openFile(),
  1785. initAndOpenFile(), openExistingFile() interface. storeDir member
  1786. and its accessor functions are removed from DiskAdaptor because it
  1787. is not used anymore. size() member function of DefaultDiskWriter,
  1788. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  1789. opening file.
  1790. * src/AbstractDiskWriter.cc
  1791. * src/AbstractDiskWriter.h
  1792. * src/AbstractSingleDiskAdaptor.cc
  1793. * src/AbstractSingleDiskAdaptor.h
  1794. * src/ByteArrayDiskWriter.cc
  1795. * src/ByteArrayDiskWriter.h
  1796. * src/ByteArrayDiskWriterFactory.cc
  1797. * src/ByteArrayDiskWriterFactory.h
  1798. * src/DefaultDiskWriter.cc
  1799. * src/DefaultDiskWriter.h
  1800. * src/DefaultDiskWriterFactory.cc
  1801. * src/DefaultDiskWriterFactory.h
  1802. * src/DefaultPieceStorage.cc
  1803. * src/DirectDiskAdaptor.cc
  1804. * src/DirectDiskAdaptor.h
  1805. * src/DiskAdaptor.h
  1806. * src/DiskWriter.h
  1807. * src/DiskWriterFactory.h
  1808. * src/MessageDigestHelper.cc
  1809. * src/MultiDiskAdaptor.cc
  1810. * src/RequestGroup.cc
  1811. * src/UnknownLengthPieceStorage.cc
  1812. * src/Util.cc
  1813. * test/DefaultDiskWriterTest.cc
  1814. * test/DirectDiskAdaptorTest.cc
  1815. * test/FallocFileAllocationIteratorTest.cc
  1816. * test/MessageDigestHelperTest.cc
  1817. * test/MetalinkProcessorTest.cc
  1818. * test/MultiDiskAdaptorTest.cc
  1819. * test/MultiFileAllocationIteratorTest.cc
  1820. * test/SingleFileAllocationIteratorTest.cc
  1821. * test/UtilTest.cc
  1822. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1823. Fixed the bug that aria2 aborts when --select-file is used. This
  1824. bug was introduced in r1199.
  1825. * src/MultiDiskAdaptor.cc
  1826. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1827. Code cleanup
  1828. * test/MockPieceStorage.cc
  1829. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1830. Fixed the bug that read-only file with wrong file size will cause
  1831. error because it cannot be truncated to the correct size. Now if
  1832. file size is different than the expected one, re-open file in
  1833. writable mode.
  1834. * src/AbstractSingleDiskAdaptor.cc
  1835. * src/AbstractSingleDiskAdaptor.h
  1836. * src/BtCheckIntegrityEntry.cc
  1837. * src/DiskAdaptor.h
  1838. * src/MultiDiskAdaptor.h
  1839. * src/RequestGroup.cc
  1840. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1841. Fixed the bug that with --check-integrity option aria2 reports
  1842. downloaded file size is 0 even if some parts of file is correctly
  1843. downloaded. This bug is reproducible for the download that a file
  1844. includes last piece is missing. This bug doesn't reveal for
  1845. single-torrent with file allocation on.
  1846. * src/IteratableChecksumValidator.cc
  1847. * test/IteratableChecksumValidatorTest.cc
  1848. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1849. Avoid circular reference between RequestGroup and AdaptiveURISelector
  1850. * src/RequestGroupMan.cc
  1851. * src/AdaptiveURISelector.cc
  1852. * src/AdaptiveURISelector.h
  1853. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1854. * Release 1.3.2
  1855. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1856. Updated README
  1857. * README
  1858. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1859. Updated Ukrainian translations. Thanks to Alexander10.
  1860. * po/uk.po
  1861. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1862. Code cleanup
  1863. * src/MetalinkParserStateMachine.cc
  1864. * src/MetalinkParserStateMachine.h
  1865. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1866. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  1867. and expat simultaneously, MetalinkProcessor is now not base class
  1868. and it is directly implemented in XML2SAXMetalinkProcessor and
  1869. ExpatMetalinkProcessor.
  1870. * src/ExpatMetalinkProcessor.cc
  1871. * src/ExpatMetalinkProcessor.h
  1872. * src/Makefile.am
  1873. * src/MetalinkHelper.cc
  1874. * src/MetalinkProcessor.h
  1875. * src/MetalinkProcessorFactory.cc: Removed.
  1876. * src/MetalinkProcessorFactory.h: Removed
  1877. * src/XML2SAXMetalinkProcessor.cc
  1878. * src/XML2SAXMetalinkProcessor.h
  1879. * test/MetalinkProcessorTest.cc
  1880. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1881. Bump up version number to 1.3.2
  1882. * configure.ac
  1883. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1884. Added missing file.
  1885. * test/Makefile.am
  1886. * test/url-list-singleFileEndsWithSlash.torrent
  1887. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1888. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  1889. request.
  1890. * src/AnnounceList.cc
  1891. * src/AnnounceList.h
  1892. * src/BDE.cc: Added
  1893. * src/BDE.h: Added
  1894. * src/DHTAbstractMessage.cc
  1895. * src/DHTAbstractMessage.h
  1896. * src/DHTAnnouncePeerMessage.cc
  1897. * src/DHTAnnouncePeerMessage.h
  1898. * src/DHTAnnouncePeerReplyMessage.cc
  1899. * src/DHTAnnouncePeerReplyMessage.h
  1900. * src/DHTFindNodeMessage.cc
  1901. * src/DHTFindNodeMessage.h
  1902. * src/DHTFindNodeReplyMessage.cc
  1903. * src/DHTFindNodeReplyMessage.h
  1904. * src/DHTGetPeersMessage.cc
  1905. * src/DHTGetPeersMessage.h
  1906. * src/DHTGetPeersReplyMessage.cc
  1907. * src/DHTGetPeersReplyMessage.h
  1908. * src/DHTMessageFactory.h
  1909. * src/DHTMessageFactoryImpl.cc
  1910. * src/DHTMessageFactoryImpl.h
  1911. * src/DHTMessageReceiver.cc
  1912. * src/DHTMessageTracker.cc
  1913. * src/DHTMessageTracker.h
  1914. * src/DHTPingMessage.cc
  1915. * src/DHTPingMessage.h
  1916. * src/DHTPingReplyMessage.cc
  1917. * src/DHTPingReplyMessage.h
  1918. * src/DHTQueryMessage.cc
  1919. * src/DHTQueryMessage.h
  1920. * src/DHTResponseMessage.cc
  1921. * src/DHTResponseMessage.h
  1922. * src/DefaultBtAnnounce.cc
  1923. * src/DefaultBtContext.cc
  1924. * src/DefaultBtContext.h
  1925. * src/HandshakeExtensionMessage.cc
  1926. * src/Makefile.am
  1927. * src/PeerListProcessor.h
  1928. * src/UTPexExtensionMessage.cc
  1929. * src/bencode.cc
  1930. * src/bencode.h
  1931. * test/AnnounceListTest.cc
  1932. * test/BDETest.cc: Added
  1933. * test/BencodeTest.cc
  1934. * test/DHTAnnouncePeerMessageTest.cc
  1935. * test/DHTAnnouncePeerReplyMessageTest.cc
  1936. * test/DHTFindNodeMessageTest.cc
  1937. * test/DHTFindNodeReplyMessageTest.cc
  1938. * test/DHTGetPeersMessageTest.cc
  1939. * test/DHTGetPeersReplyMessageTest.cc
  1940. * test/DHTMessageFactoryImplTest.cc
  1941. * test/DHTMessageTrackerTest.cc
  1942. * test/DHTPingMessageTest.cc
  1943. * test/DHTPingReplyMessageTest.cc
  1944. * test/Makefile.am
  1945. * test/MockDHTMessageFactory.h
  1946. * test/PeerListProcessorTest.cc
  1947. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1948. Use url-list (web-seeding) only for single-file torrent. This is
  1949. basically the same behavior with Metalink file with torrent and
  1950. URIs.
  1951. * src/RequestGroup.cc
  1952. * src/DefaultBtContext.cc
  1953. * test/DefaultBtContextTest.cc
  1954. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1955. Rewritten expr
  1956. * src/array_fun.h
  1957. * test/array_funTest.cc
  1958. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1959. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  1960. * src/DefaultBtMessageDispatcher.cc
  1961. * src/a2algo.h
  1962. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1963. Removed ExtendedMessagingAware. Instead of using inheritance,
  1964. added ExtensionMessageRegistry and it is passed to
  1965. DefaultExtensionMessageFactory.
  1966. * src/DefaultBtInteractive.cc
  1967. * src/DefaultBtInteractive.h
  1968. * src/DefaultExtensionMessageFactory.cc
  1969. * src/DefaultExtensionMessageFactory.h
  1970. * src/ExtendedMessagingAware.h: Removed.
  1971. * src/ExtensionMessageFactory.h
  1972. * src/ExtensionMessageRegistry.h: Added.
  1973. * src/Makefile.am
  1974. * src/PeerInteractionCommand.cc
  1975. * test/DefaultExtensionMessageFactoryTest.cc
  1976. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1977. Fixed typo in log messages
  1978. * src/MSEHandshake.cc
  1979. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1980. Fixed the bug that prevents torrent download from finishing. The
  1981. bug doesn't reveal for all torrents. The torrents affected this
  1982. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  1983. of pieces.
  1984. * src/bitfield.h
  1985. * test/bitfieldTest.cc
  1986. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1987. Code cleanup
  1988. * src/PeerListProcessor.h
  1989. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1990. Removed RequestGroupAware
  1991. * src/AbstractCommand.cc
  1992. * src/AbstractCommand.h
  1993. * src/ActivePeerConnectionCommand.cc
  1994. * src/ActivePeerConnectionCommand.h
  1995. * src/DHTGetPeersCommand.cc
  1996. * src/DHTGetPeersCommand.h
  1997. * src/InitiatorMSEHandshakeCommand.cc
  1998. * src/InitiatorMSEHandshakeCommand.h
  1999. * src/Makefile.am
  2000. * src/PeerInitiateConnectionCommand.cc
  2001. * src/PeerInitiateConnectionCommand.h
  2002. * src/PeerInteractionCommand.cc
  2003. * src/PeerInteractionCommand.h
  2004. * src/RealtimeCommand.cc
  2005. * src/RealtimeCommand.h
  2006. * src/RequestGroupAware.cc: Removed
  2007. * src/RequestGroupAware.h: Removed
  2008. * src/SeedCheckCommand.cc
  2009. * src/SeedCheckCommand.h
  2010. * src/SleepCommand.cc
  2011. * src/TrackerWatcherCommand.cc
  2012. * src/TrackerWatcherCommand.h
  2013. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2014. Rewritten PeerListProcessor
  2015. * src/PeerListProcessor.h
  2016. * src/CompactPeerListProcessor.h: Removed
  2017. * src/CompactPeerListProcessor.cc: Removed
  2018. * src/DelegatingPeerListProcessor.cc: Removed.
  2019. * src/DefaultBtAnnounce.cc
  2020. * src/Makefile.am
  2021. * src/UTPexExtensionMessage.cc
  2022. * src/DefaultPeerListProcessor.h: Removed.
  2023. * src/DefaultPeerListProcessor.cc: Removed.
  2024. * src/DelegatingPeerListProcessor.h: Removed.
  2025. * test/Makefile.am
  2026. * test/PeerListProcessorTest.cc
  2027. * test/DefaultPeerListProcessorTest.cc: Removed.
  2028. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2029. Rewritten RequestGroupMan::calculateStat()
  2030. * src/RequestGroupMan.cc
  2031. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2032. Removed unnecessary virtual destructor for Request class.
  2033. * src/Request.cc
  2034. * src/Request.h
  2035. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2036. Avoid dynamic_pointer_cast.
  2037. * src/DHTGetPeersCommand.cc
  2038. * src/DHTGetPeersCommand.h
  2039. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2040. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  2041. BtEvent.
  2042. * src/AbstractBtEventListener.h: Removed.
  2043. * src/AbstractBtMessage.cc
  2044. * src/AbstractBtMessage.h
  2045. * src/BtAbortOutstandingRequestEvent.h
  2046. * src/BtCancelSendingPieceEvent.h
  2047. * src/BtChokedEvent.h: Removed.
  2048. * src/BtChokingEvent.h
  2049. * src/BtEvent.h: Removed
  2050. * src/BtEventListener.h: Removed.
  2051. * src/BtMessage.h
  2052. * src/BtPieceMessage.cc
  2053. * src/BtPieceMessage.h
  2054. * src/BtRequestMessage.cc
  2055. * src/BtRequestMessage.h
  2056. * src/DefaultBtMessageDispatcher.cc
  2057. * src/Makefile.am
  2058. * src/a2functional.h
  2059. * test/BtPieceMessageTest.cc
  2060. * test/BtRequestMessageTest.cc
  2061. * test/DefaultBtMessageDispatcherTest.cc
  2062. * test/MockBtMessage.h
  2063. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2064. Code cleanup
  2065. * src/RequestGroupMan.cc
  2066. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2067. Code cleanup
  2068. * src/DownloadCommand.cc
  2069. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2070. Fixed segmentation fault when GZipDecoder::decode() returns 0
  2071. byte.
  2072. * src/DownloadCommand.cc
  2073. * src/bitfield.h
  2074. * test/bitfieldTest.cc
  2075. Fixed the bug that causes infinite loop if broken web server
  2076. returns chunked response without last "0" chunk-size marker and
  2077. closes connection.
  2078. * src/DownloadCommand.cc
  2079. Instantiate properly configured HttpDownloadCommand for
  2080. non-resumable downlaods.
  2081. * src/HttpResponseCommand.cc
  2082. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2083. Rewritten array operation functions.
  2084. * src/BitfieldMan.cc
  2085. * src/array_fun.h
  2086. * test/array_funTest.cc
  2087. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2088. Removed unused variable 'query'
  2089. * src/Request.cc
  2090. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2091. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  2092. accidentally set to false in r1162.
  2093. * configure.ac
  2094. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2095. Code cleanup
  2096. * src/BNode.cc
  2097. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2098. Increase prefixLength for the bucket which doesn't own local node
  2099. ID when splitting bucket.
  2100. * src/DHTBucket.cc
  2101. * test/DHTBucketTest.cc
  2102. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2103. * Release 1.3.1
  2104. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2105. Bump up version number to 1.3.1
  2106. * configure.ac
  2107. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2108. Removed unused variable checkPoint. Also removed include directive
  2109. for TimeA2.h.
  2110. * src/SeedCheckCommand.h
  2111. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2112. Fixed the bug that upload limit exceeds the value specified in
  2113. --seed-ratio option depending on the timing of the execution of
  2114. SeedCheckCommand.
  2115. * src/SeedCheckCommand.cc
  2116. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2117. Fixed the bug that removed peer's session upload/download length
  2118. are counted twice in _cachedTransferStat before it is
  2119. re-calculated. This affected the calculation of shara ratio,
  2120. resulting aria2 wrongly determines that specified share ratio is
  2121. reached. Also fixed the typo in calculateStatFor function name.
  2122. * src/BtSetup.cc
  2123. * src/DefaultPeerStorage.cc
  2124. * src/ShareRatioSeedCriteria.h
  2125. * test/ShareRatioSeedCriteriaTest.cc
  2126. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2127. * Release 1.3.0
  2128. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2129. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  2130. Nynorsk translations. Thanks to all translators.
  2131. * po/es.po
  2132. * po/ja.po
  2133. * po/nn.po
  2134. * po/ru.po
  2135. * po/uk.po
  2136. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2137. Rewritten isInRange()
  2138. * src/DHTBucket.cc
  2139. * test/DHTBucketTest.cc
  2140. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2141. Fixed typo
  2142. * doc/aria2c.1.txt
  2143. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2144. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  2145. malloc/realloc is not used.
  2146. * src/configure.ac
  2147. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2148. BitfieldMan::getMissingIndexes family functions now takes unsigned
  2149. char* bitfield instead of stl container for efficiency.
  2150. PieceSelector::select now takes this
  2151. bitfield. RarestPieceSelector::select now also performs
  2152. efficiently for this change. bitfield namespace is introduced and
  2153. it has several helper functions to handle basic bitfield
  2154. operations such as test, count set bits, etc.
  2155. * src/BitfieldMan.cc
  2156. * src/BitfieldMan.h
  2157. * src/DefaultBtRequestFactory.cc
  2158. * src/DefaultPieceStorage.cc
  2159. * src/DefaultPieceStorage.h
  2160. * src/LongestSequencePieceSelector.cc
  2161. * src/LongestSequencePieceSelector.h
  2162. * src/Makefile.am
  2163. * src/Piece.cc
  2164. * src/Piece.h
  2165. * src/PieceSelector.h
  2166. * src/RarestPieceSelector.cc
  2167. * src/RarestPieceSelector.h
  2168. * src/Util.cc
  2169. * src/Util.h
  2170. * src/bitfield.h
  2171. * test/BitfieldManTest.cc
  2172. * test/LongestSequencePieceSelectorTest.cc
  2173. * test/Makefile.am
  2174. * test/RarestPieceSelectorTest.cc
  2175. * test/UtilTest.cc
  2176. * test/bitfieldTest.cc
  2177. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2178. Made accepted socket non-block.
  2179. * src/FtpNegotiationCommand.cc
  2180. * src/HttpListenCommand.cc
  2181. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2182. Guarded #ifdef HAVE_POSIX_FALLOCATE
  2183. * src/AbstractSingleDiskAdaptor.cc
  2184. * src/DefaultPieceStorage.cc
  2185. * src/DiskAdaptor.h
  2186. * src/DiskAdaptor.h
  2187. * src/MultiFileAllocationIterator.cc
  2188. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2189. Run
  2190. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  2191. in every 1 sec. The timeout of RequestSlot is 60s by default and
  2192. it doesn't need to be called every time when
  2193. DefaultBtInteractive::doInteractionProcessing() is called.
  2194. * src/DefaultBtInteractive.cc
  2195. * src/DefaultBtInteractive.h
  2196. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2197. Documented 'falloc' in man page.
  2198. * doc/aria2c.1.txt
  2199. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2200. Updated doc
  2201. * src/usage_text.h
  2202. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2203. Added 'falloc' parameter for --file-allocation option. 'falloc'
  2204. allocation mode uses posix_fallocate() system call to allocate
  2205. file on disk. If you are using newer file systems such as ext4
  2206. (with extents support), btrfs or xfs, 'falloc' is your best
  2207. choice. It allocates large(few GiB) files almost instantly. Don't
  2208. use 'falloc' with legacy file systems such as ext3 because it
  2209. takes almost same time as 'prealloc' and it blocks aria2 entirely
  2210. until allocation finishes. 'falloc' may not be available if your
  2211. system doesn't have posix_fallocate() system call.
  2212. * configure.ac
  2213. * src/AbstractDiskWriter.cc
  2214. * src/AbstractDiskWriter.h
  2215. * src/AbstractSingleDiskAdaptor.cc
  2216. * src/BinaryStream.h
  2217. * src/BtCheckIntegrityEntry.cc
  2218. * src/ByteArrayDiskWriter.h
  2219. * src/CheckIntegrityEntry.cc
  2220. * src/CheckIntegrityEntry.h
  2221. * src/DefaultPieceStorage.cc
  2222. * src/DiskAdaptor.cc
  2223. * src/DiskAdaptor.h
  2224. * src/DiskWriter.h
  2225. * src/FallocFileAllocationIterator.cc
  2226. * src/FallocFileAllocationIterator.h
  2227. * src/FileAllocationEntry.cc
  2228. * src/FileAllocationEntry.h
  2229. * src/Makefile.am
  2230. * src/MultiFileAllocationIterator.cc
  2231. * src/MultiFileAllocationIterator.h
  2232. * src/OptionHandlerFactory.cc
  2233. * src/RequestGroup.cc
  2234. * src/StreamCheckIntegrityEntry.cc
  2235. * src/prefs.cc
  2236. * src/prefs.h
  2237. * src/usage_text.h
  2238. * test/FallocFileAllocationIteratorTest.cc
  2239. * test/Makefile.am
  2240. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2241. Removed duplicate enableDirectIO() call.
  2242. * src/MultiFileAllocationIterator.cc
  2243. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2244. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  2245. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  2246. cost of std::rotate().
  2247. * src/RarestPieceSelector.cc
  2248. * src/RarestPieceSelector.h
  2249. * test/RarestPieceSelectorTest.cc
  2250. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2251. Updated usage doc for --bt-tracker-interval option.
  2252. * src/usage_text.h
  2253. * doc/aria2c.1.txt
  2254. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2255. Documented --bt-tracker-interval option in man page.
  2256. * doc/aria2c.1.txt
  2257. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2258. Added an option to specify the interval between tracker requests.
  2259. If non-zero value is specified, aria2 uses it and ignores the
  2260. interval value in the response of tracker. If zero is specified,
  2261. aria2 determines the inteval value based on the tarcker response
  2262. and download progress.
  2263. * src/DefaultBtAnnounce.cc
  2264. * src/DefaultBtAnnounce.h
  2265. * src/OptionHandlerFactory.cc
  2266. * src/RequestGroup.cc
  2267. * src/prefs.cc
  2268. * src/prefs.h
  2269. * src/usage_text.h
  2270. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2271. Added operator+=, operator-=, operator-
  2272. * src/TransferStat.cc
  2273. * src/TransferStat.h
  2274. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2275. Refactored RarestPieceSelector to reduce CPU load, especially for
  2276. addPieceStats.
  2277. * src/RarestPieceSelector.cc
  2278. * src/RarestPieceSelector.h
  2279. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2280. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  2281. getAllMissingBlockIndexes to reduce a call to
  2282. array_function_base::operator[].
  2283. * src/BitfieldMan.cc
  2284. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2285. Cached TransferStat/download speed to avoid to sum them up in each
  2286. call.
  2287. * src/DefaultPeerStorage.cc
  2288. * src/DefaultPeerStorage.h
  2289. * src/SegmentMan.cc
  2290. * src/SegmentMan.h
  2291. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2292. Typedefed cuid_t as int32_t in Command.h
  2293. * src/CUIDCounter.h
  2294. * src/Command.cc
  2295. * src/Command.h
  2296. * src/DownloadEngine.cc
  2297. * src/DownloadEngine.h
  2298. * src/PeerStat.h
  2299. * src/SegmentMan.cc
  2300. * src/SegmentMan.h
  2301. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2302. Reduced the number of calls to PeerStorage::calculateStat() and
  2303. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  2304. transfer rate.
  2305. * src/DefaultBtInteractive.cc
  2306. * src/DefaultBtMessageDispatcher.cc
  2307. * src/DefaultPeerStorage.cc
  2308. * src/DefaultPeerStorage.h
  2309. * src/DownloadCommand.cc
  2310. * src/DownloadEngine.cc
  2311. * src/PeerStorage.h
  2312. * src/SegmentMan.cc
  2313. * src/SegmentMan.h
  2314. * test/MockPeerStorage.h
  2315. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2316. Prepended _dir+"/" after joining path elements in torrent file.
  2317. * src/DefaultBtContext.cc
  2318. * test/DefaultBtContextTest.cc
  2319. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2320. Added missing IndexBtMessageValidator.h
  2321. * src/Makefile.am
  2322. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2323. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  2324. Chinese translations. Thank you for contributing our project.
  2325. * po/id.po
  2326. * po/it.po
  2327. * po/ru.po
  2328. * po/uk.po
  2329. * po/zh_CN.po
  2330. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2331. Updated README
  2332. * README
  2333. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2334. Bump up version number to 1.3.0
  2335. * configure.ac
  2336. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2337. Updated doc
  2338. * src/DefaultBtContext.h
  2339. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2340. Slice/joinPath for name of single torrent.
  2341. * src/DefaultBtContext.cc
  2342. * test/DefaultBtContextTest.cc
  2343. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2344. Updated man page: Documented --dry-run and --index-out
  2345. options. Changed the default value of --uri-selector and
  2346. --http-auth-challenge options. Removed --direct-file-mapping
  2347. option. Added example for --index-out
  2348. * doc/aria2c.1.txt
  2349. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2350. Updated TEXT_DRY_RUN
  2351. * src/usage_text.h
  2352. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2353. Changed the default value of --uri-selector option from 'inorder'
  2354. to 'feedback'
  2355. * src/OptionHandlerFactory.cc
  2356. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2357. Included current URI in exception message.
  2358. * src/AbstractCommand.cc
  2359. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2360. Renamed ServerStatURISelector as FeedbackURISelector.
  2361. * src/FeedbackURISelector.cc
  2362. * src/FeedbackURISelector.h
  2363. * src/Makefile.am
  2364. * src/RequestGroupMan.cc
  2365. * src/ServerStatURISelector.cc
  2366. * src/ServerStatURISelector.h
  2367. * test/FeedbackURISelectorTest.cc
  2368. * test/Makefile.am
  2369. * test/ServerStatURISelectorTest.cc
  2370. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2371. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  2372. all URIs are tested and their timeout is not reached.
  2373. * src/AdaptiveURISelector.cc
  2374. * src/AdaptiveURISelector.h
  2375. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2376. Changed the default value of --http-auth-challenge option to false.
  2377. * src/OptionHandlerFactory.cc
  2378. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2379. Reuse URIs when all unused URIs run out.
  2380. * src/OptionHandlerFactory.cc
  2381. * src/RequestGroup.cc
  2382. * src/prefs.cc
  2383. * src/prefs.h
  2384. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2385. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  2386. and BtRejectMessage are derived from RangeBtMessage class.
  2387. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  2388. derived from IndexBtMessage class. BtChokeMessage,
  2389. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  2390. BtNotInterestedMessage and BtUnchokeMessage are derived from
  2391. ZeroBtMessage class.
  2392. * src/AbstractBtMessage.cc
  2393. * src/AbstractBtMessage.h
  2394. * src/BtAllowedFastMessage.cc
  2395. * src/BtAllowedFastMessage.h
  2396. * src/BtAllowedFastMessageValidator.h: Removed
  2397. * src/BtBitfieldMessage.cc
  2398. * src/BtBitfieldMessage.h
  2399. * src/BtCancelMessage.cc
  2400. * src/BtCancelMessage.h
  2401. * src/BtCancelMessageValidator.h: Removed
  2402. * src/BtChokeMessage.cc
  2403. * src/BtChokeMessage.h
  2404. * src/BtExtendedMessage.cc
  2405. * src/BtExtendedMessage.h
  2406. * src/BtHandshakeMessage.cc
  2407. * src/BtHandshakeMessage.h
  2408. * src/BtHaveAllMessage.cc
  2409. * src/BtHaveAllMessage.h
  2410. * src/BtHaveMessage.cc
  2411. * src/BtHaveMessage.h
  2412. * src/BtHaveMessageValidator.h: Removed
  2413. * src/BtHaveNoneMessage.cc
  2414. * src/BtHaveNoneMessage.h
  2415. * src/BtInterestedMessage.cc
  2416. * src/BtInterestedMessage.h
  2417. * src/BtKeepAliveMessage.cc
  2418. * src/BtKeepAliveMessage.h
  2419. * src/BtNotInterestedMessage.cc
  2420. * src/BtNotInterestedMessage.h
  2421. * src/BtPieceMessage.cc
  2422. * src/BtPieceMessage.h
  2423. * src/BtPortMessage.cc
  2424. * src/BtPortMessage.h
  2425. * src/BtRejectMessage.cc
  2426. * src/BtRejectMessage.h
  2427. * src/BtRejectMessageValidator.h: Removed
  2428. * src/BtRequestMessage.cc
  2429. * src/BtRequestMessage.h
  2430. * src/BtRequestMessageValidator.h: Removed
  2431. * src/BtSuggestPieceMessage.cc
  2432. * src/BtSuggestPieceMessage.h
  2433. * src/BtSuggestPieceMessageValidator.h: Removed
  2434. * src/BtUnchokeMessage.cc
  2435. * src/BtUnchokeMessage.h
  2436. * src/DefaultBtMessageFactory.cc
  2437. * src/IndexBtMessage.cc
  2438. * src/IndexBtMessage.h
  2439. * src/IndexBtMessageValidator.h
  2440. * src/Makefile.am
  2441. * src/PeerMessageUtil.cc
  2442. * src/PeerMessageUtil.h
  2443. * src/RangeBtMessage.cc
  2444. * src/RangeBtMessage.h
  2445. * src/RangeBtMessageValidator.h
  2446. * src/SimpleBtMessage.cc
  2447. * src/SimpleBtMessage.h
  2448. * src/ZeroBtMessage.cc
  2449. * src/ZeroBtMessage.h
  2450. * test/BtRequestMessageTest.cc
  2451. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2452. Reverted usage_text.h to r1093 to avoid to lose translated
  2453. messages.
  2454. * src/usage_text.h
  2455. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2456. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  2457. declared as non-const previously is now const and defined in class
  2458. definition.
  2459. * src/AbstractBtMessage.cc
  2460. * src/AbstractBtMessage.h
  2461. * src/BtAllowedFastMessage.cc
  2462. * src/BtAllowedFastMessage.h
  2463. * src/BtBitfieldMessage.h
  2464. * src/BtCancelMessage.cc
  2465. * src/BtCancelMessage.h
  2466. * src/BtChokeMessage.cc
  2467. * src/BtChokeMessage.h
  2468. * src/BtExtendedMessage.cc
  2469. * src/BtExtendedMessage.h
  2470. * src/BtHandshakeMessage.cc
  2471. * src/BtHandshakeMessage.h
  2472. * src/BtHaveAllMessage.cc
  2473. * src/BtHaveAllMessage.h
  2474. * src/BtHaveMessage.cc
  2475. * src/BtHaveMessage.h
  2476. * src/BtHaveNoneMessage.cc
  2477. * src/BtHaveNoneMessage.h
  2478. * src/BtInterestedMessage.cc
  2479. * src/BtInterestedMessage.h
  2480. * src/BtKeepAliveMessage.cc
  2481. * src/BtKeepAliveMessage.h
  2482. * src/BtMessage.h
  2483. * src/BtNotInterestedMessage.cc
  2484. * src/BtNotInterestedMessage.h
  2485. * src/BtPieceMessage.h
  2486. * src/BtPortMessage.cc
  2487. * src/BtPortMessage.h
  2488. * src/BtRejectMessage.cc
  2489. * src/BtRejectMessage.h
  2490. * src/BtRequestMessage.cc
  2491. * src/BtRequestMessage.h
  2492. * src/BtSuggestPieceMessage.cc
  2493. * src/BtSuggestPieceMessage.h
  2494. * src/BtUnchokeMessage.cc
  2495. * src/BtUnchokeMessage.h
  2496. * src/SimpleBtMessage.cc
  2497. * src/SimpleBtMessage.h
  2498. * test/MockBtMessage.h
  2499. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2500. Use FileEntry::exists()
  2501. * src/MultiDiskAdaptor.cc
  2502. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2503. Added exists()
  2504. * src/FileEntry.cc
  2505. * src/FileEntry.h
  2506. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2507. Added missing prefix dir.
  2508. * src/download_helper.cc
  2509. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2510. Removed --direct-file-mapping option and CopyDiskAdaptor.
  2511. * src/CopyDiskAdaptor.cc: Removed
  2512. * src/CopyDiskAdaptor.h: Removed
  2513. * src/DefaultPieceStorage.cc
  2514. * src/Makefile.am
  2515. * src/OptionHandlerFactory.cc
  2516. * src/prefs.cc
  2517. * src/prefs.h
  2518. * src/usage_text.h
  2519. * test/CopyDiskAdaptorTest.cc: Removed
  2520. * test/Makefile.am
  2521. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2522. Rewritten isSameFileBeingDownloaded()
  2523. * src/RequestGroupMan.cc
  2524. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2525. Removed getName() from DownloadContext. getName() is declared in
  2526. BtContext.
  2527. * src/BtContext.h
  2528. * src/DownloadContext.h
  2529. * src/SingleFileDownloadContext.cc
  2530. * src/SingleFileDownloadContext.h
  2531. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  2532. in AbstractSingleDiskAdaptor.
  2533. * src/AbstractSingleDiskAdaptor.h
  2534. * src/DiskAdaptor.h
  2535. * src/MultiDiskAdaptor.h
  2536. * src/RequestGroup.cc
  2537. Removed setTopDir() and getTopDir() and getTopDirPath() from
  2538. MultiDiskAdaptor.
  2539. * src/DefaultPieceStorage.cc
  2540. * src/MultiDiskAdaptor.cc
  2541. * src/MultiDiskAdaptor.h
  2542. * test/MultiDiskAdaptorTest.cc
  2543. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2544. FileEntry::getPath() contains store(top level) directory to
  2545. simplify path handling operation. In the previous implementation,
  2546. store directory is concatenated to FileEntry::getPath() in
  2547. DownloadContext.
  2548. * src/BtDependency.cc
  2549. * src/BtPostDownloadHandler.cc
  2550. * src/CopyDiskAdaptor.cc
  2551. * src/DefaultBtContext.cc
  2552. * src/DirectDiskAdaptor.cc
  2553. * src/FileEntry.cc
  2554. * src/FileEntry.h
  2555. * src/FtpNegotiationCommand.cc
  2556. * src/HttpResponse.cc
  2557. * src/HttpResponseCommand.cc
  2558. * src/Metalink2RequestGroup.cc
  2559. * src/MultiDiskAdaptor.cc
  2560. * src/MultiDiskAdaptor.h
  2561. * src/MultiFileAllocationIterator.cc
  2562. * src/RequestGroup.cc
  2563. * src/SingleFileDownloadContext.cc
  2564. * src/SingleFileDownloadContext.h
  2565. * src/download_helper.cc
  2566. * test/BtDependencyTest.cc
  2567. * test/CopyDiskAdaptorTest.cc
  2568. * test/DefaultBtContextTest.cc
  2569. * test/DefaultBtProgressInfoFileTest.cc
  2570. * test/DirectDiskAdaptorTest.cc
  2571. * test/DownloadHelperTest.cc
  2572. * test/FileEntryTest.cc
  2573. * test/MultiDiskAdaptorTest.cc
  2574. * test/MultiFileAllocationIteratorTest.cc
  2575. * test/RequestGroupTest.cc
  2576. * test/SingleFileDownloadContextTest.cc
  2577. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2578. Fixed compiler warning
  2579. * src/download_helper.cc
  2580. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2581. Throw exception if same infohash torrent is now downloading.
  2582. * src/RequestGroup.cc
  2583. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2584. Added --dry-run option. In this mode, aria2 just checks whether
  2585. the remote file is available and doesn't download data. This
  2586. option has effect on HTTP/FTP downloads and BitTorrent downloads
  2587. are canceled in this mode.
  2588. * src/FtpNegotiationCommand.cc
  2589. * src/HttpResponseCommand.cc
  2590. * src/HttpResponseCommand.h
  2591. * src/OptionHandlerFactory.cc
  2592. * src/RequestGroup.cc
  2593. * src/RequestGroupMan.cc
  2594. * src/prefs.cc
  2595. * src/prefs.h
  2596. * src/usage_text.h
  2597. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2598. Fixed compiler waring
  2599. * test/UriListParserTest.cc
  2600. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2601. Parse options in -i list using OptionParser.
  2602. * src/UriListParser.cc
  2603. * src/UriListParser.h
  2604. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2605. Don't reset URI in retry to avoid additional round trips because
  2606. of redirects.
  2607. * src/AbstractCommand.cc
  2608. * src/OptionHandlerFactory.cc
  2609. * src/prefs.cc
  2610. * src/prefs.h
  2611. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2612. Declared hide() in OptionHandler.
  2613. * src/NameMatchOptionHandler.h
  2614. * src/OptionHandler.h
  2615. * src/OptionHandlerImpl.h
  2616. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2617. Updated doc
  2618. * src/Peer.h
  2619. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2620. Added log message in setStatusInternal()
  2621. * src/ServerStat.cc
  2622. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2623. Call ServerStat::setError() in AbstractCommand::onAbort() to
  2624. effectively exclude failed server.
  2625. * src/AbstractCommand.cc
  2626. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2627. Added --index-out option to specify each file path for torrent.
  2628. Here index shown in --show-files option is used to specify which
  2629. file path should be altered. For example, to change the file path
  2630. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  2631. option multiple times: --index-out=1=aria2.tar.bz2
  2632. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  2633. available. This option can be specified in -i list.
  2634. * src/DefaultBtContext.cc
  2635. * src/DefaultBtContext.h
  2636. * src/MultiDiskAdaptor.cc
  2637. * src/MultiDiskAdaptor.h
  2638. * src/MultiFileAllocationIterator.cc
  2639. * src/OptionHandlerFactory.cc
  2640. * src/OptionHandlerImpl.h
  2641. * src/Util.cc
  2642. * src/Util.h
  2643. * src/download_helper.cc
  2644. * src/prefs.cc
  2645. * src/prefs.h
  2646. * src/usage_text.h
  2647. * test/DefaultBtContextTest.cc
  2648. * test/MultiDiskAdaptorTest.cc
  2649. * test/MultiFileAllocationIteratorTest.cc
  2650. * test/UtilTest.cc
  2651. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2652. Use Util::pathJoin()
  2653. * src/MetalinkParserController.cc
  2654. * test/test.xml
  2655. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2656. Use Util::pathJoin()
  2657. * src/DefaultBtContext.cc
  2658. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2659. Added Util::pathJoin()
  2660. * src/Util.h
  2661. * test/UtilTest.cc
  2662. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2663. Applied basename function to remove directory element in
  2664. content-disposition value.
  2665. Return empty string if content-disposition value is ".." or ".".
  2666. * src/Util.cc
  2667. * test/UtilTest.cc
  2668. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2669. Added --max-overall-download-limit in man page.
  2670. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  2671. * doc/aria2c.1.txt
  2672. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2673. Added --max-overall-download-limit option. Now --max-upload-limit
  2674. option is not ignored when --max-overall-upload-limit option has
  2675. non-zero value. aria2 checks download(upload) speed in the order:
  2676. first checks overall speed limit and if it is not exceeded, then
  2677. checks speed limit per download. Thus you can specify both
  2678. value. For example, set --max-overall-download-limit=1M and
  2679. --max-download-limit=500K to prevent from one download from eating
  2680. all overall speed limit.
  2681. * src/DefaultBtInteractive.cc
  2682. * src/DefaultBtInteractive.h
  2683. * src/DefaultBtMessageDispatcher.cc
  2684. * src/DefaultBtMessageDispatcher.h
  2685. * src/DownloadCommand.cc
  2686. * src/DownloadCommand.h
  2687. * src/FtpNegotiationCommand.cc
  2688. * src/HttpResponseCommand.cc
  2689. * src/OptionHandlerFactory.cc
  2690. * src/PeerInteractionCommand.cc
  2691. * src/RequestGroup.cc
  2692. * src/RequestGroup.h
  2693. * src/RequestGroupMan.cc
  2694. * src/RequestGroupMan.h
  2695. * src/prefs.cc
  2696. * src/prefs.h
  2697. * src/usage_text.h
  2698. * test/DefaultBtMessageDispatcherTest.cc
  2699. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2700. Documented select-file option in Input File section.
  2701. Documented --http-auth-challenge option.
  2702. * doc/aria2c.1.txt
  2703. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2704. Now select-file can be specified in the uri list(-i list).
  2705. * src/BtContext.cc
  2706. * src/BtContext.h
  2707. * src/RequestGroup.cc
  2708. * src/Sequence.h
  2709. * src/download_helper.cc
  2710. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2711. Made the upper value of --max-concurrent-downloads options unlimited.
  2712. * src/OptionHandlerFactory.cc
  2713. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2714. Fixed the bug that disk writer is not created even if it shares
  2715. same piece with the preceding file if the length of previous file
  2716. is 0.
  2717. * src/MultiDiskAdaptor.cc
  2718. * test/MultiDiskAdaptorTest.cc
  2719. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2720. In BitTorrent, Open files in read-only mode for hash check. After
  2721. that, re-open file in read/write mode only when the download is
  2722. not finished.
  2723. * src/AbstractDiskWriter.cc
  2724. * src/AbstractDiskWriter.h
  2725. * src/AbstractSingleDiskAdaptor.cc
  2726. * src/AbstractSingleDiskAdaptor.h
  2727. * src/BtCheckIntegrityEntry.cc
  2728. * src/DiskAdaptor.h
  2729. * src/DiskWriter.h
  2730. * src/MultiDiskAdaptor.cc
  2731. * src/MultiDiskAdaptor.h
  2732. * src/RequestGroup.cc
  2733. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2734. Added --http-auth-challenge option. If it is set to true(by
  2735. default), aria2 sends HTTP authorization header only when it is
  2736. requested by the server. If false is set, then authorization
  2737. header is always sent to the server. This is useful for servers
  2738. that don't respond 401 code when authentication is required.
  2739. There is an exception: if username and password are embedded in
  2740. URI, authorization header is always sent to the server regardless
  2741. of this option.
  2742. * src/AuthConfigFactory.cc
  2743. * src/HttpSkipResponseCommand.cc
  2744. * src/OptionHandlerFactory.cc
  2745. * src/prefs.cc
  2746. * src/prefs.h
  2747. * src/usage_text.h
  2748. * test/AuthConfigFactoryTest.cc
  2749. * test/HttpRequestTest.cc
  2750. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2751. * Release 1.2.0
  2752. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2753. Updated Spanish, Ukrainian, Russian and Japanese translations.
  2754. Thanks to all translators.
  2755. * po/es.po
  2756. * po/ja.po
  2757. * po/ru.po
  2758. * po/uk.po
  2759. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2760. Call deleteSocketForReadCheck() before socket is closed.
  2761. * src/HttpListenCommand.cc
  2762. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2763. Defined virtual destructor for BObject.
  2764. * src/bencode.h
  2765. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2766. Rewritten BDE to make it efficient.
  2767. * src/bencode.cc
  2768. * src/bencode.h
  2769. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2770. Removed function throw list.
  2771. * src/bencode.cc
  2772. * src/bencode.h
  2773. * test/BencodeTest.cc
  2774. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2775. Enclosed all URLs in double quotes in command-line examples.
  2776. * doc/aria2c.1.txt
  2777. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2778. Updated reference/see also section.
  2779. * README
  2780. * doc/aria2c.1.txt
  2781. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2782. Reorganized man page based on man man-pages.
  2783. * doc/aria2c.1.txt
  2784. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2785. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  2786. because same documents are available in man page. Added
  2787. References section.
  2788. * README
  2789. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2790. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  2791. PERFORMANCE PROFILE section.
  2792. * doc/aria2c.1.txt
  2793. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2794. Rewritten the section for configuration file.
  2795. * README
  2796. * doc/aria2c.1.txt
  2797. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2798. Fixed the segmentation fault during execution of choking algorithm
  2799. in leecher state because of broken compare operator
  2800. implementation.
  2801. * src/BtLeecherStateChoke.cc
  2802. * src/BtLeecherStateChoke.h
  2803. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2804. Open file in binary mode.
  2805. * src/CookieStorage.cc
  2806. * src/DHTSetup.cc
  2807. * src/DHTUtil.cc
  2808. * src/Netrc.cc
  2809. * src/NsCookieParser.cc
  2810. * src/ProtocolDetector.cc
  2811. * src/RequestGroupMan.cc
  2812. * src/Signature.cc
  2813. * src/bencode.cc
  2814. * src/download_helper.cc
  2815. * src/option_processing.cc
  2816. * test/CookieParserTest.cc
  2817. * test/DefaultBtProgressInfoFileTest.cc
  2818. * test/FileTest.cc
  2819. * test/GZipDecoderTest.cc
  2820. * test/RequestGroupManTest.cc
  2821. * test/SignatureTest.cc
  2822. * test/SingleFileAllocationIteratorTest.cc
  2823. * test/UriListParserTest.cc
  2824. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2825. Removed operator[] because it is ambiguous with built-in []
  2826. operator.
  2827. * src/array_fun.h
  2828. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2829. Fixed compile error
  2830. * src/OptionParser.cc
  2831. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2832. Added missing call to arrayWrapperConst
  2833. * test/array_funTest.cc
  2834. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2835. Use array_wrapper instead of array_ptr.
  2836. * src/DHTRoutingTableDeserializer.cc
  2837. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2838. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  2839. * src/array_fun.h
  2840. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2841. Added array_wrapper template.
  2842. * src/array_fun.h
  2843. * test/array_funTest.cc
  2844. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2845. Use operator T* of array_ptr.
  2846. * src/OptionParser.cc
  2847. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2848. Use localhost instead of 127.0.0.1
  2849. * test/FtpConnectionTest.cc
  2850. * test/MSEHandshakeTest.cc
  2851. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2852. Added operator T*
  2853. * src/array_fun.h
  2854. * test/array_funTest.cc
  2855. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2856. Use dynamically allocated char array to detect memory access
  2857. violation.
  2858. * src/DHTRoutingTableDeserializer.cc
  2859. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2860. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  2861. defined.
  2862. * src/PeerMessageUtil.cc
  2863. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2864. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  2865. * configure.ac
  2866. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2867. Added a check to see struct sockaddr_in has sin_len member.
  2868. * configure.ac
  2869. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2870. Fixed buffer overrun.
  2871. * src/DHTRoutingTableDeserializer.cc
  2872. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2873. Added LL for long long int constant.
  2874. * test/FtpConnectionTest.cc
  2875. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2876. Casted to unsigned int to suppress compiler warning on netbsd.
  2877. * src/BtRuntime.h
  2878. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2879. Assign the value of tv.tv_sec to time_t timesec instead of giving
  2880. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  2881. type time_t.
  2882. * src/SimpleLogger.cc
  2883. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2884. Added test for FtpConnection::receiveSizeResponse().
  2885. * test/FtpConnectionTest.cc
  2886. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2887. Fix epoll error on the old kernel 2.6.8 or ealier.
  2888. * src/EpollEventPoll.cc
  2889. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2890. Use Util::parseLLInt instead of sscanf for portability. The
  2891. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  2892. * src/FtpConnection.cc
  2893. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2894. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  2895. block. It should not filter anything.
  2896. * src/BitfieldMan.cc
  2897. * src/ConsoleStatCalc.cc
  2898. * test/BitfieldManTest.cc
  2899. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2900. Fixed the bug that the boolean options that don't take arguments
  2901. don't work.
  2902. * src/OptionHandlerImpl.h
  2903. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2904. Fixed broken selected file BitTorrent download.
  2905. * src/MultiDiskAdaptor.cc
  2906. * test/MultiDiskAdaptorTest.cc
  2907. * test/MultiFileAllocationIteratorTest.cc
  2908. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2909. Fixed #define guard for EpollEventPoll
  2910. * src/EpollEventPoll.h
  2911. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2912. Wait 2 seconds. 1 second is sometimes not enough.
  2913. * test/TimeSeedCriteriaTest.cc
  2914. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2915. Use localhost instead of 127.0.0.1.
  2916. * test/DHTConnectionImplTest.cc
  2917. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2918. Suppressed compiler warning.
  2919. * src/AdaptiveURISelector.cc
  2920. * src/DefaultPieceStorage.cc
  2921. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2922. Defined virtual destructor.
  2923. * src/MetalinkParserState.h
  2924. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2925. Give NULL for second argument of getaddrinfo instead of "0".
  2926. * src/NameResolver.cc
  2927. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2928. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  2929. included strptime doesn't parse data for this format.
  2930. * src/FtpConnection.cc
  2931. * test/FtpConnectionTest.cc
  2932. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2933. Removed tests giving -1 for unsigned argument.
  2934. * test/SingleFileDownloadContextTest.cc
  2935. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2936. Don't use sha256 in tests because it might not be supported by the
  2937. SSL library.
  2938. * test/MetalinkProcessorTest.cc
  2939. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2940. Removed tests giving -1 for unsigned argument.
  2941. * test/AlphaNumberDecoratorTest
  2942. * test/BitfieldManTest.cc
  2943. * test/DefaultBtContextTest.cc
  2944. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2945. Fixed compile error without libcares when epoll is available.
  2946. * src/EpollEventPoll.cc
  2947. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2948. Included fstream instead of iostream.
  2949. * test/SignatureTest.cc
  2950. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2951. Removed #include <algorithm>
  2952. * test/RequestGroupTest.cc
  2953. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2954. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  2955. using RequestGroup::extractURIResult().
  2956. * src/AdaptiveURISelector.cc
  2957. * src/RequestGroup.cc
  2958. * src/RequestGroup.h
  2959. * test/RequestGroupTest.cc
  2960. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2961. Added tests for array_ptr.
  2962. * test/array_funTest.cc
  2963. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2964. Don't send ip parameter to a tracker if ip parameter is empty
  2965. string.
  2966. * src/DefaultBtAnnounce.cc
  2967. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2968. Adjusted line feed.
  2969. * src/version_usage.cc
  2970. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2971. Print tags, possible values when OptionHandlerException is caught.
  2972. * src/option_processing.cc
  2973. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2974. Changed the message for FatalException.
  2975. * src/OptionParser.cc
  2976. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2977. Documented --bt-external-ip option in man page. Updated man pages
  2978. for --proxy-method option.
  2979. * doc/aria2c.1.txt
  2980. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2981. Use GET method for FTP via HTTP proxy.
  2982. * src/FtpInitiateConnectionCommand.cc
  2983. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2984. Changed the default value of --proxy-method option from 'tunnel'
  2985. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  2986. option.
  2987. * src/AbstractCommand.cc
  2988. * src/AbstractCommand.h
  2989. * src/FtpInitiateConnectionCommand.cc
  2990. * src/HttpDownloadCommand.cc
  2991. * src/HttpInitiateConnectionCommand.cc
  2992. * src/HttpInitiateConnectionCommand.h
  2993. * src/OptionHandlerFactory.cc
  2994. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2995. Initialized _logger
  2996. * src/SelectEventPoll.cc
  2997. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2998. Defined a copy constructor for the same type.
  2999. * src/SharedHandle.h
  3000. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3001. Added OptionParser::parseArg() which internally uses getopt_long
  3002. to parse command-line options. All command-line options are now
  3003. configured by OptionHandler. No manual editing of struct option*
  3004. is required any more.
  3005. * src/NameMatchOptionHandler.h
  3006. * src/OptionHandler.h
  3007. * src/OptionHandlerFactory.cc
  3008. * src/OptionHandlerImpl.h
  3009. * src/OptionParser.cc
  3010. * src/OptionParser.h
  3011. * src/array_fun.h
  3012. * src/main.cc
  3013. * src/option_processing.cc
  3014. * test/OptionHandlerTest.cc
  3015. * test/OptionParserTest.cc
  3016. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3017. Fixed configure error with --disable-epoll
  3018. * configure.ac
  3019. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3020. Fixed compile error when HAVE_EPOLL is not defined.
  3021. Fixed linker error on bigendian systems.
  3022. * src/SocketCore.cc
  3023. * src/SocketCore.h
  3024. * test/DefaultBtProgressInfoFileTest.cc
  3025. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3026. Added --bt-external-ip option. You can specify the external IP
  3027. address to report to a BitTorrent tracker. Although this function
  3028. is named 'external', it can accept any kind of IP addresses.
  3029. * src/DefaultBtAnnounce.cc
  3030. * src/OptionHandlerFactory.cc
  3031. * src/option_processing.cc
  3032. * src/prefs.cc
  3033. * src/prefs.h
  3034. * src/usage_text.h
  3035. * test/DefaultBtAnnounceTest.cc
  3036. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3037. Extracted the algorithm to find the longest incremental sequence
  3038. as max_sequence template.
  3039. * src/LongestSequencePieceSelector.cc
  3040. * src/a2algo.h
  3041. * test/Makefile.am
  3042. * test/a2algoTest.cc
  3043. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3044. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  3045. * src/usage_text.h
  3046. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3047. Updated doc for --uri-selector, --http-server-listen-port and
  3048. --enable-http-server option. Documented --event-poll option.
  3049. * doc/aria2c.1.txt
  3050. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3051. Updated doc for --enable-http-server.
  3052. * src/usage_text.h
  3053. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3054. Documented --http-server-listen-port and --enable-http-server in
  3055. man page.
  3056. * doc/aria2c.1.txt
  3057. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3058. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  3059. translations. Thanks to all translators.
  3060. * po/es.po
  3061. * po/id.po
  3062. * po/it.po
  3063. * po/ru.po
  3064. * po/uk.po
  3065. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3066. Bump up version number to 1.2.0
  3067. * configure.ac
  3068. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3069. BtContext::getAnnounceTiers() now returns const reference.
  3070. * src/BtContext.h
  3071. * src/DefaultBtContext.cc
  3072. * src/DefaultBtContext.h
  3073. * test/MockBtContext.h
  3074. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3075. Change the number of retries for tracker request based on the
  3076. number of available tracker in a torrent file.
  3077. * src/TrackerWatcherCommand.cc
  3078. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3079. Added _maxTries property to RequestGroup and assign the option
  3080. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  3081. RequestGroup::getMaxTries() instead of
  3082. Option::getAsInt(PREF_MAX_TRIES).
  3083. * src/AbstractCommand.cc
  3084. * src/RequestGroup.cc
  3085. * src/RequestGroup.h
  3086. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3087. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  3088. Mandriva. I modified the patch: make RequestGroup have the
  3089. timeout value and AdaptiveURISelector directly modifies that
  3090. value.
  3091. * src/AbstractCommand.cc
  3092. * src/AdaptiveURISelector.cc
  3093. * src/AdaptiveURISelector.h
  3094. * src/FtpNegotiationCommand.cc
  3095. * src/RequestGroup.cc
  3096. * src/RequestGroup.h
  3097. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3098. Fixed compiler warning
  3099. * test/IteratableChecksumValidatorTest.cc
  3100. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3101. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  3102. integrated downloads. This PieceSelector subclass finds the
  3103. longest continuous sequence in the available missing pieces and
  3104. selects the last index of such sequence. This makes HTTP/FTP
  3105. connections less interrupted by the pieces obtained by BitTorrent
  3106. peers.
  3107. * src/DefaultPieceStorage.cc
  3108. * src/DefaultPieceStorage.h
  3109. * src/LongestSequencePieceSelector.cc
  3110. * src/LongestSequencePieceSelector.h
  3111. * src/Makefile.am
  3112. * src/PieceSelector.h
  3113. * src/RarestPieceSelector.h
  3114. * src/RequestGroup.cc
  3115. * test/BtDependencyTest.cc
  3116. * test/DefaultPieceStorageTest.cc
  3117. * test/IteratableChecksumValidatorTest.cc
  3118. * test/LongestSequencePieceSelectorTest.cc
  3119. * test/Makefile.am
  3120. * test/SegmentManTest.cc
  3121. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3122. Fixed the bug that the average speed is wrong in
  3123. http/ftp/BitTorrent integrated download. Only the download bytes
  3124. in BitTorrent were considered.
  3125. * src/RequestGroup.cc
  3126. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3127. Choose port for BitTorrent/DHT randomly from the specified range.
  3128. * src/DHTConnectionImpl.cc
  3129. * src/PeerListenCommand.cc
  3130. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3131. Send HTTP Authorization header only if it is requested by the
  3132. server(response 401). There are some exceptions. The authorization
  3133. header for proxy is always sent if it is available without request
  3134. by the server. If username/password is specified in the URI, it
  3135. is immediately sent to the server without request by the server.
  3136. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  3137. SharedHandle<AuthConfig>().
  3138. NetrcAuthResolver::resolveAuthConfig() returns
  3139. SharedHandle<AuthConfig>() if no AuthConfig is available.
  3140. * src/AbstractAuthResolver.cc
  3141. * src/AbstractProxyRequestCommand.cc
  3142. * src/AuthConfigFactory.cc
  3143. * src/AuthConfigFactory.h
  3144. * src/HttpConnection.cc
  3145. * src/HttpRequest.cc
  3146. * src/HttpRequest.h
  3147. * src/HttpResponse.cc
  3148. * src/HttpResponseCommand.cc
  3149. * src/HttpSkipResponseCommand.cc
  3150. * test/AuthConfigFactoryTest.cc
  3151. * test/HttpRequestTest.cc
  3152. * test/HttpResponseTest.cc
  3153. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3154. Remove leading "--" from help keyword and a substring after "="
  3155. from help keyword, so that one can query options by '-h--max-' or
  3156. '-hmax-peers=10'.
  3157. * src/option_processing.cc
  3158. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3159. Rewritten PStringVisitor and its implementation.
  3160. * src/PStringBuildVisitor.cc
  3161. * src/PStringBuildVisitor.h
  3162. * src/PStringDatum.h
  3163. * src/PStringNumLoop.h
  3164. * src/PStringSegment.cc
  3165. * src/PStringSegment.h
  3166. * src/PStringSelect.h
  3167. * src/PStringVisitor.h
  3168. * src/download_helper.cc
  3169. * test/PStringBuildVisitorTest.cc
  3170. * test/ParameterizedStringParserTest.cc
  3171. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3172. Persist connection between the built-in HTTP server and a client
  3173. if a client supports keep-alive. Fixed the bug that aria2 exits
  3174. when the HTTP server receives EOF from a client.
  3175. * src/HttpServer.cc
  3176. * src/HttpServer.h
  3177. * src/HttpServerCommand.cc
  3178. * src/HttpServerCommand.h
  3179. * src/HttpServerResponseCommand.cc
  3180. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3181. Added experimental built-in HTTP server. Currently, when a client
  3182. accesses to the server, it responds with the current download
  3183. progress. By default, it is disabled. To enable the server, give
  3184. --enable-http-server option. To change the default port number
  3185. for the server to listen to, use --http-server-listen-port option.
  3186. The response HTML is very simple and refreshes it self each 1
  3187. second. Because of this refresh, you see flicker in normal web
  3188. browser such as Firefox. I recommend to use console-based browser
  3189. such as elinks, w3m. To connect to the server, run 'elinks
  3190. http://localhost:6800/' while running aria2. Please replace port
  3191. number '6800'(which is default) with your preference.
  3192. * src/DownloadEngineFactory.cc
  3193. * src/HttpHeader.cc
  3194. * src/HttpHeader.h
  3195. * src/HttpHeaderProcessor.cc
  3196. * src/HttpHeaderProcessor.h
  3197. * src/HttpListenCommand.cc
  3198. * src/HttpListenCommand.h
  3199. * src/HttpServer.cc
  3200. * src/HttpServer.h
  3201. * src/HttpServerCommand.cc
  3202. * src/HttpServerCommand.h
  3203. * src/HttpServerResponseCommand.cc
  3204. * src/HttpServerResponseCommand.h
  3205. * src/Makefile.am
  3206. * src/OptionHandlerFactory.cc
  3207. * src/Util.cc
  3208. * src/Util.h
  3209. * src/help_tags.h
  3210. * src/option_processing.cc
  3211. * src/prefs.cc
  3212. * src/prefs.h
  3213. * src/usage_text.h
  3214. * test/HttpHeaderProcessorTest.cc
  3215. * test/UtilTest.cc
  3216. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3217. Removed.
  3218. * src/CheckIntegrityMan.cc
  3219. * src/FileAllocationMan.cc
  3220. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3221. Made (piece) hash check sequential for each RequestGroup because
  3222. simultaneous hash check is slower than sequential execution.
  3223. * src/CheckIntegrityCommand.cc
  3224. * src/CheckIntegrityDispatcherCommand.cc
  3225. * src/CheckIntegrityDispatcherCommand.h
  3226. * src/CheckIntegrityMan.h
  3227. * src/ConsoleStatCalc.cc
  3228. * src/DownloadCommand.cc
  3229. * src/DownloadEngine.cc
  3230. * src/DownloadEngine.h
  3231. * src/DownloadEngineFactory.cc
  3232. * src/Makefile.am
  3233. * src/Makefile.in
  3234. * src/RequestGroup.cc
  3235. * src/StatCalc.h
  3236. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3237. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  3238. SequentialDispatcherCommand.
  3239. * src/FileAllocationDispatcherCommand.cc
  3240. * src/SequentialDispatcherCommand.h
  3241. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3242. Rewritten FileAllocationDispatcherCommand using brand new
  3243. SequentialDispatcherCommand.
  3244. * src/DownloadEngineFactory.cc
  3245. * src/FileAllocationCommand.cc
  3246. * src/FileAllocationDispatcherCommand.cc
  3247. * src/FileAllocationDispatcherCommand.h
  3248. * src/Makefile.am
  3249. * src/SequentialDispatcherCommand.h
  3250. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3251. Replaced FileAllocationMan with
  3252. SequentialPicker<FileAllocationEntry>.
  3253. * src/BtCheckIntegrityEntry.cc
  3254. * src/ConsoleStatCalc.cc
  3255. * src/DownloadEngine.cc
  3256. * src/DownloadEngine.h
  3257. * src/DownloadEngineFactory.cc
  3258. * src/FileAllocationCommand.cc
  3259. * src/FileAllocationDispatcherCommand.cc
  3260. * src/FileAllocationMan.h
  3261. * src/Makefile.am
  3262. * src/SequentialPicker.h
  3263. * src/StatCalc.h
  3264. * src/StreamCheckIntegrityEntry.cc
  3265. * test/Makefile.am
  3266. * test/SequentialPickerTest.cc
  3267. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3268. Added doc for adaptive URI selector.
  3269. * doc/aria2c.1.txt
  3270. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3271. Added doc for adaptive URI selector.
  3272. * src/usage_text.h
  3273. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3274. Added doc for --bt-max-peers option.
  3275. * doc/aria2c.1.txt
  3276. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3277. Added doc for --bt-hash-check-seed option.
  3278. * doc/aria2c.1.txt
  3279. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3280. Documented exit codes.
  3281. * doc/aria2c.1.txt
  3282. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3283. Added --bt-max-peers option to specify the maximum number of peers
  3284. per torrent. 0 means unlimited number of peers.
  3285. * src/ActivePeerConnectionCommand.cc
  3286. * src/BtRuntime.h
  3287. * src/DefaultPeerStorage.cc
  3288. * src/DefaultPeerStorage.h
  3289. * src/OptionHandlerFactory.cc
  3290. * src/RequestGroup.cc
  3291. * src/option_processing.cc
  3292. * src/prefs.cc
  3293. * src/prefs.h
  3294. * src/usage_text.h
  3295. * test/DefaultPeerStorageTest.cc
  3296. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3297. Added --bt-hash-check-seed option. If true is given to this
  3298. option, after hash check using --check-integrity option and file
  3299. is complete, continue to seed file. If you want to check file and
  3300. download it only when it is damaged or incomplete, set this option
  3301. to false. This option has effect only on BitTorrent download.
  3302. The default value is true(This is the same behavior with the
  3303. previous release).
  3304. * src/BtCheckIntegrityEntry.cc
  3305. * src/OptionHandlerFactory.cc
  3306. * src/option_processing.cc
  3307. * src/prefs.cc
  3308. * src/prefs.h
  3309. * src/usage_text.h
  3310. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3311. Updated copyright year.
  3312. * src/version_usage.cc
  3313. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3314. Rewritten the usage text for --bt-request-peer-speed-limit option.
  3315. * doc/aria2c.1.txt
  3316. * src/usage_text.h
  3317. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3318. Made the max value of split option unlimited.
  3319. * doc/aria2c.1.txt
  3320. * src/OptionHandlerFactory.cc
  3321. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3322. Fixed compile warning/error.
  3323. * src/DownloadResult.h
  3324. * src/HttpDownloadCommand.cc
  3325. * src/ServerStat.cc
  3326. * test/RequestGroupTest.cc
  3327. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3328. Added --event-poll option to select the method for polling events.
  3329. The available methods are "select" and "epoll". "epoll" is
  3330. available on Linux only. The earlier release has the compile
  3331. option to choose from these methods.
  3332. * configure.ac
  3333. * src/RequestGroupMan.cc
  3334. * src/OptionHandlerFactory.cc
  3335. * src/EpollEventPoll.h
  3336. * src/StreamFileAllocationEntry.cc
  3337. * src/a2io.h
  3338. * src/SelectEventPoll.h
  3339. * src/option_processing.cc
  3340. * src/prefs.h
  3341. * src/EpollEventPoll.cc
  3342. * src/EventPoll.h
  3343. * src/SocketCore.h
  3344. * src/Makefile.am
  3345. * src/main.cc
  3346. * src/DownloadEngine.h
  3347. * src/SelectEventPoll.cc
  3348. * src/DownloadEngine.cc
  3349. * src/SocketCore.cc
  3350. * src/DownloadEngineFactory.cc
  3351. * src/Makefile.in
  3352. * src/prefs.cc
  3353. * src/usage_text.h
  3354. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3355. Included RecoverableException.h from main.cc
  3356. * src/main.cc
  3357. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3358. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  3359. now returns last error encountered in the HTTP/FTP downloads as a
  3360. exit status value. If all downloads finished successfully, aria2
  3361. returns 0. The error code is defined in src/DownloadResult.h.
  3362. The error occurred in the download currently in progress is not
  3363. reported as a last error. If no error has encountered but there
  3364. are in progress or waiting downloads, aria2 returns 7.
  3365. * src/AbstractCommand.cc
  3366. * src/DlAbortEx.h
  3367. * src/DlRetryEx.h
  3368. * src/DownloadCommand.cc
  3369. * src/DownloadFailureException.h
  3370. * src/DownloadResult.h
  3371. * src/FtpNegotiationCommand.cc
  3372. * src/HttpSkipResponseCommand.cc
  3373. * src/Makefile.am
  3374. * src/MultiUrlRequestInfo.cc
  3375. * src/MultiUrlRequestInfo.h
  3376. * src/RecoverableException.h
  3377. * src/RequestGroup.cc
  3378. * src/RequestGroup.h
  3379. * src/RequestGroupMan.cc
  3380. * src/RequestGroupMan.h
  3381. * src/URIResult.cc
  3382. * src/URIResult.h
  3383. * src/main.cc
  3384. * src/option_processing.cc
  3385. * test/RequestGroupTest.cc
  3386. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3387. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  3388. patch adds AdaptiveURISelector, which selects one of the bests
  3389. mirrors for first and reserved connections. For supplementary
  3390. ones, it returns mirrors which has not been tested yet, and if
  3391. each of them already tested, returns mirrors which has to be
  3392. tested again. Otherwise, it doesn't return anymore mirrors.
  3393. * src/AdaptiveURISelector.cc
  3394. * src/AdaptiveURISelector.h
  3395. * src/FtpNegotiationCommand.cc
  3396. * src/HttpResponseCommand.cc
  3397. * src/Makefile.am
  3398. * src/Makefile.in
  3399. * src/OptionHandlerFactory.cc
  3400. * src/RequestGroup.cc
  3401. * src/RequestGroup.h
  3402. * src/RequestGroupMan.cc
  3403. * src/ServerStat.cc
  3404. * src/ServerStat.h
  3405. * src/ServerStatMan.cc
  3406. * src/SpeedCalc.cc
  3407. * src/URISelector.h
  3408. * src/prefs.cc
  3409. * src/prefs.h
  3410. * test/RequestGroupManTest.cc
  3411. * test/ServerStatManTest.cc
  3412. * test/ServerStatTest.cc
  3413. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3414. Fixed unit test error.
  3415. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  3416. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3417. * Release 1.1.2
  3418. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3419. Updated Russian translation. Thanks to the translators.
  3420. * po/ru.po
  3421. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3422. Added the description of --use-head option to man page.
  3423. * doc/aria2c.1.txt
  3424. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3425. Bump up version number to 1.1.2
  3426. * configure.ac
  3427. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3428. Added --use-head option to toggle whether HEAD method should be
  3429. used in the first HTTP request. By default aria2 uses HEAD method
  3430. as the first request. When the server doesn't recognize HEAD, then
  3431. give aria2 --use-head=false to force aria2 to use GET method
  3432. instead.
  3433. * src/OptionHandlerFactory.cc
  3434. * src/RequestGroupMan.cc
  3435. * src/option_processing.cc
  3436. * src/prefs.cc
  3437. * src/prefs.h
  3438. * src/usage_text.h
  3439. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3440. Fixed the bug that BitTorrent download doesn't finish when REJECT
  3441. message is received before CHOKE message. The old implementation
  3442. doen't clear the use-bit of the piece when recieved REJECT
  3443. message.
  3444. * src/DefaultBtMessageDispatcher.cc
  3445. * test/DefaultBtMessageDispatcherTest.cc
  3446. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3447. * Release 1.1.1
  3448. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3449. Bump up version number to 1.1.1.
  3450. * configure.ac
  3451. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3452. Fixed the bug that --summary-interval=0 doesn't work. The summary
  3453. is printed repeatedly.
  3454. * src/ConsoleStatCalc.cc
  3455. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3456. * Release 1.1.0
  3457. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3458. Added ifdef clause for conditional compilation.
  3459. * src/main.cc
  3460. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3461. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  3462. translations. Thanks to all translators.
  3463. * po/ja.po
  3464. * po/ru.po
  3465. * po/uk.po
  3466. * po/zh_CN.po
  3467. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3468. Added the preceding ">>> " before the message "Printing the
  3469. contents of file..." to make the output more readable.
  3470. * src/main.cc
  3471. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3472. Added try-catch block in the loop in showFiles() to continue the
  3473. operation even if the exception occurred in one file.
  3474. * src/main.cc (showFiles)
  3475. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3476. Made messages in showFiles() translatable.
  3477. * po/aria2.pot
  3478. * src/main.cc
  3479. * src/message.h
  3480. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3481. Print the contents of Torrent/Metalink files are printed without
  3482. -T/-M options.
  3483. * src/main.cc
  3484. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3485. Escaped '--' with '\--'
  3486. * README
  3487. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3488. Updated "How to build" section in README. Mentioned about
  3489. --with-ca-bundle compile option.
  3490. * README
  3491. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3492. Bump up version number to 1.1.0.
  3493. * configure.ac
  3494. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3495. Added a note for --dht-listen-port option.
  3496. * doc/aria2c.1.txt
  3497. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3498. Update doc for --realtime-chunk-checksum option.
  3499. * doc/aria2c.1.txt
  3500. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3501. Update doc for --realtime-chunk-checksum option.
  3502. * src/usage_text.h
  3503. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3504. Updated French, Japanese, Russian and Ukrainian translations.
  3505. Thanks to all translators.
  3506. * po/fr.po
  3507. * po/ja.po
  3508. * po/ru.po
  3509. * po/uk.po
  3510. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3511. Renamed aria2c.pot to aria2.pot
  3512. * po/aria2.pot
  3513. * po/aria2c.pot: Removed.
  3514. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3515. Removed MetaEntry.h
  3516. * src/Makefile.am
  3517. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3518. Rename file by appending digits if a local file exists and its
  3519. file size is larger than that of remote file with --continue
  3520. option. The old implementation just throws exception in such case.
  3521. * src/RequestGroup.cc
  3522. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3523. Fixed the bug that download progress summary is not printed in the
  3524. interval specified by the option.
  3525. * src/ConsoleStatCalc.cc
  3526. * src/ConsoleStatCalc.h
  3527. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3528. Fixed compiler warning
  3529. * src/Cookie.cc
  3530. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3531. Fixed the cookie implementation based on RFC2965.
  3532. Now if a value in domain field is not started with dot, then
  3533. prepend dot. That means a cookie with domain=sf.net is sent to
  3534. wiki.sf.net.
  3535. * src/Cookie.cc
  3536. * test/CookieParserTest.cc
  3537. * test/CookieStorageTest.cc
  3538. * test/CookieTest.cc
  3539. * test/NsCookieParserTest.cc
  3540. * test/Sqlite3MozCookieParserTest.cc
  3541. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3542. Fixed the bug that causes corrupted downloads if HTTP pipelining
  3543. is enabled and the server doesn't support keep-alive.
  3544. * src/AbstractCommand.cc
  3545. * src/DownloadCommand.cc
  3546. * src/HttpDownloadCommand.cc
  3547. * src/HttpDownloadCommand.h
  3548. * src/HttpResponseCommand.cc
  3549. * src/Request.cc
  3550. * src/Request.h
  3551. * test/RequestTest.cc
  3552. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3553. Removed Dictionary/List/Data and its related classes.
  3554. * src/BencodeVisitor.cc: Removed.
  3555. * src/BencodeVisitor.h: Removed.
  3556. * src/Data.cc: Removed.
  3557. * src/Data.h: Removed.
  3558. * src/Dictionary.cc: Removed.
  3559. * src/Dictionary.h: Removed.
  3560. * src/List.cc: Removed.
  3561. * src/List.h: Removed.
  3562. * src/Makefile.am
  3563. * src/MetaEntry.h: Removed.
  3564. * src/MetaEntryVisitor.h: Removed.
  3565. * src/MetaFileUtil.cc: Removed.
  3566. * src/MetaFileUtil.h: Removed.
  3567. * test/BencodeVisitorTest.cc: Removed.
  3568. * test/DataTest.cc: Removed.
  3569. * test/DictionaryTest.cc: Removed.
  3570. * test/ListTest.cc: Removed.
  3571. * test/Makefile.am
  3572. * test/MetaFileUtilTest.cc: Removed.
  3573. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3574. Removed include of MetaEntry.h
  3575. * test/DHTMessageTrackerEntryTest.cc
  3576. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3577. Use BDE instead of Dictionary/List/Data.
  3578. * src/AnnounceList.cc
  3579. * src/AnnounceList.h
  3580. * test/AnnounceListTest.cc
  3581. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3582. Use BDE instead of Dictionary/List/Data.
  3583. * src/DHTAbstractMessage.cc
  3584. * src/DHTAbstractMessage.h
  3585. * src/DHTAnnouncePeerMessage.cc
  3586. * src/DHTAnnouncePeerMessage.h
  3587. * src/DHTAnnouncePeerReplyMessage.cc
  3588. * src/DHTAnnouncePeerReplyMessage.h
  3589. * src/DHTFindNodeMessage.cc
  3590. * src/DHTFindNodeMessage.h
  3591. * src/DHTFindNodeReplyMessage.cc
  3592. * src/DHTFindNodeReplyMessage.h
  3593. * src/DHTGetPeersMessage.cc
  3594. * src/DHTGetPeersMessage.h
  3595. * src/DHTGetPeersReplyMessage.cc
  3596. * src/DHTGetPeersReplyMessage.h
  3597. * src/DHTMessageFactory.h
  3598. * src/DHTMessageFactoryImpl.cc
  3599. * src/DHTMessageFactoryImpl.h
  3600. * src/DHTMessageReceiver.cc
  3601. * src/DHTMessageTracker.cc
  3602. * src/DHTMessageTracker.h
  3603. * src/DHTPingMessage.cc
  3604. * src/DHTPingMessage.h
  3605. * src/DHTPingReplyMessage.cc
  3606. * src/DHTPingReplyMessage.h
  3607. * src/DHTQueryMessage.cc
  3608. * src/DHTQueryMessage.h
  3609. * src/DHTResponseMessage.cc
  3610. * src/DHTResponseMessage.h
  3611. * test/DHTAnnouncePeerMessageTest.cc
  3612. * test/DHTAnnouncePeerReplyMessageTest.cc
  3613. * test/DHTFindNodeMessageTest.cc
  3614. * test/DHTFindNodeReplyMessageTest.cc
  3615. * test/DHTGetPeersMessageTest.cc
  3616. * test/DHTGetPeersReplyMessageTest.cc
  3617. * test/DHTMessageFactoryImplTest.cc
  3618. * test/DHTMessageTrackerTest.cc
  3619. * test/DHTPingMessageTest.cc
  3620. * test/DHTPingReplyMessageTest.cc
  3621. * test/MockDHTMessageFactory.h
  3622. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3623. Added tests the case where length < 0 is specified.
  3624. * test/BencodeTest.cc
  3625. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3626. Fixed memory leak in decoderawstring()
  3627. * src/bencode.cc
  3628. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3629. Added missing #ifdef guard. Added uc() function for String and
  3630. removeKey() for Dict.
  3631. * src/bencode.cc
  3632. * src/bencode.h
  3633. * test/BencodeTest.cc
  3634. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3635. Use BDE instead of Dictionary/List/Data.
  3636. * src/HandshakeExtensionMessage.cc
  3637. * src/HandshakeExtensionMessage.h
  3638. * test/HandshakeExtensionMessageTest.cc
  3639. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3640. Added --max-overall-upload-limit option. This option limits the
  3641. overall upload speed. Stated in help message that the existing
  3642. --max-upload-limit option limits the upload speed per each
  3643. torrent. Man page is also updated.
  3644. * doc/aria2c.1.txt
  3645. * src/DefaultBtMessageDispatcher.cc
  3646. * src/DefaultBtMessageDispatcher.h
  3647. * src/OptionHandlerFactory.cc
  3648. * src/PeerInteractionCommand.cc
  3649. * src/option_processing.cc
  3650. * src/prefs.cc
  3651. * src/prefs.h
  3652. * src/usage_text.h
  3653. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3654. Use BDE instead of Dictionary/List/Data classes.
  3655. * src/CompactPeerListProcessor.cc
  3656. * src/CompactPeerListProcessor.h
  3657. * src/DefaultBtAnnounce.cc
  3658. * src/DefaultBtContext.cc
  3659. * src/DefaultBtContext.h
  3660. * src/DefaultPeerListProcessor.cc
  3661. * src/DefaultPeerListProcessor.h
  3662. * src/DelegatingPeerListProcessor.cc
  3663. * src/DelegatingPeerListProcessor.h
  3664. * src/PeerListProcessor.h
  3665. * src/UTPexExtensionMessage.cc
  3666. * src/Util.h
  3667. * src/message.h
  3668. * test/DefaultBtContextTest.cc
  3669. * test/DefaultPeerListProcessorTest.cc
  3670. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3671. Added bencode helper functions and BDE class.
  3672. They will replace MetaFileUtil and Dictionary/List/Data classes.
  3673. * src/Makefile.am
  3674. * src/bencode.cc
  3675. * src/bencode.h
  3676. * test/BencodeTest.cc
  3677. * test/Makefile.am
  3678. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3679. Fixed the bug that bad URI is sent to the tracker when the announe
  3680. URI in torrent file includes query.
  3681. * src/DefaultBtAnnounce.cc
  3682. * test/DefaultBtAnnounceTest.cc
  3683. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3684. Added Option::blank().
  3685. Use !Option::blank(name) instead of Option::defined(name) for
  3686. the options that take filename.
  3687. * src/MultiUrlRequestInfo.cc
  3688. * src/Option.cc
  3689. * src/Option.h
  3690. * src/main.cc
  3691. * src/option_processing.cc
  3692. * test/OptionTest.cc
  3693. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3694. Documented the default value of --check-certificate option in man
  3695. page.
  3696. * doc/aria2c.1.txt
  3697. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3698. Enabled --check-certificate by default. Added compile
  3699. time(configure) option --with-ca-bundle to specify CA bundle.
  3700. Warn if --check-certificate=true and --ca-certificate is not
  3701. specified or loading CA certificate is failed.
  3702. * configure.ac
  3703. * src/MultiUrlRequestInfo.cc
  3704. * src/OptionHandlerFactory.cc
  3705. * src/message.h
  3706. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3707. Mentioned https tag in help option.
  3708. * doc/aria2c.1.txt
  3709. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3710. Added `https' tag to help option category. Added https tag to
  3711. --ca-certificate, --certificate, --check-certificate and
  3712. --private-key option.
  3713. * src/OptionHandlerFactory.cc
  3714. * src/help_tags.h
  3715. * src/option_processing.cc
  3716. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3717. Changed the package name from `aria2c' to `aria2' in order to fix
  3718. the packaging issue in Debian and Fedora. The name of the
  3719. executable is not changed.
  3720. * configure.ac
  3721. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3722. Fixed typos
  3723. * src/usage_text.h
  3724. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3725. Fixed typos and updated doc.
  3726. * README
  3727. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3728. Fixed typos
  3729. * doc/aria2c.1.txt
  3730. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3731. Fixed typos
  3732. * src/usage_text.h
  3733. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3734. Print a message when no files to download.
  3735. * src/download_helper.cc
  3736. * src/main.cc
  3737. * src/message.h
  3738. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3739. RFC3986 complied Percent-Encoding(urlencode).
  3740. Use uppercase hexadecimal digits for encoded text instead of lowercase
  3741. ones.
  3742. * src/Request.cc
  3743. * src/Util.cc
  3744. * src/Util.h
  3745. * test/BtHandshakeMessageTest.cc
  3746. * test/DefaultBtAnnounceTest.cc
  3747. * test/DefaultBtContextTest.cc
  3748. * test/RequestTest.cc
  3749. * test/UtilTest.cc
  3750. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3751. Fixed the bug that prevents aria2 from downloading 0-length files
  3752. via HTTP/FTP.
  3753. * src/DefaultBtContext.cc
  3754. * src/DefaultBtContext.h
  3755. * src/DownloadContext.h
  3756. * src/FtpNegotiationCommand.cc
  3757. * src/HttpResponseCommand.cc
  3758. * src/HttpResponseCommand.h
  3759. * src/RequestGroup.cc
  3760. * src/SingleFileDownloadContext.cc
  3761. * src/SingleFileDownloadContext.h
  3762. * test/BtPostDownloadHandlerTest.cc
  3763. * test/MetalinkPostDownloadHandlerTest.cc
  3764. * test/MockBtContext.h
  3765. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3766. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  3767. * src/option_processing.cc
  3768. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3769. Applied aria2-1.0.1-mingw.patch.
  3770. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  3771. mingw.
  3772. Collected 4th and 5th argument types for getsockopt and setsockopt.
  3773. * src/SocketCore.cc
  3774. * src/a2netcompat.h
  3775. * test/SocketCoreTest.cc
  3776. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3777. * Release 1.0.1
  3778. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3779. Updated Ukrainian and Norwegian Nynorsk translations.
  3780. Thanks to all translators.
  3781. * po/nn.po
  3782. * po/uk.po
  3783. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3784. Don't show download result when -S option is used.
  3785. * src/main.cc
  3786. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3787. Bump up version number to 1.0.1
  3788. * configure.ac
  3789. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3790. Closed files after the test cases in MultiDiskWriterTest::
  3791. testResetDiskWriterEntries(). This will fix the unit test error
  3792. in mingw32 build.
  3793. * test/MultiDiskWriterTest.cc
  3794. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3795. Use HEAD method to get file size from HTTP server for segmented
  3796. downloading.
  3797. The request to the BitTorrent Tracker always uses GET method because
  3798. the response of the tracker is small and it doesn't need segmented
  3799. download.
  3800. * src/FtpNegotiationCommand.cc
  3801. * src/HttpRequest.cc
  3802. * src/HttpResponseCommand.cc
  3803. * src/HttpSkipResponseCommand.cc
  3804. * src/RequestGroup.cc
  3805. * src/RequestGroup.h
  3806. * src/TrackerWatcherCommand.cc
  3807. * test/HttpRequestTest.cc
  3808. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3809. Fixed the bug that causes floating exception when -T option is used and
  3810. no URIs are given.
  3811. * src/download_helper.cc
  3812. * test/DownloadHelperTest.cc
  3813. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  3814. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  3815. errors in MinGW:
  3816. Closed file after saving server stats (RequestGroupMan.cc)
  3817. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  3818. Ignored case & handled 2-digit years (strptime.c)
  3819. Added missing suseconds_t definition (a2time.h)
  3820. Fixed socket CLOSE() define (SocketCore.cc)
  3821. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  3822. Changed utime() test values from x000 to x00000 as MinGW failed on
  3823. values less than timezone offset from Unix epoch
  3824. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  3825. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  3826. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  3827. handle negative dates (CookieParserTest.cc)
  3828. * src/a2time.h
  3829. * src/FtpConnection.cc
  3830. * src/RequestGroupMan.cc
  3831. * src/SocketCore.cc
  3832. * src/strptime.c
  3833. * test/CookieParserTest.cc
  3834. * test/CopyDiskAdaptorTest.cc
  3835. * test/FileTest.cc
  3836. * test/FtpConnectionTest.cc
  3837. * test/MultiDiskAdaptorTest.cc
  3838. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3839. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  3840. * doc/aria2c.1.txt
  3841. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3842. * Release 1.0.0
  3843. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3844. Added '~' to reserved characters.
  3845. * src/Util.cc
  3846. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3847. Do not urlencode Request::url in setUrl() because we want unmodified
  3848. URL using Request::getUrl()
  3849. * src/Request.cc
  3850. * src/Request.h
  3851. * test/RequestTest.cc
  3852. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3853. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  3854. Thanks to all translators.
  3855. * po/bg.po
  3856. * po/fr.po
  3857. * po/ja.po
  3858. * po/ru.po
  3859. * po/uk.po
  3860. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3861. Bump up version number to 1.0.0
  3862. * configure.ac
  3863. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3864. Added nosqlite3 build to build_test.sh.
  3865. Renamed noxml as expat.
  3866. * build_test.sh
  3867. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3868. Updated INPUT FILE section.
  3869. * doc/aria2c.1.txt
  3870. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3871. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  3872. on big endian systems because test .aria2 files are made for little
  3873. endian systems.
  3874. * test/DefaultBtProgressInfoFileTest.cc
  3875. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3876. Dropped ares support.
  3877. * README
  3878. * configure.ac
  3879. * m4/libares.m4: Removed.
  3880. * src/AsyncNameResolver.cc
  3881. * src/Makefile.am
  3882. * test/Makefile.am
  3883. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3884. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  3885. Removed const qualifier from DiskWriter::size().
  3886. * src/AbstractDiskWriter.cc
  3887. * src/AbstractDiskWriter.h
  3888. * src/ByteArrayDiskWriter.cc
  3889. * src/ByteArrayDiskWriter.h
  3890. * src/DiskWriter.h
  3891. * test/ByteArrayDiskWriterTest.cc
  3892. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3893. Fixed the bug that causes segmentation fault/bus error during executing
  3894. choking algorithm while seeding. This is caused by improper
  3895. implementation of compare function which returns inconsistent results
  3896. depending on the timing of last unchoke.
  3897. * src/BtSeederStateChoke.cc
  3898. * src/BtSeederStateChoke.h
  3899. * src/DefaultPeerStorage.cc
  3900. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3901. Removed TODO
  3902. * TODO
  3903. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3904. Added a section that explains how to pass argument to options that
  3905. takes optional arguments with its short form.
  3906. * doc/aria2c.1.txt
  3907. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3908. Added -u for the short form of --max-upload-limit option.
  3909. * doc/aria2c.1.txt
  3910. * src/option_processing.cc
  3911. * src/usage_text.h
  3912. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3913. Added -V for the short form of --check-integrity option.
  3914. Now the argument of --check-integrity option is optional:
  3915. if it is omitted, it is evaluated as true.
  3916. * doc/aria2c.1.txt
  3917. * src/option_processing.cc
  3918. * src/usage_text.h
  3919. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3920. Made the default value of --ftp-pasv option set to true and it can take
  3921. true/false values.
  3922. * src/OptionHandlerFactory.cc
  3923. * src/option_processing.cc
  3924. * src/usage_text.h
  3925. * doc/aria2c.1.txt
  3926. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3927. Given custom random number generator to std::random_shuffle.
  3928. * src/AnnounceList.cc
  3929. * src/BtLeecherStateChoke.cc
  3930. * src/BtSeederStateChoke.cc
  3931. * src/DefaultBtRequestFactory.cc
  3932. * src/MetalinkEntry.cc
  3933. * src/RarestPieceSelector.cc
  3934. * src/SimpleRandomizer.cc
  3935. * src/SimpleRandomizer.h
  3936. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3937. Now the default value of --enable-direct-io is true.
  3938. * src/OptionHandlerFactory.cc
  3939. * doc/aria2c.1.txt
  3940. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3941. Erase peer before executing onReturningPeer and onErasingPeer
  3942. because choking algorithm called from onReturningPeer doesn't
  3943. like erasing peer in the active peer list.
  3944. * src/DefaultPeerStorage.cc
  3945. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3946. Instead of creating special filename in createDownloadResult() if
  3947. inMemoryDownload() is true, now it is done in getFilePath().
  3948. * src/RequestGroup.cc
  3949. * test/RequestGroupTest.cc
  3950. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3951. Print "[MEMORY]" and filename if a file is not saved in disk and just
  3952. processed in memory. This is the fix for previous comment out.
  3953. * src/MemoryBufferPreDownloadHandler.cc
  3954. * src/RequestGroup.cc
  3955. * src/RequestGroup.h
  3956. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3957. Commented out the code which sets virtual directory path "[MEMORY]"
  3958. propagate directory to store to following RequestGroup.
  3959. * src/MemoryBufferPreDownloadHandler.cc
  3960. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3961. Bump up version number to 1.0.0b
  3962. * configure.ac
  3963. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3964. Added input_uris.txt to EXTRA_DIST
  3965. * test/Makefile.am
  3966. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3967. Removed PeerObject.h from Makefile.am
  3968. * src/Makefile.am
  3969. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3970. Avoid slow seeding
  3971. * src/PeerInteractionCommand.cc
  3972. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3973. Updated usage for -i option.
  3974. * src/usage_text.h (TEXT_INPUT_FILE)
  3975. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3976. Added INPUT FILE section to man page.
  3977. Escaped fake URLs.
  3978. * doc/aria2c.1.txt
  3979. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3980. Fixed wrong note position for -o option.
  3981. * doc/aria2c.1.txt
  3982. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3983. Fixed compile error without SSL/XML library.
  3984. * src/DefaultBtProgressInfoFile.cc
  3985. * src/DefaultBtProgressInfoFile.h
  3986. * src/FileMetalinkParserState.cc
  3987. * src/RequestGroup.h
  3988. * src/SocketCore.cc
  3989. * src/SocketCore.h
  3990. * src/VerificationMetalinkParserState.cc
  3991. * src/download_helper.h
  3992. * src/main.cc
  3993. * test/DefaultBtProgressInfoFileTest.cc
  3994. * test/DownloadHelperTest.cc
  3995. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3996. Rewritten URI handling functions. They are now provided as a testable
  3997. functions.
  3998. * src/Makefile.am
  3999. * src/RequestGroup.cc
  4000. * src/RequestGroup.h
  4001. * src/download_helper.cc
  4002. * src/download_helper.h
  4003. * src/main.cc
  4004. * test/DownloadHelperTest.cc
  4005. * test/Makefile.am
  4006. * test/input_uris.txt
  4007. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4008. Quickly terminate commands when ctrl-c is pressed.
  4009. * src/DownloadEngine.cc
  4010. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4011. Quickly terminate idle commands when download finished.
  4012. * src/AbstractCommand.cc
  4013. * src/DownloadCommand.cc
  4014. * src/DownloadEngine.cc
  4015. * src/DownloadEngine.h
  4016. * src/SleepCommand.cc
  4017. * src/SleepCommand.h
  4018. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4019. Added the ability to specify output filename and directory in input
  4020. file.
  4021. Additional parameters are added in the following line of URIs
  4022. with proceeding white space(s), 1 parameter in 1 line.
  4023. The parameter names are the same with the command-line option name
  4024. without proceeding "--". Not all the options are available here:
  4025. at the moment, 'dir' and 'out' options are avialable.
  4026. Please note that out option has no effect against Metalink or BitTorrent
  4027. downloads.
  4028. Example input file:
  4029. http://host/foo-1.1.tar.bz2
  4030. out=foo.tar.bz2
  4031. dir=/tmp/downloads
  4032. http://host/thundermonkey-2.0.tar.bz2
  4033. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  4034. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  4035. thundermonkey-2.0.tar.bz2 is saved as
  4036. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  4037. * src/BtPostDownloadHandler.cc
  4038. * src/Metalink2RequestGroup.cc
  4039. * src/Metalink2RequestGroup.h
  4040. * src/MetalinkPostDownloadHandler.cc
  4041. * src/UriListParser.cc
  4042. * src/UriListParser.h
  4043. * src/main.cc
  4044. * test/Metalink2RequestGroupTest.cc
  4045. * test/UriListParserTest.cc
  4046. * test/filelist1.txt
  4047. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4048. Fixed error when SSL library is not found.
  4049. * configure.ac
  4050. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4051. Cross referenced among -s, -C and -j options.
  4052. Updated usage of -C and -s options.
  4053. * src/usage_text.h
  4054. * doc/aria2c.1.txt
  4055. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4056. Fixed bad cast in 32bit platforms.
  4057. * test/DefaultPieceStorageTest.cc
  4058. (DefaultPieceStorageTest::testGetCompletedLength)
  4059. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4060. Fixed unit test fails on 32bit platforms.
  4061. * test/CookieParserTest.cc
  4062. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4063. Show an average download speed in Download results.
  4064. * src/BtFileAllocationEntry.cc
  4065. * src/DefaultPieceStorage.cc
  4066. * src/DownloadContext.cc
  4067. * src/DownloadContext.h
  4068. * src/DownloadResult.h
  4069. * src/RequestGroup.cc
  4070. * src/RequestGroupMan.cc
  4071. * src/StreamFileAllocationEntry.cc
  4072. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4073. Fixed the bug that metalink file is not processed if Content-Type
  4074. field has a paramter.
  4075. * src/HttpResponse.cc
  4076. * src/HttpResponse.h
  4077. * test/HttpResponseTest.cc
  4078. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4079. Removed unused code.
  4080. * src/DefaultBtAnnounce.cc
  4081. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4082. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  4083. the value larger than DefaultPieceStorage::getTotalLength() when
  4084. in flight pieces are involved.
  4085. * src/DefaultPieceStorage.cc
  4086. * test/DefaultPieceStorageTest.cc
  4087. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4088. Bump up version number to 1.0.0a.
  4089. * configure.ac
  4090. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4091. Updated configure.ac
  4092. * configure.ac
  4093. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4094. Added usege for proxy.
  4095. * doc/aria2c.1.txt
  4096. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4097. Added usage for --ca-certificate, --certificate, --private-key and
  4098. --check-certificate options.
  4099. * doc/aria2c.1.txt
  4100. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4101. Updated man page
  4102. * doc/aria2c.1.txt
  4103. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4104. Added --no-proxy option. It receives comman separated hostname or
  4105. domains to which proxy should not be used.
  4106. aria2 honors the environment variable no_proxy to override no-proxy
  4107. value in configuration file. The user can override the environment
  4108. variable no_proxy with --no-proxy command-line option.
  4109. * src/AbstractCommand.cc
  4110. * src/OptionHandlerFactory.cc
  4111. * src/option_processing.cc
  4112. * src/prefs.cc
  4113. * src/prefs.h
  4114. * src/usage_text.h
  4115. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4116. Added the ability to verify peer in SSL/TLS using given CA certificates.
  4117. The CA certificates are specified in --ca-certificate option.
  4118. By default, the verification is disabled. Use --check-certificate
  4119. option to enable it.
  4120. * src/HttpRequestCommand.cc
  4121. * src/LibgnutlsTLSContext.cc
  4122. * src/LibgnutlsTLSContext.h
  4123. * src/LibsslTLSContext.cc
  4124. * src/LibsslTLSContext.h
  4125. * src/MultiUrlRequestInfo.cc
  4126. * src/OptionHandlerFactory.cc
  4127. * src/SocketCore.cc
  4128. * src/SocketCore.h
  4129. * src/a2functional.h
  4130. * src/message.h
  4131. * src/option_processing.cc
  4132. * src/prefs.cc
  4133. * src/prefs.h
  4134. * src/usage_text.h
  4135. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4136. Added client certificate authentication for SSL/TLS.
  4137. Currently a private key must be decrypted for use with aria2.
  4138. If a user accidentally gives encrypted file to aria2 then following
  4139. thing happens:
  4140. If encrypted private key is given to aria2, it behaves differently
  4141. depending on the ssl library it uses. If aria2 built with openssl then
  4142. openssl prompts the user for password. If aria2 build with gnutls then
  4143. aria2 exists with error at start up.
  4144. * src/DownloadEngineFactory.cc
  4145. * src/MultiUrlRequestInfo.cc
  4146. * src/OptionHandlerFactory.cc
  4147. * src/option_processing.cc
  4148. * src/prefs.cc
  4149. * src/prefs.h
  4150. * src/usage_text.h
  4151. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4152. Introduced TLSContext that holds TLS related data that can be shared
  4153. with multiple SSL connections.
  4154. * src/DownloadEngineFactory.cc
  4155. * src/LibgnutlsTLSContext.cc
  4156. * src/LibgnutlsTLSContext.h
  4157. * src/LibsslTLSContext.cc
  4158. * src/LibsslTLSContext.h
  4159. * src/Makefile.am
  4160. * src/SocketCore.cc
  4161. * src/SocketCore.h
  4162. * src/TLSContext.h
  4163. * src/message.h
  4164. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4165. Fixed the bug that the DiskWriter of the first FileEntry whose
  4166. `needsFileAllocation' property is false is not created
  4167. even if it shares a piece with next FileEntry which `requested' property
  4168. is true.
  4169. Fixed the bug that zero-length file is not created if pre file
  4170. allocation is not done.
  4171. * src/MultiDiskAdaptor.cc
  4172. * src/MultiDiskAdaptor.h
  4173. * test/MultiDiskAdaptorTest.cc
  4174. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4175. Added the ability to pool proxy connection.
  4176. The conneciton in FTP with proxy-method=GET is not pooled.
  4177. Proxy-Connection header will not be sent when sending CONNECT method.
  4178. * src/DownloadEngine.cc
  4179. * src/DownloadEngine.h
  4180. * src/FtpFinishDownloadCommand.cc
  4181. * src/FtpInitiateConnectionCommand.cc
  4182. * src/FtpNegotiationCommand.cc
  4183. * src/HttpDownloadCommand.cc
  4184. * src/HttpInitiateConnectionCommand.cc
  4185. * src/HttpRequest.cc
  4186. * src/HttpRequest.h
  4187. * src/HttpResponse.cc
  4188. * src/HttpSkipResponseCommand.cc
  4189. * test/HttpRequestTest.cc
  4190. * test/HttpResponseTest.cc
  4191. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4192. Handle date before epoch.
  4193. To create *bad* Time object, call Time::null().
  4194. * src/CookieParser.cc
  4195. * src/FtpConnection.cc
  4196. * src/FtpConnection.h
  4197. * src/FtpNegotiationCommand.cc
  4198. * src/RequestGroup.cc
  4199. * src/TimeA2.cc
  4200. * src/TimeA2.h
  4201. * test/CookieParserTest.cc
  4202. * test/FtpConnectionTest.cc
  4203. * test/TimeTest.cc
  4204. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4205. Added support for following envrionment variables: http_proxy,
  4206. https_proxy, ftp_proxy and all_proxy.
  4207. Each variable is equivalent to the aria2 option whose name is the
  4208. variable name with '_' replaced with '-'.
  4209. They overrides options specified in aria2.conf file.
  4210. The envrionment variables can be overrode using command-line option.
  4211. * src/option_processing.cc
  4212. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4213. Renamed --http-proxy-method as --proxy-method.
  4214. * src/AbstractCommand.cc
  4215. * src/FtpInitiateConnectionCommand.cc
  4216. * src/HttpInitiateConnectionCommand.cc
  4217. * src/OptionHandlerFactory.cc
  4218. * src/option_processing.cc
  4219. * src/prefs.cc
  4220. * src/prefs.h
  4221. * src/usage_text.h
  4222. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4223. Deprecated --http-proxy-user and --http-proxy-passwd options.
  4224. Added --https-proxy, --ftp-proxy and --all-proxy options.
  4225. Above 3 options and --http-proxy option can handle proxy in URL format
  4226. like: http://user:passwd@host:port.
  4227. If a proxy requires user/password, they must be specified in a URL.
  4228. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  4229. instead.
  4230. * src/AbstractCommand.cc
  4231. * src/AbstractCommand.h
  4232. * src/AbstractProxyRequestCommand.cc
  4233. * src/AbstractProxyRequestCommand.h
  4234. * src/AuthConfigFactory.cc
  4235. * src/AuthConfigFactory.h
  4236. * src/FtpFinishDownloadCommand.cc
  4237. * src/FtpInitiateConnectionCommand.cc
  4238. * src/FtpInitiateConnectionCommand.h
  4239. * src/FtpNegotiationCommand.cc
  4240. * src/FtpTunnelRequestCommand.cc
  4241. * src/FtpTunnelRequestCommand.h
  4242. * src/HttpDownloadCommand.cc
  4243. * src/HttpInitiateConnectionCommand.cc
  4244. * src/HttpInitiateConnectionCommand.h
  4245. * src/HttpProxyRequestCommand.cc
  4246. * src/HttpProxyRequestCommand.h
  4247. * src/HttpRequest.cc
  4248. * src/HttpRequest.h
  4249. * src/HttpRequestCommand.cc
  4250. * src/HttpRequestCommand.h
  4251. * src/HttpSkipResponseCommand.cc
  4252. * src/InitiateConnectionCommand.cc
  4253. * src/InitiateConnectionCommand.h
  4254. * src/OptionHandlerFactory.cc
  4255. * src/OptionHandlerImpl.h
  4256. * src/Request.cc
  4257. * src/option_processing.cc
  4258. * src/prefs.cc
  4259. * src/prefs.h
  4260. * src/usage_text.h
  4261. * test/AuthConfigFactoryTest.cc
  4262. * test/HttpRequestTest.cc
  4263. * test/OptionHandlerTest.cc
  4264. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4265. Execute choking algorithm when unchoked and interested peer is
  4266. disconected.
  4267. * src/DefaultPeerStorage.cc
  4268. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4269. Added testcase for BtNotInterestedMessage from unchoked peer.
  4270. * test/BtNotInterestedMessageTest.cc
  4271. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4272. Execute choking algorithm when BtInterestedMessage arrives from
  4273. unchoked peer.
  4274. * src/BtInterestedMessage.cc
  4275. * src/BtInterestedMessage.h
  4276. * src/DefaultBtMessageFactory.cc
  4277. * test/BtInterestedMessageTest.cc
  4278. * test/MockPeerStorage.h
  4279. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4280. AuthConfigFactory is now part of DownloadEngine.
  4281. * src/AbstractProxyRequestCommand.cc
  4282. * src/AuthConfigFactory.h
  4283. * src/DownloadEngine.cc
  4284. * src/DownloadEngine.h
  4285. * src/FtpConnection.cc
  4286. * src/FtpConnection.h
  4287. * src/FtpNegotiationCommand.cc
  4288. * src/HttpConnection.cc
  4289. * src/HttpRequest.cc
  4290. * src/HttpRequest.h
  4291. * src/HttpRequestCommand.cc
  4292. * src/HttpResponse.cc
  4293. * src/HttpResponseCommand.cc
  4294. * src/HttpSkipResponseCommand.cc
  4295. * src/MultiUrlRequestInfo.cc
  4296. * src/main.cc
  4297. * test/FtpConnectionTest.cc
  4298. * test/HttpRequestTest.cc
  4299. * test/HttpResponseTest.cc
  4300. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4301. Corrected catched exception type.
  4302. * src/ServerStatMan.cc
  4303. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4304. DNSCache is now part of DownloadEngine.
  4305. * src/DNSCache.h
  4306. * src/DownloadEngine.cc
  4307. * src/DownloadEngine.h
  4308. * src/InitiateConnectionCommand.cc
  4309. * src/MultiUrlRequestInfo.cc
  4310. * test/Makefile.am
  4311. * test/Makefile.in
  4312. * test/SimpleDNSCacheTest.cc
  4313. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4314. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  4315. DownloadEngine.
  4316. * src/ActivePeerConnectionCommand.cc
  4317. * src/BtSetup.cc
  4318. * src/CUIDCounter.h
  4319. * src/DHTSetup.cc
  4320. * src/DownloadCommand.cc
  4321. * src/DownloadEngine.cc
  4322. * src/DownloadEngine.h
  4323. * src/DownloadEngineFactory.cc
  4324. * src/FileAllocationDispatcherCommand.cc
  4325. * src/InitiatorMSEHandshakeCommand.cc
  4326. * src/PeerInitiateConnectionCommand.cc
  4327. * src/PeerInteractionCommand.cc
  4328. * src/PeerListenCommand.cc
  4329. * src/RequestGroup.cc
  4330. * src/StreamFileAllocationEntry.cc
  4331. * src/TrackerWatcherCommand.cc
  4332. * src/main.cc
  4333. * test/RequestGroupManTest.cc
  4334. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4335. Implemented commented code in BtSeederStateChoke
  4336. * src/BtSeederStateChoke.cc
  4337. * src/Peer.cc
  4338. * src/Peer.h
  4339. * src/PeerInteractionCommand.cc
  4340. * src/PeerSessionResource.cc
  4341. * src/PeerSessionResource.h
  4342. * test/MockBtMessageDispatcher.h
  4343. * test/PeerSessionResourceTest.cc
  4344. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4345. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  4346. its object.
  4347. * src/AbstractBtMessage.cc
  4348. * src/ActivePeerConnectionCommand.cc
  4349. * src/ActivePeerConnectionCommand.h
  4350. * src/BtContextAwareCommand.cc
  4351. * src/BtContextAwareCommand.h
  4352. * src/BtExtendedMessage.cc
  4353. * src/BtExtendedMessage.h
  4354. * src/BtInterestedMessage.cc
  4355. * src/BtInterestedMessage.h
  4356. * src/BtNotInterestedMessage.cc
  4357. * src/BtNotInterestedMessage.h
  4358. * src/BtRegistry.cc
  4359. * src/BtRegistry.h
  4360. * src/BtSeederStateChoke.cc
  4361. * src/BtSetup.cc
  4362. * src/DHTGetPeersCommand.cc
  4363. * src/DHTGetPeersCommand.h
  4364. * src/DHTPeerAnnounceEntry.cc
  4365. * src/DHTPeerAnnounceEntry.h
  4366. * src/DHTPeerAnnounceStorage.cc
  4367. * src/DHTPeerAnnounceStorage.h
  4368. * src/DHTPeerLookupTask.cc
  4369. * src/DHTPeerLookupTask.h
  4370. * src/DHTSetup.cc
  4371. * src/DHTSetup.h
  4372. * src/DHTTaskFactory.h
  4373. * src/DHTTaskFactoryImpl.cc
  4374. * src/DHTTaskFactoryImpl.h
  4375. * src/DefaultBtAnnounce.cc
  4376. * src/DefaultBtInteractive.cc
  4377. * src/DefaultBtInteractive.h
  4378. * src/DefaultBtMessageDispatcher.cc
  4379. * src/DefaultBtMessageDispatcher.h
  4380. * src/DefaultBtMessageFactory.cc
  4381. * src/DefaultBtMessageFactory.h
  4382. * src/DefaultBtMessageReceiver.cc
  4383. * src/DefaultBtProgressInfoFile.cc
  4384. * src/DefaultBtProgressInfoFile.h
  4385. * src/DefaultBtRequestFactory.cc
  4386. * src/DefaultBtRequestFactory.h
  4387. * src/DefaultExtensionMessageFactory.cc
  4388. * src/DefaultExtensionMessageFactory.h
  4389. * src/DefaultPeerStorage.cc
  4390. * src/DefaultPeerStorage.h
  4391. * src/DownloadEngine.cc
  4392. * src/DownloadEngine.h
  4393. * src/InitiatorMSEHandshakeCommand.cc
  4394. * src/InitiatorMSEHandshakeCommand.h
  4395. * src/MSEHandshake.cc
  4396. * src/MSEHandshake.h
  4397. * src/Makefile.am
  4398. * src/Makefile.in
  4399. * src/PeerChokeCommand.cc
  4400. * src/PeerChokeCommand.h
  4401. * src/PeerInitiateConnectionCommand.cc
  4402. * src/PeerInitiateConnectionCommand.h
  4403. * src/PeerInteractionCommand.cc
  4404. * src/PeerInteractionCommand.h
  4405. * src/PeerObject.h
  4406. * src/PeerReceiveHandshakeCommand.cc
  4407. * src/PeerReceiveHandshakeCommand.h
  4408. * src/ReceiverMSEHandshakeCommand.cc
  4409. * src/RequestGroup.cc
  4410. * src/RequestGroup.h
  4411. * src/RequestGroupMan.cc
  4412. * src/RequestGroupMan.h
  4413. * src/SeedCheckCommand.cc
  4414. * src/SeedCheckCommand.h
  4415. * src/ShareRatioSeedCriteria.h
  4416. * src/SimpleBtMessage.cc
  4417. * src/TrackerWatcherCommand.cc
  4418. * src/TrackerWatcherCommand.h
  4419. * src/UTPexExtensionMessage.cc
  4420. * src/UTPexExtensionMessage.h
  4421. * test/BtCancelMessageTest.cc
  4422. * test/BtChokeMessageTest.cc
  4423. * test/BtExtendedMessageTest.cc
  4424. * test/BtInterestedMessageTest.cc
  4425. * test/BtNotInterestedMessageTest.cc
  4426. * test/BtPieceMessageTest.cc
  4427. * test/BtPortMessageTest.cc
  4428. * test/BtRegistryTest.cc
  4429. * test/BtRejectMessageTest.cc
  4430. * test/BtRequestMessageTest.cc
  4431. * test/DHTPeerAnnounceEntryTest.cc
  4432. * test/DHTPeerAnnounceStorageTest.cc
  4433. * test/DefaultBtMessageDispatcherTest.cc
  4434. * test/DefaultBtMessageFactoryTest.cc
  4435. * test/DefaultBtProgressInfoFileTest.cc
  4436. * test/DefaultBtRequestFactoryTest.cc
  4437. * test/DefaultExtensionMessageFactoryTest.cc
  4438. * test/MSEHandshakeTest.cc
  4439. * test/MockDHTTaskFactory.h
  4440. * test/ShareRatioSeedCriteriaTest.cc
  4441. * test/UTPexExtensionMessageTest.cc
  4442. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4443. Fixed compiler warning.
  4444. * test/UtilTest.cc
  4445. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4446. Treat Cookie object as session cookie if expiry = 0 is given.
  4447. With this change, you can specify session scoped cookies in an external
  4448. file setting expiry value to 0.
  4449. * src/Cookie.cc
  4450. * src/Cookie.h
  4451. * test/CookieParserTest.cc
  4452. * test/CookieStorageTest.cc
  4453. * test/CookieTest.cc
  4454. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4455. Changed signature of DHTMessageFactory::createResponseMessage().
  4456. Removed unused validateIDMatch.
  4457. * src/DHTMessageFactory.h
  4458. * src/DHTMessageFactoryImpl.cc
  4459. * src/DHTMessageFactoryImpl.h
  4460. * src/DHTMessageTracker.cc
  4461. * test/DHTMessageFactoryImplTest.cc
  4462. * test/MockDHTMessageFactory.h
  4463. Dropped DHT message coming from same ID of localhost.
  4464. * src/DHTMessageReceiver.cc
  4465. Rejected adding node whose ID is the same as localhost's.
  4466. * src/DHTRoutingTable.cc
  4467. * test/BtPortMessageTest.cc
  4468. * test/DHTRoutingTableTest.cc
  4469. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4470. Pool connection when redirection occurs with Content-Length = 0.
  4471. * src/HttpSkipResponseCommand.cc
  4472. * src/HttpSkipResponseCommand.h
  4473. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4474. Fixed the bug that causes time out when redirection occurs with
  4475. content-length 0.
  4476. * src/HttpResponseCommand.cc
  4477. * src/HttpSkipResponseCommand.cc
  4478. * src/HttpSkipResponseCommand.h
  4479. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4480. Now each status legends is shown only when it appears in Download
  4481. Result. If Download Result has no item, then status legend will not
  4482. be printed.
  4483. * src/RequestGroupMan.cc
  4484. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4485. Removed duplicate creation of OptionHandlers.
  4486. * src/option_processing.cc
  4487. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4488. Fixed the bug that causes segmentation fault when accessing files which
  4489. don't exist or are not included in --select-file option while
  4490. validating chunk checksum.
  4491. * src/MultiDiskAdaptor.cc
  4492. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4493. Fixed compiler warning.
  4494. * test/UtilTest.cc
  4495. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4496. Included cstdlib. This fixed the compile error with g++-4.3.2.
  4497. * src/IteratableChecksumValidator.cc
  4498. * src/IteratableChunkChecksumValidator.cc
  4499. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4500. * Release 0.16.2
  4501. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4502. Added Serbian translation. Updated Ukrainian translation.
  4503. Thanks to all translators.
  4504. * po/sr.po
  4505. * po/uk.po
  4506. * po/LINGUAS
  4507. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4508. Bump up version number to 0.16.2
  4509. * configure.ac
  4510. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4511. Added length equality test to operator== to drop a piece message
  4512. whose length does not match to the requested one.
  4513. * src/RequestSlot.cc
  4514. * test/DefaultBtMessageDispatcherTest.cc
  4515. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4516. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  4517. recieved.
  4518. In this fix, if a request larger than 16KiB length is received, aria2
  4519. disconnects the peer.
  4520. * src/BtConstants.h
  4521. * src/PeerMessageUtil.cc
  4522. * src/PeerMessageUtil.h
  4523. * test/BtRequestMessageTest.cc
  4524. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4525. * Release 0.16.1
  4526. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4527. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  4528. * doc/aria2c.1.txt
  4529. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4530. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  4531. Updated French, Simplified Chinese and Japanese translations.
  4532. Thanks to all translators.
  4533. en@quot and en@boldquot are also added.
  4534. * po/LINGUAS
  4535. * po/fr.po
  4536. * po/ja.po
  4537. * po/uk.po
  4538. * po/vi.po
  4539. * po/zh_CN.po
  4540. * po/zh_TW.po
  4541. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4542. Bump up version number to 0.16.1.
  4543. * configure.ac
  4544. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4545. Updated README.
  4546. * README
  4547. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4548. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  4549. not to replace '--' with em dash character.
  4550. * doc/aria2c.1.txt
  4551. * doc/makeman
  4552. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4553. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  4554. every SEC seconds.
  4555. * src/DownloadEngineFactory.cc
  4556. * src/OptionHandlerFactory.cc
  4557. * src/option_processing.cc
  4558. * src/usage_text.h
  4559. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4560. Fixed compile warning on linux-amd64
  4561. * src/FtpConnection.cc
  4562. * src/IteratableChunkChecksumValidator.cc
  4563. * src/MultiDiskAdaptor.cc
  4564. Fixed the bug that unit test fails on linux-amd64
  4565. * test/UtilTest.cc
  4566. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4567. Added --dht-file-path option to change the path to dht.dat, which is a
  4568. serialized DHT routing table.
  4569. * src/OptionHandlerFactory.cc
  4570. * src/option_processing.cc
  4571. * src/usage_text.h
  4572. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4573. Fixed possible underflow.
  4574. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  4575. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4576. Fixed the bug that last character in URI is not encoded.
  4577. * src/Request.cc
  4578. * test/RequestTest.cc
  4579. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4580. Fixed the bug that referer header field contains fragment.
  4581. Now Request class removes fragment part of URI and encodes it
  4582. in Request::setUri() and setReferer().
  4583. * src/Request.h
  4584. * src/Request.cc
  4585. * test/RequestTest.cc
  4586. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4587. Added missing m4 macros.
  4588. * m4/cppunit.m4
  4589. * m4/libgcrypt.m4
  4590. * m4/libgnutls-extra.m4
  4591. * m4/libgnutls.m4
  4592. * m4/libxml2.m4
  4593. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4594. Fixed compile error with gcc-4.4(snapshot)
  4595. * src/File.cc
  4596. * src/FtpConnection.cc
  4597. * src/OptionHandlerImpl.h
  4598. * src/Util.cc
  4599. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4600. Removed assert()
  4601. * src/SocketBuffer.cc (SocketBuffer::send)
  4602. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4603. Changed the type of _numNewConnection to unsigned int.
  4604. * src/ActivePeerConnectionCommand.cc
  4605. * src/ActivePeerConnectionCommand.h
  4606. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4607. * Release 0.16.0
  4608. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4609. Updated doc
  4610. * README
  4611. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4612. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  4613. translations. Thanks to all translators.
  4614. * po/bg.po
  4615. * po/de.po
  4616. * po/fr.po
  4617. * po/ja.po
  4618. * po/zh_CN.po
  4619. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4620. Bump up version number to 0.16.0.
  4621. * configure.ac
  4622. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4623. Casted entry->maxConnections to int32_t for std::min<T> with T =
  4624. int32_t.
  4625. Changed the type of count to int32_t.
  4626. * src/Metalink2RequestGroup.cc
  4627. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4628. Added test for Time::elapsed(time_t).
  4629. * test/TimeTest.cc
  4630. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4631. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  4632. Util::difftv() should be used instead.
  4633. * src/TimeA2.cc
  4634. * src/TimeA2.h
  4635. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4636. Made socket for dht connections non-blocking
  4637. * src/DHTAbstractMessage.cc
  4638. * src/DHTAbstractMessage.h
  4639. * src/DHTConnection.h
  4640. * src/DHTConnectionImpl.cc
  4641. * src/DHTConnectionImpl.h
  4642. * src/DHTMessage.h
  4643. * src/DHTMessageDispatcherImpl.cc
  4644. * src/DHTMessageDispatcherImpl.h
  4645. * src/DHTUnknownMessage.cc
  4646. * src/DHTUnknownMessage.h
  4647. * src/SocketCore.cc
  4648. * src/SocketCore.h
  4649. * test/MockDHTMessage.h
  4650. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4651. Changed the type of offset to int.
  4652. * src/ParameterizedStringParser.cc
  4653. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4654. Made getAsInt() return int32_t
  4655. * src/Option.h
  4656. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4657. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  4658. build.
  4659. * configure.ac
  4660. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4661. Use sqlite3_open if sqlite3_open_v2 is not available.
  4662. * src/Sqlite3MozCookieParser.cc
  4663. * src/Sqlite3MozCookieParser.h
  4664. * m4/sqlite3.m4
  4665. * test/Sqlite3MozCookieParserTest.cc
  4666. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4667. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  4668. * src/BtPieceMessage.cc
  4669. * src/DHTPeerAnnounceStorage.cc
  4670. * src/DefaultPieceStorage.cc
  4671. * src/DownloadCommand.cc
  4672. * src/DownloadEngine.cc
  4673. * src/FtpConnection.cc
  4674. * src/PeerConnection.cc
  4675. * src/PeerMessageUtil.cc
  4676. * src/RequestGroup.cc
  4677. * src/RequestGroupMan.cc
  4678. * src/SimpleBtMessage.cc
  4679. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4680. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  4681. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  4682. * src/AbstractDiskWriter.cc
  4683. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4684. Don't set Request::supportsPersistentConnection() in HttpConnection
  4685. since this code is also used in AbstractProxyResponseCommand.
  4686. Moved those code to HttpResponse.
  4687. * src/HttpResponse.cc
  4688. * src/HttpResponse.h
  4689. * src/HttpConnection.cc
  4690. * src/HttpConnection.h
  4691. * src/HttpResponseCommand.cc
  4692. * test/HttpResponseTest.cc
  4693. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4694. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  4695. The configuration is minimum: no torrent, no metalink, so there may be
  4696. other compile error on their code.
  4697. * src/a2netcompat.h
  4698. * src/File.cc
  4699. * src/File.h
  4700. * src/SocketCore.cc
  4701. * src/SocketCore.h
  4702. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4703. Made a socket of incoming peer non-blocking.
  4704. * src/PeerListenCommand.cc
  4705. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4706. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  4707. whole message data is not sent in one send() call.
  4708. * src/BtPieceMessage.cc
  4709. * src/BtPieceMessage.h
  4710. * src/PeerConnection.cc
  4711. * src/PeerConnection.h
  4712. * src/SimpleBtMessage.cc
  4713. * src/SimpleBtMessage.h
  4714. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4715. Fixed the bug that aria2 downloads faster than max-download-limit when
  4716. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  4717. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  4718. , instead of sum of them.
  4719. * src/ActivePeerConnectionCommand.cc
  4720. * src/DefaultBtInteractive.cc
  4721. * src/DownloadCommand.cc
  4722. * src/PeerInteractionCommand.cc
  4723. * src/PeerReceiveHandshakeCommand.cc
  4724. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4725. Fixed the bug that HTTPS download fails.
  4726. * src/AbstractCommand.cc
  4727. * src/AbstractCommand.h
  4728. * src/DownloadCommand.cc
  4729. * src/FtpConnection.cc
  4730. * src/HttpConnection.cc
  4731. * src/HttpRequestCommand.cc
  4732. * src/HttpResponseCommand.cc
  4733. * src/HttpSkipResponseCommand.cc
  4734. * src/MSEHandshake.cc
  4735. * src/PeerConnection.cc
  4736. * src/SocketCore.cc
  4737. * src/SocketCore.h
  4738. Fixed the bug that aria2 doesn't download whole content body and cannot
  4739. reuse connection if chunked transfer encoding and gzip content encoding
  4740. are set.
  4741. * src/DownloadCommand.cc
  4742. * src/HttpSkipResponseCommand.cc
  4743. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4744. Updated man page.
  4745. * doc/aria2c.1.txt
  4746. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4747. When error occurred while aria2 was parsing an .aria2.conf file, print
  4748. the usage of the option that caused error.
  4749. * src/option_processing.cc
  4750. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4751. Fixed compile error on OptionHandlerException
  4752. * src/Makefile.am
  4753. * src/OptionHandlerException.cc
  4754. * src/OptionHandlerException.h
  4755. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4756. Moved message of the error to OptionHandlerException.h
  4757. * src/NameMatchOptionHandler.h
  4758. * src/OptionHandlerException.h
  4759. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4760. When error occurs while aria2 is parsing an command-line option, print
  4761. the usage of the option.
  4762. * src/Makefile.am
  4763. * src/NameMatchOptionHandler.h
  4764. * src/OptionHandlerException.h
  4765. * src/option_processing.cc
  4766. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4767. Reverted previous change.
  4768. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  4769. username is not in URI.
  4770. * src/HttpRequest.cc
  4771. * src/Request.cc
  4772. * test/HttpRequestTest.cc
  4773. * test/RequestTest.cc
  4774. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4775. Now colon is required for username and password in FTP URL, like:
  4776. ftp://username:password@host.
  4777. If colon is not there, aria2 don't parse it as a username. For example,
  4778. aria2 don't retrieve username from ftp://username@host.
  4779. This fix was made in order to login FTP server via non-transparent ftp
  4780. proxy.
  4781. * src/Request.cc
  4782. * test/RequestTest.cc
  4783. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4784. Use netrc for HTTP.
  4785. Now FTP user/password is sent in Authorization header when
  4786. --ftp-via-http-proxy=get is given.
  4787. * src/AuthConfigFactory.cc
  4788. * src/HttpRequest.cc
  4789. * src/HttpRequest.h
  4790. * src/NetrcAuthResolver.cc
  4791. * src/NetrcAuthResolver.h
  4792. * src/OptionHandlerFactory.cc
  4793. * src/option_processing.cc
  4794. * src/prefs.cc
  4795. * src/prefs.h
  4796. * test/AuthConfigFactoryTest.cc
  4797. * test/HttpRequestTest.cc
  4798. * test/NetrcAuthResolverTest.cc
  4799. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4800. Issue PWD command first and get working directory and use it as a prefix
  4801. for CWD command.
  4802. * src/DownloadEngine.cc
  4803. * src/DownloadEngine.h
  4804. * src/FtpConnection.cc
  4805. * src/FtpConnection.h
  4806. * src/FtpFinishDownloadCommand.cc
  4807. * src/FtpInitiateConnectionCommand.cc
  4808. * src/FtpNegotiationCommand.cc
  4809. * src/FtpNegotiationCommand.h
  4810. * test/FtpConnectionTest.cc
  4811. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4812. Removed default user/pass for FTP user/pass, since it should not have
  4813. precedence over netrc configuration by default.
  4814. * src/OptionHandlerFactory.cc
  4815. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4816. Added debug log for socket event.
  4817. * src/AbstractCommand.cc
  4818. * src/PeerAbstractCommand.cc
  4819. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4820. Log microseconds.
  4821. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4822. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4823. Replaced HelpItem.cc with OptionHandler.cc.
  4824. * po/POTFILES.in
  4825. Updated po files with 'make update-po'
  4826. * po/aria2c.pot
  4827. * po/*.po
  4828. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4829. Removed possible values from the text.
  4830. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  4831. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4832. Removed unused preferences:
  4833. PREF_NO_PREALLOCATION
  4834. PREF_STDOUT_LOG
  4835. PREF_TRACKER_MAX_TRIES
  4836. PREF_DIRECT_DOWNLOAD_TIMEOUT
  4837. PREF_MIN_SEGMENT_SIZE
  4838. * src/option_processing.cc
  4839. * src/prefs.cc
  4840. * src/prefs.h
  4841. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4842. Integrated HelpItem into OptionParser to ease the workload for adding
  4843. new options. Removed default value from usage text.
  4844. * src/HelpItem.cc: Removed.
  4845. * src/HelpItem.h: Removed.
  4846. * src/HelpItemFactory.cc: Removed.
  4847. * src/HelpItemFactory.h: Removed.
  4848. * src/Makefile.am
  4849. * src/Makefile.in
  4850. * src/NameMatchOptionHandler.h
  4851. * src/OptionHandler.cc
  4852. * src/OptionHandler.h
  4853. * src/OptionHandlerFactory.cc
  4854. * src/OptionHandlerImpl.h
  4855. * src/OptionParser.cc
  4856. * src/OptionParser.h
  4857. * src/TagContainer.cc: Removed.
  4858. * src/TagContainer.h: Removed.
  4859. * src/TaggedItem.cc: Removed.
  4860. * src/TaggedItem.h: Removed.
  4861. * src/main.cc
  4862. * src/option_processing.cc
  4863. * src/usage_text.h
  4864. * src/version_usage.cc
  4865. * test/HelpItemTest.cc: Removed.
  4866. * test/Makefile.am
  4867. * test/Makefile.in
  4868. * test/OptionHandlerTest.cc
  4869. * test/OptionParserTest.cc
  4870. * test/TagContainerTest.cc: Removed.
  4871. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4872. Moved `TransferStat stat = ...' to inside the `if' clause.
  4873. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  4874. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4875. Fixed the bug that a block in a piece is requested when same block is
  4876. already requested to the same peer in end game mode.
  4877. * src/BtRequestFactory.h
  4878. * src/DefaultBtInteractive.cc
  4879. * src/DefaultBtRequestFactory.cc
  4880. * src/DefaultBtRequestFactory.h
  4881. * src/DefaultPieceStorage.cc
  4882. * src/DefaultPieceStorage.h
  4883. * src/PieceStorage.h
  4884. * src/UnknownLengthPieceStorage.cc
  4885. * src/UnknownLengthPieceStorage.h
  4886. * test/DefaultBtRequestFactoryTest.cc
  4887. * test/DefaultPieceStorageTest.cc
  4888. * test/MockBtRequestFactory.h
  4889. * test/MockPieceStorage.h
  4890. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4891. Removed _uploadLength and _downloadLength from PeerSessionResource
  4892. and use PeerStat::_sessionUploadLength and
  4893. PeerStat::_sessionDownloadLength.
  4894. * src/PeerSessionResource.cc
  4895. * src/PeerSessionResource.h
  4896. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4897. Fixed the bug that prefixLength of split bucket which doesn't include
  4898. local node ID is incremented.
  4899. * src/DHTBucket.cc
  4900. * src/DHTBucket.h
  4901. * test/DHTBucketTest.cc
  4902. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4903. Added cookies.sqlite to EXTRA_DIST
  4904. * test/Makefile.am
  4905. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4906. Added Turkish translation. Updated French, German, Russian and
  4907. Simplified Chinese translations. Thanks to all translators.
  4908. * po/LINGUAS
  4909. * po/de.po
  4910. * po/fr.po
  4911. * po/ru.po
  4912. * po/tr.po
  4913. * po/zh_CN.po
  4914. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4915. Added deliminating text to the beginning of the log so that one can find
  4916. where the log starts easily.
  4917. * src/main.cc
  4918. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4919. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  4920. to fix compile error when async DNS is not enabled by configuration.
  4921. * src/AbstractCommand.cc
  4922. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4923. If establishing conneciton to a server is failed, then mark error on
  4924. its ServerStat.
  4925. Added the cause of error to log when error event occurred.
  4926. Moved message string to message.h for translation.
  4927. * src/AbstractCommand.cc
  4928. * src/AbstractCommand.h
  4929. * src/FtpNegotiationCommand.cc
  4930. * src/HttpRequestCommand.cc
  4931. * src/PeerAbstractCommand.cc
  4932. * src/message.h
  4933. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4934. Added the function to get error message from socket.
  4935. * src/SocketCore.cc
  4936. * src/SocketCore.h
  4937. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4938. Added convenient method RequestGroupMan::getOrCreateServerStat()
  4939. * src/RequestGroupMan.cc
  4940. * src/RequestGroupMan.h
  4941. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4942. If error event is received in epoll, then abort download immediately.
  4943. * src/AbstractCommand.cc
  4944. * src/Command.cc
  4945. * src/Command.h
  4946. * src/DownloadEngine.cc
  4947. * src/PeerAbstractCommand.cc
  4948. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4949. Added usage message for --uri-selector, --server-stat-of,
  4950. --server-stat-in, --server-stat-timeout options.
  4951. * src/HelpItemFactory.cc
  4952. * src/usage_text.h
  4953. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4954. Added upper limit of FTP response buffer. The current implementation
  4955. uses 4096bytes as a limit.
  4956. * src/FtpConnection.cc
  4957. * src/FtpConnection.h
  4958. * test/FtpConnectionTest.cc
  4959. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4960. Use non-blocking socket for TCP communication to avoid possible
  4961. blocking due to buffer full.
  4962. * src/AbstractProxyRequestCommand.cc
  4963. * src/FtpConnection.cc
  4964. * src/FtpConnection.h
  4965. * src/FtpNegotiationCommand.cc
  4966. * src/FtpNegotiationCommand.h
  4967. * src/HttpConnection.cc
  4968. * src/HttpConnection.h
  4969. * src/HttpRequestCommand.cc
  4970. * src/InitiatorMSEHandshakeCommand.cc
  4971. * src/InitiatorMSEHandshakeCommand.h
  4972. * src/MSEHandshake.cc
  4973. * src/MSEHandshake.h
  4974. * src/Makefile.am
  4975. * src/PeerConnection.cc
  4976. * src/PeerConnection.h
  4977. * src/PeerInteractionCommand.cc
  4978. * src/PeerListenCommand.cc
  4979. * src/ReceiverMSEHandshakeCommand.cc
  4980. * src/ReceiverMSEHandshakeCommand.h
  4981. * src/SocketBuffer.cc
  4982. * src/SocketBuffer.h
  4983. * src/SocketCore.cc
  4984. * src/SocketCore.h
  4985. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4986. Call setStatusRealtime() in constructor.
  4987. * src/RealtimeCommand.cc
  4988. * src/RealtimeCommand.h
  4989. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4990. Call Download::setNoWait(true) to execute newly created command without
  4991. a pause.
  4992. * src/AbstractCommand.cc
  4993. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4994. Added --max-file-not-found=NUM option. If aria2 receives `file not
  4995. found' error from HTTP/FTP server NUM times without getting single
  4996. bytes of data, then force the download to fail.
  4997. Basically aria2 tris all URIs available. So if long list of URIs are
  4998. specified in Metalink, then aria2 will take a long time to fail
  4999. eventually if all URIs are outdated. This option eases this situation
  5000. to limit the number of servers to try.
  5001. * src/FtpNegotiationCommand.cc
  5002. * src/HelpItemFactory.cc
  5003. * src/HttpResponseCommand.cc
  5004. * src/OptionHandlerFactory.cc
  5005. * src/PeerStat.h
  5006. * src/RequestGroup.cc
  5007. * src/RequestGroup.h
  5008. * src/SegmentMan.cc
  5009. * src/SegmentMan.h
  5010. * src/option_processing.cc
  5011. * src/prefs.cc
  5012. * src/prefs.h
  5013. * src/usage_text.h
  5014. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5015. Fixed the bug that bulkReceiveResponse() reads all received data as a
  5016. response even if more than one response is in it.
  5017. * src/FtpConnection.cc
  5018. * src/FtpConnection.h
  5019. * test/FtpConnectionTest.cc
  5020. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5021. Merged from stable-0.15
  5022. * m4/libcares.m4
  5023. Use pkg-config
  5024. * m4/sqlite3.m4
  5025. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5026. Removed unnecessary if statement.
  5027. * src/DefaultPieceStorage.cc (initPieceStorage)
  5028. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5029. Added --connect-timeout option to specify connect timeout in seconds.
  5030. This option is in effect for HTTP/FTP/proxy server. The timeout for
  5031. connecting to BitTorrent peer is not controlled by this option.
  5032. * src/AbstractProxyRequestCommand.cc
  5033. * src/FtpNegotiationCommand.cc
  5034. * src/HelpItemFactory.cc
  5035. * src/HttpRequestCommand.cc
  5036. * src/OptionHandlerFactory.cc
  5037. * src/option_processing.cc
  5038. * src/prefs.cc
  5039. * src/prefs.h
  5040. * src/usage_text.h
  5041. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5042. Added help message for -R option.
  5043. * src/HelpItemFactory.cc
  5044. * src/usage_text.h
  5045. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5046. Added the message that the time is in local time zone.
  5047. * src/RequestGroup.cc
  5048. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5049. Implemented the ability to get timestamp from remote FTP server using
  5050. MDTM command described in RFC3659.
  5051. * src/FtpConnection.cc
  5052. * src/FtpConnection.h
  5053. * src/FtpNegotiationCommand.cc
  5054. * src/FtpNegotiationCommand.h
  5055. * test/FtpConnectionTest.cc
  5056. * test/Makefile.am
  5057. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5058. Implemented the ability to get timestamp from remote HTTP server and
  5059. apply it to local file. To enable this feature, --remote-time option
  5060. is added. No usage text has been written yet.
  5061. If several servers returns difference timestamp, then aria2 uses latest
  5062. one.
  5063. * src/CopyDiskAdaptor.cc
  5064. * src/CopyDiskAdaptor.h
  5065. * src/DirectDiskAdaptor.cc
  5066. * src/DirectDiskAdaptor.h
  5067. * src/DiskAdaptor.h
  5068. * src/File.cc
  5069. * src/File.h
  5070. * src/HttpHeader.cc
  5071. * src/HttpHeader.h
  5072. * src/HttpResponse.cc
  5073. * src/HttpResponse.h
  5074. * src/HttpResponseCommand.cc
  5075. * src/HttpResponseCommand.h
  5076. * src/MultiDiskAdaptor.cc
  5077. * src/MultiDiskAdaptor.h
  5078. * src/OptionHandlerFactory.cc
  5079. * src/RequestGroup.cc
  5080. * src/RequestGroup.h
  5081. * src/RequestGroupMan.cc
  5082. * src/option_processing.cc
  5083. * src/prefs.cc
  5084. * src/prefs.h
  5085. * test/CopyDiskAdaptorTest.cc
  5086. * test/FileTest.cc
  5087. * test/Makefile.am
  5088. * test/Makefile.in
  5089. * test/MultiDiskAdaptorTest.cc
  5090. * test/TestUtil.cc
  5091. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5092. Fixed the bug that DiskWriterEntry is not created when its
  5093. FileEntry.isRequested() is false and it doesn't share a piece with
  5094. other FileEntries that are requested. This bug causes segmentation fault
  5095. in the end.
  5096. * src/MultiDiskAdaptor.cc
  5097. * src/MultiDiskAdaptor.h
  5098. * src/MultiFileAllocationIterator.cc
  5099. * test/MultiDiskAdaptorTest.cc
  5100. * test/MultiFileAllocationIteratorTest.cc
  5101. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5102. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  5103. called if the number of file entries are greater than max open files.
  5104. * src/AbstractSingleDiskAdaptor.cc
  5105. * src/AbstractSingleDiskAdaptor.h
  5106. * src/DiskAdaptor.h
  5107. * src/MultiDiskAdaptor.cc
  5108. * src/MultiDiskAdaptor.h
  5109. * test/MultiDiskAdaptorTest.cc
  5110. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5111. Added a constuctor that receives struct timeval.
  5112. Added operator<.
  5113. * src/TimeA2.cc
  5114. * src/TimeA2.h
  5115. * test/TimeTest.cc
  5116. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5117. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  5118. * src/CookieParser.cc
  5119. * test/CookieParserTest.cc
  5120. * test/HttpResponseTest.cc
  5121. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5122. Implmented the functions to parse date.
  5123. * src/TimeA2.cc
  5124. * src/TimeA2.h
  5125. * test/TimeTest.cc
  5126. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5127. Added "Firefox3 Cookie" feature to FeatureConfig
  5128. * src/FeatureConfig.cc
  5129. * src/FeatureConfig.h
  5130. * test/FeatureConfigTest.cc
  5131. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5132. Bump up version number to 0.16.0b
  5133. * configure.ac
  5134. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5135. Use pkg-config if is is available.
  5136. * m4/openssl.m4
  5137. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5138. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  5139. * src/BtAnnounce.h
  5140. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5141. If an error occurred with a URI, remove identical URI from remaining
  5142. URI list because it is likely that same error occurred in the end and it
  5143. is waste of time.
  5144. * src/AbstractCommand.cc
  5145. * src/RequestGroup.cc
  5146. * src/RequestGroup.h
  5147. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5148. Removed wrong comment.
  5149. * src/DefaultPeerStorage.cc
  5150. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5151. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  5152. Added return value of getpid() to argument of srand() to achieve more
  5153. randomized value.
  5154. * src/SimpleRandomizer.cc
  5155. * src/SimpleRandomizer.h
  5156. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5157. Contact tracker frequently when the number of connections are 0 and
  5158. download is not finished yet.
  5159. * src/ActivePeerConnectionCommand.cc
  5160. * src/BtAnnounce.h
  5161. * src/DefaultBtAnnounce.cc
  5162. * src/DefaultBtAnnounce.h
  5163. * test/MockBtAnnounce.h
  5164. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5165. Moved threshold values to UTPexExtensionMessage.
  5166. * src/DefaultBtInteractive.cc
  5167. * src/Peer.cc
  5168. * src/Peer.h
  5169. * src/UTPexExtensionMessage.cc
  5170. * src/UTPexExtensionMessage.h
  5171. * test/UTPexExtensionMessageTest.cc
  5172. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5173. Added _incoming member to Peer class and made it true if the peer
  5174. initiated connection. Don't add those peer to UTPex message.
  5175. If extended handshake is received, assign _incoming to false.
  5176. * src/DefaultBtInteractive.cc
  5177. * src/HandshakeExtensionMessage.cc
  5178. * src/Peer.cc
  5179. * src/Peer.h
  5180. * src/PeerListenCommand.cc
  5181. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5182. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  5183. Encoding Decoder. Removed size threshold for turning off on the fly
  5184. inflation because resulting file may or may not be inflated depending
  5185. on the file size and I think it is not expected by users.
  5186. This change fixes segmentation fault when Metalink file contains gzipped
  5187. file and its filesize is provided.
  5188. * src/HttpResponseCommand.cc
  5189. * src/HttpResponseCommand.h
  5190. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5191. Made Cookie immutable.
  5192. * src/Cookie.cc
  5193. * src/Cookie.h
  5194. * src/CookieParser.cc
  5195. * src/CookieParser.h
  5196. * src/CookieStorage.cc
  5197. * test/CookieParserTest.cc
  5198. * test/CookieStorageTest.cc
  5199. * test/NsCookieParserTest.cc
  5200. * test/Sqlite3MozCookieParserTest.cc
  5201. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5202. Removed CookieBox, CookieBoxFactory.
  5203. * src/CookieBox.cc
  5204. * src/CookieBox.h
  5205. * src/CookieBoxFactory.cc
  5206. * src/CookieBoxFactory.h
  5207. * src/Makefile.am
  5208. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5209. Use CookieStorage class instead of CookieBox class.
  5210. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  5211. * src/AbstractProxyRequestCommand.cc
  5212. * src/CookieStorage.cc
  5213. * src/DownloadEngine.cc
  5214. * src/DownloadEngine.h
  5215. * src/HttpConnection.cc
  5216. * src/HttpConnection.h
  5217. * src/HttpRequest.cc
  5218. * src/HttpRequest.h
  5219. * src/HttpRequestCommand.cc
  5220. * src/HttpResponse.cc
  5221. * src/HttpResponseCommand.cc
  5222. * src/HttpSkipResponseCommand.cc
  5223. * src/Makefile.am
  5224. * src/MultiUrlRequestInfo.cc
  5225. * src/Request.cc
  5226. * src/Request.h
  5227. * src/main.cc
  5228. * test/AllTest.cc
  5229. * test/CookieStorageTest.cc
  5230. * test/CookieTest.cc
  5231. * test/HttpRequestTest.cc
  5232. * test/HttpResponseTest.cc
  5233. * test/Makefile.am
  5234. * test/NsCookieParserTest.cc
  5235. * test/Sqlite3MozCookieParserTest.cc
  5236. * test/nscookietest.txt
  5237. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5238. Updated
  5239. * test/Cookies.sqlite
  5240. * test/nscookietest.txt
  5241. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5242. Added tests for CookieStorage::load()
  5243. * test/CookieStorageTest.cc
  5244. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5245. Added CookieStorage class which is based on RFC2109 and manages cookies
  5246. more strictly than CookieBox and CookieBoxFactory class.
  5247. * src/CookieStorage.cc
  5248. * src/CookieStorage.h
  5249. * src/Cookie.cc
  5250. * src/Cookie.h
  5251. * test/CookieStorageTest.cc
  5252. * test/CookieTest.cc
  5253. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5254. Fixed the bug that commands are created more than the number of pieces.
  5255. * src/RequestGroup.cc
  5256. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5257. Fixed infinite loop bug in FTP when SIZE command failed.
  5258. * src/FtpNegotiationCommand.cc
  5259. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5260. Removed DirectDiskAdaptorTest.h
  5261. * test/Makefile.am
  5262. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5263. Fixed chunk checksum validation cannot detect trailing garbage data.
  5264. BUG#2074141
  5265. * src/AbstractSingleDiskAdaptor.cc
  5266. * src/AbstractSingleDiskAdaptor.h
  5267. * src/CheckIntegrityEntry.cc
  5268. * src/CheckIntegrityEntry.h
  5269. * src/DiskAdaptor.h
  5270. * src/MultiDiskAdaptor.cc
  5271. * src/MultiDiskAdaptor.h
  5272. * src/RequestGroup.cc
  5273. * test/DirectDiskAdaptorTest.cc
  5274. * test/MultiDiskAdaptorTest.cc
  5275. * test/TestUtil.cc
  5276. * test/TestUtil.h
  5277. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5278. Bump up version number of dht.dat file to 3. In version 3 format, time
  5279. is stored in 64bit, network byte order.
  5280. New build can load old format(version 2) but it saves the file in new
  5281. format. It means once you used new build, your dht.dat becomes
  5282. incompatible with older build.
  5283. * src/DHTRoutingTableDeserializer.cc
  5284. * src/DHTRoutingTableSerializer.cc
  5285. * test/DHTRoutingTableSerializerTest.cc
  5286. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5287. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  5288. * test/Makefile.am
  5289. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5290. Bump up version number of .aria2 control file to 0001.
  5291. New aria2 can still load version 0000 file but it saves the file in
  5292. version 0001 format. It means that new aria2 can resume download
  5293. started by old aria2 but the opposite is not true.
  5294. * src/DefaultBtProgressInfoFile.cc
  5295. * src/DefaultBtProgressInfoFile.h
  5296. * test/DefaultBtProgressInfoFileTest.cc
  5297. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5298. Added ntoh64 and hton64 as inline functions.
  5299. * src/Util.cc
  5300. * test/UtilTest.cc
  5301. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5302. Added sqlite3 depenency and Firefox3 cookie support.
  5303. * README
  5304. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5305. State that firefox3 cookie is supported explicitly in the usage.
  5306. * src/usage_text.h
  5307. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5308. Externalized message.
  5309. * src/RequestGroupMan.cc
  5310. * src/message.h
  5311. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5312. Save temporary file first and rename to the destination on success.
  5313. Added test cases.
  5314. * src/RequestGroupMan.cc
  5315. * test/RequestGroupManTest.cc
  5316. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5317. Fixed the bug that the number of connected peer is exceeding the limit
  5318. (55 by default) in seeding mode.
  5319. Multiplied 0.8 to _maxUploadSpeedLimit.
  5320. * src/ActivePeerConnectionCommand.cc
  5321. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5322. Clear table item.
  5323. * src/Dictionary.cc
  5324. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5325. Fixed error handling of lseek.
  5326. * src/AbstractDiskWriter.cc
  5327. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5328. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  5329. style cookie file.
  5330. * src/usage_text.h
  5331. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5332. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  5333. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  5334. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  5335. * src/Util.cc
  5336. * src/Util.h
  5337. * src/CookieParser.cc
  5338. * test/UtilTest.cc
  5339. * test/CookieParserTest.cc
  5340. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5341. Separate the implementation to load old mozilla format of cookie to
  5342. NsCookieParser class.
  5343. * src/CookieBoxFactory.cc
  5344. * src/CookieBoxFactory.h
  5345. * src/NsCookieParser.cc
  5346. * src/NsCookieParser.h
  5347. * test/NsCookieParserTest.cc
  5348. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5349. Made parse() const
  5350. * src/Sqlite3MozCookieParser.cc
  5351. * src/Sqlite3MozCookieParser.h
  5352. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5353. Added firefox3 cookie support based on the patch submitted by
  5354. tizianomueller.
  5355. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  5356. this functionality.
  5357. * configure.ac
  5358. * m4/sqlite3.m4
  5359. * src/CookieBoxFactory.cc
  5360. * src/CookieBoxFactory.h
  5361. * src/Makefile.am
  5362. * src/Makefile.in
  5363. * src/Sqlite3MozCookieParser.cc
  5364. * src/Sqlite3MozCookieParser.h
  5365. * src/main.cc
  5366. * test/CookieBoxFactoryTest.cc
  5367. * test/Makefile.am
  5368. * test/Makefile.in
  5369. * test/Sqlite3MozCookieParserTest.cc
  5370. * test/badcookies.sqlite
  5371. * test/cookies.sqlite
  5372. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5373. Added Danish and Greek translations.
  5374. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  5375. Great thanks to all translators.
  5376. * po/LINGUAS
  5377. * po/el.po
  5378. * po/da.po
  5379. * po/es.po
  5380. * po/ca.po
  5381. * po/nn.po
  5382. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5383. Fixed man page: --follow-bittorrent should be --follow-torrent
  5384. * doc/aria2c.1.txt
  5385. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5386. Fixed: numCommand is less than the value specified in -C option.
  5387. * src/RequestGroup.cc
  5388. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5389. Fixed occasional assertion failure in PieceSegment.
  5390. Calling PieceStorage::getMissingPiece(size_t) was missing after
  5391. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  5392. creation of duplicate segments and one of the segment was finished then
  5393. assertion failure was caused.
  5394. * src/SegmentMan.cc
  5395. * test/SegmentManTest.cc
  5396. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5397. Added options to load/save the server's performance/status to a file
  5398. and the timeout to drop their data.
  5399. --server-stat-of=FILE specifies the file to which performance data
  5400. is saved.
  5401. --server-stat-if=FILE specifies the file to read previously saved
  5402. by --server-stat-of option. Might be used with --uri-selector=feedback.
  5403. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  5404. TIMEOUT is specified in seconds and the default value is 24hours.
  5405. * src/MultiUrlRequestInfo.cc
  5406. * src/OptionHandlerFactory.cc
  5407. * src/RequestGroupMan.cc
  5408. * src/RequestGroupMan.h
  5409. * src/ServerStatMan.cc
  5410. * src/ServerStatMan.h
  5411. * src/option_processing.cc
  5412. * src/prefs.cc
  5413. * src/prefs.h
  5414. * test/ServerStatManTest.cc
  5415. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5416. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  5417. * src/ServerStatMan.cc
  5418. * src/ServerStatMan.h
  5419. * test/ServerStatManTest.cc
  5420. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5421. Implemented ServerStatMan::load(...) function and its test case.
  5422. * src/ServerStat.cc
  5423. * src/ServerStat.h
  5424. * src/ServerStatMan.cc
  5425. * test/ServerStatManTest.cc
  5426. * test/ServerStatTest.cc
  5427. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5428. Use time_t instead of int32_t. Use int64_t where milli second is
  5429. expected.
  5430. * src/TimeA2.cc
  5431. * src/TimeA2.h
  5432. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5433. Implemented ServerStatMan::save(...) function and its test case.
  5434. * src/ServerStat.cc
  5435. * src/ServerStat.h
  5436. * src/ServerStatMan.cc
  5437. * src/ServerStatMan.h
  5438. * test/ServerStatManTest.cc
  5439. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5440. Now aria2 uses name attribute in Metalink as local filename in
  5441. BitTorrent downloads. BUG#2033999
  5442. * src/BtContext.h
  5443. * src/BtDependency.cc
  5444. * src/DefaultBtContext.cc
  5445. * src/DefaultBtContext.h
  5446. * src/SingleFileDownloadContext.cc
  5447. * src/SingleFileDownloadContext.h
  5448. * test/BtDependencyTest.cc
  5449. * test/DefaultBtContextTest.cc
  5450. * test/MockBtContext.h
  5451. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5452. Added AC_C_BIGENDIAN
  5453. * src/configure.ac
  5454. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5455. Limited numCommand less than or equal to the number of piece.
  5456. * src/RequestGroup.cc
  5457. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5458. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  5459. directive.
  5460. * test/DefaultPieceStorageTest.cc
  5461. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5462. Fixed memory leak in test code
  5463. * test/AnnounceListTest.cc
  5464. * test/DefaultPeerListProcessorTest.cc
  5465. * test/DefaultPeerStorageTest.cc
  5466. * test/MetaFileUtilTest.cc
  5467. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5468. Fixed wrong argument passing to BitfieldMan::isBitSet()
  5469. * src/DefaultPieceStorage.cc
  5470. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5471. Initialized _directIOAllowed
  5472. * src/MultiDiskAdaptor.cc
  5473. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5474. Fixed memory leak
  5475. * src/GZipDecoder.cc
  5476. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5477. Fixed memory leak
  5478. * src/MetalinkParserStateMachine.cc
  5479. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5480. Fixed memory leak
  5481. * src/Dictionary.cc
  5482. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5483. Fixed memory leak
  5484. * src/IteratableChunkChecksumValidator.h
  5485. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5486. Fixed unmatched malloc/free.
  5487. * src/IteratableChunkChecksumValidator.cc
  5488. * src/IteratableChecksumValidator.cc
  5489. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5490. Removed max chunk size check. This change fixes BUG#2040169
  5491. * src/ChunkedDecoder.cc
  5492. * src/ChunkedDecoder.h
  5493. * test/ChunkedDecoderTest.cc
  5494. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5495. Implemented download speed based URI selection algorithm.
  5496. Introduced new option --uri-selector.
  5497. If --uri-selector=feedback is given, aria2 uses download speed observed
  5498. in the previous downloads and chooses fastest server in the URI list.
  5499. Currently at most 10 URIs are considered to introduce randomeness for
  5500. finding better servers. The speed is average download speed in the
  5501. downloads.
  5502. On the other hand, if --uri-selector=inorder is given, which is default,
  5503. URI is tried in order in URI list.
  5504. The usage text for the new option has not been written yet.
  5505. * src/AbstractCommand.cc
  5506. * src/DownloadCommand.cc
  5507. * src/DownloadEngine.cc
  5508. * src/DownloadEngineFactory.cc
  5509. * src/InOrderURISelector.cc
  5510. * src/InOrderURISelector.h
  5511. * src/OptionHandlerFactory.cc
  5512. * src/PeerStat.h
  5513. * src/RequestGroup.cc
  5514. * src/RequestGroup.h
  5515. * src/RequestGroupMan.cc
  5516. * src/RequestGroupMan.h
  5517. * src/SegmentMan.cc
  5518. * src/SegmentMan.h
  5519. * src/ServerStat.cc
  5520. * src/ServerStat.h
  5521. * src/ServerStatMan.cc
  5522. * src/ServerStatMan.h
  5523. * src/ServerStatURISelector.cc
  5524. * src/ServerStatURISelector.h
  5525. * src/URISelector.h
  5526. * src/option_processing.cc
  5527. * src/prefs.cc
  5528. * src/prefs.h
  5529. * test/InOrderURISelectorTest.cc
  5530. * test/RequestGroupManTest.cc
  5531. * test/ServerStatManTest.cc
  5532. * test/ServerStatURISelectorTest.cc
  5533. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5534. * Release 0.15.1+2
  5535. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5536. Bump up version number to 0.15.1+2
  5537. * configure.ac
  5538. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5539. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  5540. * m4/aria2_arg.m4
  5541. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5542. * Release 0.15.1+1
  5543. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5544. Bump up version number to 0.15.1+1
  5545. * configure.ac
  5546. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5547. Fixed the bug that causes segmentaion fault when resuming download
  5548. using metalink without size tag. Reproducible only using HTTP URI.
  5549. * src/HttpResponseCommand.cc
  5550. * src/FtpNegotiationCommand.cc
  5551. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5552. * Release 0.15.1
  5553. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5554. Updated Bulgarian and French translations, thanks to all translators.
  5555. * po/bg.po
  5556. * po/fr.po
  5557. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5558. Bump up version number to 0.15.1
  5559. * configure.ac
  5560. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5561. Avoid repeated call of gettimeofday() when calculating speed.
  5562. * src/SpeedCalc.cc
  5563. * src/SpeedCalc.h
  5564. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5565. Removed writable check when socket's send buffer is full in BitTorrent
  5566. downloads to lower CPU usage.
  5567. * src/PeerInteractionCommand.cc
  5568. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5569. Fixed broken gzip inflation.
  5570. Turn off segmented downloading if gzip content is smaller than or equal
  5571. to 1MiB and inflate the data on the fly, because HTTP response header
  5572. doesn't contain the length of inflated file we can't determin where
  5573. the chunk of data should be written.
  5574. On the other hand, if gzip content is larger than 1MB, then turn off
  5575. on the fly inflation, because some servers returns "content-type: gzip"
  5576. for *.tgz, *.gz files.
  5577. * src/DownloadCommand.cc
  5578. * src/HttpResponseCommand.cc
  5579. * src/HttpResponseCommand.h
  5580. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5581. Applied tizianomueller's patch to fix compile error.
  5582. * test/BitfieldManTest.cc
  5583. * test/BtRequestMessageTest.cc
  5584. * test/DefaultBtContextTest.cc
  5585. * test/DefaultDiskWriterTest.cc
  5586. * test/DefaultPieceStorageTest.cc
  5587. * test/HttpHeaderProcessorTest.cc
  5588. * test/HttpResponseTest.cc
  5589. * test/Metalink2RequestGroupTest.cc
  5590. * test/MetalinkParserControllerTest.cc
  5591. * test/MetalinkProcessorTest.cc
  5592. * test/PeerSessionResourceTest.cc
  5593. * test/UtilTest.cc
  5594. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5595. * Release 0.15.0
  5596. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5597. Reordered src files in POTFILES.in so that usage text appears first.
  5598. * po/POTFILES.in
  5599. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5600. Bump up version number to 0.15.0
  5601. * configure.ac
  5602. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5603. Added Bulgarian translation.
  5604. Updated Catalan, Spanish, French and Japanese translations.
  5605. Thanks to all translators.
  5606. * po/LINGUAS
  5607. * po/bg.po
  5608. * po/ca.po
  5609. * po/es.po
  5610. * po/fr.po
  5611. * po/ja.po
  5612. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5613. Updated feature list. Added libz for dependency section.
  5614. Added a description about unit testing using CppUnit.
  5615. * README
  5616. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5617. Added a test for libz. Quoted where it is necessary.
  5618. * build_test.sh
  5619. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5620. Added GZip to `Enabled Features' list.
  5621. * src/FeatureConfig.cc
  5622. * src/FeatureConfig.h
  5623. * test/FeatureConfigTest.cc
  5624. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5625. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  5626. the transfer has not yet started.
  5627. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  5628. * src/SegmentMan.cc
  5629. * src/SegmentMan.h
  5630. * test/SegmentManTest.cc
  5631. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5632. Cache last calculated average download/upload speed.
  5633. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  5634. cached value.
  5635. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  5636. * src/PeerStat.h
  5637. * src/SpeedCalc.cc
  5638. * src/SpeedCalc.h
  5639. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5640. Call parseUrl directly.
  5641. * src/Request.cc (resetUrl)
  5642. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5643. Supported absolute/relative path in Location header field.
  5644. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  5645. * src/HttpHeader.cc
  5646. * src/HttpHeader.h
  5647. * src/HttpResponse.cc
  5648. * src/HttpSkipResponseCommand.cc
  5649. * src/Request.cc
  5650. * test/HttpHeaderTest.cc
  5651. * test/HttpResponseTest.cc
  5652. * test/RequestTest.cc
  5653. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5654. Changed help text for --load-cookie option.
  5655. * doc/aria2c.1.txt
  5656. * src/usage_text.h
  5657. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5658. Regenerated test/Makefile.in to remove stale ChangeLog.
  5659. * test/Makefile.in
  5660. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5661. Updated po files.
  5662. * po/aria2c.pot
  5663. * po/*.po
  5664. * po/*.gmo
  5665. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5666. Bump up version number to 0.15.0b
  5667. * configure.ac
  5668. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5669. Externalize messages.
  5670. * src/RequestGroupMan.cc
  5671. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  5672. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5673. Use File::exists() instead of File::isFile() to allow non-regular file
  5674. such as block special files.
  5675. * src/AbstractDiskWriter.cc
  5676. * src/MultiDiskWriter.cc
  5677. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5678. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  5679. * src/gai_strerror.h
  5680. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5681. Fixed compile error. Thanks gknauf for the patch.
  5682. * src/asctime_r.c
  5683. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5684. Included asctime_r.h from a2time.h.
  5685. * src/a2time.h
  5686. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5687. Added a message "aria2 doesn't verify signature" to log message when
  5688. signature file is saved.
  5689. * src/RequestGroupMan.cc
  5690. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5691. Added the ability to save signature when download is completed if
  5692. signature is available. The filename of signature file is the path to
  5693. download file followed by ".sig". If it already exists, then signature
  5694. will not be saved.
  5695. * src/RequestGroupMan.cc
  5696. * src/Signature.cc
  5697. * test/SignatureTest.cc
  5698. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5699. Updated the descriptions for --bt-seed-unverified.
  5700. * doc/aria2c.1
  5701. * doc/aria2c.1.html
  5702. * doc/aria2c.1.txt
  5703. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5704. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  5705. that this is not going to verify files using piece hashes.
  5706. * src/HelpItemFactory.cc
  5707. * src/OptionHandlerFactory.cc
  5708. * src/RequestGroup.cc
  5709. * src/option_processing.cc
  5710. * src/prefs.cc
  5711. * src/prefs.h
  5712. * src/usage_text.h
  5713. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5714. Added the ability to retrieve signature from Metalink file.
  5715. A retrieved signature is stored in Signature class and it is held by
  5716. DownloadContext class. Note that aria2 doesn't verify signature.
  5717. * src/DownloadContext.cc
  5718. * src/DownloadContext.h
  5719. * src/Makefile.am
  5720. * src/Makefile.in
  5721. * src/Metalink2RequestGroup.cc
  5722. * src/MetalinkEntry.cc
  5723. * src/MetalinkEntry.h
  5724. * src/MetalinkParserController.cc
  5725. * src/MetalinkParserController.h
  5726. * src/MetalinkParserStateMachine.cc
  5727. * src/MetalinkParserStateMachine.h
  5728. * src/Signature.cc
  5729. * src/Signature.h
  5730. * src/SignatureMetalinkParserState.cc
  5731. * src/SignatureMetalinkParserState.h
  5732. * src/VerificationMetalinkParserState.cc
  5733. * src/VerificationMetalinkParserState.h
  5734. * test/Metalink2RequestGroupTest.cc
  5735. * test/MetalinkParserControllerTest.cc
  5736. * test/MetalinkProcessorTest.cc
  5737. * test/test.xml
  5738. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5739. Close DiskAdaptor after renaming file.
  5740. * src/RequestGroup.cc
  5741. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5742. Corrected indentation
  5743. * src/DefaultBtProgressInfoFile.cc
  5744. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5745. Moved the calls of std::ios::exceptions() inside of try-catch block
  5746. because if an error occurred in constructor of std::fstream, then
  5747. exception is thrown immediately when std::ios::exceptions() is called
  5748. which results unhandled exception and aria2c aborts.
  5749. * src/DefaultBtProgressInfoFile.cc
  5750. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5751. Added the test for the previous change in DefaultBtContext.cc
  5752. * test/DefaultBtContextTest.cc
  5753. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5754. Fixed the bug that causes infinite loop when the number of pieces are
  5755. fewer than allowed fast set size which is 10 by default.
  5756. * src/DefaultBtContext.cc
  5757. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5758. Updated the descriptions for -j, -s. Added --bt-seed.
  5759. * doc/aria2c.1
  5760. * doc/aria2c.1.html
  5761. * doc/aria2c.1.txt
  5762. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5763. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  5764. aria2 seeds previously downloaded files without validating piece hashs.
  5765. * src/HelpItemFactory.cc
  5766. * src/OptionHandlerFactory.cc
  5767. * src/RequestGroup.cc
  5768. * src/option_processing.cc
  5769. * src/prefs.cc
  5770. * src/prefs.h
  5771. * src/usage_text.h
  5772. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5773. Updated DESCRIPTION of man page.
  5774. * doc/aria2c.1
  5775. * doc/aria2c.1.html
  5776. * doc/aria2c.1.txt
  5777. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5778. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  5779. Don't define `struct addrinfo' when __sun is defined.
  5780. * src/getaddrinfo.h
  5781. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5782. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  5783. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  5784. second argument is of type `struct _stati64'. Otherwise it is defined as
  5785. `struct stat'.
  5786. * src/AbstractDiskWriter.cc
  5787. * src/File.cc
  5788. * src/File.h
  5789. * src/a2io.h
  5790. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5791. Fixed the compile error in hurd-i386
  5792. See the original bug report:
  5793. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  5794. * src/a2io.h
  5795. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5796. Code cleanup.
  5797. * src/PeerAbstractCommand.cc
  5798. * src/PeerAbstractCommand.h
  5799. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5800. Removed TransferEncoding.
  5801. * src/DownloadCommand.cc
  5802. * src/DownloadCommand.h
  5803. * src/HttpResponseCommand.cc
  5804. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5805. Updated po files.
  5806. * po/aria2c.pot
  5807. * po/*.po
  5808. * po/*.gmo
  5809. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5810. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  5811. * src/A2STR.cc
  5812. * src/A2STR.h
  5813. * src/ChunkedDecoder.cc
  5814. * src/ChunkedDecoder.h
  5815. * src/ChunkedEncoding.cc: Removed
  5816. * src/ChunkedEncoding.h: Removed
  5817. * src/DownloadCommand.cc
  5818. * src/DownloadCommand.h
  5819. * src/HttpDownloadCommand.cc
  5820. * src/HttpResponse.cc
  5821. * src/HttpResponse.h
  5822. * src/HttpResponseCommand.cc
  5823. * src/HttpSkipResponseCommand.cc
  5824. * src/HttpSkipResponseCommand.h
  5825. * src/Makefile.am
  5826. * src/TransferEncoding.h: Removed
  5827. * test/ChunkedDecoderTest.cc
  5828. * test/ChunkedEncodingTest.cc: Removed
  5829. * test/HttpResponseTest.cc
  5830. * test/Makefile.am
  5831. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5832. Use append instead of insert.
  5833. * src/GZipDecoder.cc
  5834. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5835. Updated doc
  5836. * src/Decoder.h
  5837. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5838. Updated usage text for -s option.
  5839. * src/usage_text.h
  5840. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5841. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  5842. * src/Request.cc
  5843. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5844. Cleaned up configure.ac.
  5845. * configure.ac
  5846. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5847. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  5848. AC_ARG_ENABLE.
  5849. * configure.ac
  5850. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5851. Added gzip, deflate decoding support in HTTP using libz. If compiled
  5852. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  5853. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  5854. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  5855. fly and writes decoded data to a local disk.
  5856. * README
  5857. * README.html
  5858. * configure.ac
  5859. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  5860. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  5861. * m4/libz.m4
  5862. * src/Decoder.h
  5863. * src/DownloadCommand.cc
  5864. * src/DownloadCommand.h
  5865. * src/Exception.h
  5866. * src/GZipDecoder.cc
  5867. * src/GZipDecoder.h
  5868. * src/HttpHeader.cc
  5869. * src/HttpHeader.h
  5870. * src/HttpRequest.cc
  5871. * src/HttpRequest.h
  5872. * src/HttpResponse.cc
  5873. * src/HttpResponse.h
  5874. * src/HttpResponseCommand.cc
  5875. * src/Makefile.am
  5876. * test/GZipDecoderTest.cc
  5877. * test/HttpRequestTest.cc
  5878. * test/HttpResponseTest.cc
  5879. * test/Makefile.am
  5880. * test/Makefile.in
  5881. * test/gzip_decode_test.gz
  5882. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5883. Clarified usage of -j option.
  5884. * src/usage_text.h
  5885. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5886. Disabled getting size from the response of RETR.
  5887. If SIZE command failed, then disable resuming and segmented downloading.
  5888. * src/FtpConnection.cc
  5889. * src/FtpConnection.h
  5890. * src/FtpNegotiationCommand.cc
  5891. * src/FtpNegotiationCommand.h
  5892. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5893. Use digits to find first byte of file size, which makes the intention
  5894. of the code clearer.
  5895. * src/FtpConnection.cc
  5896. Don't call validateTotalLength() when size is 0.
  5897. * src/FtpNegotiationCommand.cc
  5898. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5899. Updated po files.
  5900. * po/aria2c.pot
  5901. * po/*.gmo
  5902. * po/*.po
  5903. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5904. Clarified usage text for --split option.
  5905. * src/usage_text.h
  5906. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5907. Bump up version number to 0.15.0dev. "dev" means "development"
  5908. version, which means I started the development of the next release!
  5909. * src/configure.ac
  5910. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5911. If FTP server returns negative response with REST raw command and
  5912. requested range is not 0, throw exception. If requested range is 0,
  5913. continue download a file from 0 byte.
  5914. * src/FtpNegotiationCommand.cc
  5915. * src/FtpNegotiationCommand.h
  5916. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5917. Supported FTP server which don't recognize SIZE raw command.
  5918. If SIZE raw command is failed, aria2 will try to get file size
  5919. from the response of RETR raw command. If both attempts are failed,
  5920. then resuming and segmented downloading are disabled.
  5921. * src/FtpConnection.cc
  5922. * src/FtpConnection.h
  5923. * src/FtpNegotiationCommand.cc
  5924. * src/FtpNegotiationCommand.h
  5925. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5926. * Release 0.14.0+1
  5927. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5928. Bump up version number to 0.14.0+1
  5929. * src/configure.ac
  5930. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5931. Fixed the code that refers static member variable from non-static
  5932. context.
  5933. * src/DefaultPeerStorage.cc
  5934. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5935. * Release 0.14.0
  5936. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5937. Added build test script
  5938. * build_test.sh
  5939. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5940. Updated ja.po
  5941. * src/ja.po
  5942. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5943. Bump up version number to 0.14.0
  5944. * src/configure.ac
  5945. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5946. Updated ja.po and fr.po. Great thanks for french translators and
  5947. Sebastien WILLEMIJNS.
  5948. * po/fr.po
  5949. * po/ja.po
  5950. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5951. Added configure option to enable/disable epoll support.
  5952. * configure.ac
  5953. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5954. Updated man page.
  5955. * doc/aria2c.1.txt
  5956. * doc/aria2c.1
  5957. * doc/aria2c.1.html
  5958. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5959. Added missing default value '5' to the usage of --split option.
  5960. * src/HelpItemFactory.cc
  5961. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5962. Filled up pieces based on the number of missing blocks, rather than
  5963. simplay the number of piece * block length.
  5964. * src/BtRequestFactory.h
  5965. * src/DefaultBtInteractive.cc
  5966. * src/DefaultBtInteractive.h
  5967. * src/DefaultBtRequestFactory.cc
  5968. * src/DefaultBtRequestFactory.h
  5969. * src/Piece.cc
  5970. * src/Piece.h
  5971. * test/BitfieldManTest.cc
  5972. * test/DefaultBtRequestFactoryTest.cc
  5973. * test/MockBtRequestFactory.h
  5974. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5975. Made _epEvents a member variable.
  5976. * src/DownloadEngine.cc
  5977. * src/DownloadEngine.h
  5978. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5979. Cancel download if http redirect is bounded more than 20 times.
  5980. * src/AbstractCommand.cc
  5981. * src/HttpSkipResponseCommand.cc
  5982. * src/Request.cc
  5983. * src/Request.h
  5984. * test/RequestTest.cc
  5985. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5986. Fixed unhandled exception(removed keyword `new').
  5987. * src/SocketCore.cc (initEPOLL)
  5988. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5989. Removed visit(const MetaEntry*)
  5990. * src/MetaEntryVisitor.h:
  5991. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  5992. and made them virtual.
  5993. * src/BencodeVisitor.h
  5994. * src/BencodeVisitor.cc
  5995. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5996. Updated po files.
  5997. * po/aria2c.pot
  5998. * po/*.po
  5999. * po/*.gmo
  6000. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6001. Moved the call setWriteCheckSocket inside the previous clause to reduce
  6002. the number of socket to watch out.
  6003. * src/PeerInteractionCommand.cc
  6004. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6005. When there is not enough space in disk when writing a chunk of data,
  6006. aria2 now prints the message to the console to warn user and aborts
  6007. its download. Not all downloads are canceled because some downloads
  6008. may use another disk or partition. BUG#1640332
  6009. * src/AbstractDiskWriter.cc
  6010. * src/PeerAbstractCommand.cc
  6011. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  6012. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  6013. setHaltRequested(true) to cancel download.
  6014. * src/PeerInteractionCommand.h
  6015. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6016. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  6017. socket from int to sock_t as sockets are unsigned in Windows.
  6018. For AsyncNameResolver, DownloadEngine, I did additional modification
  6019. for the portion of the code changed according to epoll support.
  6020. I defined sock_t in a2netcompat.h to use sock_t without including
  6021. SocketCore.h.
  6022. * src/AsyncNameResolver.cc
  6023. * src/AsyncNameResolver.h
  6024. * src/DownloadEngine.cc
  6025. * src/DownloadEngine.h
  6026. * src/SocketCore.cc
  6027. * src/SocketCore.h
  6028. * src/a2netcompat.h
  6029. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6030. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  6031. changes in the patch were applied.
  6032. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  6033. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  6034. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  6035. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6036. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  6037. a2io.h and common.h were modified.
  6038. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  6039. MinGW.
  6040. * src/common.h: Changed off_t to 64 bit in MinGW.
  6041. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6042. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6043. only a2netcompat.h is modified.
  6044. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  6045. directives.
  6046. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6047. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6048. only gai_strerror.h is modified.
  6049. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  6050. winsock errors in MinGW.
  6051. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6052. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  6053. follow sources are applied.
  6054. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  6055. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  6056. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  6057. I included locale.h from Platform.cc.
  6058. * src/main.cc: Moved common setup/teardown code to Platform class.
  6059. * test/AllTest.cc: Use Platform class.
  6060. Set locale to C in AllTest.cc to prevent the messages to be localized.
  6061. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6062. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  6063. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  6064. * test/HttpRequestTest.cc: Casted to off_t where it should.
  6065. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6066. Applied Ross's aria2-0.13.2+1-mingw.patch and
  6067. aria2-0.13.2+1-mingw-2.patch.
  6068. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  6069. systems which don't have termious.h. I moved the directive inside of
  6070. if(isTTY) { ... clause so that line is wiped out without termious.h.
  6071. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  6072. anyway.
  6073. * src/asctime_r.h
  6074. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  6075. I added 2nd argument to the prototype declaration.
  6076. * src/StringFormat.cc: Get rid of vasprintf.
  6077. * src/getaddrinfo.h: Fixed constants.
  6078. * configure.ac: Added the check for asctime_r function.
  6079. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  6080. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6081. Added writable test for Socket when the sending message is in progress.
  6082. Usually the sending message is piece message. Without wriable check,
  6083. upload latency is dropped to more than 1sec.
  6084. * src/PeerInteractionCommand.cc
  6085. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6086. Create only requested files and files which shares a piece with
  6087. requested file in multi-torrent downloads. Directory structures are
  6088. also created in the same rule.
  6089. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  6090. DiskWriterEntry as in the previous implementation.
  6091. * src/MultiDiskWriter.cc
  6092. * src/MultiFileAllocationIterator.cc
  6093. * src/MultiFileAllocationIterator.h
  6094. * test/MultiFileAllocationIteratorTest.cc
  6095. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6096. Commented out -lprofiler
  6097. * src/Makefile.am
  6098. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6099. Bump up version number to 0.14.0b.
  6100. * src/configure.ac
  6101. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6102. Actively establish connection to peers in seeding, when peer cache
  6103. is not full and max upload speed limit is not reached.
  6104. * src/ActivePeerConnectionCommand.cc
  6105. * src/ActivePeerConnectionCommand.h
  6106. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6107. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  6108. to make room more fleshy, recently found peers.
  6109. Peer::_badConditionStartTime is not used anymore. Consider to remove
  6110. it.
  6111. * src/DefaultPeerStorage.cc
  6112. * test/DefaultPeerStorageTest.cc
  6113. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6114. Returns cached data only when the previous receiveHandshake() is called
  6115. with peek = true.
  6116. * src/PeerConnection.cc (receiveHandshake)
  6117. * src/PeerConnection.h (receiveHandshake)
  6118. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6119. Changed default value of -s option from 1 to 5.
  6120. Also max value of -s option is changed from 5 to 16.
  6121. * src/HelpItemFactory.cc
  6122. * src/OptionHandlerFactory.cc
  6123. * src/option_processing.cc
  6124. * src/usage_text.h
  6125. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6126. Changed -s options behavior. Now it means the number of connections
  6127. made simultaneously in each http/ftp download.
  6128. If 1 URL is specified, the behavior is the same with old implementation.
  6129. If -s N is given and more than N URLs are specified, first N URLs are
  6130. used and remaining URLs are used for backup. If less than N URLs are
  6131. specified, some of URLs are used more than once so that totally N
  6132. connections are made simultaneously.
  6133. * src/main.cc
  6134. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6135. Included missing iosfwd or ostream header.
  6136. * src/RequestGroupMan.cc
  6137. * src/TaggedItem.cc
  6138. * src/TaggedItem.h
  6139. * src/Util.cc
  6140. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6141. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  6142. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  6143. * src/HttpConnection.cc: Included missing sstream.
  6144. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6145. Added --bt-max-open-files option.
  6146. * src/DefaultPieceStorage.cc
  6147. * src/HelpItemFactory.cc
  6148. * src/MultiDiskAdaptor.cc
  6149. * src/MultiDiskAdaptor.h
  6150. * src/OptionHandlerFactory.cc
  6151. * src/option_processing.cc
  6152. * src/prefs.cc
  6153. * src/prefs.h
  6154. * src/usage_text.h
  6155. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6156. Fixed the bug that aria2 aborts when a path to a directory is given
  6157. in command-line.
  6158. * src/ProtocolDetector.cc
  6159. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6160. Limited the number files opened in each BitTorrent download. The default
  6161. value is 100. The option to change this value will be added.
  6162. * src/MultiDiskAdaptor.cc
  6163. * src/MultiDiskAdaptor.h
  6164. * src/MultiFileAllocationIterator.cc
  6165. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6166. Fixed the bug that HTTP downloads don't start with old libraries.
  6167. * src/HttpHeaderProcessor.cc
  6168. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6169. Use empty() instead of size() > 0.
  6170. * src/HttpConnection.cc
  6171. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6172. Drop connection if the incoming peer ID is the same with localhost's
  6173. one. The previous implementation drops connection when incoming peer's
  6174. IP address is the same with localhost's one.
  6175. * src/PeerListenCommand.cc
  6176. * src/DefaultBtInteractive.cc
  6177. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6178. Returns cached data without checking whether socket is readable
  6179. if the cache is available.
  6180. * src/PeerConnection.cc (receiveHandshake)
  6181. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6182. Included stdint.h
  6183. * src/common.h
  6184. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6185. Removed duplicate HAVE_GETTIMEOFDAY
  6186. * src/Makefile.am
  6187. * src/Makefile.in
  6188. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6189. Use interval as a minInterval when minInterval is not supplied.
  6190. * src/DefaultBtAnnounce.cc
  6191. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6192. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  6193. attempt is failed, then 2nd attempt get kicked out more quickly.
  6194. And it is now static const member of DefaultBtAnnounce.
  6195. * src/DefaultBtAnnounce.h
  6196. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6197. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  6198. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  6199. * src/ActivePeerConnectionCommand.cc
  6200. * src/BtConstants.h
  6201. * src/BtRuntime.h
  6202. * src/DHTGetPeersCommand.cc
  6203. * src/DefaultBtAnnounce.cc
  6204. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  6205. BtRuntime::MAX_PEERS.
  6206. * src/DefaultPeerStorage.h
  6207. * src/InitiatorMSEHandshakeCommand.cc
  6208. * src/PeerInitiateConnectionCommand.cc
  6209. * src/PeerInteractionCommand.cc
  6210. * src/PeerReceiveHandshakeCommand.cc
  6211. * src/TrackerWatcherCommand.cc
  6212. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6213. Always Connect to _numNewConnection
  6214. * src/ActivePeerConnectionCommand.cc
  6215. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6216. Made `begin' unsigned int.
  6217. * src/GrowSegment.h
  6218. * src/Piece.cc
  6219. * src/Piece.h
  6220. * src/PiecedSegment.cc
  6221. * src/PiecedSegment.h
  6222. * src/Segment.h
  6223. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6224. Calculate piece hash when data is arrived if the data is arrived in
  6225. order. This removes additional read operation for hash calculation.
  6226. If the data is arrived in out of order, the hash is calucated when the
  6227. piece is completed. This is the same behavior as the old implementation.
  6228. * src/BtPieceMessage.cc
  6229. * src/DefaultBtProgressInfoFile.cc
  6230. * src/DefaultPieceStorage.cc
  6231. * src/DownloadCommand.cc
  6232. * src/DownloadCommand.h
  6233. * src/DownloadEngine.cc
  6234. * src/GrowSegment.cc
  6235. * src/GrowSegment.h
  6236. * src/Piece.cc
  6237. * src/Piece.h
  6238. * src/PiecedSegment.cc
  6239. * src/PiecedSegment.h
  6240. * src/Segment.h
  6241. * test/PieceTest.cc
  6242. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6243. Try to keep the ordering of outgoing piece message.
  6244. * src/DefaultBtMessageDispatcher.cc
  6245. (DefaultBtMessageDispatcher::sendMessages)
  6246. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6247. Fixed busy loop when error/hup epoll events occur.
  6248. * src/AbstractCommand.cc
  6249. * src/PeerAbstractCommand.cc
  6250. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6251. Added --bt-request-peer-speed-limit option, which was a constant
  6252. SLOW_SPEED_THRESHOLD.
  6253. * src/ActivePeerConnectionCommand.cc
  6254. * src/ActivePeerConnectionCommand.h
  6255. * src/BtConstants.h
  6256. * src/HelpItemFactory.cc
  6257. * src/OptionHandlerFactory.cc
  6258. * src/PeerReceiveHandshakeCommand.cc
  6259. * src/option_processing.cc
  6260. * src/prefs.cc
  6261. * src/prefs.h
  6262. * src/usage_text.h
  6263. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6264. Removed repeated call of getTopDirPath(). Instead, call it once and
  6265. cache the result.
  6266. * src/MultiDiskAdaptor.cc
  6267. * src/MultiDiskAdaptor.h
  6268. (mkdir, openFile, initAndOpenFile, openExistingFile)
  6269. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6270. Fixed compile error on debian etch.
  6271. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  6272. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  6273. it is undefined.
  6274. * src/Util.cc (ULLONG_MAX)
  6275. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6276. Added epoll support. Use epoll if it is available. If not, use select.
  6277. When async dns is enabled in compile time, epoll support is enabled
  6278. only when aria2 is built with c-ares. This condition statement is
  6279. defined in a2io.h.
  6280. Currently aria2 supports both c-ares and ares, but ares is maintained
  6281. for quite a while and debian already has c-ares package, ares support
  6282. will be dropped in the future version.
  6283. * configure.ac
  6284. * src/AbstractCommand.cc
  6285. * src/AsyncNameResolver.cc
  6286. * src/AsyncNameResolver.h
  6287. * src/Command.cc
  6288. * src/Command.h
  6289. * src/DownloadEngine.cc
  6290. * src/DownloadEngine.h
  6291. * src/PeerAbstractCommand.cc
  6292. * src/SocketCore.cc
  6293. * src/SocketCore.h
  6294. * src/a2io.h
  6295. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6296. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  6297. directive.
  6298. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6299. Do not do write operation to /dev/null file.
  6300. * src/LogFactory.cc
  6301. * src/SimpleLogger.cc
  6302. Replaced vasprintf with vsnprintf
  6303. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6304. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6305. * src/BtRequestMessage.cc
  6306. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  6307. for segmentation fault caused by previous commit.
  6308. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6309. Reduced the usage of gettimeofday().
  6310. * src/DefaultBtMessageDispatcher.cc
  6311. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  6312. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6313. * src/RequestSlot.cc
  6314. * src/RequestSlot.h
  6315. (RequestSlot::isTimeout)
  6316. Made RequestSlot have a reference to Piece object to avoid find
  6317. Piece repeatedly.
  6318. * src/DefaultBtMessageDispatcher.cc
  6319. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6320. * src/RequestSlot.cc
  6321. * src/RequestSlot.h
  6322. (RequestSlot::getPiece)
  6323. * test/DefaultBtMessageDispatcherTest.cc
  6324. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6325. * src/TimeA2.cc
  6326. * src/TimeA2.h
  6327. (Time::difference): New function.
  6328. (Time::elapsed): Done optimization.
  6329. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6330. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  6331. directive.
  6332. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6333. * src/option_processing.cc: Added missing `defined' keyword to #if
  6334. directive.
  6335. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6336. Bump up version number to 0.13.2+1
  6337. * src/configure.ac
  6338. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6339. Refactored broken outstanding piece handling.
  6340. * src/DefaultPieceStorage.cc
  6341. * src/DefaultPieceStorage.h
  6342. * src/Piece.cc
  6343. * src/Piece.h
  6344. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6345. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  6346. name collision of static variable and predefined macro.
  6347. * src/BtContext.cc
  6348. * src/BtContext.h
  6349. * src/CookieBoxFactory.cc
  6350. * src/CookieBoxFactory.h
  6351. * src/CookieParser.cc
  6352. * src/CookieParser.h
  6353. * src/DefaultBtContext.cc
  6354. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6355. * src/RequestGroup.cc
  6356. (RequestGroup::createInitialCommand): Use empty() instead of size().
  6357. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6358. * Release 0.13.2
  6359. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6360. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  6361. * po/fr.po
  6362. * po/ja.po
  6363. * po/aria2c.pot
  6364. * po/*.po
  6365. * po/*.gmo
  6366. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6367. Bump up version number to 0.13.2
  6368. * src/configure.ac
  6369. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6370. Refactord.
  6371. * src/RequestGroupMan.cc
  6372. (removeStoppedGroup)
  6373. (fillRequestGroupFromReserver)
  6374. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6375. Fixed compile error on Ubuntu.
  6376. * src/BtPieceMessage.cc
  6377. * src/MessageDigestHelper.cc
  6378. * src/Util.cc
  6379. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6380. Fixed compile error when configured with --disable-bittorrent
  6381. * test/DownloadHandlerFactoryTest.cc
  6382. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6383. Done make update-po
  6384. * po/aria2c.pot
  6385. * po/*.po
  6386. * po/*.gmo
  6387. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6388. Bump up version number to 0.13.2rc.
  6389. * src/configure.ac
  6390. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6391. Made option name bold. Updated SYNOPSIS to make it more readable.
  6392. * doc/aria2c.1.txt
  6393. * doc/aria2c.1
  6394. * doc/aria2c.1.html
  6395. * src/version_usage.cc
  6396. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6397. Refactored. Use std::string instead of size and char*.
  6398. * Data.cc
  6399. * Data.h
  6400. * test/Data.cc
  6401. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6402. Added trimSelf(). Rewritten trim() to use trimSelf().
  6403. * Util.cc
  6404. * Util.h
  6405. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6406. * src/ChunkChecksum.h (getChecksum): Return const reference.
  6407. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6408. Fixed compile error when configured with --disable-metalink.
  6409. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  6410. * test/FeatureConfigTest.cc
  6411. * test/DownloadHandlerFactoryTest.cc
  6412. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6413. Fixed compile error when configured with --without-gnutls
  6414. --without-openssl
  6415. * src/main.cc
  6416. * test/DefaultBtProgressInfoFileTest.cc
  6417. * test/SegmentManTest.cc
  6418. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6419. Fixed compile error with OpenSSL.
  6420. * src/IteratableChunkChecksumValidator.cc
  6421. * src/LibsslDHKeyExchange.h
  6422. * src/MessageDigestHelper.cc
  6423. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6424. Revert the default value of --max-concurrent-downloads to 5.
  6425. Revert the default value of --metalink-servers to 5.
  6426. Man pages was also updated.
  6427. * src/option_processing.cc
  6428. * doc/aria2c.1.txt
  6429. * doc/aria2c.1.html
  6430. * doc/aria2c.1
  6431. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6432. Returns const reference:
  6433. DownloadContext::getPieceHash, DownloadContext::getName,
  6434. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  6435. BtContext::getInfoHashAsString,
  6436. * src/BtContext.h
  6437. * src/DefaultBtContext.cc
  6438. * src/DefaultBtContext.h
  6439. * src/DownloadContext.h
  6440. * src/SingleFileDownloadContext.h
  6441. * test/MockBtContext.h
  6442. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6443. * src/RequestGroup.h (getDir): Removed.
  6444. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6445. Returns const reference. The internal urlencode function was optimized
  6446. a little bit.
  6447. * src/Request.cc
  6448. * src/Request.h
  6449. * src/HttpRequest.cc
  6450. * src/HttpRequest.h
  6451. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6452. Defined option name and possible values as std::string to reduce
  6453. temporary string object creation in runtime.
  6454. * src/HelpItemFactory.cc
  6455. * src/LogFactory.cc
  6456. * src/Option.cc
  6457. * src/OptionHandlerFactory.cc
  6458. * src/option_processing.cc
  6459. * src/prefs.cc
  6460. * src/prefs.h
  6461. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6462. Return const reference.
  6463. * src/DownloadHandlerConstants.cc
  6464. * src/DownloadHandlerConstants.h
  6465. (getMetalinkExtensions)
  6466. (getMetalinkContentTypes)
  6467. (getBtExtensions)
  6468. (getBtContentTypes)
  6469. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6470. * src/HttpHeader.cc (get): Rewritten.
  6471. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6472. Make HttpHeader::getFirst(...) return const reference.
  6473. * src/HttpHeader.cc
  6474. * src/HttpHeader.h
  6475. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6476. Use Option::getAsBool(...) instead of Option::get(...) and compare
  6477. it with V_TRUE.
  6478. * src/DefaultPieceStorage.cc
  6479. * src/DownloadCommand.cc
  6480. * src/FtpNegotiationCommand.cc
  6481. * src/HttpRequest.cc
  6482. * src/InitiateConnectionCommand.cc
  6483. * src/RequestGroup.cc
  6484. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6485. Made Option::get(...) return const reference of std::string.
  6486. * src/Option.cc
  6487. * src/Option.h
  6488. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6489. Replaced std:copy with insert.
  6490. * src/DefaultBtMessageDispatcher.cc
  6491. * src/DefaultPieceStorage.cc
  6492. * src/DownloadEngineFactory.cc
  6493. * src/RequestGroup.cc
  6494. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6495. Included SocketCore.h to fix compiler warning.
  6496. * src/InitiateConnectionCommand.cc
  6497. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6498. Put piece selection strategy algorithm to RarestPieceSelector class,
  6499. Added a switch to choose whether randomized selection so that unit
  6500. tests emit same results in, possibly, win32.
  6501. * src/DefaultPieceStorage.cc
  6502. * src/DefaultPieceStorage.h
  6503. * src/RarestPieceSelector.cc
  6504. * src/RarestPieceSelector.h
  6505. * test/DefaultPieceStorageTest.cc
  6506. * test/RarestPieceSelectorTest.cc
  6507. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6508. Don't pool connection if HTTP proxy is enabled.
  6509. * src/FtpFinishDownloadCommand.cc
  6510. * src/FtpNegotiationCommand.cc
  6511. * src/HttpSkipResponseCommand.cc
  6512. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6513. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  6514. * src/AbstractCommand.cc
  6515. * src/AbstractCommand.h
  6516. * src/ActivePeerConnectionCommand.cc
  6517. * src/FtpInitiateConnectionCommand.cc
  6518. * src/HttpInitiateConnectionCommand.cc
  6519. * src/InitiateConnectionCommandFactory.cc
  6520. * src/PeerAbstractCommand.cc
  6521. * src/PeerAbstractCommand.h
  6522. * src/PeerInitiateConnectionCommand.cc
  6523. * src/TrackerWatcherCommand.cc
  6524. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6525. Sort RequestSlot in ascending order and manipulate them using
  6526. lower_bound.
  6527. * src/DefaultBtMessageDispatcher.cc
  6528. * src/DefaultBtMessageDispatcher.h
  6529. (getMessageQueue): Added const qualifier.
  6530. (getRequestSlots): Added const qualifier.
  6531. (sendMessages): Use empty() instead of size().
  6532. (doCancelSendingPieceAction): Use HandleEvent object.
  6533. (doAbortOutstandingRequestAction): Rewritten.
  6534. (doChokedAction): Rewritten.
  6535. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  6536. (isOutstandingRequest): Rewritten.
  6537. (getOutstandingRequest): Rewritten.
  6538. (removeOutstandingRequest): Rewritten.
  6539. (addOutstandingRequest): Rewritten.
  6540. * src/RequestSlot.cc
  6541. * src/RequestSlot.h
  6542. (operator=): Rewritten.
  6543. (operator!=): New function.
  6544. (operator<): New function.
  6545. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6546. * src/DefaultBtRequestFactory.cc
  6547. (doChokedAction): Rewritten.
  6548. (removeCompletedPiece): Rewritten.
  6549. (removeTargetPiece): Rewritten.
  6550. (createRequestMessages): Added the debug log.
  6551. (createRequestMessagesOnEndGame: Added the debug log.
  6552. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6553. Added the debug log message.
  6554. * src/BtPieceMessage.cc (doReceivedAction)
  6555. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6556. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  6557. used lower_bound to process them rather than linear search.
  6558. * src/DHTPeerAnnounceStorage.cc
  6559. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6560. Call subtractPieceStats from ~PeerInteractionCommand only when the
  6561. peer has at least one completed piece.
  6562. * src/Peer.cc
  6563. * src/Peer.h
  6564. * src/PeerInteractionCommand.cc
  6565. * src/PeerSessionResource.cc
  6566. * src/PeerSessionResource.h
  6567. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6568. Removed unnecessary sorting
  6569. * src/DefaultPieceStorage (DefaultPieceStorage)
  6570. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6571. Rewritten the portion of the code that mangaes allowed fast indexes.
  6572. * src/PeerSessionResource.cc
  6573. * src/PeerSessionResource.h
  6574. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6575. Removed the invalid string including '\r' from ru.po and
  6576. did make update-po.
  6577. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6578. Added --log-level and --summary-interval to man page.
  6579. * doc/aria2c.1.txt
  6580. * doc/aria2c.1.html
  6581. * doc/aria2c.1
  6582. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6583. Added --log-level option to specify log level. Log messages under
  6584. the specified level are not output. Default value is `debug'.
  6585. * src/HelpItemFactory.cc
  6586. * src/LogFactory.cc
  6587. * src/LogFactory.h
  6588. * src/Logger.h
  6589. * src/OptionHandlerFactory.cc
  6590. * src/SimpleLogger.cc
  6591. * src/SimpleLogger.h
  6592. * src/main.cc
  6593. * src/option_processing.cc
  6594. * src/prefs.h
  6595. * src/usage_text.h
  6596. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6597. Print download progress summary of all parallel downloads in specified
  6598. interval, default 60 secs. While aria2 could download several files
  6599. in parallel (see -j option), it displayed just first download progress,
  6600. and the other downloads are hidden from the users. This new feature
  6601. prints all downloads currently in-progress to the console so that you
  6602. can check the status of all downloads. The interval can be adjusted
  6603. by --summary-interval option.
  6604. The progress readout is now cut so that all fits in the one line of
  6605. console.
  6606. * src/ConsoleStatCalc.cc
  6607. * src/ConsoleStatCalc.h
  6608. * src/HelpItemFactory.cc
  6609. * src/OptionHandlerFactory.cc
  6610. * src/RequestGroupMan.cc
  6611. * src/RequestGroupMan.h
  6612. * src/main.cc
  6613. * src/option_processing.cc
  6614. * src/prefs.h
  6615. * src/usage_text.h
  6616. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6617. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  6618. * src/DownloadEngine.cc (DownloadEngine)
  6619. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6620. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  6621. defined.
  6622. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  6623. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6624. Use erase+lower_bound+insert instead of sort.
  6625. * src/DefaultPieceStorage.cc (addPieceStats)
  6626. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6627. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  6628. * src/A2STR.cc
  6629. * src/A2STR.h
  6630. * src/OptionParser.cc (parse)
  6631. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6632. Defined fake filename `[tracker.announce]' as static const std::string.
  6633. * src/TrackerWatcherCommand.cc (createRequestGroup)
  6634. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6635. Defined default filename `index.html' as static const std::string
  6636. * src/SingleFileDownloadContext.cc
  6637. * src/SingleFileDownloadContext.h
  6638. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6639. Defined "[MEMORY]" as static const std::string.
  6640. * src/MemoryBufferPreDownloadHandler.cc (execute)
  6641. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6642. Defined control file's version number as static const std::string.
  6643. * src/DefaultBtProgressInfoFile.cc
  6644. * src/DefaultBtProgressInfoFile.h
  6645. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6646. Use Request::METHOD_GET
  6647. * src/RequestGroup.cc (createNextCommandWithAdj)
  6648. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6649. Defined "OK", "ERR", "INPR" as static const std::string
  6650. * src/RequestGroupMan.cc (showDownloadResults)
  6651. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6652. Defined default client used in extended handshake as static const
  6653. std::string
  6654. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  6655. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6656. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  6657. * src/HttpConnection.cc (eraseConfidentialInfo)
  6658. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6659. Defined default ftp user and password as static const std::string
  6660. * src/AuthConfigFactory.cc
  6661. * src/AuthConfigFactory.h
  6662. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6663. Defined strings used in netrc as static const std::string
  6664. * src/Netrc.cc
  6665. * src/Netrc.h
  6666. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6667. Defined HTTP status as static const std::string
  6668. * src/AbstractProxyResponseCommand.cc
  6669. * src/HttpHeader.cc
  6670. * src/HttpHeader.h
  6671. * src/HttpResponse.cc
  6672. * src/HttpResponseCommand.cc
  6673. * src/HttpSkipResponseCommand.cc
  6674. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6675. Defined "\r\n", "A", "I" as static const std::string
  6676. * src/A2STR.cc
  6677. * src/A2STR.h
  6678. * src/FtpConnection.cc
  6679. * src/FtpConnection.h
  6680. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6681. Added COLON_C(".") and used it in Request::parseUrl()
  6682. * src/A2STR.cc
  6683. * src/A2STR.h
  6684. * src/Request.cc (parseUrl)
  6685. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6686. Changed the type of padName from `const std::string&' to `const char*'.
  6687. * src/MSEHandshake.cc (verifyPadLength)
  6688. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6689. Defined "sha1" as static const std::string.
  6690. * src/MetalinkParserController.cc
  6691. * src/MetalinkParserController.h
  6692. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6693. Defined message digest algorithm name as static const std::string
  6694. * src/DHTTokenTracker.cc
  6695. * src/DHTUtil.cc
  6696. * src/DefaultBtContext.cc
  6697. * src/MSEHandshake.cc
  6698. * src/MessageDigestHelper.cc
  6699. * src/Peer.cc
  6700. * src/messageDigest.cc
  6701. * src/messageDigest.h
  6702. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6703. Made string literals used in SAX parser static const std::string.
  6704. * src/FileMetalinkParserState.cc
  6705. * src/FileMetalinkParserState.h
  6706. * src/FilesMetalinkParserState.cc
  6707. * src/FilesMetalinkParserState.h
  6708. * src/InitialMetalinkParserState.cc
  6709. * src/InitialMetalinkParserState.h
  6710. * src/MetalinkMetalinkParserState.cc
  6711. * src/MetalinkMetalinkParserState.h
  6712. * src/PiecesMetalinkParserState.cc
  6713. * src/PiecesMetalinkParserState.h
  6714. * src/ResourcesMetalinkParserState.cc
  6715. * src/ResourcesMetalinkParserState.h
  6716. * src/VerificationMetalinkParserState.cc
  6717. * src/VerificationMetalinkParserState.h
  6718. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6719. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  6720. * src/A2STR.cc
  6721. * src/A2STR.h
  6722. * src/File.cc
  6723. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6724. Defined static const std::string IP("ip"), PORT("port") and use them
  6725. instead of string literals.
  6726. * src/DefaultPeerListProcessor.cc
  6727. * src/DefaultPeerListProcessor.h
  6728. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6729. Made string literals for torrent file processing static const
  6730. std::string.
  6731. * src/BtContext.cc
  6732. * src/BtContext.h
  6733. * src/DefaultBtContext.cc
  6734. * src/DefaultBtContext.h
  6735. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6736. Made string literal for tracker response static const std::string
  6737. * src/BtAnnounce.cc
  6738. * src/BtAnnounce.h
  6739. * src/DefaultBtAnnounce.cc
  6740. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6741. Use DHTMessage::T instead of "t".
  6742. * src/DHTMessageTracker.cc (messageArrived)
  6743. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6744. Made keyName static const. Made trimmed charset static const
  6745. std::string.
  6746. * src/Util.cc (getContentDispositionFilename)
  6747. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6748. Made USER_AGENT const. Made "/" static const std::string.
  6749. * src/A2STR.cc
  6750. * src/A2STR.h
  6751. * src/HttpRequest.cc
  6752. * src/HttpRequest.h
  6753. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6754. Made string listeral to static const std::string:
  6755. "Content-Range", "Content-Length"
  6756. * src/HttpHeader.cc
  6757. * src/HttpHeader.h
  6758. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6759. Made string listeral to static const std::string.
  6760. * src/HttpConnection.cc
  6761. * src/HttpHeader.cc
  6762. * src/HttpHeader.h
  6763. * src/HttpResponse.cc
  6764. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6765. Made string listeral to static const std::string.
  6766. * src/A2STR.cc
  6767. * src/A2STR.h
  6768. * src/SimpleLogger.cc
  6769. * src/SimpleLogger.h
  6770. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6771. Made string literal to static const std::string.
  6772. Rewritten CookieParser::setField.
  6773. * src/A2STR.cc
  6774. * src/A2STR.h
  6775. * src/CookieBoxFactory.cc
  6776. * src/CookieBoxFactory.h
  6777. * src/CookieParser.cc
  6778. * src/CookieParser.h
  6779. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6780. Made string literal to static const std::string
  6781. * src/DHTAbstractMessage.cc
  6782. * src/DHTAnnouncePeerMessage.cc
  6783. * src/DHTAnnouncePeerMessage.h
  6784. * src/DHTAnnouncePeerReplyMessage.cc
  6785. * src/DHTAnnouncePeerReplyMessage.h
  6786. * src/DHTFindNodeMessage.cc
  6787. * src/DHTFindNodeMessage.h
  6788. * src/DHTFindNodeReplyMessage.cc
  6789. * src/DHTFindNodeReplyMessage.h
  6790. * src/DHTGetPeersMessage.cc
  6791. * src/DHTGetPeersMessage.h
  6792. * src/DHTGetPeersReplyMessage.cc
  6793. * src/DHTGetPeersReplyMessage.h
  6794. * src/DHTMessage.cc
  6795. * src/DHTMessage.h
  6796. * src/DHTMessageFactoryImpl.cc
  6797. * src/DHTMessageReceiver.cc
  6798. * src/DHTPingMessage.cc
  6799. * src/DHTPingMessage.h
  6800. * src/DHTPingReplyMessage.cc
  6801. * src/DHTPingReplyMessage.h
  6802. * src/DHTQueryMessage.cc
  6803. * src/DHTQueryMessage.h
  6804. * src/DHTResponseMessage.cc
  6805. * src/DHTResponseMessage.h
  6806. * src/DHTUnknownMessage.cc
  6807. * src/DHTUnknownMessage.h
  6808. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6809. Made string literal to static const std::string
  6810. * src/BtChokeMessage.cc (toString)
  6811. * src/BtHaveAllMessage.cc (toString)
  6812. * src/BtHaveNoneMessage.cc (toString)
  6813. * src/BtInterestedMessage.cc (toString)
  6814. * src/BtNotInterestedMessage.cc (toString)
  6815. * src/BtUnchokeMessage.cc (toString)
  6816. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6817. Replaced "" with static const variable A2STR::NIL.
  6818. Replaced string comparison against "" with std::string::empty().
  6819. Added PROTO_* to Request class and use them as a protocol string
  6820. constant.
  6821. Made "started", "stopped", "completed" static const variable in
  6822. AnnounceList class.
  6823. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6824. Updated translations. Great thanks to translators.
  6825. * po/ca.po
  6826. * po/de.po
  6827. * po/fr.po
  6828. * po/it.po
  6829. * po/ja.po
  6830. * po/ru.po
  6831. * po/zh_CN.po
  6832. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6833. Updated man page; categorized options and fixed typo.
  6834. * doc/aria2c.1.txt
  6835. * doc/aria2c.1.html
  6836. * doc/aria2c.1
  6837. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6838. Removed const ref
  6839. * src/MetalinkEntry.cc (AddProtocolPreference)
  6840. * src/RequestGroup.cc (FindServerHostByHostname)
  6841. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6842. Rewritten Accept-Features handling.
  6843. * src/HttpRequestCommand.cc (createHttpRequest)
  6844. * src/a2functional.h
  6845. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6846. Changed method signature:
  6847. DHTAbstractNodeLookupTask::toEntries
  6848. * src/DHTAbstractNodeLookupTask.cc
  6849. * src/DHTAbstractNodeLookupTask.h
  6850. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6851. Changed method signature:
  6852. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  6853. * src/BtContext.h
  6854. * src/DefaultBtContext.cc
  6855. * src/DefaultBtContext.h
  6856. * src/DefaultBtInteractive.cc
  6857. * test/DefaultBtContextTest.cc
  6858. * test/MockBtContext.h
  6859. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6860. Changed method signature:
  6861. MultiFileAllocationIterator::makeDiskWriterEntries
  6862. * src/MultiFileAllocationIterator.cc
  6863. * src/MultiFileAllocationIterator.h
  6864. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6865. Changed method sinature:
  6866. MetalinkEntry::toFileEntry,
  6867. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  6868. Metalinker::queryEntry
  6869. * src/Metalink2RequestGroup.cc
  6870. * src/MetalinkEntry.cc
  6871. * src/MetalinkEntry.h
  6872. * src/MetalinkHelper.cc
  6873. * src/MetalinkHelper.h
  6874. * src/Metalinker.cc
  6875. * src/Metalinker.h
  6876. * src/main.cc
  6877. * test/MetalinkHelperTest.cc
  6878. * test/MetalinkerTest.cc
  6879. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6880. Changed method sinature:
  6881. RequestGroup::getURIs
  6882. * src/RequestGroup.cc
  6883. * src/RequestGroup.h
  6884. * test/Metalink2RequestGroupTest.cc
  6885. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6886. Changed method signature:
  6887. PeerListProcessor::extractPeer
  6888. * src/CompactPeerListProcessor.cc
  6889. * src/CompactPeerListProcessor.h
  6890. * src/DefaultBtAnnounce.cc
  6891. * src/DefaultPeerListProcessor.cc
  6892. * src/DefaultPeerListProcessor.h
  6893. * src/DelegatingPeerListProcessor.cc
  6894. * src/DelegatingPeerListProcessor.h
  6895. * src/PeerListProcessor.h
  6896. * src/UTPexExtensionMessage.cc
  6897. * test/DefaultPeerListProcessorTest.cc
  6898. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6899. Changed method signature:
  6900. BtRequestFactory::createRequestMessages,
  6901. BtRequestFactory::createRequestMessagesOnEndGame
  6902. * src/BtRequestFactory.h
  6903. * src/DefaultBtInteractive.cc
  6904. * src/DefaultBtRequestFactory.cc
  6905. * src/DefaultBtRequestFactory.h
  6906. * test/DefaultBtRequestFactoryTest.cc
  6907. * test/MockBtRequestFactory.h
  6908. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6909. Changed method signature:
  6910. PieceStorage::getInFlightPieces
  6911. * src/DefaultBtProgressInfoFile.cc
  6912. * src/DefaultPieceStorage.cc
  6913. * src/DefaultPieceStorage.h
  6914. * src/PieceStorage.h
  6915. * src/UnknownLengthPieceStorage.cc
  6916. * src/UnknownLengthPieceStorage.h
  6917. * test/DefaultBtProgressInfoFileTest.cc
  6918. * test/MockPieceStorage.h
  6919. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6920. Changed method signature:
  6921. PostDownloadHandler::getNextRequestGroups
  6922. Metalink2RequestGroup::generate
  6923. RequestGroup::postDownloadProcessing
  6924. * src/BtPostDownloadHandler.cc
  6925. * src/BtPostDownloadHandler.h
  6926. * src/Metalink2RequestGroup.cc
  6927. * src/Metalink2RequestGroup.h
  6928. * src/MetalinkPostDownloadHandler.cc
  6929. * src/MetalinkPostDownloadHandler.h
  6930. * src/PostDownloadHandler.h
  6931. * src/RequestGroup.cc
  6932. * src/RequestGroup.h
  6933. * src/RequestGroupMan.cc
  6934. * src/main.cc
  6935. * test/BtPostDownloadHandlerTest.cc
  6936. * test/Metalink2RequestGroupTest.cc
  6937. * test/MetalinkPostDownloadHandlerTest.cc
  6938. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6939. Rewritten AccRequestGroup
  6940. * src/main.cc
  6941. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6942. Rewritten.
  6943. * src/TaggedItem.cc (toTagString)
  6944. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6945. Rewritten Accept-Features handling.
  6946. * src/HttpRequestCommand.cc (createHttpRequest)
  6947. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6948. Rewritten accept types handling.
  6949. * HttpRequest.cc (createRequest)
  6950. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6951. Rewritten
  6952. * src/FeatureConfig.cc (featureSummary)
  6953. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6954. Changed method signature:
  6955. PeerStorage::getActivePeers
  6956. * src/DHTPeerAnnounceEntry.cc
  6957. * src/DefaultPeerStorage.cc
  6958. * src/DefaultPeerStorage.h
  6959. * src/PeerStorage.h
  6960. * test/DefaultPeerStorageTest.cc
  6961. * test/MockPeerStorage.h
  6962. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6963. Changed method signature:
  6964. DHTPeerAnnounceStorage::getPeers,
  6965. DHTPeerAnnounceEntry::getPeers
  6966. * src/DHTGetPeersMessage.cc
  6967. * src/DHTPeerAnnounceEntry.cc
  6968. * src/DHTPeerAnnounceEntry.h
  6969. * src/DHTPeerAnnounceStorage.cc
  6970. * src/DHTPeerAnnounceStorage.h
  6971. * test/DHTAnnouncePeerMessageTest.cc
  6972. * test/DHTPeerAnnounceEntryTest.cc
  6973. * test/DHTPeerAnnounceStorageTest.cc
  6974. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6975. Changed method signature:
  6976. NameResolver::resolve
  6977. * src/DHTEntryPointNameResolveCommand.cc
  6978. * src/InitiateConnectionCommand.cc
  6979. * src/NameResolver.cc
  6980. * src/NameResolver.h
  6981. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6982. Changed method signature:
  6983. PieceStorage::getAdvertisedPieceIndexes
  6984. * src/DefaultBtInteractive.cc
  6985. * src/DefaultPieceStorage.cc
  6986. * src/DefaultPieceStorage.h
  6987. * src/PieceStorage.h
  6988. * src/UnknownLengthPieceStorage.h
  6989. * test/MockPieceStorage.h
  6990. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6991. Changed method signature:
  6992. SegmentMan::getInFlightSegment
  6993. * src/AbstractCommand.cc
  6994. * src/SegmentMan.cc
  6995. * src/SegmentMan.h
  6996. * test/SegmentManTest.cc
  6997. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6998. Changed method signature:
  6999. DHTAbstractNodeLookupTask::getNodesFromMessage
  7000. * src/DHTAbstractNodeLookupTask.cc
  7001. * src/DHTAbstractNodeLookupTask.h
  7002. * src/DHTNodeLookupTask.cc
  7003. * src/DHTNodeLookupTask.h
  7004. * src/DHTPeerLookupTask.cc
  7005. * src/DHTPeerLookupTask.h
  7006. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7007. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  7008. * src/AbstractCommand.cc
  7009. * src/BtCheckIntegrityEntry.cc
  7010. * src/BtCheckIntegrityEntry.h
  7011. * src/BtFileAllocationEntry.cc
  7012. * src/BtFileAllocationEntry.h
  7013. * src/BtSetup.cc
  7014. * src/BtSetup.h
  7015. * src/CheckIntegrityCommand.cc
  7016. * src/CheckIntegrityEntry.h
  7017. * src/ChecksumCheckIntegrityEntry.cc
  7018. * src/ChecksumCheckIntegrityEntry.h
  7019. * src/DHTSetup.cc
  7020. * src/DHTSetup.h
  7021. * src/DownloadEngine.cc
  7022. * src/FileAllocationCommand.cc
  7023. * src/FileAllocationEntry.h
  7024. * src/RequestGroup.cc
  7025. * src/RequestGroup.h
  7026. * src/RequestGroupMan.cc
  7027. * src/RequestGroupMan.h
  7028. * src/StreamCheckIntegrityEntry.cc
  7029. * src/StreamCheckIntegrityEntry.h
  7030. * src/StreamFileAllocationEntry.cc
  7031. * src/StreamFileAllocationEntry.h
  7032. * src/TrackerWatcherCommand.cc
  7033. * src/a2functional.h
  7034. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7035. Changed method signature:
  7036. BNode::findClosestKNodes, BNode:: enumerateBucket,
  7037. DHTBucket::getGoodNodes,
  7038. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  7039. * src/BNode.cc
  7040. * src/BNode.h
  7041. * src/DHTAbstractNodeLookupTask.cc
  7042. * src/DHTAutoSaveCommand.cc
  7043. * src/DHTBucket.cc
  7044. * src/DHTBucket.h
  7045. * src/DHTBucketRefreshTask.cc
  7046. * src/DHTFindNodeMessage.cc
  7047. * src/DHTGetPeersMessage.cc
  7048. * src/DHTRoutingTable.cc
  7049. * src/DHTRoutingTable.h
  7050. * test/BNodeTest.cc
  7051. * test/DHTBucketTest.cc
  7052. * test/DHTRoutingTableTest.cc
  7053. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7054. In piece selection functions, Pass std::deque<...> by reference rather
  7055. than returning it.
  7056. * src/BitfieldMan.cc
  7057. * src/BitfieldMan.h
  7058. * src/DefaultBtRequestFactory.cc
  7059. * src/DefaultPieceStorage.cc
  7060. * src/Piece.cc
  7061. * src/Piece.h
  7062. * test/BitfieldManTest.cc
  7063. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7064. Implemented rarest piece first piece selection strategy.
  7065. * src/AbstractBtMessage.cc
  7066. * src/AbstractBtMessage.h
  7067. * src/BitfieldMan.cc
  7068. * src/BitfieldMan.h
  7069. * src/BtBitfieldMessage.cc
  7070. * src/BtHaveAllMessage.cc
  7071. * src/BtHaveMessage.cc
  7072. * src/DefaultPieceStorage.cc
  7073. * src/DefaultPieceStorage.h
  7074. * src/PeerInteractionCommand.cc
  7075. * src/PieceStorage.h
  7076. * src/UnknownLengthPieceStorage.h
  7077. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7078. Rewritten readData and writeData.
  7079. * src/MultiDiskAdaptor.cc
  7080. * src/MultiDiskAdaptor.h
  7081. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7082. Move \n out of the message "Usage: ...".
  7083. * src/version_usage.cc
  7084. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7085. Bump up version number to 0.13.2b.
  7086. * configure.ac
  7087. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7088. Added const qualifier to argument Exception& e.
  7089. * src/Logger.h
  7090. * src/SimpleLogger.cc
  7091. * src/SimpleLogger.h
  7092. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7093. Pool connection when CWD, SIZE command fails.
  7094. * src/FtpNegotiationCommand.cc
  7095. * src/FtpNegotiationCommand.h
  7096. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7097. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  7098. * src/HttpResponseCommand.cc
  7099. * src/HttpSkipResponseCommand.cc
  7100. * src/HttpSkipResponseCommand.h
  7101. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7102. Pool connection when a server returns 4xx, 5xx responses.
  7103. * src/HttpNullDownloadCommand.cc
  7104. * src/HttpNullDownloadCommand.h
  7105. * src/HttpResponse.cc
  7106. * src/HttpResponse.h
  7107. * src/HttpResponseCommand.cc
  7108. * src/HttpResponseCommand.h
  7109. * test/HttpResponseTest.cc
  7110. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7111. Print usage when no URL is specifed or bad command-line option is
  7112. specified.
  7113. * src/HelpItemFactory.cc
  7114. * src/help_tags.h
  7115. * src/option_processing.cc
  7116. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7117. Removed duplicate log message.
  7118. * src/AbstractCommand.cc (asyncResolveHostname)
  7119. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7120. Updated man page: --async-dns and --ftp-reuse-connection were added.
  7121. Changed -j option's default value from 5 to 1.
  7122. Added new examples using protocol auto detection feature.
  7123. Removed -T, -M usage where it can be omitted.
  7124. * doc/aria2c.1.txt
  7125. * doc/aria2c.1.html
  7126. * doc/aria2c.1.txt
  7127. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7128. Updated command-line usage text, so that it tells users that they
  7129. can specify any number of torrent files and metalink files in
  7130. command-line.
  7131. * src/version_usage.cc
  7132. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7133. Changed the default value of -j option to 1.
  7134. * src/HelpItemFactory.cc
  7135. * src/option_processing.cc
  7136. * src/usage_text.h
  7137. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7138. Added the ability to reuse connection in FTP and it is enabled by
  7139. default. It can be disabled by --ftp-reuse-connection=false option.
  7140. * src/Command.cc
  7141. * src/DownloadCommand.cc
  7142. * src/FtpDownloadCommand.cc
  7143. * src/FtpDownloadCommand.h
  7144. * src/FtpFinishDownloadCommand.cc
  7145. * src/FtpFinishDownloadCommand.h
  7146. * src/FtpInitiateConnectionCommand.cc
  7147. * src/FtpNegotiationCommand.cc
  7148. * src/FtpNegotiationCommand.h
  7149. * src/HelpItemFactory.cc
  7150. * src/Makefile.am
  7151. * src/Makefile.in
  7152. * src/OptionHandlerFactory.cc
  7153. * src/option_processing.cc
  7154. * src/prefs.h
  7155. * src/usage_text.h
  7156. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7157. Call Command::transitStatus() before calling Command::execute(),
  7158. so that the status change made in execute() is not cleared.
  7159. * src/DownloadEngine.cc
  7160. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7161. Removed forward declaration of SocketCore class.
  7162. * src/HttpDownloadCommand.h
  7163. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7164. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  7165. in InitiateConnectionCommandFactory. They should be set only when
  7166. the protocol is HTTP or HTTPS.
  7167. * src/InitiateConnectionCommandFactory.cc
  7168. * src/RequestGroup.cc
  7169. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7170. Fixed infinite loop in checksum checking.
  7171. * src/IteratableChecksumValidator.cc
  7172. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7173. Set _supportsPersistentConnection to true by default.
  7174. * src/Request.cc
  7175. * src/RequestGroup.cc
  7176. * test/HttpRequestTest.cc
  7177. * test/RequestTest.cc
  7178. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7179. Added timeout to socket pool. The default timeout is 15 seconds,
  7180. which is the same value Apache uses.
  7181. * src/DownloadEngine.cc
  7182. * src/DownloadEngine.h
  7183. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7184. Fixed misuse of multimap::find()
  7185. * src/HttpHeader.cc
  7186. * test/HttpHeaderTest.cc
  7187. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7188. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  7189. option.
  7190. The asynchronous DNS is not capable of IPv6 yet.
  7191. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  7192. least for HTTP download.
  7193. * src/AbstractCommand.cc
  7194. * src/AbstractCommand.h
  7195. * src/AsyncNameResolver.cc
  7196. * src/AsyncNameResolver.h
  7197. * src/DHTEntryPointNameResolveCommand.cc
  7198. * src/DHTEntryPointNameResolveCommand.h
  7199. * src/DownloadEngine.cc
  7200. * src/DownloadEngine.h
  7201. * src/FtpInitiateConnectionCommand.cc
  7202. * src/FtpInitiateConnectionCommand.h
  7203. * src/HelpItemFactory.cc
  7204. * src/HttpInitiateConnectionCommand.cc
  7205. * src/HttpInitiateConnectionCommand.h
  7206. * src/InitiateConnectionCommand.cc
  7207. * src/InitiateConnectionCommand.h
  7208. * src/Makefile.am
  7209. * src/Makefile.in
  7210. * src/NameResolver.cc
  7211. * src/NameResolver.h
  7212. * src/OptionHandlerFactory.cc
  7213. * src/SocketCore.cc
  7214. * src/SocketCore.h
  7215. * src/Util.cc
  7216. * src/Util.h
  7217. * src/option_processing.cc
  7218. * src/prefs.h
  7219. * src/usage_text.h
  7220. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7221. Updated man page: --quiet, --header were added.
  7222. --metalink-servers and --enable-http-keep-alive option were updated.
  7223. * doc/aria2c.1
  7224. * doc/aria2c.1.html
  7225. * doc/aria2c.1.txt
  7226. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7227. Enable HTTP keep-alive by default.
  7228. * src/HelpItemFactory.cc
  7229. * src/option_processing.cc
  7230. * src/usage_text.h
  7231. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7232. Disable http keep-alive if the remote server is not HTTP/1.1.
  7233. * src/HttpConnection.cc
  7234. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7235. Receive content body of 302 response so that the connection can be
  7236. reused later when http keep-alive is enabled.
  7237. * src/HttpNullDownloadCommand.cc
  7238. * src/HttpNullDownloadCommand.h
  7239. * src/HttpResponseCommand.cc
  7240. * src/HttpResponseCommand.h
  7241. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7242. const SharedHandle<Request> -> const SharedHandle<Request>&
  7243. * src/FtpDowndloadCommand.cc
  7244. * src/FtpDowndloadCommand.h
  7245. * src/HttpDownloadCommand.cc
  7246. * src/HttpDownloadCommand.h
  7247. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7248. Fixed the bug that the control file(.aria2 file) is not renamed
  7249. according to tryAutoFileRenaming().
  7250. tryAutoFileRenaming() was rewritten so that if both renamed file and
  7251. its control file exist, use them and continue download.
  7252. The old implementation didn't take into account of control file's
  7253. existence, so basically you couldn't continue download of renamed file.
  7254. * src/BtProgressInfoFile.h
  7255. * src/DefaultBtProgressInfoFile.cc
  7256. * src/DefaultBtProgressInfoFile.h
  7257. * src/NullProgressInfoFile.h
  7258. * src/RequestGroup.cc
  7259. * test/DefaultBtProgressInfoFileTest.cc
  7260. * test/MockBtProgressInfoFile.h
  7261. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7262. Change the default value of --metalink-servers option from `5' to `1'.
  7263. * src/HelpItemFactory.cc
  7264. * src/option_processing.cc
  7265. * src/usage_text.h
  7266. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7267. Reimplemented transparent metalink using Accept request header.
  7268. * src/HttpRequest.cc
  7269. * src/HttpRequest.h
  7270. * src/HttpRequestCommand.cc
  7271. * src/Metalink2RequestGroup.cc
  7272. * src/RequestGroup.cc
  7273. * src/RequestGroup.h
  7274. * test/HttpRequestTest.cc
  7275. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7276. Bump up version number to 0.13.2a
  7277. * configure.ac
  7278. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7279. Updated configure.ac using the result of autoscan.
  7280. * configure.ac
  7281. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7282. Fixed compilation error without gcrypt/openssl.
  7283. * src/DownloadCommand.cc
  7284. * src/DownloadCommand.h
  7285. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7286. Reorganized version information so that it can be displayed in a
  7287. standard terminal screen without scrolling.
  7288. Removed http, ftp from Configuration section, because they are always
  7289. enabled.
  7290. * src/FeatureConfig.cc
  7291. * src/FeatureConfig.h
  7292. * src/main.cc
  7293. * src/messageDigest.cc
  7294. * src/messageDigest.h
  7295. * src/version_usage.cc
  7296. * test/FeatureConfigTest.cc
  7297. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7298. Masked user ID in log.
  7299. * src/FtpConnection.cc (sendUser)
  7300. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7301. Removed query part from filename in HTTP download. The query part means
  7302. the substring after "?" in URL. Firefox seems do the same thing.
  7303. A query part is sometimes very long and not suitable to filename,
  7304. so I think it is better to remove it from filename.
  7305. * src/HttpRequest.cc
  7306. * src/HttpRequest.h
  7307. * src/Request.cc
  7308. * src/Request.h
  7309. * test/HttpRequestTest.cc
  7310. * test/RequestTest.cc
  7311. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7312. Rewritten Exception class. Throw exception object, not its pointer and
  7313. catch by reference, so that remove problematic delete operator for
  7314. catched exception.
  7315. * src/Exception.cc
  7316. * src/Exception.h
  7317. * test/ExceptionTest.cc
  7318. * src/*: All files throwing/catching exception.
  7319. * test/*: All files throwing/catching exception.
  7320. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7321. Now auto protocol detection is enabled without -Z option.
  7322. But there is a important difference between with/without -Z optoin.
  7323. For example, if you type:
  7324. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  7325. then, aria2 interprets there are 3 request groups:
  7326. (1) http://host/file, http://mirror/file <-- multi-source download
  7327. (2) file1.torrent
  7328. (3) file2.metalink
  7329. On the other hand, if you invoke above command with -Z option, it is
  7330. interpreted as 4 request groups:
  7331. (1) http://host/file
  7332. (2) file1.torrent
  7333. (3) file2.metalink
  7334. (4) http://mirror/file
  7335. I think usually user don't mix multi-source URLs and torrent files, so
  7336. there is no big problem here.
  7337. * src/main.cc
  7338. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7339. Fixed the bug that causes segmentaion fault when reading XML containing
  7340. unescapsed character like '&'.
  7341. Also a modification was made which avoids adding unnecessary
  7342. characters stack and appending unused string.
  7343. * src/ExpatMetalinkProcessor.cc
  7344. * src/FileMetalinkParserState.h
  7345. * src/FilesMetalinkParserState.h
  7346. * src/FinMetalinkParserState.h
  7347. * src/HashMetalinkParserState.h
  7348. * src/InitialMetalinkParserState.h
  7349. * src/LanguageMetalinkParserState.h
  7350. * src/MetalinkMetalinkParserState.h
  7351. * src/MetalinkParserState.h
  7352. * src/MetalinkParserStateMachine.cc
  7353. * src/MetalinkParserStateMachine.h
  7354. * src/OSMetalinkParserState.h
  7355. * src/PieceHashMetalinkParserState.h
  7356. * src/PiecesMetalinkParserState.h
  7357. * src/ResourcesMetalinkParserState.h
  7358. * src/SizeMetalinkParserState.h
  7359. * src/SkipTagMetalinkParserState.h
  7360. * src/URLMetalinkParserState.h
  7361. * src/VerificationMetalinkParserState.h
  7362. * src/VersionMetalinkParserState.h
  7363. * src/XML2SAXMetalinkProcessor.cc
  7364. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7365. Added StringFormat class, which internally calls vasprintf.
  7366. operator<< is defined for this class, so it can be used with iostream
  7367. classes nicely. SimpleLogger and following functions are rewritten
  7368. using StringFormat class.
  7369. Besides, now Logger class's methods are non-const, many classes
  7370. that has a const Logger* as a member variable are modified to remove
  7371. const qualifier from the variable declaration.
  7372. * src/HelpItemFactory.cc
  7373. * src/Request.cc
  7374. * src/SimpleLogger.cc
  7375. * src/StringFormat.cc
  7376. * src/StringFormat.h
  7377. * src/Util.cc
  7378. * src/option_processing.cc
  7379. * src/version_usage.cc
  7380. * test/StringFormatTest.cc
  7381. * src/*.h: The classes that has const Logger* as a member variable.
  7382. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7383. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  7384. failed. Also fixed memory link when exception is thrown there.
  7385. * src/main.cc (AccRequestGroup)
  7386. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7387. Added build-in "Accept-Features" support. For now only "metalink" is
  7388. used in this header field.
  7389. This "metalink" value is removed from the list when connecting URLs
  7390. fed by metalink file to avoid loop in "transparent" metlaink.
  7391. * src/HttpRequest.cc
  7392. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  7393. header is also held in this variable. Also renamed setUserHeaders as
  7394. addHeader and it was rewritten to add header not just to clear the old
  7395. value.
  7396. * src/HttpRequestCommand.cc
  7397. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  7398. from "Accept-Features" list.
  7399. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  7400. default.
  7401. * src/RequestGroup.h
  7402. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  7403. * src/a2functional.h: Included <string> because Concat class depends on
  7404. it.
  7405. * test/HttpRequestTest.cc
  7406. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7407. Added comment
  7408. * src/RequestGroup.cc (createNextCommand)
  7409. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7410. Capitalized METHOD_GET and METHOD_HEAD
  7411. * src/Request.cc
  7412. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7413. Added getDownloadResults() method
  7414. * src/RequestGroupMan.cc
  7415. * src/RequestGroupMan.h
  7416. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7417. Fixed the bug that aria2 exits when commands is empty() but
  7418. _routineCommands are not.
  7419. * src/DownloadEngine.cc
  7420. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7421. Use the default value pulled from Option object in HelpItemFactory.
  7422. except options whose defualt value is embedded in a usage text.
  7423. * src/HelpItemFactory.cc
  7424. * src/HelpItemFactory.h
  7425. * src/option_processing.cc
  7426. * src/version_usage.cc
  7427. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7428. Added --quiet option to make aria2 quiet (no console output).
  7429. --quiet option is tagged with ADVANCED.
  7430. * src/HelpItemFactory.cc
  7431. * src/LogFactory.cc
  7432. * src/LogFactory.h
  7433. * src/MultiUrlRequestInfo.cc
  7434. * src/MultiUrlRequestInfo.h
  7435. * src/NullStatCalc.h: New class. This class prints nothing.
  7436. * src/OptionHandlerFactory.cc
  7437. * src/main.cc
  7438. * src/option_processing.cc
  7439. * src/prefs.h
  7440. * src/usage_text.h
  7441. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7442. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  7443. * src/HelpItemFactory.cc (createHelpItems):
  7444. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7445. Fixed compilation error in ExpatMetalinkProcessor.cc
  7446. * src/ExpatMetalinkProcessor.cc
  7447. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7448. Reuse socket if the origin server supports HTTP keep-alive and
  7449. --enable-http-keep-alive or --enable-http-pipelining is given.
  7450. The current implementation doesn't reuse the connections established
  7451. against proxy server.
  7452. * src/AbstractCommand.cc
  7453. * src/DownloadEngine.cc
  7454. * src/DownloadEngine.h
  7455. * src/HttpDownloadCommand.cc
  7456. * src/HttpInitiateConnectionCommand.cc
  7457. * src/HttpResponseCommand.cc
  7458. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7459. Rewritten HTTP keep-alive and pipelining routine.
  7460. * src/AbstractCommand.cc
  7461. * src/HttpConnection.cc
  7462. * src/HttpDownloadCommand.cc
  7463. * src/HttpRequest.cc
  7464. * src/HttpRequestCommand.cc
  7465. * src/HttpResponseCommand.cc
  7466. * src/Request.cc
  7467. * src/Request.h
  7468. * src/RequestGroup.cc
  7469. * test/HttpRequestTest.cc
  7470. * test/HttpResponseTest.cc
  7471. * test/RequestTest.cc
  7472. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7473. Added missing setUserHeaders call
  7474. * src/HttpRequestCommand.cc
  7475. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7476. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  7477. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  7478. waste of time because it is more likey false.
  7479. * src/FileAllocationDispatcherCommand.cc (execute)
  7480. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7481. Now HTTP status and version are a member variable of HttpHeader.
  7482. HTTP status is processed as a string, not integer.
  7483. * src/AbstractProxyResponseCommand.cc
  7484. * src/HttpConnection.cc
  7485. * src/HttpHeader.cc
  7486. * src/HttpHeader.h
  7487. * src/HttpHeaderProcessor.cc
  7488. * src/HttpHeaderProcessor.h
  7489. * src/HttpResponse.cc
  7490. * src/HttpResponse.h
  7491. * test/HttpHeaderProcessorTest.cc
  7492. * test/HttpResponseTest.cc
  7493. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7494. Added --header option. You can specify any number of additional HTTP headers
  7495. like:
  7496. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  7497. Unlike other commad-line option, you can use --header option multiple times.
  7498. * src/HelpItemFactory.cc
  7499. * src/HttpRequest.{cc, h}
  7500. * src/HttpRequestCommand.cc
  7501. * src/OptionHandlerFactory.cc
  7502. * src/OptionHandlerImpl.h
  7503. * src/option_processing.cc
  7504. * src/prefs.h
  7505. * src/usage_text.h
  7506. * test/HttpRequestTest.cc (testUserHeaders)
  7507. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7508. Eliminates the time lag between sequential downloads and commands in
  7509. the same RequestGroup.
  7510. In old implementation, aria2 occasionally waits 1 seconds before
  7511. executing next command or RequestGroup.
  7512. This is really a waste of time, and new implementation eliminates
  7513. this unnecessary time lag.
  7514. * src/AbstractCommand.cc
  7515. * src/AutoSaveCommand.cc
  7516. * src/CheckIntegrityCommand.cc
  7517. * src/Command.{cc, h}
  7518. * src/DownloadEngine.{cc, h}
  7519. * src/DownloadEngineFactory.cc
  7520. * src/FileAllocationCommand.cc
  7521. * src/FileAllocationDispatcherCommand.cc
  7522. * src/FillRequestGroupCommand.cc
  7523. * src/FtpInitiateConnectionCommand.cc
  7524. * src/HaveEraseCommand.cc
  7525. * src/HttpInitiateConnectionCommand.cc
  7526. * src/HttpResponseCommand.cc
  7527. * src/RealtimeCommand.cc
  7528. * src/RequestGroup.cc
  7529. * src/RequestGroupMan.cc
  7530. * src/StreamFileAllocationEntry.cc
  7531. * src/TimeBasedCommand.{cc, h}
  7532. * src/TimedHaltCommand.cc
  7533. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7534. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  7535. keyword explicit and SharedHandle's default constructor initializes
  7536. its internal obj to null, old implementation initializes it using
  7537. obj's default constructor.
  7538. To assign null, write SharedHandle<T> x(...); x.reset();
  7539. TODO: test/SharedHandleTest.cc needs more tests.
  7540. * src/SharedHandle.h
  7541. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7542. Fixed type in man page.
  7543. * doc/aria2c.1.txt
  7544. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7545. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  7546. * src/SimpleLogger.{cc, h}
  7547. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7548. Implemented auto protocol detection.
  7549. Now you can do:
  7550. aria2c -Z http://host/file file1.torrent file2.metalink
  7551. (Note: -Z option is required for auto protcol detection.)
  7552. Then aria2c downloads 3 files simultaneously:
  7553. 1. http://host/file
  7554. 2. file1.torrent <-- read local torrent file
  7555. 3. file2.metalink <-- read local Metalink file.
  7556. Same thing goes with -i option. Assume your uris.txt contans:
  7557. http://host/file
  7558. file1.torrent
  7559. file2.metalink
  7560. Then you can do: aria2c -i uris.txt
  7561. (Note: -Z option is not needed if -i option is given.)
  7562. * src/main.cc
  7563. * src/ProtocolDetector.{cc, h}
  7564. * test/ProtocolDetectorTest.cc
  7565. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7566. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  7567. installed
  7568. * src/ARC4Encryptor.h
  7569. * src/ARC4Decryptor.h
  7570. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7571. Renamed argument from 'errno' to 'err', since errno is confused with
  7572. errno defined in errno.h.
  7573. * src/LibgcryptARC4Decryptor.h
  7574. * src/LibgcryptARC4Context.h
  7575. * src/LibgcryptDHKeyExchange.h
  7576. * src/LibgcryptARC4Encryptor.h
  7577. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7578. Rewritten choking algorithm.
  7579. * src/PeerChokeCommand.{cc, h}
  7580. * src/BtInterestedMessage.cc
  7581. * src/PeerSessionResource.{cc, h}
  7582. * src/DefaultPeerStorage.{cc, h}
  7583. * src/BtNotInterestedMessage.cc
  7584. * src/DefaultBtMessageDispatcher.{cc, h}
  7585. * src/BtMessageDispatcher.h
  7586. * src/Peer.{cc, h}
  7587. * src/BtLeecherStateChoke.{cc, h}
  7588. * src/BtSetup.cc
  7589. * src/BtSeederStateChoke.{cc, h}
  7590. * src/PeerStorage.h
  7591. * test/MockPeerStorage.h
  7592. * test/MockBtMessageDispatcher.h
  7593. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7594. Fixed compilation error on x84-64 platform.
  7595. * src/AuthConfig.cc: Included ostream.
  7596. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7597. Rewritten getBasename() and getDirname(), without standard library
  7598. basename(), dirname().
  7599. * src/File.cc
  7600. * test/FileTest.cc
  7601. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7602. Added Simplified Chinese translation. Also updated the following
  7603. translations: Polish, Dutch, German. Great thanks to all translators.
  7604. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7605. Suppress content-range error when 'Content-Range' response header
  7606. doesn't contains bytes-unit specifier 'bytes'
  7607. * src/HttpHeader.cc (getRange)
  7608. * test/HttpHeaderTest.cc
  7609. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7610. Fixed compilation error with g++-4.3
  7611. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7612. Added missing include files for MinGW
  7613. * test/HttpHeaderProcessorTest.cc
  7614. * test/DHTRoutingTableSerializerTest.cc
  7615. * test/DHTRoutingTableDeserializerTest.cc
  7616. * test/UriListParserTest.cc
  7617. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7618. Now download line is printed nicely with no garbage at the end of
  7619. line. I use ioctl to get the columns of terminal.
  7620. If stdout is redirected to another device, instead of carriage return,
  7621. end of line '\n' character is used. This is feature request#1909659
  7622. * src/ConsoleStatCalc.cc (calculateStat)
  7623. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7624. Included a2time.h
  7625. * src/DHTMessageDispatcher.h
  7626. * src/DHTMessageEntry.h
  7627. * src/DHTReplaceNodeTask.h
  7628. * src/DHTMessageTracker.h
  7629. * src/Util.h
  7630. * src/CookieBox.h
  7631. * src/SocketCore.h
  7632. * src/DefaultBtMessageDispatcher.h
  7633. * src/SocketCore.cc
  7634. * src/Util.cc
  7635. * src/DHTPingTask.h
  7636. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7637. Fixed high memory footprint when DHT is enabled.
  7638. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  7639. queued than it is processed and the queue is getting longer. As a
  7640. consequence, momory usage is increased.
  7641. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  7642. replacement cache in DHTBucket which is described in Kademlia paper.
  7643. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  7644. DHTReplaceNodeTask.
  7645. * src/DHTBucket.{h, cc}
  7646. (cacheNode): New function.
  7647. (getCachedNodes): New function.
  7648. (dropNode): Push back cached node to _nodes.
  7649. * test/DHTBucketTest.cc
  7650. (testCacheNode): New test
  7651. (testDropNode): New test
  7652. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7653. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  7654. the unused 4KB memory when ssl is not used.
  7655. * src/SocketCore.cc
  7656. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7657. Added summary log for peer announce storage.
  7658. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  7659. Removed cast
  7660. * src/DefaultPeerStorage.cc (addPeer)
  7661. Log exception message
  7662. * src/DHTMessageTracker.cc (handleTimeout)
  7663. Fixed casting
  7664. * test/HttpRequestTest.cc
  7665. * test/MetalinkProcessorTest.cc
  7666. * test/PieceTest.cc
  7667. * test/MetalinkEntryTest.cc
  7668. * test/SequenceTest.cc
  7669. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7670. * src/ParameterizedStringParser.cc (createLoop):
  7671. Removed unused variable sstep.
  7672. * src/AlphaNumberDecorator.h (decode): Rewritten.
  7673. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7674. * src/Util.{h, cc}
  7675. (parseUInt): New function.
  7676. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  7677. The actual range is uint32_t.
  7678. * test/UtilTest.cc
  7679. * src/ParameterizedStringParser.cc:
  7680. Use Util::parseUInt() for loop variables.
  7681. * test/ParameterizedStringParserTest.cc
  7682. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  7683. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7684. Rewritten the functions for binding port.
  7685. * src/DHTConnectionImpl.{h, cc}
  7686. * src/PeerListenCommand.{h, cc}
  7687. * src/DHTSetup.cc
  7688. * src/BtSetup.cc
  7689. * test/DHTConnectionImplTest.cc
  7690. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7691. type cleanup for allmost all remaining files.
  7692. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7693. Type clarification
  7694. * src/PeerSessionResource.{h, cc}
  7695. * src/DefaultPieceStorage.{h, cc}
  7696. * src/Peer.{h, cc}
  7697. * test/PeerSessionResourceTest.cc
  7698. Use div function
  7699. * src/BtPieceMessage.cc (erasePieceOnDisk)
  7700. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7701. Type clarification
  7702. * src/DefaultPeerStorage.{h, cc}
  7703. * test/DefaultPeerStorageTest.cc
  7704. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7705. Type clarification: size_t for length or size, uint64_t for file
  7706. length, off_t for file offset.
  7707. * src/DefaultBtProgressInfoFile.cc
  7708. * src/DefaultBtContext.{h, cc}
  7709. * src/DefaultBtInteractive.cc
  7710. * src/DownloadCommand.{h, cc}
  7711. * src/IteratableChunkChecksumValidator.{h, cc}
  7712. * src/SegmentMan.{h, cc}
  7713. * src/SingleFileDownloadContext.{h, cc}
  7714. * src/IteratableChecksumValidator.{h, cc}
  7715. * src/BtContext.h
  7716. * src/IteratableValidator.h
  7717. * src/DownloadContext.h
  7718. * test/SingleFileDownloadContextTest.cc
  7719. * test/DefaultBtContextTest.cc
  7720. * test/MockBtContext.h
  7721. * test/Metalink2RequestGroupTest.cc
  7722. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7723. Type clarification: size_t for length or size, uint64_t for file
  7724. length, off_t for file offset.
  7725. * src/PiecedSegment.cc
  7726. * src/GrowSegment.h
  7727. * src/DefaultBtRequestFactory.h
  7728. * src/DefaultBtProgressInfoFile.cc
  7729. * src/UnknownLengthPieceStorage.h
  7730. * src/DefaultPieceStorage.cc
  7731. * src/UnknownLengthPieceStorage.cc
  7732. * src/DefaultBtInteractive.cc
  7733. * src/GrowSegment.cc
  7734. * src/BitfieldMan.h
  7735. * src/DownloadCommand.cc
  7736. * src/BtRequestFactory.h
  7737. * src/PiecedSegment.h
  7738. * src/DefaultPieceStorage.h
  7739. * src/Piece.cc
  7740. * src/DefaultBtRequestFactory.cc
  7741. * src/PieceStorage.h
  7742. * src/Segment.h
  7743. * src/Piece.h
  7744. * src/BitfieldMan.cc
  7745. * src/Util.cc
  7746. * test/DefaultBtProgressInfoFileTest.cc
  7747. * test/DefaultPieceStorageTest.cc
  7748. * test/MockPieceStorage.h
  7749. * test/BtRequestMessageTest.cc
  7750. * test/DefaultBtMessageDispatcherTest.cc
  7751. * test/BitfieldManTest.cc
  7752. * test/GrowSegmentTest.cc
  7753. * test/PieceTest.cc
  7754. * test/SegmentTest.cc
  7755. * test/SegmentManTest.cc
  7756. * test/DefaultBtRequestFactoryTest.cc
  7757. * test/MockBtRequestFactory.h
  7758. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7759. Fixed compilation error with --disable-nls
  7760. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  7761. in gettext.h causes the problem.
  7762. * src/common.h
  7763. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7764. Removed subPiece related functions.
  7765. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  7766. * src/DefaultPieceStorage.{h, cc}
  7767. * test/PieceTest.cc
  7768. * test/DefaultPieceStorageTest.cc
  7769. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7770. Use unsigned char for data store.
  7771. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7772. Bump up version number to 0.13.0+1
  7773. * configure.ac
  7774. * Release 0.13.0+1
  7775. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7776. Changed inactive connection timeout to 120.
  7777. To accept more mulually interested peers, disconnect peer when there
  7778. is no interest between us after certain time passed.
  7779. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  7780. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7781. Fixed the bug that aria2 only uses first dns server in resolv.conf
  7782. when compiled with async DNS support.
  7783. * src/DownloadEngine.cc
  7784. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  7785. value '10' will be a little bit short when some DNS servers are
  7786. offline and several DNS servers are tried. It should be configured
  7787. by command-line option.
  7788. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7789. Merged Ross's mingw patch.
  7790. * src/DHTRoutingTableDeserializer.cc
  7791. * src/DHTRoutingTableSerializer.cc
  7792. * src/Platform.{h, cc}
  7793. * src/timegm.h
  7794. * src/gettimeofday.h
  7795. * src/getaddrinfo.h
  7796. * src/SocketCore.h
  7797. * src/common.h
  7798. * src/inet_aton.h
  7799. * src/DownloadEngine.h
  7800. * src/gai_strerror.h
  7801. * src/a2netcompat.h
  7802. * configure.ac
  7803. * configure
  7804. * aclocal.m4
  7805. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7806. Included missing iostream.
  7807. * test/AllTest.cc
  7808. * test/BtDependencyTest.cc
  7809. * test/BtExtendedMessageTest.cc
  7810. * test/DHTConnectionImplTest.cc
  7811. * test/DHTMessageFactoryImplTest.cc
  7812. * test/DHTMessageTrackerEntryTest.cc
  7813. * test/DHTNodeTest.cc
  7814. * test/DHTRoutingTableSerializerTest.cc
  7815. * test/DefaultBtAnnounceTest.cc
  7816. * test/DefaultBtContextTest.cc
  7817. * test/DefaultBtMessageFactoryTest.cc
  7818. * test/DefaultExtensionMessageFactoryTest.cc
  7819. * test/HandshakeExtensionMessageTest.cc
  7820. * test/HttpResponseTest.cc
  7821. * test/MetalinkProcessorTest.cc
  7822. * test/MultiFileAllocationIteratorTest.cc
  7823. * test/SocketCoreTest.cc
  7824. * test/UTPexExtensionMessageTest.cc
  7825. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7826. Reorganized includes.
  7827. * src/NameResolver.cc
  7828. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7829. Fixed compilation error without ares/c-ares
  7830. * src/NameResolver.h:
  7831. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7832. Added a test for large file.
  7833. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  7834. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7835. Fixed the bug that file size is ignored if size > INT32_MAX
  7836. * src/SizeMetalinkParserState.cc (endElement):
  7837. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7838. Bump up version number to 0.13.0
  7839. * configure.ac
  7840. * Release 0.13.0
  7841. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7842. Updated Makfefile.am to make 'make dist' work.
  7843. Now packaged filename is aria2c-VERSION.tar.bz2.
  7844. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  7845. Added LICENSE.OpenSSL to dist_noinst_DATA.
  7846. Large file support is now configured by configure script.
  7847. * configure.ac
  7848. Removed unsused source files
  7849. * src/
  7850. * test/
  7851. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  7852. Peer.h and BtContext.h respectively.
  7853. * src/Peer.h
  7854. * src/BtContext.h
  7855. Updated translations.
  7856. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  7857. translations. Great thanks to all translators!;)
  7858. * po/*.{po, gmo}
  7859. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7860. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  7861. statically declared sha1 MessageDigestContext.
  7862. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  7863. initialization of short-lived MessageDigestContext.
  7864. * src/MessageDigestHelper.{h, cc}
  7865. * src/main.cc
  7866. Now DownloadCommand has a reference to MessageDigestContext to avoid
  7867. the initialization of MessageDigestContext every time in validating
  7868. chunk checksum.
  7869. * src/DownloadCommand.{h, cc}
  7870. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7871. Add a file descriptor which connected to fast peer(latency<1500) to
  7872. select(). This change reduced CPU load.
  7873. * src/PeerInteractionCommand.cc
  7874. * src/DefaultBtInteractive.{h, cc}
  7875. * src/BtInteractive.h
  7876. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7877. Fixed the previous insufficient fix for possible busy loop.
  7878. * src/MSEHandshake.cc (identifyHandshakeType)
  7879. Removed unused functions.
  7880. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  7881. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7882. Fixed possible busy loop if first 20 bytes are not received for a few
  7883. minutes.
  7884. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  7885. * src/ReceiverMSEHandshakeCommand.cc
  7886. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7887. Fixed compilation error
  7888. * src/ExpatMetalinkProcessor.cc
  7889. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7890. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  7891. * src/DHTBucket.cc
  7892. Removed unnecessary cast.
  7893. * src/HandshakeExtensionMessage.cc
  7894. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7895. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  7896. is missing.
  7897. * src/OptionHandlerFactory.cc
  7898. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7899. Fixed the bug that HAVE message is not sent for a piece they are
  7900. downloaded fom http/ftp server before any BitTorrent handshake is done
  7901. with peers.
  7902. * src/DefaultBtInteractive.cc
  7903. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7904. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  7905. * src/Makefile.am
  7906. * src/Makefile.in
  7907. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7908. Updated README. Added html version of README and man page.
  7909. * README
  7910. * README.html
  7911. * readme2html: Shell script to generate README.html from README using
  7912. asciidoc.
  7913. * doc/aria2c.1.html
  7914. * doc/makeman: Added the line to generate aria2c.1.html
  7915. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7916. Fixed offset calculation.
  7917. * src/LibgcryptDHKeyExchange.h (computeSecret)
  7918. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7919. Rewritten itos and uitos using template. llitos and ullitos are
  7920. replaced with itos and uitos respectively.
  7921. * src/Util.{h, cc}
  7922. * test/UtilTest.cc
  7923. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7924. Fixed the bug that DH key exchange sometimes fails due to bad handling
  7925. of the number of bytes required for storing public key and shared
  7926. secret.
  7927. * src/LibgcryptDHKeyExchange.h
  7928. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  7929. * src/MSEHandshake.cc
  7930. * test/DHKeyExchangeTest.cc
  7931. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7932. Removed since they are not used.
  7933. * src/Xml2MetalinkProcessor.{h, cc}
  7934. * src/Socket.cc
  7935. * src/SegmentSplitter.{h, cc}
  7936. * test/Xml2MetalinkProcessorTest.cc
  7937. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7938. Fixed the bug that prevents aria2 from stopping other than by pressing
  7939. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  7940. option. aria2 doesn't stop even after --seed-time is satisfied and
  7941. continues to output blank lines in the console.
  7942. * src/ReceiverMSEHandshakeCommand.cc
  7943. * src/PeerReceiveHandshakeCommand.cc
  7944. * src/PeerListenCommand.cc
  7945. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7946. Bump up version number to 0.13.0rc
  7947. * configure.ac
  7948. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7949. Updated man page and some usage text.
  7950. * doc/aria2c.1.txt
  7951. * src/usage_text.h
  7952. * po/*.{po, gmo}
  7953. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7954. Updated translations. Added Finnish and Hebrew translations.
  7955. Great thanks to all translators!
  7956. * po/*.{po, gmo}
  7957. * po/LINGUAS
  7958. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7959. Log more detailed information about each message.
  7960. * src/DHTQueryMessage.{h, cc}
  7961. * src/DHTGetPeersMessage.{h, cc}
  7962. * src/DHTFindNodeReplyMessage.{h, cc}
  7963. * src/DHTGetPeersReplyMessage.{h, cc}
  7964. * src/DHTAnnouncePeerMessage.{h, cc}
  7965. * src/DHTResponseMessage.{h, cc}
  7966. * src/DHTFindNodeMessage.{h, cc}
  7967. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7968. Use constants defined in prefs.h
  7969. * src/option_processing.cc
  7970. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7971. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  7972. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7973. Make room for future enchancements for IPv6 addresses.
  7974. Bump up version number of dht.dat file format to 2.
  7975. Not compatible with previous version.
  7976. * src/DHTRoutingTableSerializer.cc
  7977. * src/DHTRoutingTableDeserializer.cc
  7978. * test/DHTRoutingTableSerializerTest.cc
  7979. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7980. Added handling for the return values from
  7981. PeerMessageUtil::createcompact().
  7982. * src/DefaultBtContext.cc (computeFastSet):
  7983. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7984. Fixed abort when peer's ip address is IPv4-mapped address.
  7985. * src/DefaultBtContext.cc (computeFastSet)
  7986. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  7987. cannot handle IPv4-mapped addresses.
  7988. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  7989. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7990. Proper return value handling for OpenSSL functions.
  7991. * src/LibsslDHKeyExchange.h
  7992. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7993. Random bytes generation using libgcrypt and OpenSSL.
  7994. * src/DHTUtil.{h, cc}
  7995. * test/DHTUtilTest.cc
  7996. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7997. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  7998. received.
  7999. * src/DHTMessageReceiver.cc (receiveMessage)
  8000. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8001. Fixed the bug that a return code is always 0. BUG#1897704
  8002. If error occurred during the download or there exist unfinished
  8003. downloads, aria2 returns with code 1.
  8004. * src/RequestGroupMan.{h, cc}
  8005. * src/MultiUrlRequestInfo.{h, cc}
  8006. * src/main.cc
  8007. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8008. IPv6 support for SocketCore class.
  8009. TODO: In SocketCore::establishConnection(), this is insufficient to
  8010. determin the failure of connect() here because the socket is
  8011. non-blocking state. The next addresses should be tried after select().
  8012. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  8013. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  8014. instead which address family independent.
  8015. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  8016. information in a compact peer format which is for IPv4 only.
  8017. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  8018. this is a spec of BitTorrent protocol.
  8019. * src/SocketCore.{h, cc}
  8020. * src/PeerMessageUtil.cc
  8021. * test/SocketCoreTest.cc
  8022. * test/PeerMessageUtilTest.cc
  8023. * test/DHTConnectionImplTest.cc
  8024. Handle IPv4-mapped addresses.
  8025. * src/DHTNode.cc: Now identity is determined by node id.
  8026. * src/DHTMessageTrackerEntry.cc
  8027. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  8028. should handle it.
  8029. * src/DHTRoutingTableDeserializer.cc
  8030. * src/DHTMessageFactoryImpl.cc
  8031. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8032. Change the unit of --stop option from a minute to a second.
  8033. * src/usage_text.h
  8034. * src/DownloadEngineFactory.cc
  8035. * src/OptionHandlerFactory.cc
  8036. * src/message.h
  8037. * src/TimedHaltCommand.cc
  8038. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8039. Make listening socket non-block mode.
  8040. * src/FtpConnection.cc
  8041. * src/FtpNegotiationCommand.{h, cc}
  8042. * src/PeerListenCommand.cc
  8043. Fixed the bug that cause slow ftp negotiation.
  8044. * src/FtpNegotiationCommand.{h, cc}
  8045. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8046. Added basic tag to --enable-dht, --dht-listen-port option.
  8047. * src/HelpItemFactory.cc (createHelpItems)
  8048. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8049. Updated text.
  8050. * src/usage_text.h
  8051. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8052. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  8053. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8054. Determin _threadtholdSpeed in each constructor for
  8055. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  8056. * src/ActivePeerConnectionCommand.{h, cc}
  8057. * src/PeerReceiveHandshakeCommand.{h, cc}
  8058. * src/BtSetup.cc
  8059. * src/BtConstants.h
  8060. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8061. Added --bt-min-crypto-level and --bt-require-crypto options.
  8062. * src/OptionHandlerFactory.cc
  8063. * src/MSEHandshake.cc
  8064. * src/HelpItemFactory.cc
  8065. * src/option_processing.cc
  8066. * src/ReceiverMSEHandshakeCommand.cc
  8067. * src/prefs.h
  8068. * src/DefaultBtAnnounce.cc
  8069. * src/InitiatorMSEHandshakeCommand.cc
  8070. * src/usage_text.h
  8071. * test/MSEHandshakeTest.cc
  8072. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8073. Bump version number to 0.13.0b
  8074. * configure.ac
  8075. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8076. Updated doc.
  8077. * src/MessageDigestHelper.h:
  8078. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8079. Use raw message digest as a token instead of its hexadecimal
  8080. representation.
  8081. * src/DHTTokenTracker.cc (generateToken)
  8082. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8083. Added Message Stream Encryption(MSE) support.
  8084. Currently, aria2 accepts incoming connections with Obfuscation Header
  8085. and legacy BitTorrent Header and establishes connections with
  8086. Obfuscation Header first and if failed then retry with legacy
  8087. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  8088. choose ARC4. The new option to change the default behavior is planned.
  8089. For tracker extension, "supportcrypto=1" is added statically.
  8090. * src/PeerInitiateConnectionCommand.{h, cc}
  8091. * src/PeerConnection.{h, cc}
  8092. * src/HandleRegistry.h
  8093. * src/SocketCore.h
  8094. * src/PeerReceiveHandshakeCommand.{h, cc}
  8095. * src/BtRegistry.{h, cc}
  8096. * src/PeerListenCommand.cc
  8097. * src/InitiatorMSEHandshakeCommand.{h, cc}
  8098. * src/ReceiverMSEHandshakeCommand.{h, cc}
  8099. * src/MSEHandshake.{h, cc}
  8100. * src/ARC4Encryptor.h
  8101. * src/ARC4Decryptor.h
  8102. * src/LibgcryptARC4Encryptor.h
  8103. * src/LibgcryptARC4Decryptor.h
  8104. * src/LibgcryptARC4Context.h
  8105. * src/LibsslARC4Encryptor.h
  8106. * src/LibsslARC4Decryptor.h
  8107. * src/LibsslARC4Context.h
  8108. * src/DHKeyExchange.h
  8109. * src/LibgcryptDHKeyExchange.h
  8110. * src/LibsslDHKeyExchange.h
  8111. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  8112. * test/DefaultBtAnnounceTest.cc
  8113. * test/ARC4Test.cc
  8114. * test/DHKeyExchangeTest.cc
  8115. Removed prepareForRetry() because it is not used.
  8116. * src/PeerAbstractCommand.{h, cc}
  8117. * src/PeerInteractionCommand.{h, cc}
  8118. * src/PeerInitiateConnectionCommand.{h, cc}
  8119. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8120. Added the ability to load nodes from torrent file. These nodes are
  8121. added to the routing table when downloading that torrent.
  8122. * src/BtContext.h
  8123. * src/DefaultBtContext.{h, cc}
  8124. * src/DHTSetup.cc
  8125. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  8126. hostname and port pair, and resolves all of them.
  8127. * src/NameResolver.{h, cc}: Added reset().
  8128. * src/RequestGroup.cc
  8129. * test/DefaultBtContextTest.cc
  8130. * test/MockBtContext.h
  8131. Removed assert() from DefaultBtContext and throw exception instead.
  8132. * src/DefaultBtContext.cc
  8133. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8134. Fixed segmentation fault bug when exiting if dht is disabled.
  8135. * src/RequestGroup.cc
  8136. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8137. Fixed typo in log message and define the message in message.h
  8138. * src/TimedHaltCommand.cc
  8139. * src/message.h
  8140. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8141. Included RecoverableException.h to fix compilation error.
  8142. * test/DHTMessageFactoryImplTest.cc
  8143. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8144. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  8145. * test/DHTPingMessageTest.cc
  8146. * test/DHTGetPeersMessageTest.cc
  8147. * test/DHTFindNodeMessageTest.cc
  8148. * test/DHTAnnouncePeerMessageTest.cc
  8149. * test/MockDHTMessage.h
  8150. * test/MockDHTMessageFactory.h
  8151. * test/MockDHTMessageDispatcher.h: New class.
  8152. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8153. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  8154. virtual.
  8155. * src/DHTMessageDispatcher.h
  8156. * src/DHTMessageDispatcherImpl.{h, cc}
  8157. * src/DHTSetup.cc
  8158. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8159. Adding handling of DHT error message. Just log error message and
  8160. throw exception.
  8161. * src/DHTMessageFactoryImpl.cc
  8162. * test/DHTMessageFactoryImplTest.cc
  8163. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8164. Added handling of dynamic cast failure.
  8165. * src/DHTNodeLookupTask.cc
  8166. * src/DHTPeerLookupTask.cc
  8167. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8168. Added the ability to stop aria2 itself when given time has passed
  8169. from start. Use --stop option to specify time in minutes.
  8170. When 0 is given, this feature is disabled.
  8171. * src/OptionHandlerFactory.cc
  8172. * src/TimeBasedCommand.h: Make _interval protected scope.
  8173. * src/HelpItemFactory.cc
  8174. * src/option_processing.cc
  8175. * src/prefs.h
  8176. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  8177. before calling RequestGroupMan::fillRequestGroupFromReserver().
  8178. Without this modification, the result list shows "ERR" when aria2 is
  8179. stopped by --stop option. It should be "INPR".
  8180. * src/DownloadEngine.{h, cc}
  8181. * src/DownloadEngineFactory.cc
  8182. * src/usage_text.h
  8183. * src/TimedHaltCommand.{h, cc}: New class.
  8184. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8185. Bootstrap through node added by port message.
  8186. Currently bootstrap is executed if the number of buckets in routing
  8187. table is 1.
  8188. * src/BtPortMessage.{h, cc}
  8189. * src/DefaultBtMessageFactory.{h, cc}
  8190. * src/PeerInteractionCommand.cc
  8191. * test/BtPortMessageTest.cc
  8192. * test/MockDHTTask.h
  8193. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8194. Extract the Peer class's member variables, which are only needed after
  8195. PeerInteractionCommand, into PeerSessionResource class.
  8196. This class is instantiated in PeerInteractionCommand class's ctor and
  8197. released in its dtor.
  8198. This will make Peer class lightweight and uses less memory for peers
  8199. which are not connected and wait in the queue.
  8200. * src/PeerChokeCommand.cc
  8201. * src/PeerSessionResource.{h, cc}
  8202. * src/PeerInteractionCommand.cc
  8203. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  8204. * src/DefaultBtInteractive.cc
  8205. * src/BtPieceMessage.cc
  8206. * src/BtInterestedMessage.cc
  8207. * src/BtUnchokeMessage.cc
  8208. * src/DefaultPeerStorage.{h, cc}
  8209. * src/PeerInitiateConnectionCommand.cc
  8210. * src/ActivePeerConnectionCommand.cc
  8211. * src/BtNotInterestedMessage.cc
  8212. * src/DefaultBtMessageDispatcher.cc
  8213. * src/BtChokeMessage.cc
  8214. * src/BtRequestMessage.cc
  8215. * src/Peer.{h, cc}
  8216. * src/BtRegistry.h
  8217. * src/TrackerWatcherCommand.cc
  8218. * src/PeerReceiveHandshakeCommand.cc
  8219. * test/BtExtendedMessageTest.cc
  8220. * test/BtAllowedFastMessageTest.cc
  8221. * test/BtCancelMessageTest.cc
  8222. * test/DefaultPieceStorageTest.cc
  8223. * test/BtBitfieldMessageTest.cc
  8224. * test/BtHaveMessageTest.cc
  8225. * test/BtNotInterestedMessageTest.cc
  8226. * test/BtRequestMessageTest.cc
  8227. * test/PeerSessionResourceTest.cc
  8228. * test/DefaultBtMessageDispatcherTest.cc
  8229. * test/PeerTest.cc
  8230. * test/BtInterestedMessageTest.cc
  8231. * test/BtRejectMessageTest.cc
  8232. * test/BtChokeMessageTest.cc
  8233. * test/DefaultPeerStorageTest.cc
  8234. * test/BtHaveNoneMessageTest.cc
  8235. * test/BtHaveAllMessageTest.cc
  8236. * test/DefaultExtensionMessageFactoryTest.cc
  8237. * test/BtUnchokeMessageTest.cc
  8238. * test/DefaultBtMessageFactoryTest.cc
  8239. * test/HandshakeExtensionMessageTest.cc
  8240. * test/UTPexExtensionMessageTest.cc
  8241. * test/DefaultBtRequestFactoryTest.cc
  8242. * test/BtPieceMessageTest.cc
  8243. Removed typedef PeerStats.
  8244. * src/PeerStat.h
  8245. * src/SegmentMan.cc
  8246. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8247. Added std namespace to copy, remove_copy, back_inserter,
  8248. front_inserter.
  8249. * src/RequestGroupMan.cc
  8250. * src/DefaultPieceStorage.cc
  8251. * src/StreamFileAllocationEntry.cc
  8252. * src/BtFileAllocationEntry.cc
  8253. * src/RequestGroup.cc
  8254. * src/MetalinkEntry.cc
  8255. * src/DelegatingPeerListProcessor.cc
  8256. * src/DefaultBtRequestFactory.cc
  8257. * src/DefaultBtMessageDispatcher.cc
  8258. * src/version_usage.cc: Included <algorithm>
  8259. * src/main.cc
  8260. * src/MetalinkParserController.cc
  8261. * src/DefaultBtContext.cc
  8262. * src/DownloadEngineFactory.cc
  8263. * src/a2algo.h
  8264. Removed.
  8265. * test/StreamUriListParserTest.cc
  8266. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8267. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  8268. ActivePeerConnectionCommand when it is given and
  8269. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  8270. * src/ActivePeerConnectionCommand.{h, cc}
  8271. * src/BtSetup.cc
  8272. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8273. Only add socket to DownloadEngine's select routine when peer or
  8274. localhost is unchoked and interested. This lowers CPU usage a
  8275. little bit.
  8276. * src/PeerInteractionCommand.cc
  8277. * src/PeerAbstractCommand.{h, cc}
  8278. * src/BtInteractive.h
  8279. * src/DefaultBtInteractive.{h, cc}
  8280. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8281. Revert previous change because get_peers message is needed for
  8282. announce_peer anyway.
  8283. * src/DHTGetPeersCommand.cc
  8284. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8285. Request peers thought DHT only when download hasn't finished.
  8286. * src/DHTGetPeersCommand.cc
  8287. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8288. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  8289. * src/DHTBucketRefreshTask.{h, cc}
  8290. * src/DHTSetup.cc
  8291. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8292. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  8293. standard classes.
  8294. Included string.h where mem* function are used.
  8295. Added namespace aria2.
  8296. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8297. Create directory before saving DHT routing table.
  8298. Now ios::failure is now handled properly.
  8299. * src/DHTAutoSaveCommand.cc
  8300. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8301. Removed unnecessary cerr.
  8302. * src/DownloadEngine.cc
  8303. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8304. Catch exception inside DHTMessageReceiver::receiveMessage().
  8305. Log unknown message.
  8306. * src/DHTMessageReceiver.{h, cc}
  8307. * src/DHTMessageFactory.h
  8308. * src/DHTMessageFactoryImpl.{h, cc}
  8309. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  8310. * src/DHTInteractionCommand.cc
  8311. * src/DHTUnknownMessage.{h, cc}
  8312. * test/DHTUnknownMessageTest.cc
  8313. * test/MockDHTMessageFactory.h
  8314. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8315. Commented out ip address comparison because a host can have multiple
  8316. ip addresses and it is hard to predict the hostname is resolved into
  8317. which one.
  8318. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  8319. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8320. * po/Makefile.in: Removed since this is generated by configure.
  8321. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8322. Fixed compiler warning about redefinition of SIZE_MAX.
  8323. Use common.h instead of config.h directly here.
  8324. * src/Platform.{h, cc}
  8325. The check of ENABLE_NLS is made in gettext.h, so it is not required
  8326. here.
  8327. * common.h
  8328. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  8329. Updated gettext related files.
  8330. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  8331. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  8332. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8333. Added DHT functionality, compatible with mainline.
  8334. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  8335. You may need to specify entry point to DHT network using
  8336. --dht-entry-point. DHT uses UDP port to listen incoming message.
  8337. Use --dht-listen-port to specify port number. Make sure that your
  8338. firewall configuration can pass through UDP traffic to the port.
  8339. The routing table is saved in $HOME/.aria2/dht.dat.
  8340. * src/DHT*
  8341. * src/BNode.{h, cc}
  8342. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  8343. particular torrent.
  8344. * src/Data.cc: Rewritten ctor.
  8345. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  8346. --dht-entry-point.
  8347. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  8348. * src/RequestGroup.cc: Initialize DHT functionality. When download
  8349. ends, remove BtContext from DHTPeerAnnounceStorage.
  8350. * src/BtPortMessage.{h, cc}: Rewritten.
  8351. * src/message.h
  8352. * src/OptionHandlerImpl.cc
  8353. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  8354. --dht-entry-point.
  8355. * src/Dictionary.{h, cc} (remove): New function.
  8356. * src/prefs.h
  8357. * src/DefaultBtMessageFactory.h
  8358. * src/BtHandshakeMessage.cc
  8359. * src/ActivePeerConnectionCommand.cc
  8360. * src/SocketCore.{h, cc}: Added datagram socket support.
  8361. * src/DefaultBtMessageFactory.cc
  8362. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  8363. Create DHT commands.
  8364. * src/BtMessageFactory.h
  8365. * src/PeerMessageUtil.{h, cc}
  8366. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8367. Fixed the bug that log file is not written when configuration file doesn't exist.
  8368. This is caused by using Logger class before LogFactory is not configured.
  8369. BUG #1875079
  8370. * src/option_processing.cc
  8371. Warning message "configuration doesn't exist" is only printed when --conf is
  8372. given.
  8373. * src/option_processing.cc
  8374. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8375. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  8376. ShaVisitor is now deprecated and slated to be removed.
  8377. * src/DefaultBtContext.cc
  8378. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8379. Externalize message to message.h
  8380. * src/Platform.cc
  8381. * src/message.h
  8382. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8383. Set default domain and default path to cookie.
  8384. * src/HttpResponse.cc
  8385. * src/CookieBox.{h, cc}
  8386. * src/CookieParser.{h, cc}
  8387. * test/CookieParserTest.cc
  8388. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8389. Added --no-conf and --conf-path command-line option.
  8390. --no-conf option disables loading aria2.conf file.
  8391. --conf-path option changes the configuration file path. The default
  8392. file path is $HOME/.aria2/aria2.conf
  8393. Added a warning message when the configuration file is not found.
  8394. * src/HelpItemFactory.cc
  8395. * src/option_processing.cc
  8396. * src/prefs.h
  8397. * src/usage_text.h
  8398. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8399. Added the message to inform users that other help categories are
  8400. available in -h option.
  8401. * src/version_usage.cc
  8402. * src/TagContainer.{h, cc}
  8403. * test/TagContainerTest.cc
  8404. * src/TaggedItem.{h, cc}
  8405. * test/TaggedItemTest.cc
  8406. * src/HelpItem.h
  8407. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8408. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  8409. from PiecedSegment's ctor.
  8410. Previously Piece::getAllMissingBlockIndexes() is called from
  8411. PiecedSegment() but it is rather expensive since only first element is
  8412. used.
  8413. * src/PiecedSegment.cc
  8414. * src/Piece.{h, cc}
  8415. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8416. Rewritten get*Missing*Index functions. Now no need to allocate memory
  8417. each time these functions are called.
  8418. * src/BitfieldMan.{h, cc}
  8419. * test/BitfieldManTest.cc
  8420. * src/array_fun.h
  8421. * test/array_funTest.cc
  8422. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  8423. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  8424. filtered. Removed unnecessary cast to int32_t.
  8425. * src/BitfieldMan.{h, cc}
  8426. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8427. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  8428. payload length(4bytes) are received. This happens because lenbufLength
  8429. is not updated in this particular case and successive call of
  8430. receiveMessage() overwrites payload length with bytes recieved which
  8431. are payload body.
  8432. * src/PeerConnection.{h, cc}
  8433. * src/message.h
  8434. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8435. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  8436. peer if there are peers that have same ipaddr and port.
  8437. I've experiened segmentation fault and "pure virtual function was
  8438. called" error.
  8439. * src/Peer.h
  8440. * test/PeerTest.cc
  8441. * src/DefaultPeerStorage.cc
  8442. * test/DefaultPeerStorageTest.cc
  8443. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8444. Removed a call to isPowerOf() because it is no longer necessary here
  8445. and a request block is not always power of 2.
  8446. BUG#1866924
  8447. * src/PeerMessageUtil.cc (checkLength)
  8448. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8449. Fixed the bug that always first found Segment is removed from
  8450. usedSegmentEntries. Removed unused functions.
  8451. * src/SegmentMan.{h, cc}
  8452. * test/SegmentManTest.cc
  8453. Fixed the bug that ServerHost is not removed.
  8454. * src/RequestGroup.cc
  8455. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8456. Fixed the bug that SegmentMan::completeSegment() is not called
  8457. even if Segment is complete when --lowest-speed-limit is enabled.
  8458. BUG#1864525
  8459. * src/DownloadCommand.{h, cc}
  8460. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8461. Fixed: hash algorithm 'sha1' is always used.
  8462. * src/DownloadCommand.cc (validatePieceHash)
  8463. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8464. Added --enable-peer-exchange command-line option.
  8465. * src/OptionHandlerFactory.cc
  8466. * src/HelpItemFactory.cc
  8467. * src/option_processing.cc
  8468. * src/usage_text.h
  8469. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8470. Move extension from BtRuntime to ExtensionMessageFactory, because
  8471. extension can be specified per peer, not per torrent.
  8472. * src/DefaultBtInteractive.cc
  8473. * src/BtRuntime.h
  8474. * src/ExtendedMessagingAware.h
  8475. * src/ExtensionMessageFactory.h
  8476. * src/DefaultExtensionMessageFactory.cc
  8477. * test/DefaultExtensionMessageFactoryTest.cc
  8478. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8479. Added categorized option help. Specify category using --help option.
  8480. Also added the ability to search options in forward match.
  8481. * src/HelpItem.{h, cc}
  8482. * test/HelpItemTest.cc
  8483. * src/HelpItemFactory.{h, cc}
  8484. * src/TagContainer.{h, cc}
  8485. * test/TagContainerTest.cc
  8486. * src/option_processing.cc
  8487. * src/prefs.h
  8488. * src/TaggedItem.{h, cc}
  8489. * test/TaggedItemTest.cc
  8490. * src/version_usage.cc
  8491. * src/help_tags.h
  8492. * src/usage_text.h
  8493. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8494. Fixed segmentation fault when bad torrent metainfo is parsed.
  8495. Added dynamic_cast properly to detect the misconfiguration of metainfo
  8496. and then throw exception or skip it.
  8497. * src/DefaultBtContext.{h, cc}
  8498. * test/DefaultBtContextTest.cc
  8499. * src/AnnounceList.cc
  8500. * src/CompactPeerListProcessor.cc
  8501. * src/message.h
  8502. * src/DefaultBtAnnounce.{h, cc}
  8503. * test/DefaultBtAnnounceTest.cc
  8504. * src/BencodeVisitor.cc
  8505. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8506. Added missing "B"(=Byte). So now the message looks like this:
  8507. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  8508. * src/message.h (MSG_SHARE_RATIO_REPORT)
  8509. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8510. Show the seed ratio after torrent downloads.
  8511. For example, after torrent download completed and --seed-time and
  8512. --seed-ratio conditions are fulfilled, following message is printed
  8513. right after "Download complete: .....":
  8514. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  8515. * src/RequestGroupMan.cc
  8516. * src/RequestGroup.{h, cc}
  8517. * src/message.h
  8518. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8519. Remove a defunct control file. A defunct control file means that while
  8520. it exists, but the corresponding download file is missing.
  8521. After its removal, a download restarts from the beginning.
  8522. * src/RequestGroup.cc
  8523. * src/message.h
  8524. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8525. Allocate bitfield in Peer when it is really used. More specifically,
  8526. bitfield in Peer is allocated after the connection is established and
  8527. deallocated when the connection is dropped.
  8528. Since 2 parameters(piece length and total length) was removed from the
  8529. constructor of Peer class, many test classes were modified accordingly.
  8530. See svn log for more detailed information.
  8531. * src/PeerInteractionCommand.cc
  8532. * src/CompactPeerListProcessor.cc
  8533. * src/Peer.cc
  8534. * src/DefaultPeerListProcessor.cc
  8535. * src/PeerListenCommand.cc
  8536. * src/PeerReceiveHandshakeCommand.cc
  8537. Fixed memory leak
  8538. * src/Piece.cc
  8539. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8540. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  8541. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  8542. command-line options.
  8543. * src/option_processing.cc
  8544. * src/ActivePeerConnectionCommand.cc
  8545. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8546. Send have message to peer if it already has the piece.
  8547. * src/BtHaveMessage.{h, cc}
  8548. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8549. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  8550. port.
  8551. * src/DefaultPeerStorage.{h, cc}
  8552. * test/DefaultPeerStorageTest.cc
  8553. * src/HandshakeExtensionMessage.cc
  8554. * test/HandshakeExtensionMessageTest.cc
  8555. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  8556. * src/PeerStorage.h
  8557. * test/MockPeerStorage.h
  8558. * src/PeerListenCommand.cc
  8559. * src/PeerReceiveHandshakeCommand.cc
  8560. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8561. Added --metalink-enable-unique-protocol option.
  8562. * src/Metalink2RequestGroup.cc
  8563. * src/option_processing.cc
  8564. * src/prefs.h
  8565. * src/version_usage.cc
  8566. * doc/aria2c.1.txt
  8567. * doc/aria2c.1
  8568. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8569. Allow a peer in incomingPeer to be added peers.
  8570. * src/DefaultPeerStorage.cc
  8571. * test/DefaultPeerStorageTest.cc
  8572. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8573. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  8574. I could reproduce this bug in following procedure:
  8575. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  8576. 2. Restart aria2.
  8577. 3. You see the download stopped around 99%.
  8578. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8579. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  8580. If timeout is reached, then _nextCommand is unused and it may contains
  8581. segments and they won't be canceled. Actually, timeout is not needed
  8582. here because if the server dropped connection, then retry is made.
  8583. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8584. Added uTorrent compatible Peer Exchange.
  8585. * src/BencodeVisitor.{h, cc}
  8586. * test/BencodeVisitorTest.cc
  8587. * src/BtConstants.h
  8588. * src/BtContext.h: Added 'private' flag.
  8589. * src/BtExtendedMessage.{h, cc}
  8590. * test/BtExtendedMessageTest.cc
  8591. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  8592. reserved field.
  8593. * test/BtHandshakeMessageTest.cc
  8594. * src/BtMessageFactory.h
  8595. * src/BtRegistry.h
  8596. * src/BtRuntime.h: This class holds default extension message IDs for
  8597. aria2. By default, aria2 uses ID 8 for ut_pex.
  8598. * src/DefaultBtContext.cc
  8599. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  8600. When it is true, aria2 enables ut_pex. This value is set by
  8601. PeerInteractionCommand.
  8602. * src/DefaultBtMessageFactory.{h, cc}
  8603. * test/DefaultBtMessageFactoryTest.cc
  8604. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  8605. handling to DefaultBtInteractive class.
  8606. * src/DefaultExtensionMessageFactory.{h, cc}
  8607. * test/DefaultExtensionMessageFactoryTest.cc
  8608. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  8609. the container(peers and incomingPeers. The equality is determined by
  8610. Peer::id).
  8611. * test/DefaultPeerStorageTest.cc
  8612. * src/ExtensionMessage.h
  8613. * test/MockExtensionMessage.h
  8614. * src/ExtensionMessageFactory.h
  8615. * test/MockExtensionMessageFactory.h
  8616. * src/HandshakeExtensionMessage.{h, cc}
  8617. * test/HandshakeExtensionMessageTest.cc
  8618. * src/MetaEntry.h
  8619. * src/Peer.{h, cc}
  8620. * src/PeerInteractionCommand.cc
  8621. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  8622. addIncomingPeer.
  8623. * src/PeerMessageUtil.{h, cc}
  8624. * src/PeerObject.h
  8625. * src/UTPexExtensionMessage.{h, cc}
  8626. * test/UTPexExtensionMessageTest.cc
  8627. * src/message.h
  8628. * src/prefs.h
  8629. Fixed the bug that returns incomplete data when it contains null
  8630. character. A convenient constructor was also added.
  8631. * src/Data.{h, cc}
  8632. Rewritten.
  8633. * src/CompactPeerListProcessor.cc
  8634. Fixed typos.
  8635. * src/message.h
  8636. * src/MetaFileUtil.cc
  8637. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8638. Added "Status Legend" label to the explanation text of 'stat' in
  8639. download result and moved it to the last. BUG#1848214
  8640. * src/RequestGroupMan.cc
  8641. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8642. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  8643. * src/Makefie.am
  8644. * test/Makefile.am
  8645. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8646. Fixed the bug that prevents aria2 from loading cookie file when expire
  8647. value is greater than 2^31-1. BUG#1851066
  8648. * src/CookieBoxFactory.cc
  8649. * test/CookieBoxFactoryTest.cc
  8650. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8651. Fixed possible memory leak when an exception is thrown.
  8652. * src/XML2SAXMetalinkProcessor.cc
  8653. Added Expat support. If both libxml2 and Expat are installed, then
  8654. libxml2 is used by default.
  8655. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  8656. ExpatMetalinkProcessor according to the configuration.
  8657. * src/ExpatMetalinkProcessor.{h, cc}
  8658. * src/main.cc: Removed libxml2 specific header and init/free function.
  8659. * src/MetalinkProcessorFactory.{h, cc}
  8660. * src/MetalinkHelper.cc
  8661. * src/Metalinker.h: Removed unnecessary libxml2 header.
  8662. * src/MetalinkProcessor.h
  8663. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  8664. MetalinkProcessorTest is used instead.
  8665. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  8666. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  8667. MetalinkProcessorFactory::newInstance().
  8668. * m4/libexpat.m4
  8669. * configure.ac: Added configuration options for libexpat.
  8670. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8671. Disabled -s option in metalink download.
  8672. * src/Metalink2RequestGroup.cc
  8673. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8674. If several protocols are available for a mirror in metalink file,
  8675. aria2 now use one of them. --metalink-preferred-protocol option was
  8676. added to specify the preference of protocol.
  8677. * src/AbstractCommand.cc
  8678. * src/OptionHandlerFactory.cc
  8679. * src/ServerHost.{h, cc}
  8680. * src/Metalink2RequestGroup.cc
  8681. * src/RequestGroup.{h, cc}
  8682. * test/RequestGroupTest.cc
  8683. * src/option_processing.cc
  8684. * src/prefs.h
  8685. * src/HttpResponseCommand.cc
  8686. * src/MetalinkResource.{h, cc}
  8687. * src/FtpNegotiationCommand.cc
  8688. * src/MetalinkEntry.{h, cc}
  8689. * src/MetalinkEntryTest.cc
  8690. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8691. Code cleanup and added debug log.
  8692. * src/PeerConnection.cc
  8693. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8694. Compiler error fix: applied the patch by Tiziano Mueller
  8695. * src/RequestGroup.cc
  8696. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8697. Fixed the bug: only first announce URL is tried in AnnounceTier,
  8698. in stopped and completed event.
  8699. * src/AnnounceList.{h, cc}
  8700. * test/AnnounceListTest.cc
  8701. * src/DefaultBtAnnounce.cc
  8702. * test/DefaultBtAnnounceTest.cc
  8703. Sorted URLs.
  8704. * test/Metalink2RequestGroupTest.cc
  8705. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8706. Removed unnecessary string copy. Updated doc and corrected indentation.
  8707. * src/Base64.cc
  8708. Fixed compilation warnings
  8709. * test/DataTest.cc
  8710. * test/HttpRequestTest.cc
  8711. * test/MetaFileUtilTest.cc
  8712. * test/RequestTest.cc
  8713. * Release 0.12.0
  8714. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8715. Updated translations
  8716. * po/{de,fr,ja,nl,ru}.po
  8717. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  8718. translations. Many thanks to translators.
  8719. * po/{ca,es,it,pt_BR,sv}.po
  8720. * po/LINGUAS
  8721. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8722. Added a notice about URL
  8723. * src/version_usage.cc
  8724. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  8725. Fixed the bug#1845750; CTRL+C does not stop torrent.
  8726. aria2 repeatedly sends stopped request when tracker returns error code.
  8727. * src/AnnounceList.cc
  8728. * test/AnnounceListTest.cc
  8729. * src/AnnounceTier.h
  8730. Added a message when ctrl-c is hit.
  8731. Now second ctrl-c is also handled in signal handler.
  8732. * src/RequestGroupMan.{h, cc}
  8733. * src/RequestGroup.{h, cc}
  8734. * src/MultiUrlRequestInfo.cc
  8735. * src/DownloadEngine.cc
  8736. * src/TrackerWatcherCommand.cc
  8737. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8738. Code cleanup
  8739. * src/Base64.cc (encode)
  8740. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8741. Changed Direct/IO enable/disable procesure in file allocation routine.
  8742. * src/SingleFileAllocationIterator.cc
  8743. (SingleFileAllocationIterator):
  8744. Disable directIO if offset is not multiple of 512.
  8745. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  8746. * src/MultiFileAllocationIterator.cc (allocateChunk):
  8747. Enable created SingleFileAllocationIterator's directIO.
  8748. * src/FileAllocationEntry.cc
  8749. (FileAllocationEntry): Enable directIO here.
  8750. (~FileAllocationEntry): Disable directIO here.
  8751. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8752. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  8753. * src/Peer.{h, cc}
  8754. * src/DefaultPieceStorage.cc
  8755. * test/DefaultPieceStorageTest.cc
  8756. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8757. Rewritten direct I/O support routine
  8758. * src/SingleFileAllocationIterator.cc
  8759. * src/MultiDiskAdaptor.{h, cc}
  8760. * src/ByteArrayDiskWriter.h
  8761. * src/AbstractSingleDiskAdaptor.h
  8762. * src/AbstractDiskWriter.cc
  8763. * src/DefaultPieceStorage.cc
  8764. * src/DiskWriter.h
  8765. * src/BinaryStream.h
  8766. * src/IteratableChunkChecksumValidator.cc
  8767. * src/IteratableChecksumValidator.cc
  8768. * src/CheckIntegrityEntry.cc
  8769. * src/FileAllocationEntry.cc
  8770. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8771. Fixed typo
  8772. * src/version_usage.cc
  8773. Updated doc
  8774. * doc/aria2c.1.txt
  8775. * doc/aria2c.1
  8776. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8777. Fixed compile error without message digest support.
  8778. * src/FileMetalinkParserState.cc
  8779. * src/MetalinkParserController.{h, cc}
  8780. * test/XML2SAXMetalinkProcessorTest.cc
  8781. * test/MetalinkParserControllerTest.cc
  8782. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8783. Enable direct I/O support in checksum checking.
  8784. * src/IteratableChunkChecksumValidator.{h, cc}
  8785. * test/IteratableChunkChecksumValidatorTest.cc
  8786. * src/CheckIntegrityEntry.cc
  8787. * src/PieceHashCheckIntegrityEntry.cc
  8788. * src/IteratableChecksumValidator.{h, cc}
  8789. * src/BtCheckIntegrityEntry.cc: Added doc.
  8790. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8791. Added --allow-piece-length-change option.
  8792. * src/DefaultBtProgressInfoFile.cc
  8793. * test/DefaultBtProgressInfoFileTest.cc
  8794. * src/OptionHandlerFactory.cc
  8795. * src/option_processing.cc
  8796. * src/prefs.h
  8797. * src/version_usage.cc
  8798. * doc/aria2c.1.txt
  8799. * doc/aria2c.1
  8800. Fixed: duplicated result entry appears when exception is thrown in
  8801. RequestGroup::createInitiateConnectionCommand().
  8802. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  8803. Add RequestGroup to _requestGroup after RequetGroup::
  8804. createInitiateConnectionCommand() succeeds.
  8805. Externalized message
  8806. * src/XML2SAXMetalinkProcessor.cc
  8807. * src/message.h
  8808. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8809. Forced download abort when received negative response from http/ftp
  8810. server.
  8811. * src/HttpResponseCommand.cc
  8812. * src/FtpNegotiationCommand.cc
  8813. * src/HttpResponse.cc
  8814. * src/FtpConnection.cc
  8815. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8816. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  8817. the predecessor, Xml2MetalinkParser class.
  8818. I tested them against 94KB metalink file with 1234 chunk checksums.
  8819. The new one parsed it in 22msec, while it took 6000msec with old one.
  8820. * src/XML2SAXMetalinkProcessor.{h, cc}
  8821. * test/XML2SAXMetalinkProcessorTest.cc
  8822. * src/MetalinkParserController.{h, cc}
  8823. * test/MetalinkParserControllerTest.cc
  8824. * src/MetalinkParserState.h: Also added 16 subclasses.
  8825. * src/main.cc
  8826. * src/Metalink2RequestGroup.cc
  8827. * src/MetalinkHelper.cc
  8828. * src/MetalinkEntry.cc
  8829. * src/ChunkChecksum.h
  8830. Rewritten Base64 class for better performance.
  8831. * src/Base64.{h, cc}
  8832. * test/Base64Test.cc
  8833. * src/HttpRequest.cc
  8834. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8835. Fixed the bug#1841757: aria2 will connect to server to only get
  8836. file size.
  8837. * src/StreamFileAllocationEntry.cc
  8838. * src/option_processing.cc
  8839. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  8840. downloads.
  8841. * src/FtpNegotiationCommand.cc
  8842. Suppressed wrong message when finding PreDownloadHandler
  8843. * src/RequestGroup.cc
  8844. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8845. Updated usage
  8846. * src/version_usage.cc
  8847. Updated man page
  8848. * doc/aria2c.1.txt
  8849. * doc/aria2c.1
  8850. Updated po files
  8851. * po/aria2c.pot
  8852. * po/*.po
  8853. * po/*.gmo
  8854. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8855. Eliminated g++-4.2 warning
  8856. * src/DownloadHandlerConstants.{h, cc}
  8857. * src/Util.cc
  8858. * test/MetaFileUtilTest.cc
  8859. * test/PStringBuildVisitorTest.cc
  8860. Fixed bug: --check-integrity doesn't work for multi file torrent.
  8861. * src/RequestGroup.cc
  8862. * src/BtCheckIntegrityEntry.cc
  8863. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8864. Fixed a2io.h
  8865. * src/a2io.h
  8866. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8867. Added direct I/O support. The current implementation uses O_DIRECT,
  8868. which is not posix standard and is tested on linux 2.6.21.
  8869. Currently only file allocation uses direct I/O.
  8870. * src/SingleFileAllocationIterator.{h, cc}
  8871. * test/SingleFileAllocationIteratorTest.cc
  8872. * src/MultiFileAllocationIterator.{h, cc}
  8873. * test/MultiFileAllocationIteratorTest.cc
  8874. * src/BinaryStream.h
  8875. * src/DiskWriter.h
  8876. * src/AbstractDiskWriter.{h, cc}
  8877. * src/ByteArrayDiskWriter.h
  8878. * src/DiskAdaptor.h
  8879. * src/AbstractSingleDiskAdaptor.{h, cc}
  8880. * src/MultiDiskAdaptor.{h, cc}
  8881. * src/FileAllocationEntry.cc
  8882. * src/Util.{h, cc}
  8883. * src/OptionHandlerFactory.cc
  8884. * src/prefs.h
  8885. * src/version_usage.cc
  8886. * src/option_processing.cc
  8887. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  8888. handleException.
  8889. * src/MultiFileAllocationIterator.cc
  8890. Added EINTR handling
  8891. * src/SocketCore.cc
  8892. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8893. Updated usage
  8894. * src/version_usage.cc
  8895. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8896. Applied Ross's patch for MinGW port.
  8897. * src/DownloadEngine.h
  8898. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8899. Set Content-Type to SingleFileDownloadContext when http response is
  8900. received.
  8901. * src/HttpResponseCommand.cc
  8902. * src/HttpResponse.{h, cc}
  8903. * test/HttpResponseTest.cc
  8904. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8905. Rewritten to add content-type support.
  8906. * src/DownloadHandler.{h, cc}
  8907. * src/BtPostDownloadHandler.{h, cc}
  8908. * test/BtPostDownloadHandlerTest.cc
  8909. * src/MetalinkPostDownloadHandler.{h, cc}
  8910. * test/MetalinkPostDownloadHandlerTest.cc
  8911. * src/PostDownloadHandler.{h, cc}
  8912. * src/DownloadHandlerConstants.{h, cc}
  8913. * src/RequestGroup.cc
  8914. * src/HttpResponseCommand.cc
  8915. * src/FtpNegotiationCommand.cc
  8916. * src/SingleFileDownloadContext.{h, cc}
  8917. * src/RequestGroup.h
  8918. * src/RequestGroupCriteria.h
  8919. * src/ContentTypeRequestGroupCriteria.h
  8920. Added 'mem' option value for --follow-metalink, --follow-torrent.
  8921. If it is give, metalink/torrent file is not written to the disk, but
  8922. just is kept in memory. Parsing is occurred on memory.
  8923. * src/MetalinkHelper.{h, cc}
  8924. * src/MetalinkProcessor.h
  8925. * src/Xml2MetalinkProcessor.{h, cc}
  8926. * test/Xml2MetalinkProcessorTest.cc
  8927. * src/DownloadHandlerFactory.{h, cc}
  8928. * test/DownloadHandlerFactoryTest.cc
  8929. * src/PreDownloadHandler.{h, cc}
  8930. * src/OptionHandlerFactory.cc
  8931. * src/DefaultBtContext.{h, cc}
  8932. * test/DefaultBtContextTest.cc
  8933. * src/version_usage.cc
  8934. * src/Metalink2RequestGroup.{h, cc}
  8935. * src/RequestGroup.{h, cc}
  8936. * src/a2functional.h
  8937. * test/a2functionalTest.cc
  8938. * src/MemoryBufferPreDownloadHandler.{h, cc}
  8939. * src/OptionHandlerImpl.h
  8940. * src/prefs.h
  8941. * src/Util.{h, cc}
  8942. * test/UtilTest.cc
  8943. Keep DownloadResult rather than RequestGroup after downloads to reduce
  8944. memory usage.
  8945. * src/RequestGroupMan.{h, cc}
  8946. * src/DownloadEngine.cc
  8947. * src/BtDependency.{h, cc}: Changed the type of dependee from
  8948. WeakHandle to SharedHandle because WeakHandle could be null.
  8949. * src/RequestGroup.{h, cc}
  8950. * src/DownloadEngineFactory.cc
  8951. * src/DownloadResult.h
  8952. Set totalLength after download finished
  8953. * src/UnknownLengthPieceStorage.{h, cc}
  8954. Keep torrent file specified in metalink in memory.
  8955. * src/Metalink2RequestGroup.cc
  8956. * src/BtDependency.cc
  8957. * src/TrueRequestGroupCriteria.h
  8958. Fixed the bug: seekg is used where seekp should be used.
  8959. * src/ByteArrayDiskWriter.cc
  8960. * test/ByteArraydiskWriterTest.cc
  8961. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8962. Fixed syntax error
  8963. * test/SequenceTest.cc
  8964. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8965. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  8966. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  8967. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  8968. * src/RequestGroup.cc (downloadFinishedByFileLength)
  8969. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8970. Added the check to see whether ares_host_callback accepts timeouts
  8971. with c-ares; only c-ares 1.5.0 or newer accepts it.
  8972. * src/NameResolver.{h, cc}
  8973. * m4/libcares.m4
  8974. * configure.ac: Set C++ for language choice.
  8975. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8976. Fixed: compilation fails without c-ares/ares
  8977. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  8978. Generate http/ftp commands only when download is incomplete.
  8979. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  8980. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8981. Corrected typo. Examples are removed since they are available in man
  8982. page.
  8983. * src/version_usage.cc
  8984. Updated man page.
  8985. * doc/aria2c.1
  8986. * doc/aria2c.1.txt
  8987. * doc/makeman: Commented out sed command.
  8988. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8989. Throw DlAbortEx when a remote file is not found.
  8990. * src/HttpResponse.cc
  8991. * src/FtpNegotiationCommand.cc
  8992. * src/message.h
  8993. Overwrite an existing file if --allow-overwrite=true is given.
  8994. * src/RequestGroup.cc
  8995. Removed unused functions
  8996. * src/AbstractCommand.h
  8997. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8998. Removed 'extern' from 'extern typedef ...' in src/*.h
  8999. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9000. Updated usage
  9001. * src/version_usage.cc
  9002. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9003. Trim announce URL
  9004. * src/DefaultBtContext.cc
  9005. * test/ShaVisitorTest.cc
  9006. Trim argument s. Give trimed s to exception constructor.
  9007. * src/Util.cc (parseInt)(parseLLInt)
  9008. * test/UtilTest.cc
  9009. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9010. Set precision back to 1.
  9011. * src/ConsoleStatCalc.cc (calculateStat)
  9012. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9013. Replaced strtol with Util::parseInt
  9014. * src/ChunkedEncoding.cc
  9015. * src/HttpConnection.cc
  9016. * src/CookieBoxFactory.cc
  9017. * src/ParameterizedStringParser.cc
  9018. * src/Util.cc
  9019. * test/UtilTest.cc
  9020. * test/OptionHandlerTest.cc
  9021. * src/Request.cc
  9022. Throw exception when empty string is given. The message for exception
  9023. changed.
  9024. * src/Util.cc (parseInt)(parseLLInt)
  9025. * src/message.h
  9026. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9027. Set precision to 2 because share ratio is rounded into 1.0 if precision
  9028. set to 1.
  9029. * src/ConsoleStatCalc.cc (calculateStat)
  9030. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9031. Preallocate non-requested file which is adjacent forward to requested
  9032. file('requested' files means the files given in --select-file option)
  9033. if they share a same piece.
  9034. This fixes long pause in the file system which doesn't support sparse
  9035. files like FAT32 while downloading.
  9036. * src/MultiFileAllocationIterator.{h, cc}
  9037. * test/MultiFileAllocationIteratorTest.cc
  9038. * src/FileEntry.{h, cc}
  9039. Removed unused _option.
  9040. * src/MultiDiskAdaptor.h
  9041. * test/MultiDiskAdaptorTest.cc
  9042. * src/DefaultPieceStorage.cc
  9043. Set the default value of --seed-ratio to 1.0.
  9044. If 0.0 is given, then seeding continues regardless of share ratio.
  9045. * src/version_usage.cc
  9046. * src/option_processing.cc
  9047. * src/BtSetup.cc
  9048. * doc/aria2c.1.txt
  9049. * doc/aria2c.1
  9050. Fixed: Selective download is not working in BitTorrent
  9051. * src/RequestGroup.cc
  9052. Introduced Sequence class. Use this instead of Util::unfoldRange()
  9053. * src/PieceStorage.h
  9054. * test/MockPieceStorage.h
  9055. * src/UnknownLengthPieceStorage.h
  9056. * src/DefaultPieceStorage.{h, cc}
  9057. * src/Metalink2RequestGroup.cc
  9058. * src/RequestGroup.cc
  9059. * src/Sequence.h
  9060. * test/SequenceTest.cc
  9061. * src/IntSequence.h
  9062. * src/message.h
  9063. * src/Util.{h, cc}
  9064. * test/UtilTest.cc
  9065. Added new function 'parse' to catch exception thrown by subclass's
  9066. parseArg
  9067. * src/OptionHandler.h
  9068. * src/OptionParser.cc
  9069. * src/NameMatchOptionHandler.h
  9070. * src/OptionHandlerImpl.h
  9071. * test/OptionHandlerTest.cc
  9072. Added IntegerRangeOptionHandler. Used for --listen-port and
  9073. --select-file. Now --listen-port accepts range of port.
  9074. * src/OptionHandlerFactory.cc
  9075. * src/version_usage.cc
  9076. * src/OptionHandlerImpl.h
  9077. * src/option_processing.cc
  9078. * src/BtSetup.cc
  9079. * src/PeerListenCommand.{h, cc}
  9080. * doc/aria2c.1.txt
  9081. * doc/aria2c.1
  9082. Implemented operator< for Exception class to provide easy way to print
  9083. exception stack trace.
  9084. * src/Exception.{h, cc}
  9085. * src/main.cc
  9086. * src/option_processing.cc
  9087. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9088. * src/version_usage.cc
  9089. (showVersion): Reworked.
  9090. (showUsage): Added examples.
  9091. Removed Hint for total length and file name.
  9092. * src/Metalink2RequestGroup.cc
  9093. * src/RequestGroup.{h, cc}
  9094. * src/HttpResponseCommand.cc
  9095. * src/FtpNegotiationCommand.cc
  9096. Now --follow-torrent and --follow-metalink option work properly.
  9097. * src/RequestGroup.cc
  9098. Updated man page
  9099. * doc/aria2c.1.txt
  9100. * doc/aria2c.1
  9101. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9102. Removed.
  9103. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  9104. Use Segment::operator==()
  9105. * src/HttpConnection.cc
  9106. * src/Segment.h
  9107. Updated usage
  9108. * src/version_usage.cc
  9109. Added EINTR treatment.
  9110. * src/SocketCore.cc
  9111. * src/AbstractDiskWriter.cc
  9112. Rewritten.
  9113. * src/Util.cc (rangedFileCopy)
  9114. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9115. Fixed typo.
  9116. * src/version_usage.cc
  9117. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9118. Implemented. Now -c option works fine.
  9119. * src/DefaultPieceStorage.cc (markPiecesDone)
  9120. * test/DefaultPieceStorageTest.cc
  9121. Removed.
  9122. * src/SegmentMan.{h, cc}
  9123. (markAllPiecesDone)
  9124. (markPieceDone)
  9125. Synchronized po files with
  9126. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  9127. * src/fr.po
  9128. * src/ru.po
  9129. * src/de.po
  9130. * src/ja.po
  9131. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9132. Added ifdef and some modifications to compile without BitTorrent,
  9133. Metalink, MessageDigest
  9134. support.
  9135. * src/PieceHashCheckIntegrityEntry.cc
  9136. * src/MetalinkEntry.h
  9137. * src/version_usage.cc
  9138. * src/main.cc
  9139. * src/DownloadEngine.{h, cc}
  9140. * src/Metalink2RequestGroup.cc
  9141. * src/Peer.cc
  9142. * src/RequestGroup.cc
  9143. * src/MetalinkHelper.cc
  9144. * test/DefaultPieceStorageTest.cc
  9145. * test/MetalinkPostDownloadHandlerTest.cc
  9146. * test/Metalink2RequestGroupTest.cc
  9147. Hide TOTAL SPD when all downloads complete.
  9148. * src/ConsoleStatCalc.cc
  9149. Log target system information.
  9150. * src/main.cc
  9151. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9152. Now --metalink-location accepts a comma-deliminated list of locations.
  9153. * src/MetalinkEntry.{h, cc}
  9154. * test/MetalinkEntryTest.cc
  9155. * src/version_usage.cc
  9156. * src/Metalink2RequestGroup.cc
  9157. * src/Xml2MetalinkProcessor.cc
  9158. * test/Xml2MetalinkProcessorTest.cc
  9159. * doc/aria2c.1.txt
  9160. * doc/aria2c.1
  9161. * src/Util.cc (toUpper)(toLower): Rewritten.
  9162. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9163. Added the ability to detect duplicate download entry which is about to
  9164. download the same file other RequestGroup is downloading.
  9165. * src/RequestGroup.cc
  9166. * src/HttpResponseCommand.cc
  9167. * src/FtpNegotiationCommand.cc
  9168. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9169. Recalculates download progress when loading a control file,
  9170. if the piece length of DownloadContext is different from the one saved
  9171. in the control file. Currently in-flight pieces are ignored.
  9172. * src/DefaultBtProgressInfoFile.cc
  9173. * test/DefaultBtProgressInfoFileTest.cc
  9174. * src/Util.{h, cc}
  9175. * test/UtilTest.cc
  9176. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9177. Do not rotate tiers in announce-list.
  9178. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  9179. AnnounceList::allTiersFailed() used instead to detect whether all
  9180. tiers are tried and failed.
  9181. * test/DefaultBtAnnounceTest.cc
  9182. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  9183. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  9184. * test/AnnounceListTest.cc
  9185. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  9186. clause. Catch RecoverableException instead of DlRetryEx instead.
  9187. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9188. Implemented checksum validation feature(1 checksum for each file)
  9189. The validation takes place after the download.
  9190. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  9191. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  9192. * src/CheckIntegrityCommand.cc: Changed log message.
  9193. * src/Metalink2RequestGroup.cc: Set checksum to
  9194. SingleFileDownloadContext.
  9195. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  9196. PieceHashCheckIntegrity class.
  9197. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  9198. PieceHashCheckIntegrity class.
  9199. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  9200. * src/IteratableValidator.h: New class.
  9201. * src/message.h
  9202. * src/CheckIntegrityEntry.{h, cc}
  9203. * src/IteratableChunkChecksumValidator.{h, cc}
  9204. * src/SingleFileDownloadContext.h
  9205. * src/DownloadCommand.cc
  9206. --allow-overwrite=true is no longer needed to check file integrity
  9207. before download in BitTorrent download.
  9208. * src/RequestGroup.cc (getInitialCommand)
  9209. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  9210. throws exception.
  9211. * src/RequestGroupMan.cc (getInitialCommands)
  9212. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9213. urlencode the given url inside Request::parseUrl(...)
  9214. * src/Request.{h, cc}
  9215. * src/Util.{h, cc}
  9216. * test/RequestTest.cc
  9217. Removed #!metalink3! notation support because it is deleted from
  9218. the metalink specification.
  9219. * src/Request.{h, cc}
  9220. * test/RequestTest.cc
  9221. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9222. Don't connect server before checking file integrity at startup, if
  9223. filesize and output file path are known.
  9224. * src/AbstractCommand.cc
  9225. * src/StreamFileAllocationEntry.cc
  9226. * src/Metalink2RequestGroup.cc
  9227. * src/RequestGroup.{h, cc}
  9228. * src/HttpResponseCommand.cc
  9229. * src/FtpNegotiationCommand.cc
  9230. Added DownloadFailureException. If it is thrown, RequestGroup should
  9231. halt.
  9232. * src/AbstractCommand.cc
  9233. * src/DownloadFailureException.h
  9234. * src/RequestGroup.cc
  9235. Catch RecoverableException, instead of DlAbortEx.
  9236. * src/RequestGroupMan.cc
  9237. * src/FillRequestGroupCommand.cc
  9238. * src/MetaFileUtil.cc
  9239. * src/IteratableChunkChecksumValidator.cc
  9240. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  9241. getGID())
  9242. * src/CheckIntegrityCommand.cc
  9243. * src/message.h
  9244. Print gid instead of idx.
  9245. * src/RequestGroupMan.cc
  9246. Removed exception throwers declaration.
  9247. * src/DirectDiskAdaptor.{h, cc}
  9248. * src/SocketCore.{h, cc}
  9249. * src/MultiDiskAdaptor.{h, cc}
  9250. * src/HttpConnection.{h, cc}
  9251. * src/HttpResponse.{h, cc}
  9252. * src/DiskAdaptor.{h, cc}
  9253. * src/CopyDiskAdaptor.{h, cc}
  9254. * src/MultiDiskAdaptor.{h, cc}
  9255. * src/HttpHeaderProcessor.{h, cc}
  9256. * src/AbstractSingleDiskAdaptor.{h, cc}
  9257. * src/Util.{h, cc}
  9258. * test/UtilTest.cc
  9259. * src/DefaultDiskWriter.{h, cc}
  9260. * src/FtpConnection.{h, cc}
  9261. * src/AbstractDiskWriter.{h, cc}
  9262. Removed duplicate code.
  9263. * src/StreamCheckIntegrityEntry.cc
  9264. Removed unnecessary include.
  9265. * src/DiskWriter.h
  9266. Included Exception.h
  9267. * src/option_processing.cc
  9268. Included 2 files and added doc
  9269. * src/TrackerWatcherCommand.cc
  9270. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  9271. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9272. Changed CheckIntegrityEntry interface so that it can define
  9273. the action when all the chunk checksums are valid.
  9274. * src/CheckIntegrityEntry.h
  9275. * src/StreamCheckIntegrityEntry.{h, cc}
  9276. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  9277. are valid, then aira2 goes to seeding mode. Sometimes it is better
  9278. to exit rather than doing seeding. So, it would be good to toggle this
  9279. behavior.
  9280. * src/CheckIntegrityCommand.cc
  9281. * src/AbstractCommand.cc
  9282. * src/RequestGroup.cc
  9283. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9284. Reflect the download length of in-flight pieces.
  9285. It makes the download length readout more precise.
  9286. * src/DefaultPieceStorage.{h, cc}
  9287. * test/DefaultPieceStorageTest.cc
  9288. * src/a2functional.h
  9289. * test/a2functionalTest.cc
  9290. Lower CPU load when --max-download-limit is used.
  9291. There is up and down in speed indicator when enabling
  9292. http-pipelining but a download goes well. I think the problem is that
  9293. because http-pipelining is enabled, DownloadCommand is created for
  9294. each segment and in its constructor, PeerStat::downloadStart() is
  9295. called. In PeerStat::downloadStart(), speed calculation object is
  9296. reseted, which makes download speed zero.
  9297. * src/DownloadCommand.cc
  9298. Rewritten using accumulate.
  9299. * src/RequestGroupMan.cc (calculateStat)
  9300. Code clearnup.
  9301. * src/FtpNegotiationCommand.cc
  9302. * src/HttpResponseCommand.cc
  9303. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9304. Fixed: Can not resume: aria2 reports download already finished.
  9305. * src/AbstractCommand.{h, cc}
  9306. * src/HttpResponseCommand.cc
  9307. * src/FtpNegotiateCommand.cc
  9308. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9309. Now a file is stored in the directory specified in .metalnk file
  9310. (file[@name]).
  9311. * src/Metalink2RequestGroup.cc
  9312. Create the directory structure when opening the file if it doesn't
  9313. exist.
  9314. * src/AbstractDiskWriter.cc
  9315. * src/Util.{h, cc}
  9316. * src/File.h
  9317. * test/UtilTest.cc
  9318. Removed file name comparison
  9319. * src/Metalink2RequestGroup.cc
  9320. * src/HttpResponseCommand.cc
  9321. Rewritten using Util::mkdirs()
  9322. * src/FileEntry.cc (setupDir)
  9323. * test/FileEntryTest.cc
  9324. Updated doc
  9325. * src/SingleFileDownloadContext.h
  9326. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9327. Now SleepCommand dispatches nextCommand when halt is requested.
  9328. It avoids a possible long wait after hitting CTRL-C.
  9329. * src/SleepCommand.{h, cc}
  9330. * src/RequestGroupAware.{h, cc}
  9331. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9332. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  9333. to open listen port, then remove the port number from the tracker
  9334. request.
  9335. * src/DefaultBtAnnounce.cc
  9336. * test/DefaultBtAnnounceTest.cc
  9337. * test/MockPieceStorage.h
  9338. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  9339. them more testable.
  9340. * src/DefaultBtAnnounce.{h, cc}
  9341. * src/DefaultBtContext.{h, cc}
  9342. * src/Util.{h, cc}
  9343. * test/DefaultBtAnnounceTest.cc
  9344. * test/DefaultBtContextTest.cc
  9345. * test/UtilTest.cc
  9346. Added 'B' to upload bytes readout.
  9347. * src/ConsoleStatCalc.cc
  9348. Now the listen port for BitTorrent download is opened when it is
  9349. needed.
  9350. * src/DownloadEngineFactory.cc
  9351. * src/BtSetup.{h, cc}
  9352. * src/PeerListenCommand.{h, cc}
  9353. Now an exception thrown while parsing tracker response is now logged.
  9354. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  9355. called, which means no retry is made in this case, assuming a tracker
  9356. has a problem.
  9357. * src/TrackerWatcherCommand.cc
  9358. Fixed: downloading a file whose length is unkown fails.
  9359. * src/DownloadCommand.cc
  9360. Simplified prepareForNextSegment()
  9361. * src/DownloadCommand.cc
  9362. Updated
  9363. * po/POTFILES.in
  9364. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9365. Re-implemented a file listing for Metalink, which was dropped while
  9366. http/ftp/torrent integration was being implemented.
  9367. * src/MetalinkHelper.{h, cc}: New class.
  9368. * test/MetalinkHelperTest.cc
  9369. * src/main.cc
  9370. * src/Metalink2RequestGroup.cc
  9371. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9372. Added the ability to display the detailed torrent file information.
  9373. Now -S option gives not only a file listing, but also total download
  9374. length, info hash, announce URI, piece length, the number of pieces,
  9375. and mode(single or multi-torrent).
  9376. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  9377. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  9378. KiB)
  9379. * test/UtilTest.cc
  9380. * src/main.cc
  9381. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9382. Added ftp://USER:PASSWD@Servername automatic parsing.
  9383. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  9384. _password. Recognize username and password in URI.
  9385. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  9386. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  9387. * src/RequestFactory.{h, cc}: Removed.
  9388. * src/AuthConfigFactory.{h, cc}: New class.
  9389. * src/FtpConnection.cc: Use AuthConfigFactory.
  9390. * src/HttpRequest.cc: Use AuthConfigFactory.
  9391. * test/HttpRequestTest.cc: Updated.
  9392. * test/RequestTest.cc: Updated.
  9393. * test/AuthConfigFactoryTest.cc: New class.
  9394. * test/RequestFactoryTest.cc: Removed.
  9395. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9396. Use RequestGroup::allDownloadFinished() to decide whether the control
  9397. file should be removed or saved.
  9398. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  9399. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  9400. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9401. Use File::renameTo()
  9402. * src/DefaultBtProgressInfoFile.cc
  9403. Added --no-file-allocation-limit command-line option.
  9404. * src/version_usage.cc
  9405. * src/option_processing.cc
  9406. * src/OptionHandlerFactory.cc
  9407. * src/RequestGroup.{h, cc}
  9408. * src/BtCheckIntegrityEntry.cc
  9409. * src/StreamCheckIntegrityEntry.cc
  9410. * src/prefs.h
  9411. * doc/aria2c.1.txt
  9412. * doc/aria2c.1
  9413. Now prealloc is the default value for --file-allocation option.
  9414. * src/version_usage.cc
  9415. * src/option_processing.cc
  9416. * doc/aria2c.1.txt
  9417. * doc/aria2c.1
  9418. Don't URL-encode user-agent.
  9419. * src/HttpRequest.cc
  9420. Updated translations
  9421. * po/LINGUAS: Added nl for Dutch translation.
  9422. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  9423. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  9424. * po/POTFILES.in: Updated.
  9425. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9426. Added the ability to recognize url-list in a torrent file.
  9427. The retrieved URLs are attached to the corresponding FileEntry.
  9428. * src/DefaultBtContext.{h, cc}
  9429. * src/FileEntry.{h, cc}
  9430. * test/DefaultBtContextTest.cc
  9431. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9432. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  9433. after the download finishes.
  9434. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9435. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  9436. the data smaller than block length.
  9437. A block length can be specified by constructor's argument.
  9438. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  9439. Get a missing piece in the range of given FileEntry. This function is
  9440. not used in the program yet.
  9441. * src/Util.h: Added some macros.
  9442. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9443. Added HTTP/1.1 keep alive and pipelining support.
  9444. See --enable-http-keep-alive and --enable-http-pipelining option.
  9445. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  9446. Segment.
  9447. * src/HttpDownloadCommand.{h, cc}
  9448. * src/OptionHandlerFactory.cc
  9449. * src/HttpConnection.{h, cc}
  9450. * src/version_usage.cc
  9451. * src/HttpInitiateConnectionCommand.cc
  9452. * src/FtpInitiateConnectionCommand.cc
  9453. * src/Segment.h
  9454. * src/HttpRequestCommand.{h, cc}
  9455. * src/option_processing.cc
  9456. * src/prefs.h
  9457. * src/HttpResponseCommand.cc
  9458. * src/SegmentMan.{h, cc}
  9459. * src/FtpNegotiateCommand.cc
  9460. * src/HttpProxyResponseCommand.cc
  9461. * src/Request.cc
  9462. * src/HttpRequest.cc
  9463. * src/DownloadCommand.cc
  9464. * test/HttpRequestTest.cc
  9465. * test/RequestTest.cc
  9466. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9467. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  9468. finished.
  9469. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9470. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  9471. catching it inside the method.
  9472. When no file entry is found in a metalink without querying user
  9473. preferences, throw the exception with the error message that suggests
  9474. metalink file is probably broken.
  9475. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  9476. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9477. Fixed the bug that prevents remote Metalink/Torrent file from begin
  9478. processed.
  9479. * src/RequestGroupMan.cc (removeStoppedGroup)
  9480. Added debug message.
  9481. * src/BtPostDownloadHandler.cc
  9482. * src/MetalinkPostDownloadHandler.cc
  9483. * src/PostDownloadHandler.{h, cc}
  9484. * src/RequestGroup.cc
  9485. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9486. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  9487. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9488. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  9489. stops and there are any unfinished or in-progress downloads.
  9490. Added the legend of "stat".
  9491. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9492. Throw exception when chunck checksum verification fails.
  9493. * src/DownloadCommand.cc (validatePieceHash): New function.
  9494. * src/PiecedSegment.{h, cc} (clear): New function.
  9495. * src/GrowSegment.{h, cc} (clear): New function.
  9496. * src/Segment.h (clear): New function.
  9497. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  9498. * test/SegmentTest.cc
  9499. * test/GrowSegmentTest.cc
  9500. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9501. Do not send referer when redirected.
  9502. * src/Request.cc (redirectUrl)
  9503. * test/RequestTest.cc
  9504. * test/HttpRequestTest.cc
  9505. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9506. Implemented BitTorrent/http/ftp integrated download.
  9507. I've rewritten lots of files and now some headers have forward
  9508. class declarations to reduce compile time.
  9509. The implementation is extremely alpha stage, I recommend to use this
  9510. for testing purpose only.
  9511. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9512. Fixed the compilation error on 64bit platform.
  9513. * test/HttpHeaderProcessorTest.cc
  9514. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9515. Merged Ross's patch that fixes compilation problem in MinGW
  9516. * test/DefaultBtProgressInfoFileTest.cc
  9517. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9518. Updated fr.po by sebone
  9519. * po/fr.po
  9520. Updated man page.
  9521. * doc/aria2c.1.txt
  9522. * Release 0.11.3
  9523. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9524. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  9525. failure in Metalink.
  9526. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9527. Automatically save *.aria2 control file of http/ftp download in every
  9528. 60 seconds.
  9529. * src/AutoSaveCommand.{h, cc}: New class.
  9530. * src/TimeBasedCommand.{h, cc}: New class.
  9531. * src/DownloadEngineFactory.cc (newConsoleEngine)
  9532. Disable parameterized URI support by default. Added -P option to
  9533. enable the feature.
  9534. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  9535. * src/OptionHandlerFactory.cc
  9536. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  9537. Updated Japanese translation.
  9538. * po/ja.po
  9539. Updated man page.
  9540. * doc/aria2c.1.txt
  9541. * Release 0.11.3-rc
  9542. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9543. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  9544. it is successful, then renamed to *.aria2.
  9545. This prevents *.aria2 file from being truncated or corrupted when
  9546. file system becomes out of space.
  9547. * src/DefaultBtProgressInfoFile.cc (save)
  9548. * src/SegmentMan.cc (save)
  9549. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  9550. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9551. Reduced the fragmentation of bitfield in http/ftp download.
  9552. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  9553. * test/BitfieldManTest.cc
  9554. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9555. Added the ability to disable segmented download in .metalink.
  9556. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  9557. 'url' tag.
  9558. * src/MetalinkEntry.{h, cc}
  9559. * src/RequestResource.{h, cc}
  9560. * src/MetalinkRequestInfo.cc
  9561. * src/Xml2MetalinkProcessor.cc
  9562. * test/Xml2MetalinkProcessorTest.cc
  9563. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9564. Added parameterized URI support.
  9565. * src/main.cc: -Z option added.
  9566. * src/OptionHandlerFactory.cc
  9567. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  9568. * src/PStringDatum.h: New class.
  9569. * src/PStringSegment.{h,cc}: New class.
  9570. * src/PStringNumLoop.h: New class.
  9571. * src/PStringSelect.h: New class.
  9572. * src/NumberDecorator.h: New class.
  9573. * src/FixedWidthNumberDecorator.h: New class.
  9574. * src/AlphaNumberDecorator.h: New class.
  9575. * src/PStringVisitor.h: New class.
  9576. * src/PStringBuildVisitor.{h,cc}: New class.
  9577. * src/ParameterizedStringParser.{h,cc}: New class.
  9578. * src/Util.{h,cc}
  9579. (isNumber): New function.
  9580. (isLowercase): New function.
  9581. (isUppercase): New function.
  9582. (alphaToNum): New function.
  9583. * test/ParameterizedStringParserTest.cc: New class.
  9584. * test/AlphaNumberDecoratorTest.cc: New class.
  9585. * test/PStringBuildVisitorTest.cc: New class.
  9586. * test/UtilTest.cc
  9587. (testIsNumber): New function.
  9588. (testIsLowercase): New function.
  9589. (testIsUppercase): New function.
  9590. (testAlphaToNum): New function.
  9591. Added '\n' after the error message
  9592. * src/RequestInfo.h (printDownloadAbortMessage)
  9593. Added auto file renaming feature in http(s)/ftp download.
  9594. * src/main.cc: Added --auto-file-renaming command-line option.
  9595. * src/OptionHandlerFactory.cc
  9596. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  9597. * src/RequestGroup.{h, cc}
  9598. (shouldCancelDownloadForSafety): Rewritten
  9599. (tryAutoFileRenaming): New function.
  9600. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  9601. * src/HttpResponseCommand.cc
  9602. (executeInternal): Removed the call to RequestGroupMan::
  9603. isSameFileBeingDownloaded()
  9604. * src/FtpNegotiateCommand.cc
  9605. (recvSize): Removed the call to RequestGroupMan::
  9606. isSameFileBeingDownloaded()
  9607. * test/RequestGroupTest.cc: New class.
  9608. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9609. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  9610. IO.
  9611. * src/DefaultBtProgressInfoFile.cc
  9612. * src/MetaFileUtil.cc
  9613. * src/SimpleLogger.cc
  9614. * src/SegmentMan.cc
  9615. * src/Util.cc
  9616. * src/Platform.cc
  9617. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9618. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  9619. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9620. Avoid sparse files if possible, because VFAT32 doesn't support it.
  9621. * src/DefaultDiskWriter.cc (initAndOpenFile)
  9622. Fixed the bug that prevents file allocation is not done when
  9623. dowloading multi-torrent file.
  9624. * src/AbstractDiskWriter.cc (openFile)
  9625. Increase the maximum number of -j option from 15 to 45.
  9626. * src/OptionHandlerFactory.cc (createOptionHandlers)
  9627. Added fr.po, thanks to Charles Landemaine.
  9628. * po/fr.po
  9629. * po/LINGUAS
  9630. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  9631. gcc 3.4.4 support:
  9632. * src/DefaultBtContext.cc: int32_t -> int
  9633. * src/main.cc: int -> int32_t, int32_t -> int
  9634. * src/messageDigest.h: uint32_t -> unsigned int
  9635. * src/NameResolver.h: int32_t -> int
  9636. * src/PeerConnection.cc: int -> int32_t
  9637. * src/SpeedCalc.cc: int32_t -> int
  9638. * src/TrackerUpdateCommand.h: int -> int32_t
  9639. * src/Util.cc: int32_t -> int
  9640. * src/Util.h: int32_t -> int
  9641. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  9642. * test/AnnounceListTest.cc: int -> int32_t
  9643. * test/ChunkedEncodingTest.cc: int -> int32_t
  9644. * test/DataTest.cc: int -> int32_t
  9645. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  9646. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  9647. * test/DefaultPieceStorageTest.cc: int -> int32_t
  9648. * test/FeatureConfigTest.cc: int -> int32_t
  9649. * test/MetalinkEntryTest.cc: int -> int32_t
  9650. * test/MockBtRequestFactory.h: int -> int32_t
  9651. * test/MockPieceStorage.h: int -> int32_t
  9652. * test/OptionTest.cc: int -> int32_t
  9653. * test/RequestTest.cc: int -> int32_t
  9654. * test/SegmentManTest.cc: int -> int32_t
  9655. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  9656. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  9657. Move sleep functions to Util class:
  9658. * src/Util.cc
  9659. (sleep): New function.
  9660. (usleep): New function.
  9661. * src/DownloadCommand.cc: sleep -> Util::sleep
  9662. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  9663. MinGW build enhancements. The following files are added:
  9664. * src/timegm.{c,h}
  9665. Changes to support the above new files:
  9666. * configure.ac
  9667. * src/Makefile.am
  9668. * src/a2time.h
  9669. * src/Util.cc:
  9670. * src/strptime.c: Added support for %Z option.
  9671. Fixed MinGW non-blocking bug.
  9672. * src/SocketCore.cc
  9673. * src/HttpRequestCommand.cc
  9674. Miscellenous build fixes/enhancements.
  9675. * configure.ac: Added summary report.
  9676. * src/Platform.h: Tweaked #include's.
  9677. * src/a2netcompat.h: Tweaked #include's.
  9678. * src/strptime.h: Tweaked #include's.
  9679. * src/gai_strerror.c: Tweaked #include's.
  9680. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  9681. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  9682. * src/gettimeofday.h: Added HAVE_CONFIG_H
  9683. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9684. Increased the initial connection size in BitTorrent download to 40.
  9685. * src/BtRuntime.h
  9686. Added the usage message of --peer-id-prefix option.
  9687. * src/main.cc
  9688. * Release 0.11.2
  9689. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9690. MessageDigestHelper is introduced in order to simplify the use
  9691. of message digest. Removed repeated code.
  9692. The message digest algorithm is now specified by string, like "sha1",
  9693. "md5".
  9694. * src/messageDigest.{h, cc}
  9695. * src/MessageDigestHelper.{h, cc}: New class.
  9696. * src/DefaultPieceStorage.cc
  9697. * src/DefaultBtContext.{h, cc}
  9698. (computeFastSet): New function.
  9699. (setInfoHash): Added for unit testing.
  9700. (setNumPieces): Added for unit testing.
  9701. * src/DefaultBtInteractive.cc
  9702. * src/BtPieceMessage.cc
  9703. * src/Peer.cc
  9704. * src/Checksum.h
  9705. * src/message.h
  9706. * src/IteratableChecksumValidator.h
  9707. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  9708. inside it.
  9709. * src/SegmentMan.{h, cc}
  9710. (checkIntegrity): Removed.
  9711. * src/IteratableChunkChecksumValidator.{h, cc}
  9712. * src/Util.h
  9713. (sha1Sum): Removed.
  9714. (simpleMessageDigest): Removed.
  9715. (fileChecksum): Removed.
  9716. (computeFastSet): Removed.
  9717. * src/ShaVisitor.cc
  9718. * src/ChunkChecksum.h
  9719. * src/DownloadCommand.cc
  9720. Removed messageDigest virtual functions.
  9721. * src/MultiDiskAdaptor.{h, cc}
  9722. * src/DiskAdaptor.h
  9723. * src/ByteArrayDiskWriter.h
  9724. * src/DiskWriter.h
  9725. * src/DiskAdaptorWriter.h
  9726. * src/AbstractSingleDiskAdaptor.{h, cc}
  9727. * src/AbstractDiskWriter.{h, cc}
  9728. Fixed comilation error when message digest is disabled.
  9729. * src/MetalinkEntry.{h, cc}
  9730. * src/MetalinkRequestInfo.cc
  9731. Removed srandom and random.
  9732. * src/SimpleRandomizer.h
  9733. Added size() virtual function to DiskAdaptor
  9734. * src/MultiDiskAdaptor.h
  9735. Fixed the bug that causes that files are not opened correctly in
  9736. multi-file torrent.
  9737. * src/TorrentRequestInfo.cc
  9738. * src/MultiDiskAdaptor.cc
  9739. Added SHA256 support
  9740. * src/messageDigest.cc
  9741. * src/Xml2MetalinkProcessor.cc
  9742. Show supported message digest algorithms
  9743. * src/main.cc
  9744. Updated contact info.
  9745. * src/main.cc
  9746. Applied Ross's patch
  9747. * src/a2netcompat.h
  9748. * src/main.cc
  9749. Fixed the bug that prevents a remote metalink from not being processed
  9750. even if '-o foo.metalink' is specified.
  9751. * src/MetalinkRequestInfo.cc
  9752. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9753. Merged Dan's patch:
  9754. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  9755. Use va_copy to avoid core dump on amd64:
  9756. * src/SimpleLogger.cc
  9757. Updated contact info.
  9758. * src/main.cc
  9759. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  9760. digest is not available.
  9761. * src/MetalinkEntry.h
  9762. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9763. Make a2netcompat.h include a2io.h to fix compilation error:
  9764. * src/a2netcompat.h
  9765. * src/SocketCore.cc: Removed include of a2io.h
  9766. * src/Util.cc: Removed include of a2io.h
  9767. Gather time related functions to a2time.h:
  9768. * src/a2time.h: New file.
  9769. * src/DefaultPeerStorage.cc
  9770. * src/SimpleLogger.cc
  9771. * src/Util.{h, cc}
  9772. * src/SimpleRandomizer.h
  9773. * src/TimeA2.{h,cc}
  9774. * src/DownloadCommand.cc
  9775. * src/main.cc
  9776. Removed #ifdef __MINGW32__ since gai_strerror is included in
  9777. a2netcompat.h:
  9778. * src/NameResolver.cc
  9779. Fixed compilation error without openssl:
  9780. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  9781. Added default block to suppress compiler warnings:
  9782. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  9783. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  9784. MinGW build enhancements. The following files are added:
  9785. * src/gai_strerror.{c,h}
  9786. * src/gettimeofday.{c,h}
  9787. Changes to support the above new files:
  9788. * configure.ac
  9789. * src/Makefile.am
  9790. * src/a2netcompat.h
  9791. * src/TimeA2.cc
  9792. * src/DefaultPeerStorage.cc
  9793. * src/NameResolver.cc: removed mingw_strerror() function.
  9794. * src/SocketCore.cc: removed mingw_strerror() function.
  9795. Miscellaneous MinGW build fixes.
  9796. * src/a2io.h: Use _lseeki64() instead of lseek()
  9797. * src/common.h
  9798. * src/DefaultFileAllocator.cc
  9799. * src/GlowFileAllocator.cc
  9800. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  9801. * src/NameResolver.cc
  9802. (callback): Changed int32_t to int.
  9803. (resolve): Changed int32_t to int.
  9804. * src/Platform.cc
  9805. * src/Platform.h
  9806. * test/MultiDiskWriterTest.cc
  9807. * test/PeerMessageUtilTest.cc
  9808. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  9809. Other enhancements and fixes.
  9810. * src/HttpRequestCommand.cc
  9811. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  9812. * src/SocketCore.cc:
  9813. (error): New function to abstract errno/WSAGetLastError().
  9814. (errorMsg): New function to abstract errno/WSAGetLastError().
  9815. (initiateSecureConnection): Added more detailed error reporting.
  9816. * src/SocketCore.h: Added private variable blocking, to allow
  9817. proper handling of OpenSSL psuedo-errors.
  9818. * src/message.h
  9819. (EX_SSL_INIT_FAILURE)
  9820. (EX_SSL_IO_ERROR)
  9821. (EX_SSL_PROTOCOL_ERROR)
  9822. (EX_SSL_UNKNOWN_ERROR)
  9823. (EX_SSL_CONNECT_ERROR)
  9824. (EX_SOCKET_BLOCKING)
  9825. (EX_SOCKET_NONBLOCKING)
  9826. (EX_SOCKET_UNKNOWN_ERROR)
  9827. * src/Util.cc
  9828. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  9829. reserved name.
  9830. (httpGMT): Fixed typo.
  9831. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9832. Merged Ross's win32 patch(manually)
  9833. In the course of merging, following files are added.
  9834. * src/strptime.{h,c}
  9835. * src/libgen.{h,c}
  9836. * src/inet_aton.{h,c}
  9837. * src/Platform.{h,cc}
  9838. * src/localtime_r.{h,c}
  9839. * src/getaddrinfo.{h,c}
  9840. I've gethered network related things, and put them to following file:
  9841. * src/a2netcompat.h
  9842. Also io related things are put to following file:
  9843. * src/a2io.h
  9844. Changed %lld to %s because mingw32 doesn't recognize %lld.
  9845. * src/message.h
  9846. (MSG_ALLOCATION_COMPLETED)
  9847. (EX_TOO_LARGE_FILE)
  9848. (EX_SIZE_MISMATCH)
  9849. (EX_FILE_OFFSET_OUT_OF_RANGE)
  9850. (EX_INVALID_CHUNK_CHECKSUM)
  9851. (EX_INVALID_RANGE_HEADER)
  9852. * src/FileAllocationCommand.cc
  9853. * src/HttpResponse.cc
  9854. * src/RequestGroup.cc
  9855. * src/MultiDiskAdaptor.cc
  9856. * src/OptionHandlerImpl.h
  9857. * src/HttpResponseCommand.cc
  9858. * src/FtpNegotiateCommand.cc
  9859. * src/IteratableChecksumValidator.cc
  9860. * src/SegmentMan.cc
  9861. * src/ChunkChecksumValidator.cc
  9862. Added Randomizer::getRandomNumber(long int)
  9863. * src/Randomizer.h (getRandomNumber)
  9864. * src/SimpleRandomizer.h (getRandomNumber)
  9865. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  9866. * src/Util.cc (randomAlpha): Use this new function.
  9867. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9868. Converted int's to in32_t. long long int's are also converted to
  9869. int64_t
  9870. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9871. Fixed the bug that prevents cookies from being sent to the server
  9872. if the domain of cookie is FQDN and starts with ".".
  9873. * src/Cookie.cc (match)
  9874. To add the ability to change peer id.
  9875. * src/DefaultBtContext.h
  9876. (_peerIdPrefix): New variable
  9877. (setPeerIdPrefix): New function.
  9878. * src/torrentRequestInfo.cc
  9879. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  9880. DefaultBtContext.
  9881. * src/main.cc (main): Added peer-id-prefix command-line option.
  9882. The usage message is not added yet.
  9883. * src/DefaultBtContext.cc
  9884. (generatePeerId): Use _peerIdPrefix.
  9885. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  9886. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9887. Fixed the bug that prevents filename in content-disposition from
  9888. being retrieved when filename is not quoted.
  9889. * src/Util.cc (getContentDispositionFilename)
  9890. Fixed the bug that causes infinate loop and memory leak when file open
  9891. operation failed.
  9892. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  9893. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9894. Fixed the bug that causes segfault when all URIs specified are
  9895. unsupported.
  9896. * src/RequestGroupMan.cc (getInitialCommands)
  9897. Check if RequestGroup::createNextCommand() returns empty list of
  9898. commands.
  9899. * src/RequestGroup.cc (createNextCommand)
  9900. Change log level from info to error so that users can notice that
  9901. an error occurred.
  9902. Fixed the bug that causes segfault when a zero-sized file is
  9903. downloaded.
  9904. * src/BitfieldMan.cc (isAllBitSet)
  9905. Return true if bitfieldLength is 0.
  9906. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9907. * src/main.cc
  9908. (showUsage): Added 3 usage examples for metalink download.
  9909. Replace MetalinkChunkChecksum with ChunkChecksum.
  9910. * src/MetalinkChunkChecksum.h: Removed.
  9911. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  9912. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  9913. * src/Xml2MetalinkProcessor.cc
  9914. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  9915. * src/MetalinkRequestInfo.cc (execute)
  9916. * Release 0.11.1
  9917. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9918. Reads URIs from stdin when "-i -" is specified.
  9919. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  9920. * src/UriListParser.h, src/UriListParser.cc: New class.
  9921. * src/StreamUriListParser.h: New class.
  9922. * src/FileUriListParser.h: New class.
  9923. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  9924. instead of UriFileListParser.
  9925. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9926. Made console readout more readable.
  9927. * src/ConsoleDownloadEngine.cc (sendStatistics)
  9928. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9929. Fix the bug that causes -s option not to work.
  9930. * src/main.cc (main)
  9931. * src/a2algo.h: New file.
  9932. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9933. Create directory structure specified in metalink file.
  9934. * src/RequestGroup.h, src/RequestGroup.cc
  9935. (initAndOpenFile): Create a directory to store files if it does not
  9936. exist.
  9937. (getDir): New function.
  9938. Added ETA and download speed for an individual file to readout.
  9939. * src/ConsoleDownloadEngine.cc (sendStatistics)
  9940. * src/RequestGroup.h
  9941. (calculateDownloadSpeed): New function.
  9942. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9943. Made -S option work with metalink file and provided selective download
  9944. to metalink.
  9945. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  9946. (filename): Removed.
  9947. (file): New variable.
  9948. (size): Removed.
  9949. (operator=): Updated.
  9950. (getPath): New function.
  9951. (getLength): New function.
  9952. (toFileEntry): New function.
  9953. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  9954. (execute): Use toStream.
  9955. (showFileEntry): Removed.
  9956. * src/MetalinkRequestInfo.h
  9957. (targetFiles): New variable.
  9958. (setTargetFiles): New variable.
  9959. * src/MetalinkRequestInfo.cc
  9960. (execute): Added the ability to print file information included in
  9961. a metalink file.
  9962. Added selective download mode to metalink.
  9963. * src/main.cc
  9964. (showUsage): Updated to denote that -S and --select-file options are
  9965. applicable to metalink.
  9966. * src/FileEntry.h
  9967. (operator=): New function.
  9968. (getBasename): New function.
  9969. (getDirname): New function.
  9970. * src/Util.h, src/Util.cc
  9971. (toStream): New function.
  9972. * src/Xml2MetalinkProcessor.cc: Updated.
  9973. Made aria2 work with metalink with directory structure.
  9974. * src/File.h, src/File.cc
  9975. (getBasename): New function.
  9976. (getDirname): New function.
  9977. * src/RequestGroup.h, src/RequestGroup.cc
  9978. (_topDir): New variable.
  9979. (setTopDir): New function.
  9980. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  9981. Rewrote HTTP header parsing with stringstream.
  9982. * src/HttpConnection.h, src/HttpConnection.cc
  9983. (HttpRequestEntry): New class.
  9984. (headerBuf): Removed.
  9985. (headerBufLength): Removed.
  9986. (outstandingHttpRequests): Now its element type is
  9987. HttpRequestEntryHandle.
  9988. (findEndOfHeader): Removed.
  9989. (receiveResponse): Rewritten.
  9990. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  9991. Updated doc for -j option to notice that it should be used with -i
  9992. option.
  9993. * src/main.cc (showUsage)
  9994. Removed unused classes.
  9995. * src/RequestInfo.h
  9996. (FileInfo): Removed.
  9997. (checksum): Removed.
  9998. (fileInfo): Removed.
  9999. (setChecksum): Removed.
  10000. (getChecksum): Removed.
  10001. (getFileInfo): Removed.
  10002. Use ISO units.
  10003. * src/ConsoleDownloadEngine.cc
  10004. * src/TorrentConsoleDownloadEngine.cc
  10005. * src/Util.cc (abbrevSize)
  10006. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10007. Added the default listening ports to the help message.
  10008. * src/main.cc (showUsage)
  10009. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10010. Reduce the number of calls to gettimeofday to lower CPU load.
  10011. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  10012. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  10013. * src/Peer.h (calculateUploadSpeed): New function.
  10014. (calculateDownloadSpeed): New function.
  10015. * src/DefaultPeerStorage.cc
  10016. (CalculateStat): Added _now variable.
  10017. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  10018. and Peer::calculateUploadSpeed(const struct timeval&)
  10019. Drop connection if no request or piece message is exchanged in
  10020. a certain interval.
  10021. * src/DefaultBtInteractive.h
  10022. (btRuntime): New variable.
  10023. (inactiveCheckPoint): New variable.
  10024. (checkActiveInteraction): New function.
  10025. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  10026. request or piece message is received.
  10027. (checkActiveInteraction): New function.
  10028. (doInteractionProcessing): Call checkActiveInteraction.
  10029. Fixed the bug that causes remote Metalink and Torrent files are not
  10030. processed.
  10031. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  10032. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10033. Changed format of log file.
  10034. * src/SimpleLogger.cc
  10035. * Release 0.11.0
  10036. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10037. * src/AbstractCommand.cc
  10038. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  10039. MSG_MAX_TRY from error to info.
  10040. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  10041. * src/message.h
  10042. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  10043. (MSG_DOWNLOAD_ABORTED): Added %s.
  10044. (MSG_RESTARTING_DOWNLOAD): Added %s.
  10045. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  10046. * src/PeerAbstractCommand.cc
  10047. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  10048. * src/Request.h
  10049. (cookieBox): Made ShardHandle.
  10050. * src/RequestGroup.h, src/RequestGroup.cc
  10051. (createNextCommandWithAdj): New function.
  10052. * src/FileAllocationCommand.cc
  10053. (executeInternal): Use createNextCommandWithAdj().
  10054. * src/CheckIntegrityCommand.cc
  10055. (executeInternal): Use createNextCommandWithAdj().
  10056. Added --load-cookies command-option.
  10057. * src/OptionHandlerFactory.cc
  10058. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  10059. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  10060. Now aria2 can handle cookie's expiration date.
  10061. * src/Cookie.h (expires): Changed its type to time_t.
  10062. * src/main.cc: Added --load-cookies command-line option.
  10063. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  10064. * src/Util.h, src/Util.cc (httpGMT): New function.
  10065. * src/Request.cc (Request): Initialize cookieBox using
  10066. CookieBoxFactory.
  10067. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  10068. * src/CookieParser.h, src/CookieParser.cc: New class.
  10069. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  10070. * src/HttpResponseCommand.cc
  10071. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  10072. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  10073. download.
  10074. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10075. Added -j command-line option.
  10076. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10077. * src/main.cc
  10078. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  10079. Rewritten using stringstream.
  10080. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  10081. Rewritten using stringstream.
  10082. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10083. Make download size shown in MB, KB.
  10084. * src/ConsoleDownloadEngine.h (sendStatistics)
  10085. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  10086. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10087. Accept incoming connections if download rate is low.
  10088. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  10089. (_lowestSpeedLimit): New variable.
  10090. (setLowestSpeedLimit): New function.
  10091. (execute): Accept incoming connections if download rate is low.
  10092. MAX_PEERS is ignored in this case.
  10093. Disable PREF_OUT in multiple concurrent download:
  10094. * src/RequestGroup.h, src/RequestGroup.cc
  10095. (setUserDefinedFilename): New function.
  10096. * src/DownloadEngineFactory.cc
  10097. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  10098. concurrent download.
  10099. * src/DefaultSegmentManFactory.cc
  10100. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  10101. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10102. RequestGroup::getNextCommand() was renamed to createNextCommand().
  10103. Added its overloaded method.
  10104. * src/RequestGroup.h
  10105. (_numConcurrentCommand): New variable.
  10106. (setNumConcurrentCommand): New function.
  10107. * src/RequestGroup.cc
  10108. Abort download if same file is being downloaded concurrently.
  10109. * src/RequestGroup.h, src/RequestGroupMan.cc
  10110. (isSameFileBeingDownloaded): New function.
  10111. * src/HttpResponseCommand.cc (executeInternal)
  10112. * src/FtpNegotiateCommand.cc (recvSize)
  10113. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  10114. * main.cc: Added help message for -i option.
  10115. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10116. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  10117. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  10118. * src/MetalinkEntry.h
  10119. (checksum): Changed to ChecksumHandle
  10120. * src/MetalinkRequestInfo.cc
  10121. (checksum): Changed to ChecksumHandle
  10122. * src/File.cc
  10123. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  10124. * src/common.h
  10125. (DIR_OPEN_MODE): New definition
  10126. * src/RequestGroup.cc
  10127. (prepareForNextAction): Added an argument.
  10128. * src/message.h
  10129. (MSG_GOOD_CHECKSUM): New definition
  10130. (MSG_BAD_CHECKSUM): New definition
  10131. * src/HttpResponseCommand.cc
  10132. (handleDefaultEncoding): Continue download sequence in new
  10133. non-segmented download.
  10134. * src/FileAllocationEntry.h
  10135. (_nextDownloadCommand): New variable.
  10136. * src/DownloadCommand.cc
  10137. (prepareForNextSegment): Create ChecksumCommand if checksum is
  10138. available.
  10139. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  10140. * src/IteratableChecksumValidator.h,
  10141. src/IteratableChecksumValidator.cc: New class.
  10142. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  10143. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10144. Change file mode to 666:
  10145. * src/common.h (OPEN_MODE): New definition.
  10146. * src/File.cc
  10147. * src/Util.cc
  10148. * src/Directry.cc
  10149. * src/AbstractDiskWriter.cc
  10150. Change the level of log message "download aborted" to debug:
  10151. * src/PeerAbstractCommand.cc (execute)
  10152. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  10153. * src/TrackerWatcherCommand.cc
  10154. (createCommand): Sleep some seconds after request failed.
  10155. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  10156. then abort tracker request.
  10157. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10158. * Added the simultaneous download feature.
  10159. * src/main.cc: Print "Exception caught: " when exception is caught.
  10160. Use CUIDCounter instead of BtRuntime::getNewCuid():
  10161. * src/ActivePeerConnectionCommand.cc
  10162. * src/PeerInteractionCommand.cc
  10163. * src/BtRuntime.h
  10164. (cuidCounter): Removed.
  10165. (getNewCuid): Removed.
  10166. * src/DownloadEngineFactory.cc
  10167. * src/PeerListenCommand.cc
  10168. * src/TrackerUpdateCommand.cc
  10169. * src/PeerInitiateConnectionCommand.cc
  10170. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10171. * src/PeerAbstractCommand.cc
  10172. (onAbort): Call PeerStorage::returnPeer()
  10173. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  10174. (incomingPeers): New variable.
  10175. (addIncomingPeer): New function.
  10176. (returnPeer): New function.
  10177. (onErasingPeer): New function.
  10178. (addPeer): push_back -> push_front
  10179. (getActivePeers): Rewritten.
  10180. (calculateStat): Rewritten.
  10181. * src/PeerStorage.h
  10182. (TransferStat::copy): New function.
  10183. (TransferStat::TransferStat): New function.
  10184. (TransferStat::operator=): New function.
  10185. (addIncomingPeer): New function.
  10186. (returnPeer): New function.
  10187. * src/PeerListenCommand.cc
  10188. (execute): Use PeerStorage::addIncomingPeer() instead of
  10189. Peer::addPeer().
  10190. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10191. Connect to a peer actively when download speed is lower than specified
  10192. speed in torrent download:
  10193. * src/ActivePeerConnectionCommand.h: New class.
  10194. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10195. * src/HttpRequest.cc (createRequest): url-encode user-agent
  10196. * src/main.cc: Fixed the bug that prevents download if .netrc
  10197. doesn't exist.
  10198. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10199. To cache resolved hostname:
  10200. * src/AbstractCommand.h, src/AbstractCommand.cc
  10201. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  10202. Added dns cache.
  10203. * src/FtpInitiateConnectionCommand.cc
  10204. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  10205. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  10206. NameResolver working without ares.
  10207. * src/TorrentRequestInfo.cc
  10208. (execute): Don't cache dns in torrent download.
  10209. * src/HttpInitiateConnectionCommand.cc
  10210. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  10211. * src/DNSCache.h: New class.
  10212. * src/UrlRequestInfo.cc
  10213. (execute): Use dns cache.
  10214. In http request, suppress port number in http request header if port
  10215. is 80 or 443:
  10216. * src/HttpRequest.cc (getHostText): Suppress port number in http
  10217. request header if port is 80 or 443.
  10218. (createProxyRequest): Allways send port number.
  10219. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10220. To add the command-line option which disables netrc support:
  10221. * src/OptionHandlerFactory.cc
  10222. (createOptionHandlers): Added PREF_NO_NETRC.
  10223. * src/main.cc: Added -n option.
  10224. * src/prefs.h (PREF_NO_NETRC): New definition.
  10225. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  10226. V_TRUE.
  10227. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  10228. is V_FALSE. This may get configurable in the future release.
  10229. To clear peer's error status by time basis:
  10230. * src/PeerAbstractCommand.cc
  10231. (onAbort): Call Peer::startBadCondition().
  10232. * src/Peer.h, src/Peer.cc
  10233. (error): Removed.
  10234. (_badConditionStartTime): New variable.
  10235. (_badConditionInterval): New variable. Initialized to 10 seconds.
  10236. (startBadCondition): New function.
  10237. (isGood): New function.
  10238. * src/DefaultPeerStorage.cc
  10239. (addPeer): Use Peer::isGood().
  10240. (FindFinePeer): Use Peer::isGood().
  10241. Always include port number in http request header:
  10242. * src/HttpRequest.cc (getHostText): Always include port number in
  10243. http request header.
  10244. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10245. To the ability to read options from a config file:
  10246. * src/main.cc: Command-line parameter validation is delegated to
  10247. OptionHandler class.
  10248. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  10249. * src/Option.h, src/Option.cc (clear): New function.
  10250. * src/OptionParser.h, src/OptionParser.cc: New class.
  10251. * src/OptionHandler.h: New class.
  10252. * src/NameMatchOptionHandler.h: New class.
  10253. * src/OptionHandlerImpl.h: New classes.
  10254. * src/prefs.h: '_' -> '-'
  10255. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  10256. (FTP_PASV): New definition.
  10257. * src/Util.h, src/Util.cc (getRealSize): New function.
  10258. To disable netrc support if .netrc file does not have correct
  10259. permissions:
  10260. * src/File.h, src/File.cc (mode): New function.
  10261. To prevent confidential information to be logged:
  10262. * src/HttpConnection.h, src/HttpConnection.cc
  10263. (eraseConfidentialInfo): New function.
  10264. (sendRequest): Call eraseConfidentialInfo().
  10265. (sendProxyRequest): Call eraseConfidentialInfo().
  10266. * src/main.cc: Validate permissions of .netrc file.
  10267. To add --user-agent command-line option:
  10268. * src/main.cc: Added new command line option: --user-agent
  10269. * src/prefs.h (PREF_USER_AGENT): New definition.
  10270. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  10271. parameter to HttpRequest object.
  10272. * src/AbstractProxyRequestCommand.cc
  10273. (executeInternal): Set user-agent option parameter to HttpRequest
  10274. object.
  10275. Marged the patches from Dan Fandrich.
  10276. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10277. Use filename and size from Metalink file instead of sending HEAD
  10278. request:
  10279. * src/UrlRequestInfo.h
  10280. (_filename): New variable.
  10281. (_totalLength): New variable.
  10282. (setTotalLength): New variable.
  10283. (setFilename): New variable.
  10284. * src/MetalinkRequestInfo.cc
  10285. (execute): Set filename and size to UrlRequestInfo
  10286. * src/UrlRequestInfo.cc
  10287. (execute): Use filename and size from Metalink instead of seding
  10288. HEAD request to servers.
  10289. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10290. To add the ability to resume downloading a partially downloaded file
  10291. which is downloaded from the beginning:
  10292. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  10293. takes this role.
  10294. * src/main.cc: Added -c option.
  10295. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  10296. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  10297. * src/prefs.h (PREF_CONTINUE): New definition.
  10298. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  10299. * src/DefaultDiskWriter.cc
  10300. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  10301. * src/AbstractDiskWriter.h
  10302. (glowFileAllocator): New variable.
  10303. * src/AbstractDiskWriter.cc
  10304. (openExistingFile): Now preallocate file space from the end of the
  10305. existing file if totalLength argument is specified and grater than 0.
  10306. * src/UrlRequestInfo.cc: If -c option is specified and the file
  10307. to download exists in local, continue the download of the file.
  10308. --allow-overwrite=true is assumed in this context.
  10309. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  10310. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  10311. Throw exception if --check-integrity=true is specified but chunk
  10312. checksums are not provided:
  10313. * src/UrlRequestInfo.cc
  10314. Do not print URLs to stdout:
  10315. * src/UrlRequestInfo.cc
  10316. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10317. * src/Request.h: Use AuthResolver to get authentication information.
  10318. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  10319. set to RequestFactory object.
  10320. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  10321. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  10322. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  10323. create Request object.
  10324. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  10325. To integrate Netrc into exsiting classes:
  10326. * src/Request.h
  10327. (_userDefinedAuthConfig): New variable.
  10328. (findNetrcAuthenticator): New function.
  10329. (segment): Removed.
  10330. (setUserDefinedAuthConfig): New function.
  10331. (resolveHttpAuthConfigItem): New function.
  10332. (resolveFtpAuthConfigItem): New function.
  10333. (resolveHttpProxyAuthConfigItem): New function.
  10334. * src/HttpRequest.h
  10335. (authConfig): Removed.
  10336. (proxyAuthConfig): Removed.
  10337. (setAuthConfig): Removed.
  10338. (setProxyAuthConfig): Removed.
  10339. * src/UrlRequest.h
  10340. (getHeadResult): Added a parameter: authConfigHandle
  10341. * src/common.h
  10342. (SingletonHolder.h): New include.
  10343. * src/main.cc
  10344. (Netrc.h): New include.
  10345. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  10346. Added initial value of PREF_NETRC_PATH.
  10347. Added the initialization of netrc.
  10348. * src/AuthConfig.h: New class.
  10349. * src/prefs.h
  10350. (PREF_NETRC_PATH): New definition.
  10351. * src/HttpAuthConfig.h: Removed.
  10352. * src/Netrc.cc
  10353. (getRequiredNextToken): New function.
  10354. (skipMacdef): New function.
  10355. (parse): Rewritten.
  10356. * src/Netrc.h
  10357. (getRequiredNextToken): New function.
  10358. (skipMacdef): New function.
  10359. * src/Util.h, src/Util.cc
  10360. (getHomeDir): New function.
  10361. * src/TrackerWatcherComand.cc
  10362. (createRequestCommand): Use AuthConfig.
  10363. * src/FtpConnection.cc
  10364. (sendUser): Use Request::resolveFtpAuthConfigItem().
  10365. (sendPass): Use Request::resolveFtpAuthConfigItem().
  10366. * src/Request.cc
  10367. (findNetrcAuthenticator): New function.
  10368. (resolveHttpAuthConfigItem): New function.
  10369. (resolveFtpAuthConfigItem): New function.
  10370. (resolveHttpProxyAuthConfigItem): New function.
  10371. * src/UrlRequestInfo.cc: Use AuthConfig.
  10372. * src/HttpRequest.cc
  10373. (createRequest): Use authConfig.
  10374. (getProxyAuthString): Use authConfig.
  10375. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  10376. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  10377. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10378. To reduce overhead to find commands whose socket is either
  10379. readable or writable in the download engine loop:
  10380. * src/Command.h, src/Command.cc
  10381. (STATUS): New enum.
  10382. (status): New variable.
  10383. (statusMatch): New function.
  10384. (setStatusActive): New function.
  10385. (setStatusInactive): New function.
  10386. * src/DownloadEngine.h, src/DownloadEngine.cc
  10387. (executeCommand): New function.
  10388. (run): Simplified.
  10389. (waitData): Call Command::setStatusActive() when command's socket is
  10390. readable or writable.
  10391. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10392. To handle Segment as SegmentHandle:
  10393. * src/AbstractCommand.cc (execute): Rewritten.
  10394. * src/SegmentMan.h: Segment -> SegmentHandle
  10395. Introducded HttpResponse class, HttpRequest class to improve code
  10396. extensiveness and make it clear:
  10397. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  10398. HttpResponse class.
  10399. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  10400. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  10401. * src/HttpConnection.cc: Contruction of http request were moved to
  10402. HttpRequest class.
  10403. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  10404. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  10405. * src/HttpAuthConfig.h: New class.
  10406. * src/Range.h: New class.
  10407. To make FtpTunnel{Request, Response}Command and
  10408. HttpProxy{Request, Response}Command derived from
  10409. AbstractProxy{Request, Response}Command:
  10410. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  10411. Derived from AbstractProxyRequestCommand class.
  10412. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  10413. Derived from AbstractProxyResponseCommand class.
  10414. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  10415. Derived from AbstractProxyRequestCommand class.
  10416. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  10417. Derived from AbstractProxyResponseCommand class.
  10418. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  10419. : New class.
  10420. * src/AbstractProxyResponseCommand.h,
  10421. src/AbstractProxyResponseCommand.cc: New class.
  10422. To add netrc support:
  10423. * src/Netrc.h, src/Netrc.cc: New class.
  10424. * src/Util.h, src/Util.cc (split): New function.
  10425. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  10426. "Content-Range" header instead of "Range" header.
  10427. * src/HttpHeader.h
  10428. (getStatus): Removed.
  10429. (setStatus): Removed.
  10430. * src/Segment.h
  10431. (getPositionToWrite): New function.
  10432. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10433. * src/HttpHeader.h
  10434. (Range.h): New include.
  10435. (status): New variable.
  10436. (HttpHeader): Initialized status with 0.
  10437. (getStatus): New function.
  10438. (setStatus): New function.
  10439. (getRange): New function.
  10440. (HttpHeaderHandle): New function.
  10441. * src/HttpHeader.cc
  10442. (getRange): New function.
  10443. * src/Request.h
  10444. (RequestWeakHandle): New definition.
  10445. * src/HttpConnection.h
  10446. (HttpConnectionHandle): New type definition.
  10447. * src/HttpConnection.cc
  10448. (receiveResponse): Set HTTP status to headers.
  10449. * src/main.cc
  10450. (showUsage): Fixed typo.
  10451. * src/Segment.h
  10452. (SegmentHandle): New type definition.
  10453. * src/BitfieldMan.h
  10454. (getMissingUnusedLength): New function.
  10455. * src/BitfieldMan.cc
  10456. (getMissingUnusedLength): New function.
  10457. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10458. To fix static initialization order problem:
  10459. * src/BitfieldManFactory.h
  10460. (defaultRandomizer): Removed.
  10461. (factory): New variable.
  10462. (getNewFactory): Removed.
  10463. (getFactoryInstance): New function.
  10464. (setDefaultRandomizer): Rewritten.
  10465. (getDefaultRandomizer): Rewritten.
  10466. * src/BitfieldManFactory.cc
  10467. (defaultRandomizer): Removed.
  10468. (factory): Initialized to 0.
  10469. (BitfieldManFactory): Initialized randomizer to 0.
  10470. * src/DefaultPieceStorage.cc
  10471. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  10472. * src/Peer.cc
  10473. (Peer): getNewFactory() -> getFactoryInstance()
  10474. * src/SegmentMan.cc
  10475. (initBitfield): getNewFactory() -> getFactoryInstance()
  10476. * src/Piece.cc
  10477. (Piece): getNewFactory() -> getFactoryInstance()
  10478. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10479. To fix the bug that causes crash on Max OS X:
  10480. * src/SimpleRandomizer.h
  10481. (getInstance): Create new instance if the static variable is null.
  10482. * src/SimpleRandomizer.cc
  10483. (randomizer): Initialized to 0.
  10484. * src/BitfieldManFactory.h
  10485. (getNewFactory): Removed the call to setRandomizer().
  10486. To fix the miscalculation of the range of checksum:
  10487. * src/BitfieldMan.h
  10488. (isBitSetOffsetRange): New function.
  10489. * src/BitfieldMan.cc
  10490. (isBitSetOffsetRange): New function.
  10491. * src/SegmentMan.cc
  10492. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  10493. Use bitfield->getBlockLength() instead of segment.segmentLength.
  10494. * Release 0.10.1
  10495. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10496. To lower CPU usage in BitTorrent download when --max-upload-limit
  10497. command-line option specified:
  10498. * src/DefaultBtMessageDispatcher.cc
  10499. (sendMessages): Calculate uploading speed only when current message
  10500. is uploading data and is not sent yet.
  10501. * src/DefaultPeerStorage.h
  10502. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  10503. * src/HttpResponseCommand.cc
  10504. (handleDefaultEncoding): Added the cast to int32_t to itos.
  10505. This fixes compile error in Soralis 10.
  10506. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10507. To fix segfault in Metalink download:
  10508. * src/UrlRequestInfo.h
  10509. (filename): Removed.
  10510. (totalLength): Removed.
  10511. (setTotalLength): Removed.
  10512. (setFilename): Removed.
  10513. * src/MetalinkRequestInfo.cc
  10514. (execute): Do not set filename and totalLength to reqInfo.
  10515. Set chunk checksum to reqInfo if it is not null.
  10516. * src/HttpResponseCommand.cc
  10517. (executeInternal): Fixed filename in log.
  10518. (handleDefaultEncoding): Removed the call to initBitfield() and
  10519. markAllPiecesDone().
  10520. (handleOtherEncoding): Added HEAD method handling.
  10521. * src/FtpNegotiateCommand.cc
  10522. (executeInternal): Added SEQ_HEAD_OK handling.
  10523. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  10524. return false.
  10525. * src/FtpNegotiateCommand.h
  10526. (SEQ_HEAD_OK): New definition.
  10527. * src/SegmentMan.cc
  10528. (initBitfield): Delete bitfield.
  10529. (isChunkChecksumValidationReady): Fixed the condition.
  10530. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  10531. works fine.
  10532. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10533. * src/Xml2MetalinkProcessor.h
  10534. (xpathExists): New function.
  10535. * src/Xml2MetalinkProcessor.cc
  10536. (xpathExists): New function.
  10537. Not to send HEAD request if filename and size are available in Metalink
  10538. file:
  10539. * src/UrlRequestInfo.h
  10540. (filename): New variable.
  10541. (totalLength): New variable.
  10542. (setTotalLength): New function.
  10543. (setFilename): New function.
  10544. * src/MetalinkRequestInfo.cc
  10545. (execute): Set filename and size to UrlRequestInfo.
  10546. * src/MetalinkEntry.cc
  10547. (MetalinkEntry): Initialize size with 0.
  10548. * src/UrlRequestInfo.cc
  10549. (execute): Set filename and size to SegmentMan.
  10550. Not to download rest of the files after selected files are downloaded
  10551. in BitTorrent:
  10552. * src/PieceStorage.h
  10553. (allDownloadFinished): New function.
  10554. * src/DefaultBtAnnounce.cc
  10555. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  10556. downloadFinished.
  10557. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  10558. * src/DefaultPieceStorage.cc
  10559. (completePiece): Use allDownloadFinished instead of downloadFinished.
  10560. Commented out the call to finishSelectiveDownloadingMode().
  10561. (downloadFinished): Call isFilteredAllBitSet() instead of
  10562. isAllBitSet().
  10563. (allDownloadFinished): New function.
  10564. * src/DefaultBtInteractive.cc
  10565. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  10566. downloadFinished().
  10567. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  10568. * src/TorrentDownloadEngine.cc
  10569. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  10570. * src/BitfieldMan.h
  10571. (isFilteredAllBitSet): New function.
  10572. * src/ShareRatioSeedCriteria.h
  10573. (PieceStorage.h): New include.
  10574. (pieceStorage): New variable.
  10575. (evaluate):
  10576. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  10577. * src/BitfieldMan.cc
  10578. (isFilteredAllBitSet): New function.
  10579. (isAllBitSet): Filter is not took into account.
  10580. Rename --force-truncate as --allow-overwrite:
  10581. * src/TorrentRequestInfo.cc
  10582. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  10583. * src/main.cc
  10584. (showUsage): --force-truncate -> --allow-overwrite
  10585. * src/message.h
  10586. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  10587. * src/prefs.h
  10588. (PREF_FORCE_TRUNCATE): Removed.
  10589. (PREF_ALLOW_OVERWRITE): New definition.
  10590. * src/SegmentMan.cc
  10591. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  10592. * src/MetalinkRequestInfo.cc
  10593. (execute): Queueing message are now logged in info level.
  10594. * src/common.h
  10595. (LONG_LONG_MAX): Removed.
  10596. (LONG_LONG_MIN): Removed.
  10597. * src/HttpResponseCommand.cc
  10598. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  10599. * src/FtpNegotiateCommand.cc
  10600. (recvSize): LONG_LONG_MAX -> INT64_MAX
  10601. * src/main.cc
  10602. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  10603. command-line option.
  10604. (main): Added --check-integriy and --realtime-chunk-checksum
  10605. command-line option.
  10606. --force-truncate -> --allow-overwrite
  10607. Set initial value of --check-integrity option to false.
  10608. Don't show usage when error occurs while persing command-line options.
  10609. Removed deprecated --upload-limit option.
  10610. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10611. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  10612. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  10613. * src/BtAllowedFastMessage.cc:
  10614. * src/BtBitfieldMessage.cc
  10615. * src/BtCancelMessage.cc
  10616. * src/BtChokeMessage.cc
  10617. * src/BtHaveAllMessage.cc
  10618. * src/BtHaveMessage.cc
  10619. * src/BtHaveNoneMessage.cc
  10620. * src/BtInterestedMessage.cc
  10621. * src/BtNotInterestedMessage.cc
  10622. * src/BtPieceMessage.cc
  10623. * src/BtPortMessage.cc
  10624. * src/BtRejectMessage.cc
  10625. * src/BtRequestMessage.cc
  10626. * src/BtSuggestPieceMessage.cc
  10627. * src/BtUnchokeMessage.cc
  10628. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  10629. files are affected.
  10630. * src/ChunkChecksumValidator.cc
  10631. * src/SegmentMan.cc
  10632. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10633. To add chunk checksum validation:
  10634. * src/MetalinkEntry.h
  10635. (MetalinkChunkChecksum.h): New include.
  10636. (chunkChecksum): New variable.
  10637. * src/Request.h
  10638. (method): New variable.
  10639. (setMethod): New function.
  10640. (getMethod): New function.
  10641. (METHOD_GET): New static constant.
  10642. (METHOD_HEAD): New static constant.
  10643. * src/Xml2MetalinkProcessor.h
  10644. (getPieceHash): New function.
  10645. * src/PieceStorage.h
  10646. (markAllPiecesDone): New function.
  10647. (checkIntegrity): New function.
  10648. * src/FileAllocator.h
  10649. (NullFileAllocationMonitor.h): New include.
  10650. (FileAllocator): Initialize fileAllocationMonitor with new
  10651. NullFileAllocationMonitor().
  10652. * src/MultiDiskAdaptor.h
  10653. (messageDigest.h): Remove include.
  10654. (ctx): Removed.
  10655. (hashUpdate): Added ctx.
  10656. (MultiDiskAdaptor): Removed ctx.
  10657. (sha1Sum): Renamed as messageDigest.
  10658. (messageDigest): New function.
  10659. * src/UrlRequestInfo.h
  10660. (HeadResult): New class.
  10661. (digestAlgo): New variable.
  10662. (chunkChecksumLength): New variable.
  10663. (chunkChecksums): New variable.
  10664. (getHeadResult): New function.
  10665. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  10666. (setDigestAlgo): New function.
  10667. (setChunkChecksumLength): New function.
  10668. (setChunkChecksums): New function.
  10669. * src/DefaultPieceStorage.cc
  10670. (DiskAdaptorWriter.h): New include.
  10671. (ChunkChecksumValidator.h): New include.
  10672. (markAllPiecesDone): New function.
  10673. (checkIntegrity): New function.
  10674. * src/DefaultBtContext.h
  10675. (getPieceHashes): New function.
  10676. * src/TorrentRequestInfo.cc
  10677. (execute): Try to validate chunk checksum if file already exists and
  10678. .aria2 file doesn't there and user allows aria2 to overwrite it.
  10679. * src/messageDigest.h
  10680. (~MessageDigestContext): Added digestFree().
  10681. * src/MetalinkRequestInfo.cc
  10682. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  10683. * src/DiskAdaptor.h
  10684. (messageDigest.h): New include.
  10685. (sha1Sum): Renamed as messageDigest.
  10686. (messageDigest): New function.
  10687. * src/DownloadCommand.h
  10688. (PeerStat.h): New include.
  10689. (maxDownloadSpeedLimit): New variable.
  10690. (startupIdleTime): New variable.
  10691. (lowestDownloadSpeedLimit): New variable.
  10692. (peerStat): New variable.
  10693. (setMaxDownloadSpeedLimit): New function.
  10694. (setStartupIdleTime): New function.
  10695. (setLowestDownloadSPeedLimit): New function.
  10696. * src/BtContext.h
  10697. (getPieceHashes): New function.
  10698. * src/main.cc
  10699. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  10700. option to true for testing purpose.
  10701. * src/BtPieceMessage.cc
  10702. (checkPieceHash): Use messageDigest
  10703. * src/DownloadEngine.cc
  10704. (SetDescriptor): Removed.
  10705. (AccumulateActiveCommand): Removed.
  10706. (waitData): Rewritten.
  10707. (updateFdSet): Rewritten.
  10708. * src/MultiDiskAdaptor.cc
  10709. (hashUpdate): Added ctx.
  10710. (sha1Sum): Renamed as messageDigest.
  10711. (messageDigest): New function.
  10712. * src/BitfieldMan.h
  10713. (isBitRangeSet): New function.
  10714. (unsetBitRange): New function.
  10715. * src/ByteArrayDiskWriter.h
  10716. (sha1Sum): Renamed as messageDigest.
  10717. (messageDigest): New function.
  10718. * src/ConsoleDownloadEngine.cc
  10719. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  10720. * src/DiskWriter.h
  10721. (messageDigest.h): New include.
  10722. (sha1Sum): Renamed as messageDigest.
  10723. (messageDigest): New function.
  10724. * src/ChunkChecksumValidator.h: New class.
  10725. * src/DiskAdaptorWriter.h: New class.
  10726. * src/prefs.h
  10727. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  10728. (PREF_CHECK_INTEGRITY): New definition.
  10729. * src/HttpResponseCommand.cc
  10730. (handleDefaultEncoding): Added method "HEAD" handling.
  10731. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  10732. (handleOtherEncoding):
  10733. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  10734. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  10735. startupIdleTime, lowestDownloadSpeedLimit to command.
  10736. * src/SegmentMan.h
  10737. (getSegmentEntryByIndex): New function.
  10738. (getSegmentEntryByCuid): New function.
  10739. (getSegmentEntryIteratorByCuid): New function.
  10740. (diskWriter): DiskWriter -> DiskWriterHandle
  10741. (pieceHashes): New variable.
  10742. (chunkHashLength): New variable.
  10743. (digestAlgo): New variable.
  10744. (FindPeerStat): Removed.
  10745. (getPeerStat): Rewritten.
  10746. (markAllPiecesDone): New function.
  10747. (checkIntegrity): New function.
  10748. (tryChunkChecksumValidation): New function.
  10749. (isChunkChecksumValidationReady): New function.
  10750. * src/BitfieldMan.cc
  10751. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  10752. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  10753. blocks to 0.
  10754. (isBitRangeSet): New function.
  10755. (unsetBitRange): New function.
  10756. * src/FtpNegotiateCommand.cc
  10757. (executeInternal): Set maxDownloadSpeedLimit,
  10758. startupIdleTime, lowestDownloadSpeedLimit to command.
  10759. (recvSize): Added method "HEAD" handling.
  10760. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  10761. * src/AbstractSingleDiskAdaptor.cc
  10762. (sha1Sum): Renamed as messageDigest.
  10763. (messageDigest): New function.
  10764. * src/AbstractSingleDiskAdaptor.h
  10765. (sha1Sum): Renamed as messageDigest.
  10766. (messageDigest): New function.
  10767. * src/Util.h
  10768. (indexRange): New function.
  10769. * src/MetalinkEntry.cc
  10770. (MetalinkEntry): Initialized chunkChecksum to 0.
  10771. * src/ShaVisitor.cc
  10772. (~ShaVisitor): Removed the call to ctx.digestFree().
  10773. * src/SegmentMan.cc
  10774. (ChunkChecksumValidator.h): New include.
  10775. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  10776. to DIGEST_ALGO_SHA1.
  10777. (~SegmentMan): Removed diskWriter.
  10778. (FindSegmentEntryByIndex): Removed.
  10779. (FindSegmentEntryByCuid): Removed.
  10780. (checkoutSegment): Rewritten.
  10781. (findSlowerSegmentEntry): Rewritten.
  10782. (getSegment): Rewritten.
  10783. (updateSegment): Rewritten.
  10784. (completeSegment): Rewritten.
  10785. (markAllPiecesDone): New function.
  10786. (checkIntegrity): New function.
  10787. (isChunkChecksumValidationReady): New function.
  10788. (tryChunkChecksumValidation): New function.
  10789. * src/Xml2MetalinkProcessor.cc
  10790. (getEntry): Get size and set it to entry.
  10791. Get chunk checksum and set it to entry.
  10792. (getPieceHash): New function.
  10793. * src/Util.cc
  10794. (sha1Sum): Removed ctx.digestFree()
  10795. (fileChecksum): Removed ctx.digestFree()
  10796. (indexRange): New function.
  10797. * src/Request.cc
  10798. (METHOD_GET): New variable.
  10799. (METHOD_HEAD): New variable.
  10800. (Request): Added method.
  10801. * src/UrlRequestInfo.cc
  10802. (FatalException.h): New include.
  10803. (message.h): New include.
  10804. (operator<<): Added operator<< for class HeadResult.
  10805. (getHeadResult): New function.
  10806. (execute): Get filename and size in separate download engine.
  10807. * src/ChunkChecksumValidator.cc: New class.
  10808. * src/DownloadCommand.cc:
  10809. (DownloadCommand): Added peerStat.
  10810. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  10811. the value from Option.
  10812. The buffer size is now 16KB.
  10813. Use peerStat member instead of getting it from SegmentMan.
  10814. Use startupIdleTime member instead of gettingit from Option.
  10815. Added chunk checksum validation.
  10816. * src/AbstractDiskWriter.cc
  10817. (AbstractDiskWriter): Removed ctx.
  10818. (~AbstractDiskWriter): Removed ctx.digestFree()
  10819. (writeDataInternal): Returns the return value of write.
  10820. (readDataInternal): Returns the return value of read.
  10821. (sha1Sum): Renamed as messageDigest
  10822. (messageDigest): New function.
  10823. * src/AbstractDiwkWriter.h
  10824. (messageDigest.h): Removed include.
  10825. (ctx): Removed.
  10826. (sha1Sum): Renamed as messageDigest
  10827. (messageDigest): New function.
  10828. * src/DefaultPieceStorage.h
  10829. (markAllPiecesDone): New function.
  10830. (checkIntegrity): New function.
  10831. * src/NullFileAllocationMonitor.h: New class.
  10832. * src/MetalinkChunkChecksum.h: New class.
  10833. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10834. To decrease CPU usage in bittorrent download, calculation results in
  10835. BitfieldMan were cached and realtime fetching PeerObject was removed
  10836. with WeakHandle introduced. Option values are set to the objects
  10837. by setter before download begins.
  10838. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  10839. * src/DefaultBtRequestFactory.h
  10840. (dispatcher): BtMessageDispatcherHandle ->
  10841. BtMessageDispatcherWeakHandle.
  10842. (messageFactory): New variable.
  10843. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  10844. BtMessageDispatcherWeakHandle.
  10845. (setBtMessageFactory): New function.
  10846. * src/DefaultBtMessageDispatcher.cc:
  10847. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  10848. from Option.
  10849. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  10850. feating the value from Option.
  10851. Use messageFactory member.
  10852. * src/PeerInteractionCommand.cc
  10853. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  10854. Add reverse dependencies to factory object.
  10855. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  10856. dispatcher.
  10857. Set messageFactory to receiver.
  10858. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  10859. btInteractive.
  10860. Set receiver to peerObject.
  10861. Set maxDownloadSpeedLimit to this.
  10862. (executeInternal): Use maxDownloadSpeedLimit member.
  10863. * src/BtChokeMessage.cc
  10864. (doReceivedAction): Use dispatcher, requestFactory member.
  10865. (onSendComplete): Use dispatcher member.
  10866. * src/PeerInteractionCommand.h
  10867. (maxDownloadSpeedLimit): New variable.
  10868. * src/DefaultBtMessageReceiver.h
  10869. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10870. (dispatcher):
  10871. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  10872. (messageFactory): New variable.
  10873. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10874. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10875. (setDispatcher):
  10876. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  10877. (setBtMessageFactory): New function.
  10878. * src/DefaultBtInteractive.cc
  10879. (initiateHandshake): Use messageFactory member.
  10880. (addBitfieldMessageToQueue): Use messageFactory member.
  10881. (addAllowedFastMessageToQueue): Use messageFactory member.
  10882. (decideChoking): Use messageFactory member.
  10883. (checkHave): Use messageFactory member.
  10884. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  10885. (receiveMessages): Use maxDownloadSpeedLimit member.
  10886. (decideInterest): Use messageFactory member.
  10887. * src/BtRequestMessage.cc
  10888. (doReceivedAction): Use messageFactory, dispatcher member.
  10889. (onQueued): Use dispatcher member.
  10890. * src/BtPieceMessage.cc
  10891. (doReceivedAction): Use dispatcher member.
  10892. (send): Use peerConnection member.
  10893. (onWrongPiece): Use requestFactory member.
  10894. (handleChokingEvent): Use messageFactory, dispatcher member.
  10895. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  10896. * src/BtMessageDispatcher.h
  10897. (BtMessageDispatcherWeakHandle): New type definition.
  10898. * src/SimpleBtMessage.cc
  10899. (send): Use peerConnection member.
  10900. * src/BtRejectMessage.cc
  10901. (doReceivedAction): Use dispatcher member.
  10902. * src/DefaultBtMessageDispatcher.h
  10903. (Option.h): Removed include.
  10904. (messageFactory): New variable.
  10905. (option): Removed.
  10906. (maxUploadSpeedLimit): New variable.
  10907. (requestTimeout): New variable.
  10908. (DefaultBtMessageDispatcher): Removed option.
  10909. Added maxUploadSpeedLimit, requestTimeout.
  10910. (setOption): Removed.
  10911. (getOption): Removed.
  10912. (setMaxUploadSpeedLimit): New function.
  10913. (setRequestTimeout): New function.
  10914. (setBtMessageFactory): New function.
  10915. * src/DefaultBtInteractive.h
  10916. (btMessageReceiver):
  10917. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  10918. (dispatcher):
  10919. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  10920. (btRequestFactory):
  10921. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  10922. (peerConnection):
  10923. PeerConnectionHandle -> PeerConnectionWeakHandle
  10924. (messageFactory): New variable.
  10925. (option): Removed.
  10926. (keepAliveInterval): New variable.
  10927. (maxDownloadSpeedLimit): New variable.
  10928. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  10929. (setBtMessageReceiver):
  10930. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  10931. (setDispatcher):
  10932. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  10933. (setBtRequestFactory):
  10934. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  10935. (setPeerConnection):
  10936. PeerConnectionHandle -> PeerConnectionWeakHandle
  10937. (setOption): Removed.
  10938. (setKeepAliveInterval): New function.
  10939. (setMaxDownloadSpeedLimit): New function.
  10940. (setBtMessageFactory): New function.
  10941. * src/BitfieldMan.h
  10942. (cachedNumMissingBlock): New variable.
  10943. (cachedNumFilteredBlock): New variable.
  10944. (cachedCompletedLength): New variable.
  10945. (cachedFilteredComletedLength): New variable.
  10946. (cachedFilteredTotalLength): New variable.
  10947. (countMissingBlockNow): New function.
  10948. (countFilteredBlockNow): New function.
  10949. (getFilteredTotalLengthNow): New function.
  10950. (getCompletedLengthNow): New function.
  10951. (getFilteredCompletedLengthNow): New function.
  10952. (updateCache): New function.
  10953. * src/AbstractBtMessage.h
  10954. (BtMessageDispatcher.h): New include.
  10955. (PeerConnection.h): New include.
  10956. (BtRequestFactory.h): New include
  10957. (BtMessageFactory.h): New include.
  10958. (dispatcher): New variable.
  10959. (messageFactory): New variable.
  10960. (peerConnection: New variable.
  10961. (setBtMessageDispatcher): New function.
  10962. (setPeerConnection): New function.
  10963. (setBtMessageFactory): New function.
  10964. (setBtRequestFactory): New function.
  10965. * src/DefaultBtMessageFactory.cc
  10966. (setCommonProperty): Set dispatcher, requestFactory, this,
  10967. peerConnection to msg.
  10968. * src/BtRegistry.h
  10969. (BT_MESSAGE_RECEIVER): New macro.
  10970. * src/PeerConnection.h
  10971. (PeerConnectionWeakHandle): New type definition.
  10972. * src/BtMessageFactory.h
  10973. (BtMessageFactoryWeakHandle): New type definition.
  10974. * src/BitfieldMan.cc
  10975. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  10976. cachedCompletedLength, cachedFilteredComletedLength,
  10977. cachedFilteredTotalLength.
  10978. Call updateCache().
  10979. (countMissingBlock): Return cachedNumMissingBlock.
  10980. (countMissingBlockNow): New function.
  10981. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  10982. (countFilteredBlockNow): New function.
  10983. (setBit): Call updateCache().
  10984. (unsetBit): Call updateCache().
  10985. (setBitfield): Call updateCache().
  10986. (clearAllBit): Call updateCache().
  10987. (setAllBit): Use setBitInternal instead of setBit.
  10988. Call updateCache().
  10989. (addFilter): Call updateCache().
  10990. (enableFilter): Call updateCache().
  10991. (disableFilter): Call updateCache().
  10992. (clearFilter): Call updateCache().
  10993. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  10994. (getFilteredTotalLengthNow): New function.
  10995. (getCompletedLength): Return cachedCompletedLength.
  10996. (getCompletedLengthNow): New function.
  10997. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  10998. (getFilteredCompletedLengthNow): New function.
  10999. (updateCache): New function.
  11000. * src/BtMessageReceiver.h
  11001. (BtMessageReceiverWeakHandle): New type definition.
  11002. * src/DefaultBtMessageReceiver.cc
  11003. (receiveHandshake): Use messageFactory member.
  11004. (sendHandshake): Use messageFactory member.
  11005. (receiveMessage): Use messageFactory member.
  11006. * src/DefaultBtMessageFactory.h
  11007. (dispatcher): New variable.
  11008. (requestFactory): New variable.
  11009. (peerConnection): New variablle.
  11010. (setBtMessageDispatcher): New function.
  11011. (setBtRequestFactory): New function.
  11012. (setPeerConnection): New function.
  11013. * src/SharedHandle.h
  11014. (RefCount): New class.
  11015. (WeakHandle): New class.
  11016. * src/PeerObject.h
  11017. (BtMessageReceiver.h): New include.
  11018. (PeerObject): Added btMessageReceiver.
  11019. (btMessageReceiver): New variable.
  11020. * src/Util.cc
  11021. (countBit): Simplified.
  11022. * src/BtCancelMessage.cc
  11023. (doReceivedAction): Use dispatcher member.
  11024. * src/BtRequestFactory.h
  11025. (BtRequestFactoryWeakHandle): New type definition.
  11026. * src/PeerStorage.h
  11027. (downloadSpeed): int -> uint32_t
  11028. (uploadSpeed): int -> uint32_t
  11029. (sessionDownloadLength): long long int -> uint64_t
  11030. (sessionUploadLength): long long int -> uint64_t
  11031. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11032. To add RecoverableException, FatalException:
  11033. * src/AbstractCommand.cc
  11034. (onAbort): Exception -> RecoverableException
  11035. * src/PeerAbstractCommand.h
  11036. (RecoverableException.h): New include.
  11037. (onAbort): Exception -> RecoverableException.
  11038. * src/PeerInteractionCommand.cc
  11039. (onAbort): Exception -> RecoverableException.
  11040. * src/PeerAbstractCommand.cc
  11041. (execute): Exception -> RecoverableException.
  11042. (onAbort): Exception -> RecoverableException.
  11043. * src/TorrentRequestInfo.cc
  11044. (execute): Exception -> RecoverableException.
  11045. * src/MetalinkRequestInfo.cc
  11046. (execute): Exception -> RecoverableException.
  11047. * src/MetaFileUtil.cc: RecoverableException.
  11048. * src/AbstractCommand.h
  11049. (onAbort): Exception -> RecoverableException.
  11050. * src/DlRetryEx.h: Exception -> RecoverableException.
  11051. * src/DlAbortEx.h: Exception -> RecoverableException.
  11052. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  11053. * src/Util.cc: Exception -> RecoverableException.
  11054. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  11055. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  11056. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  11057. To make ID static const int
  11058. * src/BtInterestedMessage.h
  11059. (ID_t): Removed.
  11060. (ID): New variable.
  11061. (getId): Made non-const.
  11062. * src/BtPieceMessage.h
  11063. (ID_t): Removed.
  11064. (ID): New variable.
  11065. (getId): Made non-const.
  11066. * src/BtChokeMessage.h
  11067. (ID_t): Removed.
  11068. (ID): New variable.
  11069. (getId): Made non-const.
  11070. * src/BtHaveAllMessage.h
  11071. (ID_t): Removed.
  11072. (ID): New variable.
  11073. (getId): Made non-const.
  11074. * src/BtKeepAliveMessage.h
  11075. (ID_t): Removed.
  11076. (ID): New variable.
  11077. (getId): Made non-const.
  11078. * src/BtHandshakeMessage.h
  11079. (ID): New variable.
  11080. (getId): Made non-const.
  11081. * src/BtSuggestPieceMessage.h
  11082. (ID_t): Removed.
  11083. (ID): New variable.
  11084. (getId): Made non-const.
  11085. * src/BtPortMessage.h
  11086. (ID_t): Removed.
  11087. (ID): New variable.
  11088. (getId): Made non-const.
  11089. * src/AbstractBtMessage.h
  11090. (id): Removed.
  11091. (AbstractBtMessage): Removed id.
  11092. (getId): Removed.
  11093. * src/BtHaveMessage.h
  11094. (ID_t): Removed.
  11095. (ID): New variable.
  11096. (getId): Made non-const.
  11097. * src/BtAllowedFastMessage.h
  11098. (ID_t): Removed.
  11099. (ID): New variable.
  11100. (getId): Made non-const.
  11101. * src/BtCancelMessage.h
  11102. (ID_t): Removed.
  11103. (ID): New variable.
  11104. (getId): Made non-const.
  11105. * src/BtNotInterestedMessage.h
  11106. (ID_t): Removed.
  11107. (ID): New variable.
  11108. (getId): Made non-const.
  11109. * src/BtChokeMessage.h
  11110. (ID_t): Removed.
  11111. (ID): New variable.
  11112. (getId): Made non-const.
  11113. * src/BtRejectMessage.h
  11114. (ID_t): Removed.
  11115. (ID): New variable.
  11116. (getId): Made non-const.
  11117. * src/BtBitfieldMessage.h
  11118. (ID_t): Removed.
  11119. (ID): New variable.
  11120. (getId): Made non-const.
  11121. * src/BtUnchokeMessage.h
  11122. (ID_t): Removed.
  11123. (ID): New variable.
  11124. (getId): Made non-const.
  11125. * src/BtRequestMessage.h
  11126. (ID_t): Removed.
  11127. (ID): New variable.
  11128. (getId): Made non-const.
  11129. * src/BtHaveMessage.h
  11130. (ID_t): Removed.
  11131. (ID): New variable.
  11132. (getId): Made non-const.
  11133. To add --force-truncate command-line option and a check whether
  11134. the file already exists:
  11135. * src/DirectDiskAdaptor.h
  11136. (getFilePath): Made virtual public.
  11137. * src/MultiDiskAdaptor.h
  11138. (File.h): New include.
  11139. (DiskWriterEntry::fileEntry): Made private.
  11140. (DiskWriterEntry::fileExists): New function.
  11141. (DiskWriterEntry::getFileEntry): New function.
  11142. (fileExists): New function.
  11143. (getFilePath): New function.
  11144. * src/TorrentRequestInfo.cc
  11145. (FatalException.h): New include.
  11146. (message.h): New include.
  11147. (RecoverableException.h): New include.
  11148. (execute): Added a check whether file is already exists or not.
  11149. * src/DiskAdaptor.h
  11150. (fileExists): New function.
  11151. (getFilePath): New function.
  11152. * src/main.cc
  11153. (showUsage): Added an explanation of --force-truncate command-line
  11154. option.
  11155. (main): Added --force-truncate command-line option.
  11156. * src/Exception.h
  11157. (setMsg): buf[256] -> buf[1024]
  11158. * src/CopyDiskWriter.h
  11159. (getFilePath): Made public virtual.
  11160. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  11161. (fileExists): New function.
  11162. * src/DownloadEngineFactory.cc
  11163. (newTorrentConsoleEngine): Don't open file here.
  11164. * src/message.h
  11165. (EX_FILE_ALREADY_EXISTS): New definition.
  11166. * src/prefs.h
  11167. (PREF_FOECE_TRUNCATE): New definition.
  11168. * src/HttpResponseCommand.cc
  11169. (handleDefaultEncoding): Added a check whether the file already exists.
  11170. * src/SegmentMan.h
  11171. (fileExists): New function.
  11172. (shouldCancelDownloadForSafety): New function.
  11173. * src/FtpNegotiateCommand.cc
  11174. (recvSize): Added a check whether the file already exists.
  11175. * src/AbstractSingleDiskAdaptor.cc
  11176. (File.h): New include.
  11177. (fileExists): New function.
  11178. * src/AbstractSingleDiskAdaptor.h
  11179. (getFilePath): Removed.
  11180. (fileExists): New function.
  11181. * src/SegmentMan.cc
  11182. (fileExists): New function.
  11183. (shouldCancelDownloadForSafety): New function.
  11184. To fix regression bug in torrent downloading:
  11185. * src/DefaultBtRequestFactory.cc
  11186. (doChokedAction): New function.
  11187. * src/DefaultBtRequestFactory.h
  11188. (doChokedAction): New function.
  11189. * src/DefaultBtMessageDispatcher.cc
  11190. (doChokedAction): Do not delete request if its target is in allowed
  11191. fast set.
  11192. * src/DefaultBtInteractive.cc
  11193. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  11194. (sendKeepAlive): Send keep alive message even if the outgoing message
  11195. queue is not empty.
  11196. (decideInterest): Simplified the code.
  11197. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  11198. it is already called when BtChokeMessage is received from a peer.
  11199. * src/BtRequestFactory.h
  11200. (doChokedAction): New function.
  11201. To clean up code:
  11202. * src/PeerInteractionCommand.h
  11203. (executeInternal): Added virtual keyword explicitly.
  11204. (prepareForRetry): Added virtual keyword explicitly.
  11205. (prepareForNextPeer): Added virtual keyword explicitly.
  11206. (onAbort): Added virtual keyword explicitly.
  11207. * src/RequestSlot.cc
  11208. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  11209. * src/BtPieceMessage.cc
  11210. (doReceivedAction): Added a debug log of piece's bitfield.
  11211. * src/Piece.h
  11212. (getBitfieldLength): New function.
  11213. * src/ByteArrayDiskWriter.cc
  11214. (clear): Added buf = 0 to avoid double free corruption.
  11215. * src/FileAllocator.cc
  11216. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  11217. Added cp.reset().
  11218. * src/BitfieldMan.h
  11219. (operator=): Rewritten.
  11220. * src/BitfieldMan.cc
  11221. (BitfieldMan): Initialized bitfield, useBitfield.
  11222. * src/PeerConnection.cc
  11223. (receiveMessage): Added a call to socket->readable() after getting
  11224. message length to avoid possible EOF.
  11225. * src/Util.cc
  11226. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  11227. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11228. To add an ability to pre-allocate file space:
  11229. * src/DirectDiskAdaptor.h: Rewritten.
  11230. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  11231. * src/MultiDiskAdaptor.h: Rewritten.
  11232. * src/DefaultPieceStorage.cc
  11233. (MultiDiskWriter.h): Removed include.
  11234. (PreAllocationDiskWriter.h): Removed include.
  11235. (FileAllocationMonitor.h): New include.
  11236. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  11237. (initStorage): Rewritten.
  11238. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11239. * src/FileAllocator.h: New class.
  11240. * src/FileAllocator.cc: New class.
  11241. * src/FileAllocationMonitor.h: New class.
  11242. * src/FileAllocationMonitor.cc: New class.
  11243. * src/ConsoleFileAllocationMonitor.h: New class.
  11244. * src/ConsoleFileAllocationMonitor.cc: New class.
  11245. * src/AbstractSingleDiskAdaptor.h: New class.
  11246. * src/AbstractSingleDiskAdaptor.cc: New class.
  11247. * src/DiskAdaptor.h
  11248. (Directory.h): Removed include.
  11249. (DiskWriter.h): Removed include.
  11250. (FileEntry.h): Removed include.
  11251. (diskWriter): Removed.
  11252. (DiskAdaptor): Removed diskWriter.
  11253. (openFile): Made pure virtual.
  11254. (closeFile): Made pure virtual.
  11255. (openExistingFile): Made pure virtual.
  11256. (initAndOpenFile): Made pure virtual.
  11257. (writeData): Made pure virtual.
  11258. (readData): Made pure virtual.
  11259. (sha1Sum): Made pure virtual.
  11260. (getStoreDir): Returns const reference of storeDir.
  11261. (DiskAdaptorHandle): New type definition.
  11262. * src/main.cc
  11263. (ConsoleFileAllocationMonitor.h): New include.
  11264. (showUsage): Added default value description of -s option.
  11265. Added the description of --file-allocation option.
  11266. (main): Set default value of --file-allocation option to 'none'.
  11267. Added --file-allocation command-line option.
  11268. Setup FileAllocationMonitorFactory.
  11269. * src/FtpInitiateConnectionCommand.cc
  11270. (executeInternal): Removed diskWriter related processing, which was
  11271. moved to FtpNegotiationCommand.cc.
  11272. * src/DirectDiskAdaptor.cc
  11273. (getFilePath): Made non-const.
  11274. * src/CopyDiskAdaptor.h
  11275. (DiskAdaptor.h): Removed include.
  11276. (DiskWriter.h): Removed include.
  11277. (AbstractSingleDiskAdaptor.h): New include.
  11278. (getFilePath): Made non-const. Added virtual keyword.
  11279. (CopyDiskAdaptor): Removed diskWriter.
  11280. (getTempFile): Returns const reference.
  11281. (CopyDiskAdaptorHandle): New type definition.
  11282. * src/ByteArrayDiskWriter.cc
  11283. (clear): Simplified.
  11284. (initAndOpenFile): Rewritten.
  11285. (openFile): Call initAndOpenFile()
  11286. * src/MultiDiskAdaptor.cc: Rewritten.
  11287. * src/DownloadEngineFactory.cc
  11288. (FileAllocator.h): New include.
  11289. (FileAllocationMonitor.h): New include.
  11290. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  11291. create DefaultDiskWriter with file allocator.
  11292. * src/DiskWriter.h
  11293. (initAndOpenFile): Added totalLength argument.
  11294. (openFile): Added totalLength argument.
  11295. * src/prefs.h
  11296. (PREF_FILE_ALLOCATION): New definition.
  11297. (V_PREALLOC): New definition.
  11298. (V_NONE): New definition.
  11299. * src/HttpResponseCommand.cc
  11300. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  11301. size.
  11302. * src/FtpNegotiateCommand.cc
  11303. (Util.h): New include.
  11304. (recvSize): Open file here.
  11305. * src/Util.h
  11306. (ullitos): New function.
  11307. * src/CopyDiskWriter.h
  11308. (getFilePath): Made non-const.
  11309. * src/DefaultDiskWriter.h
  11310. (Option.h): New include.
  11311. (totalLength): Removed.
  11312. (DefaultDiskWriter): Removed totalLength.
  11313. (initAndOpenFile): Added totalLength argument.
  11314. (DefaultDiskWriterHandle): New type definition.
  11315. (createNewDiskWriter): New function.
  11316. * src/Util.cc
  11317. (ullitos): New function.
  11318. * src/DefaultDiskWriter.cc
  11319. (message.h): New include.
  11320. (FileAllocator.h): New include.
  11321. (prefs.h): New include.
  11322. (Util.h): New include.
  11323. (DefaultDiskWriter): Removed totalLength.
  11324. (initAndOpenFile): Added file allocation.
  11325. (createNewDiskWriter): New function. Just for temporary solution.
  11326. It will be rewritten later.
  11327. * src/DiskAdaptor.cc
  11328. (DiskAdaptor): Removed diskWriter.
  11329. * src/AbstractDiskWriter.cc
  11330. (LogFactory.h): New include.
  11331. (AbstractDiskWriter): Added fileAllocator, logger.
  11332. (openFile): Added totalLength argument.
  11333. * src/AbstractDiskWriter.h
  11334. (FileAllocator.h): New include.
  11335. (Logger.h): New include.
  11336. (fileAllocator): New variable.
  11337. (logger): New variable.
  11338. (openFile): Added totalLength argument. Added virtual keyword
  11339. explicitly.
  11340. (openExistingFile): Added totalLength argument. Added virtual keyword
  11341. explicitly.
  11342. (closeFile): Added virtual keyword explicitly.
  11343. (sha1Sum): Added virtual keyword explicitly.
  11344. (writeData): Added virtual keyword explicitly.
  11345. (readData): Added virtual keyword explicitly.
  11346. (setFileAllocator): New function.
  11347. * src/DefaultPieceStorage.h
  11348. (FileAllocator.h): New include.
  11349. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11350. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11351. * src/FileProgressMonitor.h: New class.
  11352. To compile aria2 on PC-BSD:
  11353. * src/DefaultBtContext.cc
  11354. (libgen.h): New include.
  11355. To fix memory leak:
  11356. * src/Exception.h
  11357. (~Exception): Delete cause. Fixed memory leak.
  11358. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11359. Rewritten a portion of bittorrent implementation:
  11360. * src/BtMessageValidator.h: New class.
  11361. * src/BtBitfieldMessageValidator.h: New class.
  11362. * src/BtHandshakeMessageValidator.h: New class.
  11363. * src/BtRequestMessageValidator.h: New class.
  11364. * src/BtSuggestPieceMessageValidator.h: New class.
  11365. * src/BtAllowedFastMessageValidator.h: New class.
  11366. * src/BtRejectMessageValidator.h: New class.
  11367. * src/BtCancelMessageValidator.h: New class.
  11368. * src/BtPieceMessageValidator.h: New class.
  11369. * src/BtHaveMessageValidator.h: New class.
  11370. * src/BtEventListener.h: New class.
  11371. * src/AbstractBtEventListener.h: New class.
  11372. * src/BtEvent.h: New class.
  11373. * src/BtChokingEvent.h: New class.
  11374. * src/BtChokedEvent.h: New class.
  11375. * src/BtCancelSendingPieceEvent.h: New class.
  11376. * src/BtAbortOutstandingRequestEvent.h: New class.
  11377. * src/Randomizer.h: New class.
  11378. * src/SimpleRandomizer.h: New class.
  11379. * src/BtMessage.h: New class.
  11380. * src/AbstractBtMessage.h: New class.
  11381. * src/SimpleBtMessage.h: New class.
  11382. * src/BtHaveMessage.h: New class.
  11383. * src/BtInterestedMessage.h: New class.
  11384. * src/BtAllowedFastMessage.h: New class.
  11385. * src/BtUnchokeMessage.h: New class.
  11386. * src/BtCancelMessage.h: New class.
  11387. * src/BtNotInterestedMessage.h: New class.
  11388. * src/BtChokeMessage.h: New class.
  11389. * src/BtHaveNoneMessage.h: New class.
  11390. * src/BtHandshakeMessage.h: New class.
  11391. * src/BtSuggestPieceMessage.h: New class.
  11392. * src/BtHaveMessage.h: New class.
  11393. * src/BtPieceMessage.h: New class.
  11394. * src/BtHaveAllMessage.h: New class.
  11395. * src/BtKeepAliveMessage.h: New class.
  11396. * src/BtPortMessage.h: New class.
  11397. * src/BtRejectMessage.h: New class.
  11398. * src/BtBitfieldMessage.h: New class.
  11399. * src/BtRequestMessage.h: New class.
  11400. * src/DefaultBtRequestFactory.h: New class.
  11401. * src/DefaultBtMessageReceiver.h: New class.
  11402. * src/BtInteractive.h: New class.
  11403. * src/BtMessageDispatcher.h: New class.
  11404. * src/DefaultBtMessageDispatcher.h: New class.
  11405. * src/DefaultBtInteractive.h: New class.
  11406. * src/BitfieldManFactory.h: New class.
  11407. * src/HandleRegistry.h: New class.
  11408. * src/BtMessageFactory.h: New class.
  11409. * src/BtMessageReceiver.h: New class.
  11410. * src/DefaultBtMessageFactory.h: New class.
  11411. * src/PeerObject.h: New class.
  11412. * src/BtRequestFactory.h: New class.
  11413. * src/SuggestPieceMessage.h: Removed.
  11414. * src/PortMessage.h: Removed.
  11415. * src/SuggestPieceMessage.h: Removed.
  11416. * src/KeepAliveMessage.h: Removed.
  11417. * src/HandshakeMessage.h: Removed.
  11418. * src/PeerInteraction.h: Removed.
  11419. * src/UnchokeMessage.h: Removed.
  11420. * src/PieceMessage.h: Removed.
  11421. * src/RequestMessage.h: Removed.
  11422. * src/InterestedMessage.h: Removed.
  11423. * src/HaveMessage.h: Removed.
  11424. * src/CancelMessage.h: Removed.
  11425. * src/RejectMessage.h: Removed.
  11426. * src/AllowedFastMessage.h: Removed.
  11427. * src/HaveNoneMessage.h: Removed.
  11428. * src/SimplePeerMessage.h: Removed.
  11429. * src/HaveAllMessage.h: Removed.
  11430. * src/BitfieldMessage.h: Removed.
  11431. * src/PeerMessageFactory.h: Removed.
  11432. * src/NotInterestedMessage.h: Removed.
  11433. * src/ChokeMessage.h: Removed.
  11434. * src/PeerMessage.h: Removed.
  11435. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11436. To know root cause of exception:
  11437. * src/Exception.h
  11438. (cause): New variable.
  11439. (Exception): Added a parameter.
  11440. (getMsg): Return const reference to msg.
  11441. (getCause): New function.
  11442. * src/DlRetryEx.h
  11443. (DlRetryEx): Added a parameter 'cause'.
  11444. Added an overloaded constructor.
  11445. (DlAbortEx): Added a parameter 'cause'.
  11446. Added an overloaded constructor.
  11447. * src/SimpleLogger.cc
  11448. (writeLog): Log nested exception messages recursively.
  11449. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11450. * src/DefaultBtProgressInfoFile.cc
  11451. (load): Fixed memory leak when the infohash doesn't match.
  11452. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11453. * src/DefaultPeerStorage.cc
  11454. (calculateStat): Simplified the code by combining 2 loops into 1.
  11455. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11456. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  11457. for BitTorrent download:
  11458. * src/PeerAbstractCommand.cc
  11459. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  11460. * src/main.cc:
  11461. (timeoutSpecified): Removed.
  11462. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  11463. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  11464. * src/TorrentRequestInfo.cc
  11465. (timeoutSpecified): Removed.
  11466. (torrentHandler): Removed timeoutSpecified and the adjustment of
  11467. timeout value.
  11468. * src/prefs.h
  11469. (PREF_BT_TIMEOUT): New definition.
  11470. Delete unused variables:
  11471. * src/TorrentRequestInfo.cc
  11472. (requestInfo): Removed.
  11473. Move setSignalHander to Util::setGlobalSignalHandler:
  11474. * src/TorrentRequestInfo.cc:
  11475. setSignalHander -> Util::setGlobalSignalHandler
  11476. * src/main.cc
  11477. (setSignalHander): Removed.
  11478. (main): setSignalHander -> Util::setGlobalSignalHandler
  11479. * src/Util.h
  11480. (setGlobalSignalHandler): New function.
  11481. * src/Util.cc
  11482. (setGlobalSignalHandler): New function.
  11483. * src/UrlRequestInfo.cc:
  11484. setSignalHander -> Util::setGlobalSignalHandler
  11485. Reset peer status in order to exit gracefully:
  11486. * src/PeerAbstractCommand.cc
  11487. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  11488. To fix the bug that causes the number of bytes uploaded is not saved
  11489. to .aria2 file:
  11490. * src/DefaultPeerStorage.h
  11491. (removedPeerSessionDownloadLength): New variable.
  11492. (removedPeerSessionUploadLength): New variable.
  11493. * src/DefaultPeerStorage.cc
  11494. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  11495. removedPeerSessionUploadLength(0).
  11496. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  11497. through all peers, and then add removedPeerSessionDownloadLength(
  11498. removedPeerSessionUploadLength) to it.
  11499. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  11500. (to) the peer to removedPeerSessionDownloadLength
  11501. (removedPeerSessionUploadLength).
  11502. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11503. To add Metalink location option:
  11504. * src/MetalinkRequestInfo.cc
  11505. (execute): Call MetalinkEntry::setLocationPreference()
  11506. * src/main.cc
  11507. (showUsage): Added the help message for --metalink-location option.
  11508. (main): Added --metalink-location option.
  11509. * src/prefs.h
  11510. (PREF_METALINK_LOCATION): New definition.
  11511. * src/MetalinkEntry.cc
  11512. (AddLocationPreference): New function object.
  11513. (setLocationPreference): New function.
  11514. * src/Xml2MetalinkProcessor.cc
  11515. (getResource): Set location attribute to MetalinkResource
  11516. To show URLs to download
  11517. * src/UrlRequestInfo.h
  11518. (printUrls): New function.
  11519. To add multiple <file> Metalink support:
  11520. * src/MetalinkEntry.h
  11521. (MetalinkResources): Removed.
  11522. (setLocationPreference): New function.
  11523. (MetalinkEntryHandle): New type definition.
  11524. (MetalinkEntries): New type definition.
  11525. * src/Xml2MetalinkProcessor.h
  11526. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  11527. (getResource): MetalinkResource* -> MetalinkResourceHandle
  11528. (parseFile): Metalinker* -> MetalinkerHandle
  11529. * src/UrlRequestInfo.h
  11530. (execute): RequestInfo* -> RequestInfos
  11531. * src/MetalinkRequestInfo.cc
  11532. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  11533. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  11534. (execute): RequestInfo* -> RequestInfos
  11535. Added multiple <file> support. Print filename when it is queued.
  11536. * src/MetalinkRequestInfo.h
  11537. (execute): RequestInfo* -> RequestInfos
  11538. (getDownloadEngine): Removed.
  11539. * src/RequestInfo.h
  11540. (RequestInfoHandle): New type definition.
  11541. (RequestInfos): New type definition.
  11542. (execute): RequestInfo* -> RequestInfos
  11543. (getDownloadEngine): Removed.
  11544. * src/MetalinkResource.h
  11545. (MetalinkResourceHandle): New type definition.
  11546. (MetalinkResources): New type definition.
  11547. * src/MetalinkEntry.cc
  11548. (~MetalinkEntry): Removed the deletion of the elements of resources,
  11549. because the element is now of type MetalinkResourceHandle.
  11550. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  11551. (Supported): MetalinkResource* -> MetalinkResourceHandle
  11552. (dropUnsupportedResource): Removed the deletion of the elements of
  11553. resources because the element is now of type MetalinkResourceHandle.
  11554. * src/Xml2MetalinkProcessor.cc
  11555. (parseFile): Metalinker* -> MetalinkerHandle
  11556. MetalinkEntry* -> MetalinkEntryHandle
  11557. Removed try-catch block.
  11558. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  11559. MetalinkResource* -> MetalinkResourceHandle
  11560. Removed try-catch block.
  11561. (getResource): MetalinkResource* -> MetalinkResourceHandle
  11562. Free result by using xmlXPathFreeObject()
  11563. * src/Metalinker.cc
  11564. (~Metalinker): Removed the deletion of entries.
  11565. MetalinkEntry* -> MetalinkEntryHandle
  11566. (queryEntry): Add multiple <file> Metalink support.
  11567. * src/Metalinker.h
  11568. (MetalinkEntries): Removed.
  11569. (queryEntry): MetalinkEntry* -> MetalinkEntries
  11570. * src/MetalinkProcessor.h
  11571. (parseFile): Metalinker* -> MetalinkerHandle
  11572. Bug fixes:
  11573. * src/PeerChokeCommand.cc
  11574. (execute): cat01->cat02
  11575. * src/DefaultPieceStorage.cc
  11576. (DefaultPieceStorage): Added diskAdaptor(0)
  11577. * src/TrackerWatcherComand.cc:
  11578. (execute): Use btAnnounce->noMoreAnnounce()
  11579. to determin whether the function returns true or not.
  11580. * src/TrackerUpdateCommand.cc:
  11581. (execute): Use btAnnounce->noMoreAnnounce()
  11582. to determin whether the function returns true or not.
  11583. * src/FtpConnection.cc
  11584. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  11585. This is the fix of the busy loop bug.
  11586. * src/DownloadCommand.cc
  11587. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  11588. cached PeerStat.
  11589. The value of "name" entry in torrent file is now set by
  11590. *DiskAdaptor::setTopDir(...) methods.
  11591. * src/MultiDiskAdaptor.h
  11592. (topDir): New variable.
  11593. (setTopDir): New function.
  11594. (getTopDir): New function.
  11595. * src/MultiDiskAdaptor.cc
  11596. (getFilePath): Concat storDir, "/" and topDir.
  11597. (mkdir): Use getFilePath() to get the directory path for output.
  11598. * src/DefaultPieceStorage.cc
  11599. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  11600. CopyDiskAdaptor.
  11601. * src/CopyDiskAdaptor.h
  11602. (topDir): New variable.
  11603. (setTopDir): New function.
  11604. (getTopDir): New function.
  11605. * src/CopyDiskAdaptor.cc
  11606. (fixFilename): Updated.
  11607. Misc
  11608. * src/UrlRequestInfo.h
  11609. (e): Removed.
  11610. (UrlRequestInfo): Removed e.
  11611. (getDownloadEngine): Removed.
  11612. * src/UrlRequestInfo.cc
  11613. (handler): Rewritten.
  11614. (printUrls): New function.
  11615. (execute): Call printUrls().
  11616. * src/HandshakeMessage.cc
  11617. (check): peerinteraction->getBtContext() -> btContext
  11618. * src/PeerInteraction.h
  11619. (getBtContext): Removed.
  11620. * src/TorrentRequestInfo.h
  11621. (execute): RequestInfo* -> RequestInfos
  11622. (getDownloadEngine): Removed.
  11623. * src/TorrentRequestInfo.cc
  11624. (haltRequested): Removed.
  11625. (btHaltRequested): New variable.
  11626. (torrentHandler): haltRequested -> btHaltRequested
  11627. (execute): RequestInfo* -> RequestInfos
  11628. * src/TorrentConsoleDownloadEngine.cc
  11629. (afterEachIteration): haltRequested -> btHaltRequested.
  11630. * src/ConsoleDownloadEngine.h
  11631. (initStatistics): Added virtual.
  11632. (calculateStatistics): Added virtual.
  11633. (onEndOfRun): Added virtual.
  11634. (afterEachIteration): Added virtual.
  11635. * src/ConsoleDownloadEngine.cc
  11636. (haltRequested): New variable.
  11637. (afterEachIteration): New function.
  11638. * src/main.cc
  11639. (requestInfo): Removed.
  11640. * src/SegmentMan.cc
  11641. (findSlowerSegmentEntry): Refactored.
  11642. * Release 0.9.0
  11643. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11644. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  11645. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  11646. * src/TorrentMan.h: Removed.
  11647. * src/TorrentMan.cc: Removed.
  11648. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  11649. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  11650. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  11651. * src/PeerAbstractCommand.cc: Use btRuntime.
  11652. * src/BtContextAwareCommand.h: New class.
  11653. * src/FileEntry.h: Added accessor methods for following variables.
  11654. (path): Made private.
  11655. (length): Made private.
  11656. (offset): Made private.
  11657. (extracted): Made private.
  11658. (requested): Made private.
  11659. (FileEntries): New definition.
  11660. (FileEntryHandle): New definition.
  11661. * src/FileEntry.cc: New file.
  11662. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  11663. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  11664. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  11665. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  11666. * src/PieceStorage.h: New file.
  11667. * src/PeerInteractionCommand.h: Use btContext.
  11668. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  11669. btRuntime.
  11670. * src/DefaultBtProgressInfoFile.h: New file.
  11671. * src/DefaultBtProgressInfoFile.cc: New file.
  11672. * src/File.cc
  11673. (Util.h): New include.
  11674. (mkdirs): New function.
  11675. * src/MultiDiskAdaptor.h
  11676. (mkdir): New function.
  11677. * src/PeerListProcessor.h
  11678. (Peers): Removed.
  11679. * src/PeerInteraction.h
  11680. (torrentMan): Removed.
  11681. (btContext): New variable.
  11682. (peerStorage): New variable.
  11683. (pieceStorage): New variable.
  11684. (btAnnounce): New variable.
  11685. (getTorrentMan): Removed.
  11686. (getBtContext): New function.
  11687. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  11688. btAnnounce.
  11689. * src/HandshakeMessage.h
  11690. (TorrentMan.h): Removed.
  11691. * src/HandshakeMessage.cc: Use btContext.
  11692. * src/DefaultBtAnnounce.cc: New file.
  11693. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  11694. * src/DefaultPieceStorage.cc: New file.
  11695. * src/DefaultBtContext.h: New file.
  11696. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  11697. Use the accessor methods of FileEntry.
  11698. * src/CookieBox.cc: Updated to use Util::slice().
  11699. * src/PieceMessage.cc: Use btContext, pieceStorage.
  11700. * src/common.h (SharedHandle.h): New include.
  11701. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  11702. pieceStorage.
  11703. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  11704. * src/DiskAdaptor.h
  11705. (topDir): Removed.
  11706. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  11707. (setTopDir): Removed.
  11708. (getTopDir): Removed.
  11709. * src/BtContext.h: New file.
  11710. * src/DefaultPeerStorage.h: New file.
  11711. * src/PieceMessage.h (TorrentMan.h): Removed.
  11712. * src/RequestMessage.h (TorrentMan.h): Removed.
  11713. * src/TorrentDownloadEngine.h
  11714. (uploadLength): New variable.
  11715. (btContext): New variable.
  11716. (btRuntime): New variable.
  11717. (pieceStorage): New variable.
  11718. (peerStorage): New variable.
  11719. (btAnnounce): New variable.
  11720. (btProgressInfoFile): New variable.
  11721. (torrentMan): Removed.
  11722. (setBtContext): New function.
  11723. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  11724. peerStorage, btAnnounce, btProgressInfoFile.
  11725. * src/Piece.h
  11726. (toString): New function.
  11727. (Pieces): New type definition.
  11728. * src/Peer.h
  11729. (active): New variable.
  11730. (Peer): Added active.
  11731. (activate): Set active to true.
  11732. (deactivate): Set active to false.
  11733. (isActive): New function.
  11734. (Peers): New type definition.
  11735. * src/DirectDiskAdaptor.cc
  11736. (getFilePath): Use the accessor methods of FileEntry.
  11737. * src/TorrentConsoleDownloadEngine.h
  11738. (afterEachIteration): New function.
  11739. * src/TorrentConsoleDownloadEngine.cc
  11740. (haltRequested): New variable.
  11741. (sendStatistics): Use pieceStorage, btRuntime.
  11742. (afterEachIteration): New function.
  11743. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  11744. * src/Directry.h
  11745. (Directory): New function.
  11746. (DirectoryHandle): New type definition.
  11747. * src/BtProgressInfoFile.h: New file.
  11748. * src/RequestMessage.cc: Use pieceStorage.
  11749. * src/BtRuntime.h: New file.
  11750. * src/DefaultBtContext.cc: New file.
  11751. * src/BitfieldMan.h
  11752. (getCompletedLength): New function(private).
  11753. (getCompletedLength): New function.
  11754. (getFilteredCompletedLength): New function.
  11755. * src/BitfieldMan.h
  11756. (getCompletedLength): New function(private).
  11757. (getCompletedLength): New function.
  11758. (getFilteredCompletedLength): New function.
  11759. * src/MultiDiskAdaptor.cc
  11760. (mkdir): New function.
  11761. (openFile): Call mkdir().
  11762. (initAndOpenFile): Call mkdir().
  11763. * src/CancelMessage.h
  11764. (TorrentMan.h): Removed.
  11765. * src/RejectMessage.h
  11766. (TorrentMan.h): Removed.
  11767. * src/DownloadEngineFactory.cc
  11768. (DefaultPieceStorage.h): New include.
  11769. (DefaultPeerStorage.h): New include.
  11770. (DefaultBtAnnounce.h): New include.
  11771. (DefaultBtProgressInfoFile.h): New include.
  11772. (newTorrentConsoleEngine): Rewritten.
  11773. * src/ShareRatioSeedCriteria.h
  11774. (torrentMan): Removed.
  11775. (btContext): New variable.
  11776. (peerStorage): New variable.
  11777. (btRuntime): New variable.
  11778. (evaluate): Use btContext, btRuntime, peerStorage.
  11779. * src/AnnounceTier.h: New file.
  11780. * src/BtAnnounce.h: New file.
  11781. * src/BtRegistry.h: New file.
  11782. * src/PeerInitiateConnectionCommand.h: Added btContext.
  11783. * src/PeerConnection.h (TorrentMan.h): Removed.
  11784. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  11785. * src/Util.h
  11786. (slice): Added an argument.
  11787. * src/Util.cc
  11788. (slice): Added an argument to control whether trim is made or not.
  11789. * src/PeerStorage.h: New file.
  11790. * src/BtRegistry.cc: New file.
  11791. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  11792. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  11793. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  11794. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  11795. * src/TorrentRequestInfo.h
  11796. (e): Removed.
  11797. (showFileEntry): Added an argument.
  11798. (getDownloadEngine): Return 0.
  11799. * src/DefaultBtAnnounce.h: New file.
  11800. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  11801. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  11802. * src/PeerMessageFactory.h
  11803. (btContext): New variable.
  11804. (pieceStorage): New variable.
  11805. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  11806. btAnnounce.
  11807. * src/DiskAdaptor.cc
  11808. (DiskAdaptor): Removed topDir.
  11809. (~DiskAdaptor): Removed topDir.
  11810. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  11811. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  11812. * src/File.h (mkdirs): New function.
  11813. * src/DefaultPeerStorage): New file.
  11814. * src/DownloadEngineFactory.h
  11815. (newTorrentConsoleEngine): Use btContext.
  11816. * src/BtContextAwareCommand.cc: New file.
  11817. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  11818. * src/PeerMessage.h
  11819. (btContext): New variable.
  11820. (peerStorage): New variable.
  11821. (pieceStorage): New variable.
  11822. (setBtContext): New function.
  11823. * src/Directry.cc
  11824. (Directory): New function.
  11825. (createDir): Do nothing if name.size() == 0.
  11826. * src/AnnounceList.h
  11827. (AnnounceTier): Removed.
  11828. (AnnounceTiers): Removed.
  11829. * src/DefaultPieceStorage.h: New file.
  11830. * src/Piece.cc (toString): New function.
  11831. To fix typo:
  11832. * src/main.cc (showVersion): Fixed typo.
  11833. To fix compile warning:
  11834. * src/DelegatingPeerListProcessor.cc
  11835. (canHandle): Added "return false".
  11836. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11837. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  11838. make the process of announce request testable.
  11839. * src/TrackerWatcherCommand.h
  11840. (TimeA2.h): Removed.
  11841. (interval): Removed.
  11842. (checkPoint): Removed.
  11843. (createRequestCommand): Added an argument 'url'.
  11844. (TrackerWatherCommand): Removed interval.
  11845. (createCommand): New function.
  11846. * src/DownloadEngineFactory.cc
  11847. (newTorrentConsoleEngine): Updated according to the changes in
  11848. TrackerWatherCommand.
  11849. * src/TorrentMan.cc
  11850. (DelegatingPeerListProcessor.h): New includes.
  11851. (TorrentMan): Added the initialization of announceInterval.
  11852. (isStoppedAnnounceReady): New function.
  11853. (isCompletedAnnounceReady): New function.
  11854. (isDefaultAnnounceReady): New function.
  11855. (isAnnounceReady): New function.
  11856. (getAnnounceUrl): New function.
  11857. (announceStart): New function.
  11858. (announceFailure): New function.
  11859. (announceSuccess): New function.
  11860. (isAllAnnounceFailed): New function.
  11861. (resetAnnounce): New function.
  11862. (processAnnounceResponse): New function.
  11863. (needMorePeerConnection): New function.
  11864. (noMoreAnnounce): New function.
  11865. * src/TrackerUpdateCommand.h
  11866. (getTrackerResponse): int->size_t
  11867. * src/TorrentMan.h
  11868. (isStoppedAnnounceReady): New function.
  11869. (isCompletedAnnounceReady): New function.
  11870. (isDefaultAnnounceReady): New function.
  11871. (announceInterval): New variable.
  11872. (isAnnounceReady): New function.
  11873. (getAnnounceUrl): New function.
  11874. (announceStart): New function.
  11875. (announceFailure): New function.
  11876. (announceSuccess): New function.
  11877. (isAllAnnounceFailed): New function.
  11878. (resetAnnounce): New function.
  11879. (processAnnounceResponse): New function.
  11880. (needMorePeerConnection): New function.
  11881. (noMoreAnnounce): New function.
  11882. * src/TrackerWatcherCommand.cc
  11883. (TrackerWatherCommand): Removed interval and checkPoint.
  11884. (execute): Rewritten.
  11885. (createCommand): New function.
  11886. (createRequestCommand): Rewritten.
  11887. * src/TrackerUpdateCommand.cc
  11888. (MetaFileUtil.h): Removed.
  11889. (DelegatingPeerListProcessor.h): Removed.
  11890. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  11891. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11892. Request -> RequestHandle:
  11893. * src/HttpResponseCommand.h: Request->RequestHandle
  11894. * src/AbstractCommand.cc: Request->RequestHandle
  11895. * src/HttpDownloadCommand.cc: Request->RequestHandle
  11896. * src/HttpRequestCommand.cc: Request->RequestHandle
  11897. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  11898. * src/AbstractCommand.h: Request->RequestHandle
  11899. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  11900. * src/HttpResponseCommand.cc: Request->RequestHandle
  11901. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  11902. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  11903. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  11904. * src/HttpConnection.h: Request->RequestHandle
  11905. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  11906. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  11907. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  11908. * src/DownloadCommand.h: Request->RequestHandle
  11909. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  11910. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  11911. * src/HttpRequestCommand.h: Request->RequestHandle
  11912. * src/FtpNegotiateCommand.h: Request->RequestHandle
  11913. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  11914. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  11915. * src/HttpDownloadCommand.h: Request->RequestHandle
  11916. * src/FtpConnection.cc: Request->RequestHandle
  11917. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  11918. * src/UrlRequestInfo.cc: Request->RequestHandle
  11919. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  11920. * src/HttpConnection.h: Request->RequestHandle
  11921. * src/DownloadCommand.cc: Request->RequestHandle
  11922. * src/FtpConnection.h: Request->RequestHandle
  11923. * src/FtpDowndloadCommand.h: Request->RequestHandle
  11924. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  11925. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  11926. * src/Request.h
  11927. (SharedHandle.h): New include.
  11928. (RequestHandle): New type definition.
  11929. (Requests): Redefined.
  11930. To add MULTITRACKER support:
  11931. * src/TrackerWatcherCommand.h
  11932. (createRequestCommand): New function.
  11933. * src/DownloadEngineFactory.cc
  11934. (newTorrentConsoleEngine): Removed req.
  11935. * src/prefs.h
  11936. (PREF_TRACKER_MAX_TRIES): New definition.
  11937. * src/TorrentMan.cc
  11938. (TorrentMan): Removed req. Added trackerNumTry.
  11939. (~TorrentMan): Removed req.
  11940. (setupInternal1): Added announceList.
  11941. * src/TorrentRequestInfo.cc
  11942. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  11943. announces is now specified by PREF_TRACKER_MAX_TRIES.
  11944. * src/main.cc
  11945. (main): Added PREF_TRACKER_MAX_TRIES.
  11946. * src/TorrentMan.h
  11947. (Request.h): Removed.
  11948. (AnnounceList.h): New include.
  11949. (trackerNumTry): New variable.
  11950. (req): Removed.
  11951. (announceList): New variable.
  11952. * src/TrackerWatcherCommand.cc
  11953. (execute): Rewritten.
  11954. (createRequestCommand): New function.
  11955. * src/TrackerUpdateCommand.cc
  11956. (execute): Updated with the use of AnnounceList.
  11957. * src/AnnounceList.cc: New class.
  11958. * src/AnnounceList.h: New class.
  11959. To fix typo:
  11960. * src/prefs.h
  11961. (PREF_MAX_TRIES): max_try->max_tries
  11962. To not to decode "+" as space in URL decode:
  11963. * src/Util.cc
  11964. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  11965. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11966. To add timeout to async name resolution:
  11967. * src/AbstractCommand.h
  11968. (nameResolveFinished): New function. This is not elegant way. It needs
  11969. to be more refined.
  11970. (nameResolverCheck): New variable.
  11971. * src/AbstractCommand.cc
  11972. (AbstractCommand): Added nameResolverCheck.
  11973. (execute): Added the check whether the name resolution has finished.
  11974. (setNameResolverCheck): Set nameResolverCheck to true.
  11975. (disableNameResolverCheck): Set nameResolverCheck to false.
  11976. (nameResolverFinished): New function.
  11977. * src/FtpInitiateConnectionCommand.h
  11978. (nameResolverFinished): New function.
  11979. * src/FtpInitiateConnectionCommand.cc
  11980. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  11981. * src/HttpInitiateConnectionCommand.h
  11982. (nameResolverFinished): New function.
  11983. * src/HttpInitiateConnectionCommand.cc
  11984. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  11985. * src/prefs.h
  11986. (PREF_DNS_TIMEOUT): New definition.
  11987. * src/main.cc
  11988. (main): Added PREF_DNS_TIMEOUT.
  11989. To add the support for a non-compact response from a tracker:
  11990. * src/PeerListProcessor.h: New class.
  11991. * src/DefaultPeerListProcessor.h: New class.
  11992. * src/DefaultPeerListProcessor.cc: New class.
  11993. * src/CompactPeerListProcessor.h: New class.
  11994. * src/CompactPeerListProcessor.cc: New class.
  11995. * src/DelegatingPeerListProcessor.h: New class.
  11996. * src/DelegatingPeerListProcessor.cc: New class.
  11997. * src/TorrentMan.cc
  11998. (addPeer): New function(overload).
  11999. (addPeer): Delete unused peers only when new peer is added.
  12000. * src/TorrentMan.h
  12001. (PeerListProcessor.h): Included.
  12002. (Peers): Removed.
  12003. (addPeer): New function(overload).
  12004. * src/TrackerUpdateCommand.cc
  12005. (netinet/in.h): Removed.
  12006. (DelegatingPeerListProcessor.h): Included.
  12007. (execute): Updated to use DelegatingPeerListProcessor.
  12008. To fix the memory leak in TorrentMan::peers:
  12009. * src/PeerAbstractCommand.cc
  12010. (onAbort): Added peer->resetStatus().
  12011. * src/Peer.h
  12012. (resetStatus): Made public.
  12013. To improve the precision of the speed calculation:
  12014. * src/SpeedCalc.h
  12015. (nextInterval): New variable.
  12016. * src/SpeedCalc.cc
  12017. (reset): Added nextInterval.
  12018. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  12019. (changeSw): Set nextInterval to 15 seconds relative to the current
  12020. instant time.
  12021. * src/main.cc
  12022. (showVersion): Updated.
  12023. (showUsage): Updated.
  12024. * Release 0.8.1
  12025. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12026. * src/main.cc
  12027. (showUsage): Commented out --min-segment-size option.
  12028. (main): Commented out --min-segment-size option.
  12029. * Release 0.8.0
  12030. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12031. * src/*.{h,cc}:
  12032. Added an exception to the license which allows linking with OpenSSL.
  12033. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12034. * src/AbstractCommand.cc
  12035. (execute): Check whether the download has finished before checking
  12036. socket status.
  12037. Return true if peerStat->getStatus() == REQUEST_IDLE.
  12038. Do not exit even if no segment is available.
  12039. * src/prefs.h
  12040. (PREF_STARTUP_IDLE_TIME): New definition.
  12041. * src/PeerInteractionCommand.cc
  12042. (executeInternal): Removed max speed limit. Because it performs bad.
  12043. (receiveMessages): Added max speed limit. This was better than above,
  12044. but still a little bit to be desired. Sometimes the download speed
  12045. became much faster than I specified.
  12046. * src/SpeedCalc.h
  12047. (start): New variable.
  12048. (accumulatedLength): New variable.
  12049. (getAvgSpeed): New function.
  12050. * src/SpeedCalc.cc
  12051. (reset): Added start, accumulatedLength.
  12052. (update): Added calculation of an average speed.
  12053. (getAvgSpeed): New function.
  12054. * src/DownloadCommand.h
  12055. (sw): Removed.
  12056. * src/main.cc
  12057. (main): Added PREF_STARTUP_IDLE_TIME.
  12058. * src/PeerStat.h
  12059. (STATUS): Added REQUEST_IDLE.
  12060. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  12061. (getAvgDownloadSpeed): New function
  12062. (requestIdle): New function.
  12063. * src/SegmentMan.h
  12064. (SegmentEntryHandle): New type definition.
  12065. (SegmentEntries): Now holds SegmentEntryHandle.
  12066. (findSlowerSegmentEntry): New funtion.
  12067. * src/SegmentMan.cc
  12068. (save): Updated according to the changes in SegmentEntries.
  12069. (read): Updated according to the changes in SegmentEntries.
  12070. (FindSegmentEntryByIndex): Updated according to the changes in
  12071. SegmentEntries.
  12072. (FindSegmentEntryByCuid): Updated according to the changes in
  12073. SegmentEntries.
  12074. (checkoutSegment): Updated according to the changes in SegmentEntries.
  12075. (onNullBitfield): Updated according to the changes in SegmentEntries.
  12076. Renamed uitr as itr.
  12077. (findSlowerSegmentEntry): New function.
  12078. (getSegment): Updated according to the changes in SegmentEntries.
  12079. Added the feature that cancels the segment with slow server and fast
  12080. one takes it over.
  12081. (cancelSegment): Updated according to the changes in SegmentEntries.
  12082. (getDownloadLength): Updated according to the changes in
  12083. SegmentEntries.
  12084. (init): Assigned 0 to bitfield after deleting it.
  12085. * src/DownloadCommand.cc
  12086. (STARTUP_IDLE_TIME): Removed.
  12087. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  12088. * src/PeerChokeCommand.cc
  12089. (optUnchokingPeer): Updated according to the changes in Peer.
  12090. (ResetDelta): Removed.
  12091. (UploadFaster): Updated according to the changes in Peer.
  12092. (DownloadFaster): Updated according to the changes in Peer.
  12093. (execute): I clarify the meaning of "upload" and "download" here.
  12094. "upload" means the transfer from localhost to remote host.
  12095. "download" means the transfer from remote host to localhost.
  12096. Based on this rule, I swapped orderByUploadRate and
  12097. orderByDownloadRate.
  12098. * src/PeerInteractionCommand.cc
  12099. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  12100. (executeInternal): Removed the argument of
  12101. peerInteraction->sendMessages().
  12102. (receiveMessages): Rewritten download speed limit.
  12103. (sendKeepAlive): Removed peerInteraction->sendMessages().
  12104. * src/HttpResponseCommand.cc
  12105. (handleDefaultEncoding): If file size is unknown in torrent request,
  12106. do not call segmentMan->initBitfield() here.
  12107. Disabled persistent connection feature in torrent request.
  12108. * src/UrlRequestInfo.h
  12109. (UrlRequestInfo): Removed const qualifier from option.
  12110. * src/TorrentMan.h
  12111. (TransferStat): New class.
  12112. (deltaDownloadLength): Removed.
  12113. (deltaUploadLength): Removed.
  12114. (addDeltaDownloadLength): Removed.
  12115. (getDeltaDownloadLength): Removed.
  12116. (resetDeltaDownloadLength): Removed.
  12117. (addDeltaUploadLength): Removed.
  12118. (getDeltaUploadLength): Removed.
  12119. (resetDeltaUploadLength): Removed.
  12120. (addActivePeer): Added peer->activate().
  12121. (deleteActivePeer): Added peer->deactivate().
  12122. (calculateStat): New function.
  12123. * src/TorrentMan.cc
  12124. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  12125. (calculateStat): New function.
  12126. * src/PeerInteraction.h
  12127. (uploadLimit): Removed.
  12128. (option): New variable.
  12129. (setUploadLimit): Removed.
  12130. (getUploadSpeed): Removed.
  12131. (sendMessages): Removed the argument "currentUploadSpeed".
  12132. * src/PeerInteraction.cc
  12133. (prefs.h): Included.
  12134. (PeerInteraction): Removed uploadLimit. Added option.
  12135. (sendMessages): Rewritten upload speed limit.
  12136. (sendHandshake): Removed the argument from sendMessages().
  12137. (sendBitfield): Removed the argument from sendMessages().
  12138. * src/PeerAbstractCommand.cc
  12139. (execute): Commented out the portion of upload limit.
  12140. (onAbort): Removed peer->resetStatus().
  12141. * src/TorrentRequestInfo.cc
  12142. (timeoutSpecified): Declared extern.
  12143. (execute): Set timeout to 180 if timeout is not specified by.
  12144. command-line.
  12145. * src/PieceMessage.cc
  12146. (receivedAction): Added peer->updateDownloadLength().
  12147. Removed peer->addPeerUpload().
  12148. Removed torrentMan->addDeltaDownloadLength().
  12149. (send): Added peer->updateUploadLength().
  12150. Removed peer->addPeerDownload().
  12151. Removed torrentMan->addDeltaUploadLength().
  12152. * src/main.cc
  12153. (timeoutSpecified): New variable.
  12154. (main): Set timeoutSpecified to false.
  12155. If the command-line option "--upload-limit" is specified, then
  12156. timeoutSpecified is set to true. This option will remain in the next
  12157. release, but be deprecated in the future release.
  12158. * src/TorrentRequestInfo.h
  12159. (TorrentRequestInfo): Removed const qualifier from op.
  12160. * src/PeerStat.h
  12161. (uploadSpeed): New variable.
  12162. (PeerStat): Added default value to cuid.
  12163. (calculateUploadSpeed): New function.
  12164. (updateUploadLength): New function.
  12165. (getMaxUploadSpeed): New function.
  12166. (getAvgUploadSpeed): New function.
  12167. (reset): Added uploadSpeed. Set status to IDLE.
  12168. * src/TorrentDownloadEngine.h
  12169. (cp): Declared as Time.
  12170. (sessionDownloadLengthArray): Removed.
  12171. (sessionUploadLengthArray): Removed.
  12172. (currentCp): Removed.
  12173. (lastCalcStat): New variable
  12174. (lastElapsed): Removed.
  12175. (sessionDownloadLength): Removed.
  12176. (calculateStat): New function.
  12177. * src/TorrentDownloadEngine.cc
  12178. (initStatistics): Removed lastElapsed, cp[],
  12179. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  12180. currentCp, sessionDownloadLength.
  12181. Added cp.reset() and lastCalcStat.reset().
  12182. (calculateSpeed): Changed the name of the argument.
  12183. (calculateStatistics): Rewritten.
  12184. (calculateStat): New function.
  12185. * src/Peer.h
  12186. (PeerStat.h): Included.
  12187. (peerUpload): Removed.
  12188. (peerDownload): Removed.
  12189. (peerStat): New variable.
  12190. (sessionUploadLength): New variable.
  12191. (sessionDownloadLength): New variable.
  12192. (deltaUpload): Removed.
  12193. (deltaDownload): Removed.
  12194. (resetStatus): Made private.
  12195. (Peer): Added sessionUploadLength, sessionDownloadLength.
  12196. Removed peerUpload, peerDownload.
  12197. (updateUploadLength): New function.
  12198. (addDeltaUpload): Removed.
  12199. (updateDownloadLength): New function.
  12200. (resetDeltaUpload): Removed.
  12201. (getDeltaUpload): Removed.
  12202. (addDeltaDownload): Removed.
  12203. (calculateUploadSpeed): New function.
  12204. (resetDeltaDownload): Removed.
  12205. (getDeltaDownload): Removed.
  12206. (calculateDownloadSpeed): New function.
  12207. (getSessionUploadLength): New function.
  12208. (getSessionDownloadLength): New function.
  12209. (activate): New function.
  12210. (deactivate): New function.
  12211. (addPeerUpload): Removed.
  12212. (setPeerUpload): Removed.
  12213. (getPeerUpload): Removed.
  12214. (addPeerDownload): Removed.
  12215. (setPeerDownload): Removed.
  12216. (getPeerDownload): Removed.
  12217. * src/Peer.cc
  12218. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  12219. * src/MetalinkRequestInfo.h
  12220. (MetalinkRequestInfo): Removed const qualifier from op.
  12221. * src/RequestInfo.h
  12222. (op): Removed const qualifier.
  12223. (RequestInfo): Removed const qualifier from op.
  12224. * src/prefs.h
  12225. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  12226. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  12227. * src/PeerInteractionCommand.cc
  12228. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  12229. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  12230. * src/PeerInteraction.cc
  12231. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  12232. * src/main.cc
  12233. (showUsage): Updated the description of "--lowest-speed-limit" option.
  12234. Added the description of "--max-download-limit" option.
  12235. Removed the description of "--upload-limit" option.
  12236. Added the description of "--max-upload-limit" option.
  12237. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  12238. Added "--max-download-limit" option and "--max-upload-limit" option.
  12239. Added the warning message if "--upload-limit" option is used.
  12240. * src/DownloadCommand.cc
  12241. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  12242. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12243. To rewrite segment download mechanism for HTTP/FTP download.
  12244. Use BitfieldMan to manage segment download.
  12245. * src/HttpResponseCommand.h
  12246. (executeInternal): Pass the reference of segment.
  12247. * src/AbstractCommand.cc
  12248. (prepareForRetry): Call segmentMan->cancelSegment here.
  12249. (onAbort): Call segmentMan->cancelSegment here.
  12250. * src/HttpDownloadCommand.cc
  12251. (prepareForNextSegment): New function.
  12252. * src/DownloadEngineFactory.cc
  12253. (newConsoleEngine): Removed splitter.
  12254. (newTorrentConsoleEngine): Removed splitter.
  12255. * src/Request.h
  12256. (segment): Renamed from seg.
  12257. * src/FtpInitiateConnectionCommand.h
  12258. (executeInternal): Pass the reference of segment.
  12259. * src/AbstractCommand.h
  12260. (executeInternal): Pass the reference of segment.
  12261. * src/pref.h
  12262. (PREF_SEGMENT_SIZE): New definition.
  12263. * src/HttpProxyRequestCommand.h
  12264. (executeInternal): Pass the reference of segment.
  12265. * src/HttpResponseCommand.cc
  12266. (checkResponse): Allowed status 206 when a request range starts 0.
  12267. (handleDefaultEncoding): Rewritten the code related to Segment.
  12268. (handleOtherEncoding): Rewritten the code related to Segment.
  12269. * src/SegmentMan.h
  12270. (SegmentEntry): New class.
  12271. (SegmentEntries): New type definition.
  12272. (bitfield): New variable.
  12273. (usedSegmentEntries): New variable.
  12274. (onNullBitfield): New function.
  12275. (checkoutSegment): New function.
  12276. (segments): Removed.
  12277. (splitter): Removed.
  12278. (unregisterId): Removed.
  12279. (getSegment): New function(overload)
  12280. (getDownloadedSize): Removed.
  12281. (cancelSegment): New function.
  12282. (completeSegment): New function.
  12283. (initBitfield): New function.
  12284. (hasSegment): New function.
  12285. (getDownloadLength): New function.
  12286. * src/BitfieldMan.h
  12287. (getStartIndex): New function.
  12288. (getEndIndex): New function.
  12289. (getMissingUnusedIndex): New function(overload).
  12290. (getSparseMissingUnusedIndex): New function.
  12291. * src/BitfieldMan.cc
  12292. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  12293. (getMissingUnusedIndex): New function(overload).
  12294. (Range): New class.
  12295. (getStartIndex): New function.
  12296. (getEndIndex): New function.
  12297. (getSparseMissingUnusedIndex): New function.
  12298. (isBitSetInternal): Return false if the given index is less than 0.
  12299. * src/HttpInitiateConnectionCommand.h
  12300. (executeInternal): Pass the reference of segment.
  12301. * src/FtpNegotiateCommand.h
  12302. (executeInternal): Pass the reference of segment.
  12303. * src/FtpNegotiateCommand.cc
  12304. (recvSize): Initialize bitfield here.
  12305. * src/FtpTunnelResponseCommand.h
  12306. (executeInternal): Pass the reference of segment.
  12307. * src/HttpConnection.cc
  12308. (createRequest): Rewritten range header processing.
  12309. * src/DownloadCommand.h
  12310. (executeInternal): Pass the reference of segment.
  12311. (prepareForRetry): Removed.
  12312. (prepareForNextSegment): Added an argument segment. Made it a virtual
  12313. function.
  12314. * src/main.cc
  12315. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  12316. * src/SegmentMan.cc
  12317. (SegmentMan): Added bitfield. Removed splitter.
  12318. (~SegmentMan): Added bitfield. Removed splitter.
  12319. (unregisterId): Removed.
  12320. (getSegment): Rewritten.
  12321. (updateSegment): Rewritten.
  12322. (save): Rewritten.
  12323. (read): Rewritten.
  12324. (finished): Rewritten.
  12325. (getDownloadedSize): Removed.
  12326. (initBitfield): New function.
  12327. (FindSegmentEntryByIndex): New function object.
  12328. (FindSegmentEntryByCuid): New function object.
  12329. (checkoutSegment): New function.
  12330. (onNullBitfield): New function.
  12331. (getSegment): New function(overload).
  12332. (CancelSegment): New function object.
  12333. (cancelSegment): New function.
  12334. (completeSegment): New function.
  12335. (hasSegment): New function.
  12336. (getDownloadLength): New function.
  12337. * src/FtpInitiateConnectionCommand.cc
  12338. (executeInternal): Load .aria2 file after hostname resolution finishes.
  12339. * src/Segment.h: Rewritten.
  12340. * src/Segment.cc (operator<<): New function.
  12341. * src/HttpDownloadCommand.h
  12342. (prepareForNextSegment): New function.
  12343. * src/Request.cc
  12344. (resetUrl): Made segment null.
  12345. * src/DownloadEngine.cc
  12346. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  12347. * src/HttpProxyRequestCommand.h
  12348. (executeInternal): Pass the reference of segment.
  12349. * src/DownloadCommand.cc
  12350. (executeInternal): Rewritten the code related to Segment.
  12351. (prepareForRetry): Removed.
  12352. (prepareForNextSegment): Rewritten.
  12353. * src/FtpTunnelResponseCommand.h
  12354. (executeInternal): Pass the reference of segment.
  12355. To add HTTP 1.1 persistent connection support(experimental)
  12356. * src/HttpRequestCommand.cc
  12357. (executeInternal): Disable keep alive if it is disabled by
  12358. configuration.
  12359. * src/Request.h
  12360. (keepAlive): New variable.
  12361. (isKeepAlive): New function.
  12362. (setKeepAlive): New function.
  12363. * src/pref.h
  12364. (PREF_HTTP_KEEP_ALIVE): New definition.
  12365. * src/HttpResponseCommand.cc
  12366. (executeInternal): Check the remote server supports keep alive.
  12367. * src/HttpConnection.cc
  12368. (createRequest): Send "Connection: close" only if keep alive is
  12369. disabled.
  12370. * src/main.cc
  12371. (main):
  12372. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  12373. To add max download speed limit:
  12374. * src/pref.h
  12375. (PREF_MAX_SPEED_LIMIT): New definition.
  12376. * src/PeerInteractionCommand.cc
  12377. (executeInternal): Added max download speed limit. Not tested yet.
  12378. * src/SegmentMan.h
  12379. (PeerStats): New type definition.
  12380. (peerStats): New variable.
  12381. (registerPeerStat): New function.
  12382. (FindPeerStat): New function object.
  12383. (getPeerStat): New function.
  12384. (calculateDownloadSpeed): New function.
  12385. * src/SpeedCalc.h: New class.
  12386. * src/SpeedCalc.cc: New class.
  12387. * src/main.cc
  12388. (main):
  12389. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  12390. download speed is not restricted).
  12391. * src/PeerStat.h: New class.
  12392. * src/SegmentMan.cc
  12393. (registerPeerStat): New function.
  12394. (calculateDownloadSpeed): New function.
  12395. * src/DownloadCommand.cc
  12396. (STARTUP_IDLE_TIME): New definition.
  12397. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  12398. downloadStart.
  12399. (~DownloadCommand): Call peerStat->downloadStop.
  12400. (executeInternal): Added download speed limitter. Rewritten lowest
  12401. speed limitter.
  12402. * src/HttpConnection.cc
  12403. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  12404. * src/AbstractCommand.cc
  12405. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  12406. Added hostname to the error message.
  12407. * src/ConsoleDownloadEngine.cc
  12408. (calculateStatistics): Initialize psize with dlSize.
  12409. * src/PieceMessage.cc
  12410. (receivedAction): Do not call peerInteraction->abortPiece here.
  12411. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  12412. * src/BitfieldMan.h
  12413. (clearAllUseBit): New function.
  12414. (setAllUseBit): New function.
  12415. * src/BitfieldMan.cc
  12416. (clearAllBit): Do not clear useBitfield here.
  12417. (clearAllUseBit): New function.
  12418. (setAllUseBit): New function.
  12419. * src/Piece.cc
  12420. (clearAllBlock): Call bitfield->clearAllUseBit().
  12421. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12422. To make filename URL-decoded:
  12423. * src/HttpResponseCommand.h: Updated doc.
  12424. * src/HttpResponseCommand.cc
  12425. (determinFilename): Made filename URL-decoded.
  12426. * src/FtpInitiateConnectionCommand.cc
  12427. (executeInternal): Made filename URL-decoded.
  12428. * src/Util.h (urldecode): New function.
  12429. * src/Util.cc (urldecode): New function.
  12430. To fix a bug that caused assertion failure in ares_strerror:
  12431. * src/NameResolver.cc (callback): Fixed the bug.
  12432. * Release 0.7.3
  12433. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12434. To add --seed-time and --seed-ratio command-line option:
  12435. * src/Option.h (getAsDouble): New function.
  12436. * src/Option.cc (getAsDouble): New function.
  12437. * src/SeedCheckCommand.h: New class.
  12438. * src/SeedCheckCommand.cc: New class.
  12439. * src/DownloadEngineFactory.cc
  12440. (SeedCheckCommand.h): Included.
  12441. (UnionSeedCriteria.h): Included.
  12442. (TimeSeedCriteria.h): Included.
  12443. (ShareRatioSeedCriteria.h): Included.
  12444. (newTorrentConsoleEngine): Added the processing of seed option.
  12445. * src/SeedCriteria.h: New class.
  12446. * src/ShareRatioSeedCriteria.h: New class.
  12447. * src/TimeSeedCriteria.h: New class.
  12448. * src/UnionSeedCriteria.h: New class.
  12449. * src/prefs.h
  12450. (PREF_SEED_TIME): New definition.
  12451. (PREF_SEED_RATIO): New definition.
  12452. * src/main.cc
  12453. (showUsage): Added --seed-time and --seed-ratio option.
  12454. (main): Added --seed-time and --seed-ratio option.
  12455. Made default log file name "/dev/null".
  12456. * src/SharedHandle.h
  12457. (SharedHandle): Copy constructor. Made it assignable from the
  12458. SharedHandle of the subclasses.
  12459. (operator=): Made it assignable from the SharedHandle of the
  12460. subclasses.
  12461. (getRefCount): New function.
  12462. To add notice log level and the switch to write log to stdout. This
  12463. switch is configurable per log level.
  12464. * src/Logger.h
  12465. (notice): New function.
  12466. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  12467. constant.
  12468. * src/LogFactory.cc
  12469. (getInstance): The use of NullLogger was removed. A log message with
  12470. notice log level was made written to stdout along with log file.
  12471. * src/NullLogger.h
  12472. (notice): New function.
  12473. * src/SimpleLogger.h
  12474. (writeHeader): Added the 'file' argument.
  12475. (writeLog): Added the 'file' argument.
  12476. (writeFile): New function.
  12477. (stdoutField): New variable.
  12478. (SimpleLogger): Removed the default constructor.
  12479. (SimpleLogger): Made the default value of logfile 0.
  12480. (debug): Added 'virtual' keyword.
  12481. (info): Added 'virtual' keyword.
  12482. (warn): Added 'virtual' keyword.
  12483. (error): Added 'virtual' keyword.
  12484. (notice): New function.
  12485. (setStdout): New function.
  12486. * src/SimpleLogger.cc
  12487. (WRITE_LOG): Replaced writeLog with writeFile.
  12488. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  12489. (SimpleLogger): Removed the default constructor.
  12490. (setStdout): New function.
  12491. (writeLog): Added the handling of NOTICE log level.
  12492. (writeFile): New function.
  12493. (notice): New function.
  12494. * src/TorrentMan.h: Updated doc.
  12495. * src/BitfieldMan.h: Updated doc.
  12496. * src/TrackerWatcherCommand.cc
  12497. (execute): Return true if error occurred in the request to the tracker
  12498. and halt is requested.
  12499. * src/TrackerUpdateCommand.cc
  12500. (execute): Return true if error occurred in the request to the tracker
  12501. and halt is requested.
  12502. To call onDownloadComplete from TorrentMan::completePiece(), not from
  12503. DownloadEngine:
  12504. * src/TorrentConsoleDownloadEngine.h
  12505. (onSelectiveDownloadingCompletes): Removed.
  12506. * src/TorrentConsoleDownloadEngine.cc
  12507. (onSelectiveDownloadingCompletes): Removed.
  12508. * src/TorrentDownloadEngine.h
  12509. (onEndOfRun): Added 'virtual' keyword.
  12510. (afterEachIteration): Removed.
  12511. (onSelectiveDownloadingCompletes): Removed.
  12512. * src/TorrentDownloadEngine.cc
  12513. (onEndOfRun): Removed filenameFixed.
  12514. (afterEachIteration): Removed.
  12515. * src/TorrentMan.cc
  12516. (completePiece): Call onDownloadComplete here.
  12517. (onDownloadComplete): Added 2 log messages.
  12518. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12519. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  12520. * src/NameResolver.h: Added the prototype declaration of callback().
  12521. To support c-ares library:
  12522. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12523. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12524. * src/FtpInitiateConnectionCommand.h:
  12525. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12526. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12527. * src/HttpInitiateConnectionCommand.h:
  12528. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12529. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  12530. Added thes upport of c-ares's ares_strerror(the idea came from patch
  12531. #1542285 by tizianomueller)
  12532. * src/HttpInitiateConnectionCommand.cc:
  12533. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12534. * src/FtpInitiateConnectionCommand.cc:
  12535. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12536. * src/DownloadEngine.h:
  12537. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12538. * src/DownloadEngine.cc:
  12539. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12540. To fix the bug that causes compilation failure with metalink-support
  12541. disabled(bug#1543587):
  12542. * src/main.cc: Fixed with the patch by tizianomueller.
  12543. * Release 0.7.2
  12544. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12545. * src/main.cc
  12546. (main): Added a message to inform users that aria2 is starting to
  12547. verify checksum.
  12548. * src/RequestInfo.cc
  12549. (printDownloadAbortMessage): Added a message to inform users that
  12550. transfer can be resumed.
  12551. * src/FeatureConfig.cc
  12552. (FEATURE_ASYNC_DNS): New definition.
  12553. (FeatureConfig): Added aysnc DNS entry.
  12554. To replace CommandUuid with Command* in SocketEntry and
  12555. NameResolverEntry:
  12556. * src/DownloadEngine.h
  12557. (CommandUuids): Removed.
  12558. (SocketEntry::commandUuid): Removed.
  12559. (SocketEntry::command): New variable.
  12560. (SocketEntry::SocketEntry): Updated.
  12561. (SocketEntry::operator==): Updated.
  12562. (NameResolverEntry::commandUuid): Removed.
  12563. (NameResolverEntry::command): New variable.
  12564. (NameResolverEntry::NameResolverEntry): Updated.
  12565. (NameResolverEntry::operator==): Updated.
  12566. (waitData): Changed the argument type.
  12567. (addSocketForReadCheck): Changed the argument type.
  12568. (deleteSocketForReadCheck): Changed the argument type.
  12569. (addSocketForWriteCheck): Changed the argument type.
  12570. (deleteSocketForWriteCheck): Changed the argument type.
  12571. (addNameResolverCheck): Changed the argument type.
  12572. (deleteNameResolverCheck): Changed the argument type.
  12573. * src/DownloadEngine.cc
  12574. (FindCommand): Removed.
  12575. (run): Removed activeUuid. Added activeCommands instead.
  12576. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  12577. (AccumulateActiveCommand): New function object.
  12578. (waitData): Use AccumulateActiveCommand.
  12579. (addSocketForReadCheck): Use Command instead of CommandUuid.
  12580. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  12581. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  12582. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  12583. (addNameResolverCheck): Use Command instead of CommandUuid.
  12584. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  12585. * src/AbstractCommand.cc
  12586. (disableReadCheckSocket): Updated according to the changes in
  12587. DownloadEngine.
  12588. (setReadCheckSocket): Updated according to the changes in
  12589. DownloadEngine.
  12590. (disableWriteCheckSocket): Updated according to the changes in
  12591. DownloadEngine.
  12592. (setWriteCheckSocket): Updated according to the changes in
  12593. DownloadEngine.
  12594. (setNameResolverCheck): Updated according to the changes in
  12595. DownloadEngine.
  12596. (disableNameResolverCheck): Updated according to the changes in
  12597. DownloadEngine.
  12598. * src/AbstractCommand.cc
  12599. (disableReadCheckSocket): Updated according to the changes in
  12600. DownloadEngine.
  12601. (setReadCheckSocket): Updated according to the changes in
  12602. DownloadEngine.
  12603. (disableWriteCheckSocket): Updated according to the changes in
  12604. DownloadEngine.
  12605. (setWriteCheckSocket): Updated according to the changes in
  12606. DownloadEngine.
  12607. * release 0.7.1
  12608. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12609. To handle the case where some BitTorrent tracker requires all letters
  12610. except for [A-Za-z0-9] is URL encoded.
  12611. * src/Util.h
  12612. (torrentUrlencode): New function.
  12613. * src/Util.cc
  12614. (ctype.h): Included.
  12615. (torrentUrlencode): New function.
  12616. * src/TrackerWatcherCommand.cc
  12617. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  12618. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12619. To add asynchronous DNS support(libares):
  12620. * src/AbstractCommand.h
  12621. (setNameResolverCheck): New function.
  12622. (disableNameResolverCheck): New function
  12623. (resolveHostname): New function.
  12624. * src/AbstractCommand.cc
  12625. (setNameResolverCheck): New function.
  12626. (disableNameResolverCheck): New function
  12627. (resolveHostname): New function.
  12628. * src/FtpInitiateConnectionCommand.h
  12629. (nameResolver): New function.
  12630. * src/FtpInitiateConnectionCommand.cc
  12631. (Util.h): Included.
  12632. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  12633. disableWriteCheckSocket.
  12634. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  12635. (executeInternal): Added async DNS support.
  12636. * src/HttpInitiateConnectionCommand.h
  12637. (nameResolver): New function.
  12638. * src/HttpInitiateConnectionCommand.cc
  12639. (DlRetryEx.h): Included.
  12640. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  12641. disableWriteCheckSocket.
  12642. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  12643. (executeInternal): Added async DNS support.
  12644. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  12645. by extern "C" declaration.
  12646. * src/NameResolver.cc: New class.
  12647. * src/Util.h:
  12648. (isNumberAndDotsNotation): New function
  12649. * src/Util.cc
  12650. (isNumberAndDotsNotation): New function.
  12651. * src/DownloadEngine.h
  12652. (NameResolver.h): Included.
  12653. (NameResolverEntry): New class.
  12654. (NameResolverEntries): New type definition.
  12655. (addNameResolverCheck): New function.
  12656. (deleteNameResolverCheck): New function.
  12657. * src/DownloadEngine.cc
  12658. (run): Initialize cp with 0.
  12659. (SetDescriptor::operator()): Added for NameResolverEntry.
  12660. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  12661. (waitData): Check nameResolver entries.
  12662. (updateFdSet): Update fds in nameResolver entries.
  12663. (addNameResolverCheck): New function.
  12664. (deleteNameResolverCheck): new function.
  12665. * src/PeerInteractionCommand.cc
  12666. (executeInternal): Fixed wrong socket handling.
  12667. * src/main.cc
  12668. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  12669. * src/Util.cc
  12670. (fileChecksum): Removed the call to ctx.digestReset().
  12671. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12672. * po/ru.po: Azamat sent me Russian translation.
  12673. * src/FtpNegotiateCommand.cc
  12674. (recvGreeting): Call disableWriteCheckSocket just after
  12675. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  12676. (recvRetr): Recognized status code 125 as a acceptable response code.
  12677. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  12678. case-insesitive filesystem(BUG#1531057).
  12679. * src/Time.h: Renamed as TimeA2.h.
  12680. * src/Time.cc: Renamed as TimeA2.cc.
  12681. * src/TimeA2.h: New class.
  12682. * src/TimeA2.cc: New class.
  12683. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  12684. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  12685. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  12686. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  12687. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  12688. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  12689. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  12690. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  12691. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  12692. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  12693. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  12694. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  12695. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  12696. * release 0.7.0
  12697. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12698. * src/PeerChokeCommand.h
  12699. (PeerChokeCommand): Rearranged the arguments.
  12700. * src/PeerChokeCommand.cc
  12701. (PeerChokeCommand): Rearranged the arguments.
  12702. * src/MetalinkEntry.h
  12703. (Checksum.h): Included.
  12704. (md5): Removed.
  12705. (sha1): Removed.
  12706. (checksum): New variable.
  12707. (operator=): Updated.
  12708. (check): Removed.
  12709. * src/prefs.h
  12710. (PREF_LOWEST_SPEED_LIMIT): New definition.
  12711. (PREF_FOLLOW_TORRENT): New definition.
  12712. (PREF_SELECT_FILE): New definition.
  12713. (PREF_FOLLOW_METALINK): New definition.
  12714. * src/MetalinkResource.h
  12715. (TYPE_HTTPS): Added to enum TYPE.
  12716. * src/TorrentMan.cc
  12717. (~TorrentMan): Rewritten.
  12718. * src/MultiDiskWriter.cc
  12719. (MultiDiskAdaptor): Updated according to the changes in
  12720. MessageDigestContext.
  12721. (~MultiDiskAdaptor): Updated according to the changes in
  12722. MessageDigestContext.
  12723. (hashUpdate): Updated according to the changes in MessageDigestContext.
  12724. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12725. * src/Util.h
  12726. (fileChecksum): Updated according to the changes in
  12727. MessageDigestContext.
  12728. * src/Util.cc
  12729. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12730. (fileChecksum): Updated according to the changes in
  12731. MessageDigestContext.
  12732. * src/messageDigest.h: Rewritten.
  12733. * src/MetalinkEntry.cc
  12734. (check): Removed.
  12735. (Supported): Updated.
  12736. (dropUnsupportedResource): Fixed a memory leak.
  12737. * src/ShaVisitor.cc
  12738. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  12739. (~ShaVisitor): Updated according to the changes in
  12740. MessageDigestContext.
  12741. (visit): Updated according to the changes in MessageDigestContext.
  12742. * src/main.cc
  12743. (main): Rewritten the portion of download loop. --lowest-speed-limit
  12744. command-line option added.
  12745. * src/DownloadEngine.h
  12746. (SocketEntry): New class.
  12747. (SocketEntries): New definition.
  12748. (PairFind): Removed.
  12749. (SockCmdMap): Removed.
  12750. * src/DownloadEngine.cc
  12751. (DownloadEngine): Rewritten.
  12752. (~DownloadEngine): Rewritten.
  12753. (run): Renamed activeCommandUuids as activeUuids.
  12754. (SetDescriptor): Rewritten.
  12755. (AccumulateActiveCommandUuid): Removed.
  12756. (AccumulateActiveUuid): New function object.
  12757. (waitData): Rewritten.
  12758. (updateFdSet): Rewritten.
  12759. (addSocket): Rewritten.
  12760. (deleteSocket): Rewritten.
  12761. (addSocketForReadCheck): Rewritten.
  12762. (deleteSocketForReadCheck): Rewritten.
  12763. (addSocketForWriteCheck): Rewritten.
  12764. (deleteSocketForWriteCheck): Rewritten.
  12765. * src/Xml2MetalinkProcessor.cc
  12766. (getEntry): Rewritten the portion of MetalinkEntry creation.
  12767. * src/DownloadCommand.cc
  12768. (executeInternal): Added the check routine for lowest speed limit.
  12769. * src/AbstractDiskWriter.cc
  12770. (AbstractDiskWriter): Updated according to the changes in
  12771. MessageDigestContext.
  12772. (~AbstractDiskWriter): Updated according to the changes in
  12773. MessageDigestContext.
  12774. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12775. * src/RequestInfo.h: New class.
  12776. * src/UrlRequestInfo.h: New class.
  12777. * src/UrlRequestInfo.cc: New class.
  12778. * src/TorrentRequestInfo.h: New class.
  12779. * src/TorrentRequestInfo.cc: New class.
  12780. * src/MetalinkRequestInfo.h: New class.
  12781. * src/MetalinkRequestInfo.cc: New class.
  12782. * src/Checksum.h: New class.
  12783. * src/DownloadEngineFactory.h: New class.
  12784. * src/DownloadEngineFactory.cc: New class.
  12785. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12786. * src/Option.h
  12787. (getAsBool): New function.
  12788. * src/Option.cc
  12789. (prefs.h): Included.
  12790. (defined): 0-length value is now recognized as undefined.
  12791. (getAsInt): Rewritten.
  12792. (getAsLLInt): Rewritten.
  12793. (getAsBool): New function.
  12794. * src/FeatureConfig.h: Rewritten.
  12795. * src/FeatureConfig.cc: Rewritten.
  12796. * src/prefs.h
  12797. (PREF_STDOUT_LOG): New definition.
  12798. (PREF_LOG): New definition.
  12799. (PREF_DIR): New definition.
  12800. (PREF_OUT): New definition.
  12801. (PREF_SPLIT): New definition.
  12802. (PREF_DAEMON): New definition.
  12803. (PREF_REFERER): New definition.
  12804. (PREF_TORRENT_FILE): New definition.
  12805. (PREF_LISTEN_PORT): New definition.
  12806. (PREF_METALINK_FILE): New definition.
  12807. (PREF_METALINK_VERSION): New definition.
  12808. (PREF_METALINK_LANGUAGE): New definition.
  12809. (PREF_METALINK_OS): New definition.
  12810. (PREF_METALINK_SERVERS): New definition.
  12811. * src/main.cc
  12812. (main): Following command-line parameters are now put into Option
  12813. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  12814. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  12815. metalinkLanguage, metalinkOs, metalinkServers
  12816. To fix the bug that aria2 can not handle http response header properly.
  12817. * src/HttpHeader.cc
  12818. (put): Made name lowercased.
  12819. (defined): Made name lowercased.
  12820. (getFirst): Made name lowercased.
  12821. (get): Made name lowercased.
  12822. (getFirstAsInt): Rewritten.
  12823. (getFirstAsLLInt): Rewritten.
  12824. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12825. * src/TorrentMan.h:
  12826. (advertisePiece): Updated doc.
  12827. (getAdvertisedPieceIndexes): Updated doc.
  12828. (removeAdvertisedPiece); New function.
  12829. * src/TorrentMan.cc
  12830. (FindElapsedHave): New function object.
  12831. (removeAdvertisedPiece): New function.
  12832. * src/HaveEraseCommand.h: New class.
  12833. * src/HaveEraseCommand.cc: New class.
  12834. * src/FeatureConfig.h: New class.
  12835. * src/FeatureConfig.cc: New class.
  12836. * src/Request.h
  12837. (defaultPorts): Removed.
  12838. * src/Request.cc
  12839. (FeatureConfig.h): Included.
  12840. (Request): Removed the statements related to defaultPorts.
  12841. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  12842. A default port number is now retrieved from FeatureConfig.
  12843. * src/main.cc
  12844. (HaveEraseCommand.h): Included.
  12845. (showVersion): Added the output of feature list.
  12846. (main): Added HaveEraseCommand to command queue in BitTorrent
  12847. downloading.
  12848. * src/PeerInteractionCommand.h
  12849. (chokeCheckPoint): Commented out.
  12850. (periodicExecPoint): New variable.
  12851. * src/PeerInteractionCommand.cc
  12852. (executeInternal): Following methods are now called in at least every
  12853. 0.5 seconds to reduce CPU usage:
  12854. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  12855. checkHave(), sendKeepAlive().
  12856. (checkLongTimePeerChoking): Commented out.
  12857. * src/BitfieldMan.h
  12858. (getNthBitIndex): Changed the method signature.
  12859. (getMissingIndexRandomly): Changed the method signature.
  12860. * src/BitfieldMan.cc
  12861. (getNthBitIndex): Rewritten
  12862. (getMissingIndexRandomly): Rewritten.
  12863. (hasMissingPiece): Rewritten.
  12864. (getMissingIndex): Refactored.
  12865. (getMissingUnusedIndex); Refactored.
  12866. (getMissingIndex): Refactored.
  12867. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12868. * src/PeerMessage.h
  12869. (Piece.h): Included.
  12870. (SharedHandle.h): Included.
  12871. (invalidate): New variable.
  12872. (uploading): New variable.
  12873. (isInvalidate): New function.
  12874. (isUploading): New function.
  12875. (onPush): New function.
  12876. (onChoked): New function.
  12877. (onCanceled): New function.
  12878. (onAbortPiece): New function.
  12879. (PeerMessageHandle): New type definition.
  12880. * src/PeerMessage.cc
  12881. (PeerMessage): Added the initialization for invalidate and uploading.
  12882. * src/CancelMessage.h
  12883. (CancelMessage): Rewritten.
  12884. * src/RejectMessage.h
  12885. (RejectMessage): Rewritten.
  12886. * src/Metalinker.h
  12887. (operator=): Defined.
  12888. * src/MetaEntry.h
  12889. (operator=): Defined.
  12890. * src/MetalinkResource.h
  12891. (operator=): Defined.
  12892. * src/AllowedFastMessage.h
  12893. (AllowedFastMessage): Rewritten.
  12894. * src/HandshakeMessage.h
  12895. (HandshakeMessage): New function(overload).
  12896. * src/HandshakeMessage.cc
  12897. (HandshakeMessage): Rewritten.
  12898. (init): New function.
  12899. * src/HaveMessage.h
  12900. (HaveMessage): Rewritten.
  12901. * src/Time.h
  12902. (operator=): Defined the function body here.
  12903. * src/Time.cc
  12904. (operator=): Removed.
  12905. * src/SocketCore.h
  12906. (operator==): Defined here.
  12907. (operator!=): Defined here.
  12908. (operator<): Defined here.
  12909. * src/SocketCore.cc
  12910. (operator==): Removed.
  12911. (operator<): Removed.
  12912. * src/BitfieldMan.h
  12913. (operator=): Defined the function body here.
  12914. * src/BitfieldMan.cc
  12915. (operator=): Removed.
  12916. * src/TorrentMan.h
  12917. (deleteErrorPeer): Removed.
  12918. (deleteUnusedPeer); New function.
  12919. * src/TorrentMan.cc
  12920. (addPeer): Call deleteUnusedPeer.
  12921. (deleteErrorPeer): Removed.
  12922. (deleteUnusedPeer): New function.
  12923. * src/PeerAbstractCommand.h
  12924. (setNoCheck): New function.
  12925. (noCheck): New variable.
  12926. * src/PeerAbstractCommand.cc
  12927. (PeerAbstractCommand): Added the initialization of noCheck.
  12928. (execute): Added a check for noCheck.
  12929. (setNoCheck): New function.
  12930. * src/Util.h
  12931. (stdio.h): Included.
  12932. * src/Util.cc
  12933. (unistd.h): Included.
  12934. * src/DefaultDiskWriter.cc
  12935. (unistd.h): Included.
  12936. * src/Peer.h
  12937. (operator==): Defined the function body here.
  12938. (operator!=): Defined the function body here.
  12939. * src/Peer.cc
  12940. (operator==): Removed.
  12941. (operator!=): Removed.
  12942. * src/Piece.h
  12943. (Piece): Defined the function body here(copy constructor).
  12944. (operator=): Defined the function body here.
  12945. (operator==): Defined the function body here.
  12946. * src/Piece.cc
  12947. (Piece): Removed(copy constructor).
  12948. (operator=): Removed.
  12949. (operator==): Removed.
  12950. * src/PeerMessageUtil.h
  12951. (ChokeMessage.h): Removed.
  12952. (UnchokeMessage.h): Removed.
  12953. (InterestedMessage.h): Removed.
  12954. (NotInterestedMessage.h): Removed.
  12955. (HaveMessage.h): Removed.
  12956. (BitfieldMessage.h): Removed.
  12957. (RequestMessage.h): Removed.
  12958. (CancelMessage.h): Removed.
  12959. (PieceMessage.h): Removed.
  12960. (HandshakeMessage.h): Removed.
  12961. (KeepAliveMessage.h): Removed.
  12962. (PortMessage.h): Removed.
  12963. (HaveAllMessage.h): Removed.
  12964. (HaveNoneMessage.h): Removed.
  12965. (PeerConnection.h): Removed.
  12966. (HandshakeMessage.h): Included.
  12967. * src/BitfieldMessage.h
  12968. (init): New function.
  12969. (BitfieldMessage): Rewritten.
  12970. (BitfieldMessage): New function(overload).
  12971. * src/RequestSlot.h
  12972. (operator=): Defined the function body here.
  12973. (operator==): Defined the function body here.
  12974. * src/RequestSlot.cc
  12975. (operator=): Removed.
  12976. (operator==): Removed.
  12977. To remove the dependency on the PeerMessage subclass from
  12978. PeerInteraction:
  12979. * src/PeerMessageFactory.h: New class.
  12980. * src/PeerMessageFactory.cc: New class.
  12981. * src/SimplePeerMessage.cc
  12982. (send): If invalidate is true then do nothing.
  12983. * src/PeerInteractionCommand.cc
  12984. (HandshakeMessage.h): Included.
  12985. (KeepAliveMessage.h): Included.
  12986. (ChokeMessage.h): Included.
  12987. (UnchokeMessage.h): Included.
  12988. (HaveMessage.h): Included.
  12989. (executeInternal): Call setNoCheck().
  12990. Removed setWriteCheckSocket(socket).
  12991. * src/PeerInteraction.h
  12992. (ChokeMessage.h): Removed.
  12993. (UnchokeMessage.h): Removed.
  12994. (InterestedMessage.h): Removed.
  12995. (NotInterestedMessage.h): Removed.
  12996. (HaveMessage.h): Removed.
  12997. (BitfieldMessage.h): Removed.
  12998. (RequestMessage.h): Removed.
  12999. (CancelMessage.h): Removed.
  13000. (PieceMessage.h): Removed.
  13001. (HandshakeMessage.h): Removed.
  13002. (KeepAliveMessage.h): Removed.
  13003. (PortMessage.h): Removed.
  13004. (HaveAllMessage.h): Removed.
  13005. (HaveNoneMessage.h): Removed.
  13006. (RejectMessage.h): Removed.
  13007. (AllowedFastMessage.h): Removed.
  13008. (SuggestPieceMessage.h): Removed.
  13009. (PeerMessageFactory.h): Included.
  13010. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  13011. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  13012. (PeerMessageFactory): New variable.
  13013. (createPeerMessage): Removed.
  13014. (createHandshakeMessage): Removed.
  13015. (setPeerMessageCommonProperty): Removed.
  13016. (addRequestSlot): New function.
  13017. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13018. (getPeerMessageFactory): New function.
  13019. (createRequestMessage): Removed.
  13020. (createCancelMessage): Removed.
  13021. (createPieceMessage): Removed.
  13022. (createHaveMessage): Removed.
  13023. (createChokeMessage): Removed.
  13024. (createUnchokeMessage): Removed.
  13025. (createInterestedMessage): Removed.
  13026. (createNotInterestedMessage): Removed.
  13027. (createBitfieldMessage): Removed.
  13028. (createKeepAliveMessage): Removed.
  13029. (createHaveAllMessage): Removed.
  13030. (createHaveNoneMessage): Removed.
  13031. (createRejectMessage): Removed.
  13032. (createAllowedFastMessage): Removed.
  13033. * src/PeerInteraction.cc
  13034. (PeerInteraction): Allocate PeerMessageFactory here.
  13035. (~PeerInteraction): Deallocate PeerMessageFactory here.
  13036. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  13037. PieceMessage::ID.
  13038. (addMessage): Simplified by using PeerMessage::onPush().
  13039. (addRequestSlot): New function.
  13040. (rejectAllPieceMessageInQueue): Simplified by using
  13041. PeerMessage::onChoked().
  13042. (rejectPieceMessageInQueue): Simplified by using
  13043. PeerMessage::onCanceled().
  13044. (abortPiece): Simplified by using PeerMessage::abortPiece().
  13045. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13046. (createHandshakeMessage): Removed.
  13047. (createPeerMessage): Removed.
  13048. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  13049. (setPeerMessageCommonProperty): Removed.
  13050. (createRequestMessage): Removed.
  13051. (createCancelMessage): Removed.
  13052. (createPieceMessage): Removed.
  13053. (createHaveMessage): Removed.
  13054. (createChokeMessage): Removed.
  13055. (createUnchokeMessage): Removed.
  13056. (createInterestedMessage): Removed.
  13057. (createNotInterestedMessage): Removed.
  13058. (createBitfieldMessage): Removed.
  13059. (createKeepAliveMessage): Removed.
  13060. (createHaveAllMessage): Removed.
  13061. (createHaveNoneMessage): Removed.
  13062. (createRejectMessage): Removed.
  13063. (createAllowedFastMessage): Removed.
  13064. * src/PieceMessage.h
  13065. (createRejectMessage): New function.
  13066. (PieceMessage): Rewritten.
  13067. (onChoked): New function.
  13068. (onCanceled): New function.
  13069. * src/PieceMessage.cc
  13070. (send): If invalidate is true then do nothing, just return.
  13071. (createRejectMessage): New function.
  13072. (onChoked): New function.
  13073. (onCanceled): New function.
  13074. * src/RequestMessage.h
  13075. (RequestMessage): Rewritten.
  13076. (onPush): New function.
  13077. (onAbortPiece): New function.
  13078. * src/RequestMessage.cc
  13079. (onPush): New function.
  13080. (onAbortPiece): New function.
  13081. Update fd_set when a socket is added or deleted in order to improve
  13082. performance:
  13083. * src/DownloadEngine.h
  13084. (rfdset): New variable.
  13085. (wfdset): New variable.
  13086. (updateFdSet): New function.
  13087. * src/DownloadEngine.cc
  13088. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  13089. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  13090. (waitData): Copy rfdset and wfdset.
  13091. (updateFdSet): New function.
  13092. (addSocket): Call updateFdSet.
  13093. (deleteSocket): Call updateFdSet.
  13094. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13095. To add the support for Metalink3.0 backward compatible links:
  13096. * src/Request.h
  13097. (SAFE_CHARS): Added '#'.
  13098. (METALINK_MARK): New definition.
  13099. * src/Request.cc
  13100. (parseUrl): Added the support for Metalink3.0 backward compatible
  13101. links.
  13102. etc
  13103. * src/PeerInteraction.cc
  13104. (MsgPushBack): Removed.
  13105. (sendMessages): Use STL copy and back_inserter.
  13106. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  13107. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  13108. * src/TorrentMan.h
  13109. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  13110. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13111. * src/SharedHandle.h: New class.
  13112. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  13113. * src/HttpResponseCommand.h
  13114. (HttpResponseCommand): Wrapped Socket.
  13115. * src/SocketCore.h
  13116. (operator==): New function.
  13117. (operator!=): New function.
  13118. (operator<): New function.
  13119. (getSockfd): New function.
  13120. (isOpen): New function.
  13121. (writeData): New function.
  13122. * src/SocketCore.cc
  13123. (operator==): New function.
  13124. (operator!=): New function.
  13125. (operator<): New function.
  13126. * src/AbstractCommand.h
  13127. (socket): Changed its type to SocketHandle.
  13128. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13129. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13130. (disableReadCheckSocket): New function.
  13131. (disableWriteCheckSocket): New function.
  13132. (readCheckTarget): Changed its type to SocketHandle.
  13133. (writeCheckTarget): Changed its type to SocketHandle.
  13134. (AbstractCommand): Replaced Socket with SocketHandle.
  13135. * src/AbstractCommand.cc
  13136. (AbstractCommand): Replaced Socket with SocketHandle.
  13137. (~AbstractCommand): Removed the deallocation for Socket object.
  13138. (disableReadCheckSocket): New function.
  13139. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13140. (disableWriteCheckSocket): New function.
  13141. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13142. * src/HttpDownloadCommand.cc
  13143. (DownloadCommand): Replaced Socket with SocketHandle.
  13144. * src/PeerAbstractCommand.h
  13145. (socket): Changed its type to SocketHandle.
  13146. (peer): Changed its type to PeerHandle.
  13147. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13148. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13149. (disableReadCheckSocket): New function.
  13150. (disableWriteCheckSocket): New function.
  13151. (readCheckTarget): Changed its type to SocketHandle.
  13152. (writeCheckTarget): Changed its type to SocketHandle.
  13153. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13154. Replaced Peer with PeerHandle.
  13155. * src/HttpRequestCommand.cc
  13156. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13157. Use disableReadCheckSocket.
  13158. * src/PeerInitiateConnectionCommand.h
  13159. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13160. * src/PeerChokeCommand.cc
  13161. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  13162. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  13163. (execute): Use PeerHandle.
  13164. * src/PeerConnection.h
  13165. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  13166. (socket): Changed its type to SocketHandle.
  13167. (PeerConnection): Replaced Socket with SocketHandle.
  13168. * src/PeerConnection.cc
  13169. (PeerConnection): Replaced Socket with SocketHandle.
  13170. * src/PeerInteractionCommand.h
  13171. (PeerInteractionCommand): Replaced socket with SocketHandle.
  13172. Replaced Peer with PeerHandle.
  13173. * src/PeerInteractionCommand.cc
  13174. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  13175. Replaced Peer with PeerHandle.
  13176. (executeInternal): Use disableWriteCheckSocket.
  13177. Use HandshakeMessageHandle.
  13178. (receiveMessages): Use PeerMessageHandle.
  13179. (prepareForNextPeer): Use PeerHandle.
  13180. * src/HttpProxyRequestCommand.h
  13181. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13182. * src/HttpResponseCommand.cc
  13183. (HttpResponseCommand): Replaced Socket with SocketHandle.
  13184. * src/TorrentMan.cc
  13185. (nullPeer): Added external reference.
  13186. (~TorrentMan): Removed the deallocation of the elements of peers.
  13187. (addPeer): Rewritten.
  13188. (isPeerAvailable): Use nullPeer.
  13189. (deleteOldpeers): Replaced with deleteErrorPeer.
  13190. (deleteErrorPeer): New function.
  13191. (getPeer): Use PeerHandle and nullPeer.
  13192. (hasMissingPiece): Replaced Peer with PeerHandle.
  13193. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13194. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13195. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13196. (getMissingPiece): Replaced Peer with PeerHandle.
  13197. * src/FtpNegotiateCommand.cc
  13198. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  13199. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  13200. (recvGreeting): Use disableWriteCheckSocket.
  13201. (recvPasv): Removed the allocation of Socket.
  13202. Use disableReadCheckSocket.
  13203. (sendRestPasv): Use disableWriteCheckSocket.
  13204. (recvRetr): Changed assertion.
  13205. * src/PeerInteraction.h
  13206. (SharedHandle.h): Included SharedHandle.h.
  13207. (PeerMessageHandle): New type definition.
  13208. (HandshakeMessageHandle): New type definition.
  13209. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  13210. (peer): Changed its type to PeerHandle.
  13211. (createHandshakeMessage): Replaced HandshakeMessage with
  13212. HandshakeMessageHandle.
  13213. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  13214. (PeerInteraction): Replaced Peer with PeerHandle.
  13215. Replaced Socket with SocketHandle.
  13216. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13217. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13218. (receiveHandshake): Replaced HandshakeMessage with
  13219. HandshakeMessageHandle.
  13220. * src/PeerInteraction.cc
  13221. (PeerInteraction): Replaced Peer with PeerHandle.
  13222. Replaced Socket with SocketHandle.
  13223. (~PeerInteraction): Removed the deallocation of the elements of
  13224. messageQueue.
  13225. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  13226. (isSendingMessageInProgress): Replaced PeerMessage with
  13227. PeerMessageHandle.
  13228. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  13229. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13230. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  13231. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  13232. (abortPiece): Use PeerMessageHandle.
  13233. (receiveHandshake): Replaced HandshakeMessage with
  13234. HandshakeMessageHandle. Removed try-catch block.
  13235. (createHandshakeMessage): Replaced HandshakeMessage with
  13236. HandshakeMessageHandle.
  13237. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13238. Removed try-catch block.
  13239. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  13240. * src/HttpProxyResponseCommand.cc
  13241. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13242. * src/FtpTunnelResponseCommand.h
  13243. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13244. * src/HttpConnection.cc
  13245. (HttpConnection): Replaced Socket with SocketHandle.
  13246. * src/PeerAbstractCommand.cc
  13247. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13248. (~PeerAbstractCommand): Removed the deallocation of socket.
  13249. Use disableReadCheckSocket, disableWriteCheckSocket.
  13250. (disableReadCheckSocket): New function.
  13251. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13252. (disableWriteCheckSocket): New function.
  13253. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13254. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  13255. * src/FtpTunnelRequestCommand.cc
  13256. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13257. (~FtpTunnelRequestCommand): Corrected indentation.
  13258. * src/DownloadCommand.h
  13259. (DownloadCommand): Replaced Socket with SocketHandle.
  13260. * src/PeerListenCommand.cc
  13261. (PeerListenCommand): Removed the initialization of socket.
  13262. (~PeerListenCommand): Removed the deallocation of socket.
  13263. (bindPort): Use SocketHandle.
  13264. (execute): Use SocketHandle and PeerHandle.
  13265. * src/FtpDowndloadCommand.cc
  13266. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13267. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  13268. * src/main.cc
  13269. (main): Corrected indentation.
  13270. * src/HttpInitiateConnectionCommand.cc
  13271. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  13272. (executeInternal): Removed the allocation of socket.
  13273. * src/HttpRequestCommand.h
  13274. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13275. * src/FtpNegotiationCommand.h
  13276. (dataSocket): Changed its type to SocketHandle.
  13277. (serverSocket): Changed its type to SocketHandle.
  13278. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  13279. * src/TorrentMan.h
  13280. (MAX_PEER_UPDATE): Removed.
  13281. (MAX_PEERS): New definition.
  13282. (Peers): The element is now of type PeerHandle.
  13283. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  13284. (getPeer): Replaced Peer with PeerHandle.
  13285. (deleteOldErrorPeers): Removed.
  13286. (deleteErrorPeer): New function.
  13287. (hasMissingPiece): Replaced Peer with PeerHandle.
  13288. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13289. (getMissingPiece): Replaced Peer with PeerHandle.
  13290. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13291. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13292. (addActivePeer): Replaced Peer with PeerHandle.
  13293. (deleteActivePeer): Replaced Peer with PeerHandle.
  13294. Added a check for the return value of find.
  13295. * src/FtpTunnelResponseCommand.cc
  13296. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13297. * src/FtpInitiateConnectionCommand.cc
  13298. (executeInternal): Removed the allocation of socket.
  13299. * src/DownloadEngine.h
  13300. (Sockets): An element is now of type SocketHandle.
  13301. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  13302. (CommandUuids): New type definition.
  13303. (rsockets): Changed its type to SockCmdMap.
  13304. (wsockets): Changed its type to SockCmdMap.
  13305. (addSocket): Rewritten.
  13306. (deleteSocket): Rewritten.
  13307. (addSocketForReadCheck): Rewritten.
  13308. (deleteSocketForReadCheck): Rewritten.
  13309. (addSocketForWriteCheck): Rewritten.
  13310. (deleteSocketForWriteCheck): Rewritten.
  13311. (PairFind): New template class.
  13312. * src/HttpDownloadCommand.h
  13313. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  13314. * src/FtpConnection.cc
  13315. (FtpConnection): Replaced Socket with SocketHandle.
  13316. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  13317. block.
  13318. * src/InitiateConnectionCommandFactory.cc
  13319. (DlAbortEx.h): Included DlAbortEx.h.
  13320. (createInitiateConnectionCommand): Throw exception if the protocol of
  13321. requested URI is not supported.
  13322. * src/Peer.cc
  13323. (nullPeer): Changed its type to PeerHandle.
  13324. (operator==): New function.
  13325. (operator!=): New function.
  13326. * src/Peer.h
  13327. (SharedHandle.h): Included SharedHandle.h.
  13328. (operator==): New function.
  13329. (operator!=): New function.
  13330. (Peer): Added the default constructor.
  13331. Use resetStatus() to initialize member variables.
  13332. (nullPeer): Removed.
  13333. * src/TrackerUpdateCommand.cc
  13334. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  13335. with MIN_PEERS.
  13336. * src/PeerListenCommand.h
  13337. (socket): Changed its type to SocketHandle.
  13338. * src/Command.h
  13339. (CommandUuid): New type definition.
  13340. (uuid): New variable.
  13341. (uuidGen): New variable.
  13342. (Command): Added the initialization of uuid.
  13343. (getUuid): New function.
  13344. * src/Socket.h
  13345. (Socket): Removed.
  13346. (SocketHandle): New type definition.
  13347. * src/DownloadEngine.h
  13348. (FindCommand): New function object.
  13349. (run): The portion of socket check was rewritten.
  13350. (SetDescriptor): New function object.
  13351. (AccumulateActiveCommandUuid): New function object.
  13352. (waitData): Rewritten.
  13353. (addSocket): Rewritten.
  13354. (deleteSocket): Rewritten.
  13355. (addSocketForReadCheck): Rewritten.
  13356. (addSocketForWriteCheck): Rewritten.
  13357. (deleteSocketForReadCheck): Rewritten.
  13358. (deleteSocketForWriteCheck): Rewritten.
  13359. * src/HttpProxyResponseCommand.h
  13360. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  13361. * src/HttpConnection.h
  13362. (socket): Changed its type to SocketHandle.
  13363. (HttpConnection): Replaced Socket with SocketHandle.
  13364. * src/PeerInitiateConnectionCommand.cc
  13365. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13366. (executeInternal): Removed the allocation of socket.
  13367. (prepareForNextPeer): Use PeerHandle.
  13368. * src/PeerMessage.h
  13369. (peer): Changed its type to PeerHandle.
  13370. (getPeer): Replaced Peer with PeerHandle.
  13371. (setPeer): Replaced Peer with PeerHandle.
  13372. * src/DownloadCommand.cc
  13373. (DownloadCommand): Replaced Socket with SocketHandle.
  13374. * src/FtpConnection.h
  13375. (socket): Changed its type to SocketHandle.
  13376. (FtpConnection): Replaced Socket with SocketHandle.
  13377. (sendPort); Replaced Socket with SocketHandle.
  13378. * src/FtpDowndloadCommand.h
  13379. (ctrlSocket): Changed its type to SocketHandle.
  13380. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13381. * src/HttpProxyRequestCommand.cc
  13382. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13383. * src/FtpTunnelRequestCommand.h
  13384. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13385. etc
  13386. * src/PeerChokeCommand.h
  13387. (setAllPeerChoked): Removed.
  13388. (setAllPeerResetDelta): Removed.
  13389. * src/PeerChokeCommand.cc
  13390. (setAllPeerChoked): Removed.
  13391. (ChokePeer): New function object.
  13392. (setAllPeerResetDelta): Removed.
  13393. (ResetDelta): New function object.
  13394. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  13395. (execute): Show download speed when the local node is a seeder.
  13396. setAllPeerChoked and setAllPeerResetDelta were rewritten
  13397. using STL.
  13398. * src/TrackerWatcherCommand.h
  13399. (MIN_PEERS): Removed.
  13400. * src/TorrentMan.cc
  13401. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  13402. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13403. To fix the bug that .aria2 file is not saved if downloading is stopped
  13404. by the errors:it results that aria2 can not resume downloading:
  13405. * src/main.cc
  13406. (normalDownload): Added the call to save().
  13407. (main): Added the deletion of the elements in 'reserved'.
  13408. To fix log:
  13409. * src/PeerInteraction.cc
  13410. (receiveHandshake): Fixed log.
  13411. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13412. To improve download performance in BitTorrent:
  13413. * src/TorrentMan.cc
  13414. (getPeer): Check the number of connections. Return nullPeer if
  13415. it is greater than MAX_PEER_UPDATE.
  13416. This code was originally here, but was removed in 0.5.1.
  13417. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13418. To improve the conditional compilation:
  13419. * src/MultiDiskWriter.h:
  13420. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13421. * src/MultiDiskWriter.cc:
  13422. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13423. * src/Util.h:
  13424. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13425. Added ENABLE_BITTORRENT around computeFastSet().
  13426. * src/Util.cc:
  13427. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13428. Added ENABLE_BITTORRENT around computeFastSet().
  13429. * src/messageDigest.h:
  13430. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  13431. * src/ShaVisitor.h:
  13432. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13433. * src/ShaVisitor.cc:
  13434. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13435. * src/main.cc:
  13436. Added ENABLE_BITTORRENT around includes and blocks related to
  13437. BitTorrent.
  13438. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  13439. digest support is not available.
  13440. * src/AbstractDiskWriter.h:
  13441. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13442. * src/AbstractDiskWriter.cc:
  13443. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13444. * src/MetalinkEntry.cc
  13445. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  13446. support is not available.
  13447. To add command-line options for Metalink:
  13448. * src/main.cc:
  13449. Added metalink-version, metalink-language, metalink-os,
  13450. follow-metalink.
  13451. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  13452. * src/main.cc: Use these definition.
  13453. * Release 0.6.0
  13454. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13455. To add Metalink support(http/ftp only):
  13456. * src/AbstractCommand.h
  13457. (tryReserved): New function.
  13458. * src/AbstractCommand.cc
  13459. (execute): Call tryReserved().
  13460. (tryReserved): New function.
  13461. * src/Request.h
  13462. (Requests): New type definition.
  13463. * src/SegmentMan.h
  13464. (reserved): New variable.
  13465. * src/Util.h
  13466. (fileChecksum): New function.
  13467. (toUpper): New function.
  13468. (toLower): New function.
  13469. * src/Util.cc
  13470. (messageDigest.h): Included.
  13471. (trim): Trim \r\n\t.
  13472. (fileChecksum): New function.
  13473. (toUpper): New function.
  13474. (toLower): New function.
  13475. * src/main.cc
  13476. (normalDownload): New function.
  13477. (main): Added 2 command-line options: metalink-file,
  13478. metalink-connection. Their usage has not been written yet.
  13479. * src/MetalinkProcessor.h: New class.
  13480. * src/Xml2MetalinkProcessor.h: New class.
  13481. * src/Xml2MetalinkProcessor.cc: New class.
  13482. * src/MetalinkEntry.h: New class.
  13483. * src/MetalinkEntry.cc: New class.
  13484. * src/MetalinkResource.h: New class.
  13485. * src/MetalinkResource.cc: New class.
  13486. To add md5 message digest checking:
  13487. * src/messageDigest.h: Rewritten.
  13488. * src/MultiDiskWriter.cc: Updated according to the changes in
  13489. messageDigest.h.
  13490. * src/ShaVisitor.cc: Updated according to the changes in
  13491. messageDigest.h.
  13492. * src/Util.cc: Updated according to the changes in messageDigest.h.
  13493. * src/AbstractDiskWriter.cc: Updated according to the changes in
  13494. messageDigest.h.
  13495. To fix a bug that causes segfault when the payload length in peer
  13496. message is less than 0:
  13497. * src/PeerConnection.cc:
  13498. (receiveMessage): Fixed the bug.
  13499. * src/PeerMessageUtil.cc
  13500. (checkLength): Throw an exception if length is less than or equals to
  13501. 0.
  13502. To add new interfaces to Base64 encoding/decoding:
  13503. * src/Base64.h
  13504. (part_encode): Changed the method signature.
  13505. (encode): New function(overload).
  13506. (decode): New function(overload).
  13507. * src/Base64.cc
  13508. (part_encode): Rewritten.
  13509. (encode): Rewritten.
  13510. (encode): New function(overload).
  13511. To prevent a peer to download same piece if there is an error in
  13512. checksum:
  13513. * src/PieceMessage.cc
  13514. (receivedAction): Call peerInteraction->abortPiece().
  13515. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13516. To fix the bug that causes same have message is sent many times to
  13517. a single peer.
  13518. * src/Time.cc
  13519. (isNewer): Use Util::difftv().
  13520. * src/Util.cc
  13521. (difftv): Added a cast to (long long int).
  13522. * src/TorrentMan.cc
  13523. (advertisePiece): Use push_front.
  13524. (getAdvertisedPieceIndexes): A performance improvement was made.
  13525. To fix the bug that sends tracker requests without a sleep interval
  13526. when the number of connections is less than 15.
  13527. * src/TrackerWatcherCommand.cc
  13528. (execute): Now the number of connections is not a factor to decide
  13529. whether or not a tracker request should be sent or not.
  13530. * src/Time.h
  13531. (setTimeInSec): New function.
  13532. * src/Time.cc
  13533. (setTimeInSec): New function.
  13534. etc.
  13535. * src/ChokeMessage.cc
  13536. (receivedAction): Removed peer->snubbing = false
  13537. * src/PeerConnection.h
  13538. (receiveHandshake): Updated doc.
  13539. * src/TorrentMan.h
  13540. (getAdvertisedPieceIndexes): Updated the method signature.
  13541. * src/TorrentMan.cc
  13542. (getAdvertisedPieceIndexes): Updated the method signature.
  13543. * src/Time.h
  13544. (getTimeInMicros): Added a cast to (long long int).
  13545. (getTimeInMillis): Added a cast to (long long int).
  13546. * Release 0.5.2
  13547. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13548. To make a listening socket non-block:
  13549. * src/SocketCore.h
  13550. (setNonBlockingMode): New function.
  13551. * src/SocketCore.cc
  13552. (setNonBlockingMode): New function.
  13553. (beginListen): Added a call to setNonBlockingMode().
  13554. (acceptConnection): Call setNonBlockingMode().
  13555. (setBlockingMode): Updated.
  13556. To handle tracker's NAT-checking:
  13557. * src/PeerConnection.cc
  13558. (receiveHandshake): 'msg' param is filled with received data and
  13559. its length is assigned to 'length' param, even if all handshake
  13560. message is not yet received.
  13561. * src/PeerInteractionCommand.cc
  13562. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  13563. a new peer connects to localhost.
  13564. A call to peerInteraction->sendHandshake() was removed because
  13565. it is called from peerInteraction->receiveHandshake(true).
  13566. * src/PeerInteraction.h
  13567. (quickReplied): New variable.
  13568. (receiveHandshake): Added an argument.
  13569. * src/PeerInteraction.cc
  13570. (PeerInteraction): Added the initialization of quickReplied.
  13571. (receiveHandshake): Send handshake message as soon as the info hash
  13572. in a handshake message from a peer is correct.
  13573. To change the random part of peer id and key parameter:
  13574. * src/TorrentMan.h
  13575. (key): New variable.
  13576. * src/TorrentMan.cc
  13577. (setupInternal1): Use Util::randomAlpha() to generate random part
  13578. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  13579. key is also generated by Util::randomAlpha() and it is now 8 character
  13580. long.
  13581. * src/Util.h
  13582. (randomAlpha): New function.
  13583. * src/Util.cc
  13584. (randomAlpha): New function.
  13585. * src/TrackerWatcherCommand.cc
  13586. (execute): In a tracker request: Use torrentMan->key as key parameter.
  13587. Added no_peer_id=1.
  13588. Set snubbing flag to false when a choke message is received from a
  13589. snubbed peer.
  13590. * src/ChokeMessage.cc
  13591. (receivedAction): Set snubbing flag to false.
  13592. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13593. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  13594. * src/SimpleLogger.h (writeHeader): New function.
  13595. * src/SimpleLogger.cc (writeHeader): New function.
  13596. (writeLog): Fixed the bug that causes segfaults if exception message
  13597. contains an unescaped "%" character.
  13598. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  13599. when a tracker request fails.
  13600. * src/Request.cc (parseUrl): Query string is now handled properly.
  13601. * Release 0.5.1
  13602. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13603. To add Time class which represents a specific instant in time and
  13604. its precision is microseconds. Time checking procedures were rewritten
  13605. using this object.
  13606. * src/Time.h: New class.
  13607. * src/Time.cc: New class.
  13608. * src/AbstractCommand.h
  13609. (updateCheckPoint): Removed.
  13610. (isTimeoutDetected): Removed.
  13611. (checkPoint): Changed the type to Time.
  13612. (timeout): New variable.
  13613. (setTimeout): New function.
  13614. * src/AbstractCommand.cc
  13615. (AbstractCommand): Removed the initialization of checkPoint.
  13616. Added the initialization of timeout.
  13617. (updateCheckPoint): Removed.
  13618. (isTimeoutDetected): Removed.
  13619. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  13620. * src/PeerChokeCommand.h
  13621. (checkPoint): Changed the type to Time.
  13622. * src/PeerChokeCommand.cc
  13623. (PeerChokeCommand): Removed the initialization of checkPoint.
  13624. (execute): Rewritten using Time object.
  13625. * src/TrackerWatcherCommand.h
  13626. (checkPoint): Changed the type to Time.
  13627. * src/TrackerWatcherCommand.cc
  13628. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  13629. (execute): Rewritten.
  13630. * src/ConsoleDownloadEngine.h
  13631. (cp): Changed the type to Time.
  13632. (startup): Changed the type to Time.
  13633. * src/ConsoleDownloadEngine.cc
  13634. (initStatistics): Use cp.reset(), startup.reset().
  13635. (calculateStatistics): Rewritten using Time object.
  13636. * src/PeerAbstractCommand.h
  13637. (updateCheckPoint): Removed.
  13638. (isTimeoutDetected): Removed.
  13639. (checkPoint): Changed the type to Time.
  13640. * src/PeerAbstractCommand.cc
  13641. (PeerAbstractCommand): Removed the initialization of checkPoint.
  13642. (updateCheckPoint): Removed.
  13643. (isTimeoutDetected): Removed.
  13644. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  13645. * src/PeerInteractionCommand.cc
  13646. (PeerInteractionCommand): Removed the initializations of struct
  13647. timeval variables.
  13648. * src/PeerInteractionCommand.h
  13649. (keepAliveCheckPoint): Changed the type to Time.
  13650. (chokeCheckPoint): Changed the type to Time.
  13651. (freqCheckPoint): Changed the type to Time.
  13652. (haveCheckTime): Changed the type to Time.
  13653. * src/PeerInteractionCommand.cc
  13654. (executeInternal): Rewritten using Time object.
  13655. (detectMessageFlooding): Rewritten using Time object.
  13656. (checkLongTimePeerChoking): Rewritten using Time object.
  13657. (sendKeepAlive): Rewritten using Time object.
  13658. (checkHave): Rewritten using Time object.
  13659. * src/SleepCommand.h
  13660. (checkPoint): Changed the type to Time.
  13661. * src/SleepCommand.cc
  13662. (SleepCommand): Removed the initialization of checkPoint.
  13663. (execute): Rewritten using Time object.
  13664. * src/TorrentAutoSaveCommand.h
  13665. (checkPoint): Changed the type to Time.
  13666. * src/TorrentAutoSaveCommand.cc
  13667. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  13668. (execute): Rewritten.
  13669. * src/DownloadCommand.h
  13670. (sw): Changed the type to Time.
  13671. * src/DownloadCommand.cc
  13672. (DownloadCommand): Removed the initialization of sw.
  13673. (executeInternal): Rewritten.
  13674. * src/RequestSlot.h
  13675. (dispatchedTime): Changed the type to Time.
  13676. * src/RequestSlot.cc
  13677. (RequestSlot): Removed the call to setDispatchedTime().
  13678. (setDispatchedTime): Rewirtten.
  13679. (isTimeout): Rewritten.
  13680. (getLatencyInMillis): Rewritten.
  13681. * src/TorrentDownloadEngine.h
  13682. (cp): Changed the type to Time[2].
  13683. (startup): Changed the type to Time.
  13684. * src/TorrentDownloadEngine.cc
  13685. (initStatistics): Rewritten.
  13686. (calculateStatistics): Rewritten.
  13687. * src/DownloadEngine.cc
  13688. (run): Rewritten.
  13689. To detect all attempts to connect to the tracker are failed:
  13690. * src/AbstractCommand.cc
  13691. (execute): Increment e->segmentMan->errors if a command aborted.
  13692. * src/SegmentMan.h
  13693. (errors): New variable.
  13694. * src/SegmentMan.cc
  13695. (SegmentMan): Added the initialization of errors.
  13696. (init): Added the initialization of errors.
  13697. * src/TrackerWatcherCommand.cc
  13698. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  13699. request was failed.
  13700. To handle snubbed peers:
  13701. * src/PeerChokeCommand.cc
  13702. (optUnchokingPeer): Snubbed peers don't get unchoked.
  13703. (execute): Snubbed peers don't get unchoked.
  13704. * src/PeerInteraction.h
  13705. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  13706. * src/PeerInteraction.cc
  13707. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  13708. back the requested 16k block in 60 seconds.
  13709. * src/PieceMessage.cc
  13710. (receivedAction): A peer's snubbed state is cleard if it sends
  13711. the requested 16k block in 60 seconds.
  13712. * src/Peer.h
  13713. (snubbing): New variable.
  13714. * src/Peer.cc
  13715. (resetStatus): Added snubbed = false.
  13716. To fix the bug that causes have message is not sent:
  13717. * src/PeerInteractionCommand.cc
  13718. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  13719. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  13720. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  13721. * src/TorrentMan.h
  13722. (HaveEntry): New class.
  13723. (advertisePiece): Rewritten.
  13724. (getAdvertisedPieceIndexes): Rewritten.
  13725. (Haves): Changed the type.
  13726. (getAdvertisedPieceIndexes): Added an argument.
  13727. Others:
  13728. * src/TorrentMan.h
  13729. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  13730. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  13731. * src/TorrentMan.cc
  13732. (getPeer): Don't check the number of connections here.
  13733. (setupInternal1): Changed peerId.
  13734. * src/PeerInteractionCommand.h
  13735. (KEEP_ALIVE_INTERVAL): New definition.
  13736. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  13737. * src/main.cc
  13738. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  13739. * src/DownloadEngine.h: Removed unnecessary header includes.
  13740. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13741. To fix the bug that causes segfaults if a tracker returns a zero-length
  13742. list as "peers":
  13743. * src/TrackerUpdateCommand.cc
  13744. (execute): Added a check to see wether the type of peers is Data*.
  13745. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13746. * Release 0.5.0
  13747. To fix compile issue with gcc3:
  13748. * src/CancelMessage.h
  13749. (ID): Renamed as ID_t
  13750. (ID_t): New enum.
  13751. * src/RejectMessage.h
  13752. (ID): Renamed as ID_t
  13753. (ID_t): New enum.
  13754. * src/SuggestPieceMessage.h
  13755. (ID): Renamed as ID_t
  13756. (ID_t): New enum.
  13757. * src/AllowedFastMessage.h
  13758. (ID): Renamed as ID_t
  13759. (ID_t): New enum.
  13760. * src/PortMessage.h
  13761. (ID): Renamed as ID_t
  13762. (ID_t): New enum.
  13763. * src/HaveNoneMessage.h
  13764. (ID): Renamed as ID_t
  13765. (ID_t): New enum.
  13766. * src/KeepAliveMessage.h
  13767. (ID): Renamed as ID_t
  13768. (ID_t): New enum.
  13769. * src/HaveAllMessage.h
  13770. (ID): Renamed as ID_t
  13771. (ID_t): New enum.
  13772. * src/UnchokeMessage.h
  13773. (ID): Renamed as ID_t
  13774. (ID_t): New enum.
  13775. * src/BitfieldMessage.h
  13776. (ID): Renamed as ID_t
  13777. (ID_t): New enum.
  13778. * src/PieceMessage.h
  13779. (ID): Renamed as ID_t
  13780. (ID_t): New enum.
  13781. * src/RequestMessage.h
  13782. (ID): Renamed as ID_t
  13783. (ID_t): New enum.
  13784. * src/NotInterestedMessage.h
  13785. (ID): Renamed as ID_t
  13786. (ID_t): New enum.
  13787. * src/ChokeMessage.h
  13788. (ID): Renamed as ID_t
  13789. (ID_t): New enum.
  13790. * src/InterestedMessage.h
  13791. (ID): Renamed as ID_t
  13792. (ID_t): New enum.
  13793. * src/HaveMessage.h
  13794. (ID): Renamed as ID_t
  13795. (ID_t): New enum.
  13796. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13797. * src/PeerAbstractCommand.h
  13798. (beforeSocketCheck): Removed.
  13799. * src/PeerAbstractCommand.cc
  13800. Modified in order to call executeInternal() even if socket check
  13801. and upload limit check fail.
  13802. * src/PeerInteractionCommand.h
  13803. (keepAlive): Removed.
  13804. (sendKeepAlive): New function.
  13805. (checkHave): New function.
  13806. (beforeSocketCheck): Removed.
  13807. * src/PeerInteractionCommand.cc
  13808. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  13809. calls to checkHave() and sendKeepAlive().
  13810. (keepAlive): Renamed to sendKeepAlive().
  13811. (sendKeepAlive): New function.
  13812. (beforeSocketCheck): Removed.
  13813. (checkHave): New function.
  13814. * src/BitfieldMan.cc
  13815. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  13816. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  13817. 0.
  13818. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  13819. * src/TorrentMan.h
  13820. (UsedPieces): Removed.
  13821. (Pieces): New type definition.
  13822. * src/Piece.h: Updated doc.
  13823. * src/Peer.h
  13824. (totalLength): Removed.
  13825. * src/Peer.cc
  13826. (updateLatency): Fixed the latency calculation.
  13827. * src/TorrentMan.cc
  13828. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  13829. than or equal to MAX_PEER_LIST_SIZE.
  13830. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  13831. then return false.
  13832. (deleteOldErrorPeers): Rewritten.
  13833. (deleteUsedPiece): Fixed the miss use of STL remove.
  13834. * src/PeerInteraction.h
  13835. (Pieces): Removed.
  13836. (deleteTimeoutRequestSlot): Removed.
  13837. (deleteCompletedRequestSlot): Removed.
  13838. (checkRequestSlot): New function.
  13839. * src/PeerInteraction.cc
  13840. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  13841. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  13842. (checkRequestSlot): New function.
  13843. * src/DownloadEngine.cc
  13844. (run): Clear activeSockets before calling waitData().
  13845. (waitData): Removed a call to activeSockets.clear().
  13846. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13847. To attempt to handle EINTR:
  13848. * src/SocketCore.cc
  13849. (isReadable): Added EINTR handling.
  13850. (isWritable): Added EINTR handling.
  13851. To improve the performance:
  13852. * src/AbstractCommand.cc
  13853. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  13854. * src/PeerInteractionCommand.h
  13855. (receiveMessage): Renamed as receiveMessages().
  13856. (receiveMessages): New function.
  13857. * src/PeerInteractionCommand.cc
  13858. (executeInternal): receiveMessage loop is moved to new receiveMessages
  13859. () function. detectMessageFlooding() is moved here.
  13860. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  13861. (). The flooding detection for have message is comment out.
  13862. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  13863. Util::difftv().
  13864. (receiveMessage): Renamed as receiveMessages().
  13865. (receiveMessages): New function.
  13866. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  13867. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  13868. * src/SleepCommand.cc
  13869. (execute): Use Util::difftvsec() instead of Util::difftv().
  13870. * src/BitfieldMan.h
  13871. (getNthBitIndex): New function.
  13872. (hasMissingPiece): New function.
  13873. (getAllMissingIndexes): New function.
  13874. * src/BitfieldMan.cc
  13875. (countSetBit): Rewritten.
  13876. (getNthBitIndex): New function.
  13877. (getMissingIndexRandomly): Rewritten.
  13878. (hasMissingPiece): New function.
  13879. (getAllMissingIndexes): New function.
  13880. * src/TorrentMan.cc
  13881. (hasMissingPiece): New function.
  13882. (deleteUsedPiece): Rewritten using STL.
  13883. * src/PeerInteraction.cc
  13884. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  13885. is a little bit faster then TorrentMan::getMissingPieceIndex().
  13886. (addRequests): Updated the number of pending requests.
  13887. * src/PeerAbstractCommand.cc
  13888. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  13889. (execute): Returns true if TorrentMan::isHalt() is true.
  13890. Corrected the condition of upload limit checking.
  13891. * src/Util.h
  13892. (countBit): New function.
  13893. * src/Util.cc
  13894. (nbits): New variable.
  13895. (countBit): New function.
  13896. * src/DownloadEngine.h
  13897. (SockCmdMap): New type definition.
  13898. (waitData): Added an argument.
  13899. (addSocket): Added an argument.
  13900. (addSocketForReadCheck): Added an argument.
  13901. (addSocketForWriteCheck): Added an argument.
  13902. * src/DownloadEngine.cc
  13903. (run): Executes only commands whose sockets are ready to read or write.
  13904. All commands are executed in every 1 second.
  13905. (waitData): Calls select() again if it returned
  13906. EINTR.
  13907. (addSocket): Saves socket and command object pair to the map.
  13908. (deleteSocket): Deletes socket and command object pair from the map.
  13909. (addSocketForReadCheck): Added an argument.
  13910. (addSocketForWriteCheck): Added an argument.
  13911. * src/DownloadCommand.cc
  13912. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  13913. To send "event=stopped" to the tracker when the application finishes:
  13914. * src/PeerChokeCommand.h
  13915. (checkPoint): New variable.
  13916. * src/PeerChokeCommand.cc
  13917. (PeerChokeCommand): Added the initialization of checkPoint.
  13918. (execute): The interval check is now done by checkPoint, not
  13919. SleepCommand. Return true if TorrentMan::isHalt() is true.
  13920. * src/TorrentMan.h
  13921. (halt): New function.
  13922. (hasMissingPiece): New function.
  13923. (isHalt): New function.
  13924. (setHalt): New function.
  13925. * src/TorrentMan.cc
  13926. (TorrentMan): Added the initialization of halt.
  13927. * src/TorrentAutoSaveCommand.h
  13928. (checkPoint): New variable.
  13929. * src/PeerListenCommand.cc
  13930. (execute): Returns true if TorrentMan::isHalt() is true.
  13931. * src/main.cc
  13932. (setSignalHander): Added flags argument.
  13933. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  13934. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  13935. Removed printDownloadAbortMessage() after torrent downloading loop.
  13936. * src/TorrentAutoSaveCommand.cc
  13937. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  13938. (execute): Returns true if TorrentMan::isHalt() is true.
  13939. The interval check is now done by checkPoint, not SleepCommand.
  13940. * src/TrackerWatcherCommand.cc
  13941. (execute): If TorrentMan::isHalt(), then create a tracker request with
  13942. event=stopped.
  13943. * src/TrackerUpdateCommand.cc
  13944. (prepareForRetry): Do not use SleepCommand here.
  13945. (execute): Returns true if TorrentMan::isHalt() is true.
  13946. Others:
  13947. * src/TorrentMan.cc
  13948. (getMissingPieceIndex): Updated log message.
  13949. * src/PeerInteraction.cc
  13950. (createPeerMessag): Updated log message.
  13951. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13952. To add the ability to download several pieces in mix in a command and
  13953. increase the number of request slots according to request-cancel
  13954. latency:
  13955. * src/PeerInteractionCommand.cc
  13956. (executeInternal): The number of messages to be received at a time
  13957. is increased from 10 to 50.
  13958. * src/LogFactory
  13959. (getInstance): Added NullLogger.
  13960. * src/NullLogger.h: New class.
  13961. * src/BitfieldMan.h
  13962. (getMissingIndex): New function.
  13963. * src/BitfieldMan.cc
  13964. (getMissingIndex): New function.
  13965. * src/TorrentMan.h
  13966. (checkOutPiece): New function.
  13967. (getMissingPieceIndex): New function.
  13968. (getMissingFastPieceIndex): New function.
  13969. (getMissingFastPiece): New function.
  13970. * src/TorrentMan.cc
  13971. (updatePiece): Rewritten using STL.
  13972. (syncPiece): Rewritten using STL.
  13973. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  13974. checkOutPiece().
  13975. (getMissingPieceIndex): New function.
  13976. (getMissingFastPieceIndex): New function.
  13977. (getMissingFastPiece): New function.
  13978. (checkOutPiece): New function.
  13979. * src/PeerInteraction.h
  13980. (Pieces): New type definition.
  13981. (piece): Removed.
  13982. (pieces): New variable.
  13983. (getNewPieceAndSendInterest): Added the "piece" argument.
  13984. (abortPiece): Added the "piece" argument.
  13985. (abortAllPieces): New function.
  13986. (isInRequestSlot): New function.
  13987. (hasDownloadPiece): Added the "index" argument.
  13988. (setDownloadPiece): Removed.
  13989. (getDownloadPiece): Added the "index" argument.
  13990. (updatePiece): New function.
  13991. (createRequestMessage): Added the "index" argument.
  13992. * src/PeerInteraction.cc
  13993. (onChoked): Rewritten.
  13994. (abortPiece): Rewirtten.
  13995. (abortAllPieces): New function.
  13996. (deleteTimeoutRequestSlot): Rewritten.
  13997. Clarified code a little bit.
  13998. (deleteCompletedRequestSlot): Rewritten.
  13999. (isInRequestSlot): New function.
  14000. (syncPiece): Rewritten.
  14001. (updatePiece): New function.
  14002. (getNewPieceAndSendInterest): Rewritten.
  14003. (addRequests): Rewritten.
  14004. (getDownloadPiece): Rewritten.
  14005. (hasDownloadPiece): Rewritten.
  14006. (createRequestMessage): Added the "index" argument.
  14007. * src/common.h
  14008. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  14009. (DIV_FLOOR): New definition.
  14010. * src/PieceMessage.cc
  14011. (receivedAction): Update request-piece latency here.
  14012. * src/RequestSlot.h
  14013. (getLatencyInMillis): New function.
  14014. * src/RequestSlot.cc
  14015. (isTimeout): Rewritten using getLatencyInMillis.
  14016. (getLatencyInMillis): New function.
  14017. * src/Piece.h
  14018. (operator==): New function.
  14019. (getMissingBlockIndex): New function.
  14020. * src/Piece.cc
  14021. (operator==): New function.
  14022. (getMissingBlockIndex): New function.
  14023. * src/Peer.h
  14024. (DEFAULT_LATENCY): New definition.
  14025. (latency): New variable.
  14026. (updateLatency): New function.
  14027. (getLatency): New function.
  14028. * src/Peer.cc
  14029. (resetStatus): Reset latecy.
  14030. (updateLatency): New function.
  14031. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14032. * src/SocketCore.cc
  14033. (isReadable): Added secure to the condition.
  14034. * src/HttpConnection.cc
  14035. (receiveResponse): Fixed a bug that causes no response header
  14036. exception.
  14037. * src/Peer.h
  14038. (getFastSet): Fixed the return value type.
  14039. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14040. To remove a wait from download loop:
  14041. * src/DownloadEngine.cc
  14042. (run): Comment out shortSleep.
  14043. To rewrite the message handling:
  14044. * src/SimplePeerMessage.h: New class.
  14045. * src/SimplePeerMessage.cc: New class.
  14046. * src/CancelMessage.h: Derived from SimplePeerMessage.
  14047. (msg): New variable.
  14048. (create): New function.
  14049. (send): Removed.
  14050. (getMessage): New function.
  14051. (getMessageLength): New function.
  14052. * src/CancelMessage.cc
  14053. (create): New function.
  14054. (receivedAction): Replaced deleteRequestMessageInQueue with
  14055. rejectPieceMessageInQueue.
  14056. (send): Removed.
  14057. (getMessage): New function.
  14058. (getMessageLength): New function.
  14059. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  14060. (msg): New variable.
  14061. (msgLength): New variable.
  14062. (~BitfieldMessage): Deleted msg.
  14063. (send): Removed.
  14064. (getMessage): New function.
  14065. (getMessageLength): New function.
  14066. * src/BitfieldMessage.cc
  14067. (create): New function.
  14068. (send): Removed.
  14069. (getMessage): New function.
  14070. (getMessageLength): New function.
  14071. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  14072. (msg): New variable.
  14073. (sendPredicate): New function.
  14074. (onSendComplete): New function.
  14075. (send): Removed.
  14076. (getMessage): New function.
  14077. (getMessageLength): New function.
  14078. (create): New function.
  14079. * src/ChokeMessage.cc
  14080. (create): New function.
  14081. (send): Removed.
  14082. (sendPredicate): New function.
  14083. (getMessage): New function.
  14084. (getMessageLength): New function.
  14085. (onSendComplete): New function.
  14086. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  14087. (msg): New variable.
  14088. (send): Removed.
  14089. (getMessage): New function.
  14090. (getMessageLength): New function.
  14091. * src/KeepAliveMessage.cc
  14092. (send): Removed.
  14093. (getMessage): New function.
  14094. (getMessageLength): New function.
  14095. * src/PortMessage.h
  14096. (create): New function.
  14097. (receivedAction): Updated log message.
  14098. * src/PortMessage.cc: New file.
  14099. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  14100. (msg): New variable.
  14101. (sendPredicate): New function.
  14102. (onSendComplete): New function.
  14103. (create): New function.
  14104. (send): Removed.
  14105. (getMessage): New function.
  14106. (getMessageLength): New function.
  14107. * src/UnchokeMessage.cc
  14108. (create): New function.
  14109. (send): Removed.
  14110. (sendPredicate): New function.
  14111. (getMessage): New function.
  14112. (getMessageLength): New function.
  14113. (onSendComplete): New function.
  14114. * src/PieceMessage.h
  14115. (leftPieceDataLength): Removed.
  14116. (leftDataLength): New variable.
  14117. (headerSend): New variable.
  14118. (pendingCount): New variable.
  14119. (msgHeader): New variable.
  14120. (sendPieceData): New function.
  14121. (incrementPendingCount): New function.
  14122. (isPendingCountMax): New function.
  14123. (create): New function.
  14124. (getMessageHeader): New function.
  14125. (getMessageHeaderLength): New function.
  14126. * src/PieceMessage.cc
  14127. (create): New function.
  14128. (getMessageHeader): New function.
  14129. (getMessageHeaderLength): New function.
  14130. (send): Rewritten.
  14131. (sendPieceData): New function.
  14132. * src/HaveMessage.h: Derived from SimplePeerMessage.
  14133. (msg): New variable.
  14134. (create): New function.
  14135. (getMessage): New function.
  14136. (getMessageLength): New function.
  14137. * src/HaveMessage.cc
  14138. (create): New function.
  14139. (send): Removed.
  14140. (sendPieceData): New function.
  14141. (getMessage): New function.
  14142. (getMessageLength): New function.
  14143. * src/RequestMessage.h: Derived from SimplePeerMessage.
  14144. (msg): New variable.
  14145. (create): New function.
  14146. (send): Removed.
  14147. (getMessage): New function.
  14148. (getMessageLength): New function.
  14149. * src/RequestMessage.cc
  14150. (create): New function.
  14151. (receivedAction): Added the handling of fast extension.
  14152. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  14153. (send): Removed.
  14154. (getMessage): New function.
  14155. (getMessageLength): New function.
  14156. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  14157. (msg): New variable.
  14158. (sendPredicate): New function.
  14159. (onSendComplete): New function.
  14160. (create): New function.
  14161. (getMessage): New function.
  14162. (getMessageLength): New function.
  14163. * src/InterestedMessage.cc
  14164. (create): New function.
  14165. (send): Removed.
  14166. (sendPieceData): New function.
  14167. (getMessage): New function.
  14168. (getMessageLength): New function.
  14169. (onSendComplete): New function.
  14170. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  14171. (msg): New variable.
  14172. (sendPieceData): New function.
  14173. (onSendComplete): New function.
  14174. (create): New function.
  14175. (send): Removed.
  14176. (getMessage): New function.
  14177. (getMessageLength): New function.
  14178. * src/NotInterestedMessage.cc
  14179. (create): New function.
  14180. (send): Removed.
  14181. (sendPredicate): New function.
  14182. (getMessage): New function.
  14183. (getMessageLength): New function.
  14184. (onSendComplete): New function.
  14185. * src/AllowedFastMessage.h: New class.
  14186. * src/AllowedFastMessage.cc: New class.
  14187. * src/RejectMessage.h: New class.
  14188. * src/RejectMessage.cc: New class.
  14189. * src/SuggestPieceMessage.h: New class.
  14190. * src/SuggestPieceMessage.cc: New class.
  14191. * src/HaveAllMessage.h: New class.
  14192. * src/HaveAllMessage.cc: New class.
  14193. * src/HaveNoneMessage.h: New class.
  14194. * src/HaveNoneMessage.cc: New class.
  14195. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  14196. (msg): New variable.
  14197. (reserved): New variable.
  14198. (create): New function.
  14199. (getId): New function.
  14200. (receivedAction): New function.
  14201. (getMessage): New function.
  14202. (getMessageLength): New function.
  14203. (isFastExtensionSupported): New function.
  14204. * src/HandshakeMessage.cc
  14205. (HandshakeMessage): Moved here from HandshakeMessage.h.
  14206. (create): New function.
  14207. (getMessage): New function.
  14208. (getMessageLength): New function.
  14209. (toString): Added the output of reserved field.
  14210. (check): Added const qualifier.
  14211. (isFastExtensionSupported): New function.
  14212. * src/PeerMessageUtil.h
  14213. (createChokeMessage): Removed.
  14214. (createUnchokeMessage): Removed.
  14215. (createInterestedMessage): Removed.
  14216. (createNotInterestedMessage): Removed.
  14217. (createHaveMessage): Removed.
  14218. (createBitfieldMessage): Removed.
  14219. (createRequestMessage): Removed.
  14220. (createCancelMessage): Removed.
  14221. (createPieceMessage): Removed.
  14222. (createPortMessage): Removed.
  14223. (createChokeMessage): Removed.
  14224. (createUnchokeMessage): Removed.
  14225. (createInterestedMessage): Removed.
  14226. (createNotInterestedMessage): Removed.
  14227. (createHaveMessage): Removed.
  14228. (createBitfieldMessage): Removed.
  14229. (createRequestMessage): Removed.
  14230. (createCancelMessage): Removed.
  14231. (createPieceMessage): Removed.
  14232. (createKeepAliveMessage): Removed.
  14233. (createHandshakeMessage): Removed.
  14234. (setIntParam): New function.
  14235. (createPeerMessageString): New function.
  14236. * src/PeerMessageUtil.cc
  14237. (createChokeMessage): Removed.
  14238. (createUnchokeMessage): Removed.
  14239. (createInterestedMessage): Removed.
  14240. (createNotInterestedMessage): Removed.
  14241. (createHaveMessage): Removed.
  14242. (createBitfieldMessage): Removed.
  14243. (createRequestMessage): Removed.
  14244. (createCancelMessage): Removed.
  14245. (createPieceMessage): Removed.
  14246. (createPortMessage): Removed.
  14247. (createRequestMessage): Removed.
  14248. (createCancelMessage): Removed.
  14249. (createPieceMessage): Removed.
  14250. (createHaveMessage): Removed.
  14251. (createChokeMessage): Removed.
  14252. (createUnchokeMessage): Removed.
  14253. (createInterestedMessage): Removed.
  14254. (createNotInterestedMessage): Removed.
  14255. (createBitfieldMessage): Removed.
  14256. (createKeepAliveMessage): Removed.
  14257. (createHandshakeMessage): Removed.
  14258. (setIntParam): New function.
  14259. (createPeerMessageString): New function.
  14260. * src/PeerConnection.h
  14261. (peer): Removed.
  14262. (torrentMan): Removed.
  14263. (createNLengthMessage): Removed.
  14264. (setIntParam): Removed.
  14265. (writeOutgoingMessageLog): Removed all overloaded functions.
  14266. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14267. (sendMessage): New function.
  14268. (sendHandshake): Removed.
  14269. (sendKeepAlive): Removed.
  14270. (sendChoke): Removed.
  14271. (sendUnchoke): Removed.
  14272. (sendInterested): Removed.
  14273. (sendNotInterested): Removed.
  14274. (sendHave): Removed.
  14275. (sendBitfield): Removed.
  14276. (sendRequest): Removed.
  14277. (sendPiece): Removed.
  14278. (sendPieceHeader): Removed.
  14279. (sendPieceData): Removed.
  14280. (sendCancel): Removed.
  14281. (getPeer): Removed.
  14282. * src/PeerConnection.cc
  14283. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14284. (sendHandshake): Removed.
  14285. (sendKeepAlive): Removed.
  14286. (createNLengthMessage): Removed.
  14287. (setIntParam): Removed.
  14288. (writeOutgoingMessageLog): Removed all overloaded functions.
  14289. (sendChoke): Removed.
  14290. (sendUnchoke): Removed.
  14291. (sendInterested): Removed.
  14292. (sendNotInterested): Removed.
  14293. (sendHave): Removed.
  14294. (sendBitfield): Removed.
  14295. (sendRequest): Removed.
  14296. (sendPiece): Removed.
  14297. (sendPieceHeader): Removed.
  14298. (sendPieceData): Removed.
  14299. (sendMessage): New function.
  14300. (sendCancel): Removed.
  14301. * src/PeerInteractionCommand.cc
  14302. (PeerInteractionCommand): Call setUploadLimit.
  14303. (executeInternal): Call setUploadLimit.
  14304. Added the handling of "inProgress" state of handshake message.
  14305. Call sendBitfield() or sendAllowdFast() instead of deprecated
  14306. sendNow().
  14307. (keepAlive): Call addMessage and sendMessage instead of deprecated
  14308. sendNow().
  14309. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  14310. * src/TorrentMan.h
  14311. (PEER_ID_LENGTH): New definition.
  14312. (hasAllPieces): New function.
  14313. * src/TorrentMan.cc
  14314. (getMissingPiece): Added the handling of fast extension.
  14315. (cancelPiece): Call updatePiece().
  14316. (hasAllPieces): New function.
  14317. * src/PeerInteraction.h
  14318. (fastSet): New variable.
  14319. (getNewPieceAndSendInterest): Changed the return type to void.
  14320. (send): Renamed as sendMessages.
  14321. (deleteAllRequestSlot): Removed.
  14322. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14323. (cancelAllRequest): Removed all overloaded functions.
  14324. (deleteAllRequestSlot): Removed.
  14325. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14326. (rejectPieceMessageInQueue): New function.
  14327. (rejectAllPieceMessageInQueue): New function.
  14328. (onChoked): New function.
  14329. (isSendingMessageInProgress): New function.
  14330. (getCorrespondingRequestSlot): Changed its arguments.
  14331. (isInFastSet): New function.
  14332. (addFastSetIndex): New function.
  14333. (addRequests): New function.
  14334. (sendNow): Removed.
  14335. (trySendNow): Removed.
  14336. (sendBitfield): New function.
  14337. (sendAllowdFast): New function.
  14338. (createHaveAllMessage): New function.
  14339. (createHaveNoneMessage): New function.
  14340. (createRejectMessage): New function.
  14341. (createAllowedFastMessage): New function.
  14342. * src/PeerInteraction.cc
  14343. (send): Renamed as sendMessages.
  14344. (sendMessages): New function.
  14345. (MsgPushBack): New class.
  14346. (isSendingMessageInProgress): New function.
  14347. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14348. (rejectAllPieceMessageInQueue): New function.
  14349. Added the handling of fast extension.
  14350. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14351. (rejectPieceMessageInQueue): New function.
  14352. Added the handling of fast extension.
  14353. (deleteRequestSlot): Replaced for loop with std::find.
  14354. (onChoked): New function.
  14355. (deleteAllRequestSlot): Removed.
  14356. (abortPiece): Rewirtten.
  14357. (deleteTimeoutRequestSlot): Updated log messages.
  14358. (getCorrespondingRequestSlot): Changed its arguments.
  14359. (cancelAllRequest): Removed all overloaded functions.
  14360. (receiveHandshake): Added the check to see whether an incoming peer
  14361. supports fast extension.
  14362. (createHandshakeMessage): Use HandshakeMessage::create instead of
  14363. PeerMessageUtil.
  14364. (createPeerMessage): Use create() of each message class instead of
  14365. PeerMessageUtil.
  14366. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  14367. AllowedFastMessage were added.
  14368. (getNewPieceAndSendInterest): Changed its return value type to void.
  14369. Added the handling of fast extension.
  14370. (addRequests): New function.
  14371. (sendNow): Removed.
  14372. (sendHandshake): Rewritten.
  14373. (trySendNow): Removed.
  14374. (sendBitfield): New function.
  14375. (sendAllowdFast): New function.
  14376. (isInFastSet): New function.
  14377. (addFastSetIndex): New function.
  14378. (createRequestMessage): Use RequestMessage::create instead of
  14379. PeerMessageUtil.
  14380. (createCancelMessage): Use CancelMessage::create instead of
  14381. PeerMessageUtil.
  14382. (createPieceMessage): Use PieceMessage::create instead of
  14383. PeerMessageUtil.
  14384. (createHaveMessage): Use HaveMessage::create instead of
  14385. PeerMessageUtil.
  14386. (createChokeMessage): Use ChokeMessage::create instead of
  14387. PeerMessageUtil.
  14388. (createUnchokeMessage): Use UnchokeMessage::create instead of
  14389. PeerMessageUtil.
  14390. (createInterestedMessage): Use InterestedMessage::create instead of
  14391. PeerMessageUtil.
  14392. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  14393. of PeerMessageUtil.
  14394. (createBitfieldMessage): Use BitfieldMessage::create instead of
  14395. PeerMessageUtil.
  14396. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  14397. PeerMessageUtil.
  14398. (createHaveAllMessage): New function.
  14399. (createHaveNoneMessage): New function.
  14400. (createRejectMessage): New function.
  14401. (createAllowedFastMessage: New function.
  14402. * src/Util.h
  14403. (sha1Sum): New function.
  14404. (computeFastSet): New function.
  14405. * src/Util.cc
  14406. (sha1Sum): New function.
  14407. (computeFastSet): New function.
  14408. * src/Peer.h
  14409. (fastExtensionEnabled): New variable.
  14410. (fastSet): New variable.
  14411. (setAllBitfield): New function.
  14412. (setFastExtensionEnabled): New function.
  14413. (isFastExtensionEnabled): New function.
  14414. (addFastSetIndex): New function.
  14415. (getFastSet): New function.
  14416. (isInFastSet): New function.
  14417. (countFastSet): New function.
  14418. * src/Peer.cc
  14419. (isInFastSet): New function.
  14420. (addFastSetIndex): New function.
  14421. (setAllBitfield): New function.
  14422. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  14423. sockets.
  14424. * src/PeerAbstractCommand.cc
  14425. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  14426. and uploadLimit.
  14427. (execute): Changed the procedure of checking sockets. The upload speed
  14428. checking were added.
  14429. (setUploadLimit): New function.
  14430. (setUploadLimitCheck): New function.
  14431. * src/PeerAbstractCommand.h
  14432. (setUploadLimit): New function.
  14433. (setUploadLimitCheck): New function.
  14434. (uploadLimit): New variable.
  14435. (uploadLimitCheck): New variable.
  14436. To contact a tracker regularly:
  14437. * src/TrackerWatcherCommand.h (interval): New variable.
  14438. (checkPoint): New variable.
  14439. (TrackerWatcherCommand): Added interval argument.
  14440. * src/TrackerWatcherCommand.cc
  14441. (TrackerWatcherCommand): Initialized checkPoint.
  14442. (execute): Now a tracker is contacted in every specified period.
  14443. If peer list is not needed, send request with numwant=0.
  14444. * src/TrackerUpdateCommand.cc
  14445. (execute): Updated log messages.
  14446. * src/DownloadEngine.cc
  14447. (~DownloadEngine): Removed two asserts.
  14448. (waitData): Uncommented wfds. May be a bug fix.
  14449. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14450. * src/PeerInteractionCommand.h
  14451. (checkInactiveConnection): Removed.
  14452. * src/PeerInteractionCommand.cc
  14453. (executeInternal): Removed following function calls:
  14454. detectMessageFlooding(), checkLongTimePeerChoking and
  14455. checkInactiveConnection().
  14456. (checkInactiveConnection): Removed.
  14457. (detectMessageFlooding): Removed function call to
  14458. checkInactiveConnection().
  14459. * src/PeerMessageUtil.h
  14460. (createChokeMessage): New function. Overload.
  14461. (createUnchokeMessage): New function. Overload.
  14462. (createInterestedMessage): New function. Overload.
  14463. (createNotInterestedMessage): New function. Overload.
  14464. (createHaveMessage): New function. Overload.
  14465. (createBitfieldMessage): New function. Overload.
  14466. (createRequestMessage): New function. Overload.
  14467. (createCancelMessage): New function. Overload.
  14468. (createPieceMessage): New function. Overload.
  14469. (createKeepAliveMessage): New function. Overload.
  14470. * src/PeerMessageUtil.cc
  14471. (createChokeMessage): New function. Overload.
  14472. (createUnchokeMessage): New function. Overload.
  14473. (createInterestedMessage): New function. Overload.
  14474. (createNotInterestedMessage): New function. Overload.
  14475. (createHaveMessage): New function. Overload.
  14476. (createBitfieldMessage): New function. Overload.
  14477. (createRequestMessage): New function. Overload.
  14478. (createCancelMessage): New function. Overload.
  14479. (createPieceMessage): New function. Overload.
  14480. (createKeepAliveMessage): New function. Overload.
  14481. * src/SendMessageQueue.cc
  14482. (createRequestMessage): Use PeerMessageUtil.
  14483. (createCancelMessage): Use PeerMessageUtil.
  14484. (createPieceMessage): Use PeerMessageUtil.
  14485. (createHaveMessage): Use PeerMessageUtil.
  14486. (createChokeMessage): Use PeerMessageUtil.
  14487. (createUnchokeMessage): Use PeerMessageUtil.
  14488. (createInterestedMessage): Use PeerMessageUtil.
  14489. (createNotInterestedMessage): Use PeerMessageUtil.
  14490. (createBitfieldMessage): Use PeerMessageUtil.
  14491. (createKeepAliveMessage): Use PeerMessageUtil.
  14492. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  14493. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  14494. * src/PeerInteraction.h: New class.
  14495. * src/PeerInteraction.cc: New class.
  14496. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14497. Each peer message has its own class.
  14498. * src/PendingMessages.h: Removed.
  14499. * src/PendingMessages.cc: Removed. The sending process was moved to
  14500. each message class.
  14501. * src/RequestSlotMan.h: Removed.
  14502. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  14503. SendMessageQueue.
  14504. * src/RequestMessage.h: New class.
  14505. * src/RequestMessage.cc: New class.
  14506. * src/CancelMessage.h: New class.
  14507. * src/CancelMessage.cc: New class.
  14508. * src/BitfieldMessage.h: New class.
  14509. * src/BitfieldMessage.cc: New class.
  14510. * src/ChokeMessage.h: New class.
  14511. * src/ChokeMessage.cc: New class.
  14512. * src/KeepAliveMessage.h: New class.
  14513. * src/KeepAliveMessage.cc: New class.
  14514. * src/PortMessage.h: New class.
  14515. * src/UnchokeMessage.h: New class.
  14516. * src/UnchokeMessage.cc: New class.
  14517. * src/PieceMessage.h: New class.
  14518. * src/PieceMessage.cc: New class.
  14519. * src/HaveMessage.h: New class.
  14520. * src/HaveMessage.cc: New class.
  14521. * src/BitfieldMessage.h: New class.
  14522. * src/BitfieldMessage.cc: New class.
  14523. * src/NotInterestedMessage.h: New class.
  14524. * src/NotInterestedMessage.cc: New class.
  14525. * src/InterestedMessage.h: New class.
  14526. * src/InterestedMessage.cc: New class.
  14527. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  14528. (getSendMessageQueue): New function.
  14529. (setSendMessageQueue): New function.
  14530. * src/HandshakeMessage.cc: New class.
  14531. * src/PeerConnection.h (receiveMessage): Changed return value and
  14532. arguments.
  14533. (receiveHandshake): Changed return value and arguments.
  14534. * src/PeerConnection.cc (receiveMessage): Do not create message class
  14535. here.
  14536. (receiveHandshake): Do not create handshake class here.
  14537. * src/PeerInteractionCommand.h (peerConnection): Removed.
  14538. (piece): Removed.
  14539. (syncPiece): Removed.
  14540. (sendInterest): Removed.
  14541. (sendMessages): Removed.
  14542. (createRequestPendingMessage): Removed.
  14543. (checkPieceHash): Removed.
  14544. (erasePieceOnDisk): Removed.
  14545. (getNewPieceAndSendInterest): Removed.
  14546. (onGotNewPice): Removed.
  14547. (onGotWrongPiece): Removed.
  14548. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  14549. Removed peerConnection, piece.
  14550. (~PeerInteractionCommand): Removed peerConnection.
  14551. (executeInternal): Use sendMessageQueue instead of peerConnection.
  14552. (syncPiece): Moved to SendMessageQueue.
  14553. (decideChoking): Removed PendingMessage.
  14554. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  14555. The action after receiving peer message was moved to each message
  14556. class.
  14557. (onGotNewPice): Moved to SendMessageQueue.
  14558. (onGotWrongPiece): Moved to SendMessageQueue.
  14559. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  14560. (sendInterest): Moved to SendMessageQueue.
  14561. (createRequestPendingMessage): Removed.
  14562. (sendMessages): Moved to SendMessageQueue.
  14563. (onAbort): Use SendMessageQueue::abortPiece()
  14564. (keepAlive): Use sendMessageQueue instead of peerConnection.
  14565. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  14566. (checkPieceHash): Moved to SendMessageQueue.
  14567. (erasePieceOnDisk): Moved to SendMessageQueue.
  14568. * src/PeerMessageUtil.h
  14569. (createBitfieldMessage): Removed.
  14570. (createHaveMessage): Changed return value and arguments.
  14571. (createBitfieldMessage): Changed return value and arguments.
  14572. (createRequestCancelMessage): Removed.
  14573. (createPieceMessage): Changed return value and arguments.
  14574. (getShortIntParam): New function.
  14575. (checkIndex): Changed arguments.
  14576. (checkBegin): Changed arguments.
  14577. (checkLength): Changed arguments.
  14578. (checkPieceOffset): Removed.
  14579. (checkRange): New function.
  14580. (checkBitfield): Changed arguments.
  14581. (createPeerMessage): Removed.
  14582. (checkIntegrity): Removed.
  14583. (createHandshakeMessage): Changed arguments.
  14584. (createChokeMessage): New function.
  14585. (createUnchokeMessage): New function.
  14586. (createInterestedMessage): New function.
  14587. (createNotInterestedMessage): New function.
  14588. (createRequestMessage): New function.
  14589. (createCancelMessage): New function.
  14590. (createPortMessage): New function.
  14591. * src/PeerMessageUtil.cc
  14592. (createBitfieldMessage): Removed.
  14593. (createHaveMessage): Changed return value and arguments.
  14594. (createBitfieldMessage): Changed return value and arguments.
  14595. (createRequestCancelMessage): Removed.
  14596. (createPieceMessage): Changed return value and arguments.
  14597. (getShortIntParam): New function.
  14598. (checkIndex): Changed arguments.
  14599. (checkBegin): Changed arguments.
  14600. (checkLength): Changed arguments.
  14601. (checkPieceOffset): Removed.
  14602. (checkRange): New function.
  14603. (checkBitfield): Changed arguments.
  14604. (createPeerMessage): Removed.
  14605. (checkIntegrity): Removed.
  14606. (createHandshakeMessage): Changed arguments.
  14607. (createChokeMessage): New function.
  14608. (createUnchokeMessage): New function.
  14609. (createInterestedMessage): New function.
  14610. (createNotInterestedMessage): New function.
  14611. (createRequestMessage): New function.
  14612. (createCancelMessage): New function.
  14613. (createPortMessage): New function.
  14614. * src/PeerMessage.h
  14615. (id): Removed.
  14616. (index): Removed.
  14617. (begin): Removed.
  14618. (length): Removed.
  14619. (bitfield): Removed.
  14620. (bitfieldLength): Removed.
  14621. (block): Removed.
  14622. (blockLength): Removed.
  14623. (inProgress): New variable.
  14624. (cuid): New variable.
  14625. (peer): New variable.
  14626. (sendMessageQueue): New variable.
  14627. (logger): New variable.
  14628. (setBitfield): Removed.
  14629. (getBitfield): Removed.
  14630. (setBlock): Removed.
  14631. (getBlock): Removed.
  14632. (getBitfieldLength): Removed.
  14633. (getBlockLength): Removed.
  14634. (isInProgress): New function.
  14635. (toString): Made pure virtual.
  14636. (check): New function.
  14637. (send): New function.
  14638. (receivedAction): New function.
  14639. (getId): Made pure virtual.
  14640. (setId): Removed.
  14641. (getIndex): Removed.
  14642. (setIndex): Removed.
  14643. (getBegin): Removed.
  14644. (setBegin): Removed.
  14645. (getLength): Removed.
  14646. (setLength): Removed.
  14647. (getCuid): New function.
  14648. (setCuid): New function.
  14649. (getPeer): New function.
  14650. (setPeer): New function.
  14651. (getSendMessageQueue): New function.
  14652. (setSendMessageQueue): New function.
  14653. (ID): Removed.
  14654. * src/PeerMessage.cc
  14655. (setBitfield): Removed.
  14656. (setBlock): Removed.
  14657. (toString): Removed.
  14658. * src/TorrentMan.h
  14659. (getPieceLength): New function.
  14660. (getPieceLength): New function.
  14661. * src/SendMessageQueue.h
  14662. (REQUEST_TIME_OUT): New definition.
  14663. (RequestSlots): New definition.
  14664. (MessageQueue): New definition.
  14665. (requestSlotMan): Removed.
  14666. (pendingMessages): Removed.
  14667. (requestSlots): New variable.
  14668. (messageQueue): New variable.
  14669. (torrentMan): New variable.
  14670. (peerConnection): New variable.
  14671. (peer): New variable.
  14672. (piece): New variable.
  14673. (getNewPieceAndSendInterest): New function.
  14674. (createPeerMessage): New function.
  14675. (createHandshakeMessage): New function.
  14676. (send): Made private.
  14677. (setPeerMessageCommonProperty): New function.
  14678. (deleteAllRequestSlot): New function.
  14679. (deleteRequestMessageInQueue): New function.
  14680. (cancelAllRequest): Made private.
  14681. (cancelAllRequest): Made private.
  14682. (countRequestSlot): Made private.
  14683. (addPendingMessage): Removed.
  14684. (deletePendingPieceMessage): Removed.
  14685. (deletePendingRequestMessage): Removed.
  14686. (addMessage): New function.
  14687. (deletePieceMessageInQueue): New function.
  14688. (deleteTimeoutRequestSlot): Changed argument.
  14689. (deleteCompletedRequestSlot): Changed argument.
  14690. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  14691. (getCorrespondingRequestSlot): New function.
  14692. (countPendingMessage): Removed.
  14693. (countMessageInQueue): New function.
  14694. (getTorrentMan): New function.
  14695. (getPeerConnection): New function.
  14696. (hasDownloadPiece): New function.
  14697. (getDownloadPiece): New function.
  14698. (setDownloadPiece): New function.
  14699. (syncPiece): New function.
  14700. (sendMessages): New function.
  14701. (sendNow): New function.
  14702. (trySendNow): New function.
  14703. (abortPiece): New function.
  14704. (sendHandshake): New function.
  14705. (receiveMessage): New function.
  14706. (receiveHandshake): New function.
  14707. (createRequestMessage): New function.
  14708. (createCancelMessage): New function.
  14709. (createPieceMessage): New function.
  14710. (createHaveMessage): New function.
  14711. (createChokeMessage): New function.
  14712. (createUnchokeMessage): New function.
  14713. (createInterestedMessage): New function.
  14714. (createNotInterestedMessage): New function.
  14715. (createBitfieldMessage): New function.
  14716. (createKeepAliveMessage): New function.
  14717. * src/SendMessageQueue.cc
  14718. (SendMessageQueue): Removed requestSlotMan.
  14719. Instantiated peerConnection here.
  14720. (~SendMessageQueue): Removed requestSlotMan.
  14721. Added deletion of peerConnection and the contents of messageQueue.
  14722. (send): Updated according to the change of messageQueue.
  14723. (addPendingMessage): Renamed to addMessage.
  14724. (addMessage): New function.
  14725. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  14726. (deletePieceMessageInQueue): New function.
  14727. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  14728. (deleteRequestMessageInQueue): New function.
  14729. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  14730. here.
  14731. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  14732. (...) was moved here.
  14733. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  14734. moved here.
  14735. (deleteCompletedRequestSlot):
  14736. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  14737. (getCorrespondingRequestSlot):
  14738. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  14739. And renamed to getCorrespondingRequestSlot, correcting a typo.
  14740. (countPendingMessage): Renamed to countMessageInQueue.
  14741. (countMessageInQueue): New function.
  14742. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  14743. (receiveHandshake): New function.
  14744. (createHandshakeMessage): New function.
  14745. (receiveMessage): New function.
  14746. (createPeerMessage): New function.
  14747. (syncPiece): New function.
  14748. (getNewPieceAndSendInterest): New function.
  14749. (sendMessages): New function.
  14750. (sendNow): New function.
  14751. (trySendNow): New function.
  14752. (sendHandshake): New function.
  14753. (abortPiece): New function.
  14754. (getDownloadPiece): New function.
  14755. (getPeerMessageCommonProperty): New function.
  14756. (createRequestMessage): New function.
  14757. (createCancelMessage): New function.
  14758. (createPieceMessage): New function.
  14759. (createHaveMessage): New function.
  14760. (createChokeMessage): New function.
  14761. (createUnchokeMessage): New function.
  14762. (createInterestedMessage): New function.
  14763. (createNotInterestedMessage): New function.
  14764. (createBitfieldMessage): New function.
  14765. (createKeepAliveMessage): New function.
  14766. To add simple Content-Disposition support:
  14767. * src/HttpResponseCommand.h (determinFilename): New function.
  14768. * src/HttpResponseCommand.cc (executeInternal):
  14769. Use determinFilename(headers) instead of req->getFile() when comparing
  14770. filename.
  14771. (determinFilename): New function.
  14772. (handleDefaultEncoding): Use determinFilename(headers) instead of
  14773. req->getFile().
  14774. (handleOtherEncoding): Use determinFilename(headers) instead of
  14775. req->getFile().
  14776. * src/Util.h (getContentDispositionFilename): New function.
  14777. * src/Util.cc (getContentDispositionFilename): New function.
  14778. * src/LogFactory.h (release): New function.
  14779. * src/LogFactory.cc (release): New function.
  14780. To fix a bug that causes out-of-bound exception when HTTP status
  14781. line is wrong:
  14782. * src/HttpConnection.cc (receiveResponse): Added a check for header
  14783. size.
  14784. * src/common.h (Deleter): New class.
  14785. * src/SegmentMan.cc
  14786. (~SegmentMan): Added deletion of splitter and diskWriter.
  14787. * src/DownloadEngine.h
  14788. (Commands): Use deque.
  14789. (clearQueue): New function.
  14790. * src/DownloadEngine.cc
  14791. (~DownloadEngine): Added deletion of segmentMan.
  14792. (cleanQueue): New function.
  14793. * src/TorrentDownloadEngine.h
  14794. (TorrentDownloadEngine): The implementation was moved to
  14795. TorrentDownloadEngine.cc.
  14796. (~TorrentDownloadEngine): The implementation was moved to
  14797. TorrentDownloadEngine.cc.
  14798. * src/TorrentDownloadEngine.cc
  14799. (~TorrentDownloadEngine): Added deletion of torrentMan.
  14800. * src/main.cc
  14801. (clearRequest): Removed.
  14802. (handler): Added deletion of e.
  14803. (torrentHandler): Added deletion of te.
  14804. (main): Do not share splitter.
  14805. Use Deleter instead of clearRequest.
  14806. Deletion of classes were updated.
  14807. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14808. * src/main.cc (main): Fixed typo.
  14809. * src/message.h: Fixed typo.
  14810. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  14811. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14812. To add --select-file command-line option:
  14813. * src/Util.cc
  14814. (unfoldRange): New function.
  14815. (getNum): New function.
  14816. (unfoldSubRange): New function
  14817. * src/main.cc
  14818. (showUsage): Added help message.
  14819. (main): Added --select-file command-line option. Updated the layout of
  14820. file listing.
  14821. * src/common.h
  14822. (Integers): New definition.
  14823. * src/SocketCore.cc
  14824. (writeData): Removed timeout argument.
  14825. (readData): Removed timeout argument.
  14826. (peekData): Removed timeout argument.
  14827. * src/Socket.cc
  14828. (writeData): Removed timeout argument.
  14829. (readData): Removed timeout argument.
  14830. (peekData): Removed timeout argument.
  14831. * Release 0.4.1
  14832. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14833. To deploy upload rate based choking algorithm:
  14834. * src/PeerInteractionCommand.cc
  14835. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  14836. peer currently used.
  14837. (decideChoking): Deleted the choke/unchoke decision algorithm when
  14838. download completes. Simplified.
  14839. (receiveMessage): Updated.
  14840. * src/TorrentMan.h
  14841. (activePeers): New variable.
  14842. (addActivePeer): New function.
  14843. (getActivePeers): New function.
  14844. (deleteActivePeer): New function.
  14845. * src/TorrentMan.cc
  14846. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  14847. * src/PeerAbstractCommand.cc
  14848. (onAbort): Use peer->resetStatus().
  14849. * src/main.cc
  14850. (PeerChokeCommand.h): Included.
  14851. (main): Added the instance of ChokingCommand to the command queue.
  14852. * src/Peer.h
  14853. (amChoking): Renamed from amChocking
  14854. (chokingRequired): New variable.
  14855. (optUnchoking): New variable.
  14856. (deltaUpload): New variable.
  14857. (deltaDownload): New variable.
  14858. (addDeltaUpload): New function.
  14859. (resetDeltaUpload): New function.
  14860. (addDeltaDownload): New function.
  14861. (resetDeltaDownload): New function.
  14862. (addPeerUpload): Added a call to addDeltaUpload.
  14863. (addPeerDownload): Added a call to addDeltaDownload.
  14864. * src/Peer.cc
  14865. (shouldBeChoking): Renamed from shouldChoke.
  14866. (resetStatus): New function.
  14867. * src/PeerChokeCommand.h: New class.
  14868. * src/PeerChokeCommand.cc: New class.
  14869. To add lazy upload speed limiter:
  14870. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  14871. statistics calculation to TorrentDownloadEngine.
  14872. * src/TorrentConsoleDownloadEngine.cc
  14873. (sendStatistics): Renamed from printStatistics.
  14874. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  14875. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  14876. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  14877. * src/TorrentDownloadEngine.h: Added the variables for statistics
  14878. calculation.
  14879. (sendStatistics): New function as pure virtual function.
  14880. (getUploadSpeed): New function.
  14881. * src/TorrentDownloadEngine.cc
  14882. (initStatistics): New function.
  14883. (calculateSpeed): New function.
  14884. (calculateStatistics): New function.
  14885. * src/SendMessageQueue.h
  14886. (uploadLength): New variable.
  14887. (send): Added an argument.
  14888. (setUploadLimit): New function.
  14889. (getUploadLimit): New function.
  14890. * src/SendMessageQueue.cc
  14891. (send): Added upload speed limiter.
  14892. * src/prefs.h
  14893. (PREF_UPLOAD_LIMIT): New definition.
  14894. * src/PeerInteractionCommand.cc
  14895. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  14896. * src/main.cc
  14897. (main): Added --upload-limit option
  14898. For bug fixes:
  14899. * src/main.cc
  14900. (showUsage): Corrected --listen-port help
  14901. Other changes:
  14902. * src/TorrentMan.cc
  14903. (getPeer): Return nullPeer if connection is grather than
  14904. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  14905. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14906. To add some useful information to the exception message:
  14907. * src/SocketCore.cc : Updated messages.
  14908. * src/SegmentMan.cc :
  14909. * src/TorrentMan.cc : Updated messages.
  14910. * src/MultiDiskWriter.cc : Updated messages.
  14911. * src/Util.cc : Updated messages.
  14912. * src/AbstractDiskWriter.cc : Updated messages.
  14913. * src/PreAllocationDiskWriter.cc : Updated messages.
  14914. * src/message.cc : Added new messages. Updated some messages.
  14915. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  14916. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  14917. Updated threshold from 30 to 15.
  14918. * src/AbstractDiskWriter.h (filename): New variable.
  14919. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  14920. (createFile): Assigned filename.
  14921. * src/main.cc: Updated the help message for http-auth-scheme.
  14922. * Release 0.4.0
  14923. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14924. To add TrackerUpdateCommand with which replaces
  14925. CompactTrackerResponseProcessor:
  14926. * src/TrackerWatcherCommand.h (req): Removed.
  14927. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  14928. if the number of peer connections are less than 30.
  14929. * src/ByteArrayDiskWriter.h (readData): Implemented.
  14930. * src/SegmentMan.h (diskWriter): New function.
  14931. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  14932. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  14933. (main): Use TrackerUpdateCommand.
  14934. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  14935. (req): New variable.
  14936. (setTrackerResponseProcessor): Removed.
  14937. (getTrackerResponseProcessor): Removed.
  14938. (processTrackerResponse): Removed.
  14939. * src/DownloadEngine.h (diskWriter): Removed.
  14940. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  14941. to torrentMan->processTrackerResponse().
  14942. To add Util::expandBuffer:
  14943. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  14944. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  14945. * src/Util.h (expandBuffer): New function.
  14946. To fix the bug that causes segmentation fault when "-l ." is specified
  14947. in command-line option:
  14948. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  14949. (openFile): New function.
  14950. (closeFile): New function.
  14951. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  14952. (~SimpleLogger): Call closeFile();
  14953. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  14954. * src/main.cc (main): Added a check to see logger is configured
  14955. properly.
  14956. To enable HTTP authentication without specifying "--http-auth-scheme"
  14957. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  14958. * src/HttpConnection.cc (createRequest): Send Authorization header
  14959. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  14960. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  14961. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  14962. * src/Peer.cc (shouldChoke): Updated algorithm.
  14963. * src/message.h (EX_AUTH_FAILED): New definition.
  14964. (EX_FILE_OPEN): New definition.
  14965. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  14966. if status == 401.
  14967. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  14968. if req->isTorrent == true.
  14969. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  14970. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  14971. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  14972. (createFile): Updated message.
  14973. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14974. To add a readout of estimated remaining time to normal HTTP/FTP
  14975. downloads:
  14976. * src/ConsoleDownloadEngine.h (startup): New variable.
  14977. (startupLength): New variable.
  14978. (isStartupLengthSet): New variable.
  14979. (avgSpeed): New variable.
  14980. (eta): New variable.
  14981. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  14982. estimated remaining time.
  14983. (initStatistics): Initialized newly added variables.
  14984. (calculateStatistics): Calculate average speed and estimated remaining
  14985. time.
  14986. To decouple TorrentDownloadEngine from HttpResponseCommand:
  14987. * src/TrackerDownloadCommand.h: Removed.
  14988. * src/TrackerDownloadCommand.cc: Removed.
  14989. * src/TrackerInitCommand.h: Removed.
  14990. * src/TrackerInitCommand.cc: Removed.
  14991. * src/TrackerUpdateCommand.h: Removed.
  14992. * src/TrackerUpdateCommand.cc: Removed.
  14993. * src/TrackerWatcherCommand.cc (execute): The construction of request
  14994. url written in TrackerInitCommand was moved here. Do not create
  14995. tracker request command if torrentMan->trackers != 0.
  14996. * src/CompactTrackerResponseProcessor.h: New class.
  14997. * src/CompactTrackerResponseProcessor.cc: New class.
  14998. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  14999. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  15000. Decoupled TorrentDownloadEngine from this.
  15001. * src/SegmentMan.h (init): New function.
  15002. * src/SegmentMan.cc (init): New function.
  15003. * src/TorrentMan.h (responseProcessor): New variable.
  15004. (trackers): New variable.
  15005. (setTrackerResponseProcessor): New function.
  15006. (getTrackerResponseProcessor): New function.
  15007. (processTrackerResponse): New function.
  15008. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  15009. (processTrackerResponse): New function.
  15010. * src/main.cc (main): Use ByteArrayDiskWriter and
  15011. CompactTrackerResponseProcessor.
  15012. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  15013. processTrackerResponse().
  15014. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  15015. readout.
  15016. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  15017. which indicates download has completed.
  15018. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  15019. (closeFile): fd >= 0, not fd > 0
  15020. * src/main.cc (main): Added short cut for show-files.
  15021. Added short cut for torrent-file.
  15022. Added new command-line option listen-port.
  15023. Updated i18n messages.
  15024. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15025. To add LogFactory which creates singleton logger:
  15026. * src/LogFactory.h: New class.
  15027. * src/LogFactory.cc: New class.
  15028. * src/Command.h (logger): New variable.
  15029. (Constructor): Use LogFactory.
  15030. * src/AbstractCommand.cc: Use Command::logger
  15031. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  15032. Use LogFactory.
  15033. * src/SegmentSplitter.h : Made logger protected.
  15034. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  15035. * src/SegmentMan.cc (Constructor): Use LogFactory.
  15036. * src/DownloadEngine.h : Made logger protected.
  15037. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  15038. * src/PeerInteractionCommand.cc : Use Command::logger.
  15039. * src/HttpResponseCommand.cc : Use Command::logger.
  15040. * src/SegmentMan.h : Made logger private.
  15041. * src/TorrentMan.h : Made logger private.
  15042. * src/TorrentMan.cc : Use LogFactory.
  15043. * src/FtpNegotiateCommand.cc : Use Command::logger.
  15044. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  15045. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  15046. Use LogFactory.
  15047. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  15048. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  15049. Use LogFactory.
  15050. * src/DownloadCommand.cc : Use Command::logger.
  15051. * src/PeerAbstractCommand.cc : Use Command::logger.
  15052. * src/PeerListenCommand.cc : Use Command::logger.
  15053. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  15054. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  15055. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  15056. * src/TrackerWatcherCommand.cc : Use Command::logger.
  15057. * src/TrackerUpdateCommand.cc : Use Command::logger.
  15058. * src/TrackerDownloadCommand.cc : Use Command::logger.
  15059. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  15060. Use LogFactory.
  15061. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  15062. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  15063. Use LogFactory.
  15064. * src/main.cc (main): Use LogFactory.
  15065. * src/DiskAdaptor.h (logger): New variable.
  15066. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  15067. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  15068. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15069. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  15070. parameter to a tracker request.
  15071. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  15072. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  15073. * src/main.cc (setSignalHander): New function.
  15074. (main): Added a handler for SIGTERM.
  15075. (handler): Updated message.
  15076. (torrentHandler): Updated message.
  15077. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15078. * src/TorrentConsoleDownloadEngine.cc
  15079. (onPartialDownloadingCompletes): Renamed as
  15080. onSelectiveDownloadingCompletes.
  15081. (onSelectiveDownloadingCompletes): Updated message.
  15082. To add DiskAdaptor which abstract DiskWriter family:
  15083. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  15084. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  15085. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  15086. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  15087. MultiDiskAdaptor.h.
  15088. (readFileEntry): Changed its arguments.
  15089. (setup): setupDiskWriter is merged into this function.
  15090. (setupDiskWriter): Removed.
  15091. (setFileFilter): New function.
  15092. (readFileEntryFromMetaInfoFile): Updated according to the changes
  15093. made in readFileEntry.
  15094. (getFilePath): Removed.
  15095. (getTempFilePath): Removed.
  15096. (getSegmentFilePath): Updated due to the removal of getFilePath.
  15097. (fixFilename): Removed.
  15098. (copySingleFile): Removed.
  15099. (splitMultiFile): Removed.
  15100. (deleteTempFile): Removed.
  15101. (setFileEntriesToDownload): Removed.
  15102. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  15103. (isSelectiveDownloadingMode): New function.
  15104. (setAllMultiFileRequestedState): Removed.
  15105. (finishPartialDownloadingMode): Renamed as
  15106. finishSelectiveDownloadingMode.
  15107. (finishSelectiveDownloadingMode): New function.
  15108. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  15109. (getSelectedTotalLength): New function.
  15110. (onDownloadComplete): Use diskAdaptor.
  15111. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  15112. (Range): Removed.
  15113. (setMultiFileEntries): Renamed as setFileEntries.
  15114. (setFileEntries): New function.
  15115. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  15116. (pieceLength): New variable.
  15117. * src/main.cc (printDownloadCompeleteMessage): New function.
  15118. (torrentHandler): Use diskAdaptor instead of diskWriter.
  15119. (main): Renamed torrent-show-files to show-files.
  15120. Rewritten file contents listing.
  15121. * src/TorrentMan.h (FileEntry): Removed.
  15122. (multiFileTopDir): Removed.
  15123. (multiFileEntries): Removed.
  15124. (diskWriter): Removed.
  15125. (diskAdaptor): New variable.
  15126. * src/DefaultDiskWriter.h (totalLength): New variable.
  15127. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  15128. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  15129. diskWriter.
  15130. * src/TorrentConsoleDownloadEngine.h
  15131. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  15132. (partialTotalLength): Renamed as selectedTotalLength.
  15133. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  15134. openExistingFile, otherwise call initAndOpenFile.
  15135. (closeFile): fd > 0, not fd != 0.
  15136. * src/DirectDiskAdaptor.h: New class.
  15137. * src/DirectDiskAdaptor.cc: New class.
  15138. * src/MultiDiskAdaptor.h: New class.
  15139. * src/MultiDiskAdaptor.cc: New class.
  15140. * src/CopyDiskAdaptor.h: New class.
  15141. * src/CopyDiskAdaptor.cc: New class.
  15142. * src/DiskAdaptor.h: New class.
  15143. * src/DiskAdaptor.cc: New class.
  15144. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  15145. (PREF_SHOW_FILES): New definition.
  15146. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15147. To add the ability to download multi torrent into respective files
  15148. directly:
  15149. * src/DiskWriter.h (openFile): New function.
  15150. (seek): Removed.
  15151. * src/MultiDiskWriter.h: New class.
  15152. * src/MultiDiskWriter.cc: New class.
  15153. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  15154. protected.
  15155. (openFile): New function.
  15156. * src/AbstractDiskWriter.cc (openFile): New function.
  15157. * src/prefs.h (V_FALSE): New definition.
  15158. (PREF_DIRECT_FILE_MAPPING): New definition.
  15159. * src/TorrentMan.h (setupDiskWriter): New function.
  15160. (setAllMultiFileRequestedState): New function.
  15161. (onDownloadComplete): New function.
  15162. * src/TorrentMan.cc : Included MultiDiskWriter.h
  15163. (setupDiskWriter): New function.
  15164. (getFilePath): Updated.
  15165. (getTempFilePath): Updated.
  15166. (getSegmentFilePath): Updated.
  15167. (fixFilename): Updated.
  15168. (deleteTempFile): Updated.
  15169. (setAllMultiFileRequestedState): New function.
  15170. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  15171. (finishPartialDownloadingMode): Reset requested flags.
  15172. (onDownloadComplete): New function.
  15173. * src/main.cc: Added --direct-file-mapping option.
  15174. Use TorrentMan::setupDiskWriter().
  15175. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  15176. onDownloadComplete().
  15177. To fix ETA bug:
  15178. * src/Util.h (difftvsec): New function.
  15179. * src/Util.cc (difftvsec): New function.
  15180. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  15181. type of "elapsed" instead of long long int.
  15182. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  15183. The updates of statistics takes place every 1 seconds.
  15184. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  15185. (calculateSpeed): Changed its argument signature.
  15186. * src/PeerMessage.cc (toString): Fixed message.
  15187. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15188. To print ETA:
  15189. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  15190. completion handling when dealing with
  15191. TorrentMan::isPartialDownloadingMode() == true.
  15192. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  15193. New function.
  15194. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  15195. (sessionDownloadLength): New variable.
  15196. (avgSpeed): New variable.
  15197. (eta): New variable.
  15198. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  15199. new variables: eta, avgSpeed, startup.
  15200. (calculateSpeed): Calculate average speed and ETA.
  15201. (printStatistics): Added ETA.
  15202. * src/Util.h (secfmt): New function.
  15203. * src/Util.cc (secfmt): New function.
  15204. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15205. To detect "keep alive" flooding:
  15206. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  15207. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  15208. variable: keepAliveCount.
  15209. (detectMessageFlooding): Added "keep alive" flooding detection.
  15210. (receiveMessage): Increase keepAliveCount when "keep alive" message
  15211. received.
  15212. To add the ability to download only specified files in multi-file
  15213. torrent:
  15214. * src/BitfieldMan.h (filterBitfield): New variable.
  15215. (filterEnabled): New variable.
  15216. (setFilterBit): New function.
  15217. (enableFilter): New function.
  15218. (disableFilter): New function.
  15219. (isFilterEnabled): New function.
  15220. (getFilteredTotalLength): New function.
  15221. (getCompletedLength): New function.
  15222. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  15223. filterBitfield, filterEnabled.
  15224. (CopyConstructor): Added filterBitfield and filterEnabled.
  15225. (operator==): Added filterBitfield and filterEnabled.
  15226. (Destructor): Added filterBitfield.
  15227. (getMissingIndex): Use filterBitfield.
  15228. (getMissingUnusedIndex): Use filterBitfield.
  15229. (getFirstMissingUnusedIndex): Use filterBitfield.
  15230. (getFirstMissingUnusedIndex): Use filterBitfield.
  15231. (getAllMissingIndexes): Use filterBitfield.
  15232. (countMissingBlock): Use filterBitfield.
  15233. (countBlock): Use filterBitfield.
  15234. (setBitInternal): Added new argument on.
  15235. (setUseBit): Use setBitInternal.
  15236. (unsetUseBit): Use setBitInternal.
  15237. (setBit): Use setBitInternal.
  15238. (unsetBit): Use setBitInternal.
  15239. (isAllBitSet): Use filterBitfield.
  15240. (setFilterBit): New function.
  15241. (addFilter): New function.
  15242. (enableFilter): New function.
  15243. (disableFilter): New function.
  15244. (clearFilter): New function.
  15245. (isFilterEnabled): New function.
  15246. (getFilteredTotalLength): New function.
  15247. (getCompletedLength): New function.
  15248. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  15249. Initalized newly added variables.
  15250. [FileEntry](offset): New variable.
  15251. [FileEntry](extracted): New variable.
  15252. [FileEntry](requested): New variable.
  15253. (readFileEntry): New function.
  15254. (option): New variable.
  15255. (splitMultiFile): Removed const qualifier.
  15256. (fixFilename): Removed const qualifier.
  15257. (readFileEntryFromMetaInfoFile): New function.
  15258. (finishPartialDownloadingMode): New function.
  15259. (isPartialDownloadingMode): New function.
  15260. (setFileEntriesToDownload): New function.
  15261. (getCompletedLength): New function.
  15262. (getPartialTotalLength): New function.
  15263. * src/TorrentMan.cc (readFileEntry): New function.
  15264. (setup): Use readFileEntry. If no-preallocation option is specified,
  15265. use DefaultDiskWriter.
  15266. (readFileEntryFromMetaInfoFile): New function.
  15267. (fixFilename): Removed const qualifier.
  15268. (splitMultiFile): Removed const qualifier.
  15269. (setFileEntriesToDownload): New function.
  15270. (isPartialDownloadingMode): New function.
  15271. (finishPartialDownloadingMode): New function.
  15272. (getCompletedLength): New function.
  15273. (getPartialTotalLength): New function.
  15274. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  15275. New variable.
  15276. (partialTotalLength): New variable.
  15277. (downloadLength): New variable.
  15278. (totalLength): New variable.
  15279. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  15280. Added log.
  15281. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  15282. partialTotalLength, downloadLength, totalLength.
  15283. (calculate): Calculate downloadLength and totalLength.
  15284. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  15285. * src/main.cc (addCommand): Changed argument signature.
  15286. (main): Added new variable: args. Added new option "torrent-show-files"
  15287. "no-preallocation". Usage is not updated yet.
  15288. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15289. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  15290. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15291. Attempt to add the ability to listing file entries in a .torrent file.
  15292. This feature is not yet complete.
  15293. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  15294. * src/TorrentMan.cc (getMultiFileEntries): New function.
  15295. (getName): New function.
  15296. * src/TorrentMan.h (getMultiFileEntries): New function.
  15297. (getName): New function.
  15298. * src/main.cc (main): Use above 2 funtion.
  15299. * Release 0.3.2
  15300. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15301. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  15302. (detectMessageFlooding): Updated threshold value.
  15303. (checkLongTimePeerChoking): Updated timeout value.
  15304. (getNewPieceAndSendInterest): Added debug log.
  15305. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  15306. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  15307. (getPeer): Updated.
  15308. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  15309. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  15310. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  15311. is localhost.
  15312. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  15313. * src/PendingMessage.cc (processMessage): Not to send piece message
  15314. if peer is not interested in the pieces localhost has.
  15315. * src/Peer.cc (shouldChoke): Updated.
  15316. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  15317. * src/Util.cc (isPowerOf): New function.
  15318. * src/Util.h (isPowerOf): New function.
  15319. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  15320. whether or not it is power of 2.
  15321. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15322. Added new class SendMessageQueue that includes PendingMessages and
  15323. RequestSlotMan.
  15324. * src/SendMessageQueue.h: New class.
  15325. * src/SendMessageQueue.cc: New class.
  15326. * src/PendingMessage.h: Added new member variable blockIndex and its
  15327. accessors.
  15328. (createRequestMessage): Updated.
  15329. * src/PendingMessage.cc (createRequestMessage): Updated.
  15330. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  15331. SendMessageQueue.
  15332. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  15333. (receiveMessage): Updated with SendMessageQueue.
  15334. (deletePendingPieceMessage): Removed.
  15335. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  15336. (sendInterest): Updated with SendMessageQueue.
  15337. (createRequestPendingMessage): Updated with SendMessageQueue.
  15338. (sendMessages): Updated with SendMessageQueue.
  15339. (onAbort): Updated with SendMessageQueue.
  15340. (keepAlive): Updated with SendMessageQueue.
  15341. (beforeSocketCheck): Updated SendMessageQueue.
  15342. * src/PeerInteractionCommand (sendMessages): Shuffle
  15343. missingBLockIndexes before using it.
  15344. Added its own timeout for peer connection.
  15345. * src/PeerAbstractCommand.h: Added member variable timeout and its
  15346. setter.
  15347. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  15348. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15349. Added setTimeout() call.
  15350. (executeInternal): Added setTimeout() call.
  15351. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  15352. Added timeout.
  15353. (isTimeoutDetected): Updated.
  15354. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  15355. option.
  15356. Added *simple* message flooding checker.
  15357. * src/PeerInteractionCommand.cc (executeInternal):
  15358. Added detectMessageFlooding() call.
  15359. (detectMessageFlooding): New function.
  15360. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  15361. (beforeSocketCheck): Added detectMessageFlooding() call.
  15362. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  15363. chokeUnchokeCount, haveCount, detectMessageFlooding().
  15364. Removed deletePendingPieceMessage(), getRequestSlot(),
  15365. deleteRequestSlot(), deleteAllRequestSlot().
  15366. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  15367. Added checkLongTimePeerChoking() call.
  15368. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  15369. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  15370. if duplicate == false.
  15371. The parameter "uploaded" and "downloaded" in the tracker request are
  15372. the size since the client sent the "started" event to the tracker.
  15373. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  15374. uploaded size to preDownloadedSize, preUploadedSize respectively.
  15375. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  15376. getSessionDownloadedSize(), getSessionUploadedSize().
  15377. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  15378. getSessionUploadedSize() instead of getDownloadedSize(),
  15379. getUploadedSize().
  15380. * src/PendingMessage.cc (processMessage): Do not send request message
  15381. if the peer is choking the client.
  15382. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  15383. less than interval.
  15384. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15385. * configure.in: Added gnutls support. Added several CPP macros.
  15386. * m4/openssl.m4: Added.
  15387. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  15388. readData(), peekData(). Added gnutls support.
  15389. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  15390. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  15391. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  15392. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  15393. Instead, added a check for whether setup method has executed
  15394. successfully.
  15395. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  15396. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  15397. * src/Makefile.am: Updated.
  15398. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  15399. using whether OpenSSL or gcrypt, depending on the result of configure
  15400. script.
  15401. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  15402. messageDigest.h.
  15403. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  15404. * src/PeerListenCommand.cc: Added log about port binded successfully.
  15405. Fixed memory leak.
  15406. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  15407. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  15408. Removed instantiation of TrackerInitCommand. Instead,
  15409. TrackerWatcherCommand is instantiated and pushed to the command queue.
  15410. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  15411. ENABLE_SSL.
  15412. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  15413. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  15414. If a piece is already acquired by another command, delete the request
  15415. slots for the piece.
  15416. * src/TrackerUpdateCommand.cc (execute):
  15417. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  15418. Added a check whether peer list is null.
  15419. Fixed the bug that causes sending completed event to the tracker
  15420. several times.
  15421. * src/TrackerInitCommand.cc (execute):
  15422. Fixed the bug that causes sending completed event to the tracker
  15423. several times.
  15424. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  15425. by using messageDigest.h.
  15426. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15427. * PeerConnection.cc: Replaced log message "keep-alive" with
  15428. "keep alive".
  15429. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  15430. localhost long time.
  15431. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  15432. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  15433. at most 100 failure entry from the list. If with duplicate = false,
  15434. MAX_PEER_LIST is not checked.
  15435. * PeerListenCommand.cc: Fixed the argument order of log message.
  15436. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15437. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  15438. Added warn().
  15439. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  15440. Implemented warn().
  15441. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  15442. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15443. * Request.h: Added AFTER_COMPLETED event.
  15444. * TorrentDownloadEngine.cc: Prints "Download complete" message
  15445. instead of downloaded size and progress(%) after download completes.
  15446. * PeerInteractionCommand.cc: After download completes, sends unchoke
  15447. message to the peer if it is interested in what localhost has
  15448. downloaded.
  15449. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  15450. destination instead of just renaming it.
  15451. * TorrentMan.cc: Added deleteTempFile().
  15452. * PeerAbstractCommand.cc: do not stop execution after download
  15453. completes. This makes localhost a seeder.
  15454. * Util.{h,cc}: Added fileCopy().
  15455. * PeerListenCommand.cc: do not stop execution after download completes.
  15456. This makes localhost a seeder.
  15457. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  15458. Added TorrentMan::deleteTempFile() to torrentHandler.
  15459. Initialized the variable dir as ".".
  15460. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  15461. Deleted renameSingleFile().
  15462. Added copySingleFile(), deleteTempFile().
  15463. * DownloadEngine.h: Added virtual function afterEachIteration().
  15464. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  15465. in onEndOfRun() to afterEachIteration().
  15466. In onEndOfRun(), changed if condition to check whether filenameFixed is
  15467. true.
  15468. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  15469. In rangedFileCopy(), added try-catch block to properly close file
  15470. descriptors.
  15471. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  15472. Added afterEachIteration(), isFilenameFixed().
  15473. * Peer.cc: Changed choking strategy.
  15474. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  15475. * TrackerInitCommand.cc: Send completed event only once.
  15476. * DownloadEngine.cc: Added a call to afterEachIteration().
  15477. * TrackerUpdateCommand.cc: Do not stop execution after download
  15478. completes.
  15479. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  15480. connect the peers at most MAX_PEER_UPDATE when a peer list is
  15481. received from a tracker.
  15482. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  15483. Decreased the number of failure peers to delete to 0(just comment out
  15484. the line).
  15485. * Release 0.3.1
  15486. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15487. * PeerInteractionCommand.cc: added a call to
  15488. TorrentMan::unadvertisePiece in Destructor.
  15489. * PeerInteractionCommand.cc: make have message sent immediately
  15490. if the size of pending message queue is zero.
  15491. * TorrentMan.cc: set the maximum size of peer list to 250.
  15492. * TorrentMan.h: changed the container type of Peers and UsedPieces
  15493. to deque.
  15494. * Util.cc: fixed rangedFileCopy.
  15495. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  15496. to Constructor. Also, moved digest cleanup to Destructor.
  15497. * MetaFileUtil.cc: fixed memory leak
  15498. * replaced std::vector with std::deque.
  15499. * AbstractCommand.cc: casted timeout value to long long int.
  15500. * ChunkedEncoding.cc: fixed memory leak.
  15501. * PeerInteractionCommand.cc: casted timeout value to long long int.
  15502. * SleepCommand.cc: casted timeout value to long long int.
  15503. * Data.cc: fixed memory leak.
  15504. * Data.cc: fixed toLLInt().
  15505. * BitfieldMan.cc: fixed memory leak.
  15506. * TorrentMan.cc: initialized storeDir to ".".
  15507. * TorrentMan.cc: fixed memory leak.
  15508. * TorrentMan.cc: corrected file paths of splitted files.
  15509. * PeerAbstractCommand.cc: casted timeout to long long int.
  15510. * main.cc: added delete(req) and delete(te->diskWriter).
  15511. * RequestSlot.cc: casted timeout value to long long int.
  15512. * Request.cc: fixed memory leak.
  15513. * PendingMessage.cc: make HAVE messages sent only when peer does not
  15514. have the piece.
  15515. * Peer.{h,cc}: added hasPiece(int index).
  15516. * main.cc: corrected addCommand.
  15517. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15518. * BitTorrent protocol support added.
  15519. * Release 0.3.0
  15520. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15521. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  15522. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15523. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  15524. decoding did not work properly.
  15525. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15526. * DownloadEngine.h: included sys/time.h
  15527. * DownloadEngine.cc: remove sys/time.h
  15528. * Makefile.am (SUBDIRS): Add intl.
  15529. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  15530. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15531. * main.cc: correct help message for --http-auth-scheme.
  15532. * main.cc: changed e-mail address for bug reports.
  15533. * ja.po: added japanese translation.
  15534. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15535. * SimpleLogger.cc: flush log file instead of stdout.
  15536. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15537. * main.cc: Fixed command-line option: max-tries
  15538. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  15539. does not equal to seg.sp.
  15540. * DownloadCommand.cc: If EOF is got from the server and the total size
  15541. of file is not zero, then throw DlRetryEx.
  15542. * main.cc: Set the minium value of min-segment-size to 1024.
  15543. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  15544. fails because of a regression since 0.2.0 release.
  15545. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15546. * HttpConnection.cc:
  15547. * common.h: defined the user agent name as macro
  15548. * DownloadEngine.{h, cc}:
  15549. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  15550. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  15551. * main.cc: Download complete/abort message is now generated by main.
  15552. * Makefile.am (SUBDIRS): Add m4.
  15553. (ACLOCAL_AMFLAGS): New variable.
  15554. (EXTRA_DIST): New variable.
  15555. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  15556. * gettext: added gettext functionality
  15557. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15558. * AbstractCommand.cc:
  15559. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  15560. unregister its cuid from SegmentMan.
  15561. * DownloadEngine.cc: .aria2 file was written when a downloading
  15562. failed with errors.
  15563. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  15564. Added "User-Agent" header to CONNECT proxy request.
  15565. Fixed "Proxy-Authorization" header. Now proxy authorization works
  15566. properly.
  15567. * Logger.h:
  15568. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  15569. * ChunkedEncoding.cc: Added #include directive for strings.h
  15570. * Release 0.2.1
  15571. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15572. * Util.{h,cc}: added startsWith().
  15573. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  15574. Util::endsWith().
  15575. * SocketCore.cc: struct addrinfo is now zero-initialized.
  15576. * common.h: added #include directive of limit.h.
  15577. * DownloadEngine.cc: added #include directive of sys/time.h and
  15578. algorithm.
  15579. * Exception.h: added #include directive of stdio.h.
  15580. * AbstractCommand.h: added #include directive of sys/time.h.
  15581. * DownloadCommand.h: added #include directive of sys/time.h.
  15582. * *.h: added #include directive of common.h to all base classes.
  15583. subclasses' one was removed.
  15584. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  15585. does not define these macros.
  15586. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15587. * Release 0.2.0
  15588. * main.cc:
  15589. * HttpInitiateConnectionCommand.{h,cc}:
  15590. * prefs.h:
  15591. * HttpConnection.{h,cc}: added --http-proxy-method option.
  15592. We can now use GET command in http proxy.
  15593. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15594. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  15595. that splits slowest segment of SegmentMan::commands vector.
  15596. This is the default split algorithm of aria2.
  15597. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  15598. that splits first segment of SegmentMan::commands vector.
  15599. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  15600. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  15601. * Segment.h:
  15602. * SegmentMan.cc: Added speed field to Segment.h
  15603. * main.cc: -s option now affects all URLs in command-line arguemtns.
  15604. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  15605. * message.h: Change file size related %d to %lld.
  15606. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15607. * FtpInitiateConnectionCommand.{h,cc}:
  15608. * FtpNegotiationCommand.{h,cc}:
  15609. * FtpDownloadCommand.{h,cc}:
  15610. * FtpConnection.{h,cc}: Added FTP support
  15611. * SimpleLogger.cc: Log message now includes time information.
  15612. * main.cc: The value of --http-auth-scheme option is chagned from
  15613. 'BASIC' to 'basic'
  15614. * main.cc: Added --timeout command-line option.
  15615. * main.cc: Added --min-segment-size command-line option.
  15616. * main.cc: Added --max-retries command-line option.
  15617. * prefs.h: option string constants are now defined in prefs.h
  15618. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15619. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  15620. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  15621. with version 0.1.0's one.
  15622. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15623. * configure.in: Added --enable-ssl option to configure script.
  15624. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  15625. cannot permit absoluteURI as Request-URI.
  15626. * HttpConnection.cc: Added Referer support.
  15627. * main.cc: Added referer command-line option.
  15628. * main.cc: Added rety-wait command-line option.
  15629. * Exception.h: Fixed formating bug in Exception::setMsg()
  15630. * SocketCore.{h,cc}:
  15631. * Socket.{h, cc}:
  15632. * Request.cc:
  15633. * InitiateConnectionCommandFactory.cc:
  15634. * HttpRequestCommand.cc: Added HTTPS support.
  15635. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  15636. for SocketCore.
  15637. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  15638. size is wrong
  15639. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  15640. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  15641. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  15642. * Release 0.1.0