ChangeLog 553 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502
  1. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Added tellAll command.
  3. * src/XmlRpcMethodFactory.cc
  4. * src/XmlRpcMethodImpl.cc
  5. * src/XmlRpcMethodImpl.h
  6. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  8. * src/XmlRpcMethodImpl.cc
  9. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  10. Added changeGlobalOption command. Currently,
  11. max-overall-download-limit and max-overall-upload-limit option are
  12. available.
  13. * src/RequestGroupMan.h
  14. * src/XmlRpcMethod.cc
  15. * src/XmlRpcMethod.h
  16. * src/XmlRpcMethodFactory.cc
  17. * src/XmlRpcMethodImpl.cc
  18. * src/XmlRpcMethodImpl.h
  19. * test/XmlRpcMethodTest.cc
  20. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  21. Added changeOption command. Currently, max-download-limit,
  22. max-upload-limit option are available in this command.
  23. * src/RequestGroup.h
  24. * src/XmlRpcMethod.cc
  25. * src/XmlRpcMethod.h
  26. * src/XmlRpcMethodFactory.cc
  27. * src/XmlRpcMethodImpl.cc
  28. * src/XmlRpcMethodImpl.h
  29. * test/XmlRpcMethodTest.cc
  30. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  31. Added purgeDownloadResult command.
  32. * src/RequestGroupMan.cc
  33. * src/RequestGroupMan.h
  34. * src/XmlRpcMethodFactory.cc
  35. * src/XmlRpcMethodImpl.cc
  36. * src/XmlRpcMethodImpl.h
  37. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  38. Refactored.
  39. * src/XmlRpcMethod.cc
  40. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  41. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  42. XmlRpcResponse.
  43. * src/HttpServerBodyCommand.cc
  44. * src/Makefile.am
  45. * src/XmlRpcMethod.cc
  46. * src/XmlRpcMethod.h
  47. * src/XmlRpcMethodImpl.cc
  48. * src/XmlRpcResponse.cc
  49. * src/XmlRpcResponse.h
  50. * test/XmlRpcMethodTest.cc
  51. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  52. In XML-RPC option struct, header and index-out option can take
  53. array as value.
  54. * src/XmlRpcMethod.cc
  55. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  56. Removed unused option member from PeerConnection.
  57. * src/InitiatorMSEHandshakeCommand.cc
  58. * src/PeerConnection.cc
  59. * src/PeerConnection.h
  60. * src/PeerInteractionCommand.cc
  61. * src/PeerReceiveHandshakeCommand.cc
  62. * src/ReceiverMSEHandshakeCommand.cc
  63. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  64. Added "seeder" key to getPeers response.
  65. * src/XmlRpcMethodImpl.cc
  66. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  67. Added addMetalink XML-RPC command.
  68. * src/XmlRpcMethodFactory.cc
  69. * src/XmlRpcMethodImpl.cc
  70. * src/XmlRpcMethodImpl.h
  71. * src/download_helper.cc
  72. * src/download_helper.h
  73. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  74. Fixed the bug that POU peers are never choked in seeding.
  75. * src/BtSeederStateChoke.cc
  76. * src/BtSeederStateChoke.h
  77. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  78. Added web-seeding URI handling in addTorrent command.
  79. * src/XmlRpcMethodImpl.cc
  80. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  81. Added "length" key to getFiles response.
  82. * src/XmlRpcMethodImpl.cc
  83. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  84. Moved --no-netrc option from ftp option section to http/ftp option
  85. section.
  86. * doc/aria2c.1.txt
  87. * src/OptionHandlerFactory.cc
  88. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  89. Removed garbage "\" character before '
  90. * doc/aria2c.1.txt
  91. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  92. Removed garbage "\" character before http.
  93. * doc/aria2c.1.txt
  94. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  95. Documented additional options that can be specified in -i list.
  96. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  97. and --xml-rpc-passwd. Removed --enable-http-server and
  98. --http-server-listen-port.
  99. * doc/aria2c.1.txt
  100. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  101. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  102. * src/DefaultPeerStorage.cc
  103. * src/DefaultPeerStorage.h
  104. * src/PeerStorage.h
  105. * src/XmlRpcMethodImpl.cc
  106. * test/MockPeerStorage.h
  107. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  108. Put a call to Socket::isReadable() in try block.
  109. * src/HttpServerBodyCommand.cc
  110. * src/HttpServerCommand.cc
  111. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  112. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  113. exception , so it is now in try block.
  114. * src/HttpServerResponseCommand.cc
  115. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  116. Added "amChoking" and "peerChoking" key in getPeers response.
  117. * src/XmlRpcMethodImpl.cc
  118. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  119. Added test case for zero-length filter.
  120. * test/BitfieldManTest.cc
  121. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  122. getFiles command now returns file data for finished/stopped
  123. downloads.
  124. * src/XmlRpcMethodImpl.cc
  125. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  126. DownloadResult now has the list of FileEntry. The download
  127. summary displays the path of first selected file and the number of
  128. remaining files for multi-file torrent.
  129. * src/DownloadResult.h
  130. * src/RequestGroup.cc
  131. * src/RequestGroupMan.cc
  132. * test/RequestGroupTest.cc
  133. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  134. Fixed segmentation fault error when no file is selected in
  135. multi-file torrent.
  136. * src/BitfieldMan.cc
  137. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  138. Escaped <,>,& character in XML-RPC response.
  139. * src/XmlRpcMethod.cc
  140. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  141. Throw DlAbortEx instead of FatalException during parsing options
  142. because we don't want for aria2 to quit when bad option is passed
  143. via XML-RPC.
  144. * src/OptionHandlerException.cc
  145. * src/OptionHandlerException.h
  146. * src/OptionHandlerImpl.h
  147. * src/OptionParser.cc
  148. * src/OptionParser.h
  149. * src/PStringSegment.cc
  150. * src/ParameterizedStringParser.cc
  151. * src/download_helper.cc
  152. * test/ParameterizedStringParserTest.cc
  153. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  154. Selecting files are now done in
  155. DefaultBtContext::setFileFileter().
  156. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  157. functions are removed because they are no longer used. Creating
  158. filter in BitfieldMan is done in new funtion
  159. PieceStorage::setupFileFilter()
  160. * src/BtContext.cc
  161. * src/BtContext.h
  162. * src/DefaultBtContext.cc
  163. * src/DefaultBtContext.h
  164. * src/DefaultPieceStorage.cc
  165. * src/DefaultPieceStorage.h
  166. * src/DiskAdaptor.cc
  167. * src/DiskAdaptor.h
  168. * src/PieceStorage.h
  169. * src/RequestGroup.cc
  170. * src/UnknownLengthPieceStorage.h
  171. * src/XmlRpcMethodImpl.cc
  172. * test/DefaultBtContextTest.cc
  173. * test/MockBtContext.h
  174. * test/MockPieceStorage.h
  175. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  176. Fixed compile error on Mac OS X
  177. * src/HttpServer.cc
  178. * src/XmlRpcMethod.h
  179. * src/XmlRpcMethodImpl.cc
  180. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  181. Use std::binary_search instead of std::find
  182. * src/DefaultPieceStorage.cc
  183. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  184. Removed unnecessary BDE() call; leave them to implicit conversion.
  185. * src/XmlRpcMethodImpl.cc
  186. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  187. Return connections and gid in string
  188. * src/XmlRpcMethodImpl.cc
  189. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  190. Renamed addURI as addUri
  191. * src/XmlRpcMethodFactory.cc
  192. * src/XmlRpcMethodImpl.cc
  193. * src/XmlRpcMethodImpl.h
  194. * test/XmlRpcMethodTest.cc
  195. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  196. Renamed addTorrentFile as addTorrent
  197. * src/XmlRpcMethodFactory.cc
  198. * src/XmlRpcMethodImpl.cc
  199. * src/XmlRpcMethodImpl.h
  200. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  201. The information for files, URIs, peers are removed from the
  202. reponse of TellaActive, TellStatus command because they tend to be
  203. large. Instead they can be retrieved by the dedicated commands:
  204. getFiles, getUris and getPeers respectively.
  205. * src/XmlRpcMethodFactory.cc
  206. * src/XmlRpcMethodImpl.cc
  207. * src/XmlRpcMethodImpl.h
  208. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  209. Removed --max-overall-upload-limit and
  210. --max-overall-download-limit option from listRequestOptions.
  211. * src/download_helper.cc
  212. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  213. Log incoming host in HttpListenCommand.
  214. * src/HttpListenCommand.cc
  215. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  216. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  217. --xml-rpc-passwd option.
  218. * src/HttpServer.cc
  219. * src/HttpServer.h
  220. * src/HttpServerCommand.cc
  221. * src/OptionHandlerFactory.cc
  222. * src/prefs.cc
  223. * src/prefs.h
  224. * src/usage_text.h
  225. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  226. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  227. processing 0 length request.
  228. * src/HttpServerBodyCommand.cc
  229. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  230. Removed --enable-http-server and --http-server-listen-port
  231. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  232. instead. The original feature for --enable-http-server that
  233. reports download progress in HTML was officially removed. Persist
  234. XML-RPC connection if client supports keep-alive.
  235. * src/DownloadEngineFactory.cc
  236. * src/HttpServerCommand.cc
  237. * src/HttpServerResponseCommand.cc
  238. * src/Makefile.am
  239. * src/Makefile.in
  240. * src/OptionHandlerFactory.cc
  241. * src/RequestGroupMan.cc
  242. * src/main.cc
  243. * src/option_processing.cc
  244. * src/prefs.cc
  245. * src/prefs.h
  246. * src/usage_text.h
  247. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  248. Added "uris" key to the response of tellStatus command. Added
  249. "connections" key to the response of tellStatus and tellActive
  250. command.
  251. * src/XmlRpcMethodImpl.cc
  252. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  253. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  254. Added TellStatusXmlRpcMethod. Remove command can now remove
  255. waiting RequestGroup.
  256. * src/RequestGroupMan.cc
  257. * src/RequestGroupMan.h
  258. * src/XmlRpcMethodFactory.cc
  259. * src/XmlRpcMethodImpl.cc
  260. * src/XmlRpcMethodImpl.h
  261. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  262. Initialized _peerId
  263. * src/Peer.cc
  264. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  265. Return fault structure for error. FailXmlRpcMethod is renamed as
  266. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  267. in non-torrent download. Return single param value.
  268. * src/XmlRpcMethod.cc
  269. * src/XmlRpcMethodFactory.cc
  270. * src/XmlRpcMethodImpl.cc
  271. * src/XmlRpcMethodImpl.h
  272. * test/XmlRpcMethodTest.cc
  273. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  274. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  275. command.
  276. * src/RequestGroup.cc
  277. * src/RequestGroup.h
  278. * src/RequestGroupMan.cc
  279. * src/XmlRpcMethodImpl.cc
  280. * test/RequestGroupTest.cc
  281. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  282. Added more options that can be specified in -i list and xml-rpc
  283. add* command.
  284. * src/download_helper.h
  285. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  286. The available options in -i list should be listed in
  287. listRequestOptions().
  288. * src/download_helper.cc
  289. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  290. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  291. command.
  292. * src/XmlRpcMethodImpl.cc
  293. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  294. Now RequestGroup has its own copy of Option object. This will help
  295. to give custom option for each RequestGroup.
  296. addTorrentFile command now takes options.
  297. * src/AbstractCommand.cc
  298. * src/AbstractCommand.h
  299. * src/AbstractProxyRequestCommand.cc
  300. * src/ActivePeerConnectionCommand.cc
  301. * src/ActivePeerConnectionCommand.h
  302. * src/AdaptiveURISelector.cc
  303. * src/BtCheckIntegrityEntry.cc
  304. * src/BtDependency.cc
  305. * src/BtDependency.h
  306. * src/BtFileAllocationEntry.cc
  307. * src/BtPostDownloadHandler.cc
  308. * src/CheckIntegrityEntry.cc
  309. * src/DownloadCommand.cc
  310. * src/FtpDownloadCommand.cc
  311. * src/FtpFinishDownloadCommand.cc
  312. * src/FtpInitiateConnectionCommand.cc
  313. * src/FtpNegotiationCommand.cc
  314. * src/HttpInitiateConnectionCommand.cc
  315. * src/HttpRequestCommand.cc
  316. * src/HttpResponseCommand.cc
  317. * src/HttpSkipResponseCommand.cc
  318. * src/InitiateConnectionCommand.cc
  319. * src/InitiateConnectionCommandFactory.cc
  320. * src/InitiatorMSEHandshakeCommand.cc
  321. * src/InitiatorMSEHandshakeCommand.h
  322. * src/Metalink2RequestGroup.cc
  323. * src/Metalink2RequestGroup.h
  324. * src/MetalinkPostDownloadHandler.cc
  325. * src/MultiUrlRequestInfo.cc
  326. * src/MultiUrlRequestInfo.h
  327. * src/PeerAbstractCommand.cc
  328. * src/PeerInteractionCommand.cc
  329. * src/PeerInteractionCommand.h
  330. * src/PeerReceiveHandshakeCommand.cc
  331. * src/PeerReceiveHandshakeCommand.h
  332. * src/RequestGroup.cc
  333. * src/RequestGroup.h
  334. * src/TrackerWatcherCommand.cc
  335. * src/TrackerWatcherCommand.h
  336. * src/XmlRpcMethod.cc
  337. * src/XmlRpcMethod.h
  338. * src/XmlRpcMethodImpl.cc
  339. * src/download_helper.cc
  340. * src/download_helper.h
  341. * src/main.cc
  342. * test/BtDependencyTest.cc
  343. * test/BtPostDownloadHandlerTest.cc
  344. * test/DefaultBtMessageDispatcherTest.cc
  345. * test/DownloadHandlerFactoryTest.cc
  346. * test/DownloadHelperTest.cc
  347. * test/Metalink2RequestGroupTest.cc
  348. * test/MetalinkPostDownloadHandlerTest.cc
  349. * test/RequestGroupManTest.cc
  350. * test/RequestGroupTest.cc
  351. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  352. Added tellActiveStatus xml-rpc command which reports download
  353. status of active downloads.
  354. * src/XmlRpcMethodFactory.cc
  355. * src/XmlRpcMethodImpl.cc
  356. * src/XmlRpcMethodImpl.h
  357. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  358. Added addTorrentFile xml-rpc command which receives uploaded
  359. torrent file and add download for it.
  360. * src/RequestGroupMan.cc
  361. * src/XmlRpcMethodFactory.cc
  362. * src/XmlRpcMethodImpl.cc
  363. * src/XmlRpcMethodImpl.h
  364. * src/download_helper.cc
  365. * src/download_helper.h
  366. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  367. Added remove xml-rpc command which removes specified download.
  368. There is a known issue: the removed unfinished downloads are
  369. reported ERR when aria2 exits. They should be reported as INPR.
  370. * src/RequestGroupMan.cc
  371. * src/RequestGroupMan.h
  372. * src/XmlRpcMethodFactory.cc
  373. * src/XmlRpcMethodImpl.cc
  374. * src/XmlRpcMethodImpl.h
  375. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  376. If --enable-http-server is enabled, don't stop aria2 when all
  377. download finished and don't quit when no files to download at
  378. start up.
  379. * src/RequestGroupMan.cc
  380. * src/main.cc
  381. * src/option_processing.cc
  382. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  383. Added missing AM_CONDITIONAL
  384. * configure.ac
  385. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  386. Added xml-rpc functionality. Currently only addURI commad is
  387. supported. To enable xml-rpc, run aria2 with
  388. --enable-http-server. This option name is temporal and will be
  389. changed. The feature that reports download progress in html format
  390. is temporarily disabled.
  391. * src/HttpServer.cc
  392. * src/HttpServer.h
  393. * src/HttpServerBodyCommand.cc
  394. * src/HttpServerBodyCommand.h
  395. * src/HttpServerCommand.cc
  396. * src/HttpServerResponseCommand.cc
  397. * src/Makefile.am
  398. * src/OptionParser.cc
  399. * src/OptionParser.h
  400. * src/RequestGroupMan.cc
  401. * src/RequestGroupMan.h
  402. * src/XmlRpcMethod.cc
  403. * src/XmlRpcMethod.h
  404. * src/XmlRpcMethodFactory.cc
  405. * src/XmlRpcMethodFactory.h
  406. * src/XmlRpcMethodImpl.cc
  407. * src/XmlRpcMethodImpl.h
  408. * src/download_helper.cc
  409. * src/download_helper.h
  410. * test/Makefile.am
  411. * test/XmlRpcMethodTest.cc
  412. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  413. Added xml-rpc request parser. The supported value types are:
  414. i4/int, string, double, struct, array, base64. Currently only
  415. libxml2 version is provided.
  416. * src/Xml2XmlRpcRequestProcessor.cc
  417. * src/Xml2XmlRpcRequestProcessor.h
  418. * src/XmlRpcElements.cc
  419. * src/XmlRpcElements.h
  420. * src/XmlRpcRequest.h
  421. * src/XmlRpcRequestParserController.cc
  422. * src/XmlRpcRequestParserController.h
  423. * src/XmlRpcRequestParserState.h
  424. * src/XmlRpcRequestParserStateImpl.cc
  425. * src/XmlRpcRequestParserStateImpl.h
  426. * src/XmlRpcRequestParserStateMachine.cc
  427. * src/XmlRpcRequestParserStateMachine.h
  428. * src/XmlRpcRequestProcessor.h
  429. * test/XmlRpcRequestParserControllerTest.cc
  430. * test/XmlRpcRequestProcessorTest.cc
  431. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  432. * Release 1.3.3
  433. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  434. Fixed compile error since r1202.
  435. * src/ExpatMetalinkProcessor.cc
  436. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  437. Updated Ukrainian, Russian and Simplified Chinese
  438. translations. Thanks to all translators.
  439. * po/ru.po
  440. * po/uk.po
  441. * po/zh_CN.po
  442. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  443. Pass reference of Option object instead of pointer.
  444. * src/download_helper.cc
  445. * src/download_helper.h
  446. * src/main.cc
  447. * test/DownloadHelperTest.cc
  448. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  449. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  450. from option directly. Instead, get them from RequestGroup.
  451. * src/ActivePeerConnectionCommand.cc
  452. * src/ActivePeerConnectionCommand.h
  453. * src/PeerReceiveHandshakeCommand.cc
  454. * src/RequestGroup.h
  455. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  456. Removed unused uploadLimitCheck and uploadLimit from
  457. PeerAbstractCommand. Removed unused maxDownloadLimit from
  458. PeerInteractionCommand.
  459. * src/PeerAbstractCommand.cc
  460. * src/PeerAbstractCommand.h
  461. * src/PeerInteractionCommand.cc
  462. * src/PeerInteractionCommand.h
  463. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  464. Fixed broken file renaming feature since r1202.
  465. * src/FtpNegotiationCommand.cc
  466. * src/FtpNegotiationCommand.h
  467. * src/HttpResponseCommand.cc
  468. * src/RequestGroup.cc
  469. * src/RequestGroup.h
  470. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  471. Removed unused debug log
  472. * src/SocketCore.cc
  473. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  474. Generated configure and Makefile.in using autoconf 2.63 and
  475. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  476. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  477. * configure.ac
  478. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  479. Moved piece statistics stuff to new PieceStatMan class.
  480. Refactored PieceSelector interface.
  481. * src/DefaultPieceStorage.cc
  482. * src/DefaultPieceStorage.h
  483. * src/LongestSequencePieceSelector.cc
  484. * src/LongestSequencePieceSelector.h
  485. * src/Makefile.am
  486. * src/PieceSelector.h
  487. * src/PieceStatMan.cc
  488. * src/PieceStatMan.h
  489. * src/RarestPieceSelector.cc
  490. * src/RarestPieceSelector.h
  491. * src/RequestGroup.cc
  492. * test/DefaultPieceStorageTest.cc
  493. * test/InOrderPieceSelector.h
  494. * test/Makefile.am
  495. * test/PieceStatManTest.cc
  496. * test/RarestPieceSelectorTest.cc
  497. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  498. Added static member _protocolFamily to SocketCore. By default,
  499. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  500. address. Sometime SocketCore::bind() and
  501. SocketCore::establishConnection() use difference protocl family
  502. and latter cannot connect to former. To avoid this situation, we
  503. limit protocol family to AF_INET for unit tests.
  504. * src/SocketCore.cc
  505. * src/SocketCore.h
  506. * test/AllTest.cc
  507. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  508. Avoid std::bad_alloc for negative bencode string length.
  509. * src/bencode.cc
  510. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  511. Supported segmented downloading with chunked transfer encoding and
  512. content-length.
  513. * src/DownloadCommand.cc
  514. * src/HttpResponseCommand.cc
  515. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  516. Bump up version number to 1.3.3
  517. * configure.ac
  518. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  519. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  520. from 4096 to 65536 (for insanely large ftp login banners)
  521. * src/FtpConnection.h
  522. * test/FtpConnectionTest.cc
  523. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  524. In DefaultBtContext::getActualBasePath(), return first
  525. FileEntry::getPath() for single file torrent.
  526. * src/DefaultBtContext.cc
  527. * test/DefaultBtContextTest.cc
  528. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  529. Removed directIOAllowed() from BinaryStream, DiskWriter,
  530. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  531. Removed _directIOAllowed member from DiskWriter.
  532. * src/AbstractDiskWriter.cc
  533. * src/AbstractDiskWriter.h
  534. * src/AbstractSingleDiskAdaptor.cc
  535. * src/AbstractSingleDiskAdaptor.h
  536. * src/BinaryStream.h
  537. * src/ByteArrayDiskWriter.h
  538. * src/DefaultPieceStorage.cc
  539. * src/DiskWriter.h
  540. * src/MultiDiskAdaptor.cc
  541. * src/MultiDiskAdaptor.h
  542. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  543. Now the constructor of AbstractDiskWriter takes filename as an
  544. argument and filename argument is removed from openFile(),
  545. initAndOpenFile(), openExistingFile() interface. storeDir member
  546. and its accessor functions are removed from DiskAdaptor because it
  547. is not used anymore. size() member function of DefaultDiskWriter,
  548. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  549. opening file.
  550. * src/AbstractDiskWriter.cc
  551. * src/AbstractDiskWriter.h
  552. * src/AbstractSingleDiskAdaptor.cc
  553. * src/AbstractSingleDiskAdaptor.h
  554. * src/ByteArrayDiskWriter.cc
  555. * src/ByteArrayDiskWriter.h
  556. * src/ByteArrayDiskWriterFactory.cc
  557. * src/ByteArrayDiskWriterFactory.h
  558. * src/DefaultDiskWriter.cc
  559. * src/DefaultDiskWriter.h
  560. * src/DefaultDiskWriterFactory.cc
  561. * src/DefaultDiskWriterFactory.h
  562. * src/DefaultPieceStorage.cc
  563. * src/DirectDiskAdaptor.cc
  564. * src/DirectDiskAdaptor.h
  565. * src/DiskAdaptor.h
  566. * src/DiskWriter.h
  567. * src/DiskWriterFactory.h
  568. * src/MessageDigestHelper.cc
  569. * src/MultiDiskAdaptor.cc
  570. * src/RequestGroup.cc
  571. * src/UnknownLengthPieceStorage.cc
  572. * src/Util.cc
  573. * test/DefaultDiskWriterTest.cc
  574. * test/DirectDiskAdaptorTest.cc
  575. * test/FallocFileAllocationIteratorTest.cc
  576. * test/MessageDigestHelperTest.cc
  577. * test/MetalinkProcessorTest.cc
  578. * test/MultiDiskAdaptorTest.cc
  579. * test/MultiFileAllocationIteratorTest.cc
  580. * test/SingleFileAllocationIteratorTest.cc
  581. * test/UtilTest.cc
  582. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  583. Fixed the bug that aria2 aborts when --select-file is used. This
  584. bug was introduced in r1199.
  585. * src/MultiDiskAdaptor.cc
  586. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  587. Code cleanup
  588. * test/MockPieceStorage.cc
  589. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  590. Fixed the bug that read-only file with wrong file size will cause
  591. error because it cannot be truncated to the correct size. Now if
  592. file size is different than the expected one, re-open file in
  593. writable mode.
  594. * src/AbstractSingleDiskAdaptor.cc
  595. * src/AbstractSingleDiskAdaptor.h
  596. * src/BtCheckIntegrityEntry.cc
  597. * src/DiskAdaptor.h
  598. * src/MultiDiskAdaptor.h
  599. * src/RequestGroup.cc
  600. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  601. Fixed the bug that with --check-integrity option aria2 reports
  602. downloaded file size is 0 even if some parts of file is correctly
  603. downloaded. This bug is reproducible for the download that a file
  604. includes last piece is missing. This bug doesn't reveal for
  605. single-torrent with file allocation on.
  606. * src/IteratableChecksumValidator.cc
  607. * test/IteratableChecksumValidatorTest.cc
  608. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  609. Avoid circular reference between RequestGroup and AdaptiveURISelector
  610. * src/RequestGroupMan.cc
  611. * src/AdaptiveURISelector.cc
  612. * src/AdaptiveURISelector.h
  613. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  614. * Release 1.3.2
  615. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  616. Updated README
  617. * README
  618. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  619. Updated Ukrainian translations. Thanks to Alexander10.
  620. * po/uk.po
  621. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  622. Code cleanup
  623. * src/MetalinkParserStateMachine.cc
  624. * src/MetalinkParserStateMachine.h
  625. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  626. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  627. and expat simultaneously, MetalinkProcessor is now not base class
  628. and it is directly implemented in XML2SAXMetalinkProcessor and
  629. ExpatMetalinkProcessor.
  630. * src/ExpatMetalinkProcessor.cc
  631. * src/ExpatMetalinkProcessor.h
  632. * src/Makefile.am
  633. * src/MetalinkHelper.cc
  634. * src/MetalinkProcessor.h
  635. * src/MetalinkProcessorFactory.cc: Removed.
  636. * src/MetalinkProcessorFactory.h: Removed
  637. * src/XML2SAXMetalinkProcessor.cc
  638. * src/XML2SAXMetalinkProcessor.h
  639. * test/MetalinkProcessorTest.cc
  640. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  641. Bump up version number to 1.3.2
  642. * configure.ac
  643. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  644. Added missing file.
  645. * test/Makefile.am
  646. * test/url-list-singleFileEndsWithSlash.torrent
  647. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  648. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  649. request.
  650. * src/AnnounceList.cc
  651. * src/AnnounceList.h
  652. * src/BDE.cc: Added
  653. * src/BDE.h: Added
  654. * src/DHTAbstractMessage.cc
  655. * src/DHTAbstractMessage.h
  656. * src/DHTAnnouncePeerMessage.cc
  657. * src/DHTAnnouncePeerMessage.h
  658. * src/DHTAnnouncePeerReplyMessage.cc
  659. * src/DHTAnnouncePeerReplyMessage.h
  660. * src/DHTFindNodeMessage.cc
  661. * src/DHTFindNodeMessage.h
  662. * src/DHTFindNodeReplyMessage.cc
  663. * src/DHTFindNodeReplyMessage.h
  664. * src/DHTGetPeersMessage.cc
  665. * src/DHTGetPeersMessage.h
  666. * src/DHTGetPeersReplyMessage.cc
  667. * src/DHTGetPeersReplyMessage.h
  668. * src/DHTMessageFactory.h
  669. * src/DHTMessageFactoryImpl.cc
  670. * src/DHTMessageFactoryImpl.h
  671. * src/DHTMessageReceiver.cc
  672. * src/DHTMessageTracker.cc
  673. * src/DHTMessageTracker.h
  674. * src/DHTPingMessage.cc
  675. * src/DHTPingMessage.h
  676. * src/DHTPingReplyMessage.cc
  677. * src/DHTPingReplyMessage.h
  678. * src/DHTQueryMessage.cc
  679. * src/DHTQueryMessage.h
  680. * src/DHTResponseMessage.cc
  681. * src/DHTResponseMessage.h
  682. * src/DefaultBtAnnounce.cc
  683. * src/DefaultBtContext.cc
  684. * src/DefaultBtContext.h
  685. * src/HandshakeExtensionMessage.cc
  686. * src/Makefile.am
  687. * src/PeerListProcessor.h
  688. * src/UTPexExtensionMessage.cc
  689. * src/bencode.cc
  690. * src/bencode.h
  691. * test/AnnounceListTest.cc
  692. * test/BDETest.cc: Added
  693. * test/BencodeTest.cc
  694. * test/DHTAnnouncePeerMessageTest.cc
  695. * test/DHTAnnouncePeerReplyMessageTest.cc
  696. * test/DHTFindNodeMessageTest.cc
  697. * test/DHTFindNodeReplyMessageTest.cc
  698. * test/DHTGetPeersMessageTest.cc
  699. * test/DHTGetPeersReplyMessageTest.cc
  700. * test/DHTMessageFactoryImplTest.cc
  701. * test/DHTMessageTrackerTest.cc
  702. * test/DHTPingMessageTest.cc
  703. * test/DHTPingReplyMessageTest.cc
  704. * test/Makefile.am
  705. * test/MockDHTMessageFactory.h
  706. * test/PeerListProcessorTest.cc
  707. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  708. Use url-list (web-seeding) only for single-file torrent. This is
  709. basically the same behavior with Metalink file with torrent and
  710. URIs.
  711. * src/RequestGroup.cc
  712. * src/DefaultBtContext.cc
  713. * test/DefaultBtContextTest.cc
  714. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  715. Rewritten expr
  716. * src/array_fun.h
  717. * test/array_funTest.cc
  718. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  719. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  720. * src/DefaultBtMessageDispatcher.cc
  721. * src/a2algo.h
  722. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  723. Removed ExtendedMessagingAware. Instead of using inheritance,
  724. added ExtensionMessageRegistry and it is passed to
  725. DefaultExtensionMessageFactory.
  726. * src/DefaultBtInteractive.cc
  727. * src/DefaultBtInteractive.h
  728. * src/DefaultExtensionMessageFactory.cc
  729. * src/DefaultExtensionMessageFactory.h
  730. * src/ExtendedMessagingAware.h: Removed.
  731. * src/ExtensionMessageFactory.h
  732. * src/ExtensionMessageRegistry.h: Added.
  733. * src/Makefile.am
  734. * src/PeerInteractionCommand.cc
  735. * test/DefaultExtensionMessageFactoryTest.cc
  736. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  737. Fixed typo in log messages
  738. * src/MSEHandshake.cc
  739. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  740. Fixed the bug that prevents torrent download from finishing. The
  741. bug doesn't reveal for all torrents. The torrents affected this
  742. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  743. of pieces.
  744. * src/bitfield.h
  745. * test/bitfieldTest.cc
  746. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  747. Code cleanup
  748. * src/PeerListProcessor.h
  749. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  750. Removed RequestGroupAware
  751. * src/AbstractCommand.cc
  752. * src/AbstractCommand.h
  753. * src/ActivePeerConnectionCommand.cc
  754. * src/ActivePeerConnectionCommand.h
  755. * src/DHTGetPeersCommand.cc
  756. * src/DHTGetPeersCommand.h
  757. * src/InitiatorMSEHandshakeCommand.cc
  758. * src/InitiatorMSEHandshakeCommand.h
  759. * src/Makefile.am
  760. * src/PeerInitiateConnectionCommand.cc
  761. * src/PeerInitiateConnectionCommand.h
  762. * src/PeerInteractionCommand.cc
  763. * src/PeerInteractionCommand.h
  764. * src/RealtimeCommand.cc
  765. * src/RealtimeCommand.h
  766. * src/RequestGroupAware.cc: Removed
  767. * src/RequestGroupAware.h: Removed
  768. * src/SeedCheckCommand.cc
  769. * src/SeedCheckCommand.h
  770. * src/SleepCommand.cc
  771. * src/TrackerWatcherCommand.cc
  772. * src/TrackerWatcherCommand.h
  773. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  774. Rewritten PeerListProcessor
  775. * src/PeerListProcessor.h
  776. * src/CompactPeerListProcessor.h: Removed
  777. * src/CompactPeerListProcessor.cc: Removed
  778. * src/DelegatingPeerListProcessor.cc: Removed.
  779. * src/DefaultBtAnnounce.cc
  780. * src/Makefile.am
  781. * src/UTPexExtensionMessage.cc
  782. * src/DefaultPeerListProcessor.h: Removed.
  783. * src/DefaultPeerListProcessor.cc: Removed.
  784. * src/DelegatingPeerListProcessor.h: Removed.
  785. * test/Makefile.am
  786. * test/PeerListProcessorTest.cc
  787. * test/DefaultPeerListProcessorTest.cc: Removed.
  788. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  789. Rewritten RequestGroupMan::calculateStat()
  790. * src/RequestGroupMan.cc
  791. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  792. Removed unnecessary virtual destructor for Request class.
  793. * src/Request.cc
  794. * src/Request.h
  795. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  796. Avoid dynamic_pointer_cast.
  797. * src/DHTGetPeersCommand.cc
  798. * src/DHTGetPeersCommand.h
  799. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  800. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  801. BtEvent.
  802. * src/AbstractBtEventListener.h: Removed.
  803. * src/AbstractBtMessage.cc
  804. * src/AbstractBtMessage.h
  805. * src/BtAbortOutstandingRequestEvent.h
  806. * src/BtCancelSendingPieceEvent.h
  807. * src/BtChokedEvent.h: Removed.
  808. * src/BtChokingEvent.h
  809. * src/BtEvent.h: Removed
  810. * src/BtEventListener.h: Removed.
  811. * src/BtMessage.h
  812. * src/BtPieceMessage.cc
  813. * src/BtPieceMessage.h
  814. * src/BtRequestMessage.cc
  815. * src/BtRequestMessage.h
  816. * src/DefaultBtMessageDispatcher.cc
  817. * src/Makefile.am
  818. * src/a2functional.h
  819. * test/BtPieceMessageTest.cc
  820. * test/BtRequestMessageTest.cc
  821. * test/DefaultBtMessageDispatcherTest.cc
  822. * test/MockBtMessage.h
  823. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  824. Code cleanup
  825. * src/RequestGroupMan.cc
  826. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  827. Code cleanup
  828. * src/DownloadCommand.cc
  829. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  830. Fixed segmentation fault when GZipDecoder::decode() returns 0
  831. byte.
  832. * src/DownloadCommand.cc
  833. * src/bitfield.h
  834. * test/bitfieldTest.cc
  835. Fixed the bug that causes infinite loop if broken web server
  836. returns chunked response without last "0" chunk-size marker and
  837. closes connection.
  838. * src/DownloadCommand.cc
  839. Instantiate properly configured HttpDownloadCommand for
  840. non-resumable downlaods.
  841. * src/HttpResponseCommand.cc
  842. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  843. Rewritten array operation functions.
  844. * src/BitfieldMan.cc
  845. * src/array_fun.h
  846. * test/array_funTest.cc
  847. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  848. Removed unused variable 'query'
  849. * src/Request.cc
  850. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  851. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  852. accidentally set to false in r1162.
  853. * configure.ac
  854. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  855. Code cleanup
  856. * src/BNode.cc
  857. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  858. Increase prefixLength for the bucket which doesn't own local node
  859. ID when splitting bucket.
  860. * src/DHTBucket.cc
  861. * test/DHTBucketTest.cc
  862. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  863. * Release 1.3.1
  864. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  865. Bump up version number to 1.3.1
  866. * configure.ac
  867. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  868. Removed unused variable checkPoint. Also removed include directive
  869. for TimeA2.h.
  870. * src/SeedCheckCommand.h
  871. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  872. Fixed the bug that upload limit exceeds the value specified in
  873. --seed-ratio option depending on the timing of the execution of
  874. SeedCheckCommand.
  875. * src/SeedCheckCommand.cc
  876. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  877. Fixed the bug that removed peer's session upload/download length
  878. are counted twice in _cachedTransferStat before it is
  879. re-calculated. This affected the calculation of shara ratio,
  880. resulting aria2 wrongly determines that specified share ratio is
  881. reached. Also fixed the typo in calculateStatFor function name.
  882. * src/BtSetup.cc
  883. * src/DefaultPeerStorage.cc
  884. * src/ShareRatioSeedCriteria.h
  885. * test/ShareRatioSeedCriteriaTest.cc
  886. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  887. * Release 1.3.0
  888. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  889. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  890. Nynorsk translations. Thanks to all translators.
  891. * po/es.po
  892. * po/ja.po
  893. * po/nn.po
  894. * po/ru.po
  895. * po/uk.po
  896. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  897. Rewritten isInRange()
  898. * src/DHTBucket.cc
  899. * test/DHTBucketTest.cc
  900. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  901. Fixed typo
  902. * doc/aria2c.1.txt
  903. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  904. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  905. malloc/realloc is not used.
  906. * src/configure.ac
  907. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  908. BitfieldMan::getMissingIndexes family functions now takes unsigned
  909. char* bitfield instead of stl container for efficiency.
  910. PieceSelector::select now takes this
  911. bitfield. RarestPieceSelector::select now also performs
  912. efficiently for this change. bitfield namespace is introduced and
  913. it has several helper functions to handle basic bitfield
  914. operations such as test, count set bits, etc.
  915. * src/BitfieldMan.cc
  916. * src/BitfieldMan.h
  917. * src/DefaultBtRequestFactory.cc
  918. * src/DefaultPieceStorage.cc
  919. * src/DefaultPieceStorage.h
  920. * src/LongestSequencePieceSelector.cc
  921. * src/LongestSequencePieceSelector.h
  922. * src/Makefile.am
  923. * src/Piece.cc
  924. * src/Piece.h
  925. * src/PieceSelector.h
  926. * src/RarestPieceSelector.cc
  927. * src/RarestPieceSelector.h
  928. * src/Util.cc
  929. * src/Util.h
  930. * src/bitfield.h
  931. * test/BitfieldManTest.cc
  932. * test/LongestSequencePieceSelectorTest.cc
  933. * test/Makefile.am
  934. * test/RarestPieceSelectorTest.cc
  935. * test/UtilTest.cc
  936. * test/bitfieldTest.cc
  937. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  938. Made accepted socket non-block.
  939. * src/FtpNegotiationCommand.cc
  940. * src/HttpListenCommand.cc
  941. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  942. Guarded #ifdef HAVE_POSIX_FALLOCATE
  943. * src/AbstractSingleDiskAdaptor.cc
  944. * src/DefaultPieceStorage.cc
  945. * src/DiskAdaptor.h
  946. * src/DiskAdaptor.h
  947. * src/MultiFileAllocationIterator.cc
  948. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  949. Run
  950. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  951. in every 1 sec. The timeout of RequestSlot is 60s by default and
  952. it doesn't need to be called every time when
  953. DefaultBtInteractive::doInteractionProcessing() is called.
  954. * src/DefaultBtInteractive.cc
  955. * src/DefaultBtInteractive.h
  956. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  957. Documented 'falloc' in man page.
  958. * doc/aria2c.1.txt
  959. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  960. Updated doc
  961. * src/usage_text.h
  962. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  963. Added 'falloc' parameter for --file-allocation option. 'falloc'
  964. allocation mode uses posix_fallocate() system call to allocate
  965. file on disk. If you are using newer file systems such as ext4
  966. (with extents support), btrfs or xfs, 'falloc' is your best
  967. choice. It allocates large(few GiB) files almost instantly. Don't
  968. use 'falloc' with legacy file systems such as ext3 because it
  969. takes almost same time as 'prealloc' and it blocks aria2 entirely
  970. until allocation finishes. 'falloc' may not be available if your
  971. system doesn't have posix_fallocate() system call.
  972. * configure.ac
  973. * src/AbstractDiskWriter.cc
  974. * src/AbstractDiskWriter.h
  975. * src/AbstractSingleDiskAdaptor.cc
  976. * src/BinaryStream.h
  977. * src/BtCheckIntegrityEntry.cc
  978. * src/ByteArrayDiskWriter.h
  979. * src/CheckIntegrityEntry.cc
  980. * src/CheckIntegrityEntry.h
  981. * src/DefaultPieceStorage.cc
  982. * src/DiskAdaptor.cc
  983. * src/DiskAdaptor.h
  984. * src/DiskWriter.h
  985. * src/FallocFileAllocationIterator.cc
  986. * src/FallocFileAllocationIterator.h
  987. * src/FileAllocationEntry.cc
  988. * src/FileAllocationEntry.h
  989. * src/Makefile.am
  990. * src/MultiFileAllocationIterator.cc
  991. * src/MultiFileAllocationIterator.h
  992. * src/OptionHandlerFactory.cc
  993. * src/RequestGroup.cc
  994. * src/StreamCheckIntegrityEntry.cc
  995. * src/prefs.cc
  996. * src/prefs.h
  997. * src/usage_text.h
  998. * test/FallocFileAllocationIteratorTest.cc
  999. * test/Makefile.am
  1000. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1001. Removed duplicate enableDirectIO() call.
  1002. * src/MultiFileAllocationIterator.cc
  1003. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1004. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  1005. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  1006. cost of std::rotate().
  1007. * src/RarestPieceSelector.cc
  1008. * src/RarestPieceSelector.h
  1009. * test/RarestPieceSelectorTest.cc
  1010. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1011. Updated usage doc for --bt-tracker-interval option.
  1012. * src/usage_text.h
  1013. * doc/aria2c.1.txt
  1014. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1015. Documented --bt-tracker-interval option in man page.
  1016. * doc/aria2c.1.txt
  1017. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1018. Added an option to specify the interval between tracker requests.
  1019. If non-zero value is specified, aria2 uses it and ignores the
  1020. interval value in the response of tracker. If zero is specified,
  1021. aria2 determines the inteval value based on the tarcker response
  1022. and download progress.
  1023. * src/DefaultBtAnnounce.cc
  1024. * src/DefaultBtAnnounce.h
  1025. * src/OptionHandlerFactory.cc
  1026. * src/RequestGroup.cc
  1027. * src/prefs.cc
  1028. * src/prefs.h
  1029. * src/usage_text.h
  1030. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1031. Added operator+=, operator-=, operator-
  1032. * src/TransferStat.cc
  1033. * src/TransferStat.h
  1034. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1035. Refactored RarestPieceSelector to reduce CPU load, especially for
  1036. addPieceStats.
  1037. * src/RarestPieceSelector.cc
  1038. * src/RarestPieceSelector.h
  1039. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1040. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  1041. getAllMissingBlockIndexes to reduce a call to
  1042. array_function_base::operator[].
  1043. * src/BitfieldMan.cc
  1044. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1045. Cached TransferStat/download speed to avoid to sum them up in each
  1046. call.
  1047. * src/DefaultPeerStorage.cc
  1048. * src/DefaultPeerStorage.h
  1049. * src/SegmentMan.cc
  1050. * src/SegmentMan.h
  1051. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1052. Typedefed cuid_t as int32_t in Command.h
  1053. * src/CUIDCounter.h
  1054. * src/Command.cc
  1055. * src/Command.h
  1056. * src/DownloadEngine.cc
  1057. * src/DownloadEngine.h
  1058. * src/PeerStat.h
  1059. * src/SegmentMan.cc
  1060. * src/SegmentMan.h
  1061. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1062. Reduced the number of calls to PeerStorage::calculateStat() and
  1063. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  1064. transfer rate.
  1065. * src/DefaultBtInteractive.cc
  1066. * src/DefaultBtMessageDispatcher.cc
  1067. * src/DefaultPeerStorage.cc
  1068. * src/DefaultPeerStorage.h
  1069. * src/DownloadCommand.cc
  1070. * src/DownloadEngine.cc
  1071. * src/PeerStorage.h
  1072. * src/SegmentMan.cc
  1073. * src/SegmentMan.h
  1074. * test/MockPeerStorage.h
  1075. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1076. Prepended _dir+"/" after joining path elements in torrent file.
  1077. * src/DefaultBtContext.cc
  1078. * test/DefaultBtContextTest.cc
  1079. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1080. Added missing IndexBtMessageValidator.h
  1081. * src/Makefile.am
  1082. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1083. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  1084. Chinese translations. Thank you for contributing our project.
  1085. * po/id.po
  1086. * po/it.po
  1087. * po/ru.po
  1088. * po/uk.po
  1089. * po/zh_CN.po
  1090. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1091. Updated README
  1092. * README
  1093. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1094. Bump up version number to 1.3.0
  1095. * configure.ac
  1096. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1097. Updated doc
  1098. * src/DefaultBtContext.h
  1099. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1100. Slice/joinPath for name of single torrent.
  1101. * src/DefaultBtContext.cc
  1102. * test/DefaultBtContextTest.cc
  1103. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1104. Updated man page: Documented --dry-run and --index-out
  1105. options. Changed the default value of --uri-selector and
  1106. --http-auth-challenge options. Removed --direct-file-mapping
  1107. option. Added example for --index-out
  1108. * doc/aria2c.1.txt
  1109. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1110. Updated TEXT_DRY_RUN
  1111. * src/usage_text.h
  1112. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1113. Changed the default value of --uri-selector option from 'inorder'
  1114. to 'feedback'
  1115. * src/OptionHandlerFactory.cc
  1116. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1117. Included current URI in exception message.
  1118. * src/AbstractCommand.cc
  1119. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1120. Renamed ServerStatURISelector as FeedbackURISelector.
  1121. * src/FeedbackURISelector.cc
  1122. * src/FeedbackURISelector.h
  1123. * src/Makefile.am
  1124. * src/RequestGroupMan.cc
  1125. * src/ServerStatURISelector.cc
  1126. * src/ServerStatURISelector.h
  1127. * test/FeedbackURISelectorTest.cc
  1128. * test/Makefile.am
  1129. * test/ServerStatURISelectorTest.cc
  1130. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1131. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  1132. all URIs are tested and their timeout is not reached.
  1133. * src/AdaptiveURISelector.cc
  1134. * src/AdaptiveURISelector.h
  1135. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1136. Changed the default value of --http-auth-challenge option to false.
  1137. * src/OptionHandlerFactory.cc
  1138. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1139. Reuse URIs when all unused URIs run out.
  1140. * src/OptionHandlerFactory.cc
  1141. * src/RequestGroup.cc
  1142. * src/prefs.cc
  1143. * src/prefs.h
  1144. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1145. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  1146. and BtRejectMessage are derived from RangeBtMessage class.
  1147. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  1148. derived from IndexBtMessage class. BtChokeMessage,
  1149. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  1150. BtNotInterestedMessage and BtUnchokeMessage are derived from
  1151. ZeroBtMessage class.
  1152. * src/AbstractBtMessage.cc
  1153. * src/AbstractBtMessage.h
  1154. * src/BtAllowedFastMessage.cc
  1155. * src/BtAllowedFastMessage.h
  1156. * src/BtAllowedFastMessageValidator.h: Removed
  1157. * src/BtBitfieldMessage.cc
  1158. * src/BtBitfieldMessage.h
  1159. * src/BtCancelMessage.cc
  1160. * src/BtCancelMessage.h
  1161. * src/BtCancelMessageValidator.h: Removed
  1162. * src/BtChokeMessage.cc
  1163. * src/BtChokeMessage.h
  1164. * src/BtExtendedMessage.cc
  1165. * src/BtExtendedMessage.h
  1166. * src/BtHandshakeMessage.cc
  1167. * src/BtHandshakeMessage.h
  1168. * src/BtHaveAllMessage.cc
  1169. * src/BtHaveAllMessage.h
  1170. * src/BtHaveMessage.cc
  1171. * src/BtHaveMessage.h
  1172. * src/BtHaveMessageValidator.h: Removed
  1173. * src/BtHaveNoneMessage.cc
  1174. * src/BtHaveNoneMessage.h
  1175. * src/BtInterestedMessage.cc
  1176. * src/BtInterestedMessage.h
  1177. * src/BtKeepAliveMessage.cc
  1178. * src/BtKeepAliveMessage.h
  1179. * src/BtNotInterestedMessage.cc
  1180. * src/BtNotInterestedMessage.h
  1181. * src/BtPieceMessage.cc
  1182. * src/BtPieceMessage.h
  1183. * src/BtPortMessage.cc
  1184. * src/BtPortMessage.h
  1185. * src/BtRejectMessage.cc
  1186. * src/BtRejectMessage.h
  1187. * src/BtRejectMessageValidator.h: Removed
  1188. * src/BtRequestMessage.cc
  1189. * src/BtRequestMessage.h
  1190. * src/BtRequestMessageValidator.h: Removed
  1191. * src/BtSuggestPieceMessage.cc
  1192. * src/BtSuggestPieceMessage.h
  1193. * src/BtSuggestPieceMessageValidator.h: Removed
  1194. * src/BtUnchokeMessage.cc
  1195. * src/BtUnchokeMessage.h
  1196. * src/DefaultBtMessageFactory.cc
  1197. * src/IndexBtMessage.cc
  1198. * src/IndexBtMessage.h
  1199. * src/IndexBtMessageValidator.h
  1200. * src/Makefile.am
  1201. * src/PeerMessageUtil.cc
  1202. * src/PeerMessageUtil.h
  1203. * src/RangeBtMessage.cc
  1204. * src/RangeBtMessage.h
  1205. * src/RangeBtMessageValidator.h
  1206. * src/SimpleBtMessage.cc
  1207. * src/SimpleBtMessage.h
  1208. * src/ZeroBtMessage.cc
  1209. * src/ZeroBtMessage.h
  1210. * test/BtRequestMessageTest.cc
  1211. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1212. Reverted usage_text.h to r1093 to avoid to lose translated
  1213. messages.
  1214. * src/usage_text.h
  1215. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1216. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  1217. declared as non-const previously is now const and defined in class
  1218. definition.
  1219. * src/AbstractBtMessage.cc
  1220. * src/AbstractBtMessage.h
  1221. * src/BtAllowedFastMessage.cc
  1222. * src/BtAllowedFastMessage.h
  1223. * src/BtBitfieldMessage.h
  1224. * src/BtCancelMessage.cc
  1225. * src/BtCancelMessage.h
  1226. * src/BtChokeMessage.cc
  1227. * src/BtChokeMessage.h
  1228. * src/BtExtendedMessage.cc
  1229. * src/BtExtendedMessage.h
  1230. * src/BtHandshakeMessage.cc
  1231. * src/BtHandshakeMessage.h
  1232. * src/BtHaveAllMessage.cc
  1233. * src/BtHaveAllMessage.h
  1234. * src/BtHaveMessage.cc
  1235. * src/BtHaveMessage.h
  1236. * src/BtHaveNoneMessage.cc
  1237. * src/BtHaveNoneMessage.h
  1238. * src/BtInterestedMessage.cc
  1239. * src/BtInterestedMessage.h
  1240. * src/BtKeepAliveMessage.cc
  1241. * src/BtKeepAliveMessage.h
  1242. * src/BtMessage.h
  1243. * src/BtNotInterestedMessage.cc
  1244. * src/BtNotInterestedMessage.h
  1245. * src/BtPieceMessage.h
  1246. * src/BtPortMessage.cc
  1247. * src/BtPortMessage.h
  1248. * src/BtRejectMessage.cc
  1249. * src/BtRejectMessage.h
  1250. * src/BtRequestMessage.cc
  1251. * src/BtRequestMessage.h
  1252. * src/BtSuggestPieceMessage.cc
  1253. * src/BtSuggestPieceMessage.h
  1254. * src/BtUnchokeMessage.cc
  1255. * src/BtUnchokeMessage.h
  1256. * src/SimpleBtMessage.cc
  1257. * src/SimpleBtMessage.h
  1258. * test/MockBtMessage.h
  1259. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1260. Use FileEntry::exists()
  1261. * src/MultiDiskAdaptor.cc
  1262. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1263. Added exists()
  1264. * src/FileEntry.cc
  1265. * src/FileEntry.h
  1266. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1267. Added missing prefix dir.
  1268. * src/download_helper.cc
  1269. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1270. Removed --direct-file-mapping option and CopyDiskAdaptor.
  1271. * src/CopyDiskAdaptor.cc: Removed
  1272. * src/CopyDiskAdaptor.h: Removed
  1273. * src/DefaultPieceStorage.cc
  1274. * src/Makefile.am
  1275. * src/OptionHandlerFactory.cc
  1276. * src/prefs.cc
  1277. * src/prefs.h
  1278. * src/usage_text.h
  1279. * test/CopyDiskAdaptorTest.cc: Removed
  1280. * test/Makefile.am
  1281. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1282. Rewritten isSameFileBeingDownloaded()
  1283. * src/RequestGroupMan.cc
  1284. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1285. Removed getName() from DownloadContext. getName() is declared in
  1286. BtContext.
  1287. * src/BtContext.h
  1288. * src/DownloadContext.h
  1289. * src/SingleFileDownloadContext.cc
  1290. * src/SingleFileDownloadContext.h
  1291. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  1292. in AbstractSingleDiskAdaptor.
  1293. * src/AbstractSingleDiskAdaptor.h
  1294. * src/DiskAdaptor.h
  1295. * src/MultiDiskAdaptor.h
  1296. * src/RequestGroup.cc
  1297. Removed setTopDir() and getTopDir() and getTopDirPath() from
  1298. MultiDiskAdaptor.
  1299. * src/DefaultPieceStorage.cc
  1300. * src/MultiDiskAdaptor.cc
  1301. * src/MultiDiskAdaptor.h
  1302. * test/MultiDiskAdaptorTest.cc
  1303. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1304. FileEntry::getPath() contains store(top level) directory to
  1305. simplify path handling operation. In the previous implementation,
  1306. store directory is concatenated to FileEntry::getPath() in
  1307. DownloadContext.
  1308. * src/BtDependency.cc
  1309. * src/BtPostDownloadHandler.cc
  1310. * src/CopyDiskAdaptor.cc
  1311. * src/DefaultBtContext.cc
  1312. * src/DirectDiskAdaptor.cc
  1313. * src/FileEntry.cc
  1314. * src/FileEntry.h
  1315. * src/FtpNegotiationCommand.cc
  1316. * src/HttpResponse.cc
  1317. * src/HttpResponseCommand.cc
  1318. * src/Metalink2RequestGroup.cc
  1319. * src/MultiDiskAdaptor.cc
  1320. * src/MultiDiskAdaptor.h
  1321. * src/MultiFileAllocationIterator.cc
  1322. * src/RequestGroup.cc
  1323. * src/SingleFileDownloadContext.cc
  1324. * src/SingleFileDownloadContext.h
  1325. * src/download_helper.cc
  1326. * test/BtDependencyTest.cc
  1327. * test/CopyDiskAdaptorTest.cc
  1328. * test/DefaultBtContextTest.cc
  1329. * test/DefaultBtProgressInfoFileTest.cc
  1330. * test/DirectDiskAdaptorTest.cc
  1331. * test/DownloadHelperTest.cc
  1332. * test/FileEntryTest.cc
  1333. * test/MultiDiskAdaptorTest.cc
  1334. * test/MultiFileAllocationIteratorTest.cc
  1335. * test/RequestGroupTest.cc
  1336. * test/SingleFileDownloadContextTest.cc
  1337. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1338. Fixed compiler warning
  1339. * src/download_helper.cc
  1340. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1341. Throw exception if same infohash torrent is now downloading.
  1342. * src/RequestGroup.cc
  1343. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1344. Added --dry-run option. In this mode, aria2 just checks whether
  1345. the remote file is available and doesn't download data. This
  1346. option has effect on HTTP/FTP downloads and BitTorrent downloads
  1347. are canceled in this mode.
  1348. * src/FtpNegotiationCommand.cc
  1349. * src/HttpResponseCommand.cc
  1350. * src/HttpResponseCommand.h
  1351. * src/OptionHandlerFactory.cc
  1352. * src/RequestGroup.cc
  1353. * src/RequestGroupMan.cc
  1354. * src/prefs.cc
  1355. * src/prefs.h
  1356. * src/usage_text.h
  1357. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1358. Fixed compiler waring
  1359. * test/UriListParserTest.cc
  1360. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1361. Parse options in -i list using OptionParser.
  1362. * src/UriListParser.cc
  1363. * src/UriListParser.h
  1364. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1365. Don't reset URI in retry to avoid additional round trips because
  1366. of redirects.
  1367. * src/AbstractCommand.cc
  1368. * src/OptionHandlerFactory.cc
  1369. * src/prefs.cc
  1370. * src/prefs.h
  1371. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1372. Declared hide() in OptionHandler.
  1373. * src/NameMatchOptionHandler.h
  1374. * src/OptionHandler.h
  1375. * src/OptionHandlerImpl.h
  1376. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1377. Updated doc
  1378. * src/Peer.h
  1379. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1380. Added log message in setStatusInternal()
  1381. * src/ServerStat.cc
  1382. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1383. Call ServerStat::setError() in AbstractCommand::onAbort() to
  1384. effectively exclude failed server.
  1385. * src/AbstractCommand.cc
  1386. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1387. Added --index-out option to specify each file path for torrent.
  1388. Here index shown in --show-files option is used to specify which
  1389. file path should be altered. For example, to change the file path
  1390. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  1391. option multiple times: --index-out=1=aria2.tar.bz2
  1392. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  1393. available. This option can be specified in -i list.
  1394. * src/DefaultBtContext.cc
  1395. * src/DefaultBtContext.h
  1396. * src/MultiDiskAdaptor.cc
  1397. * src/MultiDiskAdaptor.h
  1398. * src/MultiFileAllocationIterator.cc
  1399. * src/OptionHandlerFactory.cc
  1400. * src/OptionHandlerImpl.h
  1401. * src/Util.cc
  1402. * src/Util.h
  1403. * src/download_helper.cc
  1404. * src/prefs.cc
  1405. * src/prefs.h
  1406. * src/usage_text.h
  1407. * test/DefaultBtContextTest.cc
  1408. * test/MultiDiskAdaptorTest.cc
  1409. * test/MultiFileAllocationIteratorTest.cc
  1410. * test/UtilTest.cc
  1411. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1412. Use Util::pathJoin()
  1413. * src/MetalinkParserController.cc
  1414. * test/test.xml
  1415. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1416. Use Util::pathJoin()
  1417. * src/DefaultBtContext.cc
  1418. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1419. Added Util::pathJoin()
  1420. * src/Util.h
  1421. * test/UtilTest.cc
  1422. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1423. Applied basename function to remove directory element in
  1424. content-disposition value.
  1425. Return empty string if content-disposition value is ".." or ".".
  1426. * src/Util.cc
  1427. * test/UtilTest.cc
  1428. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1429. Added --max-overall-download-limit in man page.
  1430. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  1431. * doc/aria2c.1.txt
  1432. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1433. Added --max-overall-download-limit option. Now --max-upload-limit
  1434. option is not ignored when --max-overall-upload-limit option has
  1435. non-zero value. aria2 checks download(upload) speed in the order:
  1436. first checks overall speed limit and if it is not exceeded, then
  1437. checks speed limit per download. Thus you can specify both
  1438. value. For example, set --max-overall-download-limit=1M and
  1439. --max-download-limit=500K to prevent from one download from eating
  1440. all overall speed limit.
  1441. * src/DefaultBtInteractive.cc
  1442. * src/DefaultBtInteractive.h
  1443. * src/DefaultBtMessageDispatcher.cc
  1444. * src/DefaultBtMessageDispatcher.h
  1445. * src/DownloadCommand.cc
  1446. * src/DownloadCommand.h
  1447. * src/FtpNegotiationCommand.cc
  1448. * src/HttpResponseCommand.cc
  1449. * src/OptionHandlerFactory.cc
  1450. * src/PeerInteractionCommand.cc
  1451. * src/RequestGroup.cc
  1452. * src/RequestGroup.h
  1453. * src/RequestGroupMan.cc
  1454. * src/RequestGroupMan.h
  1455. * src/prefs.cc
  1456. * src/prefs.h
  1457. * src/usage_text.h
  1458. * test/DefaultBtMessageDispatcherTest.cc
  1459. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1460. Documented select-file option in Input File section.
  1461. Documented --http-auth-challenge option.
  1462. * doc/aria2c.1.txt
  1463. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1464. Now select-file can be specified in the uri list(-i list).
  1465. * src/BtContext.cc
  1466. * src/BtContext.h
  1467. * src/RequestGroup.cc
  1468. * src/Sequence.h
  1469. * src/download_helper.cc
  1470. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1471. Made the upper value of --max-concurrent-downloads options unlimited.
  1472. * src/OptionHandlerFactory.cc
  1473. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1474. Fixed the bug that disk writer is not created even if it shares
  1475. same piece with the preceding file if the length of previous file
  1476. is 0.
  1477. * src/MultiDiskAdaptor.cc
  1478. * test/MultiDiskAdaptorTest.cc
  1479. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1480. In BitTorrent, Open files in read-only mode for hash check. After
  1481. that, re-open file in read/write mode only when the download is
  1482. not finished.
  1483. * src/AbstractDiskWriter.cc
  1484. * src/AbstractDiskWriter.h
  1485. * src/AbstractSingleDiskAdaptor.cc
  1486. * src/AbstractSingleDiskAdaptor.h
  1487. * src/BtCheckIntegrityEntry.cc
  1488. * src/DiskAdaptor.h
  1489. * src/DiskWriter.h
  1490. * src/MultiDiskAdaptor.cc
  1491. * src/MultiDiskAdaptor.h
  1492. * src/RequestGroup.cc
  1493. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1494. Added --http-auth-challenge option. If it is set to true(by
  1495. default), aria2 sends HTTP authorization header only when it is
  1496. requested by the server. If false is set, then authorization
  1497. header is always sent to the server. This is useful for servers
  1498. that don't respond 401 code when authentication is required.
  1499. There is an exception: if username and password are embedded in
  1500. URI, authorization header is always sent to the server regardless
  1501. of this option.
  1502. * src/AuthConfigFactory.cc
  1503. * src/HttpSkipResponseCommand.cc
  1504. * src/OptionHandlerFactory.cc
  1505. * src/prefs.cc
  1506. * src/prefs.h
  1507. * src/usage_text.h
  1508. * test/AuthConfigFactoryTest.cc
  1509. * test/HttpRequestTest.cc
  1510. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1511. * Release 1.2.0
  1512. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1513. Updated Spanish, Ukrainian, Russian and Japanese translations.
  1514. Thanks to all translators.
  1515. * po/es.po
  1516. * po/ja.po
  1517. * po/ru.po
  1518. * po/uk.po
  1519. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1520. Call deleteSocketForReadCheck() before socket is closed.
  1521. * src/HttpListenCommand.cc
  1522. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1523. Defined virtual destructor for BObject.
  1524. * src/bencode.h
  1525. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1526. Rewritten BDE to make it efficient.
  1527. * src/bencode.cc
  1528. * src/bencode.h
  1529. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1530. Removed function throw list.
  1531. * src/bencode.cc
  1532. * src/bencode.h
  1533. * test/BencodeTest.cc
  1534. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1535. Enclosed all URLs in double quotes in command-line examples.
  1536. * doc/aria2c.1.txt
  1537. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1538. Updated reference/see also section.
  1539. * README
  1540. * doc/aria2c.1.txt
  1541. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1542. Reorganized man page based on man man-pages.
  1543. * doc/aria2c.1.txt
  1544. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1545. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  1546. because same documents are available in man page. Added
  1547. References section.
  1548. * README
  1549. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1550. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  1551. PERFORMANCE PROFILE section.
  1552. * doc/aria2c.1.txt
  1553. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1554. Rewritten the section for configuration file.
  1555. * README
  1556. * doc/aria2c.1.txt
  1557. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1558. Fixed the segmentation fault during execution of choking algorithm
  1559. in leecher state because of broken compare operator
  1560. implementation.
  1561. * src/BtLeecherStateChoke.cc
  1562. * src/BtLeecherStateChoke.h
  1563. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1564. Open file in binary mode.
  1565. * src/CookieStorage.cc
  1566. * src/DHTSetup.cc
  1567. * src/DHTUtil.cc
  1568. * src/Netrc.cc
  1569. * src/NsCookieParser.cc
  1570. * src/ProtocolDetector.cc
  1571. * src/RequestGroupMan.cc
  1572. * src/Signature.cc
  1573. * src/bencode.cc
  1574. * src/download_helper.cc
  1575. * src/option_processing.cc
  1576. * test/CookieParserTest.cc
  1577. * test/DefaultBtProgressInfoFileTest.cc
  1578. * test/FileTest.cc
  1579. * test/GZipDecoderTest.cc
  1580. * test/RequestGroupManTest.cc
  1581. * test/SignatureTest.cc
  1582. * test/SingleFileAllocationIteratorTest.cc
  1583. * test/UriListParserTest.cc
  1584. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1585. Removed operator[] because it is ambiguous with built-in []
  1586. operator.
  1587. * src/array_fun.h
  1588. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1589. Fixed compile error
  1590. * src/OptionParser.cc
  1591. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1592. Added missing call to arrayWrapperConst
  1593. * test/array_funTest.cc
  1594. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1595. Use array_wrapper instead of array_ptr.
  1596. * src/DHTRoutingTableDeserializer.cc
  1597. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1598. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  1599. * src/array_fun.h
  1600. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1601. Added array_wrapper template.
  1602. * src/array_fun.h
  1603. * test/array_funTest.cc
  1604. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1605. Use operator T* of array_ptr.
  1606. * src/OptionParser.cc
  1607. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1608. Use localhost instead of 127.0.0.1
  1609. * test/FtpConnectionTest.cc
  1610. * test/MSEHandshakeTest.cc
  1611. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1612. Added operator T*
  1613. * src/array_fun.h
  1614. * test/array_funTest.cc
  1615. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1616. Use dynamically allocated char array to detect memory access
  1617. violation.
  1618. * src/DHTRoutingTableDeserializer.cc
  1619. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1620. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  1621. defined.
  1622. * src/PeerMessageUtil.cc
  1623. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1624. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  1625. * configure.ac
  1626. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1627. Added a check to see struct sockaddr_in has sin_len member.
  1628. * configure.ac
  1629. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1630. Fixed buffer overrun.
  1631. * src/DHTRoutingTableDeserializer.cc
  1632. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1633. Added LL for long long int constant.
  1634. * test/FtpConnectionTest.cc
  1635. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1636. Casted to unsigned int to suppress compiler warning on netbsd.
  1637. * src/BtRuntime.h
  1638. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1639. Assign the value of tv.tv_sec to time_t timesec instead of giving
  1640. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  1641. type time_t.
  1642. * src/SimpleLogger.cc
  1643. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1644. Added test for FtpConnection::receiveSizeResponse().
  1645. * test/FtpConnectionTest.cc
  1646. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1647. Fix epoll error on the old kernel 2.6.8 or ealier.
  1648. * src/EpollEventPoll.cc
  1649. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1650. Use Util::parseLLInt instead of sscanf for portability. The
  1651. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  1652. * src/FtpConnection.cc
  1653. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1654. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  1655. block. It should not filter anything.
  1656. * src/BitfieldMan.cc
  1657. * src/ConsoleStatCalc.cc
  1658. * test/BitfieldManTest.cc
  1659. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1660. Fixed the bug that the boolean options that don't take arguments
  1661. don't work.
  1662. * src/OptionHandlerImpl.h
  1663. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1664. Fixed broken selected file BitTorrent download.
  1665. * src/MultiDiskAdaptor.cc
  1666. * test/MultiDiskAdaptorTest.cc
  1667. * test/MultiFileAllocationIteratorTest.cc
  1668. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1669. Fixed #define guard for EpollEventPoll
  1670. * src/EpollEventPoll.h
  1671. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1672. Wait 2 seconds. 1 second is sometimes not enough.
  1673. * test/TimeSeedCriteriaTest.cc
  1674. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1675. Use localhost instead of 127.0.0.1.
  1676. * test/DHTConnectionImplTest.cc
  1677. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1678. Suppressed compiler warning.
  1679. * src/AdaptiveURISelector.cc
  1680. * src/DefaultPieceStorage.cc
  1681. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1682. Defined virtual destructor.
  1683. * src/MetalinkParserState.h
  1684. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1685. Give NULL for second argument of getaddrinfo instead of "0".
  1686. * src/NameResolver.cc
  1687. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1688. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  1689. included strptime doesn't parse data for this format.
  1690. * src/FtpConnection.cc
  1691. * test/FtpConnectionTest.cc
  1692. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1693. Removed tests giving -1 for unsigned argument.
  1694. * test/SingleFileDownloadContextTest.cc
  1695. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1696. Don't use sha256 in tests because it might not be supported by the
  1697. SSL library.
  1698. * test/MetalinkProcessorTest.cc
  1699. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1700. Removed tests giving -1 for unsigned argument.
  1701. * test/AlphaNumberDecoratorTest
  1702. * test/BitfieldManTest.cc
  1703. * test/DefaultBtContextTest.cc
  1704. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1705. Fixed compile error without libcares when epoll is available.
  1706. * src/EpollEventPoll.cc
  1707. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1708. Included fstream instead of iostream.
  1709. * test/SignatureTest.cc
  1710. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1711. Removed #include <algorithm>
  1712. * test/RequestGroupTest.cc
  1713. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1714. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  1715. using RequestGroup::extractURIResult().
  1716. * src/AdaptiveURISelector.cc
  1717. * src/RequestGroup.cc
  1718. * src/RequestGroup.h
  1719. * test/RequestGroupTest.cc
  1720. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1721. Added tests for array_ptr.
  1722. * test/array_funTest.cc
  1723. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1724. Don't send ip parameter to a tracker if ip parameter is empty
  1725. string.
  1726. * src/DefaultBtAnnounce.cc
  1727. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1728. Adjusted line feed.
  1729. * src/version_usage.cc
  1730. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1731. Print tags, possible values when OptionHandlerException is caught.
  1732. * src/option_processing.cc
  1733. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1734. Changed the message for FatalException.
  1735. * src/OptionParser.cc
  1736. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1737. Documented --bt-external-ip option in man page. Updated man pages
  1738. for --proxy-method option.
  1739. * doc/aria2c.1.txt
  1740. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1741. Use GET method for FTP via HTTP proxy.
  1742. * src/FtpInitiateConnectionCommand.cc
  1743. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1744. Changed the default value of --proxy-method option from 'tunnel'
  1745. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  1746. option.
  1747. * src/AbstractCommand.cc
  1748. * src/AbstractCommand.h
  1749. * src/FtpInitiateConnectionCommand.cc
  1750. * src/HttpDownloadCommand.cc
  1751. * src/HttpInitiateConnectionCommand.cc
  1752. * src/HttpInitiateConnectionCommand.h
  1753. * src/OptionHandlerFactory.cc
  1754. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1755. Initialized _logger
  1756. * src/SelectEventPoll.cc
  1757. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1758. Defined a copy constructor for the same type.
  1759. * src/SharedHandle.h
  1760. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1761. Added OptionParser::parseArg() which internally uses getopt_long
  1762. to parse command-line options. All command-line options are now
  1763. configured by OptionHandler. No manual editing of struct option*
  1764. is required any more.
  1765. * src/NameMatchOptionHandler.h
  1766. * src/OptionHandler.h
  1767. * src/OptionHandlerFactory.cc
  1768. * src/OptionHandlerImpl.h
  1769. * src/OptionParser.cc
  1770. * src/OptionParser.h
  1771. * src/array_fun.h
  1772. * src/main.cc
  1773. * src/option_processing.cc
  1774. * test/OptionHandlerTest.cc
  1775. * test/OptionParserTest.cc
  1776. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1777. Fixed configure error with --disable-epoll
  1778. * configure.ac
  1779. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1780. Fixed compile error when HAVE_EPOLL is not defined.
  1781. Fixed linker error on bigendian systems.
  1782. * src/SocketCore.cc
  1783. * src/SocketCore.h
  1784. * test/DefaultBtProgressInfoFileTest.cc
  1785. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1786. Added --bt-external-ip option. You can specify the external IP
  1787. address to report to a BitTorrent tracker. Although this function
  1788. is named 'external', it can accept any kind of IP addresses.
  1789. * src/DefaultBtAnnounce.cc
  1790. * src/OptionHandlerFactory.cc
  1791. * src/option_processing.cc
  1792. * src/prefs.cc
  1793. * src/prefs.h
  1794. * src/usage_text.h
  1795. * test/DefaultBtAnnounceTest.cc
  1796. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1797. Extracted the algorithm to find the longest incremental sequence
  1798. as max_sequence template.
  1799. * src/LongestSequencePieceSelector.cc
  1800. * src/a2algo.h
  1801. * test/Makefile.am
  1802. * test/a2algoTest.cc
  1803. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1804. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  1805. * src/usage_text.h
  1806. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1807. Updated doc for --uri-selector, --http-server-listen-port and
  1808. --enable-http-server option. Documented --event-poll option.
  1809. * doc/aria2c.1.txt
  1810. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1811. Updated doc for --enable-http-server.
  1812. * src/usage_text.h
  1813. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1814. Documented --http-server-listen-port and --enable-http-server in
  1815. man page.
  1816. * doc/aria2c.1.txt
  1817. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1818. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  1819. translations. Thanks to all translators.
  1820. * po/es.po
  1821. * po/id.po
  1822. * po/it.po
  1823. * po/ru.po
  1824. * po/uk.po
  1825. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1826. Bump up version number to 1.2.0
  1827. * configure.ac
  1828. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1829. BtContext::getAnnounceTiers() now returns const reference.
  1830. * src/BtContext.h
  1831. * src/DefaultBtContext.cc
  1832. * src/DefaultBtContext.h
  1833. * test/MockBtContext.h
  1834. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1835. Change the number of retries for tracker request based on the
  1836. number of available tracker in a torrent file.
  1837. * src/TrackerWatcherCommand.cc
  1838. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1839. Added _maxTries property to RequestGroup and assign the option
  1840. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  1841. RequestGroup::getMaxTries() instead of
  1842. Option::getAsInt(PREF_MAX_TRIES).
  1843. * src/AbstractCommand.cc
  1844. * src/RequestGroup.cc
  1845. * src/RequestGroup.h
  1846. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1847. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  1848. Mandriva. I modified the patch: make RequestGroup have the
  1849. timeout value and AdaptiveURISelector directly modifies that
  1850. value.
  1851. * src/AbstractCommand.cc
  1852. * src/AdaptiveURISelector.cc
  1853. * src/AdaptiveURISelector.h
  1854. * src/FtpNegotiationCommand.cc
  1855. * src/RequestGroup.cc
  1856. * src/RequestGroup.h
  1857. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1858. Fixed compiler warning
  1859. * test/IteratableChecksumValidatorTest.cc
  1860. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1861. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  1862. integrated downloads. This PieceSelector subclass finds the
  1863. longest continuous sequence in the available missing pieces and
  1864. selects the last index of such sequence. This makes HTTP/FTP
  1865. connections less interrupted by the pieces obtained by BitTorrent
  1866. peers.
  1867. * src/DefaultPieceStorage.cc
  1868. * src/DefaultPieceStorage.h
  1869. * src/LongestSequencePieceSelector.cc
  1870. * src/LongestSequencePieceSelector.h
  1871. * src/Makefile.am
  1872. * src/PieceSelector.h
  1873. * src/RarestPieceSelector.h
  1874. * src/RequestGroup.cc
  1875. * test/BtDependencyTest.cc
  1876. * test/DefaultPieceStorageTest.cc
  1877. * test/IteratableChecksumValidatorTest.cc
  1878. * test/LongestSequencePieceSelectorTest.cc
  1879. * test/Makefile.am
  1880. * test/SegmentManTest.cc
  1881. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1882. Fixed the bug that the average speed is wrong in
  1883. http/ftp/BitTorrent integrated download. Only the download bytes
  1884. in BitTorrent were considered.
  1885. * src/RequestGroup.cc
  1886. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1887. Choose port for BitTorrent/DHT randomly from the specified range.
  1888. * src/DHTConnectionImpl.cc
  1889. * src/PeerListenCommand.cc
  1890. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1891. Send HTTP Authorization header only if it is requested by the
  1892. server(response 401). There are some exceptions. The authorization
  1893. header for proxy is always sent if it is available without request
  1894. by the server. If username/password is specified in the URI, it
  1895. is immediately sent to the server without request by the server.
  1896. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  1897. SharedHandle<AuthConfig>().
  1898. NetrcAuthResolver::resolveAuthConfig() returns
  1899. SharedHandle<AuthConfig>() if no AuthConfig is available.
  1900. * src/AbstractAuthResolver.cc
  1901. * src/AbstractProxyRequestCommand.cc
  1902. * src/AuthConfigFactory.cc
  1903. * src/AuthConfigFactory.h
  1904. * src/HttpConnection.cc
  1905. * src/HttpRequest.cc
  1906. * src/HttpRequest.h
  1907. * src/HttpResponse.cc
  1908. * src/HttpResponseCommand.cc
  1909. * src/HttpSkipResponseCommand.cc
  1910. * test/AuthConfigFactoryTest.cc
  1911. * test/HttpRequestTest.cc
  1912. * test/HttpResponseTest.cc
  1913. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1914. Remove leading "--" from help keyword and a substring after "="
  1915. from help keyword, so that one can query options by '-h--max-' or
  1916. '-hmax-peers=10'.
  1917. * src/option_processing.cc
  1918. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1919. Rewritten PStringVisitor and its implementation.
  1920. * src/PStringBuildVisitor.cc
  1921. * src/PStringBuildVisitor.h
  1922. * src/PStringDatum.h
  1923. * src/PStringNumLoop.h
  1924. * src/PStringSegment.cc
  1925. * src/PStringSegment.h
  1926. * src/PStringSelect.h
  1927. * src/PStringVisitor.h
  1928. * src/download_helper.cc
  1929. * test/PStringBuildVisitorTest.cc
  1930. * test/ParameterizedStringParserTest.cc
  1931. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1932. Persist connection between the built-in HTTP server and a client
  1933. if a client supports keep-alive. Fixed the bug that aria2 exits
  1934. when the HTTP server receives EOF from a client.
  1935. * src/HttpServer.cc
  1936. * src/HttpServer.h
  1937. * src/HttpServerCommand.cc
  1938. * src/HttpServerCommand.h
  1939. * src/HttpServerResponseCommand.cc
  1940. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1941. Added experimental built-in HTTP server. Currently, when a client
  1942. accesses to the server, it responds with the current download
  1943. progress. By default, it is disabled. To enable the server, give
  1944. --enable-http-server option. To change the default port number
  1945. for the server to listen to, use --http-server-listen-port option.
  1946. The response HTML is very simple and refreshes it self each 1
  1947. second. Because of this refresh, you see flicker in normal web
  1948. browser such as Firefox. I recommend to use console-based browser
  1949. such as elinks, w3m. To connect to the server, run 'elinks
  1950. http://localhost:6800/' while running aria2. Please replace port
  1951. number '6800'(which is default) with your preference.
  1952. * src/DownloadEngineFactory.cc
  1953. * src/HttpHeader.cc
  1954. * src/HttpHeader.h
  1955. * src/HttpHeaderProcessor.cc
  1956. * src/HttpHeaderProcessor.h
  1957. * src/HttpListenCommand.cc
  1958. * src/HttpListenCommand.h
  1959. * src/HttpServer.cc
  1960. * src/HttpServer.h
  1961. * src/HttpServerCommand.cc
  1962. * src/HttpServerCommand.h
  1963. * src/HttpServerResponseCommand.cc
  1964. * src/HttpServerResponseCommand.h
  1965. * src/Makefile.am
  1966. * src/OptionHandlerFactory.cc
  1967. * src/Util.cc
  1968. * src/Util.h
  1969. * src/help_tags.h
  1970. * src/option_processing.cc
  1971. * src/prefs.cc
  1972. * src/prefs.h
  1973. * src/usage_text.h
  1974. * test/HttpHeaderProcessorTest.cc
  1975. * test/UtilTest.cc
  1976. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1977. Removed.
  1978. * src/CheckIntegrityMan.cc
  1979. * src/FileAllocationMan.cc
  1980. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1981. Made (piece) hash check sequential for each RequestGroup because
  1982. simultaneous hash check is slower than sequential execution.
  1983. * src/CheckIntegrityCommand.cc
  1984. * src/CheckIntegrityDispatcherCommand.cc
  1985. * src/CheckIntegrityDispatcherCommand.h
  1986. * src/CheckIntegrityMan.h
  1987. * src/ConsoleStatCalc.cc
  1988. * src/DownloadCommand.cc
  1989. * src/DownloadEngine.cc
  1990. * src/DownloadEngine.h
  1991. * src/DownloadEngineFactory.cc
  1992. * src/Makefile.am
  1993. * src/Makefile.in
  1994. * src/RequestGroup.cc
  1995. * src/StatCalc.h
  1996. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1997. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  1998. SequentialDispatcherCommand.
  1999. * src/FileAllocationDispatcherCommand.cc
  2000. * src/SequentialDispatcherCommand.h
  2001. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2002. Rewritten FileAllocationDispatcherCommand using brand new
  2003. SequentialDispatcherCommand.
  2004. * src/DownloadEngineFactory.cc
  2005. * src/FileAllocationCommand.cc
  2006. * src/FileAllocationDispatcherCommand.cc
  2007. * src/FileAllocationDispatcherCommand.h
  2008. * src/Makefile.am
  2009. * src/SequentialDispatcherCommand.h
  2010. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2011. Replaced FileAllocationMan with
  2012. SequentialPicker<FileAllocationEntry>.
  2013. * src/BtCheckIntegrityEntry.cc
  2014. * src/ConsoleStatCalc.cc
  2015. * src/DownloadEngine.cc
  2016. * src/DownloadEngine.h
  2017. * src/DownloadEngineFactory.cc
  2018. * src/FileAllocationCommand.cc
  2019. * src/FileAllocationDispatcherCommand.cc
  2020. * src/FileAllocationMan.h
  2021. * src/Makefile.am
  2022. * src/SequentialPicker.h
  2023. * src/StatCalc.h
  2024. * src/StreamCheckIntegrityEntry.cc
  2025. * test/Makefile.am
  2026. * test/SequentialPickerTest.cc
  2027. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2028. Added doc for adaptive URI selector.
  2029. * doc/aria2c.1.txt
  2030. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2031. Added doc for adaptive URI selector.
  2032. * src/usage_text.h
  2033. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2034. Added doc for --bt-max-peers option.
  2035. * doc/aria2c.1.txt
  2036. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2037. Added doc for --bt-hash-check-seed option.
  2038. * doc/aria2c.1.txt
  2039. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2040. Documented exit codes.
  2041. * doc/aria2c.1.txt
  2042. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2043. Added --bt-max-peers option to specify the maximum number of peers
  2044. per torrent. 0 means unlimited number of peers.
  2045. * src/ActivePeerConnectionCommand.cc
  2046. * src/BtRuntime.h
  2047. * src/DefaultPeerStorage.cc
  2048. * src/DefaultPeerStorage.h
  2049. * src/OptionHandlerFactory.cc
  2050. * src/RequestGroup.cc
  2051. * src/option_processing.cc
  2052. * src/prefs.cc
  2053. * src/prefs.h
  2054. * src/usage_text.h
  2055. * test/DefaultPeerStorageTest.cc
  2056. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2057. Added --bt-hash-check-seed option. If true is given to this
  2058. option, after hash check using --check-integrity option and file
  2059. is complete, continue to seed file. If you want to check file and
  2060. download it only when it is damaged or incomplete, set this option
  2061. to false. This option has effect only on BitTorrent download.
  2062. The default value is true(This is the same behavior with the
  2063. previous release).
  2064. * src/BtCheckIntegrityEntry.cc
  2065. * src/OptionHandlerFactory.cc
  2066. * src/option_processing.cc
  2067. * src/prefs.cc
  2068. * src/prefs.h
  2069. * src/usage_text.h
  2070. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2071. Updated copyright year.
  2072. * src/version_usage.cc
  2073. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2074. Rewritten the usage text for --bt-request-peer-speed-limit option.
  2075. * doc/aria2c.1.txt
  2076. * src/usage_text.h
  2077. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2078. Made the max value of split option unlimited.
  2079. * doc/aria2c.1.txt
  2080. * src/OptionHandlerFactory.cc
  2081. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2082. Fixed compile warning/error.
  2083. * src/DownloadResult.h
  2084. * src/HttpDownloadCommand.cc
  2085. * src/ServerStat.cc
  2086. * test/RequestGroupTest.cc
  2087. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2088. Added --event-poll option to select the method for polling events.
  2089. The available methods are "select" and "epoll". "epoll" is
  2090. available on Linux only. The earlier release has the compile
  2091. option to choose from these methods.
  2092. * configure.ac
  2093. * src/RequestGroupMan.cc
  2094. * src/OptionHandlerFactory.cc
  2095. * src/EpollEventPoll.h
  2096. * src/StreamFileAllocationEntry.cc
  2097. * src/a2io.h
  2098. * src/SelectEventPoll.h
  2099. * src/option_processing.cc
  2100. * src/prefs.h
  2101. * src/EpollEventPoll.cc
  2102. * src/EventPoll.h
  2103. * src/SocketCore.h
  2104. * src/Makefile.am
  2105. * src/main.cc
  2106. * src/DownloadEngine.h
  2107. * src/SelectEventPoll.cc
  2108. * src/DownloadEngine.cc
  2109. * src/SocketCore.cc
  2110. * src/DownloadEngineFactory.cc
  2111. * src/Makefile.in
  2112. * src/prefs.cc
  2113. * src/usage_text.h
  2114. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2115. Included RecoverableException.h from main.cc
  2116. * src/main.cc
  2117. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2118. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  2119. now returns last error encountered in the HTTP/FTP downloads as a
  2120. exit status value. If all downloads finished successfully, aria2
  2121. returns 0. The error code is defined in src/DownloadResult.h.
  2122. The error occurred in the download currently in progress is not
  2123. reported as a last error. If no error has encountered but there
  2124. are in progress or waiting downloads, aria2 returns 7.
  2125. * src/AbstractCommand.cc
  2126. * src/DlAbortEx.h
  2127. * src/DlRetryEx.h
  2128. * src/DownloadCommand.cc
  2129. * src/DownloadFailureException.h
  2130. * src/DownloadResult.h
  2131. * src/FtpNegotiationCommand.cc
  2132. * src/HttpSkipResponseCommand.cc
  2133. * src/Makefile.am
  2134. * src/MultiUrlRequestInfo.cc
  2135. * src/MultiUrlRequestInfo.h
  2136. * src/RecoverableException.h
  2137. * src/RequestGroup.cc
  2138. * src/RequestGroup.h
  2139. * src/RequestGroupMan.cc
  2140. * src/RequestGroupMan.h
  2141. * src/URIResult.cc
  2142. * src/URIResult.h
  2143. * src/main.cc
  2144. * src/option_processing.cc
  2145. * test/RequestGroupTest.cc
  2146. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2147. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  2148. patch adds AdaptiveURISelector, which selects one of the bests
  2149. mirrors for first and reserved connections. For supplementary
  2150. ones, it returns mirrors which has not been tested yet, and if
  2151. each of them already tested, returns mirrors which has to be
  2152. tested again. Otherwise, it doesn't return anymore mirrors.
  2153. * src/AdaptiveURISelector.cc
  2154. * src/AdaptiveURISelector.h
  2155. * src/FtpNegotiationCommand.cc
  2156. * src/HttpResponseCommand.cc
  2157. * src/Makefile.am
  2158. * src/Makefile.in
  2159. * src/OptionHandlerFactory.cc
  2160. * src/RequestGroup.cc
  2161. * src/RequestGroup.h
  2162. * src/RequestGroupMan.cc
  2163. * src/ServerStat.cc
  2164. * src/ServerStat.h
  2165. * src/ServerStatMan.cc
  2166. * src/SpeedCalc.cc
  2167. * src/URISelector.h
  2168. * src/prefs.cc
  2169. * src/prefs.h
  2170. * test/RequestGroupManTest.cc
  2171. * test/ServerStatManTest.cc
  2172. * test/ServerStatTest.cc
  2173. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2174. Fixed unit test error.
  2175. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  2176. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2177. * Release 1.1.2
  2178. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2179. Updated Russian translation. Thanks to the translators.
  2180. * po/ru.po
  2181. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2182. Added the description of --use-head option to man page.
  2183. * doc/aria2c.1.txt
  2184. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2185. Bump up version number to 1.1.2
  2186. * configure.ac
  2187. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2188. Added --use-head option to toggle whether HEAD method should be
  2189. used in the first HTTP request. By default aria2 uses HEAD method
  2190. as the first request. When the server doesn't recognize HEAD, then
  2191. give aria2 --use-head=false to force aria2 to use GET method
  2192. instead.
  2193. * src/OptionHandlerFactory.cc
  2194. * src/RequestGroupMan.cc
  2195. * src/option_processing.cc
  2196. * src/prefs.cc
  2197. * src/prefs.h
  2198. * src/usage_text.h
  2199. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2200. Fixed the bug that BitTorrent download doesn't finish when REJECT
  2201. message is received before CHOKE message. The old implementation
  2202. doen't clear the use-bit of the piece when recieved REJECT
  2203. message.
  2204. * src/DefaultBtMessageDispatcher.cc
  2205. * test/DefaultBtMessageDispatcherTest.cc
  2206. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2207. * Release 1.1.1
  2208. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2209. Bump up version number to 1.1.1.
  2210. * configure.ac
  2211. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2212. Fixed the bug that --summary-interval=0 doesn't work. The summary
  2213. is printed repeatedly.
  2214. * src/ConsoleStatCalc.cc
  2215. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2216. * Release 1.1.0
  2217. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2218. Added ifdef clause for conditional compilation.
  2219. * src/main.cc
  2220. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2221. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  2222. translations. Thanks to all translators.
  2223. * po/ja.po
  2224. * po/ru.po
  2225. * po/uk.po
  2226. * po/zh_CN.po
  2227. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2228. Added the preceding ">>> " before the message "Printing the
  2229. contents of file..." to make the output more readable.
  2230. * src/main.cc
  2231. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2232. Added try-catch block in the loop in showFiles() to continue the
  2233. operation even if the exception occurred in one file.
  2234. * src/main.cc (showFiles)
  2235. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2236. Made messages in showFiles() translatable.
  2237. * po/aria2.pot
  2238. * src/main.cc
  2239. * src/message.h
  2240. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2241. Print the contents of Torrent/Metalink files are printed without
  2242. -T/-M options.
  2243. * src/main.cc
  2244. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2245. Escaped '--' with '\--'
  2246. * README
  2247. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2248. Updated "How to build" section in README. Mentioned about
  2249. --with-ca-bundle compile option.
  2250. * README
  2251. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2252. Bump up version number to 1.1.0.
  2253. * configure.ac
  2254. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2255. Added a note for --dht-listen-port option.
  2256. * doc/aria2c.1.txt
  2257. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2258. Update doc for --realtime-chunk-checksum option.
  2259. * doc/aria2c.1.txt
  2260. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2261. Update doc for --realtime-chunk-checksum option.
  2262. * src/usage_text.h
  2263. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2264. Updated French, Japanese, Russian and Ukrainian translations.
  2265. Thanks to all translators.
  2266. * po/fr.po
  2267. * po/ja.po
  2268. * po/ru.po
  2269. * po/uk.po
  2270. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2271. Renamed aria2c.pot to aria2.pot
  2272. * po/aria2.pot
  2273. * po/aria2c.pot: Removed.
  2274. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2275. Removed MetaEntry.h
  2276. * src/Makefile.am
  2277. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2278. Rename file by appending digits if a local file exists and its
  2279. file size is larger than that of remote file with --continue
  2280. option. The old implementation just throws exception in such case.
  2281. * src/RequestGroup.cc
  2282. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2283. Fixed the bug that download progress summary is not printed in the
  2284. interval specified by the option.
  2285. * src/ConsoleStatCalc.cc
  2286. * src/ConsoleStatCalc.h
  2287. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2288. Fixed compiler warning
  2289. * src/Cookie.cc
  2290. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2291. Fixed the cookie implementation based on RFC2965.
  2292. Now if a value in domain field is not started with dot, then
  2293. prepend dot. That means a cookie with domain=sf.net is sent to
  2294. wiki.sf.net.
  2295. * src/Cookie.cc
  2296. * test/CookieParserTest.cc
  2297. * test/CookieStorageTest.cc
  2298. * test/CookieTest.cc
  2299. * test/NsCookieParserTest.cc
  2300. * test/Sqlite3MozCookieParserTest.cc
  2301. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2302. Fixed the bug that causes corrupted downloads if HTTP pipelining
  2303. is enabled and the server doesn't support keep-alive.
  2304. * src/AbstractCommand.cc
  2305. * src/DownloadCommand.cc
  2306. * src/HttpDownloadCommand.cc
  2307. * src/HttpDownloadCommand.h
  2308. * src/HttpResponseCommand.cc
  2309. * src/Request.cc
  2310. * src/Request.h
  2311. * test/RequestTest.cc
  2312. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2313. Removed Dictionary/List/Data and its related classes.
  2314. * src/BencodeVisitor.cc: Removed.
  2315. * src/BencodeVisitor.h: Removed.
  2316. * src/Data.cc: Removed.
  2317. * src/Data.h: Removed.
  2318. * src/Dictionary.cc: Removed.
  2319. * src/Dictionary.h: Removed.
  2320. * src/List.cc: Removed.
  2321. * src/List.h: Removed.
  2322. * src/Makefile.am
  2323. * src/MetaEntry.h: Removed.
  2324. * src/MetaEntryVisitor.h: Removed.
  2325. * src/MetaFileUtil.cc: Removed.
  2326. * src/MetaFileUtil.h: Removed.
  2327. * test/BencodeVisitorTest.cc: Removed.
  2328. * test/DataTest.cc: Removed.
  2329. * test/DictionaryTest.cc: Removed.
  2330. * test/ListTest.cc: Removed.
  2331. * test/Makefile.am
  2332. * test/MetaFileUtilTest.cc: Removed.
  2333. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2334. Removed include of MetaEntry.h
  2335. * test/DHTMessageTrackerEntryTest.cc
  2336. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2337. Use BDE instead of Dictionary/List/Data.
  2338. * src/AnnounceList.cc
  2339. * src/AnnounceList.h
  2340. * test/AnnounceListTest.cc
  2341. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2342. Use BDE instead of Dictionary/List/Data.
  2343. * src/DHTAbstractMessage.cc
  2344. * src/DHTAbstractMessage.h
  2345. * src/DHTAnnouncePeerMessage.cc
  2346. * src/DHTAnnouncePeerMessage.h
  2347. * src/DHTAnnouncePeerReplyMessage.cc
  2348. * src/DHTAnnouncePeerReplyMessage.h
  2349. * src/DHTFindNodeMessage.cc
  2350. * src/DHTFindNodeMessage.h
  2351. * src/DHTFindNodeReplyMessage.cc
  2352. * src/DHTFindNodeReplyMessage.h
  2353. * src/DHTGetPeersMessage.cc
  2354. * src/DHTGetPeersMessage.h
  2355. * src/DHTGetPeersReplyMessage.cc
  2356. * src/DHTGetPeersReplyMessage.h
  2357. * src/DHTMessageFactory.h
  2358. * src/DHTMessageFactoryImpl.cc
  2359. * src/DHTMessageFactoryImpl.h
  2360. * src/DHTMessageReceiver.cc
  2361. * src/DHTMessageTracker.cc
  2362. * src/DHTMessageTracker.h
  2363. * src/DHTPingMessage.cc
  2364. * src/DHTPingMessage.h
  2365. * src/DHTPingReplyMessage.cc
  2366. * src/DHTPingReplyMessage.h
  2367. * src/DHTQueryMessage.cc
  2368. * src/DHTQueryMessage.h
  2369. * src/DHTResponseMessage.cc
  2370. * src/DHTResponseMessage.h
  2371. * test/DHTAnnouncePeerMessageTest.cc
  2372. * test/DHTAnnouncePeerReplyMessageTest.cc
  2373. * test/DHTFindNodeMessageTest.cc
  2374. * test/DHTFindNodeReplyMessageTest.cc
  2375. * test/DHTGetPeersMessageTest.cc
  2376. * test/DHTGetPeersReplyMessageTest.cc
  2377. * test/DHTMessageFactoryImplTest.cc
  2378. * test/DHTMessageTrackerTest.cc
  2379. * test/DHTPingMessageTest.cc
  2380. * test/DHTPingReplyMessageTest.cc
  2381. * test/MockDHTMessageFactory.h
  2382. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2383. Added tests the case where length < 0 is specified.
  2384. * test/BencodeTest.cc
  2385. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2386. Fixed memory leak in decoderawstring()
  2387. * src/bencode.cc
  2388. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2389. Added missing #ifdef guard. Added uc() function for String and
  2390. removeKey() for Dict.
  2391. * src/bencode.cc
  2392. * src/bencode.h
  2393. * test/BencodeTest.cc
  2394. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2395. Use BDE instead of Dictionary/List/Data.
  2396. * src/HandshakeExtensionMessage.cc
  2397. * src/HandshakeExtensionMessage.h
  2398. * test/HandshakeExtensionMessageTest.cc
  2399. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2400. Added --max-overall-upload-limit option. This option limits the
  2401. overall upload speed. Stated in help message that the existing
  2402. --max-upload-limit option limits the upload speed per each
  2403. torrent. Man page is also updated.
  2404. * doc/aria2c.1.txt
  2405. * src/DefaultBtMessageDispatcher.cc
  2406. * src/DefaultBtMessageDispatcher.h
  2407. * src/OptionHandlerFactory.cc
  2408. * src/PeerInteractionCommand.cc
  2409. * src/option_processing.cc
  2410. * src/prefs.cc
  2411. * src/prefs.h
  2412. * src/usage_text.h
  2413. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2414. Use BDE instead of Dictionary/List/Data classes.
  2415. * src/CompactPeerListProcessor.cc
  2416. * src/CompactPeerListProcessor.h
  2417. * src/DefaultBtAnnounce.cc
  2418. * src/DefaultBtContext.cc
  2419. * src/DefaultBtContext.h
  2420. * src/DefaultPeerListProcessor.cc
  2421. * src/DefaultPeerListProcessor.h
  2422. * src/DelegatingPeerListProcessor.cc
  2423. * src/DelegatingPeerListProcessor.h
  2424. * src/PeerListProcessor.h
  2425. * src/UTPexExtensionMessage.cc
  2426. * src/Util.h
  2427. * src/message.h
  2428. * test/DefaultBtContextTest.cc
  2429. * test/DefaultPeerListProcessorTest.cc
  2430. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2431. Added bencode helper functions and BDE class.
  2432. They will replace MetaFileUtil and Dictionary/List/Data classes.
  2433. * src/Makefile.am
  2434. * src/bencode.cc
  2435. * src/bencode.h
  2436. * test/BencodeTest.cc
  2437. * test/Makefile.am
  2438. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2439. Fixed the bug that bad URI is sent to the tracker when the announe
  2440. URI in torrent file includes query.
  2441. * src/DefaultBtAnnounce.cc
  2442. * test/DefaultBtAnnounceTest.cc
  2443. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2444. Added Option::blank().
  2445. Use !Option::blank(name) instead of Option::defined(name) for
  2446. the options that take filename.
  2447. * src/MultiUrlRequestInfo.cc
  2448. * src/Option.cc
  2449. * src/Option.h
  2450. * src/main.cc
  2451. * src/option_processing.cc
  2452. * test/OptionTest.cc
  2453. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2454. Documented the default value of --check-certificate option in man
  2455. page.
  2456. * doc/aria2c.1.txt
  2457. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2458. Enabled --check-certificate by default. Added compile
  2459. time(configure) option --with-ca-bundle to specify CA bundle.
  2460. Warn if --check-certificate=true and --ca-certificate is not
  2461. specified or loading CA certificate is failed.
  2462. * configure.ac
  2463. * src/MultiUrlRequestInfo.cc
  2464. * src/OptionHandlerFactory.cc
  2465. * src/message.h
  2466. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2467. Mentioned https tag in help option.
  2468. * doc/aria2c.1.txt
  2469. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2470. Added `https' tag to help option category. Added https tag to
  2471. --ca-certificate, --certificate, --check-certificate and
  2472. --private-key option.
  2473. * src/OptionHandlerFactory.cc
  2474. * src/help_tags.h
  2475. * src/option_processing.cc
  2476. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2477. Changed the package name from `aria2c' to `aria2' in order to fix
  2478. the packaging issue in Debian and Fedora. The name of the
  2479. executable is not changed.
  2480. * configure.ac
  2481. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2482. Fixed typos
  2483. * src/usage_text.h
  2484. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2485. Fixed typos and updated doc.
  2486. * README
  2487. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2488. Fixed typos
  2489. * doc/aria2c.1.txt
  2490. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2491. Fixed typos
  2492. * src/usage_text.h
  2493. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2494. Print a message when no files to download.
  2495. * src/download_helper.cc
  2496. * src/main.cc
  2497. * src/message.h
  2498. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2499. RFC3986 complied Percent-Encoding(urlencode).
  2500. Use uppercase hexadecimal digits for encoded text instead of lowercase
  2501. ones.
  2502. * src/Request.cc
  2503. * src/Util.cc
  2504. * src/Util.h
  2505. * test/BtHandshakeMessageTest.cc
  2506. * test/DefaultBtAnnounceTest.cc
  2507. * test/DefaultBtContextTest.cc
  2508. * test/RequestTest.cc
  2509. * test/UtilTest.cc
  2510. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2511. Fixed the bug that prevents aria2 from downloading 0-length files
  2512. via HTTP/FTP.
  2513. * src/DefaultBtContext.cc
  2514. * src/DefaultBtContext.h
  2515. * src/DownloadContext.h
  2516. * src/FtpNegotiationCommand.cc
  2517. * src/HttpResponseCommand.cc
  2518. * src/HttpResponseCommand.h
  2519. * src/RequestGroup.cc
  2520. * src/SingleFileDownloadContext.cc
  2521. * src/SingleFileDownloadContext.h
  2522. * test/BtPostDownloadHandlerTest.cc
  2523. * test/MetalinkPostDownloadHandlerTest.cc
  2524. * test/MockBtContext.h
  2525. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2526. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  2527. * src/option_processing.cc
  2528. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2529. Applied aria2-1.0.1-mingw.patch.
  2530. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  2531. mingw.
  2532. Collected 4th and 5th argument types for getsockopt and setsockopt.
  2533. * src/SocketCore.cc
  2534. * src/a2netcompat.h
  2535. * test/SocketCoreTest.cc
  2536. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2537. * Release 1.0.1
  2538. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2539. Updated Ukrainian and Norwegian Nynorsk translations.
  2540. Thanks to all translators.
  2541. * po/nn.po
  2542. * po/uk.po
  2543. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2544. Don't show download result when -S option is used.
  2545. * src/main.cc
  2546. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2547. Bump up version number to 1.0.1
  2548. * configure.ac
  2549. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2550. Closed files after the test cases in MultiDiskWriterTest::
  2551. testResetDiskWriterEntries(). This will fix the unit test error
  2552. in mingw32 build.
  2553. * test/MultiDiskWriterTest.cc
  2554. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2555. Use HEAD method to get file size from HTTP server for segmented
  2556. downloading.
  2557. The request to the BitTorrent Tracker always uses GET method because
  2558. the response of the tracker is small and it doesn't need segmented
  2559. download.
  2560. * src/FtpNegotiationCommand.cc
  2561. * src/HttpRequest.cc
  2562. * src/HttpResponseCommand.cc
  2563. * src/HttpSkipResponseCommand.cc
  2564. * src/RequestGroup.cc
  2565. * src/RequestGroup.h
  2566. * src/TrackerWatcherCommand.cc
  2567. * test/HttpRequestTest.cc
  2568. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2569. Fixed the bug that causes floating exception when -T option is used and
  2570. no URIs are given.
  2571. * src/download_helper.cc
  2572. * test/DownloadHelperTest.cc
  2573. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  2574. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  2575. errors in MinGW:
  2576. Closed file after saving server stats (RequestGroupMan.cc)
  2577. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  2578. Ignored case & handled 2-digit years (strptime.c)
  2579. Added missing suseconds_t definition (a2time.h)
  2580. Fixed socket CLOSE() define (SocketCore.cc)
  2581. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  2582. Changed utime() test values from x000 to x00000 as MinGW failed on
  2583. values less than timezone offset from Unix epoch
  2584. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  2585. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  2586. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  2587. handle negative dates (CookieParserTest.cc)
  2588. * src/a2time.h
  2589. * src/FtpConnection.cc
  2590. * src/RequestGroupMan.cc
  2591. * src/SocketCore.cc
  2592. * src/strptime.c
  2593. * test/CookieParserTest.cc
  2594. * test/CopyDiskAdaptorTest.cc
  2595. * test/FileTest.cc
  2596. * test/FtpConnectionTest.cc
  2597. * test/MultiDiskAdaptorTest.cc
  2598. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2599. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  2600. * doc/aria2c.1.txt
  2601. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2602. * Release 1.0.0
  2603. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2604. Added '~' to reserved characters.
  2605. * src/Util.cc
  2606. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2607. Do not urlencode Request::url in setUrl() because we want unmodified
  2608. URL using Request::getUrl()
  2609. * src/Request.cc
  2610. * src/Request.h
  2611. * test/RequestTest.cc
  2612. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2613. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  2614. Thanks to all translators.
  2615. * po/bg.po
  2616. * po/fr.po
  2617. * po/ja.po
  2618. * po/ru.po
  2619. * po/uk.po
  2620. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2621. Bump up version number to 1.0.0
  2622. * configure.ac
  2623. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2624. Added nosqlite3 build to build_test.sh.
  2625. Renamed noxml as expat.
  2626. * build_test.sh
  2627. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2628. Updated INPUT FILE section.
  2629. * doc/aria2c.1.txt
  2630. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2631. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  2632. on big endian systems because test .aria2 files are made for little
  2633. endian systems.
  2634. * test/DefaultBtProgressInfoFileTest.cc
  2635. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2636. Dropped ares support.
  2637. * README
  2638. * configure.ac
  2639. * m4/libares.m4: Removed.
  2640. * src/AsyncNameResolver.cc
  2641. * src/Makefile.am
  2642. * test/Makefile.am
  2643. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2644. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  2645. Removed const qualifier from DiskWriter::size().
  2646. * src/AbstractDiskWriter.cc
  2647. * src/AbstractDiskWriter.h
  2648. * src/ByteArrayDiskWriter.cc
  2649. * src/ByteArrayDiskWriter.h
  2650. * src/DiskWriter.h
  2651. * test/ByteArrayDiskWriterTest.cc
  2652. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2653. Fixed the bug that causes segmentation fault/bus error during executing
  2654. choking algorithm while seeding. This is caused by improper
  2655. implementation of compare function which returns inconsistent results
  2656. depending on the timing of last unchoke.
  2657. * src/BtSeederStateChoke.cc
  2658. * src/BtSeederStateChoke.h
  2659. * src/DefaultPeerStorage.cc
  2660. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2661. Removed TODO
  2662. * TODO
  2663. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2664. Added a section that explains how to pass argument to options that
  2665. takes optional arguments with its short form.
  2666. * doc/aria2c.1.txt
  2667. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2668. Added -u for the short form of --max-upload-limit option.
  2669. * doc/aria2c.1.txt
  2670. * src/option_processing.cc
  2671. * src/usage_text.h
  2672. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2673. Added -V for the short form of --check-integrity option.
  2674. Now the argument of --check-integrity option is optional:
  2675. if it is omitted, it is evaluated as true.
  2676. * doc/aria2c.1.txt
  2677. * src/option_processing.cc
  2678. * src/usage_text.h
  2679. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2680. Made the default value of --ftp-pasv option set to true and it can take
  2681. true/false values.
  2682. * src/OptionHandlerFactory.cc
  2683. * src/option_processing.cc
  2684. * src/usage_text.h
  2685. * doc/aria2c.1.txt
  2686. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2687. Given custom random number generator to std::random_shuffle.
  2688. * src/AnnounceList.cc
  2689. * src/BtLeecherStateChoke.cc
  2690. * src/BtSeederStateChoke.cc
  2691. * src/DefaultBtRequestFactory.cc
  2692. * src/MetalinkEntry.cc
  2693. * src/RarestPieceSelector.cc
  2694. * src/SimpleRandomizer.cc
  2695. * src/SimpleRandomizer.h
  2696. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2697. Now the default value of --enable-direct-io is true.
  2698. * src/OptionHandlerFactory.cc
  2699. * doc/aria2c.1.txt
  2700. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2701. Erase peer before executing onReturningPeer and onErasingPeer
  2702. because choking algorithm called from onReturningPeer doesn't
  2703. like erasing peer in the active peer list.
  2704. * src/DefaultPeerStorage.cc
  2705. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2706. Instead of creating special filename in createDownloadResult() if
  2707. inMemoryDownload() is true, now it is done in getFilePath().
  2708. * src/RequestGroup.cc
  2709. * test/RequestGroupTest.cc
  2710. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2711. Print "[MEMORY]" and filename if a file is not saved in disk and just
  2712. processed in memory. This is the fix for previous comment out.
  2713. * src/MemoryBufferPreDownloadHandler.cc
  2714. * src/RequestGroup.cc
  2715. * src/RequestGroup.h
  2716. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2717. Commented out the code which sets virtual directory path "[MEMORY]"
  2718. propagate directory to store to following RequestGroup.
  2719. * src/MemoryBufferPreDownloadHandler.cc
  2720. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2721. Bump up version number to 1.0.0b
  2722. * configure.ac
  2723. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2724. Added input_uris.txt to EXTRA_DIST
  2725. * test/Makefile.am
  2726. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2727. Removed PeerObject.h from Makefile.am
  2728. * src/Makefile.am
  2729. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2730. Avoid slow seeding
  2731. * src/PeerInteractionCommand.cc
  2732. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2733. Updated usage for -i option.
  2734. * src/usage_text.h (TEXT_INPUT_FILE)
  2735. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2736. Added INPUT FILE section to man page.
  2737. Escaped fake URLs.
  2738. * doc/aria2c.1.txt
  2739. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2740. Fixed wrong note position for -o option.
  2741. * doc/aria2c.1.txt
  2742. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2743. Fixed compile error without SSL/XML library.
  2744. * src/DefaultBtProgressInfoFile.cc
  2745. * src/DefaultBtProgressInfoFile.h
  2746. * src/FileMetalinkParserState.cc
  2747. * src/RequestGroup.h
  2748. * src/SocketCore.cc
  2749. * src/SocketCore.h
  2750. * src/VerificationMetalinkParserState.cc
  2751. * src/download_helper.h
  2752. * src/main.cc
  2753. * test/DefaultBtProgressInfoFileTest.cc
  2754. * test/DownloadHelperTest.cc
  2755. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2756. Rewritten URI handling functions. They are now provided as a testable
  2757. functions.
  2758. * src/Makefile.am
  2759. * src/RequestGroup.cc
  2760. * src/RequestGroup.h
  2761. * src/download_helper.cc
  2762. * src/download_helper.h
  2763. * src/main.cc
  2764. * test/DownloadHelperTest.cc
  2765. * test/Makefile.am
  2766. * test/input_uris.txt
  2767. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2768. Quickly terminate commands when ctrl-c is pressed.
  2769. * src/DownloadEngine.cc
  2770. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2771. Quickly terminate idle commands when download finished.
  2772. * src/AbstractCommand.cc
  2773. * src/DownloadCommand.cc
  2774. * src/DownloadEngine.cc
  2775. * src/DownloadEngine.h
  2776. * src/SleepCommand.cc
  2777. * src/SleepCommand.h
  2778. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2779. Added the ability to specify output filename and directory in input
  2780. file.
  2781. Additional parameters are added in the following line of URIs
  2782. with proceeding white space(s), 1 parameter in 1 line.
  2783. The parameter names are the same with the command-line option name
  2784. without proceeding "--". Not all the options are available here:
  2785. at the moment, 'dir' and 'out' options are avialable.
  2786. Please note that out option has no effect against Metalink or BitTorrent
  2787. downloads.
  2788. Example input file:
  2789. http://host/foo-1.1.tar.bz2
  2790. out=foo.tar.bz2
  2791. dir=/tmp/downloads
  2792. http://host/thundermonkey-2.0.tar.bz2
  2793. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  2794. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  2795. thundermonkey-2.0.tar.bz2 is saved as
  2796. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  2797. * src/BtPostDownloadHandler.cc
  2798. * src/Metalink2RequestGroup.cc
  2799. * src/Metalink2RequestGroup.h
  2800. * src/MetalinkPostDownloadHandler.cc
  2801. * src/UriListParser.cc
  2802. * src/UriListParser.h
  2803. * src/main.cc
  2804. * test/Metalink2RequestGroupTest.cc
  2805. * test/UriListParserTest.cc
  2806. * test/filelist1.txt
  2807. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2808. Fixed error when SSL library is not found.
  2809. * configure.ac
  2810. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2811. Cross referenced among -s, -C and -j options.
  2812. Updated usage of -C and -s options.
  2813. * src/usage_text.h
  2814. * doc/aria2c.1.txt
  2815. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2816. Fixed bad cast in 32bit platforms.
  2817. * test/DefaultPieceStorageTest.cc
  2818. (DefaultPieceStorageTest::testGetCompletedLength)
  2819. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2820. Fixed unit test fails on 32bit platforms.
  2821. * test/CookieParserTest.cc
  2822. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2823. Show an average download speed in Download results.
  2824. * src/BtFileAllocationEntry.cc
  2825. * src/DefaultPieceStorage.cc
  2826. * src/DownloadContext.cc
  2827. * src/DownloadContext.h
  2828. * src/DownloadResult.h
  2829. * src/RequestGroup.cc
  2830. * src/RequestGroupMan.cc
  2831. * src/StreamFileAllocationEntry.cc
  2832. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2833. Fixed the bug that metalink file is not processed if Content-Type
  2834. field has a paramter.
  2835. * src/HttpResponse.cc
  2836. * src/HttpResponse.h
  2837. * test/HttpResponseTest.cc
  2838. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2839. Removed unused code.
  2840. * src/DefaultBtAnnounce.cc
  2841. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2842. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  2843. the value larger than DefaultPieceStorage::getTotalLength() when
  2844. in flight pieces are involved.
  2845. * src/DefaultPieceStorage.cc
  2846. * test/DefaultPieceStorageTest.cc
  2847. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2848. Bump up version number to 1.0.0a.
  2849. * configure.ac
  2850. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2851. Updated configure.ac
  2852. * configure.ac
  2853. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2854. Added usege for proxy.
  2855. * doc/aria2c.1.txt
  2856. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2857. Added usage for --ca-certificate, --certificate, --private-key and
  2858. --check-certificate options.
  2859. * doc/aria2c.1.txt
  2860. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2861. Updated man page
  2862. * doc/aria2c.1.txt
  2863. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2864. Added --no-proxy option. It receives comman separated hostname or
  2865. domains to which proxy should not be used.
  2866. aria2 honors the environment variable no_proxy to override no-proxy
  2867. value in configuration file. The user can override the environment
  2868. variable no_proxy with --no-proxy command-line option.
  2869. * src/AbstractCommand.cc
  2870. * src/OptionHandlerFactory.cc
  2871. * src/option_processing.cc
  2872. * src/prefs.cc
  2873. * src/prefs.h
  2874. * src/usage_text.h
  2875. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2876. Added the ability to verify peer in SSL/TLS using given CA certificates.
  2877. The CA certificates are specified in --ca-certificate option.
  2878. By default, the verification is disabled. Use --check-certificate
  2879. option to enable it.
  2880. * src/HttpRequestCommand.cc
  2881. * src/LibgnutlsTLSContext.cc
  2882. * src/LibgnutlsTLSContext.h
  2883. * src/LibsslTLSContext.cc
  2884. * src/LibsslTLSContext.h
  2885. * src/MultiUrlRequestInfo.cc
  2886. * src/OptionHandlerFactory.cc
  2887. * src/SocketCore.cc
  2888. * src/SocketCore.h
  2889. * src/a2functional.h
  2890. * src/message.h
  2891. * src/option_processing.cc
  2892. * src/prefs.cc
  2893. * src/prefs.h
  2894. * src/usage_text.h
  2895. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2896. Added client certificate authentication for SSL/TLS.
  2897. Currently a private key must be decrypted for use with aria2.
  2898. If a user accidentally gives encrypted file to aria2 then following
  2899. thing happens:
  2900. If encrypted private key is given to aria2, it behaves differently
  2901. depending on the ssl library it uses. If aria2 built with openssl then
  2902. openssl prompts the user for password. If aria2 build with gnutls then
  2903. aria2 exists with error at start up.
  2904. * src/DownloadEngineFactory.cc
  2905. * src/MultiUrlRequestInfo.cc
  2906. * src/OptionHandlerFactory.cc
  2907. * src/option_processing.cc
  2908. * src/prefs.cc
  2909. * src/prefs.h
  2910. * src/usage_text.h
  2911. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2912. Introduced TLSContext that holds TLS related data that can be shared
  2913. with multiple SSL connections.
  2914. * src/DownloadEngineFactory.cc
  2915. * src/LibgnutlsTLSContext.cc
  2916. * src/LibgnutlsTLSContext.h
  2917. * src/LibsslTLSContext.cc
  2918. * src/LibsslTLSContext.h
  2919. * src/Makefile.am
  2920. * src/SocketCore.cc
  2921. * src/SocketCore.h
  2922. * src/TLSContext.h
  2923. * src/message.h
  2924. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2925. Fixed the bug that the DiskWriter of the first FileEntry whose
  2926. `needsFileAllocation' property is false is not created
  2927. even if it shares a piece with next FileEntry which `requested' property
  2928. is true.
  2929. Fixed the bug that zero-length file is not created if pre file
  2930. allocation is not done.
  2931. * src/MultiDiskAdaptor.cc
  2932. * src/MultiDiskAdaptor.h
  2933. * test/MultiDiskAdaptorTest.cc
  2934. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2935. Added the ability to pool proxy connection.
  2936. The conneciton in FTP with proxy-method=GET is not pooled.
  2937. Proxy-Connection header will not be sent when sending CONNECT method.
  2938. * src/DownloadEngine.cc
  2939. * src/DownloadEngine.h
  2940. * src/FtpFinishDownloadCommand.cc
  2941. * src/FtpInitiateConnectionCommand.cc
  2942. * src/FtpNegotiationCommand.cc
  2943. * src/HttpDownloadCommand.cc
  2944. * src/HttpInitiateConnectionCommand.cc
  2945. * src/HttpRequest.cc
  2946. * src/HttpRequest.h
  2947. * src/HttpResponse.cc
  2948. * src/HttpSkipResponseCommand.cc
  2949. * test/HttpRequestTest.cc
  2950. * test/HttpResponseTest.cc
  2951. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2952. Handle date before epoch.
  2953. To create *bad* Time object, call Time::null().
  2954. * src/CookieParser.cc
  2955. * src/FtpConnection.cc
  2956. * src/FtpConnection.h
  2957. * src/FtpNegotiationCommand.cc
  2958. * src/RequestGroup.cc
  2959. * src/TimeA2.cc
  2960. * src/TimeA2.h
  2961. * test/CookieParserTest.cc
  2962. * test/FtpConnectionTest.cc
  2963. * test/TimeTest.cc
  2964. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2965. Added support for following envrionment variables: http_proxy,
  2966. https_proxy, ftp_proxy and all_proxy.
  2967. Each variable is equivalent to the aria2 option whose name is the
  2968. variable name with '_' replaced with '-'.
  2969. They overrides options specified in aria2.conf file.
  2970. The envrionment variables can be overrode using command-line option.
  2971. * src/option_processing.cc
  2972. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2973. Renamed --http-proxy-method as --proxy-method.
  2974. * src/AbstractCommand.cc
  2975. * src/FtpInitiateConnectionCommand.cc
  2976. * src/HttpInitiateConnectionCommand.cc
  2977. * src/OptionHandlerFactory.cc
  2978. * src/option_processing.cc
  2979. * src/prefs.cc
  2980. * src/prefs.h
  2981. * src/usage_text.h
  2982. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2983. Deprecated --http-proxy-user and --http-proxy-passwd options.
  2984. Added --https-proxy, --ftp-proxy and --all-proxy options.
  2985. Above 3 options and --http-proxy option can handle proxy in URL format
  2986. like: http://user:passwd@host:port.
  2987. If a proxy requires user/password, they must be specified in a URL.
  2988. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  2989. instead.
  2990. * src/AbstractCommand.cc
  2991. * src/AbstractCommand.h
  2992. * src/AbstractProxyRequestCommand.cc
  2993. * src/AbstractProxyRequestCommand.h
  2994. * src/AuthConfigFactory.cc
  2995. * src/AuthConfigFactory.h
  2996. * src/FtpFinishDownloadCommand.cc
  2997. * src/FtpInitiateConnectionCommand.cc
  2998. * src/FtpInitiateConnectionCommand.h
  2999. * src/FtpNegotiationCommand.cc
  3000. * src/FtpTunnelRequestCommand.cc
  3001. * src/FtpTunnelRequestCommand.h
  3002. * src/HttpDownloadCommand.cc
  3003. * src/HttpInitiateConnectionCommand.cc
  3004. * src/HttpInitiateConnectionCommand.h
  3005. * src/HttpProxyRequestCommand.cc
  3006. * src/HttpProxyRequestCommand.h
  3007. * src/HttpRequest.cc
  3008. * src/HttpRequest.h
  3009. * src/HttpRequestCommand.cc
  3010. * src/HttpRequestCommand.h
  3011. * src/HttpSkipResponseCommand.cc
  3012. * src/InitiateConnectionCommand.cc
  3013. * src/InitiateConnectionCommand.h
  3014. * src/OptionHandlerFactory.cc
  3015. * src/OptionHandlerImpl.h
  3016. * src/Request.cc
  3017. * src/option_processing.cc
  3018. * src/prefs.cc
  3019. * src/prefs.h
  3020. * src/usage_text.h
  3021. * test/AuthConfigFactoryTest.cc
  3022. * test/HttpRequestTest.cc
  3023. * test/OptionHandlerTest.cc
  3024. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3025. Execute choking algorithm when unchoked and interested peer is
  3026. disconected.
  3027. * src/DefaultPeerStorage.cc
  3028. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3029. Added testcase for BtNotInterestedMessage from unchoked peer.
  3030. * test/BtNotInterestedMessageTest.cc
  3031. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3032. Execute choking algorithm when BtInterestedMessage arrives from
  3033. unchoked peer.
  3034. * src/BtInterestedMessage.cc
  3035. * src/BtInterestedMessage.h
  3036. * src/DefaultBtMessageFactory.cc
  3037. * test/BtInterestedMessageTest.cc
  3038. * test/MockPeerStorage.h
  3039. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3040. AuthConfigFactory is now part of DownloadEngine.
  3041. * src/AbstractProxyRequestCommand.cc
  3042. * src/AuthConfigFactory.h
  3043. * src/DownloadEngine.cc
  3044. * src/DownloadEngine.h
  3045. * src/FtpConnection.cc
  3046. * src/FtpConnection.h
  3047. * src/FtpNegotiationCommand.cc
  3048. * src/HttpConnection.cc
  3049. * src/HttpRequest.cc
  3050. * src/HttpRequest.h
  3051. * src/HttpRequestCommand.cc
  3052. * src/HttpResponse.cc
  3053. * src/HttpResponseCommand.cc
  3054. * src/HttpSkipResponseCommand.cc
  3055. * src/MultiUrlRequestInfo.cc
  3056. * src/main.cc
  3057. * test/FtpConnectionTest.cc
  3058. * test/HttpRequestTest.cc
  3059. * test/HttpResponseTest.cc
  3060. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3061. Corrected catched exception type.
  3062. * src/ServerStatMan.cc
  3063. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3064. DNSCache is now part of DownloadEngine.
  3065. * src/DNSCache.h
  3066. * src/DownloadEngine.cc
  3067. * src/DownloadEngine.h
  3068. * src/InitiateConnectionCommand.cc
  3069. * src/MultiUrlRequestInfo.cc
  3070. * test/Makefile.am
  3071. * test/Makefile.in
  3072. * test/SimpleDNSCacheTest.cc
  3073. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3074. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  3075. DownloadEngine.
  3076. * src/ActivePeerConnectionCommand.cc
  3077. * src/BtSetup.cc
  3078. * src/CUIDCounter.h
  3079. * src/DHTSetup.cc
  3080. * src/DownloadCommand.cc
  3081. * src/DownloadEngine.cc
  3082. * src/DownloadEngine.h
  3083. * src/DownloadEngineFactory.cc
  3084. * src/FileAllocationDispatcherCommand.cc
  3085. * src/InitiatorMSEHandshakeCommand.cc
  3086. * src/PeerInitiateConnectionCommand.cc
  3087. * src/PeerInteractionCommand.cc
  3088. * src/PeerListenCommand.cc
  3089. * src/RequestGroup.cc
  3090. * src/StreamFileAllocationEntry.cc
  3091. * src/TrackerWatcherCommand.cc
  3092. * src/main.cc
  3093. * test/RequestGroupManTest.cc
  3094. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3095. Implemented commented code in BtSeederStateChoke
  3096. * src/BtSeederStateChoke.cc
  3097. * src/Peer.cc
  3098. * src/Peer.h
  3099. * src/PeerInteractionCommand.cc
  3100. * src/PeerSessionResource.cc
  3101. * src/PeerSessionResource.h
  3102. * test/MockBtMessageDispatcher.h
  3103. * test/PeerSessionResourceTest.cc
  3104. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3105. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  3106. its object.
  3107. * src/AbstractBtMessage.cc
  3108. * src/ActivePeerConnectionCommand.cc
  3109. * src/ActivePeerConnectionCommand.h
  3110. * src/BtContextAwareCommand.cc
  3111. * src/BtContextAwareCommand.h
  3112. * src/BtExtendedMessage.cc
  3113. * src/BtExtendedMessage.h
  3114. * src/BtInterestedMessage.cc
  3115. * src/BtInterestedMessage.h
  3116. * src/BtNotInterestedMessage.cc
  3117. * src/BtNotInterestedMessage.h
  3118. * src/BtRegistry.cc
  3119. * src/BtRegistry.h
  3120. * src/BtSeederStateChoke.cc
  3121. * src/BtSetup.cc
  3122. * src/DHTGetPeersCommand.cc
  3123. * src/DHTGetPeersCommand.h
  3124. * src/DHTPeerAnnounceEntry.cc
  3125. * src/DHTPeerAnnounceEntry.h
  3126. * src/DHTPeerAnnounceStorage.cc
  3127. * src/DHTPeerAnnounceStorage.h
  3128. * src/DHTPeerLookupTask.cc
  3129. * src/DHTPeerLookupTask.h
  3130. * src/DHTSetup.cc
  3131. * src/DHTSetup.h
  3132. * src/DHTTaskFactory.h
  3133. * src/DHTTaskFactoryImpl.cc
  3134. * src/DHTTaskFactoryImpl.h
  3135. * src/DefaultBtAnnounce.cc
  3136. * src/DefaultBtInteractive.cc
  3137. * src/DefaultBtInteractive.h
  3138. * src/DefaultBtMessageDispatcher.cc
  3139. * src/DefaultBtMessageDispatcher.h
  3140. * src/DefaultBtMessageFactory.cc
  3141. * src/DefaultBtMessageFactory.h
  3142. * src/DefaultBtMessageReceiver.cc
  3143. * src/DefaultBtProgressInfoFile.cc
  3144. * src/DefaultBtProgressInfoFile.h
  3145. * src/DefaultBtRequestFactory.cc
  3146. * src/DefaultBtRequestFactory.h
  3147. * src/DefaultExtensionMessageFactory.cc
  3148. * src/DefaultExtensionMessageFactory.h
  3149. * src/DefaultPeerStorage.cc
  3150. * src/DefaultPeerStorage.h
  3151. * src/DownloadEngine.cc
  3152. * src/DownloadEngine.h
  3153. * src/InitiatorMSEHandshakeCommand.cc
  3154. * src/InitiatorMSEHandshakeCommand.h
  3155. * src/MSEHandshake.cc
  3156. * src/MSEHandshake.h
  3157. * src/Makefile.am
  3158. * src/Makefile.in
  3159. * src/PeerChokeCommand.cc
  3160. * src/PeerChokeCommand.h
  3161. * src/PeerInitiateConnectionCommand.cc
  3162. * src/PeerInitiateConnectionCommand.h
  3163. * src/PeerInteractionCommand.cc
  3164. * src/PeerInteractionCommand.h
  3165. * src/PeerObject.h
  3166. * src/PeerReceiveHandshakeCommand.cc
  3167. * src/PeerReceiveHandshakeCommand.h
  3168. * src/ReceiverMSEHandshakeCommand.cc
  3169. * src/RequestGroup.cc
  3170. * src/RequestGroup.h
  3171. * src/RequestGroupMan.cc
  3172. * src/RequestGroupMan.h
  3173. * src/SeedCheckCommand.cc
  3174. * src/SeedCheckCommand.h
  3175. * src/ShareRatioSeedCriteria.h
  3176. * src/SimpleBtMessage.cc
  3177. * src/TrackerWatcherCommand.cc
  3178. * src/TrackerWatcherCommand.h
  3179. * src/UTPexExtensionMessage.cc
  3180. * src/UTPexExtensionMessage.h
  3181. * test/BtCancelMessageTest.cc
  3182. * test/BtChokeMessageTest.cc
  3183. * test/BtExtendedMessageTest.cc
  3184. * test/BtInterestedMessageTest.cc
  3185. * test/BtNotInterestedMessageTest.cc
  3186. * test/BtPieceMessageTest.cc
  3187. * test/BtPortMessageTest.cc
  3188. * test/BtRegistryTest.cc
  3189. * test/BtRejectMessageTest.cc
  3190. * test/BtRequestMessageTest.cc
  3191. * test/DHTPeerAnnounceEntryTest.cc
  3192. * test/DHTPeerAnnounceStorageTest.cc
  3193. * test/DefaultBtMessageDispatcherTest.cc
  3194. * test/DefaultBtMessageFactoryTest.cc
  3195. * test/DefaultBtProgressInfoFileTest.cc
  3196. * test/DefaultBtRequestFactoryTest.cc
  3197. * test/DefaultExtensionMessageFactoryTest.cc
  3198. * test/MSEHandshakeTest.cc
  3199. * test/MockDHTTaskFactory.h
  3200. * test/ShareRatioSeedCriteriaTest.cc
  3201. * test/UTPexExtensionMessageTest.cc
  3202. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3203. Fixed compiler warning.
  3204. * test/UtilTest.cc
  3205. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3206. Treat Cookie object as session cookie if expiry = 0 is given.
  3207. With this change, you can specify session scoped cookies in an external
  3208. file setting expiry value to 0.
  3209. * src/Cookie.cc
  3210. * src/Cookie.h
  3211. * test/CookieParserTest.cc
  3212. * test/CookieStorageTest.cc
  3213. * test/CookieTest.cc
  3214. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3215. Changed signature of DHTMessageFactory::createResponseMessage().
  3216. Removed unused validateIDMatch.
  3217. * src/DHTMessageFactory.h
  3218. * src/DHTMessageFactoryImpl.cc
  3219. * src/DHTMessageFactoryImpl.h
  3220. * src/DHTMessageTracker.cc
  3221. * test/DHTMessageFactoryImplTest.cc
  3222. * test/MockDHTMessageFactory.h
  3223. Dropped DHT message coming from same ID of localhost.
  3224. * src/DHTMessageReceiver.cc
  3225. Rejected adding node whose ID is the same as localhost's.
  3226. * src/DHTRoutingTable.cc
  3227. * test/BtPortMessageTest.cc
  3228. * test/DHTRoutingTableTest.cc
  3229. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3230. Pool connection when redirection occurs with Content-Length = 0.
  3231. * src/HttpSkipResponseCommand.cc
  3232. * src/HttpSkipResponseCommand.h
  3233. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3234. Fixed the bug that causes time out when redirection occurs with
  3235. content-length 0.
  3236. * src/HttpResponseCommand.cc
  3237. * src/HttpSkipResponseCommand.cc
  3238. * src/HttpSkipResponseCommand.h
  3239. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3240. Now each status legends is shown only when it appears in Download
  3241. Result. If Download Result has no item, then status legend will not
  3242. be printed.
  3243. * src/RequestGroupMan.cc
  3244. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3245. Removed duplicate creation of OptionHandlers.
  3246. * src/option_processing.cc
  3247. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3248. Fixed the bug that causes segmentation fault when accessing files which
  3249. don't exist or are not included in --select-file option while
  3250. validating chunk checksum.
  3251. * src/MultiDiskAdaptor.cc
  3252. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3253. Fixed compiler warning.
  3254. * test/UtilTest.cc
  3255. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3256. Included cstdlib. This fixed the compile error with g++-4.3.2.
  3257. * src/IteratableChecksumValidator.cc
  3258. * src/IteratableChunkChecksumValidator.cc
  3259. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3260. * Release 0.16.2
  3261. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3262. Added Serbian translation. Updated Ukrainian translation.
  3263. Thanks to all translators.
  3264. * po/sr.po
  3265. * po/uk.po
  3266. * po/LINGUAS
  3267. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3268. Bump up version number to 0.16.2
  3269. * configure.ac
  3270. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3271. Added length equality test to operator== to drop a piece message
  3272. whose length does not match to the requested one.
  3273. * src/RequestSlot.cc
  3274. * test/DefaultBtMessageDispatcherTest.cc
  3275. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3276. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  3277. recieved.
  3278. In this fix, if a request larger than 16KiB length is received, aria2
  3279. disconnects the peer.
  3280. * src/BtConstants.h
  3281. * src/PeerMessageUtil.cc
  3282. * src/PeerMessageUtil.h
  3283. * test/BtRequestMessageTest.cc
  3284. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3285. * Release 0.16.1
  3286. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3287. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  3288. * doc/aria2c.1.txt
  3289. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3290. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  3291. Updated French, Simplified Chinese and Japanese translations.
  3292. Thanks to all translators.
  3293. en@quot and en@boldquot are also added.
  3294. * po/LINGUAS
  3295. * po/fr.po
  3296. * po/ja.po
  3297. * po/uk.po
  3298. * po/vi.po
  3299. * po/zh_CN.po
  3300. * po/zh_TW.po
  3301. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3302. Bump up version number to 0.16.1.
  3303. * configure.ac
  3304. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3305. Updated README.
  3306. * README
  3307. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3308. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  3309. not to replace '--' with em dash character.
  3310. * doc/aria2c.1.txt
  3311. * doc/makeman
  3312. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3313. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  3314. every SEC seconds.
  3315. * src/DownloadEngineFactory.cc
  3316. * src/OptionHandlerFactory.cc
  3317. * src/option_processing.cc
  3318. * src/usage_text.h
  3319. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3320. Fixed compile warning on linux-amd64
  3321. * src/FtpConnection.cc
  3322. * src/IteratableChunkChecksumValidator.cc
  3323. * src/MultiDiskAdaptor.cc
  3324. Fixed the bug that unit test fails on linux-amd64
  3325. * test/UtilTest.cc
  3326. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3327. Added --dht-file-path option to change the path to dht.dat, which is a
  3328. serialized DHT routing table.
  3329. * src/OptionHandlerFactory.cc
  3330. * src/option_processing.cc
  3331. * src/usage_text.h
  3332. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3333. Fixed possible underflow.
  3334. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  3335. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3336. Fixed the bug that last character in URI is not encoded.
  3337. * src/Request.cc
  3338. * test/RequestTest.cc
  3339. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3340. Fixed the bug that referer header field contains fragment.
  3341. Now Request class removes fragment part of URI and encodes it
  3342. in Request::setUri() and setReferer().
  3343. * src/Request.h
  3344. * src/Request.cc
  3345. * test/RequestTest.cc
  3346. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3347. Added missing m4 macros.
  3348. * m4/cppunit.m4
  3349. * m4/libgcrypt.m4
  3350. * m4/libgnutls-extra.m4
  3351. * m4/libgnutls.m4
  3352. * m4/libxml2.m4
  3353. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3354. Fixed compile error with gcc-4.4(snapshot)
  3355. * src/File.cc
  3356. * src/FtpConnection.cc
  3357. * src/OptionHandlerImpl.h
  3358. * src/Util.cc
  3359. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3360. Removed assert()
  3361. * src/SocketBuffer.cc (SocketBuffer::send)
  3362. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3363. Changed the type of _numNewConnection to unsigned int.
  3364. * src/ActivePeerConnectionCommand.cc
  3365. * src/ActivePeerConnectionCommand.h
  3366. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3367. * Release 0.16.0
  3368. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3369. Updated doc
  3370. * README
  3371. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3372. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  3373. translations. Thanks to all translators.
  3374. * po/bg.po
  3375. * po/de.po
  3376. * po/fr.po
  3377. * po/ja.po
  3378. * po/zh_CN.po
  3379. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3380. Bump up version number to 0.16.0.
  3381. * configure.ac
  3382. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3383. Casted entry->maxConnections to int32_t for std::min<T> with T =
  3384. int32_t.
  3385. Changed the type of count to int32_t.
  3386. * src/Metalink2RequestGroup.cc
  3387. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3388. Added test for Time::elapsed(time_t).
  3389. * test/TimeTest.cc
  3390. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3391. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  3392. Util::difftv() should be used instead.
  3393. * src/TimeA2.cc
  3394. * src/TimeA2.h
  3395. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3396. Made socket for dht connections non-blocking
  3397. * src/DHTAbstractMessage.cc
  3398. * src/DHTAbstractMessage.h
  3399. * src/DHTConnection.h
  3400. * src/DHTConnectionImpl.cc
  3401. * src/DHTConnectionImpl.h
  3402. * src/DHTMessage.h
  3403. * src/DHTMessageDispatcherImpl.cc
  3404. * src/DHTMessageDispatcherImpl.h
  3405. * src/DHTUnknownMessage.cc
  3406. * src/DHTUnknownMessage.h
  3407. * src/SocketCore.cc
  3408. * src/SocketCore.h
  3409. * test/MockDHTMessage.h
  3410. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3411. Changed the type of offset to int.
  3412. * src/ParameterizedStringParser.cc
  3413. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3414. Made getAsInt() return int32_t
  3415. * src/Option.h
  3416. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3417. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  3418. build.
  3419. * configure.ac
  3420. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3421. Use sqlite3_open if sqlite3_open_v2 is not available.
  3422. * src/Sqlite3MozCookieParser.cc
  3423. * src/Sqlite3MozCookieParser.h
  3424. * m4/sqlite3.m4
  3425. * test/Sqlite3MozCookieParserTest.cc
  3426. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3427. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  3428. * src/BtPieceMessage.cc
  3429. * src/DHTPeerAnnounceStorage.cc
  3430. * src/DefaultPieceStorage.cc
  3431. * src/DownloadCommand.cc
  3432. * src/DownloadEngine.cc
  3433. * src/FtpConnection.cc
  3434. * src/PeerConnection.cc
  3435. * src/PeerMessageUtil.cc
  3436. * src/RequestGroup.cc
  3437. * src/RequestGroupMan.cc
  3438. * src/SimpleBtMessage.cc
  3439. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3440. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  3441. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  3442. * src/AbstractDiskWriter.cc
  3443. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3444. Don't set Request::supportsPersistentConnection() in HttpConnection
  3445. since this code is also used in AbstractProxyResponseCommand.
  3446. Moved those code to HttpResponse.
  3447. * src/HttpResponse.cc
  3448. * src/HttpResponse.h
  3449. * src/HttpConnection.cc
  3450. * src/HttpConnection.h
  3451. * src/HttpResponseCommand.cc
  3452. * test/HttpResponseTest.cc
  3453. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3454. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  3455. The configuration is minimum: no torrent, no metalink, so there may be
  3456. other compile error on their code.
  3457. * src/a2netcompat.h
  3458. * src/File.cc
  3459. * src/File.h
  3460. * src/SocketCore.cc
  3461. * src/SocketCore.h
  3462. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3463. Made a socket of incoming peer non-blocking.
  3464. * src/PeerListenCommand.cc
  3465. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3466. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  3467. whole message data is not sent in one send() call.
  3468. * src/BtPieceMessage.cc
  3469. * src/BtPieceMessage.h
  3470. * src/PeerConnection.cc
  3471. * src/PeerConnection.h
  3472. * src/SimpleBtMessage.cc
  3473. * src/SimpleBtMessage.h
  3474. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3475. Fixed the bug that aria2 downloads faster than max-download-limit when
  3476. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  3477. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  3478. , instead of sum of them.
  3479. * src/ActivePeerConnectionCommand.cc
  3480. * src/DefaultBtInteractive.cc
  3481. * src/DownloadCommand.cc
  3482. * src/PeerInteractionCommand.cc
  3483. * src/PeerReceiveHandshakeCommand.cc
  3484. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3485. Fixed the bug that HTTPS download fails.
  3486. * src/AbstractCommand.cc
  3487. * src/AbstractCommand.h
  3488. * src/DownloadCommand.cc
  3489. * src/FtpConnection.cc
  3490. * src/HttpConnection.cc
  3491. * src/HttpRequestCommand.cc
  3492. * src/HttpResponseCommand.cc
  3493. * src/HttpSkipResponseCommand.cc
  3494. * src/MSEHandshake.cc
  3495. * src/PeerConnection.cc
  3496. * src/SocketCore.cc
  3497. * src/SocketCore.h
  3498. Fixed the bug that aria2 doesn't download whole content body and cannot
  3499. reuse connection if chunked transfer encoding and gzip content encoding
  3500. are set.
  3501. * src/DownloadCommand.cc
  3502. * src/HttpSkipResponseCommand.cc
  3503. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3504. Updated man page.
  3505. * doc/aria2c.1.txt
  3506. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3507. When error occurred while aria2 was parsing an .aria2.conf file, print
  3508. the usage of the option that caused error.
  3509. * src/option_processing.cc
  3510. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3511. Fixed compile error on OptionHandlerException
  3512. * src/Makefile.am
  3513. * src/OptionHandlerException.cc
  3514. * src/OptionHandlerException.h
  3515. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3516. Moved message of the error to OptionHandlerException.h
  3517. * src/NameMatchOptionHandler.h
  3518. * src/OptionHandlerException.h
  3519. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3520. When error occurs while aria2 is parsing an command-line option, print
  3521. the usage of the option.
  3522. * src/Makefile.am
  3523. * src/NameMatchOptionHandler.h
  3524. * src/OptionHandlerException.h
  3525. * src/option_processing.cc
  3526. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3527. Reverted previous change.
  3528. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  3529. username is not in URI.
  3530. * src/HttpRequest.cc
  3531. * src/Request.cc
  3532. * test/HttpRequestTest.cc
  3533. * test/RequestTest.cc
  3534. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3535. Now colon is required for username and password in FTP URL, like:
  3536. ftp://username:password@host.
  3537. If colon is not there, aria2 don't parse it as a username. For example,
  3538. aria2 don't retrieve username from ftp://username@host.
  3539. This fix was made in order to login FTP server via non-transparent ftp
  3540. proxy.
  3541. * src/Request.cc
  3542. * test/RequestTest.cc
  3543. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3544. Use netrc for HTTP.
  3545. Now FTP user/password is sent in Authorization header when
  3546. --ftp-via-http-proxy=get is given.
  3547. * src/AuthConfigFactory.cc
  3548. * src/HttpRequest.cc
  3549. * src/HttpRequest.h
  3550. * src/NetrcAuthResolver.cc
  3551. * src/NetrcAuthResolver.h
  3552. * src/OptionHandlerFactory.cc
  3553. * src/option_processing.cc
  3554. * src/prefs.cc
  3555. * src/prefs.h
  3556. * test/AuthConfigFactoryTest.cc
  3557. * test/HttpRequestTest.cc
  3558. * test/NetrcAuthResolverTest.cc
  3559. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3560. Issue PWD command first and get working directory and use it as a prefix
  3561. for CWD command.
  3562. * src/DownloadEngine.cc
  3563. * src/DownloadEngine.h
  3564. * src/FtpConnection.cc
  3565. * src/FtpConnection.h
  3566. * src/FtpFinishDownloadCommand.cc
  3567. * src/FtpInitiateConnectionCommand.cc
  3568. * src/FtpNegotiationCommand.cc
  3569. * src/FtpNegotiationCommand.h
  3570. * test/FtpConnectionTest.cc
  3571. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3572. Removed default user/pass for FTP user/pass, since it should not have
  3573. precedence over netrc configuration by default.
  3574. * src/OptionHandlerFactory.cc
  3575. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3576. Added debug log for socket event.
  3577. * src/AbstractCommand.cc
  3578. * src/PeerAbstractCommand.cc
  3579. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3580. Log microseconds.
  3581. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  3582. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3583. Replaced HelpItem.cc with OptionHandler.cc.
  3584. * po/POTFILES.in
  3585. Updated po files with 'make update-po'
  3586. * po/aria2c.pot
  3587. * po/*.po
  3588. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3589. Removed possible values from the text.
  3590. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  3591. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3592. Removed unused preferences:
  3593. PREF_NO_PREALLOCATION
  3594. PREF_STDOUT_LOG
  3595. PREF_TRACKER_MAX_TRIES
  3596. PREF_DIRECT_DOWNLOAD_TIMEOUT
  3597. PREF_MIN_SEGMENT_SIZE
  3598. * src/option_processing.cc
  3599. * src/prefs.cc
  3600. * src/prefs.h
  3601. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3602. Integrated HelpItem into OptionParser to ease the workload for adding
  3603. new options. Removed default value from usage text.
  3604. * src/HelpItem.cc: Removed.
  3605. * src/HelpItem.h: Removed.
  3606. * src/HelpItemFactory.cc: Removed.
  3607. * src/HelpItemFactory.h: Removed.
  3608. * src/Makefile.am
  3609. * src/Makefile.in
  3610. * src/NameMatchOptionHandler.h
  3611. * src/OptionHandler.cc
  3612. * src/OptionHandler.h
  3613. * src/OptionHandlerFactory.cc
  3614. * src/OptionHandlerImpl.h
  3615. * src/OptionParser.cc
  3616. * src/OptionParser.h
  3617. * src/TagContainer.cc: Removed.
  3618. * src/TagContainer.h: Removed.
  3619. * src/TaggedItem.cc: Removed.
  3620. * src/TaggedItem.h: Removed.
  3621. * src/main.cc
  3622. * src/option_processing.cc
  3623. * src/usage_text.h
  3624. * src/version_usage.cc
  3625. * test/HelpItemTest.cc: Removed.
  3626. * test/Makefile.am
  3627. * test/Makefile.in
  3628. * test/OptionHandlerTest.cc
  3629. * test/OptionParserTest.cc
  3630. * test/TagContainerTest.cc: Removed.
  3631. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3632. Moved `TransferStat stat = ...' to inside the `if' clause.
  3633. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  3634. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3635. Fixed the bug that a block in a piece is requested when same block is
  3636. already requested to the same peer in end game mode.
  3637. * src/BtRequestFactory.h
  3638. * src/DefaultBtInteractive.cc
  3639. * src/DefaultBtRequestFactory.cc
  3640. * src/DefaultBtRequestFactory.h
  3641. * src/DefaultPieceStorage.cc
  3642. * src/DefaultPieceStorage.h
  3643. * src/PieceStorage.h
  3644. * src/UnknownLengthPieceStorage.cc
  3645. * src/UnknownLengthPieceStorage.h
  3646. * test/DefaultBtRequestFactoryTest.cc
  3647. * test/DefaultPieceStorageTest.cc
  3648. * test/MockBtRequestFactory.h
  3649. * test/MockPieceStorage.h
  3650. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3651. Removed _uploadLength and _downloadLength from PeerSessionResource
  3652. and use PeerStat::_sessionUploadLength and
  3653. PeerStat::_sessionDownloadLength.
  3654. * src/PeerSessionResource.cc
  3655. * src/PeerSessionResource.h
  3656. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3657. Fixed the bug that prefixLength of split bucket which doesn't include
  3658. local node ID is incremented.
  3659. * src/DHTBucket.cc
  3660. * src/DHTBucket.h
  3661. * test/DHTBucketTest.cc
  3662. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3663. Added cookies.sqlite to EXTRA_DIST
  3664. * test/Makefile.am
  3665. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3666. Added Turkish translation. Updated French, German, Russian and
  3667. Simplified Chinese translations. Thanks to all translators.
  3668. * po/LINGUAS
  3669. * po/de.po
  3670. * po/fr.po
  3671. * po/ru.po
  3672. * po/tr.po
  3673. * po/zh_CN.po
  3674. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3675. Added deliminating text to the beginning of the log so that one can find
  3676. where the log starts easily.
  3677. * src/main.cc
  3678. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3679. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  3680. to fix compile error when async DNS is not enabled by configuration.
  3681. * src/AbstractCommand.cc
  3682. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3683. If establishing conneciton to a server is failed, then mark error on
  3684. its ServerStat.
  3685. Added the cause of error to log when error event occurred.
  3686. Moved message string to message.h for translation.
  3687. * src/AbstractCommand.cc
  3688. * src/AbstractCommand.h
  3689. * src/FtpNegotiationCommand.cc
  3690. * src/HttpRequestCommand.cc
  3691. * src/PeerAbstractCommand.cc
  3692. * src/message.h
  3693. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3694. Added the function to get error message from socket.
  3695. * src/SocketCore.cc
  3696. * src/SocketCore.h
  3697. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3698. Added convenient method RequestGroupMan::getOrCreateServerStat()
  3699. * src/RequestGroupMan.cc
  3700. * src/RequestGroupMan.h
  3701. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3702. If error event is received in epoll, then abort download immediately.
  3703. * src/AbstractCommand.cc
  3704. * src/Command.cc
  3705. * src/Command.h
  3706. * src/DownloadEngine.cc
  3707. * src/PeerAbstractCommand.cc
  3708. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3709. Added usage message for --uri-selector, --server-stat-of,
  3710. --server-stat-in, --server-stat-timeout options.
  3711. * src/HelpItemFactory.cc
  3712. * src/usage_text.h
  3713. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3714. Added upper limit of FTP response buffer. The current implementation
  3715. uses 4096bytes as a limit.
  3716. * src/FtpConnection.cc
  3717. * src/FtpConnection.h
  3718. * test/FtpConnectionTest.cc
  3719. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3720. Use non-blocking socket for TCP communication to avoid possible
  3721. blocking due to buffer full.
  3722. * src/AbstractProxyRequestCommand.cc
  3723. * src/FtpConnection.cc
  3724. * src/FtpConnection.h
  3725. * src/FtpNegotiationCommand.cc
  3726. * src/FtpNegotiationCommand.h
  3727. * src/HttpConnection.cc
  3728. * src/HttpConnection.h
  3729. * src/HttpRequestCommand.cc
  3730. * src/InitiatorMSEHandshakeCommand.cc
  3731. * src/InitiatorMSEHandshakeCommand.h
  3732. * src/MSEHandshake.cc
  3733. * src/MSEHandshake.h
  3734. * src/Makefile.am
  3735. * src/PeerConnection.cc
  3736. * src/PeerConnection.h
  3737. * src/PeerInteractionCommand.cc
  3738. * src/PeerListenCommand.cc
  3739. * src/ReceiverMSEHandshakeCommand.cc
  3740. * src/ReceiverMSEHandshakeCommand.h
  3741. * src/SocketBuffer.cc
  3742. * src/SocketBuffer.h
  3743. * src/SocketCore.cc
  3744. * src/SocketCore.h
  3745. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3746. Call setStatusRealtime() in constructor.
  3747. * src/RealtimeCommand.cc
  3748. * src/RealtimeCommand.h
  3749. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3750. Call Download::setNoWait(true) to execute newly created command without
  3751. a pause.
  3752. * src/AbstractCommand.cc
  3753. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3754. Added --max-file-not-found=NUM option. If aria2 receives `file not
  3755. found' error from HTTP/FTP server NUM times without getting single
  3756. bytes of data, then force the download to fail.
  3757. Basically aria2 tris all URIs available. So if long list of URIs are
  3758. specified in Metalink, then aria2 will take a long time to fail
  3759. eventually if all URIs are outdated. This option eases this situation
  3760. to limit the number of servers to try.
  3761. * src/FtpNegotiationCommand.cc
  3762. * src/HelpItemFactory.cc
  3763. * src/HttpResponseCommand.cc
  3764. * src/OptionHandlerFactory.cc
  3765. * src/PeerStat.h
  3766. * src/RequestGroup.cc
  3767. * src/RequestGroup.h
  3768. * src/SegmentMan.cc
  3769. * src/SegmentMan.h
  3770. * src/option_processing.cc
  3771. * src/prefs.cc
  3772. * src/prefs.h
  3773. * src/usage_text.h
  3774. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3775. Fixed the bug that bulkReceiveResponse() reads all received data as a
  3776. response even if more than one response is in it.
  3777. * src/FtpConnection.cc
  3778. * src/FtpConnection.h
  3779. * test/FtpConnectionTest.cc
  3780. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3781. Merged from stable-0.15
  3782. * m4/libcares.m4
  3783. Use pkg-config
  3784. * m4/sqlite3.m4
  3785. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3786. Removed unnecessary if statement.
  3787. * src/DefaultPieceStorage.cc (initPieceStorage)
  3788. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3789. Added --connect-timeout option to specify connect timeout in seconds.
  3790. This option is in effect for HTTP/FTP/proxy server. The timeout for
  3791. connecting to BitTorrent peer is not controlled by this option.
  3792. * src/AbstractProxyRequestCommand.cc
  3793. * src/FtpNegotiationCommand.cc
  3794. * src/HelpItemFactory.cc
  3795. * src/HttpRequestCommand.cc
  3796. * src/OptionHandlerFactory.cc
  3797. * src/option_processing.cc
  3798. * src/prefs.cc
  3799. * src/prefs.h
  3800. * src/usage_text.h
  3801. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3802. Added help message for -R option.
  3803. * src/HelpItemFactory.cc
  3804. * src/usage_text.h
  3805. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3806. Added the message that the time is in local time zone.
  3807. * src/RequestGroup.cc
  3808. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3809. Implemented the ability to get timestamp from remote FTP server using
  3810. MDTM command described in RFC3659.
  3811. * src/FtpConnection.cc
  3812. * src/FtpConnection.h
  3813. * src/FtpNegotiationCommand.cc
  3814. * src/FtpNegotiationCommand.h
  3815. * test/FtpConnectionTest.cc
  3816. * test/Makefile.am
  3817. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3818. Implemented the ability to get timestamp from remote HTTP server and
  3819. apply it to local file. To enable this feature, --remote-time option
  3820. is added. No usage text has been written yet.
  3821. If several servers returns difference timestamp, then aria2 uses latest
  3822. one.
  3823. * src/CopyDiskAdaptor.cc
  3824. * src/CopyDiskAdaptor.h
  3825. * src/DirectDiskAdaptor.cc
  3826. * src/DirectDiskAdaptor.h
  3827. * src/DiskAdaptor.h
  3828. * src/File.cc
  3829. * src/File.h
  3830. * src/HttpHeader.cc
  3831. * src/HttpHeader.h
  3832. * src/HttpResponse.cc
  3833. * src/HttpResponse.h
  3834. * src/HttpResponseCommand.cc
  3835. * src/HttpResponseCommand.h
  3836. * src/MultiDiskAdaptor.cc
  3837. * src/MultiDiskAdaptor.h
  3838. * src/OptionHandlerFactory.cc
  3839. * src/RequestGroup.cc
  3840. * src/RequestGroup.h
  3841. * src/RequestGroupMan.cc
  3842. * src/option_processing.cc
  3843. * src/prefs.cc
  3844. * src/prefs.h
  3845. * test/CopyDiskAdaptorTest.cc
  3846. * test/FileTest.cc
  3847. * test/Makefile.am
  3848. * test/Makefile.in
  3849. * test/MultiDiskAdaptorTest.cc
  3850. * test/TestUtil.cc
  3851. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3852. Fixed the bug that DiskWriterEntry is not created when its
  3853. FileEntry.isRequested() is false and it doesn't share a piece with
  3854. other FileEntries that are requested. This bug causes segmentation fault
  3855. in the end.
  3856. * src/MultiDiskAdaptor.cc
  3857. * src/MultiDiskAdaptor.h
  3858. * src/MultiFileAllocationIterator.cc
  3859. * test/MultiDiskAdaptorTest.cc
  3860. * test/MultiFileAllocationIteratorTest.cc
  3861. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3862. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  3863. called if the number of file entries are greater than max open files.
  3864. * src/AbstractSingleDiskAdaptor.cc
  3865. * src/AbstractSingleDiskAdaptor.h
  3866. * src/DiskAdaptor.h
  3867. * src/MultiDiskAdaptor.cc
  3868. * src/MultiDiskAdaptor.h
  3869. * test/MultiDiskAdaptorTest.cc
  3870. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3871. Added a constuctor that receives struct timeval.
  3872. Added operator<.
  3873. * src/TimeA2.cc
  3874. * src/TimeA2.h
  3875. * test/TimeTest.cc
  3876. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3877. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  3878. * src/CookieParser.cc
  3879. * test/CookieParserTest.cc
  3880. * test/HttpResponseTest.cc
  3881. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3882. Implmented the functions to parse date.
  3883. * src/TimeA2.cc
  3884. * src/TimeA2.h
  3885. * test/TimeTest.cc
  3886. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3887. Added "Firefox3 Cookie" feature to FeatureConfig
  3888. * src/FeatureConfig.cc
  3889. * src/FeatureConfig.h
  3890. * test/FeatureConfigTest.cc
  3891. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3892. Bump up version number to 0.16.0b
  3893. * configure.ac
  3894. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3895. Use pkg-config if is is available.
  3896. * m4/openssl.m4
  3897. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3898. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  3899. * src/BtAnnounce.h
  3900. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3901. If an error occurred with a URI, remove identical URI from remaining
  3902. URI list because it is likely that same error occurred in the end and it
  3903. is waste of time.
  3904. * src/AbstractCommand.cc
  3905. * src/RequestGroup.cc
  3906. * src/RequestGroup.h
  3907. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3908. Removed wrong comment.
  3909. * src/DefaultPeerStorage.cc
  3910. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3911. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  3912. Added return value of getpid() to argument of srand() to achieve more
  3913. randomized value.
  3914. * src/SimpleRandomizer.cc
  3915. * src/SimpleRandomizer.h
  3916. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3917. Contact tracker frequently when the number of connections are 0 and
  3918. download is not finished yet.
  3919. * src/ActivePeerConnectionCommand.cc
  3920. * src/BtAnnounce.h
  3921. * src/DefaultBtAnnounce.cc
  3922. * src/DefaultBtAnnounce.h
  3923. * test/MockBtAnnounce.h
  3924. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3925. Moved threshold values to UTPexExtensionMessage.
  3926. * src/DefaultBtInteractive.cc
  3927. * src/Peer.cc
  3928. * src/Peer.h
  3929. * src/UTPexExtensionMessage.cc
  3930. * src/UTPexExtensionMessage.h
  3931. * test/UTPexExtensionMessageTest.cc
  3932. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3933. Added _incoming member to Peer class and made it true if the peer
  3934. initiated connection. Don't add those peer to UTPex message.
  3935. If extended handshake is received, assign _incoming to false.
  3936. * src/DefaultBtInteractive.cc
  3937. * src/HandshakeExtensionMessage.cc
  3938. * src/Peer.cc
  3939. * src/Peer.h
  3940. * src/PeerListenCommand.cc
  3941. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3942. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  3943. Encoding Decoder. Removed size threshold for turning off on the fly
  3944. inflation because resulting file may or may not be inflated depending
  3945. on the file size and I think it is not expected by users.
  3946. This change fixes segmentation fault when Metalink file contains gzipped
  3947. file and its filesize is provided.
  3948. * src/HttpResponseCommand.cc
  3949. * src/HttpResponseCommand.h
  3950. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3951. Made Cookie immutable.
  3952. * src/Cookie.cc
  3953. * src/Cookie.h
  3954. * src/CookieParser.cc
  3955. * src/CookieParser.h
  3956. * src/CookieStorage.cc
  3957. * test/CookieParserTest.cc
  3958. * test/CookieStorageTest.cc
  3959. * test/NsCookieParserTest.cc
  3960. * test/Sqlite3MozCookieParserTest.cc
  3961. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3962. Removed CookieBox, CookieBoxFactory.
  3963. * src/CookieBox.cc
  3964. * src/CookieBox.h
  3965. * src/CookieBoxFactory.cc
  3966. * src/CookieBoxFactory.h
  3967. * src/Makefile.am
  3968. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3969. Use CookieStorage class instead of CookieBox class.
  3970. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  3971. * src/AbstractProxyRequestCommand.cc
  3972. * src/CookieStorage.cc
  3973. * src/DownloadEngine.cc
  3974. * src/DownloadEngine.h
  3975. * src/HttpConnection.cc
  3976. * src/HttpConnection.h
  3977. * src/HttpRequest.cc
  3978. * src/HttpRequest.h
  3979. * src/HttpRequestCommand.cc
  3980. * src/HttpResponse.cc
  3981. * src/HttpResponseCommand.cc
  3982. * src/HttpSkipResponseCommand.cc
  3983. * src/Makefile.am
  3984. * src/MultiUrlRequestInfo.cc
  3985. * src/Request.cc
  3986. * src/Request.h
  3987. * src/main.cc
  3988. * test/AllTest.cc
  3989. * test/CookieStorageTest.cc
  3990. * test/CookieTest.cc
  3991. * test/HttpRequestTest.cc
  3992. * test/HttpResponseTest.cc
  3993. * test/Makefile.am
  3994. * test/NsCookieParserTest.cc
  3995. * test/Sqlite3MozCookieParserTest.cc
  3996. * test/nscookietest.txt
  3997. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3998. Updated
  3999. * test/Cookies.sqlite
  4000. * test/nscookietest.txt
  4001. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4002. Added tests for CookieStorage::load()
  4003. * test/CookieStorageTest.cc
  4004. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4005. Added CookieStorage class which is based on RFC2109 and manages cookies
  4006. more strictly than CookieBox and CookieBoxFactory class.
  4007. * src/CookieStorage.cc
  4008. * src/CookieStorage.h
  4009. * src/Cookie.cc
  4010. * src/Cookie.h
  4011. * test/CookieStorageTest.cc
  4012. * test/CookieTest.cc
  4013. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4014. Fixed the bug that commands are created more than the number of pieces.
  4015. * src/RequestGroup.cc
  4016. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4017. Fixed infinite loop bug in FTP when SIZE command failed.
  4018. * src/FtpNegotiationCommand.cc
  4019. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4020. Removed DirectDiskAdaptorTest.h
  4021. * test/Makefile.am
  4022. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4023. Fixed chunk checksum validation cannot detect trailing garbage data.
  4024. BUG#2074141
  4025. * src/AbstractSingleDiskAdaptor.cc
  4026. * src/AbstractSingleDiskAdaptor.h
  4027. * src/CheckIntegrityEntry.cc
  4028. * src/CheckIntegrityEntry.h
  4029. * src/DiskAdaptor.h
  4030. * src/MultiDiskAdaptor.cc
  4031. * src/MultiDiskAdaptor.h
  4032. * src/RequestGroup.cc
  4033. * test/DirectDiskAdaptorTest.cc
  4034. * test/MultiDiskAdaptorTest.cc
  4035. * test/TestUtil.cc
  4036. * test/TestUtil.h
  4037. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4038. Bump up version number of dht.dat file to 3. In version 3 format, time
  4039. is stored in 64bit, network byte order.
  4040. New build can load old format(version 2) but it saves the file in new
  4041. format. It means once you used new build, your dht.dat becomes
  4042. incompatible with older build.
  4043. * src/DHTRoutingTableDeserializer.cc
  4044. * src/DHTRoutingTableSerializer.cc
  4045. * test/DHTRoutingTableSerializerTest.cc
  4046. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4047. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  4048. * test/Makefile.am
  4049. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4050. Bump up version number of .aria2 control file to 0001.
  4051. New aria2 can still load version 0000 file but it saves the file in
  4052. version 0001 format. It means that new aria2 can resume download
  4053. started by old aria2 but the opposite is not true.
  4054. * src/DefaultBtProgressInfoFile.cc
  4055. * src/DefaultBtProgressInfoFile.h
  4056. * test/DefaultBtProgressInfoFileTest.cc
  4057. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4058. Added ntoh64 and hton64 as inline functions.
  4059. * src/Util.cc
  4060. * test/UtilTest.cc
  4061. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4062. Added sqlite3 depenency and Firefox3 cookie support.
  4063. * README
  4064. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4065. State that firefox3 cookie is supported explicitly in the usage.
  4066. * src/usage_text.h
  4067. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4068. Externalized message.
  4069. * src/RequestGroupMan.cc
  4070. * src/message.h
  4071. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4072. Save temporary file first and rename to the destination on success.
  4073. Added test cases.
  4074. * src/RequestGroupMan.cc
  4075. * test/RequestGroupManTest.cc
  4076. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4077. Fixed the bug that the number of connected peer is exceeding the limit
  4078. (55 by default) in seeding mode.
  4079. Multiplied 0.8 to _maxUploadSpeedLimit.
  4080. * src/ActivePeerConnectionCommand.cc
  4081. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4082. Clear table item.
  4083. * src/Dictionary.cc
  4084. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4085. Fixed error handling of lseek.
  4086. * src/AbstractDiskWriter.cc
  4087. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4088. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  4089. style cookie file.
  4090. * src/usage_text.h
  4091. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4092. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  4093. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  4094. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  4095. * src/Util.cc
  4096. * src/Util.h
  4097. * src/CookieParser.cc
  4098. * test/UtilTest.cc
  4099. * test/CookieParserTest.cc
  4100. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4101. Separate the implementation to load old mozilla format of cookie to
  4102. NsCookieParser class.
  4103. * src/CookieBoxFactory.cc
  4104. * src/CookieBoxFactory.h
  4105. * src/NsCookieParser.cc
  4106. * src/NsCookieParser.h
  4107. * test/NsCookieParserTest.cc
  4108. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4109. Made parse() const
  4110. * src/Sqlite3MozCookieParser.cc
  4111. * src/Sqlite3MozCookieParser.h
  4112. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4113. Added firefox3 cookie support based on the patch submitted by
  4114. tizianomueller.
  4115. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  4116. this functionality.
  4117. * configure.ac
  4118. * m4/sqlite3.m4
  4119. * src/CookieBoxFactory.cc
  4120. * src/CookieBoxFactory.h
  4121. * src/Makefile.am
  4122. * src/Makefile.in
  4123. * src/Sqlite3MozCookieParser.cc
  4124. * src/Sqlite3MozCookieParser.h
  4125. * src/main.cc
  4126. * test/CookieBoxFactoryTest.cc
  4127. * test/Makefile.am
  4128. * test/Makefile.in
  4129. * test/Sqlite3MozCookieParserTest.cc
  4130. * test/badcookies.sqlite
  4131. * test/cookies.sqlite
  4132. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4133. Added Danish and Greek translations.
  4134. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  4135. Great thanks to all translators.
  4136. * po/LINGUAS
  4137. * po/el.po
  4138. * po/da.po
  4139. * po/es.po
  4140. * po/ca.po
  4141. * po/nn.po
  4142. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4143. Fixed man page: --follow-bittorrent should be --follow-torrent
  4144. * doc/aria2c.1.txt
  4145. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4146. Fixed: numCommand is less than the value specified in -C option.
  4147. * src/RequestGroup.cc
  4148. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4149. Fixed occasional assertion failure in PieceSegment.
  4150. Calling PieceStorage::getMissingPiece(size_t) was missing after
  4151. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  4152. creation of duplicate segments and one of the segment was finished then
  4153. assertion failure was caused.
  4154. * src/SegmentMan.cc
  4155. * test/SegmentManTest.cc
  4156. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4157. Added options to load/save the server's performance/status to a file
  4158. and the timeout to drop their data.
  4159. --server-stat-of=FILE specifies the file to which performance data
  4160. is saved.
  4161. --server-stat-if=FILE specifies the file to read previously saved
  4162. by --server-stat-of option. Might be used with --uri-selector=feedback.
  4163. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  4164. TIMEOUT is specified in seconds and the default value is 24hours.
  4165. * src/MultiUrlRequestInfo.cc
  4166. * src/OptionHandlerFactory.cc
  4167. * src/RequestGroupMan.cc
  4168. * src/RequestGroupMan.h
  4169. * src/ServerStatMan.cc
  4170. * src/ServerStatMan.h
  4171. * src/option_processing.cc
  4172. * src/prefs.cc
  4173. * src/prefs.h
  4174. * test/ServerStatManTest.cc
  4175. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4176. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  4177. * src/ServerStatMan.cc
  4178. * src/ServerStatMan.h
  4179. * test/ServerStatManTest.cc
  4180. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4181. Implemented ServerStatMan::load(...) function and its test case.
  4182. * src/ServerStat.cc
  4183. * src/ServerStat.h
  4184. * src/ServerStatMan.cc
  4185. * test/ServerStatManTest.cc
  4186. * test/ServerStatTest.cc
  4187. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4188. Use time_t instead of int32_t. Use int64_t where milli second is
  4189. expected.
  4190. * src/TimeA2.cc
  4191. * src/TimeA2.h
  4192. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4193. Implemented ServerStatMan::save(...) function and its test case.
  4194. * src/ServerStat.cc
  4195. * src/ServerStat.h
  4196. * src/ServerStatMan.cc
  4197. * src/ServerStatMan.h
  4198. * test/ServerStatManTest.cc
  4199. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4200. Now aria2 uses name attribute in Metalink as local filename in
  4201. BitTorrent downloads. BUG#2033999
  4202. * src/BtContext.h
  4203. * src/BtDependency.cc
  4204. * src/DefaultBtContext.cc
  4205. * src/DefaultBtContext.h
  4206. * src/SingleFileDownloadContext.cc
  4207. * src/SingleFileDownloadContext.h
  4208. * test/BtDependencyTest.cc
  4209. * test/DefaultBtContextTest.cc
  4210. * test/MockBtContext.h
  4211. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4212. Added AC_C_BIGENDIAN
  4213. * src/configure.ac
  4214. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4215. Limited numCommand less than or equal to the number of piece.
  4216. * src/RequestGroup.cc
  4217. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4218. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  4219. directive.
  4220. * test/DefaultPieceStorageTest.cc
  4221. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4222. Fixed memory leak in test code
  4223. * test/AnnounceListTest.cc
  4224. * test/DefaultPeerListProcessorTest.cc
  4225. * test/DefaultPeerStorageTest.cc
  4226. * test/MetaFileUtilTest.cc
  4227. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4228. Fixed wrong argument passing to BitfieldMan::isBitSet()
  4229. * src/DefaultPieceStorage.cc
  4230. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4231. Initialized _directIOAllowed
  4232. * src/MultiDiskAdaptor.cc
  4233. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4234. Fixed memory leak
  4235. * src/GZipDecoder.cc
  4236. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4237. Fixed memory leak
  4238. * src/MetalinkParserStateMachine.cc
  4239. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4240. Fixed memory leak
  4241. * src/Dictionary.cc
  4242. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4243. Fixed memory leak
  4244. * src/IteratableChunkChecksumValidator.h
  4245. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4246. Fixed unmatched malloc/free.
  4247. * src/IteratableChunkChecksumValidator.cc
  4248. * src/IteratableChecksumValidator.cc
  4249. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4250. Removed max chunk size check. This change fixes BUG#2040169
  4251. * src/ChunkedDecoder.cc
  4252. * src/ChunkedDecoder.h
  4253. * test/ChunkedDecoderTest.cc
  4254. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4255. Implemented download speed based URI selection algorithm.
  4256. Introduced new option --uri-selector.
  4257. If --uri-selector=feedback is given, aria2 uses download speed observed
  4258. in the previous downloads and chooses fastest server in the URI list.
  4259. Currently at most 10 URIs are considered to introduce randomeness for
  4260. finding better servers. The speed is average download speed in the
  4261. downloads.
  4262. On the other hand, if --uri-selector=inorder is given, which is default,
  4263. URI is tried in order in URI list.
  4264. The usage text for the new option has not been written yet.
  4265. * src/AbstractCommand.cc
  4266. * src/DownloadCommand.cc
  4267. * src/DownloadEngine.cc
  4268. * src/DownloadEngineFactory.cc
  4269. * src/InOrderURISelector.cc
  4270. * src/InOrderURISelector.h
  4271. * src/OptionHandlerFactory.cc
  4272. * src/PeerStat.h
  4273. * src/RequestGroup.cc
  4274. * src/RequestGroup.h
  4275. * src/RequestGroupMan.cc
  4276. * src/RequestGroupMan.h
  4277. * src/SegmentMan.cc
  4278. * src/SegmentMan.h
  4279. * src/ServerStat.cc
  4280. * src/ServerStat.h
  4281. * src/ServerStatMan.cc
  4282. * src/ServerStatMan.h
  4283. * src/ServerStatURISelector.cc
  4284. * src/ServerStatURISelector.h
  4285. * src/URISelector.h
  4286. * src/option_processing.cc
  4287. * src/prefs.cc
  4288. * src/prefs.h
  4289. * test/InOrderURISelectorTest.cc
  4290. * test/RequestGroupManTest.cc
  4291. * test/ServerStatManTest.cc
  4292. * test/ServerStatURISelectorTest.cc
  4293. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4294. * Release 0.15.1+2
  4295. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4296. Bump up version number to 0.15.1+2
  4297. * configure.ac
  4298. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4299. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  4300. * m4/aria2_arg.m4
  4301. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4302. * Release 0.15.1+1
  4303. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4304. Bump up version number to 0.15.1+1
  4305. * configure.ac
  4306. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4307. Fixed the bug that causes segmentaion fault when resuming download
  4308. using metalink without size tag. Reproducible only using HTTP URI.
  4309. * src/HttpResponseCommand.cc
  4310. * src/FtpNegotiationCommand.cc
  4311. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4312. * Release 0.15.1
  4313. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4314. Updated Bulgarian and French translations, thanks to all translators.
  4315. * po/bg.po
  4316. * po/fr.po
  4317. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4318. Bump up version number to 0.15.1
  4319. * configure.ac
  4320. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4321. Avoid repeated call of gettimeofday() when calculating speed.
  4322. * src/SpeedCalc.cc
  4323. * src/SpeedCalc.h
  4324. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4325. Removed writable check when socket's send buffer is full in BitTorrent
  4326. downloads to lower CPU usage.
  4327. * src/PeerInteractionCommand.cc
  4328. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4329. Fixed broken gzip inflation.
  4330. Turn off segmented downloading if gzip content is smaller than or equal
  4331. to 1MiB and inflate the data on the fly, because HTTP response header
  4332. doesn't contain the length of inflated file we can't determin where
  4333. the chunk of data should be written.
  4334. On the other hand, if gzip content is larger than 1MB, then turn off
  4335. on the fly inflation, because some servers returns "content-type: gzip"
  4336. for *.tgz, *.gz files.
  4337. * src/DownloadCommand.cc
  4338. * src/HttpResponseCommand.cc
  4339. * src/HttpResponseCommand.h
  4340. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4341. Applied tizianomueller's patch to fix compile error.
  4342. * test/BitfieldManTest.cc
  4343. * test/BtRequestMessageTest.cc
  4344. * test/DefaultBtContextTest.cc
  4345. * test/DefaultDiskWriterTest.cc
  4346. * test/DefaultPieceStorageTest.cc
  4347. * test/HttpHeaderProcessorTest.cc
  4348. * test/HttpResponseTest.cc
  4349. * test/Metalink2RequestGroupTest.cc
  4350. * test/MetalinkParserControllerTest.cc
  4351. * test/MetalinkProcessorTest.cc
  4352. * test/PeerSessionResourceTest.cc
  4353. * test/UtilTest.cc
  4354. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4355. * Release 0.15.0
  4356. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4357. Reordered src files in POTFILES.in so that usage text appears first.
  4358. * po/POTFILES.in
  4359. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4360. Bump up version number to 0.15.0
  4361. * configure.ac
  4362. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4363. Added Bulgarian translation.
  4364. Updated Catalan, Spanish, French and Japanese translations.
  4365. Thanks to all translators.
  4366. * po/LINGUAS
  4367. * po/bg.po
  4368. * po/ca.po
  4369. * po/es.po
  4370. * po/fr.po
  4371. * po/ja.po
  4372. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4373. Updated feature list. Added libz for dependency section.
  4374. Added a description about unit testing using CppUnit.
  4375. * README
  4376. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4377. Added a test for libz. Quoted where it is necessary.
  4378. * build_test.sh
  4379. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4380. Added GZip to `Enabled Features' list.
  4381. * src/FeatureConfig.cc
  4382. * src/FeatureConfig.h
  4383. * test/FeatureConfigTest.cc
  4384. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4385. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  4386. the transfer has not yet started.
  4387. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  4388. * src/SegmentMan.cc
  4389. * src/SegmentMan.h
  4390. * test/SegmentManTest.cc
  4391. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4392. Cache last calculated average download/upload speed.
  4393. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  4394. cached value.
  4395. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  4396. * src/PeerStat.h
  4397. * src/SpeedCalc.cc
  4398. * src/SpeedCalc.h
  4399. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4400. Call parseUrl directly.
  4401. * src/Request.cc (resetUrl)
  4402. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4403. Supported absolute/relative path in Location header field.
  4404. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  4405. * src/HttpHeader.cc
  4406. * src/HttpHeader.h
  4407. * src/HttpResponse.cc
  4408. * src/HttpSkipResponseCommand.cc
  4409. * src/Request.cc
  4410. * test/HttpHeaderTest.cc
  4411. * test/HttpResponseTest.cc
  4412. * test/RequestTest.cc
  4413. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4414. Changed help text for --load-cookie option.
  4415. * doc/aria2c.1.txt
  4416. * src/usage_text.h
  4417. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4418. Regenerated test/Makefile.in to remove stale ChangeLog.
  4419. * test/Makefile.in
  4420. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4421. Updated po files.
  4422. * po/aria2c.pot
  4423. * po/*.po
  4424. * po/*.gmo
  4425. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4426. Bump up version number to 0.15.0b
  4427. * configure.ac
  4428. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4429. Externalize messages.
  4430. * src/RequestGroupMan.cc
  4431. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  4432. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4433. Use File::exists() instead of File::isFile() to allow non-regular file
  4434. such as block special files.
  4435. * src/AbstractDiskWriter.cc
  4436. * src/MultiDiskWriter.cc
  4437. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4438. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  4439. * src/gai_strerror.h
  4440. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4441. Fixed compile error. Thanks gknauf for the patch.
  4442. * src/asctime_r.c
  4443. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4444. Included asctime_r.h from a2time.h.
  4445. * src/a2time.h
  4446. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4447. Added a message "aria2 doesn't verify signature" to log message when
  4448. signature file is saved.
  4449. * src/RequestGroupMan.cc
  4450. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4451. Added the ability to save signature when download is completed if
  4452. signature is available. The filename of signature file is the path to
  4453. download file followed by ".sig". If it already exists, then signature
  4454. will not be saved.
  4455. * src/RequestGroupMan.cc
  4456. * src/Signature.cc
  4457. * test/SignatureTest.cc
  4458. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4459. Updated the descriptions for --bt-seed-unverified.
  4460. * doc/aria2c.1
  4461. * doc/aria2c.1.html
  4462. * doc/aria2c.1.txt
  4463. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4464. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  4465. that this is not going to verify files using piece hashes.
  4466. * src/HelpItemFactory.cc
  4467. * src/OptionHandlerFactory.cc
  4468. * src/RequestGroup.cc
  4469. * src/option_processing.cc
  4470. * src/prefs.cc
  4471. * src/prefs.h
  4472. * src/usage_text.h
  4473. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4474. Added the ability to retrieve signature from Metalink file.
  4475. A retrieved signature is stored in Signature class and it is held by
  4476. DownloadContext class. Note that aria2 doesn't verify signature.
  4477. * src/DownloadContext.cc
  4478. * src/DownloadContext.h
  4479. * src/Makefile.am
  4480. * src/Makefile.in
  4481. * src/Metalink2RequestGroup.cc
  4482. * src/MetalinkEntry.cc
  4483. * src/MetalinkEntry.h
  4484. * src/MetalinkParserController.cc
  4485. * src/MetalinkParserController.h
  4486. * src/MetalinkParserStateMachine.cc
  4487. * src/MetalinkParserStateMachine.h
  4488. * src/Signature.cc
  4489. * src/Signature.h
  4490. * src/SignatureMetalinkParserState.cc
  4491. * src/SignatureMetalinkParserState.h
  4492. * src/VerificationMetalinkParserState.cc
  4493. * src/VerificationMetalinkParserState.h
  4494. * test/Metalink2RequestGroupTest.cc
  4495. * test/MetalinkParserControllerTest.cc
  4496. * test/MetalinkProcessorTest.cc
  4497. * test/test.xml
  4498. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4499. Close DiskAdaptor after renaming file.
  4500. * src/RequestGroup.cc
  4501. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4502. Corrected indentation
  4503. * src/DefaultBtProgressInfoFile.cc
  4504. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4505. Moved the calls of std::ios::exceptions() inside of try-catch block
  4506. because if an error occurred in constructor of std::fstream, then
  4507. exception is thrown immediately when std::ios::exceptions() is called
  4508. which results unhandled exception and aria2c aborts.
  4509. * src/DefaultBtProgressInfoFile.cc
  4510. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4511. Added the test for the previous change in DefaultBtContext.cc
  4512. * test/DefaultBtContextTest.cc
  4513. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4514. Fixed the bug that causes infinite loop when the number of pieces are
  4515. fewer than allowed fast set size which is 10 by default.
  4516. * src/DefaultBtContext.cc
  4517. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4518. Updated the descriptions for -j, -s. Added --bt-seed.
  4519. * doc/aria2c.1
  4520. * doc/aria2c.1.html
  4521. * doc/aria2c.1.txt
  4522. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4523. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  4524. aria2 seeds previously downloaded files without validating piece hashs.
  4525. * src/HelpItemFactory.cc
  4526. * src/OptionHandlerFactory.cc
  4527. * src/RequestGroup.cc
  4528. * src/option_processing.cc
  4529. * src/prefs.cc
  4530. * src/prefs.h
  4531. * src/usage_text.h
  4532. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4533. Updated DESCRIPTION of man page.
  4534. * doc/aria2c.1
  4535. * doc/aria2c.1.html
  4536. * doc/aria2c.1.txt
  4537. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4538. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  4539. Don't define `struct addrinfo' when __sun is defined.
  4540. * src/getaddrinfo.h
  4541. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4542. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  4543. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  4544. second argument is of type `struct _stati64'. Otherwise it is defined as
  4545. `struct stat'.
  4546. * src/AbstractDiskWriter.cc
  4547. * src/File.cc
  4548. * src/File.h
  4549. * src/a2io.h
  4550. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4551. Fixed the compile error in hurd-i386
  4552. See the original bug report:
  4553. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  4554. * src/a2io.h
  4555. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4556. Code cleanup.
  4557. * src/PeerAbstractCommand.cc
  4558. * src/PeerAbstractCommand.h
  4559. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4560. Removed TransferEncoding.
  4561. * src/DownloadCommand.cc
  4562. * src/DownloadCommand.h
  4563. * src/HttpResponseCommand.cc
  4564. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4565. Updated po files.
  4566. * po/aria2c.pot
  4567. * po/*.po
  4568. * po/*.gmo
  4569. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4570. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  4571. * src/A2STR.cc
  4572. * src/A2STR.h
  4573. * src/ChunkedDecoder.cc
  4574. * src/ChunkedDecoder.h
  4575. * src/ChunkedEncoding.cc: Removed
  4576. * src/ChunkedEncoding.h: Removed
  4577. * src/DownloadCommand.cc
  4578. * src/DownloadCommand.h
  4579. * src/HttpDownloadCommand.cc
  4580. * src/HttpResponse.cc
  4581. * src/HttpResponse.h
  4582. * src/HttpResponseCommand.cc
  4583. * src/HttpSkipResponseCommand.cc
  4584. * src/HttpSkipResponseCommand.h
  4585. * src/Makefile.am
  4586. * src/TransferEncoding.h: Removed
  4587. * test/ChunkedDecoderTest.cc
  4588. * test/ChunkedEncodingTest.cc: Removed
  4589. * test/HttpResponseTest.cc
  4590. * test/Makefile.am
  4591. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4592. Use append instead of insert.
  4593. * src/GZipDecoder.cc
  4594. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4595. Updated doc
  4596. * src/Decoder.h
  4597. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4598. Updated usage text for -s option.
  4599. * src/usage_text.h
  4600. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4601. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  4602. * src/Request.cc
  4603. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4604. Cleaned up configure.ac.
  4605. * configure.ac
  4606. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4607. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  4608. AC_ARG_ENABLE.
  4609. * configure.ac
  4610. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4611. Added gzip, deflate decoding support in HTTP using libz. If compiled
  4612. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  4613. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  4614. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  4615. fly and writes decoded data to a local disk.
  4616. * README
  4617. * README.html
  4618. * configure.ac
  4619. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  4620. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  4621. * m4/libz.m4
  4622. * src/Decoder.h
  4623. * src/DownloadCommand.cc
  4624. * src/DownloadCommand.h
  4625. * src/Exception.h
  4626. * src/GZipDecoder.cc
  4627. * src/GZipDecoder.h
  4628. * src/HttpHeader.cc
  4629. * src/HttpHeader.h
  4630. * src/HttpRequest.cc
  4631. * src/HttpRequest.h
  4632. * src/HttpResponse.cc
  4633. * src/HttpResponse.h
  4634. * src/HttpResponseCommand.cc
  4635. * src/Makefile.am
  4636. * test/GZipDecoderTest.cc
  4637. * test/HttpRequestTest.cc
  4638. * test/HttpResponseTest.cc
  4639. * test/Makefile.am
  4640. * test/Makefile.in
  4641. * test/gzip_decode_test.gz
  4642. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4643. Clarified usage of -j option.
  4644. * src/usage_text.h
  4645. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4646. Disabled getting size from the response of RETR.
  4647. If SIZE command failed, then disable resuming and segmented downloading.
  4648. * src/FtpConnection.cc
  4649. * src/FtpConnection.h
  4650. * src/FtpNegotiationCommand.cc
  4651. * src/FtpNegotiationCommand.h
  4652. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4653. Use digits to find first byte of file size, which makes the intention
  4654. of the code clearer.
  4655. * src/FtpConnection.cc
  4656. Don't call validateTotalLength() when size is 0.
  4657. * src/FtpNegotiationCommand.cc
  4658. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4659. Updated po files.
  4660. * po/aria2c.pot
  4661. * po/*.gmo
  4662. * po/*.po
  4663. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4664. Clarified usage text for --split option.
  4665. * src/usage_text.h
  4666. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4667. Bump up version number to 0.15.0dev. "dev" means "development"
  4668. version, which means I started the development of the next release!
  4669. * src/configure.ac
  4670. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4671. If FTP server returns negative response with REST raw command and
  4672. requested range is not 0, throw exception. If requested range is 0,
  4673. continue download a file from 0 byte.
  4674. * src/FtpNegotiationCommand.cc
  4675. * src/FtpNegotiationCommand.h
  4676. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4677. Supported FTP server which don't recognize SIZE raw command.
  4678. If SIZE raw command is failed, aria2 will try to get file size
  4679. from the response of RETR raw command. If both attempts are failed,
  4680. then resuming and segmented downloading are disabled.
  4681. * src/FtpConnection.cc
  4682. * src/FtpConnection.h
  4683. * src/FtpNegotiationCommand.cc
  4684. * src/FtpNegotiationCommand.h
  4685. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4686. * Release 0.14.0+1
  4687. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4688. Bump up version number to 0.14.0+1
  4689. * src/configure.ac
  4690. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4691. Fixed the code that refers static member variable from non-static
  4692. context.
  4693. * src/DefaultPeerStorage.cc
  4694. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4695. * Release 0.14.0
  4696. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4697. Added build test script
  4698. * build_test.sh
  4699. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4700. Updated ja.po
  4701. * src/ja.po
  4702. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4703. Bump up version number to 0.14.0
  4704. * src/configure.ac
  4705. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4706. Updated ja.po and fr.po. Great thanks for french translators and
  4707. Sebastien WILLEMIJNS.
  4708. * po/fr.po
  4709. * po/ja.po
  4710. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4711. Added configure option to enable/disable epoll support.
  4712. * configure.ac
  4713. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4714. Updated man page.
  4715. * doc/aria2c.1.txt
  4716. * doc/aria2c.1
  4717. * doc/aria2c.1.html
  4718. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4719. Added missing default value '5' to the usage of --split option.
  4720. * src/HelpItemFactory.cc
  4721. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4722. Filled up pieces based on the number of missing blocks, rather than
  4723. simplay the number of piece * block length.
  4724. * src/BtRequestFactory.h
  4725. * src/DefaultBtInteractive.cc
  4726. * src/DefaultBtInteractive.h
  4727. * src/DefaultBtRequestFactory.cc
  4728. * src/DefaultBtRequestFactory.h
  4729. * src/Piece.cc
  4730. * src/Piece.h
  4731. * test/BitfieldManTest.cc
  4732. * test/DefaultBtRequestFactoryTest.cc
  4733. * test/MockBtRequestFactory.h
  4734. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4735. Made _epEvents a member variable.
  4736. * src/DownloadEngine.cc
  4737. * src/DownloadEngine.h
  4738. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4739. Cancel download if http redirect is bounded more than 20 times.
  4740. * src/AbstractCommand.cc
  4741. * src/HttpSkipResponseCommand.cc
  4742. * src/Request.cc
  4743. * src/Request.h
  4744. * test/RequestTest.cc
  4745. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4746. Fixed unhandled exception(removed keyword `new').
  4747. * src/SocketCore.cc (initEPOLL)
  4748. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4749. Removed visit(const MetaEntry*)
  4750. * src/MetaEntryVisitor.h:
  4751. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  4752. and made them virtual.
  4753. * src/BencodeVisitor.h
  4754. * src/BencodeVisitor.cc
  4755. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4756. Updated po files.
  4757. * po/aria2c.pot
  4758. * po/*.po
  4759. * po/*.gmo
  4760. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4761. Moved the call setWriteCheckSocket inside the previous clause to reduce
  4762. the number of socket to watch out.
  4763. * src/PeerInteractionCommand.cc
  4764. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4765. When there is not enough space in disk when writing a chunk of data,
  4766. aria2 now prints the message to the console to warn user and aborts
  4767. its download. Not all downloads are canceled because some downloads
  4768. may use another disk or partition. BUG#1640332
  4769. * src/AbstractDiskWriter.cc
  4770. * src/PeerAbstractCommand.cc
  4771. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  4772. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  4773. setHaltRequested(true) to cancel download.
  4774. * src/PeerInteractionCommand.h
  4775. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4776. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  4777. socket from int to sock_t as sockets are unsigned in Windows.
  4778. For AsyncNameResolver, DownloadEngine, I did additional modification
  4779. for the portion of the code changed according to epoll support.
  4780. I defined sock_t in a2netcompat.h to use sock_t without including
  4781. SocketCore.h.
  4782. * src/AsyncNameResolver.cc
  4783. * src/AsyncNameResolver.h
  4784. * src/DownloadEngine.cc
  4785. * src/DownloadEngine.h
  4786. * src/SocketCore.cc
  4787. * src/SocketCore.h
  4788. * src/a2netcompat.h
  4789. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4790. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  4791. changes in the patch were applied.
  4792. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  4793. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  4794. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  4795. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4796. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  4797. a2io.h and common.h were modified.
  4798. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  4799. MinGW.
  4800. * src/common.h: Changed off_t to 64 bit in MinGW.
  4801. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4802. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4803. only a2netcompat.h is modified.
  4804. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  4805. directives.
  4806. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4807. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4808. only gai_strerror.h is modified.
  4809. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  4810. winsock errors in MinGW.
  4811. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4812. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  4813. follow sources are applied.
  4814. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  4815. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  4816. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  4817. I included locale.h from Platform.cc.
  4818. * src/main.cc: Moved common setup/teardown code to Platform class.
  4819. * test/AllTest.cc: Use Platform class.
  4820. Set locale to C in AllTest.cc to prevent the messages to be localized.
  4821. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4822. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  4823. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  4824. * test/HttpRequestTest.cc: Casted to off_t where it should.
  4825. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4826. Applied Ross's aria2-0.13.2+1-mingw.patch and
  4827. aria2-0.13.2+1-mingw-2.patch.
  4828. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  4829. systems which don't have termious.h. I moved the directive inside of
  4830. if(isTTY) { ... clause so that line is wiped out without termious.h.
  4831. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  4832. anyway.
  4833. * src/asctime_r.h
  4834. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  4835. I added 2nd argument to the prototype declaration.
  4836. * src/StringFormat.cc: Get rid of vasprintf.
  4837. * src/getaddrinfo.h: Fixed constants.
  4838. * configure.ac: Added the check for asctime_r function.
  4839. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  4840. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4841. Added writable test for Socket when the sending message is in progress.
  4842. Usually the sending message is piece message. Without wriable check,
  4843. upload latency is dropped to more than 1sec.
  4844. * src/PeerInteractionCommand.cc
  4845. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4846. Create only requested files and files which shares a piece with
  4847. requested file in multi-torrent downloads. Directory structures are
  4848. also created in the same rule.
  4849. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  4850. DiskWriterEntry as in the previous implementation.
  4851. * src/MultiDiskWriter.cc
  4852. * src/MultiFileAllocationIterator.cc
  4853. * src/MultiFileAllocationIterator.h
  4854. * test/MultiFileAllocationIteratorTest.cc
  4855. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4856. Commented out -lprofiler
  4857. * src/Makefile.am
  4858. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4859. Bump up version number to 0.14.0b.
  4860. * src/configure.ac
  4861. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4862. Actively establish connection to peers in seeding, when peer cache
  4863. is not full and max upload speed limit is not reached.
  4864. * src/ActivePeerConnectionCommand.cc
  4865. * src/ActivePeerConnectionCommand.h
  4866. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4867. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  4868. to make room more fleshy, recently found peers.
  4869. Peer::_badConditionStartTime is not used anymore. Consider to remove
  4870. it.
  4871. * src/DefaultPeerStorage.cc
  4872. * test/DefaultPeerStorageTest.cc
  4873. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4874. Returns cached data only when the previous receiveHandshake() is called
  4875. with peek = true.
  4876. * src/PeerConnection.cc (receiveHandshake)
  4877. * src/PeerConnection.h (receiveHandshake)
  4878. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4879. Changed default value of -s option from 1 to 5.
  4880. Also max value of -s option is changed from 5 to 16.
  4881. * src/HelpItemFactory.cc
  4882. * src/OptionHandlerFactory.cc
  4883. * src/option_processing.cc
  4884. * src/usage_text.h
  4885. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4886. Changed -s options behavior. Now it means the number of connections
  4887. made simultaneously in each http/ftp download.
  4888. If 1 URL is specified, the behavior is the same with old implementation.
  4889. If -s N is given and more than N URLs are specified, first N URLs are
  4890. used and remaining URLs are used for backup. If less than N URLs are
  4891. specified, some of URLs are used more than once so that totally N
  4892. connections are made simultaneously.
  4893. * src/main.cc
  4894. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4895. Included missing iosfwd or ostream header.
  4896. * src/RequestGroupMan.cc
  4897. * src/TaggedItem.cc
  4898. * src/TaggedItem.h
  4899. * src/Util.cc
  4900. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4901. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  4902. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  4903. * src/HttpConnection.cc: Included missing sstream.
  4904. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4905. Added --bt-max-open-files option.
  4906. * src/DefaultPieceStorage.cc
  4907. * src/HelpItemFactory.cc
  4908. * src/MultiDiskAdaptor.cc
  4909. * src/MultiDiskAdaptor.h
  4910. * src/OptionHandlerFactory.cc
  4911. * src/option_processing.cc
  4912. * src/prefs.cc
  4913. * src/prefs.h
  4914. * src/usage_text.h
  4915. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4916. Fixed the bug that aria2 aborts when a path to a directory is given
  4917. in command-line.
  4918. * src/ProtocolDetector.cc
  4919. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4920. Limited the number files opened in each BitTorrent download. The default
  4921. value is 100. The option to change this value will be added.
  4922. * src/MultiDiskAdaptor.cc
  4923. * src/MultiDiskAdaptor.h
  4924. * src/MultiFileAllocationIterator.cc
  4925. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4926. Fixed the bug that HTTP downloads don't start with old libraries.
  4927. * src/HttpHeaderProcessor.cc
  4928. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4929. Use empty() instead of size() > 0.
  4930. * src/HttpConnection.cc
  4931. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4932. Drop connection if the incoming peer ID is the same with localhost's
  4933. one. The previous implementation drops connection when incoming peer's
  4934. IP address is the same with localhost's one.
  4935. * src/PeerListenCommand.cc
  4936. * src/DefaultBtInteractive.cc
  4937. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4938. Returns cached data without checking whether socket is readable
  4939. if the cache is available.
  4940. * src/PeerConnection.cc (receiveHandshake)
  4941. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4942. Included stdint.h
  4943. * src/common.h
  4944. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4945. Removed duplicate HAVE_GETTIMEOFDAY
  4946. * src/Makefile.am
  4947. * src/Makefile.in
  4948. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4949. Use interval as a minInterval when minInterval is not supplied.
  4950. * src/DefaultBtAnnounce.cc
  4951. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4952. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  4953. attempt is failed, then 2nd attempt get kicked out more quickly.
  4954. And it is now static const member of DefaultBtAnnounce.
  4955. * src/DefaultBtAnnounce.h
  4956. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4957. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  4958. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  4959. * src/ActivePeerConnectionCommand.cc
  4960. * src/BtConstants.h
  4961. * src/BtRuntime.h
  4962. * src/DHTGetPeersCommand.cc
  4963. * src/DefaultBtAnnounce.cc
  4964. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  4965. BtRuntime::MAX_PEERS.
  4966. * src/DefaultPeerStorage.h
  4967. * src/InitiatorMSEHandshakeCommand.cc
  4968. * src/PeerInitiateConnectionCommand.cc
  4969. * src/PeerInteractionCommand.cc
  4970. * src/PeerReceiveHandshakeCommand.cc
  4971. * src/TrackerWatcherCommand.cc
  4972. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4973. Always Connect to _numNewConnection
  4974. * src/ActivePeerConnectionCommand.cc
  4975. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4976. Made `begin' unsigned int.
  4977. * src/GrowSegment.h
  4978. * src/Piece.cc
  4979. * src/Piece.h
  4980. * src/PiecedSegment.cc
  4981. * src/PiecedSegment.h
  4982. * src/Segment.h
  4983. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4984. Calculate piece hash when data is arrived if the data is arrived in
  4985. order. This removes additional read operation for hash calculation.
  4986. If the data is arrived in out of order, the hash is calucated when the
  4987. piece is completed. This is the same behavior as the old implementation.
  4988. * src/BtPieceMessage.cc
  4989. * src/DefaultBtProgressInfoFile.cc
  4990. * src/DefaultPieceStorage.cc
  4991. * src/DownloadCommand.cc
  4992. * src/DownloadCommand.h
  4993. * src/DownloadEngine.cc
  4994. * src/GrowSegment.cc
  4995. * src/GrowSegment.h
  4996. * src/Piece.cc
  4997. * src/Piece.h
  4998. * src/PiecedSegment.cc
  4999. * src/PiecedSegment.h
  5000. * src/Segment.h
  5001. * test/PieceTest.cc
  5002. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5003. Try to keep the ordering of outgoing piece message.
  5004. * src/DefaultBtMessageDispatcher.cc
  5005. (DefaultBtMessageDispatcher::sendMessages)
  5006. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5007. Fixed busy loop when error/hup epoll events occur.
  5008. * src/AbstractCommand.cc
  5009. * src/PeerAbstractCommand.cc
  5010. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5011. Added --bt-request-peer-speed-limit option, which was a constant
  5012. SLOW_SPEED_THRESHOLD.
  5013. * src/ActivePeerConnectionCommand.cc
  5014. * src/ActivePeerConnectionCommand.h
  5015. * src/BtConstants.h
  5016. * src/HelpItemFactory.cc
  5017. * src/OptionHandlerFactory.cc
  5018. * src/PeerReceiveHandshakeCommand.cc
  5019. * src/option_processing.cc
  5020. * src/prefs.cc
  5021. * src/prefs.h
  5022. * src/usage_text.h
  5023. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5024. Removed repeated call of getTopDirPath(). Instead, call it once and
  5025. cache the result.
  5026. * src/MultiDiskAdaptor.cc
  5027. * src/MultiDiskAdaptor.h
  5028. (mkdir, openFile, initAndOpenFile, openExistingFile)
  5029. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5030. Fixed compile error on debian etch.
  5031. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  5032. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  5033. it is undefined.
  5034. * src/Util.cc (ULLONG_MAX)
  5035. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5036. Added epoll support. Use epoll if it is available. If not, use select.
  5037. When async dns is enabled in compile time, epoll support is enabled
  5038. only when aria2 is built with c-ares. This condition statement is
  5039. defined in a2io.h.
  5040. Currently aria2 supports both c-ares and ares, but ares is maintained
  5041. for quite a while and debian already has c-ares package, ares support
  5042. will be dropped in the future version.
  5043. * configure.ac
  5044. * src/AbstractCommand.cc
  5045. * src/AsyncNameResolver.cc
  5046. * src/AsyncNameResolver.h
  5047. * src/Command.cc
  5048. * src/Command.h
  5049. * src/DownloadEngine.cc
  5050. * src/DownloadEngine.h
  5051. * src/PeerAbstractCommand.cc
  5052. * src/SocketCore.cc
  5053. * src/SocketCore.h
  5054. * src/a2io.h
  5055. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5056. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  5057. directive.
  5058. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5059. Do not do write operation to /dev/null file.
  5060. * src/LogFactory.cc
  5061. * src/SimpleLogger.cc
  5062. Replaced vasprintf with vsnprintf
  5063. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  5064. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5065. * src/BtRequestMessage.cc
  5066. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  5067. for segmentation fault caused by previous commit.
  5068. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5069. Reduced the usage of gettimeofday().
  5070. * src/DefaultBtMessageDispatcher.cc
  5071. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  5072. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  5073. * src/RequestSlot.cc
  5074. * src/RequestSlot.h
  5075. (RequestSlot::isTimeout)
  5076. Made RequestSlot have a reference to Piece object to avoid find
  5077. Piece repeatedly.
  5078. * src/DefaultBtMessageDispatcher.cc
  5079. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  5080. * src/RequestSlot.cc
  5081. * src/RequestSlot.h
  5082. (RequestSlot::getPiece)
  5083. * test/DefaultBtMessageDispatcherTest.cc
  5084. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5085. * src/TimeA2.cc
  5086. * src/TimeA2.h
  5087. (Time::difference): New function.
  5088. (Time::elapsed): Done optimization.
  5089. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5090. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  5091. directive.
  5092. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5093. * src/option_processing.cc: Added missing `defined' keyword to #if
  5094. directive.
  5095. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5096. Bump up version number to 0.13.2+1
  5097. * src/configure.ac
  5098. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5099. Refactored broken outstanding piece handling.
  5100. * src/DefaultPieceStorage.cc
  5101. * src/DefaultPieceStorage.h
  5102. * src/Piece.cc
  5103. * src/Piece.h
  5104. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5105. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  5106. name collision of static variable and predefined macro.
  5107. * src/BtContext.cc
  5108. * src/BtContext.h
  5109. * src/CookieBoxFactory.cc
  5110. * src/CookieBoxFactory.h
  5111. * src/CookieParser.cc
  5112. * src/CookieParser.h
  5113. * src/DefaultBtContext.cc
  5114. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5115. * src/RequestGroup.cc
  5116. (RequestGroup::createInitialCommand): Use empty() instead of size().
  5117. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5118. * Release 0.13.2
  5119. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5120. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  5121. * po/fr.po
  5122. * po/ja.po
  5123. * po/aria2c.pot
  5124. * po/*.po
  5125. * po/*.gmo
  5126. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5127. Bump up version number to 0.13.2
  5128. * src/configure.ac
  5129. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5130. Refactord.
  5131. * src/RequestGroupMan.cc
  5132. (removeStoppedGroup)
  5133. (fillRequestGroupFromReserver)
  5134. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5135. Fixed compile error on Ubuntu.
  5136. * src/BtPieceMessage.cc
  5137. * src/MessageDigestHelper.cc
  5138. * src/Util.cc
  5139. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5140. Fixed compile error when configured with --disable-bittorrent
  5141. * test/DownloadHandlerFactoryTest.cc
  5142. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5143. Done make update-po
  5144. * po/aria2c.pot
  5145. * po/*.po
  5146. * po/*.gmo
  5147. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5148. Bump up version number to 0.13.2rc.
  5149. * src/configure.ac
  5150. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5151. Made option name bold. Updated SYNOPSIS to make it more readable.
  5152. * doc/aria2c.1.txt
  5153. * doc/aria2c.1
  5154. * doc/aria2c.1.html
  5155. * src/version_usage.cc
  5156. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5157. Refactored. Use std::string instead of size and char*.
  5158. * Data.cc
  5159. * Data.h
  5160. * test/Data.cc
  5161. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5162. Added trimSelf(). Rewritten trim() to use trimSelf().
  5163. * Util.cc
  5164. * Util.h
  5165. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5166. * src/ChunkChecksum.h (getChecksum): Return const reference.
  5167. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5168. Fixed compile error when configured with --disable-metalink.
  5169. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  5170. * test/FeatureConfigTest.cc
  5171. * test/DownloadHandlerFactoryTest.cc
  5172. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5173. Fixed compile error when configured with --without-gnutls
  5174. --without-openssl
  5175. * src/main.cc
  5176. * test/DefaultBtProgressInfoFileTest.cc
  5177. * test/SegmentManTest.cc
  5178. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5179. Fixed compile error with OpenSSL.
  5180. * src/IteratableChunkChecksumValidator.cc
  5181. * src/LibsslDHKeyExchange.h
  5182. * src/MessageDigestHelper.cc
  5183. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5184. Revert the default value of --max-concurrent-downloads to 5.
  5185. Revert the default value of --metalink-servers to 5.
  5186. Man pages was also updated.
  5187. * src/option_processing.cc
  5188. * doc/aria2c.1.txt
  5189. * doc/aria2c.1.html
  5190. * doc/aria2c.1
  5191. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5192. Returns const reference:
  5193. DownloadContext::getPieceHash, DownloadContext::getName,
  5194. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  5195. BtContext::getInfoHashAsString,
  5196. * src/BtContext.h
  5197. * src/DefaultBtContext.cc
  5198. * src/DefaultBtContext.h
  5199. * src/DownloadContext.h
  5200. * src/SingleFileDownloadContext.h
  5201. * test/MockBtContext.h
  5202. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5203. * src/RequestGroup.h (getDir): Removed.
  5204. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5205. Returns const reference. The internal urlencode function was optimized
  5206. a little bit.
  5207. * src/Request.cc
  5208. * src/Request.h
  5209. * src/HttpRequest.cc
  5210. * src/HttpRequest.h
  5211. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5212. Defined option name and possible values as std::string to reduce
  5213. temporary string object creation in runtime.
  5214. * src/HelpItemFactory.cc
  5215. * src/LogFactory.cc
  5216. * src/Option.cc
  5217. * src/OptionHandlerFactory.cc
  5218. * src/option_processing.cc
  5219. * src/prefs.cc
  5220. * src/prefs.h
  5221. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5222. Return const reference.
  5223. * src/DownloadHandlerConstants.cc
  5224. * src/DownloadHandlerConstants.h
  5225. (getMetalinkExtensions)
  5226. (getMetalinkContentTypes)
  5227. (getBtExtensions)
  5228. (getBtContentTypes)
  5229. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5230. * src/HttpHeader.cc (get): Rewritten.
  5231. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5232. Make HttpHeader::getFirst(...) return const reference.
  5233. * src/HttpHeader.cc
  5234. * src/HttpHeader.h
  5235. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5236. Use Option::getAsBool(...) instead of Option::get(...) and compare
  5237. it with V_TRUE.
  5238. * src/DefaultPieceStorage.cc
  5239. * src/DownloadCommand.cc
  5240. * src/FtpNegotiationCommand.cc
  5241. * src/HttpRequest.cc
  5242. * src/InitiateConnectionCommand.cc
  5243. * src/RequestGroup.cc
  5244. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5245. Made Option::get(...) return const reference of std::string.
  5246. * src/Option.cc
  5247. * src/Option.h
  5248. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5249. Replaced std:copy with insert.
  5250. * src/DefaultBtMessageDispatcher.cc
  5251. * src/DefaultPieceStorage.cc
  5252. * src/DownloadEngineFactory.cc
  5253. * src/RequestGroup.cc
  5254. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5255. Included SocketCore.h to fix compiler warning.
  5256. * src/InitiateConnectionCommand.cc
  5257. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5258. Put piece selection strategy algorithm to RarestPieceSelector class,
  5259. Added a switch to choose whether randomized selection so that unit
  5260. tests emit same results in, possibly, win32.
  5261. * src/DefaultPieceStorage.cc
  5262. * src/DefaultPieceStorage.h
  5263. * src/RarestPieceSelector.cc
  5264. * src/RarestPieceSelector.h
  5265. * test/DefaultPieceStorageTest.cc
  5266. * test/RarestPieceSelectorTest.cc
  5267. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5268. Don't pool connection if HTTP proxy is enabled.
  5269. * src/FtpFinishDownloadCommand.cc
  5270. * src/FtpNegotiationCommand.cc
  5271. * src/HttpSkipResponseCommand.cc
  5272. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5273. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  5274. * src/AbstractCommand.cc
  5275. * src/AbstractCommand.h
  5276. * src/ActivePeerConnectionCommand.cc
  5277. * src/FtpInitiateConnectionCommand.cc
  5278. * src/HttpInitiateConnectionCommand.cc
  5279. * src/InitiateConnectionCommandFactory.cc
  5280. * src/PeerAbstractCommand.cc
  5281. * src/PeerAbstractCommand.h
  5282. * src/PeerInitiateConnectionCommand.cc
  5283. * src/TrackerWatcherCommand.cc
  5284. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5285. Sort RequestSlot in ascending order and manipulate them using
  5286. lower_bound.
  5287. * src/DefaultBtMessageDispatcher.cc
  5288. * src/DefaultBtMessageDispatcher.h
  5289. (getMessageQueue): Added const qualifier.
  5290. (getRequestSlots): Added const qualifier.
  5291. (sendMessages): Use empty() instead of size().
  5292. (doCancelSendingPieceAction): Use HandleEvent object.
  5293. (doAbortOutstandingRequestAction): Rewritten.
  5294. (doChokedAction): Rewritten.
  5295. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  5296. (isOutstandingRequest): Rewritten.
  5297. (getOutstandingRequest): Rewritten.
  5298. (removeOutstandingRequest): Rewritten.
  5299. (addOutstandingRequest): Rewritten.
  5300. * src/RequestSlot.cc
  5301. * src/RequestSlot.h
  5302. (operator=): Rewritten.
  5303. (operator!=): New function.
  5304. (operator<): New function.
  5305. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5306. * src/DefaultBtRequestFactory.cc
  5307. (doChokedAction): Rewritten.
  5308. (removeCompletedPiece): Rewritten.
  5309. (removeTargetPiece): Rewritten.
  5310. (createRequestMessages): Added the debug log.
  5311. (createRequestMessagesOnEndGame: Added the debug log.
  5312. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5313. Added the debug log message.
  5314. * src/BtPieceMessage.cc (doReceivedAction)
  5315. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5316. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  5317. used lower_bound to process them rather than linear search.
  5318. * src/DHTPeerAnnounceStorage.cc
  5319. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5320. Call subtractPieceStats from ~PeerInteractionCommand only when the
  5321. peer has at least one completed piece.
  5322. * src/Peer.cc
  5323. * src/Peer.h
  5324. * src/PeerInteractionCommand.cc
  5325. * src/PeerSessionResource.cc
  5326. * src/PeerSessionResource.h
  5327. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5328. Removed unnecessary sorting
  5329. * src/DefaultPieceStorage (DefaultPieceStorage)
  5330. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5331. Rewritten the portion of the code that mangaes allowed fast indexes.
  5332. * src/PeerSessionResource.cc
  5333. * src/PeerSessionResource.h
  5334. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5335. Removed the invalid string including '\r' from ru.po and
  5336. did make update-po.
  5337. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5338. Added --log-level and --summary-interval to man page.
  5339. * doc/aria2c.1.txt
  5340. * doc/aria2c.1.html
  5341. * doc/aria2c.1
  5342. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5343. Added --log-level option to specify log level. Log messages under
  5344. the specified level are not output. Default value is `debug'.
  5345. * src/HelpItemFactory.cc
  5346. * src/LogFactory.cc
  5347. * src/LogFactory.h
  5348. * src/Logger.h
  5349. * src/OptionHandlerFactory.cc
  5350. * src/SimpleLogger.cc
  5351. * src/SimpleLogger.h
  5352. * src/main.cc
  5353. * src/option_processing.cc
  5354. * src/prefs.h
  5355. * src/usage_text.h
  5356. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5357. Print download progress summary of all parallel downloads in specified
  5358. interval, default 60 secs. While aria2 could download several files
  5359. in parallel (see -j option), it displayed just first download progress,
  5360. and the other downloads are hidden from the users. This new feature
  5361. prints all downloads currently in-progress to the console so that you
  5362. can check the status of all downloads. The interval can be adjusted
  5363. by --summary-interval option.
  5364. The progress readout is now cut so that all fits in the one line of
  5365. console.
  5366. * src/ConsoleStatCalc.cc
  5367. * src/ConsoleStatCalc.h
  5368. * src/HelpItemFactory.cc
  5369. * src/OptionHandlerFactory.cc
  5370. * src/RequestGroupMan.cc
  5371. * src/RequestGroupMan.h
  5372. * src/main.cc
  5373. * src/option_processing.cc
  5374. * src/prefs.h
  5375. * src/usage_text.h
  5376. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5377. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  5378. * src/DownloadEngine.cc (DownloadEngine)
  5379. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5380. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  5381. defined.
  5382. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  5383. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5384. Use erase+lower_bound+insert instead of sort.
  5385. * src/DefaultPieceStorage.cc (addPieceStats)
  5386. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5387. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  5388. * src/A2STR.cc
  5389. * src/A2STR.h
  5390. * src/OptionParser.cc (parse)
  5391. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5392. Defined fake filename `[tracker.announce]' as static const std::string.
  5393. * src/TrackerWatcherCommand.cc (createRequestGroup)
  5394. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5395. Defined default filename `index.html' as static const std::string
  5396. * src/SingleFileDownloadContext.cc
  5397. * src/SingleFileDownloadContext.h
  5398. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5399. Defined "[MEMORY]" as static const std::string.
  5400. * src/MemoryBufferPreDownloadHandler.cc (execute)
  5401. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5402. Defined control file's version number as static const std::string.
  5403. * src/DefaultBtProgressInfoFile.cc
  5404. * src/DefaultBtProgressInfoFile.h
  5405. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5406. Use Request::METHOD_GET
  5407. * src/RequestGroup.cc (createNextCommandWithAdj)
  5408. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5409. Defined "OK", "ERR", "INPR" as static const std::string
  5410. * src/RequestGroupMan.cc (showDownloadResults)
  5411. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5412. Defined default client used in extended handshake as static const
  5413. std::string
  5414. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  5415. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5416. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  5417. * src/HttpConnection.cc (eraseConfidentialInfo)
  5418. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5419. Defined default ftp user and password as static const std::string
  5420. * src/AuthConfigFactory.cc
  5421. * src/AuthConfigFactory.h
  5422. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5423. Defined strings used in netrc as static const std::string
  5424. * src/Netrc.cc
  5425. * src/Netrc.h
  5426. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5427. Defined HTTP status as static const std::string
  5428. * src/AbstractProxyResponseCommand.cc
  5429. * src/HttpHeader.cc
  5430. * src/HttpHeader.h
  5431. * src/HttpResponse.cc
  5432. * src/HttpResponseCommand.cc
  5433. * src/HttpSkipResponseCommand.cc
  5434. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5435. Defined "\r\n", "A", "I" as static const std::string
  5436. * src/A2STR.cc
  5437. * src/A2STR.h
  5438. * src/FtpConnection.cc
  5439. * src/FtpConnection.h
  5440. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5441. Added COLON_C(".") and used it in Request::parseUrl()
  5442. * src/A2STR.cc
  5443. * src/A2STR.h
  5444. * src/Request.cc (parseUrl)
  5445. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5446. Changed the type of padName from `const std::string&' to `const char*'.
  5447. * src/MSEHandshake.cc (verifyPadLength)
  5448. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5449. Defined "sha1" as static const std::string.
  5450. * src/MetalinkParserController.cc
  5451. * src/MetalinkParserController.h
  5452. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5453. Defined message digest algorithm name as static const std::string
  5454. * src/DHTTokenTracker.cc
  5455. * src/DHTUtil.cc
  5456. * src/DefaultBtContext.cc
  5457. * src/MSEHandshake.cc
  5458. * src/MessageDigestHelper.cc
  5459. * src/Peer.cc
  5460. * src/messageDigest.cc
  5461. * src/messageDigest.h
  5462. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5463. Made string literals used in SAX parser static const std::string.
  5464. * src/FileMetalinkParserState.cc
  5465. * src/FileMetalinkParserState.h
  5466. * src/FilesMetalinkParserState.cc
  5467. * src/FilesMetalinkParserState.h
  5468. * src/InitialMetalinkParserState.cc
  5469. * src/InitialMetalinkParserState.h
  5470. * src/MetalinkMetalinkParserState.cc
  5471. * src/MetalinkMetalinkParserState.h
  5472. * src/PiecesMetalinkParserState.cc
  5473. * src/PiecesMetalinkParserState.h
  5474. * src/ResourcesMetalinkParserState.cc
  5475. * src/ResourcesMetalinkParserState.h
  5476. * src/VerificationMetalinkParserState.cc
  5477. * src/VerificationMetalinkParserState.h
  5478. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5479. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  5480. * src/A2STR.cc
  5481. * src/A2STR.h
  5482. * src/File.cc
  5483. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5484. Defined static const std::string IP("ip"), PORT("port") and use them
  5485. instead of string literals.
  5486. * src/DefaultPeerListProcessor.cc
  5487. * src/DefaultPeerListProcessor.h
  5488. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5489. Made string literals for torrent file processing static const
  5490. std::string.
  5491. * src/BtContext.cc
  5492. * src/BtContext.h
  5493. * src/DefaultBtContext.cc
  5494. * src/DefaultBtContext.h
  5495. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5496. Made string literal for tracker response static const std::string
  5497. * src/BtAnnounce.cc
  5498. * src/BtAnnounce.h
  5499. * src/DefaultBtAnnounce.cc
  5500. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5501. Use DHTMessage::T instead of "t".
  5502. * src/DHTMessageTracker.cc (messageArrived)
  5503. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5504. Made keyName static const. Made trimmed charset static const
  5505. std::string.
  5506. * src/Util.cc (getContentDispositionFilename)
  5507. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5508. Made USER_AGENT const. Made "/" static const std::string.
  5509. * src/A2STR.cc
  5510. * src/A2STR.h
  5511. * src/HttpRequest.cc
  5512. * src/HttpRequest.h
  5513. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5514. Made string listeral to static const std::string:
  5515. "Content-Range", "Content-Length"
  5516. * src/HttpHeader.cc
  5517. * src/HttpHeader.h
  5518. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5519. Made string listeral to static const std::string.
  5520. * src/HttpConnection.cc
  5521. * src/HttpHeader.cc
  5522. * src/HttpHeader.h
  5523. * src/HttpResponse.cc
  5524. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5525. Made string listeral to static const std::string.
  5526. * src/A2STR.cc
  5527. * src/A2STR.h
  5528. * src/SimpleLogger.cc
  5529. * src/SimpleLogger.h
  5530. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5531. Made string literal to static const std::string.
  5532. Rewritten CookieParser::setField.
  5533. * src/A2STR.cc
  5534. * src/A2STR.h
  5535. * src/CookieBoxFactory.cc
  5536. * src/CookieBoxFactory.h
  5537. * src/CookieParser.cc
  5538. * src/CookieParser.h
  5539. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5540. Made string literal to static const std::string
  5541. * src/DHTAbstractMessage.cc
  5542. * src/DHTAnnouncePeerMessage.cc
  5543. * src/DHTAnnouncePeerMessage.h
  5544. * src/DHTAnnouncePeerReplyMessage.cc
  5545. * src/DHTAnnouncePeerReplyMessage.h
  5546. * src/DHTFindNodeMessage.cc
  5547. * src/DHTFindNodeMessage.h
  5548. * src/DHTFindNodeReplyMessage.cc
  5549. * src/DHTFindNodeReplyMessage.h
  5550. * src/DHTGetPeersMessage.cc
  5551. * src/DHTGetPeersMessage.h
  5552. * src/DHTGetPeersReplyMessage.cc
  5553. * src/DHTGetPeersReplyMessage.h
  5554. * src/DHTMessage.cc
  5555. * src/DHTMessage.h
  5556. * src/DHTMessageFactoryImpl.cc
  5557. * src/DHTMessageReceiver.cc
  5558. * src/DHTPingMessage.cc
  5559. * src/DHTPingMessage.h
  5560. * src/DHTPingReplyMessage.cc
  5561. * src/DHTPingReplyMessage.h
  5562. * src/DHTQueryMessage.cc
  5563. * src/DHTQueryMessage.h
  5564. * src/DHTResponseMessage.cc
  5565. * src/DHTResponseMessage.h
  5566. * src/DHTUnknownMessage.cc
  5567. * src/DHTUnknownMessage.h
  5568. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5569. Made string literal to static const std::string
  5570. * src/BtChokeMessage.cc (toString)
  5571. * src/BtHaveAllMessage.cc (toString)
  5572. * src/BtHaveNoneMessage.cc (toString)
  5573. * src/BtInterestedMessage.cc (toString)
  5574. * src/BtNotInterestedMessage.cc (toString)
  5575. * src/BtUnchokeMessage.cc (toString)
  5576. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5577. Replaced "" with static const variable A2STR::NIL.
  5578. Replaced string comparison against "" with std::string::empty().
  5579. Added PROTO_* to Request class and use them as a protocol string
  5580. constant.
  5581. Made "started", "stopped", "completed" static const variable in
  5582. AnnounceList class.
  5583. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5584. Updated translations. Great thanks to translators.
  5585. * po/ca.po
  5586. * po/de.po
  5587. * po/fr.po
  5588. * po/it.po
  5589. * po/ja.po
  5590. * po/ru.po
  5591. * po/zh_CN.po
  5592. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5593. Updated man page; categorized options and fixed typo.
  5594. * doc/aria2c.1.txt
  5595. * doc/aria2c.1.html
  5596. * doc/aria2c.1
  5597. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5598. Removed const ref
  5599. * src/MetalinkEntry.cc (AddProtocolPreference)
  5600. * src/RequestGroup.cc (FindServerHostByHostname)
  5601. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5602. Rewritten Accept-Features handling.
  5603. * src/HttpRequestCommand.cc (createHttpRequest)
  5604. * src/a2functional.h
  5605. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5606. Changed method signature:
  5607. DHTAbstractNodeLookupTask::toEntries
  5608. * src/DHTAbstractNodeLookupTask.cc
  5609. * src/DHTAbstractNodeLookupTask.h
  5610. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5611. Changed method signature:
  5612. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  5613. * src/BtContext.h
  5614. * src/DefaultBtContext.cc
  5615. * src/DefaultBtContext.h
  5616. * src/DefaultBtInteractive.cc
  5617. * test/DefaultBtContextTest.cc
  5618. * test/MockBtContext.h
  5619. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5620. Changed method signature:
  5621. MultiFileAllocationIterator::makeDiskWriterEntries
  5622. * src/MultiFileAllocationIterator.cc
  5623. * src/MultiFileAllocationIterator.h
  5624. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5625. Changed method sinature:
  5626. MetalinkEntry::toFileEntry,
  5627. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  5628. Metalinker::queryEntry
  5629. * src/Metalink2RequestGroup.cc
  5630. * src/MetalinkEntry.cc
  5631. * src/MetalinkEntry.h
  5632. * src/MetalinkHelper.cc
  5633. * src/MetalinkHelper.h
  5634. * src/Metalinker.cc
  5635. * src/Metalinker.h
  5636. * src/main.cc
  5637. * test/MetalinkHelperTest.cc
  5638. * test/MetalinkerTest.cc
  5639. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5640. Changed method sinature:
  5641. RequestGroup::getURIs
  5642. * src/RequestGroup.cc
  5643. * src/RequestGroup.h
  5644. * test/Metalink2RequestGroupTest.cc
  5645. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5646. Changed method signature:
  5647. PeerListProcessor::extractPeer
  5648. * src/CompactPeerListProcessor.cc
  5649. * src/CompactPeerListProcessor.h
  5650. * src/DefaultBtAnnounce.cc
  5651. * src/DefaultPeerListProcessor.cc
  5652. * src/DefaultPeerListProcessor.h
  5653. * src/DelegatingPeerListProcessor.cc
  5654. * src/DelegatingPeerListProcessor.h
  5655. * src/PeerListProcessor.h
  5656. * src/UTPexExtensionMessage.cc
  5657. * test/DefaultPeerListProcessorTest.cc
  5658. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5659. Changed method signature:
  5660. BtRequestFactory::createRequestMessages,
  5661. BtRequestFactory::createRequestMessagesOnEndGame
  5662. * src/BtRequestFactory.h
  5663. * src/DefaultBtInteractive.cc
  5664. * src/DefaultBtRequestFactory.cc
  5665. * src/DefaultBtRequestFactory.h
  5666. * test/DefaultBtRequestFactoryTest.cc
  5667. * test/MockBtRequestFactory.h
  5668. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5669. Changed method signature:
  5670. PieceStorage::getInFlightPieces
  5671. * src/DefaultBtProgressInfoFile.cc
  5672. * src/DefaultPieceStorage.cc
  5673. * src/DefaultPieceStorage.h
  5674. * src/PieceStorage.h
  5675. * src/UnknownLengthPieceStorage.cc
  5676. * src/UnknownLengthPieceStorage.h
  5677. * test/DefaultBtProgressInfoFileTest.cc
  5678. * test/MockPieceStorage.h
  5679. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5680. Changed method signature:
  5681. PostDownloadHandler::getNextRequestGroups
  5682. Metalink2RequestGroup::generate
  5683. RequestGroup::postDownloadProcessing
  5684. * src/BtPostDownloadHandler.cc
  5685. * src/BtPostDownloadHandler.h
  5686. * src/Metalink2RequestGroup.cc
  5687. * src/Metalink2RequestGroup.h
  5688. * src/MetalinkPostDownloadHandler.cc
  5689. * src/MetalinkPostDownloadHandler.h
  5690. * src/PostDownloadHandler.h
  5691. * src/RequestGroup.cc
  5692. * src/RequestGroup.h
  5693. * src/RequestGroupMan.cc
  5694. * src/main.cc
  5695. * test/BtPostDownloadHandlerTest.cc
  5696. * test/Metalink2RequestGroupTest.cc
  5697. * test/MetalinkPostDownloadHandlerTest.cc
  5698. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5699. Rewritten AccRequestGroup
  5700. * src/main.cc
  5701. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5702. Rewritten.
  5703. * src/TaggedItem.cc (toTagString)
  5704. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5705. Rewritten Accept-Features handling.
  5706. * src/HttpRequestCommand.cc (createHttpRequest)
  5707. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5708. Rewritten accept types handling.
  5709. * HttpRequest.cc (createRequest)
  5710. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5711. Rewritten
  5712. * src/FeatureConfig.cc (featureSummary)
  5713. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5714. Changed method signature:
  5715. PeerStorage::getActivePeers
  5716. * src/DHTPeerAnnounceEntry.cc
  5717. * src/DefaultPeerStorage.cc
  5718. * src/DefaultPeerStorage.h
  5719. * src/PeerStorage.h
  5720. * test/DefaultPeerStorageTest.cc
  5721. * test/MockPeerStorage.h
  5722. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5723. Changed method signature:
  5724. DHTPeerAnnounceStorage::getPeers,
  5725. DHTPeerAnnounceEntry::getPeers
  5726. * src/DHTGetPeersMessage.cc
  5727. * src/DHTPeerAnnounceEntry.cc
  5728. * src/DHTPeerAnnounceEntry.h
  5729. * src/DHTPeerAnnounceStorage.cc
  5730. * src/DHTPeerAnnounceStorage.h
  5731. * test/DHTAnnouncePeerMessageTest.cc
  5732. * test/DHTPeerAnnounceEntryTest.cc
  5733. * test/DHTPeerAnnounceStorageTest.cc
  5734. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5735. Changed method signature:
  5736. NameResolver::resolve
  5737. * src/DHTEntryPointNameResolveCommand.cc
  5738. * src/InitiateConnectionCommand.cc
  5739. * src/NameResolver.cc
  5740. * src/NameResolver.h
  5741. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5742. Changed method signature:
  5743. PieceStorage::getAdvertisedPieceIndexes
  5744. * src/DefaultBtInteractive.cc
  5745. * src/DefaultPieceStorage.cc
  5746. * src/DefaultPieceStorage.h
  5747. * src/PieceStorage.h
  5748. * src/UnknownLengthPieceStorage.h
  5749. * test/MockPieceStorage.h
  5750. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5751. Changed method signature:
  5752. SegmentMan::getInFlightSegment
  5753. * src/AbstractCommand.cc
  5754. * src/SegmentMan.cc
  5755. * src/SegmentMan.h
  5756. * test/SegmentManTest.cc
  5757. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5758. Changed method signature:
  5759. DHTAbstractNodeLookupTask::getNodesFromMessage
  5760. * src/DHTAbstractNodeLookupTask.cc
  5761. * src/DHTAbstractNodeLookupTask.h
  5762. * src/DHTNodeLookupTask.cc
  5763. * src/DHTNodeLookupTask.h
  5764. * src/DHTPeerLookupTask.cc
  5765. * src/DHTPeerLookupTask.h
  5766. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5767. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  5768. * src/AbstractCommand.cc
  5769. * src/BtCheckIntegrityEntry.cc
  5770. * src/BtCheckIntegrityEntry.h
  5771. * src/BtFileAllocationEntry.cc
  5772. * src/BtFileAllocationEntry.h
  5773. * src/BtSetup.cc
  5774. * src/BtSetup.h
  5775. * src/CheckIntegrityCommand.cc
  5776. * src/CheckIntegrityEntry.h
  5777. * src/ChecksumCheckIntegrityEntry.cc
  5778. * src/ChecksumCheckIntegrityEntry.h
  5779. * src/DHTSetup.cc
  5780. * src/DHTSetup.h
  5781. * src/DownloadEngine.cc
  5782. * src/FileAllocationCommand.cc
  5783. * src/FileAllocationEntry.h
  5784. * src/RequestGroup.cc
  5785. * src/RequestGroup.h
  5786. * src/RequestGroupMan.cc
  5787. * src/RequestGroupMan.h
  5788. * src/StreamCheckIntegrityEntry.cc
  5789. * src/StreamCheckIntegrityEntry.h
  5790. * src/StreamFileAllocationEntry.cc
  5791. * src/StreamFileAllocationEntry.h
  5792. * src/TrackerWatcherCommand.cc
  5793. * src/a2functional.h
  5794. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5795. Changed method signature:
  5796. BNode::findClosestKNodes, BNode:: enumerateBucket,
  5797. DHTBucket::getGoodNodes,
  5798. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  5799. * src/BNode.cc
  5800. * src/BNode.h
  5801. * src/DHTAbstractNodeLookupTask.cc
  5802. * src/DHTAutoSaveCommand.cc
  5803. * src/DHTBucket.cc
  5804. * src/DHTBucket.h
  5805. * src/DHTBucketRefreshTask.cc
  5806. * src/DHTFindNodeMessage.cc
  5807. * src/DHTGetPeersMessage.cc
  5808. * src/DHTRoutingTable.cc
  5809. * src/DHTRoutingTable.h
  5810. * test/BNodeTest.cc
  5811. * test/DHTBucketTest.cc
  5812. * test/DHTRoutingTableTest.cc
  5813. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5814. In piece selection functions, Pass std::deque<...> by reference rather
  5815. than returning it.
  5816. * src/BitfieldMan.cc
  5817. * src/BitfieldMan.h
  5818. * src/DefaultBtRequestFactory.cc
  5819. * src/DefaultPieceStorage.cc
  5820. * src/Piece.cc
  5821. * src/Piece.h
  5822. * test/BitfieldManTest.cc
  5823. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5824. Implemented rarest piece first piece selection strategy.
  5825. * src/AbstractBtMessage.cc
  5826. * src/AbstractBtMessage.h
  5827. * src/BitfieldMan.cc
  5828. * src/BitfieldMan.h
  5829. * src/BtBitfieldMessage.cc
  5830. * src/BtHaveAllMessage.cc
  5831. * src/BtHaveMessage.cc
  5832. * src/DefaultPieceStorage.cc
  5833. * src/DefaultPieceStorage.h
  5834. * src/PeerInteractionCommand.cc
  5835. * src/PieceStorage.h
  5836. * src/UnknownLengthPieceStorage.h
  5837. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5838. Rewritten readData and writeData.
  5839. * src/MultiDiskAdaptor.cc
  5840. * src/MultiDiskAdaptor.h
  5841. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5842. Move \n out of the message "Usage: ...".
  5843. * src/version_usage.cc
  5844. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5845. Bump up version number to 0.13.2b.
  5846. * configure.ac
  5847. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5848. Added const qualifier to argument Exception& e.
  5849. * src/Logger.h
  5850. * src/SimpleLogger.cc
  5851. * src/SimpleLogger.h
  5852. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5853. Pool connection when CWD, SIZE command fails.
  5854. * src/FtpNegotiationCommand.cc
  5855. * src/FtpNegotiationCommand.h
  5856. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5857. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  5858. * src/HttpResponseCommand.cc
  5859. * src/HttpSkipResponseCommand.cc
  5860. * src/HttpSkipResponseCommand.h
  5861. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5862. Pool connection when a server returns 4xx, 5xx responses.
  5863. * src/HttpNullDownloadCommand.cc
  5864. * src/HttpNullDownloadCommand.h
  5865. * src/HttpResponse.cc
  5866. * src/HttpResponse.h
  5867. * src/HttpResponseCommand.cc
  5868. * src/HttpResponseCommand.h
  5869. * test/HttpResponseTest.cc
  5870. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5871. Print usage when no URL is specifed or bad command-line option is
  5872. specified.
  5873. * src/HelpItemFactory.cc
  5874. * src/help_tags.h
  5875. * src/option_processing.cc
  5876. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5877. Removed duplicate log message.
  5878. * src/AbstractCommand.cc (asyncResolveHostname)
  5879. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5880. Updated man page: --async-dns and --ftp-reuse-connection were added.
  5881. Changed -j option's default value from 5 to 1.
  5882. Added new examples using protocol auto detection feature.
  5883. Removed -T, -M usage where it can be omitted.
  5884. * doc/aria2c.1.txt
  5885. * doc/aria2c.1.html
  5886. * doc/aria2c.1.txt
  5887. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5888. Updated command-line usage text, so that it tells users that they
  5889. can specify any number of torrent files and metalink files in
  5890. command-line.
  5891. * src/version_usage.cc
  5892. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5893. Changed the default value of -j option to 1.
  5894. * src/HelpItemFactory.cc
  5895. * src/option_processing.cc
  5896. * src/usage_text.h
  5897. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5898. Added the ability to reuse connection in FTP and it is enabled by
  5899. default. It can be disabled by --ftp-reuse-connection=false option.
  5900. * src/Command.cc
  5901. * src/DownloadCommand.cc
  5902. * src/FtpDownloadCommand.cc
  5903. * src/FtpDownloadCommand.h
  5904. * src/FtpFinishDownloadCommand.cc
  5905. * src/FtpFinishDownloadCommand.h
  5906. * src/FtpInitiateConnectionCommand.cc
  5907. * src/FtpNegotiationCommand.cc
  5908. * src/FtpNegotiationCommand.h
  5909. * src/HelpItemFactory.cc
  5910. * src/Makefile.am
  5911. * src/Makefile.in
  5912. * src/OptionHandlerFactory.cc
  5913. * src/option_processing.cc
  5914. * src/prefs.h
  5915. * src/usage_text.h
  5916. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5917. Call Command::transitStatus() before calling Command::execute(),
  5918. so that the status change made in execute() is not cleared.
  5919. * src/DownloadEngine.cc
  5920. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5921. Removed forward declaration of SocketCore class.
  5922. * src/HttpDownloadCommand.h
  5923. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5924. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  5925. in InitiateConnectionCommandFactory. They should be set only when
  5926. the protocol is HTTP or HTTPS.
  5927. * src/InitiateConnectionCommandFactory.cc
  5928. * src/RequestGroup.cc
  5929. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5930. Fixed infinite loop in checksum checking.
  5931. * src/IteratableChecksumValidator.cc
  5932. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5933. Set _supportsPersistentConnection to true by default.
  5934. * src/Request.cc
  5935. * src/RequestGroup.cc
  5936. * test/HttpRequestTest.cc
  5937. * test/RequestTest.cc
  5938. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5939. Added timeout to socket pool. The default timeout is 15 seconds,
  5940. which is the same value Apache uses.
  5941. * src/DownloadEngine.cc
  5942. * src/DownloadEngine.h
  5943. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5944. Fixed misuse of multimap::find()
  5945. * src/HttpHeader.cc
  5946. * test/HttpHeaderTest.cc
  5947. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5948. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  5949. option.
  5950. The asynchronous DNS is not capable of IPv6 yet.
  5951. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  5952. least for HTTP download.
  5953. * src/AbstractCommand.cc
  5954. * src/AbstractCommand.h
  5955. * src/AsyncNameResolver.cc
  5956. * src/AsyncNameResolver.h
  5957. * src/DHTEntryPointNameResolveCommand.cc
  5958. * src/DHTEntryPointNameResolveCommand.h
  5959. * src/DownloadEngine.cc
  5960. * src/DownloadEngine.h
  5961. * src/FtpInitiateConnectionCommand.cc
  5962. * src/FtpInitiateConnectionCommand.h
  5963. * src/HelpItemFactory.cc
  5964. * src/HttpInitiateConnectionCommand.cc
  5965. * src/HttpInitiateConnectionCommand.h
  5966. * src/InitiateConnectionCommand.cc
  5967. * src/InitiateConnectionCommand.h
  5968. * src/Makefile.am
  5969. * src/Makefile.in
  5970. * src/NameResolver.cc
  5971. * src/NameResolver.h
  5972. * src/OptionHandlerFactory.cc
  5973. * src/SocketCore.cc
  5974. * src/SocketCore.h
  5975. * src/Util.cc
  5976. * src/Util.h
  5977. * src/option_processing.cc
  5978. * src/prefs.h
  5979. * src/usage_text.h
  5980. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5981. Updated man page: --quiet, --header were added.
  5982. --metalink-servers and --enable-http-keep-alive option were updated.
  5983. * doc/aria2c.1
  5984. * doc/aria2c.1.html
  5985. * doc/aria2c.1.txt
  5986. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5987. Enable HTTP keep-alive by default.
  5988. * src/HelpItemFactory.cc
  5989. * src/option_processing.cc
  5990. * src/usage_text.h
  5991. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5992. Disable http keep-alive if the remote server is not HTTP/1.1.
  5993. * src/HttpConnection.cc
  5994. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5995. Receive content body of 302 response so that the connection can be
  5996. reused later when http keep-alive is enabled.
  5997. * src/HttpNullDownloadCommand.cc
  5998. * src/HttpNullDownloadCommand.h
  5999. * src/HttpResponseCommand.cc
  6000. * src/HttpResponseCommand.h
  6001. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6002. const SharedHandle<Request> -> const SharedHandle<Request>&
  6003. * src/FtpDowndloadCommand.cc
  6004. * src/FtpDowndloadCommand.h
  6005. * src/HttpDownloadCommand.cc
  6006. * src/HttpDownloadCommand.h
  6007. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6008. Fixed the bug that the control file(.aria2 file) is not renamed
  6009. according to tryAutoFileRenaming().
  6010. tryAutoFileRenaming() was rewritten so that if both renamed file and
  6011. its control file exist, use them and continue download.
  6012. The old implementation didn't take into account of control file's
  6013. existence, so basically you couldn't continue download of renamed file.
  6014. * src/BtProgressInfoFile.h
  6015. * src/DefaultBtProgressInfoFile.cc
  6016. * src/DefaultBtProgressInfoFile.h
  6017. * src/NullProgressInfoFile.h
  6018. * src/RequestGroup.cc
  6019. * test/DefaultBtProgressInfoFileTest.cc
  6020. * test/MockBtProgressInfoFile.h
  6021. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6022. Change the default value of --metalink-servers option from `5' to `1'.
  6023. * src/HelpItemFactory.cc
  6024. * src/option_processing.cc
  6025. * src/usage_text.h
  6026. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6027. Reimplemented transparent metalink using Accept request header.
  6028. * src/HttpRequest.cc
  6029. * src/HttpRequest.h
  6030. * src/HttpRequestCommand.cc
  6031. * src/Metalink2RequestGroup.cc
  6032. * src/RequestGroup.cc
  6033. * src/RequestGroup.h
  6034. * test/HttpRequestTest.cc
  6035. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6036. Bump up version number to 0.13.2a
  6037. * configure.ac
  6038. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6039. Updated configure.ac using the result of autoscan.
  6040. * configure.ac
  6041. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6042. Fixed compilation error without gcrypt/openssl.
  6043. * src/DownloadCommand.cc
  6044. * src/DownloadCommand.h
  6045. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6046. Reorganized version information so that it can be displayed in a
  6047. standard terminal screen without scrolling.
  6048. Removed http, ftp from Configuration section, because they are always
  6049. enabled.
  6050. * src/FeatureConfig.cc
  6051. * src/FeatureConfig.h
  6052. * src/main.cc
  6053. * src/messageDigest.cc
  6054. * src/messageDigest.h
  6055. * src/version_usage.cc
  6056. * test/FeatureConfigTest.cc
  6057. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6058. Masked user ID in log.
  6059. * src/FtpConnection.cc (sendUser)
  6060. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6061. Removed query part from filename in HTTP download. The query part means
  6062. the substring after "?" in URL. Firefox seems do the same thing.
  6063. A query part is sometimes very long and not suitable to filename,
  6064. so I think it is better to remove it from filename.
  6065. * src/HttpRequest.cc
  6066. * src/HttpRequest.h
  6067. * src/Request.cc
  6068. * src/Request.h
  6069. * test/HttpRequestTest.cc
  6070. * test/RequestTest.cc
  6071. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6072. Rewritten Exception class. Throw exception object, not its pointer and
  6073. catch by reference, so that remove problematic delete operator for
  6074. catched exception.
  6075. * src/Exception.cc
  6076. * src/Exception.h
  6077. * test/ExceptionTest.cc
  6078. * src/*: All files throwing/catching exception.
  6079. * test/*: All files throwing/catching exception.
  6080. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6081. Now auto protocol detection is enabled without -Z option.
  6082. But there is a important difference between with/without -Z optoin.
  6083. For example, if you type:
  6084. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  6085. then, aria2 interprets there are 3 request groups:
  6086. (1) http://host/file, http://mirror/file <-- multi-source download
  6087. (2) file1.torrent
  6088. (3) file2.metalink
  6089. On the other hand, if you invoke above command with -Z option, it is
  6090. interpreted as 4 request groups:
  6091. (1) http://host/file
  6092. (2) file1.torrent
  6093. (3) file2.metalink
  6094. (4) http://mirror/file
  6095. I think usually user don't mix multi-source URLs and torrent files, so
  6096. there is no big problem here.
  6097. * src/main.cc
  6098. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6099. Fixed the bug that causes segmentaion fault when reading XML containing
  6100. unescapsed character like '&'.
  6101. Also a modification was made which avoids adding unnecessary
  6102. characters stack and appending unused string.
  6103. * src/ExpatMetalinkProcessor.cc
  6104. * src/FileMetalinkParserState.h
  6105. * src/FilesMetalinkParserState.h
  6106. * src/FinMetalinkParserState.h
  6107. * src/HashMetalinkParserState.h
  6108. * src/InitialMetalinkParserState.h
  6109. * src/LanguageMetalinkParserState.h
  6110. * src/MetalinkMetalinkParserState.h
  6111. * src/MetalinkParserState.h
  6112. * src/MetalinkParserStateMachine.cc
  6113. * src/MetalinkParserStateMachine.h
  6114. * src/OSMetalinkParserState.h
  6115. * src/PieceHashMetalinkParserState.h
  6116. * src/PiecesMetalinkParserState.h
  6117. * src/ResourcesMetalinkParserState.h
  6118. * src/SizeMetalinkParserState.h
  6119. * src/SkipTagMetalinkParserState.h
  6120. * src/URLMetalinkParserState.h
  6121. * src/VerificationMetalinkParserState.h
  6122. * src/VersionMetalinkParserState.h
  6123. * src/XML2SAXMetalinkProcessor.cc
  6124. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6125. Added StringFormat class, which internally calls vasprintf.
  6126. operator<< is defined for this class, so it can be used with iostream
  6127. classes nicely. SimpleLogger and following functions are rewritten
  6128. using StringFormat class.
  6129. Besides, now Logger class's methods are non-const, many classes
  6130. that has a const Logger* as a member variable are modified to remove
  6131. const qualifier from the variable declaration.
  6132. * src/HelpItemFactory.cc
  6133. * src/Request.cc
  6134. * src/SimpleLogger.cc
  6135. * src/StringFormat.cc
  6136. * src/StringFormat.h
  6137. * src/Util.cc
  6138. * src/option_processing.cc
  6139. * src/version_usage.cc
  6140. * test/StringFormatTest.cc
  6141. * src/*.h: The classes that has const Logger* as a member variable.
  6142. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6143. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  6144. failed. Also fixed memory link when exception is thrown there.
  6145. * src/main.cc (AccRequestGroup)
  6146. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6147. Added build-in "Accept-Features" support. For now only "metalink" is
  6148. used in this header field.
  6149. This "metalink" value is removed from the list when connecting URLs
  6150. fed by metalink file to avoid loop in "transparent" metlaink.
  6151. * src/HttpRequest.cc
  6152. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  6153. header is also held in this variable. Also renamed setUserHeaders as
  6154. addHeader and it was rewritten to add header not just to clear the old
  6155. value.
  6156. * src/HttpRequestCommand.cc
  6157. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  6158. from "Accept-Features" list.
  6159. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  6160. default.
  6161. * src/RequestGroup.h
  6162. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  6163. * src/a2functional.h: Included <string> because Concat class depends on
  6164. it.
  6165. * test/HttpRequestTest.cc
  6166. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6167. Added comment
  6168. * src/RequestGroup.cc (createNextCommand)
  6169. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6170. Capitalized METHOD_GET and METHOD_HEAD
  6171. * src/Request.cc
  6172. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6173. Added getDownloadResults() method
  6174. * src/RequestGroupMan.cc
  6175. * src/RequestGroupMan.h
  6176. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6177. Fixed the bug that aria2 exits when commands is empty() but
  6178. _routineCommands are not.
  6179. * src/DownloadEngine.cc
  6180. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6181. Use the default value pulled from Option object in HelpItemFactory.
  6182. except options whose defualt value is embedded in a usage text.
  6183. * src/HelpItemFactory.cc
  6184. * src/HelpItemFactory.h
  6185. * src/option_processing.cc
  6186. * src/version_usage.cc
  6187. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6188. Added --quiet option to make aria2 quiet (no console output).
  6189. --quiet option is tagged with ADVANCED.
  6190. * src/HelpItemFactory.cc
  6191. * src/LogFactory.cc
  6192. * src/LogFactory.h
  6193. * src/MultiUrlRequestInfo.cc
  6194. * src/MultiUrlRequestInfo.h
  6195. * src/NullStatCalc.h: New class. This class prints nothing.
  6196. * src/OptionHandlerFactory.cc
  6197. * src/main.cc
  6198. * src/option_processing.cc
  6199. * src/prefs.h
  6200. * src/usage_text.h
  6201. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6202. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  6203. * src/HelpItemFactory.cc (createHelpItems):
  6204. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6205. Fixed compilation error in ExpatMetalinkProcessor.cc
  6206. * src/ExpatMetalinkProcessor.cc
  6207. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6208. Reuse socket if the origin server supports HTTP keep-alive and
  6209. --enable-http-keep-alive or --enable-http-pipelining is given.
  6210. The current implementation doesn't reuse the connections established
  6211. against proxy server.
  6212. * src/AbstractCommand.cc
  6213. * src/DownloadEngine.cc
  6214. * src/DownloadEngine.h
  6215. * src/HttpDownloadCommand.cc
  6216. * src/HttpInitiateConnectionCommand.cc
  6217. * src/HttpResponseCommand.cc
  6218. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6219. Rewritten HTTP keep-alive and pipelining routine.
  6220. * src/AbstractCommand.cc
  6221. * src/HttpConnection.cc
  6222. * src/HttpDownloadCommand.cc
  6223. * src/HttpRequest.cc
  6224. * src/HttpRequestCommand.cc
  6225. * src/HttpResponseCommand.cc
  6226. * src/Request.cc
  6227. * src/Request.h
  6228. * src/RequestGroup.cc
  6229. * test/HttpRequestTest.cc
  6230. * test/HttpResponseTest.cc
  6231. * test/RequestTest.cc
  6232. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6233. Added missing setUserHeaders call
  6234. * src/HttpRequestCommand.cc
  6235. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6236. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  6237. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  6238. waste of time because it is more likey false.
  6239. * src/FileAllocationDispatcherCommand.cc (execute)
  6240. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6241. Now HTTP status and version are a member variable of HttpHeader.
  6242. HTTP status is processed as a string, not integer.
  6243. * src/AbstractProxyResponseCommand.cc
  6244. * src/HttpConnection.cc
  6245. * src/HttpHeader.cc
  6246. * src/HttpHeader.h
  6247. * src/HttpHeaderProcessor.cc
  6248. * src/HttpHeaderProcessor.h
  6249. * src/HttpResponse.cc
  6250. * src/HttpResponse.h
  6251. * test/HttpHeaderProcessorTest.cc
  6252. * test/HttpResponseTest.cc
  6253. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6254. Added --header option. You can specify any number of additional HTTP headers
  6255. like:
  6256. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  6257. Unlike other commad-line option, you can use --header option multiple times.
  6258. * src/HelpItemFactory.cc
  6259. * src/HttpRequest.{cc, h}
  6260. * src/HttpRequestCommand.cc
  6261. * src/OptionHandlerFactory.cc
  6262. * src/OptionHandlerImpl.h
  6263. * src/option_processing.cc
  6264. * src/prefs.h
  6265. * src/usage_text.h
  6266. * test/HttpRequestTest.cc (testUserHeaders)
  6267. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6268. Eliminates the time lag between sequential downloads and commands in
  6269. the same RequestGroup.
  6270. In old implementation, aria2 occasionally waits 1 seconds before
  6271. executing next command or RequestGroup.
  6272. This is really a waste of time, and new implementation eliminates
  6273. this unnecessary time lag.
  6274. * src/AbstractCommand.cc
  6275. * src/AutoSaveCommand.cc
  6276. * src/CheckIntegrityCommand.cc
  6277. * src/Command.{cc, h}
  6278. * src/DownloadEngine.{cc, h}
  6279. * src/DownloadEngineFactory.cc
  6280. * src/FileAllocationCommand.cc
  6281. * src/FileAllocationDispatcherCommand.cc
  6282. * src/FillRequestGroupCommand.cc
  6283. * src/FtpInitiateConnectionCommand.cc
  6284. * src/HaveEraseCommand.cc
  6285. * src/HttpInitiateConnectionCommand.cc
  6286. * src/HttpResponseCommand.cc
  6287. * src/RealtimeCommand.cc
  6288. * src/RequestGroup.cc
  6289. * src/RequestGroupMan.cc
  6290. * src/StreamFileAllocationEntry.cc
  6291. * src/TimeBasedCommand.{cc, h}
  6292. * src/TimedHaltCommand.cc
  6293. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6294. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  6295. keyword explicit and SharedHandle's default constructor initializes
  6296. its internal obj to null, old implementation initializes it using
  6297. obj's default constructor.
  6298. To assign null, write SharedHandle<T> x(...); x.reset();
  6299. TODO: test/SharedHandleTest.cc needs more tests.
  6300. * src/SharedHandle.h
  6301. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6302. Fixed type in man page.
  6303. * doc/aria2c.1.txt
  6304. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6305. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  6306. * src/SimpleLogger.{cc, h}
  6307. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6308. Implemented auto protocol detection.
  6309. Now you can do:
  6310. aria2c -Z http://host/file file1.torrent file2.metalink
  6311. (Note: -Z option is required for auto protcol detection.)
  6312. Then aria2c downloads 3 files simultaneously:
  6313. 1. http://host/file
  6314. 2. file1.torrent <-- read local torrent file
  6315. 3. file2.metalink <-- read local Metalink file.
  6316. Same thing goes with -i option. Assume your uris.txt contans:
  6317. http://host/file
  6318. file1.torrent
  6319. file2.metalink
  6320. Then you can do: aria2c -i uris.txt
  6321. (Note: -Z option is not needed if -i option is given.)
  6322. * src/main.cc
  6323. * src/ProtocolDetector.{cc, h}
  6324. * test/ProtocolDetectorTest.cc
  6325. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6326. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  6327. installed
  6328. * src/ARC4Encryptor.h
  6329. * src/ARC4Decryptor.h
  6330. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6331. Renamed argument from 'errno' to 'err', since errno is confused with
  6332. errno defined in errno.h.
  6333. * src/LibgcryptARC4Decryptor.h
  6334. * src/LibgcryptARC4Context.h
  6335. * src/LibgcryptDHKeyExchange.h
  6336. * src/LibgcryptARC4Encryptor.h
  6337. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6338. Rewritten choking algorithm.
  6339. * src/PeerChokeCommand.{cc, h}
  6340. * src/BtInterestedMessage.cc
  6341. * src/PeerSessionResource.{cc, h}
  6342. * src/DefaultPeerStorage.{cc, h}
  6343. * src/BtNotInterestedMessage.cc
  6344. * src/DefaultBtMessageDispatcher.{cc, h}
  6345. * src/BtMessageDispatcher.h
  6346. * src/Peer.{cc, h}
  6347. * src/BtLeecherStateChoke.{cc, h}
  6348. * src/BtSetup.cc
  6349. * src/BtSeederStateChoke.{cc, h}
  6350. * src/PeerStorage.h
  6351. * test/MockPeerStorage.h
  6352. * test/MockBtMessageDispatcher.h
  6353. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6354. Fixed compilation error on x84-64 platform.
  6355. * src/AuthConfig.cc: Included ostream.
  6356. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6357. Rewritten getBasename() and getDirname(), without standard library
  6358. basename(), dirname().
  6359. * src/File.cc
  6360. * test/FileTest.cc
  6361. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6362. Added Simplified Chinese translation. Also updated the following
  6363. translations: Polish, Dutch, German. Great thanks to all translators.
  6364. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6365. Suppress content-range error when 'Content-Range' response header
  6366. doesn't contains bytes-unit specifier 'bytes'
  6367. * src/HttpHeader.cc (getRange)
  6368. * test/HttpHeaderTest.cc
  6369. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6370. Fixed compilation error with g++-4.3
  6371. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6372. Added missing include files for MinGW
  6373. * test/HttpHeaderProcessorTest.cc
  6374. * test/DHTRoutingTableSerializerTest.cc
  6375. * test/DHTRoutingTableDeserializerTest.cc
  6376. * test/UriListParserTest.cc
  6377. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6378. Now download line is printed nicely with no garbage at the end of
  6379. line. I use ioctl to get the columns of terminal.
  6380. If stdout is redirected to another device, instead of carriage return,
  6381. end of line '\n' character is used. This is feature request#1909659
  6382. * src/ConsoleStatCalc.cc (calculateStat)
  6383. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6384. Included a2time.h
  6385. * src/DHTMessageDispatcher.h
  6386. * src/DHTMessageEntry.h
  6387. * src/DHTReplaceNodeTask.h
  6388. * src/DHTMessageTracker.h
  6389. * src/Util.h
  6390. * src/CookieBox.h
  6391. * src/SocketCore.h
  6392. * src/DefaultBtMessageDispatcher.h
  6393. * src/SocketCore.cc
  6394. * src/Util.cc
  6395. * src/DHTPingTask.h
  6396. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6397. Fixed high memory footprint when DHT is enabled.
  6398. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  6399. queued than it is processed and the queue is getting longer. As a
  6400. consequence, momory usage is increased.
  6401. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  6402. replacement cache in DHTBucket which is described in Kademlia paper.
  6403. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  6404. DHTReplaceNodeTask.
  6405. * src/DHTBucket.{h, cc}
  6406. (cacheNode): New function.
  6407. (getCachedNodes): New function.
  6408. (dropNode): Push back cached node to _nodes.
  6409. * test/DHTBucketTest.cc
  6410. (testCacheNode): New test
  6411. (testDropNode): New test
  6412. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6413. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  6414. the unused 4KB memory when ssl is not used.
  6415. * src/SocketCore.cc
  6416. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6417. Added summary log for peer announce storage.
  6418. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  6419. Removed cast
  6420. * src/DefaultPeerStorage.cc (addPeer)
  6421. Log exception message
  6422. * src/DHTMessageTracker.cc (handleTimeout)
  6423. Fixed casting
  6424. * test/HttpRequestTest.cc
  6425. * test/MetalinkProcessorTest.cc
  6426. * test/PieceTest.cc
  6427. * test/MetalinkEntryTest.cc
  6428. * test/SequenceTest.cc
  6429. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6430. * src/ParameterizedStringParser.cc (createLoop):
  6431. Removed unused variable sstep.
  6432. * src/AlphaNumberDecorator.h (decode): Rewritten.
  6433. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6434. * src/Util.{h, cc}
  6435. (parseUInt): New function.
  6436. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  6437. The actual range is uint32_t.
  6438. * test/UtilTest.cc
  6439. * src/ParameterizedStringParser.cc:
  6440. Use Util::parseUInt() for loop variables.
  6441. * test/ParameterizedStringParserTest.cc
  6442. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  6443. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6444. Rewritten the functions for binding port.
  6445. * src/DHTConnectionImpl.{h, cc}
  6446. * src/PeerListenCommand.{h, cc}
  6447. * src/DHTSetup.cc
  6448. * src/BtSetup.cc
  6449. * test/DHTConnectionImplTest.cc
  6450. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6451. type cleanup for allmost all remaining files.
  6452. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6453. Type clarification
  6454. * src/PeerSessionResource.{h, cc}
  6455. * src/DefaultPieceStorage.{h, cc}
  6456. * src/Peer.{h, cc}
  6457. * test/PeerSessionResourceTest.cc
  6458. Use div function
  6459. * src/BtPieceMessage.cc (erasePieceOnDisk)
  6460. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6461. Type clarification
  6462. * src/DefaultPeerStorage.{h, cc}
  6463. * test/DefaultPeerStorageTest.cc
  6464. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6465. Type clarification: size_t for length or size, uint64_t for file
  6466. length, off_t for file offset.
  6467. * src/DefaultBtProgressInfoFile.cc
  6468. * src/DefaultBtContext.{h, cc}
  6469. * src/DefaultBtInteractive.cc
  6470. * src/DownloadCommand.{h, cc}
  6471. * src/IteratableChunkChecksumValidator.{h, cc}
  6472. * src/SegmentMan.{h, cc}
  6473. * src/SingleFileDownloadContext.{h, cc}
  6474. * src/IteratableChecksumValidator.{h, cc}
  6475. * src/BtContext.h
  6476. * src/IteratableValidator.h
  6477. * src/DownloadContext.h
  6478. * test/SingleFileDownloadContextTest.cc
  6479. * test/DefaultBtContextTest.cc
  6480. * test/MockBtContext.h
  6481. * test/Metalink2RequestGroupTest.cc
  6482. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6483. Type clarification: size_t for length or size, uint64_t for file
  6484. length, off_t for file offset.
  6485. * src/PiecedSegment.cc
  6486. * src/GrowSegment.h
  6487. * src/DefaultBtRequestFactory.h
  6488. * src/DefaultBtProgressInfoFile.cc
  6489. * src/UnknownLengthPieceStorage.h
  6490. * src/DefaultPieceStorage.cc
  6491. * src/UnknownLengthPieceStorage.cc
  6492. * src/DefaultBtInteractive.cc
  6493. * src/GrowSegment.cc
  6494. * src/BitfieldMan.h
  6495. * src/DownloadCommand.cc
  6496. * src/BtRequestFactory.h
  6497. * src/PiecedSegment.h
  6498. * src/DefaultPieceStorage.h
  6499. * src/Piece.cc
  6500. * src/DefaultBtRequestFactory.cc
  6501. * src/PieceStorage.h
  6502. * src/Segment.h
  6503. * src/Piece.h
  6504. * src/BitfieldMan.cc
  6505. * src/Util.cc
  6506. * test/DefaultBtProgressInfoFileTest.cc
  6507. * test/DefaultPieceStorageTest.cc
  6508. * test/MockPieceStorage.h
  6509. * test/BtRequestMessageTest.cc
  6510. * test/DefaultBtMessageDispatcherTest.cc
  6511. * test/BitfieldManTest.cc
  6512. * test/GrowSegmentTest.cc
  6513. * test/PieceTest.cc
  6514. * test/SegmentTest.cc
  6515. * test/SegmentManTest.cc
  6516. * test/DefaultBtRequestFactoryTest.cc
  6517. * test/MockBtRequestFactory.h
  6518. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6519. Fixed compilation error with --disable-nls
  6520. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  6521. in gettext.h causes the problem.
  6522. * src/common.h
  6523. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6524. Removed subPiece related functions.
  6525. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  6526. * src/DefaultPieceStorage.{h, cc}
  6527. * test/PieceTest.cc
  6528. * test/DefaultPieceStorageTest.cc
  6529. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6530. Use unsigned char for data store.
  6531. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6532. Bump up version number to 0.13.0+1
  6533. * configure.ac
  6534. * Release 0.13.0+1
  6535. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6536. Changed inactive connection timeout to 120.
  6537. To accept more mulually interested peers, disconnect peer when there
  6538. is no interest between us after certain time passed.
  6539. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  6540. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6541. Fixed the bug that aria2 only uses first dns server in resolv.conf
  6542. when compiled with async DNS support.
  6543. * src/DownloadEngine.cc
  6544. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  6545. value '10' will be a little bit short when some DNS servers are
  6546. offline and several DNS servers are tried. It should be configured
  6547. by command-line option.
  6548. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6549. Merged Ross's mingw patch.
  6550. * src/DHTRoutingTableDeserializer.cc
  6551. * src/DHTRoutingTableSerializer.cc
  6552. * src/Platform.{h, cc}
  6553. * src/timegm.h
  6554. * src/gettimeofday.h
  6555. * src/getaddrinfo.h
  6556. * src/SocketCore.h
  6557. * src/common.h
  6558. * src/inet_aton.h
  6559. * src/DownloadEngine.h
  6560. * src/gai_strerror.h
  6561. * src/a2netcompat.h
  6562. * configure.ac
  6563. * configure
  6564. * aclocal.m4
  6565. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6566. Included missing iostream.
  6567. * test/AllTest.cc
  6568. * test/BtDependencyTest.cc
  6569. * test/BtExtendedMessageTest.cc
  6570. * test/DHTConnectionImplTest.cc
  6571. * test/DHTMessageFactoryImplTest.cc
  6572. * test/DHTMessageTrackerEntryTest.cc
  6573. * test/DHTNodeTest.cc
  6574. * test/DHTRoutingTableSerializerTest.cc
  6575. * test/DefaultBtAnnounceTest.cc
  6576. * test/DefaultBtContextTest.cc
  6577. * test/DefaultBtMessageFactoryTest.cc
  6578. * test/DefaultExtensionMessageFactoryTest.cc
  6579. * test/HandshakeExtensionMessageTest.cc
  6580. * test/HttpResponseTest.cc
  6581. * test/MetalinkProcessorTest.cc
  6582. * test/MultiFileAllocationIteratorTest.cc
  6583. * test/SocketCoreTest.cc
  6584. * test/UTPexExtensionMessageTest.cc
  6585. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6586. Reorganized includes.
  6587. * src/NameResolver.cc
  6588. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6589. Fixed compilation error without ares/c-ares
  6590. * src/NameResolver.h:
  6591. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6592. Added a test for large file.
  6593. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  6594. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6595. Fixed the bug that file size is ignored if size > INT32_MAX
  6596. * src/SizeMetalinkParserState.cc (endElement):
  6597. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6598. Bump up version number to 0.13.0
  6599. * configure.ac
  6600. * Release 0.13.0
  6601. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6602. Updated Makfefile.am to make 'make dist' work.
  6603. Now packaged filename is aria2c-VERSION.tar.bz2.
  6604. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  6605. Added LICENSE.OpenSSL to dist_noinst_DATA.
  6606. Large file support is now configured by configure script.
  6607. * configure.ac
  6608. Removed unsused source files
  6609. * src/
  6610. * test/
  6611. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  6612. Peer.h and BtContext.h respectively.
  6613. * src/Peer.h
  6614. * src/BtContext.h
  6615. Updated translations.
  6616. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  6617. translations. Great thanks to all translators!;)
  6618. * po/*.{po, gmo}
  6619. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6620. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  6621. statically declared sha1 MessageDigestContext.
  6622. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  6623. initialization of short-lived MessageDigestContext.
  6624. * src/MessageDigestHelper.{h, cc}
  6625. * src/main.cc
  6626. Now DownloadCommand has a reference to MessageDigestContext to avoid
  6627. the initialization of MessageDigestContext every time in validating
  6628. chunk checksum.
  6629. * src/DownloadCommand.{h, cc}
  6630. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6631. Add a file descriptor which connected to fast peer(latency<1500) to
  6632. select(). This change reduced CPU load.
  6633. * src/PeerInteractionCommand.cc
  6634. * src/DefaultBtInteractive.{h, cc}
  6635. * src/BtInteractive.h
  6636. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6637. Fixed the previous insufficient fix for possible busy loop.
  6638. * src/MSEHandshake.cc (identifyHandshakeType)
  6639. Removed unused functions.
  6640. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  6641. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6642. Fixed possible busy loop if first 20 bytes are not received for a few
  6643. minutes.
  6644. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  6645. * src/ReceiverMSEHandshakeCommand.cc
  6646. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6647. Fixed compilation error
  6648. * src/ExpatMetalinkProcessor.cc
  6649. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6650. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  6651. * src/DHTBucket.cc
  6652. Removed unnecessary cast.
  6653. * src/HandshakeExtensionMessage.cc
  6654. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6655. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  6656. is missing.
  6657. * src/OptionHandlerFactory.cc
  6658. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6659. Fixed the bug that HAVE message is not sent for a piece they are
  6660. downloaded fom http/ftp server before any BitTorrent handshake is done
  6661. with peers.
  6662. * src/DefaultBtInteractive.cc
  6663. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6664. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  6665. * src/Makefile.am
  6666. * src/Makefile.in
  6667. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6668. Updated README. Added html version of README and man page.
  6669. * README
  6670. * README.html
  6671. * readme2html: Shell script to generate README.html from README using
  6672. asciidoc.
  6673. * doc/aria2c.1.html
  6674. * doc/makeman: Added the line to generate aria2c.1.html
  6675. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6676. Fixed offset calculation.
  6677. * src/LibgcryptDHKeyExchange.h (computeSecret)
  6678. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6679. Rewritten itos and uitos using template. llitos and ullitos are
  6680. replaced with itos and uitos respectively.
  6681. * src/Util.{h, cc}
  6682. * test/UtilTest.cc
  6683. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6684. Fixed the bug that DH key exchange sometimes fails due to bad handling
  6685. of the number of bytes required for storing public key and shared
  6686. secret.
  6687. * src/LibgcryptDHKeyExchange.h
  6688. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  6689. * src/MSEHandshake.cc
  6690. * test/DHKeyExchangeTest.cc
  6691. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6692. Removed since they are not used.
  6693. * src/Xml2MetalinkProcessor.{h, cc}
  6694. * src/Socket.cc
  6695. * src/SegmentSplitter.{h, cc}
  6696. * test/Xml2MetalinkProcessorTest.cc
  6697. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6698. Fixed the bug that prevents aria2 from stopping other than by pressing
  6699. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  6700. option. aria2 doesn't stop even after --seed-time is satisfied and
  6701. continues to output blank lines in the console.
  6702. * src/ReceiverMSEHandshakeCommand.cc
  6703. * src/PeerReceiveHandshakeCommand.cc
  6704. * src/PeerListenCommand.cc
  6705. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6706. Bump up version number to 0.13.0rc
  6707. * configure.ac
  6708. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6709. Updated man page and some usage text.
  6710. * doc/aria2c.1.txt
  6711. * src/usage_text.h
  6712. * po/*.{po, gmo}
  6713. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6714. Updated translations. Added Finnish and Hebrew translations.
  6715. Great thanks to all translators!
  6716. * po/*.{po, gmo}
  6717. * po/LINGUAS
  6718. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6719. Log more detailed information about each message.
  6720. * src/DHTQueryMessage.{h, cc}
  6721. * src/DHTGetPeersMessage.{h, cc}
  6722. * src/DHTFindNodeReplyMessage.{h, cc}
  6723. * src/DHTGetPeersReplyMessage.{h, cc}
  6724. * src/DHTAnnouncePeerMessage.{h, cc}
  6725. * src/DHTResponseMessage.{h, cc}
  6726. * src/DHTFindNodeMessage.{h, cc}
  6727. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6728. Use constants defined in prefs.h
  6729. * src/option_processing.cc
  6730. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6731. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  6732. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6733. Make room for future enchancements for IPv6 addresses.
  6734. Bump up version number of dht.dat file format to 2.
  6735. Not compatible with previous version.
  6736. * src/DHTRoutingTableSerializer.cc
  6737. * src/DHTRoutingTableDeserializer.cc
  6738. * test/DHTRoutingTableSerializerTest.cc
  6739. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6740. Added handling for the return values from
  6741. PeerMessageUtil::createcompact().
  6742. * src/DefaultBtContext.cc (computeFastSet):
  6743. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6744. Fixed abort when peer's ip address is IPv4-mapped address.
  6745. * src/DefaultBtContext.cc (computeFastSet)
  6746. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  6747. cannot handle IPv4-mapped addresses.
  6748. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  6749. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6750. Proper return value handling for OpenSSL functions.
  6751. * src/LibsslDHKeyExchange.h
  6752. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6753. Random bytes generation using libgcrypt and OpenSSL.
  6754. * src/DHTUtil.{h, cc}
  6755. * test/DHTUtilTest.cc
  6756. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6757. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  6758. received.
  6759. * src/DHTMessageReceiver.cc (receiveMessage)
  6760. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6761. Fixed the bug that a return code is always 0. BUG#1897704
  6762. If error occurred during the download or there exist unfinished
  6763. downloads, aria2 returns with code 1.
  6764. * src/RequestGroupMan.{h, cc}
  6765. * src/MultiUrlRequestInfo.{h, cc}
  6766. * src/main.cc
  6767. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6768. IPv6 support for SocketCore class.
  6769. TODO: In SocketCore::establishConnection(), this is insufficient to
  6770. determin the failure of connect() here because the socket is
  6771. non-blocking state. The next addresses should be tried after select().
  6772. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  6773. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  6774. instead which address family independent.
  6775. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  6776. information in a compact peer format which is for IPv4 only.
  6777. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  6778. this is a spec of BitTorrent protocol.
  6779. * src/SocketCore.{h, cc}
  6780. * src/PeerMessageUtil.cc
  6781. * test/SocketCoreTest.cc
  6782. * test/PeerMessageUtilTest.cc
  6783. * test/DHTConnectionImplTest.cc
  6784. Handle IPv4-mapped addresses.
  6785. * src/DHTNode.cc: Now identity is determined by node id.
  6786. * src/DHTMessageTrackerEntry.cc
  6787. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  6788. should handle it.
  6789. * src/DHTRoutingTableDeserializer.cc
  6790. * src/DHTMessageFactoryImpl.cc
  6791. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6792. Change the unit of --stop option from a minute to a second.
  6793. * src/usage_text.h
  6794. * src/DownloadEngineFactory.cc
  6795. * src/OptionHandlerFactory.cc
  6796. * src/message.h
  6797. * src/TimedHaltCommand.cc
  6798. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6799. Make listening socket non-block mode.
  6800. * src/FtpConnection.cc
  6801. * src/FtpNegotiationCommand.{h, cc}
  6802. * src/PeerListenCommand.cc
  6803. Fixed the bug that cause slow ftp negotiation.
  6804. * src/FtpNegotiationCommand.{h, cc}
  6805. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6806. Added basic tag to --enable-dht, --dht-listen-port option.
  6807. * src/HelpItemFactory.cc (createHelpItems)
  6808. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6809. Updated text.
  6810. * src/usage_text.h
  6811. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6812. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  6813. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6814. Determin _threadtholdSpeed in each constructor for
  6815. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  6816. * src/ActivePeerConnectionCommand.{h, cc}
  6817. * src/PeerReceiveHandshakeCommand.{h, cc}
  6818. * src/BtSetup.cc
  6819. * src/BtConstants.h
  6820. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6821. Added --bt-min-crypto-level and --bt-require-crypto options.
  6822. * src/OptionHandlerFactory.cc
  6823. * src/MSEHandshake.cc
  6824. * src/HelpItemFactory.cc
  6825. * src/option_processing.cc
  6826. * src/ReceiverMSEHandshakeCommand.cc
  6827. * src/prefs.h
  6828. * src/DefaultBtAnnounce.cc
  6829. * src/InitiatorMSEHandshakeCommand.cc
  6830. * src/usage_text.h
  6831. * test/MSEHandshakeTest.cc
  6832. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6833. Bump version number to 0.13.0b
  6834. * configure.ac
  6835. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6836. Updated doc.
  6837. * src/MessageDigestHelper.h:
  6838. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6839. Use raw message digest as a token instead of its hexadecimal
  6840. representation.
  6841. * src/DHTTokenTracker.cc (generateToken)
  6842. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6843. Added Message Stream Encryption(MSE) support.
  6844. Currently, aria2 accepts incoming connections with Obfuscation Header
  6845. and legacy BitTorrent Header and establishes connections with
  6846. Obfuscation Header first and if failed then retry with legacy
  6847. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  6848. choose ARC4. The new option to change the default behavior is planned.
  6849. For tracker extension, "supportcrypto=1" is added statically.
  6850. * src/PeerInitiateConnectionCommand.{h, cc}
  6851. * src/PeerConnection.{h, cc}
  6852. * src/HandleRegistry.h
  6853. * src/SocketCore.h
  6854. * src/PeerReceiveHandshakeCommand.{h, cc}
  6855. * src/BtRegistry.{h, cc}
  6856. * src/PeerListenCommand.cc
  6857. * src/InitiatorMSEHandshakeCommand.{h, cc}
  6858. * src/ReceiverMSEHandshakeCommand.{h, cc}
  6859. * src/MSEHandshake.{h, cc}
  6860. * src/ARC4Encryptor.h
  6861. * src/ARC4Decryptor.h
  6862. * src/LibgcryptARC4Encryptor.h
  6863. * src/LibgcryptARC4Decryptor.h
  6864. * src/LibgcryptARC4Context.h
  6865. * src/LibsslARC4Encryptor.h
  6866. * src/LibsslARC4Decryptor.h
  6867. * src/LibsslARC4Context.h
  6868. * src/DHKeyExchange.h
  6869. * src/LibgcryptDHKeyExchange.h
  6870. * src/LibsslDHKeyExchange.h
  6871. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  6872. * test/DefaultBtAnnounceTest.cc
  6873. * test/ARC4Test.cc
  6874. * test/DHKeyExchangeTest.cc
  6875. Removed prepareForRetry() because it is not used.
  6876. * src/PeerAbstractCommand.{h, cc}
  6877. * src/PeerInteractionCommand.{h, cc}
  6878. * src/PeerInitiateConnectionCommand.{h, cc}
  6879. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6880. Added the ability to load nodes from torrent file. These nodes are
  6881. added to the routing table when downloading that torrent.
  6882. * src/BtContext.h
  6883. * src/DefaultBtContext.{h, cc}
  6884. * src/DHTSetup.cc
  6885. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  6886. hostname and port pair, and resolves all of them.
  6887. * src/NameResolver.{h, cc}: Added reset().
  6888. * src/RequestGroup.cc
  6889. * test/DefaultBtContextTest.cc
  6890. * test/MockBtContext.h
  6891. Removed assert() from DefaultBtContext and throw exception instead.
  6892. * src/DefaultBtContext.cc
  6893. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6894. Fixed segmentation fault bug when exiting if dht is disabled.
  6895. * src/RequestGroup.cc
  6896. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6897. Fixed typo in log message and define the message in message.h
  6898. * src/TimedHaltCommand.cc
  6899. * src/message.h
  6900. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6901. Included RecoverableException.h to fix compilation error.
  6902. * test/DHTMessageFactoryImplTest.cc
  6903. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6904. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  6905. * test/DHTPingMessageTest.cc
  6906. * test/DHTGetPeersMessageTest.cc
  6907. * test/DHTFindNodeMessageTest.cc
  6908. * test/DHTAnnouncePeerMessageTest.cc
  6909. * test/MockDHTMessage.h
  6910. * test/MockDHTMessageFactory.h
  6911. * test/MockDHTMessageDispatcher.h: New class.
  6912. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6913. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  6914. virtual.
  6915. * src/DHTMessageDispatcher.h
  6916. * src/DHTMessageDispatcherImpl.{h, cc}
  6917. * src/DHTSetup.cc
  6918. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6919. Adding handling of DHT error message. Just log error message and
  6920. throw exception.
  6921. * src/DHTMessageFactoryImpl.cc
  6922. * test/DHTMessageFactoryImplTest.cc
  6923. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6924. Added handling of dynamic cast failure.
  6925. * src/DHTNodeLookupTask.cc
  6926. * src/DHTPeerLookupTask.cc
  6927. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6928. Added the ability to stop aria2 itself when given time has passed
  6929. from start. Use --stop option to specify time in minutes.
  6930. When 0 is given, this feature is disabled.
  6931. * src/OptionHandlerFactory.cc
  6932. * src/TimeBasedCommand.h: Make _interval protected scope.
  6933. * src/HelpItemFactory.cc
  6934. * src/option_processing.cc
  6935. * src/prefs.h
  6936. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  6937. before calling RequestGroupMan::fillRequestGroupFromReserver().
  6938. Without this modification, the result list shows "ERR" when aria2 is
  6939. stopped by --stop option. It should be "INPR".
  6940. * src/DownloadEngine.{h, cc}
  6941. * src/DownloadEngineFactory.cc
  6942. * src/usage_text.h
  6943. * src/TimedHaltCommand.{h, cc}: New class.
  6944. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6945. Bootstrap through node added by port message.
  6946. Currently bootstrap is executed if the number of buckets in routing
  6947. table is 1.
  6948. * src/BtPortMessage.{h, cc}
  6949. * src/DefaultBtMessageFactory.{h, cc}
  6950. * src/PeerInteractionCommand.cc
  6951. * test/BtPortMessageTest.cc
  6952. * test/MockDHTTask.h
  6953. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6954. Extract the Peer class's member variables, which are only needed after
  6955. PeerInteractionCommand, into PeerSessionResource class.
  6956. This class is instantiated in PeerInteractionCommand class's ctor and
  6957. released in its dtor.
  6958. This will make Peer class lightweight and uses less memory for peers
  6959. which are not connected and wait in the queue.
  6960. * src/PeerChokeCommand.cc
  6961. * src/PeerSessionResource.{h, cc}
  6962. * src/PeerInteractionCommand.cc
  6963. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  6964. * src/DefaultBtInteractive.cc
  6965. * src/BtPieceMessage.cc
  6966. * src/BtInterestedMessage.cc
  6967. * src/BtUnchokeMessage.cc
  6968. * src/DefaultPeerStorage.{h, cc}
  6969. * src/PeerInitiateConnectionCommand.cc
  6970. * src/ActivePeerConnectionCommand.cc
  6971. * src/BtNotInterestedMessage.cc
  6972. * src/DefaultBtMessageDispatcher.cc
  6973. * src/BtChokeMessage.cc
  6974. * src/BtRequestMessage.cc
  6975. * src/Peer.{h, cc}
  6976. * src/BtRegistry.h
  6977. * src/TrackerWatcherCommand.cc
  6978. * src/PeerReceiveHandshakeCommand.cc
  6979. * test/BtExtendedMessageTest.cc
  6980. * test/BtAllowedFastMessageTest.cc
  6981. * test/BtCancelMessageTest.cc
  6982. * test/DefaultPieceStorageTest.cc
  6983. * test/BtBitfieldMessageTest.cc
  6984. * test/BtHaveMessageTest.cc
  6985. * test/BtNotInterestedMessageTest.cc
  6986. * test/BtRequestMessageTest.cc
  6987. * test/PeerSessionResourceTest.cc
  6988. * test/DefaultBtMessageDispatcherTest.cc
  6989. * test/PeerTest.cc
  6990. * test/BtInterestedMessageTest.cc
  6991. * test/BtRejectMessageTest.cc
  6992. * test/BtChokeMessageTest.cc
  6993. * test/DefaultPeerStorageTest.cc
  6994. * test/BtHaveNoneMessageTest.cc
  6995. * test/BtHaveAllMessageTest.cc
  6996. * test/DefaultExtensionMessageFactoryTest.cc
  6997. * test/BtUnchokeMessageTest.cc
  6998. * test/DefaultBtMessageFactoryTest.cc
  6999. * test/HandshakeExtensionMessageTest.cc
  7000. * test/UTPexExtensionMessageTest.cc
  7001. * test/DefaultBtRequestFactoryTest.cc
  7002. * test/BtPieceMessageTest.cc
  7003. Removed typedef PeerStats.
  7004. * src/PeerStat.h
  7005. * src/SegmentMan.cc
  7006. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7007. Added std namespace to copy, remove_copy, back_inserter,
  7008. front_inserter.
  7009. * src/RequestGroupMan.cc
  7010. * src/DefaultPieceStorage.cc
  7011. * src/StreamFileAllocationEntry.cc
  7012. * src/BtFileAllocationEntry.cc
  7013. * src/RequestGroup.cc
  7014. * src/MetalinkEntry.cc
  7015. * src/DelegatingPeerListProcessor.cc
  7016. * src/DefaultBtRequestFactory.cc
  7017. * src/DefaultBtMessageDispatcher.cc
  7018. * src/version_usage.cc: Included <algorithm>
  7019. * src/main.cc
  7020. * src/MetalinkParserController.cc
  7021. * src/DefaultBtContext.cc
  7022. * src/DownloadEngineFactory.cc
  7023. * src/a2algo.h
  7024. Removed.
  7025. * test/StreamUriListParserTest.cc
  7026. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7027. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  7028. ActivePeerConnectionCommand when it is given and
  7029. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  7030. * src/ActivePeerConnectionCommand.{h, cc}
  7031. * src/BtSetup.cc
  7032. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7033. Only add socket to DownloadEngine's select routine when peer or
  7034. localhost is unchoked and interested. This lowers CPU usage a
  7035. little bit.
  7036. * src/PeerInteractionCommand.cc
  7037. * src/PeerAbstractCommand.{h, cc}
  7038. * src/BtInteractive.h
  7039. * src/DefaultBtInteractive.{h, cc}
  7040. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7041. Revert previous change because get_peers message is needed for
  7042. announce_peer anyway.
  7043. * src/DHTGetPeersCommand.cc
  7044. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7045. Request peers thought DHT only when download hasn't finished.
  7046. * src/DHTGetPeersCommand.cc
  7047. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7048. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  7049. * src/DHTBucketRefreshTask.{h, cc}
  7050. * src/DHTSetup.cc
  7051. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7052. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  7053. standard classes.
  7054. Included string.h where mem* function are used.
  7055. Added namespace aria2.
  7056. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7057. Create directory before saving DHT routing table.
  7058. Now ios::failure is now handled properly.
  7059. * src/DHTAutoSaveCommand.cc
  7060. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7061. Removed unnecessary cerr.
  7062. * src/DownloadEngine.cc
  7063. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7064. Catch exception inside DHTMessageReceiver::receiveMessage().
  7065. Log unknown message.
  7066. * src/DHTMessageReceiver.{h, cc}
  7067. * src/DHTMessageFactory.h
  7068. * src/DHTMessageFactoryImpl.{h, cc}
  7069. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  7070. * src/DHTInteractionCommand.cc
  7071. * src/DHTUnknownMessage.{h, cc}
  7072. * test/DHTUnknownMessageTest.cc
  7073. * test/MockDHTMessageFactory.h
  7074. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7075. Commented out ip address comparison because a host can have multiple
  7076. ip addresses and it is hard to predict the hostname is resolved into
  7077. which one.
  7078. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  7079. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7080. * po/Makefile.in: Removed since this is generated by configure.
  7081. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7082. Fixed compiler warning about redefinition of SIZE_MAX.
  7083. Use common.h instead of config.h directly here.
  7084. * src/Platform.{h, cc}
  7085. The check of ENABLE_NLS is made in gettext.h, so it is not required
  7086. here.
  7087. * common.h
  7088. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  7089. Updated gettext related files.
  7090. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  7091. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  7092. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7093. Added DHT functionality, compatible with mainline.
  7094. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  7095. You may need to specify entry point to DHT network using
  7096. --dht-entry-point. DHT uses UDP port to listen incoming message.
  7097. Use --dht-listen-port to specify port number. Make sure that your
  7098. firewall configuration can pass through UDP traffic to the port.
  7099. The routing table is saved in $HOME/.aria2/dht.dat.
  7100. * src/DHT*
  7101. * src/BNode.{h, cc}
  7102. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  7103. particular torrent.
  7104. * src/Data.cc: Rewritten ctor.
  7105. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  7106. --dht-entry-point.
  7107. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  7108. * src/RequestGroup.cc: Initialize DHT functionality. When download
  7109. ends, remove BtContext from DHTPeerAnnounceStorage.
  7110. * src/BtPortMessage.{h, cc}: Rewritten.
  7111. * src/message.h
  7112. * src/OptionHandlerImpl.cc
  7113. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  7114. --dht-entry-point.
  7115. * src/Dictionary.{h, cc} (remove): New function.
  7116. * src/prefs.h
  7117. * src/DefaultBtMessageFactory.h
  7118. * src/BtHandshakeMessage.cc
  7119. * src/ActivePeerConnectionCommand.cc
  7120. * src/SocketCore.{h, cc}: Added datagram socket support.
  7121. * src/DefaultBtMessageFactory.cc
  7122. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  7123. Create DHT commands.
  7124. * src/BtMessageFactory.h
  7125. * src/PeerMessageUtil.{h, cc}
  7126. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7127. Fixed the bug that log file is not written when configuration file doesn't exist.
  7128. This is caused by using Logger class before LogFactory is not configured.
  7129. BUG #1875079
  7130. * src/option_processing.cc
  7131. Warning message "configuration doesn't exist" is only printed when --conf is
  7132. given.
  7133. * src/option_processing.cc
  7134. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7135. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  7136. ShaVisitor is now deprecated and slated to be removed.
  7137. * src/DefaultBtContext.cc
  7138. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7139. Externalize message to message.h
  7140. * src/Platform.cc
  7141. * src/message.h
  7142. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7143. Set default domain and default path to cookie.
  7144. * src/HttpResponse.cc
  7145. * src/CookieBox.{h, cc}
  7146. * src/CookieParser.{h, cc}
  7147. * test/CookieParserTest.cc
  7148. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7149. Added --no-conf and --conf-path command-line option.
  7150. --no-conf option disables loading aria2.conf file.
  7151. --conf-path option changes the configuration file path. The default
  7152. file path is $HOME/.aria2/aria2.conf
  7153. Added a warning message when the configuration file is not found.
  7154. * src/HelpItemFactory.cc
  7155. * src/option_processing.cc
  7156. * src/prefs.h
  7157. * src/usage_text.h
  7158. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7159. Added the message to inform users that other help categories are
  7160. available in -h option.
  7161. * src/version_usage.cc
  7162. * src/TagContainer.{h, cc}
  7163. * test/TagContainerTest.cc
  7164. * src/TaggedItem.{h, cc}
  7165. * test/TaggedItemTest.cc
  7166. * src/HelpItem.h
  7167. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7168. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  7169. from PiecedSegment's ctor.
  7170. Previously Piece::getAllMissingBlockIndexes() is called from
  7171. PiecedSegment() but it is rather expensive since only first element is
  7172. used.
  7173. * src/PiecedSegment.cc
  7174. * src/Piece.{h, cc}
  7175. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7176. Rewritten get*Missing*Index functions. Now no need to allocate memory
  7177. each time these functions are called.
  7178. * src/BitfieldMan.{h, cc}
  7179. * test/BitfieldManTest.cc
  7180. * src/array_fun.h
  7181. * test/array_funTest.cc
  7182. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  7183. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  7184. filtered. Removed unnecessary cast to int32_t.
  7185. * src/BitfieldMan.{h, cc}
  7186. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7187. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  7188. payload length(4bytes) are received. This happens because lenbufLength
  7189. is not updated in this particular case and successive call of
  7190. receiveMessage() overwrites payload length with bytes recieved which
  7191. are payload body.
  7192. * src/PeerConnection.{h, cc}
  7193. * src/message.h
  7194. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7195. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  7196. peer if there are peers that have same ipaddr and port.
  7197. I've experiened segmentation fault and "pure virtual function was
  7198. called" error.
  7199. * src/Peer.h
  7200. * test/PeerTest.cc
  7201. * src/DefaultPeerStorage.cc
  7202. * test/DefaultPeerStorageTest.cc
  7203. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7204. Removed a call to isPowerOf() because it is no longer necessary here
  7205. and a request block is not always power of 2.
  7206. BUG#1866924
  7207. * src/PeerMessageUtil.cc (checkLength)
  7208. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7209. Fixed the bug that always first found Segment is removed from
  7210. usedSegmentEntries. Removed unused functions.
  7211. * src/SegmentMan.{h, cc}
  7212. * test/SegmentManTest.cc
  7213. Fixed the bug that ServerHost is not removed.
  7214. * src/RequestGroup.cc
  7215. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7216. Fixed the bug that SegmentMan::completeSegment() is not called
  7217. even if Segment is complete when --lowest-speed-limit is enabled.
  7218. BUG#1864525
  7219. * src/DownloadCommand.{h, cc}
  7220. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7221. Fixed: hash algorithm 'sha1' is always used.
  7222. * src/DownloadCommand.cc (validatePieceHash)
  7223. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7224. Added --enable-peer-exchange command-line option.
  7225. * src/OptionHandlerFactory.cc
  7226. * src/HelpItemFactory.cc
  7227. * src/option_processing.cc
  7228. * src/usage_text.h
  7229. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7230. Move extension from BtRuntime to ExtensionMessageFactory, because
  7231. extension can be specified per peer, not per torrent.
  7232. * src/DefaultBtInteractive.cc
  7233. * src/BtRuntime.h
  7234. * src/ExtendedMessagingAware.h
  7235. * src/ExtensionMessageFactory.h
  7236. * src/DefaultExtensionMessageFactory.cc
  7237. * test/DefaultExtensionMessageFactoryTest.cc
  7238. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7239. Added categorized option help. Specify category using --help option.
  7240. Also added the ability to search options in forward match.
  7241. * src/HelpItem.{h, cc}
  7242. * test/HelpItemTest.cc
  7243. * src/HelpItemFactory.{h, cc}
  7244. * src/TagContainer.{h, cc}
  7245. * test/TagContainerTest.cc
  7246. * src/option_processing.cc
  7247. * src/prefs.h
  7248. * src/TaggedItem.{h, cc}
  7249. * test/TaggedItemTest.cc
  7250. * src/version_usage.cc
  7251. * src/help_tags.h
  7252. * src/usage_text.h
  7253. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7254. Fixed segmentation fault when bad torrent metainfo is parsed.
  7255. Added dynamic_cast properly to detect the misconfiguration of metainfo
  7256. and then throw exception or skip it.
  7257. * src/DefaultBtContext.{h, cc}
  7258. * test/DefaultBtContextTest.cc
  7259. * src/AnnounceList.cc
  7260. * src/CompactPeerListProcessor.cc
  7261. * src/message.h
  7262. * src/DefaultBtAnnounce.{h, cc}
  7263. * test/DefaultBtAnnounceTest.cc
  7264. * src/BencodeVisitor.cc
  7265. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7266. Added missing "B"(=Byte). So now the message looks like this:
  7267. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  7268. * src/message.h (MSG_SHARE_RATIO_REPORT)
  7269. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7270. Show the seed ratio after torrent downloads.
  7271. For example, after torrent download completed and --seed-time and
  7272. --seed-ratio conditions are fulfilled, following message is printed
  7273. right after "Download complete: .....":
  7274. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  7275. * src/RequestGroupMan.cc
  7276. * src/RequestGroup.{h, cc}
  7277. * src/message.h
  7278. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7279. Remove a defunct control file. A defunct control file means that while
  7280. it exists, but the corresponding download file is missing.
  7281. After its removal, a download restarts from the beginning.
  7282. * src/RequestGroup.cc
  7283. * src/message.h
  7284. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7285. Allocate bitfield in Peer when it is really used. More specifically,
  7286. bitfield in Peer is allocated after the connection is established and
  7287. deallocated when the connection is dropped.
  7288. Since 2 parameters(piece length and total length) was removed from the
  7289. constructor of Peer class, many test classes were modified accordingly.
  7290. See svn log for more detailed information.
  7291. * src/PeerInteractionCommand.cc
  7292. * src/CompactPeerListProcessor.cc
  7293. * src/Peer.cc
  7294. * src/DefaultPeerListProcessor.cc
  7295. * src/PeerListenCommand.cc
  7296. * src/PeerReceiveHandshakeCommand.cc
  7297. Fixed memory leak
  7298. * src/Piece.cc
  7299. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7300. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  7301. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  7302. command-line options.
  7303. * src/option_processing.cc
  7304. * src/ActivePeerConnectionCommand.cc
  7305. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7306. Send have message to peer if it already has the piece.
  7307. * src/BtHaveMessage.{h, cc}
  7308. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7309. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  7310. port.
  7311. * src/DefaultPeerStorage.{h, cc}
  7312. * test/DefaultPeerStorageTest.cc
  7313. * src/HandshakeExtensionMessage.cc
  7314. * test/HandshakeExtensionMessageTest.cc
  7315. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  7316. * src/PeerStorage.h
  7317. * test/MockPeerStorage.h
  7318. * src/PeerListenCommand.cc
  7319. * src/PeerReceiveHandshakeCommand.cc
  7320. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7321. Added --metalink-enable-unique-protocol option.
  7322. * src/Metalink2RequestGroup.cc
  7323. * src/option_processing.cc
  7324. * src/prefs.h
  7325. * src/version_usage.cc
  7326. * doc/aria2c.1.txt
  7327. * doc/aria2c.1
  7328. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7329. Allow a peer in incomingPeer to be added peers.
  7330. * src/DefaultPeerStorage.cc
  7331. * test/DefaultPeerStorageTest.cc
  7332. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7333. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  7334. I could reproduce this bug in following procedure:
  7335. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  7336. 2. Restart aria2.
  7337. 3. You see the download stopped around 99%.
  7338. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  7339. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  7340. If timeout is reached, then _nextCommand is unused and it may contains
  7341. segments and they won't be canceled. Actually, timeout is not needed
  7342. here because if the server dropped connection, then retry is made.
  7343. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7344. Added uTorrent compatible Peer Exchange.
  7345. * src/BencodeVisitor.{h, cc}
  7346. * test/BencodeVisitorTest.cc
  7347. * src/BtConstants.h
  7348. * src/BtContext.h: Added 'private' flag.
  7349. * src/BtExtendedMessage.{h, cc}
  7350. * test/BtExtendedMessageTest.cc
  7351. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  7352. reserved field.
  7353. * test/BtHandshakeMessageTest.cc
  7354. * src/BtMessageFactory.h
  7355. * src/BtRegistry.h
  7356. * src/BtRuntime.h: This class holds default extension message IDs for
  7357. aria2. By default, aria2 uses ID 8 for ut_pex.
  7358. * src/DefaultBtContext.cc
  7359. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  7360. When it is true, aria2 enables ut_pex. This value is set by
  7361. PeerInteractionCommand.
  7362. * src/DefaultBtMessageFactory.{h, cc}
  7363. * test/DefaultBtMessageFactoryTest.cc
  7364. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  7365. handling to DefaultBtInteractive class.
  7366. * src/DefaultExtensionMessageFactory.{h, cc}
  7367. * test/DefaultExtensionMessageFactoryTest.cc
  7368. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  7369. the container(peers and incomingPeers. The equality is determined by
  7370. Peer::id).
  7371. * test/DefaultPeerStorageTest.cc
  7372. * src/ExtensionMessage.h
  7373. * test/MockExtensionMessage.h
  7374. * src/ExtensionMessageFactory.h
  7375. * test/MockExtensionMessageFactory.h
  7376. * src/HandshakeExtensionMessage.{h, cc}
  7377. * test/HandshakeExtensionMessageTest.cc
  7378. * src/MetaEntry.h
  7379. * src/Peer.{h, cc}
  7380. * src/PeerInteractionCommand.cc
  7381. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  7382. addIncomingPeer.
  7383. * src/PeerMessageUtil.{h, cc}
  7384. * src/PeerObject.h
  7385. * src/UTPexExtensionMessage.{h, cc}
  7386. * test/UTPexExtensionMessageTest.cc
  7387. * src/message.h
  7388. * src/prefs.h
  7389. Fixed the bug that returns incomplete data when it contains null
  7390. character. A convenient constructor was also added.
  7391. * src/Data.{h, cc}
  7392. Rewritten.
  7393. * src/CompactPeerListProcessor.cc
  7394. Fixed typos.
  7395. * src/message.h
  7396. * src/MetaFileUtil.cc
  7397. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7398. Added "Status Legend" label to the explanation text of 'stat' in
  7399. download result and moved it to the last. BUG#1848214
  7400. * src/RequestGroupMan.cc
  7401. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7402. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  7403. * src/Makefie.am
  7404. * test/Makefile.am
  7405. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7406. Fixed the bug that prevents aria2 from loading cookie file when expire
  7407. value is greater than 2^31-1. BUG#1851066
  7408. * src/CookieBoxFactory.cc
  7409. * test/CookieBoxFactoryTest.cc
  7410. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7411. Fixed possible memory leak when an exception is thrown.
  7412. * src/XML2SAXMetalinkProcessor.cc
  7413. Added Expat support. If both libxml2 and Expat are installed, then
  7414. libxml2 is used by default.
  7415. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  7416. ExpatMetalinkProcessor according to the configuration.
  7417. * src/ExpatMetalinkProcessor.{h, cc}
  7418. * src/main.cc: Removed libxml2 specific header and init/free function.
  7419. * src/MetalinkProcessorFactory.{h, cc}
  7420. * src/MetalinkHelper.cc
  7421. * src/Metalinker.h: Removed unnecessary libxml2 header.
  7422. * src/MetalinkProcessor.h
  7423. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  7424. MetalinkProcessorTest is used instead.
  7425. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  7426. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  7427. MetalinkProcessorFactory::newInstance().
  7428. * m4/libexpat.m4
  7429. * configure.ac: Added configuration options for libexpat.
  7430. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7431. Disabled -s option in metalink download.
  7432. * src/Metalink2RequestGroup.cc
  7433. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7434. If several protocols are available for a mirror in metalink file,
  7435. aria2 now use one of them. --metalink-preferred-protocol option was
  7436. added to specify the preference of protocol.
  7437. * src/AbstractCommand.cc
  7438. * src/OptionHandlerFactory.cc
  7439. * src/ServerHost.{h, cc}
  7440. * src/Metalink2RequestGroup.cc
  7441. * src/RequestGroup.{h, cc}
  7442. * test/RequestGroupTest.cc
  7443. * src/option_processing.cc
  7444. * src/prefs.h
  7445. * src/HttpResponseCommand.cc
  7446. * src/MetalinkResource.{h, cc}
  7447. * src/FtpNegotiationCommand.cc
  7448. * src/MetalinkEntry.{h, cc}
  7449. * src/MetalinkEntryTest.cc
  7450. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7451. Code cleanup and added debug log.
  7452. * src/PeerConnection.cc
  7453. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7454. Compiler error fix: applied the patch by Tiziano Mueller
  7455. * src/RequestGroup.cc
  7456. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7457. Fixed the bug: only first announce URL is tried in AnnounceTier,
  7458. in stopped and completed event.
  7459. * src/AnnounceList.{h, cc}
  7460. * test/AnnounceListTest.cc
  7461. * src/DefaultBtAnnounce.cc
  7462. * test/DefaultBtAnnounceTest.cc
  7463. Sorted URLs.
  7464. * test/Metalink2RequestGroupTest.cc
  7465. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7466. Removed unnecessary string copy. Updated doc and corrected indentation.
  7467. * src/Base64.cc
  7468. Fixed compilation warnings
  7469. * test/DataTest.cc
  7470. * test/HttpRequestTest.cc
  7471. * test/MetaFileUtilTest.cc
  7472. * test/RequestTest.cc
  7473. * Release 0.12.0
  7474. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7475. Updated translations
  7476. * po/{de,fr,ja,nl,ru}.po
  7477. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  7478. translations. Many thanks to translators.
  7479. * po/{ca,es,it,pt_BR,sv}.po
  7480. * po/LINGUAS
  7481. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7482. Added a notice about URL
  7483. * src/version_usage.cc
  7484. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  7485. Fixed the bug#1845750; CTRL+C does not stop torrent.
  7486. aria2 repeatedly sends stopped request when tracker returns error code.
  7487. * src/AnnounceList.cc
  7488. * test/AnnounceListTest.cc
  7489. * src/AnnounceTier.h
  7490. Added a message when ctrl-c is hit.
  7491. Now second ctrl-c is also handled in signal handler.
  7492. * src/RequestGroupMan.{h, cc}
  7493. * src/RequestGroup.{h, cc}
  7494. * src/MultiUrlRequestInfo.cc
  7495. * src/DownloadEngine.cc
  7496. * src/TrackerWatcherCommand.cc
  7497. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7498. Code cleanup
  7499. * src/Base64.cc (encode)
  7500. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7501. Changed Direct/IO enable/disable procesure in file allocation routine.
  7502. * src/SingleFileAllocationIterator.cc
  7503. (SingleFileAllocationIterator):
  7504. Disable directIO if offset is not multiple of 512.
  7505. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  7506. * src/MultiFileAllocationIterator.cc (allocateChunk):
  7507. Enable created SingleFileAllocationIterator's directIO.
  7508. * src/FileAllocationEntry.cc
  7509. (FileAllocationEntry): Enable directIO here.
  7510. (~FileAllocationEntry): Disable directIO here.
  7511. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7512. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  7513. * src/Peer.{h, cc}
  7514. * src/DefaultPieceStorage.cc
  7515. * test/DefaultPieceStorageTest.cc
  7516. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7517. Rewritten direct I/O support routine
  7518. * src/SingleFileAllocationIterator.cc
  7519. * src/MultiDiskAdaptor.{h, cc}
  7520. * src/ByteArrayDiskWriter.h
  7521. * src/AbstractSingleDiskAdaptor.h
  7522. * src/AbstractDiskWriter.cc
  7523. * src/DefaultPieceStorage.cc
  7524. * src/DiskWriter.h
  7525. * src/BinaryStream.h
  7526. * src/IteratableChunkChecksumValidator.cc
  7527. * src/IteratableChecksumValidator.cc
  7528. * src/CheckIntegrityEntry.cc
  7529. * src/FileAllocationEntry.cc
  7530. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7531. Fixed typo
  7532. * src/version_usage.cc
  7533. Updated doc
  7534. * doc/aria2c.1.txt
  7535. * doc/aria2c.1
  7536. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7537. Fixed compile error without message digest support.
  7538. * src/FileMetalinkParserState.cc
  7539. * src/MetalinkParserController.{h, cc}
  7540. * test/XML2SAXMetalinkProcessorTest.cc
  7541. * test/MetalinkParserControllerTest.cc
  7542. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7543. Enable direct I/O support in checksum checking.
  7544. * src/IteratableChunkChecksumValidator.{h, cc}
  7545. * test/IteratableChunkChecksumValidatorTest.cc
  7546. * src/CheckIntegrityEntry.cc
  7547. * src/PieceHashCheckIntegrityEntry.cc
  7548. * src/IteratableChecksumValidator.{h, cc}
  7549. * src/BtCheckIntegrityEntry.cc: Added doc.
  7550. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7551. Added --allow-piece-length-change option.
  7552. * src/DefaultBtProgressInfoFile.cc
  7553. * test/DefaultBtProgressInfoFileTest.cc
  7554. * src/OptionHandlerFactory.cc
  7555. * src/option_processing.cc
  7556. * src/prefs.h
  7557. * src/version_usage.cc
  7558. * doc/aria2c.1.txt
  7559. * doc/aria2c.1
  7560. Fixed: duplicated result entry appears when exception is thrown in
  7561. RequestGroup::createInitiateConnectionCommand().
  7562. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  7563. Add RequestGroup to _requestGroup after RequetGroup::
  7564. createInitiateConnectionCommand() succeeds.
  7565. Externalized message
  7566. * src/XML2SAXMetalinkProcessor.cc
  7567. * src/message.h
  7568. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7569. Forced download abort when received negative response from http/ftp
  7570. server.
  7571. * src/HttpResponseCommand.cc
  7572. * src/FtpNegotiationCommand.cc
  7573. * src/HttpResponse.cc
  7574. * src/FtpConnection.cc
  7575. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7576. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  7577. the predecessor, Xml2MetalinkParser class.
  7578. I tested them against 94KB metalink file with 1234 chunk checksums.
  7579. The new one parsed it in 22msec, while it took 6000msec with old one.
  7580. * src/XML2SAXMetalinkProcessor.{h, cc}
  7581. * test/XML2SAXMetalinkProcessorTest.cc
  7582. * src/MetalinkParserController.{h, cc}
  7583. * test/MetalinkParserControllerTest.cc
  7584. * src/MetalinkParserState.h: Also added 16 subclasses.
  7585. * src/main.cc
  7586. * src/Metalink2RequestGroup.cc
  7587. * src/MetalinkHelper.cc
  7588. * src/MetalinkEntry.cc
  7589. * src/ChunkChecksum.h
  7590. Rewritten Base64 class for better performance.
  7591. * src/Base64.{h, cc}
  7592. * test/Base64Test.cc
  7593. * src/HttpRequest.cc
  7594. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7595. Fixed the bug#1841757: aria2 will connect to server to only get
  7596. file size.
  7597. * src/StreamFileAllocationEntry.cc
  7598. * src/option_processing.cc
  7599. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  7600. downloads.
  7601. * src/FtpNegotiationCommand.cc
  7602. Suppressed wrong message when finding PreDownloadHandler
  7603. * src/RequestGroup.cc
  7604. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7605. Updated usage
  7606. * src/version_usage.cc
  7607. Updated man page
  7608. * doc/aria2c.1.txt
  7609. * doc/aria2c.1
  7610. Updated po files
  7611. * po/aria2c.pot
  7612. * po/*.po
  7613. * po/*.gmo
  7614. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7615. Eliminated g++-4.2 warning
  7616. * src/DownloadHandlerConstants.{h, cc}
  7617. * src/Util.cc
  7618. * test/MetaFileUtilTest.cc
  7619. * test/PStringBuildVisitorTest.cc
  7620. Fixed bug: --check-integrity doesn't work for multi file torrent.
  7621. * src/RequestGroup.cc
  7622. * src/BtCheckIntegrityEntry.cc
  7623. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7624. Fixed a2io.h
  7625. * src/a2io.h
  7626. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7627. Added direct I/O support. The current implementation uses O_DIRECT,
  7628. which is not posix standard and is tested on linux 2.6.21.
  7629. Currently only file allocation uses direct I/O.
  7630. * src/SingleFileAllocationIterator.{h, cc}
  7631. * test/SingleFileAllocationIteratorTest.cc
  7632. * src/MultiFileAllocationIterator.{h, cc}
  7633. * test/MultiFileAllocationIteratorTest.cc
  7634. * src/BinaryStream.h
  7635. * src/DiskWriter.h
  7636. * src/AbstractDiskWriter.{h, cc}
  7637. * src/ByteArrayDiskWriter.h
  7638. * src/DiskAdaptor.h
  7639. * src/AbstractSingleDiskAdaptor.{h, cc}
  7640. * src/MultiDiskAdaptor.{h, cc}
  7641. * src/FileAllocationEntry.cc
  7642. * src/Util.{h, cc}
  7643. * src/OptionHandlerFactory.cc
  7644. * src/prefs.h
  7645. * src/version_usage.cc
  7646. * src/option_processing.cc
  7647. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  7648. handleException.
  7649. * src/MultiFileAllocationIterator.cc
  7650. Added EINTR handling
  7651. * src/SocketCore.cc
  7652. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7653. Updated usage
  7654. * src/version_usage.cc
  7655. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7656. Applied Ross's patch for MinGW port.
  7657. * src/DownloadEngine.h
  7658. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7659. Set Content-Type to SingleFileDownloadContext when http response is
  7660. received.
  7661. * src/HttpResponseCommand.cc
  7662. * src/HttpResponse.{h, cc}
  7663. * test/HttpResponseTest.cc
  7664. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7665. Rewritten to add content-type support.
  7666. * src/DownloadHandler.{h, cc}
  7667. * src/BtPostDownloadHandler.{h, cc}
  7668. * test/BtPostDownloadHandlerTest.cc
  7669. * src/MetalinkPostDownloadHandler.{h, cc}
  7670. * test/MetalinkPostDownloadHandlerTest.cc
  7671. * src/PostDownloadHandler.{h, cc}
  7672. * src/DownloadHandlerConstants.{h, cc}
  7673. * src/RequestGroup.cc
  7674. * src/HttpResponseCommand.cc
  7675. * src/FtpNegotiationCommand.cc
  7676. * src/SingleFileDownloadContext.{h, cc}
  7677. * src/RequestGroup.h
  7678. * src/RequestGroupCriteria.h
  7679. * src/ContentTypeRequestGroupCriteria.h
  7680. Added 'mem' option value for --follow-metalink, --follow-torrent.
  7681. If it is give, metalink/torrent file is not written to the disk, but
  7682. just is kept in memory. Parsing is occurred on memory.
  7683. * src/MetalinkHelper.{h, cc}
  7684. * src/MetalinkProcessor.h
  7685. * src/Xml2MetalinkProcessor.{h, cc}
  7686. * test/Xml2MetalinkProcessorTest.cc
  7687. * src/DownloadHandlerFactory.{h, cc}
  7688. * test/DownloadHandlerFactoryTest.cc
  7689. * src/PreDownloadHandler.{h, cc}
  7690. * src/OptionHandlerFactory.cc
  7691. * src/DefaultBtContext.{h, cc}
  7692. * test/DefaultBtContextTest.cc
  7693. * src/version_usage.cc
  7694. * src/Metalink2RequestGroup.{h, cc}
  7695. * src/RequestGroup.{h, cc}
  7696. * src/a2functional.h
  7697. * test/a2functionalTest.cc
  7698. * src/MemoryBufferPreDownloadHandler.{h, cc}
  7699. * src/OptionHandlerImpl.h
  7700. * src/prefs.h
  7701. * src/Util.{h, cc}
  7702. * test/UtilTest.cc
  7703. Keep DownloadResult rather than RequestGroup after downloads to reduce
  7704. memory usage.
  7705. * src/RequestGroupMan.{h, cc}
  7706. * src/DownloadEngine.cc
  7707. * src/BtDependency.{h, cc}: Changed the type of dependee from
  7708. WeakHandle to SharedHandle because WeakHandle could be null.
  7709. * src/RequestGroup.{h, cc}
  7710. * src/DownloadEngineFactory.cc
  7711. * src/DownloadResult.h
  7712. Set totalLength after download finished
  7713. * src/UnknownLengthPieceStorage.{h, cc}
  7714. Keep torrent file specified in metalink in memory.
  7715. * src/Metalink2RequestGroup.cc
  7716. * src/BtDependency.cc
  7717. * src/TrueRequestGroupCriteria.h
  7718. Fixed the bug: seekg is used where seekp should be used.
  7719. * src/ByteArrayDiskWriter.cc
  7720. * test/ByteArraydiskWriterTest.cc
  7721. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7722. Fixed syntax error
  7723. * test/SequenceTest.cc
  7724. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7725. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7726. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  7727. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7728. * src/RequestGroup.cc (downloadFinishedByFileLength)
  7729. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7730. Added the check to see whether ares_host_callback accepts timeouts
  7731. with c-ares; only c-ares 1.5.0 or newer accepts it.
  7732. * src/NameResolver.{h, cc}
  7733. * m4/libcares.m4
  7734. * configure.ac: Set C++ for language choice.
  7735. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7736. Fixed: compilation fails without c-ares/ares
  7737. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  7738. Generate http/ftp commands only when download is incomplete.
  7739. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  7740. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7741. Corrected typo. Examples are removed since they are available in man
  7742. page.
  7743. * src/version_usage.cc
  7744. Updated man page.
  7745. * doc/aria2c.1
  7746. * doc/aria2c.1.txt
  7747. * doc/makeman: Commented out sed command.
  7748. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7749. Throw DlAbortEx when a remote file is not found.
  7750. * src/HttpResponse.cc
  7751. * src/FtpNegotiationCommand.cc
  7752. * src/message.h
  7753. Overwrite an existing file if --allow-overwrite=true is given.
  7754. * src/RequestGroup.cc
  7755. Removed unused functions
  7756. * src/AbstractCommand.h
  7757. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7758. Removed 'extern' from 'extern typedef ...' in src/*.h
  7759. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7760. Updated usage
  7761. * src/version_usage.cc
  7762. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7763. Trim announce URL
  7764. * src/DefaultBtContext.cc
  7765. * test/ShaVisitorTest.cc
  7766. Trim argument s. Give trimed s to exception constructor.
  7767. * src/Util.cc (parseInt)(parseLLInt)
  7768. * test/UtilTest.cc
  7769. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7770. Set precision back to 1.
  7771. * src/ConsoleStatCalc.cc (calculateStat)
  7772. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7773. Replaced strtol with Util::parseInt
  7774. * src/ChunkedEncoding.cc
  7775. * src/HttpConnection.cc
  7776. * src/CookieBoxFactory.cc
  7777. * src/ParameterizedStringParser.cc
  7778. * src/Util.cc
  7779. * test/UtilTest.cc
  7780. * test/OptionHandlerTest.cc
  7781. * src/Request.cc
  7782. Throw exception when empty string is given. The message for exception
  7783. changed.
  7784. * src/Util.cc (parseInt)(parseLLInt)
  7785. * src/message.h
  7786. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7787. Set precision to 2 because share ratio is rounded into 1.0 if precision
  7788. set to 1.
  7789. * src/ConsoleStatCalc.cc (calculateStat)
  7790. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7791. Preallocate non-requested file which is adjacent forward to requested
  7792. file('requested' files means the files given in --select-file option)
  7793. if they share a same piece.
  7794. This fixes long pause in the file system which doesn't support sparse
  7795. files like FAT32 while downloading.
  7796. * src/MultiFileAllocationIterator.{h, cc}
  7797. * test/MultiFileAllocationIteratorTest.cc
  7798. * src/FileEntry.{h, cc}
  7799. Removed unused _option.
  7800. * src/MultiDiskAdaptor.h
  7801. * test/MultiDiskAdaptorTest.cc
  7802. * src/DefaultPieceStorage.cc
  7803. Set the default value of --seed-ratio to 1.0.
  7804. If 0.0 is given, then seeding continues regardless of share ratio.
  7805. * src/version_usage.cc
  7806. * src/option_processing.cc
  7807. * src/BtSetup.cc
  7808. * doc/aria2c.1.txt
  7809. * doc/aria2c.1
  7810. Fixed: Selective download is not working in BitTorrent
  7811. * src/RequestGroup.cc
  7812. Introduced Sequence class. Use this instead of Util::unfoldRange()
  7813. * src/PieceStorage.h
  7814. * test/MockPieceStorage.h
  7815. * src/UnknownLengthPieceStorage.h
  7816. * src/DefaultPieceStorage.{h, cc}
  7817. * src/Metalink2RequestGroup.cc
  7818. * src/RequestGroup.cc
  7819. * src/Sequence.h
  7820. * test/SequenceTest.cc
  7821. * src/IntSequence.h
  7822. * src/message.h
  7823. * src/Util.{h, cc}
  7824. * test/UtilTest.cc
  7825. Added new function 'parse' to catch exception thrown by subclass's
  7826. parseArg
  7827. * src/OptionHandler.h
  7828. * src/OptionParser.cc
  7829. * src/NameMatchOptionHandler.h
  7830. * src/OptionHandlerImpl.h
  7831. * test/OptionHandlerTest.cc
  7832. Added IntegerRangeOptionHandler. Used for --listen-port and
  7833. --select-file. Now --listen-port accepts range of port.
  7834. * src/OptionHandlerFactory.cc
  7835. * src/version_usage.cc
  7836. * src/OptionHandlerImpl.h
  7837. * src/option_processing.cc
  7838. * src/BtSetup.cc
  7839. * src/PeerListenCommand.{h, cc}
  7840. * doc/aria2c.1.txt
  7841. * doc/aria2c.1
  7842. Implemented operator< for Exception class to provide easy way to print
  7843. exception stack trace.
  7844. * src/Exception.{h, cc}
  7845. * src/main.cc
  7846. * src/option_processing.cc
  7847. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7848. * src/version_usage.cc
  7849. (showVersion): Reworked.
  7850. (showUsage): Added examples.
  7851. Removed Hint for total length and file name.
  7852. * src/Metalink2RequestGroup.cc
  7853. * src/RequestGroup.{h, cc}
  7854. * src/HttpResponseCommand.cc
  7855. * src/FtpNegotiationCommand.cc
  7856. Now --follow-torrent and --follow-metalink option work properly.
  7857. * src/RequestGroup.cc
  7858. Updated man page
  7859. * doc/aria2c.1.txt
  7860. * doc/aria2c.1
  7861. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7862. Removed.
  7863. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  7864. Use Segment::operator==()
  7865. * src/HttpConnection.cc
  7866. * src/Segment.h
  7867. Updated usage
  7868. * src/version_usage.cc
  7869. Added EINTR treatment.
  7870. * src/SocketCore.cc
  7871. * src/AbstractDiskWriter.cc
  7872. Rewritten.
  7873. * src/Util.cc (rangedFileCopy)
  7874. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7875. Fixed typo.
  7876. * src/version_usage.cc
  7877. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7878. Implemented. Now -c option works fine.
  7879. * src/DefaultPieceStorage.cc (markPiecesDone)
  7880. * test/DefaultPieceStorageTest.cc
  7881. Removed.
  7882. * src/SegmentMan.{h, cc}
  7883. (markAllPiecesDone)
  7884. (markPieceDone)
  7885. Synchronized po files with
  7886. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  7887. * src/fr.po
  7888. * src/ru.po
  7889. * src/de.po
  7890. * src/ja.po
  7891. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7892. Added ifdef and some modifications to compile without BitTorrent,
  7893. Metalink, MessageDigest
  7894. support.
  7895. * src/PieceHashCheckIntegrityEntry.cc
  7896. * src/MetalinkEntry.h
  7897. * src/version_usage.cc
  7898. * src/main.cc
  7899. * src/DownloadEngine.{h, cc}
  7900. * src/Metalink2RequestGroup.cc
  7901. * src/Peer.cc
  7902. * src/RequestGroup.cc
  7903. * src/MetalinkHelper.cc
  7904. * test/DefaultPieceStorageTest.cc
  7905. * test/MetalinkPostDownloadHandlerTest.cc
  7906. * test/Metalink2RequestGroupTest.cc
  7907. Hide TOTAL SPD when all downloads complete.
  7908. * src/ConsoleStatCalc.cc
  7909. Log target system information.
  7910. * src/main.cc
  7911. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7912. Now --metalink-location accepts a comma-deliminated list of locations.
  7913. * src/MetalinkEntry.{h, cc}
  7914. * test/MetalinkEntryTest.cc
  7915. * src/version_usage.cc
  7916. * src/Metalink2RequestGroup.cc
  7917. * src/Xml2MetalinkProcessor.cc
  7918. * test/Xml2MetalinkProcessorTest.cc
  7919. * doc/aria2c.1.txt
  7920. * doc/aria2c.1
  7921. * src/Util.cc (toUpper)(toLower): Rewritten.
  7922. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7923. Added the ability to detect duplicate download entry which is about to
  7924. download the same file other RequestGroup is downloading.
  7925. * src/RequestGroup.cc
  7926. * src/HttpResponseCommand.cc
  7927. * src/FtpNegotiationCommand.cc
  7928. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7929. Recalculates download progress when loading a control file,
  7930. if the piece length of DownloadContext is different from the one saved
  7931. in the control file. Currently in-flight pieces are ignored.
  7932. * src/DefaultBtProgressInfoFile.cc
  7933. * test/DefaultBtProgressInfoFileTest.cc
  7934. * src/Util.{h, cc}
  7935. * test/UtilTest.cc
  7936. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7937. Do not rotate tiers in announce-list.
  7938. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  7939. AnnounceList::allTiersFailed() used instead to detect whether all
  7940. tiers are tried and failed.
  7941. * test/DefaultBtAnnounceTest.cc
  7942. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  7943. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  7944. * test/AnnounceListTest.cc
  7945. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  7946. clause. Catch RecoverableException instead of DlRetryEx instead.
  7947. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7948. Implemented checksum validation feature(1 checksum for each file)
  7949. The validation takes place after the download.
  7950. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  7951. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  7952. * src/CheckIntegrityCommand.cc: Changed log message.
  7953. * src/Metalink2RequestGroup.cc: Set checksum to
  7954. SingleFileDownloadContext.
  7955. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  7956. PieceHashCheckIntegrity class.
  7957. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  7958. PieceHashCheckIntegrity class.
  7959. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  7960. * src/IteratableValidator.h: New class.
  7961. * src/message.h
  7962. * src/CheckIntegrityEntry.{h, cc}
  7963. * src/IteratableChunkChecksumValidator.{h, cc}
  7964. * src/SingleFileDownloadContext.h
  7965. * src/DownloadCommand.cc
  7966. --allow-overwrite=true is no longer needed to check file integrity
  7967. before download in BitTorrent download.
  7968. * src/RequestGroup.cc (getInitialCommand)
  7969. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  7970. throws exception.
  7971. * src/RequestGroupMan.cc (getInitialCommands)
  7972. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7973. urlencode the given url inside Request::parseUrl(...)
  7974. * src/Request.{h, cc}
  7975. * src/Util.{h, cc}
  7976. * test/RequestTest.cc
  7977. Removed #!metalink3! notation support because it is deleted from
  7978. the metalink specification.
  7979. * src/Request.{h, cc}
  7980. * test/RequestTest.cc
  7981. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7982. Don't connect server before checking file integrity at startup, if
  7983. filesize and output file path are known.
  7984. * src/AbstractCommand.cc
  7985. * src/StreamFileAllocationEntry.cc
  7986. * src/Metalink2RequestGroup.cc
  7987. * src/RequestGroup.{h, cc}
  7988. * src/HttpResponseCommand.cc
  7989. * src/FtpNegotiationCommand.cc
  7990. Added DownloadFailureException. If it is thrown, RequestGroup should
  7991. halt.
  7992. * src/AbstractCommand.cc
  7993. * src/DownloadFailureException.h
  7994. * src/RequestGroup.cc
  7995. Catch RecoverableException, instead of DlAbortEx.
  7996. * src/RequestGroupMan.cc
  7997. * src/FillRequestGroupCommand.cc
  7998. * src/MetaFileUtil.cc
  7999. * src/IteratableChunkChecksumValidator.cc
  8000. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  8001. getGID())
  8002. * src/CheckIntegrityCommand.cc
  8003. * src/message.h
  8004. Print gid instead of idx.
  8005. * src/RequestGroupMan.cc
  8006. Removed exception throwers declaration.
  8007. * src/DirectDiskAdaptor.{h, cc}
  8008. * src/SocketCore.{h, cc}
  8009. * src/MultiDiskAdaptor.{h, cc}
  8010. * src/HttpConnection.{h, cc}
  8011. * src/HttpResponse.{h, cc}
  8012. * src/DiskAdaptor.{h, cc}
  8013. * src/CopyDiskAdaptor.{h, cc}
  8014. * src/MultiDiskAdaptor.{h, cc}
  8015. * src/HttpHeaderProcessor.{h, cc}
  8016. * src/AbstractSingleDiskAdaptor.{h, cc}
  8017. * src/Util.{h, cc}
  8018. * test/UtilTest.cc
  8019. * src/DefaultDiskWriter.{h, cc}
  8020. * src/FtpConnection.{h, cc}
  8021. * src/AbstractDiskWriter.{h, cc}
  8022. Removed duplicate code.
  8023. * src/StreamCheckIntegrityEntry.cc
  8024. Removed unnecessary include.
  8025. * src/DiskWriter.h
  8026. Included Exception.h
  8027. * src/option_processing.cc
  8028. Included 2 files and added doc
  8029. * src/TrackerWatcherCommand.cc
  8030. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  8031. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8032. Changed CheckIntegrityEntry interface so that it can define
  8033. the action when all the chunk checksums are valid.
  8034. * src/CheckIntegrityEntry.h
  8035. * src/StreamCheckIntegrityEntry.{h, cc}
  8036. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  8037. are valid, then aira2 goes to seeding mode. Sometimes it is better
  8038. to exit rather than doing seeding. So, it would be good to toggle this
  8039. behavior.
  8040. * src/CheckIntegrityCommand.cc
  8041. * src/AbstractCommand.cc
  8042. * src/RequestGroup.cc
  8043. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8044. Reflect the download length of in-flight pieces.
  8045. It makes the download length readout more precise.
  8046. * src/DefaultPieceStorage.{h, cc}
  8047. * test/DefaultPieceStorageTest.cc
  8048. * src/a2functional.h
  8049. * test/a2functionalTest.cc
  8050. Lower CPU load when --max-download-limit is used.
  8051. There is up and down in speed indicator when enabling
  8052. http-pipelining but a download goes well. I think the problem is that
  8053. because http-pipelining is enabled, DownloadCommand is created for
  8054. each segment and in its constructor, PeerStat::downloadStart() is
  8055. called. In PeerStat::downloadStart(), speed calculation object is
  8056. reseted, which makes download speed zero.
  8057. * src/DownloadCommand.cc
  8058. Rewritten using accumulate.
  8059. * src/RequestGroupMan.cc (calculateStat)
  8060. Code clearnup.
  8061. * src/FtpNegotiationCommand.cc
  8062. * src/HttpResponseCommand.cc
  8063. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8064. Fixed: Can not resume: aria2 reports download already finished.
  8065. * src/AbstractCommand.{h, cc}
  8066. * src/HttpResponseCommand.cc
  8067. * src/FtpNegotiateCommand.cc
  8068. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8069. Now a file is stored in the directory specified in .metalnk file
  8070. (file[@name]).
  8071. * src/Metalink2RequestGroup.cc
  8072. Create the directory structure when opening the file if it doesn't
  8073. exist.
  8074. * src/AbstractDiskWriter.cc
  8075. * src/Util.{h, cc}
  8076. * src/File.h
  8077. * test/UtilTest.cc
  8078. Removed file name comparison
  8079. * src/Metalink2RequestGroup.cc
  8080. * src/HttpResponseCommand.cc
  8081. Rewritten using Util::mkdirs()
  8082. * src/FileEntry.cc (setupDir)
  8083. * test/FileEntryTest.cc
  8084. Updated doc
  8085. * src/SingleFileDownloadContext.h
  8086. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8087. Now SleepCommand dispatches nextCommand when halt is requested.
  8088. It avoids a possible long wait after hitting CTRL-C.
  8089. * src/SleepCommand.{h, cc}
  8090. * src/RequestGroupAware.{h, cc}
  8091. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8092. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  8093. to open listen port, then remove the port number from the tracker
  8094. request.
  8095. * src/DefaultBtAnnounce.cc
  8096. * test/DefaultBtAnnounceTest.cc
  8097. * test/MockPieceStorage.h
  8098. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  8099. them more testable.
  8100. * src/DefaultBtAnnounce.{h, cc}
  8101. * src/DefaultBtContext.{h, cc}
  8102. * src/Util.{h, cc}
  8103. * test/DefaultBtAnnounceTest.cc
  8104. * test/DefaultBtContextTest.cc
  8105. * test/UtilTest.cc
  8106. Added 'B' to upload bytes readout.
  8107. * src/ConsoleStatCalc.cc
  8108. Now the listen port for BitTorrent download is opened when it is
  8109. needed.
  8110. * src/DownloadEngineFactory.cc
  8111. * src/BtSetup.{h, cc}
  8112. * src/PeerListenCommand.{h, cc}
  8113. Now an exception thrown while parsing tracker response is now logged.
  8114. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  8115. called, which means no retry is made in this case, assuming a tracker
  8116. has a problem.
  8117. * src/TrackerWatcherCommand.cc
  8118. Fixed: downloading a file whose length is unkown fails.
  8119. * src/DownloadCommand.cc
  8120. Simplified prepareForNextSegment()
  8121. * src/DownloadCommand.cc
  8122. Updated
  8123. * po/POTFILES.in
  8124. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8125. Re-implemented a file listing for Metalink, which was dropped while
  8126. http/ftp/torrent integration was being implemented.
  8127. * src/MetalinkHelper.{h, cc}: New class.
  8128. * test/MetalinkHelperTest.cc
  8129. * src/main.cc
  8130. * src/Metalink2RequestGroup.cc
  8131. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8132. Added the ability to display the detailed torrent file information.
  8133. Now -S option gives not only a file listing, but also total download
  8134. length, info hash, announce URI, piece length, the number of pieces,
  8135. and mode(single or multi-torrent).
  8136. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  8137. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  8138. KiB)
  8139. * test/UtilTest.cc
  8140. * src/main.cc
  8141. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8142. Added ftp://USER:PASSWD@Servername automatic parsing.
  8143. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  8144. _password. Recognize username and password in URI.
  8145. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  8146. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  8147. * src/RequestFactory.{h, cc}: Removed.
  8148. * src/AuthConfigFactory.{h, cc}: New class.
  8149. * src/FtpConnection.cc: Use AuthConfigFactory.
  8150. * src/HttpRequest.cc: Use AuthConfigFactory.
  8151. * test/HttpRequestTest.cc: Updated.
  8152. * test/RequestTest.cc: Updated.
  8153. * test/AuthConfigFactoryTest.cc: New class.
  8154. * test/RequestFactoryTest.cc: Removed.
  8155. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8156. Use RequestGroup::allDownloadFinished() to decide whether the control
  8157. file should be removed or saved.
  8158. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  8159. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  8160. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8161. Use File::renameTo()
  8162. * src/DefaultBtProgressInfoFile.cc
  8163. Added --no-file-allocation-limit command-line option.
  8164. * src/version_usage.cc
  8165. * src/option_processing.cc
  8166. * src/OptionHandlerFactory.cc
  8167. * src/RequestGroup.{h, cc}
  8168. * src/BtCheckIntegrityEntry.cc
  8169. * src/StreamCheckIntegrityEntry.cc
  8170. * src/prefs.h
  8171. * doc/aria2c.1.txt
  8172. * doc/aria2c.1
  8173. Now prealloc is the default value for --file-allocation option.
  8174. * src/version_usage.cc
  8175. * src/option_processing.cc
  8176. * doc/aria2c.1.txt
  8177. * doc/aria2c.1
  8178. Don't URL-encode user-agent.
  8179. * src/HttpRequest.cc
  8180. Updated translations
  8181. * po/LINGUAS: Added nl for Dutch translation.
  8182. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  8183. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  8184. * po/POTFILES.in: Updated.
  8185. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8186. Added the ability to recognize url-list in a torrent file.
  8187. The retrieved URLs are attached to the corresponding FileEntry.
  8188. * src/DefaultBtContext.{h, cc}
  8189. * src/FileEntry.{h, cc}
  8190. * test/DefaultBtContextTest.cc
  8191. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8192. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  8193. after the download finishes.
  8194. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8195. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  8196. the data smaller than block length.
  8197. A block length can be specified by constructor's argument.
  8198. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  8199. Get a missing piece in the range of given FileEntry. This function is
  8200. not used in the program yet.
  8201. * src/Util.h: Added some macros.
  8202. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8203. Added HTTP/1.1 keep alive and pipelining support.
  8204. See --enable-http-keep-alive and --enable-http-pipelining option.
  8205. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  8206. Segment.
  8207. * src/HttpDownloadCommand.{h, cc}
  8208. * src/OptionHandlerFactory.cc
  8209. * src/HttpConnection.{h, cc}
  8210. * src/version_usage.cc
  8211. * src/HttpInitiateConnectionCommand.cc
  8212. * src/FtpInitiateConnectionCommand.cc
  8213. * src/Segment.h
  8214. * src/HttpRequestCommand.{h, cc}
  8215. * src/option_processing.cc
  8216. * src/prefs.h
  8217. * src/HttpResponseCommand.cc
  8218. * src/SegmentMan.{h, cc}
  8219. * src/FtpNegotiateCommand.cc
  8220. * src/HttpProxyResponseCommand.cc
  8221. * src/Request.cc
  8222. * src/HttpRequest.cc
  8223. * src/DownloadCommand.cc
  8224. * test/HttpRequestTest.cc
  8225. * test/RequestTest.cc
  8226. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8227. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  8228. finished.
  8229. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8230. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  8231. catching it inside the method.
  8232. When no file entry is found in a metalink without querying user
  8233. preferences, throw the exception with the error message that suggests
  8234. metalink file is probably broken.
  8235. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  8236. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8237. Fixed the bug that prevents remote Metalink/Torrent file from begin
  8238. processed.
  8239. * src/RequestGroupMan.cc (removeStoppedGroup)
  8240. Added debug message.
  8241. * src/BtPostDownloadHandler.cc
  8242. * src/MetalinkPostDownloadHandler.cc
  8243. * src/PostDownloadHandler.{h, cc}
  8244. * src/RequestGroup.cc
  8245. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8246. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  8247. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8248. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  8249. stops and there are any unfinished or in-progress downloads.
  8250. Added the legend of "stat".
  8251. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8252. Throw exception when chunck checksum verification fails.
  8253. * src/DownloadCommand.cc (validatePieceHash): New function.
  8254. * src/PiecedSegment.{h, cc} (clear): New function.
  8255. * src/GrowSegment.{h, cc} (clear): New function.
  8256. * src/Segment.h (clear): New function.
  8257. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  8258. * test/SegmentTest.cc
  8259. * test/GrowSegmentTest.cc
  8260. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8261. Do not send referer when redirected.
  8262. * src/Request.cc (redirectUrl)
  8263. * test/RequestTest.cc
  8264. * test/HttpRequestTest.cc
  8265. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8266. Implemented BitTorrent/http/ftp integrated download.
  8267. I've rewritten lots of files and now some headers have forward
  8268. class declarations to reduce compile time.
  8269. The implementation is extremely alpha stage, I recommend to use this
  8270. for testing purpose only.
  8271. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8272. Fixed the compilation error on 64bit platform.
  8273. * test/HttpHeaderProcessorTest.cc
  8274. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8275. Merged Ross's patch that fixes compilation problem in MinGW
  8276. * test/DefaultBtProgressInfoFileTest.cc
  8277. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8278. Updated fr.po by sebone
  8279. * po/fr.po
  8280. Updated man page.
  8281. * doc/aria2c.1.txt
  8282. * Release 0.11.3
  8283. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8284. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  8285. failure in Metalink.
  8286. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8287. Automatically save *.aria2 control file of http/ftp download in every
  8288. 60 seconds.
  8289. * src/AutoSaveCommand.{h, cc}: New class.
  8290. * src/TimeBasedCommand.{h, cc}: New class.
  8291. * src/DownloadEngineFactory.cc (newConsoleEngine)
  8292. Disable parameterized URI support by default. Added -P option to
  8293. enable the feature.
  8294. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  8295. * src/OptionHandlerFactory.cc
  8296. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  8297. Updated Japanese translation.
  8298. * po/ja.po
  8299. Updated man page.
  8300. * doc/aria2c.1.txt
  8301. * Release 0.11.3-rc
  8302. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8303. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  8304. it is successful, then renamed to *.aria2.
  8305. This prevents *.aria2 file from being truncated or corrupted when
  8306. file system becomes out of space.
  8307. * src/DefaultBtProgressInfoFile.cc (save)
  8308. * src/SegmentMan.cc (save)
  8309. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  8310. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8311. Reduced the fragmentation of bitfield in http/ftp download.
  8312. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  8313. * test/BitfieldManTest.cc
  8314. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8315. Added the ability to disable segmented download in .metalink.
  8316. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  8317. 'url' tag.
  8318. * src/MetalinkEntry.{h, cc}
  8319. * src/RequestResource.{h, cc}
  8320. * src/MetalinkRequestInfo.cc
  8321. * src/Xml2MetalinkProcessor.cc
  8322. * test/Xml2MetalinkProcessorTest.cc
  8323. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8324. Added parameterized URI support.
  8325. * src/main.cc: -Z option added.
  8326. * src/OptionHandlerFactory.cc
  8327. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  8328. * src/PStringDatum.h: New class.
  8329. * src/PStringSegment.{h,cc}: New class.
  8330. * src/PStringNumLoop.h: New class.
  8331. * src/PStringSelect.h: New class.
  8332. * src/NumberDecorator.h: New class.
  8333. * src/FixedWidthNumberDecorator.h: New class.
  8334. * src/AlphaNumberDecorator.h: New class.
  8335. * src/PStringVisitor.h: New class.
  8336. * src/PStringBuildVisitor.{h,cc}: New class.
  8337. * src/ParameterizedStringParser.{h,cc}: New class.
  8338. * src/Util.{h,cc}
  8339. (isNumber): New function.
  8340. (isLowercase): New function.
  8341. (isUppercase): New function.
  8342. (alphaToNum): New function.
  8343. * test/ParameterizedStringParserTest.cc: New class.
  8344. * test/AlphaNumberDecoratorTest.cc: New class.
  8345. * test/PStringBuildVisitorTest.cc: New class.
  8346. * test/UtilTest.cc
  8347. (testIsNumber): New function.
  8348. (testIsLowercase): New function.
  8349. (testIsUppercase): New function.
  8350. (testAlphaToNum): New function.
  8351. Added '\n' after the error message
  8352. * src/RequestInfo.h (printDownloadAbortMessage)
  8353. Added auto file renaming feature in http(s)/ftp download.
  8354. * src/main.cc: Added --auto-file-renaming command-line option.
  8355. * src/OptionHandlerFactory.cc
  8356. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  8357. * src/RequestGroup.{h, cc}
  8358. (shouldCancelDownloadForSafety): Rewritten
  8359. (tryAutoFileRenaming): New function.
  8360. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  8361. * src/HttpResponseCommand.cc
  8362. (executeInternal): Removed the call to RequestGroupMan::
  8363. isSameFileBeingDownloaded()
  8364. * src/FtpNegotiateCommand.cc
  8365. (recvSize): Removed the call to RequestGroupMan::
  8366. isSameFileBeingDownloaded()
  8367. * test/RequestGroupTest.cc: New class.
  8368. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8369. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  8370. IO.
  8371. * src/DefaultBtProgressInfoFile.cc
  8372. * src/MetaFileUtil.cc
  8373. * src/SimpleLogger.cc
  8374. * src/SegmentMan.cc
  8375. * src/Util.cc
  8376. * src/Platform.cc
  8377. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8378. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  8379. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8380. Avoid sparse files if possible, because VFAT32 doesn't support it.
  8381. * src/DefaultDiskWriter.cc (initAndOpenFile)
  8382. Fixed the bug that prevents file allocation is not done when
  8383. dowloading multi-torrent file.
  8384. * src/AbstractDiskWriter.cc (openFile)
  8385. Increase the maximum number of -j option from 15 to 45.
  8386. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8387. Added fr.po, thanks to Charles Landemaine.
  8388. * po/fr.po
  8389. * po/LINGUAS
  8390. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8391. gcc 3.4.4 support:
  8392. * src/DefaultBtContext.cc: int32_t -> int
  8393. * src/main.cc: int -> int32_t, int32_t -> int
  8394. * src/messageDigest.h: uint32_t -> unsigned int
  8395. * src/NameResolver.h: int32_t -> int
  8396. * src/PeerConnection.cc: int -> int32_t
  8397. * src/SpeedCalc.cc: int32_t -> int
  8398. * src/TrackerUpdateCommand.h: int -> int32_t
  8399. * src/Util.cc: int32_t -> int
  8400. * src/Util.h: int32_t -> int
  8401. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  8402. * test/AnnounceListTest.cc: int -> int32_t
  8403. * test/ChunkedEncodingTest.cc: int -> int32_t
  8404. * test/DataTest.cc: int -> int32_t
  8405. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  8406. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  8407. * test/DefaultPieceStorageTest.cc: int -> int32_t
  8408. * test/FeatureConfigTest.cc: int -> int32_t
  8409. * test/MetalinkEntryTest.cc: int -> int32_t
  8410. * test/MockBtRequestFactory.h: int -> int32_t
  8411. * test/MockPieceStorage.h: int -> int32_t
  8412. * test/OptionTest.cc: int -> int32_t
  8413. * test/RequestTest.cc: int -> int32_t
  8414. * test/SegmentManTest.cc: int -> int32_t
  8415. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  8416. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8417. Move sleep functions to Util class:
  8418. * src/Util.cc
  8419. (sleep): New function.
  8420. (usleep): New function.
  8421. * src/DownloadCommand.cc: sleep -> Util::sleep
  8422. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  8423. MinGW build enhancements. The following files are added:
  8424. * src/timegm.{c,h}
  8425. Changes to support the above new files:
  8426. * configure.ac
  8427. * src/Makefile.am
  8428. * src/a2time.h
  8429. * src/Util.cc:
  8430. * src/strptime.c: Added support for %Z option.
  8431. Fixed MinGW non-blocking bug.
  8432. * src/SocketCore.cc
  8433. * src/HttpRequestCommand.cc
  8434. Miscellenous build fixes/enhancements.
  8435. * configure.ac: Added summary report.
  8436. * src/Platform.h: Tweaked #include's.
  8437. * src/a2netcompat.h: Tweaked #include's.
  8438. * src/strptime.h: Tweaked #include's.
  8439. * src/gai_strerror.c: Tweaked #include's.
  8440. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  8441. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  8442. * src/gettimeofday.h: Added HAVE_CONFIG_H
  8443. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8444. Increased the initial connection size in BitTorrent download to 40.
  8445. * src/BtRuntime.h
  8446. Added the usage message of --peer-id-prefix option.
  8447. * src/main.cc
  8448. * Release 0.11.2
  8449. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8450. MessageDigestHelper is introduced in order to simplify the use
  8451. of message digest. Removed repeated code.
  8452. The message digest algorithm is now specified by string, like "sha1",
  8453. "md5".
  8454. * src/messageDigest.{h, cc}
  8455. * src/MessageDigestHelper.{h, cc}: New class.
  8456. * src/DefaultPieceStorage.cc
  8457. * src/DefaultBtContext.{h, cc}
  8458. (computeFastSet): New function.
  8459. (setInfoHash): Added for unit testing.
  8460. (setNumPieces): Added for unit testing.
  8461. * src/DefaultBtInteractive.cc
  8462. * src/BtPieceMessage.cc
  8463. * src/Peer.cc
  8464. * src/Checksum.h
  8465. * src/message.h
  8466. * src/IteratableChecksumValidator.h
  8467. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  8468. inside it.
  8469. * src/SegmentMan.{h, cc}
  8470. (checkIntegrity): Removed.
  8471. * src/IteratableChunkChecksumValidator.{h, cc}
  8472. * src/Util.h
  8473. (sha1Sum): Removed.
  8474. (simpleMessageDigest): Removed.
  8475. (fileChecksum): Removed.
  8476. (computeFastSet): Removed.
  8477. * src/ShaVisitor.cc
  8478. * src/ChunkChecksum.h
  8479. * src/DownloadCommand.cc
  8480. Removed messageDigest virtual functions.
  8481. * src/MultiDiskAdaptor.{h, cc}
  8482. * src/DiskAdaptor.h
  8483. * src/ByteArrayDiskWriter.h
  8484. * src/DiskWriter.h
  8485. * src/DiskAdaptorWriter.h
  8486. * src/AbstractSingleDiskAdaptor.{h, cc}
  8487. * src/AbstractDiskWriter.{h, cc}
  8488. Fixed comilation error when message digest is disabled.
  8489. * src/MetalinkEntry.{h, cc}
  8490. * src/MetalinkRequestInfo.cc
  8491. Removed srandom and random.
  8492. * src/SimpleRandomizer.h
  8493. Added size() virtual function to DiskAdaptor
  8494. * src/MultiDiskAdaptor.h
  8495. Fixed the bug that causes that files are not opened correctly in
  8496. multi-file torrent.
  8497. * src/TorrentRequestInfo.cc
  8498. * src/MultiDiskAdaptor.cc
  8499. Added SHA256 support
  8500. * src/messageDigest.cc
  8501. * src/Xml2MetalinkProcessor.cc
  8502. Show supported message digest algorithms
  8503. * src/main.cc
  8504. Updated contact info.
  8505. * src/main.cc
  8506. Applied Ross's patch
  8507. * src/a2netcompat.h
  8508. * src/main.cc
  8509. Fixed the bug that prevents a remote metalink from not being processed
  8510. even if '-o foo.metalink' is specified.
  8511. * src/MetalinkRequestInfo.cc
  8512. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8513. Merged Dan's patch:
  8514. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  8515. Use va_copy to avoid core dump on amd64:
  8516. * src/SimpleLogger.cc
  8517. Updated contact info.
  8518. * src/main.cc
  8519. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  8520. digest is not available.
  8521. * src/MetalinkEntry.h
  8522. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8523. Make a2netcompat.h include a2io.h to fix compilation error:
  8524. * src/a2netcompat.h
  8525. * src/SocketCore.cc: Removed include of a2io.h
  8526. * src/Util.cc: Removed include of a2io.h
  8527. Gather time related functions to a2time.h:
  8528. * src/a2time.h: New file.
  8529. * src/DefaultPeerStorage.cc
  8530. * src/SimpleLogger.cc
  8531. * src/Util.{h, cc}
  8532. * src/SimpleRandomizer.h
  8533. * src/TimeA2.{h,cc}
  8534. * src/DownloadCommand.cc
  8535. * src/main.cc
  8536. Removed #ifdef __MINGW32__ since gai_strerror is included in
  8537. a2netcompat.h:
  8538. * src/NameResolver.cc
  8539. Fixed compilation error without openssl:
  8540. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  8541. Added default block to suppress compiler warnings:
  8542. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  8543. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  8544. MinGW build enhancements. The following files are added:
  8545. * src/gai_strerror.{c,h}
  8546. * src/gettimeofday.{c,h}
  8547. Changes to support the above new files:
  8548. * configure.ac
  8549. * src/Makefile.am
  8550. * src/a2netcompat.h
  8551. * src/TimeA2.cc
  8552. * src/DefaultPeerStorage.cc
  8553. * src/NameResolver.cc: removed mingw_strerror() function.
  8554. * src/SocketCore.cc: removed mingw_strerror() function.
  8555. Miscellaneous MinGW build fixes.
  8556. * src/a2io.h: Use _lseeki64() instead of lseek()
  8557. * src/common.h
  8558. * src/DefaultFileAllocator.cc
  8559. * src/GlowFileAllocator.cc
  8560. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  8561. * src/NameResolver.cc
  8562. (callback): Changed int32_t to int.
  8563. (resolve): Changed int32_t to int.
  8564. * src/Platform.cc
  8565. * src/Platform.h
  8566. * test/MultiDiskWriterTest.cc
  8567. * test/PeerMessageUtilTest.cc
  8568. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  8569. Other enhancements and fixes.
  8570. * src/HttpRequestCommand.cc
  8571. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  8572. * src/SocketCore.cc:
  8573. (error): New function to abstract errno/WSAGetLastError().
  8574. (errorMsg): New function to abstract errno/WSAGetLastError().
  8575. (initiateSecureConnection): Added more detailed error reporting.
  8576. * src/SocketCore.h: Added private variable blocking, to allow
  8577. proper handling of OpenSSL psuedo-errors.
  8578. * src/message.h
  8579. (EX_SSL_INIT_FAILURE)
  8580. (EX_SSL_IO_ERROR)
  8581. (EX_SSL_PROTOCOL_ERROR)
  8582. (EX_SSL_UNKNOWN_ERROR)
  8583. (EX_SSL_CONNECT_ERROR)
  8584. (EX_SOCKET_BLOCKING)
  8585. (EX_SOCKET_NONBLOCKING)
  8586. (EX_SOCKET_UNKNOWN_ERROR)
  8587. * src/Util.cc
  8588. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  8589. reserved name.
  8590. (httpGMT): Fixed typo.
  8591. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8592. Merged Ross's win32 patch(manually)
  8593. In the course of merging, following files are added.
  8594. * src/strptime.{h,c}
  8595. * src/libgen.{h,c}
  8596. * src/inet_aton.{h,c}
  8597. * src/Platform.{h,cc}
  8598. * src/localtime_r.{h,c}
  8599. * src/getaddrinfo.{h,c}
  8600. I've gethered network related things, and put them to following file:
  8601. * src/a2netcompat.h
  8602. Also io related things are put to following file:
  8603. * src/a2io.h
  8604. Changed %lld to %s because mingw32 doesn't recognize %lld.
  8605. * src/message.h
  8606. (MSG_ALLOCATION_COMPLETED)
  8607. (EX_TOO_LARGE_FILE)
  8608. (EX_SIZE_MISMATCH)
  8609. (EX_FILE_OFFSET_OUT_OF_RANGE)
  8610. (EX_INVALID_CHUNK_CHECKSUM)
  8611. (EX_INVALID_RANGE_HEADER)
  8612. * src/FileAllocationCommand.cc
  8613. * src/HttpResponse.cc
  8614. * src/RequestGroup.cc
  8615. * src/MultiDiskAdaptor.cc
  8616. * src/OptionHandlerImpl.h
  8617. * src/HttpResponseCommand.cc
  8618. * src/FtpNegotiateCommand.cc
  8619. * src/IteratableChecksumValidator.cc
  8620. * src/SegmentMan.cc
  8621. * src/ChunkChecksumValidator.cc
  8622. Added Randomizer::getRandomNumber(long int)
  8623. * src/Randomizer.h (getRandomNumber)
  8624. * src/SimpleRandomizer.h (getRandomNumber)
  8625. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  8626. * src/Util.cc (randomAlpha): Use this new function.
  8627. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8628. Converted int's to in32_t. long long int's are also converted to
  8629. int64_t
  8630. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8631. Fixed the bug that prevents cookies from being sent to the server
  8632. if the domain of cookie is FQDN and starts with ".".
  8633. * src/Cookie.cc (match)
  8634. To add the ability to change peer id.
  8635. * src/DefaultBtContext.h
  8636. (_peerIdPrefix): New variable
  8637. (setPeerIdPrefix): New function.
  8638. * src/torrentRequestInfo.cc
  8639. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  8640. DefaultBtContext.
  8641. * src/main.cc (main): Added peer-id-prefix command-line option.
  8642. The usage message is not added yet.
  8643. * src/DefaultBtContext.cc
  8644. (generatePeerId): Use _peerIdPrefix.
  8645. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  8646. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8647. Fixed the bug that prevents filename in content-disposition from
  8648. being retrieved when filename is not quoted.
  8649. * src/Util.cc (getContentDispositionFilename)
  8650. Fixed the bug that causes infinate loop and memory leak when file open
  8651. operation failed.
  8652. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8653. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8654. Fixed the bug that causes segfault when all URIs specified are
  8655. unsupported.
  8656. * src/RequestGroupMan.cc (getInitialCommands)
  8657. Check if RequestGroup::createNextCommand() returns empty list of
  8658. commands.
  8659. * src/RequestGroup.cc (createNextCommand)
  8660. Change log level from info to error so that users can notice that
  8661. an error occurred.
  8662. Fixed the bug that causes segfault when a zero-sized file is
  8663. downloaded.
  8664. * src/BitfieldMan.cc (isAllBitSet)
  8665. Return true if bitfieldLength is 0.
  8666. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8667. * src/main.cc
  8668. (showUsage): Added 3 usage examples for metalink download.
  8669. Replace MetalinkChunkChecksum with ChunkChecksum.
  8670. * src/MetalinkChunkChecksum.h: Removed.
  8671. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  8672. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  8673. * src/Xml2MetalinkProcessor.cc
  8674. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  8675. * src/MetalinkRequestInfo.cc (execute)
  8676. * Release 0.11.1
  8677. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8678. Reads URIs from stdin when "-i -" is specified.
  8679. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  8680. * src/UriListParser.h, src/UriListParser.cc: New class.
  8681. * src/StreamUriListParser.h: New class.
  8682. * src/FileUriListParser.h: New class.
  8683. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  8684. instead of UriFileListParser.
  8685. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8686. Made console readout more readable.
  8687. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8688. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8689. Fix the bug that causes -s option not to work.
  8690. * src/main.cc (main)
  8691. * src/a2algo.h: New file.
  8692. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8693. Create directory structure specified in metalink file.
  8694. * src/RequestGroup.h, src/RequestGroup.cc
  8695. (initAndOpenFile): Create a directory to store files if it does not
  8696. exist.
  8697. (getDir): New function.
  8698. Added ETA and download speed for an individual file to readout.
  8699. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8700. * src/RequestGroup.h
  8701. (calculateDownloadSpeed): New function.
  8702. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8703. Made -S option work with metalink file and provided selective download
  8704. to metalink.
  8705. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  8706. (filename): Removed.
  8707. (file): New variable.
  8708. (size): Removed.
  8709. (operator=): Updated.
  8710. (getPath): New function.
  8711. (getLength): New function.
  8712. (toFileEntry): New function.
  8713. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  8714. (execute): Use toStream.
  8715. (showFileEntry): Removed.
  8716. * src/MetalinkRequestInfo.h
  8717. (targetFiles): New variable.
  8718. (setTargetFiles): New variable.
  8719. * src/MetalinkRequestInfo.cc
  8720. (execute): Added the ability to print file information included in
  8721. a metalink file.
  8722. Added selective download mode to metalink.
  8723. * src/main.cc
  8724. (showUsage): Updated to denote that -S and --select-file options are
  8725. applicable to metalink.
  8726. * src/FileEntry.h
  8727. (operator=): New function.
  8728. (getBasename): New function.
  8729. (getDirname): New function.
  8730. * src/Util.h, src/Util.cc
  8731. (toStream): New function.
  8732. * src/Xml2MetalinkProcessor.cc: Updated.
  8733. Made aria2 work with metalink with directory structure.
  8734. * src/File.h, src/File.cc
  8735. (getBasename): New function.
  8736. (getDirname): New function.
  8737. * src/RequestGroup.h, src/RequestGroup.cc
  8738. (_topDir): New variable.
  8739. (setTopDir): New function.
  8740. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  8741. Rewrote HTTP header parsing with stringstream.
  8742. * src/HttpConnection.h, src/HttpConnection.cc
  8743. (HttpRequestEntry): New class.
  8744. (headerBuf): Removed.
  8745. (headerBufLength): Removed.
  8746. (outstandingHttpRequests): Now its element type is
  8747. HttpRequestEntryHandle.
  8748. (findEndOfHeader): Removed.
  8749. (receiveResponse): Rewritten.
  8750. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  8751. Updated doc for -j option to notice that it should be used with -i
  8752. option.
  8753. * src/main.cc (showUsage)
  8754. Removed unused classes.
  8755. * src/RequestInfo.h
  8756. (FileInfo): Removed.
  8757. (checksum): Removed.
  8758. (fileInfo): Removed.
  8759. (setChecksum): Removed.
  8760. (getChecksum): Removed.
  8761. (getFileInfo): Removed.
  8762. Use ISO units.
  8763. * src/ConsoleDownloadEngine.cc
  8764. * src/TorrentConsoleDownloadEngine.cc
  8765. * src/Util.cc (abbrevSize)
  8766. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8767. Added the default listening ports to the help message.
  8768. * src/main.cc (showUsage)
  8769. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8770. Reduce the number of calls to gettimeofday to lower CPU load.
  8771. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  8772. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  8773. * src/Peer.h (calculateUploadSpeed): New function.
  8774. (calculateDownloadSpeed): New function.
  8775. * src/DefaultPeerStorage.cc
  8776. (CalculateStat): Added _now variable.
  8777. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  8778. and Peer::calculateUploadSpeed(const struct timeval&)
  8779. Drop connection if no request or piece message is exchanged in
  8780. a certain interval.
  8781. * src/DefaultBtInteractive.h
  8782. (btRuntime): New variable.
  8783. (inactiveCheckPoint): New variable.
  8784. (checkActiveInteraction): New function.
  8785. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  8786. request or piece message is received.
  8787. (checkActiveInteraction): New function.
  8788. (doInteractionProcessing): Call checkActiveInteraction.
  8789. Fixed the bug that causes remote Metalink and Torrent files are not
  8790. processed.
  8791. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  8792. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8793. Changed format of log file.
  8794. * src/SimpleLogger.cc
  8795. * Release 0.11.0
  8796. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8797. * src/AbstractCommand.cc
  8798. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  8799. MSG_MAX_TRY from error to info.
  8800. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  8801. * src/message.h
  8802. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  8803. (MSG_DOWNLOAD_ABORTED): Added %s.
  8804. (MSG_RESTARTING_DOWNLOAD): Added %s.
  8805. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  8806. * src/PeerAbstractCommand.cc
  8807. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  8808. * src/Request.h
  8809. (cookieBox): Made ShardHandle.
  8810. * src/RequestGroup.h, src/RequestGroup.cc
  8811. (createNextCommandWithAdj): New function.
  8812. * src/FileAllocationCommand.cc
  8813. (executeInternal): Use createNextCommandWithAdj().
  8814. * src/CheckIntegrityCommand.cc
  8815. (executeInternal): Use createNextCommandWithAdj().
  8816. Added --load-cookies command-option.
  8817. * src/OptionHandlerFactory.cc
  8818. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  8819. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  8820. Now aria2 can handle cookie's expiration date.
  8821. * src/Cookie.h (expires): Changed its type to time_t.
  8822. * src/main.cc: Added --load-cookies command-line option.
  8823. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  8824. * src/Util.h, src/Util.cc (httpGMT): New function.
  8825. * src/Request.cc (Request): Initialize cookieBox using
  8826. CookieBoxFactory.
  8827. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  8828. * src/CookieParser.h, src/CookieParser.cc: New class.
  8829. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  8830. * src/HttpResponseCommand.cc
  8831. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  8832. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  8833. download.
  8834. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8835. Added -j command-line option.
  8836. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8837. * src/main.cc
  8838. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  8839. Rewritten using stringstream.
  8840. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  8841. Rewritten using stringstream.
  8842. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8843. Make download size shown in MB, KB.
  8844. * src/ConsoleDownloadEngine.h (sendStatistics)
  8845. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  8846. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8847. Accept incoming connections if download rate is low.
  8848. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  8849. (_lowestSpeedLimit): New variable.
  8850. (setLowestSpeedLimit): New function.
  8851. (execute): Accept incoming connections if download rate is low.
  8852. MAX_PEERS is ignored in this case.
  8853. Disable PREF_OUT in multiple concurrent download:
  8854. * src/RequestGroup.h, src/RequestGroup.cc
  8855. (setUserDefinedFilename): New function.
  8856. * src/DownloadEngineFactory.cc
  8857. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  8858. concurrent download.
  8859. * src/DefaultSegmentManFactory.cc
  8860. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  8861. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8862. RequestGroup::getNextCommand() was renamed to createNextCommand().
  8863. Added its overloaded method.
  8864. * src/RequestGroup.h
  8865. (_numConcurrentCommand): New variable.
  8866. (setNumConcurrentCommand): New function.
  8867. * src/RequestGroup.cc
  8868. Abort download if same file is being downloaded concurrently.
  8869. * src/RequestGroup.h, src/RequestGroupMan.cc
  8870. (isSameFileBeingDownloaded): New function.
  8871. * src/HttpResponseCommand.cc (executeInternal)
  8872. * src/FtpNegotiateCommand.cc (recvSize)
  8873. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  8874. * main.cc: Added help message for -i option.
  8875. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8876. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  8877. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  8878. * src/MetalinkEntry.h
  8879. (checksum): Changed to ChecksumHandle
  8880. * src/MetalinkRequestInfo.cc
  8881. (checksum): Changed to ChecksumHandle
  8882. * src/File.cc
  8883. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  8884. * src/common.h
  8885. (DIR_OPEN_MODE): New definition
  8886. * src/RequestGroup.cc
  8887. (prepareForNextAction): Added an argument.
  8888. * src/message.h
  8889. (MSG_GOOD_CHECKSUM): New definition
  8890. (MSG_BAD_CHECKSUM): New definition
  8891. * src/HttpResponseCommand.cc
  8892. (handleDefaultEncoding): Continue download sequence in new
  8893. non-segmented download.
  8894. * src/FileAllocationEntry.h
  8895. (_nextDownloadCommand): New variable.
  8896. * src/DownloadCommand.cc
  8897. (prepareForNextSegment): Create ChecksumCommand if checksum is
  8898. available.
  8899. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  8900. * src/IteratableChecksumValidator.h,
  8901. src/IteratableChecksumValidator.cc: New class.
  8902. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  8903. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8904. Change file mode to 666:
  8905. * src/common.h (OPEN_MODE): New definition.
  8906. * src/File.cc
  8907. * src/Util.cc
  8908. * src/Directry.cc
  8909. * src/AbstractDiskWriter.cc
  8910. Change the level of log message "download aborted" to debug:
  8911. * src/PeerAbstractCommand.cc (execute)
  8912. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  8913. * src/TrackerWatcherCommand.cc
  8914. (createCommand): Sleep some seconds after request failed.
  8915. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  8916. then abort tracker request.
  8917. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8918. * Added the simultaneous download feature.
  8919. * src/main.cc: Print "Exception caught: " when exception is caught.
  8920. Use CUIDCounter instead of BtRuntime::getNewCuid():
  8921. * src/ActivePeerConnectionCommand.cc
  8922. * src/PeerInteractionCommand.cc
  8923. * src/BtRuntime.h
  8924. (cuidCounter): Removed.
  8925. (getNewCuid): Removed.
  8926. * src/DownloadEngineFactory.cc
  8927. * src/PeerListenCommand.cc
  8928. * src/TrackerUpdateCommand.cc
  8929. * src/PeerInitiateConnectionCommand.cc
  8930. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8931. * src/PeerAbstractCommand.cc
  8932. (onAbort): Call PeerStorage::returnPeer()
  8933. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  8934. (incomingPeers): New variable.
  8935. (addIncomingPeer): New function.
  8936. (returnPeer): New function.
  8937. (onErasingPeer): New function.
  8938. (addPeer): push_back -> push_front
  8939. (getActivePeers): Rewritten.
  8940. (calculateStat): Rewritten.
  8941. * src/PeerStorage.h
  8942. (TransferStat::copy): New function.
  8943. (TransferStat::TransferStat): New function.
  8944. (TransferStat::operator=): New function.
  8945. (addIncomingPeer): New function.
  8946. (returnPeer): New function.
  8947. * src/PeerListenCommand.cc
  8948. (execute): Use PeerStorage::addIncomingPeer() instead of
  8949. Peer::addPeer().
  8950. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8951. Connect to a peer actively when download speed is lower than specified
  8952. speed in torrent download:
  8953. * src/ActivePeerConnectionCommand.h: New class.
  8954. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8955. * src/HttpRequest.cc (createRequest): url-encode user-agent
  8956. * src/main.cc: Fixed the bug that prevents download if .netrc
  8957. doesn't exist.
  8958. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8959. To cache resolved hostname:
  8960. * src/AbstractCommand.h, src/AbstractCommand.cc
  8961. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  8962. Added dns cache.
  8963. * src/FtpInitiateConnectionCommand.cc
  8964. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  8965. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  8966. NameResolver working without ares.
  8967. * src/TorrentRequestInfo.cc
  8968. (execute): Don't cache dns in torrent download.
  8969. * src/HttpInitiateConnectionCommand.cc
  8970. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  8971. * src/DNSCache.h: New class.
  8972. * src/UrlRequestInfo.cc
  8973. (execute): Use dns cache.
  8974. In http request, suppress port number in http request header if port
  8975. is 80 or 443:
  8976. * src/HttpRequest.cc (getHostText): Suppress port number in http
  8977. request header if port is 80 or 443.
  8978. (createProxyRequest): Allways send port number.
  8979. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8980. To add the command-line option which disables netrc support:
  8981. * src/OptionHandlerFactory.cc
  8982. (createOptionHandlers): Added PREF_NO_NETRC.
  8983. * src/main.cc: Added -n option.
  8984. * src/prefs.h (PREF_NO_NETRC): New definition.
  8985. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  8986. V_TRUE.
  8987. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  8988. is V_FALSE. This may get configurable in the future release.
  8989. To clear peer's error status by time basis:
  8990. * src/PeerAbstractCommand.cc
  8991. (onAbort): Call Peer::startBadCondition().
  8992. * src/Peer.h, src/Peer.cc
  8993. (error): Removed.
  8994. (_badConditionStartTime): New variable.
  8995. (_badConditionInterval): New variable. Initialized to 10 seconds.
  8996. (startBadCondition): New function.
  8997. (isGood): New function.
  8998. * src/DefaultPeerStorage.cc
  8999. (addPeer): Use Peer::isGood().
  9000. (FindFinePeer): Use Peer::isGood().
  9001. Always include port number in http request header:
  9002. * src/HttpRequest.cc (getHostText): Always include port number in
  9003. http request header.
  9004. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9005. To the ability to read options from a config file:
  9006. * src/main.cc: Command-line parameter validation is delegated to
  9007. OptionHandler class.
  9008. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  9009. * src/Option.h, src/Option.cc (clear): New function.
  9010. * src/OptionParser.h, src/OptionParser.cc: New class.
  9011. * src/OptionHandler.h: New class.
  9012. * src/NameMatchOptionHandler.h: New class.
  9013. * src/OptionHandlerImpl.h: New classes.
  9014. * src/prefs.h: '_' -> '-'
  9015. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  9016. (FTP_PASV): New definition.
  9017. * src/Util.h, src/Util.cc (getRealSize): New function.
  9018. To disable netrc support if .netrc file does not have correct
  9019. permissions:
  9020. * src/File.h, src/File.cc (mode): New function.
  9021. To prevent confidential information to be logged:
  9022. * src/HttpConnection.h, src/HttpConnection.cc
  9023. (eraseConfidentialInfo): New function.
  9024. (sendRequest): Call eraseConfidentialInfo().
  9025. (sendProxyRequest): Call eraseConfidentialInfo().
  9026. * src/main.cc: Validate permissions of .netrc file.
  9027. To add --user-agent command-line option:
  9028. * src/main.cc: Added new command line option: --user-agent
  9029. * src/prefs.h (PREF_USER_AGENT): New definition.
  9030. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  9031. parameter to HttpRequest object.
  9032. * src/AbstractProxyRequestCommand.cc
  9033. (executeInternal): Set user-agent option parameter to HttpRequest
  9034. object.
  9035. Marged the patches from Dan Fandrich.
  9036. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9037. Use filename and size from Metalink file instead of sending HEAD
  9038. request:
  9039. * src/UrlRequestInfo.h
  9040. (_filename): New variable.
  9041. (_totalLength): New variable.
  9042. (setTotalLength): New variable.
  9043. (setFilename): New variable.
  9044. * src/MetalinkRequestInfo.cc
  9045. (execute): Set filename and size to UrlRequestInfo
  9046. * src/UrlRequestInfo.cc
  9047. (execute): Use filename and size from Metalink instead of seding
  9048. HEAD request to servers.
  9049. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9050. To add the ability to resume downloading a partially downloaded file
  9051. which is downloaded from the beginning:
  9052. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  9053. takes this role.
  9054. * src/main.cc: Added -c option.
  9055. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  9056. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  9057. * src/prefs.h (PREF_CONTINUE): New definition.
  9058. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  9059. * src/DefaultDiskWriter.cc
  9060. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  9061. * src/AbstractDiskWriter.h
  9062. (glowFileAllocator): New variable.
  9063. * src/AbstractDiskWriter.cc
  9064. (openExistingFile): Now preallocate file space from the end of the
  9065. existing file if totalLength argument is specified and grater than 0.
  9066. * src/UrlRequestInfo.cc: If -c option is specified and the file
  9067. to download exists in local, continue the download of the file.
  9068. --allow-overwrite=true is assumed in this context.
  9069. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  9070. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  9071. Throw exception if --check-integrity=true is specified but chunk
  9072. checksums are not provided:
  9073. * src/UrlRequestInfo.cc
  9074. Do not print URLs to stdout:
  9075. * src/UrlRequestInfo.cc
  9076. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9077. * src/Request.h: Use AuthResolver to get authentication information.
  9078. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  9079. set to RequestFactory object.
  9080. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  9081. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  9082. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  9083. create Request object.
  9084. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  9085. To integrate Netrc into exsiting classes:
  9086. * src/Request.h
  9087. (_userDefinedAuthConfig): New variable.
  9088. (findNetrcAuthenticator): New function.
  9089. (segment): Removed.
  9090. (setUserDefinedAuthConfig): New function.
  9091. (resolveHttpAuthConfigItem): New function.
  9092. (resolveFtpAuthConfigItem): New function.
  9093. (resolveHttpProxyAuthConfigItem): New function.
  9094. * src/HttpRequest.h
  9095. (authConfig): Removed.
  9096. (proxyAuthConfig): Removed.
  9097. (setAuthConfig): Removed.
  9098. (setProxyAuthConfig): Removed.
  9099. * src/UrlRequest.h
  9100. (getHeadResult): Added a parameter: authConfigHandle
  9101. * src/common.h
  9102. (SingletonHolder.h): New include.
  9103. * src/main.cc
  9104. (Netrc.h): New include.
  9105. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  9106. Added initial value of PREF_NETRC_PATH.
  9107. Added the initialization of netrc.
  9108. * src/AuthConfig.h: New class.
  9109. * src/prefs.h
  9110. (PREF_NETRC_PATH): New definition.
  9111. * src/HttpAuthConfig.h: Removed.
  9112. * src/Netrc.cc
  9113. (getRequiredNextToken): New function.
  9114. (skipMacdef): New function.
  9115. (parse): Rewritten.
  9116. * src/Netrc.h
  9117. (getRequiredNextToken): New function.
  9118. (skipMacdef): New function.
  9119. * src/Util.h, src/Util.cc
  9120. (getHomeDir): New function.
  9121. * src/TrackerWatcherComand.cc
  9122. (createRequestCommand): Use AuthConfig.
  9123. * src/FtpConnection.cc
  9124. (sendUser): Use Request::resolveFtpAuthConfigItem().
  9125. (sendPass): Use Request::resolveFtpAuthConfigItem().
  9126. * src/Request.cc
  9127. (findNetrcAuthenticator): New function.
  9128. (resolveHttpAuthConfigItem): New function.
  9129. (resolveFtpAuthConfigItem): New function.
  9130. (resolveHttpProxyAuthConfigItem): New function.
  9131. * src/UrlRequestInfo.cc: Use AuthConfig.
  9132. * src/HttpRequest.cc
  9133. (createRequest): Use authConfig.
  9134. (getProxyAuthString): Use authConfig.
  9135. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  9136. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  9137. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9138. To reduce overhead to find commands whose socket is either
  9139. readable or writable in the download engine loop:
  9140. * src/Command.h, src/Command.cc
  9141. (STATUS): New enum.
  9142. (status): New variable.
  9143. (statusMatch): New function.
  9144. (setStatusActive): New function.
  9145. (setStatusInactive): New function.
  9146. * src/DownloadEngine.h, src/DownloadEngine.cc
  9147. (executeCommand): New function.
  9148. (run): Simplified.
  9149. (waitData): Call Command::setStatusActive() when command's socket is
  9150. readable or writable.
  9151. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9152. To handle Segment as SegmentHandle:
  9153. * src/AbstractCommand.cc (execute): Rewritten.
  9154. * src/SegmentMan.h: Segment -> SegmentHandle
  9155. Introducded HttpResponse class, HttpRequest class to improve code
  9156. extensiveness and make it clear:
  9157. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  9158. HttpResponse class.
  9159. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  9160. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  9161. * src/HttpConnection.cc: Contruction of http request were moved to
  9162. HttpRequest class.
  9163. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  9164. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  9165. * src/HttpAuthConfig.h: New class.
  9166. * src/Range.h: New class.
  9167. To make FtpTunnel{Request, Response}Command and
  9168. HttpProxy{Request, Response}Command derived from
  9169. AbstractProxy{Request, Response}Command:
  9170. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  9171. Derived from AbstractProxyRequestCommand class.
  9172. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  9173. Derived from AbstractProxyResponseCommand class.
  9174. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  9175. Derived from AbstractProxyRequestCommand class.
  9176. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  9177. Derived from AbstractProxyResponseCommand class.
  9178. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  9179. : New class.
  9180. * src/AbstractProxyResponseCommand.h,
  9181. src/AbstractProxyResponseCommand.cc: New class.
  9182. To add netrc support:
  9183. * src/Netrc.h, src/Netrc.cc: New class.
  9184. * src/Util.h, src/Util.cc (split): New function.
  9185. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  9186. "Content-Range" header instead of "Range" header.
  9187. * src/HttpHeader.h
  9188. (getStatus): Removed.
  9189. (setStatus): Removed.
  9190. * src/Segment.h
  9191. (getPositionToWrite): New function.
  9192. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9193. * src/HttpHeader.h
  9194. (Range.h): New include.
  9195. (status): New variable.
  9196. (HttpHeader): Initialized status with 0.
  9197. (getStatus): New function.
  9198. (setStatus): New function.
  9199. (getRange): New function.
  9200. (HttpHeaderHandle): New function.
  9201. * src/HttpHeader.cc
  9202. (getRange): New function.
  9203. * src/Request.h
  9204. (RequestWeakHandle): New definition.
  9205. * src/HttpConnection.h
  9206. (HttpConnectionHandle): New type definition.
  9207. * src/HttpConnection.cc
  9208. (receiveResponse): Set HTTP status to headers.
  9209. * src/main.cc
  9210. (showUsage): Fixed typo.
  9211. * src/Segment.h
  9212. (SegmentHandle): New type definition.
  9213. * src/BitfieldMan.h
  9214. (getMissingUnusedLength): New function.
  9215. * src/BitfieldMan.cc
  9216. (getMissingUnusedLength): New function.
  9217. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9218. To fix static initialization order problem:
  9219. * src/BitfieldManFactory.h
  9220. (defaultRandomizer): Removed.
  9221. (factory): New variable.
  9222. (getNewFactory): Removed.
  9223. (getFactoryInstance): New function.
  9224. (setDefaultRandomizer): Rewritten.
  9225. (getDefaultRandomizer): Rewritten.
  9226. * src/BitfieldManFactory.cc
  9227. (defaultRandomizer): Removed.
  9228. (factory): Initialized to 0.
  9229. (BitfieldManFactory): Initialized randomizer to 0.
  9230. * src/DefaultPieceStorage.cc
  9231. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  9232. * src/Peer.cc
  9233. (Peer): getNewFactory() -> getFactoryInstance()
  9234. * src/SegmentMan.cc
  9235. (initBitfield): getNewFactory() -> getFactoryInstance()
  9236. * src/Piece.cc
  9237. (Piece): getNewFactory() -> getFactoryInstance()
  9238. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9239. To fix the bug that causes crash on Max OS X:
  9240. * src/SimpleRandomizer.h
  9241. (getInstance): Create new instance if the static variable is null.
  9242. * src/SimpleRandomizer.cc
  9243. (randomizer): Initialized to 0.
  9244. * src/BitfieldManFactory.h
  9245. (getNewFactory): Removed the call to setRandomizer().
  9246. To fix the miscalculation of the range of checksum:
  9247. * src/BitfieldMan.h
  9248. (isBitSetOffsetRange): New function.
  9249. * src/BitfieldMan.cc
  9250. (isBitSetOffsetRange): New function.
  9251. * src/SegmentMan.cc
  9252. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  9253. Use bitfield->getBlockLength() instead of segment.segmentLength.
  9254. * Release 0.10.1
  9255. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9256. To lower CPU usage in BitTorrent download when --max-upload-limit
  9257. command-line option specified:
  9258. * src/DefaultBtMessageDispatcher.cc
  9259. (sendMessages): Calculate uploading speed only when current message
  9260. is uploading data and is not sent yet.
  9261. * src/DefaultPeerStorage.h
  9262. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  9263. * src/HttpResponseCommand.cc
  9264. (handleDefaultEncoding): Added the cast to int32_t to itos.
  9265. This fixes compile error in Soralis 10.
  9266. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9267. To fix segfault in Metalink download:
  9268. * src/UrlRequestInfo.h
  9269. (filename): Removed.
  9270. (totalLength): Removed.
  9271. (setTotalLength): Removed.
  9272. (setFilename): Removed.
  9273. * src/MetalinkRequestInfo.cc
  9274. (execute): Do not set filename and totalLength to reqInfo.
  9275. Set chunk checksum to reqInfo if it is not null.
  9276. * src/HttpResponseCommand.cc
  9277. (executeInternal): Fixed filename in log.
  9278. (handleDefaultEncoding): Removed the call to initBitfield() and
  9279. markAllPiecesDone().
  9280. (handleOtherEncoding): Added HEAD method handling.
  9281. * src/FtpNegotiateCommand.cc
  9282. (executeInternal): Added SEQ_HEAD_OK handling.
  9283. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  9284. return false.
  9285. * src/FtpNegotiateCommand.h
  9286. (SEQ_HEAD_OK): New definition.
  9287. * src/SegmentMan.cc
  9288. (initBitfield): Delete bitfield.
  9289. (isChunkChecksumValidationReady): Fixed the condition.
  9290. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  9291. works fine.
  9292. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9293. * src/Xml2MetalinkProcessor.h
  9294. (xpathExists): New function.
  9295. * src/Xml2MetalinkProcessor.cc
  9296. (xpathExists): New function.
  9297. Not to send HEAD request if filename and size are available in Metalink
  9298. file:
  9299. * src/UrlRequestInfo.h
  9300. (filename): New variable.
  9301. (totalLength): New variable.
  9302. (setTotalLength): New function.
  9303. (setFilename): New function.
  9304. * src/MetalinkRequestInfo.cc
  9305. (execute): Set filename and size to UrlRequestInfo.
  9306. * src/MetalinkEntry.cc
  9307. (MetalinkEntry): Initialize size with 0.
  9308. * src/UrlRequestInfo.cc
  9309. (execute): Set filename and size to SegmentMan.
  9310. Not to download rest of the files after selected files are downloaded
  9311. in BitTorrent:
  9312. * src/PieceStorage.h
  9313. (allDownloadFinished): New function.
  9314. * src/DefaultBtAnnounce.cc
  9315. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  9316. downloadFinished.
  9317. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  9318. * src/DefaultPieceStorage.cc
  9319. (completePiece): Use allDownloadFinished instead of downloadFinished.
  9320. Commented out the call to finishSelectiveDownloadingMode().
  9321. (downloadFinished): Call isFilteredAllBitSet() instead of
  9322. isAllBitSet().
  9323. (allDownloadFinished): New function.
  9324. * src/DefaultBtInteractive.cc
  9325. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  9326. downloadFinished().
  9327. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  9328. * src/TorrentDownloadEngine.cc
  9329. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  9330. * src/BitfieldMan.h
  9331. (isFilteredAllBitSet): New function.
  9332. * src/ShareRatioSeedCriteria.h
  9333. (PieceStorage.h): New include.
  9334. (pieceStorage): New variable.
  9335. (evaluate):
  9336. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  9337. * src/BitfieldMan.cc
  9338. (isFilteredAllBitSet): New function.
  9339. (isAllBitSet): Filter is not took into account.
  9340. Rename --force-truncate as --allow-overwrite:
  9341. * src/TorrentRequestInfo.cc
  9342. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  9343. * src/main.cc
  9344. (showUsage): --force-truncate -> --allow-overwrite
  9345. * src/message.h
  9346. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  9347. * src/prefs.h
  9348. (PREF_FORCE_TRUNCATE): Removed.
  9349. (PREF_ALLOW_OVERWRITE): New definition.
  9350. * src/SegmentMan.cc
  9351. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  9352. * src/MetalinkRequestInfo.cc
  9353. (execute): Queueing message are now logged in info level.
  9354. * src/common.h
  9355. (LONG_LONG_MAX): Removed.
  9356. (LONG_LONG_MIN): Removed.
  9357. * src/HttpResponseCommand.cc
  9358. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  9359. * src/FtpNegotiateCommand.cc
  9360. (recvSize): LONG_LONG_MAX -> INT64_MAX
  9361. * src/main.cc
  9362. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  9363. command-line option.
  9364. (main): Added --check-integriy and --realtime-chunk-checksum
  9365. command-line option.
  9366. --force-truncate -> --allow-overwrite
  9367. Set initial value of --check-integrity option to false.
  9368. Don't show usage when error occurs while persing command-line options.
  9369. Removed deprecated --upload-limit option.
  9370. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9371. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  9372. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  9373. * src/BtAllowedFastMessage.cc:
  9374. * src/BtBitfieldMessage.cc
  9375. * src/BtCancelMessage.cc
  9376. * src/BtChokeMessage.cc
  9377. * src/BtHaveAllMessage.cc
  9378. * src/BtHaveMessage.cc
  9379. * src/BtHaveNoneMessage.cc
  9380. * src/BtInterestedMessage.cc
  9381. * src/BtNotInterestedMessage.cc
  9382. * src/BtPieceMessage.cc
  9383. * src/BtPortMessage.cc
  9384. * src/BtRejectMessage.cc
  9385. * src/BtRequestMessage.cc
  9386. * src/BtSuggestPieceMessage.cc
  9387. * src/BtUnchokeMessage.cc
  9388. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  9389. files are affected.
  9390. * src/ChunkChecksumValidator.cc
  9391. * src/SegmentMan.cc
  9392. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9393. To add chunk checksum validation:
  9394. * src/MetalinkEntry.h
  9395. (MetalinkChunkChecksum.h): New include.
  9396. (chunkChecksum): New variable.
  9397. * src/Request.h
  9398. (method): New variable.
  9399. (setMethod): New function.
  9400. (getMethod): New function.
  9401. (METHOD_GET): New static constant.
  9402. (METHOD_HEAD): New static constant.
  9403. * src/Xml2MetalinkProcessor.h
  9404. (getPieceHash): New function.
  9405. * src/PieceStorage.h
  9406. (markAllPiecesDone): New function.
  9407. (checkIntegrity): New function.
  9408. * src/FileAllocator.h
  9409. (NullFileAllocationMonitor.h): New include.
  9410. (FileAllocator): Initialize fileAllocationMonitor with new
  9411. NullFileAllocationMonitor().
  9412. * src/MultiDiskAdaptor.h
  9413. (messageDigest.h): Remove include.
  9414. (ctx): Removed.
  9415. (hashUpdate): Added ctx.
  9416. (MultiDiskAdaptor): Removed ctx.
  9417. (sha1Sum): Renamed as messageDigest.
  9418. (messageDigest): New function.
  9419. * src/UrlRequestInfo.h
  9420. (HeadResult): New class.
  9421. (digestAlgo): New variable.
  9422. (chunkChecksumLength): New variable.
  9423. (chunkChecksums): New variable.
  9424. (getHeadResult): New function.
  9425. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  9426. (setDigestAlgo): New function.
  9427. (setChunkChecksumLength): New function.
  9428. (setChunkChecksums): New function.
  9429. * src/DefaultPieceStorage.cc
  9430. (DiskAdaptorWriter.h): New include.
  9431. (ChunkChecksumValidator.h): New include.
  9432. (markAllPiecesDone): New function.
  9433. (checkIntegrity): New function.
  9434. * src/DefaultBtContext.h
  9435. (getPieceHashes): New function.
  9436. * src/TorrentRequestInfo.cc
  9437. (execute): Try to validate chunk checksum if file already exists and
  9438. .aria2 file doesn't there and user allows aria2 to overwrite it.
  9439. * src/messageDigest.h
  9440. (~MessageDigestContext): Added digestFree().
  9441. * src/MetalinkRequestInfo.cc
  9442. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  9443. * src/DiskAdaptor.h
  9444. (messageDigest.h): New include.
  9445. (sha1Sum): Renamed as messageDigest.
  9446. (messageDigest): New function.
  9447. * src/DownloadCommand.h
  9448. (PeerStat.h): New include.
  9449. (maxDownloadSpeedLimit): New variable.
  9450. (startupIdleTime): New variable.
  9451. (lowestDownloadSpeedLimit): New variable.
  9452. (peerStat): New variable.
  9453. (setMaxDownloadSpeedLimit): New function.
  9454. (setStartupIdleTime): New function.
  9455. (setLowestDownloadSPeedLimit): New function.
  9456. * src/BtContext.h
  9457. (getPieceHashes): New function.
  9458. * src/main.cc
  9459. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  9460. option to true for testing purpose.
  9461. * src/BtPieceMessage.cc
  9462. (checkPieceHash): Use messageDigest
  9463. * src/DownloadEngine.cc
  9464. (SetDescriptor): Removed.
  9465. (AccumulateActiveCommand): Removed.
  9466. (waitData): Rewritten.
  9467. (updateFdSet): Rewritten.
  9468. * src/MultiDiskAdaptor.cc
  9469. (hashUpdate): Added ctx.
  9470. (sha1Sum): Renamed as messageDigest.
  9471. (messageDigest): New function.
  9472. * src/BitfieldMan.h
  9473. (isBitRangeSet): New function.
  9474. (unsetBitRange): New function.
  9475. * src/ByteArrayDiskWriter.h
  9476. (sha1Sum): Renamed as messageDigest.
  9477. (messageDigest): New function.
  9478. * src/ConsoleDownloadEngine.cc
  9479. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  9480. * src/DiskWriter.h
  9481. (messageDigest.h): New include.
  9482. (sha1Sum): Renamed as messageDigest.
  9483. (messageDigest): New function.
  9484. * src/ChunkChecksumValidator.h: New class.
  9485. * src/DiskAdaptorWriter.h: New class.
  9486. * src/prefs.h
  9487. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  9488. (PREF_CHECK_INTEGRITY): New definition.
  9489. * src/HttpResponseCommand.cc
  9490. (handleDefaultEncoding): Added method "HEAD" handling.
  9491. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9492. (handleOtherEncoding):
  9493. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  9494. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  9495. startupIdleTime, lowestDownloadSpeedLimit to command.
  9496. * src/SegmentMan.h
  9497. (getSegmentEntryByIndex): New function.
  9498. (getSegmentEntryByCuid): New function.
  9499. (getSegmentEntryIteratorByCuid): New function.
  9500. (diskWriter): DiskWriter -> DiskWriterHandle
  9501. (pieceHashes): New variable.
  9502. (chunkHashLength): New variable.
  9503. (digestAlgo): New variable.
  9504. (FindPeerStat): Removed.
  9505. (getPeerStat): Rewritten.
  9506. (markAllPiecesDone): New function.
  9507. (checkIntegrity): New function.
  9508. (tryChunkChecksumValidation): New function.
  9509. (isChunkChecksumValidationReady): New function.
  9510. * src/BitfieldMan.cc
  9511. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  9512. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  9513. blocks to 0.
  9514. (isBitRangeSet): New function.
  9515. (unsetBitRange): New function.
  9516. * src/FtpNegotiateCommand.cc
  9517. (executeInternal): Set maxDownloadSpeedLimit,
  9518. startupIdleTime, lowestDownloadSpeedLimit to command.
  9519. (recvSize): Added method "HEAD" handling.
  9520. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9521. * src/AbstractSingleDiskAdaptor.cc
  9522. (sha1Sum): Renamed as messageDigest.
  9523. (messageDigest): New function.
  9524. * src/AbstractSingleDiskAdaptor.h
  9525. (sha1Sum): Renamed as messageDigest.
  9526. (messageDigest): New function.
  9527. * src/Util.h
  9528. (indexRange): New function.
  9529. * src/MetalinkEntry.cc
  9530. (MetalinkEntry): Initialized chunkChecksum to 0.
  9531. * src/ShaVisitor.cc
  9532. (~ShaVisitor): Removed the call to ctx.digestFree().
  9533. * src/SegmentMan.cc
  9534. (ChunkChecksumValidator.h): New include.
  9535. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  9536. to DIGEST_ALGO_SHA1.
  9537. (~SegmentMan): Removed diskWriter.
  9538. (FindSegmentEntryByIndex): Removed.
  9539. (FindSegmentEntryByCuid): Removed.
  9540. (checkoutSegment): Rewritten.
  9541. (findSlowerSegmentEntry): Rewritten.
  9542. (getSegment): Rewritten.
  9543. (updateSegment): Rewritten.
  9544. (completeSegment): Rewritten.
  9545. (markAllPiecesDone): New function.
  9546. (checkIntegrity): New function.
  9547. (isChunkChecksumValidationReady): New function.
  9548. (tryChunkChecksumValidation): New function.
  9549. * src/Xml2MetalinkProcessor.cc
  9550. (getEntry): Get size and set it to entry.
  9551. Get chunk checksum and set it to entry.
  9552. (getPieceHash): New function.
  9553. * src/Util.cc
  9554. (sha1Sum): Removed ctx.digestFree()
  9555. (fileChecksum): Removed ctx.digestFree()
  9556. (indexRange): New function.
  9557. * src/Request.cc
  9558. (METHOD_GET): New variable.
  9559. (METHOD_HEAD): New variable.
  9560. (Request): Added method.
  9561. * src/UrlRequestInfo.cc
  9562. (FatalException.h): New include.
  9563. (message.h): New include.
  9564. (operator<<): Added operator<< for class HeadResult.
  9565. (getHeadResult): New function.
  9566. (execute): Get filename and size in separate download engine.
  9567. * src/ChunkChecksumValidator.cc: New class.
  9568. * src/DownloadCommand.cc:
  9569. (DownloadCommand): Added peerStat.
  9570. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  9571. the value from Option.
  9572. The buffer size is now 16KB.
  9573. Use peerStat member instead of getting it from SegmentMan.
  9574. Use startupIdleTime member instead of gettingit from Option.
  9575. Added chunk checksum validation.
  9576. * src/AbstractDiskWriter.cc
  9577. (AbstractDiskWriter): Removed ctx.
  9578. (~AbstractDiskWriter): Removed ctx.digestFree()
  9579. (writeDataInternal): Returns the return value of write.
  9580. (readDataInternal): Returns the return value of read.
  9581. (sha1Sum): Renamed as messageDigest
  9582. (messageDigest): New function.
  9583. * src/AbstractDiwkWriter.h
  9584. (messageDigest.h): Removed include.
  9585. (ctx): Removed.
  9586. (sha1Sum): Renamed as messageDigest
  9587. (messageDigest): New function.
  9588. * src/DefaultPieceStorage.h
  9589. (markAllPiecesDone): New function.
  9590. (checkIntegrity): New function.
  9591. * src/NullFileAllocationMonitor.h: New class.
  9592. * src/MetalinkChunkChecksum.h: New class.
  9593. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9594. To decrease CPU usage in bittorrent download, calculation results in
  9595. BitfieldMan were cached and realtime fetching PeerObject was removed
  9596. with WeakHandle introduced. Option values are set to the objects
  9597. by setter before download begins.
  9598. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  9599. * src/DefaultBtRequestFactory.h
  9600. (dispatcher): BtMessageDispatcherHandle ->
  9601. BtMessageDispatcherWeakHandle.
  9602. (messageFactory): New variable.
  9603. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  9604. BtMessageDispatcherWeakHandle.
  9605. (setBtMessageFactory): New function.
  9606. * src/DefaultBtMessageDispatcher.cc:
  9607. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  9608. from Option.
  9609. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  9610. feating the value from Option.
  9611. Use messageFactory member.
  9612. * src/PeerInteractionCommand.cc
  9613. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  9614. Add reverse dependencies to factory object.
  9615. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  9616. dispatcher.
  9617. Set messageFactory to receiver.
  9618. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  9619. btInteractive.
  9620. Set receiver to peerObject.
  9621. Set maxDownloadSpeedLimit to this.
  9622. (executeInternal): Use maxDownloadSpeedLimit member.
  9623. * src/BtChokeMessage.cc
  9624. (doReceivedAction): Use dispatcher, requestFactory member.
  9625. (onSendComplete): Use dispatcher member.
  9626. * src/PeerInteractionCommand.h
  9627. (maxDownloadSpeedLimit): New variable.
  9628. * src/DefaultBtMessageReceiver.h
  9629. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9630. (dispatcher):
  9631. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9632. (messageFactory): New variable.
  9633. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9634. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9635. (setDispatcher):
  9636. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9637. (setBtMessageFactory): New function.
  9638. * src/DefaultBtInteractive.cc
  9639. (initiateHandshake): Use messageFactory member.
  9640. (addBitfieldMessageToQueue): Use messageFactory member.
  9641. (addAllowedFastMessageToQueue): Use messageFactory member.
  9642. (decideChoking): Use messageFactory member.
  9643. (checkHave): Use messageFactory member.
  9644. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  9645. (receiveMessages): Use maxDownloadSpeedLimit member.
  9646. (decideInterest): Use messageFactory member.
  9647. * src/BtRequestMessage.cc
  9648. (doReceivedAction): Use messageFactory, dispatcher member.
  9649. (onQueued): Use dispatcher member.
  9650. * src/BtPieceMessage.cc
  9651. (doReceivedAction): Use dispatcher member.
  9652. (send): Use peerConnection member.
  9653. (onWrongPiece): Use requestFactory member.
  9654. (handleChokingEvent): Use messageFactory, dispatcher member.
  9655. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  9656. * src/BtMessageDispatcher.h
  9657. (BtMessageDispatcherWeakHandle): New type definition.
  9658. * src/SimpleBtMessage.cc
  9659. (send): Use peerConnection member.
  9660. * src/BtRejectMessage.cc
  9661. (doReceivedAction): Use dispatcher member.
  9662. * src/DefaultBtMessageDispatcher.h
  9663. (Option.h): Removed include.
  9664. (messageFactory): New variable.
  9665. (option): Removed.
  9666. (maxUploadSpeedLimit): New variable.
  9667. (requestTimeout): New variable.
  9668. (DefaultBtMessageDispatcher): Removed option.
  9669. Added maxUploadSpeedLimit, requestTimeout.
  9670. (setOption): Removed.
  9671. (getOption): Removed.
  9672. (setMaxUploadSpeedLimit): New function.
  9673. (setRequestTimeout): New function.
  9674. (setBtMessageFactory): New function.
  9675. * src/DefaultBtInteractive.h
  9676. (btMessageReceiver):
  9677. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9678. (dispatcher):
  9679. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9680. (btRequestFactory):
  9681. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9682. (peerConnection):
  9683. PeerConnectionHandle -> PeerConnectionWeakHandle
  9684. (messageFactory): New variable.
  9685. (option): Removed.
  9686. (keepAliveInterval): New variable.
  9687. (maxDownloadSpeedLimit): New variable.
  9688. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  9689. (setBtMessageReceiver):
  9690. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9691. (setDispatcher):
  9692. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9693. (setBtRequestFactory):
  9694. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9695. (setPeerConnection):
  9696. PeerConnectionHandle -> PeerConnectionWeakHandle
  9697. (setOption): Removed.
  9698. (setKeepAliveInterval): New function.
  9699. (setMaxDownloadSpeedLimit): New function.
  9700. (setBtMessageFactory): New function.
  9701. * src/BitfieldMan.h
  9702. (cachedNumMissingBlock): New variable.
  9703. (cachedNumFilteredBlock): New variable.
  9704. (cachedCompletedLength): New variable.
  9705. (cachedFilteredComletedLength): New variable.
  9706. (cachedFilteredTotalLength): New variable.
  9707. (countMissingBlockNow): New function.
  9708. (countFilteredBlockNow): New function.
  9709. (getFilteredTotalLengthNow): New function.
  9710. (getCompletedLengthNow): New function.
  9711. (getFilteredCompletedLengthNow): New function.
  9712. (updateCache): New function.
  9713. * src/AbstractBtMessage.h
  9714. (BtMessageDispatcher.h): New include.
  9715. (PeerConnection.h): New include.
  9716. (BtRequestFactory.h): New include
  9717. (BtMessageFactory.h): New include.
  9718. (dispatcher): New variable.
  9719. (messageFactory): New variable.
  9720. (peerConnection: New variable.
  9721. (setBtMessageDispatcher): New function.
  9722. (setPeerConnection): New function.
  9723. (setBtMessageFactory): New function.
  9724. (setBtRequestFactory): New function.
  9725. * src/DefaultBtMessageFactory.cc
  9726. (setCommonProperty): Set dispatcher, requestFactory, this,
  9727. peerConnection to msg.
  9728. * src/BtRegistry.h
  9729. (BT_MESSAGE_RECEIVER): New macro.
  9730. * src/PeerConnection.h
  9731. (PeerConnectionWeakHandle): New type definition.
  9732. * src/BtMessageFactory.h
  9733. (BtMessageFactoryWeakHandle): New type definition.
  9734. * src/BitfieldMan.cc
  9735. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  9736. cachedCompletedLength, cachedFilteredComletedLength,
  9737. cachedFilteredTotalLength.
  9738. Call updateCache().
  9739. (countMissingBlock): Return cachedNumMissingBlock.
  9740. (countMissingBlockNow): New function.
  9741. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  9742. (countFilteredBlockNow): New function.
  9743. (setBit): Call updateCache().
  9744. (unsetBit): Call updateCache().
  9745. (setBitfield): Call updateCache().
  9746. (clearAllBit): Call updateCache().
  9747. (setAllBit): Use setBitInternal instead of setBit.
  9748. Call updateCache().
  9749. (addFilter): Call updateCache().
  9750. (enableFilter): Call updateCache().
  9751. (disableFilter): Call updateCache().
  9752. (clearFilter): Call updateCache().
  9753. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  9754. (getFilteredTotalLengthNow): New function.
  9755. (getCompletedLength): Return cachedCompletedLength.
  9756. (getCompletedLengthNow): New function.
  9757. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  9758. (getFilteredCompletedLengthNow): New function.
  9759. (updateCache): New function.
  9760. * src/BtMessageReceiver.h
  9761. (BtMessageReceiverWeakHandle): New type definition.
  9762. * src/DefaultBtMessageReceiver.cc
  9763. (receiveHandshake): Use messageFactory member.
  9764. (sendHandshake): Use messageFactory member.
  9765. (receiveMessage): Use messageFactory member.
  9766. * src/DefaultBtMessageFactory.h
  9767. (dispatcher): New variable.
  9768. (requestFactory): New variable.
  9769. (peerConnection): New variablle.
  9770. (setBtMessageDispatcher): New function.
  9771. (setBtRequestFactory): New function.
  9772. (setPeerConnection): New function.
  9773. * src/SharedHandle.h
  9774. (RefCount): New class.
  9775. (WeakHandle): New class.
  9776. * src/PeerObject.h
  9777. (BtMessageReceiver.h): New include.
  9778. (PeerObject): Added btMessageReceiver.
  9779. (btMessageReceiver): New variable.
  9780. * src/Util.cc
  9781. (countBit): Simplified.
  9782. * src/BtCancelMessage.cc
  9783. (doReceivedAction): Use dispatcher member.
  9784. * src/BtRequestFactory.h
  9785. (BtRequestFactoryWeakHandle): New type definition.
  9786. * src/PeerStorage.h
  9787. (downloadSpeed): int -> uint32_t
  9788. (uploadSpeed): int -> uint32_t
  9789. (sessionDownloadLength): long long int -> uint64_t
  9790. (sessionUploadLength): long long int -> uint64_t
  9791. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9792. To add RecoverableException, FatalException:
  9793. * src/AbstractCommand.cc
  9794. (onAbort): Exception -> RecoverableException
  9795. * src/PeerAbstractCommand.h
  9796. (RecoverableException.h): New include.
  9797. (onAbort): Exception -> RecoverableException.
  9798. * src/PeerInteractionCommand.cc
  9799. (onAbort): Exception -> RecoverableException.
  9800. * src/PeerAbstractCommand.cc
  9801. (execute): Exception -> RecoverableException.
  9802. (onAbort): Exception -> RecoverableException.
  9803. * src/TorrentRequestInfo.cc
  9804. (execute): Exception -> RecoverableException.
  9805. * src/MetalinkRequestInfo.cc
  9806. (execute): Exception -> RecoverableException.
  9807. * src/MetaFileUtil.cc: RecoverableException.
  9808. * src/AbstractCommand.h
  9809. (onAbort): Exception -> RecoverableException.
  9810. * src/DlRetryEx.h: Exception -> RecoverableException.
  9811. * src/DlAbortEx.h: Exception -> RecoverableException.
  9812. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  9813. * src/Util.cc: Exception -> RecoverableException.
  9814. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  9815. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  9816. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  9817. To make ID static const int
  9818. * src/BtInterestedMessage.h
  9819. (ID_t): Removed.
  9820. (ID): New variable.
  9821. (getId): Made non-const.
  9822. * src/BtPieceMessage.h
  9823. (ID_t): Removed.
  9824. (ID): New variable.
  9825. (getId): Made non-const.
  9826. * src/BtChokeMessage.h
  9827. (ID_t): Removed.
  9828. (ID): New variable.
  9829. (getId): Made non-const.
  9830. * src/BtHaveAllMessage.h
  9831. (ID_t): Removed.
  9832. (ID): New variable.
  9833. (getId): Made non-const.
  9834. * src/BtKeepAliveMessage.h
  9835. (ID_t): Removed.
  9836. (ID): New variable.
  9837. (getId): Made non-const.
  9838. * src/BtHandshakeMessage.h
  9839. (ID): New variable.
  9840. (getId): Made non-const.
  9841. * src/BtSuggestPieceMessage.h
  9842. (ID_t): Removed.
  9843. (ID): New variable.
  9844. (getId): Made non-const.
  9845. * src/BtPortMessage.h
  9846. (ID_t): Removed.
  9847. (ID): New variable.
  9848. (getId): Made non-const.
  9849. * src/AbstractBtMessage.h
  9850. (id): Removed.
  9851. (AbstractBtMessage): Removed id.
  9852. (getId): Removed.
  9853. * src/BtHaveMessage.h
  9854. (ID_t): Removed.
  9855. (ID): New variable.
  9856. (getId): Made non-const.
  9857. * src/BtAllowedFastMessage.h
  9858. (ID_t): Removed.
  9859. (ID): New variable.
  9860. (getId): Made non-const.
  9861. * src/BtCancelMessage.h
  9862. (ID_t): Removed.
  9863. (ID): New variable.
  9864. (getId): Made non-const.
  9865. * src/BtNotInterestedMessage.h
  9866. (ID_t): Removed.
  9867. (ID): New variable.
  9868. (getId): Made non-const.
  9869. * src/BtChokeMessage.h
  9870. (ID_t): Removed.
  9871. (ID): New variable.
  9872. (getId): Made non-const.
  9873. * src/BtRejectMessage.h
  9874. (ID_t): Removed.
  9875. (ID): New variable.
  9876. (getId): Made non-const.
  9877. * src/BtBitfieldMessage.h
  9878. (ID_t): Removed.
  9879. (ID): New variable.
  9880. (getId): Made non-const.
  9881. * src/BtUnchokeMessage.h
  9882. (ID_t): Removed.
  9883. (ID): New variable.
  9884. (getId): Made non-const.
  9885. * src/BtRequestMessage.h
  9886. (ID_t): Removed.
  9887. (ID): New variable.
  9888. (getId): Made non-const.
  9889. * src/BtHaveMessage.h
  9890. (ID_t): Removed.
  9891. (ID): New variable.
  9892. (getId): Made non-const.
  9893. To add --force-truncate command-line option and a check whether
  9894. the file already exists:
  9895. * src/DirectDiskAdaptor.h
  9896. (getFilePath): Made virtual public.
  9897. * src/MultiDiskAdaptor.h
  9898. (File.h): New include.
  9899. (DiskWriterEntry::fileEntry): Made private.
  9900. (DiskWriterEntry::fileExists): New function.
  9901. (DiskWriterEntry::getFileEntry): New function.
  9902. (fileExists): New function.
  9903. (getFilePath): New function.
  9904. * src/TorrentRequestInfo.cc
  9905. (FatalException.h): New include.
  9906. (message.h): New include.
  9907. (RecoverableException.h): New include.
  9908. (execute): Added a check whether file is already exists or not.
  9909. * src/DiskAdaptor.h
  9910. (fileExists): New function.
  9911. (getFilePath): New function.
  9912. * src/main.cc
  9913. (showUsage): Added an explanation of --force-truncate command-line
  9914. option.
  9915. (main): Added --force-truncate command-line option.
  9916. * src/Exception.h
  9917. (setMsg): buf[256] -> buf[1024]
  9918. * src/CopyDiskWriter.h
  9919. (getFilePath): Made public virtual.
  9920. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  9921. (fileExists): New function.
  9922. * src/DownloadEngineFactory.cc
  9923. (newTorrentConsoleEngine): Don't open file here.
  9924. * src/message.h
  9925. (EX_FILE_ALREADY_EXISTS): New definition.
  9926. * src/prefs.h
  9927. (PREF_FOECE_TRUNCATE): New definition.
  9928. * src/HttpResponseCommand.cc
  9929. (handleDefaultEncoding): Added a check whether the file already exists.
  9930. * src/SegmentMan.h
  9931. (fileExists): New function.
  9932. (shouldCancelDownloadForSafety): New function.
  9933. * src/FtpNegotiateCommand.cc
  9934. (recvSize): Added a check whether the file already exists.
  9935. * src/AbstractSingleDiskAdaptor.cc
  9936. (File.h): New include.
  9937. (fileExists): New function.
  9938. * src/AbstractSingleDiskAdaptor.h
  9939. (getFilePath): Removed.
  9940. (fileExists): New function.
  9941. * src/SegmentMan.cc
  9942. (fileExists): New function.
  9943. (shouldCancelDownloadForSafety): New function.
  9944. To fix regression bug in torrent downloading:
  9945. * src/DefaultBtRequestFactory.cc
  9946. (doChokedAction): New function.
  9947. * src/DefaultBtRequestFactory.h
  9948. (doChokedAction): New function.
  9949. * src/DefaultBtMessageDispatcher.cc
  9950. (doChokedAction): Do not delete request if its target is in allowed
  9951. fast set.
  9952. * src/DefaultBtInteractive.cc
  9953. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  9954. (sendKeepAlive): Send keep alive message even if the outgoing message
  9955. queue is not empty.
  9956. (decideInterest): Simplified the code.
  9957. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  9958. it is already called when BtChokeMessage is received from a peer.
  9959. * src/BtRequestFactory.h
  9960. (doChokedAction): New function.
  9961. To clean up code:
  9962. * src/PeerInteractionCommand.h
  9963. (executeInternal): Added virtual keyword explicitly.
  9964. (prepareForRetry): Added virtual keyword explicitly.
  9965. (prepareForNextPeer): Added virtual keyword explicitly.
  9966. (onAbort): Added virtual keyword explicitly.
  9967. * src/RequestSlot.cc
  9968. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  9969. * src/BtPieceMessage.cc
  9970. (doReceivedAction): Added a debug log of piece's bitfield.
  9971. * src/Piece.h
  9972. (getBitfieldLength): New function.
  9973. * src/ByteArrayDiskWriter.cc
  9974. (clear): Added buf = 0 to avoid double free corruption.
  9975. * src/FileAllocator.cc
  9976. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  9977. Added cp.reset().
  9978. * src/BitfieldMan.h
  9979. (operator=): Rewritten.
  9980. * src/BitfieldMan.cc
  9981. (BitfieldMan): Initialized bitfield, useBitfield.
  9982. * src/PeerConnection.cc
  9983. (receiveMessage): Added a call to socket->readable() after getting
  9984. message length to avoid possible EOF.
  9985. * src/Util.cc
  9986. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  9987. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9988. To add an ability to pre-allocate file space:
  9989. * src/DirectDiskAdaptor.h: Rewritten.
  9990. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  9991. * src/MultiDiskAdaptor.h: Rewritten.
  9992. * src/DefaultPieceStorage.cc
  9993. (MultiDiskWriter.h): Removed include.
  9994. (PreAllocationDiskWriter.h): Removed include.
  9995. (FileAllocationMonitor.h): New include.
  9996. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  9997. (initStorage): Rewritten.
  9998. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9999. * src/FileAllocator.h: New class.
  10000. * src/FileAllocator.cc: New class.
  10001. * src/FileAllocationMonitor.h: New class.
  10002. * src/FileAllocationMonitor.cc: New class.
  10003. * src/ConsoleFileAllocationMonitor.h: New class.
  10004. * src/ConsoleFileAllocationMonitor.cc: New class.
  10005. * src/AbstractSingleDiskAdaptor.h: New class.
  10006. * src/AbstractSingleDiskAdaptor.cc: New class.
  10007. * src/DiskAdaptor.h
  10008. (Directory.h): Removed include.
  10009. (DiskWriter.h): Removed include.
  10010. (FileEntry.h): Removed include.
  10011. (diskWriter): Removed.
  10012. (DiskAdaptor): Removed diskWriter.
  10013. (openFile): Made pure virtual.
  10014. (closeFile): Made pure virtual.
  10015. (openExistingFile): Made pure virtual.
  10016. (initAndOpenFile): Made pure virtual.
  10017. (writeData): Made pure virtual.
  10018. (readData): Made pure virtual.
  10019. (sha1Sum): Made pure virtual.
  10020. (getStoreDir): Returns const reference of storeDir.
  10021. (DiskAdaptorHandle): New type definition.
  10022. * src/main.cc
  10023. (ConsoleFileAllocationMonitor.h): New include.
  10024. (showUsage): Added default value description of -s option.
  10025. Added the description of --file-allocation option.
  10026. (main): Set default value of --file-allocation option to 'none'.
  10027. Added --file-allocation command-line option.
  10028. Setup FileAllocationMonitorFactory.
  10029. * src/FtpInitiateConnectionCommand.cc
  10030. (executeInternal): Removed diskWriter related processing, which was
  10031. moved to FtpNegotiationCommand.cc.
  10032. * src/DirectDiskAdaptor.cc
  10033. (getFilePath): Made non-const.
  10034. * src/CopyDiskAdaptor.h
  10035. (DiskAdaptor.h): Removed include.
  10036. (DiskWriter.h): Removed include.
  10037. (AbstractSingleDiskAdaptor.h): New include.
  10038. (getFilePath): Made non-const. Added virtual keyword.
  10039. (CopyDiskAdaptor): Removed diskWriter.
  10040. (getTempFile): Returns const reference.
  10041. (CopyDiskAdaptorHandle): New type definition.
  10042. * src/ByteArrayDiskWriter.cc
  10043. (clear): Simplified.
  10044. (initAndOpenFile): Rewritten.
  10045. (openFile): Call initAndOpenFile()
  10046. * src/MultiDiskAdaptor.cc: Rewritten.
  10047. * src/DownloadEngineFactory.cc
  10048. (FileAllocator.h): New include.
  10049. (FileAllocationMonitor.h): New include.
  10050. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  10051. create DefaultDiskWriter with file allocator.
  10052. * src/DiskWriter.h
  10053. (initAndOpenFile): Added totalLength argument.
  10054. (openFile): Added totalLength argument.
  10055. * src/prefs.h
  10056. (PREF_FILE_ALLOCATION): New definition.
  10057. (V_PREALLOC): New definition.
  10058. (V_NONE): New definition.
  10059. * src/HttpResponseCommand.cc
  10060. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  10061. size.
  10062. * src/FtpNegotiateCommand.cc
  10063. (Util.h): New include.
  10064. (recvSize): Open file here.
  10065. * src/Util.h
  10066. (ullitos): New function.
  10067. * src/CopyDiskWriter.h
  10068. (getFilePath): Made non-const.
  10069. * src/DefaultDiskWriter.h
  10070. (Option.h): New include.
  10071. (totalLength): Removed.
  10072. (DefaultDiskWriter): Removed totalLength.
  10073. (initAndOpenFile): Added totalLength argument.
  10074. (DefaultDiskWriterHandle): New type definition.
  10075. (createNewDiskWriter): New function.
  10076. * src/Util.cc
  10077. (ullitos): New function.
  10078. * src/DefaultDiskWriter.cc
  10079. (message.h): New include.
  10080. (FileAllocator.h): New include.
  10081. (prefs.h): New include.
  10082. (Util.h): New include.
  10083. (DefaultDiskWriter): Removed totalLength.
  10084. (initAndOpenFile): Added file allocation.
  10085. (createNewDiskWriter): New function. Just for temporary solution.
  10086. It will be rewritten later.
  10087. * src/DiskAdaptor.cc
  10088. (DiskAdaptor): Removed diskWriter.
  10089. * src/AbstractDiskWriter.cc
  10090. (LogFactory.h): New include.
  10091. (AbstractDiskWriter): Added fileAllocator, logger.
  10092. (openFile): Added totalLength argument.
  10093. * src/AbstractDiskWriter.h
  10094. (FileAllocator.h): New include.
  10095. (Logger.h): New include.
  10096. (fileAllocator): New variable.
  10097. (logger): New variable.
  10098. (openFile): Added totalLength argument. Added virtual keyword
  10099. explicitly.
  10100. (openExistingFile): Added totalLength argument. Added virtual keyword
  10101. explicitly.
  10102. (closeFile): Added virtual keyword explicitly.
  10103. (sha1Sum): Added virtual keyword explicitly.
  10104. (writeData): Added virtual keyword explicitly.
  10105. (readData): Added virtual keyword explicitly.
  10106. (setFileAllocator): New function.
  10107. * src/DefaultPieceStorage.h
  10108. (FileAllocator.h): New include.
  10109. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10110. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10111. * src/FileProgressMonitor.h: New class.
  10112. To compile aria2 on PC-BSD:
  10113. * src/DefaultBtContext.cc
  10114. (libgen.h): New include.
  10115. To fix memory leak:
  10116. * src/Exception.h
  10117. (~Exception): Delete cause. Fixed memory leak.
  10118. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10119. Rewritten a portion of bittorrent implementation:
  10120. * src/BtMessageValidator.h: New class.
  10121. * src/BtBitfieldMessageValidator.h: New class.
  10122. * src/BtHandshakeMessageValidator.h: New class.
  10123. * src/BtRequestMessageValidator.h: New class.
  10124. * src/BtSuggestPieceMessageValidator.h: New class.
  10125. * src/BtAllowedFastMessageValidator.h: New class.
  10126. * src/BtRejectMessageValidator.h: New class.
  10127. * src/BtCancelMessageValidator.h: New class.
  10128. * src/BtPieceMessageValidator.h: New class.
  10129. * src/BtHaveMessageValidator.h: New class.
  10130. * src/BtEventListener.h: New class.
  10131. * src/AbstractBtEventListener.h: New class.
  10132. * src/BtEvent.h: New class.
  10133. * src/BtChokingEvent.h: New class.
  10134. * src/BtChokedEvent.h: New class.
  10135. * src/BtCancelSendingPieceEvent.h: New class.
  10136. * src/BtAbortOutstandingRequestEvent.h: New class.
  10137. * src/Randomizer.h: New class.
  10138. * src/SimpleRandomizer.h: New class.
  10139. * src/BtMessage.h: New class.
  10140. * src/AbstractBtMessage.h: New class.
  10141. * src/SimpleBtMessage.h: New class.
  10142. * src/BtHaveMessage.h: New class.
  10143. * src/BtInterestedMessage.h: New class.
  10144. * src/BtAllowedFastMessage.h: New class.
  10145. * src/BtUnchokeMessage.h: New class.
  10146. * src/BtCancelMessage.h: New class.
  10147. * src/BtNotInterestedMessage.h: New class.
  10148. * src/BtChokeMessage.h: New class.
  10149. * src/BtHaveNoneMessage.h: New class.
  10150. * src/BtHandshakeMessage.h: New class.
  10151. * src/BtSuggestPieceMessage.h: New class.
  10152. * src/BtHaveMessage.h: New class.
  10153. * src/BtPieceMessage.h: New class.
  10154. * src/BtHaveAllMessage.h: New class.
  10155. * src/BtKeepAliveMessage.h: New class.
  10156. * src/BtPortMessage.h: New class.
  10157. * src/BtRejectMessage.h: New class.
  10158. * src/BtBitfieldMessage.h: New class.
  10159. * src/BtRequestMessage.h: New class.
  10160. * src/DefaultBtRequestFactory.h: New class.
  10161. * src/DefaultBtMessageReceiver.h: New class.
  10162. * src/BtInteractive.h: New class.
  10163. * src/BtMessageDispatcher.h: New class.
  10164. * src/DefaultBtMessageDispatcher.h: New class.
  10165. * src/DefaultBtInteractive.h: New class.
  10166. * src/BitfieldManFactory.h: New class.
  10167. * src/HandleRegistry.h: New class.
  10168. * src/BtMessageFactory.h: New class.
  10169. * src/BtMessageReceiver.h: New class.
  10170. * src/DefaultBtMessageFactory.h: New class.
  10171. * src/PeerObject.h: New class.
  10172. * src/BtRequestFactory.h: New class.
  10173. * src/SuggestPieceMessage.h: Removed.
  10174. * src/PortMessage.h: Removed.
  10175. * src/SuggestPieceMessage.h: Removed.
  10176. * src/KeepAliveMessage.h: Removed.
  10177. * src/HandshakeMessage.h: Removed.
  10178. * src/PeerInteraction.h: Removed.
  10179. * src/UnchokeMessage.h: Removed.
  10180. * src/PieceMessage.h: Removed.
  10181. * src/RequestMessage.h: Removed.
  10182. * src/InterestedMessage.h: Removed.
  10183. * src/HaveMessage.h: Removed.
  10184. * src/CancelMessage.h: Removed.
  10185. * src/RejectMessage.h: Removed.
  10186. * src/AllowedFastMessage.h: Removed.
  10187. * src/HaveNoneMessage.h: Removed.
  10188. * src/SimplePeerMessage.h: Removed.
  10189. * src/HaveAllMessage.h: Removed.
  10190. * src/BitfieldMessage.h: Removed.
  10191. * src/PeerMessageFactory.h: Removed.
  10192. * src/NotInterestedMessage.h: Removed.
  10193. * src/ChokeMessage.h: Removed.
  10194. * src/PeerMessage.h: Removed.
  10195. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10196. To know root cause of exception:
  10197. * src/Exception.h
  10198. (cause): New variable.
  10199. (Exception): Added a parameter.
  10200. (getMsg): Return const reference to msg.
  10201. (getCause): New function.
  10202. * src/DlRetryEx.h
  10203. (DlRetryEx): Added a parameter 'cause'.
  10204. Added an overloaded constructor.
  10205. (DlAbortEx): Added a parameter 'cause'.
  10206. Added an overloaded constructor.
  10207. * src/SimpleLogger.cc
  10208. (writeLog): Log nested exception messages recursively.
  10209. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10210. * src/DefaultBtProgressInfoFile.cc
  10211. (load): Fixed memory leak when the infohash doesn't match.
  10212. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10213. * src/DefaultPeerStorage.cc
  10214. (calculateStat): Simplified the code by combining 2 loops into 1.
  10215. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10216. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  10217. for BitTorrent download:
  10218. * src/PeerAbstractCommand.cc
  10219. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  10220. * src/main.cc:
  10221. (timeoutSpecified): Removed.
  10222. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  10223. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  10224. * src/TorrentRequestInfo.cc
  10225. (timeoutSpecified): Removed.
  10226. (torrentHandler): Removed timeoutSpecified and the adjustment of
  10227. timeout value.
  10228. * src/prefs.h
  10229. (PREF_BT_TIMEOUT): New definition.
  10230. Delete unused variables:
  10231. * src/TorrentRequestInfo.cc
  10232. (requestInfo): Removed.
  10233. Move setSignalHander to Util::setGlobalSignalHandler:
  10234. * src/TorrentRequestInfo.cc:
  10235. setSignalHander -> Util::setGlobalSignalHandler
  10236. * src/main.cc
  10237. (setSignalHander): Removed.
  10238. (main): setSignalHander -> Util::setGlobalSignalHandler
  10239. * src/Util.h
  10240. (setGlobalSignalHandler): New function.
  10241. * src/Util.cc
  10242. (setGlobalSignalHandler): New function.
  10243. * src/UrlRequestInfo.cc:
  10244. setSignalHander -> Util::setGlobalSignalHandler
  10245. Reset peer status in order to exit gracefully:
  10246. * src/PeerAbstractCommand.cc
  10247. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  10248. To fix the bug that causes the number of bytes uploaded is not saved
  10249. to .aria2 file:
  10250. * src/DefaultPeerStorage.h
  10251. (removedPeerSessionDownloadLength): New variable.
  10252. (removedPeerSessionUploadLength): New variable.
  10253. * src/DefaultPeerStorage.cc
  10254. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  10255. removedPeerSessionUploadLength(0).
  10256. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  10257. through all peers, and then add removedPeerSessionDownloadLength(
  10258. removedPeerSessionUploadLength) to it.
  10259. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  10260. (to) the peer to removedPeerSessionDownloadLength
  10261. (removedPeerSessionUploadLength).
  10262. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10263. To add Metalink location option:
  10264. * src/MetalinkRequestInfo.cc
  10265. (execute): Call MetalinkEntry::setLocationPreference()
  10266. * src/main.cc
  10267. (showUsage): Added the help message for --metalink-location option.
  10268. (main): Added --metalink-location option.
  10269. * src/prefs.h
  10270. (PREF_METALINK_LOCATION): New definition.
  10271. * src/MetalinkEntry.cc
  10272. (AddLocationPreference): New function object.
  10273. (setLocationPreference): New function.
  10274. * src/Xml2MetalinkProcessor.cc
  10275. (getResource): Set location attribute to MetalinkResource
  10276. To show URLs to download
  10277. * src/UrlRequestInfo.h
  10278. (printUrls): New function.
  10279. To add multiple <file> Metalink support:
  10280. * src/MetalinkEntry.h
  10281. (MetalinkResources): Removed.
  10282. (setLocationPreference): New function.
  10283. (MetalinkEntryHandle): New type definition.
  10284. (MetalinkEntries): New type definition.
  10285. * src/Xml2MetalinkProcessor.h
  10286. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10287. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10288. (parseFile): Metalinker* -> MetalinkerHandle
  10289. * src/UrlRequestInfo.h
  10290. (execute): RequestInfo* -> RequestInfos
  10291. * src/MetalinkRequestInfo.cc
  10292. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  10293. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  10294. (execute): RequestInfo* -> RequestInfos
  10295. Added multiple <file> support. Print filename when it is queued.
  10296. * src/MetalinkRequestInfo.h
  10297. (execute): RequestInfo* -> RequestInfos
  10298. (getDownloadEngine): Removed.
  10299. * src/RequestInfo.h
  10300. (RequestInfoHandle): New type definition.
  10301. (RequestInfos): New type definition.
  10302. (execute): RequestInfo* -> RequestInfos
  10303. (getDownloadEngine): Removed.
  10304. * src/MetalinkResource.h
  10305. (MetalinkResourceHandle): New type definition.
  10306. (MetalinkResources): New type definition.
  10307. * src/MetalinkEntry.cc
  10308. (~MetalinkEntry): Removed the deletion of the elements of resources,
  10309. because the element is now of type MetalinkResourceHandle.
  10310. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  10311. (Supported): MetalinkResource* -> MetalinkResourceHandle
  10312. (dropUnsupportedResource): Removed the deletion of the elements of
  10313. resources because the element is now of type MetalinkResourceHandle.
  10314. * src/Xml2MetalinkProcessor.cc
  10315. (parseFile): Metalinker* -> MetalinkerHandle
  10316. MetalinkEntry* -> MetalinkEntryHandle
  10317. Removed try-catch block.
  10318. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10319. MetalinkResource* -> MetalinkResourceHandle
  10320. Removed try-catch block.
  10321. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10322. Free result by using xmlXPathFreeObject()
  10323. * src/Metalinker.cc
  10324. (~Metalinker): Removed the deletion of entries.
  10325. MetalinkEntry* -> MetalinkEntryHandle
  10326. (queryEntry): Add multiple <file> Metalink support.
  10327. * src/Metalinker.h
  10328. (MetalinkEntries): Removed.
  10329. (queryEntry): MetalinkEntry* -> MetalinkEntries
  10330. * src/MetalinkProcessor.h
  10331. (parseFile): Metalinker* -> MetalinkerHandle
  10332. Bug fixes:
  10333. * src/PeerChokeCommand.cc
  10334. (execute): cat01->cat02
  10335. * src/DefaultPieceStorage.cc
  10336. (DefaultPieceStorage): Added diskAdaptor(0)
  10337. * src/TrackerWatcherComand.cc:
  10338. (execute): Use btAnnounce->noMoreAnnounce()
  10339. to determin whether the function returns true or not.
  10340. * src/TrackerUpdateCommand.cc:
  10341. (execute): Use btAnnounce->noMoreAnnounce()
  10342. to determin whether the function returns true or not.
  10343. * src/FtpConnection.cc
  10344. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  10345. This is the fix of the busy loop bug.
  10346. * src/DownloadCommand.cc
  10347. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  10348. cached PeerStat.
  10349. The value of "name" entry in torrent file is now set by
  10350. *DiskAdaptor::setTopDir(...) methods.
  10351. * src/MultiDiskAdaptor.h
  10352. (topDir): New variable.
  10353. (setTopDir): New function.
  10354. (getTopDir): New function.
  10355. * src/MultiDiskAdaptor.cc
  10356. (getFilePath): Concat storDir, "/" and topDir.
  10357. (mkdir): Use getFilePath() to get the directory path for output.
  10358. * src/DefaultPieceStorage.cc
  10359. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  10360. CopyDiskAdaptor.
  10361. * src/CopyDiskAdaptor.h
  10362. (topDir): New variable.
  10363. (setTopDir): New function.
  10364. (getTopDir): New function.
  10365. * src/CopyDiskAdaptor.cc
  10366. (fixFilename): Updated.
  10367. Misc
  10368. * src/UrlRequestInfo.h
  10369. (e): Removed.
  10370. (UrlRequestInfo): Removed e.
  10371. (getDownloadEngine): Removed.
  10372. * src/UrlRequestInfo.cc
  10373. (handler): Rewritten.
  10374. (printUrls): New function.
  10375. (execute): Call printUrls().
  10376. * src/HandshakeMessage.cc
  10377. (check): peerinteraction->getBtContext() -> btContext
  10378. * src/PeerInteraction.h
  10379. (getBtContext): Removed.
  10380. * src/TorrentRequestInfo.h
  10381. (execute): RequestInfo* -> RequestInfos
  10382. (getDownloadEngine): Removed.
  10383. * src/TorrentRequestInfo.cc
  10384. (haltRequested): Removed.
  10385. (btHaltRequested): New variable.
  10386. (torrentHandler): haltRequested -> btHaltRequested
  10387. (execute): RequestInfo* -> RequestInfos
  10388. * src/TorrentConsoleDownloadEngine.cc
  10389. (afterEachIteration): haltRequested -> btHaltRequested.
  10390. * src/ConsoleDownloadEngine.h
  10391. (initStatistics): Added virtual.
  10392. (calculateStatistics): Added virtual.
  10393. (onEndOfRun): Added virtual.
  10394. (afterEachIteration): Added virtual.
  10395. * src/ConsoleDownloadEngine.cc
  10396. (haltRequested): New variable.
  10397. (afterEachIteration): New function.
  10398. * src/main.cc
  10399. (requestInfo): Removed.
  10400. * src/SegmentMan.cc
  10401. (findSlowerSegmentEntry): Refactored.
  10402. * Release 0.9.0
  10403. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10404. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  10405. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  10406. * src/TorrentMan.h: Removed.
  10407. * src/TorrentMan.cc: Removed.
  10408. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  10409. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  10410. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  10411. * src/PeerAbstractCommand.cc: Use btRuntime.
  10412. * src/BtContextAwareCommand.h: New class.
  10413. * src/FileEntry.h: Added accessor methods for following variables.
  10414. (path): Made private.
  10415. (length): Made private.
  10416. (offset): Made private.
  10417. (extracted): Made private.
  10418. (requested): Made private.
  10419. (FileEntries): New definition.
  10420. (FileEntryHandle): New definition.
  10421. * src/FileEntry.cc: New file.
  10422. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  10423. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  10424. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  10425. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  10426. * src/PieceStorage.h: New file.
  10427. * src/PeerInteractionCommand.h: Use btContext.
  10428. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  10429. btRuntime.
  10430. * src/DefaultBtProgressInfoFile.h: New file.
  10431. * src/DefaultBtProgressInfoFile.cc: New file.
  10432. * src/File.cc
  10433. (Util.h): New include.
  10434. (mkdirs): New function.
  10435. * src/MultiDiskAdaptor.h
  10436. (mkdir): New function.
  10437. * src/PeerListProcessor.h
  10438. (Peers): Removed.
  10439. * src/PeerInteraction.h
  10440. (torrentMan): Removed.
  10441. (btContext): New variable.
  10442. (peerStorage): New variable.
  10443. (pieceStorage): New variable.
  10444. (btAnnounce): New variable.
  10445. (getTorrentMan): Removed.
  10446. (getBtContext): New function.
  10447. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  10448. btAnnounce.
  10449. * src/HandshakeMessage.h
  10450. (TorrentMan.h): Removed.
  10451. * src/HandshakeMessage.cc: Use btContext.
  10452. * src/DefaultBtAnnounce.cc: New file.
  10453. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  10454. * src/DefaultPieceStorage.cc: New file.
  10455. * src/DefaultBtContext.h: New file.
  10456. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  10457. Use the accessor methods of FileEntry.
  10458. * src/CookieBox.cc: Updated to use Util::slice().
  10459. * src/PieceMessage.cc: Use btContext, pieceStorage.
  10460. * src/common.h (SharedHandle.h): New include.
  10461. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  10462. pieceStorage.
  10463. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  10464. * src/DiskAdaptor.h
  10465. (topDir): Removed.
  10466. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  10467. (setTopDir): Removed.
  10468. (getTopDir): Removed.
  10469. * src/BtContext.h: New file.
  10470. * src/DefaultPeerStorage.h: New file.
  10471. * src/PieceMessage.h (TorrentMan.h): Removed.
  10472. * src/RequestMessage.h (TorrentMan.h): Removed.
  10473. * src/TorrentDownloadEngine.h
  10474. (uploadLength): New variable.
  10475. (btContext): New variable.
  10476. (btRuntime): New variable.
  10477. (pieceStorage): New variable.
  10478. (peerStorage): New variable.
  10479. (btAnnounce): New variable.
  10480. (btProgressInfoFile): New variable.
  10481. (torrentMan): Removed.
  10482. (setBtContext): New function.
  10483. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  10484. peerStorage, btAnnounce, btProgressInfoFile.
  10485. * src/Piece.h
  10486. (toString): New function.
  10487. (Pieces): New type definition.
  10488. * src/Peer.h
  10489. (active): New variable.
  10490. (Peer): Added active.
  10491. (activate): Set active to true.
  10492. (deactivate): Set active to false.
  10493. (isActive): New function.
  10494. (Peers): New type definition.
  10495. * src/DirectDiskAdaptor.cc
  10496. (getFilePath): Use the accessor methods of FileEntry.
  10497. * src/TorrentConsoleDownloadEngine.h
  10498. (afterEachIteration): New function.
  10499. * src/TorrentConsoleDownloadEngine.cc
  10500. (haltRequested): New variable.
  10501. (sendStatistics): Use pieceStorage, btRuntime.
  10502. (afterEachIteration): New function.
  10503. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  10504. * src/Directry.h
  10505. (Directory): New function.
  10506. (DirectoryHandle): New type definition.
  10507. * src/BtProgressInfoFile.h: New file.
  10508. * src/RequestMessage.cc: Use pieceStorage.
  10509. * src/BtRuntime.h: New file.
  10510. * src/DefaultBtContext.cc: New file.
  10511. * src/BitfieldMan.h
  10512. (getCompletedLength): New function(private).
  10513. (getCompletedLength): New function.
  10514. (getFilteredCompletedLength): New function.
  10515. * src/BitfieldMan.h
  10516. (getCompletedLength): New function(private).
  10517. (getCompletedLength): New function.
  10518. (getFilteredCompletedLength): New function.
  10519. * src/MultiDiskAdaptor.cc
  10520. (mkdir): New function.
  10521. (openFile): Call mkdir().
  10522. (initAndOpenFile): Call mkdir().
  10523. * src/CancelMessage.h
  10524. (TorrentMan.h): Removed.
  10525. * src/RejectMessage.h
  10526. (TorrentMan.h): Removed.
  10527. * src/DownloadEngineFactory.cc
  10528. (DefaultPieceStorage.h): New include.
  10529. (DefaultPeerStorage.h): New include.
  10530. (DefaultBtAnnounce.h): New include.
  10531. (DefaultBtProgressInfoFile.h): New include.
  10532. (newTorrentConsoleEngine): Rewritten.
  10533. * src/ShareRatioSeedCriteria.h
  10534. (torrentMan): Removed.
  10535. (btContext): New variable.
  10536. (peerStorage): New variable.
  10537. (btRuntime): New variable.
  10538. (evaluate): Use btContext, btRuntime, peerStorage.
  10539. * src/AnnounceTier.h: New file.
  10540. * src/BtAnnounce.h: New file.
  10541. * src/BtRegistry.h: New file.
  10542. * src/PeerInitiateConnectionCommand.h: Added btContext.
  10543. * src/PeerConnection.h (TorrentMan.h): Removed.
  10544. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  10545. * src/Util.h
  10546. (slice): Added an argument.
  10547. * src/Util.cc
  10548. (slice): Added an argument to control whether trim is made or not.
  10549. * src/PeerStorage.h: New file.
  10550. * src/BtRegistry.cc: New file.
  10551. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  10552. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  10553. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  10554. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  10555. * src/TorrentRequestInfo.h
  10556. (e): Removed.
  10557. (showFileEntry): Added an argument.
  10558. (getDownloadEngine): Return 0.
  10559. * src/DefaultBtAnnounce.h: New file.
  10560. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  10561. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  10562. * src/PeerMessageFactory.h
  10563. (btContext): New variable.
  10564. (pieceStorage): New variable.
  10565. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  10566. btAnnounce.
  10567. * src/DiskAdaptor.cc
  10568. (DiskAdaptor): Removed topDir.
  10569. (~DiskAdaptor): Removed topDir.
  10570. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  10571. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  10572. * src/File.h (mkdirs): New function.
  10573. * src/DefaultPeerStorage): New file.
  10574. * src/DownloadEngineFactory.h
  10575. (newTorrentConsoleEngine): Use btContext.
  10576. * src/BtContextAwareCommand.cc: New file.
  10577. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  10578. * src/PeerMessage.h
  10579. (btContext): New variable.
  10580. (peerStorage): New variable.
  10581. (pieceStorage): New variable.
  10582. (setBtContext): New function.
  10583. * src/Directry.cc
  10584. (Directory): New function.
  10585. (createDir): Do nothing if name.size() == 0.
  10586. * src/AnnounceList.h
  10587. (AnnounceTier): Removed.
  10588. (AnnounceTiers): Removed.
  10589. * src/DefaultPieceStorage.h: New file.
  10590. * src/Piece.cc (toString): New function.
  10591. To fix typo:
  10592. * src/main.cc (showVersion): Fixed typo.
  10593. To fix compile warning:
  10594. * src/DelegatingPeerListProcessor.cc
  10595. (canHandle): Added "return false".
  10596. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10597. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  10598. make the process of announce request testable.
  10599. * src/TrackerWatcherCommand.h
  10600. (TimeA2.h): Removed.
  10601. (interval): Removed.
  10602. (checkPoint): Removed.
  10603. (createRequestCommand): Added an argument 'url'.
  10604. (TrackerWatherCommand): Removed interval.
  10605. (createCommand): New function.
  10606. * src/DownloadEngineFactory.cc
  10607. (newTorrentConsoleEngine): Updated according to the changes in
  10608. TrackerWatherCommand.
  10609. * src/TorrentMan.cc
  10610. (DelegatingPeerListProcessor.h): New includes.
  10611. (TorrentMan): Added the initialization of announceInterval.
  10612. (isStoppedAnnounceReady): New function.
  10613. (isCompletedAnnounceReady): New function.
  10614. (isDefaultAnnounceReady): New function.
  10615. (isAnnounceReady): New function.
  10616. (getAnnounceUrl): New function.
  10617. (announceStart): New function.
  10618. (announceFailure): New function.
  10619. (announceSuccess): New function.
  10620. (isAllAnnounceFailed): New function.
  10621. (resetAnnounce): New function.
  10622. (processAnnounceResponse): New function.
  10623. (needMorePeerConnection): New function.
  10624. (noMoreAnnounce): New function.
  10625. * src/TrackerUpdateCommand.h
  10626. (getTrackerResponse): int->size_t
  10627. * src/TorrentMan.h
  10628. (isStoppedAnnounceReady): New function.
  10629. (isCompletedAnnounceReady): New function.
  10630. (isDefaultAnnounceReady): New function.
  10631. (announceInterval): New variable.
  10632. (isAnnounceReady): New function.
  10633. (getAnnounceUrl): New function.
  10634. (announceStart): New function.
  10635. (announceFailure): New function.
  10636. (announceSuccess): New function.
  10637. (isAllAnnounceFailed): New function.
  10638. (resetAnnounce): New function.
  10639. (processAnnounceResponse): New function.
  10640. (needMorePeerConnection): New function.
  10641. (noMoreAnnounce): New function.
  10642. * src/TrackerWatcherCommand.cc
  10643. (TrackerWatherCommand): Removed interval and checkPoint.
  10644. (execute): Rewritten.
  10645. (createCommand): New function.
  10646. (createRequestCommand): Rewritten.
  10647. * src/TrackerUpdateCommand.cc
  10648. (MetaFileUtil.h): Removed.
  10649. (DelegatingPeerListProcessor.h): Removed.
  10650. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  10651. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10652. Request -> RequestHandle:
  10653. * src/HttpResponseCommand.h: Request->RequestHandle
  10654. * src/AbstractCommand.cc: Request->RequestHandle
  10655. * src/HttpDownloadCommand.cc: Request->RequestHandle
  10656. * src/HttpRequestCommand.cc: Request->RequestHandle
  10657. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  10658. * src/AbstractCommand.h: Request->RequestHandle
  10659. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  10660. * src/HttpResponseCommand.cc: Request->RequestHandle
  10661. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  10662. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  10663. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  10664. * src/HttpConnection.h: Request->RequestHandle
  10665. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  10666. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  10667. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10668. * src/DownloadCommand.h: Request->RequestHandle
  10669. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  10670. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  10671. * src/HttpRequestCommand.h: Request->RequestHandle
  10672. * src/FtpNegotiateCommand.h: Request->RequestHandle
  10673. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10674. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  10675. * src/HttpDownloadCommand.h: Request->RequestHandle
  10676. * src/FtpConnection.cc: Request->RequestHandle
  10677. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  10678. * src/UrlRequestInfo.cc: Request->RequestHandle
  10679. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  10680. * src/HttpConnection.h: Request->RequestHandle
  10681. * src/DownloadCommand.cc: Request->RequestHandle
  10682. * src/FtpConnection.h: Request->RequestHandle
  10683. * src/FtpDowndloadCommand.h: Request->RequestHandle
  10684. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  10685. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  10686. * src/Request.h
  10687. (SharedHandle.h): New include.
  10688. (RequestHandle): New type definition.
  10689. (Requests): Redefined.
  10690. To add MULTITRACKER support:
  10691. * src/TrackerWatcherCommand.h
  10692. (createRequestCommand): New function.
  10693. * src/DownloadEngineFactory.cc
  10694. (newTorrentConsoleEngine): Removed req.
  10695. * src/prefs.h
  10696. (PREF_TRACKER_MAX_TRIES): New definition.
  10697. * src/TorrentMan.cc
  10698. (TorrentMan): Removed req. Added trackerNumTry.
  10699. (~TorrentMan): Removed req.
  10700. (setupInternal1): Added announceList.
  10701. * src/TorrentRequestInfo.cc
  10702. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  10703. announces is now specified by PREF_TRACKER_MAX_TRIES.
  10704. * src/main.cc
  10705. (main): Added PREF_TRACKER_MAX_TRIES.
  10706. * src/TorrentMan.h
  10707. (Request.h): Removed.
  10708. (AnnounceList.h): New include.
  10709. (trackerNumTry): New variable.
  10710. (req): Removed.
  10711. (announceList): New variable.
  10712. * src/TrackerWatcherCommand.cc
  10713. (execute): Rewritten.
  10714. (createRequestCommand): New function.
  10715. * src/TrackerUpdateCommand.cc
  10716. (execute): Updated with the use of AnnounceList.
  10717. * src/AnnounceList.cc: New class.
  10718. * src/AnnounceList.h: New class.
  10719. To fix typo:
  10720. * src/prefs.h
  10721. (PREF_MAX_TRIES): max_try->max_tries
  10722. To not to decode "+" as space in URL decode:
  10723. * src/Util.cc
  10724. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  10725. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10726. To add timeout to async name resolution:
  10727. * src/AbstractCommand.h
  10728. (nameResolveFinished): New function. This is not elegant way. It needs
  10729. to be more refined.
  10730. (nameResolverCheck): New variable.
  10731. * src/AbstractCommand.cc
  10732. (AbstractCommand): Added nameResolverCheck.
  10733. (execute): Added the check whether the name resolution has finished.
  10734. (setNameResolverCheck): Set nameResolverCheck to true.
  10735. (disableNameResolverCheck): Set nameResolverCheck to false.
  10736. (nameResolverFinished): New function.
  10737. * src/FtpInitiateConnectionCommand.h
  10738. (nameResolverFinished): New function.
  10739. * src/FtpInitiateConnectionCommand.cc
  10740. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10741. * src/HttpInitiateConnectionCommand.h
  10742. (nameResolverFinished): New function.
  10743. * src/HttpInitiateConnectionCommand.cc
  10744. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10745. * src/prefs.h
  10746. (PREF_DNS_TIMEOUT): New definition.
  10747. * src/main.cc
  10748. (main): Added PREF_DNS_TIMEOUT.
  10749. To add the support for a non-compact response from a tracker:
  10750. * src/PeerListProcessor.h: New class.
  10751. * src/DefaultPeerListProcessor.h: New class.
  10752. * src/DefaultPeerListProcessor.cc: New class.
  10753. * src/CompactPeerListProcessor.h: New class.
  10754. * src/CompactPeerListProcessor.cc: New class.
  10755. * src/DelegatingPeerListProcessor.h: New class.
  10756. * src/DelegatingPeerListProcessor.cc: New class.
  10757. * src/TorrentMan.cc
  10758. (addPeer): New function(overload).
  10759. (addPeer): Delete unused peers only when new peer is added.
  10760. * src/TorrentMan.h
  10761. (PeerListProcessor.h): Included.
  10762. (Peers): Removed.
  10763. (addPeer): New function(overload).
  10764. * src/TrackerUpdateCommand.cc
  10765. (netinet/in.h): Removed.
  10766. (DelegatingPeerListProcessor.h): Included.
  10767. (execute): Updated to use DelegatingPeerListProcessor.
  10768. To fix the memory leak in TorrentMan::peers:
  10769. * src/PeerAbstractCommand.cc
  10770. (onAbort): Added peer->resetStatus().
  10771. * src/Peer.h
  10772. (resetStatus): Made public.
  10773. To improve the precision of the speed calculation:
  10774. * src/SpeedCalc.h
  10775. (nextInterval): New variable.
  10776. * src/SpeedCalc.cc
  10777. (reset): Added nextInterval.
  10778. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  10779. (changeSw): Set nextInterval to 15 seconds relative to the current
  10780. instant time.
  10781. * src/main.cc
  10782. (showVersion): Updated.
  10783. (showUsage): Updated.
  10784. * Release 0.8.1
  10785. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10786. * src/main.cc
  10787. (showUsage): Commented out --min-segment-size option.
  10788. (main): Commented out --min-segment-size option.
  10789. * Release 0.8.0
  10790. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10791. * src/*.{h,cc}:
  10792. Added an exception to the license which allows linking with OpenSSL.
  10793. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10794. * src/AbstractCommand.cc
  10795. (execute): Check whether the download has finished before checking
  10796. socket status.
  10797. Return true if peerStat->getStatus() == REQUEST_IDLE.
  10798. Do not exit even if no segment is available.
  10799. * src/prefs.h
  10800. (PREF_STARTUP_IDLE_TIME): New definition.
  10801. * src/PeerInteractionCommand.cc
  10802. (executeInternal): Removed max speed limit. Because it performs bad.
  10803. (receiveMessages): Added max speed limit. This was better than above,
  10804. but still a little bit to be desired. Sometimes the download speed
  10805. became much faster than I specified.
  10806. * src/SpeedCalc.h
  10807. (start): New variable.
  10808. (accumulatedLength): New variable.
  10809. (getAvgSpeed): New function.
  10810. * src/SpeedCalc.cc
  10811. (reset): Added start, accumulatedLength.
  10812. (update): Added calculation of an average speed.
  10813. (getAvgSpeed): New function.
  10814. * src/DownloadCommand.h
  10815. (sw): Removed.
  10816. * src/main.cc
  10817. (main): Added PREF_STARTUP_IDLE_TIME.
  10818. * src/PeerStat.h
  10819. (STATUS): Added REQUEST_IDLE.
  10820. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  10821. (getAvgDownloadSpeed): New function
  10822. (requestIdle): New function.
  10823. * src/SegmentMan.h
  10824. (SegmentEntryHandle): New type definition.
  10825. (SegmentEntries): Now holds SegmentEntryHandle.
  10826. (findSlowerSegmentEntry): New funtion.
  10827. * src/SegmentMan.cc
  10828. (save): Updated according to the changes in SegmentEntries.
  10829. (read): Updated according to the changes in SegmentEntries.
  10830. (FindSegmentEntryByIndex): Updated according to the changes in
  10831. SegmentEntries.
  10832. (FindSegmentEntryByCuid): Updated according to the changes in
  10833. SegmentEntries.
  10834. (checkoutSegment): Updated according to the changes in SegmentEntries.
  10835. (onNullBitfield): Updated according to the changes in SegmentEntries.
  10836. Renamed uitr as itr.
  10837. (findSlowerSegmentEntry): New function.
  10838. (getSegment): Updated according to the changes in SegmentEntries.
  10839. Added the feature that cancels the segment with slow server and fast
  10840. one takes it over.
  10841. (cancelSegment): Updated according to the changes in SegmentEntries.
  10842. (getDownloadLength): Updated according to the changes in
  10843. SegmentEntries.
  10844. (init): Assigned 0 to bitfield after deleting it.
  10845. * src/DownloadCommand.cc
  10846. (STARTUP_IDLE_TIME): Removed.
  10847. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  10848. * src/PeerChokeCommand.cc
  10849. (optUnchokingPeer): Updated according to the changes in Peer.
  10850. (ResetDelta): Removed.
  10851. (UploadFaster): Updated according to the changes in Peer.
  10852. (DownloadFaster): Updated according to the changes in Peer.
  10853. (execute): I clarify the meaning of "upload" and "download" here.
  10854. "upload" means the transfer from localhost to remote host.
  10855. "download" means the transfer from remote host to localhost.
  10856. Based on this rule, I swapped orderByUploadRate and
  10857. orderByDownloadRate.
  10858. * src/PeerInteractionCommand.cc
  10859. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  10860. (executeInternal): Removed the argument of
  10861. peerInteraction->sendMessages().
  10862. (receiveMessages): Rewritten download speed limit.
  10863. (sendKeepAlive): Removed peerInteraction->sendMessages().
  10864. * src/HttpResponseCommand.cc
  10865. (handleDefaultEncoding): If file size is unknown in torrent request,
  10866. do not call segmentMan->initBitfield() here.
  10867. Disabled persistent connection feature in torrent request.
  10868. * src/UrlRequestInfo.h
  10869. (UrlRequestInfo): Removed const qualifier from option.
  10870. * src/TorrentMan.h
  10871. (TransferStat): New class.
  10872. (deltaDownloadLength): Removed.
  10873. (deltaUploadLength): Removed.
  10874. (addDeltaDownloadLength): Removed.
  10875. (getDeltaDownloadLength): Removed.
  10876. (resetDeltaDownloadLength): Removed.
  10877. (addDeltaUploadLength): Removed.
  10878. (getDeltaUploadLength): Removed.
  10879. (resetDeltaUploadLength): Removed.
  10880. (addActivePeer): Added peer->activate().
  10881. (deleteActivePeer): Added peer->deactivate().
  10882. (calculateStat): New function.
  10883. * src/TorrentMan.cc
  10884. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  10885. (calculateStat): New function.
  10886. * src/PeerInteraction.h
  10887. (uploadLimit): Removed.
  10888. (option): New variable.
  10889. (setUploadLimit): Removed.
  10890. (getUploadSpeed): Removed.
  10891. (sendMessages): Removed the argument "currentUploadSpeed".
  10892. * src/PeerInteraction.cc
  10893. (prefs.h): Included.
  10894. (PeerInteraction): Removed uploadLimit. Added option.
  10895. (sendMessages): Rewritten upload speed limit.
  10896. (sendHandshake): Removed the argument from sendMessages().
  10897. (sendBitfield): Removed the argument from sendMessages().
  10898. * src/PeerAbstractCommand.cc
  10899. (execute): Commented out the portion of upload limit.
  10900. (onAbort): Removed peer->resetStatus().
  10901. * src/TorrentRequestInfo.cc
  10902. (timeoutSpecified): Declared extern.
  10903. (execute): Set timeout to 180 if timeout is not specified by.
  10904. command-line.
  10905. * src/PieceMessage.cc
  10906. (receivedAction): Added peer->updateDownloadLength().
  10907. Removed peer->addPeerUpload().
  10908. Removed torrentMan->addDeltaDownloadLength().
  10909. (send): Added peer->updateUploadLength().
  10910. Removed peer->addPeerDownload().
  10911. Removed torrentMan->addDeltaUploadLength().
  10912. * src/main.cc
  10913. (timeoutSpecified): New variable.
  10914. (main): Set timeoutSpecified to false.
  10915. If the command-line option "--upload-limit" is specified, then
  10916. timeoutSpecified is set to true. This option will remain in the next
  10917. release, but be deprecated in the future release.
  10918. * src/TorrentRequestInfo.h
  10919. (TorrentRequestInfo): Removed const qualifier from op.
  10920. * src/PeerStat.h
  10921. (uploadSpeed): New variable.
  10922. (PeerStat): Added default value to cuid.
  10923. (calculateUploadSpeed): New function.
  10924. (updateUploadLength): New function.
  10925. (getMaxUploadSpeed): New function.
  10926. (getAvgUploadSpeed): New function.
  10927. (reset): Added uploadSpeed. Set status to IDLE.
  10928. * src/TorrentDownloadEngine.h
  10929. (cp): Declared as Time.
  10930. (sessionDownloadLengthArray): Removed.
  10931. (sessionUploadLengthArray): Removed.
  10932. (currentCp): Removed.
  10933. (lastCalcStat): New variable
  10934. (lastElapsed): Removed.
  10935. (sessionDownloadLength): Removed.
  10936. (calculateStat): New function.
  10937. * src/TorrentDownloadEngine.cc
  10938. (initStatistics): Removed lastElapsed, cp[],
  10939. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  10940. currentCp, sessionDownloadLength.
  10941. Added cp.reset() and lastCalcStat.reset().
  10942. (calculateSpeed): Changed the name of the argument.
  10943. (calculateStatistics): Rewritten.
  10944. (calculateStat): New function.
  10945. * src/Peer.h
  10946. (PeerStat.h): Included.
  10947. (peerUpload): Removed.
  10948. (peerDownload): Removed.
  10949. (peerStat): New variable.
  10950. (sessionUploadLength): New variable.
  10951. (sessionDownloadLength): New variable.
  10952. (deltaUpload): Removed.
  10953. (deltaDownload): Removed.
  10954. (resetStatus): Made private.
  10955. (Peer): Added sessionUploadLength, sessionDownloadLength.
  10956. Removed peerUpload, peerDownload.
  10957. (updateUploadLength): New function.
  10958. (addDeltaUpload): Removed.
  10959. (updateDownloadLength): New function.
  10960. (resetDeltaUpload): Removed.
  10961. (getDeltaUpload): Removed.
  10962. (addDeltaDownload): Removed.
  10963. (calculateUploadSpeed): New function.
  10964. (resetDeltaDownload): Removed.
  10965. (getDeltaDownload): Removed.
  10966. (calculateDownloadSpeed): New function.
  10967. (getSessionUploadLength): New function.
  10968. (getSessionDownloadLength): New function.
  10969. (activate): New function.
  10970. (deactivate): New function.
  10971. (addPeerUpload): Removed.
  10972. (setPeerUpload): Removed.
  10973. (getPeerUpload): Removed.
  10974. (addPeerDownload): Removed.
  10975. (setPeerDownload): Removed.
  10976. (getPeerDownload): Removed.
  10977. * src/Peer.cc
  10978. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  10979. * src/MetalinkRequestInfo.h
  10980. (MetalinkRequestInfo): Removed const qualifier from op.
  10981. * src/RequestInfo.h
  10982. (op): Removed const qualifier.
  10983. (RequestInfo): Removed const qualifier from op.
  10984. * src/prefs.h
  10985. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  10986. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  10987. * src/PeerInteractionCommand.cc
  10988. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  10989. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  10990. * src/PeerInteraction.cc
  10991. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  10992. * src/main.cc
  10993. (showUsage): Updated the description of "--lowest-speed-limit" option.
  10994. Added the description of "--max-download-limit" option.
  10995. Removed the description of "--upload-limit" option.
  10996. Added the description of "--max-upload-limit" option.
  10997. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  10998. Added "--max-download-limit" option and "--max-upload-limit" option.
  10999. Added the warning message if "--upload-limit" option is used.
  11000. * src/DownloadCommand.cc
  11001. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  11002. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11003. To rewrite segment download mechanism for HTTP/FTP download.
  11004. Use BitfieldMan to manage segment download.
  11005. * src/HttpResponseCommand.h
  11006. (executeInternal): Pass the reference of segment.
  11007. * src/AbstractCommand.cc
  11008. (prepareForRetry): Call segmentMan->cancelSegment here.
  11009. (onAbort): Call segmentMan->cancelSegment here.
  11010. * src/HttpDownloadCommand.cc
  11011. (prepareForNextSegment): New function.
  11012. * src/DownloadEngineFactory.cc
  11013. (newConsoleEngine): Removed splitter.
  11014. (newTorrentConsoleEngine): Removed splitter.
  11015. * src/Request.h
  11016. (segment): Renamed from seg.
  11017. * src/FtpInitiateConnectionCommand.h
  11018. (executeInternal): Pass the reference of segment.
  11019. * src/AbstractCommand.h
  11020. (executeInternal): Pass the reference of segment.
  11021. * src/pref.h
  11022. (PREF_SEGMENT_SIZE): New definition.
  11023. * src/HttpProxyRequestCommand.h
  11024. (executeInternal): Pass the reference of segment.
  11025. * src/HttpResponseCommand.cc
  11026. (checkResponse): Allowed status 206 when a request range starts 0.
  11027. (handleDefaultEncoding): Rewritten the code related to Segment.
  11028. (handleOtherEncoding): Rewritten the code related to Segment.
  11029. * src/SegmentMan.h
  11030. (SegmentEntry): New class.
  11031. (SegmentEntries): New type definition.
  11032. (bitfield): New variable.
  11033. (usedSegmentEntries): New variable.
  11034. (onNullBitfield): New function.
  11035. (checkoutSegment): New function.
  11036. (segments): Removed.
  11037. (splitter): Removed.
  11038. (unregisterId): Removed.
  11039. (getSegment): New function(overload)
  11040. (getDownloadedSize): Removed.
  11041. (cancelSegment): New function.
  11042. (completeSegment): New function.
  11043. (initBitfield): New function.
  11044. (hasSegment): New function.
  11045. (getDownloadLength): New function.
  11046. * src/BitfieldMan.h
  11047. (getStartIndex): New function.
  11048. (getEndIndex): New function.
  11049. (getMissingUnusedIndex): New function(overload).
  11050. (getSparseMissingUnusedIndex): New function.
  11051. * src/BitfieldMan.cc
  11052. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  11053. (getMissingUnusedIndex): New function(overload).
  11054. (Range): New class.
  11055. (getStartIndex): New function.
  11056. (getEndIndex): New function.
  11057. (getSparseMissingUnusedIndex): New function.
  11058. (isBitSetInternal): Return false if the given index is less than 0.
  11059. * src/HttpInitiateConnectionCommand.h
  11060. (executeInternal): Pass the reference of segment.
  11061. * src/FtpNegotiateCommand.h
  11062. (executeInternal): Pass the reference of segment.
  11063. * src/FtpNegotiateCommand.cc
  11064. (recvSize): Initialize bitfield here.
  11065. * src/FtpTunnelResponseCommand.h
  11066. (executeInternal): Pass the reference of segment.
  11067. * src/HttpConnection.cc
  11068. (createRequest): Rewritten range header processing.
  11069. * src/DownloadCommand.h
  11070. (executeInternal): Pass the reference of segment.
  11071. (prepareForRetry): Removed.
  11072. (prepareForNextSegment): Added an argument segment. Made it a virtual
  11073. function.
  11074. * src/main.cc
  11075. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  11076. * src/SegmentMan.cc
  11077. (SegmentMan): Added bitfield. Removed splitter.
  11078. (~SegmentMan): Added bitfield. Removed splitter.
  11079. (unregisterId): Removed.
  11080. (getSegment): Rewritten.
  11081. (updateSegment): Rewritten.
  11082. (save): Rewritten.
  11083. (read): Rewritten.
  11084. (finished): Rewritten.
  11085. (getDownloadedSize): Removed.
  11086. (initBitfield): New function.
  11087. (FindSegmentEntryByIndex): New function object.
  11088. (FindSegmentEntryByCuid): New function object.
  11089. (checkoutSegment): New function.
  11090. (onNullBitfield): New function.
  11091. (getSegment): New function(overload).
  11092. (CancelSegment): New function object.
  11093. (cancelSegment): New function.
  11094. (completeSegment): New function.
  11095. (hasSegment): New function.
  11096. (getDownloadLength): New function.
  11097. * src/FtpInitiateConnectionCommand.cc
  11098. (executeInternal): Load .aria2 file after hostname resolution finishes.
  11099. * src/Segment.h: Rewritten.
  11100. * src/Segment.cc (operator<<): New function.
  11101. * src/HttpDownloadCommand.h
  11102. (prepareForNextSegment): New function.
  11103. * src/Request.cc
  11104. (resetUrl): Made segment null.
  11105. * src/DownloadEngine.cc
  11106. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  11107. * src/HttpProxyRequestCommand.h
  11108. (executeInternal): Pass the reference of segment.
  11109. * src/DownloadCommand.cc
  11110. (executeInternal): Rewritten the code related to Segment.
  11111. (prepareForRetry): Removed.
  11112. (prepareForNextSegment): Rewritten.
  11113. * src/FtpTunnelResponseCommand.h
  11114. (executeInternal): Pass the reference of segment.
  11115. To add HTTP 1.1 persistent connection support(experimental)
  11116. * src/HttpRequestCommand.cc
  11117. (executeInternal): Disable keep alive if it is disabled by
  11118. configuration.
  11119. * src/Request.h
  11120. (keepAlive): New variable.
  11121. (isKeepAlive): New function.
  11122. (setKeepAlive): New function.
  11123. * src/pref.h
  11124. (PREF_HTTP_KEEP_ALIVE): New definition.
  11125. * src/HttpResponseCommand.cc
  11126. (executeInternal): Check the remote server supports keep alive.
  11127. * src/HttpConnection.cc
  11128. (createRequest): Send "Connection: close" only if keep alive is
  11129. disabled.
  11130. * src/main.cc
  11131. (main):
  11132. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  11133. To add max download speed limit:
  11134. * src/pref.h
  11135. (PREF_MAX_SPEED_LIMIT): New definition.
  11136. * src/PeerInteractionCommand.cc
  11137. (executeInternal): Added max download speed limit. Not tested yet.
  11138. * src/SegmentMan.h
  11139. (PeerStats): New type definition.
  11140. (peerStats): New variable.
  11141. (registerPeerStat): New function.
  11142. (FindPeerStat): New function object.
  11143. (getPeerStat): New function.
  11144. (calculateDownloadSpeed): New function.
  11145. * src/SpeedCalc.h: New class.
  11146. * src/SpeedCalc.cc: New class.
  11147. * src/main.cc
  11148. (main):
  11149. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  11150. download speed is not restricted).
  11151. * src/PeerStat.h: New class.
  11152. * src/SegmentMan.cc
  11153. (registerPeerStat): New function.
  11154. (calculateDownloadSpeed): New function.
  11155. * src/DownloadCommand.cc
  11156. (STARTUP_IDLE_TIME): New definition.
  11157. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  11158. downloadStart.
  11159. (~DownloadCommand): Call peerStat->downloadStop.
  11160. (executeInternal): Added download speed limitter. Rewritten lowest
  11161. speed limitter.
  11162. * src/HttpConnection.cc
  11163. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  11164. * src/AbstractCommand.cc
  11165. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  11166. Added hostname to the error message.
  11167. * src/ConsoleDownloadEngine.cc
  11168. (calculateStatistics): Initialize psize with dlSize.
  11169. * src/PieceMessage.cc
  11170. (receivedAction): Do not call peerInteraction->abortPiece here.
  11171. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  11172. * src/BitfieldMan.h
  11173. (clearAllUseBit): New function.
  11174. (setAllUseBit): New function.
  11175. * src/BitfieldMan.cc
  11176. (clearAllBit): Do not clear useBitfield here.
  11177. (clearAllUseBit): New function.
  11178. (setAllUseBit): New function.
  11179. * src/Piece.cc
  11180. (clearAllBlock): Call bitfield->clearAllUseBit().
  11181. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11182. To make filename URL-decoded:
  11183. * src/HttpResponseCommand.h: Updated doc.
  11184. * src/HttpResponseCommand.cc
  11185. (determinFilename): Made filename URL-decoded.
  11186. * src/FtpInitiateConnectionCommand.cc
  11187. (executeInternal): Made filename URL-decoded.
  11188. * src/Util.h (urldecode): New function.
  11189. * src/Util.cc (urldecode): New function.
  11190. To fix a bug that caused assertion failure in ares_strerror:
  11191. * src/NameResolver.cc (callback): Fixed the bug.
  11192. * Release 0.7.3
  11193. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11194. To add --seed-time and --seed-ratio command-line option:
  11195. * src/Option.h (getAsDouble): New function.
  11196. * src/Option.cc (getAsDouble): New function.
  11197. * src/SeedCheckCommand.h: New class.
  11198. * src/SeedCheckCommand.cc: New class.
  11199. * src/DownloadEngineFactory.cc
  11200. (SeedCheckCommand.h): Included.
  11201. (UnionSeedCriteria.h): Included.
  11202. (TimeSeedCriteria.h): Included.
  11203. (ShareRatioSeedCriteria.h): Included.
  11204. (newTorrentConsoleEngine): Added the processing of seed option.
  11205. * src/SeedCriteria.h: New class.
  11206. * src/ShareRatioSeedCriteria.h: New class.
  11207. * src/TimeSeedCriteria.h: New class.
  11208. * src/UnionSeedCriteria.h: New class.
  11209. * src/prefs.h
  11210. (PREF_SEED_TIME): New definition.
  11211. (PREF_SEED_RATIO): New definition.
  11212. * src/main.cc
  11213. (showUsage): Added --seed-time and --seed-ratio option.
  11214. (main): Added --seed-time and --seed-ratio option.
  11215. Made default log file name "/dev/null".
  11216. * src/SharedHandle.h
  11217. (SharedHandle): Copy constructor. Made it assignable from the
  11218. SharedHandle of the subclasses.
  11219. (operator=): Made it assignable from the SharedHandle of the
  11220. subclasses.
  11221. (getRefCount): New function.
  11222. To add notice log level and the switch to write log to stdout. This
  11223. switch is configurable per log level.
  11224. * src/Logger.h
  11225. (notice): New function.
  11226. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  11227. constant.
  11228. * src/LogFactory.cc
  11229. (getInstance): The use of NullLogger was removed. A log message with
  11230. notice log level was made written to stdout along with log file.
  11231. * src/NullLogger.h
  11232. (notice): New function.
  11233. * src/SimpleLogger.h
  11234. (writeHeader): Added the 'file' argument.
  11235. (writeLog): Added the 'file' argument.
  11236. (writeFile): New function.
  11237. (stdoutField): New variable.
  11238. (SimpleLogger): Removed the default constructor.
  11239. (SimpleLogger): Made the default value of logfile 0.
  11240. (debug): Added 'virtual' keyword.
  11241. (info): Added 'virtual' keyword.
  11242. (warn): Added 'virtual' keyword.
  11243. (error): Added 'virtual' keyword.
  11244. (notice): New function.
  11245. (setStdout): New function.
  11246. * src/SimpleLogger.cc
  11247. (WRITE_LOG): Replaced writeLog with writeFile.
  11248. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  11249. (SimpleLogger): Removed the default constructor.
  11250. (setStdout): New function.
  11251. (writeLog): Added the handling of NOTICE log level.
  11252. (writeFile): New function.
  11253. (notice): New function.
  11254. * src/TorrentMan.h: Updated doc.
  11255. * src/BitfieldMan.h: Updated doc.
  11256. * src/TrackerWatcherCommand.cc
  11257. (execute): Return true if error occurred in the request to the tracker
  11258. and halt is requested.
  11259. * src/TrackerUpdateCommand.cc
  11260. (execute): Return true if error occurred in the request to the tracker
  11261. and halt is requested.
  11262. To call onDownloadComplete from TorrentMan::completePiece(), not from
  11263. DownloadEngine:
  11264. * src/TorrentConsoleDownloadEngine.h
  11265. (onSelectiveDownloadingCompletes): Removed.
  11266. * src/TorrentConsoleDownloadEngine.cc
  11267. (onSelectiveDownloadingCompletes): Removed.
  11268. * src/TorrentDownloadEngine.h
  11269. (onEndOfRun): Added 'virtual' keyword.
  11270. (afterEachIteration): Removed.
  11271. (onSelectiveDownloadingCompletes): Removed.
  11272. * src/TorrentDownloadEngine.cc
  11273. (onEndOfRun): Removed filenameFixed.
  11274. (afterEachIteration): Removed.
  11275. * src/TorrentMan.cc
  11276. (completePiece): Call onDownloadComplete here.
  11277. (onDownloadComplete): Added 2 log messages.
  11278. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11279. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  11280. * src/NameResolver.h: Added the prototype declaration of callback().
  11281. To support c-ares library:
  11282. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11283. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11284. * src/FtpInitiateConnectionCommand.h:
  11285. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11286. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11287. * src/HttpInitiateConnectionCommand.h:
  11288. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11289. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  11290. Added thes upport of c-ares's ares_strerror(the idea came from patch
  11291. #1542285 by tizianomueller)
  11292. * src/HttpInitiateConnectionCommand.cc:
  11293. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11294. * src/FtpInitiateConnectionCommand.cc:
  11295. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11296. * src/DownloadEngine.h:
  11297. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11298. * src/DownloadEngine.cc:
  11299. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11300. To fix the bug that causes compilation failure with metalink-support
  11301. disabled(bug#1543587):
  11302. * src/main.cc: Fixed with the patch by tizianomueller.
  11303. * Release 0.7.2
  11304. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11305. * src/main.cc
  11306. (main): Added a message to inform users that aria2 is starting to
  11307. verify checksum.
  11308. * src/RequestInfo.cc
  11309. (printDownloadAbortMessage): Added a message to inform users that
  11310. transfer can be resumed.
  11311. * src/FeatureConfig.cc
  11312. (FEATURE_ASYNC_DNS): New definition.
  11313. (FeatureConfig): Added aysnc DNS entry.
  11314. To replace CommandUuid with Command* in SocketEntry and
  11315. NameResolverEntry:
  11316. * src/DownloadEngine.h
  11317. (CommandUuids): Removed.
  11318. (SocketEntry::commandUuid): Removed.
  11319. (SocketEntry::command): New variable.
  11320. (SocketEntry::SocketEntry): Updated.
  11321. (SocketEntry::operator==): Updated.
  11322. (NameResolverEntry::commandUuid): Removed.
  11323. (NameResolverEntry::command): New variable.
  11324. (NameResolverEntry::NameResolverEntry): Updated.
  11325. (NameResolverEntry::operator==): Updated.
  11326. (waitData): Changed the argument type.
  11327. (addSocketForReadCheck): Changed the argument type.
  11328. (deleteSocketForReadCheck): Changed the argument type.
  11329. (addSocketForWriteCheck): Changed the argument type.
  11330. (deleteSocketForWriteCheck): Changed the argument type.
  11331. (addNameResolverCheck): Changed the argument type.
  11332. (deleteNameResolverCheck): Changed the argument type.
  11333. * src/DownloadEngine.cc
  11334. (FindCommand): Removed.
  11335. (run): Removed activeUuid. Added activeCommands instead.
  11336. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  11337. (AccumulateActiveCommand): New function object.
  11338. (waitData): Use AccumulateActiveCommand.
  11339. (addSocketForReadCheck): Use Command instead of CommandUuid.
  11340. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  11341. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  11342. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  11343. (addNameResolverCheck): Use Command instead of CommandUuid.
  11344. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  11345. * src/AbstractCommand.cc
  11346. (disableReadCheckSocket): Updated according to the changes in
  11347. DownloadEngine.
  11348. (setReadCheckSocket): Updated according to the changes in
  11349. DownloadEngine.
  11350. (disableWriteCheckSocket): Updated according to the changes in
  11351. DownloadEngine.
  11352. (setWriteCheckSocket): Updated according to the changes in
  11353. DownloadEngine.
  11354. (setNameResolverCheck): Updated according to the changes in
  11355. DownloadEngine.
  11356. (disableNameResolverCheck): Updated according to the changes in
  11357. DownloadEngine.
  11358. * src/AbstractCommand.cc
  11359. (disableReadCheckSocket): Updated according to the changes in
  11360. DownloadEngine.
  11361. (setReadCheckSocket): Updated according to the changes in
  11362. DownloadEngine.
  11363. (disableWriteCheckSocket): Updated according to the changes in
  11364. DownloadEngine.
  11365. (setWriteCheckSocket): Updated according to the changes in
  11366. DownloadEngine.
  11367. * release 0.7.1
  11368. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11369. To handle the case where some BitTorrent tracker requires all letters
  11370. except for [A-Za-z0-9] is URL encoded.
  11371. * src/Util.h
  11372. (torrentUrlencode): New function.
  11373. * src/Util.cc
  11374. (ctype.h): Included.
  11375. (torrentUrlencode): New function.
  11376. * src/TrackerWatcherCommand.cc
  11377. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  11378. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11379. To add asynchronous DNS support(libares):
  11380. * src/AbstractCommand.h
  11381. (setNameResolverCheck): New function.
  11382. (disableNameResolverCheck): New function
  11383. (resolveHostname): New function.
  11384. * src/AbstractCommand.cc
  11385. (setNameResolverCheck): New function.
  11386. (disableNameResolverCheck): New function
  11387. (resolveHostname): New function.
  11388. * src/FtpInitiateConnectionCommand.h
  11389. (nameResolver): New function.
  11390. * src/FtpInitiateConnectionCommand.cc
  11391. (Util.h): Included.
  11392. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  11393. disableWriteCheckSocket.
  11394. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  11395. (executeInternal): Added async DNS support.
  11396. * src/HttpInitiateConnectionCommand.h
  11397. (nameResolver): New function.
  11398. * src/HttpInitiateConnectionCommand.cc
  11399. (DlRetryEx.h): Included.
  11400. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  11401. disableWriteCheckSocket.
  11402. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  11403. (executeInternal): Added async DNS support.
  11404. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  11405. by extern "C" declaration.
  11406. * src/NameResolver.cc: New class.
  11407. * src/Util.h:
  11408. (isNumberAndDotsNotation): New function
  11409. * src/Util.cc
  11410. (isNumberAndDotsNotation): New function.
  11411. * src/DownloadEngine.h
  11412. (NameResolver.h): Included.
  11413. (NameResolverEntry): New class.
  11414. (NameResolverEntries): New type definition.
  11415. (addNameResolverCheck): New function.
  11416. (deleteNameResolverCheck): New function.
  11417. * src/DownloadEngine.cc
  11418. (run): Initialize cp with 0.
  11419. (SetDescriptor::operator()): Added for NameResolverEntry.
  11420. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  11421. (waitData): Check nameResolver entries.
  11422. (updateFdSet): Update fds in nameResolver entries.
  11423. (addNameResolverCheck): New function.
  11424. (deleteNameResolverCheck): new function.
  11425. * src/PeerInteractionCommand.cc
  11426. (executeInternal): Fixed wrong socket handling.
  11427. * src/main.cc
  11428. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  11429. * src/Util.cc
  11430. (fileChecksum): Removed the call to ctx.digestReset().
  11431. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11432. * po/ru.po: Azamat sent me Russian translation.
  11433. * src/FtpNegotiateCommand.cc
  11434. (recvGreeting): Call disableWriteCheckSocket just after
  11435. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  11436. (recvRetr): Recognized status code 125 as a acceptable response code.
  11437. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  11438. case-insesitive filesystem(BUG#1531057).
  11439. * src/Time.h: Renamed as TimeA2.h.
  11440. * src/Time.cc: Renamed as TimeA2.cc.
  11441. * src/TimeA2.h: New class.
  11442. * src/TimeA2.cc: New class.
  11443. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  11444. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  11445. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  11446. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  11447. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  11448. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11449. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  11450. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  11451. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  11452. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11453. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  11454. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  11455. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  11456. * release 0.7.0
  11457. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11458. * src/PeerChokeCommand.h
  11459. (PeerChokeCommand): Rearranged the arguments.
  11460. * src/PeerChokeCommand.cc
  11461. (PeerChokeCommand): Rearranged the arguments.
  11462. * src/MetalinkEntry.h
  11463. (Checksum.h): Included.
  11464. (md5): Removed.
  11465. (sha1): Removed.
  11466. (checksum): New variable.
  11467. (operator=): Updated.
  11468. (check): Removed.
  11469. * src/prefs.h
  11470. (PREF_LOWEST_SPEED_LIMIT): New definition.
  11471. (PREF_FOLLOW_TORRENT): New definition.
  11472. (PREF_SELECT_FILE): New definition.
  11473. (PREF_FOLLOW_METALINK): New definition.
  11474. * src/MetalinkResource.h
  11475. (TYPE_HTTPS): Added to enum TYPE.
  11476. * src/TorrentMan.cc
  11477. (~TorrentMan): Rewritten.
  11478. * src/MultiDiskWriter.cc
  11479. (MultiDiskAdaptor): Updated according to the changes in
  11480. MessageDigestContext.
  11481. (~MultiDiskAdaptor): Updated according to the changes in
  11482. MessageDigestContext.
  11483. (hashUpdate): Updated according to the changes in MessageDigestContext.
  11484. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11485. * src/Util.h
  11486. (fileChecksum): Updated according to the changes in
  11487. MessageDigestContext.
  11488. * src/Util.cc
  11489. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11490. (fileChecksum): Updated according to the changes in
  11491. MessageDigestContext.
  11492. * src/messageDigest.h: Rewritten.
  11493. * src/MetalinkEntry.cc
  11494. (check): Removed.
  11495. (Supported): Updated.
  11496. (dropUnsupportedResource): Fixed a memory leak.
  11497. * src/ShaVisitor.cc
  11498. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  11499. (~ShaVisitor): Updated according to the changes in
  11500. MessageDigestContext.
  11501. (visit): Updated according to the changes in MessageDigestContext.
  11502. * src/main.cc
  11503. (main): Rewritten the portion of download loop. --lowest-speed-limit
  11504. command-line option added.
  11505. * src/DownloadEngine.h
  11506. (SocketEntry): New class.
  11507. (SocketEntries): New definition.
  11508. (PairFind): Removed.
  11509. (SockCmdMap): Removed.
  11510. * src/DownloadEngine.cc
  11511. (DownloadEngine): Rewritten.
  11512. (~DownloadEngine): Rewritten.
  11513. (run): Renamed activeCommandUuids as activeUuids.
  11514. (SetDescriptor): Rewritten.
  11515. (AccumulateActiveCommandUuid): Removed.
  11516. (AccumulateActiveUuid): New function object.
  11517. (waitData): Rewritten.
  11518. (updateFdSet): Rewritten.
  11519. (addSocket): Rewritten.
  11520. (deleteSocket): Rewritten.
  11521. (addSocketForReadCheck): Rewritten.
  11522. (deleteSocketForReadCheck): Rewritten.
  11523. (addSocketForWriteCheck): Rewritten.
  11524. (deleteSocketForWriteCheck): Rewritten.
  11525. * src/Xml2MetalinkProcessor.cc
  11526. (getEntry): Rewritten the portion of MetalinkEntry creation.
  11527. * src/DownloadCommand.cc
  11528. (executeInternal): Added the check routine for lowest speed limit.
  11529. * src/AbstractDiskWriter.cc
  11530. (AbstractDiskWriter): Updated according to the changes in
  11531. MessageDigestContext.
  11532. (~AbstractDiskWriter): Updated according to the changes in
  11533. MessageDigestContext.
  11534. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11535. * src/RequestInfo.h: New class.
  11536. * src/UrlRequestInfo.h: New class.
  11537. * src/UrlRequestInfo.cc: New class.
  11538. * src/TorrentRequestInfo.h: New class.
  11539. * src/TorrentRequestInfo.cc: New class.
  11540. * src/MetalinkRequestInfo.h: New class.
  11541. * src/MetalinkRequestInfo.cc: New class.
  11542. * src/Checksum.h: New class.
  11543. * src/DownloadEngineFactory.h: New class.
  11544. * src/DownloadEngineFactory.cc: New class.
  11545. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11546. * src/Option.h
  11547. (getAsBool): New function.
  11548. * src/Option.cc
  11549. (prefs.h): Included.
  11550. (defined): 0-length value is now recognized as undefined.
  11551. (getAsInt): Rewritten.
  11552. (getAsLLInt): Rewritten.
  11553. (getAsBool): New function.
  11554. * src/FeatureConfig.h: Rewritten.
  11555. * src/FeatureConfig.cc: Rewritten.
  11556. * src/prefs.h
  11557. (PREF_STDOUT_LOG): New definition.
  11558. (PREF_LOG): New definition.
  11559. (PREF_DIR): New definition.
  11560. (PREF_OUT): New definition.
  11561. (PREF_SPLIT): New definition.
  11562. (PREF_DAEMON): New definition.
  11563. (PREF_REFERER): New definition.
  11564. (PREF_TORRENT_FILE): New definition.
  11565. (PREF_LISTEN_PORT): New definition.
  11566. (PREF_METALINK_FILE): New definition.
  11567. (PREF_METALINK_VERSION): New definition.
  11568. (PREF_METALINK_LANGUAGE): New definition.
  11569. (PREF_METALINK_OS): New definition.
  11570. (PREF_METALINK_SERVERS): New definition.
  11571. * src/main.cc
  11572. (main): Following command-line parameters are now put into Option
  11573. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  11574. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  11575. metalinkLanguage, metalinkOs, metalinkServers
  11576. To fix the bug that aria2 can not handle http response header properly.
  11577. * src/HttpHeader.cc
  11578. (put): Made name lowercased.
  11579. (defined): Made name lowercased.
  11580. (getFirst): Made name lowercased.
  11581. (get): Made name lowercased.
  11582. (getFirstAsInt): Rewritten.
  11583. (getFirstAsLLInt): Rewritten.
  11584. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11585. * src/TorrentMan.h:
  11586. (advertisePiece): Updated doc.
  11587. (getAdvertisedPieceIndexes): Updated doc.
  11588. (removeAdvertisedPiece); New function.
  11589. * src/TorrentMan.cc
  11590. (FindElapsedHave): New function object.
  11591. (removeAdvertisedPiece): New function.
  11592. * src/HaveEraseCommand.h: New class.
  11593. * src/HaveEraseCommand.cc: New class.
  11594. * src/FeatureConfig.h: New class.
  11595. * src/FeatureConfig.cc: New class.
  11596. * src/Request.h
  11597. (defaultPorts): Removed.
  11598. * src/Request.cc
  11599. (FeatureConfig.h): Included.
  11600. (Request): Removed the statements related to defaultPorts.
  11601. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  11602. A default port number is now retrieved from FeatureConfig.
  11603. * src/main.cc
  11604. (HaveEraseCommand.h): Included.
  11605. (showVersion): Added the output of feature list.
  11606. (main): Added HaveEraseCommand to command queue in BitTorrent
  11607. downloading.
  11608. * src/PeerInteractionCommand.h
  11609. (chokeCheckPoint): Commented out.
  11610. (periodicExecPoint): New variable.
  11611. * src/PeerInteractionCommand.cc
  11612. (executeInternal): Following methods are now called in at least every
  11613. 0.5 seconds to reduce CPU usage:
  11614. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  11615. checkHave(), sendKeepAlive().
  11616. (checkLongTimePeerChoking): Commented out.
  11617. * src/BitfieldMan.h
  11618. (getNthBitIndex): Changed the method signature.
  11619. (getMissingIndexRandomly): Changed the method signature.
  11620. * src/BitfieldMan.cc
  11621. (getNthBitIndex): Rewritten
  11622. (getMissingIndexRandomly): Rewritten.
  11623. (hasMissingPiece): Rewritten.
  11624. (getMissingIndex): Refactored.
  11625. (getMissingUnusedIndex); Refactored.
  11626. (getMissingIndex): Refactored.
  11627. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11628. * src/PeerMessage.h
  11629. (Piece.h): Included.
  11630. (SharedHandle.h): Included.
  11631. (invalidate): New variable.
  11632. (uploading): New variable.
  11633. (isInvalidate): New function.
  11634. (isUploading): New function.
  11635. (onPush): New function.
  11636. (onChoked): New function.
  11637. (onCanceled): New function.
  11638. (onAbortPiece): New function.
  11639. (PeerMessageHandle): New type definition.
  11640. * src/PeerMessage.cc
  11641. (PeerMessage): Added the initialization for invalidate and uploading.
  11642. * src/CancelMessage.h
  11643. (CancelMessage): Rewritten.
  11644. * src/RejectMessage.h
  11645. (RejectMessage): Rewritten.
  11646. * src/Metalinker.h
  11647. (operator=): Defined.
  11648. * src/MetaEntry.h
  11649. (operator=): Defined.
  11650. * src/MetalinkResource.h
  11651. (operator=): Defined.
  11652. * src/AllowedFastMessage.h
  11653. (AllowedFastMessage): Rewritten.
  11654. * src/HandshakeMessage.h
  11655. (HandshakeMessage): New function(overload).
  11656. * src/HandshakeMessage.cc
  11657. (HandshakeMessage): Rewritten.
  11658. (init): New function.
  11659. * src/HaveMessage.h
  11660. (HaveMessage): Rewritten.
  11661. * src/Time.h
  11662. (operator=): Defined the function body here.
  11663. * src/Time.cc
  11664. (operator=): Removed.
  11665. * src/SocketCore.h
  11666. (operator==): Defined here.
  11667. (operator!=): Defined here.
  11668. (operator<): Defined here.
  11669. * src/SocketCore.cc
  11670. (operator==): Removed.
  11671. (operator<): Removed.
  11672. * src/BitfieldMan.h
  11673. (operator=): Defined the function body here.
  11674. * src/BitfieldMan.cc
  11675. (operator=): Removed.
  11676. * src/TorrentMan.h
  11677. (deleteErrorPeer): Removed.
  11678. (deleteUnusedPeer); New function.
  11679. * src/TorrentMan.cc
  11680. (addPeer): Call deleteUnusedPeer.
  11681. (deleteErrorPeer): Removed.
  11682. (deleteUnusedPeer): New function.
  11683. * src/PeerAbstractCommand.h
  11684. (setNoCheck): New function.
  11685. (noCheck): New variable.
  11686. * src/PeerAbstractCommand.cc
  11687. (PeerAbstractCommand): Added the initialization of noCheck.
  11688. (execute): Added a check for noCheck.
  11689. (setNoCheck): New function.
  11690. * src/Util.h
  11691. (stdio.h): Included.
  11692. * src/Util.cc
  11693. (unistd.h): Included.
  11694. * src/DefaultDiskWriter.cc
  11695. (unistd.h): Included.
  11696. * src/Peer.h
  11697. (operator==): Defined the function body here.
  11698. (operator!=): Defined the function body here.
  11699. * src/Peer.cc
  11700. (operator==): Removed.
  11701. (operator!=): Removed.
  11702. * src/Piece.h
  11703. (Piece): Defined the function body here(copy constructor).
  11704. (operator=): Defined the function body here.
  11705. (operator==): Defined the function body here.
  11706. * src/Piece.cc
  11707. (Piece): Removed(copy constructor).
  11708. (operator=): Removed.
  11709. (operator==): Removed.
  11710. * src/PeerMessageUtil.h
  11711. (ChokeMessage.h): Removed.
  11712. (UnchokeMessage.h): Removed.
  11713. (InterestedMessage.h): Removed.
  11714. (NotInterestedMessage.h): Removed.
  11715. (HaveMessage.h): Removed.
  11716. (BitfieldMessage.h): Removed.
  11717. (RequestMessage.h): Removed.
  11718. (CancelMessage.h): Removed.
  11719. (PieceMessage.h): Removed.
  11720. (HandshakeMessage.h): Removed.
  11721. (KeepAliveMessage.h): Removed.
  11722. (PortMessage.h): Removed.
  11723. (HaveAllMessage.h): Removed.
  11724. (HaveNoneMessage.h): Removed.
  11725. (PeerConnection.h): Removed.
  11726. (HandshakeMessage.h): Included.
  11727. * src/BitfieldMessage.h
  11728. (init): New function.
  11729. (BitfieldMessage): Rewritten.
  11730. (BitfieldMessage): New function(overload).
  11731. * src/RequestSlot.h
  11732. (operator=): Defined the function body here.
  11733. (operator==): Defined the function body here.
  11734. * src/RequestSlot.cc
  11735. (operator=): Removed.
  11736. (operator==): Removed.
  11737. To remove the dependency on the PeerMessage subclass from
  11738. PeerInteraction:
  11739. * src/PeerMessageFactory.h: New class.
  11740. * src/PeerMessageFactory.cc: New class.
  11741. * src/SimplePeerMessage.cc
  11742. (send): If invalidate is true then do nothing.
  11743. * src/PeerInteractionCommand.cc
  11744. (HandshakeMessage.h): Included.
  11745. (KeepAliveMessage.h): Included.
  11746. (ChokeMessage.h): Included.
  11747. (UnchokeMessage.h): Included.
  11748. (HaveMessage.h): Included.
  11749. (executeInternal): Call setNoCheck().
  11750. Removed setWriteCheckSocket(socket).
  11751. * src/PeerInteraction.h
  11752. (ChokeMessage.h): Removed.
  11753. (UnchokeMessage.h): Removed.
  11754. (InterestedMessage.h): Removed.
  11755. (NotInterestedMessage.h): Removed.
  11756. (HaveMessage.h): Removed.
  11757. (BitfieldMessage.h): Removed.
  11758. (RequestMessage.h): Removed.
  11759. (CancelMessage.h): Removed.
  11760. (PieceMessage.h): Removed.
  11761. (HandshakeMessage.h): Removed.
  11762. (KeepAliveMessage.h): Removed.
  11763. (PortMessage.h): Removed.
  11764. (HaveAllMessage.h): Removed.
  11765. (HaveNoneMessage.h): Removed.
  11766. (RejectMessage.h): Removed.
  11767. (AllowedFastMessage.h): Removed.
  11768. (SuggestPieceMessage.h): Removed.
  11769. (PeerMessageFactory.h): Included.
  11770. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  11771. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  11772. (PeerMessageFactory): New variable.
  11773. (createPeerMessage): Removed.
  11774. (createHandshakeMessage): Removed.
  11775. (setPeerMessageCommonProperty): Removed.
  11776. (addRequestSlot): New function.
  11777. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11778. (getPeerMessageFactory): New function.
  11779. (createRequestMessage): Removed.
  11780. (createCancelMessage): Removed.
  11781. (createPieceMessage): Removed.
  11782. (createHaveMessage): Removed.
  11783. (createChokeMessage): Removed.
  11784. (createUnchokeMessage): Removed.
  11785. (createInterestedMessage): Removed.
  11786. (createNotInterestedMessage): Removed.
  11787. (createBitfieldMessage): Removed.
  11788. (createKeepAliveMessage): Removed.
  11789. (createHaveAllMessage): Removed.
  11790. (createHaveNoneMessage): Removed.
  11791. (createRejectMessage): Removed.
  11792. (createAllowedFastMessage): Removed.
  11793. * src/PeerInteraction.cc
  11794. (PeerInteraction): Allocate PeerMessageFactory here.
  11795. (~PeerInteraction): Deallocate PeerMessageFactory here.
  11796. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  11797. PieceMessage::ID.
  11798. (addMessage): Simplified by using PeerMessage::onPush().
  11799. (addRequestSlot): New function.
  11800. (rejectAllPieceMessageInQueue): Simplified by using
  11801. PeerMessage::onChoked().
  11802. (rejectPieceMessageInQueue): Simplified by using
  11803. PeerMessage::onCanceled().
  11804. (abortPiece): Simplified by using PeerMessage::abortPiece().
  11805. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11806. (createHandshakeMessage): Removed.
  11807. (createPeerMessage): Removed.
  11808. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  11809. (setPeerMessageCommonProperty): Removed.
  11810. (createRequestMessage): Removed.
  11811. (createCancelMessage): Removed.
  11812. (createPieceMessage): Removed.
  11813. (createHaveMessage): Removed.
  11814. (createChokeMessage): Removed.
  11815. (createUnchokeMessage): Removed.
  11816. (createInterestedMessage): Removed.
  11817. (createNotInterestedMessage): Removed.
  11818. (createBitfieldMessage): Removed.
  11819. (createKeepAliveMessage): Removed.
  11820. (createHaveAllMessage): Removed.
  11821. (createHaveNoneMessage): Removed.
  11822. (createRejectMessage): Removed.
  11823. (createAllowedFastMessage): Removed.
  11824. * src/PieceMessage.h
  11825. (createRejectMessage): New function.
  11826. (PieceMessage): Rewritten.
  11827. (onChoked): New function.
  11828. (onCanceled): New function.
  11829. * src/PieceMessage.cc
  11830. (send): If invalidate is true then do nothing, just return.
  11831. (createRejectMessage): New function.
  11832. (onChoked): New function.
  11833. (onCanceled): New function.
  11834. * src/RequestMessage.h
  11835. (RequestMessage): Rewritten.
  11836. (onPush): New function.
  11837. (onAbortPiece): New function.
  11838. * src/RequestMessage.cc
  11839. (onPush): New function.
  11840. (onAbortPiece): New function.
  11841. Update fd_set when a socket is added or deleted in order to improve
  11842. performance:
  11843. * src/DownloadEngine.h
  11844. (rfdset): New variable.
  11845. (wfdset): New variable.
  11846. (updateFdSet): New function.
  11847. * src/DownloadEngine.cc
  11848. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  11849. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  11850. (waitData): Copy rfdset and wfdset.
  11851. (updateFdSet): New function.
  11852. (addSocket): Call updateFdSet.
  11853. (deleteSocket): Call updateFdSet.
  11854. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11855. To add the support for Metalink3.0 backward compatible links:
  11856. * src/Request.h
  11857. (SAFE_CHARS): Added '#'.
  11858. (METALINK_MARK): New definition.
  11859. * src/Request.cc
  11860. (parseUrl): Added the support for Metalink3.0 backward compatible
  11861. links.
  11862. etc
  11863. * src/PeerInteraction.cc
  11864. (MsgPushBack): Removed.
  11865. (sendMessages): Use STL copy and back_inserter.
  11866. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  11867. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  11868. * src/TorrentMan.h
  11869. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  11870. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11871. * src/SharedHandle.h: New class.
  11872. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  11873. * src/HttpResponseCommand.h
  11874. (HttpResponseCommand): Wrapped Socket.
  11875. * src/SocketCore.h
  11876. (operator==): New function.
  11877. (operator!=): New function.
  11878. (operator<): New function.
  11879. (getSockfd): New function.
  11880. (isOpen): New function.
  11881. (writeData): New function.
  11882. * src/SocketCore.cc
  11883. (operator==): New function.
  11884. (operator!=): New function.
  11885. (operator<): New function.
  11886. * src/AbstractCommand.h
  11887. (socket): Changed its type to SocketHandle.
  11888. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11889. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11890. (disableReadCheckSocket): New function.
  11891. (disableWriteCheckSocket): New function.
  11892. (readCheckTarget): Changed its type to SocketHandle.
  11893. (writeCheckTarget): Changed its type to SocketHandle.
  11894. (AbstractCommand): Replaced Socket with SocketHandle.
  11895. * src/AbstractCommand.cc
  11896. (AbstractCommand): Replaced Socket with SocketHandle.
  11897. (~AbstractCommand): Removed the deallocation for Socket object.
  11898. (disableReadCheckSocket): New function.
  11899. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11900. (disableWriteCheckSocket): New function.
  11901. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11902. * src/HttpDownloadCommand.cc
  11903. (DownloadCommand): Replaced Socket with SocketHandle.
  11904. * src/PeerAbstractCommand.h
  11905. (socket): Changed its type to SocketHandle.
  11906. (peer): Changed its type to PeerHandle.
  11907. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11908. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11909. (disableReadCheckSocket): New function.
  11910. (disableWriteCheckSocket): New function.
  11911. (readCheckTarget): Changed its type to SocketHandle.
  11912. (writeCheckTarget): Changed its type to SocketHandle.
  11913. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11914. Replaced Peer with PeerHandle.
  11915. * src/HttpRequestCommand.cc
  11916. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11917. Use disableReadCheckSocket.
  11918. * src/PeerInitiateConnectionCommand.h
  11919. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11920. * src/PeerChokeCommand.cc
  11921. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  11922. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  11923. (execute): Use PeerHandle.
  11924. * src/PeerConnection.h
  11925. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  11926. (socket): Changed its type to SocketHandle.
  11927. (PeerConnection): Replaced Socket with SocketHandle.
  11928. * src/PeerConnection.cc
  11929. (PeerConnection): Replaced Socket with SocketHandle.
  11930. * src/PeerInteractionCommand.h
  11931. (PeerInteractionCommand): Replaced socket with SocketHandle.
  11932. Replaced Peer with PeerHandle.
  11933. * src/PeerInteractionCommand.cc
  11934. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  11935. Replaced Peer with PeerHandle.
  11936. (executeInternal): Use disableWriteCheckSocket.
  11937. Use HandshakeMessageHandle.
  11938. (receiveMessages): Use PeerMessageHandle.
  11939. (prepareForNextPeer): Use PeerHandle.
  11940. * src/HttpProxyRequestCommand.h
  11941. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11942. * src/HttpResponseCommand.cc
  11943. (HttpResponseCommand): Replaced Socket with SocketHandle.
  11944. * src/TorrentMan.cc
  11945. (nullPeer): Added external reference.
  11946. (~TorrentMan): Removed the deallocation of the elements of peers.
  11947. (addPeer): Rewritten.
  11948. (isPeerAvailable): Use nullPeer.
  11949. (deleteOldpeers): Replaced with deleteErrorPeer.
  11950. (deleteErrorPeer): New function.
  11951. (getPeer): Use PeerHandle and nullPeer.
  11952. (hasMissingPiece): Replaced Peer with PeerHandle.
  11953. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11954. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11955. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11956. (getMissingPiece): Replaced Peer with PeerHandle.
  11957. * src/FtpNegotiateCommand.cc
  11958. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  11959. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  11960. (recvGreeting): Use disableWriteCheckSocket.
  11961. (recvPasv): Removed the allocation of Socket.
  11962. Use disableReadCheckSocket.
  11963. (sendRestPasv): Use disableWriteCheckSocket.
  11964. (recvRetr): Changed assertion.
  11965. * src/PeerInteraction.h
  11966. (SharedHandle.h): Included SharedHandle.h.
  11967. (PeerMessageHandle): New type definition.
  11968. (HandshakeMessageHandle): New type definition.
  11969. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  11970. (peer): Changed its type to PeerHandle.
  11971. (createHandshakeMessage): Replaced HandshakeMessage with
  11972. HandshakeMessageHandle.
  11973. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  11974. (PeerInteraction): Replaced Peer with PeerHandle.
  11975. Replaced Socket with SocketHandle.
  11976. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11977. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11978. (receiveHandshake): Replaced HandshakeMessage with
  11979. HandshakeMessageHandle.
  11980. * src/PeerInteraction.cc
  11981. (PeerInteraction): Replaced Peer with PeerHandle.
  11982. Replaced Socket with SocketHandle.
  11983. (~PeerInteraction): Removed the deallocation of the elements of
  11984. messageQueue.
  11985. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  11986. (isSendingMessageInProgress): Replaced PeerMessage with
  11987. PeerMessageHandle.
  11988. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  11989. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11990. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  11991. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  11992. (abortPiece): Use PeerMessageHandle.
  11993. (receiveHandshake): Replaced HandshakeMessage with
  11994. HandshakeMessageHandle. Removed try-catch block.
  11995. (createHandshakeMessage): Replaced HandshakeMessage with
  11996. HandshakeMessageHandle.
  11997. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11998. Removed try-catch block.
  11999. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  12000. * src/HttpProxyResponseCommand.cc
  12001. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12002. * src/FtpTunnelResponseCommand.h
  12003. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  12004. * src/HttpConnection.cc
  12005. (HttpConnection): Replaced Socket with SocketHandle.
  12006. * src/PeerAbstractCommand.cc
  12007. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  12008. (~PeerAbstractCommand): Removed the deallocation of socket.
  12009. Use disableReadCheckSocket, disableWriteCheckSocket.
  12010. (disableReadCheckSocket): New function.
  12011. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12012. (disableWriteCheckSocket): New function.
  12013. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12014. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  12015. * src/FtpTunnelRequestCommand.cc
  12016. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  12017. (~FtpTunnelRequestCommand): Corrected indentation.
  12018. * src/DownloadCommand.h
  12019. (DownloadCommand): Replaced Socket with SocketHandle.
  12020. * src/PeerListenCommand.cc
  12021. (PeerListenCommand): Removed the initialization of socket.
  12022. (~PeerListenCommand): Removed the deallocation of socket.
  12023. (bindPort): Use SocketHandle.
  12024. (execute): Use SocketHandle and PeerHandle.
  12025. * src/FtpDowndloadCommand.cc
  12026. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  12027. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  12028. * src/main.cc
  12029. (main): Corrected indentation.
  12030. * src/HttpInitiateConnectionCommand.cc
  12031. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  12032. (executeInternal): Removed the allocation of socket.
  12033. * src/HttpRequestCommand.h
  12034. (HttpRequestCommand): Replaced Socket with SocketHandle.
  12035. * src/FtpNegotiationCommand.h
  12036. (dataSocket): Changed its type to SocketHandle.
  12037. (serverSocket): Changed its type to SocketHandle.
  12038. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  12039. * src/TorrentMan.h
  12040. (MAX_PEER_UPDATE): Removed.
  12041. (MAX_PEERS): New definition.
  12042. (Peers): The element is now of type PeerHandle.
  12043. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  12044. (getPeer): Replaced Peer with PeerHandle.
  12045. (deleteOldErrorPeers): Removed.
  12046. (deleteErrorPeer): New function.
  12047. (hasMissingPiece): Replaced Peer with PeerHandle.
  12048. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  12049. (getMissingPiece): Replaced Peer with PeerHandle.
  12050. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  12051. (getMissingFastPiece): Replaced Peer with PeerHandle.
  12052. (addActivePeer): Replaced Peer with PeerHandle.
  12053. (deleteActivePeer): Replaced Peer with PeerHandle.
  12054. Added a check for the return value of find.
  12055. * src/FtpTunnelResponseCommand.cc
  12056. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  12057. * src/FtpInitiateConnectionCommand.cc
  12058. (executeInternal): Removed the allocation of socket.
  12059. * src/DownloadEngine.h
  12060. (Sockets): An element is now of type SocketHandle.
  12061. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  12062. (CommandUuids): New type definition.
  12063. (rsockets): Changed its type to SockCmdMap.
  12064. (wsockets): Changed its type to SockCmdMap.
  12065. (addSocket): Rewritten.
  12066. (deleteSocket): Rewritten.
  12067. (addSocketForReadCheck): Rewritten.
  12068. (deleteSocketForReadCheck): Rewritten.
  12069. (addSocketForWriteCheck): Rewritten.
  12070. (deleteSocketForWriteCheck): Rewritten.
  12071. (PairFind): New template class.
  12072. * src/HttpDownloadCommand.h
  12073. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  12074. * src/FtpConnection.cc
  12075. (FtpConnection): Replaced Socket with SocketHandle.
  12076. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  12077. block.
  12078. * src/InitiateConnectionCommandFactory.cc
  12079. (DlAbortEx.h): Included DlAbortEx.h.
  12080. (createInitiateConnectionCommand): Throw exception if the protocol of
  12081. requested URI is not supported.
  12082. * src/Peer.cc
  12083. (nullPeer): Changed its type to PeerHandle.
  12084. (operator==): New function.
  12085. (operator!=): New function.
  12086. * src/Peer.h
  12087. (SharedHandle.h): Included SharedHandle.h.
  12088. (operator==): New function.
  12089. (operator!=): New function.
  12090. (Peer): Added the default constructor.
  12091. Use resetStatus() to initialize member variables.
  12092. (nullPeer): Removed.
  12093. * src/TrackerUpdateCommand.cc
  12094. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  12095. with MIN_PEERS.
  12096. * src/PeerListenCommand.h
  12097. (socket): Changed its type to SocketHandle.
  12098. * src/Command.h
  12099. (CommandUuid): New type definition.
  12100. (uuid): New variable.
  12101. (uuidGen): New variable.
  12102. (Command): Added the initialization of uuid.
  12103. (getUuid): New function.
  12104. * src/Socket.h
  12105. (Socket): Removed.
  12106. (SocketHandle): New type definition.
  12107. * src/DownloadEngine.h
  12108. (FindCommand): New function object.
  12109. (run): The portion of socket check was rewritten.
  12110. (SetDescriptor): New function object.
  12111. (AccumulateActiveCommandUuid): New function object.
  12112. (waitData): Rewritten.
  12113. (addSocket): Rewritten.
  12114. (deleteSocket): Rewritten.
  12115. (addSocketForReadCheck): Rewritten.
  12116. (addSocketForWriteCheck): Rewritten.
  12117. (deleteSocketForReadCheck): Rewritten.
  12118. (deleteSocketForWriteCheck): Rewritten.
  12119. * src/HttpProxyResponseCommand.h
  12120. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  12121. * src/HttpConnection.h
  12122. (socket): Changed its type to SocketHandle.
  12123. (HttpConnection): Replaced Socket with SocketHandle.
  12124. * src/PeerInitiateConnectionCommand.cc
  12125. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  12126. (executeInternal): Removed the allocation of socket.
  12127. (prepareForNextPeer): Use PeerHandle.
  12128. * src/PeerMessage.h
  12129. (peer): Changed its type to PeerHandle.
  12130. (getPeer): Replaced Peer with PeerHandle.
  12131. (setPeer): Replaced Peer with PeerHandle.
  12132. * src/DownloadCommand.cc
  12133. (DownloadCommand): Replaced Socket with SocketHandle.
  12134. * src/FtpConnection.h
  12135. (socket): Changed its type to SocketHandle.
  12136. (FtpConnection): Replaced Socket with SocketHandle.
  12137. (sendPort); Replaced Socket with SocketHandle.
  12138. * src/FtpDowndloadCommand.h
  12139. (ctrlSocket): Changed its type to SocketHandle.
  12140. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  12141. * src/HttpProxyRequestCommand.cc
  12142. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12143. * src/FtpTunnelRequestCommand.h
  12144. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  12145. etc
  12146. * src/PeerChokeCommand.h
  12147. (setAllPeerChoked): Removed.
  12148. (setAllPeerResetDelta): Removed.
  12149. * src/PeerChokeCommand.cc
  12150. (setAllPeerChoked): Removed.
  12151. (ChokePeer): New function object.
  12152. (setAllPeerResetDelta): Removed.
  12153. (ResetDelta): New function object.
  12154. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  12155. (execute): Show download speed when the local node is a seeder.
  12156. setAllPeerChoked and setAllPeerResetDelta were rewritten
  12157. using STL.
  12158. * src/TrackerWatcherCommand.h
  12159. (MIN_PEERS): Removed.
  12160. * src/TorrentMan.cc
  12161. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  12162. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12163. To fix the bug that .aria2 file is not saved if downloading is stopped
  12164. by the errors:it results that aria2 can not resume downloading:
  12165. * src/main.cc
  12166. (normalDownload): Added the call to save().
  12167. (main): Added the deletion of the elements in 'reserved'.
  12168. To fix log:
  12169. * src/PeerInteraction.cc
  12170. (receiveHandshake): Fixed log.
  12171. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12172. To improve download performance in BitTorrent:
  12173. * src/TorrentMan.cc
  12174. (getPeer): Check the number of connections. Return nullPeer if
  12175. it is greater than MAX_PEER_UPDATE.
  12176. This code was originally here, but was removed in 0.5.1.
  12177. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12178. To improve the conditional compilation:
  12179. * src/MultiDiskWriter.h:
  12180. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12181. * src/MultiDiskWriter.cc:
  12182. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12183. * src/Util.h:
  12184. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12185. Added ENABLE_BITTORRENT around computeFastSet().
  12186. * src/Util.cc:
  12187. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12188. Added ENABLE_BITTORRENT around computeFastSet().
  12189. * src/messageDigest.h:
  12190. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  12191. * src/ShaVisitor.h:
  12192. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12193. * src/ShaVisitor.cc:
  12194. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12195. * src/main.cc:
  12196. Added ENABLE_BITTORRENT around includes and blocks related to
  12197. BitTorrent.
  12198. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  12199. digest support is not available.
  12200. * src/AbstractDiskWriter.h:
  12201. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12202. * src/AbstractDiskWriter.cc:
  12203. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12204. * src/MetalinkEntry.cc
  12205. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  12206. support is not available.
  12207. To add command-line options for Metalink:
  12208. * src/main.cc:
  12209. Added metalink-version, metalink-language, metalink-os,
  12210. follow-metalink.
  12211. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  12212. * src/main.cc: Use these definition.
  12213. * Release 0.6.0
  12214. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12215. To add Metalink support(http/ftp only):
  12216. * src/AbstractCommand.h
  12217. (tryReserved): New function.
  12218. * src/AbstractCommand.cc
  12219. (execute): Call tryReserved().
  12220. (tryReserved): New function.
  12221. * src/Request.h
  12222. (Requests): New type definition.
  12223. * src/SegmentMan.h
  12224. (reserved): New variable.
  12225. * src/Util.h
  12226. (fileChecksum): New function.
  12227. (toUpper): New function.
  12228. (toLower): New function.
  12229. * src/Util.cc
  12230. (messageDigest.h): Included.
  12231. (trim): Trim \r\n\t.
  12232. (fileChecksum): New function.
  12233. (toUpper): New function.
  12234. (toLower): New function.
  12235. * src/main.cc
  12236. (normalDownload): New function.
  12237. (main): Added 2 command-line options: metalink-file,
  12238. metalink-connection. Their usage has not been written yet.
  12239. * src/MetalinkProcessor.h: New class.
  12240. * src/Xml2MetalinkProcessor.h: New class.
  12241. * src/Xml2MetalinkProcessor.cc: New class.
  12242. * src/MetalinkEntry.h: New class.
  12243. * src/MetalinkEntry.cc: New class.
  12244. * src/MetalinkResource.h: New class.
  12245. * src/MetalinkResource.cc: New class.
  12246. To add md5 message digest checking:
  12247. * src/messageDigest.h: Rewritten.
  12248. * src/MultiDiskWriter.cc: Updated according to the changes in
  12249. messageDigest.h.
  12250. * src/ShaVisitor.cc: Updated according to the changes in
  12251. messageDigest.h.
  12252. * src/Util.cc: Updated according to the changes in messageDigest.h.
  12253. * src/AbstractDiskWriter.cc: Updated according to the changes in
  12254. messageDigest.h.
  12255. To fix a bug that causes segfault when the payload length in peer
  12256. message is less than 0:
  12257. * src/PeerConnection.cc:
  12258. (receiveMessage): Fixed the bug.
  12259. * src/PeerMessageUtil.cc
  12260. (checkLength): Throw an exception if length is less than or equals to
  12261. 0.
  12262. To add new interfaces to Base64 encoding/decoding:
  12263. * src/Base64.h
  12264. (part_encode): Changed the method signature.
  12265. (encode): New function(overload).
  12266. (decode): New function(overload).
  12267. * src/Base64.cc
  12268. (part_encode): Rewritten.
  12269. (encode): Rewritten.
  12270. (encode): New function(overload).
  12271. To prevent a peer to download same piece if there is an error in
  12272. checksum:
  12273. * src/PieceMessage.cc
  12274. (receivedAction): Call peerInteraction->abortPiece().
  12275. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12276. To fix the bug that causes same have message is sent many times to
  12277. a single peer.
  12278. * src/Time.cc
  12279. (isNewer): Use Util::difftv().
  12280. * src/Util.cc
  12281. (difftv): Added a cast to (long long int).
  12282. * src/TorrentMan.cc
  12283. (advertisePiece): Use push_front.
  12284. (getAdvertisedPieceIndexes): A performance improvement was made.
  12285. To fix the bug that sends tracker requests without a sleep interval
  12286. when the number of connections is less than 15.
  12287. * src/TrackerWatcherCommand.cc
  12288. (execute): Now the number of connections is not a factor to decide
  12289. whether or not a tracker request should be sent or not.
  12290. * src/Time.h
  12291. (setTimeInSec): New function.
  12292. * src/Time.cc
  12293. (setTimeInSec): New function.
  12294. etc.
  12295. * src/ChokeMessage.cc
  12296. (receivedAction): Removed peer->snubbing = false
  12297. * src/PeerConnection.h
  12298. (receiveHandshake): Updated doc.
  12299. * src/TorrentMan.h
  12300. (getAdvertisedPieceIndexes): Updated the method signature.
  12301. * src/TorrentMan.cc
  12302. (getAdvertisedPieceIndexes): Updated the method signature.
  12303. * src/Time.h
  12304. (getTimeInMicros): Added a cast to (long long int).
  12305. (getTimeInMillis): Added a cast to (long long int).
  12306. * Release 0.5.2
  12307. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12308. To make a listening socket non-block:
  12309. * src/SocketCore.h
  12310. (setNonBlockingMode): New function.
  12311. * src/SocketCore.cc
  12312. (setNonBlockingMode): New function.
  12313. (beginListen): Added a call to setNonBlockingMode().
  12314. (acceptConnection): Call setNonBlockingMode().
  12315. (setBlockingMode): Updated.
  12316. To handle tracker's NAT-checking:
  12317. * src/PeerConnection.cc
  12318. (receiveHandshake): 'msg' param is filled with received data and
  12319. its length is assigned to 'length' param, even if all handshake
  12320. message is not yet received.
  12321. * src/PeerInteractionCommand.cc
  12322. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  12323. a new peer connects to localhost.
  12324. A call to peerInteraction->sendHandshake() was removed because
  12325. it is called from peerInteraction->receiveHandshake(true).
  12326. * src/PeerInteraction.h
  12327. (quickReplied): New variable.
  12328. (receiveHandshake): Added an argument.
  12329. * src/PeerInteraction.cc
  12330. (PeerInteraction): Added the initialization of quickReplied.
  12331. (receiveHandshake): Send handshake message as soon as the info hash
  12332. in a handshake message from a peer is correct.
  12333. To change the random part of peer id and key parameter:
  12334. * src/TorrentMan.h
  12335. (key): New variable.
  12336. * src/TorrentMan.cc
  12337. (setupInternal1): Use Util::randomAlpha() to generate random part
  12338. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  12339. key is also generated by Util::randomAlpha() and it is now 8 character
  12340. long.
  12341. * src/Util.h
  12342. (randomAlpha): New function.
  12343. * src/Util.cc
  12344. (randomAlpha): New function.
  12345. * src/TrackerWatcherCommand.cc
  12346. (execute): In a tracker request: Use torrentMan->key as key parameter.
  12347. Added no_peer_id=1.
  12348. Set snubbing flag to false when a choke message is received from a
  12349. snubbed peer.
  12350. * src/ChokeMessage.cc
  12351. (receivedAction): Set snubbing flag to false.
  12352. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12353. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  12354. * src/SimpleLogger.h (writeHeader): New function.
  12355. * src/SimpleLogger.cc (writeHeader): New function.
  12356. (writeLog): Fixed the bug that causes segfaults if exception message
  12357. contains an unescaped "%" character.
  12358. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  12359. when a tracker request fails.
  12360. * src/Request.cc (parseUrl): Query string is now handled properly.
  12361. * Release 0.5.1
  12362. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12363. To add Time class which represents a specific instant in time and
  12364. its precision is microseconds. Time checking procedures were rewritten
  12365. using this object.
  12366. * src/Time.h: New class.
  12367. * src/Time.cc: New class.
  12368. * src/AbstractCommand.h
  12369. (updateCheckPoint): Removed.
  12370. (isTimeoutDetected): Removed.
  12371. (checkPoint): Changed the type to Time.
  12372. (timeout): New variable.
  12373. (setTimeout): New function.
  12374. * src/AbstractCommand.cc
  12375. (AbstractCommand): Removed the initialization of checkPoint.
  12376. Added the initialization of timeout.
  12377. (updateCheckPoint): Removed.
  12378. (isTimeoutDetected): Removed.
  12379. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12380. * src/PeerChokeCommand.h
  12381. (checkPoint): Changed the type to Time.
  12382. * src/PeerChokeCommand.cc
  12383. (PeerChokeCommand): Removed the initialization of checkPoint.
  12384. (execute): Rewritten using Time object.
  12385. * src/TrackerWatcherCommand.h
  12386. (checkPoint): Changed the type to Time.
  12387. * src/TrackerWatcherCommand.cc
  12388. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  12389. (execute): Rewritten.
  12390. * src/ConsoleDownloadEngine.h
  12391. (cp): Changed the type to Time.
  12392. (startup): Changed the type to Time.
  12393. * src/ConsoleDownloadEngine.cc
  12394. (initStatistics): Use cp.reset(), startup.reset().
  12395. (calculateStatistics): Rewritten using Time object.
  12396. * src/PeerAbstractCommand.h
  12397. (updateCheckPoint): Removed.
  12398. (isTimeoutDetected): Removed.
  12399. (checkPoint): Changed the type to Time.
  12400. * src/PeerAbstractCommand.cc
  12401. (PeerAbstractCommand): Removed the initialization of checkPoint.
  12402. (updateCheckPoint): Removed.
  12403. (isTimeoutDetected): Removed.
  12404. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12405. * src/PeerInteractionCommand.cc
  12406. (PeerInteractionCommand): Removed the initializations of struct
  12407. timeval variables.
  12408. * src/PeerInteractionCommand.h
  12409. (keepAliveCheckPoint): Changed the type to Time.
  12410. (chokeCheckPoint): Changed the type to Time.
  12411. (freqCheckPoint): Changed the type to Time.
  12412. (haveCheckTime): Changed the type to Time.
  12413. * src/PeerInteractionCommand.cc
  12414. (executeInternal): Rewritten using Time object.
  12415. (detectMessageFlooding): Rewritten using Time object.
  12416. (checkLongTimePeerChoking): Rewritten using Time object.
  12417. (sendKeepAlive): Rewritten using Time object.
  12418. (checkHave): Rewritten using Time object.
  12419. * src/SleepCommand.h
  12420. (checkPoint): Changed the type to Time.
  12421. * src/SleepCommand.cc
  12422. (SleepCommand): Removed the initialization of checkPoint.
  12423. (execute): Rewritten using Time object.
  12424. * src/TorrentAutoSaveCommand.h
  12425. (checkPoint): Changed the type to Time.
  12426. * src/TorrentAutoSaveCommand.cc
  12427. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  12428. (execute): Rewritten.
  12429. * src/DownloadCommand.h
  12430. (sw): Changed the type to Time.
  12431. * src/DownloadCommand.cc
  12432. (DownloadCommand): Removed the initialization of sw.
  12433. (executeInternal): Rewritten.
  12434. * src/RequestSlot.h
  12435. (dispatchedTime): Changed the type to Time.
  12436. * src/RequestSlot.cc
  12437. (RequestSlot): Removed the call to setDispatchedTime().
  12438. (setDispatchedTime): Rewirtten.
  12439. (isTimeout): Rewritten.
  12440. (getLatencyInMillis): Rewritten.
  12441. * src/TorrentDownloadEngine.h
  12442. (cp): Changed the type to Time[2].
  12443. (startup): Changed the type to Time.
  12444. * src/TorrentDownloadEngine.cc
  12445. (initStatistics): Rewritten.
  12446. (calculateStatistics): Rewritten.
  12447. * src/DownloadEngine.cc
  12448. (run): Rewritten.
  12449. To detect all attempts to connect to the tracker are failed:
  12450. * src/AbstractCommand.cc
  12451. (execute): Increment e->segmentMan->errors if a command aborted.
  12452. * src/SegmentMan.h
  12453. (errors): New variable.
  12454. * src/SegmentMan.cc
  12455. (SegmentMan): Added the initialization of errors.
  12456. (init): Added the initialization of errors.
  12457. * src/TrackerWatcherCommand.cc
  12458. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  12459. request was failed.
  12460. To handle snubbed peers:
  12461. * src/PeerChokeCommand.cc
  12462. (optUnchokingPeer): Snubbed peers don't get unchoked.
  12463. (execute): Snubbed peers don't get unchoked.
  12464. * src/PeerInteraction.h
  12465. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  12466. * src/PeerInteraction.cc
  12467. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  12468. back the requested 16k block in 60 seconds.
  12469. * src/PieceMessage.cc
  12470. (receivedAction): A peer's snubbed state is cleard if it sends
  12471. the requested 16k block in 60 seconds.
  12472. * src/Peer.h
  12473. (snubbing): New variable.
  12474. * src/Peer.cc
  12475. (resetStatus): Added snubbed = false.
  12476. To fix the bug that causes have message is not sent:
  12477. * src/PeerInteractionCommand.cc
  12478. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  12479. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  12480. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  12481. * src/TorrentMan.h
  12482. (HaveEntry): New class.
  12483. (advertisePiece): Rewritten.
  12484. (getAdvertisedPieceIndexes): Rewritten.
  12485. (Haves): Changed the type.
  12486. (getAdvertisedPieceIndexes): Added an argument.
  12487. Others:
  12488. * src/TorrentMan.h
  12489. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  12490. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  12491. * src/TorrentMan.cc
  12492. (getPeer): Don't check the number of connections here.
  12493. (setupInternal1): Changed peerId.
  12494. * src/PeerInteractionCommand.h
  12495. (KEEP_ALIVE_INTERVAL): New definition.
  12496. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  12497. * src/main.cc
  12498. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  12499. * src/DownloadEngine.h: Removed unnecessary header includes.
  12500. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12501. To fix the bug that causes segfaults if a tracker returns a zero-length
  12502. list as "peers":
  12503. * src/TrackerUpdateCommand.cc
  12504. (execute): Added a check to see wether the type of peers is Data*.
  12505. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12506. * Release 0.5.0
  12507. To fix compile issue with gcc3:
  12508. * src/CancelMessage.h
  12509. (ID): Renamed as ID_t
  12510. (ID_t): New enum.
  12511. * src/RejectMessage.h
  12512. (ID): Renamed as ID_t
  12513. (ID_t): New enum.
  12514. * src/SuggestPieceMessage.h
  12515. (ID): Renamed as ID_t
  12516. (ID_t): New enum.
  12517. * src/AllowedFastMessage.h
  12518. (ID): Renamed as ID_t
  12519. (ID_t): New enum.
  12520. * src/PortMessage.h
  12521. (ID): Renamed as ID_t
  12522. (ID_t): New enum.
  12523. * src/HaveNoneMessage.h
  12524. (ID): Renamed as ID_t
  12525. (ID_t): New enum.
  12526. * src/KeepAliveMessage.h
  12527. (ID): Renamed as ID_t
  12528. (ID_t): New enum.
  12529. * src/HaveAllMessage.h
  12530. (ID): Renamed as ID_t
  12531. (ID_t): New enum.
  12532. * src/UnchokeMessage.h
  12533. (ID): Renamed as ID_t
  12534. (ID_t): New enum.
  12535. * src/BitfieldMessage.h
  12536. (ID): Renamed as ID_t
  12537. (ID_t): New enum.
  12538. * src/PieceMessage.h
  12539. (ID): Renamed as ID_t
  12540. (ID_t): New enum.
  12541. * src/RequestMessage.h
  12542. (ID): Renamed as ID_t
  12543. (ID_t): New enum.
  12544. * src/NotInterestedMessage.h
  12545. (ID): Renamed as ID_t
  12546. (ID_t): New enum.
  12547. * src/ChokeMessage.h
  12548. (ID): Renamed as ID_t
  12549. (ID_t): New enum.
  12550. * src/InterestedMessage.h
  12551. (ID): Renamed as ID_t
  12552. (ID_t): New enum.
  12553. * src/HaveMessage.h
  12554. (ID): Renamed as ID_t
  12555. (ID_t): New enum.
  12556. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12557. * src/PeerAbstractCommand.h
  12558. (beforeSocketCheck): Removed.
  12559. * src/PeerAbstractCommand.cc
  12560. Modified in order to call executeInternal() even if socket check
  12561. and upload limit check fail.
  12562. * src/PeerInteractionCommand.h
  12563. (keepAlive): Removed.
  12564. (sendKeepAlive): New function.
  12565. (checkHave): New function.
  12566. (beforeSocketCheck): Removed.
  12567. * src/PeerInteractionCommand.cc
  12568. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  12569. calls to checkHave() and sendKeepAlive().
  12570. (keepAlive): Renamed to sendKeepAlive().
  12571. (sendKeepAlive): New function.
  12572. (beforeSocketCheck): Removed.
  12573. (checkHave): New function.
  12574. * src/BitfieldMan.cc
  12575. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  12576. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  12577. 0.
  12578. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  12579. * src/TorrentMan.h
  12580. (UsedPieces): Removed.
  12581. (Pieces): New type definition.
  12582. * src/Piece.h: Updated doc.
  12583. * src/Peer.h
  12584. (totalLength): Removed.
  12585. * src/Peer.cc
  12586. (updateLatency): Fixed the latency calculation.
  12587. * src/TorrentMan.cc
  12588. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  12589. than or equal to MAX_PEER_LIST_SIZE.
  12590. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  12591. then return false.
  12592. (deleteOldErrorPeers): Rewritten.
  12593. (deleteUsedPiece): Fixed the miss use of STL remove.
  12594. * src/PeerInteraction.h
  12595. (Pieces): Removed.
  12596. (deleteTimeoutRequestSlot): Removed.
  12597. (deleteCompletedRequestSlot): Removed.
  12598. (checkRequestSlot): New function.
  12599. * src/PeerInteraction.cc
  12600. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  12601. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  12602. (checkRequestSlot): New function.
  12603. * src/DownloadEngine.cc
  12604. (run): Clear activeSockets before calling waitData().
  12605. (waitData): Removed a call to activeSockets.clear().
  12606. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12607. To attempt to handle EINTR:
  12608. * src/SocketCore.cc
  12609. (isReadable): Added EINTR handling.
  12610. (isWritable): Added EINTR handling.
  12611. To improve the performance:
  12612. * src/AbstractCommand.cc
  12613. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12614. * src/PeerInteractionCommand.h
  12615. (receiveMessage): Renamed as receiveMessages().
  12616. (receiveMessages): New function.
  12617. * src/PeerInteractionCommand.cc
  12618. (executeInternal): receiveMessage loop is moved to new receiveMessages
  12619. () function. detectMessageFlooding() is moved here.
  12620. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  12621. (). The flooding detection for have message is comment out.
  12622. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  12623. Util::difftv().
  12624. (receiveMessage): Renamed as receiveMessages().
  12625. (receiveMessages): New function.
  12626. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  12627. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  12628. * src/SleepCommand.cc
  12629. (execute): Use Util::difftvsec() instead of Util::difftv().
  12630. * src/BitfieldMan.h
  12631. (getNthBitIndex): New function.
  12632. (hasMissingPiece): New function.
  12633. (getAllMissingIndexes): New function.
  12634. * src/BitfieldMan.cc
  12635. (countSetBit): Rewritten.
  12636. (getNthBitIndex): New function.
  12637. (getMissingIndexRandomly): Rewritten.
  12638. (hasMissingPiece): New function.
  12639. (getAllMissingIndexes): New function.
  12640. * src/TorrentMan.cc
  12641. (hasMissingPiece): New function.
  12642. (deleteUsedPiece): Rewritten using STL.
  12643. * src/PeerInteraction.cc
  12644. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  12645. is a little bit faster then TorrentMan::getMissingPieceIndex().
  12646. (addRequests): Updated the number of pending requests.
  12647. * src/PeerAbstractCommand.cc
  12648. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12649. (execute): Returns true if TorrentMan::isHalt() is true.
  12650. Corrected the condition of upload limit checking.
  12651. * src/Util.h
  12652. (countBit): New function.
  12653. * src/Util.cc
  12654. (nbits): New variable.
  12655. (countBit): New function.
  12656. * src/DownloadEngine.h
  12657. (SockCmdMap): New type definition.
  12658. (waitData): Added an argument.
  12659. (addSocket): Added an argument.
  12660. (addSocketForReadCheck): Added an argument.
  12661. (addSocketForWriteCheck): Added an argument.
  12662. * src/DownloadEngine.cc
  12663. (run): Executes only commands whose sockets are ready to read or write.
  12664. All commands are executed in every 1 second.
  12665. (waitData): Calls select() again if it returned
  12666. EINTR.
  12667. (addSocket): Saves socket and command object pair to the map.
  12668. (deleteSocket): Deletes socket and command object pair from the map.
  12669. (addSocketForReadCheck): Added an argument.
  12670. (addSocketForWriteCheck): Added an argument.
  12671. * src/DownloadCommand.cc
  12672. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  12673. To send "event=stopped" to the tracker when the application finishes:
  12674. * src/PeerChokeCommand.h
  12675. (checkPoint): New variable.
  12676. * src/PeerChokeCommand.cc
  12677. (PeerChokeCommand): Added the initialization of checkPoint.
  12678. (execute): The interval check is now done by checkPoint, not
  12679. SleepCommand. Return true if TorrentMan::isHalt() is true.
  12680. * src/TorrentMan.h
  12681. (halt): New function.
  12682. (hasMissingPiece): New function.
  12683. (isHalt): New function.
  12684. (setHalt): New function.
  12685. * src/TorrentMan.cc
  12686. (TorrentMan): Added the initialization of halt.
  12687. * src/TorrentAutoSaveCommand.h
  12688. (checkPoint): New variable.
  12689. * src/PeerListenCommand.cc
  12690. (execute): Returns true if TorrentMan::isHalt() is true.
  12691. * src/main.cc
  12692. (setSignalHander): Added flags argument.
  12693. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  12694. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  12695. Removed printDownloadAbortMessage() after torrent downloading loop.
  12696. * src/TorrentAutoSaveCommand.cc
  12697. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  12698. (execute): Returns true if TorrentMan::isHalt() is true.
  12699. The interval check is now done by checkPoint, not SleepCommand.
  12700. * src/TrackerWatcherCommand.cc
  12701. (execute): If TorrentMan::isHalt(), then create a tracker request with
  12702. event=stopped.
  12703. * src/TrackerUpdateCommand.cc
  12704. (prepareForRetry): Do not use SleepCommand here.
  12705. (execute): Returns true if TorrentMan::isHalt() is true.
  12706. Others:
  12707. * src/TorrentMan.cc
  12708. (getMissingPieceIndex): Updated log message.
  12709. * src/PeerInteraction.cc
  12710. (createPeerMessag): Updated log message.
  12711. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12712. To add the ability to download several pieces in mix in a command and
  12713. increase the number of request slots according to request-cancel
  12714. latency:
  12715. * src/PeerInteractionCommand.cc
  12716. (executeInternal): The number of messages to be received at a time
  12717. is increased from 10 to 50.
  12718. * src/LogFactory
  12719. (getInstance): Added NullLogger.
  12720. * src/NullLogger.h: New class.
  12721. * src/BitfieldMan.h
  12722. (getMissingIndex): New function.
  12723. * src/BitfieldMan.cc
  12724. (getMissingIndex): New function.
  12725. * src/TorrentMan.h
  12726. (checkOutPiece): New function.
  12727. (getMissingPieceIndex): New function.
  12728. (getMissingFastPieceIndex): New function.
  12729. (getMissingFastPiece): New function.
  12730. * src/TorrentMan.cc
  12731. (updatePiece): Rewritten using STL.
  12732. (syncPiece): Rewritten using STL.
  12733. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  12734. checkOutPiece().
  12735. (getMissingPieceIndex): New function.
  12736. (getMissingFastPieceIndex): New function.
  12737. (getMissingFastPiece): New function.
  12738. (checkOutPiece): New function.
  12739. * src/PeerInteraction.h
  12740. (Pieces): New type definition.
  12741. (piece): Removed.
  12742. (pieces): New variable.
  12743. (getNewPieceAndSendInterest): Added the "piece" argument.
  12744. (abortPiece): Added the "piece" argument.
  12745. (abortAllPieces): New function.
  12746. (isInRequestSlot): New function.
  12747. (hasDownloadPiece): Added the "index" argument.
  12748. (setDownloadPiece): Removed.
  12749. (getDownloadPiece): Added the "index" argument.
  12750. (updatePiece): New function.
  12751. (createRequestMessage): Added the "index" argument.
  12752. * src/PeerInteraction.cc
  12753. (onChoked): Rewritten.
  12754. (abortPiece): Rewirtten.
  12755. (abortAllPieces): New function.
  12756. (deleteTimeoutRequestSlot): Rewritten.
  12757. Clarified code a little bit.
  12758. (deleteCompletedRequestSlot): Rewritten.
  12759. (isInRequestSlot): New function.
  12760. (syncPiece): Rewritten.
  12761. (updatePiece): New function.
  12762. (getNewPieceAndSendInterest): Rewritten.
  12763. (addRequests): Rewritten.
  12764. (getDownloadPiece): Rewritten.
  12765. (hasDownloadPiece): Rewritten.
  12766. (createRequestMessage): Added the "index" argument.
  12767. * src/common.h
  12768. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  12769. (DIV_FLOOR): New definition.
  12770. * src/PieceMessage.cc
  12771. (receivedAction): Update request-piece latency here.
  12772. * src/RequestSlot.h
  12773. (getLatencyInMillis): New function.
  12774. * src/RequestSlot.cc
  12775. (isTimeout): Rewritten using getLatencyInMillis.
  12776. (getLatencyInMillis): New function.
  12777. * src/Piece.h
  12778. (operator==): New function.
  12779. (getMissingBlockIndex): New function.
  12780. * src/Piece.cc
  12781. (operator==): New function.
  12782. (getMissingBlockIndex): New function.
  12783. * src/Peer.h
  12784. (DEFAULT_LATENCY): New definition.
  12785. (latency): New variable.
  12786. (updateLatency): New function.
  12787. (getLatency): New function.
  12788. * src/Peer.cc
  12789. (resetStatus): Reset latecy.
  12790. (updateLatency): New function.
  12791. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12792. * src/SocketCore.cc
  12793. (isReadable): Added secure to the condition.
  12794. * src/HttpConnection.cc
  12795. (receiveResponse): Fixed a bug that causes no response header
  12796. exception.
  12797. * src/Peer.h
  12798. (getFastSet): Fixed the return value type.
  12799. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12800. To remove a wait from download loop:
  12801. * src/DownloadEngine.cc
  12802. (run): Comment out shortSleep.
  12803. To rewrite the message handling:
  12804. * src/SimplePeerMessage.h: New class.
  12805. * src/SimplePeerMessage.cc: New class.
  12806. * src/CancelMessage.h: Derived from SimplePeerMessage.
  12807. (msg): New variable.
  12808. (create): New function.
  12809. (send): Removed.
  12810. (getMessage): New function.
  12811. (getMessageLength): New function.
  12812. * src/CancelMessage.cc
  12813. (create): New function.
  12814. (receivedAction): Replaced deleteRequestMessageInQueue with
  12815. rejectPieceMessageInQueue.
  12816. (send): Removed.
  12817. (getMessage): New function.
  12818. (getMessageLength): New function.
  12819. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  12820. (msg): New variable.
  12821. (msgLength): New variable.
  12822. (~BitfieldMessage): Deleted msg.
  12823. (send): Removed.
  12824. (getMessage): New function.
  12825. (getMessageLength): New function.
  12826. * src/BitfieldMessage.cc
  12827. (create): New function.
  12828. (send): Removed.
  12829. (getMessage): New function.
  12830. (getMessageLength): New function.
  12831. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  12832. (msg): New variable.
  12833. (sendPredicate): New function.
  12834. (onSendComplete): New function.
  12835. (send): Removed.
  12836. (getMessage): New function.
  12837. (getMessageLength): New function.
  12838. (create): New function.
  12839. * src/ChokeMessage.cc
  12840. (create): New function.
  12841. (send): Removed.
  12842. (sendPredicate): New function.
  12843. (getMessage): New function.
  12844. (getMessageLength): New function.
  12845. (onSendComplete): New function.
  12846. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  12847. (msg): New variable.
  12848. (send): Removed.
  12849. (getMessage): New function.
  12850. (getMessageLength): New function.
  12851. * src/KeepAliveMessage.cc
  12852. (send): Removed.
  12853. (getMessage): New function.
  12854. (getMessageLength): New function.
  12855. * src/PortMessage.h
  12856. (create): New function.
  12857. (receivedAction): Updated log message.
  12858. * src/PortMessage.cc: New file.
  12859. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  12860. (msg): New variable.
  12861. (sendPredicate): New function.
  12862. (onSendComplete): New function.
  12863. (create): New function.
  12864. (send): Removed.
  12865. (getMessage): New function.
  12866. (getMessageLength): New function.
  12867. * src/UnchokeMessage.cc
  12868. (create): New function.
  12869. (send): Removed.
  12870. (sendPredicate): New function.
  12871. (getMessage): New function.
  12872. (getMessageLength): New function.
  12873. (onSendComplete): New function.
  12874. * src/PieceMessage.h
  12875. (leftPieceDataLength): Removed.
  12876. (leftDataLength): New variable.
  12877. (headerSend): New variable.
  12878. (pendingCount): New variable.
  12879. (msgHeader): New variable.
  12880. (sendPieceData): New function.
  12881. (incrementPendingCount): New function.
  12882. (isPendingCountMax): New function.
  12883. (create): New function.
  12884. (getMessageHeader): New function.
  12885. (getMessageHeaderLength): New function.
  12886. * src/PieceMessage.cc
  12887. (create): New function.
  12888. (getMessageHeader): New function.
  12889. (getMessageHeaderLength): New function.
  12890. (send): Rewritten.
  12891. (sendPieceData): New function.
  12892. * src/HaveMessage.h: Derived from SimplePeerMessage.
  12893. (msg): New variable.
  12894. (create): New function.
  12895. (getMessage): New function.
  12896. (getMessageLength): New function.
  12897. * src/HaveMessage.cc
  12898. (create): New function.
  12899. (send): Removed.
  12900. (sendPieceData): New function.
  12901. (getMessage): New function.
  12902. (getMessageLength): New function.
  12903. * src/RequestMessage.h: Derived from SimplePeerMessage.
  12904. (msg): New variable.
  12905. (create): New function.
  12906. (send): Removed.
  12907. (getMessage): New function.
  12908. (getMessageLength): New function.
  12909. * src/RequestMessage.cc
  12910. (create): New function.
  12911. (receivedAction): Added the handling of fast extension.
  12912. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  12913. (send): Removed.
  12914. (getMessage): New function.
  12915. (getMessageLength): New function.
  12916. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  12917. (msg): New variable.
  12918. (sendPredicate): New function.
  12919. (onSendComplete): New function.
  12920. (create): New function.
  12921. (getMessage): New function.
  12922. (getMessageLength): New function.
  12923. * src/InterestedMessage.cc
  12924. (create): New function.
  12925. (send): Removed.
  12926. (sendPieceData): New function.
  12927. (getMessage): New function.
  12928. (getMessageLength): New function.
  12929. (onSendComplete): New function.
  12930. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  12931. (msg): New variable.
  12932. (sendPieceData): New function.
  12933. (onSendComplete): New function.
  12934. (create): New function.
  12935. (send): Removed.
  12936. (getMessage): New function.
  12937. (getMessageLength): New function.
  12938. * src/NotInterestedMessage.cc
  12939. (create): New function.
  12940. (send): Removed.
  12941. (sendPredicate): New function.
  12942. (getMessage): New function.
  12943. (getMessageLength): New function.
  12944. (onSendComplete): New function.
  12945. * src/AllowedFastMessage.h: New class.
  12946. * src/AllowedFastMessage.cc: New class.
  12947. * src/RejectMessage.h: New class.
  12948. * src/RejectMessage.cc: New class.
  12949. * src/SuggestPieceMessage.h: New class.
  12950. * src/SuggestPieceMessage.cc: New class.
  12951. * src/HaveAllMessage.h: New class.
  12952. * src/HaveAllMessage.cc: New class.
  12953. * src/HaveNoneMessage.h: New class.
  12954. * src/HaveNoneMessage.cc: New class.
  12955. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  12956. (msg): New variable.
  12957. (reserved): New variable.
  12958. (create): New function.
  12959. (getId): New function.
  12960. (receivedAction): New function.
  12961. (getMessage): New function.
  12962. (getMessageLength): New function.
  12963. (isFastExtensionSupported): New function.
  12964. * src/HandshakeMessage.cc
  12965. (HandshakeMessage): Moved here from HandshakeMessage.h.
  12966. (create): New function.
  12967. (getMessage): New function.
  12968. (getMessageLength): New function.
  12969. (toString): Added the output of reserved field.
  12970. (check): Added const qualifier.
  12971. (isFastExtensionSupported): New function.
  12972. * src/PeerMessageUtil.h
  12973. (createChokeMessage): Removed.
  12974. (createUnchokeMessage): Removed.
  12975. (createInterestedMessage): Removed.
  12976. (createNotInterestedMessage): Removed.
  12977. (createHaveMessage): Removed.
  12978. (createBitfieldMessage): Removed.
  12979. (createRequestMessage): Removed.
  12980. (createCancelMessage): Removed.
  12981. (createPieceMessage): Removed.
  12982. (createPortMessage): Removed.
  12983. (createChokeMessage): Removed.
  12984. (createUnchokeMessage): Removed.
  12985. (createInterestedMessage): Removed.
  12986. (createNotInterestedMessage): Removed.
  12987. (createHaveMessage): Removed.
  12988. (createBitfieldMessage): Removed.
  12989. (createRequestMessage): Removed.
  12990. (createCancelMessage): Removed.
  12991. (createPieceMessage): Removed.
  12992. (createKeepAliveMessage): Removed.
  12993. (createHandshakeMessage): Removed.
  12994. (setIntParam): New function.
  12995. (createPeerMessageString): New function.
  12996. * src/PeerMessageUtil.cc
  12997. (createChokeMessage): Removed.
  12998. (createUnchokeMessage): Removed.
  12999. (createInterestedMessage): Removed.
  13000. (createNotInterestedMessage): Removed.
  13001. (createHaveMessage): Removed.
  13002. (createBitfieldMessage): Removed.
  13003. (createRequestMessage): Removed.
  13004. (createCancelMessage): Removed.
  13005. (createPieceMessage): Removed.
  13006. (createPortMessage): Removed.
  13007. (createRequestMessage): Removed.
  13008. (createCancelMessage): Removed.
  13009. (createPieceMessage): Removed.
  13010. (createHaveMessage): Removed.
  13011. (createChokeMessage): Removed.
  13012. (createUnchokeMessage): Removed.
  13013. (createInterestedMessage): Removed.
  13014. (createNotInterestedMessage): Removed.
  13015. (createBitfieldMessage): Removed.
  13016. (createKeepAliveMessage): Removed.
  13017. (createHandshakeMessage): Removed.
  13018. (setIntParam): New function.
  13019. (createPeerMessageString): New function.
  13020. * src/PeerConnection.h
  13021. (peer): Removed.
  13022. (torrentMan): Removed.
  13023. (createNLengthMessage): Removed.
  13024. (setIntParam): Removed.
  13025. (writeOutgoingMessageLog): Removed all overloaded functions.
  13026. (PeerConnection): Deleted peer and torrentMan from its arguments.
  13027. (sendMessage): New function.
  13028. (sendHandshake): Removed.
  13029. (sendKeepAlive): Removed.
  13030. (sendChoke): Removed.
  13031. (sendUnchoke): Removed.
  13032. (sendInterested): Removed.
  13033. (sendNotInterested): Removed.
  13034. (sendHave): Removed.
  13035. (sendBitfield): Removed.
  13036. (sendRequest): Removed.
  13037. (sendPiece): Removed.
  13038. (sendPieceHeader): Removed.
  13039. (sendPieceData): Removed.
  13040. (sendCancel): Removed.
  13041. (getPeer): Removed.
  13042. * src/PeerConnection.cc
  13043. (PeerConnection): Deleted peer and torrentMan from its arguments.
  13044. (sendHandshake): Removed.
  13045. (sendKeepAlive): Removed.
  13046. (createNLengthMessage): Removed.
  13047. (setIntParam): Removed.
  13048. (writeOutgoingMessageLog): Removed all overloaded functions.
  13049. (sendChoke): Removed.
  13050. (sendUnchoke): Removed.
  13051. (sendInterested): Removed.
  13052. (sendNotInterested): Removed.
  13053. (sendHave): Removed.
  13054. (sendBitfield): Removed.
  13055. (sendRequest): Removed.
  13056. (sendPiece): Removed.
  13057. (sendPieceHeader): Removed.
  13058. (sendPieceData): Removed.
  13059. (sendMessage): New function.
  13060. (sendCancel): Removed.
  13061. * src/PeerInteractionCommand.cc
  13062. (PeerInteractionCommand): Call setUploadLimit.
  13063. (executeInternal): Call setUploadLimit.
  13064. Added the handling of "inProgress" state of handshake message.
  13065. Call sendBitfield() or sendAllowdFast() instead of deprecated
  13066. sendNow().
  13067. (keepAlive): Call addMessage and sendMessage instead of deprecated
  13068. sendNow().
  13069. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  13070. * src/TorrentMan.h
  13071. (PEER_ID_LENGTH): New definition.
  13072. (hasAllPieces): New function.
  13073. * src/TorrentMan.cc
  13074. (getMissingPiece): Added the handling of fast extension.
  13075. (cancelPiece): Call updatePiece().
  13076. (hasAllPieces): New function.
  13077. * src/PeerInteraction.h
  13078. (fastSet): New variable.
  13079. (getNewPieceAndSendInterest): Changed the return type to void.
  13080. (send): Renamed as sendMessages.
  13081. (deleteAllRequestSlot): Removed.
  13082. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  13083. (cancelAllRequest): Removed all overloaded functions.
  13084. (deleteAllRequestSlot): Removed.
  13085. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  13086. (rejectPieceMessageInQueue): New function.
  13087. (rejectAllPieceMessageInQueue): New function.
  13088. (onChoked): New function.
  13089. (isSendingMessageInProgress): New function.
  13090. (getCorrespondingRequestSlot): Changed its arguments.
  13091. (isInFastSet): New function.
  13092. (addFastSetIndex): New function.
  13093. (addRequests): New function.
  13094. (sendNow): Removed.
  13095. (trySendNow): Removed.
  13096. (sendBitfield): New function.
  13097. (sendAllowdFast): New function.
  13098. (createHaveAllMessage): New function.
  13099. (createHaveNoneMessage): New function.
  13100. (createRejectMessage): New function.
  13101. (createAllowedFastMessage): New function.
  13102. * src/PeerInteraction.cc
  13103. (send): Renamed as sendMessages.
  13104. (sendMessages): New function.
  13105. (MsgPushBack): New class.
  13106. (isSendingMessageInProgress): New function.
  13107. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  13108. (rejectAllPieceMessageInQueue): New function.
  13109. Added the handling of fast extension.
  13110. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  13111. (rejectPieceMessageInQueue): New function.
  13112. Added the handling of fast extension.
  13113. (deleteRequestSlot): Replaced for loop with std::find.
  13114. (onChoked): New function.
  13115. (deleteAllRequestSlot): Removed.
  13116. (abortPiece): Rewirtten.
  13117. (deleteTimeoutRequestSlot): Updated log messages.
  13118. (getCorrespondingRequestSlot): Changed its arguments.
  13119. (cancelAllRequest): Removed all overloaded functions.
  13120. (receiveHandshake): Added the check to see whether an incoming peer
  13121. supports fast extension.
  13122. (createHandshakeMessage): Use HandshakeMessage::create instead of
  13123. PeerMessageUtil.
  13124. (createPeerMessage): Use create() of each message class instead of
  13125. PeerMessageUtil.
  13126. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  13127. AllowedFastMessage were added.
  13128. (getNewPieceAndSendInterest): Changed its return value type to void.
  13129. Added the handling of fast extension.
  13130. (addRequests): New function.
  13131. (sendNow): Removed.
  13132. (sendHandshake): Rewritten.
  13133. (trySendNow): Removed.
  13134. (sendBitfield): New function.
  13135. (sendAllowdFast): New function.
  13136. (isInFastSet): New function.
  13137. (addFastSetIndex): New function.
  13138. (createRequestMessage): Use RequestMessage::create instead of
  13139. PeerMessageUtil.
  13140. (createCancelMessage): Use CancelMessage::create instead of
  13141. PeerMessageUtil.
  13142. (createPieceMessage): Use PieceMessage::create instead of
  13143. PeerMessageUtil.
  13144. (createHaveMessage): Use HaveMessage::create instead of
  13145. PeerMessageUtil.
  13146. (createChokeMessage): Use ChokeMessage::create instead of
  13147. PeerMessageUtil.
  13148. (createUnchokeMessage): Use UnchokeMessage::create instead of
  13149. PeerMessageUtil.
  13150. (createInterestedMessage): Use InterestedMessage::create instead of
  13151. PeerMessageUtil.
  13152. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  13153. of PeerMessageUtil.
  13154. (createBitfieldMessage): Use BitfieldMessage::create instead of
  13155. PeerMessageUtil.
  13156. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  13157. PeerMessageUtil.
  13158. (createHaveAllMessage): New function.
  13159. (createHaveNoneMessage): New function.
  13160. (createRejectMessage): New function.
  13161. (createAllowedFastMessage: New function.
  13162. * src/Util.h
  13163. (sha1Sum): New function.
  13164. (computeFastSet): New function.
  13165. * src/Util.cc
  13166. (sha1Sum): New function.
  13167. (computeFastSet): New function.
  13168. * src/Peer.h
  13169. (fastExtensionEnabled): New variable.
  13170. (fastSet): New variable.
  13171. (setAllBitfield): New function.
  13172. (setFastExtensionEnabled): New function.
  13173. (isFastExtensionEnabled): New function.
  13174. (addFastSetIndex): New function.
  13175. (getFastSet): New function.
  13176. (isInFastSet): New function.
  13177. (countFastSet): New function.
  13178. * src/Peer.cc
  13179. (isInFastSet): New function.
  13180. (addFastSetIndex): New function.
  13181. (setAllBitfield): New function.
  13182. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  13183. sockets.
  13184. * src/PeerAbstractCommand.cc
  13185. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  13186. and uploadLimit.
  13187. (execute): Changed the procedure of checking sockets. The upload speed
  13188. checking were added.
  13189. (setUploadLimit): New function.
  13190. (setUploadLimitCheck): New function.
  13191. * src/PeerAbstractCommand.h
  13192. (setUploadLimit): New function.
  13193. (setUploadLimitCheck): New function.
  13194. (uploadLimit): New variable.
  13195. (uploadLimitCheck): New variable.
  13196. To contact a tracker regularly:
  13197. * src/TrackerWatcherCommand.h (interval): New variable.
  13198. (checkPoint): New variable.
  13199. (TrackerWatcherCommand): Added interval argument.
  13200. * src/TrackerWatcherCommand.cc
  13201. (TrackerWatcherCommand): Initialized checkPoint.
  13202. (execute): Now a tracker is contacted in every specified period.
  13203. If peer list is not needed, send request with numwant=0.
  13204. * src/TrackerUpdateCommand.cc
  13205. (execute): Updated log messages.
  13206. * src/DownloadEngine.cc
  13207. (~DownloadEngine): Removed two asserts.
  13208. (waitData): Uncommented wfds. May be a bug fix.
  13209. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13210. * src/PeerInteractionCommand.h
  13211. (checkInactiveConnection): Removed.
  13212. * src/PeerInteractionCommand.cc
  13213. (executeInternal): Removed following function calls:
  13214. detectMessageFlooding(), checkLongTimePeerChoking and
  13215. checkInactiveConnection().
  13216. (checkInactiveConnection): Removed.
  13217. (detectMessageFlooding): Removed function call to
  13218. checkInactiveConnection().
  13219. * src/PeerMessageUtil.h
  13220. (createChokeMessage): New function. Overload.
  13221. (createUnchokeMessage): New function. Overload.
  13222. (createInterestedMessage): New function. Overload.
  13223. (createNotInterestedMessage): New function. Overload.
  13224. (createHaveMessage): New function. Overload.
  13225. (createBitfieldMessage): New function. Overload.
  13226. (createRequestMessage): New function. Overload.
  13227. (createCancelMessage): New function. Overload.
  13228. (createPieceMessage): New function. Overload.
  13229. (createKeepAliveMessage): New function. Overload.
  13230. * src/PeerMessageUtil.cc
  13231. (createChokeMessage): New function. Overload.
  13232. (createUnchokeMessage): New function. Overload.
  13233. (createInterestedMessage): New function. Overload.
  13234. (createNotInterestedMessage): New function. Overload.
  13235. (createHaveMessage): New function. Overload.
  13236. (createBitfieldMessage): New function. Overload.
  13237. (createRequestMessage): New function. Overload.
  13238. (createCancelMessage): New function. Overload.
  13239. (createPieceMessage): New function. Overload.
  13240. (createKeepAliveMessage): New function. Overload.
  13241. * src/SendMessageQueue.cc
  13242. (createRequestMessage): Use PeerMessageUtil.
  13243. (createCancelMessage): Use PeerMessageUtil.
  13244. (createPieceMessage): Use PeerMessageUtil.
  13245. (createHaveMessage): Use PeerMessageUtil.
  13246. (createChokeMessage): Use PeerMessageUtil.
  13247. (createUnchokeMessage): Use PeerMessageUtil.
  13248. (createInterestedMessage): Use PeerMessageUtil.
  13249. (createNotInterestedMessage): Use PeerMessageUtil.
  13250. (createBitfieldMessage): Use PeerMessageUtil.
  13251. (createKeepAliveMessage): Use PeerMessageUtil.
  13252. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  13253. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  13254. * src/PeerInteraction.h: New class.
  13255. * src/PeerInteraction.cc: New class.
  13256. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13257. Each peer message has its own class.
  13258. * src/PendingMessages.h: Removed.
  13259. * src/PendingMessages.cc: Removed. The sending process was moved to
  13260. each message class.
  13261. * src/RequestSlotMan.h: Removed.
  13262. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  13263. SendMessageQueue.
  13264. * src/RequestMessage.h: New class.
  13265. * src/RequestMessage.cc: New class.
  13266. * src/CancelMessage.h: New class.
  13267. * src/CancelMessage.cc: New class.
  13268. * src/BitfieldMessage.h: New class.
  13269. * src/BitfieldMessage.cc: New class.
  13270. * src/ChokeMessage.h: New class.
  13271. * src/ChokeMessage.cc: New class.
  13272. * src/KeepAliveMessage.h: New class.
  13273. * src/KeepAliveMessage.cc: New class.
  13274. * src/PortMessage.h: New class.
  13275. * src/UnchokeMessage.h: New class.
  13276. * src/UnchokeMessage.cc: New class.
  13277. * src/PieceMessage.h: New class.
  13278. * src/PieceMessage.cc: New class.
  13279. * src/HaveMessage.h: New class.
  13280. * src/HaveMessage.cc: New class.
  13281. * src/BitfieldMessage.h: New class.
  13282. * src/BitfieldMessage.cc: New class.
  13283. * src/NotInterestedMessage.h: New class.
  13284. * src/NotInterestedMessage.cc: New class.
  13285. * src/InterestedMessage.h: New class.
  13286. * src/InterestedMessage.cc: New class.
  13287. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  13288. (getSendMessageQueue): New function.
  13289. (setSendMessageQueue): New function.
  13290. * src/HandshakeMessage.cc: New class.
  13291. * src/PeerConnection.h (receiveMessage): Changed return value and
  13292. arguments.
  13293. (receiveHandshake): Changed return value and arguments.
  13294. * src/PeerConnection.cc (receiveMessage): Do not create message class
  13295. here.
  13296. (receiveHandshake): Do not create handshake class here.
  13297. * src/PeerInteractionCommand.h (peerConnection): Removed.
  13298. (piece): Removed.
  13299. (syncPiece): Removed.
  13300. (sendInterest): Removed.
  13301. (sendMessages): Removed.
  13302. (createRequestPendingMessage): Removed.
  13303. (checkPieceHash): Removed.
  13304. (erasePieceOnDisk): Removed.
  13305. (getNewPieceAndSendInterest): Removed.
  13306. (onGotNewPice): Removed.
  13307. (onGotWrongPiece): Removed.
  13308. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13309. Removed peerConnection, piece.
  13310. (~PeerInteractionCommand): Removed peerConnection.
  13311. (executeInternal): Use sendMessageQueue instead of peerConnection.
  13312. (syncPiece): Moved to SendMessageQueue.
  13313. (decideChoking): Removed PendingMessage.
  13314. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  13315. The action after receiving peer message was moved to each message
  13316. class.
  13317. (onGotNewPice): Moved to SendMessageQueue.
  13318. (onGotWrongPiece): Moved to SendMessageQueue.
  13319. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  13320. (sendInterest): Moved to SendMessageQueue.
  13321. (createRequestPendingMessage): Removed.
  13322. (sendMessages): Moved to SendMessageQueue.
  13323. (onAbort): Use SendMessageQueue::abortPiece()
  13324. (keepAlive): Use sendMessageQueue instead of peerConnection.
  13325. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  13326. (checkPieceHash): Moved to SendMessageQueue.
  13327. (erasePieceOnDisk): Moved to SendMessageQueue.
  13328. * src/PeerMessageUtil.h
  13329. (createBitfieldMessage): Removed.
  13330. (createHaveMessage): Changed return value and arguments.
  13331. (createBitfieldMessage): Changed return value and arguments.
  13332. (createRequestCancelMessage): Removed.
  13333. (createPieceMessage): Changed return value and arguments.
  13334. (getShortIntParam): New function.
  13335. (checkIndex): Changed arguments.
  13336. (checkBegin): Changed arguments.
  13337. (checkLength): Changed arguments.
  13338. (checkPieceOffset): Removed.
  13339. (checkRange): New function.
  13340. (checkBitfield): Changed arguments.
  13341. (createPeerMessage): Removed.
  13342. (checkIntegrity): Removed.
  13343. (createHandshakeMessage): Changed arguments.
  13344. (createChokeMessage): New function.
  13345. (createUnchokeMessage): New function.
  13346. (createInterestedMessage): New function.
  13347. (createNotInterestedMessage): New function.
  13348. (createRequestMessage): New function.
  13349. (createCancelMessage): New function.
  13350. (createPortMessage): New function.
  13351. * src/PeerMessageUtil.cc
  13352. (createBitfieldMessage): Removed.
  13353. (createHaveMessage): Changed return value and arguments.
  13354. (createBitfieldMessage): Changed return value and arguments.
  13355. (createRequestCancelMessage): Removed.
  13356. (createPieceMessage): Changed return value and arguments.
  13357. (getShortIntParam): New function.
  13358. (checkIndex): Changed arguments.
  13359. (checkBegin): Changed arguments.
  13360. (checkLength): Changed arguments.
  13361. (checkPieceOffset): Removed.
  13362. (checkRange): New function.
  13363. (checkBitfield): Changed arguments.
  13364. (createPeerMessage): Removed.
  13365. (checkIntegrity): Removed.
  13366. (createHandshakeMessage): Changed arguments.
  13367. (createChokeMessage): New function.
  13368. (createUnchokeMessage): New function.
  13369. (createInterestedMessage): New function.
  13370. (createNotInterestedMessage): New function.
  13371. (createRequestMessage): New function.
  13372. (createCancelMessage): New function.
  13373. (createPortMessage): New function.
  13374. * src/PeerMessage.h
  13375. (id): Removed.
  13376. (index): Removed.
  13377. (begin): Removed.
  13378. (length): Removed.
  13379. (bitfield): Removed.
  13380. (bitfieldLength): Removed.
  13381. (block): Removed.
  13382. (blockLength): Removed.
  13383. (inProgress): New variable.
  13384. (cuid): New variable.
  13385. (peer): New variable.
  13386. (sendMessageQueue): New variable.
  13387. (logger): New variable.
  13388. (setBitfield): Removed.
  13389. (getBitfield): Removed.
  13390. (setBlock): Removed.
  13391. (getBlock): Removed.
  13392. (getBitfieldLength): Removed.
  13393. (getBlockLength): Removed.
  13394. (isInProgress): New function.
  13395. (toString): Made pure virtual.
  13396. (check): New function.
  13397. (send): New function.
  13398. (receivedAction): New function.
  13399. (getId): Made pure virtual.
  13400. (setId): Removed.
  13401. (getIndex): Removed.
  13402. (setIndex): Removed.
  13403. (getBegin): Removed.
  13404. (setBegin): Removed.
  13405. (getLength): Removed.
  13406. (setLength): Removed.
  13407. (getCuid): New function.
  13408. (setCuid): New function.
  13409. (getPeer): New function.
  13410. (setPeer): New function.
  13411. (getSendMessageQueue): New function.
  13412. (setSendMessageQueue): New function.
  13413. (ID): Removed.
  13414. * src/PeerMessage.cc
  13415. (setBitfield): Removed.
  13416. (setBlock): Removed.
  13417. (toString): Removed.
  13418. * src/TorrentMan.h
  13419. (getPieceLength): New function.
  13420. (getPieceLength): New function.
  13421. * src/SendMessageQueue.h
  13422. (REQUEST_TIME_OUT): New definition.
  13423. (RequestSlots): New definition.
  13424. (MessageQueue): New definition.
  13425. (requestSlotMan): Removed.
  13426. (pendingMessages): Removed.
  13427. (requestSlots): New variable.
  13428. (messageQueue): New variable.
  13429. (torrentMan): New variable.
  13430. (peerConnection): New variable.
  13431. (peer): New variable.
  13432. (piece): New variable.
  13433. (getNewPieceAndSendInterest): New function.
  13434. (createPeerMessage): New function.
  13435. (createHandshakeMessage): New function.
  13436. (send): Made private.
  13437. (setPeerMessageCommonProperty): New function.
  13438. (deleteAllRequestSlot): New function.
  13439. (deleteRequestMessageInQueue): New function.
  13440. (cancelAllRequest): Made private.
  13441. (cancelAllRequest): Made private.
  13442. (countRequestSlot): Made private.
  13443. (addPendingMessage): Removed.
  13444. (deletePendingPieceMessage): Removed.
  13445. (deletePendingRequestMessage): Removed.
  13446. (addMessage): New function.
  13447. (deletePieceMessageInQueue): New function.
  13448. (deleteTimeoutRequestSlot): Changed argument.
  13449. (deleteCompletedRequestSlot): Changed argument.
  13450. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  13451. (getCorrespondingRequestSlot): New function.
  13452. (countPendingMessage): Removed.
  13453. (countMessageInQueue): New function.
  13454. (getTorrentMan): New function.
  13455. (getPeerConnection): New function.
  13456. (hasDownloadPiece): New function.
  13457. (getDownloadPiece): New function.
  13458. (setDownloadPiece): New function.
  13459. (syncPiece): New function.
  13460. (sendMessages): New function.
  13461. (sendNow): New function.
  13462. (trySendNow): New function.
  13463. (abortPiece): New function.
  13464. (sendHandshake): New function.
  13465. (receiveMessage): New function.
  13466. (receiveHandshake): New function.
  13467. (createRequestMessage): New function.
  13468. (createCancelMessage): New function.
  13469. (createPieceMessage): New function.
  13470. (createHaveMessage): New function.
  13471. (createChokeMessage): New function.
  13472. (createUnchokeMessage): New function.
  13473. (createInterestedMessage): New function.
  13474. (createNotInterestedMessage): New function.
  13475. (createBitfieldMessage): New function.
  13476. (createKeepAliveMessage): New function.
  13477. * src/SendMessageQueue.cc
  13478. (SendMessageQueue): Removed requestSlotMan.
  13479. Instantiated peerConnection here.
  13480. (~SendMessageQueue): Removed requestSlotMan.
  13481. Added deletion of peerConnection and the contents of messageQueue.
  13482. (send): Updated according to the change of messageQueue.
  13483. (addPendingMessage): Renamed to addMessage.
  13484. (addMessage): New function.
  13485. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  13486. (deletePieceMessageInQueue): New function.
  13487. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  13488. (deleteRequestMessageInQueue): New function.
  13489. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  13490. here.
  13491. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  13492. (...) was moved here.
  13493. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  13494. moved here.
  13495. (deleteCompletedRequestSlot):
  13496. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  13497. (getCorrespondingRequestSlot):
  13498. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  13499. And renamed to getCorrespondingRequestSlot, correcting a typo.
  13500. (countPendingMessage): Renamed to countMessageInQueue.
  13501. (countMessageInQueue): New function.
  13502. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  13503. (receiveHandshake): New function.
  13504. (createHandshakeMessage): New function.
  13505. (receiveMessage): New function.
  13506. (createPeerMessage): New function.
  13507. (syncPiece): New function.
  13508. (getNewPieceAndSendInterest): New function.
  13509. (sendMessages): New function.
  13510. (sendNow): New function.
  13511. (trySendNow): New function.
  13512. (sendHandshake): New function.
  13513. (abortPiece): New function.
  13514. (getDownloadPiece): New function.
  13515. (getPeerMessageCommonProperty): New function.
  13516. (createRequestMessage): New function.
  13517. (createCancelMessage): New function.
  13518. (createPieceMessage): New function.
  13519. (createHaveMessage): New function.
  13520. (createChokeMessage): New function.
  13521. (createUnchokeMessage): New function.
  13522. (createInterestedMessage): New function.
  13523. (createNotInterestedMessage): New function.
  13524. (createBitfieldMessage): New function.
  13525. (createKeepAliveMessage): New function.
  13526. To add simple Content-Disposition support:
  13527. * src/HttpResponseCommand.h (determinFilename): New function.
  13528. * src/HttpResponseCommand.cc (executeInternal):
  13529. Use determinFilename(headers) instead of req->getFile() when comparing
  13530. filename.
  13531. (determinFilename): New function.
  13532. (handleDefaultEncoding): Use determinFilename(headers) instead of
  13533. req->getFile().
  13534. (handleOtherEncoding): Use determinFilename(headers) instead of
  13535. req->getFile().
  13536. * src/Util.h (getContentDispositionFilename): New function.
  13537. * src/Util.cc (getContentDispositionFilename): New function.
  13538. * src/LogFactory.h (release): New function.
  13539. * src/LogFactory.cc (release): New function.
  13540. To fix a bug that causes out-of-bound exception when HTTP status
  13541. line is wrong:
  13542. * src/HttpConnection.cc (receiveResponse): Added a check for header
  13543. size.
  13544. * src/common.h (Deleter): New class.
  13545. * src/SegmentMan.cc
  13546. (~SegmentMan): Added deletion of splitter and diskWriter.
  13547. * src/DownloadEngine.h
  13548. (Commands): Use deque.
  13549. (clearQueue): New function.
  13550. * src/DownloadEngine.cc
  13551. (~DownloadEngine): Added deletion of segmentMan.
  13552. (cleanQueue): New function.
  13553. * src/TorrentDownloadEngine.h
  13554. (TorrentDownloadEngine): The implementation was moved to
  13555. TorrentDownloadEngine.cc.
  13556. (~TorrentDownloadEngine): The implementation was moved to
  13557. TorrentDownloadEngine.cc.
  13558. * src/TorrentDownloadEngine.cc
  13559. (~TorrentDownloadEngine): Added deletion of torrentMan.
  13560. * src/main.cc
  13561. (clearRequest): Removed.
  13562. (handler): Added deletion of e.
  13563. (torrentHandler): Added deletion of te.
  13564. (main): Do not share splitter.
  13565. Use Deleter instead of clearRequest.
  13566. Deletion of classes were updated.
  13567. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13568. * src/main.cc (main): Fixed typo.
  13569. * src/message.h: Fixed typo.
  13570. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  13571. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13572. To add --select-file command-line option:
  13573. * src/Util.cc
  13574. (unfoldRange): New function.
  13575. (getNum): New function.
  13576. (unfoldSubRange): New function
  13577. * src/main.cc
  13578. (showUsage): Added help message.
  13579. (main): Added --select-file command-line option. Updated the layout of
  13580. file listing.
  13581. * src/common.h
  13582. (Integers): New definition.
  13583. * src/SocketCore.cc
  13584. (writeData): Removed timeout argument.
  13585. (readData): Removed timeout argument.
  13586. (peekData): Removed timeout argument.
  13587. * src/Socket.cc
  13588. (writeData): Removed timeout argument.
  13589. (readData): Removed timeout argument.
  13590. (peekData): Removed timeout argument.
  13591. * Release 0.4.1
  13592. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13593. To deploy upload rate based choking algorithm:
  13594. * src/PeerInteractionCommand.cc
  13595. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  13596. peer currently used.
  13597. (decideChoking): Deleted the choke/unchoke decision algorithm when
  13598. download completes. Simplified.
  13599. (receiveMessage): Updated.
  13600. * src/TorrentMan.h
  13601. (activePeers): New variable.
  13602. (addActivePeer): New function.
  13603. (getActivePeers): New function.
  13604. (deleteActivePeer): New function.
  13605. * src/TorrentMan.cc
  13606. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  13607. * src/PeerAbstractCommand.cc
  13608. (onAbort): Use peer->resetStatus().
  13609. * src/main.cc
  13610. (PeerChokeCommand.h): Included.
  13611. (main): Added the instance of ChokingCommand to the command queue.
  13612. * src/Peer.h
  13613. (amChoking): Renamed from amChocking
  13614. (chokingRequired): New variable.
  13615. (optUnchoking): New variable.
  13616. (deltaUpload): New variable.
  13617. (deltaDownload): New variable.
  13618. (addDeltaUpload): New function.
  13619. (resetDeltaUpload): New function.
  13620. (addDeltaDownload): New function.
  13621. (resetDeltaDownload): New function.
  13622. (addPeerUpload): Added a call to addDeltaUpload.
  13623. (addPeerDownload): Added a call to addDeltaDownload.
  13624. * src/Peer.cc
  13625. (shouldBeChoking): Renamed from shouldChoke.
  13626. (resetStatus): New function.
  13627. * src/PeerChokeCommand.h: New class.
  13628. * src/PeerChokeCommand.cc: New class.
  13629. To add lazy upload speed limiter:
  13630. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  13631. statistics calculation to TorrentDownloadEngine.
  13632. * src/TorrentConsoleDownloadEngine.cc
  13633. (sendStatistics): Renamed from printStatistics.
  13634. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  13635. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  13636. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  13637. * src/TorrentDownloadEngine.h: Added the variables for statistics
  13638. calculation.
  13639. (sendStatistics): New function as pure virtual function.
  13640. (getUploadSpeed): New function.
  13641. * src/TorrentDownloadEngine.cc
  13642. (initStatistics): New function.
  13643. (calculateSpeed): New function.
  13644. (calculateStatistics): New function.
  13645. * src/SendMessageQueue.h
  13646. (uploadLength): New variable.
  13647. (send): Added an argument.
  13648. (setUploadLimit): New function.
  13649. (getUploadLimit): New function.
  13650. * src/SendMessageQueue.cc
  13651. (send): Added upload speed limiter.
  13652. * src/prefs.h
  13653. (PREF_UPLOAD_LIMIT): New definition.
  13654. * src/PeerInteractionCommand.cc
  13655. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  13656. * src/main.cc
  13657. (main): Added --upload-limit option
  13658. For bug fixes:
  13659. * src/main.cc
  13660. (showUsage): Corrected --listen-port help
  13661. Other changes:
  13662. * src/TorrentMan.cc
  13663. (getPeer): Return nullPeer if connection is grather than
  13664. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  13665. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13666. To add some useful information to the exception message:
  13667. * src/SocketCore.cc : Updated messages.
  13668. * src/SegmentMan.cc :
  13669. * src/TorrentMan.cc : Updated messages.
  13670. * src/MultiDiskWriter.cc : Updated messages.
  13671. * src/Util.cc : Updated messages.
  13672. * src/AbstractDiskWriter.cc : Updated messages.
  13673. * src/PreAllocationDiskWriter.cc : Updated messages.
  13674. * src/message.cc : Added new messages. Updated some messages.
  13675. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  13676. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  13677. Updated threshold from 30 to 15.
  13678. * src/AbstractDiskWriter.h (filename): New variable.
  13679. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  13680. (createFile): Assigned filename.
  13681. * src/main.cc: Updated the help message for http-auth-scheme.
  13682. * Release 0.4.0
  13683. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13684. To add TrackerUpdateCommand with which replaces
  13685. CompactTrackerResponseProcessor:
  13686. * src/TrackerWatcherCommand.h (req): Removed.
  13687. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  13688. if the number of peer connections are less than 30.
  13689. * src/ByteArrayDiskWriter.h (readData): Implemented.
  13690. * src/SegmentMan.h (diskWriter): New function.
  13691. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  13692. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  13693. (main): Use TrackerUpdateCommand.
  13694. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  13695. (req): New variable.
  13696. (setTrackerResponseProcessor): Removed.
  13697. (getTrackerResponseProcessor): Removed.
  13698. (processTrackerResponse): Removed.
  13699. * src/DownloadEngine.h (diskWriter): Removed.
  13700. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  13701. to torrentMan->processTrackerResponse().
  13702. To add Util::expandBuffer:
  13703. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  13704. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  13705. * src/Util.h (expandBuffer): New function.
  13706. To fix the bug that causes segmentation fault when "-l ." is specified
  13707. in command-line option:
  13708. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  13709. (openFile): New function.
  13710. (closeFile): New function.
  13711. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  13712. (~SimpleLogger): Call closeFile();
  13713. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  13714. * src/main.cc (main): Added a check to see logger is configured
  13715. properly.
  13716. To enable HTTP authentication without specifying "--http-auth-scheme"
  13717. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  13718. * src/HttpConnection.cc (createRequest): Send Authorization header
  13719. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  13720. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  13721. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  13722. * src/Peer.cc (shouldChoke): Updated algorithm.
  13723. * src/message.h (EX_AUTH_FAILED): New definition.
  13724. (EX_FILE_OPEN): New definition.
  13725. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  13726. if status == 401.
  13727. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  13728. if req->isTorrent == true.
  13729. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  13730. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  13731. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  13732. (createFile): Updated message.
  13733. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13734. To add a readout of estimated remaining time to normal HTTP/FTP
  13735. downloads:
  13736. * src/ConsoleDownloadEngine.h (startup): New variable.
  13737. (startupLength): New variable.
  13738. (isStartupLengthSet): New variable.
  13739. (avgSpeed): New variable.
  13740. (eta): New variable.
  13741. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  13742. estimated remaining time.
  13743. (initStatistics): Initialized newly added variables.
  13744. (calculateStatistics): Calculate average speed and estimated remaining
  13745. time.
  13746. To decouple TorrentDownloadEngine from HttpResponseCommand:
  13747. * src/TrackerDownloadCommand.h: Removed.
  13748. * src/TrackerDownloadCommand.cc: Removed.
  13749. * src/TrackerInitCommand.h: Removed.
  13750. * src/TrackerInitCommand.cc: Removed.
  13751. * src/TrackerUpdateCommand.h: Removed.
  13752. * src/TrackerUpdateCommand.cc: Removed.
  13753. * src/TrackerWatcherCommand.cc (execute): The construction of request
  13754. url written in TrackerInitCommand was moved here. Do not create
  13755. tracker request command if torrentMan->trackers != 0.
  13756. * src/CompactTrackerResponseProcessor.h: New class.
  13757. * src/CompactTrackerResponseProcessor.cc: New class.
  13758. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  13759. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  13760. Decoupled TorrentDownloadEngine from this.
  13761. * src/SegmentMan.h (init): New function.
  13762. * src/SegmentMan.cc (init): New function.
  13763. * src/TorrentMan.h (responseProcessor): New variable.
  13764. (trackers): New variable.
  13765. (setTrackerResponseProcessor): New function.
  13766. (getTrackerResponseProcessor): New function.
  13767. (processTrackerResponse): New function.
  13768. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  13769. (processTrackerResponse): New function.
  13770. * src/main.cc (main): Use ByteArrayDiskWriter and
  13771. CompactTrackerResponseProcessor.
  13772. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  13773. processTrackerResponse().
  13774. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  13775. readout.
  13776. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  13777. which indicates download has completed.
  13778. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  13779. (closeFile): fd >= 0, not fd > 0
  13780. * src/main.cc (main): Added short cut for show-files.
  13781. Added short cut for torrent-file.
  13782. Added new command-line option listen-port.
  13783. Updated i18n messages.
  13784. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13785. To add LogFactory which creates singleton logger:
  13786. * src/LogFactory.h: New class.
  13787. * src/LogFactory.cc: New class.
  13788. * src/Command.h (logger): New variable.
  13789. (Constructor): Use LogFactory.
  13790. * src/AbstractCommand.cc: Use Command::logger
  13791. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  13792. Use LogFactory.
  13793. * src/SegmentSplitter.h : Made logger protected.
  13794. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  13795. * src/SegmentMan.cc (Constructor): Use LogFactory.
  13796. * src/DownloadEngine.h : Made logger protected.
  13797. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  13798. * src/PeerInteractionCommand.cc : Use Command::logger.
  13799. * src/HttpResponseCommand.cc : Use Command::logger.
  13800. * src/SegmentMan.h : Made logger private.
  13801. * src/TorrentMan.h : Made logger private.
  13802. * src/TorrentMan.cc : Use LogFactory.
  13803. * src/FtpNegotiateCommand.cc : Use Command::logger.
  13804. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  13805. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  13806. Use LogFactory.
  13807. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  13808. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  13809. Use LogFactory.
  13810. * src/DownloadCommand.cc : Use Command::logger.
  13811. * src/PeerAbstractCommand.cc : Use Command::logger.
  13812. * src/PeerListenCommand.cc : Use Command::logger.
  13813. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  13814. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  13815. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  13816. * src/TrackerWatcherCommand.cc : Use Command::logger.
  13817. * src/TrackerUpdateCommand.cc : Use Command::logger.
  13818. * src/TrackerDownloadCommand.cc : Use Command::logger.
  13819. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  13820. Use LogFactory.
  13821. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  13822. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  13823. Use LogFactory.
  13824. * src/main.cc (main): Use LogFactory.
  13825. * src/DiskAdaptor.h (logger): New variable.
  13826. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  13827. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  13828. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13829. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  13830. parameter to a tracker request.
  13831. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  13832. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  13833. * src/main.cc (setSignalHander): New function.
  13834. (main): Added a handler for SIGTERM.
  13835. (handler): Updated message.
  13836. (torrentHandler): Updated message.
  13837. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13838. * src/TorrentConsoleDownloadEngine.cc
  13839. (onPartialDownloadingCompletes): Renamed as
  13840. onSelectiveDownloadingCompletes.
  13841. (onSelectiveDownloadingCompletes): Updated message.
  13842. To add DiskAdaptor which abstract DiskWriter family:
  13843. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  13844. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  13845. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  13846. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  13847. MultiDiskAdaptor.h.
  13848. (readFileEntry): Changed its arguments.
  13849. (setup): setupDiskWriter is merged into this function.
  13850. (setupDiskWriter): Removed.
  13851. (setFileFilter): New function.
  13852. (readFileEntryFromMetaInfoFile): Updated according to the changes
  13853. made in readFileEntry.
  13854. (getFilePath): Removed.
  13855. (getTempFilePath): Removed.
  13856. (getSegmentFilePath): Updated due to the removal of getFilePath.
  13857. (fixFilename): Removed.
  13858. (copySingleFile): Removed.
  13859. (splitMultiFile): Removed.
  13860. (deleteTempFile): Removed.
  13861. (setFileEntriesToDownload): Removed.
  13862. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  13863. (isSelectiveDownloadingMode): New function.
  13864. (setAllMultiFileRequestedState): Removed.
  13865. (finishPartialDownloadingMode): Renamed as
  13866. finishSelectiveDownloadingMode.
  13867. (finishSelectiveDownloadingMode): New function.
  13868. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  13869. (getSelectedTotalLength): New function.
  13870. (onDownloadComplete): Use diskAdaptor.
  13871. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  13872. (Range): Removed.
  13873. (setMultiFileEntries): Renamed as setFileEntries.
  13874. (setFileEntries): New function.
  13875. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  13876. (pieceLength): New variable.
  13877. * src/main.cc (printDownloadCompeleteMessage): New function.
  13878. (torrentHandler): Use diskAdaptor instead of diskWriter.
  13879. (main): Renamed torrent-show-files to show-files.
  13880. Rewritten file contents listing.
  13881. * src/TorrentMan.h (FileEntry): Removed.
  13882. (multiFileTopDir): Removed.
  13883. (multiFileEntries): Removed.
  13884. (diskWriter): Removed.
  13885. (diskAdaptor): New variable.
  13886. * src/DefaultDiskWriter.h (totalLength): New variable.
  13887. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  13888. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  13889. diskWriter.
  13890. * src/TorrentConsoleDownloadEngine.h
  13891. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  13892. (partialTotalLength): Renamed as selectedTotalLength.
  13893. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  13894. openExistingFile, otherwise call initAndOpenFile.
  13895. (closeFile): fd > 0, not fd != 0.
  13896. * src/DirectDiskAdaptor.h: New class.
  13897. * src/DirectDiskAdaptor.cc: New class.
  13898. * src/MultiDiskAdaptor.h: New class.
  13899. * src/MultiDiskAdaptor.cc: New class.
  13900. * src/CopyDiskAdaptor.h: New class.
  13901. * src/CopyDiskAdaptor.cc: New class.
  13902. * src/DiskAdaptor.h: New class.
  13903. * src/DiskAdaptor.cc: New class.
  13904. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  13905. (PREF_SHOW_FILES): New definition.
  13906. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13907. To add the ability to download multi torrent into respective files
  13908. directly:
  13909. * src/DiskWriter.h (openFile): New function.
  13910. (seek): Removed.
  13911. * src/MultiDiskWriter.h: New class.
  13912. * src/MultiDiskWriter.cc: New class.
  13913. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  13914. protected.
  13915. (openFile): New function.
  13916. * src/AbstractDiskWriter.cc (openFile): New function.
  13917. * src/prefs.h (V_FALSE): New definition.
  13918. (PREF_DIRECT_FILE_MAPPING): New definition.
  13919. * src/TorrentMan.h (setupDiskWriter): New function.
  13920. (setAllMultiFileRequestedState): New function.
  13921. (onDownloadComplete): New function.
  13922. * src/TorrentMan.cc : Included MultiDiskWriter.h
  13923. (setupDiskWriter): New function.
  13924. (getFilePath): Updated.
  13925. (getTempFilePath): Updated.
  13926. (getSegmentFilePath): Updated.
  13927. (fixFilename): Updated.
  13928. (deleteTempFile): Updated.
  13929. (setAllMultiFileRequestedState): New function.
  13930. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  13931. (finishPartialDownloadingMode): Reset requested flags.
  13932. (onDownloadComplete): New function.
  13933. * src/main.cc: Added --direct-file-mapping option.
  13934. Use TorrentMan::setupDiskWriter().
  13935. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  13936. onDownloadComplete().
  13937. To fix ETA bug:
  13938. * src/Util.h (difftvsec): New function.
  13939. * src/Util.cc (difftvsec): New function.
  13940. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  13941. type of "elapsed" instead of long long int.
  13942. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  13943. The updates of statistics takes place every 1 seconds.
  13944. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  13945. (calculateSpeed): Changed its argument signature.
  13946. * src/PeerMessage.cc (toString): Fixed message.
  13947. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13948. To print ETA:
  13949. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  13950. completion handling when dealing with
  13951. TorrentMan::isPartialDownloadingMode() == true.
  13952. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  13953. New function.
  13954. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  13955. (sessionDownloadLength): New variable.
  13956. (avgSpeed): New variable.
  13957. (eta): New variable.
  13958. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  13959. new variables: eta, avgSpeed, startup.
  13960. (calculateSpeed): Calculate average speed and ETA.
  13961. (printStatistics): Added ETA.
  13962. * src/Util.h (secfmt): New function.
  13963. * src/Util.cc (secfmt): New function.
  13964. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13965. To detect "keep alive" flooding:
  13966. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  13967. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  13968. variable: keepAliveCount.
  13969. (detectMessageFlooding): Added "keep alive" flooding detection.
  13970. (receiveMessage): Increase keepAliveCount when "keep alive" message
  13971. received.
  13972. To add the ability to download only specified files in multi-file
  13973. torrent:
  13974. * src/BitfieldMan.h (filterBitfield): New variable.
  13975. (filterEnabled): New variable.
  13976. (setFilterBit): New function.
  13977. (enableFilter): New function.
  13978. (disableFilter): New function.
  13979. (isFilterEnabled): New function.
  13980. (getFilteredTotalLength): New function.
  13981. (getCompletedLength): New function.
  13982. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  13983. filterBitfield, filterEnabled.
  13984. (CopyConstructor): Added filterBitfield and filterEnabled.
  13985. (operator==): Added filterBitfield and filterEnabled.
  13986. (Destructor): Added filterBitfield.
  13987. (getMissingIndex): Use filterBitfield.
  13988. (getMissingUnusedIndex): Use filterBitfield.
  13989. (getFirstMissingUnusedIndex): Use filterBitfield.
  13990. (getFirstMissingUnusedIndex): Use filterBitfield.
  13991. (getAllMissingIndexes): Use filterBitfield.
  13992. (countMissingBlock): Use filterBitfield.
  13993. (countBlock): Use filterBitfield.
  13994. (setBitInternal): Added new argument on.
  13995. (setUseBit): Use setBitInternal.
  13996. (unsetUseBit): Use setBitInternal.
  13997. (setBit): Use setBitInternal.
  13998. (unsetBit): Use setBitInternal.
  13999. (isAllBitSet): Use filterBitfield.
  14000. (setFilterBit): New function.
  14001. (addFilter): New function.
  14002. (enableFilter): New function.
  14003. (disableFilter): New function.
  14004. (clearFilter): New function.
  14005. (isFilterEnabled): New function.
  14006. (getFilteredTotalLength): New function.
  14007. (getCompletedLength): New function.
  14008. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  14009. Initalized newly added variables.
  14010. [FileEntry](offset): New variable.
  14011. [FileEntry](extracted): New variable.
  14012. [FileEntry](requested): New variable.
  14013. (readFileEntry): New function.
  14014. (option): New variable.
  14015. (splitMultiFile): Removed const qualifier.
  14016. (fixFilename): Removed const qualifier.
  14017. (readFileEntryFromMetaInfoFile): New function.
  14018. (finishPartialDownloadingMode): New function.
  14019. (isPartialDownloadingMode): New function.
  14020. (setFileEntriesToDownload): New function.
  14021. (getCompletedLength): New function.
  14022. (getPartialTotalLength): New function.
  14023. * src/TorrentMan.cc (readFileEntry): New function.
  14024. (setup): Use readFileEntry. If no-preallocation option is specified,
  14025. use DefaultDiskWriter.
  14026. (readFileEntryFromMetaInfoFile): New function.
  14027. (fixFilename): Removed const qualifier.
  14028. (splitMultiFile): Removed const qualifier.
  14029. (setFileEntriesToDownload): New function.
  14030. (isPartialDownloadingMode): New function.
  14031. (finishPartialDownloadingMode): New function.
  14032. (getCompletedLength): New function.
  14033. (getPartialTotalLength): New function.
  14034. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  14035. New variable.
  14036. (partialTotalLength): New variable.
  14037. (downloadLength): New variable.
  14038. (totalLength): New variable.
  14039. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  14040. Added log.
  14041. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  14042. partialTotalLength, downloadLength, totalLength.
  14043. (calculate): Calculate downloadLength and totalLength.
  14044. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  14045. * src/main.cc (addCommand): Changed argument signature.
  14046. (main): Added new variable: args. Added new option "torrent-show-files"
  14047. "no-preallocation". Usage is not updated yet.
  14048. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14049. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  14050. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14051. Attempt to add the ability to listing file entries in a .torrent file.
  14052. This feature is not yet complete.
  14053. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  14054. * src/TorrentMan.cc (getMultiFileEntries): New function.
  14055. (getName): New function.
  14056. * src/TorrentMan.h (getMultiFileEntries): New function.
  14057. (getName): New function.
  14058. * src/main.cc (main): Use above 2 funtion.
  14059. * Release 0.3.2
  14060. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14061. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  14062. (detectMessageFlooding): Updated threshold value.
  14063. (checkLongTimePeerChoking): Updated timeout value.
  14064. (getNewPieceAndSendInterest): Added debug log.
  14065. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  14066. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  14067. (getPeer): Updated.
  14068. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  14069. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  14070. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  14071. is localhost.
  14072. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  14073. * src/PendingMessage.cc (processMessage): Not to send piece message
  14074. if peer is not interested in the pieces localhost has.
  14075. * src/Peer.cc (shouldChoke): Updated.
  14076. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  14077. * src/Util.cc (isPowerOf): New function.
  14078. * src/Util.h (isPowerOf): New function.
  14079. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  14080. whether or not it is power of 2.
  14081. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14082. Added new class SendMessageQueue that includes PendingMessages and
  14083. RequestSlotMan.
  14084. * src/SendMessageQueue.h: New class.
  14085. * src/SendMessageQueue.cc: New class.
  14086. * src/PendingMessage.h: Added new member variable blockIndex and its
  14087. accessors.
  14088. (createRequestMessage): Updated.
  14089. * src/PendingMessage.cc (createRequestMessage): Updated.
  14090. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  14091. SendMessageQueue.
  14092. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  14093. (receiveMessage): Updated with SendMessageQueue.
  14094. (deletePendingPieceMessage): Removed.
  14095. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  14096. (sendInterest): Updated with SendMessageQueue.
  14097. (createRequestPendingMessage): Updated with SendMessageQueue.
  14098. (sendMessages): Updated with SendMessageQueue.
  14099. (onAbort): Updated with SendMessageQueue.
  14100. (keepAlive): Updated with SendMessageQueue.
  14101. (beforeSocketCheck): Updated SendMessageQueue.
  14102. * src/PeerInteractionCommand (sendMessages): Shuffle
  14103. missingBLockIndexes before using it.
  14104. Added its own timeout for peer connection.
  14105. * src/PeerAbstractCommand.h: Added member variable timeout and its
  14106. setter.
  14107. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  14108. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  14109. Added setTimeout() call.
  14110. (executeInternal): Added setTimeout() call.
  14111. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  14112. Added timeout.
  14113. (isTimeoutDetected): Updated.
  14114. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  14115. option.
  14116. Added *simple* message flooding checker.
  14117. * src/PeerInteractionCommand.cc (executeInternal):
  14118. Added detectMessageFlooding() call.
  14119. (detectMessageFlooding): New function.
  14120. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  14121. (beforeSocketCheck): Added detectMessageFlooding() call.
  14122. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  14123. chokeUnchokeCount, haveCount, detectMessageFlooding().
  14124. Removed deletePendingPieceMessage(), getRequestSlot(),
  14125. deleteRequestSlot(), deleteAllRequestSlot().
  14126. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  14127. Added checkLongTimePeerChoking() call.
  14128. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  14129. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  14130. if duplicate == false.
  14131. The parameter "uploaded" and "downloaded" in the tracker request are
  14132. the size since the client sent the "started" event to the tracker.
  14133. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  14134. uploaded size to preDownloadedSize, preUploadedSize respectively.
  14135. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  14136. getSessionDownloadedSize(), getSessionUploadedSize().
  14137. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  14138. getSessionUploadedSize() instead of getDownloadedSize(),
  14139. getUploadedSize().
  14140. * src/PendingMessage.cc (processMessage): Do not send request message
  14141. if the peer is choking the client.
  14142. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  14143. less than interval.
  14144. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14145. * configure.in: Added gnutls support. Added several CPP macros.
  14146. * m4/openssl.m4: Added.
  14147. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  14148. readData(), peekData(). Added gnutls support.
  14149. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  14150. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  14151. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  14152. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  14153. Instead, added a check for whether setup method has executed
  14154. successfully.
  14155. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  14156. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  14157. * src/Makefile.am: Updated.
  14158. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  14159. using whether OpenSSL or gcrypt, depending on the result of configure
  14160. script.
  14161. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  14162. messageDigest.h.
  14163. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  14164. * src/PeerListenCommand.cc: Added log about port binded successfully.
  14165. Fixed memory leak.
  14166. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  14167. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  14168. Removed instantiation of TrackerInitCommand. Instead,
  14169. TrackerWatcherCommand is instantiated and pushed to the command queue.
  14170. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  14171. ENABLE_SSL.
  14172. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  14173. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  14174. If a piece is already acquired by another command, delete the request
  14175. slots for the piece.
  14176. * src/TrackerUpdateCommand.cc (execute):
  14177. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  14178. Added a check whether peer list is null.
  14179. Fixed the bug that causes sending completed event to the tracker
  14180. several times.
  14181. * src/TrackerInitCommand.cc (execute):
  14182. Fixed the bug that causes sending completed event to the tracker
  14183. several times.
  14184. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  14185. by using messageDigest.h.
  14186. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14187. * PeerConnection.cc: Replaced log message "keep-alive" with
  14188. "keep alive".
  14189. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  14190. localhost long time.
  14191. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  14192. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  14193. at most 100 failure entry from the list. If with duplicate = false,
  14194. MAX_PEER_LIST is not checked.
  14195. * PeerListenCommand.cc: Fixed the argument order of log message.
  14196. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14197. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  14198. Added warn().
  14199. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  14200. Implemented warn().
  14201. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  14202. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14203. * Request.h: Added AFTER_COMPLETED event.
  14204. * TorrentDownloadEngine.cc: Prints "Download complete" message
  14205. instead of downloaded size and progress(%) after download completes.
  14206. * PeerInteractionCommand.cc: After download completes, sends unchoke
  14207. message to the peer if it is interested in what localhost has
  14208. downloaded.
  14209. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  14210. destination instead of just renaming it.
  14211. * TorrentMan.cc: Added deleteTempFile().
  14212. * PeerAbstractCommand.cc: do not stop execution after download
  14213. completes. This makes localhost a seeder.
  14214. * Util.{h,cc}: Added fileCopy().
  14215. * PeerListenCommand.cc: do not stop execution after download completes.
  14216. This makes localhost a seeder.
  14217. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  14218. Added TorrentMan::deleteTempFile() to torrentHandler.
  14219. Initialized the variable dir as ".".
  14220. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  14221. Deleted renameSingleFile().
  14222. Added copySingleFile(), deleteTempFile().
  14223. * DownloadEngine.h: Added virtual function afterEachIteration().
  14224. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  14225. in onEndOfRun() to afterEachIteration().
  14226. In onEndOfRun(), changed if condition to check whether filenameFixed is
  14227. true.
  14228. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  14229. In rangedFileCopy(), added try-catch block to properly close file
  14230. descriptors.
  14231. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  14232. Added afterEachIteration(), isFilenameFixed().
  14233. * Peer.cc: Changed choking strategy.
  14234. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  14235. * TrackerInitCommand.cc: Send completed event only once.
  14236. * DownloadEngine.cc: Added a call to afterEachIteration().
  14237. * TrackerUpdateCommand.cc: Do not stop execution after download
  14238. completes.
  14239. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  14240. connect the peers at most MAX_PEER_UPDATE when a peer list is
  14241. received from a tracker.
  14242. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  14243. Decreased the number of failure peers to delete to 0(just comment out
  14244. the line).
  14245. * Release 0.3.1
  14246. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14247. * PeerInteractionCommand.cc: added a call to
  14248. TorrentMan::unadvertisePiece in Destructor.
  14249. * PeerInteractionCommand.cc: make have message sent immediately
  14250. if the size of pending message queue is zero.
  14251. * TorrentMan.cc: set the maximum size of peer list to 250.
  14252. * TorrentMan.h: changed the container type of Peers and UsedPieces
  14253. to deque.
  14254. * Util.cc: fixed rangedFileCopy.
  14255. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  14256. to Constructor. Also, moved digest cleanup to Destructor.
  14257. * MetaFileUtil.cc: fixed memory leak
  14258. * replaced std::vector with std::deque.
  14259. * AbstractCommand.cc: casted timeout value to long long int.
  14260. * ChunkedEncoding.cc: fixed memory leak.
  14261. * PeerInteractionCommand.cc: casted timeout value to long long int.
  14262. * SleepCommand.cc: casted timeout value to long long int.
  14263. * Data.cc: fixed memory leak.
  14264. * Data.cc: fixed toLLInt().
  14265. * BitfieldMan.cc: fixed memory leak.
  14266. * TorrentMan.cc: initialized storeDir to ".".
  14267. * TorrentMan.cc: fixed memory leak.
  14268. * TorrentMan.cc: corrected file paths of splitted files.
  14269. * PeerAbstractCommand.cc: casted timeout to long long int.
  14270. * main.cc: added delete(req) and delete(te->diskWriter).
  14271. * RequestSlot.cc: casted timeout value to long long int.
  14272. * Request.cc: fixed memory leak.
  14273. * PendingMessage.cc: make HAVE messages sent only when peer does not
  14274. have the piece.
  14275. * Peer.{h,cc}: added hasPiece(int index).
  14276. * main.cc: corrected addCommand.
  14277. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14278. * BitTorrent protocol support added.
  14279. * Release 0.3.0
  14280. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14281. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  14282. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14283. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  14284. decoding did not work properly.
  14285. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14286. * DownloadEngine.h: included sys/time.h
  14287. * DownloadEngine.cc: remove sys/time.h
  14288. * Makefile.am (SUBDIRS): Add intl.
  14289. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  14290. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14291. * main.cc: correct help message for --http-auth-scheme.
  14292. * main.cc: changed e-mail address for bug reports.
  14293. * ja.po: added japanese translation.
  14294. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14295. * SimpleLogger.cc: flush log file instead of stdout.
  14296. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14297. * main.cc: Fixed command-line option: max-tries
  14298. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  14299. does not equal to seg.sp.
  14300. * DownloadCommand.cc: If EOF is got from the server and the total size
  14301. of file is not zero, then throw DlRetryEx.
  14302. * main.cc: Set the minium value of min-segment-size to 1024.
  14303. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  14304. fails because of a regression since 0.2.0 release.
  14305. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14306. * HttpConnection.cc:
  14307. * common.h: defined the user agent name as macro
  14308. * DownloadEngine.{h, cc}:
  14309. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  14310. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  14311. * main.cc: Download complete/abort message is now generated by main.
  14312. * Makefile.am (SUBDIRS): Add m4.
  14313. (ACLOCAL_AMFLAGS): New variable.
  14314. (EXTRA_DIST): New variable.
  14315. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  14316. * gettext: added gettext functionality
  14317. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14318. * AbstractCommand.cc:
  14319. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  14320. unregister its cuid from SegmentMan.
  14321. * DownloadEngine.cc: .aria2 file was written when a downloading
  14322. failed with errors.
  14323. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  14324. Added "User-Agent" header to CONNECT proxy request.
  14325. Fixed "Proxy-Authorization" header. Now proxy authorization works
  14326. properly.
  14327. * Logger.h:
  14328. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  14329. * ChunkedEncoding.cc: Added #include directive for strings.h
  14330. * Release 0.2.1
  14331. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14332. * Util.{h,cc}: added startsWith().
  14333. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  14334. Util::endsWith().
  14335. * SocketCore.cc: struct addrinfo is now zero-initialized.
  14336. * common.h: added #include directive of limit.h.
  14337. * DownloadEngine.cc: added #include directive of sys/time.h and
  14338. algorithm.
  14339. * Exception.h: added #include directive of stdio.h.
  14340. * AbstractCommand.h: added #include directive of sys/time.h.
  14341. * DownloadCommand.h: added #include directive of sys/time.h.
  14342. * *.h: added #include directive of common.h to all base classes.
  14343. subclasses' one was removed.
  14344. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  14345. does not define these macros.
  14346. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14347. * Release 0.2.0
  14348. * main.cc:
  14349. * HttpInitiateConnectionCommand.{h,cc}:
  14350. * prefs.h:
  14351. * HttpConnection.{h,cc}: added --http-proxy-method option.
  14352. We can now use GET command in http proxy.
  14353. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14354. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  14355. that splits slowest segment of SegmentMan::commands vector.
  14356. This is the default split algorithm of aria2.
  14357. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  14358. that splits first segment of SegmentMan::commands vector.
  14359. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  14360. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  14361. * Segment.h:
  14362. * SegmentMan.cc: Added speed field to Segment.h
  14363. * main.cc: -s option now affects all URLs in command-line arguemtns.
  14364. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  14365. * message.h: Change file size related %d to %lld.
  14366. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14367. * FtpInitiateConnectionCommand.{h,cc}:
  14368. * FtpNegotiationCommand.{h,cc}:
  14369. * FtpDownloadCommand.{h,cc}:
  14370. * FtpConnection.{h,cc}: Added FTP support
  14371. * SimpleLogger.cc: Log message now includes time information.
  14372. * main.cc: The value of --http-auth-scheme option is chagned from
  14373. 'BASIC' to 'basic'
  14374. * main.cc: Added --timeout command-line option.
  14375. * main.cc: Added --min-segment-size command-line option.
  14376. * main.cc: Added --max-retries command-line option.
  14377. * prefs.h: option string constants are now defined in prefs.h
  14378. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14379. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  14380. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  14381. with version 0.1.0's one.
  14382. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14383. * configure.in: Added --enable-ssl option to configure script.
  14384. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  14385. cannot permit absoluteURI as Request-URI.
  14386. * HttpConnection.cc: Added Referer support.
  14387. * main.cc: Added referer command-line option.
  14388. * main.cc: Added rety-wait command-line option.
  14389. * Exception.h: Fixed formating bug in Exception::setMsg()
  14390. * SocketCore.{h,cc}:
  14391. * Socket.{h, cc}:
  14392. * Request.cc:
  14393. * InitiateConnectionCommandFactory.cc:
  14394. * HttpRequestCommand.cc: Added HTTPS support.
  14395. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  14396. for SocketCore.
  14397. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  14398. size is wrong
  14399. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  14400. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  14401. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  14402. * Release 0.1.0